@adamosuiteservices/ui 2.14.2 → 2.15.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 (41) hide show
  1. package/dist/combobox-DGuQtXjP.js +608 -0
  2. package/dist/combobox-hTCtPMUL.cjs +40 -0
  3. package/dist/combobox.cjs +1 -1
  4. package/dist/combobox.js +1 -1
  5. package/dist/components/ui/combobox/combobox.d.ts +5 -1
  6. package/dist/components/ui/date-picker-selector/date-picker-selector.d.ts +5 -1
  7. package/dist/components/ui/file-upload/file-upload.d.ts +3 -1
  8. package/dist/components/ui/slider/slider.d.ts +1 -1
  9. package/dist/components/ui/switch/switch.d.ts +1 -1
  10. package/dist/date-picker-selector.cjs +1 -1
  11. package/dist/date-picker-selector.js +38 -28
  12. package/dist/field.cjs +2 -2
  13. package/dist/field.js +2 -2
  14. package/dist/file-upload.cjs +5 -3
  15. package/dist/file-upload.js +178 -149
  16. package/dist/slider.cjs +5 -5
  17. package/dist/slider.js +196 -177
  18. package/dist/styles.css +1 -1
  19. package/dist/switch.cjs +3 -3
  20. package/dist/switch.js +105 -85
  21. package/docs/components/ui/accordion-rounded.md +2 -6
  22. package/docs/components/ui/avatar.md +3 -1
  23. package/docs/components/ui/button.md +22 -16
  24. package/docs/components/ui/card.md +49 -31
  25. package/docs/components/ui/checkbox.md +44 -8
  26. package/docs/components/ui/combobox.md +62 -4
  27. package/docs/components/ui/date-picker-selector.md +90 -26
  28. package/docs/components/ui/file-upload.md +241 -94
  29. package/docs/components/ui/icon.md +1 -1
  30. package/docs/components/ui/input.md +4 -1
  31. package/docs/components/ui/radio-group.md +1 -1
  32. package/docs/components/ui/select.md +51 -34
  33. package/docs/components/ui/sheet.md +3 -9
  34. package/docs/components/ui/slider.md +120 -99
  35. package/docs/components/ui/switch.md +408 -408
  36. package/docs/components/ui/textarea.md +37 -22
  37. package/docs/components/ui/tooltip.md +5 -2
  38. package/docs/components/ui/typography.md +63 -39
  39. package/package.json +1 -1
  40. package/dist/combobox-CCJGIMFQ.cjs +0 -40
  41. package/dist/combobox-Cj-GEp-T.js +0 -604
@@ -1,110 +1,116 @@
1
1
  import { j as e } from "./jsx-runtime-BzflLqGi.js";
