@syscore/ui-library 2.0.0-beta-publish-workflow-beta.16 → 2.0.0-beta-publish-workflow-beta.18

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 (269) hide show
  1. package/client/components/icons/IconUtility.tsx +353 -0
  2. package/client/components/icons/X.tsx +4 -3
  3. package/client/components/ui/alert-v02.tsx +2 -6
  4. package/client/components/ui/button-v01.tsx +2 -12
  5. package/client/components/ui/button.tsx +39 -3
  6. package/client/components/ui/dropdown.tsx +2 -12
  7. package/client/components/ui/navigation.tsx +25 -4
  8. package/client/components/ui/radio-v01.tsx +84 -0
  9. package/client/components/ui/search-field-v01.tsx +10 -28
  10. package/client/components/ui/section-heading.tsx +1 -1
  11. package/client/components/ui/sign-in-field-v01.tsx +150 -0
  12. package/client/global.css +363 -73
  13. package/client/lib/system-icons.ts +1583 -0
  14. package/client/lib/utility-icons.ts +121 -0
  15. package/client/ui/Button.stories.tsx +63 -0
  16. package/client/ui/Colors.stories.tsx +34 -31
  17. package/client/ui/Icons.stories.tsx +179 -0
  18. package/client/ui/RadioGroup/RadioGroup.stories.tsx +1 -1
  19. package/client/ui/RadioV01/RadioV01.stories.tsx +136 -0
  20. package/client/ui/SearchField/SearchField.stories.tsx +4 -1
  21. package/client/ui/TextAreaV01/TextAreaV01.stories.tsx +23 -2
  22. package/client/ui/TextFieldV01/PasswordFieldV01.stories.tsx +25 -11
  23. package/client/ui/TextFieldV01/SignInFieldV01.stories.tsx +196 -0
  24. package/dist/client/assets/alert/icon-clear.svg.js +4 -0
  25. package/dist/client/assets/alert/icon-done.svg.js +4 -0
  26. package/dist/client/assets/avatar-identity/placeholder-icon.svg.js +4 -0
  27. package/dist/client/assets/breadcrumb/icon-ellipsis.svg.js +4 -0
  28. package/dist/client/assets/breadcrumb/icon-home.svg.js +4 -0
  29. package/dist/client/assets/breadcrumb/icon-separator.svg.js +4 -0
  30. package/dist/client/assets/button-v01/icon-back.svg.js +4 -0
  31. package/dist/client/assets/button-v01/icon-check.svg.js +4 -0
  32. package/dist/client/assets/button-v01/icon-close.svg.js +4 -0
  33. package/dist/client/assets/button-v01/icon-delete.svg.js +4 -0
  34. package/dist/client/assets/button-v01/icon-device.svg.js +4 -0
  35. package/dist/client/assets/dropdown/icon-carrot-contract.svg.js +4 -0
  36. package/dist/client/assets/dropdown/icon-carrot-expand.svg.js +4 -0
  37. package/dist/client/assets/dropdown/icon-clear.svg.js +4 -0
  38. package/dist/client/assets/dropdown/icon-enter.svg.js +4 -0
  39. package/dist/client/components/icons/AlphaIcon.js +129 -0
  40. package/dist/client/components/icons/ConceptIcons.js +905 -0
  41. package/dist/client/components/icons/IconUtility.js +410 -0
  42. package/dist/client/components/icons/NavAccount.js +37 -0
  43. package/dist/client/components/icons/NavBullet.js +17 -0
  44. package/dist/client/components/icons/NavLogo.js +48 -0
  45. package/dist/client/components/icons/StandardLogo.js +93 -0
  46. package/dist/client/components/icons/UtilityAccordion.js +27 -0
  47. package/dist/client/components/icons/UtilityChangeType.js +26 -0
  48. package/dist/client/components/icons/UtilityCheck.js +28 -0
  49. package/dist/client/components/icons/UtilityChevronDown.js +39 -0
  50. package/dist/client/components/icons/UtilityClassification.js +53 -0
  51. package/dist/client/components/icons/UtilityClearRegular.js +51 -0
  52. package/dist/client/components/icons/UtilityClose.js +49 -0
  53. package/dist/client/components/icons/UtilityCompare.js +91 -0
  54. package/dist/client/components/icons/UtilityDrag.js +89 -0
  55. package/dist/client/components/icons/UtilityEdit.js +50 -0
  56. package/dist/client/components/icons/UtilityFeedback.js +38 -0
  57. package/dist/client/components/icons/UtilityHome.js +34 -0
  58. package/dist/client/components/icons/UtilityMessage.js +41 -0
  59. package/dist/client/components/icons/UtilityOptions.js +53 -0
  60. package/dist/client/components/icons/UtilityPortfolio.js +116 -0
  61. package/dist/client/components/icons/UtilityReset.js +49 -0
  62. package/dist/client/components/icons/UtilityRevisionsHide.js +76 -0
  63. package/dist/client/components/icons/UtilityRevisionsShow.js +56 -0
  64. package/dist/client/components/icons/UtilitySave.js +38 -0
  65. package/dist/client/components/icons/UtilityScopeLarge.js +123 -0
  66. package/dist/client/components/icons/UtilityScoring.js +51 -0
  67. package/dist/client/components/icons/UtilitySearch.js +46 -0
  68. package/dist/client/components/icons/UtilityShow.js +49 -0
  69. package/dist/client/components/icons/UtilitySort.js +63 -0
  70. package/dist/client/components/icons/UtilityTarget.js +29 -0
  71. package/dist/client/components/icons/UtilityTargetActive.js +48 -0
  72. package/dist/client/components/icons/UtilityText.js +59 -0
  73. package/dist/client/components/icons/UtilityTrash.js +66 -0
  74. package/dist/client/components/icons/UtilityTriangleInfo.js +38 -0
  75. package/dist/client/components/icons/X.js +40 -0
  76. package/dist/client/components/icons/achievement-badges/BadgeCertificationBronze.js +144 -0
  77. package/dist/client/components/icons/achievement-badges/BadgeCertificationGold.js +144 -0
  78. package/dist/client/components/icons/achievement-badges/BadgeCertificationPlatinum.js +144 -0
  79. package/dist/client/components/icons/achievement-badges/BadgeCertificationSilver.js +144 -0
  80. package/dist/client/components/icons/achievement-badges/BadgeRatingCoworking.js +91 -0
  81. package/dist/client/components/icons/achievement-badges/BadgeRatingDesign.js +91 -0
  82. package/dist/client/components/icons/achievement-badges/BadgeRatingEquity.js +91 -0
  83. package/dist/client/components/icons/achievement-badges/BadgeRatingHealthySafety.js +93 -0
  84. package/dist/client/components/icons/achievement-badges/BadgeRatingOperations.js +93 -0
  85. package/dist/client/components/icons/achievement-badges/BadgeRatingPerformance.js +93 -0
  86. package/dist/client/components/icons/achievement-badges/BadgeRatingRealEstate.js +93 -0
  87. package/dist/client/components/icons/achievement-badges/BadgeRatingResidential.js +93 -0
  88. package/dist/client/components/icons/achievement-badges/BadgeRatingWorkforce.js +91 -0
  89. package/dist/client/components/icons/imperative-badges/BadgeImperativePrimary.js +58 -0
  90. package/dist/client/components/icons/imperative-badges/BadgeImperativeSecondary.js +69 -0
  91. package/dist/client/components/icons/provider-badges/BadgeEnterpriseProvider.js +117 -0
  92. package/dist/client/components/icons/provider-badges/BadgePerformanceTestingProvider.js +124 -0
  93. package/dist/client/components/icons/provider-badges/BadgeProductProvider.js +117 -0
  94. package/dist/client/components/icons/provider-badges/BadgeSurveyProvider.js +117 -0
  95. package/dist/client/components/icons/provider-seals/SealEnterpriseProvider.js +100 -0
  96. package/dist/client/components/icons/provider-seals/SealPerformanceTestingProvider.js +100 -0
  97. package/dist/client/components/icons/provider-seals/SealProductProvider.js +98 -0
  98. package/dist/client/components/icons/provider-seals/SealProviders.js +98 -0
  99. package/dist/client/components/icons/provider-seals/SealSurveyProvider.js +98 -0
  100. package/dist/client/components/icons/seals/IWBILogo.js +301 -0
  101. package/dist/client/components/icons/seals/SealCertification.js +206 -0
  102. package/dist/client/components/icons/seals/SealCertificationBronze.js +140 -0
  103. package/dist/client/components/icons/seals/SealCertificationGold.js +140 -0
  104. package/dist/client/components/icons/seals/SealCertificationPlatinum.js +140 -0
  105. package/dist/client/components/icons/seals/SealCertificationSilver.js +140 -0
  106. package/dist/client/components/icons/seals/SealIwbiMember.js +134 -0
  107. package/dist/client/components/icons/seals/SealRating.js +157 -0
  108. package/dist/client/components/icons/seals/SealRatingCoworking.js +89 -0
  109. package/dist/client/components/icons/seals/SealRatingDesign.js +89 -0
  110. package/dist/client/components/icons/seals/SealRatingEquity.js +89 -0
  111. package/dist/client/components/icons/seals/SealRatingHealthSafety.js +91 -0
  112. package/dist/client/components/icons/seals/SealRatingOperations.js +89 -0
  113. package/dist/client/components/icons/seals/SealRatingPerformance.js +91 -0
  114. package/dist/client/components/icons/seals/SealRatingRealEstate.js +89 -0
  115. package/dist/client/components/icons/seals/SealRatingWorkforce.js +89 -0
  116. package/dist/client/components/icons/seals/SealWell.js +132 -0
  117. package/dist/client/components/icons/seals/SealWellCertification.js +225 -0
  118. package/dist/client/components/icons/seals/SealWellCommunity.js +197 -0
  119. package/dist/client/components/icons/seals/SealWellResidence.js +197 -0
  120. package/dist/client/components/icons/seals/SealWorksWithWell.js +227 -0
  121. package/dist/client/components/icons/seals/WaterMarkWWWProducts.js +27 -0
  122. package/dist/client/components/icons/seals/WaterMarkWellProjects.js +36 -0
  123. package/dist/client/components/icons/seals/WatermarkMemberOrg.js +24 -0
  124. package/dist/client/components/ui/accordion.js +326 -0
  125. package/dist/client/components/ui/alert-dialog-panel.js +156 -0
  126. package/dist/client/components/ui/alert-dialog.js +103 -0
  127. package/dist/client/components/ui/alert-v02.js +157 -0
  128. package/dist/client/components/ui/alert.js +55 -0
  129. package/dist/client/components/ui/app-bar.js +203 -0
  130. package/dist/client/components/ui/aspect-ratio.js +5 -0
  131. package/dist/client/components/ui/avatar-identity.js +93 -0
  132. package/dist/client/components/ui/avatar.js +56 -0
  133. package/dist/client/components/ui/back-link.js +27 -0
  134. package/dist/client/components/ui/banner.js +75 -0
  135. package/dist/client/components/ui/bottom-navigation.js +127 -0
  136. package/dist/client/components/ui/breadcrumb-trail.js +137 -0
  137. package/dist/client/components/ui/breadcrumb.js +91 -0
  138. package/dist/client/components/ui/button-v01.js +173 -0
  139. package/dist/client/components/ui/button.js +99 -0
  140. package/dist/client/components/ui/calendar.js +62 -0
  141. package/dist/client/components/ui/card.js +177 -0
  142. package/dist/client/components/ui/carousel.js +198 -0
  143. package/dist/client/components/ui/centered-page.js +10 -0
  144. package/dist/client/components/ui/chart.js +239 -0
  145. package/dist/client/components/ui/checkbox-field.js +39 -0
  146. package/dist/client/components/ui/checkbox.js +18 -0
  147. package/dist/client/components/ui/code-badge.js +29 -0
  148. package/dist/client/components/ui/collapsible.js +9 -0
  149. package/dist/client/components/ui/command.js +79 -0
  150. package/dist/client/components/ui/context-menu.js +138 -0
  151. package/dist/client/components/ui/copy.js +39 -0
  152. package/dist/client/components/ui/credit-card-preview.js +74 -0
  153. package/dist/client/components/ui/data-grid.js +156 -0
  154. package/dist/client/components/ui/date-picker.js +142 -0
  155. package/dist/client/components/ui/dialog.js +179 -0
  156. package/dist/client/components/ui/drawer.js +95 -0
  157. package/dist/client/components/ui/drop-zone.js +87 -0
  158. package/dist/client/components/ui/dropdown-menu.js +139 -0
  159. package/dist/client/components/ui/dropdown.js +339 -0
  160. package/dist/client/components/ui/empty-state.js +76 -0
  161. package/dist/client/components/ui/field-group.js +32 -0
  162. package/dist/client/components/ui/file-upload-trigger.js +70 -0
  163. package/dist/client/components/ui/file-upload.js +171 -0
  164. package/dist/client/components/ui/footer.js +97 -0
  165. package/dist/client/components/ui/form.js +109 -0
  166. package/dist/client/components/ui/height-container.js +41 -0
  167. package/dist/client/components/ui/hero-section.js +44 -0
  168. package/dist/client/components/ui/hero-split-image.js +45 -0
  169. package/dist/client/components/ui/hover-card.js +22 -0
  170. package/dist/client/components/ui/icon-button.js +30 -0
  171. package/dist/client/components/ui/inline-notice.js +19 -0
  172. package/dist/client/components/ui/input-otp.js +46 -0
  173. package/dist/client/components/ui/input.js +37 -0
  174. package/dist/client/components/ui/label.js +31 -0
  175. package/dist/client/components/ui/labeled-divider.js +23 -0
  176. package/dist/client/components/ui/layout.js +724 -0
  177. package/dist/client/components/ui/menubar.js +157 -0
  178. package/dist/client/components/ui/meta-row.js +19 -0
  179. package/dist/client/components/ui/mobile-nav.js +230 -0
  180. package/dist/client/components/ui/modal-panel.js +116 -0
  181. package/dist/client/components/ui/navigation-menu.js +89 -0
  182. package/dist/client/components/ui/navigation.js +452 -0
  183. package/dist/client/components/ui/outline-node.js +57 -0
  184. package/dist/client/components/ui/page-header.js +79 -0
  185. package/dist/client/components/ui/pagination-v01.js +124 -0
  186. package/dist/client/components/ui/pagination.js +105 -0
  187. package/dist/client/components/ui/password-field-v01.js +46 -0
  188. package/dist/client/components/ui/pill-button.js +34 -0
  189. package/dist/client/components/ui/popover.js +22 -0
  190. package/dist/client/components/ui/price-tag.js +20 -0
  191. package/dist/client/components/ui/profile-avatar.js +92 -0
  192. package/dist/client/components/ui/progress.js +23 -0
  193. package/dist/client/components/ui/radio-card.js +30 -0
  194. package/dist/client/components/ui/radio-group.js +32 -0
  195. package/dist/client/components/ui/radio-v01.js +58 -0
  196. package/dist/client/components/ui/resizable.js +32 -0
  197. package/dist/client/components/ui/resource-thumbnail.js +24 -0
  198. package/dist/client/components/ui/scroll-area.js +37 -0
  199. package/dist/client/components/ui/search-field-v01.js +111 -0
  200. package/dist/client/components/ui/search.js +109 -0
  201. package/dist/client/components/ui/section-badge.js +22 -0
  202. package/dist/client/components/ui/section-heading.js +21 -0
  203. package/dist/client/components/ui/select.js +96 -0
  204. package/dist/client/components/ui/separator.js +24 -0
  205. package/dist/client/components/ui/sheet.js +106 -0
  206. package/dist/client/components/ui/side-nav.js +173 -0
  207. package/dist/client/components/ui/sidebar.js +580 -0
  208. package/dist/client/components/ui/sign-in-field-v01.js +107 -0
  209. package/dist/client/components/ui/skeleton.js +17 -0
  210. package/dist/client/components/ui/slider.js +20 -0
  211. package/dist/client/components/ui/social-button.js +34 -0
  212. package/dist/client/components/ui/standard-navigation.js +454 -0
  213. package/dist/client/components/ui/status-pill.js +42 -0
  214. package/dist/client/components/ui/stepper.js +111 -0
  215. package/dist/client/components/ui/switch-v01.js +39 -0
  216. package/dist/client/components/ui/switch.js +17 -0
  217. package/dist/client/components/ui/system-bar.js +76 -0
  218. package/dist/client/components/ui/table.js +107 -0
  219. package/dist/client/components/ui/tabs-v01.js +74 -0
  220. package/dist/client/components/ui/tabs.js +253 -0
  221. package/dist/client/components/ui/tag-v02.js +85 -0
  222. package/dist/client/components/ui/tag.js +73 -0
  223. package/dist/client/components/ui/text-area-v01.js +26 -0
  224. package/dist/client/components/ui/text-field-v01.js +78 -0
  225. package/dist/client/components/ui/text-link.js +23 -0
  226. package/dist/client/components/ui/textarea.js +19 -0
  227. package/dist/client/components/ui/timeline.js +87 -0
  228. package/dist/client/components/ui/toast-v01.js +155 -0
  229. package/dist/client/components/ui/toast.js +88 -0
  230. package/dist/client/components/ui/toaster.js +22 -0
  231. package/dist/client/components/ui/toggle.js +56 -0
  232. package/dist/client/components/ui/tooltip.js +328 -0
  233. package/dist/client/components/ui/typography.js +119 -0
  234. package/dist/client/hooks/use-mobile.js +20 -0
  235. package/dist/client/hooks/use-segmented-control.js +32 -0
  236. package/dist/client/hooks/use-tabs.js +22 -0
  237. package/dist/client/hooks/use-toast.js +122 -0
  238. package/dist/client/lib/concept-colors.js +74 -0
  239. package/dist/client/lib/concept-icons.js +32 -0
  240. package/dist/client/lib/utility-icons.js +73 -0
  241. package/dist/client/lib/utils.js +13 -0
  242. package/dist/index.cjs +1 -0
  243. package/dist/index.d.ts +156 -0
  244. package/dist/ui/index.js +774 -0
  245. package/package.json +9 -6
  246. package/dist/index.cjs.js +0 -1
  247. package/dist/index.es.js +0 -18989
  248. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.otf +0 -0
  249. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.ttf +0 -0
  250. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff +0 -0
  251. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff2 +0 -0
  252. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-black.otf +0 -0
  253. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-blackitalic.otf +0 -0
  254. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bold.otf +0 -0
  255. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bolditalic.otf +0 -0
  256. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabold.otf +0 -0
  257. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabolditalic.otf +0 -0
  258. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralight.otf +0 -0
  259. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralightitalic.otf +0 -0
  260. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-italic.otf +0 -0
  261. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-light.otf +0 -0
  262. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-lightitalic.otf +0 -0
  263. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-medium.otf +0 -0
  264. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-mediumitalic.otf +0 -0
  265. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-regular.otf +0 -0
  266. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibold.otf +0 -0
  267. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibolditalic.otf +0 -0
  268. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thin.otf +0 -0
  269. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thinitalic.otf +0 -0
