Skip to content

Commit c82c46f

Browse files
Merge pull request #193 from gridaco/junhoyeo/fix-typo
Fix typos: `hanlde` -> `handle`, `prefernce` -> `preference`
2 parents 0462b07 + 60a67d0 commit c82c46f

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

docs/figma-autolayout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ We use Stretched Token for specifing specific widget to be stretched. Learn more
144144
## Hug contents item (Not having any intrinsic size)
145145

146146
> Hug contents will follow its items size, not having a intrinsic size of its own.
147-
> Learn how to hanlde this here at [box-sizing#Not having-any-intrinsic-size](./css-box-sizing.md)
147+
> Learn how to handle this here at [box-sizing#Not having-any-intrinsic-size](./css-box-sizing.md)
148148
149149
<!-- Code examples WIP -->

editor/pages/figma/inspect-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function InspectComponent() {
3232
<div style={{ margin: 60 }}>
3333
<h2>Not a component</h2>
3434
<p>
35-
This page cannot hanlde other types than <code>COMPONENT</code> or
35+
This page cannot handle other types than <code>COMPONENT</code> or
3636
<code>INSTANCE</code>
3737
</p>
3838
<p>

packages/builder-web-react/react-styled-component-widget/from-reusable-widget-tree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export function finalizeReactReusable_StyledComponents__Experimental({
1919
tree: InstanceWidget;
2020
components: MasterComponentWidget[];
2121
}) {
22-
const hanlde = (token) => {
22+
const handle = (token) => {
2323
if (token instanceof InstanceMetaToken) {
24-
const children = token.master["children"]?.map(hanlde);
24+
const children = token.master["children"]?.map(handle);
2525
return {
2626
...token.master,
2727
children,
@@ -31,7 +31,7 @@ export function finalizeReactReusable_StyledComponents__Experimental({
3131
}
3232
};
3333

34-
const token = hanlde(tree);
34+
const token = handle(tree);
3535
const webwi = compose(token, {});
3636
const builder = new ReactStyledComponentsModuleBuilder({
3737
entry: webwi,

packages/designto-token/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ For example,
2828
In this scenario, regardingless how much single pltform's design is exceptional, the data should follow the hierarchical shape to satisfy all platfrom.
2929

3030
**The reason is..**
31-
all the processing logic should be handled on tokenizer and the tokens are the result of the decision tree. No heavy, decision changing logic should be hanlded after the tokenization.
31+
all the processing logic should be handled on tokenizer and the tokens are the result of the decision tree. No heavy, decision changing logic should be handled after the tokenization.
3232

33-
e.g. All design elements has its position, but not all nodes are being placed statically on that posision. by wrapping (not as property) the position, we can tell the later hanlders that this is already decided to be positioned and have its static posision specified. - if we don't do this way each logic by frameworks will be fragmented and unable to maintain.
33+
e.g. All design elements has its position, but not all nodes are being placed statically on that posision. by wrapping (not as property) the position, we can tell the later handlers that this is already decided to be positioned and have its static posision specified. - if we don't do this way each logic by frameworks will be fragmented and unable to maintain.
3434

3535
### The first approach (noisy and accurate one)
3636

packages/support-flags/parse.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const _simple_typed_value_flag_preference_mapper = (
279279
type: type,
280280
};
281281
};
282-
const _simple_boolean_value_flag_prefernce_mapper = (
282+
const _simple_boolean_value_flag_preference_mapper = (
283283
k: string | Array<string>
284284
): Option => _simple_typed_value_flag_preference_mapper(k, "bool");
285285

@@ -356,67 +356,67 @@ function transform_heading_alias_from_raw(raw: { [key: string]: boolean }):
356356
if (_h6_alias) return _h6_alias;
357357
}
358358

359-
const __h1_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
359+
const __h1_alias_pref = _simple_boolean_value_flag_preference_mapper(
360360
keys.alias.as_h1
361361
);
362362

363-
const __h2_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
363+
const __h2_alias_pref = _simple_boolean_value_flag_preference_mapper(
364364
keys.alias.as_h2
365365
);
366366

367-
const __h3_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
367+
const __h3_alias_pref = _simple_boolean_value_flag_preference_mapper(
368368
keys.alias.as_h3
369369
);
370370

371-
const __h4_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
371+
const __h4_alias_pref = _simple_boolean_value_flag_preference_mapper(
372372
keys.alias.as_h4
373373
);
374374

375-
const __h5_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
375+
const __h5_alias_pref = _simple_boolean_value_flag_preference_mapper(
376376
keys.alias.as_h5
377377
);
378378

379-
const __h6_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
379+
const __h6_alias_pref = _simple_boolean_value_flag_preference_mapper(
380380
keys.alias.as_h6
381381
);
382382

383383
// -----------------------------------------------------------------------------
384384
// -----------------------------------------------------------------------------
385385
// -----------------------------------------------------------------------------
386386

387-
const __p_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
387+
const __p_alias_pref = _simple_boolean_value_flag_preference_mapper(
388388
keys.alias.as_p
389389
);
390390

391-
const __textspan_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
391+
const __textspan_alias_pref = _simple_boolean_value_flag_preference_mapper(
392392
keys.alias.as_span
393393
);
394394

395-
const __button_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
395+
const __button_alias_pref = _simple_boolean_value_flag_preference_mapper(
396396
keys.alias.as_button
397397
);
398398

399-
const __checkbox_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
399+
const __checkbox_alias_pref = _simple_boolean_value_flag_preference_mapper(
400400
keys.alias.as_checkbox
401401
);
402402

403-
const __input_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
403+
const __input_alias_pref = _simple_boolean_value_flag_preference_mapper(
404404
keys.alias.as_input
405405
);
406406

407-
const __slider_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
407+
const __slider_alias_pref = _simple_boolean_value_flag_preference_mapper(
408408
keys.alias.as_slider
409409
);
410410

411-
const __progress_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
411+
const __progress_alias_pref = _simple_boolean_value_flag_preference_mapper(
412412
keys.alias.as_progress
413413
);
414414

415415
// -----------------------------------------------------------------------------
416416
// -----------------------------------------------------------------------------
417417
// -----------------------------------------------------------------------------
418418

419-
const _simple_custom_string_value_flag_prefernce_mapper = (
419+
const _simple_custom_string_value_flag_preference_mapper = (
420420
k: string | Array<string>
421421
): Option =>
422422
Array.isArray(k)
@@ -431,21 +431,21 @@ const _simple_custom_string_value_flag_prefernce_mapper = (
431431
type: "string",
432432
};
433433

434-
const __width_alias_pref = _simple_custom_string_value_flag_prefernce_mapper(
434+
const __width_alias_pref = _simple_custom_string_value_flag_preference_mapper(
435435
keys.alias.width
436436
);
437437
const __max_width_alias_pref =
438-
_simple_custom_string_value_flag_prefernce_mapper(keys.alias.max_width);
438+
_simple_custom_string_value_flag_preference_mapper(keys.alias.max_width);
439439
const __min_width_alias_pref =
440-
_simple_custom_string_value_flag_prefernce_mapper(keys.alias.min_width);
440+
_simple_custom_string_value_flag_preference_mapper(keys.alias.min_width);
441441

442-
const __height_alias_pref = _simple_custom_string_value_flag_prefernce_mapper(
442+
const __height_alias_pref = _simple_custom_string_value_flag_preference_mapper(
443443
keys.alias.height
444444
);
445445
const __max_height_alias_pref =
446-
_simple_custom_string_value_flag_prefernce_mapper(keys.alias.max_height);
446+
_simple_custom_string_value_flag_preference_mapper(keys.alias.max_height);
447447
const __min_height_alias_pref =
448-
_simple_custom_string_value_flag_prefernce_mapper(keys.alias.min_height);
448+
_simple_custom_string_value_flag_preference_mapper(keys.alias.min_height);
449449

450450
function transform_wh_declaration_alias_from_raw(raw: { [key: string]: any }): {
451451
[key: string]: WHDeclarationFlag;
@@ -482,26 +482,26 @@ function transform_wh_declaration_alias_from_raw(raw: { [key: string]: any }): {
482482
}, {});
483483
}
484484

485-
const __fix_width_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
485+
const __fix_width_alias_pref = _simple_boolean_value_flag_preference_mapper(
486486
keys.alias.fix_width
487487
);
488-
const __fix_height_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
488+
const __fix_height_alias_pref = _simple_boolean_value_flag_preference_mapper(
489489
keys.alias.fix_height
490490
);
491491

492492
// -----------------------------------------------------------------------------
493493
// -----------------------------------------------------------------------------
494494
// -----------------------------------------------------------------------------
495495

496-
const __declare_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
496+
const __declare_alias_pref = _simple_boolean_value_flag_preference_mapper(
497497
keys.alias.declare
498498
);
499499

500500
// -----------------------------------------------------------------------------
501501
// -----------------------------------------------------------------------------
502502
// -----------------------------------------------------------------------------
503503

504-
const __camera_alias_pref = _simple_boolean_value_flag_prefernce_mapper(
504+
const __camera_alias_pref = _simple_boolean_value_flag_preference_mapper(
505505
keys.alias.camera
506506
);
507507

0 commit comments

Comments
 (0)