@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 { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as MenubarPrimitive from "@radix-ui/react-menubar";
4
+ import { Check, Circle, ChevronRight } from "lucide-react";
5
+ import { cn } from "../../lib/utils.js";
6
+ const MenubarMenu = MenubarPrimitive.Menu;
7
+ const MenubarSub = MenubarPrimitive.Sub;
8
+ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
9
+ const Menubar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ MenubarPrimitive.Root,
11
+ {
12
+ ref,
13
+ className: cn("menubar", className),
14
+ ...props
15
+ }
16
+ ));
17
+ Menubar.displayName = MenubarPrimitive.Root.displayName;
18
+ const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
19
+ MenubarPrimitive.Trigger,
20
+ {
21
+ ref,
22
+ className: cn("menubar-trigger", className),
23
+ ...props
24
+ }
25
+ ));
26
+ MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
27
+ const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
28
+ MenubarPrimitive.SubTrigger,
29
+ {
30
+ ref,
31
+ className: cn(
32
+ "menubar-sub-trigger",
33
+ inset && "menubar-sub-trigger--inset",
34
+ className
35
+ ),
36
+ ...props,
37
+ children: [
38
+ children,
39
+ /* @__PURE__ */ jsx(ChevronRight, { className: "icon-4" })
40
+ ]
41
+ }
42
+ ));
43
+ MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
44
+ const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
45
+ MenubarPrimitive.SubContent,
46
+ {
47
+ ref,
48
+ className: cn("menubar-sub-content", className),
49
+ ...props
50
+ }
51
+ ));
52
+ MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
53
+ const MenubarContent = React.forwardRef(
54
+ ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
55
+ MenubarPrimitive.Content,
56
+ {
57
+ ref,
58
+ align,
59
+ alignOffset,
60
+ sideOffset,
61
+ className: cn("menubar-content", className),
62
+ ...props
63
+ }
64
+ ) })
65
+ );
66
+ MenubarContent.displayName = MenubarPrimitive.Content.displayName;
67
+ const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
68
+ MenubarPrimitive.Item,
69
+ {
70
+ ref,
71
+ className: cn(
72
+ "menubar-item",
73
+ inset && "menubar-item--inset",
74
+ className
75
+ ),
76
+ ...props
77
+ }
78
+ ));
79
+ MenubarItem.displayName = MenubarPrimitive.Item.displayName;
80
+ const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
81
+ MenubarPrimitive.CheckboxItem,
82
+ {
83
+ ref,
84
+ className: cn("menubar-checkbox-item", className),
85
+ checked,
86
+ ...props,
87
+ children: [
88
+ /* @__PURE__ */ jsx("span", { className: "menubar-item-indicator", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "icon-4" }) }) }),
89
+ children
90
+ ]
91
+ }
92
+ ));
93
+ MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
94
+ const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
95
+ MenubarPrimitive.RadioItem,
96
+ {
97
+ ref,
98
+ className: cn("menubar-radio-item", className),
99
+ ...props,
100
+ children: [
101
+ /* @__PURE__ */ jsx("span", { className: "menubar-item-indicator", children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "icon-2 fill-current" }) }) }),
102
+ children
103
+ ]
104
+ }
105
+ ));
106
+ MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
107
+ const MenubarLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
108
+ MenubarPrimitive.Label,
109
+ {
110
+ ref,
111
+ className: cn(
112
+ "menubar-label",
113
+ inset && "menubar-label--inset",
114
+ className
115
+ ),
116
+ ...props
117
+ }
118
+ ));
119
+ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
120
+ const MenubarSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
121
+ MenubarPrimitive.Separator,
122
+ {
123
+ ref,
124
+ className: cn("menubar-separator", className),
125
+ ...props
126
+ }
127
+ ));
128
+ MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
129
+ const MenubarShortcut = ({
130
+ className,
131
+ ...props
132
+ }) => {
133
+ return /* @__PURE__ */ jsx(
134
+ "span",
135
+ {
136
+ className: cn("menubar-shortcut", className),
137
+ ...props
138
+ }
139
+ );
140
+ };
141
+ MenubarShortcut.displayname = "MenubarShortcut";
142
+ export {
143
+ Menubar,
144
+ MenubarCheckboxItem,
145
+ MenubarContent,
146
+ MenubarItem,
147
+ MenubarLabel,
148
+ MenubarMenu,
149
+ MenubarRadioGroup,
150
+ MenubarRadioItem,
151
+ MenubarSeparator,
152
+ MenubarShortcut,
153
+ MenubarSub,
154
+ MenubarSubContent,
155
+ MenubarSubTrigger,
156
+ MenubarTrigger
157
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ const MetaRow = React.forwardRef(
5
+ ({ children, className, ...props }, ref) => {
6
+ const items = React.Children.toArray(children).filter(Boolean);
7
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("meta-row", className), ...props, children: items.map((child, index) => (
8
+ // eslint-disable-next-line react/no-array-index-key
9
+ /* @__PURE__ */ jsxs(React.Fragment, { children: [
10
+ index > 0 ? /* @__PURE__ */ jsx("span", { className: "meta-row__dot", "aria-hidden": "true" }) : null,
11
+ child
12
+ ] }, index)
13
+ )) });
14
+ }
15
+ );
16
+ MetaRow.displayName = "MetaRow";
17
+ export {
18
+ MetaRow
19
+ };
@@ -0,0 +1,230 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useState, useCallback, useMemo, createContext, useRef, useLayoutEffect, useEffect, useContext } from "react";
3
+ import { useMotionValue, motion, animate } from "motion/react";
4
+ import { cn } from "../../lib/utils.js";
5
+ import { Button } from "./button.js";
6
+ const SPRING_CONFIG = { stiffness: 300, damping: 30 };
7
+ const MobileNavContext = createContext(null);
8
+ const useMobileNav = () => {
9
+ const ctx = useContext(MobileNavContext);
10
+ if (!ctx)
11
+ throw new Error(
12
+ "MobileNav compound components must be used within <MobileNav>"
13
+ );
14
+ return ctx;
15
+ };
16
+ const MobileNav = ({ className, children }) => {
17
+ const [activeKey, setActiveKey] = useState(null);
18
+ const [open, setOpen] = useState(false);
19
+ const toggle = useCallback(
20
+ (key) => {
21
+ if (activeKey === key && open) {
22
+ setOpen(false);
23
+ setActiveKey(null);
24
+ } else {
25
+ setActiveKey(key);
26
+ setOpen(true);
27
+ }
28
+ },
29
+ [activeKey, open]
30
+ );
31
+ const close = useCallback(() => {
32
+ setOpen(false);
33
+ setActiveKey(null);
34
+ }, []);
35
+ const value = useMemo(
36
+ () => ({ activeKey, open, toggle, close }),
37
+ [activeKey, open, toggle, close]
38
+ );
39
+ return /* @__PURE__ */ jsx(MobileNavContext.Provider, { value, children: /* @__PURE__ */ jsx("div", { className: cn("mobile-nav", className), children }) });
40
+ };
41
+ const MobileNavPanel = ({ className, children }) => {
42
+ const { activeKey, open, close } = useMobileNav();
43
+ const panelRef = useRef(null);
44
+ const contentRef = useRef(null);
45
+ const heightMV = useMotionValue(0);
46
+ const stopAnimation = useRef(null);
47
+ const stateRef = useRef("closed");
48
+ const cachedInitialHeight = useRef(0);
49
+ const getNavBarHeight = () => {
50
+ var _a;
51
+ const nav = (_a = panelRef.current) == null ? void 0 : _a.nextElementSibling;
52
+ return (nav == null ? void 0 : nav.offsetHeight) ?? 0;
53
+ };
54
+ const getAvailableHeight = () => {
55
+ return window.innerHeight - getNavBarHeight();
56
+ };
57
+ const measureContentHeight = () => {
58
+ const content = contentRef.current;
59
+ if (!content) return 0;
60
+ const child = content.firstElementChild;
61
+ const raw = ((child == null ? void 0 : child.offsetHeight) ?? content.scrollHeight) + 40;
62
+ const max = getAvailableHeight() * 0.7;
63
+ return Math.min(raw, max);
64
+ };
65
+ const springTo = (target) => {
66
+ var _a;
67
+ (_a = stopAnimation.current) == null ? void 0 : _a.call(stopAnimation);
68
+ const controls = animate(heightMV, target, {
69
+ type: "spring",
70
+ ...SPRING_CONFIG
71
+ });
72
+ stopAnimation.current = () => controls.stop();
73
+ };
74
+ useLayoutEffect(() => {
75
+ if (open) {
76
+ stateRef.current = "initial";
77
+ const h = measureContentHeight();
78
+ cachedInitialHeight.current = h;
79
+ springTo(h);
80
+ } else {
81
+ stateRef.current = "closed";
82
+ cachedInitialHeight.current = 0;
83
+ springTo(0);
84
+ }
85
+ }, [open]);
86
+ useLayoutEffect(() => {
87
+ if (!open) return;
88
+ const h = measureContentHeight();
89
+ cachedInitialHeight.current = h;
90
+ if (stateRef.current !== "full") {
91
+ stateRef.current = "initial";
92
+ springTo(h);
93
+ }
94
+ }, [activeKey]);
95
+ useEffect(() => {
96
+ if (!open) return;
97
+ const handleKeyDown = (e) => {
98
+ if (e.key === "Escape") close();
99
+ };
100
+ document.addEventListener("keydown", handleKeyDown);
101
+ return () => document.removeEventListener("keydown", handleKeyDown);
102
+ }, [open, close]);
103
+ const isDragging = useRef(false);
104
+ const lastY = useRef(0);
105
+ const dragStartY = useRef(0);
106
+ const dragStartTime = useRef(0);
107
+ const dragMaxHeight = useRef(0);
108
+ const handlePointerDown = (e) => {
109
+ var _a;
110
+ e.currentTarget.setPointerCapture(e.pointerId);
111
+ (_a = stopAnimation.current) == null ? void 0 : _a.call(stopAnimation);
112
+ isDragging.current = true;
113
+ lastY.current = e.clientY;
114
+ dragStartY.current = e.clientY;
115
+ dragStartTime.current = Date.now();
116
+ dragMaxHeight.current = getAvailableHeight();
117
+ };
118
+ const handlePointerMove = (e) => {
119
+ if (!isDragging.current) return;
120
+ const dy = e.clientY - lastY.current;
121
+ lastY.current = e.clientY;
122
+ const current = heightMV.get();
123
+ const next = Math.max(0, current - dy);
124
+ heightMV.set(Math.min(next, dragMaxHeight.current));
125
+ };
126
+ const handlePointerUp = (e) => {
127
+ if (!isDragging.current) return;
128
+ isDragging.current = false;
129
+ const currentHeight = heightMV.get();
130
+ const initial = cachedInitialHeight.current;
131
+ const full = dragMaxHeight.current;
132
+ const elapsed = Date.now() - dragStartTime.current;
133
+ const totalDy = e.clientY - dragStartY.current;
134
+ const velocity = elapsed > 0 ? totalDy / elapsed * 1e3 : 0;
135
+ const VELOCITY_THRESHOLD = 500;
136
+ if (velocity > VELOCITY_THRESHOLD) {
137
+ if (stateRef.current === "full") {
138
+ stateRef.current = "initial";
139
+ springTo(initial);
140
+ } else {
141
+ stateRef.current = "closed";
142
+ springTo(0);
143
+ close();
144
+ }
145
+ } else if (velocity < -VELOCITY_THRESHOLD) {
146
+ stateRef.current = "full";
147
+ springTo(full);
148
+ } else {
149
+ const midInitial = initial / 2;
150
+ const midFull = (initial + full) / 2;
151
+ if (currentHeight < midInitial) {
152
+ stateRef.current = "closed";
153
+ springTo(0);
154
+ close();
155
+ } else if (currentHeight < midFull) {
156
+ stateRef.current = "initial";
157
+ springTo(initial);
158
+ } else {
159
+ stateRef.current = "full";
160
+ springTo(full);
161
+ }
162
+ }
163
+ };
164
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
165
+ open && /* @__PURE__ */ jsx("div", { className: "mobile-nav-overlay", onClick: close, "aria-hidden": true }),
166
+ /* @__PURE__ */ jsxs(
167
+ motion.div,
168
+ {
169
+ ref: panelRef,
170
+ className: cn("mobile-nav-panel", className),
171
+ "data-closed": !open || void 0,
172
+ style: { height: heightMV },
173
+ children: [
174
+ /* @__PURE__ */ jsx(
175
+ "div",
176
+ {
177
+ className: "mobile-nav-handle",
178
+ onPointerDown: handlePointerDown,
179
+ onPointerMove: handlePointerMove,
180
+ onPointerUp: handlePointerUp,
181
+ onPointerCancel: handlePointerUp,
182
+ children: /* @__PURE__ */ jsx("div", { className: "mobile-nav-handle-bar" })
183
+ }
184
+ ),
185
+ /* @__PURE__ */ jsx("div", { ref: contentRef, className: "mobile-nav-content", children: activeKey ? children(activeKey) : null })
186
+ ]
187
+ }
188
+ )
189
+ ] });
190
+ };
191
+ const MobileNavBar = ({ className, children }) => /* @__PURE__ */ jsx("nav", { className: cn("mobile-nav-bar", className), children: /* @__PURE__ */ jsx("div", { className: "mobile-nav-bar-inner", children }) });
192
+ const MobileNavTrigger = ({
193
+ value,
194
+ children,
195
+ label,
196
+ onAction,
197
+ disabled,
198
+ className
199
+ }) => {
200
+ const { activeKey, open, toggle, close } = useMobileNav();
201
+ const handleClick = () => {
202
+ if (onAction) {
203
+ if (open) close();
204
+ onAction();
205
+ } else {
206
+ toggle(value);
207
+ }
208
+ };
209
+ return /* @__PURE__ */ jsx(
210
+ Button,
211
+ {
212
+ variant: "clear",
213
+ size: "icon",
214
+ type: "button",
215
+ onClick: handleClick,
216
+ disabled,
217
+ "data-active": activeKey === value || void 0,
218
+ "aria-expanded": activeKey === value && open,
219
+ className: cn("mobile-nav-trigger group", className),
220
+ "aria-label": label,
221
+ children
222
+ }
223
+ );
224
+ };
225
+ export {
226
+ MobileNav,
227
+ MobileNavBar,
228
+ MobileNavPanel,
229
+ MobileNavTrigger
230
+ };
@@ -0,0 +1,116 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ const ModalOverlay = React.forwardRef(
5
+ ({ zIndex = 50, onScrimClick, align = "center", children, className, style, ...props }, ref) => /* @__PURE__ */ jsx(
6
+ "div",
7
+ {
8
+ ref,
9
+ className: cn("modal-overlay", align === "top" && "modal-overlay--top", className),
10
+ style: { zIndex, ...style },
11
+ onClick: onScrimClick ? (event) => {
12
+ if (event.target === event.currentTarget) onScrimClick();
13
+ } : void 0,
14
+ ...props,
15
+ children
16
+ }
17
+ )
18
+ );
19
+ ModalOverlay.displayName = "ModalOverlay";
20
+ const ModalContainer = React.forwardRef(
21
+ ({ as: Component = "div", width = 420, className, style, ...props }, ref) => /* @__PURE__ */ jsx(
22
+ Component,
23
+ {
24
+ ref,
25
+ role: "dialog",
26
+ "aria-modal": "true",
27
+ className: cn("modal-container", className),
28
+ style: { width, ...style },
29
+ ...props
30
+ }
31
+ )
32
+ );
33
+ ModalContainer.displayName = "ModalContainer";
34
+ const ModalCloseRow = React.forwardRef(
35
+ ({ onClose, label = "Close", icon, inset = "default", className, ...props }, ref) => /* @__PURE__ */ jsx(
36
+ "div",
37
+ {
38
+ ref,
39
+ className: cn(
40
+ "modal-close-row",
41
+ inset === "roomy" && "modal-close-row--roomy",
42
+ className
43
+ ),
44
+ ...props,
45
+ children: /* @__PURE__ */ jsx(
46
+ "button",
47
+ {
48
+ type: "button",
49
+ className: "modal-close",
50
+ onClick: onClose,
51
+ "aria-label": label,
52
+ children: icon
53
+ }
54
+ )
55
+ }
56
+ )
57
+ );
58
+ ModalCloseRow.displayName = "ModalCloseRow";
59
+ const ModalPanel = React.forwardRef(
60
+ ({
61
+ as: Component = "div",
62
+ tone = "default",
63
+ align = "start",
64
+ angle = 114.72731273771963,
65
+ height,
66
+ gap,
67
+ paddingTop,
68
+ paddingBottom,
69
+ className,
70
+ style,
71
+ ...props
72
+ }, ref) => /* @__PURE__ */ jsx(
73
+ Component,
74
+ {
75
+ ref,
76
+ className: cn(
77
+ "modal-panel",
78
+ `modal-panel--${tone}`,
79
+ `modal-panel--align-${align}`,
80
+ className
81
+ ),
82
+ style: {
83
+ ...tone === "accent" ? { ["--panel-gradient-angle"]: `${angle}deg` } : null,
84
+ ...height !== void 0 ? { height } : null,
85
+ ...gap ? { ["--modal-panel-gap"]: `var(--space-${gap})` } : null,
86
+ ...paddingTop ? { ["--modal-panel-padding-top"]: `var(--space-${paddingTop})` } : null,
87
+ ...paddingBottom ? { ["--modal-panel-padding-bottom"]: `var(--space-${paddingBottom})` } : null,
88
+ ...style
89
+ },
90
+ ...props
91
+ }
92
+ )
93
+ );
94
+ ModalPanel.displayName = "ModalPanel";
95
+ const ModalTitle = React.forwardRef(
96
+ ({ as: Component = "h2", size = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsx(
97
+ "div",
98
+ {
99
+ className: cn("modal-title", size === "large" && "modal-title--large", className),
100
+ children: /* @__PURE__ */ jsx(Component, { ref, className: "modal-title__text heading-xxsmall", ...props, children })
101
+ }
102
+ )
103
+ );
104
+ ModalTitle.displayName = "ModalTitle";
105
+ const ModalPromptRow = React.forwardRef(
106
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("modal-prompt-row", className), ...props })
107
+ );
108
+ ModalPromptRow.displayName = "ModalPromptRow";
109
+ export {
110
+ ModalCloseRow,
111
+ ModalContainer,
112
+ ModalOverlay,
113
+ ModalPanel,
114
+ ModalPromptRow,
115
+ ModalTitle
116
+ };
@@ -0,0 +1,89 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
4
+ import { cva } from "class-variance-authority";
5
+ import { ChevronDown } from "lucide-react";
6
+ import { cn } from "../../lib/utils.js";
7
+ const NavigationMenu$1 = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
8
+ NavigationMenuPrimitive.Root,
9
+ {
10
+ ref,
11
+ className: cn("navigation-menu", className),
12
+ ...props,
13
+ children: [
14
+ children,
15
+ /* @__PURE__ */ jsx(NavigationMenuViewport, {})
16
+ ]
17
+ }
18
+ ));
19
+ NavigationMenu$1.displayName = NavigationMenuPrimitive.Root.displayName;
20
+ const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
21
+ NavigationMenuPrimitive.List,
22
+ {
23
+ ref,
24
+ className: cn("navigation-menu-list", className),
25
+ ...props
26
+ }
27
+ ));
28
+ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
29
+ const NavigationMenuItem = NavigationMenuPrimitive.Item;
30
+ const navigationMenuTriggerStyle = cva("navigation-menu-trigger");
31
+ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
32
+ NavigationMenuPrimitive.Trigger,
33
+ {
34
+ ref,
35
+ className: cn(navigationMenuTriggerStyle(), className),
36
+ ...props,
37
+ children: [
38
+ children,
39
+ " ",
40
+ /* @__PURE__ */ jsx(
41
+ ChevronDown,
42
+ {
43
+ className: "navigation-menu-trigger-icon",
44
+ "aria-hidden": "true"
45
+ }
46
+ )
47
+ ]
48
+ }
49
+ ));
50
+ NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
51
+ const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
52
+ NavigationMenuPrimitive.Content,
53
+ {
54
+ ref,
55
+ className: cn("navigation-menu-content", className),
56
+ ...props
57
+ }
58
+ ));
59
+ NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
60
+ const NavigationMenuLink = NavigationMenuPrimitive.Link;
61
+ const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "navigation-menu-viewport-wrapper", children: /* @__PURE__ */ jsx(
62
+ NavigationMenuPrimitive.Viewport,
63
+ {
64
+ className: cn("navigation-menu-viewport", className),
65
+ ref,
66
+ ...props
67
+ }
68
+ ) }));
69
+ NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
70
+ const NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
71
+ NavigationMenuPrimitive.Indicator,
72
+ {
73
+ ref,
74
+ className: cn("navigation-menu-indicator", className),
75
+ ...props
76
+ }
77
+ ));
78
+ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
79
+ export {
80
+ NavigationMenu$1 as NavigationMenu,
81
+ NavigationMenuContent,
82
+ NavigationMenuIndicator,
83
+ NavigationMenuItem,
84
+ NavigationMenuLink,
85
+ NavigationMenuList,
86
+ NavigationMenuTrigger,
87
+ NavigationMenuViewport,
88
+ navigationMenuTriggerStyle
89
+ };