@px-ui/ui 1.0.3 → 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-B2FY4pgk.js → avatar-B1kOPk5C.js} +4 -4
- package/dist/{avatar-B2FY4pgk.js.map → avatar-B1kOPk5C.js.map} +1 -1
- package/dist/{avatar-CtZEW1Kd.d.ts → avatar-CZr6NzW8.d.ts} +6 -6
- package/dist/{avatar-CtZEW1Kd.d.ts.map → avatar-CZr6NzW8.d.ts.map} +1 -1
- package/dist/{button-peTbHgr6.d.ts → button-BWB2PWYv.d.ts} +7 -7
- package/dist/{button-peTbHgr6.d.ts.map → button-BWB2PWYv.d.ts.map} +1 -1
- package/dist/{button-B3SNyz-U.js → button-hBUFMmsZ.js} +2 -2
- package/dist/{button-B3SNyz-U.js.map → button-hBUFMmsZ.js.map} +1 -1
- package/dist/{combobox-CBerynHz.js → combobox-C-dF33ce.js} +9 -9
- package/dist/{combobox-CBerynHz.js.map → combobox-C-dF33ce.js.map} +1 -1
- package/dist/{combobox-BGJkF5tM.d.ts → combobox-z8wdqIlf.d.ts} +18 -18
- package/dist/combobox-z8wdqIlf.d.ts.map +1 -0
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +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-dialog.js +3 -3
- package/dist/components/alert.d.ts +7 -7
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/alert.js +2 -2
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/avatar-group.d.ts +4 -4
- package/dist/components/avatar-group.js +5 -5
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb.js +2 -2
- package/dist/components/button-group.d.ts +6 -6
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calendar.d.ts +4 -4
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +2 -2
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +3 -3
- package/dist/components/chart.d.ts +5 -5
- package/dist/components/chart.d.ts.map +1 -1
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +11 -11
- package/dist/components/command.d.ts +11 -11
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/command.js +7 -7
- package/dist/components/context-menu.d.ts +16 -16
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +2 -2
- package/dist/components/currency-select-field.d.ts +3 -3
- package/dist/components/currency-select-field.d.ts.map +1 -1
- package/dist/components/currency-select-field.js +12 -12
- package/dist/components/dialog.d.ts +11 -11
- package/dist/components/dialog.js +3 -3
- package/dist/components/direction.js +1 -1
- package/dist/components/drawer.d.ts +11 -11
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.d.ts.map +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.d.ts +15 -15
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +4 -4
- package/dist/components/file-upload-field.d.ts +2 -2
- package/dist/components/file-upload-field.js +6 -6
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +4 -4
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input-group.d.ts +12 -12
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input-otp.js +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/item.d.ts +15 -15
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +3 -3
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/menubar.d.ts +18 -18
- package/dist/components/menubar.d.ts.map +1 -1
- package/dist/components/menubar.js +3 -3
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.d.ts.map +1 -1
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.d.ts.map +1 -1
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +3 -3
- 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 +4 -4
- package/dist/components/phone-input.js.map +1 -1
- package/dist/components/popover.d.ts +7 -7
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/resizable.js +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/select.d.ts +10 -10
- package/dist/components/select.js +2 -2
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +3 -3
- package/dist/components/sidebar.d.ts +25 -25
- package/dist/components/sidebar.js +9 -9
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +2 -2
- package/dist/components/tabs.d.ts +7 -7
- package/dist/components/tabs.js +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +3 -3
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/{dialog-6oTB2jEH.js → dialog-DrdXva1a.js} +4 -4
- package/dist/{dialog-6oTB2jEH.js.map → dialog-DrdXva1a.js.map} +1 -1
- package/dist/{dropdown-menu-z9weMtW6.d.ts → dropdown-menu-BNmyNq9W.d.ts} +17 -17
- package/dist/{dropdown-menu-z9weMtW6.d.ts.map → dropdown-menu-BNmyNq9W.d.ts.map} +1 -1
- package/dist/{dropdown-menu-CN7gHXiF.js → dropdown-menu-CcumvwhM.js} +3 -3
- package/dist/{dropdown-menu-CN7gHXiF.js.map → dropdown-menu-CcumvwhM.js.map} +1 -1
- package/dist/{file-upload-CPaU1bTN.js → file-upload-DeCIv13t.js} +5 -5
- package/dist/{file-upload-CPaU1bTN.js.map → file-upload-DeCIv13t.js.map} +1 -1
- package/dist/{file-upload-CHIguMmH.d.ts → file-upload-Dzih3NuX.d.ts} +12 -12
- package/dist/{file-upload-CHIguMmH.d.ts.map → file-upload-Dzih3NuX.d.ts.map} +1 -1
- package/dist/hooks/use-async-options.js +1 -1
- package/dist/hooks/use-debounce.js +1 -1
- package/dist/hooks/use-file-upload.js +1 -1
- package/dist/hooks/use-infinite-scroll.js +2 -2
- package/dist/hooks/use-intersection-observer.js +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/{input-ByI__4Tb.js → input-8jqdnUZl.js} +3 -3
- package/dist/{input-ByI__4Tb.js.map → input-8jqdnUZl.js.map} +1 -1
- package/dist/{input-BY_HLiBI.d.ts → input-CKTvQqOU.d.ts} +3 -3
- package/dist/input-CKTvQqOU.d.ts.map +1 -0
- package/dist/{input-group-Dw3LpMMS.js → input-group-DqEkmpXW.js} +6 -6
- package/dist/{input-group-Dw3LpMMS.js.map → input-group-DqEkmpXW.js.map} +1 -1
- package/dist/{label-DJ-ONU1d.js → label-AaH9ZYCZ.js} +3 -3
- package/dist/{label-DJ-ONU1d.js.map → label-AaH9ZYCZ.js.map} +1 -1
- package/dist/label-DMeHPQml.d.ts +11 -0
- package/dist/label-DMeHPQml.d.ts.map +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{popover-z4aFoVCA.js → popover-C9D43EuT.js} +3 -3
- package/dist/{popover-z4aFoVCA.js.map → popover-C9D43EuT.js.map} +1 -1
- package/dist/providers/px-ui-provider.d.ts +3 -3
- package/dist/providers/px-ui-provider.js +8 -5
- package/dist/providers/px-ui-provider.js.map +1 -1
- package/dist/{separator-Cay2tYJi.js → separator-BS3ilczC.js} +2 -2
- package/dist/{separator-Cay2tYJi.js.map → separator-BS3ilczC.js.map} +1 -1
- package/dist/{separator-7n2clBT1.d.ts → separator-CuuVnw-z.d.ts} +3 -3
- package/dist/{separator-7n2clBT1.d.ts.map → separator-CuuVnw-z.d.ts.map} +1 -1
- package/dist/{sheet-BLGcp2vY.js → sheet-CLjNDrfL.js} +4 -4
- package/dist/{sheet-BLGcp2vY.js.map → sheet-CLjNDrfL.js.map} +1 -1
- package/dist/{skeleton-Cpayevuv.js → skeleton-BcIxI5Wq.js} +2 -2
- package/dist/{skeleton-Cpayevuv.js.map → skeleton-BcIxI5Wq.js.map} +1 -1
- package/dist/{spinner-EaERkwNt.js → spinner-Bo0sUZEg.js} +2 -2
- package/dist/{spinner-EaERkwNt.js.map → spinner-Bo0sUZEg.js.map} +1 -1
- package/dist/{textarea-CD4lb4bT.js → textarea-Cq0o323P.js} +3 -3
- package/dist/{textarea-CD4lb4bT.js.map → textarea-Cq0o323P.js.map} +1 -1
- package/dist/{toast-C3bNvyqf.d.ts → toast-BBU6Q5ZU.d.ts} +4 -4
- package/dist/{toast-C3bNvyqf.d.ts.map → toast-BBU6Q5ZU.d.ts.map} +1 -1
- package/dist/{toast-BIAksZXy.js → toast-COWAQbIk.js} +3 -3
- package/dist/{toast-BIAksZXy.js.map → toast-COWAQbIk.js.map} +1 -1
- package/dist/{toggle-E0JXUyzs.d.ts → toggle-CsHqUVUY.d.ts} +3 -3
- package/dist/{toggle-E0JXUyzs.d.ts.map → toggle-CsHqUVUY.d.ts.map} +1 -1
- package/dist/{toggle-Cwsbk1jY.js → toggle-DhJ_qwgw.js} +2 -2
- package/dist/{toggle-Cwsbk1jY.js.map → toggle-DhJ_qwgw.js.map} +1 -1
- package/dist/{tooltip-CIwyqk_3.js → tooltip-DkPxCJIL.js} +2 -2
- package/dist/{tooltip-CIwyqk_3.js.map → tooltip-DkPxCJIL.js.map} +1 -1
- package/dist/{use-async-options-MznolA0k.js → use-async-options-wZ9LJ2BJ.js} +1 -1
- package/dist/{use-async-options-MznolA0k.js.map → use-async-options-wZ9LJ2BJ.js.map} +1 -1
- package/dist/{use-debounce-CwnVqtDF.js → use-debounce-_qaEZqtt.js} +1 -1
- package/dist/{use-debounce-CwnVqtDF.js.map → use-debounce-_qaEZqtt.js.map} +1 -1
- package/dist/{use-file-upload-CiAqUFFh.js → use-file-upload-Dxrej28u.js} +1 -1
- package/dist/{use-file-upload-CiAqUFFh.js.map → use-file-upload-Dxrej28u.js.map} +1 -1
- package/dist/{use-infinite-scroll-DHi7CKyt.js → use-infinite-scroll-CpbhGGT5.js} +2 -2
- package/dist/{use-infinite-scroll-DHi7CKyt.js.map → use-infinite-scroll-CpbhGGT5.js.map} +1 -1
- package/dist/{use-intersection-observer-h5ZpX18y.js → use-intersection-observer-CZfnep4z.js} +1 -1
- package/dist/{use-intersection-observer-h5ZpX18y.js.map → use-intersection-observer-CZfnep4z.js.map} +1 -1
- package/dist/{use-mobile-CFSCadSm.js → use-mobile-l5ebOdQl.js} +1 -1
- package/dist/{use-mobile-CFSCadSm.js.map → use-mobile-l5ebOdQl.js.map} +1 -1
- package/dist/{utils-8o789qxH.js → utils-mWJR2N24.js} +1 -1
- package/dist/{utils-8o789qxH.js.map → utils-mWJR2N24.js.map} +1 -1
- package/package.json +1 -1
- package/dist/combobox-BGJkF5tM.d.ts.map +0 -1
- package/dist/input-BY_HLiBI.d.ts.map +0 -1
- package/dist/label-C3yvmi-S.d.ts +0 -11
- package/dist/label-C3yvmi-S.d.ts.map +0 -1
- /package/dist/{direction-CB0IW0WZ.js → direction-BKSh6e6q.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as Button } from "../button-BWB2PWYv.js";
|
|
2
|
+
import * as react_jsx_runtime202 from "react/jsx-runtime";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime265 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/pagination.d.ts
|
|
6
6
|
declare function Pagination({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<"nav">):
|
|
9
|
+
}: React$1.ComponentProps<"nav">): react_jsx_runtime202.JSX.Element;
|
|
10
10
|
declare function PaginationContent({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.ComponentProps<"ul">):
|
|
13
|
+
}: React$1.ComponentProps<"ul">): react_jsx_runtime202.JSX.Element;
|
|
14
14
|
declare function PaginationItem({
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<"li">):
|
|
16
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime202.JSX.Element;
|
|
17
17
|
type PaginationLinkProps = {
|
|
18
18
|
isActive?: boolean;
|
|
19
19
|
} & Pick<React$1.ComponentProps<typeof Button>, "size"> & React$1.ComponentProps<"a">;
|
|
@@ -22,25 +22,25 @@ declare function PaginationLink({
|
|
|
22
22
|
isActive,
|
|
23
23
|
size,
|
|
24
24
|
...props
|
|
25
|
-
}: PaginationLinkProps):
|
|
25
|
+
}: PaginationLinkProps): react_jsx_runtime202.JSX.Element;
|
|
26
26
|
declare function PaginationPrevious({
|
|
27
27
|
className,
|
|
28
28
|
text,
|
|
29
29
|
...props
|
|
30
30
|
}: React$1.ComponentProps<typeof PaginationLink> & {
|
|
31
31
|
text?: string;
|
|
32
|
-
}):
|
|
32
|
+
}): react_jsx_runtime202.JSX.Element;
|
|
33
33
|
declare function PaginationNext({
|
|
34
34
|
className,
|
|
35
35
|
text,
|
|
36
36
|
...props
|
|
37
37
|
}: React$1.ComponentProps<typeof PaginationLink> & {
|
|
38
38
|
text?: string;
|
|
39
|
-
}):
|
|
39
|
+
}): react_jsx_runtime202.JSX.Element;
|
|
40
40
|
declare function PaginationEllipsis({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React$1.ComponentProps<"span">):
|
|
43
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime202.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
46
46
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { t as Button } from "../button-
|
|
3
|
-
import "react";
|
|
1
|
+
import { t as cn } from "../utils-mWJR2N24.js";
|
|
2
|
+
import { t as Button } from "../button-hBUFMmsZ.js";
|
|
4
3
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/pagination.tsx
|
|
8
8
|
function Pagination({ className, ...props }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime214 from "react/jsx-runtime";
|
|
2
2
|
import "react-phone-input-2/lib/style.css";
|
|
3
3
|
|
|
4
4
|
//#region src/components/phone-input.d.ts
|
|
@@ -22,7 +22,7 @@ declare const PhoneInput: ({
|
|
|
22
22
|
placeholder,
|
|
23
23
|
disabled,
|
|
24
24
|
className
|
|
25
|
-
}: PhoneInputProps) =>
|
|
25
|
+
}: PhoneInputProps) => react_jsx_runtime214.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PhoneInput, validatePhoneNumber };
|
|
28
28
|
//# sourceMappingURL=phone-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-input.d.ts","names":[],"sources":["../../src/components/phone-input.tsx"],"sourcesContent":[],"mappings":";;;;cASa;UAYH,eAAA;;EAZG,QAAA,EAAA,CAAA,KAAA,EAAA,MAUZ,EAAA,GAAA,IAAA;EAES,OAAA,CAAA,EAAA,MAAA;EAWG,KAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"phone-input.d.ts","names":[],"sources":["../../src/components/phone-input.tsx"],"sourcesContent":[],"mappings":";;;;cASa;UAYH,eAAA;;EAZG,QAAA,EAAA,CAAA,KAAA,EAAA,MAUZ,EAAA,GAAA,IAAA;EAES,OAAA,CAAA,EAAA,MAAA;EAWG,KAAA,CAAA,EAAA,OAsEZ;EAtE0B,YAAA,CAAA,EAAA,MAAA;EAAA,WAAA,CAAA,EAAA,MAAA;EAAA,QAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA;;AAAA,cAAd,UAAc,EAAA,CAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,KAAA;EAAA,YAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EASxB,eATwB,EAAA,GAST,oBAAA,CAAA,GAAA,CAAA,OATS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import React from "react";
|
|
1
|
+
import { t as cn } from "../utils-mWJR2N24.js";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import PhoneInputLib from "react-phone-input-2";
|
|
5
5
|
import "react-phone-input-2/lib/style.css";
|
|
6
6
|
import GoogleLibPhoneNumber from "google-libphonenumber";
|
|
@@ -44,8 +44,8 @@ const PhoneInput = ({ value, onChange, country = "us", error, errorMessage, plac
|
|
|
44
44
|
onChange: handleChange,
|
|
45
45
|
disabled,
|
|
46
46
|
placeholder,
|
|
47
|
-
inputClass: `!w-full !h-11 !text-base !rounded-lg !border ${error ? "!border-destructive !bg-destructive/10" : "!border-input focus:!border-ring focus:!ring-1 focus:!ring-ring"}`,
|
|
48
|
-
buttonClass: `!rounded-l-lg !border-y !border-l ${error ? "!border-destructive !bg-destructive/10" : "!border-input"}`,
|
|
47
|
+
inputClass: `!w-full !h-11 !text-base !rounded-lg !border disabled:!pointer-events-none disabled:!cursor-not-allowed disabled:!opacity-50 ${error ? "!border-destructive !bg-destructive/10" : "!border-input focus:!border-ring focus:!ring-1 focus:!ring-ring"}`,
|
|
48
|
+
buttonClass: `!rounded-l-lg !border-y !border-l ${disabled ? "!pointer-events-none !cursor-not-allowed !opacity-50" : ""} ${error ? "!border-destructive !bg-destructive/10" : "!border-input"}`,
|
|
49
49
|
containerClass: "!w-full"
|
|
50
50
|
})
|
|
51
51
|
}), error && errorMessage && /* @__PURE__ */ jsx("p", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-input.js","names":[],"sources":["../../src/components/phone-input.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@px-ui/ui/lib/utils\";\nimport PhoneInputLib from \"react-phone-input-2\";\nimport \"react-phone-input-2/lib/style.css\";\nimport GoogleLibPhoneNumber from \"google-libphonenumber\";\n\nconst phoneUtil = GoogleLibPhoneNumber.PhoneNumberUtil.getInstance();\nconst PNF = GoogleLibPhoneNumber.PhoneNumberFormat;\n\nexport const validatePhoneNumber = (\n value: string | undefined | null,\n): boolean => {\n if (!value) return true;\n const phoneValue = value.startsWith(\"+\") ? value : \"+\" + value;\n try {\n return phoneUtil.isValidNumber(phoneUtil.parse(phoneValue));\n } catch {\n return false;\n }\n};\n\ninterface PhoneInputProps {\n value: string;\n onChange: (value: string) => void;\n country?: string;\n error?: boolean;\n errorMessage?: string;\n placeholder?: string;\n disabled?: boolean;\n className?: string;\n}\n\nexport const PhoneInput = ({\n value,\n onChange,\n country = \"us\",\n error,\n errorMessage,\n placeholder,\n disabled,\n className,\n}: PhoneInputProps) => {\n const handleChange = (\n inputValue: string,\n data: { dialCode?: string; countryCode?: string },\n ) => {\n // Country-only selection: don't propagate, otherwise the controlled\n // value resets to \"\" and react-phone-input-2 re-detects the country\n // from the empty value, snapping the flag back to the default.\n if (inputValue === data?.dialCode) return;\n\n if (!inputValue) {\n onChange(\"\");\n return;\n }\n\n const phoneValue = inputValue.startsWith(\"+\") ? inputValue : \"+\" + inputValue;\n try {\n const parsed = phoneUtil.parseAndKeepRawInput(\n phoneValue,\n data.countryCode?.toUpperCase(),\n );\n if (phoneUtil.isValidNumber(parsed)) {\n onChange(phoneUtil.format(parsed, PNF.E164));\n return;\n }\n } catch {\n // fall through to raw value\n }\n onChange(phoneValue);\n };\n\n return (\n <div className={cn(\"flex w-full flex-col gap-1\", className)}>\n <div className={`relative ${error ? \"phone-input-error\" : \"\"}`}>\n <PhoneInputLib\n country={country}\n value={value}\n onChange={handleChange}\n disabled={disabled}\n placeholder={placeholder}\n inputClass={`!w-full !h-11 !text-base !rounded-lg !border ${\n error\n ? \"!border-destructive !bg-destructive/10\"\n : \"!border-input focus:!border-ring focus:!ring-1 focus:!ring-ring\"\n }`}\n buttonClass={`!rounded-l-lg !border-y !border-l ${\n error ? \"!border-destructive !bg-destructive/10\" : \"!border-input\"\n }`}\n containerClass=\"!w-full\"\n />\n </div>\n\n {error && errorMessage && (\n <p className=\"mt-1 text-xs font-medium text-destructive\">\n {errorMessage}\n </p>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAMA,MAAM,YAAY,qBAAqB,gBAAgB,aAAa;AACpE,MAAM,MAAM,qBAAqB;AAEjC,MAAa,uBACX,UACY;AACZ,KAAI,CAAC,MAAO,QAAO;CACnB,MAAM,aAAa,MAAM,WAAW,IAAI,GAAG,QAAQ,MAAM;AACzD,KAAI;AACF,SAAO,UAAU,cAAc,UAAU,MAAM,WAAW,CAAC;SACrD;AACN,SAAO;;;AAeX,MAAa,cAAc,EACzB,OACA,UACA,UAAU,MACV,OACA,cACA,aACA,UACA,gBACqB;CACrB,MAAM,gBACJ,YACA,SACG;AAIH,MAAI,eAAe,MAAM,SAAU;AAEnC,MAAI,CAAC,YAAY;AACf,YAAS,GAAG;AACZ;;EAGF,MAAM,aAAa,WAAW,WAAW,IAAI,GAAG,aAAa,MAAM;AACnE,MAAI;GACF,MAAM,SAAS,UAAU,qBACvB,YACA,KAAK,aAAa,aAAa,CAChC;AACD,OAAI,UAAU,cAAc,OAAO,EAAE;AACnC,aAAS,UAAU,OAAO,QAAQ,IAAI,KAAK,CAAC;AAC5C;;UAEI;AAGR,WAAS,WAAW;;AAGtB,QACE,qBAAC;EAAI,WAAW,GAAG,8BAA8B,UAAU;aACzD,oBAAC;GAAI,WAAW,YAAY,QAAQ,sBAAsB;aACxD,oBAAC;IACU;IACF;IACP,UAAU;IACA;IACG;IACb,YAAY,
|
|
1
|
+
{"version":3,"file":"phone-input.js","names":[],"sources":["../../src/components/phone-input.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@px-ui/ui/lib/utils\";\nimport PhoneInputLib from \"react-phone-input-2\";\nimport \"react-phone-input-2/lib/style.css\";\nimport GoogleLibPhoneNumber from \"google-libphonenumber\";\n\nconst phoneUtil = GoogleLibPhoneNumber.PhoneNumberUtil.getInstance();\nconst PNF = GoogleLibPhoneNumber.PhoneNumberFormat;\n\nexport const validatePhoneNumber = (\n value: string | undefined | null,\n): boolean => {\n if (!value) return true;\n const phoneValue = value.startsWith(\"+\") ? value : \"+\" + value;\n try {\n return phoneUtil.isValidNumber(phoneUtil.parse(phoneValue));\n } catch {\n return false;\n }\n};\n\ninterface PhoneInputProps {\n value: string;\n onChange: (value: string) => void;\n country?: string;\n error?: boolean;\n errorMessage?: string;\n placeholder?: string;\n disabled?: boolean;\n className?: string;\n}\n\nexport const PhoneInput = ({\n value,\n onChange,\n country = \"us\",\n error,\n errorMessage,\n placeholder,\n disabled,\n className,\n}: PhoneInputProps) => {\n const handleChange = (\n inputValue: string,\n data: { dialCode?: string; countryCode?: string },\n ) => {\n // Country-only selection: don't propagate, otherwise the controlled\n // value resets to \"\" and react-phone-input-2 re-detects the country\n // from the empty value, snapping the flag back to the default.\n if (inputValue === data?.dialCode) return;\n\n if (!inputValue) {\n onChange(\"\");\n return;\n }\n\n const phoneValue = inputValue.startsWith(\"+\") ? inputValue : \"+\" + inputValue;\n try {\n const parsed = phoneUtil.parseAndKeepRawInput(\n phoneValue,\n data.countryCode?.toUpperCase(),\n );\n if (phoneUtil.isValidNumber(parsed)) {\n onChange(phoneUtil.format(parsed, PNF.E164));\n return;\n }\n } catch {\n // fall through to raw value\n }\n onChange(phoneValue);\n };\n\n return (\n <div className={cn(\"flex w-full flex-col gap-1\", className)}>\n <div className={`relative ${error ? \"phone-input-error\" : \"\"}`}>\n <PhoneInputLib\n country={country}\n value={value}\n onChange={handleChange}\n disabled={disabled}\n placeholder={placeholder}\n inputClass={`!w-full !h-11 !text-base !rounded-lg !border disabled:!pointer-events-none disabled:!cursor-not-allowed disabled:!opacity-50 ${\n error\n ? \"!border-destructive !bg-destructive/10\"\n : \"!border-input focus:!border-ring focus:!ring-1 focus:!ring-ring\"\n }`}\n buttonClass={`!rounded-l-lg !border-y !border-l ${\n disabled ? \"!pointer-events-none !cursor-not-allowed !opacity-50\" : \"\"\n } ${\n error ? \"!border-destructive !bg-destructive/10\" : \"!border-input\"\n }`}\n containerClass=\"!w-full\"\n />\n </div>\n\n {error && errorMessage && (\n <p className=\"mt-1 text-xs font-medium text-destructive\">\n {errorMessage}\n </p>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAMA,MAAM,YAAY,qBAAqB,gBAAgB,aAAa;AACpE,MAAM,MAAM,qBAAqB;AAEjC,MAAa,uBACX,UACY;AACZ,KAAI,CAAC,MAAO,QAAO;CACnB,MAAM,aAAa,MAAM,WAAW,IAAI,GAAG,QAAQ,MAAM;AACzD,KAAI;AACF,SAAO,UAAU,cAAc,UAAU,MAAM,WAAW,CAAC;SACrD;AACN,SAAO;;;AAeX,MAAa,cAAc,EACzB,OACA,UACA,UAAU,MACV,OACA,cACA,aACA,UACA,gBACqB;CACrB,MAAM,gBACJ,YACA,SACG;AAIH,MAAI,eAAe,MAAM,SAAU;AAEnC,MAAI,CAAC,YAAY;AACf,YAAS,GAAG;AACZ;;EAGF,MAAM,aAAa,WAAW,WAAW,IAAI,GAAG,aAAa,MAAM;AACnE,MAAI;GACF,MAAM,SAAS,UAAU,qBACvB,YACA,KAAK,aAAa,aAAa,CAChC;AACD,OAAI,UAAU,cAAc,OAAO,EAAE;AACnC,aAAS,UAAU,OAAO,QAAQ,IAAI,KAAK,CAAC;AAC5C;;UAEI;AAGR,WAAS,WAAW;;AAGtB,QACE,qBAAC;EAAI,WAAW,GAAG,8BAA8B,UAAU;aACzD,oBAAC;GAAI,WAAW,YAAY,QAAQ,sBAAsB;aACxD,oBAAC;IACU;IACF;IACP,UAAU;IACA;IACG;IACb,YAAY,gIACV,QACI,2CACA;IAEN,aAAa,qCACX,WAAW,yDAAyD,GACrE,GACC,QAAQ,2CAA2C;IAErD,gBAAe;KACf;IACE,EAEL,SAAS,gBACR,oBAAC;GAAE,WAAU;aACV;IACC;GAEF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime246 from "react/jsx-runtime";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime199 from "react/jsx-runtime";
|
|
3
3
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover.d.ts
|
|
6
6
|
declare function Popover({
|
|
7
7
|
...props
|
|
8
|
-
}: Popover$1.Root.Props):
|
|
8
|
+
}: Popover$1.Root.Props): react_jsx_runtime246.JSX.Element;
|
|
9
9
|
declare function PopoverTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: Popover$1.Trigger.Props):
|
|
11
|
+
}: Popover$1.Trigger.Props): react_jsx_runtime246.JSX.Element;
|
|
12
12
|
declare function PopoverContent({
|
|
13
13
|
className,
|
|
14
14
|
align,
|
|
@@ -16,19 +16,19 @@ declare function PopoverContent({
|
|
|
16
16
|
side,
|
|
17
17
|
sideOffset,
|
|
18
18
|
...props
|
|
19
|
-
}: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">):
|
|
19
|
+
}: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime246.JSX.Element;
|
|
20
20
|
declare function PopoverHeader({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React$1.ComponentProps<"div">):
|
|
23
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime246.JSX.Element;
|
|
24
24
|
declare function PopoverTitle({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: Popover$1.Title.Props):
|
|
27
|
+
}: Popover$1.Title.Props): react_jsx_runtime246.JSX.Element;
|
|
28
28
|
declare function PopoverDescription({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: Popover$1.Description.Props):
|
|
31
|
+
}: Popover$1.Description.Props): react_jsx_runtime246.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
34
34
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../utils-
|
|
2
|
-
import { a as PopoverTitle, i as PopoverHeader, n as PopoverContent, o as PopoverTrigger, r as PopoverDescription, t as Popover } from "../popover-
|
|
1
|
+
import "../utils-mWJR2N24.js";
|
|
2
|
+
import { a as PopoverTitle, i as PopoverHeader, n as PopoverContent, o as PopoverTrigger, r as PopoverDescription, t as Popover } from "../popover-C9D43EuT.js";
|
|
3
3
|
|
|
4
4
|
export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime209 from "react/jsx-runtime";
|
|
2
2
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
3
3
|
|
|
4
4
|
//#region src/components/progress.d.ts
|
|
@@ -7,23 +7,23 @@ declare function Progress({
|
|
|
7
7
|
children,
|
|
8
8
|
value,
|
|
9
9
|
...props
|
|
10
|
-
}: Progress$1.Root.Props):
|
|
10
|
+
}: Progress$1.Root.Props): react_jsx_runtime209.JSX.Element;
|
|
11
11
|
declare function ProgressTrack({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: Progress$1.Track.Props):
|
|
14
|
+
}: Progress$1.Track.Props): react_jsx_runtime209.JSX.Element;
|
|
15
15
|
declare function ProgressIndicator({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: Progress$1.Indicator.Props):
|
|
18
|
+
}: Progress$1.Indicator.Props): react_jsx_runtime209.JSX.Element;
|
|
19
19
|
declare function ProgressLabel({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: Progress$1.Label.Props):
|
|
22
|
+
}: Progress$1.Label.Props): react_jsx_runtime209.JSX.Element;
|
|
23
23
|
declare function ProgressValue({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: Progress$1.Value.Props):
|
|
26
|
+
}: Progress$1.Value.Props): react_jsx_runtime209.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
|
|
29
29
|
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime227 from "react/jsx-runtime";
|
|
2
2
|
import { Radio } from "@base-ui/react/radio";
|
|
3
3
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
4
4
|
|
|
@@ -6,11 +6,11 @@ import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
|
6
6
|
declare function RadioGroup({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: RadioGroup$1.Props):
|
|
9
|
+
}: RadioGroup$1.Props): react_jsx_runtime227.JSX.Element;
|
|
10
10
|
declare function RadioGroupItem({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: Radio.Root.Props):
|
|
13
|
+
}: Radio.Root.Props): react_jsx_runtime227.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { RadioGroup, RadioGroupItem };
|
|
16
16
|
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime229 from "react/jsx-runtime";
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
3
|
|
|
4
4
|
//#region src/components/resizable.d.ts
|
|
5
5
|
declare function ResizablePanelGroup({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: ResizablePrimitive.GroupProps):
|
|
8
|
+
}: ResizablePrimitive.GroupProps): react_jsx_runtime229.JSX.Element;
|
|
9
9
|
declare function ResizablePanel({
|
|
10
10
|
...props
|
|
11
|
-
}: ResizablePrimitive.PanelProps):
|
|
11
|
+
}: ResizablePrimitive.PanelProps): react_jsx_runtime229.JSX.Element;
|
|
12
12
|
declare function ResizableHandle({
|
|
13
13
|
withHandle,
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
16
|
}: ResizablePrimitive.SeparatorProps & {
|
|
17
17
|
withHandle?: boolean;
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime229.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
21
21
|
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime232 from "react/jsx-runtime";
|
|
2
2
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
3
3
|
|
|
4
4
|
//#region src/components/scroll-area.d.ts
|
|
@@ -6,12 +6,12 @@ declare function ScrollArea({
|
|
|
6
6
|
className,
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: ScrollArea$1.Root.Props):
|
|
9
|
+
}: ScrollArea$1.Root.Props): react_jsx_runtime232.JSX.Element;
|
|
10
10
|
declare function ScrollBar({
|
|
11
11
|
className,
|
|
12
12
|
orientation,
|
|
13
13
|
...props
|
|
14
|
-
}: ScrollArea$1.Scrollbar.Props):
|
|
14
|
+
}: ScrollArea$1.Scrollbar.Props): react_jsx_runtime232.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ScrollArea, ScrollBar };
|
|
17
17
|
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import "react";
|
|
1
|
+
import { t as cn } from "../utils-mWJR2N24.js";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
4
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
5
5
|
|
|
6
6
|
//#region src/components/scroll-area.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime234 from "react/jsx-runtime";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime226 from "react/jsx-runtime";
|
|
3
3
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
4
4
|
|
|
5
5
|
//#region src/components/select.d.ts
|
|
@@ -7,11 +7,11 @@ declare const Select: typeof Select$1.Root;
|
|
|
7
7
|
declare function SelectGroup({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: Select$1.Group.Props):
|
|
10
|
+
}: Select$1.Group.Props): react_jsx_runtime234.JSX.Element;
|
|
11
11
|
declare function SelectValue({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: Select$1.Value.Props):
|
|
14
|
+
}: Select$1.Value.Props): react_jsx_runtime234.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
@@ -19,7 +19,7 @@ declare function SelectTrigger({
|
|
|
19
19
|
...props
|
|
20
20
|
}: Select$1.Trigger.Props & {
|
|
21
21
|
size?: "sm" | "default";
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime234.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
@@ -29,28 +29,28 @@ declare function SelectContent({
|
|
|
29
29
|
alignOffset,
|
|
30
30
|
alignItemWithTrigger,
|
|
31
31
|
...props
|
|
32
|
-
}: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">):
|
|
32
|
+
}: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): react_jsx_runtime234.JSX.Element;
|
|
33
33
|
declare function SelectLabel({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: Select$1.GroupLabel.Props):
|
|
36
|
+
}: Select$1.GroupLabel.Props): react_jsx_runtime234.JSX.Element;
|
|
37
37
|
declare function SelectItem({
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: Select$1.Item.Props):
|
|
41
|
+
}: Select$1.Item.Props): react_jsx_runtime234.JSX.Element;
|
|
42
42
|
declare function SelectSeparator({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: Select$1.Separator.Props):
|
|
45
|
+
}: Select$1.Separator.Props): react_jsx_runtime234.JSX.Element;
|
|
46
46
|
declare function SelectScrollUpButton({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React$1.ComponentProps<typeof Select$1.ScrollUpArrow>):
|
|
49
|
+
}: React$1.ComponentProps<typeof Select$1.ScrollUpArrow>): react_jsx_runtime234.JSX.Element;
|
|
50
50
|
declare function SelectScrollDownButton({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: React$1.ComponentProps<typeof Select$1.ScrollDownArrow>):
|
|
53
|
+
}: React$1.ComponentProps<typeof Select$1.ScrollDownArrow>): react_jsx_runtime234.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
56
56
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { t as cn } from "../utils-
|
|
4
|
-
import "react";
|
|
3
|
+
import { t as cn } from "../utils-mWJR2N24.js";
|
|
5
4
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
7
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
8
8
|
|
|
9
9
|
//#region src/components/select.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
1
|
+
import { t as Separator } from "../separator-CuuVnw-z.js";
|
|
2
2
|
export { Separator };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime215 from "react/jsx-runtime";
|
|
3
3
|
import { Dialog } from "@base-ui/react/dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/components/sheet.d.ts
|
|
6
6
|
declare function Sheet({
|
|
7
7
|
...props
|
|
8
|
-
}: Dialog.Root.Props):
|
|
8
|
+
}: Dialog.Root.Props): react_jsx_runtime135.JSX.Element;
|
|
9
9
|
declare function SheetTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: Dialog.Trigger.Props):
|
|
11
|
+
}: Dialog.Trigger.Props): react_jsx_runtime135.JSX.Element;
|
|
12
12
|
declare function SheetClose({
|
|
13
13
|
...props
|
|
14
|
-
}: Dialog.Close.Props):
|
|
14
|
+
}: Dialog.Close.Props): react_jsx_runtime135.JSX.Element;
|
|
15
15
|
declare function SheetContent({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
@@ -21,23 +21,23 @@ declare function SheetContent({
|
|
|
21
21
|
}: Dialog.Popup.Props & {
|
|
22
22
|
side?: "top" | "right" | "bottom" | "left";
|
|
23
23
|
showCloseButton?: boolean;
|
|
24
|
-
}):
|
|
24
|
+
}): react_jsx_runtime135.JSX.Element;
|
|
25
25
|
declare function SheetHeader({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentProps<"div">):
|
|
28
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
29
29
|
declare function SheetFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentProps<"div">):
|
|
32
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
33
33
|
declare function SheetTitle({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: Dialog.Title.Props):
|
|
36
|
+
}: Dialog.Title.Props): react_jsx_runtime135.JSX.Element;
|
|
37
37
|
declare function SheetDescription({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: Dialog.Description.Props):
|
|
40
|
+
}: Dialog.Description.Props): react_jsx_runtime135.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
43
43
|
//# sourceMappingURL=sheet.d.ts.map
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import "../utils-
|
|
4
|
-
import "../button-
|
|
5
|
-
import { a as SheetFooter, c as SheetTrigger, i as SheetDescription, n as SheetClose, o as SheetHeader, r as SheetContent, s as SheetTitle, t as Sheet } from "../sheet-
|
|
3
|
+
import "../utils-mWJR2N24.js";
|
|
4
|
+
import "../button-hBUFMmsZ.js";
|
|
5
|
+
import { a as SheetFooter, c as SheetTrigger, i as SheetDescription, n as SheetClose, o as SheetHeader, r as SheetContent, s as SheetTitle, t as Sheet } from "../sheet-CLjNDrfL.js";
|
|
6
6
|
|
|
7
7
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import { t as Separator } from "../separator-
|
|
3
|
-
import { t as Input } from "../input-
|
|
1
|
+
import { t as Button } from "../button-BWB2PWYv.js";
|
|
2
|
+
import { t as Separator } from "../separator-CuuVnw-z.js";
|
|
3
|
+
import { t as Input } from "../input-CKTvQqOU.js";
|
|
4
4
|
import { n as TooltipContent } from "../tooltip-ChzCP6Bv.js";
|
|
5
|
+
import * as react_jsx_runtime260 from "react/jsx-runtime";
|
|
5
6
|
import * as React$1 from "react";
|
|
6
|
-
import * as react_jsx_runtime272 from "react/jsx-runtime";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
-
import * as
|
|
9
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
10
10
|
|
|
11
11
|
//#region src/components/sidebar.d.ts
|
|
12
12
|
type SidebarContextProps = {
|
|
@@ -31,7 +31,7 @@ declare function SidebarProvider({
|
|
|
31
31
|
defaultOpen?: boolean;
|
|
32
32
|
open?: boolean;
|
|
33
33
|
onOpenChange?: (open: boolean) => void;
|
|
34
|
-
}):
|
|
34
|
+
}): react_jsx_runtime260.JSX.Element;
|
|
35
35
|
declare function Sidebar({
|
|
36
36
|
side,
|
|
37
37
|
variant,
|
|
@@ -44,44 +44,44 @@ declare function Sidebar({
|
|
|
44
44
|
side?: "left" | "right";
|
|
45
45
|
variant?: "sidebar" | "floating" | "inset";
|
|
46
46
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
47
|
-
}):
|
|
47
|
+
}): react_jsx_runtime260.JSX.Element;
|
|
48
48
|
declare function SidebarTrigger({
|
|
49
49
|
className,
|
|
50
50
|
onClick,
|
|
51
51
|
...props
|
|
52
|
-
}: React$1.ComponentProps<typeof Button>):
|
|
52
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime260.JSX.Element;
|
|
53
53
|
declare function SidebarRail({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React$1.ComponentProps<"button">):
|
|
56
|
+
}: React$1.ComponentProps<"button">): react_jsx_runtime260.JSX.Element;
|
|
57
57
|
declare function SidebarInset({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React$1.ComponentProps<"main">):
|
|
60
|
+
}: React$1.ComponentProps<"main">): react_jsx_runtime260.JSX.Element;
|
|
61
61
|
declare function SidebarInput({
|
|
62
62
|
className,
|
|
63
63
|
...props
|
|
64
|
-
}: React$1.ComponentProps<typeof Input>):
|
|
64
|
+
}: React$1.ComponentProps<typeof Input>): react_jsx_runtime260.JSX.Element;
|
|
65
65
|
declare function SidebarHeader({
|
|
66
66
|
className,
|
|
67
67
|
...props
|
|
68
|
-
}: React$1.ComponentProps<"div">):
|
|
68
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
69
69
|
declare function SidebarFooter({
|
|
70
70
|
className,
|
|
71
71
|
...props
|
|
72
|
-
}: React$1.ComponentProps<"div">):
|
|
72
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
73
73
|
declare function SidebarSeparator({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
76
|
-
}: React$1.ComponentProps<typeof Separator>):
|
|
76
|
+
}: React$1.ComponentProps<typeof Separator>): react_jsx_runtime260.JSX.Element;
|
|
77
77
|
declare function SidebarContent({
|
|
78
78
|
className,
|
|
79
79
|
...props
|
|
80
|
-
}: React$1.ComponentProps<"div">):
|
|
80
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
81
81
|
declare function SidebarGroup({
|
|
82
82
|
className,
|
|
83
83
|
...props
|
|
84
|
-
}: React$1.ComponentProps<"div">):
|
|
84
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
85
85
|
declare function SidebarGroupLabel({
|
|
86
86
|
className,
|
|
87
87
|
render,
|
|
@@ -95,19 +95,19 @@ declare function SidebarGroupAction({
|
|
|
95
95
|
declare function SidebarGroupContent({
|
|
96
96
|
className,
|
|
97
97
|
...props
|
|
98
|
-
}: React$1.ComponentProps<"div">):
|
|
98
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
99
99
|
declare function SidebarMenu({
|
|
100
100
|
className,
|
|
101
101
|
...props
|
|
102
|
-
}: React$1.ComponentProps<"ul">):
|
|
102
|
+
}: React$1.ComponentProps<"ul">): react_jsx_runtime260.JSX.Element;
|
|
103
103
|
declare function SidebarMenuItem({
|
|
104
104
|
className,
|
|
105
105
|
...props
|
|
106
|
-
}: React$1.ComponentProps<"li">):
|
|
106
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime260.JSX.Element;
|
|
107
107
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
108
108
|
variant?: "default" | "outline" | null | undefined;
|
|
109
109
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
110
|
-
} &
|
|
110
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
111
111
|
declare function SidebarMenuButton({
|
|
112
112
|
render,
|
|
113
113
|
isActive,
|
|
@@ -119,7 +119,7 @@ declare function SidebarMenuButton({
|
|
|
119
119
|
}: useRender.ComponentProps<"button"> & React$1.ComponentProps<"button"> & {
|
|
120
120
|
isActive?: boolean;
|
|
121
121
|
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
122
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
122
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime260.JSX.Element;
|
|
123
123
|
declare function SidebarMenuAction({
|
|
124
124
|
className,
|
|
125
125
|
render,
|
|
@@ -131,22 +131,22 @@ declare function SidebarMenuAction({
|
|
|
131
131
|
declare function SidebarMenuBadge({
|
|
132
132
|
className,
|
|
133
133
|
...props
|
|
134
|
-
}: React$1.ComponentProps<"div">):
|
|
134
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime260.JSX.Element;
|
|
135
135
|
declare function SidebarMenuSkeleton({
|
|
136
136
|
className,
|
|
137
137
|
showIcon,
|
|
138
138
|
...props
|
|
139
139
|
}: React$1.ComponentProps<"div"> & {
|
|
140
140
|
showIcon?: boolean;
|
|
141
|
-
}):
|
|
141
|
+
}): react_jsx_runtime260.JSX.Element;
|
|
142
142
|
declare function SidebarMenuSub({
|
|
143
143
|
className,
|
|
144
144
|
...props
|
|
145
|
-
}: React$1.ComponentProps<"ul">):
|
|
145
|
+
}: React$1.ComponentProps<"ul">): react_jsx_runtime260.JSX.Element;
|
|
146
146
|
declare function SidebarMenuSubItem({
|
|
147
147
|
className,
|
|
148
148
|
...props
|
|
149
|
-
}: React$1.ComponentProps<"li">):
|
|
149
|
+
}: React$1.ComponentProps<"li">): react_jsx_runtime260.JSX.Element;
|
|
150
150
|
declare function SidebarMenuSubButton({
|
|
151
151
|
render,
|
|
152
152
|
size,
|