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

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 +354 -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,37 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
4
+ import { cn } from "../../lib/utils.js";
5
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6
+ ScrollAreaPrimitive.Root,
7
+ {
8
+ ref,
9
+ className: cn("scroll-area", className),
10
+ ...props,
11
+ children: [
12
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "scroll-area-viewport", children }),
13
+ /* @__PURE__ */ jsx(ScrollBar, {}),
14
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
15
+ ]
16
+ }
17
+ ));
18
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
19
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
20
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
21
+ {
22
+ ref,
23
+ orientation,
24
+ className: cn(
25
+ "scroll-bar",
26
+ orientation === "vertical" ? "scroll-bar--vertical" : "scroll-bar--horizontal",
27
+ className
28
+ ),
29
+ ...props,
30
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "scroll-bar-thumb" })
31
+ }
32
+ ));
33
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
34
+ export {
35
+ ScrollArea,
36
+ ScrollBar
37
+ };
@@ -0,0 +1,111 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ const iconProps = {
5
+ fill: "none",
6
+ strokeWidth: 1.5,
7
+ strokeLinecap: "round",
8
+ strokeLinejoin: "round",
9
+ "aria-hidden": true
10
+ };
11
+ const SearchIcon = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", ...iconProps, ...props, children: /* @__PURE__ */ jsx(
12
+ "path",
13
+ {
14
+ d: "M15 15L10.3333 10.3333M11.8889 6.44444C11.8889 9.45133 9.45133 11.8889 6.44444 11.8889C3.43756 11.8889 1 9.45133 1 6.44444C1 3.43756 3.43756 1 6.44444 1C9.45133 1 11.8889 3.43756 11.8889 6.44444Z",
15
+ stroke: "currentColor"
16
+ }
17
+ ) });
18
+ const EnterIcon = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", ...iconProps, ...props, children: /* @__PURE__ */ jsx("path", { d: "M9.16667 13.6L15 8L9.16667 2.4M15 8L1 8", stroke: "currentColor" }) });
19
+ const ClearIcon = (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 11.1 11.1", ...iconProps, ...props, children: [
20
+ /* @__PURE__ */ jsx("path", { d: "M10.35 0.75L0.75 10.35", stroke: "currentColor" }),
21
+ /* @__PURE__ */ jsx("path", { d: "M0.75 0.75L10.35 10.35", stroke: "currentColor" })
22
+ ] });
23
+ const SearchFieldV01 = React.forwardRef(
24
+ ({
25
+ className,
26
+ containerClassName,
27
+ state,
28
+ suggestion,
29
+ onClear,
30
+ placeholder = "Placeholder",
31
+ disabled,
32
+ value,
33
+ defaultValue,
34
+ onFocus,
35
+ onBlur,
36
+ onChange,
37
+ ...props
38
+ }, ref) => {
39
+ const [focused, setFocused] = React.useState(false);
40
+ const [internalValue, setInternalValue] = React.useState(
41
+ defaultValue != null ? String(defaultValue) : ""
42
+ );
43
+ const currentValue = value != null ? String(value) : internalValue;
44
+ const hasValue = currentValue.length > 0;
45
+ const resolved = state ?? (disabled ? "disabled" : focused ? hasValue ? "active" : "focus" : hasValue ? "filled" : "default");
46
+ const showSearchIcon = resolved === "default" || resolved === "disabled";
47
+ const showCaret = state != null && (resolved === "focus" || resolved === "active");
48
+ const showTypeahead = resolved === "active" && Boolean(suggestion);
49
+ const showEnter = resolved === "active";
50
+ const showClear = resolved === "filled" && hasValue && Boolean(onClear);
51
+ return /* @__PURE__ */ jsxs(
52
+ "div",
53
+ {
54
+ "data-state": resolved,
55
+ "data-caret": showCaret ? hasValue ? "trailing" : "leading" : void 0,
56
+ className: cn(
57
+ "search-field-v01",
58
+ showTypeahead && "search-field-v01--typeahead",
59
+ containerClassName
60
+ ),
61
+ children: [
62
+ showSearchIcon && /* @__PURE__ */ jsx("span", { className: "search-field-v01-icon-box", children: /* @__PURE__ */ jsx(SearchIcon, { className: "search-field-v01-icon" }) }),
63
+ /* @__PURE__ */ jsxs("span", { className: "search-field-v01-field", children: [
64
+ showCaret && !hasValue && /* @__PURE__ */ jsx("span", { className: "search-field-v01-caret", "aria-hidden": true }),
65
+ /* @__PURE__ */ jsx(
66
+ "input",
67
+ {
68
+ ref,
69
+ type: "search",
70
+ role: "searchbox",
71
+ className: cn("search-field-v01-input", className),
72
+ placeholder,
73
+ disabled: disabled || resolved === "disabled",
74
+ value: value != null ? value : internalValue,
75
+ onFocus: (event) => {
76
+ setFocused(true);
77
+ onFocus == null ? void 0 : onFocus(event);
78
+ },
79
+ onBlur: (event) => {
80
+ setFocused(false);
81
+ onBlur == null ? void 0 : onBlur(event);
82
+ },
83
+ onChange: (event) => {
84
+ if (value == null) setInternalValue(event.target.value);
85
+ onChange == null ? void 0 : onChange(event);
86
+ },
87
+ ...props
88
+ }
89
+ ),
90
+ showCaret && hasValue && /* @__PURE__ */ jsx("span", { className: "search-field-v01-caret", "aria-hidden": true }),
91
+ showTypeahead && /* @__PURE__ */ jsx("span", { className: "search-field-v01-suggestion", "aria-hidden": "true", children: suggestion })
92
+ ] }),
93
+ (showEnter || showClear) && /* @__PURE__ */ jsx("span", { className: "search-field-v01-actions", children: showClear ? /* @__PURE__ */ jsx(
94
+ "button",
95
+ {
96
+ type: "button",
97
+ className: "search-field-v01-clear",
98
+ "aria-label": "Clear search",
99
+ onClick: onClear,
100
+ children: /* @__PURE__ */ jsx(ClearIcon, { className: "search-field-v01-clear-glyph" })
101
+ }
102
+ ) : /* @__PURE__ */ jsx("span", { className: "search-field-v01-enter-box", children: /* @__PURE__ */ jsx(EnterIcon, { className: "search-field-v01-icon" }) }) })
103
+ ]
104
+ }
105
+ );
106
+ }
107
+ );
108
+ SearchFieldV01.displayName = "SearchFieldV01";
109
+ export {
110
+ SearchFieldV01
111
+ };
@@ -0,0 +1,109 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { CommandInput, CommandList, CommandGroup, CommandItem, CommandEmpty } from "./command.js";
3
+ import { Command } from "cmdk";
4
+ import { useRef, useState, useCallback } from "react";
5
+ import { Check } from "lucide-react";
6
+ import { cn } from "../../lib/utils.js";
7
+ const SearchField = ({
8
+ options,
9
+ placeholder,
10
+ emptyMessage,
11
+ value,
12
+ onValueChange,
13
+ disabled,
14
+ isLoading = false
15
+ }) => {
16
+ const inputRef = useRef(null);
17
+ const [isOpen, setOpen] = useState(false);
18
+ const [selected, setSelected] = useState(value);
19
+ const [inputValue, setInputValue] = useState((value == null ? void 0 : value.label) || "");
20
+ const handleKeyDown = useCallback(
21
+ (event) => {
22
+ const input = inputRef.current;
23
+ if (!input) {
24
+ return;
25
+ }
26
+ if (!isOpen) {
27
+ setOpen(true);
28
+ }
29
+ if (event.key === "Enter" && input.value !== "") {
30
+ const optionToSelect = options.find(
31
+ (option) => option.label === input.value
32
+ );
33
+ if (optionToSelect) {
34
+ setSelected(optionToSelect);
35
+ onValueChange == null ? void 0 : onValueChange(optionToSelect);
36
+ }
37
+ }
38
+ if (event.key === "Escape") {
39
+ input.blur();
40
+ }
41
+ },
42
+ [isOpen, options, onValueChange]
43
+ );
44
+ const handleBlur = useCallback(() => {
45
+ setOpen(false);
46
+ setInputValue(selected == null ? void 0 : selected.label);
47
+ }, [selected]);
48
+ const handleSelectOption = useCallback(
49
+ (selectedOption) => {
50
+ setInputValue(selectedOption.label);
51
+ setSelected(selectedOption);
52
+ onValueChange == null ? void 0 : onValueChange(selectedOption);
53
+ setTimeout(() => {
54
+ var _a;
55
+ (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.blur();
56
+ }, 0);
57
+ },
58
+ [onValueChange]
59
+ );
60
+ return /* @__PURE__ */ jsxs(Command, { onKeyDown: handleKeyDown, children: [
61
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
62
+ CommandInput,
63
+ {
64
+ ref: inputRef,
65
+ value: inputValue,
66
+ onValueChange: isLoading ? void 0 : setInputValue,
67
+ onBlur: handleBlur,
68
+ onFocus: () => setOpen(true),
69
+ placeholder,
70
+ disabled,
71
+ className: cn(
72
+ "search-field-input--focused",
73
+ isOpen && "search-field-input--open"
74
+ )
75
+ }
76
+ ) }),
77
+ /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
78
+ "div",
79
+ {
80
+ className: cn("search-field-dropdown", isOpen ? "block" : "hidden"),
81
+ children: /* @__PURE__ */ jsxs(CommandList, { className: "search-field-list", children: [
82
+ (options == null ? void 0 : options.length) > 0 && !isLoading ? /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
83
+ const isSelected = (selected == null ? void 0 : selected.value) === option.value;
84
+ return /* @__PURE__ */ jsxs(
85
+ CommandItem,
86
+ {
87
+ value: option.label,
88
+ onMouseDown: (event) => {
89
+ event.preventDefault();
90
+ event.stopPropagation();
91
+ },
92
+ onSelect: () => handleSelectOption(option),
93
+ children: [
94
+ isSelected ? /* @__PURE__ */ jsx(Check, { className: "icon-4" }) : null,
95
+ option.label
96
+ ]
97
+ },
98
+ option.value
99
+ );
100
+ }) }) : null,
101
+ !isLoading ? /* @__PURE__ */ jsx(CommandEmpty, { className: "search-field-empty", children: emptyMessage }) : null
102
+ ] })
103
+ }
104
+ ) })
105
+ ] });
106
+ };
107
+ export {
108
+ SearchField
109
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils.js";
3
+ function SectionBadge({
4
+ children,
5
+ size = "default",
6
+ className
7
+ }) {
8
+ return /* @__PURE__ */ jsx(
9
+ "span",
10
+ {
11
+ className: cn(
12
+ "section-badge overline-large",
13
+ size === "compact" && "section-badge--compact",
14
+ className
15
+ ),
16
+ children
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ SectionBadge
22
+ };
@@ -0,0 +1,21 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Text } from "./typography.js";
4
+ import { Stack } from "./layout.js";
5
+ const SectionHeading = React.forwardRef(
6
+ ({
7
+ title,
8
+ subtitle,
9
+ titleAs,
10
+ titleVariant = "heading-xxsmall",
11
+ subtitleVariant = "body-base",
12
+ gap = 4
13
+ }, ref) => /* @__PURE__ */ jsxs(Stack, { ref, gap, children: [
14
+ /* @__PURE__ */ jsx(Text, { as: titleAs, variant: titleVariant, className: "section-heading__title", children: title }),
15
+ subtitle ? /* @__PURE__ */ jsx(Text, { variant: subtitleVariant, className: "section-heading__subtitle", children: subtitle }) : null
16
+ ] })
17
+ );
18
+ SectionHeading.displayName = "SectionHeading";
19
+ export {
20
+ SectionHeading
21
+ };
@@ -0,0 +1,96 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as SelectPrimitive from "@radix-ui/react-select";
4
+ import { cn } from "../../lib/utils.js";
5
+ import { UtilityChevronDown } from "../icons/UtilityChevronDown.js";
6
+ const Select = SelectPrimitive.Root;
7
+ const SelectGroup = SelectPrimitive.Group;
8
+ const SelectValue = SelectPrimitive.Value;
9
+ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ SelectPrimitive.Trigger,
11
+ {
12
+ ref,
13
+ className: cn("select-trigger", className),
14
+ ...props,
15
+ children: /* @__PURE__ */ jsxs("div", { className: "select-trigger-inner", children: [
16
+ /* @__PURE__ */ jsx("span", { className: "select-trigger-text font-mazzard body-base", children }),
17
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(UtilityChevronDown, { className: "select-icon" }) })
18
+ ] })
19
+ }
20
+ ));
21
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
22
+ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
23
+ SelectPrimitive.ScrollUpButton,
24
+ {
25
+ ref,
26
+ className: cn("select-scroll-button", className),
27
+ ...props,
28
+ children: /* @__PURE__ */ jsx(UtilityChevronDown, {})
29
+ }
30
+ ));
31
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
32
+ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
33
+ SelectPrimitive.ScrollDownButton,
34
+ {
35
+ ref,
36
+ className: cn("select-scroll-button", className),
37
+ ...props,
38
+ children: /* @__PURE__ */ jsx(UtilityChevronDown, {})
39
+ }
40
+ ));
41
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
42
+ const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
43
+ SelectPrimitive.Content,
44
+ {
45
+ ref,
46
+ className: cn("select-content", className),
47
+ position,
48
+ ...props,
49
+ children: [
50
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
51
+ /* @__PURE__ */ jsx(SelectPrimitive.Viewport, { className: "select-viewport", children }),
52
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
53
+ ]
54
+ }
55
+ ) }));
56
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
57
+ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
58
+ SelectPrimitive.Label,
59
+ {
60
+ ref,
61
+ className: cn("select-label font-mazzard", className),
62
+ ...props
63
+ }
64
+ ));
65
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
66
+ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
67
+ SelectPrimitive.Item,
68
+ {
69
+ ref,
70
+ className: cn("select-item", className),
71
+ ...props,
72
+ children: /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
73
+ }
74
+ ));
75
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
76
+ const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
77
+ SelectPrimitive.Separator,
78
+ {
79
+ ref,
80
+ className: cn("select-separator", className),
81
+ ...props
82
+ }
83
+ ));
84
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
85
+ export {
86
+ Select,
87
+ SelectContent,
88
+ SelectGroup,
89
+ SelectItem,
90
+ SelectLabel,
91
+ SelectScrollDownButton,
92
+ SelectScrollUpButton,
93
+ SelectSeparator,
94
+ SelectTrigger,
95
+ SelectValue
96
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
+ import { cn } from "../../lib/utils.js";
5
+ const Separator = React.forwardRef(
6
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ SeparatorPrimitive.Root,
8
+ {
9
+ ref,
10
+ decorative,
11
+ orientation,
12
+ className: cn(
13
+ "separator",
14
+ orientation === "horizontal" ? "separator--horizontal" : "separator--vertical",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ )
20
+ );
21
+ Separator.displayName = SeparatorPrimitive.Root.displayName;
22
+ export {
23
+ Separator
24
+ };
@@ -0,0 +1,106 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ import { cva } from "class-variance-authority";
4
+ import { X } from "lucide-react";
5
+ import * as React from "react";
6
+ import { cn } from "../../lib/utils.js";
7
+ const Sheet = SheetPrimitive.Root;
8
+ const SheetTrigger = SheetPrimitive.Trigger;
9
+ const SheetClose = SheetPrimitive.Close;
10
+ const SheetPortal = SheetPrimitive.Portal;
11
+ const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
12
+ SheetPrimitive.Overlay,
13
+ {
14
+ className: cn("sheet-overlay", className),
15
+ ...props,
16
+ ref
17
+ }
18
+ ));
19
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
20
+ const sheetVariants = cva(
21
+ "sheet-content",
22
+ {
23
+ variants: {
24
+ side: {
25
+ top: "sheet-content--top",
26
+ bottom: "sheet-content--bottom",
27
+ left: "sheet-content--left",
28
+ right: "sheet-content--right"
29
+ }
30
+ },
31
+ defaultVariants: {
32
+ side: "right"
33
+ }
34
+ }
35
+ );
36
+ const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
37
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
38
+ /* @__PURE__ */ jsxs(
39
+ SheetPrimitive.Content,
40
+ {
41
+ ref,
42
+ className: cn(sheetVariants({ side }), className),
43
+ ...props,
44
+ children: [
45
+ children,
46
+ /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "sheet-close", children: [
47
+ /* @__PURE__ */ jsx(X, { className: "icon-4" }),
48
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
49
+ ] })
50
+ ]
51
+ }
52
+ )
53
+ ] }));
54
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
55
+ const SheetHeader = ({
56
+ className,
57
+ ...props
58
+ }) => /* @__PURE__ */ jsx(
59
+ "div",
60
+ {
61
+ className: cn("sheet-header", className),
62
+ ...props
63
+ }
64
+ );
65
+ SheetHeader.displayName = "SheetHeader";
66
+ const SheetFooter = ({
67
+ className,
68
+ ...props
69
+ }) => /* @__PURE__ */ jsx(
70
+ "div",
71
+ {
72
+ className: cn("sheet-footer", className),
73
+ ...props
74
+ }
75
+ );
76
+ SheetFooter.displayName = "SheetFooter";
77
+ const SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
78
+ SheetPrimitive.Title,
79
+ {
80
+ ref,
81
+ className: cn("sheet-title", className),
82
+ ...props
83
+ }
84
+ ));
85
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
86
+ const SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
87
+ SheetPrimitive.Description,
88
+ {
89
+ ref,
90
+ className: cn("sheet-description", className),
91
+ ...props
92
+ }
93
+ ));
94
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
95
+ export {
96
+ Sheet,
97
+ SheetClose,
98
+ SheetContent,
99
+ SheetDescription,
100
+ SheetFooter,
101
+ SheetHeader,
102
+ SheetOverlay,
103
+ SheetPortal,
104
+ SheetTitle,
105
+ SheetTrigger
106
+ };