@astryxdesign/cli 0.7.4 → 0.7.5-canary.2a50a80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +18 -18
  2. package/api/icon/_adapter.d.mts +3 -2
  3. package/api/icon/_adapter.mjs +16 -3
  4. package/api/icon/_authoring.d.mts +5 -1
  5. package/api/icon/_authoring.mjs +478 -63
  6. package/api/icon/_options.d.mts +11 -0
  7. package/api/icon/_options.mjs +39 -4
  8. package/api/icon/_records.d.mts +19 -0
  9. package/api/icon/_records.mjs +25 -0
  10. package/api/icon/add/add.d.mts +3 -3
  11. package/api/icon/add/add.mjs +227 -14
  12. package/api/icon/all-or-nothing.test.mjs +283 -0
  13. package/api/icon/detail/detail.mjs +2 -13
  14. package/api/icon/error-codes.test.mjs +14 -7
  15. package/api/icon/icon.d.mts +2 -2
  16. package/api/icon/icon.doc.mjs +30 -2
  17. package/api/icon/icon.mjs +57 -8
  18. package/api/icon/icon.test.mjs +133 -1
  19. package/api/icon/icon.type.d.mts +126 -1
  20. package/api/icon/icon.type.mjs +67 -3
  21. package/api/icon/iconAdd.doc.mjs +22 -6
  22. package/api/icon/iconMap.doc.mjs +24 -8
  23. package/api/icon/iconNewDefinition.doc.mjs +2 -2
  24. package/api/icon/iconNewSet.doc.mjs +30 -2
  25. package/api/icon/iconUse.doc.mjs +4 -1
  26. package/api/icon/map/map.d.mts +4 -4
  27. package/api/icon/map/map.mjs +134 -9
  28. package/api/icon/new-definition/new-definition.mjs +6 -2
  29. package/api/icon/new-set/new-set.mjs +2 -2
  30. package/api/icon/new-set/new-set.test.mjs +60 -10
  31. package/api/icon/option-pairs.test.mjs +368 -0
  32. package/api/icon/search/search.d.mts +10 -0
  33. package/api/icon/search/search.mjs +55 -14
  34. package/api/icon/use/use.mjs +2 -13
  35. package/api/integration/add-helpers.d.mts +15 -1
  36. package/api/integration/add-helpers.mjs +1 -1
  37. package/api/integration/validate-integration.type.d.mts +3 -2
  38. package/api/integration/validate-integration.type.mjs +3 -2
  39. package/api/template/template.type.d.mts +2 -1
  40. package/api/template/template.type.mjs +1 -1
  41. package/assets/discover/official-packages.json +4 -0
  42. package/assets/docs/tree/icon-definitions.doc.mjs +2 -2
  43. package/assets/docs/tree/icon-set-files.doc.mjs +1 -1
  44. package/assets/docs/tree/icon-sets.doc.mjs +50 -20
  45. package/assets/icons/definitions/activity.doc.mjs +1 -1
  46. package/assets/icons/definitions/alignCenter.doc.mjs +9 -0
  47. package/assets/icons/definitions/alignEnd.doc.mjs +10 -0
  48. package/assets/icons/definitions/alignStart.doc.mjs +10 -0
  49. package/assets/icons/definitions/archive.doc.mjs +1 -1
  50. package/assets/icons/definitions/arrowsUpDown.doc.mjs +1 -1
  51. package/assets/icons/definitions/attach.doc.mjs +1 -1
  52. package/assets/icons/definitions/audio.doc.mjs +1 -1
  53. package/assets/icons/definitions/cart.doc.mjs +1 -1
  54. package/assets/icons/definitions/checkDouble.doc.mjs +1 -1
  55. package/assets/icons/definitions/chevronsLeft.doc.mjs +1 -1
  56. package/assets/icons/definitions/chevronsRight.doc.mjs +1 -1
  57. package/assets/icons/definitions/close.doc.mjs +1 -1
  58. package/assets/icons/definitions/collapse.doc.mjs +1 -1
  59. package/assets/icons/definitions/compose.doc.mjs +1 -1
  60. package/assets/icons/definitions/conversation.doc.mjs +1 -1
  61. package/assets/icons/definitions/copy.doc.mjs +1 -1
  62. package/assets/icons/definitions/cpu.doc.mjs +9 -0
  63. package/assets/icons/definitions/database.doc.mjs +1 -1
  64. package/assets/icons/definitions/desktop.doc.mjs +1 -1
  65. package/assets/icons/definitions/discount.doc.mjs +1 -1
  66. package/assets/icons/definitions/download.doc.mjs +1 -1
  67. package/assets/icons/definitions/emoji.doc.mjs +1 -1
  68. package/assets/icons/definitions/error.doc.mjs +1 -1
  69. package/assets/icons/definitions/expand.doc.mjs +1 -1
  70. package/assets/icons/definitions/experiment.doc.mjs +1 -1
  71. package/assets/icons/definitions/externalLink.doc.mjs +7 -1
  72. package/assets/icons/definitions/eyeSlash.doc.mjs +1 -1
  73. package/assets/icons/definitions/flipHorizontal.doc.mjs +9 -0
  74. package/assets/icons/definitions/flipVertical.doc.mjs +9 -0
  75. package/assets/icons/definitions/folderAdd.doc.mjs +1 -1
  76. package/assets/icons/definitions/gitBranch.doc.mjs +9 -0
  77. package/assets/icons/definitions/gitFork.doc.mjs +9 -0
  78. package/assets/icons/definitions/info.doc.mjs +1 -1
  79. package/assets/icons/definitions/location.doc.mjs +1 -1
  80. package/assets/icons/definitions/mention.doc.mjs +1 -1
  81. package/assets/icons/definitions/menu.doc.mjs +1 -1
  82. package/assets/icons/definitions/microphone.doc.mjs +1 -1
  83. package/assets/icons/definitions/mobile.doc.mjs +1 -1
  84. package/assets/icons/definitions/money.doc.mjs +1 -1
  85. package/assets/icons/definitions/moreHorizontal.doc.mjs +1 -1
  86. package/assets/icons/definitions/notificationActive.doc.mjs +1 -1
  87. package/assets/icons/definitions/notificationOff.doc.mjs +1 -1
  88. package/assets/icons/definitions/panelLeft.doc.mjs +10 -0
  89. package/assets/icons/definitions/panelRight.doc.mjs +10 -0
  90. package/assets/icons/definitions/raiseHand.doc.mjs +1 -1
  91. package/assets/icons/definitions/redo.doc.mjs +1 -1
  92. package/assets/icons/definitions/refresh.doc.mjs +1 -1
  93. package/assets/icons/definitions/rotate.doc.mjs +9 -0
  94. package/assets/icons/definitions/scale.doc.mjs +10 -0
  95. package/assets/icons/definitions/search.doc.mjs +1 -1
  96. package/assets/icons/definitions/send.doc.mjs +1 -1
  97. package/assets/icons/definitions/settings.doc.mjs +1 -1
  98. package/assets/icons/definitions/star.doc.mjs +1 -1
  99. package/assets/icons/definitions/stop.doc.mjs +1 -1
  100. package/assets/icons/definitions/success.doc.mjs +1 -1
  101. package/assets/icons/definitions/textCase.doc.mjs +9 -0
  102. package/assets/icons/definitions/thumbsDown.doc.mjs +1 -1
  103. package/assets/icons/definitions/thumbsUp.doc.mjs +1 -1
  104. package/assets/icons/definitions/trendDown.doc.mjs +7 -1
  105. package/assets/icons/definitions/trendUp.doc.mjs +1 -1
  106. package/assets/icons/definitions/undo.doc.mjs +1 -1
  107. package/assets/icons/definitions/upload.doc.mjs +1 -1
  108. package/assets/icons/definitions/userAdd.doc.mjs +1 -1
  109. package/assets/icons/definitions/warning.doc.mjs +1 -1
  110. package/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsx +15 -14
  111. package/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx +30 -30
  112. package/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +15 -14
  113. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +15 -14
  114. package/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx +17 -16
  115. package/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx +29 -29
  116. package/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +9 -8
  117. package/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsx +39 -41
  118. package/assets/templates/pages/canvas-editor/template.doc.mjs +9 -0
  119. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +6 -1
  120. package/assets/templates/pages/table-comparison/template.doc.mjs +1 -0
  121. package/assets/templates/pages/table-tree/template.doc.mjs +3 -0
  122. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +4 -4
  123. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +6 -0
  124. package/authoring/doctypes/icon-set/parse.d.mts +1 -0
  125. package/authoring/doctypes/icon-set/parse.mjs +1 -0
  126. package/authoring/doctypes/icon-set/type.ts +5 -0
  127. package/authoring/doctypes/template/template.doc.mjs +1 -1
  128. package/authoring/doctypes/template/type.ts +2 -1
  129. package/clients/cli/commands/doctor.mjs +16 -17
  130. package/clients/cli/commands/experimental/icon.mjs +167 -35
  131. package/clients/cli/commands/experimental-icon-add.doc.mjs +14 -4
  132. package/clients/cli/commands/experimental-icon-map.doc.mjs +12 -2
  133. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +1 -1
  134. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +28 -1
  135. package/clients/cli/commands/experimental-icon.doc.mjs +18 -2
  136. package/clients/cli/commands/experimental.doc.mjs +2 -1
  137. package/clients/cli/commands/icon-authoring.test.mjs +1823 -13
  138. package/clients/cli/commands/icon-options-wiring.test.mjs +158 -0
  139. package/clients/cli/commands/icon.test.mjs +1 -1
  140. package/clients/cli/commands/template.mjs +4 -1
  141. package/foundation/discovery/component-discovery.d.mts +2 -1
  142. package/foundation/discovery/component-discovery.export-names.test.mjs +41 -0
  143. package/foundation/discovery/component-discovery.mjs +13 -7
  144. package/foundation/discovery/icon-set-checks.d.mts +43 -9
  145. package/foundation/discovery/icon-set-checks.mjs +296 -21
  146. package/foundation/discovery/icon-set-checks.test.mjs +125 -12
  147. package/foundation/discovery/icon-set-writer.d.mts +192 -3
  148. package/foundation/discovery/icon-set-writer.mjs +608 -34
  149. package/foundation/discovery/icon-set-writer.test.mjs +26 -0
  150. package/foundation/discovery/module-exports.mjs +82 -25
  151. package/foundation/discovery/module-exports.test.mjs +38 -1
  152. package/foundation/discovery/package-exports.d.mts +13 -0
  153. package/foundation/discovery/package-exports.mjs +40 -1
  154. package/foundation/discovery/template-icons.d.mts +6 -0
  155. package/foundation/discovery/template-icons.mjs +98 -10
  156. package/foundation/discovery/template-icons.test.mjs +103 -0
  157. package/foundation/doc-compiler/tree.mjs +3 -1
  158. package/foundation/response/response-types.doc.mjs +25 -1
  159. package/foundation/text/string-utils.mjs +33 -0
  160. package/foundation/text/string-utils.test.mjs +17 -0
  161. package/package.json +9 -9
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'panelLeft',
7
+ description:
8
+ 'Show or hide a side panel on the left, such as a navigation sidebar.',
9
+ words: ['sidebar', 'left panel', 'drawer', 'toggle sidebar'],
10
+ };
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'panelRight',
7
+ description:
8
+ 'Show or hide a side panel on the right, such as a details or inspector pane.',
9
+ words: ['right panel', 'inspector', 'details pane', 'drawer'],
10
+ };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'raiseHand',
7
7
  description: 'Raise a hand to ask or speak.',
