@vuer-ai/vuer-uikit 0.0.2 → 0.0.4

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 (230) hide show
  1. package/README.md +80 -0
  2. package/dist/chunk-25GQKTNF.mjs +105 -0
  3. package/dist/chunk-277NQUJD.js +99 -0
  4. package/dist/chunk-3FR3WKI4.mjs +24 -0
  5. package/dist/chunk-3Q75Z2CT.mjs +76 -0
  6. package/dist/chunk-5BIQ3IN7.js +93 -0
  7. package/dist/chunk-5GPQ7U5B.mjs +50 -0
  8. package/dist/chunk-66JQXJEV.mjs +272 -0
  9. package/dist/chunk-6ILSFDR5.mjs +161 -0
  10. package/dist/chunk-6L4KPPOD.mjs +90 -0
  11. package/dist/chunk-75QDQ67T.js +56 -0
  12. package/dist/chunk-7A7VNE3J.mjs +31 -0
  13. package/dist/chunk-7SXCVFSA.mjs +200 -0
  14. package/dist/chunk-7V4ELMOH.js +52 -0
  15. package/dist/chunk-7WUQTWQX.js +303 -0
  16. package/dist/chunk-A2Z57NAA.js +202 -0
  17. package/dist/chunk-ATDHGFVI.mjs +82 -0
  18. package/dist/chunk-ATEHWT2R.mjs +78 -0
  19. package/dist/chunk-B5EMQBVL.js +93 -0
  20. package/dist/chunk-CLTLT5XW.js +27 -0
  21. package/dist/chunk-COFRS37Z.mjs +337 -0
  22. package/dist/chunk-CP7QYV4N.mjs +110 -0
  23. package/dist/chunk-CZSRIDXN.mjs +165 -0
  24. package/dist/chunk-D4C5V4EN.mjs +53 -0
  25. package/dist/chunk-DWIK2CUV.mjs +45 -0
  26. package/dist/chunk-ECWCQWV5.js +148 -0
  27. package/dist/chunk-ENZI5WM7.js +108 -0
  28. package/dist/chunk-FVT46HEE.js +21 -0
  29. package/dist/chunk-FXIL4NQZ.js +58 -0
  30. package/dist/chunk-FYS6YECN.js +33 -0
  31. package/dist/chunk-G7XNQVPB.js +187 -0
  32. package/dist/chunk-GSXXTAQ3.js +373 -0
  33. package/dist/chunk-HUQZOPYD.js +2 -0
  34. package/dist/chunk-HW6SLBO3.mjs +9 -0
  35. package/dist/chunk-IPKCIMU4.mjs +156 -0
  36. package/dist/chunk-J7PTSP4Q.mjs +19 -0
  37. package/dist/chunk-KJ42IGH6.js +2 -0
  38. package/dist/chunk-KO7BQ6RR.js +83 -0
  39. package/dist/chunk-KQHNQQUZ.js +103 -0
  40. package/dist/chunk-KVFK3YC7.js +187 -0
  41. package/dist/chunk-KYKEJFJT.js +110 -0
  42. package/dist/chunk-LD7Y34QT.js +79 -0
  43. package/dist/chunk-LVSI4HYF.mjs +409 -0
  44. package/dist/chunk-M3KBBKQR.mjs +15 -0
  45. package/dist/chunk-MASRZTZC.mjs +34 -0
  46. package/dist/chunk-NN7R5DNL.mjs +119 -0
  47. package/dist/chunk-OE56M4MX.js +93 -0
  48. package/dist/chunk-OTDY2E2A.js +163 -0
  49. package/dist/chunk-PKGNHHWG.mjs +60 -0
  50. package/dist/chunk-Q3APPCB2.mjs +91 -0
  51. package/dist/chunk-QOUX33X5.mjs +111 -0
  52. package/dist/chunk-QS7WS6DD.mjs +1 -0
  53. package/dist/chunk-QZASHJNJ.js +24 -0
  54. package/dist/chunk-R6XNT4PN.js +431 -0
  55. package/dist/chunk-RACVRWME.js +136 -0
  56. package/dist/chunk-S2F2GRDB.mjs +1 -0
  57. package/dist/chunk-SI56IQWH.js +102 -0
  58. package/dist/chunk-ST4P6AN6.js +2 -0
  59. package/dist/chunk-TOZYLDAL.mjs +72 -0
  60. package/dist/chunk-UFR656UY.mjs +87 -0
  61. package/dist/chunk-UWO6RBCE.js +11 -0
  62. package/dist/chunk-VGCVIHBR.mjs +1 -0
  63. package/dist/chunk-WOG6UIG5.mjs +71 -0
  64. package/dist/chunk-X2QENXCS.mjs +54 -0
  65. package/dist/chunk-XACRGXGF.js +75 -0
  66. package/dist/chunk-XPNUQSKQ.mjs +94 -0
  67. package/dist/chunk-YQORMF34.js +110 -0
  68. package/dist/chunk-Z37VNICQ.js +67 -0
  69. package/dist/chunk-ZJXBC33M.js +112 -0
  70. package/dist/highlight-cursor/cursor-context.d.mts +7 -0
  71. package/dist/highlight-cursor/cursor-context.d.ts +7 -0
  72. package/dist/highlight-cursor/cursor-context.js +14 -0
  73. package/dist/highlight-cursor/cursor-context.mjs +1 -0
  74. package/dist/highlight-cursor/cursor-provider.d.mts +7 -0
  75. package/dist/highlight-cursor/cursor-provider.d.ts +7 -0
  76. package/dist/highlight-cursor/cursor-provider.js +12 -0
  77. package/dist/highlight-cursor/cursor-provider.mjs +3 -0
  78. package/dist/highlight-cursor/enhanced-components.d.mts +20 -0
  79. package/dist/highlight-cursor/enhanced-components.d.ts +20 -0
  80. package/dist/highlight-cursor/enhanced-components.js +36 -0
  81. package/dist/highlight-cursor/enhanced-components.mjs +11 -0
  82. package/dist/highlight-cursor/index.d.mts +16 -0
  83. package/dist/highlight-cursor/index.d.ts +16 -0
  84. package/dist/highlight-cursor/index.js +50 -0
  85. package/dist/highlight-cursor/index.mjs +13 -0
  86. package/dist/highlight-cursor/tabs-cursor-context.d.mts +14 -0
  87. package/dist/highlight-cursor/tabs-cursor-context.d.ts +14 -0
  88. package/dist/highlight-cursor/tabs-cursor-context.js +14 -0
  89. package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -0
  90. package/dist/highlight-cursor/types.d.mts +39 -0
  91. package/dist/highlight-cursor/types.d.ts +39 -0
  92. package/dist/highlight-cursor/types.js +2 -0
  93. package/dist/highlight-cursor/types.mjs +1 -0
  94. package/dist/highlight-cursor/with-cursor.d.mts +7 -0
  95. package/dist/highlight-cursor/with-cursor.d.ts +7 -0
  96. package/dist/highlight-cursor/with-cursor.js +11 -0
  97. package/dist/highlight-cursor/with-cursor.mjs +2 -0
  98. package/dist/index.css +314 -0
  99. package/dist/index.d.mts +51 -0
  100. package/dist/index.d.ts +51 -0
  101. package/dist/index.js +425 -6744
  102. package/dist/index.mjs +34 -0
  103. package/dist/styles/theme.css +191 -0
  104. package/dist/styles/theme.d.mts +2 -0
  105. package/dist/styles/theme.d.ts +2 -0
  106. package/dist/styles/toast.css +58 -0
  107. package/dist/styles/toast.d.mts +2 -0
  108. package/dist/styles/toast.d.ts +2 -0
  109. package/dist/styles/variables.css +188 -0
  110. package/dist/styles/variables.d.mts +2 -0
  111. package/dist/styles/variables.d.ts +2 -0
  112. package/dist/ui/avatar.d.mts +16 -0
  113. package/dist/ui/avatar.d.ts +16 -0
  114. package/dist/ui/avatar.js +23 -0
  115. package/dist/ui/avatar.mjs +2 -0
  116. package/dist/ui/badge.d.mts +14 -0
  117. package/dist/ui/badge.d.ts +14 -0
  118. package/dist/ui/badge.js +16 -0
  119. package/dist/ui/badge.mjs +3 -0
  120. package/dist/ui/button.d.mts +16 -0
  121. package/dist/ui/button.d.ts +16 -0
  122. package/dist/ui/button.js +12 -0
  123. package/dist/ui/button.mjs +3 -0
  124. package/dist/ui/card.d.mts +12 -0
  125. package/dist/ui/card.d.ts +12 -0
  126. package/dist/ui/card.js +36 -0
  127. package/dist/ui/card.mjs +3 -0
  128. package/dist/ui/checkbox.d.mts +11 -0
  129. package/dist/ui/checkbox.d.ts +11 -0
  130. package/dist/ui/checkbox.js +12 -0
  131. package/dist/ui/checkbox.mjs +3 -0
  132. package/dist/ui/collapsible.d.mts +9 -0
  133. package/dist/ui/collapsible.d.ts +9 -0
  134. package/dist/ui/collapsible.js +20 -0
  135. package/dist/ui/collapsible.mjs +3 -0
  136. package/dist/ui/dropdown.d.mts +28 -0
  137. package/dist/ui/dropdown.d.ts +28 -0
  138. package/dist/ui/dropdown.js +68 -0
  139. package/dist/ui/dropdown.mjs +3 -0
  140. package/dist/ui/index.d.mts +44 -0
  141. package/dist/ui/index.d.ts +44 -0
  142. package/dist/ui/index.js +398 -0
  143. package/dist/ui/index.mjs +29 -0
  144. package/dist/ui/input-numbers.d.mts +15 -0
  145. package/dist/ui/input-numbers.d.ts +15 -0
  146. package/dist/ui/input-numbers.js +13 -0
  147. package/dist/ui/input-numbers.mjs +4 -0
  148. package/dist/ui/input.d.mts +22 -0
  149. package/dist/ui/input.d.ts +22 -0
  150. package/dist/ui/input.js +16 -0
  151. package/dist/ui/input.mjs +3 -0
  152. package/dist/ui/layout.d.mts +12 -0
  153. package/dist/ui/layout.d.ts +12 -0
  154. package/dist/ui/layout.js +12 -0
  155. package/dist/ui/layout.mjs +3 -0
  156. package/dist/ui/modal.d.mts +28 -0
  157. package/dist/ui/modal.d.ts +28 -0
  158. package/dist/ui/modal.js +48 -0
  159. package/dist/ui/modal.mjs +3 -0
  160. package/dist/ui/popover.d.mts +10 -0
  161. package/dist/ui/popover.d.ts +10 -0
  162. package/dist/ui/popover.js +23 -0
  163. package/dist/ui/popover.mjs +2 -0
  164. package/dist/ui/radio-group.d.mts +8 -0
  165. package/dist/ui/radio-group.d.ts +8 -0
  166. package/dist/ui/radio-group.js +16 -0
  167. package/dist/ui/radio-group.mjs +3 -0
  168. package/dist/ui/select.d.mts +28 -0
  169. package/dist/{types/ui → ui}/select.d.ts +18 -14
  170. package/dist/ui/select.js +48 -0
  171. package/dist/ui/select.mjs +3 -0
  172. package/dist/ui/sheet.d.mts +16 -0
  173. package/dist/ui/sheet.d.ts +16 -0
  174. package/dist/ui/sheet.js +39 -0
  175. package/dist/ui/sheet.mjs +2 -0
  176. package/dist/ui/slider.d.mts +10 -0
  177. package/dist/ui/slider.d.ts +10 -0
  178. package/dist/ui/slider.js +12 -0
  179. package/dist/ui/slider.mjs +3 -0
  180. package/dist/ui/switch.d.mts +7 -0
  181. package/dist/ui/switch.d.ts +7 -0
  182. package/dist/ui/switch.js +12 -0
  183. package/dist/ui/switch.mjs +3 -0
  184. package/dist/ui/tabs.d.mts +16 -0
  185. package/dist/ui/tabs.d.ts +16 -0
  186. package/dist/ui/tabs.js +25 -0
  187. package/dist/ui/tabs.mjs +4 -0
  188. package/dist/ui/textarea.d.mts +16 -0
  189. package/dist/ui/textarea.d.ts +16 -0
  190. package/dist/ui/textarea.js +12 -0
  191. package/dist/ui/textarea.mjs +3 -0
  192. package/dist/ui/theme-context.d.mts +17 -0
  193. package/dist/{types/ui → ui}/theme-context.d.ts +5 -3
  194. package/dist/ui/theme-context.js +14 -0
  195. package/dist/ui/theme-context.mjs +1 -0
  196. package/dist/ui/toast.d.mts +7 -0
  197. package/dist/ui/toast.d.ts +7 -0
  198. package/dist/ui/toast.js +14 -0
  199. package/dist/ui/toast.mjs +1 -0
  200. package/dist/ui/toggle-group.d.mts +12 -0
  201. package/dist/ui/toggle-group.d.ts +12 -0
  202. package/dist/ui/toggle-group.js +17 -0
  203. package/dist/ui/toggle-group.mjs +4 -0
  204. package/dist/ui/toggle.d.mts +13 -0
  205. package/dist/ui/toggle.d.ts +13 -0
  206. package/dist/ui/toggle.js +16 -0
  207. package/dist/ui/toggle.mjs +3 -0
  208. package/dist/ui/tooltip.d.mts +10 -0
  209. package/dist/ui/tooltip.d.ts +10 -0
  210. package/dist/ui/tooltip.js +23 -0
  211. package/dist/ui/tooltip.mjs +2 -0
  212. package/dist/ui/tree-view.d.mts +27 -0
  213. package/dist/ui/tree-view.d.ts +27 -0
  214. package/dist/ui/tree-view.js +11 -0
  215. package/dist/ui/tree-view.mjs +2 -0
  216. package/dist/utils/cn.d.mts +5 -0
  217. package/dist/utils/cn.d.ts +5 -0
  218. package/dist/utils/cn.js +10 -0
  219. package/dist/utils/cn.mjs +1 -0
  220. package/dist/utils/index.d.mts +2 -0
  221. package/dist/utils/index.d.ts +2 -0
  222. package/dist/utils/index.js +11 -0
  223. package/dist/utils/index.mjs +2 -0
  224. package/package.json +49 -27
  225. package/dist/index.umd.js +0 -74
  226. package/dist/types/index.d.ts +0 -4
  227. package/dist/types/lib/utils.d.ts +0 -2
  228. package/dist/types/ui/button.d.ts +0 -13
  229. package/dist/types/ui/input.d.ts +0 -19
  230. package/dist/vuer-uikit.css +0 -1
