@px-ui/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{avatar-DDdL9xDH.js → avatar-B1kOPk5C.js} +6 -5
- package/dist/avatar-B1kOPk5C.js.map +1 -0
- package/dist/{avatar-DmWdHRhV.d.ts → avatar-CZr6NzW8.d.ts} +9 -6
- package/dist/avatar-CZr6NzW8.d.ts.map +1 -0
- package/dist/{button-CyWFGUr9.d.ts → button-BWB2PWYv.d.ts} +6 -6
- package/dist/{button-CyWFGUr9.d.ts.map → button-BWB2PWYv.d.ts.map} +1 -1
- package/dist/{combobox-CnpyzZ7B.js → combobox-C-dF33ce.js} +6 -3
- package/dist/{combobox-CnpyzZ7B.js.map → combobox-C-dF33ce.js.map} +1 -1
- package/dist/{combobox-26YfHkRT.d.ts → combobox-z8wdqIlf.d.ts} +18 -18
- package/dist/{combobox-26YfHkRT.d.ts.map → combobox-z8wdqIlf.d.ts.map} +1 -1
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/alert-dialog.d.ts +14 -14
- package/dist/components/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert.d.ts +7 -7
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.d.ts.map +1 -1
- package/dist/components/avatar-group.d.ts +4 -4
- package/dist/components/avatar-group.d.ts.map +1 -1
- package/dist/components/avatar-group.js +1 -1
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/button-group.d.ts +6 -6
- package/dist/components/button.d.ts +1 -1
- package/dist/components/calendar.d.ts +4 -4
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.d.ts.map +1 -1
- package/dist/components/chart.d.ts +5 -5
- package/dist/components/chart.d.ts.map +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.d.ts +11 -11
- package/dist/components/context-menu.d.ts +16 -16
- package/dist/components/currency-select-field.d.ts +3 -3
- package/dist/components/currency-select-field.js +1 -1
- package/dist/components/dialog.d.ts +11 -11
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/drawer.d.ts +11 -11
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.d.ts.map +1 -1
- package/dist/components/field.d.ts +15 -15
- package/dist/components/file-upload-field.d.ts +2 -2
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/input-group.d.ts +12 -12
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input.d.ts +1 -1
- package/dist/components/item.d.ts +15 -15
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/label.d.ts +1 -1
- package/dist/components/menubar.d.ts +18 -18
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/phone-input.d.ts +2 -2
- package/dist/components/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input.js +2 -2
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/popover.d.ts +7 -7
- package/dist/components/progress.d.ts +6 -6
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/select.d.ts +10 -10
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sidebar.d.ts +26 -26
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/table.d.ts +9 -9
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/{dropdown-menu-k8EpuZUs.d.ts → dropdown-menu-BNmyNq9W.d.ts} +17 -17
- package/dist/{dropdown-menu-k8EpuZUs.d.ts.map → dropdown-menu-BNmyNq9W.d.ts.map} +1 -1
- package/dist/{file-upload-SjxuvdHQ.d.ts → file-upload-Dzih3NuX.d.ts} +11 -11
- package/dist/{file-upload-SjxuvdHQ.d.ts.map → file-upload-Dzih3NuX.d.ts.map} +1 -1
- package/dist/{input-stLmd1eW.d.ts → input-CKTvQqOU.d.ts} +3 -3
- package/dist/input-CKTvQqOU.d.ts.map +1 -0
- package/dist/label-DMeHPQml.d.ts +11 -0
- package/dist/label-DMeHPQml.d.ts.map +1 -0
- package/dist/providers/px-ui-provider.d.ts +3 -3
- package/dist/providers/px-ui-provider.js +4 -1
- package/dist/providers/px-ui-provider.js.map +1 -1
- package/dist/{separator-BPiu2k9V.d.ts → separator-CuuVnw-z.d.ts} +3 -3
- package/dist/{separator-BPiu2k9V.d.ts.map → separator-CuuVnw-z.d.ts.map} +1 -1
- package/dist/{toggle-DB_9fDC8.d.ts → toggle-CsHqUVUY.d.ts} +5 -5
- package/dist/{toggle-DB_9fDC8.d.ts.map → toggle-CsHqUVUY.d.ts.map} +1 -1
- package/dist/{tooltip--8PhLdia.d.ts → tooltip-ChzCP6Bv.d.ts} +6 -6
- package/dist/{tooltip--8PhLdia.d.ts.map → tooltip-ChzCP6Bv.d.ts.map} +1 -1
- package/package.json +3 -2
- package/dist/avatar-DDdL9xDH.js.map +0 -1
- package/dist/avatar-DmWdHRhV.d.ts.map +0 -1
- package/dist/input-stLmd1eW.d.ts.map +0 -1
- package/dist/label-CokIQ6Ry.d.ts +0 -11
- package/dist/label-CokIQ6Ry.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Loader2Icon } from "lucide-react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime283 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/spinner.d.ts
|
|
5
5
|
declare function Spinner({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Loader2Icon>):
|
|
8
|
+
}: React.ComponentProps<typeof Loader2Icon>): react_jsx_runtime283.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Spinner };
|
|
11
11
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime284 from "react/jsx-runtime";
|
|
2
2
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/switch.d.ts
|
|
@@ -8,7 +8,7 @@ declare function Switch({
|
|
|
8
8
|
...props
|
|
9
9
|
}: Switch$1.Root.Props & {
|
|
10
10
|
size?: "sm" | "default";
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime284.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Switch };
|
|
14
14
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime287 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<"table">):
|
|
8
|
+
}: React$1.ComponentProps<"table">): react_jsx_runtime287.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<"thead">):
|
|
12
|
+
}: React$1.ComponentProps<"thead">): react_jsx_runtime287.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<"tbody">):
|
|
16
|
+
}: React$1.ComponentProps<"tbody">): react_jsx_runtime287.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.ComponentProps<"tfoot">):
|
|
20
|
+
}: React$1.ComponentProps<"tfoot">): react_jsx_runtime287.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<"tr">):
|
|
24
|
+
}: React$1.ComponentProps<"tr">): react_jsx_runtime287.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentProps<"th">):
|
|
28
|
+
}: React$1.ComponentProps<"th">): react_jsx_runtime287.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentProps<"td">):
|
|
32
|
+
}: React$1.ComponentProps<"td">): react_jsx_runtime287.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React$1.ComponentProps<"caption">):
|
|
36
|
+
}: React$1.ComponentProps<"caption">): react_jsx_runtime287.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
39
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime279 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
4
4
|
import * as class_variance_authority_types13 from "class-variance-authority/types";
|
|
@@ -8,7 +8,7 @@ declare function Tabs({
|
|
|
8
8
|
className,
|
|
9
9
|
orientation,
|
|
10
10
|
...props
|
|
11
|
-
}: Tabs$1.Root.Props):
|
|
11
|
+
}: Tabs$1.Root.Props): react_jsx_runtime279.JSX.Element;
|
|
12
12
|
declare const tabsListVariants: (props?: ({
|
|
13
13
|
variant?: "line" | "default" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types13.ClassProp) | undefined) => string;
|
|
@@ -17,15 +17,15 @@ declare function TabsList({
|
|
|
17
17
|
variant,
|
|
18
18
|
children,
|
|
19
19
|
...props
|
|
20
|
-
}: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>):
|
|
20
|
+
}: Tabs$1.List.Props & VariantProps<typeof tabsListVariants>): react_jsx_runtime279.JSX.Element;
|
|
21
21
|
declare function TabsTrigger({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: Tabs$1.Tab.Props):
|
|
24
|
+
}: Tabs$1.Tab.Props): react_jsx_runtime279.JSX.Element;
|
|
25
25
|
declare function TabsContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: Tabs$1.Panel.Props):
|
|
28
|
+
}: Tabs$1.Panel.Props): react_jsx_runtime279.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants };
|
|
31
31
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime295 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<"textarea">):
|
|
8
|
+
}: React$1.ComponentProps<"textarea">): react_jsx_runtime295.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea };
|
|
11
11
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as toggleVariants } from "../toggle-
|
|
2
|
-
import * as
|
|
1
|
+
import { n as toggleVariants } from "../toggle-CsHqUVUY.js";
|
|
2
|
+
import * as react_jsx_runtime298 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Toggle } from "@base-ui/react/toggle";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
@@ -16,14 +16,14 @@ declare function ToggleGroup({
|
|
|
16
16
|
}: ToggleGroup$1.Props & VariantProps<typeof toggleVariants> & {
|
|
17
17
|
spacing?: number;
|
|
18
18
|
orientation?: "horizontal" | "vertical";
|
|
19
|
-
}):
|
|
19
|
+
}): react_jsx_runtime298.JSX.Element;
|
|
20
20
|
declare function ToggleGroupItem({
|
|
21
21
|
className,
|
|
22
22
|
children,
|
|
23
23
|
variant,
|
|
24
24
|
size,
|
|
25
25
|
...props
|
|
26
|
-
}: Toggle.Props & VariantProps<typeof toggleVariants>):
|
|
26
|
+
}: Toggle.Props & VariantProps<typeof toggleVariants>): react_jsx_runtime298.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ToggleGroup, ToggleGroupItem };
|
|
29
29
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toggleVariants, t as Toggle } from "../toggle-
|
|
1
|
+
import { n as toggleVariants, t as Toggle } from "../toggle-CsHqUVUY.js";
|
|
2
2
|
export { Toggle, toggleVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "../tooltip
|
|
1
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "../tooltip-ChzCP6Bv.js";
|
|
2
2
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { Menu } from "@base-ui/react/menu";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dropdown-menu.d.ts
|
|
6
6
|
declare function DropdownMenu({
|
|
7
7
|
...props
|
|
8
|
-
}: Menu.Root.Props):
|
|
8
|
+
}: Menu.Root.Props): react_jsx_runtime97.JSX.Element;
|
|
9
9
|
declare function DropdownMenuPortal({
|
|
10
10
|
...props
|
|
11
|
-
}: Menu.Portal.Props):
|
|
11
|
+
}: Menu.Portal.Props): react_jsx_runtime97.JSX.Element;
|
|
12
12
|
declare function DropdownMenuTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: Menu.Trigger.Props):
|
|
14
|
+
}: Menu.Trigger.Props): react_jsx_runtime97.JSX.Element;
|
|
15
15
|
declare function DropdownMenuContent({
|
|
16
16
|
align,
|
|
17
17
|
alignOffset,
|
|
@@ -19,17 +19,17 @@ declare function DropdownMenuContent({
|
|
|
19
19
|
sideOffset,
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">):
|
|
22
|
+
}: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime97.JSX.Element;
|
|
23
23
|
declare function DropdownMenuGroup({
|
|
24
24
|
...props
|
|
25
|
-
}: Menu.Group.Props):
|
|
25
|
+
}: Menu.Group.Props): react_jsx_runtime97.JSX.Element;
|
|
26
26
|
declare function DropdownMenuLabel({
|
|
27
27
|
className,
|
|
28
28
|
inset,
|
|
29
29
|
...props
|
|
30
30
|
}: Menu.GroupLabel.Props & {
|
|
31
31
|
inset?: boolean;
|
|
32
|
-
}):
|
|
32
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
33
33
|
declare function DropdownMenuItem({
|
|
34
34
|
className,
|
|
35
35
|
inset,
|
|
@@ -38,10 +38,10 @@ declare function DropdownMenuItem({
|
|
|
38
38
|
}: Menu.Item.Props & {
|
|
39
39
|
inset?: boolean;
|
|
40
40
|
variant?: "default" | "destructive";
|
|
41
|
-
}):
|
|
41
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
42
42
|
declare function DropdownMenuSub({
|
|
43
43
|
...props
|
|
44
|
-
}: Menu.SubmenuRoot.Props):
|
|
44
|
+
}: Menu.SubmenuRoot.Props): react_jsx_runtime97.JSX.Element;
|
|
45
45
|
declare function DropdownMenuSubTrigger({
|
|
46
46
|
className,
|
|
47
47
|
inset,
|
|
@@ -49,7 +49,7 @@ declare function DropdownMenuSubTrigger({
|
|
|
49
49
|
...props
|
|
50
50
|
}: Menu.SubmenuTrigger.Props & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSubContent({
|
|
54
54
|
align,
|
|
55
55
|
alignOffset,
|
|
@@ -57,7 +57,7 @@ declare function DropdownMenuSubContent({
|
|
|
57
57
|
sideOffset,
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React$1.ComponentProps<typeof DropdownMenuContent>):
|
|
60
|
+
}: React$1.ComponentProps<typeof DropdownMenuContent>): react_jsx_runtime97.JSX.Element;
|
|
61
61
|
declare function DropdownMenuCheckboxItem({
|
|
62
62
|
className,
|
|
63
63
|
children,
|
|
@@ -66,10 +66,10 @@ declare function DropdownMenuCheckboxItem({
|
|
|
66
66
|
...props
|
|
67
67
|
}: Menu.CheckboxItem.Props & {
|
|
68
68
|
inset?: boolean;
|
|
69
|
-
}):
|
|
69
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
70
70
|
declare function DropdownMenuRadioGroup({
|
|
71
71
|
...props
|
|
72
|
-
}: Menu.RadioGroup.Props):
|
|
72
|
+
}: Menu.RadioGroup.Props): react_jsx_runtime97.JSX.Element;
|
|
73
73
|
declare function DropdownMenuRadioItem({
|
|
74
74
|
className,
|
|
75
75
|
children,
|
|
@@ -77,15 +77,15 @@ declare function DropdownMenuRadioItem({
|
|
|
77
77
|
...props
|
|
78
78
|
}: Menu.RadioItem.Props & {
|
|
79
79
|
inset?: boolean;
|
|
80
|
-
}):
|
|
80
|
+
}): react_jsx_runtime97.JSX.Element;
|
|
81
81
|
declare function DropdownMenuSeparator({
|
|
82
82
|
className,
|
|
83
83
|
...props
|
|
84
|
-
}: Menu.Separator.Props):
|
|
84
|
+
}: Menu.Separator.Props): react_jsx_runtime97.JSX.Element;
|
|
85
85
|
declare function DropdownMenuShortcut({
|
|
86
86
|
className,
|
|
87
87
|
...props
|
|
88
|
-
}: React$1.ComponentProps<"span">):
|
|
88
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime97.JSX.Element;
|
|
89
89
|
//#endregion
|
|
90
90
|
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu as t, DropdownMenuSeparator as u };
|
|
91
|
-
//# sourceMappingURL=dropdown-menu-
|
|
91
|
+
//# sourceMappingURL=dropdown-menu-BNmyNq9W.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu-
|
|
1
|
+
{"version":3,"file":"dropdown-menu-BNmyNq9W.d.ts","names":[],"sources":["../src/components/dropdown-menu.tsx"],"sourcesContent":[],"mappings":";;;;;iBAMS,YAAA;;GAA2B,IAAA,CAAc,IAAA,CAAK,QAAK,mBAAA,CAAA,GA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AAA,CAAA,GAAA,CAAA,OAlK7B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as Button } from "./button-BWB2PWYv.js";
|
|
2
2
|
import { d as UseFileUploadReturn, n as FileUploadItem } from "./use-file-upload-yy-xLBtn.js";
|
|
3
3
|
import { LucideIcon } from "lucide-react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
|
-
import * as
|
|
7
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
8
8
|
|
|
9
9
|
//#region src/components/file-upload.d.ts
|
|
10
10
|
type FileInfo = {
|
|
@@ -35,11 +35,11 @@ declare function Root({
|
|
|
35
35
|
multiple,
|
|
36
36
|
disabled,
|
|
37
37
|
className
|
|
38
|
-
}: RootProps):
|
|
38
|
+
}: RootProps): react_jsx_runtime147.JSX.Element;
|
|
39
39
|
declare const dropzoneVariants: (props?: ({
|
|
40
40
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
41
41
|
isDragActive?: boolean | null | undefined;
|
|
42
|
-
} &
|
|
42
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
43
43
|
/** State passed to the render prop */
|
|
44
44
|
interface DropzoneState {
|
|
45
45
|
/** Whether files are being dragged over the dropzone */
|
|
@@ -84,12 +84,12 @@ declare function Dropzone({
|
|
|
84
84
|
browseText,
|
|
85
85
|
render,
|
|
86
86
|
...props
|
|
87
|
-
}: DropzoneProps):
|
|
87
|
+
}: DropzoneProps): react_jsx_runtime147.JSX.Element;
|
|
88
88
|
interface HiddenInputProps extends Omit<React$1.ComponentProps<"input">, "type"> {}
|
|
89
89
|
declare function HiddenInput({
|
|
90
90
|
className,
|
|
91
91
|
...props
|
|
92
|
-
}: HiddenInputProps):
|
|
92
|
+
}: HiddenInputProps): react_jsx_runtime147.JSX.Element;
|
|
93
93
|
interface ListProps extends Omit<React$1.ComponentProps<"div">, "children"> {
|
|
94
94
|
children?: React$1.ReactNode | ((files: FileUploadItem[]) => React$1.ReactNode);
|
|
95
95
|
}
|
|
@@ -97,7 +97,7 @@ declare function List({
|
|
|
97
97
|
className,
|
|
98
98
|
children,
|
|
99
99
|
...props
|
|
100
|
-
}: ListProps):
|
|
100
|
+
}: ListProps): react_jsx_runtime147.JSX.Element | null;
|
|
101
101
|
interface ListItemProps extends React$1.ComponentProps<"div"> {
|
|
102
102
|
file: FileUploadItem;
|
|
103
103
|
/** Show file type icon (default: true) */
|
|
@@ -126,12 +126,12 @@ declare function ListItem({
|
|
|
126
126
|
icon,
|
|
127
127
|
onItemClick,
|
|
128
128
|
...props
|
|
129
|
-
}: ListItemProps):
|
|
129
|
+
}: ListItemProps): react_jsx_runtime147.JSX.Element;
|
|
130
130
|
interface ClearAllProps extends React$1.ComponentProps<typeof Button> {}
|
|
131
131
|
declare function ClearAll({
|
|
132
132
|
children,
|
|
133
133
|
...props
|
|
134
|
-
}: ClearAllProps):
|
|
134
|
+
}: ClearAllProps): react_jsx_runtime147.JSX.Element | null;
|
|
135
135
|
declare const FileUpload: {
|
|
136
136
|
Root: typeof Root;
|
|
137
137
|
Dropzone: typeof Dropzone;
|
|
@@ -142,4 +142,4 @@ declare const FileUpload: {
|
|
|
142
142
|
};
|
|
143
143
|
//#endregion
|
|
144
144
|
export { FileUpload as a, ListProps as c, DropzoneState as i, RootProps as l, DropzoneProps as n, HiddenInputProps as o, DropzoneRenderProps as r, ListItemProps as s, ClearAllProps as t, getFileTypeIcon as u };
|
|
145
|
-
//# sourceMappingURL=file-upload-
|
|
145
|
+
//# sourceMappingURL=file-upload-Dzih3NuX.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload-
|
|
1
|
+
{"version":3,"file":"file-upload-Dzih3NuX.d.ts","names":[],"sources":["../src/components/file-upload.tsx"],"sourcesContent":[],"mappings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A,CAAA,OAAA,GAqBb,IAAA;AAAc,UAA1C,aAAA,SAAsB,OAAA,CAAM,cAAc,CAAA,KAAA,CAAA,CAAA;EAkBlD,IAAA,EAjBD,cAiBS;EACf;EACA,QAAA,CAAA,EAAA,OAAA;EACA;EACA,YAAA,CAAA,EAAA,OAAA;EACA;EACA,SAAA,CAAA,EAAA,OAAA;EACA;EACA,UAAA,CAAA,EAAA,OAAA;EACA;EAEC,SAAA,CAAA,EAAA,OAAA;EAAa;EAAA,IAAA,CAAA,EAhBP,OAAA,CAAM,SAgBC;EA4IC;EAER,WAAQ,CAAA,EAAA,CAAA,IAAA,EA5JM,cA4JN,EAAA,GAAA,IAAA;;iBAzJR,QAAA,CAyJiC;EAAA,IAAA;EAAA,SAAA;EAAA,QAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,SAAA;EAAA,IAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EA9IvC,aA8IuC,CAAA,EA9I1B,oBAAA,CAAA,GAAA,CAAA,OA8I0B;AAAa,UAFtC,aAAA,SAAsB,OAAA,CAAM,cAEU,CAAA,OAFY,MAEZ,CAAA,CAAA;AA0BvD,iBA1BS,QAAA,CAiCR;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAjCyC,aAiCzC,CAAA,EAjCsD,oBAAA,CAAA,GAAA,CAAA,OAAA,GAiCtD,IAAA;cAPY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/input.d.ts
|
|
@@ -6,7 +6,7 @@ declare function Input({
|
|
|
6
6
|
className,
|
|
7
7
|
type,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<"input">):
|
|
9
|
+
}: React$1.ComponentProps<"input">): react_jsx_runtime146.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Input as t };
|
|
12
|
-
//# sourceMappingURL=input-
|
|
12
|
+
//# sourceMappingURL=input-CKTvQqOU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-CKTvQqOU.d.ts","names":[],"sources":["../src/components/input.tsx"],"sourcesContent":[],"mappings":";;;;iBAKS,KAAA;;;;GAAqC,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime174 from "react/jsx-runtime";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/label.d.ts
|
|
5
|
+
declare function Label({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<"label">): react_jsx_runtime174.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Label as t };
|
|
11
|
+
//# sourceMappingURL=label-DMeHPQml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-DMeHPQml.d.ts","names":[],"sources":["../src/components/label.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,KAAA;;;GAA+B,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as TooltipProvider } from "../tooltip
|
|
1
|
+
import { r as TooltipProvider } from "../tooltip-ChzCP6Bv.js";
|
|
2
2
|
import { n as AnchoredToaster, o as ToasterProps } from "../toast-BBU6Q5ZU.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime259 from "react/jsx-runtime";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/providers/px-ui-provider.d.ts
|
|
@@ -30,7 +30,7 @@ declare function PXUIProvider({
|
|
|
30
30
|
tooltip,
|
|
31
31
|
toaster,
|
|
32
32
|
anchoredToaster
|
|
33
|
-
}: PXUIProviderProps):
|
|
33
|
+
}: PXUIProviderProps): react_jsx_runtime259.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { PXUIProvider, type PXUIProviderProps };
|
|
36
36
|
//# sourceMappingURL=px-ui-provider.d.ts.map
|
|
@@ -14,7 +14,10 @@ function PXUIProvider({ children, direction = "ltr", tooltip, toaster, anchoredT
|
|
|
14
14
|
...tooltip,
|
|
15
15
|
children: [
|
|
16
16
|
children,
|
|
17
|
-
/* @__PURE__ */ jsx(Toaster, {
|
|
17
|
+
/* @__PURE__ */ jsx(Toaster, {
|
|
18
|
+
position: "top-right",
|
|
19
|
+
...toaster
|
|
20
|
+
}),
|
|
18
21
|
/* @__PURE__ */ jsx(AnchoredToaster, { ...anchoredToaster })
|
|
19
22
|
]
|
|
20
23
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"px-ui-provider.js","names":[],"sources":["../../src/providers/px-ui-provider.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\n\nimport { DirectionProvider } from \"../components/direction\";\nimport {\n AnchoredToaster,\n Toaster,\n type ToasterProps,\n} from \"../components/toast\";\nimport { TooltipProvider } from \"../components/tooltip\";\n\ntype Direction = \"ltr\" | \"rtl\";\n\ntype PXUIProviderProps = React.PropsWithChildren<{\n /**\n * Text direction for Base UI primitives inside px-ui components.\n * @default \"ltr\"\n */\n direction?: Direction;\n /**\n * Props forwarded to the global tooltip provider.\n */\n tooltip?: React.ComponentProps<typeof TooltipProvider>;\n /**\n * Props forwarded to the screen-corner toaster.\n */\n toaster?: ToasterProps;\n /**\n * Props forwarded to the anchored toaster host.\n */\n anchoredToaster?: React.ComponentProps<typeof AnchoredToaster>;\n}>;\n\nfunction PXUIProvider({\n children,\n direction = \"ltr\",\n tooltip,\n toaster,\n anchoredToaster,\n}: PXUIProviderProps) {\n return (\n <DirectionProvider direction={direction}>\n <TooltipProvider {...tooltip}>\n {children}\n <Toaster {...toaster} />\n <AnchoredToaster {...anchoredToaster} />\n </TooltipProvider>\n </DirectionProvider>\n );\n}\n\nexport { PXUIProvider };\nexport type { PXUIProviderProps };\n"],"mappings":";;;;;;;;;AAkCA,SAAS,aAAa,EACpB,UACA,YAAY,OACZ,SACA,SACA,mBACoB;AACpB,QACE,oBAAC;EAA6B;YAC5B,qBAAC;GAAgB,GAAI;;IAClB;IACD,oBAAC,
|
|
1
|
+
{"version":3,"file":"px-ui-provider.js","names":[],"sources":["../../src/providers/px-ui-provider.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\n\nimport { DirectionProvider } from \"../components/direction\";\nimport {\n AnchoredToaster,\n Toaster,\n type ToasterProps,\n} from \"../components/toast\";\nimport { TooltipProvider } from \"../components/tooltip\";\n\ntype Direction = \"ltr\" | \"rtl\";\n\ntype PXUIProviderProps = React.PropsWithChildren<{\n /**\n * Text direction for Base UI primitives inside px-ui components.\n * @default \"ltr\"\n */\n direction?: Direction;\n /**\n * Props forwarded to the global tooltip provider.\n */\n tooltip?: React.ComponentProps<typeof TooltipProvider>;\n /**\n * Props forwarded to the screen-corner toaster.\n */\n toaster?: ToasterProps;\n /**\n * Props forwarded to the anchored toaster host.\n */\n anchoredToaster?: React.ComponentProps<typeof AnchoredToaster>;\n}>;\n\nfunction PXUIProvider({\n children,\n direction = \"ltr\",\n tooltip,\n toaster,\n anchoredToaster,\n}: PXUIProviderProps) {\n return (\n <DirectionProvider direction={direction}>\n <TooltipProvider {...tooltip}>\n {children}\n <Toaster position=\"top-right\" {...toaster} />\n <AnchoredToaster {...anchoredToaster} />\n </TooltipProvider>\n </DirectionProvider>\n );\n}\n\nexport { PXUIProvider };\nexport type { PXUIProviderProps };\n"],"mappings":";;;;;;;;;AAkCA,SAAS,aAAa,EACpB,UACA,YAAY,OACZ,SACA,SACA,mBACoB;AACpB,QACE,oBAAC;EAA6B;YAC5B,qBAAC;GAAgB,GAAI;;IAClB;IACD,oBAAC;KAAQ,UAAS;KAAY,GAAI;MAAW;IAC7C,oBAAC,mBAAgB,GAAI,kBAAmB;;IACxB;GACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime243 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "@base-ui/react/separator";
|
|
3
3
|
|
|
4
4
|
//#region src/components/separator.d.ts
|
|
@@ -6,7 +6,7 @@ declare function Separator$1({
|
|
|
6
6
|
className,
|
|
7
7
|
orientation,
|
|
8
8
|
...props
|
|
9
|
-
}: Separator.Props):
|
|
9
|
+
}: Separator.Props): react_jsx_runtime243.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Separator$1 as t };
|
|
12
|
-
//# sourceMappingURL=separator-
|
|
12
|
+
//# sourceMappingURL=separator-CuuVnw-z.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator-
|
|
1
|
+
{"version":3,"file":"separator-CuuVnw-z.d.ts","names":[],"sources":["../src/components/separator.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,WAAA;;;;GAIN,SAAA,CAAmB,QAAK,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime254 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toggle.d.ts
|
|
7
7
|
declare const toggleVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
9
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Toggle$1({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
14
14
|
size,
|
|
15
15
|
...props
|
|
16
|
-
}: Toggle.Props & VariantProps<typeof toggleVariants>):
|
|
16
|
+
}: Toggle.Props & VariantProps<typeof toggleVariants>): react_jsx_runtime254.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { toggleVariants as n, Toggle$1 as t };
|
|
19
|
-
//# sourceMappingURL=toggle-
|
|
19
|
+
//# sourceMappingURL=toggle-CsHqUVUY.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-
|
|
1
|
+
{"version":3,"file":"toggle-CsHqUVUY.d.ts","names":[],"sources":["../src/components/toggle.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM;;;IAoBL,gCAAA,CAAA;AAxBiE,iBA0BzD,QAAA,CAFR;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAOE,MAAA,CAAgB,KAPlB,GAO0B,YAP1B,CAAA,OAO8C,cAP9C,CAAA,CAAA,EAO6D,oBAAA,CAAA,GAAA,CAAA,OAP7D"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime255 from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tooltip.d.ts
|
|
5
5
|
declare function TooltipProvider({
|
|
6
6
|
delay,
|
|
7
7
|
...props
|
|
8
|
-
}: Tooltip.Provider.Props):
|
|
8
|
+
}: Tooltip.Provider.Props): react_jsx_runtime255.JSX.Element;
|
|
9
9
|
declare function Tooltip$1({
|
|
10
10
|
...props
|
|
11
|
-
}: Tooltip.Root.Props):
|
|
11
|
+
}: Tooltip.Root.Props): react_jsx_runtime255.JSX.Element;
|
|
12
12
|
declare function TooltipTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: Tooltip.Trigger.Props):
|
|
14
|
+
}: Tooltip.Trigger.Props): react_jsx_runtime255.JSX.Element;
|
|
15
15
|
declare function TooltipContent({
|
|
16
16
|
className,
|
|
17
17
|
side,
|
|
@@ -20,7 +20,7 @@ declare function TooltipContent({
|
|
|
20
20
|
alignOffset,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">):
|
|
23
|
+
}: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime255.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip$1 as t };
|
|
26
|
-
//# sourceMappingURL=tooltip
|
|
26
|
+
//# sourceMappingURL=tooltip-ChzCP6Bv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip
|
|
1
|
+
{"version":3,"file":"tooltip-ChzCP6Bv.d.ts","names":[],"sources":["../src/components/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,eAAA;;;GAGN,OAAA,CAAiB,QAAA,CAAS,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAUzB,SAAA;;GAAsB,OAAA,CAAiB,IAAA,CAAK,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAIjD,cAAA;;GAA6B,OAAA,CAAiB,OAAA,CAAQ,QAAK,oBAAA,CAAA,GAAA,CAAA;AArBA,iBAyB3D,cAAA,CArBe;EAAA,SAAA;EAAA,IAAA;EAAA,UAAA;EAAA,KAAA;EAAA,WAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA6BrB,OAAA,CAAiB,KAAA,CAAM,KA7BF,GA8BtB,IA9BsB,CA+BpB,OAAA,CAAiB,UAAA,CAAW,KA/BR,EAAA,OAAA,GAAA,aAAA,GAAA,MAAA,GAAA,YAAA,CAAA,CAAA,EAiCrB,oBAAA,CAAA,GAAA,CAAA,OAjCqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@px-ui/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A modern React component library built with Tailwind CSS and shadcn/ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -306,6 +306,7 @@
|
|
|
306
306
|
},
|
|
307
307
|
"peerDependencies": {
|
|
308
308
|
"@tanstack/react-query": ">=5.0.0",
|
|
309
|
+
"lucide-react": ">=1.0.0",
|
|
309
310
|
"react": ">=16.8.0",
|
|
310
311
|
"react-dom": ">=16.8.0",
|
|
311
312
|
"recharts": ">=3.0.0"
|
|
@@ -316,7 +317,6 @@
|
|
|
316
317
|
"clsx": "^2.1.1",
|
|
317
318
|
"embla-carousel-react": "^8.6.0",
|
|
318
319
|
"google-libphonenumber": "^3.2.34",
|
|
319
|
-
"lucide-react": "^1.16.0",
|
|
320
320
|
"react-country-flag": "^3.1.0",
|
|
321
321
|
"react-day-picker": "^10.0.1",
|
|
322
322
|
"react-phone-input-2": "^2.15.0",
|
|
@@ -334,6 +334,7 @@
|
|
|
334
334
|
"@types/react-dom": "^19.2.3",
|
|
335
335
|
"eslint": "^9.39.2",
|
|
336
336
|
"globals": "^17.2.0",
|
|
337
|
+
"lucide-react": "^1.16.0",
|
|
337
338
|
"react": "19.2.0",
|
|
338
339
|
"react-dom": "19.2.0",
|
|
339
340
|
"recharts": "^3.8.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-DDdL9xDH.js","names":["alt: string | undefined","name: string | undefined","React","Avatar","AvatarPrimitive"],"sources":["../src/components/avatar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Avatar as AvatarPrimitive } from \"@base-ui/react/avatar\"\n\nimport { cn } from \"@px-ui/ui/lib/utils\"\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"@px-ui/ui/components/tooltip\"\n\nconst AVATAR_NAME_PALETTE = [\n \"#bdc3c7\",\n \"#6f7b87\",\n \"#2c3e50\",\n \"#2f3193\",\n \"#662d91\",\n \"#922790\",\n \"#ec2176\",\n \"#ed1c24\",\n \"#f36622\",\n \"#f8941e\",\n \"#fab70f\",\n \"#fdde00\",\n \"#d1d219\",\n \"#8ec73f\",\n \"#00a650\",\n \"#00aa9c\",\n \"#00adef\",\n \"#0081cd\",\n \"#005bab\",\n \"#012a4a\",\n \"#013a63\",\n \"#06d6a0\",\n \"#ef476f\",\n \"#ff5d8f\",\n \"#0496ff\",\n \"#c879ff\",\n]\n\nfunction getInitialsFromName(name: string | null | undefined): string {\n if (!name) return \"\"\n const matches = [...name.matchAll(/(\\b\\w)/g)]\n return (\n (matches.shift()?.[1] ?? \"\") + (matches.pop()?.[1] ?? \"\")\n ).toUpperCase()\n}\n\nfunction getAvatarColorByName(\n name: string | null | undefined\n): React.CSSProperties {\n const seed = name && name.length ? name : \"?\"\n let index = seed[0].toUpperCase().charCodeAt(0)\n const lastName = seed.split(\" \")[1]\n if (lastName) {\n index = Math.floor((index + lastName[0].toUpperCase().charCodeAt(0)) / 2)\n }\n index = Math.abs(index - 65) % AVATAR_NAME_PALETTE.length\n return {\n backgroundColor: AVATAR_NAME_PALETTE[index],\n color: \"#fff\",\n }\n}\n\nfunction getStringFromChildren(children: React.ReactNode): string {\n let out = \"\"\n React.Children.forEach(children, (child) => {\n if (typeof child === \"string\" || typeof child === \"number\") {\n out += child\n }\n })\n return out\n}\n\ntype AvatarSize = \"default\" | \"sm\" | \"lg\"\n\ntype AvatarProps = AvatarPrimitive.Root.Props & {\n size?: AvatarSize\n tooltip?: React.ReactNode | false\n}\n\nfunction getAvatarLabelFromChildren(\n children: React.ReactNode\n): React.ReactNode | undefined {\n let alt: string | undefined\n let name: string | undefined\n React.Children.forEach(children, (child) => {\n if (!React.isValidElement(child)) return\n if (child.type === AvatarFallback) {\n const props = child.props as AvatarFallbackProps\n if (props.name) name = props.name\n } else if (child.type === AvatarImage) {\n const props = child.props as AvatarPrimitive.Image.Props\n if (props.alt) alt = props.alt\n }\n })\n return name ?? alt\n}\n\nfunction Avatar({\n className,\n size = \"default\",\n tooltip,\n children,\n ...props\n}: AvatarProps) {\n const root = (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n data-size={size}\n className={cn(\n \"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten\",\n className\n )}\n {...props}\n >\n {children}\n </AvatarPrimitive.Root>\n )\n\n const resolved =\n tooltip === undefined ? getAvatarLabelFromChildren(children) : tooltip\n if (resolved === false || resolved == null || resolved === \"\") return root\n\n return (\n <Tooltip>\n <TooltipTrigger render={root} />\n <TooltipContent>{resolved}</TooltipContent>\n </Tooltip>\n )\n}\n\nfunction AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn(\n \"aspect-square size-full rounded-full object-cover\",\n className\n )}\n {...props}\n />\n )\n}\n\ntype AvatarFallbackProps = AvatarPrimitive.Fallback.Props & {\n name?: string | null\n}\n\nfunction AvatarFallback({\n className,\n name,\n children,\n style,\n ...props\n}: AvatarFallbackProps) {\n const colorStyle = React.useMemo(() => {\n const seed = name ?? getStringFromChildren(children)\n return getAvatarColorByName(seed)\n }, [name, children])\n const initials = React.useMemo(\n () => (name && children == null ? getInitialsFromName(name) : undefined),\n [name, children]\n )\n\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n \"flex size-full items-center justify-center rounded-full font-medium text-sm group-data-[size=sm]/avatar:text-xs\",\n className\n )}\n style={{ ...colorStyle, ...style }}\n {...props}\n >\n {children ?? initials}\n </AvatarPrimitive.Fallback>\n )\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"avatar-badge\"\n className={cn(\n \"absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none\",\n \"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden\",\n \"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n \"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Avatar,\n AvatarImage,\n AvatarFallback,\n AvatarBadge,\n getAvatarLabelFromChildren,\n getInitialsFromName,\n getAvatarColorByName,\n}\nexport type { AvatarProps, AvatarFallbackProps }\n"],"mappings":";;;;;;;AAMA,MAAM,sBAAsB;CAC1B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAS,oBAAoB,MAAyC;AACpE,KAAI,CAAC,KAAM,QAAO;CAClB,MAAM,UAAU,CAAC,GAAG,KAAK,SAAS,UAAU,CAAC;AAC7C,UACG,QAAQ,OAAO,GAAG,MAAM,OAAO,QAAQ,KAAK,GAAG,MAAM,KACtD,aAAa;;AAGjB,SAAS,qBACP,MACqB;CACrB,MAAM,OAAO,QAAQ,KAAK,SAAS,OAAO;CAC1C,IAAI,QAAQ,KAAK,GAAG,aAAa,CAAC,WAAW,EAAE;CAC/C,MAAM,WAAW,KAAK,MAAM,IAAI,CAAC;AACjC,KAAI,SACF,SAAQ,KAAK,OAAO,QAAQ,SAAS,GAAG,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE;AAE3E,SAAQ,KAAK,IAAI,QAAQ,GAAG,GAAG,oBAAoB;AACnD,QAAO;EACL,iBAAiB,oBAAoB;EACrC,OAAO;EACR;;AAGH,SAAS,sBAAsB,UAAmC;CAChE,IAAI,MAAM;AACV,SAAM,SAAS,QAAQ,WAAW,UAAU;AAC1C,MAAI,OAAO,UAAU,YAAY,OAAO,U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AA,CAAA,EA+E4C,OAAA,CAAM,cA/ElD,CAAA,MAAA,CAAA,CAAA,EA+EwE,mBAAA,CAAA,GAAA,CAAA,OA/ExE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-stLmd1eW.d.ts","names":[],"sources":["../src/components/input.tsx"],"sourcesContent":[],"mappings":";;;;iBAKS,KAAA;;;;GAAqC,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
|
package/dist/label-CokIQ6Ry.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime196 from "react/jsx-runtime";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/label.d.ts
|
|
5
|
-
declare function Label({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<"label">): react_jsx_runtime196.JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Label as t };
|
|
11
|
-
//# sourceMappingURL=label-CokIQ6Ry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label-CokIQ6Ry.d.ts","names":[],"sources":["../src/components/label.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,KAAA;;;GAA+B,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
|