@syscore/ui-library 2.0.0-beta-publish-workflow-beta.15 → 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 (271) 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 +10 -12
  7. package/client/components/ui/form.tsx +1 -1
  8. package/client/components/ui/label.tsx +21 -4
  9. package/client/components/ui/navigation.tsx +25 -4
  10. package/client/components/ui/radio-v01.tsx +84 -0
  11. package/client/components/ui/search-field-v01.tsx +10 -28
  12. package/client/components/ui/section-heading.tsx +1 -1
  13. package/client/components/ui/sign-in-field-v01.tsx +150 -0
  14. package/client/global.css +358 -73
  15. package/client/lib/system-icons.ts +1583 -0
  16. package/client/lib/utility-icons.ts +121 -0
  17. package/client/ui/Button.stories.tsx +63 -0
  18. package/client/ui/Colors.stories.tsx +34 -31
  19. package/client/ui/Icons.stories.tsx +179 -0
  20. package/client/ui/RadioGroup/RadioGroup.stories.tsx +1 -1
  21. package/client/ui/RadioV01/RadioV01.stories.tsx +136 -0
  22. package/client/ui/SearchField/SearchField.stories.tsx +4 -1
  23. package/client/ui/TextAreaV01/TextAreaV01.stories.tsx +23 -2
  24. package/client/ui/TextFieldV01/PasswordFieldV01.stories.tsx +25 -11
  25. package/client/ui/TextFieldV01/SignInFieldV01.stories.tsx +196 -0
  26. package/dist/client/assets/alert/icon-clear.svg.js +4 -0
  27. package/dist/client/assets/alert/icon-done.svg.js +4 -0
  28. package/dist/client/assets/avatar-identity/placeholder-icon.svg.js +4 -0
  29. package/dist/client/assets/breadcrumb/icon-ellipsis.svg.js +4 -0
  30. package/dist/client/assets/breadcrumb/icon-home.svg.js +4 -0
  31. package/dist/client/assets/breadcrumb/icon-separator.svg.js +4 -0
  32. package/dist/client/assets/button-v01/icon-back.svg.js +4 -0
  33. package/dist/client/assets/button-v01/icon-check.svg.js +4 -0
  34. package/dist/client/assets/button-v01/icon-close.svg.js +4 -0
  35. package/dist/client/assets/button-v01/icon-delete.svg.js +4 -0
  36. package/dist/client/assets/button-v01/icon-device.svg.js +4 -0
  37. package/dist/client/assets/dropdown/icon-carrot-contract.svg.js +4 -0
  38. package/dist/client/assets/dropdown/icon-carrot-expand.svg.js +4 -0
  39. package/dist/client/assets/dropdown/icon-clear.svg.js +4 -0
  40. package/dist/client/assets/dropdown/icon-enter.svg.js +4 -0
  41. package/dist/client/components/icons/AlphaIcon.js +129 -0
  42. package/dist/client/components/icons/ConceptIcons.js +905 -0
  43. package/dist/client/components/icons/IconUtility.js +410 -0
  44. package/dist/client/components/icons/NavAccount.js +37 -0
  45. package/dist/client/components/icons/NavBullet.js +17 -0
  46. package/dist/client/components/icons/NavLogo.js +48 -0
  47. package/dist/client/components/icons/StandardLogo.js +93 -0
  48. package/dist/client/components/icons/UtilityAccordion.js +27 -0
  49. package/dist/client/components/icons/UtilityChangeType.js +26 -0
  50. package/dist/client/components/icons/UtilityCheck.js +28 -0
  51. package/dist/client/components/icons/UtilityChevronDown.js +39 -0
  52. package/dist/client/components/icons/UtilityClassification.js +53 -0
  53. package/dist/client/components/icons/UtilityClearRegular.js +51 -0
  54. package/dist/client/components/icons/UtilityClose.js +49 -0
  55. package/dist/client/components/icons/UtilityCompare.js +91 -0
  56. package/dist/client/components/icons/UtilityDrag.js +89 -0
  57. package/dist/client/components/icons/UtilityEdit.js +50 -0
  58. package/dist/client/components/icons/UtilityFeedback.js +38 -0
  59. package/dist/client/components/icons/UtilityHome.js +34 -0
  60. package/dist/client/components/icons/UtilityMessage.js +41 -0
  61. package/dist/client/components/icons/UtilityOptions.js +53 -0
  62. package/dist/client/components/icons/UtilityPortfolio.js +116 -0
  63. package/dist/client/components/icons/UtilityReset.js +49 -0
  64. package/dist/client/components/icons/UtilityRevisionsHide.js +76 -0
  65. package/dist/client/components/icons/UtilityRevisionsShow.js +56 -0
  66. package/dist/client/components/icons/UtilitySave.js +38 -0
  67. package/dist/client/components/icons/UtilityScopeLarge.js +123 -0
  68. package/dist/client/components/icons/UtilityScoring.js +51 -0
  69. package/dist/client/components/icons/UtilitySearch.js +46 -0
  70. package/dist/client/components/icons/UtilityShow.js +49 -0
  71. package/dist/client/components/icons/UtilitySort.js +63 -0
  72. package/dist/client/components/icons/UtilityTarget.js +29 -0
  73. package/dist/client/components/icons/UtilityTargetActive.js +48 -0
  74. package/dist/client/components/icons/UtilityText.js +59 -0
  75. package/dist/client/components/icons/UtilityTrash.js +66 -0
  76. package/dist/client/components/icons/UtilityTriangleInfo.js +38 -0
  77. package/dist/client/components/icons/X.js +40 -0
  78. package/dist/client/components/icons/achievement-badges/BadgeCertificationBronze.js +144 -0
  79. package/dist/client/components/icons/achievement-badges/BadgeCertificationGold.js +144 -0
  80. package/dist/client/components/icons/achievement-badges/BadgeCertificationPlatinum.js +144 -0
  81. package/dist/client/components/icons/achievement-badges/BadgeCertificationSilver.js +144 -0
  82. package/dist/client/components/icons/achievement-badges/BadgeRatingCoworking.js +91 -0
  83. package/dist/client/components/icons/achievement-badges/BadgeRatingDesign.js +91 -0
  84. package/dist/client/components/icons/achievement-badges/BadgeRatingEquity.js +91 -0
  85. package/dist/client/components/icons/achievement-badges/BadgeRatingHealthySafety.js +93 -0
  86. package/dist/client/components/icons/achievement-badges/BadgeRatingOperations.js +93 -0
  87. package/dist/client/components/icons/achievement-badges/BadgeRatingPerformance.js +93 -0
  88. package/dist/client/components/icons/achievement-badges/BadgeRatingRealEstate.js +93 -0
  89. package/dist/client/components/icons/achievement-badges/BadgeRatingResidential.js +93 -0
  90. package/dist/client/components/icons/achievement-badges/BadgeRatingWorkforce.js +91 -0
  91. package/dist/client/components/icons/imperative-badges/BadgeImperativePrimary.js +58 -0
  92. package/dist/client/components/icons/imperative-badges/BadgeImperativeSecondary.js +69 -0
  93. package/dist/client/components/icons/provider-badges/BadgeEnterpriseProvider.js +117 -0
  94. package/dist/client/components/icons/provider-badges/BadgePerformanceTestingProvider.js +124 -0
  95. package/dist/client/components/icons/provider-badges/BadgeProductProvider.js +117 -0
  96. package/dist/client/components/icons/provider-badges/BadgeSurveyProvider.js +117 -0
  97. package/dist/client/components/icons/provider-seals/SealEnterpriseProvider.js +100 -0
  98. package/dist/client/components/icons/provider-seals/SealPerformanceTestingProvider.js +100 -0
  99. package/dist/client/components/icons/provider-seals/SealProductProvider.js +98 -0
  100. package/dist/client/components/icons/provider-seals/SealProviders.js +98 -0
  101. package/dist/client/components/icons/provider-seals/SealSurveyProvider.js +98 -0
  102. package/dist/client/components/icons/seals/IWBILogo.js +301 -0
  103. package/dist/client/components/icons/seals/SealCertification.js +206 -0
  104. package/dist/client/components/icons/seals/SealCertificationBronze.js +140 -0
  105. package/dist/client/components/icons/seals/SealCertificationGold.js +140 -0
  106. package/dist/client/components/icons/seals/SealCertificationPlatinum.js +140 -0
  107. package/dist/client/components/icons/seals/SealCertificationSilver.js +140 -0
  108. package/dist/client/components/icons/seals/SealIwbiMember.js +134 -0
  109. package/dist/client/components/icons/seals/SealRating.js +157 -0
  110. package/dist/client/components/icons/seals/SealRatingCoworking.js +89 -0
  111. package/dist/client/components/icons/seals/SealRatingDesign.js +89 -0
  112. package/dist/client/components/icons/seals/SealRatingEquity.js +89 -0
  113. package/dist/client/components/icons/seals/SealRatingHealthSafety.js +91 -0
  114. package/dist/client/components/icons/seals/SealRatingOperations.js +89 -0
  115. package/dist/client/components/icons/seals/SealRatingPerformance.js +91 -0
  116. package/dist/client/components/icons/seals/SealRatingRealEstate.js +89 -0
  117. package/dist/client/components/icons/seals/SealRatingWorkforce.js +89 -0
  118. package/dist/client/components/icons/seals/SealWell.js +132 -0
  119. package/dist/client/components/icons/seals/SealWellCertification.js +225 -0
  120. package/dist/client/components/icons/seals/SealWellCommunity.js +197 -0
  121. package/dist/client/components/icons/seals/SealWellResidence.js +197 -0
  122. package/dist/client/components/icons/seals/SealWorksWithWell.js +227 -0
  123. package/dist/client/components/icons/seals/WaterMarkWWWProducts.js +27 -0
  124. package/dist/client/components/icons/seals/WaterMarkWellProjects.js +36 -0
  125. package/dist/client/components/icons/seals/WatermarkMemberOrg.js +24 -0
  126. package/dist/client/components/ui/accordion.js +326 -0
  127. package/dist/client/components/ui/alert-dialog-panel.js +156 -0
  128. package/dist/client/components/ui/alert-dialog.js +103 -0
  129. package/dist/client/components/ui/alert-v02.js +157 -0
  130. package/dist/client/components/ui/alert.js +55 -0
  131. package/dist/client/components/ui/app-bar.js +203 -0
  132. package/dist/client/components/ui/aspect-ratio.js +5 -0
  133. package/dist/client/components/ui/avatar-identity.js +93 -0
  134. package/dist/client/components/ui/avatar.js +56 -0
  135. package/dist/client/components/ui/back-link.js +27 -0
  136. package/dist/client/components/ui/banner.js +75 -0
  137. package/dist/client/components/ui/bottom-navigation.js +127 -0
  138. package/dist/client/components/ui/breadcrumb-trail.js +137 -0
  139. package/dist/client/components/ui/breadcrumb.js +91 -0
  140. package/dist/client/components/ui/button-v01.js +173 -0
  141. package/dist/client/components/ui/button.js +99 -0
  142. package/dist/client/components/ui/calendar.js +62 -0
  143. package/dist/client/components/ui/card.js +177 -0
  144. package/dist/client/components/ui/carousel.js +198 -0
  145. package/dist/client/components/ui/centered-page.js +10 -0
  146. package/dist/client/components/ui/chart.js +239 -0
  147. package/dist/client/components/ui/checkbox-field.js +39 -0
  148. package/dist/client/components/ui/checkbox.js +18 -0
  149. package/dist/client/components/ui/code-badge.js +29 -0
  150. package/dist/client/components/ui/collapsible.js +9 -0
  151. package/dist/client/components/ui/command.js +79 -0
  152. package/dist/client/components/ui/context-menu.js +138 -0
  153. package/dist/client/components/ui/copy.js +39 -0
  154. package/dist/client/components/ui/credit-card-preview.js +74 -0
  155. package/dist/client/components/ui/data-grid.js +156 -0
  156. package/dist/client/components/ui/date-picker.js +142 -0
  157. package/dist/client/components/ui/dialog.js +179 -0
  158. package/dist/client/components/ui/drawer.js +95 -0
  159. package/dist/client/components/ui/drop-zone.js +87 -0
  160. package/dist/client/components/ui/dropdown-menu.js +139 -0
  161. package/dist/client/components/ui/dropdown.js +339 -0
  162. package/dist/client/components/ui/empty-state.js +76 -0
  163. package/dist/client/components/ui/field-group.js +32 -0
  164. package/dist/client/components/ui/file-upload-trigger.js +70 -0
  165. package/dist/client/components/ui/file-upload.js +171 -0
  166. package/dist/client/components/ui/footer.js +97 -0
  167. package/dist/client/components/ui/form.js +109 -0
  168. package/dist/client/components/ui/height-container.js +41 -0
  169. package/dist/client/components/ui/hero-section.js +44 -0
  170. package/dist/client/components/ui/hero-split-image.js +45 -0
  171. package/dist/client/components/ui/hover-card.js +22 -0
  172. package/dist/client/components/ui/icon-button.js +30 -0
  173. package/dist/client/components/ui/inline-notice.js +19 -0
  174. package/dist/client/components/ui/input-otp.js +46 -0
  175. package/dist/client/components/ui/input.js +37 -0
  176. package/dist/client/components/ui/label.js +31 -0
  177. package/dist/client/components/ui/labeled-divider.js +23 -0
  178. package/dist/client/components/ui/layout.js +724 -0
  179. package/dist/client/components/ui/menubar.js +157 -0
  180. package/dist/client/components/ui/meta-row.js +19 -0
  181. package/dist/client/components/ui/mobile-nav.js +230 -0
  182. package/dist/client/components/ui/modal-panel.js +116 -0
  183. package/dist/client/components/ui/navigation-menu.js +89 -0
  184. package/dist/client/components/ui/navigation.js +452 -0
  185. package/dist/client/components/ui/outline-node.js +57 -0
  186. package/dist/client/components/ui/page-header.js +79 -0
  187. package/dist/client/components/ui/pagination-v01.js +124 -0
  188. package/dist/client/components/ui/pagination.js +105 -0
  189. package/dist/client/components/ui/password-field-v01.js +46 -0
  190. package/dist/client/components/ui/pill-button.js +34 -0
  191. package/dist/client/components/ui/popover.js +22 -0
  192. package/dist/client/components/ui/price-tag.js +20 -0
  193. package/dist/client/components/ui/profile-avatar.js +92 -0
  194. package/dist/client/components/ui/progress.js +23 -0
  195. package/dist/client/components/ui/radio-card.js +30 -0
  196. package/dist/client/components/ui/radio-group.js +32 -0
  197. package/dist/client/components/ui/radio-v01.js +58 -0
  198. package/dist/client/components/ui/resizable.js +32 -0
  199. package/dist/client/components/ui/resource-thumbnail.js +24 -0
  200. package/dist/client/components/ui/scroll-area.js +37 -0
  201. package/dist/client/components/ui/search-field-v01.js +111 -0
  202. package/dist/client/components/ui/search.js +109 -0
  203. package/dist/client/components/ui/section-badge.js +22 -0
  204. package/dist/client/components/ui/section-heading.js +21 -0
  205. package/dist/client/components/ui/select.js +96 -0
  206. package/dist/client/components/ui/separator.js +24 -0
  207. package/dist/client/components/ui/sheet.js +106 -0
  208. package/dist/client/components/ui/side-nav.js +173 -0
  209. package/dist/client/components/ui/sidebar.js +580 -0
  210. package/dist/client/components/ui/sign-in-field-v01.js +107 -0
  211. package/dist/client/components/ui/skeleton.js +17 -0
  212. package/dist/client/components/ui/slider.js +20 -0
  213. package/dist/client/components/ui/social-button.js +34 -0
  214. package/dist/client/components/ui/standard-navigation.js +454 -0
  215. package/dist/client/components/ui/status-pill.js +42 -0
  216. package/dist/client/components/ui/stepper.js +111 -0
  217. package/dist/client/components/ui/switch-v01.js +39 -0
  218. package/dist/client/components/ui/switch.js +17 -0
  219. package/dist/client/components/ui/system-bar.js +76 -0
  220. package/dist/client/components/ui/table.js +107 -0
  221. package/dist/client/components/ui/tabs-v01.js +74 -0
  222. package/dist/client/components/ui/tabs.js +253 -0
  223. package/dist/client/components/ui/tag-v02.js +85 -0
  224. package/dist/client/components/ui/tag.js +73 -0
  225. package/dist/client/components/ui/text-area-v01.js +26 -0
  226. package/dist/client/components/ui/text-field-v01.js +78 -0
  227. package/dist/client/components/ui/text-link.js +23 -0
  228. package/dist/client/components/ui/textarea.js +19 -0
  229. package/dist/client/components/ui/timeline.js +87 -0
  230. package/dist/client/components/ui/toast-v01.js +155 -0
  231. package/dist/client/components/ui/toast.js +88 -0
  232. package/dist/client/components/ui/toaster.js +22 -0
  233. package/dist/client/components/ui/toggle.js +56 -0
  234. package/dist/client/components/ui/tooltip.js +328 -0
  235. package/dist/client/components/ui/typography.js +119 -0
  236. package/dist/client/hooks/use-mobile.js +20 -0
  237. package/dist/client/hooks/use-segmented-control.js +32 -0
  238. package/dist/client/hooks/use-tabs.js +22 -0
  239. package/dist/client/hooks/use-toast.js +122 -0
  240. package/dist/client/lib/concept-colors.js +74 -0
  241. package/dist/client/lib/concept-icons.js +32 -0
  242. package/dist/client/lib/utility-icons.js +73 -0
  243. package/dist/client/lib/utils.js +13 -0
  244. package/dist/index.cjs +1 -0
  245. package/dist/index.d.ts +159 -0
  246. package/dist/ui/index.js +774 -0
  247. package/package.json +9 -6
  248. package/dist/index.cjs.js +0 -1
  249. package/dist/index.es.js +0 -18973
  250. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.otf +0 -0
  251. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.ttf +0 -0
  252. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff +0 -0
  253. /package/{dist → client}/fonts/FT-Made/FTMade-Regular.woff2 +0 -0
  254. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-black.otf +0 -0
  255. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-blackitalic.otf +0 -0
  256. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bold.otf +0 -0
  257. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-bolditalic.otf +0 -0
  258. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabold.otf +0 -0
  259. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extrabolditalic.otf +0 -0
  260. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralight.otf +0 -0
  261. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-extralightitalic.otf +0 -0
  262. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-italic.otf +0 -0
  263. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-light.otf +0 -0
  264. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-lightitalic.otf +0 -0
  265. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-medium.otf +0 -0
  266. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-mediumitalic.otf +0 -0
  267. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-regular.otf +0 -0
  268. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibold.otf +0 -0
  269. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-semibolditalic.otf +0 -0
  270. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thin.otf +0 -0
  271. /package/{dist → client}/fonts/Mazzard-M/mazzardsoftm-thinitalic.otf +0 -0
