@customafk/lunas-ui 0.0.91 → 0.0.93
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/{add-new-yRbAl8jO.js → add-new-CDApqBax.js} +2 -2
- package/dist/{add-new-yRbAl8jO.js.map → add-new-CDApqBax.js.map} +1 -1
- package/dist/{add-new-Dv7zlN-B.cjs → add-new-D-WSaAM3.cjs} +2 -2
- package/dist/{add-new-Dv7zlN-B.cjs.map → add-new-D-WSaAM3.cjs.map} +1 -1
- package/dist/{avatar-CAr8qOV9.cjs → avatar-96dXWrWU.cjs} +1 -1
- package/dist/{avatar-CAr8qOV9.cjs.map → avatar-96dXWrWU.cjs.map} +1 -1
- package/dist/{avatar-zx6-WY2L.js → avatar-CcbiQ1mq.js} +1 -1
- package/dist/{avatar-zx6-WY2L.js.map → avatar-CcbiQ1mq.js.map} +1 -1
- package/dist/{badge-_7ZCk7u2.cjs → badge-B1y6KFfh.cjs} +1 -1
- package/dist/{badge-_7ZCk7u2.cjs.map → badge-B1y6KFfh.cjs.map} +1 -1
- package/dist/{badge-DFlMOdsm.js → badge-DWc4Idn2.js} +1 -1
- package/dist/{badge-DFlMOdsm.js.map → badge-DWc4Idn2.js.map} +1 -1
- package/dist/{button-BuyrlYHs.d.cts → button-Cmrl9fVS.d.cts} +5 -5
- package/dist/{button-BP2S40Lh.d.ts → button-D8ha3suV.d.ts} +5 -5
- package/dist/cards/simple-card.d.ts +2 -2
- package/dist/{command-mz4oiB8D.d.ts → command-BvD9KzBE.d.ts} +12 -12
- package/dist/{command-FHT81qCY.d.cts → command-DcLWxu3u.d.cts} +12 -12
- package/dist/data-display/country.cjs +1 -1
- package/dist/data-display/country.js +1 -1
- package/dist/data-display/date-tooltip.cjs +1 -1
- package/dist/data-display/date-tooltip.js +1 -1
- package/dist/data-display/date.cjs +1 -1
- package/dist/data-display/date.js +1 -1
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.js +1 -1
- package/dist/data-display/phone-number.cjs +1 -1
- package/dist/data-display/phone-number.js +1 -1
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.js +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/data-display/user.cjs +1 -1
- package/dist/data-display/user.js +1 -1
- package/dist/{date-BIb58beV.js → date-4JlD-xYj.js} +1 -1
- package/dist/{date-BIb58beV.js.map → date-4JlD-xYj.js.map} +1 -1
- package/dist/{date-Bv13VRWU.cjs → date-vWvu4M91.cjs} +1 -1
- package/dist/{date-Bv13VRWU.cjs.map → date-vWvu4M91.cjs.map} +1 -1
- package/dist/{dialog-JtlljVFY.d.ts → dialog-BFte9fya.d.ts} +12 -12
- package/dist/{dialog-DEixzKid.d.cts → dialog-BRaqPBK5.d.cts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +3 -3
- package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/{drawer-B0PYArcE.js → drawer-C6IT7ONM.js} +1 -1
- package/dist/{drawer-B0PYArcE.js.map → drawer-C6IT7ONM.js.map} +1 -1
- package/dist/{drawer-CmRrJYoS.cjs → drawer-Dc432Nt9.cjs} +1 -1
- package/dist/{drawer-CmRrJYoS.cjs.map → drawer-Dc432Nt9.cjs.map} +1 -1
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.cjs +1 -1
- package/dist/forms/text-field.cjs.map +1 -1
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/text-field.js +1 -1
- package/dist/forms/text-field.js.map +1 -1
- package/dist/forms/textarea-field.cjs +1 -1
- package/dist/forms/textarea-field.cjs.map +1 -1
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/forms/textarea-field.js +1 -1
- package/dist/forms/textarea-field.js.map +1 -1
- package/dist/{input-BYy6D7Ol.d.cts → input-BupRhPyb.d.cts} +3 -3
- package/dist/label-DPchUZl_.d.cts +11 -0
- package/dist/{label-7ZZm6YlQ.d.cts → label-Dn6KaHvL.d.ts} +3 -3
- package/dist/layouts/app-layout/index.cjs +1 -1
- package/dist/layouts/app-layout/index.d.cts +26 -26
- package/dist/layouts/app-layout/index.d.ts +3 -3
- package/dist/layouts/app-layout/index.js +1 -1
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.ts +2 -2
- package/dist/layouts/service-layout/index.cjs +1 -1
- package/dist/layouts/service-layout/index.d.cts +15 -15
- package/dist/layouts/service-layout/index.d.ts +5 -5
- package/dist/layouts/service-layout/index.js +1 -1
- package/dist/layouts/service-layout/index.js.map +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.ts +2 -2
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.ts +2 -2
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.ts +2 -2
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.ts +2 -2
- package/dist/{paragraph-EiPvpYGr.js → paragraph-BuE9WF5p.js} +1 -1
- package/dist/{paragraph-EiPvpYGr.js.map → paragraph-BuE9WF5p.js.map} +1 -1
- package/dist/{paragraph-Dl6mLo1q.cjs → paragraph-GYX6NlXZ.cjs} +1 -1
- package/dist/{paragraph-Dl6mLo1q.cjs.map → paragraph-GYX6NlXZ.cjs.map} +1 -1
- package/dist/products/product-quantity-control.d.ts +2 -2
- package/dist/{refresh-DHZZ9DV4.js → refresh-CNiYCRLZ.js} +2 -2
- package/dist/{refresh-DHZZ9DV4.js.map → refresh-CNiYCRLZ.js.map} +1 -1
- package/dist/{refresh-NRTjXWBR.cjs → refresh-CfPFo89K.cjs} +2 -2
- package/dist/{refresh-NRTjXWBR.cjs.map → refresh-CfPFo89K.cjs.map} +1 -1
- package/dist/{separator-D_c8h0Aq.d.cts → separator--U2QB0i9.d.ts} +1 -1
- package/dist/{separator-BhGNy7Ns.d.ts → separator-CDgUanKM.d.cts} +3 -3
- package/dist/{sidebar-CY2pOm9W.js → sidebar-9ODHuW8Q.js} +2 -2
- package/dist/{sidebar-CY2pOm9W.js.map → sidebar-9ODHuW8Q.js.map} +1 -1
- package/dist/{sidebar-CEWGDBq6.cjs → sidebar-ChCtr6kn.cjs} +2 -2
- package/dist/{sidebar-CEWGDBq6.cjs.map → sidebar-ChCtr6kn.cjs.map} +1 -1
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.d.cts +2 -2
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +1 -1
- package/dist/{toggle-Bj-orQro.d.ts → toggle-BLaqjnLT.d.ts} +3 -3
- package/dist/{toggle-BvgvHcLZ.d.cts → toggle-BO1nSjXQ.d.cts} +5 -5
- package/dist/{tooltip-DTDkf-An.d.ts → tooltip-C_Pe-E_S.d.ts} +6 -6
- package/dist/{tooltip-DfswK7wk.d.cts → tooltip-CvNMd3iC.d.cts} +6 -6
- package/dist/{tooltip-xp6RiroA.js → tooltip-DHD6S-vH.js} +1 -1
- package/dist/{tooltip-xp6RiroA.js.map → tooltip-DHD6S-vH.js.map} +1 -1
- package/dist/{tooltip-pmQZf5Bt.cjs → tooltip-v0ikl3om.cjs} +1 -1
- package/dist/{tooltip-pmQZf5Bt.cjs.map → tooltip-v0ikl3om.cjs.map} +1 -1
- package/dist/{types-bhmvOEvz.js → types-BfVUsI26.js} +1 -1
- package/dist/{types-bhmvOEvz.js.map → types-BfVUsI26.js.map} +1 -1
- package/dist/{types-Bfxd7F-g.cjs → types-_t74BXO1.cjs} +1 -1
- package/dist/{types-Bfxd7F-g.cjs.map → types-_t74BXO1.cjs.map} +1 -1
- package/dist/typography/paragraph.cjs +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/paragraph.js +1 -1
- package/dist/typography/title.d.cts +2 -2
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +6 -6
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.cjs +1 -1
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button-group.d.cts +7 -7
- package/dist/ui/button-group.d.ts +7 -7
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.js +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.js +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/drawer.cjs +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/drawer.js +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/field.d.cts +14 -14
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.ts +12 -12
- package/dist/ui/label.d.cts +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.ts +9 -9
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +30 -30
- package/dist/ui/sidebar.d.ts +27 -27
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.cjs +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +1 -1
- package/dist/label-BATJfW0U.d.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/combobox-field.d.ts
|
|
@@ -22,7 +22,7 @@ declare const ComboboxField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
description,
|
|
23
23
|
options,
|
|
24
24
|
onAddNewItem
|
|
25
|
-
}: Props<TFieldValues>) =>
|
|
25
|
+
}: Props<TFieldValues>) => react_jsx_runtime0.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { ComboboxField };
|
|
28
28
|
//# sourceMappingURL=combobox-field.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/date-field.d.ts
|
|
@@ -16,7 +16,7 @@ declare const DateField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
16
16
|
placeholder,
|
|
17
17
|
description,
|
|
18
18
|
isShowErrorMsg
|
|
19
|
-
}: Props<TFieldValues>) =>
|
|
19
|
+
}: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DateField };
|
|
22
22
|
//# sourceMappingURL=date-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/form-wrapper.d.ts
|
|
@@ -22,7 +22,7 @@ declare const FormWrapper: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
onError,
|
|
23
23
|
onSubcribe,
|
|
24
24
|
children
|
|
25
|
-
}: React.PropsWithChildren<Props<TFieldValues>>) =>
|
|
25
|
+
}: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime2.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FormWrapper };
|
|
28
28
|
//# sourceMappingURL=form-wrapper.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/form-wrapper.d.ts
|
|
@@ -22,7 +22,7 @@ declare const FormWrapper: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
onError,
|
|
23
23
|
onSubcribe,
|
|
24
24
|
children
|
|
25
|
-
}: React.PropsWithChildren<Props<TFieldValues>>) =>
|
|
25
|
+
}: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime2.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FormWrapper };
|
|
28
28
|
//# sourceMappingURL=form-wrapper.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/multi-select-field.d.ts
|
|
@@ -26,7 +26,7 @@ declare const MultiSelectField: <TFieldValues extends FieldValues = FieldValues>
|
|
|
26
26
|
className,
|
|
27
27
|
options,
|
|
28
28
|
onAdd
|
|
29
|
-
}: Props<TFieldValues>) =>
|
|
29
|
+
}: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MultiSelectField };
|
|
32
32
|
//# sourceMappingURL=multi-select-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/multi-select-field.d.ts
|
|
@@ -26,7 +26,7 @@ declare const MultiSelectField: <TFieldValues extends FieldValues = FieldValues>
|
|
|
26
26
|
className,
|
|
27
27
|
options,
|
|
28
28
|
onAdd
|
|
29
|
-
}: Props<TFieldValues>) =>
|
|
29
|
+
}: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MultiSelectField };
|
|
32
32
|
//# sourceMappingURL=multi-select-field.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/number-field.d.ts
|
|
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
unitText,
|
|
23
23
|
description,
|
|
24
24
|
onValueChange
|
|
25
|
-
}: Props<TFieldValues>) =>
|
|
25
|
+
}: Props<TFieldValues>) => react_jsx_runtime1.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { NumberField };
|
|
28
28
|
//# sourceMappingURL=number-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/number-field.d.ts
|
|
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
22
22
|
unitText,
|
|
23
23
|
description,
|
|
24
24
|
onValueChange
|
|
25
|
-
}: Props<TFieldValues>) =>
|
|
25
|
+
}: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { NumberField };
|
|
28
28
|
//# sourceMappingURL=number-field.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/password-field.d.ts
|
|
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
17
17
|
isShowErrorMsg,
|
|
18
18
|
description,
|
|
19
19
|
onValueChange
|
|
20
|
-
}: Props<TFieldValues>) =>
|
|
20
|
+
}: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { PasswordField };
|
|
23
23
|
//# sourceMappingURL=password-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/password-field.d.ts
|
|
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
17
17
|
isShowErrorMsg,
|
|
18
18
|
description,
|
|
19
19
|
onValueChange
|
|
20
|
-
}: Props<TFieldValues>) =>
|
|
20
|
+
}: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { PasswordField };
|
|
23
23
|
//# sourceMappingURL=password-field.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/select-field.d.ts
|
|
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
27
27
|
isShowErrorMsg,
|
|
28
28
|
description,
|
|
29
29
|
className
|
|
30
|
-
}: Props<TFieldValues>) =>
|
|
30
|
+
}: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SelectField };
|
|
33
33
|
//# sourceMappingURL=select-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/select-field.d.ts
|
|
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
27
27
|
isShowErrorMsg,
|
|
28
28
|
description,
|
|
29
29
|
className
|
|
30
|
-
}: Props<TFieldValues>) =>
|
|
30
|
+
}: Props<TFieldValues>) => react_jsx_runtime1.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { SelectField };
|
|
33
33
|
//# sourceMappingURL=select-field.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/switch-field.d.ts
|
|
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
15
15
|
className,
|
|
16
16
|
description,
|
|
17
17
|
isShowErrorMsg
|
|
18
|
-
}: Props<TFieldValues>) =>
|
|
18
|
+
}: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SwitchField };
|
|
21
21
|
//# sourceMappingURL=switch-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/switch-field.d.ts
|
|
@@ -15,7 +15,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
15
15
|
className,
|
|
16
16
|
description,
|
|
17
17
|
isShowErrorMsg
|
|
18
|
-
}: Props<TFieldValues>) =>
|
|
18
|
+
}: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SwitchField };
|
|
21
21
|
//# sourceMappingURL=switch-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../input-D7aXVX7j.cjs`),i=require(`../flex-DgmCJ9Bz.cjs`);let a=require(`lucide-react`);a=e.__toESM(a);let o=require(`@customafk/react-toolkit/utils`);o=e.__toESM(o);let s=require(`react`);s=e.__toESM(s);let c=require(`react/jsx-runtime`);c=e.__toESM(c);let l=require(`react-hook-form`);l=e.__toESM(l);const u=({name:e,label:u=`Text Field`,placeholder:d=`Enter text here`,isShowLabel:f=!0,isShowClearButton:p=!1,isShowErrorMsg:m=!1,isShowCount:h=!1,description:g,className:_=``,onValueChange:v})=>{let{resetField:y}=n.useFormField(),b=(0,l.useWatch)({name:e}),x=(0,s.useCallback)(()=>{y(e)},[y,e]);return(0,c.jsx)(n.FormField,{name:e,render:({field:e})=>(0,c.jsxs)(n.FormItem,{className:_,children:[(0,c.jsx)(t.FieldContent,{children:(0,c.jsxs)(s.Activity,{mode:u||g?`visible`:`hidden`,children:[f&&(0,c.jsx)(n.FormLabel,{children:u}),!!g&&(0,c.jsx)(n.FormDescription,{children:g})]})}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(n.FormControl,{children:(0,c.jsx)(r.Input,{...e,placeholder:d,className:(0,o.cn)(`w-full`,p&&`pr-9`),onValueChange:v})}),p&&b&&(0,c.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../input-D7aXVX7j.cjs`),i=require(`../flex-DgmCJ9Bz.cjs`);let a=require(`lucide-react`);a=e.__toESM(a);let o=require(`@customafk/react-toolkit/utils`);o=e.__toESM(o);let s=require(`react`);s=e.__toESM(s);let c=require(`react/jsx-runtime`);c=e.__toESM(c);let l=require(`react-hook-form`);l=e.__toESM(l);const u=({name:e,label:u=`Text Field`,placeholder:d=`Enter text here`,isShowLabel:f=!0,isShowClearButton:p=!1,isShowErrorMsg:m=!1,isShowCount:h=!1,description:g,className:_=``,onValueChange:v})=>{let{resetField:y}=n.useFormField(),b=(0,l.useWatch)({name:e}),x=(0,s.useCallback)(()=>{y(e)},[y,e]);return(0,c.jsx)(n.FormField,{name:e,render:({field:e})=>(0,c.jsxs)(n.FormItem,{className:_,children:[(0,c.jsx)(t.FieldContent,{children:(0,c.jsxs)(s.Activity,{mode:u||g?`visible`:`hidden`,children:[f&&(0,c.jsx)(n.FormLabel,{children:u}),!!g&&(0,c.jsx)(n.FormDescription,{children:g})]})}),(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(n.FormControl,{children:(0,c.jsx)(r.Input,{...e,placeholder:d,className:(0,o.cn)(`w-full`,p&&`pr-9`),onValueChange:v})}),p&&b&&(0,c.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 top-3 end-0 flex h-fit w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:x,children:(0,c.jsx)(a.XIcon,{size:14,"aria-hidden":`true`})}),(0,c.jsxs)(i.Flex,{width:`full`,padding:`none`,justify:`end`,children:[m&&(0,c.jsx)(n.FormMessage,{className:`grow`}),h&&(0,c.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[b?.length??0,` characters`]})]})]})]})})};exports.TextField=u;
|
|
2
2
|
//# sourceMappingURL=text-field.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.cjs","names":["useFormField","FormField","FormItem","FieldContent","Activity","FormLabel","FormDescription","FormControl","Input","XIcon","Flex","FormMessage"],"sources":["../../packages/components/forms/text-field.tsx"],"sourcesContent":["'use client';\nimport { Activity, useCallback } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../ui/form';\nimport { Input } from '../ui/input';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowLabel?: boolean;\n isShowClearButton?: boolean;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n className?: string;\n onValueChange?: (value: string) => void;\n};\nexport const TextField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Text Field',\n placeholder = 'Enter text here',\n isShowLabel = true,\n isShowClearButton = false,\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n className = '',\n onValueChange,\n}: Props<TFieldValues>) => {\n const { resetField } = useFormField();\n const valueWatch = useWatch({ name });\n\n const handleClearInput = useCallback(() => {\n resetField(name);\n }, [resetField, name]);\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className={className}>\n <FieldContent>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </Activity>\n </FieldContent>\n <div className=\"relative\">\n <FormControl>\n <Input {...field} placeholder={placeholder} className={cn('w-full', isShowClearButton && 'pr-9')} onValueChange={onValueChange} />\n </FormControl>\n {isShowClearButton && valueWatch && (\n <button\n type=\"button\"\n className=\"text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-
|
|
1
|
+
{"version":3,"file":"text-field.cjs","names":["useFormField","FormField","FormItem","FieldContent","Activity","FormLabel","FormDescription","FormControl","Input","XIcon","Flex","FormMessage"],"sources":["../../packages/components/forms/text-field.tsx"],"sourcesContent":["'use client';\nimport { Activity, useCallback } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../ui/form';\nimport { Input } from '../ui/input';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowLabel?: boolean;\n isShowClearButton?: boolean;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n className?: string;\n onValueChange?: (value: string) => void;\n};\nexport const TextField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Text Field',\n placeholder = 'Enter text here',\n isShowLabel = true,\n isShowClearButton = false,\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n className = '',\n onValueChange,\n}: Props<TFieldValues>) => {\n const { resetField } = useFormField();\n const valueWatch = useWatch({ name });\n\n const handleClearInput = useCallback(() => {\n resetField(name);\n }, [resetField, name]);\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className={className}>\n <FieldContent>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </Activity>\n </FieldContent>\n <div className=\"relative\">\n <FormControl>\n <Input {...field} placeholder={placeholder} className={cn('w-full', isShowClearButton && 'pr-9')} onValueChange={onValueChange} />\n </FormControl>\n {isShowClearButton && valueWatch && (\n <button\n type=\"button\"\n className=\"text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 top-3 end-0 flex h-fit w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2\"\n aria-label=\"Clear input\"\n onClick={handleClearInput}\n >\n <XIcon size={14} aria-hidden=\"true\" />\n </button>\n )}\n <Flex width=\"full\" padding=\"none\" justify=\"end\">\n {isShowErrorMsg && <FormMessage className=\"grow\" />}\n {isShowCount && <div className=\"text-text-positive-weak text-end text-xs\">{valueWatch?.length ?? 0} characters</div>}\n </Flex>\n </div>\n </FormItem>\n )}\n />\n );\n};\n"],"mappings":"ggBAyBA,MAAa,GAA6D,CACxE,OACA,QAAQ,aACR,cAAc,kBACd,cAAc,GACd,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,GACd,cACA,YAAY,GACZ,mBACyB,CACzB,GAAM,CAAE,cAAeA,EAAAA,cAAc,CAC/B,GAAA,EAAA,EAAA,UAAsB,CAAE,OAAM,CAAC,CAE/B,GAAA,EAAA,EAAA,iBAAqC,CACzC,EAAW,EAAK,EACf,CAAC,EAAY,EAAK,CAAC,CAEtB,OACE,EAAA,EAAA,KAACC,EAAAA,UAAAA,CACO,OACN,QAAS,CAAE,YACT,EAAA,EAAA,MAACC,EAAAA,SAAAA,CAAoB,uBACnB,EAAA,EAAA,KAACC,EAAAA,aAAAA,CAAAA,UACC,EAAA,EAAA,MAACC,EAAAA,SAAAA,CAAS,KAAM,GAAS,EAAc,UAAY,mBAChD,IAAe,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAAA,SAAW,EAAA,CAAkB,CAC7C,CAAC,CAAC,IAAe,EAAA,EAAA,KAACC,EAAAA,gBAAAA,CAAAA,SAAiB,EAAA,CAA8B,CAAA,EACzD,CAAA,CACE,EACf,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,sBACb,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,MAAAA,CAAM,GAAI,EAAoB,cAAa,WAAA,EAAA,EAAA,IAAc,SAAU,GAAqB,OAAO,CAAiB,iBAAiB,CAAA,CACtH,CACb,GAAqB,IACpB,EAAA,EAAA,KAAC,SAAA,CACC,KAAK,SACL,UAAU,8PACV,aAAW,cACX,QAAS,YAET,EAAA,EAAA,KAACC,EAAAA,MAAAA,CAAM,KAAM,GAAI,cAAY,QAAS,EAC/B,EAEX,EAAA,EAAA,MAACC,EAAAA,KAAAA,CAAK,MAAM,OAAO,QAAQ,OAAO,QAAQ,gBACvC,IAAkB,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAY,UAAU,OAAA,CAAS,CAClD,IAAe,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,qDAA4C,GAAY,QAAU,EAAE,cAAA,EAAiB,CAAA,EAC/G,GACH,CAAA,EACG,EAEb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/text-field.d.ts
|
|
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
25
25
|
description,
|
|
26
26
|
className,
|
|
27
27
|
onValueChange
|
|
28
|
-
}: Props<TFieldValues>) =>
|
|
28
|
+
}: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TextField };
|
|
31
31
|
//# sourceMappingURL=text-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/text-field.d.ts
|
|
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
25
25
|
description,
|
|
26
26
|
className,
|
|
27
27
|
onValueChange
|
|
28
|
-
}: Props<TFieldValues>) =>
|
|
28
|
+
}: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { TextField };
|
|
31
31
|
//# sourceMappingURL=text-field.d.ts.map
|
package/dist/forms/text-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-DbknMHac.js";import{Input as c}from"../input-B-l6tT_9.js";import{Flex as l}from"../flex-BJgsQWLI.js";import{XIcon as u}from"lucide-react";import{cn as d}from"@customafk/react-toolkit/utils";import{Activity as f,useCallback as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useWatch as g}from"react-hook-form";const _=({name:_,label:v=`Text Field`,placeholder:y=`Enter text here`,isShowLabel:b=!0,isShowClearButton:x=!1,isShowErrorMsg:S=!1,isShowCount:C=!1,description:w,className:T=``,onValueChange:E})=>{let{resetField:D}=s(),O=g({name:_}),k=p(()=>{D(_)},[D,_]);return m(r,{name:_,render:({field:r})=>h(i,{className:T,children:[m(e,{children:h(f,{mode:v||w?`visible`:`hidden`,children:[b&&m(a,{children:v}),!!w&&m(n,{children:w})]})}),h(`div`,{className:`relative`,children:[m(t,{children:m(c,{...r,placeholder:y,className:d(`w-full`,x&&`pr-9`),onValueChange:E})}),x&&O&&m(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-DbknMHac.js";import{Input as c}from"../input-B-l6tT_9.js";import{Flex as l}from"../flex-BJgsQWLI.js";import{XIcon as u}from"lucide-react";import{cn as d}from"@customafk/react-toolkit/utils";import{Activity as f,useCallback as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{useWatch as g}from"react-hook-form";const _=({name:_,label:v=`Text Field`,placeholder:y=`Enter text here`,isShowLabel:b=!0,isShowClearButton:x=!1,isShowErrorMsg:S=!1,isShowCount:C=!1,description:w,className:T=``,onValueChange:E})=>{let{resetField:D}=s(),O=g({name:_}),k=p(()=>{D(_)},[D,_]);return m(r,{name:_,render:({field:r})=>h(i,{className:T,children:[m(e,{children:h(f,{mode:v||w?`visible`:`hidden`,children:[b&&m(a,{children:v}),!!w&&m(n,{children:w})]})}),h(`div`,{className:`relative`,children:[m(t,{children:m(c,{...r,placeholder:y,className:d(`w-full`,x&&`pr-9`),onValueChange:E})}),x&&O&&m(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 top-3 end-0 flex h-fit w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:k,children:m(u,{size:14,"aria-hidden":`true`})}),h(l,{width:`full`,padding:`none`,justify:`end`,children:[S&&m(o,{className:`grow`}),C&&h(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[O?.length??0,` characters`]})]})]})]})})};export{_ as TextField};
|
|
2
2
|
//# sourceMappingURL=text-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.js","names":[],"sources":["../../packages/components/forms/text-field.tsx"],"sourcesContent":["'use client';\nimport { Activity, useCallback } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../ui/form';\nimport { Input } from '../ui/input';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowLabel?: boolean;\n isShowClearButton?: boolean;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n className?: string;\n onValueChange?: (value: string) => void;\n};\nexport const TextField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Text Field',\n placeholder = 'Enter text here',\n isShowLabel = true,\n isShowClearButton = false,\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n className = '',\n onValueChange,\n}: Props<TFieldValues>) => {\n const { resetField } = useFormField();\n const valueWatch = useWatch({ name });\n\n const handleClearInput = useCallback(() => {\n resetField(name);\n }, [resetField, name]);\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className={className}>\n <FieldContent>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </Activity>\n </FieldContent>\n <div className=\"relative\">\n <FormControl>\n <Input {...field} placeholder={placeholder} className={cn('w-full', isShowClearButton && 'pr-9')} onValueChange={onValueChange} />\n </FormControl>\n {isShowClearButton && valueWatch && (\n <button\n type=\"button\"\n className=\"text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-
|
|
1
|
+
{"version":3,"file":"text-field.js","names":[],"sources":["../../packages/components/forms/text-field.tsx"],"sourcesContent":["'use client';\nimport { Activity, useCallback } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from '../ui/form';\nimport { Input } from '../ui/input';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowLabel?: boolean;\n isShowClearButton?: boolean;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n className?: string;\n onValueChange?: (value: string) => void;\n};\nexport const TextField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Text Field',\n placeholder = 'Enter text here',\n isShowLabel = true,\n isShowClearButton = false,\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n className = '',\n onValueChange,\n}: Props<TFieldValues>) => {\n const { resetField } = useFormField();\n const valueWatch = useWatch({ name });\n\n const handleClearInput = useCallback(() => {\n resetField(name);\n }, [resetField, name]);\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className={className}>\n <FieldContent>\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n {isShowLabel && <FormLabel>{label}</FormLabel>}\n {!!description && <FormDescription>{description}</FormDescription>}\n </Activity>\n </FieldContent>\n <div className=\"relative\">\n <FormControl>\n <Input {...field} placeholder={placeholder} className={cn('w-full', isShowClearButton && 'pr-9')} onValueChange={onValueChange} />\n </FormControl>\n {isShowClearButton && valueWatch && (\n <button\n type=\"button\"\n className=\"text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 top-3 end-0 flex h-fit w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2\"\n aria-label=\"Clear input\"\n onClick={handleClearInput}\n >\n <XIcon size={14} aria-hidden=\"true\" />\n </button>\n )}\n <Flex width=\"full\" padding=\"none\" justify=\"end\">\n {isShowErrorMsg && <FormMessage className=\"grow\" />}\n {isShowCount && <div className=\"text-text-positive-weak text-end text-xs\">{valueWatch?.length ?? 0} characters</div>}\n </Flex>\n </div>\n </FormItem>\n )}\n />\n );\n};\n"],"mappings":"qlBAyBA,MAAa,GAA6D,CACxE,OACA,QAAQ,aACR,cAAc,kBACd,cAAc,GACd,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,GACd,cACA,YAAY,GACZ,mBACyB,CACzB,GAAM,CAAE,cAAe,GAAc,CAC/B,EAAa,EAAS,CAAE,OAAM,CAAC,CAE/B,EAAmB,MAAkB,CACzC,EAAW,EAAK,EACf,CAAC,EAAY,EAAK,CAAC,CAEtB,OACE,EAAC,EAAA,CACO,OACN,QAAS,CAAE,WACT,EAAC,EAAA,CAAoB,sBACnB,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAS,KAAM,GAAS,EAAc,UAAY,mBAChD,GAAe,EAAC,EAAA,CAAA,SAAW,EAAA,CAAkB,CAC7C,CAAC,CAAC,GAAe,EAAC,EAAA,CAAA,SAAiB,EAAA,CAA8B,CAAA,EACzD,CAAA,CACE,CACf,EAAC,MAAA,CAAI,UAAU,qBACb,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAM,GAAI,EAAoB,cAAa,UAAW,EAAG,SAAU,GAAqB,OAAO,CAAiB,iBAAiB,CAAA,CACtH,CACb,GAAqB,GACpB,EAAC,SAAA,CACC,KAAK,SACL,UAAU,8PACV,aAAW,cACX,QAAS,WAET,EAAC,EAAA,CAAM,KAAM,GAAI,cAAY,QAAS,EAC/B,CAEX,EAAC,EAAA,CAAK,MAAM,OAAO,QAAQ,OAAO,QAAQ,gBACvC,GAAkB,EAAC,EAAA,CAAY,UAAU,OAAA,CAAS,CAClD,GAAe,EAAC,MAAA,CAAI,UAAU,qDAA4C,GAAY,QAAU,EAAE,cAAA,EAAiB,CAAA,EAC/G,GACH,CAAA,EACG,EAEb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../textarea-C3ZQALlB.cjs`);let
|
|
1
|
+
"use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BMBHBFRY.cjs`),require(`../separator-BAyL2IIW.cjs`);const t=require(`../field-B_qC62YD.cjs`),n=require(`../form-t4WaMbFV.cjs`),r=require(`../flex-DgmCJ9Bz.cjs`),i=require(`../textarea-C3ZQALlB.cjs`);let a=require(`react`);a=e.__toESM(a);let o=require(`react/jsx-runtime`);o=e.__toESM(o);let s=require(`react-hook-form`);s=e.__toESM(s);const c=({name:e,label:c=`Textarea Field`,placeholder:l=`Enter text here`,isShowErrorMsg:u=!1,isShowCount:d=!1,description:f,rows:p=3,onValueChange:m})=>{let h=(0,s.useWatch)({name:e});return(0,o.jsx)(n.FormField,{name:e,render:({field:e})=>(0,o.jsxs)(n.FormItem,{className:`w-full`,children:[(0,o.jsx)(a.Activity,{mode:c||f?`visible`:`hidden`,children:(0,o.jsxs)(t.FieldContent,{children:[(0,o.jsx)(n.FormLabel,{children:c}),!!f&&(0,o.jsx)(n.FormDescription,{children:f})]})}),(0,o.jsxs)(`div`,{className:`relative`,children:[(0,o.jsx)(n.FormControl,{children:(0,o.jsx)(i.Textarea,{...e,placeholder:l,className:`w-full`,rows:p,onValueChange:m})}),(0,o.jsxs)(r.Flex,{width:`full`,padding:`none`,justify:`end`,children:[d&&(0,o.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[h?.length??0,` characters`]}),u&&(0,o.jsx)(n.FormMessage,{})]})]})]})})};exports.TextareaField=c;
|
|
2
2
|
//# sourceMappingURL=textarea-field.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-field.cjs","names":["FormField","FormItem","Activity","FieldContent","FormLabel","FormDescription","FormControl","Textarea","FormMessage"],"sources":["../../packages/components/forms/textarea-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { Textarea } from '../ui/textarea';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n rows?: number;\n onValueChange?: (value: string) => void;\n};\nexport const TextareaField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Textarea Field',\n placeholder = 'Enter text here',\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n rows = 3,\n onValueChange,\n}: Props<TFieldValues>) => {\n const valueWatch = useWatch({ name });\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className=\"w-full\">\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n <FormLabel>{label}</FormLabel>\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <
|
|
1
|
+
{"version":3,"file":"textarea-field.cjs","names":["FormField","FormItem","Activity","FieldContent","FormLabel","FormDescription","FormControl","Textarea","Flex","FormMessage"],"sources":["../../packages/components/forms/textarea-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { Textarea } from '../ui/textarea';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n rows?: number;\n onValueChange?: (value: string) => void;\n};\nexport const TextareaField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Textarea Field',\n placeholder = 'Enter text here',\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n rows = 3,\n onValueChange,\n}: Props<TFieldValues>) => {\n const valueWatch = useWatch({ name });\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className=\"w-full\">\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n <FormLabel>{label}</FormLabel>\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <div className=\"relative\">\n <FormControl>\n <Textarea {...field} placeholder={placeholder} className=\"w-full\" rows={rows} onValueChange={onValueChange} />\n </FormControl>\n <Flex width=\"full\" padding=\"none\" justify=\"end\">\n {isShowCount && <div className=\"text-muted-foreground text-end text-xs\">{valueWatch?.length ?? 0} characters</div>}\n {isShowErrorMsg && <FormMessage />}\n </Flex>\n </div>\n </FormItem>\n )}\n />\n );\n};\n"],"mappings":"uZAmBA,MAAa,GAAiE,CAC5E,OACA,QAAQ,iBACR,cAAc,kBACd,iBAAiB,GACjB,cAAc,GACd,cACA,OAAO,EACP,mBACyB,CACzB,IAAM,GAAA,EAAA,EAAA,UAAsB,CAAE,OAAM,CAAC,CAErC,OACE,EAAA,EAAA,KAACA,EAAAA,UAAAA,CACO,OACN,QAAS,CAAE,YACT,EAAA,EAAA,MAACC,EAAAA,SAAAA,CAAS,UAAU,oBAClB,EAAA,EAAA,KAACC,EAAAA,SAAAA,CAAS,KAAM,GAAS,EAAc,UAAY,mBACjD,EAAA,EAAA,MAACC,EAAAA,aAAAA,CAAAA,SAAAA,EACC,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAAA,SAAW,EAAA,CAAkB,CAC7B,CAAC,CAAC,IAAe,EAAA,EAAA,KAACC,EAAAA,gBAAAA,CAAAA,SAAiB,EAAA,CAA8B,CAAA,CAAA,CACrD,EACN,EACX,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,sBACb,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,SAAAA,CAAS,GAAI,EAAoB,cAAa,UAAU,SAAe,OAAqB,iBAAiB,CAAA,CAClG,EACd,EAAA,EAAA,MAACC,EAAAA,KAAAA,CAAK,MAAM,OAAO,QAAQ,OAAO,QAAQ,gBACvC,IAAe,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,mDAA0C,GAAY,QAAU,EAAE,cAAA,EAAiB,CACjH,IAAkB,EAAA,EAAA,KAACC,EAAAA,YAAAA,EAAAA,CAAc,CAAA,EAC7B,CAAA,EACH,CAAA,EACG,EAEb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/textarea-field.d.ts
|
|
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
21
21
|
description,
|
|
22
22
|
rows,
|
|
23
23
|
onValueChange
|
|
24
|
-
}: Props<TFieldValues>) =>
|
|
24
|
+
}: Props<TFieldValues>) => react_jsx_runtime10.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TextareaField };
|
|
27
27
|
//# sourceMappingURL=textarea-field.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { FieldPath, FieldValues } from "react-hook-form";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/forms/textarea-field.d.ts
|
|
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
|
|
|
21
21
|
description,
|
|
22
22
|
rows,
|
|
23
23
|
onValueChange
|
|
24
|
-
}: Props<TFieldValues>) =>
|
|
24
|
+
}: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TextareaField };
|
|
27
27
|
//# sourceMappingURL=textarea-field.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{
|
|
1
|
+
"use client";import"../label-CRhvNQY4.js";import"../separator-C5dPRhYx.js";import{FieldContent as e}from"../field-DSScKMdZ.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o}from"../form-DbknMHac.js";import{Flex as s}from"../flex-BJgsQWLI.js";import{Textarea as c}from"../textarea-BVj6PCYB.js";import{Activity as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useWatch as f}from"react-hook-form";const p=({name:p,label:m=`Textarea Field`,placeholder:h=`Enter text here`,isShowErrorMsg:g=!1,isShowCount:_=!1,description:v,rows:y=3,onValueChange:b})=>{let x=f({name:p});return u(r,{name:p,render:({field:r})=>d(i,{className:`w-full`,children:[u(l,{mode:m||v?`visible`:`hidden`,children:d(e,{children:[u(a,{children:m}),!!v&&u(n,{children:v})]})}),d(`div`,{className:`relative`,children:[u(t,{children:u(c,{...r,placeholder:h,className:`w-full`,rows:y,onValueChange:b})}),d(s,{width:`full`,padding:`none`,justify:`end`,children:[_&&d(`div`,{className:`text-muted-foreground text-end text-xs`,children:[x?.length??0,` characters`]}),g&&u(o,{})]})]})]})})};export{p as TextareaField};
|
|
2
2
|
//# sourceMappingURL=textarea-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-field.js","names":[],"sources":["../../packages/components/forms/textarea-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { Textarea } from '../ui/textarea';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n rows?: number;\n onValueChange?: (value: string) => void;\n};\nexport const TextareaField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Textarea Field',\n placeholder = 'Enter text here',\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n rows = 3,\n onValueChange,\n}: Props<TFieldValues>) => {\n const valueWatch = useWatch({ name });\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className=\"w-full\">\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n <FormLabel>{label}</FormLabel>\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <
|
|
1
|
+
{"version":3,"file":"textarea-field.js","names":[],"sources":["../../packages/components/forms/textarea-field.tsx"],"sourcesContent":["'use client';\nimport { Activity } from 'react';\nimport { type FieldPath, type FieldValues, useWatch } from 'react-hook-form';\n\nimport { Flex } from '../layouts/flex';\nimport { FieldContent } from '../ui/field';\nimport { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../ui/form';\nimport { Textarea } from '../ui/textarea';\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n name: FieldPath<TFieldValues>;\n label?: string;\n description?: string;\n placeholder?: string;\n isShowErrorMsg?: boolean;\n isShowCount?: boolean;\n rows?: number;\n onValueChange?: (value: string) => void;\n};\nexport const TextareaField = <TFieldValues extends FieldValues = FieldValues>({\n name,\n label = 'Textarea Field',\n placeholder = 'Enter text here',\n isShowErrorMsg = false,\n isShowCount = false,\n description,\n rows = 3,\n onValueChange,\n}: Props<TFieldValues>) => {\n const valueWatch = useWatch({ name });\n\n return (\n <FormField\n name={name}\n render={({ field }) => (\n <FormItem className=\"w-full\">\n <Activity mode={label || description ? 'visible' : 'hidden'}>\n <FieldContent>\n <FormLabel>{label}</FormLabel>\n {!!description && <FormDescription>{description}</FormDescription>}\n </FieldContent>\n </Activity>\n <div className=\"relative\">\n <FormControl>\n <Textarea {...field} placeholder={placeholder} className=\"w-full\" rows={rows} onValueChange={onValueChange} />\n </FormControl>\n <Flex width=\"full\" padding=\"none\" justify=\"end\">\n {isShowCount && <div className=\"text-muted-foreground text-end text-xs\">{valueWatch?.length ?? 0} characters</div>}\n {isShowErrorMsg && <FormMessage />}\n </Flex>\n </div>\n </FormItem>\n )}\n />\n );\n};\n"],"mappings":"+dAmBA,MAAa,GAAiE,CAC5E,OACA,QAAQ,iBACR,cAAc,kBACd,iBAAiB,GACjB,cAAc,GACd,cACA,OAAO,EACP,mBACyB,CACzB,IAAM,EAAa,EAAS,CAAE,OAAM,CAAC,CAErC,OACE,EAAC,EAAA,CACO,OACN,QAAS,CAAE,WACT,EAAC,EAAA,CAAS,UAAU,mBAClB,EAAC,EAAA,CAAS,KAAM,GAAS,EAAc,UAAY,kBACjD,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAAA,SAAW,EAAA,CAAkB,CAC7B,CAAC,CAAC,GAAe,EAAC,EAAA,CAAA,SAAiB,EAAA,CAA8B,CAAA,CAAA,CACrD,EACN,CACX,EAAC,MAAA,CAAI,UAAU,qBACb,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAS,GAAI,EAAoB,cAAa,UAAU,SAAe,OAAqB,iBAAiB,CAAA,CAClG,CACd,EAAC,EAAA,CAAK,MAAM,OAAO,QAAQ,OAAO,QAAQ,gBACvC,GAAe,EAAC,MAAA,CAAI,UAAU,mDAA0C,GAAY,QAAU,EAAE,cAAA,EAAiB,CACjH,GAAkB,EAAC,EAAA,EAAA,CAAc,CAAA,EAC7B,CAAA,EACH,CAAA,EACG,EAEb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/input.d.ts
|
|
4
4
|
declare function Input({
|
|
@@ -8,7 +8,7 @@ declare function Input({
|
|
|
8
8
|
...props
|
|
9
9
|
}: React.ComponentProps<'input'> & {
|
|
10
10
|
onValueChange?: (value: string) => void;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime108.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Input };
|
|
14
|
-
//# sourceMappingURL=input-
|
|
14
|
+
//# sourceMappingURL=input-BupRhPyb.d.cts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
2
|
+
import { Label } from "radix-ui";
|
|
3
|
+
|
|
4
|
+
//#region packages/components/ui/label.d.ts
|
|
5
|
+
declare function Label$1({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof Label.Root>): react_jsx_runtime81.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Label$1 as Label };
|
|
11
|
+
//# sourceMappingURL=label-DPchUZl_.d.cts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime170 from "react/jsx-runtime";
|
|
2
2
|
import { Label } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/label.d.ts
|
|
5
5
|
declare function Label$1({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Label.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Label.Root>): react_jsx_runtime170.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Label$1 as Label };
|
|
11
|
-
//# sourceMappingURL=label-
|
|
11
|
+
//# sourceMappingURL=label-Dn6KaHvL.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../dist-CAevLI5t.cjs`),require(`../../button-variants-BHDyMRNh.cjs`);const t=require(`../../button-BCahPWI8.cjs`),n=require(`../../skeleton-BC2E_ohw.cjs`),r=require(`../../separator-BAyL2IIW.cjs`),i=require(`../../tooltip-pmQZf5Bt.cjs`),a=require(`../../sheet-DueP7VvE.cjs`);let o=require(`lucide-react`);o=e.__toESM(o);let s=require(`@customafk/react-toolkit/utils`);s=e.__toESM(s);let c=require(`react`);c=e.__toESM(c);let l=require(`react/jsx-runtime`);l=e.__toESM(l);let u=require(`class-variance-authority`);u=e.__toESM(u);let d=require(`radix-ui`);d=e.__toESM(d);let f=require(`@customafk/react-toolkit/hooks/useMobile`);f=e.__toESM(f);const p=`sidebar_state`,m=3600*24*7,h=`16rem`,g=`16rem`,_=`3rem`,v=`b`,y=(0,c.createContext)(null);function b(){let e=(0,c.useContext)(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...u}){let d=(0,f.useIsMobile)(),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(e),_=t??h,v=(0,c.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),b=(0,c.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,c.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]);let x=_?`expanded`:`collapsed`,S=(0,c.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:b,open:_,setOpen:v,openMobile:p,setOpenMobile:m}),[x,_,v,d,p,m,b]);return(0,l.jsx)(y.Provider,{value:S,children:(0,l.jsx)(i.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...u,children:o})})})}function S({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...c}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=b();return n===`none`?(0,l.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...c,children:i}):u?(0,l.jsx)(a.Sheet,{open:f,onOpenChange:p,...c,children:(0,l.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`16rem`},side:e,children:[(0,l.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,l.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,l.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,l.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,l.jsxs)(`div`,{className:`border-border-weak flex items-center gap-x-2 border-b p-2 pr-4`,children:[(0,l.jsx)(C,{}),(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),i]})]})}):(0,l.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,l.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...c,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(t.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(o.MenuIcon,{className:`!size-6`}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...t}){let{toggleSidebar:n}=b();return(0,l.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute after:inset-y-0 after:left-1/2 after:w-[2px]`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function T({className:e,children:t,...n}){return(0,l.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,l.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,l.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function E({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function D({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function O({className:e,...t}){return(0,l.jsx)(r.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function k({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function A({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function j({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`div`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function M({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`button`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function N({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function P({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function F({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const I=(0,u.cva)([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`text-left truncate`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-primary-muted`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-primary`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function L({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:a,className:o,...c}){let u=e?d.Slot.Slot:`button`,{isMobile:f,state:p}=b(),m=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:(0,s.cn)(I({variant:n,size:r}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,l.jsxs)(i.Tooltip,{children:[(0,l.jsx)(i.TooltipTrigger,{asChild:!0,children:m}),(0,l.jsx)(i.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...a})]})):m}function R({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?d.Slot.Slot:`button`;return(0,l.jsx)(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function z({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function B({className:e,showIcon:t=!1,...r}){let i=(0,c.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,l.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,l.jsx)(n.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,l.jsx)(n.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function V({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function U({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?d.Slot.Slot:`a`;return(0,l.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground`,`ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`[&>span:last-child]:truncate`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}const W=({children:e})=>(0,l.jsx)(x,{children:e}),G=({children:e})=>(0,l.jsxs)(`header`,{className:(0,s.cn)(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)]`,`sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`,`group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)`,`sm:group-has-data-[collapsible=icon]/sidebar-wrapper:h-[calc(var(--header-height)_+_0.5rem)]`),children:[(0,l.jsx)(C,{}),(0,l.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,l.jsx)(`div`,{className:`flex flex-1 items-center justify-end`,children:e})]}),K=({children:e,...t})=>(0,l.jsx)(S,{variant:`inset`,collapsible:`icon`,...t,children:e}),q=({children:e})=>(0,l.jsx)(T,{children:(0,l.jsx)(`section`,{className:`relative size-full`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}),J=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-header`,className:(0,s.cn)(`flex-0 snap-start`,e),children:t}),Y=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-content`,className:(0,s.cn)(`flex w-full flex-1 snap-y flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),X=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-footer`,className:(0,s.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),Z=({children:e,className:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group`,className:(0,s.cn)(`flex size-full flex-col gap-4`,t),children:e}),Q=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,s.cn)(`bg-card shadow-card size-full max-w-5xl flex-1 snap-start snap-always scroll-mt-4 rounded-md p-4`,e),children:t});exports.AppLayoutHeader=G,exports.AppLayoutMain=q,exports.AppLayoutMainContent=Y,exports.AppLayoutMainFooter=X,exports.AppLayoutMainGroup=Z,exports.AppLayoutMainGroupContent=Q,exports.AppLayoutMainHeader=J,exports.AppLayoutSidebar=K,exports.AppLayoutSidebarContent=k,exports.AppLayoutSidebarFooter=D,exports.AppLayoutSidebarGroup=A,exports.AppLayoutSidebarGroupAction=M,exports.AppLayoutSidebarGroupContent=N,exports.AppLayoutSidebarGroupLabel=j,exports.AppLayoutSidebarHeader=E,exports.AppLayoutSidebarInset=T,exports.AppLayoutSidebarMenu=P,exports.AppLayoutSidebarMenuAction=R,exports.AppLayoutSidebarMenuBadge=z,exports.AppLayoutSidebarMenuButton=L,exports.AppLayoutSidebarMenuItem=F,exports.AppLayoutSidebarMenuSkeleton=B,exports.AppLayoutSidebarMenuSub=V,exports.AppLayoutSidebarMenuSubButton=U,exports.AppLayoutSidebarMenuSubItem=H,exports.AppLayoutSidebarRail=w,exports.AppLayoutSidebarSeparator=O,exports.AppLayoutSidebarTrigger=C,exports.AppLayoutWrapper=W,exports.Sidebar=S,exports.SidebarProvider=x,exports.useSidebar=b;
|
|
1
|
+
"use client";const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../dist-CAevLI5t.cjs`),require(`../../button-variants-BHDyMRNh.cjs`);const t=require(`../../button-BCahPWI8.cjs`),n=require(`../../skeleton-BC2E_ohw.cjs`),r=require(`../../separator-BAyL2IIW.cjs`),i=require(`../../tooltip-v0ikl3om.cjs`),a=require(`../../sheet-DueP7VvE.cjs`);let o=require(`lucide-react`);o=e.__toESM(o);let s=require(`@customafk/react-toolkit/utils`);s=e.__toESM(s);let c=require(`react`);c=e.__toESM(c);let l=require(`react/jsx-runtime`);l=e.__toESM(l);let u=require(`class-variance-authority`);u=e.__toESM(u);let d=require(`radix-ui`);d=e.__toESM(d);let f=require(`@customafk/react-toolkit/hooks/useMobile`);f=e.__toESM(f);const p=`sidebar_state`,m=3600*24*7,h=`16rem`,g=`16rem`,_=`3rem`,v=`b`,y=(0,c.createContext)(null);function b(){let e=(0,c.useContext)(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...u}){let d=(0,f.useIsMobile)(),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(e),_=t??h,v=(0,c.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),b=(0,c.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,c.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]);let x=_?`expanded`:`collapsed`,S=(0,c.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:b,open:_,setOpen:v,openMobile:p,setOpenMobile:m}),[x,_,v,d,p,m,b]);return(0,l.jsx)(y.Provider,{value:S,children:(0,l.jsx)(i.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...u,children:o})})})}function S({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...c}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=b();return n===`none`?(0,l.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...c,children:i}):u?(0,l.jsx)(a.Sheet,{open:f,onOpenChange:p,...c,children:(0,l.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`16rem`},side:e,children:[(0,l.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,l.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,l.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,l.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,l.jsxs)(`div`,{className:`border-border-weak flex items-center gap-x-2 border-b p-2 pr-4`,children:[(0,l.jsx)(C,{}),(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),i]})]})}):(0,l.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,l.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...c,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(t.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(o.MenuIcon,{className:`!size-6`}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...t}){let{toggleSidebar:n}=b();return(0,l.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute after:inset-y-0 after:left-1/2 after:w-[2px]`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function T({className:e,children:t,...n}){return(0,l.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,l.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,l.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function E({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function D({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function O({className:e,...t}){return(0,l.jsx)(r.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function k({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function A({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function j({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`div`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function M({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`button`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function N({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function P({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function F({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const I=(0,u.cva)([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`text-left truncate`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-primary-muted`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-primary`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function L({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:a,className:o,...c}){let u=e?d.Slot.Slot:`button`,{isMobile:f,state:p}=b(),m=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:(0,s.cn)(I({variant:n,size:r}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,l.jsxs)(i.Tooltip,{children:[(0,l.jsx)(i.TooltipTrigger,{asChild:!0,children:m}),(0,l.jsx)(i.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...a})]})):m}function R({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?d.Slot.Slot:`button`;return(0,l.jsx)(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function z({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function B({className:e,showIcon:t=!1,...r}){let i=(0,c.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,l.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,l.jsx)(n.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,l.jsx)(n.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function V({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function U({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?d.Slot.Slot:`a`;return(0,l.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground`,`ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`[&>span:last-child]:truncate`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}const W=({children:e})=>(0,l.jsx)(x,{children:e}),G=({children:e})=>(0,l.jsxs)(`header`,{className:(0,s.cn)(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)]`,`sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`,`group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)`,`sm:group-has-data-[collapsible=icon]/sidebar-wrapper:h-[calc(var(--header-height)_+_0.5rem)]`),children:[(0,l.jsx)(C,{}),(0,l.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,l.jsx)(`div`,{className:`flex flex-1 items-center justify-end`,children:e})]}),K=({children:e,...t})=>(0,l.jsx)(S,{variant:`inset`,collapsible:`icon`,...t,children:e}),q=({children:e})=>(0,l.jsx)(T,{children:(0,l.jsx)(`section`,{className:`relative size-full`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}),J=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-header`,className:(0,s.cn)(`flex-0 snap-start`,e),children:t}),Y=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-content`,className:(0,s.cn)(`flex w-full flex-1 snap-y flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),X=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-footer`,className:(0,s.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),Z=({children:e,className:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group`,className:(0,s.cn)(`flex size-full flex-col gap-4`,t),children:e}),Q=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,s.cn)(`bg-card shadow-card size-full max-w-5xl flex-1 snap-start snap-always scroll-mt-4 rounded-md p-4`,e),children:t});exports.AppLayoutHeader=G,exports.AppLayoutMain=q,exports.AppLayoutMainContent=Y,exports.AppLayoutMainFooter=X,exports.AppLayoutMainGroup=Z,exports.AppLayoutMainGroupContent=Q,exports.AppLayoutMainHeader=J,exports.AppLayoutSidebar=K,exports.AppLayoutSidebarContent=k,exports.AppLayoutSidebarFooter=D,exports.AppLayoutSidebarGroup=A,exports.AppLayoutSidebarGroupAction=M,exports.AppLayoutSidebarGroupContent=N,exports.AppLayoutSidebarGroupLabel=j,exports.AppLayoutSidebarHeader=E,exports.AppLayoutSidebarInset=T,exports.AppLayoutSidebarMenu=P,exports.AppLayoutSidebarMenuAction=R,exports.AppLayoutSidebarMenuBadge=z,exports.AppLayoutSidebarMenuButton=L,exports.AppLayoutSidebarMenuItem=F,exports.AppLayoutSidebarMenuSkeleton=B,exports.AppLayoutSidebarMenuSub=V,exports.AppLayoutSidebarMenuSubButton=U,exports.AppLayoutSidebarMenuSubItem=H,exports.AppLayoutSidebarRail=w,exports.AppLayoutSidebarSeparator=O,exports.AppLayoutSidebarTrigger=C,exports.AppLayoutWrapper=W,exports.Sidebar=S,exports.SidebarProvider=x,exports.useSidebar=b;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|