@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,177 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../../lib/utils.js";
5
+ import { Text } from "./typography.js";
6
+ const cardVariants = cva("card", {
7
+ variants: {
8
+ variant: {
9
+ default: "card--default",
10
+ outlined: "card--outlined",
11
+ elevated: "card--elevated",
12
+ filled: "card--filled",
13
+ interactive: "card--interactive",
14
+ // A dark, colored promo banner (e.g. the WELL AP credentials page's
15
+ // "WELL Forum" callout) — content on it needs the inverse text tone,
16
+ // same as any other dark surface in the app.
17
+ gradient: "card--gradient",
18
+ /** A bordered 16px-radius panel for a side summary. */
19
+ panel: "card--panel",
20
+ /** A bordered 12px-radius box nested inside a form or another card. */
21
+ inset: "card--inset"
22
+ },
23
+ padding: {
24
+ default: "",
25
+ spacious: "card--padding-spacious",
26
+ compact: "card--padding-compact"
27
+ },
28
+ /** `relaxed` — more air between heading, description and content (dense back-office pages). */
29
+ spacing: {
30
+ default: "",
31
+ relaxed: "card--spacing-relaxed"
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ variant: "default",
36
+ padding: "default",
37
+ spacing: "default"
38
+ }
39
+ });
40
+ const Card = React.forwardRef(
41
+ ({ className, variant, padding, spacing, sticky = false, ...props }, ref) => /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ ref,
45
+ className: cn(
46
+ cardVariants({ variant, padding, spacing }),
47
+ sticky && "card--sticky",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ )
53
+ );
54
+ Card.displayName = "Card";
55
+ const CardHeader = React.forwardRef(({ className, tinted = false, ...props }, ref) => /* @__PURE__ */ jsx(
56
+ "div",
57
+ {
58
+ ref,
59
+ className: cn("card-header", tinted && "card-header--tinted", className),
60
+ ...props
61
+ }
62
+ ));
63
+ CardHeader.displayName = "CardHeader";
64
+ const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
65
+ "h3",
66
+ {
67
+ ref,
68
+ className: cn("card-title heading-xxsmall", className),
69
+ ...props
70
+ }
71
+ ));
72
+ CardTitle.displayName = "CardTitle";
73
+ const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
74
+ "p",
75
+ {
76
+ ref,
77
+ className: cn("card-description body-base", className),
78
+ ...props
79
+ }
80
+ ));
81
+ CardDescription.displayName = "CardDescription";
82
+ const CardContent = React.forwardRef(
83
+ ({ className, tinted = false, pinBottom = false, ...props }, ref) => /* @__PURE__ */ jsx(
84
+ "div",
85
+ {
86
+ ref,
87
+ className: cn(
88
+ "card-content body-base",
89
+ tinted && "card-content--tinted",
90
+ pinBottom && "card-content--pin-bottom",
91
+ className
92
+ ),
93
+ ...props
94
+ }
95
+ )
96
+ );
97
+ CardContent.displayName = "CardContent";
98
+ const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
99
+ "div",
100
+ {
101
+ ref,
102
+ className: cn("card-footer body-base", className),
103
+ ...props
104
+ }
105
+ ));
106
+ CardFooter.displayName = "CardFooter";
107
+ const CardMedia = React.forwardRef(({ className, src, alt = "", height = 200, children, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("card-media", className), style: { height }, ...props, children: src ? /* @__PURE__ */ jsx("img", { src, alt, className: "card-media__img" }) : children }));
108
+ CardMedia.displayName = "CardMedia";
109
+ const CardBadge = React.forwardRef(
110
+ ({ className, color = "default", ...props }, ref) => /* @__PURE__ */ jsx(
111
+ "span",
112
+ {
113
+ ref,
114
+ className: cn("card-badge", `card-badge--${color}`, className),
115
+ ...props
116
+ }
117
+ )
118
+ );
119
+ CardBadge.displayName = "CardBadge";
120
+ const CardActions = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("card-actions", className), ...props }));
121
+ CardActions.displayName = "CardActions";
122
+ const Swatch = React.forwardRef(
123
+ ({ className, tone = "primary", size = "md", ...props }, ref) => /* @__PURE__ */ jsx(
124
+ "div",
125
+ {
126
+ ref,
127
+ className: cn("swatch", `swatch--${tone}`, `swatch--${size}`, className),
128
+ ...props
129
+ }
130
+ )
131
+ );
132
+ Swatch.displayName = "Swatch";
133
+ const CardMetric = React.forwardRef(
134
+ ({ className, value, label, trend, trendValue, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("card-metric", className), ...props, children: [
135
+ /* @__PURE__ */ jsx("span", { className: "card-metric__value", children: value }),
136
+ /* @__PURE__ */ jsx("span", { className: "card-metric__label", children: label }),
137
+ trend && trendValue && /* @__PURE__ */ jsxs("span", { className: cn("card-metric__trend", `card-metric__trend--${trend}`), children: [
138
+ trend === "up" ? "↑" : trend === "down" ? "↓" : "→",
139
+ " ",
140
+ trendValue
141
+ ] })
142
+ ] })
143
+ );
144
+ CardMetric.displayName = "CardMetric";
145
+ const CardWithIcon = React.forwardRef(
146
+ ({ icon: Icon, title, description, onClick }, ref) => /* @__PURE__ */ jsxs(
147
+ Card,
148
+ {
149
+ ref,
150
+ variant: "interactive",
151
+ className: "card-with-icon",
152
+ onClick,
153
+ children: [
154
+ /* @__PURE__ */ jsxs("div", { className: "card-with-icon__header", children: [
155
+ Icon && /* @__PURE__ */ jsx(Icon, { className: "card-with-icon__icon" }),
156
+ /* @__PURE__ */ jsx(Text, { as: "h3", variant: "overline-large", children: title })
157
+ ] }),
158
+ /* @__PURE__ */ jsx(Text, { as: "p", variant: "body-base", children: description })
159
+ ]
160
+ }
161
+ )
162
+ );
163
+ CardWithIcon.displayName = "CardWithIcon";
164
+ export {
165
+ Card,
166
+ CardActions,
167
+ CardBadge,
168
+ CardContent,
169
+ CardDescription,
170
+ CardFooter,
171
+ CardHeader,
172
+ CardMedia,
173
+ CardMetric,
174
+ CardTitle,
175
+ CardWithIcon,
176
+ Swatch
177
+ };
@@ -0,0 +1,198 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import useEmblaCarousel from "embla-carousel-react";
4
+ import { ArrowRight, ArrowLeft } from "lucide-react";
5
+ import { cn } from "../../lib/utils.js";
6
+ import { Button } from "./button.js";
7
+ const CarouselContext = React.createContext(null);
8
+ function useCarousel() {
9
+ const context = React.useContext(CarouselContext);
10
+ if (!context) {
11
+ throw new Error("useCarousel must be used within a <Carousel />");
12
+ }
13
+ return context;
14
+ }
15
+ const Carousel = React.forwardRef(
16
+ ({
17
+ orientation = "horizontal",
18
+ opts,
19
+ setApi,
20
+ plugins,
21
+ className,
22
+ children,
23
+ ...props
24
+ }, ref) => {
25
+ const [carouselRef, api] = useEmblaCarousel(
26
+ {
27
+ ...opts,
28
+ axis: orientation === "horizontal" ? "x" : "y"
29
+ },
30
+ plugins
31
+ );
32
+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);
33
+ const [canScrollNext, setCanScrollNext] = React.useState(false);
34
+ const onSelect = React.useCallback((api2) => {
35
+ if (!api2) {
36
+ return;
37
+ }
38
+ setCanScrollPrev(api2.canScrollPrev());
39
+ setCanScrollNext(api2.canScrollNext());
40
+ }, []);
41
+ const scrollPrev = React.useCallback(() => {
42
+ api == null ? void 0 : api.scrollPrev();
43
+ }, [api]);
44
+ const scrollNext = React.useCallback(() => {
45
+ api == null ? void 0 : api.scrollNext();
46
+ }, [api]);
47
+ const handleKeyDown = React.useCallback(
48
+ (event) => {
49
+ if (event.key === "ArrowLeft") {
50
+ event.preventDefault();
51
+ scrollPrev();
52
+ } else if (event.key === "ArrowRight") {
53
+ event.preventDefault();
54
+ scrollNext();
55
+ }
56
+ },
57
+ [scrollPrev, scrollNext]
58
+ );
59
+ React.useEffect(() => {
60
+ if (!api || !setApi) {
61
+ return;
62
+ }
63
+ setApi(api);
64
+ }, [api, setApi]);
65
+ React.useEffect(() => {
66
+ if (!api) {
67
+ return;
68
+ }
69
+ onSelect(api);
70
+ api.on("reInit", onSelect);
71
+ api.on("select", onSelect);
72
+ return () => {
73
+ api == null ? void 0 : api.off("select", onSelect);
74
+ };
75
+ }, [api, onSelect]);
76
+ return /* @__PURE__ */ jsx(
77
+ CarouselContext.Provider,
78
+ {
79
+ value: {
80
+ carouselRef,
81
+ api,
82
+ opts,
83
+ orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
84
+ scrollPrev,
85
+ scrollNext,
86
+ canScrollPrev,
87
+ canScrollNext
88
+ },
89
+ children: /* @__PURE__ */ jsx(
90
+ "div",
91
+ {
92
+ ref,
93
+ onKeyDownCapture: handleKeyDown,
94
+ className: cn("carousel", className),
95
+ role: "region",
96
+ "aria-roledescription": "carousel",
97
+ ...props,
98
+ children
99
+ }
100
+ )
101
+ }
102
+ );
103
+ }
104
+ );
105
+ Carousel.displayName = "Carousel";
106
+ const CarouselContent = React.forwardRef(({ className, ...props }, ref) => {
107
+ const { carouselRef, orientation } = useCarousel();
108
+ return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "carousel-viewport", children: /* @__PURE__ */ jsx(
109
+ "div",
110
+ {
111
+ ref,
112
+ className: cn(
113
+ "carousel-content",
114
+ orientation === "horizontal" ? "carousel-content--horizontal" : "carousel-content--vertical",
115
+ className
116
+ ),
117
+ ...props
118
+ }
119
+ ) });
120
+ });
121
+ CarouselContent.displayName = "CarouselContent";
122
+ const CarouselItem = React.forwardRef(({ className, ...props }, ref) => {
123
+ const { orientation } = useCarousel();
124
+ return /* @__PURE__ */ jsx(
125
+ "div",
126
+ {
127
+ ref,
128
+ role: "group",
129
+ "aria-roledescription": "slide",
130
+ className: cn(
131
+ "carousel-item",
132
+ orientation === "horizontal" ? "carousel-item--horizontal" : "carousel-item--vertical",
133
+ className
134
+ ),
135
+ ...props
136
+ }
137
+ );
138
+ });
139
+ CarouselItem.displayName = "CarouselItem";
140
+ const CarouselPrevious = React.forwardRef(
141
+ ({ className, variant = "general-secondary", size = "icon", ...props }, ref) => {
142
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
143
+ return /* @__PURE__ */ jsxs(
144
+ Button,
145
+ {
146
+ ref,
147
+ variant,
148
+ size,
149
+ className: cn(
150
+ "carousel-button carousel-button--previous",
151
+ orientation === "horizontal" ? "carousel-button--horizontal" : "carousel-button--vertical",
152
+ className
153
+ ),
154
+ disabled: !canScrollPrev,
155
+ onClick: scrollPrev,
156
+ ...props,
157
+ children: [
158
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "icon-4" }),
159
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
160
+ ]
161
+ }
162
+ );
163
+ }
164
+ );
165
+ CarouselPrevious.displayName = "CarouselPrevious";
166
+ const CarouselNext = React.forwardRef(
167
+ ({ className, variant = "general-secondary", size = "icon", ...props }, ref) => {
168
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
169
+ return /* @__PURE__ */ jsxs(
170
+ Button,
171
+ {
172
+ ref,
173
+ variant,
174
+ size,
175
+ className: cn(
176
+ "carousel-button carousel-button--next",
177
+ orientation === "horizontal" ? "carousel-button--horizontal" : "carousel-button--vertical",
178
+ className
179
+ ),
180
+ disabled: !canScrollNext,
181
+ onClick: scrollNext,
182
+ ...props,
183
+ children: [
184
+ /* @__PURE__ */ jsx(ArrowRight, { className: "icon-4" }),
185
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
186
+ ]
187
+ }
188
+ );
189
+ }
190
+ );
191
+ CarouselNext.displayName = "CarouselNext";
192
+ export {
193
+ Carousel,
194
+ CarouselContent,
195
+ CarouselItem,
196
+ CarouselNext,
197
+ CarouselPrevious
198
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ const CenteredPage = React.forwardRef(
5
+ ({ as: Component = "main", className, children, ...props }, ref) => /* @__PURE__ */ jsx(Component, { ref, className: cn("centered-page", className), ...props, children: /* @__PURE__ */ jsx("div", { className: "centered-page__body", children }) })
6
+ );
7
+ CenteredPage.displayName = "CenteredPage";
8
+ export {
9
+ CenteredPage
10
+ };
@@ -0,0 +1,239 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as RechartsPrimitive from "recharts";
4
+ import { cn } from "../../lib/utils.js";
5
+ const THEMES = { light: "", dark: ".dark" };
6
+ const ChartContext = React.createContext(null);
7
+ function useChart() {
8
+ const context = React.useContext(ChartContext);
9
+ if (!context) {
10
+ throw new Error("useChart must be used within a <ChartContainer />");
11
+ }
12
+ return context;
13
+ }
14
+ const ChartContainer = React.forwardRef(({ id, className, children, config, ...props }, ref) => {
15
+ const uniqueId = React.useId();
16
+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
17
+ return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
18
+ "div",
19
+ {
20
+ "data-chart": chartId,
21
+ ref,
22
+ className: cn(
23
+ "chart-container",
24
+ className
25
+ ),
26
+ ...props,
27
+ children: [
28
+ /* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
29
+ /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, { children })
30
+ ]
31
+ }
32
+ ) });
33
+ });
34
+ ChartContainer.displayName = "Chart";
35
+ const ChartStyle = ({ id, config }) => {
36
+ const colorConfig = Object.entries(config).filter(
37
+ ([_, config2]) => config2.theme || config2.color
38
+ );
39
+ if (!colorConfig.length) {
40
+ return null;
41
+ }
42
+ return /* @__PURE__ */ jsx(
43
+ "style",
44
+ {
45
+ dangerouslySetInnerHTML: {
46
+ __html: Object.entries(THEMES).map(
47
+ ([theme, prefix]) => `
48
+ ${prefix} [data-chart=${id}] {
49
+ ${colorConfig.map(([key, itemConfig]) => {
50
+ var _a;
51
+ const color = ((_a = itemConfig.theme) == null ? void 0 : _a[theme]) || itemConfig.color;
52
+ return color ? ` --color-${key}: ${color};` : null;
53
+ }).join("\n")}
54
+ }
55
+ `
56
+ ).join("\n")
57
+ }
58
+ }
59
+ );
60
+ };
61
+ const ChartTooltip = RechartsPrimitive.Tooltip;
62
+ const ChartTooltipContent = React.forwardRef(
63
+ ({
64
+ active,
65
+ payload,
66
+ className,
67
+ indicator = "dot",
68
+ hideLabel = false,
69
+ hideIndicator = false,
70
+ label,
71
+ labelFormatter,
72
+ labelClassName,
73
+ formatter,
74
+ color,
75
+ nameKey,
76
+ labelKey
77
+ }, ref) => {
78
+ const { config } = useChart();
79
+ const tooltipLabel = React.useMemo(() => {
80
+ var _a;
81
+ if (hideLabel || !(payload == null ? void 0 : payload.length)) {
82
+ return null;
83
+ }
84
+ const [item] = payload;
85
+ const key = `${labelKey || item.dataKey || item.name || "value"}`;
86
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
87
+ const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
88
+ if (labelFormatter) {
89
+ return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: labelFormatter(value, payload) });
90
+ }
91
+ if (!value) {
92
+ return null;
93
+ }
94
+ return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: value });
95
+ }, [
96
+ label,
97
+ labelFormatter,
98
+ payload,
99
+ hideLabel,
100
+ labelClassName,
101
+ config,
102
+ labelKey
103
+ ]);
104
+ if (!active || !(payload == null ? void 0 : payload.length)) {
105
+ return null;
106
+ }
107
+ const nestLabel = payload.length === 1 && indicator !== "dot";
108
+ return /* @__PURE__ */ jsxs(
109
+ "div",
110
+ {
111
+ ref,
112
+ className: cn(
113
+ "chart-tooltip",
114
+ className
115
+ ),
116
+ children: [
117
+ !nestLabel ? tooltipLabel : null,
118
+ /* @__PURE__ */ jsx("div", { className: "chart-tooltip-content", children: payload.map((item, index) => {
119
+ const key = `${nameKey || item.name || item.dataKey || "value"}`;
120
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
121
+ const indicatorColor = color || item.payload.fill || item.color;
122
+ return /* @__PURE__ */ jsx(
123
+ "div",
124
+ {
125
+ className: cn(
126
+ "chart-tooltip-item",
127
+ indicator === "dot" && "chart-tooltip-item--dot"
128
+ ),
129
+ children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [
130
+ (itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx(
131
+ "div",
132
+ {
133
+ className: cn(
134
+ "chart-tooltip-indicator",
135
+ {
136
+ "chart-tooltip-indicator--dot": indicator === "dot",
137
+ "chart-tooltip-indicator--line": indicator === "line",
138
+ "chart-tooltip-indicator--dashed": indicator === "dashed",
139
+ "chart-tooltip-indicator--dashed-nested": nestLabel && indicator === "dashed"
140
+ }
141
+ ),
142
+ style: {
143
+ "--color-bg": indicatorColor,
144
+ "--color-border": indicatorColor
145
+ }
146
+ }
147
+ ),
148
+ /* @__PURE__ */ jsxs(
149
+ "div",
150
+ {
151
+ className: cn(
152
+ "chart-tooltip-item-content",
153
+ nestLabel ? "chart-tooltip-item-content--nested" : ""
154
+ ),
155
+ children: [
156
+ /* @__PURE__ */ jsxs("div", { className: "chart-tooltip-item-details", children: [
157
+ nestLabel ? tooltipLabel : null,
158
+ /* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-label", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
159
+ ] }),
160
+ item.value && /* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-value", children: item.value.toLocaleString() })
161
+ ]
162
+ }
163
+ )
164
+ ] })
165
+ },
166
+ item.dataKey
167
+ );
168
+ }) })
169
+ ]
170
+ }
171
+ );
172
+ }
173
+ );
174
+ ChartTooltipContent.displayName = "ChartTooltip";
175
+ const ChartLegend = RechartsPrimitive.Legend;
176
+ const ChartLegendContent = React.forwardRef(
177
+ ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
178
+ const { config } = useChart();
179
+ if (!(payload == null ? void 0 : payload.length)) {
180
+ return null;
181
+ }
182
+ return /* @__PURE__ */ jsx(
183
+ "div",
184
+ {
185
+ ref,
186
+ className: cn(
187
+ "chart-legend",
188
+ verticalAlign === "top" ? "chart-legend--top" : "chart-legend--bottom",
189
+ className
190
+ ),
191
+ children: payload.map((item) => {
192
+ const key = `${nameKey || item.dataKey || "value"}`;
193
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
194
+ return /* @__PURE__ */ jsxs(
195
+ "div",
196
+ {
197
+ className: "chart-legend-item",
198
+ children: [
199
+ (itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx(
200
+ "div",
201
+ {
202
+ className: "chart-legend-indicator",
203
+ style: {
204
+ backgroundColor: item.color
205
+ }
206
+ }
207
+ ),
208
+ itemConfig == null ? void 0 : itemConfig.label
209
+ ]
210
+ },
211
+ item.value
212
+ );
213
+ })
214
+ }
215
+ );
216
+ }
217
+ );
218
+ ChartLegendContent.displayName = "ChartLegend";
219
+ function getPayloadConfigFromPayload(config, payload, key) {
220
+ if (typeof payload !== "object" || payload === null) {
221
+ return void 0;
222
+ }
223
+ const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
224
+ let configLabelKey = key;
225
+ if (key in payload && typeof payload[key] === "string") {
226
+ configLabelKey = payload[key];
227
+ } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
228
+ configLabelKey = payloadPayload[key];
229
+ }
230
+ return configLabelKey in config ? config[configLabelKey] : config[key];
231
+ }
232
+ export {
233
+ ChartContainer,
234
+ ChartLegend,
235
+ ChartLegendContent,
236
+ ChartStyle,
237
+ ChartTooltip,
238
+ ChartTooltipContent
239
+ };
@@ -0,0 +1,39 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ import { Checkbox } from "./checkbox.js";
5
+ const CheckboxField = React.forwardRef(({ className, label, description, id, disabled, ...props }, ref) => {
6
+ const generatedId = React.useId();
7
+ const fieldId = id ?? generatedId;
8
+ const descriptionId = description ? `${fieldId}-description` : void 0;
9
+ return /* @__PURE__ */ jsxs(
10
+ "div",
11
+ {
12
+ className: cn(
13
+ "checkbox-field",
14
+ disabled && "checkbox-field--disabled",
15
+ className
16
+ ),
17
+ children: [
18
+ /* @__PURE__ */ jsx(
19
+ Checkbox,
20
+ {
21
+ ref,
22
+ id: fieldId,
23
+ disabled,
24
+ "aria-describedby": descriptionId,
25
+ ...props
26
+ }
27
+ ),
28
+ /* @__PURE__ */ jsxs("div", { className: "checkbox-field__text", children: [
29
+ /* @__PURE__ */ jsx("label", { htmlFor: fieldId, className: "checkbox-field__label", children: label }),
30
+ description ? /* @__PURE__ */ jsx("span", { id: descriptionId, className: "checkbox-field__description", children: description }) : null
31
+ ] })
32
+ ]
33
+ }
34
+ );
35
+ });
36
+ CheckboxField.displayName = "CheckboxField";
37
+ export {
38
+ CheckboxField
39
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
+ import { UtilityCheck } from "../icons/UtilityCheck.js";
5
+ import { cn } from "../../lib/utils.js";
6
+ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ CheckboxPrimitive.Root,
8
+ {
9
+ ref,
10
+ className: cn("checkbox", className),
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx("span", { className: "checkbox-indicator", children: /* @__PURE__ */ jsx(UtilityCheck, {}) })
13
+ }
14
+ ));
15
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
16
+ export {
17
+ Checkbox
18
+ };