@@ -0,0 +1,157 @@
1
+ import { jsxs, jsx, Fragment } 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 { ButtonV01 } from "./button-v01.js";
6
+ import { AvatarIdentity } from "./avatar-identity.js";
7
+ import iconDone from "../../assets/alert/icon-done.svg.js";
8
+ import iconClear from "../../assets/alert/icon-clear.svg.js";
9
+ const alertV02Variants = cva("alert-v02 font-mazzardSoft", {
10
+ variants: {
11
+ variant: {
12
+ solid: "alert-v02--solid",
13
+ subtle: "alert-v02--subtle",
14
+ outline: "alert-v02--outline"
15
+ },
16
+ size: {
17
+ large: "alert-v02--large",
18
+ small: "alert-v02--small"
19
+ },
20
+ color: {
21
+ default: "alert-v02--default",
22
+ success: "alert-v02--success",
23
+ error: "alert-v02--error"
24
+ }
25
+ },
26
+ defaultVariants: {
27
+ variant: "solid",
28
+ size: "large",
29
+ color: "default"
30
+ }
31
+ });
32
+ function MaskIcon$1({
33
+ src,
34
+ className
35
+ }) {
36
+ return /* @__PURE__ */ jsx(
37
+ "span",
38
+ {
39
+ className: cn("alert-v02-mask-icon", className),
40
+ style: {
41
+ WebkitMaskImage: `url("${src}")`,
42
+ maskImage: `url("${src}")`
43
+ },
44
+ "aria-hidden": true
45
+ }
46
+ );
47
+ }
48
+ const AlertV02 = React.forwardRef(
49
+ ({
50
+ className,
51
+ variant = "solid",
52
+ size = "large",
53
+ color = "default",
54
+ indicator = "icon",
55
+ action = true,
56
+ title,
57
+ description,
58
+ confirmLabel = "Confirm",
59
+ cancelLabel = "Cancel",
60
+ onConfirm,
61
+ onCancel,
62
+ onDismiss,
63
+ icon,
64
+ avatar,
65
+ avatarSrc,
66
+ avatarAlt,
67
+ children,
68
+ ...props
69
+ }, ref) => {
70
+ const isLarge = size !== "small";
71
+ const showDescription = isLarge && description != null && description !== "";
72
+ const showCancel = isLarge && action;
73
+ const heading = title ?? children;
74
+ const indicatorNode = indicator === "avatar" ? avatar ?? /* @__PURE__ */ jsx(
75
+ AvatarIdentity,
76
+ {
77
+ className: "alert-v02-avatar",
78
+ size: "medium",
79
+ variant: avatarSrc ? "image" : "placeholder",
80
+ src: avatarSrc,
81
+ alt: avatarAlt,
82
+ showText: false
83
+ }
84
+ ) : icon ?? /* @__PURE__ */ jsx("span", { className: "alert-v02-indicator", children: /* @__PURE__ */ jsx(MaskIcon$1, { src: iconDone, className: "alert-v02-icon-done" }) });
85
+ const dismissButton = /* @__PURE__ */ jsx(
86
+ "button",
87
+ {
88
+ type: "button",
89
+ className: "alert-v02-dismiss",
90
+ "aria-label": "Dismiss",
91
+ onClick: onDismiss,
92
+ children: /* @__PURE__ */ jsx(MaskIcon$1, { src: iconClear, className: "alert-v02-icon-clear" })
93
+ }
94
+ );
95
+ const confirmButton = /* @__PURE__ */ jsx(
96
+ ButtonV01,
97
+ {
98
+ type: "button",
99
+ size: "small",
100
+ typeVariant: "utility",
101
+ hierarchy: "primary",
102
+ appearance: "solid",
103
+ context: "general",
104
+ className: "alert-v02-button",
105
+ onClick: onConfirm,
106
+ children: confirmLabel
107
+ }
108
+ );
109
+ const cancelButton = /* @__PURE__ */ jsx(
110
+ ButtonV01,
111
+ {
112
+ type: "button",
113
+ size: "small",
114
+ typeVariant: "utility",
115
+ hierarchy: "tertiary",
116
+ appearance: "stroke",
117
+ theme: "light",
118
+ context: "general",
119
+ className: "alert-v02-button",
120
+ onClick: onCancel,
121
+ children: cancelLabel
122
+ }
123
+ );
124
+ return /* @__PURE__ */ jsxs(
125
+ "div",
126
+ {
127
+ ref,
128
+ role: "alert",
129
+ className: cn(alertV02Variants({ variant, size, color }), className),
130
+ ...props,
131
+ children: [
132
+ indicatorNode,
133
+ isLarge ? /* @__PURE__ */ jsxs("div", { className: "alert-v02-content", children: [
134
+ /* @__PURE__ */ jsxs("div", { className: "alert-v02-heading", children: [
135
+ /* @__PURE__ */ jsx("h5", { className: "alert-v02-title", children: heading }),
136
+ dismissButton
137
+ ] }),
138
+ showDescription ? /* @__PURE__ */ jsx("div", { className: "alert-v02-description", children: description }) : null,
139
+ action ? /* @__PURE__ */ jsxs("div", { className: "alert-v02-actions", children: [
140
+ confirmButton,
141
+ showCancel ? cancelButton : null
142
+ ] }) : null
143
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
144
+ /* @__PURE__ */ jsx("h5", { className: "alert-v02-title", children: heading }),
145
+ action ? confirmButton : null,
146
+ dismissButton
147
+ ] })
148
+ ]
149
+ }
150
+ );
151
+ }
152
+ );
153
+ AlertV02.displayName = "AlertV02";
154
+ export {
155
+ AlertV02,
156
+ alertV02Variants
157
+ };
@@ -0,0 +1,55 @@
1
+ import { jsx } 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
+ const alertVariants = cva(
6
+ "alert",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "alert--default",
11
+ destructive: "alert--destructive",
12
+ // Neutral help/explainer callout — e.g. the activity-type guidance
13
+ // text on the WELL AP "Report CE hours" form. Blue, not red/coral:
14
+ // informational, not a warning or error.
15
+ info: "alert--info"
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ variant: "default"
20
+ }
21
+ }
22
+ );
23
+ const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
24
+ "div",
25
+ {
26
+ ref,
27
+ role: "alert",
28
+ className: cn(alertVariants({ variant }), className),
29
+ ...props
30
+ }
31
+ ));
32
+ Alert.displayName = "Alert";
33
+ const AlertTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
34
+ "h5",
35
+ {
36
+ ref,
37
+ className: cn("alert-title", className),
38
+ ...props
39
+ }
40
+ ));
41
+ AlertTitle.displayName = "AlertTitle";
42
+ const AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
43
+ "div",
44
+ {
45
+ ref,
46
+ className: cn("alert-description", className),
47
+ ...props
48
+ }
49
+ ));
50
+ AlertDescription.displayName = "AlertDescription";
51
+ export {
52
+ Alert,
53
+ AlertDescription,
54
+ AlertTitle
55
+ };
@@ -0,0 +1,203 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ const DENSITY_HEIGHT = {
5
+ default: 64,
6
+ comfortable: 56,
7
+ compact: 48,
8
+ prominent: 128
9
+ };
10
+ const AppBar = React.forwardRef(
11
+ ({
12
+ className,
13
+ children,
14
+ collapse = false,
15
+ rounded = false,
16
+ elevated = false,
17
+ flat = false,
18
+ position = "fixed",
19
+ color = "default",
20
+ density = "default",
21
+ image,
22
+ imageOverlay,
23
+ style,
24
+ ...props
25
+ }, ref) => {
26
+ const height = DENSITY_HEIGHT[density];
27
+ const isProminent = density === "prominent";
28
+ return /* @__PURE__ */ jsxs(
29
+ "header",
30
+ {
31
+ ref,
32
+ role: "banner",
33
+ style: {
34
+ height: collapse ? void 0 : height,
35
+ ...style
36
+ },
37
+ className: cn(
38
+ "app-bar",
39
+ // position
40
+ position === "fixed" && "app-bar--fixed",
41
+ position === "sticky" && "app-bar--sticky",
42
+ position === "relative" && "app-bar--relative",
43
+ position === "static" && "app-bar--static",
44
+ // color variants
45
+ color === "primary" && "app-bar--primary",
46
+ color === "transparent" && "app-bar--transparent",
47
+ // density
48
+ density === "comfortable" && "app-bar--comfortable",
49
+ density === "compact" && "app-bar--compact",
50
+ isProminent && "app-bar--prominent",
51
+ // modifiers
52
+ rounded && "app-bar--rounded",
53
+ elevated && "app-bar--elevated",
54
+ flat && "app-bar--flat",
55
+ collapse && "app-bar--collapse",
56
+ // image
57
+ image && "app-bar--image",
58
+ className
59
+ ),
60
+ ...props,
61
+ children: [
62
+ image && /* @__PURE__ */ jsx(
63
+ "span",
64
+ {
65
+ className: "app-bar-image-layer",
66
+ style: { backgroundImage: `url(${image})` },
67
+ "aria-hidden": "true",
68
+ children: imageOverlay && /* @__PURE__ */ jsx(
69
+ "span",
70
+ {
71
+ className: "app-bar-image-overlay",
72
+ style: {
73
+ background: `linear-gradient(${imageOverlay})`
74
+ }
75
+ }
76
+ )
77
+ }
78
+ ),
79
+ isProminent ? /* @__PURE__ */ jsx(ProminentLayout, { children }) : children
80
+ ]
81
+ }
82
+ );
83
+ }
84
+ );
85
+ AppBar.displayName = "AppBar";
86
+ const AppBarNavIcon = React.forwardRef(
87
+ ({ className, icon, children, ...props }, ref) => /* @__PURE__ */ jsx(
88
+ "button",
89
+ {
90
+ ref,
91
+ type: "button",
92
+ "aria-label": "Open navigation menu",
93
+ className: cn("app-bar-nav-icon", className),
94
+ ...props,
95
+ children: children ?? icon ?? /* @__PURE__ */ jsx(HamburgerIcon, {})
96
+ }
97
+ )
98
+ );
99
+ AppBarNavIcon.displayName = "AppBarNavIcon";
100
+ const AppBarTitle = React.forwardRef(
101
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
102
+ "div",
103
+ {
104
+ ref,
105
+ className: cn("app-bar-title", className),
106
+ ...props
107
+ }
108
+ )
109
+ );
110
+ AppBarTitle.displayName = "AppBarTitle";
111
+ const AppBarPrepend = React.forwardRef(
112
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
113
+ "div",
114
+ {
115
+ ref,
116
+ className: cn("app-bar-prepend", className),
117
+ ...props
118
+ }
119
+ )
120
+ );
121
+ AppBarPrepend.displayName = "AppBarPrepend";
122
+ const AppBarAppend = React.forwardRef(
123
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
124
+ "div",
125
+ {
126
+ ref,
127
+ className: cn("app-bar-append", className),
128
+ ...props
129
+ }
130
+ )
131
+ );
132
+ AppBarAppend.displayName = "AppBarAppend";
133
+ const AppBarContent = React.forwardRef(
134
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
135
+ "div",
136
+ {
137
+ ref,
138
+ className: cn("app-bar-content", className),
139
+ ...props
140
+ }
141
+ )
142
+ );
143
+ AppBarContent.displayName = "AppBarContent";
144
+ function ProminentLayout({ children }) {
145
+ const kids = React.Children.toArray(children);
146
+ const topKids = kids.filter((child) => {
147
+ if (!React.isValidElement(child)) return false;
148
+ const name = child.type.displayName ?? "";
149
+ return name === "AppBarPrepend" || name === "AppBarAppend";
150
+ });
151
+ const bottomKids = kids.filter((child) => {
152
+ if (!React.isValidElement(child)) return false;
153
+ const name = child.type.displayName ?? "";
154
+ return name === "AppBarTitle" || name === "AppBarContent";
155
+ });
156
+ const otherKids = kids.filter((child) => {
157
+ if (!React.isValidElement(child)) return true;
158
+ const name = child.type.displayName ?? "";
159
+ return ![
160
+ "AppBarPrepend",
161
+ "AppBarAppend",
162
+ "AppBarTitle",
163
+ "AppBarContent"
164
+ ].includes(name);
165
+ });
166
+ return /* @__PURE__ */ jsxs("span", { className: "app-bar-prominent-inner", children: [
167
+ /* @__PURE__ */ jsxs("span", { className: "app-bar-prominent-top", children: [
168
+ topKids,
169
+ otherKids
170
+ ] }),
171
+ /* @__PURE__ */ jsx("span", { className: "app-bar-prominent-bottom", children: bottomKids })
172
+ ] });
173
+ }
174
+ function HamburgerIcon() {
175
+ return /* @__PURE__ */ jsxs(
176
+ "svg",
177
+ {
178
+ xmlns: "http://www.w3.org/2000/svg",
179
+ width: "24",
180
+ height: "24",
181
+ viewBox: "0 0 24 24",
182
+ fill: "none",
183
+ stroke: "currentColor",
184
+ strokeWidth: "2",
185
+ strokeLinecap: "round",
186
+ strokeLinejoin: "round",
187
+ "aria-hidden": "true",
188
+ children: [
189
+ /* @__PURE__ */ jsx("line", { x1: "4", y1: "6", x2: "20", y2: "6" }),
190
+ /* @__PURE__ */ jsx("line", { x1: "4", y1: "12", x2: "20", y2: "12" }),
191
+ /* @__PURE__ */ jsx("line", { x1: "4", y1: "18", x2: "20", y2: "18" })
192
+ ]
193
+ }
194
+ );
195
+ }
196
+ export {
197
+ AppBar,
198
+ AppBarAppend,
199
+ AppBarContent,
200
+ AppBarNavIcon,
201
+ AppBarPrepend,
202
+ AppBarTitle
203
+ };
@@ -0,0 +1,5 @@
1
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
+ const AspectRatio = AspectRatioPrimitive.Root;
3
+ export {
4
+ AspectRatio
5
+ };
@@ -0,0 +1,93 @@
1
+ import { jsxs, jsx } 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 placeholderIcon from "../../assets/avatar-identity/placeholder-icon.svg.js";
6
+ const avatarIdentityVariants = cva("avatar-identity", {
7
+ variants: {
8
+ size: {
9
+ xlarge: "avatar-identity--xlarge",
10
+ large: "avatar-identity--large",
11
+ medium: "avatar-identity--medium"
12
+ },
13
+ textDirection: {
14
+ right: "avatar-identity--right",
15
+ left: "avatar-identity--left"
16
+ },
17
+ /** `soft` — a table-row identity: pale initials disc, no ring, name over a quieter email. */
18
+ appearance: {
19
+ default: "",
20
+ soft: "avatar-identity--soft"
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ size: "xlarge",
25
+ textDirection: "right",
26
+ appearance: "default"
27
+ }
28
+ });
29
+ function initialsFromName(name) {
30
+ return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]).join("").toUpperCase();
31
+ }
32
+ const AvatarIdentity = React.forwardRef(
33
+ ({
34
+ className,
35
+ size,
36
+ textDirection,
37
+ appearance,
38
+ variant = "placeholder",
39
+ name = "",
40
+ email = "",
41
+ initials,
42
+ icon,
43
+ src,
44
+ alt,
45
+ showText = true,
46
+ ...props
47
+ }, ref) => {
48
+ const face = variant === "image" && !src ? "placeholder" : variant;
49
+ const letters = (initials || initialsFromName(name) || "JD").slice(0, 2);
50
+ return /* @__PURE__ */ jsxs(
51
+ "div",
52
+ {
53
+ ref,
54
+ className: cn(
55
+ avatarIdentityVariants({ size, textDirection, appearance }),
56
+ className
57
+ ),
58
+ ...props,
59
+ children: [
60
+ /* @__PURE__ */ jsxs("div", { className: "avatar-identity__face", "data-face": face, children: [
61
+ face === "image" && src ? /* @__PURE__ */ jsx(
62
+ "img",
63
+ {
64
+ className: "avatar-identity__photo",
65
+ src,
66
+ alt: alt || name
67
+ }
68
+ ) : null,
69
+ face === "initials" ? /* @__PURE__ */ jsx("span", { className: "avatar-identity__initials", "aria-hidden": showText, children: icon ?? letters }) : null,
70
+ face === "placeholder" ? /* @__PURE__ */ jsx(
71
+ "img",
72
+ {
73
+ className: "avatar-identity__placeholder-icon",
74
+ src: placeholderIcon,
75
+ alt: ""
76
+ }
77
+ ) : null,
78
+ face !== "placeholder" ? /* @__PURE__ */ jsx("span", { className: "avatar-identity__border", "aria-hidden": "true" }) : null
79
+ ] }),
80
+ showText ? /* @__PURE__ */ jsxs("div", { className: "avatar-identity__text", children: [
81
+ /* @__PURE__ */ jsx("p", { className: "avatar-identity__name", children: name }),
82
+ email ? /* @__PURE__ */ jsx("p", { className: "avatar-identity__email", children: email }) : null
83
+ ] }) : null
84
+ ]
85
+ }
86
+ );
87
+ }
88
+ );
89
+ AvatarIdentity.displayName = "AvatarIdentity";
90
+ export {
91
+ AvatarIdentity,
92
+ avatarIdentityVariants
93
+ };
@@ -0,0 +1,56 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../../lib/utils.js";
6
+ const avatarVariants = cva("avatar", {
7
+ variants: {
8
+ size: {
9
+ sm: "avatar--sm",
10
+ md: "",
11
+ lg: "avatar--lg",
12
+ xl: "avatar--xl"
13
+ },
14
+ appearance: {
15
+ default: "",
16
+ brand: "avatar--brand"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ size: "md",
21
+ appearance: "default"
22
+ }
23
+ });
24
+ const Avatar = React.forwardRef(({ className, size, appearance, ...props }, ref) => /* @__PURE__ */ jsx(
25
+ AvatarPrimitive.Root,
26
+ {
27
+ ref,
28
+ className: cn(avatarVariants({ size, appearance }), className),
29
+ ...props
30
+ }
31
+ ));
32
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
33
+ const AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
34
+ AvatarPrimitive.Image,
35
+ {
36
+ ref,
37
+ className: cn("avatar-image", className),
38
+ ...props
39
+ }
40
+ ));
41
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
42
+ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
43
+ AvatarPrimitive.Fallback,
44
+ {
45
+ ref,
46
+ className: cn("avatar-fallback", className),
47
+ ...props
48
+ }
49
+ ));
50
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
51
+ export {
52
+ Avatar,
53
+ AvatarFallback,
54
+ AvatarImage,
55
+ avatarVariants
56
+ };
@@ -0,0 +1,27 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Slot, Slottable } from "@radix-ui/react-slot";
4
+ import { ArrowLeft } from "lucide-react";
5
+ import { cn } from "../../lib/utils.js";
6
+ const BackLink = React.forwardRef(
7
+ ({ className, asChild = false, children, ...props }, ref) => {
8
+ const Comp = asChild ? Slot : "button";
9
+ return /* @__PURE__ */ jsxs(
10
+ Comp,
11
+ {
12
+ ref,
13
+ ...asChild ? {} : { type: "button" },
14
+ className: cn("back-link", className),
15
+ ...props,
16
+ children: [
17
+ /* @__PURE__ */ jsx(ArrowLeft, { className: "back-link__icon", "aria-hidden": "true" }),
18
+ asChild ? /* @__PURE__ */ jsx(Slottable, { children }) : /* @__PURE__ */ jsx("span", { children })
19
+ ]
20
+ }
21
+ );
22
+ }
23
+ );
24
+ BackLink.displayName = "BackLink";
25
+ export {
26
+ BackLink
27
+ };
@@ -0,0 +1,75 @@
1
+ import { jsxs, jsx } 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
+ const bannerVariants = cva("banner", {
6
+ variants: {
7
+ variant: {
8
+ default: "banner--default",
9
+ info: "banner--info",
10
+ success: "banner--success",
11
+ warning: "banner--warning",
12
+ destructive: "banner--destructive"
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ variant: "default"
17
+ }
18
+ });
19
+ const Banner = React.forwardRef(
20
+ ({ className, variant, sticky = false, onClose, children, ...props }, ref) => /* @__PURE__ */ jsxs(
21
+ "div",
22
+ {
23
+ ref,
24
+ role: "banner",
25
+ className: cn(bannerVariants({ variant }), sticky && "banner--sticky", className),
26
+ ...props,
27
+ children: [
28
+ /* @__PURE__ */ jsx("div", { className: "banner-content", children }),
29
+ onClose && /* @__PURE__ */ jsx(
30
+ "button",
31
+ {
32
+ type: "button",
33
+ className: "banner-close",
34
+ "aria-label": "Dismiss banner",
35
+ onClick: onClose,
36
+ children: /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
37
+ /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
38
+ /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
39
+ ] })
40
+ }
41
+ )
42
+ ]
43
+ }
44
+ )
45
+ );
46
+ Banner.displayName = "Banner";
47
+ const BannerIcon = React.forwardRef(
48
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("span", { ref, className: cn("banner-icon", className), "aria-hidden": "true", ...props })
49
+ );
50
+ BannerIcon.displayName = "BannerIcon";
51
+ const BannerTitle = React.forwardRef(
52
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("banner-title", className), ...props })
53
+ );
54
+ BannerTitle.displayName = "BannerTitle";
55
+ const BannerDescription = React.forwardRef(
56
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: cn("banner-description", className), ...props })
57
+ );
58
+ BannerDescription.displayName = "BannerDescription";
59
+ const BannerText = React.forwardRef(
60
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("banner-text", className), ...props })
61
+ );
62
+ BannerText.displayName = "BannerText";
63
+ const BannerAction = React.forwardRef(
64
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("button", { ref, type: "button", className: cn("banner-action", className), ...props })
65
+ );
66
+ BannerAction.displayName = "BannerAction";
67
+ export {
68
+ Banner,
69
+ BannerAction,
70
+ BannerDescription,
71
+ BannerIcon,
72
+ BannerText,
73
+ BannerTitle,
74
+ bannerVariants
75
+ };