@brightlocal/ui-components 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/accordion.cjs +1 -1
- package/dist/accordion.d.ts +74 -4
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +100 -105
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +30 -10
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.js +129 -132
- package/dist/alert.d.ts +22 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +11 -1
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.js +16 -20
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +43 -3
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.js +18 -16
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +24 -9
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +34 -32
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +177 -170
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +154 -154
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +63 -8
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +97 -93
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +17 -45
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +49 -50
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +12 -0
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +10 -8
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +58 -18
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +60 -51
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +99 -9
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.js +142 -128
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +18 -2
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +46 -33
- package/dist/chart.cjs +4 -4
- package/dist/chart.d.ts +70 -7
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +71 -66
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +9 -5
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +61 -82
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +65 -8
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.js +41 -55
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +29 -11
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +193 -159
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +115 -9
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +176 -152
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +188 -20
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +119 -121
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +75 -9
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +220 -81
- package/dist/description.cjs +1 -0
- package/dist/description.d.ts +37 -0
- package/dist/description.d.ts.map +1 -0
- package/dist/description.js +25 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +73 -9
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +103 -112
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +92 -0
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +67 -52
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +95 -11
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +146 -106
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +23 -6
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +54 -53
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +27 -17
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +86 -79
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +36 -6
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.js +44 -42
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +383 -387
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +21 -2
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +51 -41
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +24 -25
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +38 -24
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +68 -136
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +20 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +31 -18
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +3 -0
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +12 -10
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +40 -6
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +97 -76
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +59 -4
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +42 -34
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +9 -2
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +71 -59
- package/dist/radio-group.d.ts +40 -0
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/rating.d.ts +4 -0
- package/dist/rating.d.ts.map +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +65 -4
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +53 -36
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +46 -5
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +42 -38
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +30 -0
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +64 -54
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +49 -2
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +48 -36
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +80 -9
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +117 -113
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +24 -2
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +15 -9
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +18 -4
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.js +72 -66
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +4 -2
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +29 -28
- package/dist/split-layout.d.ts +4 -1
- package/dist/split-layout.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/blocks/data-table.tsx +42 -32
- package/src/blocks/sidebar.tsx +4 -12
- package/src/components/accordion.tsx +163 -77
- package/src/components/alert-dialog.tsx +156 -111
- package/src/components/alert.tsx +26 -13
- package/src/components/aspect-ratio.tsx +25 -16
- package/src/components/avatar.tsx +56 -8
- package/src/components/badge.tsx +65 -42
- package/src/components/breadcrumb.tsx +158 -82
- package/src/components/button.tsx +41 -62
- package/src/components/calendar.tsx +16 -2
- package/src/components/card.tsx +92 -40
- package/src/components/carousel.tsx +240 -115
- package/src/components/centred-layout.tsx +67 -35
- package/src/components/chart.tsx +118 -47
- package/src/components/checkbox.tsx +42 -78
- package/src/components/collapsible.tsx +95 -26
- package/src/components/combobox.tsx +242 -144
- package/src/components/command.tsx +295 -121
- package/src/components/context-menu.tsx +278 -81
- package/src/components/date-picker.tsx +281 -30
- package/src/components/description.tsx +60 -0
- package/src/components/dialog.tsx +162 -86
- package/src/components/drawer.tsx +76 -2
- package/src/components/dropdown-menu.tsx +143 -37
- package/src/components/field.tsx +36 -11
- package/src/components/global-layout.tsx +116 -77
- package/src/components/hover-card.tsx +54 -14
- package/src/components/input-group.tsx +56 -18
- package/src/components/input-password.tsx +3 -4
- package/src/components/input.tsx +93 -186
- package/src/components/label.tsx +56 -15
- package/src/components/logo.tsx +3 -0
- package/src/components/menubar.tsx +58 -4
- package/src/components/popover.tsx +103 -20
- package/src/components/progress.tsx +82 -60
- package/src/components/radio-group.tsx +40 -0
- package/src/components/rating.tsx +4 -0
- package/src/components/resizable.tsx +119 -31
- package/src/components/scroll-area.tsx +123 -56
- package/src/components/select.tsx +21 -1
- package/src/components/separator.tsx +97 -20
- package/src/components/sheet.tsx +180 -79
- package/src/components/skeleton.tsx +40 -10
- package/src/components/slider.tsx +83 -57
- package/src/components/sonner.tsx +10 -7
- package/src/components/split-layout.tsx +4 -1
- package/src/index.ts +1 -1
- package/dist/input-base.cjs +0 -1
- package/dist/input-base.d.ts +0 -28
- package/dist/input-base.d.ts.map +0 -1
- package/dist/input-base.js +0 -56
- package/src/components/input-base.tsx +0 -86
package/dist/sheet.d.ts
CHANGED
|
@@ -17,22 +17,93 @@ export declare enum SheetSide {
|
|
|
17
17
|
declare const sheetContentVariants: (props?: ({
|
|
18
18
|
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
19
19
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Sheet root component that provides context for the sheet dialog.
|
|
22
|
+
* Wraps the Radix UI Dialog primitive with modal behavior enabled by default.
|
|
23
|
+
*/
|
|
20
24
|
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare
|
|
22
|
-
|
|
25
|
+
declare namespace Sheet {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Props for SheetTrigger component
|
|
30
|
+
*/
|
|
31
|
+
interface SheetTriggerProps extends React.ComponentProps<typeof SheetPrimitive.Trigger> {
|
|
32
|
+
/**
|
|
33
|
+
* Data hook for automated testing
|
|
34
|
+
*/
|
|
35
|
+
dataHook?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Sheet trigger button that opens the sheet when clicked.
|
|
39
|
+
* Use with asChild prop to merge with your own button component.
|
|
40
|
+
*/
|
|
41
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<Omit<SheetTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Sheet close button that closes the sheet when clicked.
|
|
44
|
+
* Use with asChild prop to merge with your own button component.
|
|
45
|
+
*/
|
|
46
|
+
declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
/**
|
|
48
|
+
* Sheet portal that renders content in a React portal.
|
|
49
|
+
* Used internally by SheetContent.
|
|
50
|
+
*/
|
|
23
51
|
declare function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
declare
|
|
52
|
+
declare namespace SheetPortal {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Sheet overlay that appears behind the sheet content.
|
|
57
|
+
* Provides a semi-transparent backdrop with fade animation.
|
|
58
|
+
*/
|
|
59
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Props for the SheetContent component
|
|
62
|
+
*/
|
|
25
63
|
interface SheetContentProps extends React.ComponentProps<typeof SheetPrimitive.Content>, VariantProps<typeof sheetContentVariants> {
|
|
26
64
|
/**
|
|
27
65
|
* Side from which the sheet slides in
|
|
66
|
+
* @default "right"
|
|
28
67
|
*/
|
|
29
68
|
side?: SheetSide;
|
|
69
|
+
/**
|
|
70
|
+
* Data hook for automated testing
|
|
71
|
+
*/
|
|
72
|
+
dataHook?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Tracking element identifier for analytics
|
|
75
|
+
*/
|
|
76
|
+
trackingEl?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Tracking label for analytics context
|
|
79
|
+
*/
|
|
80
|
+
trackingLabel?: string;
|
|
30
81
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
declare
|
|
82
|
+
/**
|
|
83
|
+
* Sheet content container that slides in from the specified side.
|
|
84
|
+
* Includes an overlay backdrop and close button.
|
|
85
|
+
*/
|
|
86
|
+
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
+
/**
|
|
88
|
+
* Sheet header section for title and description.
|
|
89
|
+
* Centers text on mobile, left-aligns on larger screens.
|
|
90
|
+
*/
|
|
91
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
/**
|
|
93
|
+
* Sheet footer section for actions and buttons.
|
|
94
|
+
* Stacks buttons on mobile, aligns to end on larger screens.
|
|
95
|
+
*/
|
|
96
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* Sheet title component for the main heading.
|
|
99
|
+
* Should be used within SheetHeader.
|
|
100
|
+
*/
|
|
101
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
102
|
+
/**
|
|
103
|
+
* Sheet description component for additional context.
|
|
104
|
+
* Should be used within SheetHeader below SheetTitle.
|
|
105
|
+
*/
|
|
106
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
36
107
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
|
|
37
|
-
export type { SheetContentProps };
|
|
108
|
+
export type { SheetContentProps, SheetTriggerProps };
|
|
38
109
|
//# sourceMappingURL=sheet.d.ts.map
|
package/dist/sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE;;GAEG;AACH,oBAAY,SAAS;IACnB,mCAAmC;IACnC,GAAG,QAAQ;IACX,+CAA+C;IAC/C,KAAK,UAAU;IACf,sCAAsC;IACtC,MAAM,WAAW;IACjB,oCAAoC;IACpC,IAAI,SAAS;CACd;AAED,QAAA,MAAM,oBAAoB;;8EA8DzB,CAAC;AAEF;;;GAGG;AACH,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;kBAFQ,KAAK;;;AAKd;;GAEG;AACH,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CACtD,OAAO,cAAc,CAAC,OAAO,CAC9B;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,0GAUhB,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,UAAU,iKAKd,CAAC;AAGH;;;GAGG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,2CAEpD;kBAJQ,WAAW;;;AAOpB;;;GAGG;AACH,QAAA,MAAM,YAAY,6JAahB,CAAC;AAGH;;GAEG;AACH,UAAU,iBACR,SACE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnD,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC3C;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,uGAmCjB,CAAC;AAGF;;;GAGG;AACH,QAAA,MAAM,WAAW,mKAUf,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,WAAW,mKAaf,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,UAAU,mKAUd,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,gBAAgB,6KAUpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,GACb,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/sheet.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import * as s from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as g } from "class-variance-authority";
|
|
5
|
+
import { XIcon as u } from "lucide-react";
|
|
6
|
+
import { cn as i } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
+
var x = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(x || {});
|
|
8
|
+
const y = g(
|
|
8
9
|
[
|
|
9
10
|
"bg-background",
|
|
10
11
|
"data-[state=open]:animate-in",
|
|
@@ -68,123 +69,126 @@ const f = l(
|
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
71
|
function b({ ...t }) {
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ o(s.Root, { "data-slot": "sheet", modal: !0, ...t });
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
b.displayName = "Sheet";
|
|
75
|
+
const N = r.forwardRef(({ dataHook: t, ...e }, a) => /* @__PURE__ */ o(
|
|
76
|
+
s.Trigger,
|
|
77
|
+
{
|
|
78
|
+
ref: a,
|
|
79
|
+
"data-hook": t,
|
|
80
|
+
"data-slot": "sheet-trigger",
|
|
81
|
+
...e
|
|
82
|
+
}
|
|
83
|
+
));
|
|
84
|
+
N.displayName = "SheetTrigger";
|
|
85
|
+
const v = r.forwardRef(({ ...t }, e) => /* @__PURE__ */ o(s.Close, { ref: e, "data-slot": "sheet-close", ...t }));
|
|
86
|
+
v.displayName = "SheetClose";
|
|
87
|
+
function n({
|
|
84
88
|
...t
|
|
85
89
|
}) {
|
|
86
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ o(s.Portal, { "data-slot": "sheet-portal", ...t });
|
|
87
91
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
92
|
+
n.displayName = "SheetPortal";
|
|
93
|
+
const l = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
94
|
+
s.Overlay,
|
|
95
|
+
{
|
|
96
|
+
ref: a,
|
|
97
|
+
className: i(
|
|
98
|
+
"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",
|
|
99
|
+
t
|
|
100
|
+
),
|
|
101
|
+
"data-slot": "sheet-overlay",
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
));
|
|
105
|
+
l.displayName = "SheetOverlay";
|
|
106
|
+
const w = r.forwardRef(
|
|
107
|
+
({
|
|
108
|
+
className: t,
|
|
109
|
+
children: e,
|
|
110
|
+
side: a,
|
|
111
|
+
dataHook: f,
|
|
112
|
+
trackingEl: c,
|
|
113
|
+
trackingLabel: m,
|
|
114
|
+
...h
|
|
115
|
+
}, p) => /* @__PURE__ */ d(n, { children: [
|
|
116
|
+
/* @__PURE__ */ o(l, {}),
|
|
117
|
+
/* @__PURE__ */ d(
|
|
118
|
+
s.Content,
|
|
114
119
|
{
|
|
115
|
-
|
|
120
|
+
ref: p,
|
|
121
|
+
className: i(y({ side: a }), t),
|
|
122
|
+
"data-hook": f,
|
|
116
123
|
"data-slot": "sheet-content",
|
|
117
|
-
|
|
124
|
+
"data-tracking-el": c,
|
|
125
|
+
"data-tracking-label": m,
|
|
126
|
+
...h,
|
|
118
127
|
children: [
|
|
119
|
-
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
128
|
+
e,
|
|
129
|
+
/* @__PURE__ */ d(s.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
130
|
+
/* @__PURE__ */ o(u, {}),
|
|
131
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
123
132
|
] })
|
|
124
133
|
]
|
|
125
134
|
}
|
|
126
135
|
)
|
|
127
|
-
] })
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"data-slot": "sheet-description",
|
|
174
|
-
...o
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
}
|
|
136
|
+
] })
|
|
137
|
+
);
|
|
138
|
+
w.displayName = "SheetContent";
|
|
139
|
+
const S = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
ref: a,
|
|
143
|
+
className: i("flex flex-col gap-2 text-center sm:text-left", t),
|
|
144
|
+
"data-slot": "sheet-header",
|
|
145
|
+
...e
|
|
146
|
+
}
|
|
147
|
+
));
|
|
148
|
+
S.displayName = "SheetHeader";
|
|
149
|
+
const R = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
ref: a,
|
|
153
|
+
className: i(
|
|
154
|
+
"mt-auto flex flex-col gap-2 sm:flex-row sm:justify-end",
|
|
155
|
+
t
|
|
156
|
+
),
|
|
157
|
+
"data-slot": "sheet-footer",
|
|
158
|
+
...e
|
|
159
|
+
}
|
|
160
|
+
));
|
|
161
|
+
R.displayName = "SheetFooter";
|
|
162
|
+
const T = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
163
|
+
s.Title,
|
|
164
|
+
{
|
|
165
|
+
ref: a,
|
|
166
|
+
className: i("text-foreground text-lg font-semibold", t),
|
|
167
|
+
"data-slot": "sheet-title",
|
|
168
|
+
...e
|
|
169
|
+
}
|
|
170
|
+
));
|
|
171
|
+
T.displayName = "SheetTitle";
|
|
172
|
+
const C = r.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
173
|
+
s.Description,
|
|
174
|
+
{
|
|
175
|
+
ref: a,
|
|
176
|
+
className: i("text-muted-foreground text-sm", t),
|
|
177
|
+
"data-slot": "sheet-description",
|
|
178
|
+
...e
|
|
179
|
+
}
|
|
180
|
+
));
|
|
181
|
+
C.displayName = "SheetDescription";
|
|
178
182
|
export {
|
|
179
183
|
b as Sheet,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
v as SheetClose,
|
|
185
|
+
w as SheetContent,
|
|
186
|
+
C as SheetDescription,
|
|
187
|
+
R as SheetFooter,
|
|
188
|
+
S as SheetHeader,
|
|
189
|
+
l as SheetOverlay,
|
|
190
|
+
n as SheetPortal,
|
|
191
|
+
x as SheetSide,
|
|
192
|
+
T as SheetTitle,
|
|
193
|
+
N as SheetTrigger
|
|
190
194
|
};
|
package/dist/skeleton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),s=require("react"),i=require("@brightlocal/ui-components/lib/utils");function u(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const d=u(s),r=d.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:n,...o},c)=>l.jsx("div",{ref:c,className:i.cn("bg-accent animate-pulse rounded-md",e),"data-hook":a,"data-slot":"skeleton","data-tracking-el":t,"data-tracking-label":n,...o}));r.displayName="Skeleton";exports.Skeleton=r;
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Skeleton component
|
|
4
|
+
*/
|
|
5
|
+
interface SkeletonProps extends React.ComponentProps<"div"> {
|
|
6
|
+
/**
|
|
7
|
+
* Data hook for automated testing (optional for Skeleton as it's purely presentational)
|
|
8
|
+
*/
|
|
9
|
+
dataHook?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Tracking element identifier for analytics
|
|
12
|
+
*/
|
|
13
|
+
trackingEl?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Tracking label for analytics context
|
|
16
|
+
*/
|
|
17
|
+
trackingLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Skeleton component for loading placeholder states.
|
|
21
|
+
* Displays a pulsing animation to indicate content is loading.
|
|
22
|
+
* Use to represent text, images, avatars, or any other content while data is being fetched.
|
|
23
|
+
*/
|
|
24
|
+
declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
25
|
export { Skeleton };
|
|
4
26
|
export type { SkeletonProps };
|
|
5
27
|
//# sourceMappingURL=skeleton.d.ts.map
|
package/dist/skeleton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;GAEG;AACH,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,QAAA,MAAM,QAAQ,mGAcb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/skeleton.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { cn as m } from "@brightlocal/ui-components/lib/utils";
|
|
4
|
+
const s = l.forwardRef(
|
|
5
|
+
({ className: a, dataHook: t, trackingEl: e, trackingLabel: o, ...r }, n) => /* @__PURE__ */ d(
|
|
5
6
|
"div",
|
|
6
7
|
{
|
|
7
|
-
|
|
8
|
+
ref: n,
|
|
9
|
+
className: m("bg-accent animate-pulse rounded-md", a),
|
|
10
|
+
"data-hook": t,
|
|
8
11
|
"data-slot": "skeleton",
|
|
9
|
-
|
|
12
|
+
"data-tracking-el": e,
|
|
13
|
+
"data-tracking-label": o,
|
|
14
|
+
...r
|
|
10
15
|
}
|
|
11
|
-
)
|
|
12
|
-
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
s.displayName = "Skeleton";
|
|
13
19
|
export {
|
|
14
|
-
|
|
20
|
+
s as Skeleton
|
|
15
21
|
};
|
package/dist/slider.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),p=require("react"),w=require("@radix-ui/react-slider"),s=require("@brightlocal/ui-components/lib/utils");function u(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const d=u(p),n=u(w),b=d.forwardRef(({className:t,dataHook:a,defaultValue:e,max:r=100,min:l=0,thumbLabels:f,trackingEl:g,trackingLabel:h,value:i,...m},v)=>{const y=d.useMemo(()=>Array.isArray(i)?i:Array.isArray(e)?e:[l,r],[i,e,l,r]);return o.jsxs(n.Root,{ref:v,className:s.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",t),"data-hook":a,"data-slot":"slider","data-tracking-el":g,"data-tracking-label":h,defaultValue:e,max:r,min:l,value:i,...m,children:[o.jsx(n.Track,{className:s.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"),"data-slot":"slider-track",children:o.jsx(n.Range,{className:s.cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"),"data-slot":"slider-range"})}),Array.from({length:y.length},(j,c)=>o.jsx(n.Thumb,{"aria-label":f?.[c]??"Slider",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50","data-slot":"slider-thumb"},c))]})});b.displayName="Slider";exports.Slider=b;
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Slider component
|
|
5
|
+
*/
|
|
3
6
|
export interface SliderProps extends React.ComponentProps<typeof SliderPrimitive.Root> {
|
|
4
7
|
/**
|
|
5
|
-
*
|
|
8
|
+
* Data hook for automated testing (required)
|
|
6
9
|
*/
|
|
7
10
|
dataHook: string;
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
12
|
+
* Accessible labels for the slider thumb(s).
|
|
13
|
+
* For range sliders with multiple thumbs, provide an array of labels.
|
|
14
|
+
* @default ["Slider"]
|
|
15
|
+
*/
|
|
16
|
+
thumbLabels?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Tracking element identifier for analytics
|
|
10
19
|
*/
|
|
11
20
|
trackingEl?: string;
|
|
12
21
|
/**
|
|
13
|
-
*
|
|
22
|
+
* Tracking label for analytics context
|
|
14
23
|
*/
|
|
15
24
|
trackingLabel?: string;
|
|
16
25
|
}
|
|
17
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Slider component for selecting numeric values within a range.
|
|
28
|
+
* Supports single value selection and range selection (two thumbs).
|
|
29
|
+
* Built on Radix UI Slider primitive with full keyboard accessibility.
|
|
30
|
+
*/
|
|
31
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
18
32
|
export { Slider };
|
|
19
33
|
//# sourceMappingURL=slider.d.ts.map
|
package/dist/slider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/components/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CACvD,OAAO,eAAe,CAAC,IAAI,CAC5B;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/components/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CACvD,OAAO,eAAe,CAAC,IAAI,CAC5B;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,QAAA,MAAM,MAAM,kGAsEX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/slider.js
CHANGED
|
@@ -1,69 +1,75 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"data-tracking-el": s,
|
|
30
|
-
"data-tracking-label": c,
|
|
31
|
-
defaultValue: a,
|
|
32
|
-
max: o,
|
|
33
|
-
min: i,
|
|
34
|
-
value: t,
|
|
35
|
-
...h,
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
-
r.Track,
|
|
39
|
-
{
|
|
40
|
-
className: n(
|
|
41
|
-
"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"
|
|
42
|
-
),
|
|
43
|
-
"data-slot": "slider-track",
|
|
44
|
-
children: /* @__PURE__ */ e(
|
|
45
|
-
r.Range,
|
|
46
|
-
{
|
|
47
|
-
className: n(
|
|
48
|
-
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
49
|
-
),
|
|
50
|
-
"data-slot": "slider-range"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
1
|
+
import { jsxs as v, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import * as t from "@radix-ui/react-slider";
|
|
4
|
+
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
const p = d.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
className: s,
|
|
8
|
+
dataHook: c,
|
|
9
|
+
defaultValue: a,
|
|
10
|
+
max: i = 100,
|
|
11
|
+
min: o = 0,
|
|
12
|
+
thumbLabels: h,
|
|
13
|
+
trackingEl: m,
|
|
14
|
+
trackingLabel: b,
|
|
15
|
+
value: r,
|
|
16
|
+
...f
|
|
17
|
+
}, g) => {
|
|
18
|
+
const u = d.useMemo(
|
|
19
|
+
() => Array.isArray(r) ? r : Array.isArray(a) ? a : [o, i],
|
|
20
|
+
[r, a, o, i]
|
|
21
|
+
);
|
|
22
|
+
return /* @__PURE__ */ v(
|
|
23
|
+
t.Root,
|
|
24
|
+
{
|
|
25
|
+
ref: g,
|
|
26
|
+
className: l(
|
|
27
|
+
"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",
|
|
28
|
+
s
|
|
54
29
|
),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
30
|
+
"data-hook": c,
|
|
31
|
+
"data-slot": "slider",
|
|
32
|
+
"data-tracking-el": m,
|
|
33
|
+
"data-tracking-label": b,
|
|
34
|
+
defaultValue: a,
|
|
35
|
+
max: i,
|
|
36
|
+
min: o,
|
|
37
|
+
value: r,
|
|
38
|
+
...f,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
t.Track,
|
|
42
|
+
{
|
|
43
|
+
className: l(
|
|
44
|
+
"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"
|
|
45
|
+
),
|
|
46
|
+
"data-slot": "slider-track",
|
|
47
|
+
children: /* @__PURE__ */ e(
|
|
48
|
+
t.Range,
|
|
49
|
+
{
|
|
50
|
+
className: l(
|
|
51
|
+
"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
52
|
+
),
|
|
53
|
+
"data-slot": "slider-range"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
Array.from({ length: u.length }, (w, n) => /* @__PURE__ */ e(
|
|
59
|
+
t.Thumb,
|
|
60
|
+
{
|
|
61
|
+
"aria-label": h?.[n] ?? "Slider",
|
|
62
|
+
className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",
|
|
63
|
+
"data-slot": "slider-thumb"
|
|
64
|
+
},
|
|
65
|
+
n
|
|
66
|
+
))
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
p.displayName = "Slider";
|
|
67
73
|
export {
|
|
68
|
-
|
|
74
|
+
p as Slider
|
|
69
75
|
};
|