8
- words: ['hand', 'ask', 'stop'],
8
+ words: ['hand', 'ask', 'hand raised'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'redo',
7
7
  description: 'Redo the last change that was undone.',
8
- words: ['again', 'repeat', 'forward'],
8
+ words: ['again', 'repeat', 'arrow uturn right'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'refresh',
7
7
  description: 'Reload or refresh data.',
8
- words: ['reload', 'sync', 'retry'],
8
+ words: ['reload', 'sync', 'retry', 'arrow path'],
9
9
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'rotate',
7
+ description: 'Rotate an image, shape, or view.',
8
+ words: ['turn', 'spin', 'orientation'],
9
+ };
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'scale',
7
+ description:
8
+ 'A balance scale: law, fairness, or weighing one option against another.',
9
+ words: ['balance', 'legal', 'justice', 'compare'],
10
+ };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'search',
7
7
  description: 'Search or find something.',
8
- words: ['find', 'lookup', 'magnifier'],
8
+ words: ['find', 'lookup', 'magnifier', 'magnifying glass'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'send',
7
7
  description: 'Send a message.',
8
- words: ['submit', 'post'],
8
+ words: ['submit', 'post', 'paper airplane'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'settings',
7
7
  description: 'Open settings or preferences.',
8
- words: ['gear', 'preferences', 'options'],
8
+ words: ['gear', 'preferences', 'options', 'cog'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'star',
7
7
  description: 'Favorite or rate something.',
8
- words: ['favorite', 'rating', 'bookmark'],
8
+ words: ['favorite', 'rating'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'stop',
7
7
  description: 'Stop or cancel a running action.',
8
- words: ['halt', 'end', 'cancel'],
8
+ words: ['halt', 'end', 'cancel', 'square', 'circle stop'],
9
9
  builtIn: true,
10
10
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'success',
7
7
  description: 'Show that something worked.',
8
- words: ['ok', 'complete', 'passed'],
8
+ words: ['ok', 'complete', 'passed', 'check circle', 'circle check'],
9
9
  builtIn: true,
10
10
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'textCase',
7
+ description: 'Change the letter case of text, such as upper or lower case.',
8
+ words: ['uppercase', 'lowercase', 'capitalize', 'case', 'case sensitive'],
9
+ };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'thumbsDown',
7
7
  description: 'Give negative feedback.',
8
- words: ['dislike', 'bad'],
8
+ words: ['dislike', 'bad', 'hand thumb down'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'thumbsUp',
7
7
  description: 'Approve or give positive feedback.',
8
- words: ['approve', 'good', 'like'],
8
+ words: ['approve', 'good', 'like', 'hand thumb up'],
9
9
  };
@@ -5,5 +5,11 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'trendDown',
7
7
  description: 'Show a value going down.',
8
- words: ['decrease', 'decline', 'down'],
8
+ words: [
9
+ 'decrease',
10
+ 'decline',
11
+ 'down',
12
+ 'arrow trending down',
13
+ 'trending down',
14
+ ],
9
15
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'trendUp',
7
7
  description: 'Show a value going up.',
8
- words: ['increase', 'growth', 'up'],
8
+ words: ['increase', 'growth', 'up', 'arrow trending up', 'trending up'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'undo',
7
7
  description: 'Undo the last change.',
8
- words: ['revert', 'back'],
8
+ words: ['revert', 'back', 'arrow uturn left'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'upload',
7
7
  description: 'Upload a file or content.',
8
- words: ['import', 'attach file'],
8
+ words: ['import', 'attach file', 'arrow up tray'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'userAdd',
7
7
  description: 'Invite or add a person.',
8
- words: ['invite', 'add person'],
8
+ words: ['invite', 'add person', 'user plus'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'warning',
7
7
  description: 'Warn about something that needs attention.',
8
- words: ['caution', 'alert'],
8
+ words: ['caution', 'alert', 'exclamation triangle', 'triangle alert'],
9
9
  builtIn: true,
10
10
  };
@@ -26,19 +26,20 @@ export default function TokenizerClear() {
26
26
  const [value, setValue] = useState<SearchableItem[]>([users[0], users[1]]);
27
27
 
28
28
  return (
29
- <Stack direction="vertical" gap={2}>
30
- <Text type="supporting" color="secondary">
31
- Clear-all button appears when tokens are selected
32
- </Text>
33
- <Tokenizer
34
- label="Team Members"
35
- placeholder="Search people..."
36
- searchSource={userSource}
37
- value={value}
38
- onChange={items => setValue(items)}
39
- hasClear
40
- containerStyle={{width: 400}}
41
- />
42
- </Stack>
29
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
30
+ <Stack direction="vertical" gap={2}>
31
+ <Text type="supporting" color="secondary">
32
+ Clear-all button appears when tokens are selected
33
+ </Text>
34
+ <Tokenizer
35
+ label="Team Members"
36
+ placeholder="Search people..."
37
+ searchSource={userSource}
38
+ value={value}
39
+ onChange={items => setValue(items)}
40
+ hasClear
41
+ />
42
+ </Stack>
43
+ </div>
43
44
  );
44
45
  }
@@ -32,36 +32,36 @@ export default function TokenizerCreatable() {
32
32
  const [members, setMembers] = useState<SearchableItem[]>([]);
33
33
 
34
34
  return (
35
- <Stack direction="vertical" gap={4}>
36
- <Stack direction="vertical" gap={1}>
37
- <Text type="supporting" color="secondary">
38
- Free-text only
39
- </Text>
40
- <Tokenizer
41
- label="Tags"
42
- searchSource={emptySource}
43
- value={tags}
44
- onChange={items => setTags(items)}
45
- hasCreate
46
- placeholder="Type a tag and press Enter..."
47
- containerStyle={{width: 400}}
48
- />
35
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
36
+ <Stack direction="vertical" gap={4}>
37
+ <Stack direction="vertical" gap={1}>
38
+ <Text type="supporting" color="secondary">
39
+ Free-text only
40
+ </Text>
41
+ <Tokenizer
42
+ label="Tags"
43
+ searchSource={emptySource}
44
+ value={tags}
45
+ onChange={items => setTags(items)}
46
+ hasCreate
47
+ placeholder="Type a tag and press Enter..."
48
+ />
49
+ </Stack>
50
+ <Stack direction="vertical" gap={1}>
51
+ <Text type="supporting" color="secondary">
52
+ Create or search
53
+ </Text>
54
+ <Tokenizer
55
+ label="Team Members"
56
+ searchSource={userSource}
57
+ value={members}
58
+ onChange={items => setMembers(items)}
59
+ hasCreate
60
+ hasEntriesOnFocus
61
+ placeholder="Search or type a new name..."
62
+ />
63
+ </Stack>
49
64
  </Stack>
50
- <Stack direction="vertical" gap={1}>
51
- <Text type="supporting" color="secondary">
52
- Create or search
53
- </Text>
54
- <Tokenizer
55
- label="Team Members"
56
- searchSource={userSource}
57
- value={members}
58
- onChange={items => setMembers(items)}
59
- hasCreate
60
- hasEntriesOnFocus
61
- placeholder="Search or type a new name..."
62
- containerStyle={{width: 400}}
63
- />
64
- </Stack>
65
- </Stack>
65
+ </div>
66
66
  );
67
67
  }
@@ -28,19 +28,20 @@ export default function TokenizerEndContent() {
28
28
  const [value, setValue] = useState<SearchableItem[]>([users[0], users[2]]);
29
29
 
30
30
  return (
31
- <Stack direction="vertical" gap={2}>
32
- <Text type="supporting" color="secondary">
33
- Action button in the end slot
34
- </Text>
35
- <Tokenizer
36
- label="Team Members"
37
- placeholder="Search people..."
38
- searchSource={userSource}
39
- value={value}
40
- onChange={items => setValue(items)}
41
- endContent={<Button label="Apply" variant="primary" size="sm" />}
42
- containerStyle={{width: 400}}
43
- />
44
- </Stack>
31
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
32
+ <Stack direction="vertical" gap={2}>
33
+ <Text type="supporting" color="secondary">
34
+ Action button in the end slot
35
+ </Text>
36
+ <Tokenizer
37
+ label="Team Members"
38
+ placeholder="Search people..."
39
+ searchSource={userSource}
40
+ value={value}
41
+ onChange={items => setValue(items)}
42
+ endContent={<Button label="Apply" variant="primary" size="sm" />}
43
+ />
44
+ </Stack>
45
+ </div>
45
46
  );
46
47
  }
@@ -27,19 +27,20 @@ export default function TokenizerIcon() {
27
27
  const [value, setValue] = useState<SearchableItem[]>([users[0], users[2]]);
28
28
 
29
29
  return (
30
- <Stack direction="vertical" gap={2}>
31
- <Text type="supporting" color="secondary">
32
- Leading icon reinforces the search affordance
33
- </Text>
34
- <Tokenizer
35
- label="Team Members"
36
- placeholder="Search people..."
37
- searchSource={userSource}
38
- value={value}
39
- onChange={items => setValue(items)}
40
- startIcon={MagnifyingGlassIcon}
41
- containerStyle={{width: 400}}
42
- />
43
- </Stack>
30
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
31
+ <Stack direction="vertical" gap={2}>
32
+ <Text type="supporting" color="secondary">
33
+ Leading icon reinforces the search affordance
34
+ </Text>
35
+ <Tokenizer
36
+ label="Team Members"
37
+ placeholder="Search people..."
38
+ searchSource={userSource}
39
+ value={value}
40
+ onChange={items => setValue(items)}
41
+ startIcon={MagnifyingGlassIcon}
42
+ />
43
+ </Stack>
44
+ </div>
44
45
  );
45
46
  }
@@ -31,21 +31,22 @@ export default function TokenizerMaxEntries() {
31
31
  const [value, setValue] = useState<SearchableItem[]>([skills[0], skills[1]]);
32
32
 
33
33
  return (
34
- <Stack direction="vertical" gap={2}>
35
- <Text type="supporting" color="secondary">
36
- Limited to {MAX_SKILLS} selections — {MAX_SKILLS - value.length}{' '}
37
- remaining
38
- </Text>
39
- <Tokenizer
40
- label="Top Skills"
41
- placeholder="Search skills..."
42
- description={`Choose up to ${MAX_SKILLS} skills`}
43
- searchSource={skillSource}
44
- value={value}
45
- onChange={items => setValue(items)}
46
- maxEntries={MAX_SKILLS}
47
- containerStyle={{width: 400}}
48
- />
49
- </Stack>
34
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
35
+ <Stack direction="vertical" gap={2}>
36
+ <Text type="supporting" color="secondary">
37
+ Limited to {MAX_SKILLS} selections — {MAX_SKILLS - value.length}{' '}
38
+ remaining
39
+ </Text>
40
+ <Tokenizer
41
+ label="Top Skills"
42
+ placeholder="Search skills..."
43
+ description={`Choose up to ${MAX_SKILLS} skills`}
44
+ searchSource={skillSource}
45
+ value={value}
46
+ onChange={items => setValue(items)}
47
+ maxEntries={MAX_SKILLS}
48
+ />
49
+ </Stack>
50
+ </div>
50
51
  );
51
52
  }
@@ -28,35 +28,35 @@ export default function TokenizerOverflow() {
28
28
  const [layerValue, setLayerValue] = useState<SearchableItem[]>(users);
29
29
 
30
30
  return (
31
- <Stack direction="vertical" gap={4}>
32
- <Stack direction="vertical" gap={1}>
33
- <Text type="supporting" color="secondary">
34
- Inline overflow — content shifts down on expand
35
- </Text>
36
- <Tokenizer
37
- label="Inline Overflow"
38
- placeholder="Add more..."
39
- searchSource={userSource}
40
- value={inlineValue}
41
- onChange={items => setInlineValue(items)}
42
- tokenOverflowBehavior="unfocusedInline"
43
- containerStyle={{width: 400, maxWidth: 400}}
44
- />
31
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
32
+ <Stack direction="vertical" gap={4}>
33
+ <Stack direction="vertical" gap={1}>
34
+ <Text type="supporting" color="secondary">
35
+ Inline overflow — content shifts down on expand
36
+ </Text>
37
+ <Tokenizer
38
+ label="Inline Overflow"
39
+ placeholder="Add more..."
40
+ searchSource={userSource}
41
+ value={inlineValue}
42
+ onChange={items => setInlineValue(items)}
43
+ tokenOverflowBehavior="unfocusedInline"
44
+ />
45
+ </Stack>
46
+ <Stack direction="vertical" gap={1}>
47
+ <Text type="supporting" color="secondary">
48
+ Layer overflow — expands as overlay, no layout shift
49
+ </Text>
50
+ <Tokenizer
51
+ label="Layer Overflow"
52
+ placeholder="Add more..."
53
+ searchSource={userSource}
54
+ value={layerValue}
55
+ onChange={items => setLayerValue(items)}
56
+ tokenOverflowBehavior="unfocusedLayer"
57
+ />
58
+ </Stack>
45
59
  </Stack>
46
- <Stack direction="vertical" gap={1}>
47
- <Text type="supporting" color="secondary">
48
- Layer overflow — expands as overlay, no layout shift
49
- </Text>
50
- <Tokenizer
51
- label="Layer Overflow"
52
- placeholder="Add more..."
53
- searchSource={userSource}
54
- value={layerValue}
55
- onChange={items => setLayerValue(items)}
56
- tokenOverflowBehavior="unfocusedLayer"
57
- containerStyle={{width: 400, maxWidth: 400}}
58
- />
59
- </Stack>
60
- </Stack>
60
+ </div>
61
61
  );
62
62
  }
@@ -17,13 +17,14 @@ export default function TokenizerShowcase() {
17
17
  {id: '2', label: 'Engineering'},
18
18
  ]);
19
19
  return (
20
- <Tokenizer
21
- label="Tags"
22
- placeholder="Search..."
23
- searchSource={source}
24
- value={value}
25
- onChange={setValue}
26
- containerStyle={{width: 400}}
27
- />
20
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
21
+ <Tokenizer
22
+ label="Tags"
23
+ placeholder="Search..."
24
+ searchSource={source}
25
+ value={value}
26
+ onChange={setValue}
27
+ />
28
+ </div>
28
29
  );
29
30
  }
@@ -32,46 +32,44 @@ export default function TokenizerStates() {
32
32
  ]);
33
33
 
34
34
  return (
35
- <Stack direction="vertical" gap={4}>
36
- <Tokenizer
37
- label="Disabled field"
38
- searchSource={userSource}
39
- value={[users[0], users[2]]}
40
- onChange={() => {}}
41
- isDisabled
42
- containerStyle={{width: 400}}
43
- />
44
- <Tokenizer
45
- label="Error message"
46
- placeholder="Search people..."
47
- searchSource={userSource}
48
- value={errorValue}
49
- onChange={items => setErrorValue(items)}
50
- isRequired
51
- status={{type: 'error', message: 'At least one reviewer is required'}}
52
- containerStyle={{width: 400}}
53
- />
54
- <Tokenizer
55
- label="Warning message"
56
- placeholder="Search people..."
57
- searchSource={userSource}
58
- value={warningValue}
59
- onChange={items => setWarningValue(items)}
60
- status={{
61
- type: 'warning',
62
- message: 'Consider adding at least 2 approvers',
63
- }}
64
- containerStyle={{width: 400}}
65
- />
66
- <Tokenizer
67
- label="Success message"
68
- placeholder="Search people..."
69
- searchSource={userSource}
70
- value={successValue}
71
- onChange={items => setSuccessValue(items)}
72
- status={{type: 'success', message: 'All required reviewers added'}}
73
- containerStyle={{width: 400}}
74
- />
75
- </Stack>
35
+ <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
36
+ <Stack direction="vertical" gap={4}>
37
+ <Tokenizer
38
+ label="Disabled field"
39
+ searchSource={userSource}
40
+ value={[users[0], users[2]]}
41
+ onChange={() => {}}
42
+ isDisabled
43
+ />
44
+ <Tokenizer
45
+ label="Error message"
46
+ placeholder="Search people..."
47
+ searchSource={userSource}
48
+ value={errorValue}
49
+ onChange={items => setErrorValue(items)}
50
+ isRequired
51
+ status={{type: 'error', message: 'At least one reviewer is required'}}
52
+ />
53
+ <Tokenizer
54
+ label="Warning message"
55
+ placeholder="Search people..."
56
+ searchSource={userSource}
57
+ value={warningValue}
58
+ onChange={items => setWarningValue(items)}
59
+ status={{
60
+ type: 'warning',
61
+ message: 'Consider adding at least 2 approvers',
62
+ }}
63
+ />
64
+ <Tokenizer
65
+ label="Success message"
66
+ placeholder="Search people..."
67
+ searchSource={userSource}
68
+ value={successValue}
69
+ onChange={items => setSuccessValue(items)}
70
+ status={{type: 'success', message: 'All required reviewers added'}}
71
+ />
72
+ </Stack>
73
+ </div>
76
74
  );
77
75
  }
@@ -18,8 +18,11 @@ export const doc = {
18
18
  isReady: true,
19
19
  category: 'Tools - Canvas Editor',
20
20
  icons: {
21
+ CaseSensitive: 'textCase',
21
22
  Download: 'download',
22
23
  File: 'file',
24
+ FlipHorizontal2: 'flipHorizontal',
25
+ FlipVertical2: 'flipVertical',
23
26
  Grip: 'drag',
24
27
  Image: 'image',
25
28
  Italic: 'italic',
@@ -27,9 +30,15 @@ export const doc = {
27
30
  LockOpen: 'unlock',
28
31
  Menu: 'menu',
29
32
  Minus: 'remove',
33
+ PanelLeft: 'panelLeft',
34
+ PanelRight: 'panelRight',
30
35
  Plus: 'add',
31
36
  Redo2: 'redo',
37
+ RotateCw: 'rotate',
32
38
  Strikethrough: 'strikethrough',
39
+ TextAlignCenter: 'alignCenter',
40
+ TextAlignEnd: 'alignEnd',
41
+ TextAlignStart: 'alignStart',
33
42
  Underline: 'underline',
34
43
  Undo2: 'undo',
35
44
  X: 'close',