@@ -0,0 +1,121 @@
1
+ import type React from "react";
2
+
3
+ import {
4
+ IconUtilityBack,
5
+ IconUtilityChange,
6
+ IconUtilityChangeHide,
7
+ IconUtilityCheck,
8
+ IconUtilityClose,
9
+ IconUtilityCompare,
10
+ IconUtilityContract,
11
+ IconUtilityDelete,
12
+ IconUtilityEdit,
13
+ IconUtilityExpand,
14
+ IconUtilityHidden,
15
+ IconUtilityHide,
16
+ IconUtilityMappedContent,
17
+ IconUtilityMappedContentHide,
18
+ IconUtilityPreview,
19
+ IconUtilityQuestion,
20
+ IconUtilityReset,
21
+ IconUtilityRevision,
22
+ IconUtilityRevisionHide,
23
+ type IconUtilityProps,
24
+ } from "@/components/icons/IconUtility";
25
+
26
+ /** Utility icons for Button v0.1 `Type=Icon` (keys match Figma `Icon=`). */
27
+ export type UtilityIconName =
28
+ | "close"
29
+ | "check"
30
+ | "back"
31
+ | "delete"
32
+ | "expand"
33
+ | "contract"
34
+ | "edit"
35
+ | "preview"
36
+ | "hide"
37
+ | "hidden"
38
+ | "compare"
39
+ | "revision"
40
+ | "revision-hide"
41
+ | "change"
42
+ | "change-hide"
43
+ | "mapped-content"
44
+ | "mapped-content-hide"
45
+ | "reset"
46
+ | "question";
47
+
48
+ export const UTILITY_ICONS: Record<
49
+ UtilityIconName,
50
+ React.FC<IconUtilityProps>
51
+ > = {
52
+ close: IconUtilityClose,
53
+ check: IconUtilityCheck,
54
+ back: IconUtilityBack,
55
+ delete: IconUtilityDelete,
56
+ expand: IconUtilityExpand,
57
+ contract: IconUtilityContract,
58
+ edit: IconUtilityEdit,
59
+ preview: IconUtilityPreview,
60
+ hide: IconUtilityHide,
61
+ hidden: IconUtilityHidden,
62
+ compare: IconUtilityCompare,
63
+ revision: IconUtilityRevision,
64
+ "revision-hide": IconUtilityRevisionHide,
65
+ change: IconUtilityChange,
66
+ "change-hide": IconUtilityChangeHide,
67
+ "mapped-content": IconUtilityMappedContent,
68
+ "mapped-content-hide": IconUtilityMappedContentHide,
69
+ reset: IconUtilityReset,
70
+ question: IconUtilityQuestion,
71
+ };
72
+
73
+ export const utilityIconOrder: UtilityIconName[] = [
74
+ "close",
75
+ "check",
76
+ "delete",
77
+ "back",
78
+ "expand",
79
+ "contract",
80
+ "edit",
81
+ "preview",
82
+ "hide",
83
+ "hidden",
84
+ "compare",
85
+ "revision",
86
+ "revision-hide",
87
+ "change",
88
+ "change-hide",
89
+ "mapped-content",
90
+ "mapped-content-hide",
91
+ "reset",
92
+ "question",
93
+ ];
94
+
95
+ export const UTILITY_ICON_FIGMA_NAMES: Record<UtilityIconName, string> = {
96
+ close: "icon_utility_clear_regular",
97
+ check: "icon_utility_done",
98
+ back: "icon_utility_clear_regular",
99
+ delete: "(flattened into the button variant)",
100
+ expand: "icon_utility_carrot_expand",
101
+ contract: "icon_utility_carrot_contract",
102
+ edit: "icon_utility_edit",
103
+ preview: "icon_utility_shown",
104
+ hide: "icon_utility_hide",
105
+ hidden: "icon_utility_hidden",
106
+ compare: "icon_utility_compare",
107
+ revision: "icon_utility_revisions_show",
108
+ "revision-hide": "icon_utility_revisions_hide",
109
+ change: "icon_utility_changes_show",
110
+ "change-hide": "icon_utility_changes_hide",
111
+ "mapped-content": "icon_utility_mapped-content_show",
112
+ "mapped-content-hide": "icon_utility_mapped-content_hide",
113
+ reset: "icon_utility_reset",
114
+ question: "icon_utility_question",
115
+ };
116
+
117
+ export function getUtilityIcon(
118
+ name: UtilityIconName,
119
+ ): React.FC<IconUtilityProps> {
120
+ return UTILITY_ICONS[name];
121
+ }
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
+ import { ChevronRight, Save, Trash2 } from "lucide-react";
2
3
  import { Button } from "../components/ui/button";