@@ -0,0 +1,103 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var TooltipPrimitive = require('@radix-ui/react-tooltip');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
26
+
27
+ function TooltipProvider({
28
+ delayDuration = 0,
29
+ ...props
30
+ }) {
31
+ return /* @__PURE__ */ jsxRuntime.jsx(
32
+ TooltipPrimitive__namespace.Provider,
33
+ {
34
+ "data-slot": "tooltip-provider",
35
+ delayDuration,
36
+ ...props
37
+ }
38
+ );
39
+ }
40
+ function Tooltip({ ...props }) {
41
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Root, { "data-slot": "tooltip", ...props }) });
42
+ }
43
+ function TooltipTrigger({ ...props }) {
44
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { "data-slot": "tooltip-trigger", ...props });
45
+ }
46
+ function TooltipContent({
47
+ className,
48
+ sideOffset = 0,
49
+ children,
50
+ ...props
51
+ }) {
52
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
53
+ TooltipPrimitive__namespace.Content,
54
+ {
55
+ "data-slot": "tooltip-content",
56
+ sideOffset,
57
+ className: chunkUWO6RBCE_js.cn(
58
+ "bg-bg-secondary",
59
+ "text-text-primary",
60
+ "animate-in",
61
+ "text-sm",
62
+ "rounded-uk-md",
63
+ "px-lg",
64
+ "py-md",
65
+ "shadow-[0_8px_24px_0_var(--color-shadow-secondary)]",
66
+ "fade-in-0",
67
+ "zoom-in-95",
68
+ "data-[state=closed]:animate-out",
69
+ "data-[state=closed]:fade-out-0",
70
+ "data-[state=closed]:zoom-out-95",
71
+ "data-[side=bottom]:slide-in-from-top-2",
72
+ "data-[side=left]:slide-in-from-right-2",
73
+ "data-[side=right]:slide-in-from-left-2",
74
+ "data-[side=top]:slide-in-from-bottom-2",
75
+ "z-50",
76
+ "w-fit",
77
+ "origin-(--radix-tooltip-content-transform-origin)",
78
+ "text-balance",
79
+ "liquid:liquid-bg",
80
+ className
81
+ ),
82
+ ...props,
83
+ children: [
84
+ children,
85
+ /* @__PURE__ */ jsxRuntime.jsx(
86
+ TooltipPrimitive__namespace.Arrow,
87
+ {
88
+ className: "fill-bg-secondary z-50 h-[9px] w-[20px] border-none liquid:liquid-bg",
89
+ style: {
90
+ clipPath: "polygon(50% 100%, 0% 0%, 100% 0%)",
91
+ borderRadius: "1px 1px 0 0"
92
+ }
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ ) });
98
+ }
99
+
100
+ exports.Tooltip = Tooltip;
101
+ exports.TooltipContent = TooltipContent;
102
+ exports.TooltipProvider = TooltipProvider;
103
+ exports.TooltipTrigger = TooltipTrigger;
@@ -0,0 +1,187 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var SliderPrimitive = require('@radix-ui/react-slider');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
27
+
28
+ var Slider = react.forwardRef(function Slider2({
29
+ className,
30
+ defaultValue,
31
+ value,
32
+ onValueChange,
33
+ showStep = false,
34
+ step = 1,
35
+ min = 0,
36
+ max = 100,
37
+ ...props
38
+ }, ref) {
39
+ const [currentValue, setCurrentValue] = react.useState(value ?? defaultValue ?? [0]);
40
+ const _values = react.useMemo(
41
+ () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
42
+ [value, defaultValue, min, max]
43
+ );
44
+ return /* @__PURE__ */ jsxRuntime.jsxs(
45
+ SliderPrimitive__namespace.Root,
46
+ {
47
+ "data-slot": "slider",
48
+ value,
49
+ defaultValue,
50
+ onValueChange: (v) => {
51
+ onValueChange == null ? void 0 : onValueChange(v);
52
+ setCurrentValue(v);
53
+ },
54
+ ref,
55
+ min,
56
+ max,
57
+ step,
58
+ className: chunkUWO6RBCE_js.cn(
59
+ "relative",
60
+ "flex",
61
+ "w-full",
62
+ "touch-none",
63
+ "select-none",
64
+ "items-center",
65
+ "data-[orientation=vertical]:h-full",
66
+ "data-[orientation=vertical]:min-h-44",
67
+ "data-[orientation=vertical]:w-auto",
68
+ "data-[orientation=vertical]:flex-col",
69
+ className
70
+ ),
71
+ ...props,
72
+ children: [
73
+ /* @__PURE__ */ jsxRuntime.jsx(
74
+ SliderPrimitive__namespace.Track,
75
+ {
76
+ "data-slot": "slider-track",
77
+ className: chunkUWO6RBCE_js.cn(
78
+ "peer/slider-track",
79
+ "bg-line-primary",
80
+ "relative",
81
+ "grow",
82
+ "overflow-hidden",
83
+ "rounded-full",
84
+ "data-[disabled]:bg-bg-secondary",
85
+ "data-[orientation=vertical]:w-0.5",
86
+ "data-[orientation=vertical]:h-full",
87
+ "data-[orientation=horizontal]:h-0.5",
88
+ "data-[orientation=horizontal]:w-full"
89
+ ),
90
+ children: /* @__PURE__ */ jsxRuntime.jsx(
91
+ SliderPrimitive__namespace.Range,
92
+ {
93
+ "data-slot": "slider-range",
94
+ className: chunkUWO6RBCE_js.cn(
95
+ "bg-brand-primary",
96
+ "absolute",
97
+ "data-[disabled]:bg-bg-secondary",
98
+ "data-[orientation=vertical]:w-full",
99
+ "data-[orientation=horizontal]:h-full"
100
+ )
101
+ }
102
+ )
103
+ }
104
+ ),
105
+ showStep && /* @__PURE__ */ jsxRuntime.jsx(SliderSteps, { currentValue, max, min, step }),
106
+ Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
107
+ SliderPrimitive__namespace.Thumb,
108
+ {
109
+ "data-slot": "slider-thumb",
110
+ className: chunkUWO6RBCE_js.cn(
111
+ "ring-brand-primary/50",
112
+ "bg-brand-primary",
113
+ "block",
114
+ "h-4",
115
+ "w-[0.6rem]",
116
+ "shrink-0",
117
+ "rounded-[3px]",
118
+ "transition-[color,box-shadow]",
119
+ "hover:ring-4",
120
+ "hover:cursor-ew-resize",
121
+ "focus-visible:ring-4",
122
+ "focus-visible:outline-hidden",
123
+ "data-[disabled]:bg-bg-tertiary",
124
+ "data-[disabled]:pointer-events-none"
125
+ )
126
+ },
127
+ index
128
+ ))
129
+ ]
130
+ }
131
+ );
132
+ });
133
+ function SliderSteps({ step, min, max, currentValue }) {
134
+ const steps = react.useMemo(() => {
135
+ const value = max - min;
136
+ const stepCount = Math.ceil(value / step);
137
+ return Array.from({ length: stepCount + 1 }, (_, i) => {
138
+ return { position: Math.min(100 / value * (i * step), 100), v: i * step + min };
139
+ });
140
+ }, [max, min, step]);
141
+ const [minRange, maxRange] = react.useMemo(() => {
142
+ if (currentValue.length > 1) {
143
+ return [Math.min(...currentValue), Math.max(...currentValue)];
144
+ } else {
145
+ return [0, ...currentValue];
146
+ }
147
+ }, [currentValue]);
148
+ return steps.map((step2, i) => {
149
+ const thumbInBoundsOffset = getThumbInBoundsOffset(9.6, step2.position, 1);
150
+ return /* @__PURE__ */ jsxRuntime.jsx(
151
+ "span",
152
+ {
153
+ "data-slot": "slider-step",
154
+ style: { left: `calc(${step2.position}% + ${thumbInBoundsOffset}px)` },
155
+ className: chunkUWO6RBCE_js.cn(
156
+ "absolute",
157
+ "top-1/2",
158
+ "translate-y-[-50%]",
159
+ "translate-x-[-50%]",
160
+ "bg-brand-primary",
161
+ "block",
162
+ "h-[5pt]",
163
+ "w-[1pt]",
164
+ "shrink-0",
165
+ "rounded-[1px]",
166
+ "peer-has-data-[disabled]/slider-track:bg-bg-tertiary",
167
+ { "bg-bg-tertiary": step2.v < minRange || step2.v > maxRange }
168
+ )
169
+ },
170
+ i
171
+ );
172
+ });
173
+ }
174
+ function getThumbInBoundsOffset(width, left, direction) {
175
+ const halfWidth = width / 2;
176
+ const halfPercent = 50;
177
+ const offset = linearScale([0, halfPercent], [0, halfWidth]);
178
+ return (halfWidth - offset(left) * direction) * direction;
179
+ }
180
+ function linearScale(input, output) {
181
+ return (value) => {
182
+ const ratio = (output[1] - output[0]) / (input[1] - input[0]);
183
+ return output[0] + ratio * (value - input[0]);
184
+ };
185
+ }
186
+
187
+ exports.Slider = Slider;
@@ -0,0 +1,110 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var AvatarPrimitive = require('@radix-ui/react-avatar');
5
+ var React = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
29
+ var React__default = /*#__PURE__*/_interopDefault(React);
30
+
31
+ function Avatar({ className, ...props }) {
32
+ return /* @__PURE__ */ jsxRuntime.jsx(
33
+ AvatarPrimitive__namespace.Root,
34
+ {
35
+ "data-slot": "avatar",
36
+ className: chunkUWO6RBCE_js.cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className),
37
+ ...props
38
+ }
39
+ );
40
+ }
41
+ function AvatarImage({ className, ...props }) {
42
+ return /* @__PURE__ */ jsxRuntime.jsx(
43
+ AvatarPrimitive__namespace.Image,
44
+ {
45
+ "data-slot": "avatar-image",
46
+ className: chunkUWO6RBCE_js.cn("aspect-square size-full", className),
47
+ ...props
48
+ }
49
+ );
50
+ }
51
+ function AvatarFallback({ className, ...props }) {
52
+ return /* @__PURE__ */ jsxRuntime.jsx(
53
+ AvatarPrimitive__namespace.Fallback,
54
+ {
55
+ "data-slot": "avatar-fallback",
56
+ className: chunkUWO6RBCE_js.cn(
57
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
58
+ className
59
+ ),
60
+ ...props
61
+ }
62
+ );
63
+ }
64
+ function AvatarGroup({ children, className, spacing = "normal", max }) {
65
+ const spacingClasses = {
66
+ tight: "-space-x-1.5",
67
+ normal: "-space-x-1",
68
+ loose: "-space-x-0.45"
69
+ };
70
+ const childrenArray = React__default.default.Children.toArray(children);
71
+ const displayChildren = max ? childrenArray.slice(0, max) : childrenArray;
72
+ const remainingCount = max && childrenArray.length > max ? childrenArray.length - max : 0;
73
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkUWO6RBCE_js.cn("flex", spacingClasses[spacing], className), children: [
74
+ displayChildren.map((child, index) => {
75
+ var _a;
76
+ const zIndex = 30 - index;
77
+ if (React__default.default.isValidElement(child)) {
78
+ return React__default.default.cloneElement(
79
+ child,
80
+ {
81
+ key: index,
82
+ className: chunkUWO6RBCE_js.cn(
83
+ `ring-background relative ring-2 z-[${zIndex}] hover:scale-120 transition-all duration-200 ease-in-out hover:z-[100]`,
84
+ (_a = child.props) == null ? void 0 : _a.className
85
+ )
86
+ }
87
+ );
88
+ }
89
+ return child;
90
+ }),
91
+ remainingCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
92
+ Avatar,
93
+ {
94
+ className: chunkUWO6RBCE_js.cn(
95
+ "ring-background hover:scale-120 relative cursor-default ring-2 transition-all duration-200 ease-in-out hover:z-[100]",
96
+ `z-[${30 - displayChildren.length}]`
97
+ ),
98
+ children: /* @__PURE__ */ jsxRuntime.jsxs(AvatarFallback, { children: [
99
+ "+",
100
+ remainingCount
101
+ ] })
102
+ }
103
+ )
104
+ ] });
105
+ }
106
+
107
+ exports.Avatar = Avatar;
108
+ exports.AvatarFallback = AvatarFallback;
109
+ exports.AvatarGroup = AvatarGroup;
110
+ exports.AvatarImage = AvatarImage;
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var PopoverPrimitive = require('@radix-ui/react-popover');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
26
+
27
+ function Popover({ ...props }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Root, { "data-slot": "popover", ...props });
29
+ }
30
+ function PopoverTrigger({ ...props }) {
31
+ return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Trigger, { "data-slot": "popover-trigger", ...props });
32
+ }
33
+ function PopoverContent({
34
+ className,
35
+ align = "center",
36
+ sideOffset = 4,
37
+ ...props
38
+ }) {
39
+ return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
40
+ PopoverPrimitive__namespace.Content,
41
+ {
42
+ "data-slot": "popover-content",
43
+ align,
44
+ sideOffset,
45
+ className: chunkUWO6RBCE_js.cn(
46
+ "bg-bg-primary",
47
+ "rounded-uk-lg",
48
+ "p-xl",
49
+ "w-[320px]",
50
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
51
+ "data-[state=open]:animate-in",
52
+ "data-[state=closed]:animate-out",
53
+ "data-[state=closed]:fade-out-0",
54
+ "data-[state=open]:fade-in-0",
55
+ "data-[state=closed]:zoom-out-95",
56
+ "data-[state=open]:zoom-in-95",
57
+ "data-[side=bottom]:slide-in-from-top-2",
58
+ "data-[side=left]:slide-in-from-right-2",
59
+ "data-[side=right]:slide-in-from-left-2",
60
+ "data-[side=top]:slide-in-from-bottom-2",
61
+ "z-50",
62
+ "origin-(--radix-popover-content-transform-origin)",
63
+ "border-none",
64
+ "outline-hidden",
65
+ "liquid:liquid-bg",
66
+ className
67
+ ),
68
+ ...props
69
+ }
70
+ ) });
71
+ }
72
+ function PopoverAnchor({ ...props }) {
73
+ return /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Anchor, { "data-slot": "popover-anchor", ...props });
74
+ }
75
+
76
+ exports.Popover = Popover;
77
+ exports.PopoverAnchor = PopoverAnchor;
78
+ exports.PopoverContent = PopoverContent;
79
+ exports.PopoverTrigger = PopoverTrigger;