@raydenui/ui 0.9.7 → 0.10.0

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 (308) hide show
  1. package/dist/Table-DCNSxua1.d.cts +31 -0
  2. package/dist/Table-DCNSxua1.d.ts +31 -0
  3. package/dist/blocks/ApplicationShellBlock.cjs +157 -0
  4. package/dist/blocks/ApplicationShellBlock.js +154 -0
  5. package/dist/blocks/CheckoutReviewBlock.cjs +16 -0
  6. package/dist/blocks/CheckoutReviewBlock.js +13 -0
  7. package/dist/blocks/CommandPaletteBlock.cjs +334 -0
  8. package/dist/blocks/CommandPaletteBlock.js +331 -0
  9. package/dist/blocks/CreateAccountBlock.cjs +147 -0
  10. package/dist/blocks/CreateAccountBlock.js +143 -0
  11. package/dist/blocks/EmptyStateBlock.cjs +19 -0
  12. package/dist/blocks/EmptyStateBlock.js +16 -0
  13. package/dist/blocks/FeatureOverviewBlock.cjs +54 -0
  14. package/dist/blocks/FeatureOverviewBlock.js +51 -0
  15. package/dist/blocks/HeaderBlock.cjs +230 -0
  16. package/dist/blocks/HeaderBlock.js +227 -0
  17. package/dist/blocks/KpiOverviewBlock.cjs +63 -0
  18. package/dist/blocks/KpiOverviewBlock.js +60 -0
  19. package/dist/blocks/LoginBlock.cjs +66 -0
  20. package/dist/blocks/LoginBlock.js +63 -0
  21. package/dist/blocks/NotificationsBlock.cjs +17 -0
  22. package/dist/blocks/NotificationsBlock.js +14 -0
  23. package/dist/blocks/PageHeaderBlock.cjs +121 -0
  24. package/dist/blocks/PageHeaderBlock.js +118 -0
  25. package/dist/blocks/PricingPlansBlock.cjs +146 -0
  26. package/dist/blocks/PricingPlansBlock.js +143 -0
  27. package/dist/blocks/ProductCollectionBlock.cjs +37 -0
  28. package/dist/blocks/ProductCollectionBlock.js +34 -0
  29. package/dist/blocks/ProductDetailBlock.cjs +30 -0
  30. package/dist/blocks/ProductDetailBlock.js +27 -0
  31. package/dist/blocks/ProductHeroBlock.cjs +83 -0
  32. package/dist/blocks/ProductHeroBlock.js +80 -0
  33. package/dist/blocks/ProfileSettingsBlock.cjs +130 -0
  34. package/dist/blocks/ProfileSettingsBlock.js +126 -0
  35. package/dist/blocks/QuickSendBlock.cjs +11 -0
  36. package/dist/blocks/QuickSendBlock.js +8 -0
  37. package/dist/blocks/RecentTransactionsBlock.cjs +13 -0
  38. package/dist/blocks/RecentTransactionsBlock.js +10 -0
  39. package/dist/blocks/SearchableTableBlock.cjs +91 -0
  40. package/dist/blocks/SearchableTableBlock.js +88 -0
  41. package/dist/blocks/ShoppingCartBlock.cjs +16 -0
  42. package/dist/blocks/ShoppingCartBlock.js +13 -0
  43. package/dist/blocks/SiteFooterBlock.cjs +69 -0
  44. package/dist/blocks/SiteFooterBlock.js +66 -0
  45. package/dist/blocks/TableBlock.cjs +20 -0
  46. package/dist/blocks/TableBlock.js +17 -0
  47. package/dist/blocks/TaskListBlock.cjs +198 -0
  48. package/dist/blocks/TaskListBlock.js +195 -0
  49. package/dist/blocks/WorkspaceSwitcherBlock.cjs +291 -0
  50. package/dist/blocks/WorkspaceSwitcherBlock.js +288 -0
  51. package/dist/blocks/commerce.cjs +44 -0
  52. package/dist/blocks/commerce.js +35 -0
  53. package/dist/blocks/index.cjs +53 -0
  54. package/dist/blocks/index.js +24 -0
  55. package/dist/blocks.d.cts +1820 -0
  56. package/dist/blocks.d.ts +1820 -0
  57. package/dist/chart.cjs +13 -0
  58. package/dist/chart.d.cts +59 -0
  59. package/dist/chart.d.ts +59 -0
  60. package/dist/chart.js +5 -0
  61. package/dist/components/Accordion/Accordion.cjs +94 -0
  62. package/dist/components/Accordion/Accordion.js +91 -0
  63. package/dist/components/Accordion/index.cjs +8 -0
  64. package/dist/components/Accordion/index.js +1 -0
  65. package/dist/components/ActivityFeed/ActivityContent.cjs +40 -0
  66. package/dist/components/ActivityFeed/ActivityContent.js +37 -0
  67. package/dist/components/ActivityFeed/ActivityItem.cjs +19 -0
  68. package/dist/components/ActivityFeed/ActivityItem.js +16 -0
  69. package/dist/components/ActivityFeed/index.cjs +7 -0
  70. package/dist/components/ActivityFeed/index.js +2 -0
  71. package/dist/components/Alert/Alert.cjs +42 -0
  72. package/dist/components/Alert/Alert.js +39 -0
  73. package/dist/components/Alert/index.cjs +5 -0
  74. package/dist/components/Alert/index.js +1 -0
  75. package/dist/components/Avatar/Avatar.cjs +101 -0
  76. package/dist/components/Avatar/Avatar.js +98 -0
  77. package/dist/components/Avatar/index.cjs +6 -0
  78. package/dist/components/Avatar/index.js +1 -0
  79. package/dist/components/Badge/Badge.cjs +53 -0
  80. package/dist/components/Badge/Badge.js +50 -0
  81. package/dist/components/Badge/index.cjs +5 -0
  82. package/dist/components/Badge/index.js +1 -0
  83. package/dist/components/Banner/Banner.cjs +83 -0
  84. package/dist/components/Banner/Banner.js +80 -0
  85. package/dist/components/Banner/index.cjs +5 -0
  86. package/dist/components/Banner/index.js +1 -0
  87. package/dist/components/Breadcrumb/Breadcrumb.cjs +31 -0
  88. package/dist/components/Breadcrumb/Breadcrumb.js +28 -0
  89. package/dist/components/Breadcrumb/index.cjs +5 -0
  90. package/dist/components/Breadcrumb/index.js +1 -0
  91. package/dist/components/Button/Button.cjs +88 -0
  92. package/dist/components/Button/Button.js +85 -0
  93. package/dist/components/Button/index.cjs +5 -0
  94. package/dist/components/Button/index.js +1 -0
  95. package/dist/components/ButtonGroup/ButtonGroup.cjs +8 -0
  96. package/dist/components/ButtonGroup/ButtonGroup.js +5 -0
  97. package/dist/components/ButtonGroup/ButtonGroupItem.cjs +15 -0
  98. package/dist/components/ButtonGroup/ButtonGroupItem.js +12 -0
  99. package/dist/components/ButtonGroup/index.cjs +7 -0
  100. package/dist/components/ButtonGroup/index.js +2 -0
  101. package/dist/components/Card/Card.cjs +94 -0
  102. package/dist/components/Card/Card.js +91 -0
  103. package/dist/components/Card/index.cjs +9 -0
  104. package/dist/components/Card/index.js +1 -0
  105. package/dist/components/Chart/Chart.cjs +160 -0
  106. package/dist/components/Chart/Chart.js +153 -0
  107. package/dist/components/Chart/index.cjs +10 -0
  108. package/dist/components/Chart/index.js +2 -0
  109. package/dist/components/Chart/theme.cjs +67 -0
  110. package/dist/components/Chart/theme.js +62 -0
  111. package/dist/components/Chip/Chip.cjs +18 -0
  112. package/dist/components/Chip/Chip.js +15 -0
  113. package/dist/components/Chip/index.cjs +5 -0
  114. package/dist/components/Chip/index.js +1 -0
  115. package/dist/components/Counter/Counter.cjs +74 -0
  116. package/dist/components/Counter/Counter.js +71 -0
  117. package/dist/components/Counter/index.cjs +6 -0
  118. package/dist/components/Counter/index.js +1 -0
  119. package/dist/components/DatePicker/DatePicker.cjs +343 -0
  120. package/dist/components/DatePicker/DatePicker.js +340 -0
  121. package/dist/components/DatePicker/index.cjs +5 -0
  122. package/dist/components/DatePicker/index.js +1 -0
  123. package/dist/components/Divider/Divider.cjs +31 -0
  124. package/dist/components/Divider/Divider.js +28 -0
  125. package/dist/components/Divider/index.cjs +5 -0
  126. package/dist/components/Divider/index.js +1 -0
  127. package/dist/components/DropdownMenu/DropdownMenu.cjs +108 -0
  128. package/dist/components/DropdownMenu/DropdownMenu.js +105 -0
  129. package/dist/components/DropdownMenu/index.cjs +11 -0
  130. package/dist/components/DropdownMenu/index.js +1 -0
  131. package/dist/components/EmptyStateIllustration/EmptyStateIllustration.cjs +42 -0
  132. package/dist/components/EmptyStateIllustration/EmptyStateIllustration.js +39 -0
  133. package/dist/components/EmptyStateIllustration/illustrations.cjs +3322 -0
  134. package/dist/components/EmptyStateIllustration/illustrations.js +3319 -0
  135. package/dist/components/EmptyStateIllustration/index.cjs +7 -0
  136. package/dist/components/EmptyStateIllustration/index.js +2 -0
  137. package/dist/components/FileUpload/FileUpload.cjs +116 -0
  138. package/dist/components/FileUpload/FileUpload.js +113 -0
  139. package/dist/components/FileUpload/FileUploadDropZone.cjs +58 -0
  140. package/dist/components/FileUpload/FileUploadDropZone.js +55 -0
  141. package/dist/components/FileUpload/FileUploadIcons.cjs +55 -0
  142. package/dist/components/FileUpload/FileUploadIcons.js +50 -0
  143. package/dist/components/FileUpload/FileUploadItem.cjs +34 -0
  144. package/dist/components/FileUpload/FileUploadItem.js +31 -0
  145. package/dist/components/FileUpload/index.cjs +9 -0
  146. package/dist/components/FileUpload/index.js +3 -0
  147. package/dist/components/FormControl/Checkbox.cjs +27 -0
  148. package/dist/components/FormControl/Checkbox.js +24 -0
  149. package/dist/components/FormControl/Radio.cjs +15 -0
  150. package/dist/components/FormControl/Radio.js +12 -0
  151. package/dist/components/FormControl/Toggle.cjs +15 -0
  152. package/dist/components/FormControl/Toggle.js +12 -0
  153. package/dist/components/FormControl/index.cjs +9 -0
  154. package/dist/components/FormControl/index.js +3 -0
  155. package/dist/components/Icon/Icon.cjs +70 -0
  156. package/dist/components/Icon/Icon.js +34 -0
  157. package/dist/components/Icon/catalog.cjs +1672 -0
  158. package/dist/components/Icon/catalog.js +1669 -0
  159. package/dist/components/Icon/icons.cjs +5621 -0
  160. package/dist/components/Icon/icons.js +5610 -0
  161. package/dist/components/Icon/index.cjs +8 -0
  162. package/dist/components/Icon/index.js +2 -0
  163. package/dist/components/Input/Input.cjs +64 -0
  164. package/dist/components/Input/Input.js +61 -0
  165. package/dist/components/Input/index.cjs +5 -0
  166. package/dist/components/Input/index.js +1 -0
  167. package/dist/components/MetricsCard/MetricsCard.cjs +107 -0
  168. package/dist/components/MetricsCard/MetricsCard.js +104 -0
  169. package/dist/components/MetricsCard/index.cjs +5 -0
  170. package/dist/components/MetricsCard/index.js +1 -0
  171. package/dist/components/Modal/Modal.cjs +126 -0
  172. package/dist/components/Modal/Modal.js +123 -0
  173. package/dist/components/Modal/index.cjs +5 -0
  174. package/dist/components/Modal/index.js +1 -0
  175. package/dist/components/Pagination/Pagination.cjs +42 -0
  176. package/dist/components/Pagination/Pagination.js +39 -0
  177. package/dist/components/Pagination/index.cjs +5 -0
  178. package/dist/components/Pagination/index.js +1 -0
  179. package/dist/components/ProgressBar/ProgressBar.cjs +34 -0
  180. package/dist/components/ProgressBar/ProgressBar.js +31 -0
  181. package/dist/components/ProgressBar/index.cjs +5 -0
  182. package/dist/components/ProgressBar/index.js +1 -0
  183. package/dist/components/ProgressCircle/ProgressCircle.cjs +34 -0
  184. package/dist/components/ProgressCircle/ProgressCircle.js +31 -0
  185. package/dist/components/ProgressCircle/index.cjs +5 -0
  186. package/dist/components/ProgressCircle/index.js +1 -0
  187. package/dist/components/Select/Select.cjs +84 -0
  188. package/dist/components/Select/Select.js +80 -0
  189. package/dist/components/Select/SelectOption.cjs +26 -0
  190. package/dist/components/Select/SelectOption.js +23 -0
  191. package/dist/components/Select/index.cjs +7 -0
  192. package/dist/components/Select/index.js +2 -0
  193. package/dist/components/SidebarMenu/SidebarMenu.cjs +85 -0
  194. package/dist/components/SidebarMenu/SidebarMenu.js +81 -0
  195. package/dist/components/SidebarMenu/SidebarMenuItem.cjs +126 -0
  196. package/dist/components/SidebarMenu/SidebarMenuItem.js +122 -0
  197. package/dist/components/SidebarMenu/SidebarMenuSection.cjs +14 -0
  198. package/dist/components/SidebarMenu/SidebarMenuSection.js +11 -0
  199. package/dist/components/SidebarMenu/index.cjs +12 -0
  200. package/dist/components/SidebarMenu/index.js +4 -0
  201. package/dist/components/Slider/Slider.cjs +161 -0
  202. package/dist/components/Slider/Slider.js +158 -0
  203. package/dist/components/Slider/index.cjs +6 -0
  204. package/dist/components/Slider/index.js +1 -0
  205. package/dist/components/Spinner/Spinner.cjs +93 -0
  206. package/dist/components/Spinner/Spinner.js +90 -0
  207. package/dist/components/Spinner/index.cjs +5 -0
  208. package/dist/components/Spinner/index.js +1 -0
  209. package/dist/components/Stepper/Stepper.cjs +82 -0
  210. package/dist/components/Stepper/Stepper.js +79 -0
  211. package/dist/components/Stepper/index.cjs +7 -0
  212. package/dist/components/Stepper/index.js +1 -0
  213. package/dist/components/Table/Table.cjs +25 -0
  214. package/dist/components/Table/Table.js +22 -0
  215. package/dist/components/Table/index.cjs +10 -0
  216. package/dist/components/Table/index.js +1 -0
  217. package/dist/components/Table/useTableSelection.cjs +60 -0
  218. package/dist/components/Table/useTableSelection.js +57 -0
  219. package/dist/components/Tabs/Tab.cjs +70 -0
  220. package/dist/components/Tabs/Tab.js +67 -0
  221. package/dist/components/Tabs/Tabs.cjs +133 -0
  222. package/dist/components/Tabs/Tabs.js +129 -0
  223. package/dist/components/Tabs/index.cjs +7 -0
  224. package/dist/components/Tabs/index.js +2 -0
  225. package/dist/components/Tooltip/Tooltip.cjs +101 -0
  226. package/dist/components/Tooltip/Tooltip.js +98 -0
  227. package/dist/components/Tooltip/index.cjs +5 -0
  228. package/dist/components/Tooltip/index.js +1 -0
  229. package/dist/context/ThemeContext.cjs +97 -0
  230. package/dist/context/ThemeContext.js +92 -0
  231. package/dist/fonts/README.md +13 -0
  232. package/dist/fonts/hanken-grotesk-cyrillic-ext-italic.woff2 +0 -0
  233. package/dist/fonts/hanken-grotesk-cyrillic-ext-normal.woff2 +0 -0
  234. package/dist/fonts/hanken-grotesk-latin-ext-italic.woff2 +0 -0
  235. package/dist/fonts/hanken-grotesk-latin-ext-normal.woff2 +0 -0
  236. package/dist/fonts/hanken-grotesk-latin-italic.woff2 +0 -0
  237. package/dist/fonts/hanken-grotesk-latin-normal.woff2 +0 -0
  238. package/dist/fonts/hanken-grotesk-vietnamese-italic.woff2 +0 -0
  239. package/dist/fonts/hanken-grotesk-vietnamese-normal.woff2 +0 -0
  240. package/dist/fonts/hankengrotesk-LICENSE.txt +94 -0
  241. package/dist/fonts/manrope-LICENSE.txt +93 -0
  242. package/dist/fonts/manrope-cyrillic-ext-normal.woff2 +0 -0
  243. package/dist/fonts/manrope-cyrillic-normal.woff2 +0 -0
  244. package/dist/fonts/manrope-greek-normal.woff2 +0 -0
  245. package/dist/fonts/manrope-latin-ext-normal.woff2 +0 -0
  246. package/dist/fonts/manrope-latin-normal.woff2 +0 -0
  247. package/dist/fonts/manrope-vietnamese-normal.woff2 +0 -0
  248. package/dist/fonts.css +148 -0
  249. package/dist/hooks/form/index.cjs +11 -0
  250. package/dist/hooks/form/index.js +3 -0
  251. package/dist/hooks/form/useRaydenFormControl.cjs +81 -0
  252. package/dist/hooks/form/useRaydenFormControl.js +76 -0
  253. package/dist/hooks/form/useRaydenInput.cjs +38 -0
  254. package/dist/hooks/form/useRaydenInput.js +35 -0
  255. package/dist/hooks/form/useRaydenSelect.cjs +45 -0
  256. package/dist/hooks/form/useRaydenSelect.js +42 -0
  257. package/dist/hooks/index.cjs +17 -0
  258. package/dist/hooks/index.js +1 -0
  259. package/dist/hooks/useBodyScrollLock.cjs +24 -0
  260. package/dist/hooks/useBodyScrollLock.js +21 -0
  261. package/dist/hooks/useCollisionAwareSide.cjs +72 -0
  262. package/dist/hooks/useCollisionAwareSide.js +69 -0
  263. package/dist/hooks/useControllableValue.cjs +16 -0
  264. package/dist/hooks/useControllableValue.js +13 -0
  265. package/dist/hooks/useDismissableLayer.cjs +100 -0
  266. package/dist/hooks/useDismissableLayer.js +97 -0
  267. package/dist/hooks/usePopupList.cjs +101 -0
  268. package/dist/hooks/usePopupList.js +98 -0
  269. package/dist/icons-8yD7I5jO.d.cts +430 -0
  270. package/dist/icons-8yD7I5jO.d.ts +430 -0
  271. package/dist/icons.cjs +2111 -418
  272. package/dist/icons.d.cts +1256 -429
  273. package/dist/icons.d.ts +1256 -429
  274. package/dist/icons.js +2089 -1
  275. package/dist/index.cjs +128 -15046
  276. package/dist/index.d.cts +697 -662
  277. package/dist/index.d.ts +697 -662
  278. package/dist/index.js +43 -14962
  279. package/dist/motion/Collapse.cjs +28 -0
  280. package/dist/motion/Collapse.js +25 -0
  281. package/dist/motion/MotionProvider.cjs +43 -0
  282. package/dist/motion/MotionProvider.js +38 -0
  283. package/dist/motion/Pressable.cjs +46 -0
  284. package/dist/motion/Pressable.js +43 -0
  285. package/dist/motion/Reveal.cjs +19 -0
  286. package/dist/motion/Reveal.js +16 -0
  287. package/dist/motion/SharedLayout.cjs +46 -0
  288. package/dist/motion/SharedLayout.js +43 -0
  289. package/dist/motion/index.cjs +19 -0
  290. package/dist/motion/index.js +6 -0
  291. package/dist/motion/presence.cjs +58 -0
  292. package/dist/motion/presence.js +55 -0
  293. package/dist/motion/presets.cjs +88 -0
  294. package/dist/motion/presets.js +84 -0
  295. package/dist/motion.d.cts +51 -0
  296. package/dist/motion.d.ts +51 -0
  297. package/dist/preset.cjs +356 -195
  298. package/dist/preset.d.cts +111 -32
  299. package/dist/preset.d.ts +111 -32
  300. package/dist/preset.js +353 -187
  301. package/dist/presets-Ba5QndHg.d.cts +144 -0
  302. package/dist/presets-Ba5QndHg.d.ts +144 -0
  303. package/dist/styles.css +1 -1
  304. package/dist/utils/cn.cjs +38 -0
  305. package/dist/utils/cn.js +35 -0
  306. package/dist/utils/resolveIcon.cjs +18 -0
  307. package/dist/utils/resolveIcon.js +15 -0
  308. package/package.json +79 -21
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarGroup = exports.Avatar = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const cn_1 = require("../../utils/cn.cjs");
7
+ const resolveIcon_1 = require("../../utils/resolveIcon.cjs");
8
+ const Icon_1 = require("../Icon/index.cjs");
9
+ /* ─── Size Tokens ─── */
10
+ const containerSize = {
11
+ xs: "size-6",
12
+ sm: "size-8",
13
+ md: "size-10",
14
+ lg: "size-12",
15
+ xl: "size-14",
16
+ "2xl": "size-16",
17
+ };
18
+ const initialsFontSize = {
19
+ xs: "text-[10px] leading-[18px]",
20
+ sm: "text-[14px] leading-[1.45]",
21
+ md: "text-[16px] leading-[1.45]",
22
+ lg: "text-[18px] leading-[1.45]",
23
+ xl: "text-[18px] leading-[1.45]",
24
+ "2xl": "text-[20px] leading-[1.2] tracking-[-0.4px]",
25
+ };
26
+ const iconSize = {
27
+ xs: "xs",
28
+ sm: "sm",
29
+ md: "md",
30
+ lg: "md",
31
+ xl: "lg",
32
+ "2xl": "lg",
33
+ };
34
+ const statusDotSize = {
35
+ xs: "size-1.5",
36
+ sm: "size-2",
37
+ md: "size-2.5",
38
+ lg: "size-3",
39
+ xl: "size-3.5",
40
+ "2xl": "size-4",
41
+ };
42
+ const verifiedBadgeSize = {
43
+ xs: "size-2.5",
44
+ sm: "size-3",
45
+ md: "size-3.5",
46
+ lg: "size-4",
47
+ xl: "size-[18px]",
48
+ "2xl": "size-5",
49
+ };
50
+ /* ─── Verified Badge (SVG checkmark in blue circle) ─── */
51
+ function VerifiedBadge({ className }) {
52
+ return ((0, jsx_runtime_1.jsxs)("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [(0, jsx_runtime_1.jsx)("circle", { cx: "10", cy: "10", r: "10", fill: "#1671D9" }), (0, jsx_runtime_1.jsx)("path", { d: "M6 10l3 3 5-6", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }));
53
+ }
54
+ /* ─── Status Indicator ─── */
55
+ const statusText = {
56
+ online: "Online",
57
+ offline: "Offline",
58
+ verified: "Verified",
59
+ };
60
+ function StatusIndicator({ status, size, statusLabel, }) {
61
+ if (status === "none")
62
+ return null;
63
+ // An empty string means the caller has declared the status decorative.
64
+ const text = statusLabel ?? statusText[status];
65
+ if (status === "verified") {
66
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "absolute bottom-0 right-0", children: [(0, jsx_runtime_1.jsx)(VerifiedBadge, { className: verifiedBadgeSize[size] }), text && (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: text })] }));
67
+ }
68
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("absolute bottom-0 right-0 rounded-full border-[1.5px] border-white", statusDotSize[size], status === "online" ? "bg-success-600" : "bg-grey-300"), children: text && (0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: text }) }));
69
+ }
70
+ /* ─── Avatar Component ─── */
71
+ exports.Avatar = (0, react_1.forwardRef)(({ type = "image", size = "md", status = "none", statusLabel, src, alt = "", initials, icon, className, ...rest }, ref) => {
72
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: (0, cn_1.cn)("relative inline-flex shrink-0", containerSize[size], className), ...rest, children: [type === "image" ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 rounded-full border-[1.5px] border-white overflow-hidden", children: src ? ((0, jsx_runtime_1.jsx)("img", { src: src, alt: alt, className: "size-full object-cover rounded-full" })) : ((0, jsx_runtime_1.jsx)("div", { className: "size-full bg-grey-200 rounded-full" })) })) : ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 rounded-full bg-primary-50" })), type === "icon" && ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 flex items-center justify-center text-grey-900", children: icon ? (0, resolveIcon_1.resolveIcon)(icon, iconSize[size]) : (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "user", size: iconSize[size] }) })), type === "initials" && ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("absolute inset-0 flex items-center justify-center font-semibold text-grey-900", initialsFontSize[size]), children: initials })), (0, jsx_runtime_1.jsx)(StatusIndicator, { status: status, size: size, statusLabel: statusLabel })] }));
73
+ });
74
+ exports.Avatar.displayName = "Avatar";
75
+ const groupAvatarSize = {
76
+ sm: "xs",
77
+ md: "sm",
78
+ lg: "md",
79
+ };
80
+ const groupOverlap = {
81
+ sm: "-ml-1.5",
82
+ md: "-ml-1.5",
83
+ lg: "-ml-[11px]",
84
+ };
85
+ const groupCounterText = {
86
+ sm: "text-[10px]",
87
+ md: "text-[14px]",
88
+ lg: "text-[16px]",
89
+ };
90
+ /* ─── AvatarGroup Component ─── */
91
+ exports.AvatarGroup = (0, react_1.forwardRef)(({ size = "md", max, className, children, ...rest }, ref) => {
92
+ const childArray = react_1.Children.toArray(children).filter(react_1.isValidElement);
93
+ const avatarSize = groupAvatarSize[size];
94
+ const overlap = groupOverlap[size];
95
+ const visible = max ? childArray.slice(0, max) : childArray;
96
+ const overflowCount = max ? childArray.length - max : 0;
97
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: (0, cn_1.cn)("inline-flex items-center", className), ...rest, children: [visible.map((child, i) => ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(i > 0 && overlap, "relative"), children: (0, react_1.isValidElement)(child)
98
+ ? (0, react_1.cloneElement)(child, { size: avatarSize, status: "none" })
99
+ : child }, i))), overflowCount > 0 && ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)(overlap, "relative"), children: (0, jsx_runtime_1.jsx)(exports.Avatar, { type: "initials", size: avatarSize, initials: `+${overflowCount}` }) }))] }));
100
+ });
101
+ exports.AvatarGroup.displayName = "AvatarGroup";
@@ -0,0 +1,98 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Children, cloneElement, forwardRef, isValidElement } from "react";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { resolveIcon } from "../../utils/resolveIcon.js";
5
+ import { Icon } from "../Icon/index.js";
6
+ /* ─── Size Tokens ─── */
7
+ const containerSize = {
8
+ xs: "size-6",
9
+ sm: "size-8",
10
+ md: "size-10",
11
+ lg: "size-12",
12
+ xl: "size-14",
13
+ "2xl": "size-16",
14
+ };
15
+ const initialsFontSize = {
16
+ xs: "text-[10px] leading-[18px]",
17
+ sm: "text-[14px] leading-[1.45]",
18
+ md: "text-[16px] leading-[1.45]",
19
+ lg: "text-[18px] leading-[1.45]",
20
+ xl: "text-[18px] leading-[1.45]",
21
+ "2xl": "text-[20px] leading-[1.2] tracking-[-0.4px]",
22
+ };
23
+ const iconSize = {
24
+ xs: "xs",
25
+ sm: "sm",
26
+ md: "md",
27
+ lg: "md",
28
+ xl: "lg",
29
+ "2xl": "lg",
30
+ };
31
+ const statusDotSize = {
32
+ xs: "size-1.5",
33
+ sm: "size-2",
34
+ md: "size-2.5",
35
+ lg: "size-3",
36
+ xl: "size-3.5",
37
+ "2xl": "size-4",
38
+ };
39
+ const verifiedBadgeSize = {
40
+ xs: "size-2.5",
41
+ sm: "size-3",
42
+ md: "size-3.5",
43
+ lg: "size-4",
44
+ xl: "size-[18px]",
45
+ "2xl": "size-5",
46
+ };
47
+ /* ─── Verified Badge (SVG checkmark in blue circle) ─── */
48
+ function VerifiedBadge({ className }) {
49
+ return (_jsxs("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [_jsx("circle", { cx: "10", cy: "10", r: "10", fill: "#1671D9" }), _jsx("path", { d: "M6 10l3 3 5-6", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }));
50
+ }
51
+ /* ─── Status Indicator ─── */
52
+ const statusText = {
53
+ online: "Online",
54
+ offline: "Offline",
55
+ verified: "Verified",
56
+ };
57
+ function StatusIndicator({ status, size, statusLabel, }) {
58
+ if (status === "none")
59
+ return null;
60
+ // An empty string means the caller has declared the status decorative.
61
+ const text = statusLabel ?? statusText[status];
62
+ if (status === "verified") {
63
+ return (_jsxs("div", { className: "absolute bottom-0 right-0", children: [_jsx(VerifiedBadge, { className: verifiedBadgeSize[size] }), text && _jsx("span", { className: "sr-only", children: text })] }));
64
+ }
65
+ return (_jsx("div", { className: cn("absolute bottom-0 right-0 rounded-full border-[1.5px] border-white", statusDotSize[size], status === "online" ? "bg-success-600" : "bg-grey-300"), children: text && _jsx("span", { className: "sr-only", children: text }) }));
66
+ }
67
+ /* ─── Avatar Component ─── */
68
+ export const Avatar = forwardRef(({ type = "image", size = "md", status = "none", statusLabel, src, alt = "", initials, icon, className, ...rest }, ref) => {
69
+ return (_jsxs("div", { ref: ref, className: cn("relative inline-flex shrink-0", containerSize[size], className), ...rest, children: [type === "image" ? (_jsx("div", { className: "absolute inset-0 rounded-full border-[1.5px] border-white overflow-hidden", children: src ? (_jsx("img", { src: src, alt: alt, className: "size-full object-cover rounded-full" })) : (_jsx("div", { className: "size-full bg-grey-200 rounded-full" })) })) : (_jsx("div", { className: "absolute inset-0 rounded-full bg-primary-50" })), type === "icon" && (_jsx("div", { className: "absolute inset-0 flex items-center justify-center text-grey-900", children: icon ? resolveIcon(icon, iconSize[size]) : _jsx(Icon, { name: "user", size: iconSize[size] }) })), type === "initials" && (_jsx("div", { className: cn("absolute inset-0 flex items-center justify-center font-semibold text-grey-900", initialsFontSize[size]), children: initials })), _jsx(StatusIndicator, { status: status, size: size, statusLabel: statusLabel })] }));
70
+ });
71
+ Avatar.displayName = "Avatar";
72
+ const groupAvatarSize = {
73
+ sm: "xs",
74
+ md: "sm",
75
+ lg: "md",
76
+ };
77
+ const groupOverlap = {
78
+ sm: "-ml-1.5",
79
+ md: "-ml-1.5",
80
+ lg: "-ml-[11px]",
81
+ };
82
+ const groupCounterText = {
83
+ sm: "text-[10px]",
84
+ md: "text-[14px]",
85
+ lg: "text-[16px]",
86
+ };
87
+ /* ─── AvatarGroup Component ─── */
88
+ export const AvatarGroup = forwardRef(({ size = "md", max, className, children, ...rest }, ref) => {
89
+ const childArray = Children.toArray(children).filter(isValidElement);
90
+ const avatarSize = groupAvatarSize[size];
91
+ const overlap = groupOverlap[size];
92
+ const visible = max ? childArray.slice(0, max) : childArray;
93
+ const overflowCount = max ? childArray.length - max : 0;
94
+ return (_jsxs("div", { ref: ref, className: cn("inline-flex items-center", className), ...rest, children: [visible.map((child, i) => (_jsx("div", { className: cn(i > 0 && overlap, "relative"), children: isValidElement(child)
95
+ ? cloneElement(child, { size: avatarSize, status: "none" })
96
+ : child }, i))), overflowCount > 0 && (_jsx("div", { className: cn(overlap, "relative"), children: _jsx(Avatar, { type: "initials", size: avatarSize, initials: `+${overflowCount}` }) }))] }));
97
+ });
98
+ AvatarGroup.displayName = "AvatarGroup";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarGroup = exports.Avatar = void 0;
4
+ var Avatar_1 = require("./Avatar.cjs");
5
+ Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_1.Avatar; } });
6
+ Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return Avatar_1.AvatarGroup; } });
@@ -0,0 +1 @@
1
+ export { Avatar, AvatarGroup } from "./Avatar.js";
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Badge = Badge;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cn_1 = require("../../utils/cn.cjs");
6
+ const resolveIcon_1 = require("../../utils/resolveIcon.cjs");
7
+ const colorStyles = {
8
+ orange: {
9
+ filled: "bg-action-primary text-white",
10
+ accent: "bg-primary-50 text-primary-700",
11
+ outline: "border border-primary-700 text-primary-700",
12
+ },
13
+ blue: {
14
+ filled: "bg-action-info text-white",
15
+ accent: "bg-secondary-50 text-secondary-700",
16
+ outline: "border border-secondary-700 text-secondary-700",
17
+ },
18
+ success: {
19
+ filled: "bg-action-success text-white",
20
+ accent: "bg-success-50 text-success-700",
21
+ outline: "border border-success-700 text-success-700",
22
+ },
23
+ warning: {
24
+ filled: "bg-warning-400 text-black",
25
+ accent: "bg-warning-50 text-warning-700",
26
+ outline: "border border-warning-700 text-warning-700",
27
+ },
28
+ error: {
29
+ filled: "bg-action-danger text-white",
30
+ accent: "bg-error-50 text-error-700",
31
+ outline: "border border-error-700 text-error-700",
32
+ },
33
+ neutral: {
34
+ filled: "bg-grey-900 text-grey-50",
35
+ accent: "bg-grey-100 text-grey-700",
36
+ outline: "border border-grey-700 text-grey-700",
37
+ },
38
+ disabled: {
39
+ filled: "bg-grey-300 text-grey-50",
40
+ accent: "bg-grey-100 text-grey-500",
41
+ outline: "border border-grey-400 text-grey-500",
42
+ },
43
+ };
44
+ const sizeStyles = {
45
+ sm: { container: "h-[22px] px-2 text-xs gap-1", icon: "size-3" },
46
+ md: { container: "h-6 px-2.5 text-xs gap-1", icon: "size-3" },
47
+ lg: { container: "h-7 px-3 text-sm gap-1.5", icon: "size-3.5" },
48
+ };
49
+ function Badge({ color = "orange", type = "filled", size = "sm", leadingIcon, trailingIcon, className, children, ...rest }) {
50
+ const colorClass = colorStyles[color][type];
51
+ const sizeConfig = sizeStyles[size];
52
+ return ((0, jsx_runtime_1.jsxs)("span", { className: (0, cn_1.cn)("inline-flex items-center rounded-xl font-medium whitespace-nowrap", sizeConfig.container, colorClass, className), ...rest, children: [leadingIcon && ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("shrink-0", sizeConfig.icon), children: (0, resolveIcon_1.resolveIcon)(leadingIcon, "xs") })), children, trailingIcon && ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("shrink-0", sizeConfig.icon), children: (0, resolveIcon_1.resolveIcon)(trailingIcon, "xs") }))] }));
53
+ }
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../utils/cn.js";
3
+ import { resolveIcon } from "../../utils/resolveIcon.js";
4
+ const colorStyles = {
5
+ orange: {
6
+ filled: "bg-action-primary text-white",
7
+ accent: "bg-primary-50 text-primary-700",
8
+ outline: "border border-primary-700 text-primary-700",
9
+ },
10
+ blue: {
11
+ filled: "bg-action-info text-white",
12
+ accent: "bg-secondary-50 text-secondary-700",
13
+ outline: "border border-secondary-700 text-secondary-700",
14
+ },
15
+ success: {
16
+ filled: "bg-action-success text-white",
17
+ accent: "bg-success-50 text-success-700",
18
+ outline: "border border-success-700 text-success-700",
19
+ },
20
+ warning: {
21
+ filled: "bg-warning-400 text-black",
22
+ accent: "bg-warning-50 text-warning-700",
23
+ outline: "border border-warning-700 text-warning-700",
24
+ },
25
+ error: {
26
+ filled: "bg-action-danger text-white",
27
+ accent: "bg-error-50 text-error-700",
28
+ outline: "border border-error-700 text-error-700",
29
+ },
30
+ neutral: {
31
+ filled: "bg-grey-900 text-grey-50",
32
+ accent: "bg-grey-100 text-grey-700",
33
+ outline: "border border-grey-700 text-grey-700",
34
+ },
35
+ disabled: {
36
+ filled: "bg-grey-300 text-grey-50",
37
+ accent: "bg-grey-100 text-grey-500",
38
+ outline: "border border-grey-400 text-grey-500",
39
+ },
40
+ };
41
+ const sizeStyles = {
42
+ sm: { container: "h-[22px] px-2 text-xs gap-1", icon: "size-3" },
43
+ md: { container: "h-6 px-2.5 text-xs gap-1", icon: "size-3" },
44
+ lg: { container: "h-7 px-3 text-sm gap-1.5", icon: "size-3.5" },
45
+ };
46
+ export function Badge({ color = "orange", type = "filled", size = "sm", leadingIcon, trailingIcon, className, children, ...rest }) {
47
+ const colorClass = colorStyles[color][type];
48
+ const sizeConfig = sizeStyles[size];
49
+ return (_jsxs("span", { className: cn("inline-flex items-center rounded-xl font-medium whitespace-nowrap", sizeConfig.container, colorClass, className), ...rest, children: [leadingIcon && (_jsx("span", { className: cn("shrink-0", sizeConfig.icon), children: resolveIcon(leadingIcon, "xs") })), children, trailingIcon && (_jsx("span", { className: cn("shrink-0", sizeConfig.icon), children: resolveIcon(trailingIcon, "xs") }))] }));
50
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Badge = void 0;
4
+ var Badge_1 = require("./Badge.cjs");
5
+ Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
@@ -0,0 +1 @@
1
+ export { Badge } from "./Badge.js";
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Banner = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const cn_1 = require("../../utils/cn.cjs");
7
+ const resolveIcon_1 = require("../../utils/resolveIcon.cjs");
8
+ const statusColors = {
9
+ information: {
10
+ bold: { bg: "bg-action-info", divider: "bg-secondary-50" },
11
+ subtle: {
12
+ bg: "bg-secondary-50",
13
+ text: "text-grey-900",
14
+ descText: "text-grey-600",
15
+ divider: "bg-secondary-500",
16
+ },
17
+ },
18
+ success: {
19
+ bold: { bg: "bg-action-success", divider: "bg-success-50" },
20
+ subtle: {
21
+ bg: "bg-success-50",
22
+ text: "text-grey-900",
23
+ descText: "text-grey-600",
24
+ divider: "bg-success-400",
25
+ },
26
+ },
27
+ error: {
28
+ bold: { bg: "bg-action-danger", divider: "bg-error-50" },
29
+ subtle: {
30
+ bg: "bg-error-50",
31
+ text: "text-grey-900",
32
+ descText: "text-grey-600",
33
+ divider: "bg-error-400",
34
+ },
35
+ },
36
+ warning: {
37
+ bold: { bg: "bg-action-warning", divider: "bg-warning-50" },
38
+ subtle: {
39
+ bg: "bg-warning-50",
40
+ text: "text-grey-900",
41
+ descText: "text-grey-600",
42
+ divider: "bg-warning-700",
43
+ },
44
+ },
45
+ feature: {
46
+ bold: { bg: "bg-[#101928]", divider: "bg-grey-100" },
47
+ subtle: {
48
+ bg: "bg-grey-50",
49
+ text: "text-grey-900",
50
+ descText: "text-grey-600",
51
+ divider: "bg-grey-300",
52
+ },
53
+ },
54
+ opportunity: {
55
+ bold: { bg: "bg-[#475ccc]", divider: "bg-secondary-50" },
56
+ subtle: {
57
+ bg: "bg-secondary-50",
58
+ text: "text-grey-900",
59
+ descText: "text-grey-600",
60
+ divider: "bg-secondary-500",
61
+ },
62
+ },
63
+ };
64
+ /* ─── Icons ────────────────────────────────────────────────────────────── */
65
+ function InfoIcon({ className }) {
66
+ return ((0, jsx_runtime_1.jsxs)("svg", { className: className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10" }), (0, jsx_runtime_1.jsx)("path", { d: "M12 16v-4M12 8h.01" })] }));
67
+ }
68
+ function CloseIcon({ className }) {
69
+ return ((0, jsx_runtime_1.jsx)("svg", { className: className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M18 6L6 18M6 6l12 12" }) }));
70
+ }
71
+ /* ─── Banner ───────────────────────────────────────────────────────────── */
72
+ exports.Banner = (0, react_1.forwardRef)(({ status = "information", emphasis = "subtle", size = "lg", title, description, icon, buttonLabel, onButtonClick, dismissible, onDismiss, className, ...rest }, ref) => {
73
+ const colors = statusColors[status];
74
+ const isBold = emphasis === "bold";
75
+ const colorSet = isBold ? colors.bold : colors.subtle;
76
+ const textColor = isBold ? "text-white" : colorSet.text;
77
+ const descColor = isBold ? "text-white" : colorSet.descText;
78
+ const buttonColor = isBold ? "text-white" : "text-grey-600";
79
+ const iconSize = size === "sm" ? "size-4" : "size-6";
80
+ const textSize = size === "sm" ? "text-xs" : "text-sm";
81
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, role: "alert", className: (0, cn_1.cn)("flex items-center justify-between gap-3 overflow-hidden rounded-[4px] w-full", colorSet.bg, size === "sm" ? "min-h-10 px-3 py-2" : "min-h-12 px-8 py-3", className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, cn_1.cn)("flex min-w-0 flex-1 flex-wrap items-center gap-y-1", size === "sm" ? "gap-x-2" : "gap-x-3"), children: [icon ? ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("shrink-0", iconSize, textColor), children: (0, resolveIcon_1.resolveIcon)(icon, size === "sm" ? "sm" : "md") })) : ((0, jsx_runtime_1.jsx)(InfoIcon, { className: (0, cn_1.cn)("shrink-0", iconSize, textColor) })), (0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("min-w-0 font-semibold leading-[1.45]", textSize, textColor), children: title }), description && ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("min-w-0 leading-[1.45] hidden sm:inline", textSize, descColor), children: description })), buttonLabel && ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onButtonClick, className: (0, cn_1.cn)("shrink-0 font-semibold leading-[1.45] whitespace-nowrap cursor-pointer", textSize, buttonColor, isBold && "text-white underline"), children: buttonLabel }))] }), (dismissible ?? !!onDismiss) && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3 self-stretch shrink-0", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("w-px self-stretch", colorSet.divider) }), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onDismiss, "aria-label": "Dismiss banner", className: (0, cn_1.cn)("shrink-0 box-content p-1 -m-1 cursor-pointer", iconSize, textColor), children: (0, jsx_runtime_1.jsx)(CloseIcon, { className: "size-full" }) })] }))] }));
82
+ });
83
+ exports.Banner.displayName = "Banner";
@@ -0,0 +1,80 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { resolveIcon } from "../../utils/resolveIcon.js";
5
+ const statusColors = {
6
+ information: {
7
+ bold: { bg: "bg-action-info", divider: "bg-secondary-50" },
8
+ subtle: {
9
+ bg: "bg-secondary-50",
10
+ text: "text-grey-900",
11
+ descText: "text-grey-600",
12
+ divider: "bg-secondary-500",
13
+ },
14
+ },
15
+ success: {
16
+ bold: { bg: "bg-action-success", divider: "bg-success-50" },
17
+ subtle: {
18
+ bg: "bg-success-50",
19
+ text: "text-grey-900",
20
+ descText: "text-grey-600",
21
+ divider: "bg-success-400",
22
+ },
23
+ },
24
+ error: {
25
+ bold: { bg: "bg-action-danger", divider: "bg-error-50" },
26
+ subtle: {
27
+ bg: "bg-error-50",
28
+ text: "text-grey-900",
29
+ descText: "text-grey-600",
30
+ divider: "bg-error-400",
31
+ },
32
+ },
33
+ warning: {
34
+ bold: { bg: "bg-action-warning", divider: "bg-warning-50" },
35
+ subtle: {
36
+ bg: "bg-warning-50",
37
+ text: "text-grey-900",
38
+ descText: "text-grey-600",
39
+ divider: "bg-warning-700",
40
+ },
41
+ },
42
+ feature: {
43
+ bold: { bg: "bg-[#101928]", divider: "bg-grey-100" },
44
+ subtle: {
45
+ bg: "bg-grey-50",
46
+ text: "text-grey-900",
47
+ descText: "text-grey-600",
48
+ divider: "bg-grey-300",
49
+ },
50
+ },
51
+ opportunity: {
52
+ bold: { bg: "bg-[#475ccc]", divider: "bg-secondary-50" },
53
+ subtle: {
54
+ bg: "bg-secondary-50",
55
+ text: "text-grey-900",
56
+ descText: "text-grey-600",
57
+ divider: "bg-secondary-500",
58
+ },
59
+ },
60
+ };
61
+ /* ─── Icons ────────────────────────────────────────────────────────────── */
62
+ function InfoIcon({ className }) {
63
+ return (_jsxs("svg", { className: className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("path", { d: "M12 16v-4M12 8h.01" })] }));
64
+ }
65
+ function CloseIcon({ className }) {
66
+ return (_jsx("svg", { className: className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "M18 6L6 18M6 6l12 12" }) }));
67
+ }
68
+ /* ─── Banner ───────────────────────────────────────────────────────────── */
69
+ export const Banner = forwardRef(({ status = "information", emphasis = "subtle", size = "lg", title, description, icon, buttonLabel, onButtonClick, dismissible, onDismiss, className, ...rest }, ref) => {
70
+ const colors = statusColors[status];
71
+ const isBold = emphasis === "bold";
72
+ const colorSet = isBold ? colors.bold : colors.subtle;
73
+ const textColor = isBold ? "text-white" : colorSet.text;
74
+ const descColor = isBold ? "text-white" : colorSet.descText;
75
+ const buttonColor = isBold ? "text-white" : "text-grey-600";
76
+ const iconSize = size === "sm" ? "size-4" : "size-6";
77
+ const textSize = size === "sm" ? "text-xs" : "text-sm";
78
+ return (_jsxs("div", { ref: ref, role: "alert", className: cn("flex items-center justify-between gap-3 overflow-hidden rounded-[4px] w-full", colorSet.bg, size === "sm" ? "min-h-10 px-3 py-2" : "min-h-12 px-8 py-3", className), ...rest, children: [_jsxs("div", { className: cn("flex min-w-0 flex-1 flex-wrap items-center gap-y-1", size === "sm" ? "gap-x-2" : "gap-x-3"), children: [icon ? (_jsx("span", { className: cn("shrink-0", iconSize, textColor), children: resolveIcon(icon, size === "sm" ? "sm" : "md") })) : (_jsx(InfoIcon, { className: cn("shrink-0", iconSize, textColor) })), _jsx("span", { className: cn("min-w-0 font-semibold leading-[1.45]", textSize, textColor), children: title }), description && (_jsx("span", { className: cn("min-w-0 leading-[1.45] hidden sm:inline", textSize, descColor), children: description })), buttonLabel && (_jsx("button", { type: "button", onClick: onButtonClick, className: cn("shrink-0 font-semibold leading-[1.45] whitespace-nowrap cursor-pointer", textSize, buttonColor, isBold && "text-white underline"), children: buttonLabel }))] }), (dismissible ?? !!onDismiss) && (_jsxs("div", { className: "flex items-center gap-3 self-stretch shrink-0", children: [_jsx("div", { className: cn("w-px self-stretch", colorSet.divider) }), _jsx("button", { type: "button", onClick: onDismiss, "aria-label": "Dismiss banner", className: cn("shrink-0 box-content p-1 -m-1 cursor-pointer", iconSize, textColor), children: _jsx(CloseIcon, { className: "size-full" }) })] }))] }));
79
+ });
80
+ Banner.displayName = "Banner";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Banner = void 0;
4
+ var Banner_1 = require("./Banner.cjs");
5
+ Object.defineProperty(exports, "Banner", { enumerable: true, get: function () { return Banner_1.Banner; } });
@@ -0,0 +1 @@
1
+ export { Banner } from "./Banner.js";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Breadcrumb = Breadcrumb;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cn_1 = require("../../utils/cn.cjs");
6
+ const resolveIcon_1 = require("../../utils/resolveIcon.cjs");
7
+ /* ─── Separator Icons ──────────────────────────────────────────────────── */
8
+ function ChevronRight({ className }) {
9
+ return ((0, jsx_runtime_1.jsx)("svg", { className: className, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M7.5 5l5 5-5 5" }) }));
10
+ }
11
+ function DoubleChevronRight({ className }) {
12
+ return ((0, jsx_runtime_1.jsx)("svg", { className: className, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: (0, jsx_runtime_1.jsx)("path", { d: "M5.5 5l5 5-5 5M10.5 5l5 5-5 5" }) }));
13
+ }
14
+ function SeparatorElement({ type }) {
15
+ switch (type) {
16
+ case "chevron":
17
+ return (0, jsx_runtime_1.jsx)(ChevronRight, { className: "size-5 text-grey-300" });
18
+ case "double-chevron":
19
+ return (0, jsx_runtime_1.jsx)(DoubleChevronRight, { className: "size-5 text-grey-300" });
20
+ case "slash":
21
+ return (0, jsx_runtime_1.jsx)("span", { className: "text-sm font-medium text-grey-300 w-4 text-center", children: "/" });
22
+ }
23
+ }
24
+ /* ─── Breadcrumb ───────────────────────────────────────────────────────── */
25
+ function Breadcrumb({ items, separator = "chevron", hasBorders = false, className, ...rest }) {
26
+ return ((0, jsx_runtime_1.jsx)("nav", { "aria-label": "Breadcrumb", className: (0, cn_1.cn)("py-2.5", hasBorders && "border-y border-grey-100", className), ...rest, children: (0, jsx_runtime_1.jsx)("ol", { className: "flex items-center gap-4 text-sm font-medium", children: items.map((item, i) => ((0, jsx_runtime_1.jsxs)("li", { className: "flex items-center gap-4", children: [i > 0 && ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": true, children: (0, jsx_runtime_1.jsx)(SeparatorElement, { type: separator }) })), (0, jsx_runtime_1.jsxs)("span", { className: "flex items-center gap-2", children: [item.icon && ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)("size-5 shrink-0", item.active
27
+ ? "text-primary-400"
28
+ : item.disabled
29
+ ? "text-grey-300"
30
+ : "text-grey-500 group-hover:text-grey-700"), children: (0, resolveIcon_1.resolveIcon)(item.icon, "sm") })), item.href && !item.disabled && !item.active ? ((0, jsx_runtime_1.jsx)("a", { href: item.href, className: "text-grey-500 hover:text-grey-700 hover:underline transition-colors", children: item.label })) : ((0, jsx_runtime_1.jsx)("span", { className: (0, cn_1.cn)(item.active && "text-primary-400", item.disabled && "text-grey-300 cursor-not-allowed", !item.active && !item.disabled && "text-grey-500"), "aria-current": item.active ? "page" : undefined, children: item.label }))] })] }, i))) }) }));
31
+ }
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../utils/cn.js";
3
+ import { resolveIcon } from "../../utils/resolveIcon.js";
4
+ /* ─── Separator Icons ──────────────────────────────────────────────────── */
5
+ function ChevronRight({ className }) {
6
+ return (_jsx("svg", { className: className, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "M7.5 5l5 5-5 5" }) }));
7
+ }
8
+ function DoubleChevronRight({ className }) {
9
+ return (_jsx("svg", { className: className, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "M5.5 5l5 5-5 5M10.5 5l5 5-5 5" }) }));
10
+ }
11
+ function SeparatorElement({ type }) {
12
+ switch (type) {
13
+ case "chevron":
14
+ return _jsx(ChevronRight, { className: "size-5 text-grey-300" });
15
+ case "double-chevron":
16
+ return _jsx(DoubleChevronRight, { className: "size-5 text-grey-300" });
17
+ case "slash":
18
+ return _jsx("span", { className: "text-sm font-medium text-grey-300 w-4 text-center", children: "/" });
19
+ }
20
+ }
21
+ /* ─── Breadcrumb ───────────────────────────────────────────────────────── */
22
+ export function Breadcrumb({ items, separator = "chevron", hasBorders = false, className, ...rest }) {
23
+ return (_jsx("nav", { "aria-label": "Breadcrumb", className: cn("py-2.5", hasBorders && "border-y border-grey-100", className), ...rest, children: _jsx("ol", { className: "flex items-center gap-4 text-sm font-medium", children: items.map((item, i) => (_jsxs("li", { className: "flex items-center gap-4", children: [i > 0 && (_jsx("span", { "aria-hidden": true, children: _jsx(SeparatorElement, { type: separator }) })), _jsxs("span", { className: "flex items-center gap-2", children: [item.icon && (_jsx("span", { className: cn("size-5 shrink-0", item.active
24
+ ? "text-primary-400"
25
+ : item.disabled
26
+ ? "text-grey-300"
27
+ : "text-grey-500 group-hover:text-grey-700"), children: resolveIcon(item.icon, "sm") })), item.href && !item.disabled && !item.active ? (_jsx("a", { href: item.href, className: "text-grey-500 hover:text-grey-700 hover:underline transition-colors", children: item.label })) : (_jsx("span", { className: cn(item.active && "text-primary-400", item.disabled && "text-grey-300 cursor-not-allowed", !item.active && !item.disabled && "text-grey-500"), "aria-current": item.active ? "page" : undefined, children: item.label }))] })] }, i))) }) }));
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Breadcrumb = void 0;
4
+ var Breadcrumb_1 = require("./Breadcrumb.cjs");
5
+ Object.defineProperty(exports, "Breadcrumb", { enumerable: true, get: function () { return Breadcrumb_1.Breadcrumb; } });
@@ -0,0 +1 @@
1
+ export { Breadcrumb } from "./Breadcrumb.js";