ivt 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.mjs +15 -14
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.mjs +2 -2
- package/dist/alert-dialog/index.mjs +17 -16
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/aspect-ratio/index.d.ts +7 -0
- package/dist/aspect-ratio/index.mjs +46 -0
- package/dist/aspect-ratio/index.mjs.map +1 -0
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +34 -8
- package/dist/base/index.mjs +73 -639
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.d.ts +14 -0
- package/dist/breadcrumb/index.mjs +71 -0
- package/dist/breadcrumb/index.mjs.map +1 -0
- package/dist/button/index.mjs +3 -3
- package/dist/calendar/index.mjs +8 -8
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.d.ts +25 -0
- package/dist/carousel/index.mjs +1793 -0
- package/dist/carousel/index.mjs.map +1 -0
- package/dist/chart/index.mjs +4 -4
- package/dist/checkbox/index.mjs +13 -13
- package/dist/chunks/{Container-OkpmLImV.mjs → Container-sBmoUJ1A.mjs} +2 -2
- package/dist/chunks/{Container-OkpmLImV.mjs.map → Container-sBmoUJ1A.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-DB0L5QuM.mjs → _commonjsHelpers-DMx7h_rP.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DMx7h_rP.mjs.map +1 -0
- package/dist/chunks/{accordion-D8D50bOM.mjs → accordion-BEzCfjyX.mjs} +11 -133
- package/dist/chunks/accordion-BEzCfjyX.mjs.map +1 -0
- package/dist/chunks/{badge-D6WUAOGu.mjs → badge-poifvE-U.mjs} +2 -2
- package/dist/chunks/{badge-D6WUAOGu.mjs.map → badge-poifvE-U.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CHV3NDgz.mjs → bundle-mjs-8KEENQOJ.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CHV3NDgz.mjs.map → bundle-mjs-8KEENQOJ.mjs.map} +1 -1
- package/dist/chunks/{button-C4494Xwz.mjs → button-TULRIYFO.mjs} +2 -2
- package/dist/chunks/{button-C4494Xwz.mjs.map → button-TULRIYFO.mjs.map} +1 -1
- package/dist/chunks/{calendar-Bn7etJ7O.mjs → calendar-nJ5T1YgK.mjs} +6 -6
- package/dist/chunks/{calendar-Bn7etJ7O.mjs.map → calendar-nJ5T1YgK.mjs.map} +1 -1
- package/dist/chunks/{check-BufRfuJc.mjs → check-DcPt24aD.mjs} +2 -2
- package/dist/chunks/{check-BufRfuJc.mjs.map → check-DcPt24aD.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-B2x6HHdH.mjs → chevron-down-BNw46No-.mjs} +2 -2
- package/dist/chunks/{chevron-down-B2x6HHdH.mjs.map → chevron-down-BNw46No-.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-DII9rLXX.mjs → chevron-left-B-ZN622G.mjs} +2 -2
- package/dist/chunks/{chevron-left-DII9rLXX.mjs.map → chevron-left-B-ZN622G.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-lKnfXpjb.mjs → chevron-right-Ddz8dCda.mjs} +2 -2
- package/dist/chunks/{chevron-right-lKnfXpjb.mjs.map → chevron-right-Ddz8dCda.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-B_ep4nON.mjs → chevrons-up-down-ChXPuZd6.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-B_ep4nON.mjs.map → chevrons-up-down-ChXPuZd6.mjs.map} +1 -1
- package/dist/chunks/{command-CrYOqG25.mjs → command-D6QS1LFL.mjs} +8 -8
- package/dist/chunks/{command-CrYOqG25.mjs.map → command-D6QS1LFL.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BAOK8uBo.mjs → createLucideIcon-DOOu6ntc.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BAOK8uBo.mjs.map → createLucideIcon-DOOu6ntc.mjs.map} +1 -1
- package/dist/chunks/{dialog-FO9bKZ6s.mjs → dialog-BefJPh8X.mjs} +4 -4
- package/dist/chunks/{dialog-FO9bKZ6s.mjs.map → dialog-BefJPh8X.mjs.map} +1 -1
- package/dist/chunks/ellipsis-Cwr1X9R2.mjs +35 -0
- package/dist/chunks/ellipsis-Cwr1X9R2.mjs.map +1 -0
- package/dist/chunks/{hover-card-CuN13oVM.mjs → hover-card-CcNjcMZa.mjs} +11 -10
- package/dist/chunks/{hover-card-CuN13oVM.mjs.map → hover-card-CcNjcMZa.mjs.map} +1 -1
- package/dist/chunks/{index-CX0Te_pb.mjs → index-0fdTSdHQ.mjs} +6 -21
- package/dist/chunks/index-0fdTSdHQ.mjs.map +1 -0
- package/dist/chunks/{index-CUDW0ZQ_.mjs → index-1tph_k2t.mjs} +1 -1
- package/dist/chunks/{index-CUDW0ZQ_.mjs.map → index-1tph_k2t.mjs.map} +1 -1
- package/dist/chunks/{index-BzMhdUkg.mjs → index-BCsiqIRL.mjs} +1 -1
- package/dist/chunks/{index-BzMhdUkg.mjs.map → index-BCsiqIRL.mjs.map} +1 -1
- package/dist/chunks/index-Bb31UsVK.mjs +7 -0
- package/dist/chunks/index-Bb31UsVK.mjs.map +1 -0
- package/dist/chunks/index-BnNdF3Y6.mjs +133 -0
- package/dist/chunks/index-BnNdF3Y6.mjs.map +1 -0
- package/dist/chunks/{index-D_xzHl5d.mjs → index-BwVg1Kb5.mjs} +1 -1
- package/dist/chunks/{index-D_xzHl5d.mjs.map → index-BwVg1Kb5.mjs.map} +1 -1
- package/dist/chunks/{index-CXNCVcaz.mjs → index-CK9CWim6.mjs} +2 -2
- package/dist/chunks/{index-CXNCVcaz.mjs.map → index-CK9CWim6.mjs.map} +1 -1
- package/dist/chunks/{index-mYta_RI8.mjs → index-CQc8iXpK.mjs} +11 -10
- package/dist/chunks/{index-mYta_RI8.mjs.map → index-CQc8iXpK.mjs.map} +1 -1
- package/dist/chunks/{index-Dw8lQ-RR.mjs → index-CSiM72Dy.mjs} +1 -1
- package/dist/chunks/{index-Dw8lQ-RR.mjs.map → index-CSiM72Dy.mjs.map} +1 -1
- package/dist/chunks/{index-BNqOXbUm.mjs → index-CWMDV9qs.mjs} +2 -2
- package/dist/chunks/{index-BNqOXbUm.mjs.map → index-CWMDV9qs.mjs.map} +1 -1
- package/dist/chunks/{index-8gnkKZlE.mjs → index-CjtaP9C4.mjs} +1 -1
- package/dist/chunks/{index-8gnkKZlE.mjs.map → index-CjtaP9C4.mjs.map} +1 -1
- package/dist/chunks/index-Cl4mLFZO.mjs +21 -0
- package/dist/chunks/index-Cl4mLFZO.mjs.map +1 -0
- package/dist/chunks/{index-BbDRMUvK.mjs → index-D1qT_gBX.mjs} +1 -1
- package/dist/chunks/{index-BbDRMUvK.mjs.map → index-D1qT_gBX.mjs.map} +1 -1
- package/dist/chunks/{index-DT-ocbAI.mjs → index-D7B2_9g4.mjs} +2 -2
- package/dist/chunks/{index-DT-ocbAI.mjs.map → index-D7B2_9g4.mjs.map} +1 -1
- package/dist/chunks/{index-CbW8A2kC.mjs → index-DDe3wbsL.mjs} +1 -1
- package/dist/chunks/{index-CbW8A2kC.mjs.map → index-DDe3wbsL.mjs.map} +1 -1
- package/dist/chunks/{index-LseEEE-q.mjs → index-DSL6rasA.mjs} +9 -9
- package/dist/chunks/{index-LseEEE-q.mjs.map → index-DSL6rasA.mjs.map} +1 -1
- package/dist/chunks/{index-zNRN-G4N.mjs → index-DejfSFbY.mjs} +7 -7
- package/dist/chunks/{index-zNRN-G4N.mjs.map → index-DejfSFbY.mjs.map} +1 -1
- package/dist/chunks/{index-DfZ3GX4x.mjs → index-DoRi3lh9.mjs} +2 -2
- package/dist/chunks/{index-DfZ3GX4x.mjs.map → index-DoRi3lh9.mjs.map} +1 -1
- package/dist/chunks/{index-DzMHHCWk.mjs → index-DvLErdHO.mjs} +1 -1
- package/dist/chunks/{index-DzMHHCWk.mjs.map → index-DvLErdHO.mjs.map} +1 -1
- package/dist/chunks/{index-Df9Yxox9.mjs → index-EfpXtubk.mjs} +5 -5
- package/dist/chunks/{index-Df9Yxox9.mjs.map → index-EfpXtubk.mjs.map} +1 -1
- package/dist/chunks/{index-BASEfxEg.mjs → index-JyHiZGQv.mjs} +29 -14
- package/dist/chunks/index-JyHiZGQv.mjs.map +1 -0
- package/dist/chunks/{index--albQ_45.mjs → index-P1gmXtXB.mjs} +3 -3
- package/dist/chunks/{index--albQ_45.mjs.map → index-P1gmXtXB.mjs.map} +1 -1
- package/dist/chunks/{index-DzjTqHOw.mjs → index-e34k5BX3.mjs} +1 -1
- package/dist/chunks/{index-DzjTqHOw.mjs.map → index-e34k5BX3.mjs.map} +1 -1
- package/dist/chunks/{input-B2f0GlFq.mjs → input-CDsq1Xde.mjs} +2 -2
- package/dist/chunks/{input-B2f0GlFq.mjs.map → input-CDsq1Xde.mjs.map} +1 -1
- package/dist/chunks/{label-CTvusVhq.mjs → label-BzGy6SRg.mjs} +3 -3
- package/dist/chunks/{label-CTvusVhq.mjs.map → label-BzGy6SRg.mjs.map} +1 -1
- package/dist/chunks/{pagination-BLz66_yn.mjs → pagination-CfFGN_ib.mjs} +6 -37
- package/dist/chunks/pagination-CfFGN_ib.mjs.map +1 -0
- package/dist/chunks/{popover-CuyS8YJG.mjs → popover-BlSoIp_B.mjs} +13 -12
- package/dist/chunks/{popover-CuyS8YJG.mjs.map → popover-BlSoIp_B.mjs.map} +1 -1
- package/dist/chunks/{progress-Ck6wO1t2.mjs → progress-CIapbA26.mjs} +4 -4
- package/dist/chunks/{progress-Ck6wO1t2.mjs.map → progress-CIapbA26.mjs.map} +1 -1
- package/dist/chunks/pt-BR-BCfQl1oP.mjs +608 -0
- package/dist/chunks/pt-BR-BCfQl1oP.mjs.map +1 -0
- package/dist/chunks/{scroll-area-CD6RlkcP.mjs → scroll-area-BE1y6Igy.mjs} +11 -15
- package/dist/chunks/scroll-area-BE1y6Igy.mjs.map +1 -0
- package/dist/chunks/{select-WF2nid0z.mjs → select-BBb0ke76.mjs} +5 -5
- package/dist/chunks/{select-WF2nid0z.mjs.map → select-BBb0ke76.mjs.map} +1 -1
- package/dist/chunks/{separator-BK0Tvy4g.mjs → separator-B1yL1lh8.mjs} +3 -3
- package/dist/chunks/{separator-BK0Tvy4g.mjs.map → separator-B1yL1lh8.mjs.map} +1 -1
- package/dist/chunks/sheet-FhW-R397.mjs +80 -0
- package/dist/chunks/sheet-FhW-R397.mjs.map +1 -0
- package/dist/chunks/{skeleton-Bl-MaKOs.mjs → skeleton-Cy2Kyc1R.mjs} +2 -2
- package/dist/chunks/{skeleton-Bl-MaKOs.mjs.map → skeleton-Cy2Kyc1R.mjs.map} +1 -1
- package/dist/chunks/{sortable-DRqX-gMK.mjs → sortable-qR5yOJD2.mjs} +3 -3
- package/dist/chunks/{sortable-DRqX-gMK.mjs.map → sortable-qR5yOJD2.mjs.map} +1 -1
- package/dist/chunks/{table-Dw1XMlWf.mjs → table-QPbxZz58.mjs} +2 -2
- package/dist/chunks/{table-Dw1XMlWf.mjs.map → table-QPbxZz58.mjs.map} +1 -1
- package/dist/chunks/{toggle-EOJD2uWa.mjs → toggle-CoBW3Uqo.mjs} +5 -5
- package/dist/chunks/{toggle-EOJD2uWa.mjs.map → toggle-CoBW3Uqo.mjs.map} +1 -1
- package/dist/chunks/{tooltip-CyByO4MF.mjs → tooltip-DNfLTD30.mjs} +13 -12
- package/dist/chunks/{tooltip-CyByO4MF.mjs.map → tooltip-DNfLTD30.mjs.map} +1 -1
- package/dist/chunks/{trash-2-Dnyls9bQ.mjs → trash-2-D3X2krCW.mjs} +2 -2
- package/dist/chunks/{trash-2-Dnyls9bQ.mjs.map → trash-2-D3X2krCW.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-CZnabdCM.mjs → tslib.es6-UJQ1U8uE.mjs} +1 -1
- package/dist/chunks/{tslib.es6-CZnabdCM.mjs.map → tslib.es6-UJQ1U8uE.mjs.map} +1 -1
- package/dist/chunks/{utils-Dizh2I4E.mjs → utils-AmLv58nm.mjs} +2 -2
- package/dist/chunks/{utils-Dizh2I4E.mjs.map → utils-AmLv58nm.mjs.map} +1 -1
- package/dist/chunks/{x-D0eS_uVN.mjs → x-CENvqJg-.mjs} +2 -2
- package/dist/chunks/{x-D0eS_uVN.mjs.map → x-CENvqJg-.mjs.map} +1 -1
- package/dist/collapsible/index.d.ts +9 -0
- package/dist/collapsible/index.mjs +35 -0
- package/dist/collapsible/index.mjs.map +1 -0
- package/dist/combobox/index.mjs +26 -25
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.mjs +20 -19
- package/dist/command/index.mjs.map +1 -1
- package/dist/context-menu/index.d.ts +28 -0
- package/dist/context-menu/index.mjs +460 -0
- package/dist/context-menu/index.mjs.map +1 -0
- package/dist/data-table/index.mjs +43 -41
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/date-picker/index.d.ts +38 -0
- package/dist/date-picker/index.mjs +64 -0
- package/dist/date-picker/index.mjs.map +1 -0
- package/dist/dialog/index.mjs +19 -18
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/drawer/index.d.ts +16 -0
- package/dist/drawer/index.mjs +1704 -0
- package/dist/drawer/index.mjs.map +1 -0
- package/dist/dropdown-menu/index.mjs +23 -23
- package/dist/dropzone/index.mjs +18 -17
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/form/index.mjs +4 -4
- package/dist/hover-card/index.mjs +15 -14
- package/dist/hover-card/index.mjs.map +1 -1
- package/dist/icon/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +3 -3
- package/dist/input-otp/index.d.ts +14 -0
- package/dist/input-otp/index.mjs +456 -0
- package/dist/input-otp/index.mjs.map +1 -0
- package/dist/ivt.css +1 -1
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.mjs +5 -5
- package/dist/menubar/index.mjs +23 -23
- package/dist/multi-select/index.mjs +30 -29
- package/dist/multi-select/index.mjs.map +1 -1
- package/dist/navigation-menu/index.d.ts +18 -0
- package/dist/navigation-menu/index.mjs +868 -0
- package/dist/navigation-menu/index.mjs.map +1 -0
- package/dist/pagination/index.mjs +8 -7
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/popover/index.mjs +18 -17
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +20 -20
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/resizable/index.d.ts +11 -0
- package/dist/resizable/index.mjs +2166 -0
- package/dist/resizable/index.mjs.map +1 -0
- package/dist/scroll-area/index.mjs +12 -11
- package/dist/scroll-area/index.mjs.map +1 -1
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +20 -93
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.d.ts +75 -0
- package/dist/sidebar/index.mjs +457 -0
- package/dist/sidebar/index.mjs.map +1 -0
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.d.ts +7 -0
- package/dist/slider/index.mjs +594 -0
- package/dist/slider/index.mjs.map +1 -0
- package/dist/sortable/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/tabs/index.mjs +13 -13
- package/dist/textarea/index.mjs +2 -2
- package/dist/toast/index.mjs +15 -14
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toggle/index.mjs +7 -7
- package/dist/toggle-group/index.mjs +13 -13
- package/dist/tooltip/index.mjs +17 -16
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +64 -7
- package/dist/chunks/_commonjsHelpers-DB0L5QuM.mjs.map +0 -1
- package/dist/chunks/accordion-D8D50bOM.mjs.map +0 -1
- package/dist/chunks/circle-B8A0IGvj.mjs +0 -17
- package/dist/chunks/circle-B8A0IGvj.mjs.map +0 -1
- package/dist/chunks/index-BASEfxEg.mjs.map +0 -1
- package/dist/chunks/index-CX0Te_pb.mjs.map +0 -1
- package/dist/chunks/pagination-BLz66_yn.mjs.map +0 -1
- package/dist/chunks/scroll-area-CD6RlkcP.mjs.map +0 -1
package/dist/accordion/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
1
|
+
export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-BEzCfjyX.mjs';
|
|
2
|
+
import '../chunks/utils-AmLv58nm.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../chunks/index-
|
|
5
|
+
import '../chunks/index-DvLErdHO.mjs';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import '@radix-ui/react-collection';
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
8
|
+
import '../chunks/index-CSiM72Dy.mjs';
|
|
9
|
+
import '../chunks/index-D1qT_gBX.mjs';
|
|
10
|
+
import '../chunks/index-DoRi3lh9.mjs';
|
|
11
|
+
import '../chunks/index-BwVg1Kb5.mjs';
|
|
12
|
+
import '../chunks/index-DDe3wbsL.mjs';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import '@radix-ui/react-slot';
|
|
15
|
-
import '../chunks/index
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/
|
|
19
|
-
import '../chunks/
|
|
15
|
+
import '../chunks/index-BnNdF3Y6.mjs';
|
|
16
|
+
import '../chunks/index-P1gmXtXB.mjs';
|
|
17
|
+
import '../chunks/index-CWMDV9qs.mjs';
|
|
18
|
+
import '../chunks/index-CjtaP9C4.mjs';
|
|
19
|
+
import '../chunks/chevron-down-BNw46No-.mjs';
|
|
20
|
+
import '../chunks/createLucideIcon-DOOu6ntc.mjs';
|
|
20
21
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/alert/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
1
|
+
import { c as cn } from '../chunks/utils-AmLv58nm.mjs';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
4
|
+
import '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
7
7
|
variants: {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as createContextScope } from '../chunks/index-
|
|
3
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
4
|
-
import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-
|
|
5
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
2
|
+
import { c as createContextScope } from '../chunks/index-DvLErdHO.mjs';
|
|
3
|
+
import { u as useComposedRefs } from '../chunks/index-CSiM72Dy.mjs';
|
|
4
|
+
import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-CQc8iXpK.mjs';
|
|
5
|
+
import { c as composeEventHandlers } from '../chunks/index-D1qT_gBX.mjs';
|
|
6
6
|
import { createSlottable } from '@radix-ui/react-slot';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { c as cn } from '../chunks/utils-
|
|
9
|
-
import { b as buttonVariants } from '../chunks/button-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
8
|
+
import { c as cn } from '../chunks/utils-AmLv58nm.mjs';
|
|
9
|
+
import { b as buttonVariants } from '../chunks/button-TULRIYFO.mjs';
|
|
10
|
+
import '../chunks/index-CWMDV9qs.mjs';
|
|
11
|
+
import '../chunks/index-BwVg1Kb5.mjs';
|
|
12
|
+
import '../chunks/index-DoRi3lh9.mjs';
|
|
13
|
+
import '../chunks/index-0fdTSdHQ.mjs';
|
|
14
|
+
import '../chunks/index-DDe3wbsL.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/tslib.es6-
|
|
19
|
-
import '../chunks/index
|
|
20
|
-
import '../chunks/
|
|
16
|
+
import '../chunks/index-e34k5BX3.mjs';
|
|
17
|
+
import '../chunks/index-EfpXtubk.mjs';
|
|
18
|
+
import '../chunks/tslib.es6-UJQ1U8uE.mjs';
|
|
19
|
+
import '../chunks/index-Cl4mLFZO.mjs';
|
|
20
|
+
import '../chunks/index-P1gmXtXB.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
21
22
|
import 'class-variance-authority';
|
|
22
23
|
|
|
23
24
|
var ROOT_NAME = "AlertDialog";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/ui/alert-dialog/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\nfunction AlertDialogTrigger({\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n\treturn <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\treturn <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />;\n}\n\nfunction AlertDialogOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Overlay\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n\treturn (\n\t\t<AlertDialogPortal>\n\t\t\t<AlertDialogOverlay />\n\t\t\t<AlertDialogPrimitive.Content\n\t\t\t\tdata-slot=\"alert-dialog-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</AlertDialogPortal>\n\t);\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-header\"\n\t\t\tclassName={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-footer\"\n\t\t\tclassName={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogTitle({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Title\n\t\t\tdata-slot=\"alert-dialog-title\"\n\t\t\tclassName={cn(\"text-lg font-semibold\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tdata-slot=\"alert-dialog-description\"\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogAction({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n\treturn <AlertDialogPrimitive.Action className={cn(buttonVariants(), className)} {...props} />;\n}\n\nfunction AlertDialogCancel({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Cancel\n\t\t\tclassName={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tAlertDialog,\n\tAlertDialogPortal,\n\tAlertDialogOverlay,\n\tAlertDialogTrigger,\n\tAlertDialogContent,\n\tAlertDialogHeader,\n\tAlertDialogFooter,\n\tAlertDialogTitle,\n\tAlertDialogDescription,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n};\n"],"names":["AlertDialog","DialogPrimitive.Root","AlertDialogTrigger","DialogPrimitive.Trigger","AlertDialogPortal","DialogPrimitive.Portal","AlertDialogOverlay","DialogPrimitive.Overlay","AlertDialogContent","DialogPrimitive.WarningProvider","DialogPrimitive.Content","AlertDialogTitle","DialogPrimitive.Title","AlertDialogDescription","DialogPrimitive.Description","AlertDialogAction","DialogPrimitive.Close","AlertDialogCancel","Root","Trigger","Portal","Overlay","Content","Title","Description","props","AlertDialogPrimitive","data-slot","className","cn","AlertDialogHeader","div","AlertDialogFooter","buttonVariants","variant"],"mappings":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AA,EACsD,EAAA;IACzD,qBACC,KAAA,CAAA,aAAA,CAACC,MAA0B,EAAA;QAC1BC,WAAAA,EAAU,oBAAA;AACVC,QAAAA,SAAAA,EAAWC,GAAG,uBAAA,EAAyBD,SAAAA,CAAAA;AACtC,QAAA,GAAGH;;AAGP;AAEA,SAASZ,sBAAAA,CAAuB,EAC/Be,SAAS,EACT,GAAGH,KAAAA,EAC4D,EAAA;IAC/D,qBACC,KAAA,CAAA,aAAA,CAACC,YAAgC,EAAA;QAChCC,WAAAA,EAAU,0BAAA;AACVC,QAAAA,SAAAA,EAAWC,GAAG,+BAAA,EAAiCD,SAAAA,CAAAA;AAC9C,QAAA,GAAGH;;AAGP;AAEA,SAASV,iBAAAA,CAAkB,EAC1Ba,SAAS,EACT,GAAGH,KAAAA,EACuD,EAAA;IAC1D,qBAAO,KAAA,CAAA,aAAA,CAACC,MAA2B,EAAA;AAACE,QAAAA,SAAAA,EAAWC,GAAGI,cAAAA,EAAAA,EAAkBL,SAAAA,CAAAA;AAAa,QAAA,GAAGH;;AACrF;AAEA,SAASR,iBAAAA,CAAkB,EAC1BW,SAAS,EACT,GAAGH,KAAAA,EACuD,EAAA;IAC1D,qBACC,KAAA,CAAA,aAAA,CAACC,MAA2B,EAAA;AAC3BE,QAAAA,SAAAA,EAAWC,GAAGI,cAAAA,CAAe;YAAEC,OAAAA,EAAS;SAAU,CAAA,EAAIN,SAAAA,CAAAA;AACrD,QAAA,GAAGH;;AAGP;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs","../../src/components/ui/alert-dialog/alert-dialog.tsx"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\nfunction AlertDialogTrigger({\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {\n\treturn <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\nfunction AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\treturn <AlertDialogPrimitive.Portal data-slot=\"alert-dialog-portal\" {...props} />;\n}\n\nfunction AlertDialogOverlay({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Overlay\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {\n\treturn (\n\t\t<AlertDialogPortal>\n\t\t\t<AlertDialogOverlay />\n\t\t\t<AlertDialogPrimitive.Content\n\t\t\t\tdata-slot=\"alert-dialog-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</AlertDialogPortal>\n\t);\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-header\"\n\t\t\tclassName={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-footer\"\n\t\t\tclassName={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogTitle({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Title\n\t\t\tdata-slot=\"alert-dialog-title\"\n\t\t\tclassName={cn(\"text-lg font-semibold\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tdata-slot=\"alert-dialog-description\"\n\t\t\tclassName={cn(\"text-muted-foreground text-sm\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogAction({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {\n\treturn <AlertDialogPrimitive.Action className={cn(buttonVariants(), className)} {...props} />;\n}\n\nfunction AlertDialogCancel({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Cancel\n\t\t\tclassName={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tAlertDialog,\n\tAlertDialogPortal,\n\tAlertDialogOverlay,\n\tAlertDialogTrigger,\n\tAlertDialogContent,\n\tAlertDialogHeader,\n\tAlertDialogFooter,\n\tAlertDialogTitle,\n\tAlertDialogDescription,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n};\n"],"names":["AlertDialog","DialogPrimitive.Root","AlertDialogTrigger","DialogPrimitive.Trigger","AlertDialogPortal","DialogPrimitive.Portal","AlertDialogOverlay","DialogPrimitive.Overlay","AlertDialogContent","DialogPrimitive.WarningProvider","DialogPrimitive.Content","AlertDialogTitle","DialogPrimitive.Title","AlertDialogDescription","DialogPrimitive.Description","AlertDialogAction","DialogPrimitive.Close","AlertDialogCancel","Root","Trigger","Portal","Overlay","Content","Title","Description","props","AlertDialogPrimitive","data-slot","className","cn","AlertDialogHeader","div","AlertDialogFooter","buttonVariants","variant"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,IAAM,SAAA,GAAY,aAAA;AAGlB,IAAM,CAAC,wBAAgD,CAAA,GAAI,mBAAmB,SAAA,EAAW;AACvF,IAAA;AACD,CAAA,CAAA;AACD,IAAM,iBAAiB,iBAAA,EAAkB;AAKzC,IAAMA,aAAA,GAA0C,CAAC,KAAA,GAAA;AAC/C,IAAA,MAAM,EAAE,kBAAA,EAAoB,GAAG,gBAAA,EAAiB,GAAI,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CAACC,YAAgC,EAAA;QAChCC,WAAAA,EAAU,0BAAA;AACVC,QAAAA,SAAAA,EAAWC,GAAG,+BAAA,EAAiCD,SAAAA,CAAAA;AAC9C,QAAA,GAAGH;;AAGP;AAEA,SAASV,iBAAAA,CAAkB,EAC1Ba,SAAS,EACT,GAAGH,KAAAA,EACuD,EAAA;IAC1D,qBAAO,KAAA,CAAA,aAAA,CAACC,MAA2B,EAAA;AAACE,QAAAA,SAAAA,EAAWC,GAAGI,cAAAA,EAAAA,EAAkBL,SAAAA,CAAAA;AAAa,QAAA,GAAGH;;AACrF;AAEA,SAASR,iBAAAA,CAAkB,EAC1BW,SAAS,EACT,GAAGH,KAAAA,EACuD,EAAA;IAC1D,qBACC,KAAA,CAAA,aAAA,CAACC,MAA2B,EAAA;AAC3BE,QAAAA,SAAAA,EAAWC,GAAGI,cAAAA,CAAe;YAAEC,OAAAA,EAAS;SAAU,CAAA,EAAIN,SAAAA,CAAAA;AACrD,QAAA,GAAGH;;AAGP;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export { AspectRatio };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { P as Primitive } from '../chunks/index-DDe3wbsL.mjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
import '@radix-ui/react-slot';
|
|
6
|
+
|
|
7
|
+
// src/aspect-ratio.tsx
|
|
8
|
+
var NAME = "AspectRatio";
|
|
9
|
+
var AspectRatio$1 = React.forwardRef((props, forwardedRef)=>{
|
|
10
|
+
const { ratio = 1 / 1, style, ...aspectRatioProps } = props;
|
|
11
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12
|
+
style: {
|
|
13
|
+
// ensures inner element is contained
|
|
14
|
+
position: "relative",
|
|
15
|
+
// ensures padding bottom trick maths works
|
|
16
|
+
width: "100%",
|
|
17
|
+
paddingBottom: `${100 / ratio}%`
|
|
18
|
+
},
|
|
19
|
+
"data-radix-aspect-ratio-wrapper": "",
|
|
20
|
+
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
21
|
+
...aspectRatioProps,
|
|
22
|
+
ref: forwardedRef,
|
|
23
|
+
style: {
|
|
24
|
+
...style,
|
|
25
|
+
// ensures children expand in ratio
|
|
26
|
+
position: "absolute",
|
|
27
|
+
top: 0,
|
|
28
|
+
right: 0,
|
|
29
|
+
bottom: 0,
|
|
30
|
+
left: 0
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
AspectRatio$1.displayName = NAME;
|
|
36
|
+
var Root = AspectRatio$1;
|
|
37
|
+
|
|
38
|
+
function AspectRatio({ ...props }) {
|
|
39
|
+
return /*#__PURE__*/ React.createElement(Root, {
|
|
40
|
+
"data-slot": "aspect-ratio",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { AspectRatio };
|
|
46
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs","../../src/components/ui/aspect-ratio/aspect-ratio.tsx"],"sourcesContent":["// src/aspect-ratio.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"AspectRatio\";\nvar AspectRatio = React.forwardRef(\n (props, forwardedRef) => {\n const { ratio = 1 / 1, style, ...aspectRatioProps } = props;\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n style: {\n // ensures inner element is contained\n position: \"relative\",\n // ensures padding bottom trick maths works\n width: \"100%\",\n paddingBottom: `${100 / ratio}%`\n },\n \"data-radix-aspect-ratio-wrapper\": \"\",\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...aspectRatioProps,\n ref: forwardedRef,\n style: {\n ...style,\n // ensures children expand in ratio\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n )\n }\n );\n }\n);\nAspectRatio.displayName = NAME;\nvar Root = AspectRatio;\nexport {\n AspectRatio,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","import * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\";\nimport * as React from \"react\";\n\nfunction AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {\n\treturn <AspectRatioPrimitive.Root data-slot=\"aspect-ratio\" {...props} />;\n}\n\nexport { AspectRatio };\n"],"names":["AspectRatio","props","AspectRatioPrimitive","data-slot"],"mappings":";;;;;;;AAOA,IAAM,IAAA,GAAO,aAAA;AAQb,IAAMA,gBAAoB,KAAA,CAAA,UAAA,CACxB,CAAC,OAAO,YAAA,GAAA;IACN,MAAM,EAAE,KAAA,GAAQ,CAAA,GAAI,CAAA,EAAG,KAAA,EAAO,GAAG,gBAAA,EAAiB,GAAI,KAAA;IACtD,uBACE,GAAA,CAAC,KAAA,EAAA;QACC,KAAA,EAAO;;YAEL,QAAA,EAAU,UAAA;;YAEV,KAAA,EAAO,MAAA;AACP,YAAA,aAAA,EAAe,CAAA,EAAG,GAAA,GAAM,KAAK,CAAA,CAAA;AAC/B,SAAA;QACA,iCAAA,EAAgC,EAAA;AAEhC,QAAA,QAAA,kBAAA,GAAA,CAAC,SAAA,CAAU,GAAA,EAAV;AACE,YAAA,GAAG,gBAAA;YACJ,GAAA,EAAK,YAAA;YACL,KAAA,EAAO;AACL,gBAAA,GAAG,KAAA;;gBAEH,QAAA,EAAU,UAAA;gBACV,GAAA,EAAK,CAAA;gBACL,KAAA,EAAO,CAAA;gBACP,MAAA,EAAQ,CAAA;gBACR,IAAA,EAAM;AACR;AAAA,SAAA;AACF,KAAA,CAAA;AAGN,CAAA,CAAA;AAGFA,aAAA,CAAY,WAAA,GAAc,IAAA;AAI1B,IAAM,IAAA,GAAOA,aAAA;;AChDb,SAASA,WAAAA,CAAY,EAAE,GAAGC,KAAAA,EAA+D,EAAA;IACxF,qBAAO,KAAA,CAAA,aAAA,CAACC,IAAyB,EAAA;QAACC,WAAAA,EAAU,cAAA;AAAgB,QAAA,GAAGF;;AAChE;;;;","x_google_ignoreList":[0]}
|
package/dist/avatar/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as createContextScope } from '../chunks/index-
|
|
3
|
-
import { u as useCallbackRef } from '../chunks/index-
|
|
4
|
-
import { u as useLayoutEffect2 } from '../chunks/index-
|
|
5
|
-
import { P as Primitive } from '../chunks/index-
|
|
6
|
-
import { r as requireShim } from '../chunks/index-
|
|
2
|
+
import { c as createContextScope } from '../chunks/index-DvLErdHO.mjs';
|
|
3
|
+
import { u as useCallbackRef } from '../chunks/index-e34k5BX3.mjs';
|
|
4
|
+
import { u as useLayoutEffect2 } from '../chunks/index-BwVg1Kb5.mjs';
|
|
5
|
+
import { P as Primitive } from '../chunks/index-DDe3wbsL.mjs';
|
|
6
|
+
import { r as requireShim } from '../chunks/index-BCsiqIRL.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { c as cn } from '../chunks/utils-
|
|
8
|
+
import { c as cn } from '../chunks/utils-AmLv58nm.mjs';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '@radix-ui/react-slot';
|
|
11
|
-
import '../chunks/bundle-mjs-
|
|
11
|
+
import '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
12
12
|
|
|
13
13
|
var shimExports = requireShim();
|
|
14
14
|
|
package/dist/badge/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as Badge, b as badgeVariants } from '../chunks/badge-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
1
|
+
export { B as Badge, b as badgeVariants } from '../chunks/badge-poifvE-U.mjs';
|
|
2
|
+
import '../chunks/utils-AmLv58nm.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
4
4
|
import '@radix-ui/react-slot';
|
|
5
5
|
import 'class-variance-authority';
|
|
6
6
|
import 'react';
|
package/dist/base/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { BadgeProps } from '../badge/index.js';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
3
|
import { ButtonProps } from '../button/index.js';
|
|
6
4
|
import { Popover } from '../popover/index.js';
|
|
5
|
+
import { BadgeProps } from '../badge/index.js';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { DateRange } from 'react-day-picker';
|
|
8
8
|
import 'class-variance-authority/types';
|
|
9
9
|
import 'class-variance-authority';
|
|
@@ -27,16 +27,42 @@ declare const Header: React__default.FC<HeaderProps>;
|
|
|
27
27
|
|
|
28
28
|
type CaptionLayout = "label" | "dropdown";
|
|
29
29
|
declare function normalizeDate(date: Date): string;
|
|
30
|
-
|
|
30
|
+
type CalendarPopoverProps = {
|
|
31
|
+
/** Data selecionada (controlada externamente, opcional) */
|
|
31
32
|
date: Date | undefined;
|
|
33
|
+
/** Callback chamado quando uma data é selecionada */
|
|
32
34
|
setDate: (newDate: Date | undefined) => void;
|
|
35
|
+
/** Texto exibido quando nenhuma data está selecionada */
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/** ID opcional para o botão */
|
|
38
|
+
id?: string;
|
|
39
|
+
/** Props adicionais para o botão */
|
|
40
|
+
buttonProps?: ButtonProps;
|
|
41
|
+
/** Classes extras aplicadas ao botão */
|
|
42
|
+
buttonClassName?: string;
|
|
43
|
+
/** Props adicionais para o popover */
|
|
44
|
+
popoverProps?: React__default.ComponentProps<typeof Popover>;
|
|
45
|
+
/** Classes extras aplicadas ao conteúdo do popover */
|
|
46
|
+
popoverContentClassName?: string;
|
|
47
|
+
/** Número de meses exibidos no calendário (default: 1) */
|
|
48
|
+
numberOfMonths?: number;
|
|
49
|
+
/** Ano inicial permitido */
|
|
50
|
+
fromYear?: number;
|
|
51
|
+
/** Ano final permitido */
|
|
52
|
+
toYear?: number;
|
|
53
|
+
/** Classes extras para o contêiner */
|
|
54
|
+
className?: string;
|
|
55
|
+
/** Desabilita o botão */
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
/** Define se está carregando */
|
|
33
58
|
isLoading?: boolean;
|
|
59
|
+
/** Define se está carregando dentro de calendar */
|
|
34
60
|
isLoadingTable?: boolean;
|
|
61
|
+
/** Deixa desabilitado datas específicas customizadas */
|
|
35
62
|
disabledDates?: Set<string>;
|
|
63
|
+
/** Deixa desabilitado datas específicas customizadas */
|
|
36
64
|
captionLayout?: CaptionLayout;
|
|
37
|
-
|
|
38
|
-
toYear?: number;
|
|
39
|
-
}
|
|
65
|
+
};
|
|
40
66
|
declare const CalendarPopover: React__default.FC<CalendarPopoverProps>;
|
|
41
67
|
|
|
42
68
|
interface HoverBadgeProps {
|
|
@@ -50,8 +76,8 @@ interface HoverBadgeProps {
|
|
|
50
76
|
declare const HoverBadge: React__default.FC<HoverBadgeProps>;
|
|
51
77
|
|
|
52
78
|
type CalendarRangeProps = {
|
|
53
|
-
value
|
|
54
|
-
onChange
|
|
79
|
+
value: DateRange | undefined;
|
|
80
|
+
onChange: (range: DateRange | undefined) => void;
|
|
55
81
|
placeholder?: string;
|
|
56
82
|
id?: string;
|
|
57
83
|
buttonProps?: ButtonProps;
|