ixia-ui-react 1.8.0 → 2.0.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 (270) hide show
  1. package/README.md +24 -1
  2. package/dist/accordion/index.d.ts +41 -0
  3. package/dist/accordion/index.js +142 -0
  4. package/dist/accordion/index.js.map +1 -0
  5. package/dist/alert/index.d.ts +22 -0
  6. package/dist/alert/index.js +1 -0
  7. package/dist/alert-Dcu9R8CY.js +73 -0
  8. package/dist/alert-Dcu9R8CY.js.map +1 -0
  9. package/dist/alert-dialog/index.d.ts +39 -0
  10. package/dist/alert-dialog/index.js +134 -0
  11. package/dist/alert-dialog/index.js.map +1 -0
  12. package/dist/autocomplete/index.d.ts +2 -0
  13. package/dist/autocomplete/index.js +1 -0
  14. package/dist/autocomplete-BfpWVO1l.js +169 -0
  15. package/dist/autocomplete-BfpWVO1l.js.map +1 -0
  16. package/dist/avatar/index.d.ts +2 -0
  17. package/dist/avatar/index.js +1 -0
  18. package/dist/avatar-Bp4gZh21.js +93 -0
  19. package/dist/avatar-Bp4gZh21.js.map +1 -0
  20. package/dist/badge/index.d.ts +2 -0
  21. package/dist/badge/index.js +1 -0
  22. package/dist/badge-Cl-9WTW-.js +160 -0
  23. package/dist/badge-Cl-9WTW-.js.map +1 -0
  24. package/dist/bento-box/index.d.ts +30 -0
  25. package/dist/bento-box/index.js +103 -0
  26. package/dist/bento-box/index.js.map +1 -0
  27. package/dist/breadcrumb/index.d.ts +18 -0
  28. package/dist/breadcrumb/index.js +58 -0
  29. package/dist/breadcrumb/index.js.map +1 -0
  30. package/dist/button/index.d.ts +3 -0
  31. package/dist/button/index.js +1 -0
  32. package/dist/button-BpUC-R1J.js +307 -0
  33. package/dist/button-BpUC-R1J.js.map +1 -0
  34. package/dist/button-group/index.d.ts +2 -0
  35. package/dist/button-group/index.js +1 -0
  36. package/dist/button-group-7azbqlcO.js +269 -0
  37. package/dist/button-group-7azbqlcO.js.map +1 -0
  38. package/dist/button.types-BFKrBCGd.d.ts +10 -0
  39. package/dist/calendar/index.d.ts +63 -0
  40. package/dist/calendar/index.js +292 -0
  41. package/dist/calendar/index.js.map +1 -0
  42. package/dist/chart/index.d.ts +87 -0
  43. package/dist/chart/index.js +262 -0
  44. package/dist/chart/index.js.map +1 -0
  45. package/dist/checkbox/index.d.ts +2 -0
  46. package/dist/checkbox/index.js +1 -0
  47. package/dist/checkbox-BuUZ1Lly.js +54 -0
  48. package/dist/checkbox-BuUZ1Lly.js.map +1 -0
  49. package/dist/checkbox-group/index.d.ts +6 -0
  50. package/dist/checkbox-group/index.js +17 -0
  51. package/dist/checkbox-group/index.js.map +1 -0
  52. package/dist/cn-BDi0DfT5.js +29 -0
  53. package/dist/cn-BDi0DfT5.js.map +1 -0
  54. package/dist/code-block/index.d.ts +50 -0
  55. package/dist/code-block/index.js +208 -0
  56. package/dist/code-block/index.js.map +1 -0
  57. package/dist/collapsible/index.d.ts +2 -0
  58. package/dist/collapsible/index.js +1 -0
  59. package/dist/collapsible-BVqrh0Q0.js +44 -0
  60. package/dist/collapsible-BVqrh0Q0.js.map +1 -0
  61. package/dist/color-channel-slider/index.d.ts +2 -0
  62. package/dist/color-channel-slider/index.js +1 -0
  63. package/dist/color-channel-slider-h8mUPJ35.js +70 -0
  64. package/dist/color-channel-slider-h8mUPJ35.js.map +1 -0
  65. package/dist/color-picker/index.d.ts +137 -0
  66. package/dist/color-picker/index.js +621 -0
  67. package/dist/color-picker/index.js.map +1 -0
  68. package/dist/combobox/index.d.ts +64 -0
  69. package/dist/combobox/index.js +289 -0
  70. package/dist/combobox/index.js.map +1 -0
  71. package/dist/context-menu/index.d.ts +49 -0
  72. package/dist/context-menu/index.js +166 -0
  73. package/dist/context-menu/index.js.map +1 -0
  74. package/dist/dialog/index.d.ts +36 -0
  75. package/dist/dialog/index.js +119 -0
  76. package/dist/dialog/index.js.map +1 -0
  77. package/dist/drawer/index.d.ts +31 -0
  78. package/dist/drawer/index.js +95 -0
  79. package/dist/drawer/index.js.map +1 -0
  80. package/dist/dropzone/index.d.ts +70 -0
  81. package/dist/dropzone/index.js +479 -0
  82. package/dist/dropzone/index.js.map +1 -0
  83. package/dist/field/index.d.ts +2 -0
  84. package/dist/field/index.js +1 -0
  85. package/dist/field-DTL7eA5y.js +254 -0
  86. package/dist/field-DTL7eA5y.js.map +1 -0
  87. package/dist/form/index.d.ts +220 -0
  88. package/dist/form/index.js +3 -0
  89. package/dist/form-BxMg796f.js +192 -0
  90. package/dist/form-BxMg796f.js.map +1 -0
  91. package/dist/has-single-element-child-DLGI0Dh2.js +12 -0
  92. package/dist/has-single-element-child-DLGI0Dh2.js.map +1 -0
  93. package/dist/hooks/index.d.ts +26 -0
  94. package/dist/hooks/index.js +1 -0
  95. package/dist/hooks-DUm-q_ig.js +68 -0
  96. package/dist/hooks-DUm-q_ig.js.map +1 -0
  97. package/dist/icon/index.d.ts +2 -0
  98. package/dist/icon/index.js +1 -0
  99. package/dist/icon-D3JWfCa2.js +85 -0
  100. package/dist/icon-D3JWfCa2.js.map +1 -0
  101. package/dist/icon-container/index.d.ts +10 -0
  102. package/dist/icon-container/index.js +64 -0
  103. package/dist/icon-container/index.js.map +1 -0
  104. package/dist/index-0ZQzIKoE.d.ts +11 -0
  105. package/dist/index-B3MK1QYh.d.ts +11 -0
  106. package/dist/index-BJVMIPq4.d.ts +54 -0
  107. package/dist/index-BsV-u_jc.d.ts +4 -0
  108. package/dist/index-BygR7cUT.d.ts +22 -0
  109. package/dist/index-BzTOLSgZ.d.ts +9 -0
  110. package/dist/index-C15xiG9O.d.ts +14 -0
  111. package/dist/index-C2zco6-C.d.ts +15 -0
  112. package/dist/index-CIDOd4Z8.d.ts +56 -0
  113. package/dist/index-CQti9gFb.d.ts +49 -0
  114. package/dist/index-CiE-Rqit.d.ts +70 -0
  115. package/dist/index-D1kkOg9k.d.ts +14 -0
  116. package/dist/index-DLfdAked.d.ts +34 -0
  117. package/dist/index-DMaW_XF1.d.ts +24 -0
  118. package/dist/index-Db_QGr6S.d.ts +5 -0
  119. package/dist/index-DdFxZ3Xr.d.ts +22 -0
  120. package/dist/index-DfNHJF0t.d.ts +33 -0
  121. package/dist/index-DyQYoAUf.d.ts +29 -0
  122. package/dist/index-N2CBSUDu.d.ts +14 -0
  123. package/dist/index-PuhTRMce.d.ts +11 -0
  124. package/dist/index-Wb_tILYa.d.ts +24 -0
  125. package/dist/index-bVyqfhJS.d.ts +4 -0
  126. package/dist/index-x4f8gnaI.d.ts +15 -0
  127. package/dist/input/index.d.ts +3 -0
  128. package/dist/input/index.js +1 -0
  129. package/dist/input-Laj6dwtK.js +179 -0
  130. package/dist/input-Laj6dwtK.js.map +1 -0
  131. package/dist/input-group/index.d.ts +2 -0
  132. package/dist/input-group/index.js +1 -0
  133. package/dist/input-group-CgdazGrY.js +111 -0
  134. package/dist/input-group-CgdazGrY.js.map +1 -0
  135. package/dist/input-otp/index.d.ts +13 -0
  136. package/dist/input-otp/index.js +44 -0
  137. package/dist/input-otp/index.js.map +1 -0
  138. package/dist/input.types-816rEVWU.d.ts +20 -0
  139. package/dist/input.types-D0gyoaQv.js +48 -0
  140. package/dist/input.types-D0gyoaQv.js.map +1 -0
  141. package/dist/kbd/index.d.ts +9 -0
  142. package/dist/kbd/index.js +25 -0
  143. package/dist/kbd/index.js.map +1 -0
  144. package/dist/label/index.d.ts +8 -0
  145. package/dist/label/index.js +1 -0
  146. package/dist/label-BgpayDvN.js +27 -0
  147. package/dist/label-BgpayDvN.js.map +1 -0
  148. package/dist/layer-tree/index.d.ts +728 -0
  149. package/dist/layer-tree/index.js +685 -0
  150. package/dist/layer-tree/index.js.map +1 -0
  151. package/dist/map/google/index.d.ts +143 -0
  152. package/dist/map/google/index.js +445 -0
  153. package/dist/map/google/index.js.map +1 -0
  154. package/dist/map/index.d.ts +94 -0
  155. package/dist/map/index.js +208 -0
  156. package/dist/map/index.js.map +1 -0
  157. package/dist/map.context-Dw1D7E8m.js +11 -0
  158. package/dist/map.context-Dw1D7E8m.js.map +1 -0
  159. package/dist/menu/index.d.ts +2 -0
  160. package/dist/menu/index.js +1 -0
  161. package/dist/menu-sf13cnGp.js +173 -0
  162. package/dist/menu-sf13cnGp.js.map +1 -0
  163. package/dist/menu-tone-DWBEHoX2.js +22 -0
  164. package/dist/menu-tone-DWBEHoX2.js.map +1 -0
  165. package/dist/meter/index.d.ts +2 -0
  166. package/dist/meter/index.js +1 -0
  167. package/dist/meter-HD5taq57.js +116 -0
  168. package/dist/meter-HD5taq57.js.map +1 -0
  169. package/dist/nav-bar/index.d.ts +25 -0
  170. package/dist/nav-bar/index.js +133 -0
  171. package/dist/nav-bar/index.js.map +1 -0
  172. package/dist/navigation-menu/index.d.ts +43 -0
  173. package/dist/navigation-menu/index.js +176 -0
  174. package/dist/navigation-menu/index.js.map +1 -0
  175. package/dist/number-field/index.d.ts +14 -0
  176. package/dist/number-field/index.js +116 -0
  177. package/dist/number-field/index.js.map +1 -0
  178. package/dist/popover/index.d.ts +2 -0
  179. package/dist/popover/index.js +1 -0
  180. package/dist/popover-B1s4xXrX.js +114 -0
  181. package/dist/popover-B1s4xXrX.js.map +1 -0
  182. package/dist/preview-card/index.d.ts +13 -0
  183. package/dist/preview-card/index.js +35 -0
  184. package/dist/preview-card/index.js.map +1 -0
  185. package/dist/profile/index.d.ts +21 -0
  186. package/dist/profile/index.js +52 -0
  187. package/dist/profile/index.js.map +1 -0
  188. package/dist/progress/index.d.ts +23 -0
  189. package/dist/progress/index.js +97 -0
  190. package/dist/progress/index.js.map +1 -0
  191. package/dist/radar-ping/index.d.ts +11 -0
  192. package/dist/radar-ping/index.js +49 -0
  193. package/dist/radar-ping/index.js.map +1 -0
  194. package/dist/radio-group/index.d.ts +2 -0
  195. package/dist/radio-group/index.js +1 -0
  196. package/dist/radio-group-Dj43u35Z.js +47 -0
  197. package/dist/radio-group-Dj43u35Z.js.map +1 -0
  198. package/dist/resizeable/index.d.ts +11 -0
  199. package/dist/resizeable/index.js +31 -0
  200. package/dist/resizeable/index.js.map +1 -0
  201. package/dist/scroll-area/index.d.ts +11 -0
  202. package/dist/scroll-area/index.js +51 -0
  203. package/dist/scroll-area/index.js.map +1 -0
  204. package/dist/select/index.d.ts +2 -0
  205. package/dist/select/index.js +1 -0
  206. package/dist/select-DncJXYim.js +159 -0
  207. package/dist/select-DncJXYim.js.map +1 -0
  208. package/dist/separator/index.d.ts +2 -0
  209. package/dist/separator/index.js +1 -0
  210. package/dist/separator-DgIQp1cB.js +97 -0
  211. package/dist/separator-DgIQp1cB.js.map +1 -0
  212. package/dist/sidebar/index.d.ts +80 -0
  213. package/dist/sidebar/index.js +334 -0
  214. package/dist/sidebar/index.js.map +1 -0
  215. package/dist/site-header/index.d.ts +22 -0
  216. package/dist/site-header/index.js +55 -0
  217. package/dist/site-header/index.js.map +1 -0
  218. package/dist/skeleton/index.d.ts +4 -0
  219. package/dist/skeleton/index.js +1 -0
  220. package/dist/skeleton-DSG3FWby.js +13 -0
  221. package/dist/skeleton-DSG3FWby.js.map +1 -0
  222. package/dist/slider/index.d.ts +2 -0
  223. package/dist/slider/index.js +1 -0
  224. package/dist/slider-D_XlV4OW.js +114 -0
  225. package/dist/slider-D_XlV4OW.js.map +1 -0
  226. package/dist/slider-group/index.d.ts +46 -0
  227. package/dist/slider-group/index.js +198 -0
  228. package/dist/slider-group/index.js.map +1 -0
  229. package/dist/styles.css +4 -1
  230. package/dist/switch/index.d.ts +2 -0
  231. package/dist/switch/index.js +1 -0
  232. package/dist/switch-DXHixGHe.js +23 -0
  233. package/dist/switch-DXHixGHe.js.map +1 -0
  234. package/dist/table/index.d.ts +920 -0
  235. package/dist/table/index.js +1544 -0
  236. package/dist/table/index.js.map +1 -0
  237. package/dist/tabs/index.d.ts +2 -0
  238. package/dist/tabs/index.js +1 -0
  239. package/dist/tabs-DTC7coap.js +270 -0
  240. package/dist/tabs-DTC7coap.js.map +1 -0
  241. package/dist/text-area/index.d.ts +2 -0
  242. package/dist/text-area/index.js +1 -0
  243. package/dist/text-area-H6HjKnv_.js +50 -0
  244. package/dist/text-area-H6HjKnv_.js.map +1 -0
  245. package/dist/toast/index.d.ts +65 -0
  246. package/dist/toast/index.js +216 -0
  247. package/dist/toast/index.js.map +1 -0
  248. package/dist/toggle/index.d.ts +2 -0
  249. package/dist/toggle/index.js +1 -0
  250. package/dist/toggle-ZT9thVmz.js +73 -0
  251. package/dist/toggle-ZT9thVmz.js.map +1 -0
  252. package/dist/toggle-group/index.d.ts +10 -0
  253. package/dist/toggle-group/index.js +63 -0
  254. package/dist/toggle-group/index.js.map +1 -0
  255. package/dist/toggle-group-context-CBNZEf1I.js +6 -0
  256. package/dist/toggle-group-context-CBNZEf1I.js.map +1 -0
  257. package/dist/tooltip/index.d.ts +18 -0
  258. package/dist/tooltip/index.js +1 -0
  259. package/dist/tooltip-B6z3tDbW.js +41 -0
  260. package/dist/tooltip-B6z3tDbW.js.map +1 -0
  261. package/dist/trim-text-children-CQRFg2fL.js +33 -0
  262. package/dist/trim-text-children-CQRFg2fL.js.map +1 -0
  263. package/dist/utils/index.d.ts +4 -0
  264. package/dist/utils/index.js +3 -0
  265. package/dist/utils-BI2x7nW5.js +5 -0
  266. package/dist/utils-BI2x7nW5.js.map +1 -0
  267. package/package.json +100 -31
  268. package/dist/index.d.ts +0 -8000
  269. package/dist/index.js +0 -17274
  270. package/dist/index.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import { _ as popoverHandle, a as PopoverHeader, c as PopoverButton, d as PopoverDescriptionProps, f as PopoverHeaderProps, g as PopoverTriggerProps, h as PopoverTitleProps, i as PopoverPanel, l as PopoverButtonProps, m as PopoverProps, n as PopoverTrigger, o as PopoverDescription, p as PopoverPanelProps, r as PopoverTitle, s as PopoverContent, t as Popover, u as PopoverContentProps } from "../index-DfNHJF0t.js";
