@pixpilot/shadcn 0.1.2 → 0.1.3
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.
- package/dist/{OrContinueWithSeparator-BQalGx6O.d.ts → OrContinueWithSeparator-BDH-vep4.d.ts} +2 -2
- package/dist/OrContinueWithSeparator-CkITP0NT.js +27 -0
- package/dist/{alert-BDcOuBrO.d.ts → alert-CKr0C0yG.d.ts} +4 -4
- package/dist/{alert-DuQQzE0M.js → alert-DgTy4F7t.js} +5 -6
- package/dist/{alert-dialog-Iw5UG8d3.d.ts → alert-dialog-BIYOf1qe.d.ts} +1 -1
- package/dist/{avatar-BRZS2oIf.d.ts → avatar-DomHDuSM.d.ts} +4 -4
- package/dist/{avatar-DWlyZZC1.js → avatar-ggnaPAdx.js} +5 -6
- package/dist/{badge-Dwxq7JaA.d.ts → badge-DaNELwZ4.d.ts} +5 -5
- package/dist/{badge-ChGpGKfr.js → badge-OxgStuN-.js} +3 -4
- package/dist/{button-CoM3CepB.js → button-Ct22vvF2.js} +3 -4
- package/dist/{button-CSw4bOk7.d.ts → button-Qk5_S2q2.d.ts} +5 -5
- package/dist/{calendar-Vx7GBiN5.d.ts → calendar-CtMOHJjw.d.ts} +4 -4
- package/dist/{calendar-5J34tX7L.js → calendar-SVLTPCYN.js} +11 -12
- package/dist/{card-CN1Wv1_W.d.ts → card-7m__j7pN.d.ts} +8 -8
- package/dist/{card-Bf0-1Hox.js → card-mGJMSXR3.js} +9 -10
- package/dist/{checkbox-COC2Igpo.d.ts → checkbox-C2ohGs66.d.ts} +2 -2
- package/dist/{checkbox-ChqHvI5Y.js → checkbox-Car6S-YU.js} +5 -6
- package/dist/{command-BzJMrpFw.js → command-Bh0lIHth.js} +17 -18
- package/dist/{command-CJXf3-UR.d.ts → command-J-Z7237Z.d.ts} +11 -11
- package/dist/components/{index-2Smtu_1u.d.ts → index-CjxDeDgS.d.ts} +29 -29
- package/dist/components/index.js +30 -31
- package/dist/components/ui/{OrContinueWithSeparator-OYGOTHTw.d.ts → OrContinueWithSeparator-CHwqvVjX.d.ts} +1 -1
- package/dist/components/ui/OrContinueWithSeparator.js +4 -5
- package/dist/components/ui/alert-1G0clvys.d.ts +2 -0
- package/dist/components/ui/{alert-dialog-CUL8nAeI.d.ts → alert-dialog-B4l6hBX8.d.ts} +1 -1
- package/dist/components/ui/alert-dialog.js +30 -31
- package/dist/components/ui/alert.js +3 -4
- package/dist/components/ui/avatar-utP6R-Uq.d.ts +2 -0
- package/dist/components/ui/avatar.js +3 -4
- package/dist/components/ui/badge-DwySSPk7.d.ts +2 -0
- package/dist/components/ui/badge.js +3 -4
- package/dist/components/ui/button-fWXid_Jg.d.ts +2 -0
- package/dist/components/ui/button.js +3 -4
- package/dist/components/ui/{calendar-B9zfwi7H.d.ts → calendar-DxgOZaJG.d.ts} +1 -1
- package/dist/components/ui/calendar.js +4 -5
- package/dist/components/ui/{card-BYi1Jf3z.d.ts → card-CEc4KDWR.d.ts} +1 -1
- package/dist/components/ui/card.js +3 -4
- package/dist/components/ui/checkbox-Db1hdfQh.d.ts +2 -0
- package/dist/components/ui/checkbox.js +3 -4
- package/dist/components/ui/{command-BkXDbodx.d.ts → command-D5yDsetf.d.ts} +1 -1
- package/dist/components/ui/command.js +4 -5
- package/dist/components/ui/{dialog-BvEqiJH6.d.ts → dialog-C9hWg6Jo.d.ts} +1 -1
- package/dist/components/ui/dialog.js +3 -4
- package/dist/components/ui/{dropdown-menu-BJ2FNIH4.d.ts → dropdown-menu-CZQe3gdP.d.ts} +1 -1
- package/dist/components/ui/dropdown-menu.js +3 -4
- package/dist/components/ui/{file-upload-DZGaOzQS.d.ts → file-upload-DE4ndg6D.d.ts} +1 -1
- package/dist/components/ui/file-upload.js +3 -4
- package/dist/components/ui/{form-CpVuTht7.d.ts → form-_IonQq2g.d.ts} +1 -1
- package/dist/components/ui/form.js +4 -5
- package/dist/components/ui/{index-q7RUuYJ2.d.ts → index-ByU7Ea3g.d.ts} +29 -29
- package/dist/components/ui/index.js +30 -31
- package/dist/components/ui/input-nIiKz0t3.d.ts +2 -0
- package/dist/components/ui/input.js +3 -4
- package/dist/components/ui/label-DcYFARJv.d.ts +2 -0
- package/dist/components/ui/label.js +3 -4
- package/dist/components/ui/{pagination-CDtFyXkC.d.ts → pagination-BzA2nvm7.d.ts} +1 -1
- package/dist/components/ui/pagination.js +30 -31
- package/dist/components/ui/{popover-B6PDCy8U.d.ts → popover-CWkbXPIs.d.ts} +1 -1
- package/dist/components/ui/popover.js +3 -4
- package/dist/components/ui/{radio-group-DuGtPMcp.d.ts → radio-group-B8uVaLcH.d.ts} +1 -1
- package/dist/components/ui/radio-group.js +3 -4
- package/dist/components/ui/{select-DAN9r02Z.d.ts → select-Thz3wmNR.d.ts} +1 -1
- package/dist/components/ui/select.js +3 -4
- package/dist/components/ui/separator-nDjbz769.d.ts +2 -0
- package/dist/components/ui/separator.js +3 -4
- package/dist/components/ui/shadcn-io/tags/{index-CnMq6aeV.d.ts → index-ByG1DLSH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags/index.js +8 -9
- package/dist/components/ui/shadcn-io/tags-input-inline/{index-D7OIPdfu.d.ts → index-Z-lSeFdH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +2 -3
- package/dist/components/ui/{sheet-Bo7lvlRA.d.ts → sheet-DG1hOjV0.d.ts} +1 -1
- package/dist/components/ui/sheet.js +3 -4
- package/dist/components/ui/slider-BQpp3iiy.d.ts +2 -0
- package/dist/components/ui/slider.js +3 -4
- package/dist/components/ui/switch-nWOTZVXx.d.ts +2 -0
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/tabs-k3ha4bbs.d.ts +2 -0
- package/dist/components/ui/tabs.js +3 -4
- package/dist/components/ui/textarea-BV_2NNxa.d.ts +2 -0
- package/dist/components/ui/textarea.js +3 -4
- package/dist/components/ui/{tooltip-JdLdCVsY.d.ts → tooltip--Q9yXR4z.d.ts} +1 -1
- package/dist/components/ui/tooltip.js +3 -4
- package/dist/{dialog-a61KKgp5.d.ts → dialog-GHzqCUyY.d.ts} +11 -11
- package/dist/{dialog-CnHQjTPX.js → dialog-O7j71U82.js} +15 -16
- package/dist/{dropdown-menu-DTRzUFxv.d.ts → dropdown-menu-B7IpNRT1.d.ts} +16 -16
- package/dist/{dropdown-menu-BytmAQI6.js → dropdown-menu-ChXZkLy7.js} +22 -23
- package/dist/{file-upload-BEeMesnR.js → file-upload-DPXO1W1r.js} +36 -37
- package/dist/{file-upload-C38U9nyT.d.ts → file-upload-DtI7t48f.d.ts} +11 -11
- package/dist/{form-Cx2k120Z.d.ts → form-B1wa9dSK.d.ts} +7 -7
- package/dist/{form-BjnyYpgw.js → form-DITfwajn.js} +11 -12
- package/dist/{index-2apAhpYW.d.ts → index-BBg42y-x.d.ts} +30 -30
- package/dist/{index-B9p9Ocoz.d.ts → index-CbEoBXve.d.ts} +9 -9
- package/dist/{index-B6o0TAoD.d.ts → index-DAxEKRyQ.d.ts} +7 -7
- package/dist/{index-fkXKhUlW.d.ts → index-nhYidbaI.d.ts} +13 -13
- package/dist/index.js +30 -31
- package/dist/{input-DCWzuP_2.d.ts → input-BOo0lKrd.d.ts} +2 -2
- package/dist/{input-CUeyj64L.js → input-Yyz-T5fE.js} +3 -4
- package/dist/{label-DGznqsHm.js → label-CAjd9Y0A.js} +3 -4
- package/dist/{label-pEqCQKel.d.ts → label-VBeDhZRS.d.ts} +2 -2
- package/dist/lib/index-BBZGfoI7.d.ts +2 -0
- package/dist/lib/index.js +2 -2
- package/dist/lib/utils-COdFh0eZ.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/{popover-CV48KL0e.js → popover-B6K6dK1G.js} +6 -7
- package/dist/{popover-RnfYQfGo.d.ts → popover-BSOEEHRm.d.ts} +5 -5
- package/dist/{radio-group-BNj4EfLg.d.ts → radio-group-2z7Wk4bX.d.ts} +3 -3
- package/dist/{radio-group-jaFHISZ7.js → radio-group-CN-7YDqF.js} +6 -7
- package/dist/{select-B4b-ZC31.d.ts → select-BLcUSgPc.d.ts} +11 -11
- package/dist/{select-C96xvMSx.js → select-D1s3F0et.js} +22 -23
- package/dist/{separator-C71XEO3E.js → separator-BVBCxKBW.js} +3 -4
- package/dist/{separator-izY8KL7y.d.ts → separator-CQdurlbm.d.ts} +2 -2
- package/dist/{sheet-Dag7L2Xd.d.ts → sheet-BBjl1baR.d.ts} +9 -9
- package/dist/{sheet-BlZGrRNt.js → sheet-DrR3eH28.js} +14 -15
- package/dist/{slider-CdK5O4pc.js → slider-BlL5lT8d.js} +6 -7
- package/dist/{slider-DEUGdZC4.d.ts → slider-CYGuuC8k.d.ts} +2 -2
- package/dist/{src-DQlJgy1h.js → src-8ePG_tPo.js} +25 -26
- package/dist/{switch-Bz5Iiy2_.js → switch-BXSa0MEU.js} +4 -5
- package/dist/{switch-RbFzvnvM.d.ts → switch-Y5FN07nj.d.ts} +2 -2
- package/dist/{tabs-had5ildI.d.ts → tabs-C-Tv9y7L.d.ts} +5 -5
- package/dist/{tabs-BjolTUEI.js → tabs-DbvqqMZV.js} +6 -7
- package/dist/{tags-BnJCu0NQ.js → tags-BACevgr_.js} +22 -23
- package/dist/{tags-input-inline-DnEu3Dyw.js → tags-input-inline-Bz5h19zx.js} +11 -12
- package/dist/{textarea-s8H46Zg0.d.ts → textarea-C3eFh4Vd.d.ts} +2 -2
- package/dist/{textarea-BNZyZgAM.js → textarea-DTGK7cx-.js} +3 -4
- package/dist/{tooltip-CS40su1S.d.ts → tooltip-CGDnGnPt.d.ts} +5 -5
- package/dist/{tooltip-CuYs-__e.js → tooltip-CX3NbXUu.js} +7 -8
- package/package.json +1 -1
- package/dist/OrContinueWithSeparator-Cs96m5UB.js +0 -28
- package/dist/components/ui/alert-DuyLuX68.d.ts +0 -2
- package/dist/components/ui/avatar-DAQzpqqD.d.ts +0 -2
- package/dist/components/ui/badge-BM6RVFS5.d.ts +0 -2
- package/dist/components/ui/button-D9y8v_Tt.d.ts +0 -2
- package/dist/components/ui/checkbox-QkowwGnR.d.ts +0 -2
- package/dist/components/ui/input-DVpolrW-.d.ts +0 -2
- package/dist/components/ui/label-BW9JhwyW.d.ts +0 -2
- package/dist/components/ui/separator-D53tTv-J.d.ts +0 -2
- package/dist/components/ui/slider-lAthKpva.d.ts +0 -2
- package/dist/components/ui/switch-D7WzMqgv.d.ts +0 -2
- package/dist/components/ui/tabs-CnjGY6eE.d.ts +0 -2
- package/dist/components/ui/textarea-BJpu8fK5.d.ts +0 -2
- package/dist/jsx-runtime-CjFsk39Z.js +0 -274
- package/dist/lib/index-ChuxSUKt.d.ts +0 -2
- package/dist/lib/utils-45Ez8x6p.d.ts +0 -2
- package/dist/lib-B_fww26I.js +0 -1
- /package/dist/{index-CZUtOTjh.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{utils-_VBxPjie.d.ts → utils-Bgl9doaU.d.ts} +0 -0
- /package/dist/{utils-D2WOFi-N.js → utils-CeuVg6RA.js} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/popover.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Popover({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
|
|
10
9
|
"data-slot": "popover",
|
|
11
10
|
...props
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
13
|
function PopoverTrigger({ ...props }) {
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
|
|
16
15
|
"data-slot": "popover-trigger",
|
|
17
16
|
...props
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
22
21
|
"data-slot": "popover-content",
|
|
23
22
|
align,
|
|
24
23
|
sideOffset,
|
|
@@ -27,7 +26,7 @@ function PopoverContent({ className, align = "center", sideOffset = 4, ...props
|
|
|
27
26
|
}) });
|
|
28
27
|
}
|
|
29
28
|
function PopoverAnchor({ ...props }) {
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, {
|
|
31
30
|
"data-slot": "popover-anchor",
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
2
3
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
-
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/popover.d.ts
|
|
6
6
|
declare function Popover({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime108.JSX.Element;
|
|
9
9
|
declare function PopoverTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime108.JSX.Element;
|
|
12
12
|
declare function PopoverContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
15
15
|
sideOffset,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
17
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime108.JSX.Element;
|
|
18
18
|
declare function PopoverAnchor({
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
20
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime108.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { PopoverTrigger as i, PopoverAnchor as n, PopoverContent as r, Popover as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
2
3
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
-
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/radio-group.d.ts
|
|
6
6
|
declare function RadioGroup({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime42.JSX.Element;
|
|
10
10
|
declare function RadioGroupItem({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
13
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime42.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { RadioGroupItem as n, RadioGroup as t };
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { CircleIcon } from "lucide-react";
|
|
5
5
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/radio-group.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
8
|
function RadioGroup({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
|
|
11
10
|
"data-slot": "radio-group",
|
|
12
11
|
className: cn("grid gap-3", className),
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
15
|
function RadioGroupItem({ className, ...props }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
|
|
18
17
|
"data-slot": "radio-group-item",
|
|
19
18
|
className: cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
20
19
|
...props,
|
|
21
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
|
|
22
21
|
"data-slot": "radio-group-indicator",
|
|
23
22
|
className: "relative flex items-center justify-center",
|
|
24
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
26
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime112 from "react/jsx-runtime";
|
|
2
3
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
-
import * as react_jsx_runtime128 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/select.d.ts
|
|
6
6
|
declare function Select({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime112.JSX.Element;
|
|
9
9
|
declare function SelectGroup({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
11
|
+
}: React.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime112.JSX.Element;
|
|
12
12
|
declare function SelectValue({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
14
|
+
}: React.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime112.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
@@ -19,34 +19,34 @@ declare function SelectTrigger({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
21
21
|
size?: 'sm' | 'default';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime112.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
26
26
|
position,
|
|
27
27
|
align,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
29
|
+
}: React.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime112.JSX.Element;
|
|
30
30
|
declare function SelectLabel({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
33
|
+
}: React.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime112.JSX.Element;
|
|
34
34
|
declare function SelectItem({
|
|
35
35
|
className,
|
|
36
36
|
children,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
38
|
+
}: React.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime112.JSX.Element;
|
|
39
39
|
declare function SelectSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
42
|
+
}: React.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime112.JSX.Element;
|
|
43
43
|
declare function SelectScrollUpButton({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
46
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime112.JSX.Element;
|
|
47
47
|
declare function SelectScrollDownButton({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
50
|
+
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime112.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { SelectLabel as a, SelectSeparator as c, SelectItem as i, SelectTrigger as l, SelectContent as n, SelectScrollDownButton as o, SelectGroup as r, SelectScrollUpButton as s, Select as t, SelectValue as u };
|
|
@@ -1,97 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
5
5
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/select.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
8
|
function Select({ ...props }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Root, {
|
|
11
10
|
"data-slot": "select",
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function SelectGroup({ ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Group, {
|
|
17
16
|
"data-slot": "select-group",
|
|
18
17
|
...props
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
function SelectValue({ ...props }) {
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Value, {
|
|
23
22
|
"data-slot": "select-value",
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
26
|
function SelectTrigger({ className, size = "default", children, ...props }) {
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
29
28
|
"data-slot": "select-trigger",
|
|
30
29
|
"data-size": size,
|
|
31
30
|
className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
32
31
|
...props,
|
|
33
|
-
children: [children, /* @__PURE__ */
|
|
32
|
+
children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
|
|
34
33
|
asChild: true,
|
|
35
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" })
|
|
36
35
|
})]
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
38
|
function SelectContent({ className, children, position = "popper", align = "center", ...props }) {
|
|
40
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
41
40
|
"data-slot": "select-content",
|
|
42
41
|
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
43
42
|
position,
|
|
44
43
|
align,
|
|
45
44
|
...props,
|
|
46
45
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
47
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
|
|
49
48
|
className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
50
49
|
children
|
|
51
50
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
53
52
|
]
|
|
54
53
|
}) });
|
|
55
54
|
}
|
|
56
55
|
function SelectLabel({ className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
58
57
|
"data-slot": "select-label",
|
|
59
58
|
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
60
59
|
...props
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
function SelectItem({ className, children, ...props }) {
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
65
64
|
"data-slot": "select-item",
|
|
66
65
|
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
67
66
|
...props,
|
|
68
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
69
68
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
}), /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
70
|
+
}), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
73
|
function SelectSeparator({ className, ...props }) {
|
|
75
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
|
|
76
75
|
"data-slot": "select-separator",
|
|
77
76
|
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
78
77
|
...props
|
|
79
78
|
});
|
|
80
79
|
}
|
|
81
80
|
function SelectScrollUpButton({ className, ...props }) {
|
|
82
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
|
|
83
82
|
"data-slot": "select-scroll-up-button",
|
|
84
83
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
85
84
|
...props,
|
|
86
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
87
86
|
});
|
|
88
87
|
}
|
|
89
88
|
function SelectScrollDownButton({ className, ...props }) {
|
|
90
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
|
|
91
90
|
"data-slot": "select-scroll-down-button",
|
|
92
91
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
93
92
|
...props,
|
|
94
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
95
94
|
});
|
|
96
95
|
}
|
|
97
96
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/separator.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
10
9
|
"data-slot": "separator",
|
|
11
10
|
decorative,
|
|
12
11
|
orientation,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
2
3
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
-
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/separator.d.ts
|
|
6
6
|
declare function Separator({
|
|
@@ -8,6 +8,6 @@ declare function Separator({
|
|
|
8
8
|
orientation,
|
|
9
9
|
decorative,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
11
|
+
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime73.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Separator as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
2
3
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/sheet.d.ts
|
|
6
6
|
declare function Sheet({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof SheetPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime74.JSX.Element;
|
|
9
9
|
declare function SheetTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>):
|
|
11
|
+
}: React.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime74.JSX.Element;
|
|
12
12
|
declare function SheetClose({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>):
|
|
14
|
+
}: React.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime74.JSX.Element;
|
|
15
15
|
declare function SheetContent({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
@@ -19,22 +19,22 @@ declare function SheetContent({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
21
21
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime74.JSX.Element;
|
|
23
23
|
declare function SheetHeader({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<'div'>):
|
|
26
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime74.JSX.Element;
|
|
27
27
|
declare function SheetFooter({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<'div'>):
|
|
30
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime74.JSX.Element;
|
|
31
31
|
declare function SheetTitle({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>):
|
|
34
|
+
}: React.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime74.JSX.Element;
|
|
35
35
|
declare function SheetDescription({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>):
|
|
38
|
+
}: React.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime74.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
|
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { XIcon } from "lucide-react";
|
|
5
5
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/sheet.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
8
|
function Sheet({ ...props }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Root, {
|
|
11
10
|
"data-slot": "sheet",
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function SheetTrigger({ ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, {
|
|
17
16
|
"data-slot": "sheet-trigger",
|
|
18
17
|
...props
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
function SheetClose({ ...props }) {
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Close, {
|
|
23
22
|
"data-slot": "sheet-close",
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
26
|
function SheetPortal({ ...props }) {
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, {
|
|
29
28
|
"data-slot": "sheet-portal",
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
32
|
function SheetOverlay({ className, ...props }) {
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Overlay, {
|
|
35
34
|
"data-slot": "sheet-overlay",
|
|
36
35
|
className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
37
36
|
...props
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
39
|
function SheetContent({ className, children, side = "right", ...props }) {
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(SheetPrimitive.Content, {
|
|
42
41
|
"data-slot": "sheet-content",
|
|
43
42
|
className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className),
|
|
44
43
|
...props,
|
|
45
|
-
children: [children, /* @__PURE__ */
|
|
44
|
+
children: [children, /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
|
|
46
45
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ jsx(XIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
|
|
48
47
|
className: "sr-only",
|
|
49
48
|
children: "Close"
|
|
50
49
|
})]
|
|
@@ -52,28 +51,28 @@ function SheetContent({ className, children, side = "right", ...props }) {
|
|
|
52
51
|
})] });
|
|
53
52
|
}
|
|
54
53
|
function SheetHeader({ className, ...props }) {
|
|
55
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ jsx("div", {
|
|
56
55
|
"data-slot": "sheet-header",
|
|
57
56
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
58
57
|
...props
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
function SheetFooter({ className, ...props }) {
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx("div", {
|
|
63
62
|
"data-slot": "sheet-footer",
|
|
64
63
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
65
64
|
...props
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
function SheetTitle({ className, ...props }) {
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Title, {
|
|
70
69
|
"data-slot": "sheet-title",
|
|
71
70
|
className: cn("text-foreground font-semibold", className),
|
|
72
71
|
...props
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
74
|
function SheetDescription({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Description, {
|
|
77
76
|
"data-slot": "sheet-description",
|
|
78
77
|
className: cn("text-muted-foreground text-sm", className),
|
|
79
78
|
...props
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import * as React from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/slider.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
9
8
|
const _values = React.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [
|
|
10
9
|
value,
|
|
@@ -12,7 +11,7 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
12
11
|
min,
|
|
13
12
|
max
|
|
14
13
|
]);
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsxs(SliderPrimitive.Root, {
|
|
16
15
|
"data-slot": "slider",
|
|
17
16
|
defaultValue,
|
|
18
17
|
value,
|
|
@@ -20,14 +19,14 @@ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }
|
|
|
20
19
|
max,
|
|
21
20
|
className: cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", className),
|
|
22
21
|
...props,
|
|
23
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ jsx(SliderPrimitive.Track, {
|
|
24
23
|
"data-slot": "slider-track",
|
|
25
24
|
className: cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
26
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, {
|
|
27
26
|
"data-slot": "slider-range",
|
|
28
27
|
className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
29
28
|
})
|
|
30
|
-
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */
|
|
29
|
+
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, {
|
|
31
30
|
"data-slot": "slider-thumb",
|
|
32
31
|
className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
33
32
|
}, index))]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
2
3
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/slider.d.ts
|
|
6
6
|
declare function Slider({
|
|
@@ -10,6 +10,6 @@ declare function Slider({
|
|
|
10
10
|
min,
|
|
11
11
|
max,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof SliderPrimitive.Root>):
|
|
13
|
+
}: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime50.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Slider as t };
|