3
4
  import { UtilityReset } from "../components/icons/UtilityReset";
4
5
  import { UtilityClose } from "../components/icons/UtilityClose";
@@ -28,6 +29,20 @@ const meta = {
28
29
  control: { type: "boolean" },
29
30
  defaultValue: false,
30
31
  },
32
+ icon: {
33
+ control: { type: "select" },
34
+ options: ["none", "chevronRight", "save", "trash2"],
35
+ mapping: {
36
+ none: undefined,
37
+ chevronRight: ChevronRight,
38
+ save: Save,
39
+ trash2: Trash2,
40
+ },
41
+ },
42
+ iconPosition: {
43
+ control: { type: "radio" },
44
+ options: ["leading", "trailing"],
45
+ },
31
46
  },
32
47
  } satisfies Meta<typeof Button>;
33
48
 
@@ -35,6 +50,18 @@ export default meta;
35
50
 
36
51
  type Story = StoryObj<typeof meta>;
37
52
 
53
+ export const Playground: Story = {
54
+ args: {
55
+ variant: "primary-gradient",
56
+ size: "large",
57
+ children: "Button label",
58
+ // @ts-expect-error Storybook icon mapping
59
+ icon: "none",
60
+ iconPosition: "leading",
61
+ },
62
+ render: (args) => <Button {...args} />,
63
+ };
64
+
38
65
  // CTA Buttons Stories