2
- import { B as z } from "./button-B0lWuG-D.js";
3
- import { I as R } from "./icon-DKAhvlX_.js";
4
- import { T as g } from "./typography-MnY0LQoZ.js";
5
- import { c as j } from "./index-CRiPKpXj.js";
6
- import { useState as _ } from "react";
7
- function U({
8
- isDragging: s,
9
- isMultiple: t,
10
- invalid: r,
11
- accept: l,
12
- acceptedExtensions: d,
2
+ import { B as L } from "./button-B0lWuG-D.js";
3
+ import { I } from "./icon-DKAhvlX_.js";
4
+ import { T as j } from "./typography-MnY0LQoZ.js";
5
+ import { c as v } from "./index-CRiPKpXj.js";
6
+ import { useState as O, useRef as K, useEffect as Q } from "react";
7
+ function W({
8
+ isDragging: n,
9
+ isMultiple: i,
10
+ invalid: s,
11
+ disabled: t,
12
+ accept: m,
13
+ acceptedExtensions: l,
13
14
  maxSizeInMB: c,
14
15
  maxFiles: f,
15
- labels: o,
16
- onDragOver: h,
17
- onDragLeave: N,
18
- onDrop: v,
19
- onFileChange: u
16
+ labels: u,
17
+ onDragOver: C,
18
+ onDragLeave: b,
19
+ onDrop: w,
20
+ onFileChange: A
20
21
  }) {
21
22
  return /* @__PURE__ */ e.jsxs(
22
23
  "div",
23
24
  {
24
- onDragOver: h,
25
- onDragLeave: N,
26
- onDrop: v,
27
- className: j(
25
+ onDragOver: t ? void 0 : C,
26
+ onDragLeave: t ? void 0 : b,
27
+ onDrop: t ? void 0 : w,
28
+ className: v(
28
29
  `
29
30
  adm:flex adm:flex-col adm:items-center adm:gap-6 adm:rounded-2xl
30
31
  adm:border-2
31
32
  `,
32
33
  "adm:border-dashed adm:bg-background adm:p-6 adm:transition-colors",
33
34
  {
34
- "adm:border-primary": s && !r,
35
- "adm:border-destructive": r,
36
- "adm:border-input": !s && !r
35
+ "adm:border-primary": n && !s && !t,
36
+ "adm:border-destructive": s && !t,
37
+ "adm:border-input": !n && !s,
38
+ "adm:cursor-not-allowed adm:opacity-50": t
37
39
  }
38
40
  ),
39
41
  children: [
40
42
  /* @__PURE__ */ e.jsx(
41
43
  "div",
42
44
  {
43
- className: j(
45
+ className: v(
44
46
  "adm:flex adm:items-center adm:justify-center adm:rounded-xl adm:p-2.5",
45
- r ? "adm:bg-destructive/10" : "adm:bg-primary-50"
47
+ s && !t ? "adm:bg-destructive/10" : "adm:bg-primary-50"
46
48
  ),
47
49
  children: /* @__PURE__ */ e.jsx(
48
- R,
50
+ I,
49
51
  {
50
52
  symbol: "text_snippet",
51
- className: r ? "adm:text-destructive" : "adm:text-primary"
53
+ className: s && !t ? "adm:text-destructive" : "adm:text-primary"
52
54
  }
53
55
  )
54
56
  }
55
57
  ),
56
58
  /* @__PURE__ */ e.jsxs("div", { className: "adm:flex adm:flex-col adm:items-center adm:gap-2", children: [
57
- /* @__PURE__ */ e.jsx(g, { color: r ? "destructive" : void 0, children: o?.dragDrop || (t ? "Drag and drop your files here or" : "Drag and drop your file here or") }),
59
+ /* @__PURE__ */ e.jsx(j, { color: s && !t ? "destructive" : void 0, children: u?.dragDrop || (i ? "Drag and drop your files here or" : "Drag and drop your file here or") }),
58
60
  /* @__PURE__ */ e.jsxs("label", { htmlFor: "file-upload", children: [
59
61
  /* @__PURE__ */ e.jsx(
60
62
  "input",
61
63
  {
62
64
  id: "file-upload",
63
65
  type: "file",
64
- accept: l,
65
- multiple: t,
66
- onChange: u,
66
+ accept: m,
67
+ multiple: i,
68
+ onChange: A,
69
+ disabled: t,
67
70
  className: "adm:hidden"
68
71
  }
69
72
  ),
70
73
  /* @__PURE__ */ e.jsx(
71
- z,
74
+ L,
72
75
  {
73
76
  asChild: !0,
74
77
  type: "button",
75
78
  variant: "link",
76
- className: "adm:cursor-pointer",
77
- children: /* @__PURE__ */ e.jsx("span", { children: o?.selectFile || (t ? "Select files" : "Select the file") })
79
+ className: v("adm:cursor-pointer", t && `
80
+ adm:pointer-events-none
81
+ `),
82
+ disabled: t,
83
+ children: /* @__PURE__ */ e.jsx("span", { children: u?.selectFile || (i ? "Select files" : "Select the file") })
78
84
  }
79
85
  )
80
86
  ] })
81
87
  ] }),
82
- /* @__PURE__ */ e.jsx(g, { className: "adm:text-center", color: r ? "destructive" : "muted", children: o?.fileRequirements || `Allowed files: ${d.join(", ")}. Maximum size ${c} MB${t ? `. Up to ${f} files` : ""}.` })
88
+ /* @__PURE__ */ e.jsx(j, { className: "adm:text-center", color: s && !t ? "destructive" : "muted", children: u?.fileRequirements || `Allowed files: ${l.join(", ")}. Maximum size ${c} MB${i ? `. Up to ${f} files` : ""}.` })
83
89
  ]
84
90
  }
85
91
  );
86
92
  }
87
- function q({ file: s, invalid: t, onRemove: r }) {
93
+ function X({ file: n, invalid: i, onRemove: s }) {
88
94
  return /* @__PURE__ */ e.jsxs(
89
95
  "div",
90
96
  {
91
- className: j(
97
+ className: v(
92
98
  "adm:flex adm:items-center adm:gap-4 adm:rounded-2xl adm:border adm:p-6",
93
- t ? "adm:border-destructive adm:bg-destructive/5" : "adm:border-input adm:bg-muted"
99
+ i ? "adm:border-destructive adm:bg-destructive/5" : "adm:border-input adm:bg-muted"
94
100
  ),
95
101
  children: [
96
102
  /* @__PURE__ */ e.jsx(
97
103
  "div",
98
104
  {
99
- className: j(
105
+ className: v(
100
106
  "adm:flex adm:items-center adm:justify-center adm:rounded-xl adm:p-2.5",
101
- t ? "adm:bg-destructive/10" : "adm:bg-primary-50"
107
+ i ? "adm:bg-destructive/10" : "adm:bg-primary-50"
102
108
  ),
103
109
  children: /* @__PURE__ */ e.jsx(
104
- R,
110
+ I,
105
111
  {
106
112
  symbol: "text_snippet",
107
- className: t ? "adm:text-destructive" : "adm:text-primary"
113
+ className: i ? "adm:text-destructive" : "adm:text-primary"
108
114
  }
109
115
  )
110
116
  }
@@ -116,161 +122,184 @@ function q({ file: s, invalid: t, onRemove: r }) {
116
122
  adm:flex adm:min-w-0 adm:flex-1 adm:items-start adm:gap-3
117
123
  `,
118
124
  children: [
119
- /* @__PURE__ */ e.jsx("div", { className: "adm:min-w-0 adm:flex-1", children: /* @__PURE__ */ e.jsx(g, { className: "adm:truncate adm:font-semibold", children: s.name }) }),
120
- /* @__PURE__ */ e.jsxs(g, { className: "adm:shrink-0", color: "muted", children: [
121
- (s.size / 1024 / 1024).toFixed(1),
125
+ /* @__PURE__ */ e.jsx("div", { className: "adm:min-w-0 adm:flex-1", children: /* @__PURE__ */ e.jsx(j, { className: "adm:truncate adm:font-semibold", children: n.name }) }),
126
+ /* @__PURE__ */ e.jsxs(j, { className: "adm:shrink-0", color: "muted", children: [
127
+ (n.size / 1024 / 1024).toFixed(1),
122
128
  " MB"
123
129
  ] })
124
130
  ]
125
131
  }
126
132
  ),
127
133
  /* @__PURE__ */ e.jsx(
128
- z,
134
+ L,
129
135
  {
130
136
  variant: "destructive-medium",
131
- onClick: r,
137
+ onClick: s,
132
138
  type: "button",
133
- children: /* @__PURE__ */ e.jsx(R, { symbol: "delete", className: "adm:text-destructive" })
139
+ children: /* @__PURE__ */ e.jsx(I, { symbol: "delete", className: "adm:text-destructive" })
134
140
  }
135
141
  )
136
142
  ]
137
143
  }
138
144
  );
139
145
  }
140
- function $({ files: s, isMultiple: t, invalid: r, labels: l, onRemoveFile: d, onClearAll: c }) {
141
- return s.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "adm:flex adm:flex-col adm:gap-3", children: [
142
- t && s.length > 1 && /* @__PURE__ */ e.jsxs("div", { className: "adm:flex adm:items-center adm:justify-between", children: [
143
- /* @__PURE__ */ e.jsx(g, { className: "adm:text-sm adm:font-medium", color: r ? "destructive" : void 0, children: l?.filesSelected?.(s.length) || `${s.length} file${s.length !== 1 ? "s" : ""} selected` }),
146
+ function z({ files: n, isMultiple: i, invalid: s, labels: t, onRemoveFile: m, onClearAll: l }) {
147
+ return n.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: "adm:flex adm:flex-col adm:gap-3", children: [
148
+ i && n.length > 1 && /* @__PURE__ */ e.jsxs("div", { className: "adm:flex adm:items-center adm:justify-between", children: [
149
+ /* @__PURE__ */ e.jsx(j, { className: "adm:text-sm adm:font-medium", color: s ? "destructive" : void 0, children: t?.filesSelected?.(n.length) || `${n.length} file${n.length !== 1 ? "s" : ""} selected` }),
144
150
  /* @__PURE__ */ e.jsx(
145
- z,
151
+ L,
146
152
  {
147
153
  variant: "ghost",
148
154
  size: "sm",
149
- onClick: c,
155
+ onClick: l,
150
156
  type: "button",
151
157
  children: "Clear all"
152
158
  }
153
159
  )
154
160
  ] }),
155
- s.map((f, o) => /* @__PURE__ */ e.jsx(
156
- q,
161
+ n.map((c, f) => /* @__PURE__ */ e.jsx(
162
+ X,
157
163
  {
158
- file: f,
159
- invalid: r,
160
- onRemove: () => d(o)
164
+ file: c,
165
+ invalid: s,
166
+ onRemove: () => m(f)
161
167
  },
162
- `${f.name}-${o}`
168
+ `${c.name}-${f}`
163
169
  ))
164
170
  ] });
165
171
  }
166
- function Q({
167
- className: s,
168
- selectedFile: t,
169
- selectedFiles: r,
170
- onFileSelect: l,
171
- onFilesSelect: d,
172
- onInvalidFile: c,
173
- acceptedExtensions: f = [".xls", ".xlsx", ".numbers"],
174
- maxSizeInMB: o = 50,
175
- maxFiles: h = 10,
176
- multiple: N = !1,
177
- filesPosition: v = "below",
178
- invalid: u = !1,
179
- labels: b,
180
- ...k
172
+ function re({
173
+ className: n,
174
+ selectedFile: i,
175
+ selectedFiles: s,
176
+ onFileSelect: t,
177
+ onFilesSelect: m,
178
+ onInvalidFile: l,
179
+ acceptedExtensions: c = [".xls", ".xlsx", ".numbers"],
180
+ maxSizeInMB: f = 50,
181
+ maxFiles: u = 10,
182
+ multiple: C = !1,
183
+ filesPosition: b = "below",
184
+ invalid: w = !1,
185
+ disabled: A = !1,
186
+ "aria-invalid": B,
187
+ labels: y,
188
+ ...T
181
189
  }) {
182
- const [B, D] = _(!1), L = f.join(","), T = o * 1024 * 1024, m = N || r !== void 0 || d !== void 0, x = m ? r || [] : t ? [t] : [], F = (a) => {
183
- a.preventDefault(), D(!0);
184
- }, I = (a) => {
185
- a.preventDefault(), D(!1);
186
- }, O = (a) => {
187
- if (a.preventDefault(), D(!1), m) {
188
- const i = Array.from(a.dataTransfer.files).filter(y);
189
- if (i.length > 0) {
190
- const w = [...r || [], ...i].slice(0, h);
191
- d && d(w);
190
+ const [V, R] = O(!1), [_, E] = O(!1), g = K(null);
191
+ Q(() => {
192
+ const r = () => {
193
+ if (g.current) {
194
+ const d = g.current.closest("fieldset");
195
+ E(d?.disabled ?? !1);
192
196
  }
193
- } else {
194
- const n = a.dataTransfer.files[0];
195
- n && y(n) && l && l(n);
197
+ };
198
+ r();
199
+ const a = new MutationObserver(r);
200
+ if (g.current) {
201
+ const d = g.current.closest("fieldset");
202
+ d && a.observe(d, { attributes: !0, attributeFilter: ["disabled"] });
196
203
  }
197
- }, V = (a) => {
198
- if (m) {
199
- const i = (a.target.files ? Array.from(a.target.files) : []).filter(y);
200
- if (i.length > 0) {
201
- const w = [...r || [], ...i].slice(0, h);
202
- d && d(w);
204
+ return () => a.disconnect();
205
+ }, []);
206
+ const U = c.join(","), q = f * 1024 * 1024, o = C || s !== void 0 || m !== void 0, p = o ? s || [] : i ? [i] : [], D = w || B, x = A || _, M = (r) => {
207
+ x || (r.preventDefault(), R(!0));
208
+ }, G = (r) => {
209
+ x || (r.preventDefault(), R(!1));
210
+ }, H = (r) => {
211
+ if (!x)
212
+ if (r.preventDefault(), R(!1), o) {
213
+ const d = Array.from(r.dataTransfer.files).filter(N);
214
+ if (d.length > 0) {
215
+ const k = [...s || [], ...d].slice(0, u);
216
+ m && m(k);
217
+ }
218
+ } else {
219
+ const a = r.dataTransfer.files[0];
220
+ a && N(a) && t && t(a);
221
+ }
222
+ }, J = (r) => {
223
+ if (!x) {
224
+ if (o) {
225
+ const d = (r.target.files ? Array.from(r.target.files) : []).filter(N);
226
+ if (d.length > 0) {
227
+ const k = [...s || [], ...d].slice(0, u);
228
+ m && m(k);
229
+ }
230
+ } else {
231
+ const a = r.target.files?.[0];
232
+ a && N(a) && t && t(a);
203
233
  }
204
- } else {
205
- const n = a.target.files?.[0];
206
- n && y(n) && l && l(n);
234
+ r.target.value = "";
207
235
  }
208
- a.target.value = "";
209
- }, C = (a) => {
210
- if (m) {
211
- const n = x.filter((i, p) => p !== a);
212
- d && d(n);
213
- } else
214
- l && l(null);
215
- }, y = (a) => {
216
- const n = a.name.substring(a.name.lastIndexOf(".")), i = f.includes(n.toLowerCase()), p = a.size <= T;
217
- return !i && c ? c(a, "extension") : !p && c && c(a, "size"), i && p;
218
- }, A = () => {
219
- m ? d && d([]) : l && l(null);
236
+ }, $ = (r) => {
237
+ if (!x)
238
+ if (o) {
239
+ const a = p.filter((d, h) => h !== r);
240
+ m && m(a);
241
+ } else
242
+ t && t(null);
243
+ }, N = (r) => {
244
+ const a = r.name.substring(r.name.lastIndexOf(".")), d = c.includes(a.toLowerCase()), h = r.size <= q;
245
+ return !d && l ? l(r, "extension") : !h && l && l(r, "size"), d && h;
246
+ }, F = () => {
247
+ x || (o ? m && m([]) : t && t(null));
220
248
  };
221
- return /* @__PURE__ */ e.jsxs("div", { className: j("adm:flex adm:flex-col adm:gap-4", s), ...k, children: [
222
- m && v === "above" && /* @__PURE__ */ e.jsx(
223
- $,
249
+ return /* @__PURE__ */ e.jsxs("div", { ref: g, className: v("adm:flex adm:flex-col adm:gap-4", n), ...T, children: [
250
+ o && b === "above" && /* @__PURE__ */ e.jsx(
251
+ z,
224
252
  {
225
- files: x,
226
- isMultiple: m,
227
- invalid: u,
228
- labels: b,
229
- onRemoveFile: C,
230
- onClearAll: A
253
+ files: p,
254
+ isMultiple: o,
255
+ invalid: D,
256
+ labels: y,
257
+ onRemoveFile: $,
258
+ onClearAll: F
231
259
  }
232
260
  ),
233
- (m || x.length === 0) && /* @__PURE__ */ e.jsx(
234
- U,
261
+ (o || p.length === 0) && /* @__PURE__ */ e.jsx(
262
+ W,
235
263
  {
236
- isDragging: B,
237
- isMultiple: m,
238
- invalid: u,
239
- accept: L,
240
- acceptedExtensions: f,
241
- maxSizeInMB: o,
242
- maxFiles: h,
243
- labels: b,
244
- onDragOver: F,
245
- onDragLeave: I,
246
- onDrop: O,
247
- onFileChange: V
264
+ isDragging: V,
265
+ isMultiple: o,
266
+ invalid: D,
267
+ disabled: x,
268
+ accept: U,
269
+ acceptedExtensions: c,
270
+ maxSizeInMB: f,
271
+ maxFiles: u,
272
+ labels: y,
273
+ onDragOver: M,
274
+ onDragLeave: G,
275
+ onDrop: H,
276
+ onFileChange: J
248
277
  }
249
278
  ),
250
- !m && x.length > 0 && /* @__PURE__ */ e.jsx(
251
- $,
279
+ !o && p.length > 0 && /* @__PURE__ */ e.jsx(
280
+ z,
252
281
  {
253
- files: x,
254
- isMultiple: m,
255
- invalid: u,
256
- labels: b,
257
- onRemoveFile: C,
258
- onClearAll: A
282
+ files: p,
283
+ isMultiple: o,
284
+ invalid: D,
285
+ labels: y,
286
+ onRemoveFile: $,
287
+ onClearAll: F
259
288
  }
260
289
  ),
261
- m && v === "below" && /* @__PURE__ */ e.jsx(
262
- $,
290
+ o && b === "below" && /* @__PURE__ */ e.jsx(
291
+ z,
263
292
  {
264
- files: x,
265
- isMultiple: m,
266
- invalid: u,
267
- labels: b,
268
- onRemoveFile: C,
269
- onClearAll: A
293
+ files: p,
294
+ isMultiple: o,
295
+ invalid: D,
296
+ labels: y,
297
+ onRemoveFile: $,
298
+ onClearAll: F
270
299
  }
271
300
  )
272
301
  ] });
273
302
  }
274
303
  export {
275
- Q as FileUpload
304
+ re as FileUpload
276
305
  };
package/dist/slider.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-_XxjJPRD.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-Da298sEl.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-CocSS1YK.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:i=100,step:d=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:h=[o],value:p,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,x=l.useRef(new Set),f=l.useRef(0),b=r==="horizontal"?ge:ve,[S=[],M]=P.useControllableState({prop:p,defaultProp:h,onChange:R=>{[...x.current][f.current]?.focus(),s(R)}}),k=l.useRef(S);function B(R){const E=ye(S,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=k.current[f.current];S[f.current]!==R&&m(S)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,i]);M((D=[])=>{const y=we(D,K,E);if(De(y,c*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return u.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:i,valueIndexToChangeRef:f,thumbs:x.current,values:S,orientation:r,form:w,children:u.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:u.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:u.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(k.current=S)}),min:o,max:i,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(i,S.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=S[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:i,inverted:d,onSlideStart:r,onSlideMove:a,onSlideEnd:c,onStepKeyDown:h,...p}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(i),x=g==="ltr",f=x&&!d||!x&&d;function j(b){const S=w.current||s.getBoundingClientRect(),M=[0,S.width],B=q(M,f?[n,o]:[o,n]);return w.current=S,B(b-S.left)}return u.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:u.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...p,ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const S=j(b.clientX);r?.(S)},onSlideMove:b=>{const S=j(b.clientX);a?.(S)},onSlideEnd:()=>{w.current=void 0,c?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);h?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:i,onSlideStart:d,onSlideMove:r,onSlideEnd:a,onStepKeyDown:c,...h}=e,p=l.useRef(null),s=_.useComposedRefs(t,p),m=l.useRef(void 0),v=!i;function w(g){const x=m.current||p.current.getBoundingClientRect(),f=[0,x.height],b=q(f,v?[o,n]:[n,o]);return m.current=x,b(g-x.top)}return u.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:u.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...h,ref:s,style:{...h.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const x=w(g.clientY);d?.(x)},onSlideMove:g=>{const x=w(g.clientY);r?.(x)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);c?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:i,onSlideEnd:d,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:c,...h}=e,p=T(C,n);return u.jsxRuntimeExports.jsx(I.Primitive.span,{...h,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(r(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(c(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),p.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&i(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,i=T(ne,n);return u.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,i=T(O,n),d=ee(O,n),r=l.useRef(null),a=_.useComposedRefs(t,r),c=i.values.length,h=i.values.map(m=>ae(m,i.min,i.max)),p=c>1?Math.min(...h):0,s=100-Math.max(...h);return u.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:p+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,i]=l.useState(null),d=_.useComposedRefs(t,a=>i(a)),r=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return u.jsxRuntimeExports.jsx(be,{...e,ref:d,index:r})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:i,...d}=e,r=T($,n),a=ee($,n),[c,h]=l.useState(null),p=_.useComposedRefs(t,j=>h(j)),s=c?r.form||!!c.closest("form"):!0,m=fe.useSize(c),v=r.values[o],w=v===void 0?0:ae(v,r.min,r.max),g=Ee(o,r.values.length),x=m?.[a.size],f=x?Pe(x,w,a.direction):0;return l.useEffect(()=>{if(c)return r.thumbs.add(c),()=>{r.thumbs.delete(c)}},[c,r.thumbs]),u.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[u.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:u.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...d,ref:p,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{r.valueIndexToChangeRef.current=o})})}),s&&u.jsxRuntimeExports.jsx(se,{name:i??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const i=l.useRef(null),d=_.useComposedRefs(i,o),r=me.usePrevious(t);return l.useEffect(()=>{const a=i.current;if(!a)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(r!==t&&p){const s=new Event("input",{bubbles:!0});p.call(a,t),a.dispatchEvent(s)}},[r,t]),u.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((i,d)=>i-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:i=100,theme:d,colorSlide:r,...a}){const c=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,i],[n,t,o,i]),h=l.useMemo(()=>{if(r){if(r==="full")return{background:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff0000)"};if(Array.isArray(r)&&r.length===2)return{background:`linear-gradient(to right, ${r[0]}, ${r[1]})`}}},[r]);return u.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:i,className:N.cn(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),U=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-_XxjJPRD.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-Da298sEl.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),K=require("./index-CocSS1YK.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,k]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:s=100,step:d=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:f=0,defaultValue:v=[o],value:S,onValueChange:i=()=>{},onValueCommit:u=()=>{},inverted:h=!1,form:w,...x}=e,m=l.useRef(new Set),c=l.useRef(0),b=r==="horizontal"?ge:ve,[g=[],M]=P.useControllableState({prop:S,defaultProp:v,onChange:R=>{[...m.current][c.current]?.focus(),i(R)}}),T=l.useRef(g);function B(R){const E=ye(g,R);A(R,E)}function de(R){A(R,c.current)}function le(){const R=T.current[c.current];g[c.current]!==R&&u(g)}function A(R,E,{commit:z}={commit:!1}){const F=_e(d),H=Ce(Math.round((R-o)/d)*d+o,F),I=U.clamp(H,[o,s]);M((D=[])=>{const y=we(D,I,E);if(De(y,f*d)){c.current=y.indexOf(I);const L=String(y)!==String(D);return L&&z&&u(y),L?y:D}else return D})}return p.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:s,valueIndexToChangeRef:c,thumbs:m.current,values:g,orientation:r,form:w,children:p.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:p.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:p.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...x,ref:t,onPointerDown:P.composeEventHandlers(x.onPointerDown,()=>{a||(T.current=g)}),min:o,max:s,inverted:h,onSlideStart:a?void 0:B,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(s,g.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,I=c.current,D=g[I],y=d*H*E;A(D+y,I,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:s,inverted:d,onSlideStart:r,onSlideMove:a,onSlideEnd:f,onStepKeyDown:v,...S}=e,[i,u]=l.useState(null),h=_.useComposedRefs(t,b=>u(b)),w=l.useRef(void 0),x=Y.useDirection(s),m=x==="ltr",c=m&&!d||!m&&d;function j(b){const g=w.current||i.getBoundingClientRect(),M=[0,g.width],B=q(M,c?[n,o]:[o,n]);return w.current=g,B(b-g.left)}return p.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:c?"left":"right",endEdge:c?"right":"left",direction:c?1:-1,size:"width",children:p.jsxRuntimeExports.jsx(te,{dir:x,"data-orientation":"horizontal",...S,ref:h,style:{...S.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const g=j(b.clientX);r?.(g)},onSlideMove:b=>{const g=j(b.clientX);a?.(g)},onSlideEnd:()=>{w.current=void 0,f?.()},onStepKeyDown:b=>{const M=W[c?"from-left":"from-right"].includes(b.key);v?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:s,onSlideStart:d,onSlideMove:r,onSlideEnd:a,onStepKeyDown:f,...v}=e,S=l.useRef(null),i=_.useComposedRefs(t,S),u=l.useRef(void 0),h=!s;function w(x){const m=u.current||S.current.getBoundingClientRect(),c=[0,m.height],b=q(c,h?[o,n]:[n,o]);return u.current=m,b(x-m.top)}return p.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...v,ref:i,style:{...v.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{const m=w(x.clientY);d?.(m)},onSlideMove:x=>{const m=w(x.clientY);r?.(m)},onSlideEnd:()=>{u.current=void 0,a?.()},onStepKeyDown:x=>{const c=W[h?"from-bottom":"from-top"].includes(x.key);f?.({event:x,direction:c?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:s,onSlideEnd:d,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:f,...v}=e,S=k(C,n);return p.jsxRuntimeExports.jsx(K.Primitive.span,{...v,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):X.concat(G).includes(i.key)&&(f(i),i.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,i=>{const u=i.target;u.setPointerCapture(i.pointerId),i.preventDefault(),S.thumbs.has(u)?u.focus():o(i)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,i=>{const u=i.target;u.hasPointerCapture(i.pointerId)&&(u.releasePointerCapture(i.pointerId),d(i))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,s=k(ne,n);return p.jsxRuntimeExports.jsx(K.Primitive.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,s=k(O,n),d=ee(O,n),r=l.useRef(null),a=_.useComposedRefs(t,r),f=s.values.length,v=s.values.map(u=>ae(u,s.min,s.max)),S=f>1?Math.min(...v):0,i=100-Math.max(...v);return p.jsxRuntimeExports.jsx(K.Primitive.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:S+"%",[d.endEdge]:i+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,s]=l.useState(null),d=_.useComposedRefs(t,a=>s(a)),r=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return p.jsxRuntimeExports.jsx(be,{...e,ref:d,index:r})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:s,...d}=e,r=k($,n),a=ee($,n),[f,v]=l.useState(null),S=_.useComposedRefs(t,j=>v(j)),i=f?r.form||!!f.closest("form"):!0,u=fe.useSize(f),h=r.values[o],w=h===void 0?0:ae(h,r.min,r.max),x=Ee(o,r.values.length),m=u?.[a.size],c=m?Pe(m,w,a.direction):0;return l.useEffect(()=>{if(f)return r.thumbs.add(f),()=>{r.thumbs.delete(f)}},[f,r.thumbs]),p.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${c}px)`},children:[p.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:p.jsxRuntimeExports.jsx(K.Primitive.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":r.min,"aria-valuenow":h,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...d,ref:S,style:h===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{r.valueIndexToChangeRef.current=o})})}),i&&p.jsxRuntimeExports.jsx(se,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:h},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const s=l.useRef(null),d=_.useComposedRefs(s,o),r=me.usePrevious(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const f=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(f,"value").set;if(r!==t&&S){const i=new Event("input",{bubbles:!0});S.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsxRuntimeExports.jsx(K.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((s,d)=>s-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return U.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ie=re,Ke=ie;function ke({className:e,defaultValue:t,value:n,min:o=0,max:s=100,theme:d,colorSlide:r,disabled:a,...f}){const[v,S]=l.useState(!1),i=l.useRef(null);l.useEffect(()=>{const x=()=>{if(i.current){const c=i.current.closest("fieldset");S(c?.disabled??!1)}};x();const m=new MutationObserver(x);if(i.current){const c=i.current.closest("fieldset");c&&m.observe(c,{attributes:!0,attributeFilter:["disabled"]})}return()=>m.disconnect()},[]);const u=a||v,h=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,s],[n,t,o,s]),w=l.useMemo(()=>{if(r){if(r==="full")return{background:"linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff0000)"};if(Array.isArray(r)&&r.length===2)return{background:`linear-gradient(to right, ${r[0]}, ${r[1]})`}}},[r]);return p.jsxRuntimeExports.jsxs(Me,{ref:i,"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:s,disabled:u,className:N.cn(`
2
2
  adm:relative adm:flex adm:w-full adm:touch-none adm:items-center
3
3
  adm:select-none
4
4
  adm:data-disabled:opacity-50
@@ -6,21 +6,21 @@
6
6
  adm:data-[orientation=vertical]:min-h-44
7
7
  adm:data-[orientation=vertical]:w-auto
8
8
  adm:data-[orientation=vertical]:flex-col
9
- `,e),...a,children:[u.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn(`
9
+ `,e),...f,children:[p.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn(`
10
10
  adm:relative adm:grow adm:overflow-hidden adm:rounded-full
11
11
  adm:data-[orientation=horizontal]:h-1.5
12
12
  adm:data-[orientation=horizontal]:w-full
13
13
  adm:data-[orientation=vertical]:h-full
14
14
  adm:data-[orientation=vertical]:w-1.5
15
- `,r?"":"adm:bg-muted"),style:r?h:void 0,children:u.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn(`
15
+ `,r?"":"adm:bg-muted"),style:r?w:void 0,children:p.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-range",className:N.cn(`
16
16
  adm:absolute
17
17
  adm:data-[orientation=horizontal]:h-full
18
18
  adm:data-[orientation=vertical]:w-full
19
- `,r?"adm:bg-transparent":"adm:bg-primary")})}),Array.from({length:c.length},(p,s)=>u.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:`
19
+ `,r?"adm:bg-transparent":"adm:bg-primary")})}),Array.from({length:h.length},(x,m)=>p.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-thumb",className:`
20
20
  adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border
21
21
  adm:border-primary adm:bg-white adm:shadow-sm adm:ring-ring/50
22
22
  adm:transition-[color,box-shadow]
23
23
  adm:hover:ring-4
24
24
  adm:focus-visible:ring-4 adm:focus-visible:outline-hidden
25
25
  adm:disabled:pointer-events-none adm:disabled:opacity-50
26
- `},s))]})}exports.Slider=Te;
26
+ `},m))]})}exports.Slider=ke;