2
+ export { Popover, PopoverButton, type PopoverButtonProps, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, PopoverPanel, type PopoverPanelProps, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, popoverHandle };
@@ -0,0 +1 @@
1
+ export { t as Popover, l as PopoverButton, c as PopoverContent, s as PopoverDescription, o as PopoverHeader, i as PopoverPanel, r as PopoverTitle, n as PopoverTrigger, a as popoverHandle } from "../popover-B1s4xXrX.js";
@@ -0,0 +1,114 @@
1
+ import { t as cn } from "./cn-BDi0DfT5.js";
2
+ import { t as Button } from "./button-BpUC-R1J.js";
3
+ import { cva } from "class-variance-authority";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { isValidElement } from "react";
6
+ import { Popover } from "@base-ui/react/popover";
7
+ // src/components/popover/popover.tsx
8
+ function Popover$2({ ...props }) {
9
+ return /* @__PURE__ */ jsx(Popover.Root, { ...props });
10
+ }
11
+ // src/components/popover/popover-button.tsx
12
+ function PopoverButton({ variant, tone, className, children, ref, ...props }) {
13
+ if (variant === "ghost" && tone === "neutral") return /* @__PURE__ */ jsx(Button, {
14
+ variant,
15
+ tone,
16
+ className: cn("hover:bg-neutral-container-high!", className),
17
+ ref,
18
+ ...props,
19
+ children
20
+ });
21
+ return /* @__PURE__ */ jsx(Button, {
22
+ variant,
23
+ tone,
24
+ className: cn("", className),
25
+ ref,
26
+ ...props,
27
+ children
28
+ });
29
+ }
30
+ // src/components/popover/popover-content.tsx
31
+ function PopoverContent({ className, ref, ...props }) {
32
+ return /* @__PURE__ */ jsx("div", {
33
+ className: cn("space-y-3xs", className),
34
+ ref,
35
+ ...props
36
+ });
37
+ }
38
+ // src/components/popover/popover-description.tsx
39
+ function PopoverDescription({ className, ref, ...props }) {
40
+ return /* @__PURE__ */ jsx(Popover.Description, {
41
+ className: cn("style-text-prose--1", className),
42
+ ref,
43
+ ...props
44
+ });
45
+ }
46
+ // src/components/popover/popover-header.tsx
47
+ function PopoverHeader({ className, ref, ...props }) {
48
+ return /* @__PURE__ */ jsx("div", {
49
+ className: cn("flex flex-col pb-xs", className),
50
+ ref,
51
+ ...props
52
+ });
53
+ }
54
+ // src/components/popover/popover.types.ts
55
+ const popoverPanelVariants = cva("relative z-99 h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) overflow-hidden rounded-2xl text-on-surface transition-[width,height,opacity,scale] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:scale-90 data-ending-style:opacity-0 data-instant:transition-none data-starting-style:scale-90 data-starting-style:opacity-0", {
56
+ defaultVariants: { elevation: "medium" },
57
+ variants: { elevation: {
58
+ high: "bg-surface-3 shadow-lg",
59
+ low: "bg-surface shadow-sm",
60
+ medium: "bg-surface-2 shadow-md"
61
+ } }
62
+ });
63
+ const popoverHandle = Popover.createHandle();
64
+ // src/components/popover/popover-panel.tsx
65
+ function PopoverPanel({ elevation, className, ref, children, ...props }) {
66
+ return /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
67
+ className: cn("h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none"),
68
+ ref,
69
+ sideOffset: 8,
70
+ ...props,
71
+ children: /* @__PURE__ */ jsxs(Popover.Popup, {
72
+ className: popoverPanelVariants({
73
+ className,
74
+ elevation
75
+ }),
76
+ children: [/* @__PURE__ */ jsx(Popover.Arrow, { className: "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180" }), /* @__PURE__ */ jsx(Popover.Viewport, {
77
+ className: cn("relative h-(--popup-height,auto) w-(--popup-width,auto) max-w-full overflow-clip p-[1rem] transition-[width,height] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] **:data-current:w-[calc(var(--popup-width)-2rem)] **:data-current:translate-x-0 **:data-current:opacity-100 **:data-current:transition-[translate,opacity] **:data-current:duration-[350ms,175ms] **:data-current:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-previous:w-[calc(var(--popup-width)-2rem)] **:data-previous:translate-x-0 **:data-previous:opacity-100 **:data-previous:transition-[translate,opacity] **:data-previous:duration-[350ms,175ms] **:data-previous:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-[activation-direction~='left']:data-previous:data-ending-style:translate-x-1/2 **:data-[activation-direction~='left']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='left']:data-current:data-starting-style:-translate-x-1/2 **:data-[activation-direction~='left']:data-current:data-starting-style:opacity-0 **:data-[activation-direction~='right']:data-previous:data-ending-style:-translate-x-1/2 **:data-[activation-direction~='right']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='right']:data-current:data-starting-style:translate-x-1/2 **:data-[activation-direction~='right']:data-current:data-starting-style:opacity-0", className),
78
+ children
79
+ })]
80
+ })
81
+ }) });
82
+ }
83
+ // src/components/popover/popover-title.tsx
84
+ function PopoverTitle({ className, ref, ...props }) {
85
+ return /* @__PURE__ */ jsx(Popover.Title, {
86
+ className: cn("flex items-center gap-2xs style-text-strong-0 [&>svg]:size-sm", className),
87
+ ref,
88
+ ...props
89
+ });
90
+ }
91
+ // src/components/popover/popover-trigger.tsx
92
+ function PopoverTrigger({ className, children, ref, ...props }) {
93
+ let render = void 0;
94
+ if (isValidElement(children)) render = children;
95
+ return /* @__PURE__ */ jsx(Popover.Trigger, {
96
+ className: cn("px-xs", className),
97
+ ref,
98
+ render,
99
+ ...props
100
+ });
101
+ }
102
+ // src/components/popover/index.ts
103
+ const Popover$1 = Object.assign(Popover$2, {
104
+ Button: PopoverButton,
105
+ Content: PopoverContent,
106
+ Description: PopoverDescription,
107
+ Header: PopoverHeader,
108
+ Panel: PopoverPanel,
109
+ Title: PopoverTitle,
110
+ Trigger: PopoverTrigger
111
+ });
112
+ export { popoverHandle as a, PopoverContent as c, PopoverPanel as i, PopoverButton as l, PopoverTrigger as n, PopoverHeader as o, PopoverTitle as r, PopoverDescription as s, Popover$1 as t };
113
+
114
+ //# sourceMappingURL=popover-B1s4xXrX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover-B1s4xXrX.js","names":["Popover","BasePopover","BasePopover","BasePopover","BasePopover","BasePopover","BasePopover","Popover","PopoverRoot"],"sources":["../src/components/popover/popover.tsx","../src/components/popover/popover-button.tsx","../src/components/popover/popover-content.tsx","../src/components/popover/popover-description.tsx","../src/components/popover/popover-header.tsx","../src/components/popover/popover.types.ts","../src/components/popover/popover-panel.tsx","../src/components/popover/popover-title.tsx","../src/components/popover/popover-trigger.tsx","../src/components/popover/index.ts"],"sourcesContent":["import { Popover as BasePopover } from '@base-ui/react/popover'\n\nimport type { PopoverProps } from './popover.types'\n\nexport function Popover({ ...props }: PopoverProps) {\n return <BasePopover.Root {...props} />\n}\n","import { cn } from '@/utils/cn'\n\nimport { Button } from '../button'\nimport type { PopoverButtonProps } from './popover.types'\n\nexport function PopoverButton({\n variant,\n tone,\n className,\n children,\n ref,\n ...props\n}: PopoverButtonProps) {\n if (variant === 'ghost' && tone === 'neutral') {\n return (\n <Button\n variant={variant}\n tone={tone}\n className={cn('hover:bg-neutral-container-high!', className)}\n ref={ref}\n {...props}\n >\n {children}\n </Button>\n )\n }\n\n return (\n <Button variant={variant} tone={tone} className={cn('', className)} ref={ref} {...props}>\n {children}\n </Button>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { PopoverContentProps } from './popover.types'\n\nexport function PopoverContent({ className, ref, ...props }: PopoverContentProps) {\n return <div className={cn('space-y-3xs', className)} ref={ref} {...props} />\n}\n","import { Popover as BasePopover } from '@base-ui/react/popover'\n\nimport { cn } from '@/utils/cn'\n\nimport type { PopoverDescriptionProps } from './popover.types'\n\nexport function PopoverDescription({ className, ref, ...props }: PopoverDescriptionProps) {\n return (\n <BasePopover.Description\n className={cn('style-text-prose--1', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { PopoverHeaderProps } from './popover.types'\n\nexport function PopoverHeader({ className, ref, ...props }: PopoverHeaderProps) {\n return <div className={cn('flex flex-col pb-xs', className)} ref={ref} {...props} />\n}\n","import { Popover as BasePopover } from '@base-ui/react/popover'\nimport { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\n\nimport type { Button } from '../button'\n\nconst popoverPanelVariants = cva(\n 'relative z-99 h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) overflow-hidden rounded-2xl text-on-surface transition-[width,height,opacity,scale] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:scale-90 data-ending-style:opacity-0 data-instant:transition-none data-starting-style:scale-90 data-starting-style:opacity-0',\n {\n defaultVariants: {\n elevation: 'medium',\n },\n variants: {\n elevation: {\n high: 'bg-surface-3 shadow-lg',\n low: 'bg-surface shadow-sm',\n medium: 'bg-surface-2 shadow-md',\n },\n },\n },\n ),\n popoverHandle = BasePopover.createHandle<React.ComponentType>()\n\ntype PopoverProps = React.ComponentProps<typeof BasePopover.Root>\ntype PopoverTriggerProps = React.ComponentProps<typeof BasePopover.Trigger>\ntype PopoverPanelProps = React.ComponentProps<typeof BasePopover.Positioner> &\n VariantProps<typeof popoverPanelVariants>\ntype PopoverTitleProps = React.ComponentProps<typeof BasePopover.Title>\ntype PopoverDescriptionProps = React.ComponentProps<typeof BasePopover.Description>\ntype PopoverHeaderProps = React.ComponentProps<'div'>\ntype PopoverContentProps = React.ComponentProps<'div'>\ntype PopoverButtonProps = React.ComponentProps<typeof Button>\n\nexport type {\n PopoverProps,\n PopoverTriggerProps,\n PopoverPanelProps,\n PopoverTitleProps,\n PopoverDescriptionProps,\n PopoverHeaderProps,\n PopoverContentProps,\n PopoverButtonProps,\n}\nexport { popoverHandle, popoverPanelVariants }\n","import { Popover as BasePopover } from '@base-ui/react/popover'\n\nimport { cn } from '../../utils/cn'\nimport { popoverPanelVariants } from './popover.types'\nimport type { PopoverPanelProps } from './popover.types'\n\nexport function PopoverPanel({ elevation, className, ref, children, ...props }: PopoverPanelProps) {\n return (\n <BasePopover.Portal>\n <BasePopover.Positioner\n className={cn(\n 'h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none',\n )}\n ref={ref}\n sideOffset={8}\n {...props}\n >\n <BasePopover.Popup className={popoverPanelVariants({ className, elevation })}>\n <BasePopover.Arrow className=\"flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180\" />\n <BasePopover.Viewport\n className={cn(\n \"relative h-(--popup-height,auto) w-(--popup-width,auto) max-w-full overflow-clip p-[1rem] transition-[width,height] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] **:data-current:w-[calc(var(--popup-width)-2rem)] **:data-current:translate-x-0 **:data-current:opacity-100 **:data-current:transition-[translate,opacity] **:data-current:duration-[350ms,175ms] **:data-current:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-previous:w-[calc(var(--popup-width)-2rem)] **:data-previous:translate-x-0 **:data-previous:opacity-100 **:data-previous:transition-[translate,opacity] **:data-previous:duration-[350ms,175ms] **:data-previous:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-[activation-direction~='left']:data-previous:data-ending-style:translate-x-1/2 **:data-[activation-direction~='left']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='left']:data-current:data-starting-style:-translate-x-1/2 **:data-[activation-direction~='left']:data-current:data-starting-style:opacity-0 **:data-[activation-direction~='right']:data-previous:data-ending-style:-translate-x-1/2 **:data-[activation-direction~='right']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='right']:data-current:data-starting-style:translate-x-1/2 **:data-[activation-direction~='right']:data-current:data-starting-style:opacity-0\",\n className,\n )}\n >\n {children}\n </BasePopover.Viewport>\n </BasePopover.Popup>\n </BasePopover.Positioner>\n </BasePopover.Portal>\n )\n}\n","import { Popover as BasePopover } from '@base-ui/react/popover'\n\nimport { cn } from '@/utils/cn'\n\nimport type { PopoverTitleProps } from './popover.types'\n\nexport function PopoverTitle({ className, ref, ...props }: PopoverTitleProps) {\n return (\n <BasePopover.Title\n className={cn('flex items-center gap-2xs style-text-strong-0 [&>svg]:size-sm', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Popover as BasePopover } from '@base-ui/react/popover'\nimport { isValidElement } from 'react'\nimport type { ReactElement } from 'react'\n\nimport { cn } from '@/utils/cn'\n\nimport type { PopoverTriggerProps } from './popover.types'\n\nexport function PopoverTrigger({ className, children, ref, ...props }: PopoverTriggerProps) {\n let render: ReactElement | undefined = undefined\n if (isValidElement(children)) {\n render = children\n }\n\n return (\n <BasePopover.Trigger className={cn('px-xs', className)} ref={ref} render={render} {...props} />\n )\n}\n","import { Popover as PopoverRoot } from './popover'\nimport { PopoverButton } from './popover-button'\nimport { PopoverContent } from './popover-content'\nimport { PopoverDescription } from './popover-description'\nimport { PopoverHeader } from './popover-header'\nimport { PopoverPanel } from './popover-panel'\nimport { PopoverTitle } from './popover-title'\nimport { PopoverTrigger } from './popover-trigger'\n\nconst Popover = Object.assign(PopoverRoot, {\n Button: PopoverButton,\n Content: PopoverContent,\n Description: PopoverDescription,\n Header: PopoverHeader,\n Panel: PopoverPanel,\n Title: PopoverTitle,\n Trigger: PopoverTrigger,\n})\n\nexport type {\n PopoverButtonProps,\n PopoverContentProps,\n PopoverDescriptionProps,\n PopoverHeaderProps,\n PopoverPanelProps,\n PopoverProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n} from './popover.types'\nexport { PopoverButton } from './popover-button'\nexport { PopoverDescription } from './popover-description'\nexport { PopoverPanel } from './popover-panel'\nexport { PopoverTitle } from './popover-title'\nexport { PopoverTrigger } from './popover-trigger'\nexport { PopoverHeader } from './popover-header'\nexport { PopoverContent } from './popover-content'\nexport { popoverHandle } from './popover.types'\n\nexport { Popover }\n"],"mappings":";;;;;;;AAIA,SAAgBA,UAAQ,EAAE,GAAG,SAAuB;CAClD,OAAO,oBAACC,QAAY,MAAb,EAAkB,GAAI,MAAQ,CAAA;AACvC;;ACDA,SAAgB,cAAc,EAC5B,SACA,MACA,WACA,UACA,KACA,GAAG,SACkB;CACrB,IAAI,YAAY,WAAW,SAAS,WAClC,OACE,oBAAC,QAAD;EACW;EACH;EACN,WAAW,GAAG,oCAAoC,SAAS;EACtD;EACL,GAAI;EAEH;CACK,CAAA;CAIZ,OACE,oBAAC,QAAD;EAAiB;EAAe;EAAM,WAAW,GAAG,IAAI,SAAS;EAAQ;EAAK,GAAI;EAC/E;CACK,CAAA;AAEZ;;AC5BA,SAAgB,eAAe,EAAE,WAAW,KAAK,GAAG,SAA8B;CAChF,OAAO,oBAAC,OAAD;EAAK,WAAW,GAAG,eAAe,SAAS;EAAQ;EAAK,GAAI;CAAQ,CAAA;AAC7E;;ACAA,SAAgB,mBAAmB,EAAE,WAAW,KAAK,GAAG,SAAkC;CACxF,OACE,oBAACC,QAAY,aAAb;EACE,WAAW,GAAG,uBAAuB,SAAS;EACzC;EACL,GAAI;CACL,CAAA;AAEL;;ACVA,SAAgB,cAAc,EAAE,WAAW,KAAK,GAAG,SAA6B;CAC9E,OAAO,oBAAC,OAAD;EAAK,WAAW,GAAG,uBAAuB,SAAS;EAAQ;EAAK,GAAI;CAAQ,CAAA;AACrF;;ACAA,MAAM,uBAAuB,IACzB,mXACA;CACE,iBAAiB,EACf,WAAW,SACb;CACA,UAAU,EACR,WAAW;EACT,MAAM;EACN,KAAK;EACL,QAAQ;CACV,EACF;AACF,CACF;AACA,MAAA,gBAAgBC,QAAY,aAAkC;;ACfhE,SAAgB,aAAa,EAAE,WAAW,WAAW,KAAK,UAAU,GAAG,SAA4B;CACjG,OACE,oBAACC,QAAY,QAAb,EAAA,UACE,oBAACA,QAAY,YAAb;EACE,WAAW,GACT,wMACF;EACK;EACL,YAAY;EACZ,GAAI;EAEJ,UAAA,qBAACA,QAAY,OAAb;GAAmB,WAAW,qBAAqB;IAAE;IAAW;GAAU,CAAC;GAA3E,UAAA,CACE,oBAACA,QAAY,OAAb,EAAmB,WAAU,0RAA2R,CAAA,GACxT,oBAACA,QAAY,UAAb;IACE,WAAW,GACT,q0CACA,SACF;IAEC;GACmB,CAAA,CACL;;CACG,CAAA,EACN,CAAA;AAExB;;ACzBA,SAAgB,aAAa,EAAE,WAAW,KAAK,GAAG,SAA4B;CAC5E,OACE,oBAACC,QAAY,OAAb;EACE,WAAW,GAAG,iEAAiE,SAAS;EACnF;EACL,GAAI;CACL,CAAA;AAEL;;ACNA,SAAgB,eAAe,EAAE,WAAW,UAAU,KAAK,GAAG,SAA8B;CAC1F,IAAI,SAAmC,KAAA;CACvC,IAAI,eAAe,QAAQ,GACzB,SAAS;CAGX,OACE,oBAACC,QAAY,SAAb;EAAqB,WAAW,GAAG,SAAS,SAAS;EAAQ;EAAa;EAAQ,GAAI;CAAQ,CAAA;AAElG;;ACRA,MAAMC,YAAU,OAAO,OAAOC,WAAa;CACzC,QAAQ;CACR,SAAS;CACT,aAAa;CACb,QAAQ;CACR,OAAO;CACP,OAAO;CACP,SAAS;AACX,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { PreviewCard as PreviewCard$1 } from "@base-ui/react";
2
+ type PreviewCardProps = React.ComponentProps<typeof PreviewCard$1.Root>;
3
+ type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard$1.Trigger>;
4
+ type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard$1.Positioner>;
5
+ declare function PreviewCard$2({ ...props }: PreviewCardProps): import("react").JSX.Element;
6
+ export declare function PreviewCardPopup({ className, children, ref, ...props }: PreviewCardPopupProps): import("react").JSX.Element;
7
+ export declare function PreviewCardTrigger({ className, ref, ...props }: PreviewCardTriggerProps): import("react").JSX.Element;
8
+ declare const PreviewCard: typeof PreviewCard$2 & {
9
+ Popup: typeof PreviewCardPopup;
10
+ Trigger: typeof PreviewCardTrigger;
11
+ };
12
+ export { PreviewCard, type PreviewCardPopupProps, type PreviewCardProps, type PreviewCardTriggerProps };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { t as cn } from "../cn-BDi0DfT5.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { PreviewCard as PreviewCard$1 } from "@base-ui/react";
4
+ // src/components/preview-card/preview-card.tsx
5
+ function PreviewCard$2({ ...props }) {
6
+ return /* @__PURE__ */ jsx(PreviewCard$1.Root, { ...props });
7
+ }
8
+ // src/components/preview-card/preview-card-popup.tsx
9
+ function PreviewCardPopup({ className, children, ref, ...props }) {
10
+ return /* @__PURE__ */ jsx(PreviewCard$1.Portal, { children: /* @__PURE__ */ jsx(PreviewCard$1.Positioner, {
11
+ className: cn("", className),
12
+ ref,
13
+ ...props,
14
+ children: /* @__PURE__ */ jsx(PreviewCard$1.Popup, {
15
+ className: "relative h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-xl bg-surface shadow-md transition-[transform,opacity] duration-100 ease-out data-ending-style:transform-[scale(0.98)] data-ending-style:opacity-0 data-starting-style:transform-[scale(0.98)] data-starting-style:opacity-0",
16
+ children
17
+ })
18
+ }) });
19
+ }
20
+ // src/components/preview-card/preview-card-trigger.tsx
21
+ function PreviewCardTrigger({ className, ref, ...props }) {
22
+ return /* @__PURE__ */ jsx(PreviewCard$1.Trigger, {
23
+ className: cn("", className),
24
+ ref,
25
+ ...props
26
+ });
27
+ }
28
+ // src/components/preview-card/index.ts
29
+ const PreviewCard = Object.assign(PreviewCard$2, {
30
+ Popup: PreviewCardPopup,
31
+ Trigger: PreviewCardTrigger
32
+ });
33
+ export { PreviewCard, PreviewCardPopup, PreviewCardTrigger };
34
+
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["PreviewCard","BasePreviewCard","BasePreviewCard","BasePreviewCard","PreviewCardRoot"],"sources":["../../src/components/preview-card/preview-card.tsx","../../src/components/preview-card/preview-card-popup.tsx","../../src/components/preview-card/preview-card-trigger.tsx","../../src/components/preview-card/index.ts"],"sourcesContent":["import { PreviewCard as BasePreviewCard } from '@base-ui/react'\n\nimport type { PreviewCardProps } from './preview-card.types'\n\nexport function PreviewCard({ ...props }: PreviewCardProps) {\n return <BasePreviewCard.Root {...props} />\n}\n","import { PreviewCard as BasePreviewCard } from '@base-ui/react'\n\nimport { cn } from '@/utils/cn'\n\nimport type { PreviewCardPopupProps } from './preview-card.types'\n\nexport function PreviewCardPopup({ className, children, ref, ...props }: PreviewCardPopupProps) {\n return (\n <BasePreviewCard.Portal>\n <BasePreviewCard.Positioner className={cn('', className)} ref={ref} {...props}>\n <BasePreviewCard.Popup className=\"relative h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-xl bg-surface shadow-md transition-[transform,opacity] duration-100 ease-out data-ending-style:transform-[scale(0.98)] data-ending-style:opacity-0 data-starting-style:transform-[scale(0.98)] data-starting-style:opacity-0\">\n {children}\n </BasePreviewCard.Popup>\n </BasePreviewCard.Positioner>\n </BasePreviewCard.Portal>\n )\n}\n","import { PreviewCard as BasePreviewCard } from '@base-ui/react'\n\nimport { cn } from '@/utils/cn'\n\nimport type { PreviewCardTriggerProps } from './preview-card.types'\n\nexport function PreviewCardTrigger({ className, ref, ...props }: PreviewCardTriggerProps) {\n return <BasePreviewCard.Trigger className={cn('', className)} ref={ref} {...props} />\n}\n","import { PreviewCard as PreviewCardRoot } from './preview-card'\nimport { PreviewCardPopup } from './preview-card-popup'\nimport { PreviewCardTrigger } from './preview-card-trigger'\n\nconst PreviewCard = Object.assign(PreviewCardRoot, {\n Popup: PreviewCardPopup,\n Trigger: PreviewCardTrigger,\n})\n\nexport type {\n PreviewCardPopupProps,\n PreviewCardProps,\n PreviewCardTriggerProps,\n} from './preview-card.types'\nexport { PreviewCardPopup } from './preview-card-popup'\nexport { PreviewCardTrigger } from './preview-card-trigger'\n\nexport { PreviewCard }\n"],"mappings":";;;;AAIA,SAAgBA,cAAY,EAAE,GAAG,SAA2B;CAC1D,OAAO,oBAACC,cAAgB,MAAjB,EAAsB,GAAI,MAAQ,CAAA;AAC3C;;ACAA,SAAgB,iBAAiB,EAAE,WAAW,UAAU,KAAK,GAAG,SAAgC;CAC9F,OACE,oBAACC,cAAgB,QAAjB,EAAA,UACE,oBAACA,cAAgB,YAAjB;EAA4B,WAAW,GAAG,IAAI,SAAS;EAAQ;EAAK,GAAI;EACtE,UAAA,oBAACA,cAAgB,OAAjB;GAAuB,WAAU;GAC9B;EACoB,CAAA;CACG,CAAA,EACN,CAAA;AAE5B;;ACVA,SAAgB,mBAAmB,EAAE,WAAW,KAAK,GAAG,SAAkC;CACxF,OAAO,oBAACC,cAAgB,SAAjB;EAAyB,WAAW,GAAG,IAAI,SAAS;EAAQ;EAAK,GAAI;CAAQ,CAAA;AACtF;;ACJA,MAAM,cAAc,OAAO,OAAOC,eAAiB;CACjD,OAAO;CACP,SAAS;AACX,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { ComponentProps } from "react";
2
+ type ProfileProps = ComponentProps<'div'>;
3
+ type ProfileContentProps = React.ComponentProps<'div'> & {
4
+ compact?: boolean;
5
+ };
6
+ type ProfileActionProps = React.ComponentProps<'div'>;
7
+ type ProfileNameProps = React.ComponentProps<'span'>;
8
+ type ProfileSubnameProps = React.ComponentProps<'span'>;
9
+ declare function Profile$1({ className, ref, ...props }: ProfileProps): import("react").JSX.Element;
10
+ export declare function ProfileAction({ className, ref, ...props }: ProfileActionProps): import("react").JSX.Element;
11
+ export declare function ProfileContent({ compact, className, ref, ...props }: ProfileContentProps): import("react").JSX.Element;
12
+ export declare function ProfileName({ className, ref, ...props }: ProfileNameProps): import("react").JSX.Element;
13
+ export declare function ProfileSubname({ className, ref, ...props }: ProfileSubnameProps): import("react").JSX.Element;
14
+ declare const Profile: typeof Profile$1 & {
15
+ Action: typeof ProfileAction;
16
+ Content: typeof ProfileContent;
17
+ Name: typeof ProfileName;
18
+ Subname: typeof ProfileSubname;
19
+ };
20
+ export { Profile, type ProfileActionProps, type ProfileContentProps, type ProfileNameProps, type ProfileProps, type ProfileSubnameProps };
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,52 @@
1
+ import { t as cn } from "../cn-BDi0DfT5.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ // src/components/profile/profile.tsx
4
+ function Profile$1({ className, ref, ...props }) {
5
+ return /* @__PURE__ */ jsx("div", {
6
+ className: cn("flex w-full items-center gap-sm rounded-full", className),
7
+ ref,
8
+ ...props
9
+ });
10
+ }
11
+ // src/components/profile/profile-action.tsx
12
+ function ProfileAction({ className, ref, ...props }) {
13
+ return /* @__PURE__ */ jsx("div", {
14
+ className: cn("ml-auto text-on-surface-variant [&>svg]:size-sm", className),
15
+ ref,
16
+ ...props
17
+ });
18
+ }
19
+ // src/components/profile/profile-content.tsx
20
+ function ProfileContent({ compact, className, ref, ...props }) {
21
+ return /* @__PURE__ */ jsx("div", {
22
+ className: cn("flex flex-col items-start justify-start", compact && "hidden", className),
23
+ ref,
24
+ ...props
25
+ });
26
+ }
27
+ // src/components/profile/profile-name.tsx
28
+ function ProfileName({ className, ref, ...props }) {
29
+ return /* @__PURE__ */ jsx("span", {
30
+ className: cn("flex items-center gap-xs style-text-default-0 [&>svg]:size-md", className),
31
+ ref,
32
+ ...props
33
+ });
34
+ }
35
+ // src/components/profile/profile-subname.tsx
36
+ function ProfileSubname({ className, ref, ...props }) {
37
+ return /* @__PURE__ */ jsx("span", {
38
+ className: cn("style-text-default--2 text-on-surface-variant", className),
39
+ ref,
40
+ ...props
41
+ });
42
+ }
43
+ // src/components/profile/index.ts
44
+ const Profile = Object.assign(Profile$1, {
45
+ Action: ProfileAction,
46
+ Content: ProfileContent,
47
+ Name: ProfileName,
48
+ Subname: ProfileSubname
49
+ });
50
+ export { Profile, ProfileAction, ProfileContent, ProfileName, ProfileSubname };
51
+
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Profile","ProfileRoot"],"sources":["../../src/components/profile/profile.tsx","../../src/components/profile/profile-action.tsx","../../src/components/profile/profile-content.tsx","../../src/components/profile/profile-name.tsx","../../src/components/profile/profile-subname.tsx","../../src/components/profile/index.ts"],"sourcesContent":["import { cn } from '@/utils/cn'\n\nimport type { ProfileProps } from './profile.types'\n\nexport function Profile({ className, ref, ...props }: ProfileProps) {\n return (\n <div\n className={cn('flex w-full items-center gap-sm rounded-full', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProfileActionProps } from './profile.types'\n\nexport function ProfileAction({ className, ref, ...props }: ProfileActionProps) {\n return (\n <div\n className={cn('ml-auto text-on-surface-variant [&>svg]:size-sm', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProfileContentProps } from './profile.types'\n\nexport function ProfileContent({ compact, className, ref, ...props }: ProfileContentProps) {\n return (\n <div\n className={cn('flex flex-col items-start justify-start', compact && 'hidden', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProfileNameProps } from './profile.types'\n\nexport function ProfileName({ className, ref, ...props }: ProfileNameProps) {\n return (\n <span\n className={cn('flex items-center gap-xs style-text-default-0 [&>svg]:size-md', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProfileSubnameProps } from './profile.types'\n\nexport function ProfileSubname({ className, ref, ...props }: ProfileSubnameProps) {\n return (\n <span\n className={cn('style-text-default--2 text-on-surface-variant', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Profile as ProfileRoot } from './profile'\nimport { ProfileAction } from './profile-action'\nimport { ProfileContent } from './profile-content'\nimport { ProfileName } from './profile-name'\nimport { ProfileSubname } from './profile-subname'\n\nconst Profile = Object.assign(ProfileRoot, {\n Action: ProfileAction,\n Content: ProfileContent,\n Name: ProfileName,\n Subname: ProfileSubname,\n})\n\nexport type {\n ProfileProps,\n ProfileNameProps,\n ProfileSubnameProps,\n ProfileActionProps,\n ProfileContentProps,\n} from './profile.types'\nexport { ProfileName } from './profile-name'\nexport { ProfileSubname } from './profile-subname'\nexport { ProfileAction } from './profile-action'\nexport { ProfileContent } from './profile-content'\n\nexport { Profile }\n"],"mappings":";;;AAIA,SAAgBA,UAAQ,EAAE,WAAW,KAAK,GAAG,SAAuB;CAClE,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,gDAAgD,SAAS;EAClE;EACL,GAAI;CACL,CAAA;AAEL;;ACRA,SAAgB,cAAc,EAAE,WAAW,KAAK,GAAG,SAA6B;CAC9E,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,mDAAmD,SAAS;EACrE;EACL,GAAI;CACL,CAAA;AAEL;;ACRA,SAAgB,eAAe,EAAE,SAAS,WAAW,KAAK,GAAG,SAA8B;CACzF,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,2CAA2C,WAAW,UAAU,SAAS;EAClF;EACL,GAAI;CACL,CAAA;AAEL;;ACRA,SAAgB,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;CAC1E,OACE,oBAAC,QAAD;EACE,WAAW,GAAG,iEAAiE,SAAS;EACnF;EACL,GAAI;CACL,CAAA;AAEL;;ACRA,SAAgB,eAAe,EAAE,WAAW,KAAK,GAAG,SAA8B;CAChF,OACE,oBAAC,QAAD;EACE,WAAW,GAAG,iDAAiD,SAAS;EACnE;EACL,GAAI;CACL,CAAA;AAEL;;ACNA,MAAM,UAAU,OAAO,OAAOC,WAAa;CACzC,QAAQ;CACR,SAAS;CACT,MAAM;CACN,SAAS;AACX,CAAC"}
@@ -0,0 +1,23 @@
1
+ type ProgressProps = React.ComponentProps<'div'> & {
2
+ currentIndex: number;
3
+ };
4
+ type ProgressIndicatorProps = React.ComponentProps<'div'>;
5
+ type ProgressBarProps = React.ComponentProps<'div'>;
6
+ type ProgressLabelProps = React.ComponentProps<'span'>;
7
+ type ProgressTitleProps = React.ComponentProps<'span'>;
8
+ type ProgressDescriptionProps = React.ComponentProps<'span'>;
9
+ declare function Progress$1({ currentIndex, className, ref, ...props }: ProgressProps): import("react").JSX.Element;
10
+ export declare function ProgressBar({ className, ref, ...props }: ProgressBarProps): import("react").JSX.Element;
11
+ export declare function ProgressDescription({ className, children, ref, ...props }: ProgressDescriptionProps): import("react").JSX.Element;
12
+ export declare function ProgressIndicator({ className, children, ref, ...props }: ProgressIndicatorProps): import("react").JSX.Element;
13
+ export declare function ProgressLabel({ className, children, ref, ...props }: ProgressLabelProps): import("react").JSX.Element;
14
+ export declare function ProgressTitle({ className, children, ref, ...props }: ProgressTitleProps): import("react").JSX.Element;
15
+ declare const Progress: typeof Progress$1 & {
16
+ Bar: typeof ProgressBar;
17
+ Description: typeof ProgressDescription;
18
+ Indicator: typeof ProgressIndicator;
19
+ Label: typeof ProgressLabel;
20
+ Title: typeof ProgressTitle;
21
+ };
22
+ export { Progress, type ProgressBarProps, type ProgressDescriptionProps, type ProgressIndicatorProps, type ProgressLabelProps, type ProgressProps, type ProgressTitleProps };
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,97 @@
1
+ import { t as cn } from "../cn-BDi0DfT5.js";
2
+ import { t as trimTextChildren } from "../trim-text-children-CQRFg2fL.js";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ import { Children, isValidElement, useId } from "react";
5
+ // src/components/progress/progress.tsx
6
+ const CURRENT_CHILD_DECREMENT = 1;
7
+ const CURRENT_CHILD_INCREMENT = 2;
8
+ function Progress$1({ currentIndex, className, ref, ...props }) {
9
+ const scope = `progress-${useId().replace(/:/g, "")}`, current = currentIndex * CURRENT_CHILD_INCREMENT - CURRENT_CHILD_DECREMENT;
10
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("style", { children: `
11
+ .${scope} > :nth-child(${current}) > :first-child {
12
+ background-color: var(--color-accent-container);
13
+ border: 1px solid var(--color-accent-border-strong);
14
+ color: var(--color-accent-on-container);
15
+ }
16
+ .${scope} > :nth-child(-n+${current - CURRENT_CHILD_DECREMENT}) > :first-child {
17
+ background-color: var(--color-accent-default);
18
+ border: none;
19
+ color: var(--color-accent-on-default);
20
+ box-shadow: none;
21
+ }
22
+ ` }), /* @__PURE__ */ jsx("div", {
23
+ className: cn("flex w-full items-center justify-center gap-2xs", scope, className),
24
+ ref,
25
+ ...props
26
+ })] });
27
+ }
28
+ // src/components/progress/progress-bar.tsx
29
+ function ProgressBar({ className, ref, ...props }) {
30
+ return /* @__PURE__ */ jsx("div", {
31
+ className: "w-full",
32
+ children: /* @__PURE__ */ jsx("div", {
33
+ className: cn("h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out", className),
34
+ ref,
35
+ ...props
36
+ })
37
+ });
38
+ }
39
+ // src/components/progress/progress-description.tsx
40
+ function ProgressDescription({ className, children, ref, ...props }) {
41
+ return /* @__PURE__ */ jsx("span", {
42
+ "data-slot": "progress-description",
43
+ className: cn("block text-center style-text-prose--2 text-on-surface-variant", className),
44
+ ref,
45
+ ...props,
46
+ children
47
+ });
48
+ }
49
+ // src/components/progress/progress-title.tsx
50
+ function ProgressTitle({ className, children, ref, ...props }) {
51
+ return /* @__PURE__ */ jsx("span", {
52
+ "data-slot": "progress-title",
53
+ className: cn("block text-center style-text-strong--2 text-on-surface", className),
54
+ ref,
55
+ ...props,
56
+ children
57
+ });
58
+ }
59
+ // src/components/progress/progress-indicator.tsx
60
+ const META_TYPES = /* @__PURE__ */ new Set([ProgressTitle, ProgressDescription]);
61
+ const EMPTY = 0;
62
+ function ProgressIndicator({ className, children, ref, ...props }) {
63
+ const items = Children.toArray(children), isMeta = (child) => isValidElement(child) && META_TYPES.has(child.type), meta = items.filter(isMeta), inner = items.filter((child) => !isMeta(child));
64
+ return /* @__PURE__ */ jsxs("div", {
65
+ className: "relative flex shrink-0 flex-col items-center",
66
+ children: [/* @__PURE__ */ jsx("div", {
67
+ className: cn("flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center font-body text-xs leading-none font-medium text-accent-default transition-colors ease-in-out [&_svg]:size-xs", className),
68
+ ref,
69
+ ...props,
70
+ children: trimTextChildren(inner)
71
+ }), meta.length > EMPTY && /* @__PURE__ */ jsx("div", {
72
+ className: "absolute top-full left-1/2 flex w-3xl -translate-x-1/2 translate-y-2xs flex-col gap-3xs",
73
+ children: meta
74
+ })]
75
+ });
76
+ }
77
+ // src/components/progress/progress-label.tsx
78
+ function ProgressLabel({ className, children, ref, ...props }) {
79
+ return /* @__PURE__ */ jsx("span", {
80
+ "data-slot": "progress-label",
81
+ className: cn("inline-flex items-center justify-center", className),
82
+ ref,
83
+ ...props,
84
+ children
85
+ });
86
+ }
87
+ // src/components/progress/index.ts
88
+ const Progress = Object.assign(Progress$1, {
89
+ Bar: ProgressBar,
90
+ Description: ProgressDescription,
91
+ Indicator: ProgressIndicator,
92
+ Label: ProgressLabel,
93
+ Title: ProgressTitle
94
+ });
95
+ export { Progress, ProgressBar, ProgressDescription, ProgressIndicator, ProgressLabel, ProgressTitle };
96
+
97
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Progress","ProgressRoot"],"sources":["../../src/components/progress/progress.tsx","../../src/components/progress/progress-bar.tsx","../../src/components/progress/progress-description.tsx","../../src/components/progress/progress-title.tsx","../../src/components/progress/progress-indicator.tsx","../../src/components/progress/progress-label.tsx","../../src/components/progress/index.ts"],"sourcesContent":["import { useId } from 'react'\n\nimport { cn } from '@/utils/cn'\n\nimport type { ProgressProps } from './progress.types'\n\nconst CURRENT_CHILD_DECREMENT = 1,\n CURRENT_CHILD_INCREMENT = 2\n\nexport function Progress({ currentIndex, className, ref, ...props }: ProgressProps) {\n const uid = useId().replace(/:/g, ''),\n scope = `progress-${uid}`,\n current = currentIndex * CURRENT_CHILD_INCREMENT - CURRENT_CHILD_DECREMENT\n\n return (\n <>\n <style>\n {`\n\t\t .${scope} > :nth-child(${current}) > :first-child {\n\t\t\tbackground-color: var(--color-accent-container);\n\t\t\tborder: 1px solid var(--color-accent-border-strong);\n\t\t\tcolor: var(--color-accent-on-container);\n\t\t }\n\t\t .${scope} > :nth-child(-n+${current - CURRENT_CHILD_DECREMENT}) > :first-child {\n\t\t\tbackground-color: var(--color-accent-default);\n\t\t\tborder: none;\n\t\t\tcolor: var(--color-accent-on-default);\n\t\t\tbox-shadow: none;\n\t\t }\n\t\t`}\n </style>\n\n <div\n className={cn('flex w-full items-center justify-center gap-2xs', scope, className)}\n ref={ref}\n {...props}\n />\n </>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProgressBarProps } from './progress.types'\n\nexport function ProgressBar({ className, ref, ...props }: ProgressBarProps) {\n return (\n <div className=\"w-full\">\n <div\n className={cn(\n 'h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out',\n className,\n )}\n ref={ref}\n {...props}\n />\n </div>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProgressDescriptionProps } from './progress.types'\n\nexport function ProgressDescription({\n className,\n children,\n ref,\n ...props\n}: ProgressDescriptionProps) {\n return (\n <span\n data-slot=\"progress-description\"\n className={cn('block text-center style-text-prose--2 text-on-surface-variant', className)}\n ref={ref}\n {...props}\n >\n {children}\n </span>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProgressTitleProps } from './progress.types'\n\nexport function ProgressTitle({ className, children, ref, ...props }: ProgressTitleProps) {\n return (\n <span\n data-slot=\"progress-title\"\n className={cn('block text-center style-text-strong--2 text-on-surface', className)}\n ref={ref}\n {...props}\n >\n {children}\n </span>\n )\n}\n","import { Children, isValidElement } from 'react'\n\nimport { cn } from '@/utils/cn'\nimport { trimTextChildren } from '@/utils/trim-text-children'\n\nimport { ProgressDescription } from './progress-description'\nimport { ProgressTitle } from './progress-title'\nimport type { ProgressIndicatorProps } from './progress.types'\n\nconst META_TYPES = new Set<unknown>([ProgressTitle, ProgressDescription]),\n EMPTY = 0\n\nexport function ProgressIndicator({ className, children, ref, ...props }: ProgressIndicatorProps) {\n const items = Children.toArray(children),\n isMeta = (child: (typeof items)[number]) => isValidElement(child) && META_TYPES.has(child.type),\n meta = items.filter(isMeta),\n inner = items.filter((child) => !isMeta(child))\n\n return (\n <div className=\"relative flex shrink-0 flex-col items-center\">\n <div\n className={cn(\n 'flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center font-body text-xs leading-none font-medium text-accent-default transition-colors ease-in-out [&_svg]:size-xs',\n className,\n )}\n ref={ref}\n {...props}\n >\n {trimTextChildren(inner)}\n </div>\n {meta.length > EMPTY && (\n <div className=\"absolute top-full left-1/2 flex w-3xl -translate-x-1/2 translate-y-2xs flex-col gap-3xs\">\n {meta}\n </div>\n )}\n </div>\n )\n}\n","import { cn } from '@/utils/cn'\n\nimport type { ProgressLabelProps } from './progress.types'\n\nexport function ProgressLabel({ className, children, ref, ...props }: ProgressLabelProps) {\n return (\n <span\n data-slot=\"progress-label\"\n className={cn('inline-flex items-center justify-center', className)}\n ref={ref}\n {...props}\n >\n {children}\n </span>\n )\n}\n","import { Progress as ProgressRoot } from './progress'\nimport { ProgressBar } from './progress-bar'\nimport { ProgressDescription } from './progress-description'\nimport { ProgressIndicator } from './progress-indicator'\nimport { ProgressLabel } from './progress-label'\nimport { ProgressTitle } from './progress-title'\n\nconst Progress = Object.assign(ProgressRoot, {\n Bar: ProgressBar,\n Description: ProgressDescription,\n Indicator: ProgressIndicator,\n Label: ProgressLabel,\n Title: ProgressTitle,\n})\n\nexport type {\n ProgressBarProps,\n ProgressDescriptionProps,\n ProgressIndicatorProps,\n ProgressLabelProps,\n ProgressProps,\n ProgressTitleProps,\n} from './progress.types'\nexport { ProgressBar } from './progress-bar'\nexport { ProgressDescription } from './progress-description'\nexport { ProgressIndicator } from './progress-indicator'\nexport { ProgressLabel } from './progress-label'\nexport { ProgressTitle } from './progress-title'\nexport { Progress }\n"],"mappings":";;;;;AAMA,MAAM,0BAA0B;AAC9B,MAAA,0BAA0B;AAE5B,SAAgBA,WAAS,EAAE,cAAc,WAAW,KAAK,GAAG,SAAwB;CAClF,MACE,QAAQ,YADE,MAAM,CAAC,CAAC,QAAQ,MAAM,EACV,KACtB,UAAU,eAAe,0BAA0B;CAErD,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,SAAD,EAAA,UACG;OACF,MAAM,gBAAgB,QAAQ;;;;;OAK9B,MAAM,mBAAmB,UAAU,wBAAwB;;;;;;IAOrD,CAAA,GAEP,oBAAC,OAAD;EACE,WAAW,GAAG,mDAAmD,OAAO,SAAS;EAC5E;EACL,GAAI;CACL,CAAA,CACD,EAAA,CAAA;AAEN;;ACnCA,SAAgB,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;CAC1E,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,oBAAC,OAAD;GACE,WAAW,GACT,qFACA,SACF;GACK;GACL,GAAI;EACL,CAAA;CACE,CAAA;AAET;;ACbA,SAAgB,oBAAoB,EAClC,WACA,UACA,KACA,GAAG,SACwB;CAC3B,OACE,oBAAC,QAAD;EACE,aAAU;EACV,WAAW,GAAG,iEAAiE,SAAS;EACnF;EACL,GAAI;EAEH;CACG,CAAA;AAEV;;AChBA,SAAgB,cAAc,EAAE,WAAW,UAAU,KAAK,GAAG,SAA6B;CACxF,OACE,oBAAC,QAAD;EACE,aAAU;EACV,WAAW,GAAG,0DAA0D,SAAS;EAC5E;EACL,GAAI;EAEH;CACG,CAAA;AAEV;;ACNA,MAAM,6BAAa,IAAI,IAAa,CAAC,eAAe,mBAAmB,CAAC;AACtE,MAAA,QAAQ;AAEV,SAAgB,kBAAkB,EAAE,WAAW,UAAU,KAAK,GAAG,SAAiC;CAChG,MAAM,QAAQ,SAAS,QAAQ,QAAQ,GACrC,UAAU,UAAkC,eAAe,KAAK,KAAK,WAAW,IAAI,MAAM,IAAI,GAC9F,OAAO,MAAM,OAAO,MAAM,GAC1B,QAAQ,MAAM,QAAQ,UAAU,CAAC,OAAO,KAAK,CAAC;CAEhD,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,oBAAC,OAAD;GACE,WAAW,GACT,sPACA,SACF;GACK;GACL,GAAI;GAEH,UAAA,iBAAiB,KAAK;EACpB,CAAA,GACJ,KAAK,SAAS,SACb,oBAAC,OAAD;GAAK,WAAU;GACZ,UAAA;EACE,CAAA,CAEJ;;AAET;;ACjCA,SAAgB,cAAc,EAAE,WAAW,UAAU,KAAK,GAAG,SAA6B;CACxF,OACE,oBAAC,QAAD;EACE,aAAU;EACV,WAAW,GAAG,2CAA2C,SAAS;EAC7D;EACL,GAAI;EAEH;CACG,CAAA;AAEV;;ACRA,MAAM,WAAW,OAAO,OAAOC,YAAc;CAC3C,KAAK;CACL,aAAa;CACb,WAAW;CACX,OAAO;CACP,OAAO;AACT,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ declare const radarPingVariants: (props?: ({
3
+ size?: "large" | "medium" | "small" | null | undefined;
4
+ tone?: "accent" | "brand" | "error" | "info" | "neutral" | "success" | "warning" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ type RadarPingProps = React.ComponentProps<'div'> & VariantProps<typeof radarPingVariants> & {
7
+ hidePing?: boolean;
8
+ };
9
+ export declare function RadarPing({ hidePing, tone, size, className, children, ref, ...props }: RadarPingProps): import("react").JSX.Element;
10
+ export type { RadarPingProps };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { t as cn } from "../cn-BDi0DfT5.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ // src/components/radar-ping/radar-ping.types.ts
5
+ const radarPingVariants = cva("absolute top-[0px] right-[0px] flex", {
6
+ defaultVariants: {
7
+ size: "medium",
8
+ tone: "brand"
9
+ },
10
+ variants: {
11
+ size: {
12
+ large: "-mt-xs -mr-xs style-text-default-0 [&_[data-dot]]:size-lg",
13
+ medium: "-mt-2xs -mr-2xs style-text-default--1 [&_[data-dot]]:size-md",
14
+ small: "-mt-3xs -mr-3xs style-text-default--2 [&_[data-dot]]:size-sm"
15
+ },
16
+ tone: {
17
+ accent: "[&_[data-dot]]:bg-accent-default [&_[data-radar-ping]]:bg-accent-default",
18
+ brand: "[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default",
19
+ error: "[&_[data-dot]]:bg-error-default [&_[data-radar-ping]]:bg-error-default",
20
+ info: "[&_[data-dot]]:bg-info-default [&_[data-radar-ping]]:bg-info-default",
21
+ neutral: "[&_[data-dot]]:bg-neutral-default [&_[data-radar-ping]]:bg-neutral-default",
22
+ success: "[&_[data-dot]]:bg-success-default [&_[data-radar-ping]]:bg-success-default",
23
+ warning: "[&_[data-dot]]:bg-warning-default [&_[data-radar-ping]]:bg-warning-default"
24
+ }
25
+ }
26
+ });
27
+ // src/components/radar-ping/radar-ping.tsx
28
+ function RadarPing({ hidePing = false, tone = "brand", size = "medium", className, children, ref, ...props }) {
29
+ return /* @__PURE__ */ jsxs("div", {
30
+ className: cn(radarPingVariants({
31
+ className,
32
+ size,
33
+ tone
34
+ })),
35
+ ref,
36
+ ...props,
37
+ children: [!hidePing && /* @__PURE__ */ jsx("span", {
38
+ className: "absolute inline-flex size-full animate-ping rounded-full opacity-75",
39
+ "data-radar-ping": true
40
+ }), /* @__PURE__ */ jsx("span", {
41
+ className: "relative flex items-center justify-center rounded-full text-surface",
42
+ "data-dot": true,
43
+ children
44
+ })]
45
+ });
46
+ }
47
+ export { RadarPing };
48
+
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/components/radar-ping/radar-ping.types.ts","../../src/components/radar-ping/radar-ping.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\n\nexport const radarPingVariants = cva('absolute top-[0px] right-[0px] flex', {\n defaultVariants: {\n size: 'medium',\n tone: 'brand',\n },\n variants: {\n size: {\n large: '-mt-xs -mr-xs style-text-default-0 [&_[data-dot]]:size-lg',\n medium: '-mt-2xs -mr-2xs style-text-default--1 [&_[data-dot]]:size-md',\n small: '-mt-3xs -mr-3xs style-text-default--2 [&_[data-dot]]:size-sm',\n },\n tone: {\n accent: '[&_[data-dot]]:bg-accent-default [&_[data-radar-ping]]:bg-accent-default',\n brand: '[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default',\n error: '[&_[data-dot]]:bg-error-default [&_[data-radar-ping]]:bg-error-default',\n info: '[&_[data-dot]]:bg-info-default [&_[data-radar-ping]]:bg-info-default',\n neutral: '[&_[data-dot]]:bg-neutral-default [&_[data-radar-ping]]:bg-neutral-default',\n success: '[&_[data-dot]]:bg-success-default [&_[data-radar-ping]]:bg-success-default',\n warning: '[&_[data-dot]]:bg-warning-default [&_[data-radar-ping]]:bg-warning-default',\n },\n },\n})\n\nexport type RadarPingProps = React.ComponentProps<'div'> &\n VariantProps<typeof radarPingVariants> & {\n hidePing?: boolean\n }\n","import { cn } from '@/utils/cn'\n\nimport { radarPingVariants } from './radar-ping.types'\nimport type { RadarPingProps } from './radar-ping.types'\n\nexport function RadarPing({\n hidePing = false,\n tone = 'brand',\n size = 'medium',\n className,\n children,\n ref,\n ...props\n}: RadarPingProps) {\n return (\n <div className={cn(radarPingVariants({ className, size, tone }))} ref={ref} {...props}>\n {!hidePing && (\n <span\n className=\"absolute inline-flex size-full animate-ping rounded-full opacity-75\"\n data-radar-ping\n />\n )}\n <span\n className=\"relative flex items-center justify-center rounded-full text-surface\"\n data-dot\n >\n {children}\n </span>\n </div>\n )\n}\n"],"mappings":";;;;AAGA,MAAa,oBAAoB,IAAI,uCAAuC;CAC1E,iBAAiB;EACf,MAAM;EACN,MAAM;CACR;CACA,UAAU;EACR,MAAM;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;EACT;EACA,MAAM;GACJ,QAAQ;GACR,OAAO;GACP,OAAO;GACP,MAAM;GACN,SAAS;GACT,SAAS;GACT,SAAS;EACX;CACF;AACF,CAAC;;ACnBD,SAAgB,UAAU,EACxB,WAAW,OACX,OAAO,SACP,OAAO,UACP,WACA,UACA,KACA,GAAG,SACc;CACjB,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,kBAAkB;GAAE;GAAW;GAAM;EAAK,CAAC,CAAC;EAAQ;EAAK,GAAI;EAAhF,UAAA,CACG,CAAC,YACA,oBAAC,QAAD;GACE,WAAU;GACV,mBAAA;EACD,CAAA,GAEH,oBAAC,QAAD;GACE,WAAU;GACV,YAAA;GAEC;EACG,CAAA,CACH;;AAET"}
@@ -0,0 +1,2 @@
1
+ import { i as RadioProps, n as Radio, r as RadioGroupProps, t as RadioGroup } from "../index-C2zco6-C.js";
2
+ export { Radio, RadioGroup, type RadioGroupProps, type RadioProps };
@@ -0,0 +1 @@
1
+ export { n as Radio, t as RadioGroup } from "../radio-group-Dj43u35Z.js";
@@ -0,0 +1,47 @@
1
+ import { t as cn } from "./cn-BDi0DfT5.js";
2
+ import { t as Label } from "./label-BgpayDvN.js";
3
+ import { cva } from "class-variance-authority";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import React from "react";
6
+ import { Radio, RadioGroup } from "@base-ui/react";
7
+ // src/components/radio-group/radio-group.types.ts
8
+ const radioVariants = cva("group flex size-sm shrink-0 items-center justify-center rounded-full outline outline-transparent transition-all hover:outline-border-strong data-checked:bg-brand-default data-checked:outline-brand-border-strong data-disabled:opacity-50", {
9
+ defaultVariants: { variant: "elevated" },
10
+ variants: { variant: {
11
+ elevated: "bg-surface shadow-2xs",
12
+ inSurface: "bg-surface-low inset-shadow-2xs"
13
+ } }
14
+ });
15
+ // src/components/radio-group/radio.tsx
16
+ function Radio$1({ variant, className, children, ref, ...props }) {
17
+ return /* @__PURE__ */ jsxs(Label, {
18
+ htmlFor: props.id,
19
+ children: [/* @__PURE__ */ jsx(Radio.Root, {
20
+ className: cn(radioVariants({
21
+ className,
22
+ variant
23
+ })),
24
+ ref,
25
+ ...props,
26
+ children: /* @__PURE__ */ jsx(Radio.Indicator, {
27
+ "data-indicator": true,
28
+ className: "size-2xs origin-center scale-0 rounded-full bg-surface shadow-2xs transition-transform duration-200 ease-out data-checked:scale-100"
29
+ })
30
+ }), children]
31
+ });
32
+ }
33
+ // src/components/radio-group/radio-group.tsx
34
+ function RadioGroup$2({ className, ref, ...props }) {
35
+ const id = React.useId();
36
+ return /* @__PURE__ */ jsx(RadioGroup, {
37
+ "aria-labelledby": id,
38
+ className: cn("flex flex-col items-start gap-2xs data-disabled:opacity-50", className),
39
+ ref,
40
+ ...props
41
+ });
42
+ }
43
+ // src/components/radio-group/index.ts
44
+ const RadioGroup$1 = Object.assign(RadioGroup$2, { Radio: Radio$1 });
45
+ export { Radio$1 as n, RadioGroup$1 as t };
46
+
47
+ //# sourceMappingURL=radio-group-Dj43u35Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group-Dj43u35Z.js","names":["Radio","BaseRadio","RadioGroup","BaseRadioGroup","RadioGroup","RadioGroupRoot"],"sources":["../src/components/radio-group/radio-group.types.ts","../src/components/radio-group/radio.tsx","../src/components/radio-group/radio-group.tsx","../src/components/radio-group/index.ts"],"sourcesContent":["import type { Radio as BaseRadio, RadioGroup as BaseRadioGroup } from '@base-ui/react'\nimport { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\n\nconst radioVariants = cva(\n 'group flex size-sm shrink-0 items-center justify-center rounded-full outline outline-transparent transition-all hover:outline-border-strong data-checked:bg-brand-default data-checked:outline-brand-border-strong data-disabled:opacity-50',\n {\n defaultVariants: {\n variant: 'elevated',\n },\n variants: {\n variant: {\n elevated: 'bg-surface shadow-2xs',\n inSurface: 'bg-surface-low inset-shadow-2xs',\n },\n },\n },\n)\n\ntype RadioProps = React.ComponentProps<typeof BaseRadio.Root> & VariantProps<typeof radioVariants>\ntype RadioGroupProps = React.ComponentProps<typeof BaseRadioGroup>\n\nexport type { RadioProps, RadioGroupProps }\nexport { radioVariants }\n","import { Radio as BaseRadio } from '@base-ui/react'\n\nimport { cn } from '@/utils/cn'\n\nimport { Label } from '../label'\nimport { radioVariants } from './radio-group.types'\nimport type { RadioProps } from './radio-group.types'\n\nexport function Radio({ variant, className, children, ref, ...props }: RadioProps) {\n return (\n <Label htmlFor={props.id}>\n <BaseRadio.Root className={cn(radioVariants({ className, variant }))} ref={ref} {...props}>\n <BaseRadio.Indicator\n data-indicator\n className=\"size-2xs origin-center scale-0 rounded-full bg-surface shadow-2xs transition-transform duration-200 ease-out data-checked:scale-100\"\n />\n </BaseRadio.Root>\n {children}\n </Label>\n )\n}\n","import { RadioGroup as BaseRadioGroup } from '@base-ui/react'\nimport React from 'react'\n\nimport { cn } from '@/utils/cn'\n\nimport type { RadioGroupProps } from './radio-group.types'\n\nexport function RadioGroup({ className, ref, ...props }: RadioGroupProps) {\n const id = React.useId()\n\n return (\n <BaseRadioGroup\n aria-labelledby={id}\n className={cn('flex flex-col items-start gap-2xs data-disabled:opacity-50', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Radio } from './radio'\nimport { RadioGroup as RadioGroupRoot } from './radio-group'\n\nconst RadioGroup = Object.assign(RadioGroupRoot, {\n Radio,\n})\n\nexport type { RadioGroupProps, RadioProps } from './radio-group.types'\nexport { Radio } from './radio'\n\nexport { RadioGroup }\n"],"mappings":";;;;;;;AAIA,MAAM,gBAAgB,IACpB,+OACA;CACE,iBAAiB,EACf,SAAS,WACX;CACA,UAAU,EACR,SAAS;EACP,UAAU;EACV,WAAW;CACb,EACF;AACF,CACF;;ACTA,SAAgBA,QAAM,EAAE,SAAS,WAAW,UAAU,KAAK,GAAG,SAAqB;CACjF,OACE,qBAAC,OAAD;EAAO,SAAS,MAAM;EAAtB,UAAA,CACE,oBAACC,MAAU,MAAX;GAAgB,WAAW,GAAG,cAAc;IAAE;IAAW;GAAQ,CAAC,CAAC;GAAQ;GAAK,GAAI;GAClF,UAAA,oBAACA,MAAU,WAAX;IACE,kBAAA;IACA,WAAU;GACX,CAAA;EACa,CAAA,GACf,QACI;;AAEX;;ACbA,SAAgBC,aAAW,EAAE,WAAW,KAAK,GAAG,SAA0B;CACxE,MAAM,KAAK,MAAM,MAAM;CAEvB,OACE,oBAACC,YAAD;EACE,mBAAiB;EACjB,WAAW,GAAG,8DAA8D,SAAS;EAChF;EACL,GAAI;CACL,CAAA;AAEL;;ACfA,MAAMC,eAAa,OAAO,OAAOC,cAAgB,EAC/C,OAAA,QACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { GroupProps, PanelProps, SeparatorProps } from "react-resizable-panels";
2
+ type ResizeablePanelGroupProps = GroupProps;
3
+ type ResizeablePanelProps = PanelProps;
4
+ type ResizeableHandleProps = SeparatorProps & {
5
+ withHandle?: boolean;
6
+ };
7
+ export declare function ResizeableHandle({ withHandle, className, ...props }: ResizeableHandleProps): import("react").JSX.Element;
8
+ export declare function ResizeablePanel({ className, ...props }: ResizeablePanelProps): import("react").JSX.Element;
9
+ export declare function ResizeablePanelGroup({ className, ...props }: ResizeablePanelGroupProps): import("react").JSX.Element;
10
+ export type { ResizeableHandleProps, ResizeablePanelGroupProps, ResizeablePanelProps };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { t as cn } from "../cn-BDi0DfT5.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { Group, Panel, Separator } from "react-resizable-panels";
4
+ // src/components/resizeable/resizeable-handle.tsx
5
+ function ResizeableHandle({ withHandle = false, className, ...props }) {
6
+ return /* @__PURE__ */ jsx(Separator, {
7
+ className: cn("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className),
8
+ "data-slot": "resizable-handle",
9
+ ...props,
10
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border-strong" })
11
+ });
12
+ }
13
+ // src/components/resizeable/resizeable-panel.tsx
14
+ function ResizeablePanel({ className, ...props }) {
15
+ return /* @__PURE__ */ jsx(Panel, {
16
+ className: cn("", className),
17
+ "data-slot": "resizable-panel",
18
+ ...props
19
+ });
20
+ }
21
+ // src/components/resizeable/resizeable-panel-group.tsx
22
+ function ResizeablePanelGroup({ className, ...props }) {
23
+ return /* @__PURE__ */ jsx(Group, {
24
+ className: cn("flex h-full aria-[orientation=vertical]:flex-col", className),
25
+ "data-slot": "resizable-panel-group",
26
+ ...props
27
+ });
28
+ }
29
+ export { ResizeableHandle, ResizeablePanel, ResizeablePanelGroup };
30
+
31
+ //# sourceMappingURL=index.js.map