39
66
  export const CTAPrimaryGradient: Story = {
40
67
  render: (args) => (
@@ -280,6 +307,42 @@ export const IconAccount: Story = {
280
307
  ),
281
308
  };
282
309
 
310
+ export const IconLabelTrailing: Story = {
311
+ render: () => (
312
+ <div className="space-y-6">
313
+ <div>
314
+ <p className="text-sm text-gray-600 mb-2">
315
+ Trailing icon — forward/continue action
316
+ </p>
317
+ <Button variant="primary-gradient" size="large" icon={ChevronRight} iconPosition="trailing">
318
+ Continue
319
+ </Button>
320
+ </div>
321
+ </div>
322
+ ),
323
+ };
324
+
325
+ export const IconLabelLeading: Story = {
326
+ render: () => (
327
+ <div className="space-y-6">
328
+ <div>
329
+ <p className="text-sm text-gray-600 mb-2">Leading icon — save action</p>
330
+ <Button variant="general-primary" size="utility" icon={Save}>
331
+ Save
332
+ </Button>
333
+ </div>
334
+ <div>
335
+ <p className="text-sm text-gray-600 mb-2">
336
+ Leading icon — destructive/remove action
337
+ </p>
338
+ <Button variant="danger-secondary" size="utility" icon={Trash2}>
339
+ Remove
340
+ </Button>
341
+ </div>
342
+ </div>
343
+ ),
344
+ };
345
+
283
346
  // All Variants Overview
284
347
  export const AllVariants: Story = {
285
348
  render: () => (
@@ -61,7 +61,7 @@ const ColorRow = ({
61
61
  <div className="w-[200px] flex items-start pt-1">
62
62
  <span className="text-sm font-medium text-gray-900">{label}</span>
63
63
  </div>
64
- <div className="flex gap-4 flex-1">
64
+ <div className="flex flex-wrap gap-4 flex-1">
65
65
  {colors.map((color) => (
66
66
  <ColorSwatch
67
67
  key={color.name}
@@ -279,7 +279,7 @@ export const Default: Story = {
279
279
  },
280
280
  {
281
281
  name: "cyan-600",
282
- color: "#149ebd",
282
+ color: "#109bbb",
283
283
  shade: "600",
284
284
  className: "bg-cyan-600",
285
285
  },
@@ -698,7 +698,7 @@ export const Default: Story = {
698
698
  colors: [
699
699
  {
700
700
  name: "gold-50",
701
- color: "#fefdfb",
701
+ color: "#fefefb",
702
702
  shade: "50",
703
703
  className: "bg-gold-50",
704
704
  },
@@ -846,43 +846,43 @@ export const Default: Story = {
846
846
  },
847
847
  {
848
848
  name: "beige-300",
849
- color: "#e2d7d0",
849
+ color: "#e3dbd6",
850
850
  shade: "300",
851
851
  className: "bg-beige-300",
852
852
  },
853
853
  {
854
854
  name: "beige-400",
855
- color: "#d2c2b6",
855
+ color: "#d3cac4",
856
856
  shade: "400",
857
857
  className: "bg-beige-400",
858
858
  },
859
859
  {
860
860
  name: "beige-500",
861
- color: "#c1aa9a",
861
+ color: "#c1b6af",
862
862
  shade: "500",
863
863
  className: "bg-beige-500",
864
864
  },
865
865
  {
866
866
  name: "beige-600",
867
- color: "#b59a87",
867
+ color: "#b4a9a1",
868
868
  shade: "600",
869
869
  className: "bg-beige-600",
870
870
  },
871
871
  {
872
872
  name: "beige-700",
873
- color: "#a5856e",
873
+ color: "#a79a92",
874
874
  shade: "700",
875
875
  className: "bg-beige-700",
876
876
  },
877
877
  {
878
878
  name: "beige-800",
879
- color: "#8b6c56",
879
+ color: "#8e837b",
880
880
  shade: "800",
881
881
  className: "bg-beige-800",
882
882
  },
883
883
  {
884
884
  name: "beige-900",
885
- color: "#685140",
885
+ color: "#716962",
886
886
  shade: "900",
887
887
  className: "bg-beige-900",
888
888
  },
@@ -901,13 +901,18 @@ export const Default: Story = {
901
901
  { name: "nourishment", color: "#17AA8D" },
902
902
  { name: "sound", color: "#0C705C" },
903
903
  { name: "materials", color: "#0A4F41" },
904
+ { name: "innovation", color: "#52545D" },
904
905
  ];
905
906
 
906
907
  const ratingsColors = [
907
908
  { name: "health-safety", color: "#72ABD9" },
909
+ { name: "operations", color: "#3481C1" },
908
910
  { name: "performance", color: "#0F748A" },
909
911
  { name: "equity", color: "#17AA8D" },
910
- { name: "coworking", color: "#9A608C" },
912
+ { name: "coworking", color: "#BF78AE" },
913
+ { name: "workforce", color: "#9A608C" },
914
+ { name: "design", color: "#E67357" },
915
+ { name: "real-estate", color: "#71747D" },
911
916
  ];
912
917
 
913
918
  return (
@@ -945,26 +950,24 @@ export const Default: Story = {
945
950
  </span>
946
951
  </div>
947
952
  <div className="flex-1 space-y-4">
948
- {/* First row */}
949
- <div className="flex gap-4">
950
- {conceptsColors.slice(0, 5).map((color) => (
951
- <ColorSwatch
952
- key={color.name}
953
- name={color.name}
954
- color={color.color}
955
- />
956
- ))}
957
- </div>
958
- {/* Second row */}
959
- <div className="flex gap-4">
960
- {conceptsColors.slice(5, 10).map((color) => (
961
- <ColorSwatch
962
- key={color.name}
963
- name={color.name}
964
- color={color.color}
965
- />
966
- ))}
967
- </div>
953
+ {/* Rows of five. Derived from the array so adding a concept
954
+ cannot silently fall outside a hard-coded slice. */}
955
+ {Array.from(
956
+ { length: Math.ceil(conceptsColors.length / 5) },
957
+ (_, row) => (
958
+ <div className="flex gap-4" key={row}>
959
+ {conceptsColors
960
+ .slice(row * 5, row * 5 + 5)
961
+ .map((color) => (
962
+ <ColorSwatch
963
+ key={color.name}
964
+ name={color.name}
965
+ color={color.color}
966
+ />
967
+ ))}
968
+ </div>
969
+ ),
970
+ )}
968
971
  </div>
969
972
  </div>
970
973
  <ColorRow label="Ratings" colors={ratingsColors} />
@@ -14,6 +14,8 @@ import {
14
14
  import { NavLogo } from "../components/icons/NavLogo";
15
15
  import { NavAccount } from "../components/icons/NavAccount";
16
16
  import { NavBullet } from "../components/icons/NavBullet";
17
+ import { UTILITY_ICONS } from "../lib/utility-icons";
18
+ import type { UtilityIconName } from "../lib/utility-icons";
17
19
  import { UtilityAccordion } from "../components/icons/UtilityAccordion";
18
20
  import { UtilityChevronDown } from "../components/icons/UtilityChevronDown";
19
21
  import { UtilityClassification } from "../components/icons/UtilityClassification";
@@ -92,6 +94,25 @@ import {
92
94
  BadgeRatingResidential,
93
95
  } from "../components/icons/achievement-badges";
94
96
 
97
+ import * as LucideIcons from "lucide-react";
98
+ import type { LucideIcon } from "lucide-react";
99
+ import {
100
+ SYSTEM_ICON_NAMES,
101
+ SYSTEM_ICON_SIZE,
102
+ SYSTEM_ICON_STROKE_WIDTH,
103
+ SYSTEM_ICON_COLOR,
104
+ toLucideName,
105
+ } from "../lib/system-icons";
106
+
107
+ /** Every Figma icon paired with its `lucide-react` component. */
108
+ const systemIcons: { name: string; Icon: LucideIcon }[] =
109
+ SYSTEM_ICON_NAMES.flatMap((name) => {
110
+ const Icon = (
111
+ LucideIcons as unknown as Record<string, LucideIcon | undefined>
112
+ )[toLucideName(name)];
113
+ return Icon ? [{ name, Icon }] : [];
114
+ });
115
+
95
116
  const meta = {
96
117
  title: "Components/Icons",
97
118
  tags: ["autodocs"],
@@ -499,3 +520,161 @@ export const ImperativeBadges: Story = {
499
520
  </div>
500
521
  ),
501
522
  };
523
+
524
+ export const SystemIcons: Story = {
525
+ render: () => (
526
+ <div className="space-y-8 p-8">
527
+ <div>
528
+ <h2 className="text-2xl font-bold mb-6">System Icons</h2>
529
+ <div
530
+ className="grid gap-x-4 gap-y-6"
531
+ style={{
532
+ gridTemplateColumns: "repeat(auto-fill, minmax(120px, 1fr))",
533
+ }}
534
+ >
535
+ {systemIcons.map(({ name, Icon }) => (
536
+ <div key={name} className="flex flex-col items-center gap-2">
537
+ <Icon
538
+ size={SYSTEM_ICON_SIZE}
539
+ strokeWidth={SYSTEM_ICON_STROKE_WIDTH}
540
+ color={SYSTEM_ICON_COLOR}
541
+ aria-label={name}
542
+ />
543
+ <span className="text-[11px] leading-tight text-center text-gray-600 break-words">
544
+ {name}
545
+ </span>
546
+ </div>
547
+ ))}
548
+ </div>
549
+ </div>
550
+ </div>
551
+ ),
552
+ };
553
+
554
+ // Button utility icons — Figma frame layout (x = column, y = row).
555
+
556
+ type FigmaIconButton = {
557
+ node: string;
558
+ x: number;
559
+ y: number;
560
+ state: string;
561
+ icon: UtilityIconName;
562
+ theme: "light" | "danger" | "success" | "transparent";
563
+ };
564
+
565
+ const figmaIconButtons: FigmaIconButton[] = [
566
+ { node: "11982:164", x: 2790, y: 40, state: "Default", icon: "close", theme: "light" },
567
+ { node: "11982:202", x: 2790, y: 104, state: "Active", icon: "close", theme: "transparent" },
568
+ { node: "11982:207", x: 2790, y: 168, state: "Active", icon: "close", theme: "danger" },
569
+ { node: "12928:9305", x: 2790, y: 224, state: "hover", icon: "close", theme: "light" },
570
+
571
+ { node: "11982:243", x: 2892, y: 40, state: "Default", icon: "check", theme: "light" },
572
+ { node: "11982:248", x: 2892, y: 104, state: "Active", icon: "check", theme: "transparent" },
573
+ { node: "11982:253", x: 2892, y: 168, state: "Active", icon: "check", theme: "success" },
574
+ { node: "12928:9317", x: 2892, y: 224, state: "hove", icon: "check", theme: "light" },
575
+
576
+ { node: "12393:795", x: 2994, y: 40, state: "Default", icon: "delete", theme: "light" },
577
+ { node: "12393:811", x: 2994, y: 104, state: "Active", icon: "delete", theme: "transparent" },
578
+ { node: "12393:817", x: 2994, y: 168, state: "Active", icon: "delete", theme: "danger" },
579
+ { node: "12928:9321", x: 2994, y: 224, state: "hover", icon: "delete", theme: "light" },
580
+
581
+ { node: "12395:865", x: 3096, y: 40, state: "Default", icon: "back", theme: "light" },
582
+ { node: "12395:875", x: 3096, y: 104, state: "Active", icon: "back", theme: "transparent" },
583
+ { node: "12928:9323", x: 3096, y: 222, state: "hover", icon: "back", theme: "light" },
584
+
585
+ { node: "12926:9250", x: 3198, y: 40, state: "Default", icon: "expand", theme: "light" },
586
+ { node: "12928:9328", x: 3198, y: 104, state: "hover", icon: "expand", theme: "light" },
587
+ { node: "12926:9264", x: 3198, y: 168, state: "Default", icon: "contract", theme: "light" },
588
+ { node: "12928:9331", x: 3198, y: 222, state: "hover", icon: "contract", theme: "light" },
589
+
590
+ { node: "12926:9270", x: 3287, y: 40, state: "Default", icon: "edit", theme: "light" },
591
+ { node: "12928:9334", x: 3287, y: 104, state: "hover", icon: "edit", theme: "light" },
592
+
593
+ { node: "12926:9280", x: 3389, y: 40, state: "Default", icon: "preview", theme: "light" },
594
+ { node: "12929:9347", x: 3389, y: 104, state: "hover", icon: "preview", theme: "light" },
595
+ { node: "12926:9289", x: 3389, y: 168, state: "Default", icon: "hide", theme: "light" },
596
+ { node: "12929:9339", x: 3389, y: 222, state: "hover", icon: "hide", theme: "light" },
597
+ { node: "12929:9391", x: 3389, y: 286, state: "Default", icon: "hidden", theme: "light" },
598
+ { node: "12929:9403", x: 3389, y: 350, state: "Hover", icon: "hidden", theme: "light" },
599
+
600
+ { node: "12929:9361", x: 3490, y: 40, state: "Default", icon: "compare", theme: "light" },
601
+ { node: "12929:9375", x: 3490, y: 104, state: "Hover", icon: "compare", theme: "light" },
602
+
603
+ { node: "12935:9410", x: 3593, y: 40, state: "Default", icon: "revision", theme: "light" },
604
+ { node: "12935:9420", x: 3593, y: 103, state: "hover", icon: "revision", theme: "light" },
605
+ { node: "12935:9425", x: 3593, y: 165, state: "Default", icon: "revision-hide", theme: "light" },
606
+ { node: "12935:9430", x: 3593, y: 222, state: "hover", icon: "revision-hide", theme: "light" },
607
+
608
+ { node: "12947:9451", x: 3695, y: 40, state: "Default", icon: "change", theme: "light" },
609
+ { node: "12947:9515", x: 3695, y: 103, state: "Hover", icon: "change", theme: "light" },
610
+ { node: "12947:9460", x: 3695, y: 165, state: "Default", icon: "change-hide", theme: "light" },
611
+ { node: "12947:9519", x: 3695, y: 222, state: "Hover", icon: "change-hide", theme: "light" },
612
+
613
+ { node: "12947:9471", x: 3796, y: 40, state: "Default", icon: "mapped-content", theme: "light" },
614
+ { node: "12947:9526", x: 3796, y: 103, state: "Hover", icon: "mapped-content", theme: "light" },
615
+ { node: "12947:9484", x: 3796, y: 165, state: "Default", icon: "mapped-content-hide", theme: "light" },
616
+ { node: "12947:9534", x: 3796, y: 222, state: "Hover", icon: "mapped-content-hide", theme: "light" },
617
+
618
+ { node: "12947:9500", x: 3899, y: 40, state: "Default", icon: "reset", theme: "light" },
619
+ { node: "12947:9510", x: 3899, y: 103, state: "Hover", icon: "reset", theme: "light" },
620
+ ];
621
+
622
+ const themeClass = {
623
+ light: "button-v01--icon-light",
624
+ danger: "button-v01--icon-danger",
625
+ success: "button-v01--icon-success",
626
+ transparent: "button-v01--icon-transparent",
627
+ } as const;
628
+
629
+ const iconButtonColumns = [...new Set(figmaIconButtons.map((b) => b.x))]
630
+ .sort((a, b) => a - b)
631
+ .map((x) => ({
632
+ x,
633
+ items: figmaIconButtons.filter((b) => b.x === x).sort((a, b) => a.y - b.y),
634
+ }));
635
+
636
+ const IconButtonSpecimen = ({ item }: { item: FigmaIconButton }) => {
637
+ const Icon = UTILITY_ICONS[item.icon];
638
+ const isHover = item.state.toLowerCase().startsWith("hov");
639
+ return (
640
+ <div className="flex flex-col items-center gap-1.5">
641
+ <span
642
+ className={`button-v01 button-v01--icon ${themeClass[item.theme]}`}
643
+ data-figma-state={isHover ? "hover" : undefined}
644
+ >
645
+ <Icon />
646
+ </span>
647
+ <span
648
+ className="text-center text-[11px] leading-tight"
649
+ style={{ color: "var(--color-gray-600)" }}
650
+ >
651
+ {item.icon}
652
+ <br />
653
+ {item.state === "Active" ? item.theme : item.state}
654
+ </span>
655
+ </div>
656
+ );
657
+ };
658
+
659
+ export const ButtonUtilityIcons: Story = {
660
+ name: "Button Utility Icons",
661
+ render: () => (
662
+ <div className="p-8">
663
+ <h2
664
+ className="text-2xl font-bold mb-6"
665
+ style={{ color: "var(--color-gray-900)" }}
666
+ >
667
+ Button Utility Icons
668
+ </h2>
669
+ <div className="flex gap-6 overflow-x-auto pb-2">
670
+ {iconButtonColumns.map((column) => (
671
+ <div key={column.x} className="flex flex-col gap-4">
672
+ {column.items.map((item) => (
673
+ <IconButtonSpecimen key={item.node} item={item} />
674
+ ))}
675
+ </div>
676
+ ))}
677
+ </div>
678
+ </div>
679
+ ),
680
+ };
@@ -4,7 +4,7 @@ import { Label } from "../../components/ui/label";
4
4
  import { useState } from "react";
5
5
 
6
6
  const meta = {
7
- title: "Components/RadioGroup",
7
+ title: "Draft/Radio Legacy",
8
8
  component: RadioGroup,
9
9
  tags: ["autodocs"],
10
10
  parameters: {