ivt 0.4.8 → 0.4.9
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 -15
- package/dist/alert/index.mjs +2 -2
- package/dist/alert-dialog/index.mjs +17 -17
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +34 -1
- package/dist/base/index.mjs +39 -49
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.d.ts +4 -0
- package/dist/button-group/index.mjs +7 -0
- package/dist/button-group/index.mjs.map +1 -0
- package/dist/calendar/index.mjs +8 -8
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.mjs +4 -4
- package/dist/chart/index.mjs +4 -4
- package/dist/checkbox/index.mjs +13 -13
- package/dist/chunks/{Container-Bk3WDmXq.mjs → Container-LlUz2Xf7.mjs} +2 -2
- package/dist/chunks/{Container-Bk3WDmXq.mjs.map → Container-LlUz2Xf7.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-7oHtoXzW.mjs → _commonjsHelpers-CZIfjjiR.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-CZIfjjiR.mjs.map +1 -0
- package/dist/chunks/{accordion-O8UQxSxk.mjs → accordion-BBMhFkK5.mjs} +11 -11
- package/dist/chunks/{accordion-O8UQxSxk.mjs.map → accordion-BBMhFkK5.mjs.map} +1 -1
- package/dist/chunks/{badge-DK4Kv-Pv.mjs → badge-CShT6Er8.mjs} +2 -2
- package/dist/chunks/{badge-DK4Kv-Pv.mjs.map → badge-CShT6Er8.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-DH6vf6gy.mjs → bundle-mjs-CXcNQyyo.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-DH6vf6gy.mjs.map → bundle-mjs-CXcNQyyo.mjs.map} +1 -1
- package/dist/chunks/{button-By6p3Bsx.mjs → button-ay7E6KrE.mjs} +5 -3
- package/dist/chunks/button-ay7E6KrE.mjs.map +1 -0
- package/dist/chunks/{calendar-BMDZ5epm.mjs → calendar-D98dWxWB.mjs} +6 -6
- package/dist/chunks/{calendar-BMDZ5epm.mjs.map → calendar-D98dWxWB.mjs.map} +1 -1
- package/dist/chunks/{check-I-Hz86Bu.mjs → check-M4AEcM3j.mjs} +2 -2
- package/dist/chunks/{check-I-Hz86Bu.mjs.map → check-M4AEcM3j.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-BChdO0uD.mjs → chevron-down-BgIYlWhk.mjs} +2 -2
- package/dist/chunks/{chevron-down-BChdO0uD.mjs.map → chevron-down-BgIYlWhk.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-DTNQBpUD.mjs → chevron-left-wvVA3SWH.mjs} +2 -2
- package/dist/chunks/{chevron-left-DTNQBpUD.mjs.map → chevron-left-wvVA3SWH.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-Cc8XUA4m.mjs → chevron-right-aTufSnLl.mjs} +2 -2
- package/dist/chunks/{chevron-right-Cc8XUA4m.mjs.map → chevron-right-aTufSnLl.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-D7M3-587.mjs → chevrons-up-down-TytmUcIx.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-D7M3-587.mjs.map → chevrons-up-down-TytmUcIx.mjs.map} +1 -1
- package/dist/chunks/{command-0Ir07spf.mjs → command-OnnopJEP.mjs} +8 -8
- package/dist/chunks/{command-0Ir07spf.mjs.map → command-OnnopJEP.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-C_iAsC8V.mjs → createLucideIcon-DwD3HsEs.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-C_iAsC8V.mjs.map → createLucideIcon-DwD3HsEs.mjs.map} +1 -1
- package/dist/chunks/{dialog-DgjQIzg0.mjs → dialog-D-h9t9_b.mjs} +4 -4
- package/dist/chunks/{dialog-DgjQIzg0.mjs.map → dialog-D-h9t9_b.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-DZCE7oYT.mjs → ellipsis-x68Orkqp.mjs} +2 -2
- package/dist/chunks/{ellipsis-DZCE7oYT.mjs.map → ellipsis-x68Orkqp.mjs.map} +1 -1
- package/dist/chunks/{hover-card-kziSplk3.mjs → hover-card-DXAGq71O.mjs} +11 -11
- package/dist/chunks/{hover-card-kziSplk3.mjs.map → hover-card-DXAGq71O.mjs.map} +1 -1
- package/dist/chunks/{index-B_sik0X8.mjs → index-B7kZbHfd.mjs} +1 -1
- package/dist/chunks/{index-B_sik0X8.mjs.map → index-B7kZbHfd.mjs.map} +1 -1
- package/dist/chunks/{index-qjWZItTF.mjs → index-BBC4sR1G.mjs} +5 -5
- package/dist/chunks/{index-qjWZItTF.mjs.map → index-BBC4sR1G.mjs.map} +1 -1
- package/dist/chunks/{index-kx2sJ01P.mjs → index-BBONAxxm.mjs} +1 -1
- package/dist/chunks/{index-kx2sJ01P.mjs.map → index-BBONAxxm.mjs.map} +1 -1
- package/dist/chunks/{index-BQaJNtas.mjs → index-BLAYpkjT.mjs} +5 -5
- package/dist/chunks/{index-BQaJNtas.mjs.map → index-BLAYpkjT.mjs.map} +1 -1
- package/dist/chunks/{index-CZ5Lcw2b.mjs → index-BW3aCz7h.mjs} +1 -1
- package/dist/chunks/{index-CZ5Lcw2b.mjs.map → index-BW3aCz7h.mjs.map} +1 -1
- package/dist/chunks/{index-BF-RSDzg.mjs → index-BdYD9SA8.mjs} +1 -1
- package/dist/chunks/{index-BF-RSDzg.mjs.map → index-BdYD9SA8.mjs.map} +1 -1
- package/dist/chunks/{index-THb_GTJh.mjs → index-Bs4nZmb7.mjs} +2 -2
- package/dist/chunks/{index-THb_GTJh.mjs.map → index-Bs4nZmb7.mjs.map} +1 -1
- package/dist/chunks/{index-Bhg2_PY7.mjs → index-BsVg0u5v.mjs} +1 -1
- package/dist/chunks/{index-Bhg2_PY7.mjs.map → index-BsVg0u5v.mjs.map} +1 -1
- package/dist/chunks/{index-vM3wkbBM.mjs → index-BtRo1b5t.mjs} +3 -3
- package/dist/chunks/{index-vM3wkbBM.mjs.map → index-BtRo1b5t.mjs.map} +1 -1
- package/dist/chunks/{index-DvGV9EWr.mjs → index-BxaETqU9.mjs} +3 -3
- package/dist/chunks/{index-DvGV9EWr.mjs.map → index-BxaETqU9.mjs.map} +1 -1
- package/dist/chunks/{index-Bq7RTW2y.mjs → index-C45e7-3X.mjs} +11 -11
- package/dist/chunks/{index-Bq7RTW2y.mjs.map → index-C45e7-3X.mjs.map} +1 -1
- package/dist/chunks/{index-C8MYZd8G.mjs → index-C5cl9B-D.mjs} +2 -2
- package/dist/chunks/{index-C8MYZd8G.mjs.map → index-C5cl9B-D.mjs.map} +1 -1
- package/dist/chunks/{index-BYwOnxY9.mjs → index-C9twRC0t.mjs} +1 -1
- package/dist/chunks/{index-BYwOnxY9.mjs.map → index-C9twRC0t.mjs.map} +1 -1
- package/dist/chunks/{index-CIezYkdT.mjs → index-CLb4rDzh.mjs} +1 -1
- package/dist/chunks/{index-CIezYkdT.mjs.map → index-CLb4rDzh.mjs.map} +1 -1
- package/dist/chunks/{index-QmLTwiGV.mjs → index-CMbJ1I29.mjs} +2 -2
- package/dist/chunks/{index-QmLTwiGV.mjs.map → index-CMbJ1I29.mjs.map} +1 -1
- package/dist/chunks/{index-fWNPF8HK.mjs → index-CVGBR4nU.mjs} +15 -15
- package/dist/chunks/{index-fWNPF8HK.mjs.map → index-CVGBR4nU.mjs.map} +1 -1
- package/dist/chunks/{index-B9cFm0ac.mjs → index-D5pght6h.mjs} +1 -1
- package/dist/chunks/{index-B9cFm0ac.mjs.map → index-D5pght6h.mjs.map} +1 -1
- package/dist/chunks/{index-Ch7F9sXl.mjs → index-DRdSNmMB.mjs} +2 -2
- package/dist/chunks/{index-Ch7F9sXl.mjs.map → index-DRdSNmMB.mjs.map} +1 -1
- package/dist/chunks/{index-DwkdRROB.mjs → index-DU7dxusa.mjs} +7 -7
- package/dist/chunks/{index-DwkdRROB.mjs.map → index-DU7dxusa.mjs.map} +1 -1
- package/dist/chunks/{index-DmfDMAo5.mjs → index-Db1acFFW.mjs} +1 -1
- package/dist/chunks/{index-DmfDMAo5.mjs.map → index-Db1acFFW.mjs.map} +1 -1
- package/dist/chunks/{index-Dx_b8MUs.mjs → index-DfjpL9Sk.mjs} +9 -9
- package/dist/chunks/{index-Dx_b8MUs.mjs.map → index-DfjpL9Sk.mjs.map} +1 -1
- package/dist/chunks/{index-D6oieYoA.mjs → index-DpqIXFxh.mjs} +9 -9
- package/dist/chunks/{index-D6oieYoA.mjs.map → index-DpqIXFxh.mjs.map} +1 -1
- package/dist/chunks/{index-Bfm-YFEU.mjs → index-qOZvnMSQ.mjs} +1 -1
- package/dist/chunks/{index-Bfm-YFEU.mjs.map → index-qOZvnMSQ.mjs.map} +1 -1
- package/dist/chunks/{input-Ck6shWlC.mjs → input-CqipwgOY.mjs} +2 -2
- package/dist/chunks/{input-Ck6shWlC.mjs.map → input-CqipwgOY.mjs.map} +1 -1
- package/dist/chunks/{label-VIPrkCET.mjs → label-Cx4XtbXv.mjs} +3 -3
- package/dist/chunks/{label-VIPrkCET.mjs.map → label-Cx4XtbXv.mjs.map} +1 -1
- package/dist/chunks/loader-circle-CfhWFS-M.mjs +15 -0
- package/dist/chunks/loader-circle-CfhWFS-M.mjs.map +1 -0
- package/dist/chunks/{pagination-Dm7nWzum.mjs → pagination-CzDSUdbY.mjs} +6 -6
- package/dist/chunks/{pagination-Dm7nWzum.mjs.map → pagination-CzDSUdbY.mjs.map} +1 -1
- package/dist/chunks/{popover-C9351eP_.mjs → popover-BFcKYAot.mjs} +13 -13
- package/dist/chunks/{popover-C9351eP_.mjs.map → popover-BFcKYAot.mjs.map} +1 -1
- package/dist/chunks/{progress-mirm5NVY.mjs → progress-Cm71BOo_.mjs} +4 -4
- package/dist/chunks/{progress-mirm5NVY.mjs.map → progress-Cm71BOo_.mjs.map} +1 -1
- package/dist/chunks/{pt-BR-BaLtJ-uU.mjs → pt-BR-on-YW6Ay.mjs} +3 -3
- package/dist/chunks/{pt-BR-BaLtJ-uU.mjs.map → pt-BR-on-YW6Ay.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-NkdCgHkI.mjs → scroll-area-B9cWImdG.mjs} +11 -11
- package/dist/chunks/{scroll-area-NkdCgHkI.mjs.map → scroll-area-B9cWImdG.mjs.map} +1 -1
- package/dist/chunks/{select-CGW1Mv2b.mjs → select-CQBb4aB3.mjs} +5 -5
- package/dist/chunks/{select-CGW1Mv2b.mjs.map → select-CQBb4aB3.mjs.map} +1 -1
- package/dist/chunks/{separator-DOKWXYm4.mjs → separator-D6zbGj0R.mjs} +3 -3
- package/dist/chunks/{separator-DOKWXYm4.mjs.map → separator-D6zbGj0R.mjs.map} +1 -1
- package/dist/chunks/{sheet-BeOnCTry.mjs → sheet-C0AR_o6p.mjs} +4 -4
- package/dist/chunks/{sheet-BeOnCTry.mjs.map → sheet-C0AR_o6p.mjs.map} +1 -1
- package/dist/chunks/{skeleton-A7SmFyPS.mjs → skeleton-Bd9uEq1R.mjs} +2 -2
- package/dist/chunks/{skeleton-A7SmFyPS.mjs.map → skeleton-Bd9uEq1R.mjs.map} +1 -1
- package/dist/chunks/{sortable-BZWn10dE.mjs → sortable-CTcnqQX_.mjs} +3 -3
- package/dist/chunks/{sortable-BZWn10dE.mjs.map → sortable-CTcnqQX_.mjs.map} +1 -1
- package/dist/chunks/{table-0T2vOBFN.mjs → table-C829r3Zv.mjs} +2 -2
- package/dist/chunks/{table-0T2vOBFN.mjs.map → table-C829r3Zv.mjs.map} +1 -1
- package/dist/chunks/textarea-CD6y9GNW.mjs +13 -0
- package/dist/chunks/textarea-CD6y9GNW.mjs.map +1 -0
- package/dist/chunks/{toggle-DXexQScO.mjs → toggle-C8fZP79W.mjs} +5 -5
- package/dist/chunks/{toggle-DXexQScO.mjs.map → toggle-C8fZP79W.mjs.map} +1 -1
- package/dist/chunks/{tooltip-Dj5aSMd4.mjs → tooltip-R49U1IPs.mjs} +13 -13
- package/dist/chunks/{tooltip-Dj5aSMd4.mjs.map → tooltip-R49U1IPs.mjs.map} +1 -1
- package/dist/chunks/{trash-2-DKEuKNiO.mjs → trash-2-ZC16Df_k.mjs} +2 -2
- package/dist/chunks/{trash-2-DKEuKNiO.mjs.map → trash-2-ZC16Df_k.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-BAF7iAx8.mjs → tslib.es6-CnQYzBlA.mjs} +1 -1
- package/dist/chunks/{tslib.es6-BAF7iAx8.mjs.map → tslib.es6-CnQYzBlA.mjs.map} +1 -1
- package/dist/chunks/{utils-ieFmv4d0.mjs → utils-DwA_HfJw.mjs} +2 -2
- package/dist/chunks/{utils-ieFmv4d0.mjs.map → utils-DwA_HfJw.mjs.map} +1 -1
- package/dist/chunks/{x-UYJwiGZL.mjs → x-BZdVnIMx.mjs} +2 -2
- package/dist/chunks/{x-UYJwiGZL.mjs.map → x-BZdVnIMx.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.mjs +26 -26
- package/dist/command/index.mjs +20 -20
- package/dist/context-menu/index.mjs +23 -23
- package/dist/data-table/index.mjs +35 -35
- package/dist/date-picker/index.d.ts +13 -1
- package/dist/date-picker/index.mjs +27 -26
- package/dist/date-picker/index.mjs.map +1 -1
- package/dist/dialog/index.mjs +19 -19
- package/dist/drawer/index.mjs +16 -16
- package/dist/dropdown-menu/index.mjs +23 -23
- package/dist/dropzone/index.mjs +25 -26
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/empty/index.d.ts +16 -0
- package/dist/empty/index.mjs +65 -0
- package/dist/empty/index.mjs.map +1 -0
- package/dist/field/index.d.ts +30 -0
- package/dist/field/index.mjs +140 -0
- package/dist/field/index.mjs.map +1 -0
- package/dist/form/index.mjs +4 -4
- package/dist/hover-card/index.mjs +15 -15
- package/dist/icon/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +3 -3
- package/dist/input-group/index.d.ts +20 -0
- package/dist/input-group/index.mjs +97 -0
- package/dist/input-group/index.mjs.map +1 -0
- package/dist/input-otp/index.mjs +3 -3
- package/dist/item/index.d.ts +28 -0
- package/dist/item/index.mjs +125 -0
- package/dist/item/index.mjs.map +1 -0
- package/dist/ivt.css +1 -1
- package/dist/kbd/index.d.ts +7 -0
- package/dist/kbd/index.mjs +21 -0
- package/dist/kbd/index.mjs.map +1 -0
- 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 -30
- package/dist/navigation-menu/index.mjs +17 -17
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +18 -18
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +17 -17
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +12 -12
- 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 +19 -19
- package/dist/sidebar/index.mjs +27 -27
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +12 -12
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.d.ts +5 -0
- package/dist/spinner/index.mjs +17 -0
- package/dist/spinner/index.mjs.map +1 -0
- 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 +4 -13
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.mjs +15 -15
- package/dist/toggle/index.mjs +7 -7
- package/dist/toggle-group/index.mjs +13 -13
- package/dist/tooltip/index.mjs +17 -17
- package/package.json +30 -2
- package/dist/chunks/_commonjsHelpers-7oHtoXzW.mjs.map +0 -1
- package/dist/chunks/button-By6p3Bsx.mjs.map +0 -1
package/dist/combobox/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-
|
|
4
|
-
import { C as Check } from '../chunks/check-
|
|
5
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
6
|
-
import { B as Button } from '../chunks/button-
|
|
7
|
-
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem } from '../chunks/command-
|
|
8
|
-
import '../chunks/bundle-mjs-
|
|
9
|
-
import '../chunks/createLucideIcon-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-TytmUcIx.mjs';
|
|
4
|
+
import { C as Check } from '../chunks/check-M4AEcM3j.mjs';
|
|
5
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-BFcKYAot.mjs';
|
|
6
|
+
import { B as Button } from '../chunks/button-ay7E6KrE.mjs';
|
|
7
|
+
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem } from '../chunks/command-OnnopJEP.mjs';
|
|
8
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
9
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
10
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
11
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
12
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
14
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
15
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import '@radix-ui/react-slot';
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/tslib.es6-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
18
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
19
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
20
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
21
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
22
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
23
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
24
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
25
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
26
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
27
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
28
28
|
import 'class-variance-authority';
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/dialog-
|
|
31
|
-
import '../chunks/x-
|
|
29
|
+
import '../chunks/index-C45e7-3X.mjs';
|
|
30
|
+
import '../chunks/dialog-D-h9t9_b.mjs';
|
|
31
|
+
import '../chunks/x-BZdVnIMx.mjs';
|
|
32
32
|
|
|
33
33
|
function Combobox({ items, value, onValueChange, placeholder = "Select item...", searchPlaceholder = "Search item...", emptyMessage = "No item found.", widthClassName = "w-fit", className, groupHeading }) {
|
|
34
34
|
const [open, setOpen] = React.useState(false);
|
package/dist/command/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { C as Command, a as CommandDialog, d as CommandEmpty, e as CommandGroup, b as CommandInput, f as CommandItem, c as CommandList, h as CommandSeparator, g as CommandShortcut } from '../chunks/command-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
4
|
-
import '../chunks/index-
|
|
1
|
+
export { C as Command, a as CommandDialog, d as CommandEmpty, e as CommandGroup, b as CommandInput, f as CommandItem, c as CommandList, h as CommandSeparator, g as CommandShortcut } from '../chunks/command-OnnopJEP.mjs';
|
|
2
|
+
import '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
4
|
+
import '../chunks/index-C45e7-3X.mjs';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../chunks/index-
|
|
7
|
-
import '../chunks/index-
|
|
8
|
-
import '../chunks/index-
|
|
6
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
7
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
8
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
10
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
11
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
12
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
13
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
14
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@radix-ui/react-slot';
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/tslib.es6-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/dialog-
|
|
23
|
-
import '../chunks/x-
|
|
24
|
-
import '../chunks/createLucideIcon-
|
|
17
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
18
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
19
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
20
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
21
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
22
|
+
import '../chunks/dialog-D-h9t9_b.mjs';
|
|
23
|
+
import '../chunks/x-BZdVnIMx.mjs';
|
|
24
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
25
25
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
3
|
-
import { c as createContextScope } from '../chunks/index-
|
|
4
|
-
import { P as Primitive } from '../chunks/index-
|
|
5
|
-
import { c as createMenuScope, R as Root3, A as Anchor2, P as Portal, C as Content2$1, I as Item2$1, a as CheckboxItem, b as ItemIndicator, d as RadioItem, L as Label, S as Separator, G as Group, e as Sub, f as SubContent, g as SubTrigger, h as RadioGroup, i as Arrow2, j as Circle } from '../chunks/index-
|
|
6
|
-
import { u as useCallbackRef } from '../chunks/index-
|
|
7
|
-
import { u as useControllableState } from '../chunks/index-
|
|
2
|
+
import { c as composeEventHandlers } from '../chunks/index-Db1acFFW.mjs';
|
|
3
|
+
import { c as createContextScope } from '../chunks/index-BdYD9SA8.mjs';
|
|
4
|
+
import { P as Primitive } from '../chunks/index-B7kZbHfd.mjs';
|
|
5
|
+
import { c as createMenuScope, R as Root3, A as Anchor2, P as Portal, C as Content2$1, I as Item2$1, a as CheckboxItem, b as ItemIndicator, d as RadioItem, L as Label, S as Separator, G as Group, e as Sub, f as SubContent, g as SubTrigger, h as RadioGroup, i as Arrow2, j as Circle } from '../chunks/index-CVGBR4nU.mjs';
|
|
6
|
+
import { u as useCallbackRef } from '../chunks/index-D5pght6h.mjs';
|
|
7
|
+
import { u as useControllableState } from '../chunks/index-Bs4nZmb7.mjs';
|
|
8
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
import { c as cn } from '../chunks/utils-
|
|
10
|
-
import { C as Check } from '../chunks/check-
|
|
11
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
9
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
10
|
+
import { C as Check } from '../chunks/check-M4AEcM3j.mjs';
|
|
11
|
+
import { C as ChevronRight } from '../chunks/chevron-right-aTufSnLl.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
|
-
import '../chunks/createLucideIcon-
|
|
14
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
15
15
|
import '@radix-ui/react-collection';
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/tslib.es6-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/bundle-mjs-
|
|
16
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
17
|
+
import '../chunks/index-CLb4rDzh.mjs';
|
|
18
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
19
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
20
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
21
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
22
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
23
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
24
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
25
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
26
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
27
|
+
import '../chunks/index-DfjpL9Sk.mjs';
|
|
28
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
29
29
|
|
|
30
30
|
var CONTEXT_MENU_NAME = "ContextMenu";
|
|
31
31
|
var [createContextMenuContext] = createContextScope(CONTEXT_MENU_NAME, [
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { forwardRef, createElement } from 'react';
|
|
3
|
-
import { c as cn } from '../chunks/utils-
|
|
4
|
-
import { C as ChevronDown } from '../chunks/chevron-down-
|
|
5
|
-
import { C as Check } from '../chunks/check-
|
|
6
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
7
|
-
import { B as Button } from '../chunks/button-
|
|
8
|
-
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem, S as Search } from '../chunks/command-
|
|
9
|
-
import { I as Input } from '../chunks/input-
|
|
10
|
-
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-
|
|
11
|
-
import { C as ChevronLeft } from '../chunks/chevron-left-
|
|
12
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
13
|
-
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-
|
|
14
|
-
import { S as Skeleton } from '../chunks/skeleton-
|
|
15
|
-
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-
|
|
16
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
17
|
-
import { S as Sortable, b as SortableItem } from '../chunks/sortable-
|
|
18
|
-
import '../chunks/bundle-mjs-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
3
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
4
|
+
import { C as ChevronDown } from '../chunks/chevron-down-BgIYlWhk.mjs';
|
|
5
|
+
import { C as Check } from '../chunks/check-M4AEcM3j.mjs';
|
|
6
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-BFcKYAot.mjs';
|
|
7
|
+
import { B as Button } from '../chunks/button-ay7E6KrE.mjs';
|
|
8
|
+
import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem, S as Search } from '../chunks/command-OnnopJEP.mjs';
|
|
9
|
+
import { I as Input } from '../chunks/input-CqipwgOY.mjs';
|
|
10
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-CQBb4aB3.mjs';
|
|
11
|
+
import { C as ChevronLeft } from '../chunks/chevron-left-wvVA3SWH.mjs';
|
|
12
|
+
import { C as ChevronRight } from '../chunks/chevron-right-aTufSnLl.mjs';
|
|
13
|
+
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-CzDSUdbY.mjs';
|
|
14
|
+
import { S as Skeleton } from '../chunks/skeleton-Bd9uEq1R.mjs';
|
|
15
|
+
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-C829r3Zv.mjs';
|
|
16
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
17
|
+
import { S as Sortable, b as SortableItem } from '../chunks/sortable-CTcnqQX_.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
19
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
20
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
21
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
22
22
|
import 'react/jsx-runtime';
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
23
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
24
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import '@radix-ui/react-slot';
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/tslib.es6-
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
36
|
-
import '../chunks/index-
|
|
27
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
28
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
29
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
30
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
31
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
32
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
33
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
34
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
35
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
36
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
37
37
|
import 'class-variance-authority';
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/dialog-
|
|
40
|
-
import '../chunks/x-
|
|
38
|
+
import '../chunks/index-C45e7-3X.mjs';
|
|
39
|
+
import '../chunks/dialog-D-h9t9_b.mjs';
|
|
40
|
+
import '../chunks/x-BZdVnIMx.mjs';
|
|
41
41
|
import '@radix-ui/react-select';
|
|
42
|
-
import '../chunks/ellipsis-
|
|
42
|
+
import '../chunks/ellipsis-x68Orkqp.mjs';
|
|
43
43
|
|
|
44
44
|
const __iconNode$1 = [
|
|
45
45
|
[
|
|
@@ -9,15 +9,27 @@ import 'react-day-picker';
|
|
|
9
9
|
import '@radix-ui/react-popover';
|
|
10
10
|
|
|
11
11
|
interface DatePickerProps extends Omit<React__default.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect"> {
|
|
12
|
+
/** Data selecionada (pode ser Date ou string parseável) */
|
|
12
13
|
date: Date | string | undefined;
|
|
14
|
+
/** Função chamada ao selecionar uma data */
|
|
13
15
|
setDate: (date: Date | undefined) => void;
|
|
16
|
+
/** Texto exibido quando não há data selecionada */
|
|
14
17
|
placeholder?: string;
|
|
18
|
+
/** ID opcional do botão */
|
|
15
19
|
id?: string;
|
|
20
|
+
/** Props extras para o botão */
|
|
16
21
|
buttonProps?: ButtonProps;
|
|
22
|
+
/** Props extras para o popover */
|
|
17
23
|
popoverProps?: React__default.ComponentProps<typeof Popover>;
|
|
24
|
+
/** Classe extra para o conteúdo do popover */
|
|
18
25
|
popoverContentClassName?: string;
|
|
26
|
+
/** Classe extra para o botão */
|
|
19
27
|
className?: string;
|
|
20
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Permite desabilitar datas específicas (igual ao Calendar do shadcn)
|
|
30
|
+
* Pode ser um boolean, ou uma função que recebe a data e retorna boolean
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean | ((date: Date) => boolean);
|
|
21
33
|
}
|
|
22
34
|
declare function DatePicker({ date, setDate, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
23
35
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
2
|
-
import { t as tryParseDate, C as CalendarDays, p as ptBR } from '../chunks/pt-BR-
|
|
1
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
2
|
+
import { t as tryParseDate, C as CalendarDays, p as ptBR } from '../chunks/pt-BR-on-YW6Ay.mjs';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
5
|
-
import { B as Button } from '../chunks/button-
|
|
6
|
-
import { f as format, C as Calendar } from '../chunks/calendar-
|
|
7
|
-
import '../chunks/bundle-mjs-
|
|
8
|
-
import '../chunks/createLucideIcon-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
4
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-BFcKYAot.mjs';
|
|
5
|
+
import { B as Button } from '../chunks/button-ay7E6KrE.mjs';
|
|
6
|
+
import { f as format, C as Calendar } from '../chunks/calendar-D98dWxWB.mjs';
|
|
7
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
8
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
9
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
10
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
11
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
12
12
|
import 'react/jsx-runtime';
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
13
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
14
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@radix-ui/react-slot';
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/tslib.es6-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
17
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
18
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
19
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
20
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
21
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
22
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
23
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
24
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
25
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
26
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
27
27
|
import 'class-variance-authority';
|
|
28
|
-
import '../chunks/chevron-left-
|
|
29
|
-
import '../chunks/chevron-right-
|
|
30
|
-
import '../chunks/chevron-down-
|
|
28
|
+
import '../chunks/chevron-left-wvVA3SWH.mjs';
|
|
29
|
+
import '../chunks/chevron-right-aTufSnLl.mjs';
|
|
30
|
+
import '../chunks/chevron-down-BgIYlWhk.mjs';
|
|
31
31
|
|
|
32
32
|
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }) {
|
|
33
33
|
const validDate = tryParseDate(date);
|
|
@@ -37,7 +37,7 @@ function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "d
|
|
|
37
37
|
id: id,
|
|
38
38
|
variant: "outline",
|
|
39
39
|
className: cn("hover:text-foreground justify-start text-left font-normal", !validDate && "text-muted-foreground hover:text-muted-foreground", className),
|
|
40
|
-
disabled: disabled,
|
|
40
|
+
disabled: typeof disabled === "boolean" ? disabled : undefined,
|
|
41
41
|
...buttonProps
|
|
42
42
|
}, /*#__PURE__*/ React__default.createElement(CalendarDays, {
|
|
43
43
|
className: "size-4"
|
|
@@ -55,6 +55,7 @@ function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "d
|
|
|
55
55
|
numberOfMonths: 1,
|
|
56
56
|
fromYear: 2010,
|
|
57
57
|
toYear: 2040,
|
|
58
|
+
disabled: disabled,
|
|
58
59
|
...props,
|
|
59
60
|
mode: "single"
|
|
60
61
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/components/ui/date-picker/date-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { Button, type ButtonProps } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\nimport { tryParseDate } from \"@/utils/date\";\nimport { format } from \"date-fns\";\nimport { ptBR } from \"date-fns/locale\";\nimport { CalendarDaysIcon } from \"lucide-react\";\nimport React from \"react\";\n\nexport interface DatePickerProps\n\textends Omit<React.ComponentProps<typeof Calendar>, \"mode\" | \"selected\" | \"onSelect\"> {\n\tdate: Date | string | undefined;\n\tsetDate: (date: Date | undefined) => void;\n\tplaceholder?: string;\n\tid?: string;\n\tbuttonProps?: ButtonProps;\n\tpopoverProps?: React.ComponentProps<typeof Popover>;\n\tpopoverContentClassName?: string;\n\tclassName?: string;\n\tdisabled?: boolean;\n}\n\nexport function DatePicker({\n\tdate,\n\tsetDate,\n\tplaceholder = \"Selecione uma data\",\n\tid = \"date-picker\",\n\tbuttonProps,\n\tpopoverProps,\n\tpopoverContentClassName,\n\tclassName,\n\tdisabled,\n\t...props\n}: DatePickerProps) {\n\tconst validDate = tryParseDate(date);\n\n\treturn (\n\t\t<Popover {...popoverProps}>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button\n\t\t\t\t\tid={id}\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"hover:text-foreground justify-start text-left font-normal\",\n\t\t\t\t\t\t!validDate && \"text-muted-foreground hover:text-muted-foreground\",\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t{...buttonProps}\n\t\t\t\t>\n\t\t\t\t\t<CalendarDaysIcon className=\"size-4\" />\n\t\t\t\t\t{validDate ? format(validDate, \"P\", { locale: ptBR }) : <span>{placeholder}</span>}\n\t\t\t\t</Button>\n\t\t\t</PopoverTrigger>\n\n\t\t\t<PopoverContent className={cn(\"w-auto p-0\", popoverContentClassName)} align=\"start\">\n\t\t\t\t<Calendar\n\t\t\t\t\tautoFocus\n\t\t\t\t\tcaptionLayout=\"dropdown\"\n\t\t\t\t\tselected={validDate}\n\t\t\t\t\tonSelect={setDate}\n\t\t\t\t\tlocale={ptBR}\n\t\t\t\t\tnumberOfMonths={1}\n\t\t\t\t\tfromYear={2010}\n\t\t\t\t\ttoYear={2040}\n\t\t\t\t\t{...props}\n\t\t\t\t\tmode=\"single\"\n\t\t\t\t/>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t);\n}\n"],"names":["DatePicker","date","setDate","placeholder","id","buttonProps","popoverProps","popoverContentClassName","className","disabled","props","validDate","tryParseDate","React","Popover","PopoverTrigger","asChild","Button","variant","cn","CalendarDaysIcon","format","locale","ptBR","span","PopoverContent","align","Calendar","autoFocus","captionLayout","selected","onSelect","numberOfMonths","fromYear","toYear","mode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/components/ui/date-picker/date-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { Button, type ButtonProps } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\nimport { tryParseDate } from \"@/utils/date\";\nimport { format } from \"date-fns\";\nimport { ptBR } from \"date-fns/locale\";\nimport { CalendarDaysIcon } from \"lucide-react\";\nimport React from \"react\";\n\nexport interface DatePickerProps\n\textends Omit<React.ComponentProps<typeof Calendar>, \"mode\" | \"selected\" | \"onSelect\"> {\n\t/** Data selecionada (pode ser Date ou string parseável) */\n\tdate: Date | string | undefined;\n\n\t/** Função chamada ao selecionar uma data */\n\tsetDate: (date: Date | undefined) => void;\n\n\t/** Texto exibido quando não há data selecionada */\n\tplaceholder?: string;\n\n\t/** ID opcional do botão */\n\tid?: string;\n\n\t/** Props extras para o botão */\n\tbuttonProps?: ButtonProps;\n\n\t/** Props extras para o popover */\n\tpopoverProps?: React.ComponentProps<typeof Popover>;\n\n\t/** Classe extra para o conteúdo do popover */\n\tpopoverContentClassName?: string;\n\n\t/** Classe extra para o botão */\n\tclassName?: string;\n\n\t/**\n\t * Permite desabilitar datas específicas (igual ao Calendar do shadcn)\n\t * Pode ser um boolean, ou uma função que recebe a data e retorna boolean\n\t */\n\tdisabled?: boolean | ((date: Date) => boolean);\n}\n\nexport function DatePicker({\n\tdate,\n\tsetDate,\n\tplaceholder = \"Selecione uma data\",\n\tid = \"date-picker\",\n\tbuttonProps,\n\tpopoverProps,\n\tpopoverContentClassName,\n\tclassName,\n\tdisabled,\n\t...props\n}: DatePickerProps) {\n\tconst validDate = tryParseDate(date);\n\n\treturn (\n\t\t<Popover {...popoverProps}>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button\n\t\t\t\t\tid={id}\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\"hover:text-foreground justify-start text-left font-normal\",\n\t\t\t\t\t\t!validDate && \"text-muted-foreground hover:text-muted-foreground\",\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\tdisabled={typeof disabled === \"boolean\" ? disabled : undefined}\n\t\t\t\t\t{...buttonProps}\n\t\t\t\t>\n\t\t\t\t\t<CalendarDaysIcon className=\"size-4\" />\n\t\t\t\t\t{validDate ? format(validDate, \"P\", { locale: ptBR }) : <span>{placeholder}</span>}\n\t\t\t\t</Button>\n\t\t\t</PopoverTrigger>\n\n\t\t\t<PopoverContent className={cn(\"w-auto p-0\", popoverContentClassName)} align=\"start\">\n\t\t\t\t<Calendar\n\t\t\t\t\tautoFocus\n\t\t\t\t\tcaptionLayout=\"dropdown\"\n\t\t\t\t\tselected={validDate}\n\t\t\t\t\tonSelect={setDate}\n\t\t\t\t\tlocale={ptBR}\n\t\t\t\t\tnumberOfMonths={1}\n\t\t\t\t\tfromYear={2010}\n\t\t\t\t\ttoYear={2040}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t{...props}\n\t\t\t\t\tmode=\"single\"\n\t\t\t\t/>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t);\n}\n"],"names":["DatePicker","date","setDate","placeholder","id","buttonProps","popoverProps","popoverContentClassName","className","disabled","props","validDate","tryParseDate","React","Popover","PopoverTrigger","asChild","Button","variant","cn","undefined","CalendarDaysIcon","format","locale","ptBR","span","PopoverContent","align","Calendar","autoFocus","captionLayout","selected","onSelect","numberOfMonths","fromYear","toYear","mode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CO,SAASA,UAAAA,CAAW,EAC1BC,IAAI,EACJC,OAAO,EACPC,WAAAA,GAAc,oBAAoB,EAClCC,EAAAA,GAAK,aAAa,EAClBC,WAAW,EACXC,YAAY,EACZC,uBAAuB,EACvBC,SAAS,EACTC,QAAQ,EACR,GAAGC,KAAAA,EACc,EAAA;AACjB,IAAA,MAAMC,YAAYC,YAAAA,CAAaX,IAAAA,CAAAA;IAE/B,qBACCY,cAAA,CAAA,aAAA,CAACC,OAAAA,EAAYR,YAAAA,gBACZO,cAAA,CAAA,aAAA,CAACE,cAAAA,EAAAA;QAAeC,OAAAA,EAAAA;qBACfH,cAAA,CAAA,aAAA,CAACI,MAAAA,EAAAA;QACAb,EAAAA,EAAIA,EAAAA;QACJc,OAAAA,EAAQ,SAAA;AACRV,QAAAA,SAAAA,EAAWW,EAAAA,CACV,2DAAA,EACA,CAACR,SAAAA,IAAa,mDAAA,EACdH,SAAAA,CAAAA;QAEDC,QAAAA,EAAU,OAAOA,QAAAA,KAAa,SAAA,GAAYA,QAAAA,GAAWW,SAAAA;AACpD,QAAA,GAAGf;qBAEJQ,cAAA,CAAA,aAAA,CAACQ,YAAAA,EAAAA;QAAiBb,SAAAA,EAAU;QAC3BG,SAAAA,GAAYW,MAAAA,CAAOX,WAAW,GAAA,EAAK;QAAEY,MAAAA,EAAQC;KAAK,CAAA,iBAAKX,cAAA,CAAA,aAAA,CAACY,MAAAA,EAAAA,IAAAA,EAAMtB,WAAAA,CAAAA,CAAAA,CAAAA,gBAIjEU,cAAA,CAAA,aAAA,CAACa,cAAAA,EAAAA;AAAelB,QAAAA,SAAAA,EAAWW,GAAG,YAAA,EAAcZ,uBAAAA,CAAAA;QAA0BoB,KAAAA,EAAM;qBAC3Ed,cAAA,CAAA,aAAA,CAACe,QAAAA,EAAAA;QACAC,SAAAA,EAAAA,IAAAA;QACAC,aAAAA,EAAc,UAAA;QACdC,QAAAA,EAAUpB,SAAAA;QACVqB,QAAAA,EAAU9B,OAAAA;QACVqB,MAAAA,EAAQC,IAAAA;QACRS,cAAAA,EAAgB,CAAA;QAChBC,QAAAA,EAAU,IAAA;QACVC,MAAAA,EAAQ,IAAA;QACR1B,QAAAA,EAAUA,QAAAA;AACT,QAAA,GAAGC,KAAK;QACT0B,IAAAA,EAAK;;AAKV;;;;"}
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { D as Dialog, a as DialogClose, b as DialogContent, c as DialogDescription, d as DialogFooter, e as DialogHeader, f as DialogOverlay, g as DialogPortal, h as DialogTitle, i as DialogTrigger } from '../chunks/dialog-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
4
|
-
import '../chunks/index-
|
|
1
|
+
export { D as Dialog, a as DialogClose, b as DialogContent, c as DialogDescription, d as DialogFooter, e as DialogHeader, f as DialogOverlay, g as DialogPortal, h as DialogTitle, i as DialogTrigger } from '../chunks/dialog-D-h9t9_b.mjs';
|
|
2
|
+
import '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
4
|
+
import '../chunks/index-C45e7-3X.mjs';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../chunks/index-
|
|
7
|
-
import '../chunks/index-
|
|
8
|
-
import '../chunks/index-
|
|
6
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
7
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
8
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
10
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
11
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
12
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
13
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
14
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
15
15
|
import 'react-dom';
|
|
16
16
|
import '@radix-ui/react-slot';
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/tslib.es6-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/x-
|
|
23
|
-
import '../chunks/createLucideIcon-
|
|
17
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
18
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
19
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
20
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
21
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
22
|
+
import '../chunks/x-BZdVnIMx.mjs';
|
|
23
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
24
24
|
//# sourceMappingURL=index.mjs.map
|
package/dist/drawer/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useLayoutEffect, useEffect, useMemo } from 'react';
|
|
3
|
-
import { b as Trigger, C as Close, T as Title, D as Description, R as Root$1, P as Portal$1, O as Overlay$1, a as Content$1 } from '../chunks/index-
|
|
4
|
-
import { c as cn } from '../chunks/utils-
|
|
5
|
-
import '../chunks/index-
|
|
6
|
-
import '../chunks/index-
|
|
7
|
-
import '../chunks/index-
|
|
3
|
+
import { b as Trigger, C as Close, T as Title, D as Description, R as Root$1, P as Portal$1, O as Overlay$1, a as Content$1 } from '../chunks/index-C45e7-3X.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
5
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
6
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
7
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
9
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
10
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
11
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
12
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
13
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
14
14
|
import 'react-dom';
|
|
15
15
|
import '@radix-ui/react-slot';
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/tslib.es6-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/bundle-mjs-
|
|
16
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
17
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
18
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
19
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
20
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
22
22
|
|
|
23
23
|
function __insertCSS(code) {
|
|
24
24
|
if (typeof document == 'undefined') return;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
1
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
5
|
-
import { c as composeRefs } from '../chunks/index-
|
|
6
|
-
import { c as createContextScope } from '../chunks/index-
|
|
7
|
-
import { u as useControllableState } from '../chunks/index-
|
|
8
|
-
import { P as Primitive } from '../chunks/index-
|
|
9
|
-
import { c as createMenuScope, R as Root3, P as Portal, A as Anchor2, C as Content2$1, G as Group, L as Label, I as Item2$1, a as CheckboxItem, b as ItemIndicator, h as RadioGroup, d as RadioItem, S as Separator, e as Sub, g as SubTrigger, f as SubContent, i as Arrow2, j as Circle } from '../chunks/index-
|
|
10
|
-
import { u as useId } from '../chunks/index-
|
|
4
|
+
import { c as composeEventHandlers } from '../chunks/index-Db1acFFW.mjs';
|
|
5
|
+
import { c as composeRefs } from '../chunks/index-BsVg0u5v.mjs';
|
|
6
|
+
import { c as createContextScope } from '../chunks/index-BdYD9SA8.mjs';
|
|
7
|
+
import { u as useControllableState } from '../chunks/index-Bs4nZmb7.mjs';
|
|
8
|
+
import { P as Primitive } from '../chunks/index-B7kZbHfd.mjs';
|
|
9
|
+
import { c as createMenuScope, R as Root3, P as Portal, A as Anchor2, C as Content2$1, G as Group, L as Label, I as Item2$1, a as CheckboxItem, b as ItemIndicator, h as RadioGroup, d as RadioItem, S as Separator, e as Sub, g as SubTrigger, f as SubContent, i as Arrow2, j as Circle } from '../chunks/index-CVGBR4nU.mjs';
|
|
10
|
+
import { u as useId } from '../chunks/index-DRdSNmMB.mjs';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
|
-
import { C as Check } from '../chunks/check-
|
|
13
|
-
import { C as ChevronRight } from '../chunks/chevron-right-
|
|
14
|
-
import '../chunks/bundle-mjs-
|
|
15
|
-
import '../chunks/index-
|
|
12
|
+
import { C as Check } from '../chunks/check-M4AEcM3j.mjs';
|
|
13
|
+
import { C as ChevronRight } from '../chunks/chevron-right-aTufSnLl.mjs';
|
|
14
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
15
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import '@radix-ui/react-slot';
|
|
18
|
-
import '../chunks/createLucideIcon-
|
|
18
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
19
19
|
import '@radix-ui/react-collection';
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/tslib.es6-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/index-
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
20
|
+
import '../chunks/index-CLb4rDzh.mjs';
|
|
21
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
22
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
23
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
24
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
25
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
26
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
27
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
28
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
29
|
+
import '../chunks/index-DfjpL9Sk.mjs';
|
|
30
30
|
|
|
31
31
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
32
32
|
var [createDropdownMenuContext] = createContextScope(DROPDOWN_MENU_NAME, [
|
package/dist/dropzone/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useMemo, useCallback, useState, forwardRef, useImperativeHandle, Fragment, useReducer } from 'react';
|
|
2
|
-
import { c as cn, f as formatBytes } from '../chunks/utils-
|
|
3
|
-
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-
|
|
4
|
-
import { c as __awaiter } from '../chunks/tslib.es6-
|
|
5
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
6
|
-
import { S as ScrollArea } from '../chunks/scroll-area-
|
|
7
|
-
import { P as Progress } from '../chunks/progress-
|
|
8
|
-
import { X } from '../chunks/x-
|
|
9
|
-
import { B as Button } from '../chunks/button-
|
|
10
|
-
import '../chunks/bundle-mjs-
|
|
11
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn, f as formatBytes } from '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-CZIfjjiR.mjs';
|
|
4
|
+
import { c as __awaiter } from '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
5
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
6
|
+
import { S as ScrollArea } from '../chunks/scroll-area-B9cWImdG.mjs';
|
|
7
|
+
import { P as Progress } from '../chunks/progress-Cm71BOo_.mjs';
|
|
8
|
+
import { X } from '../chunks/x-BZdVnIMx.mjs';
|
|
9
|
+
import { B as Button } from '../chunks/button-ay7E6KrE.mjs';
|
|
10
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
11
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
15
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
16
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
17
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
18
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
19
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
20
|
+
import '../chunks/index-CLb4rDzh.mjs';
|
|
21
|
+
import '../chunks/index-qOZvnMSQ.mjs';
|
|
22
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
23
23
|
import 'class-variance-authority';
|
|
24
24
|
|
|
25
25
|
const __iconNode$1 = [
|
|
@@ -7767,15 +7767,14 @@ function FileUploader(props) {
|
|
|
7767
7767
|
id: id,
|
|
7768
7768
|
...getInputProps()
|
|
7769
7769
|
}), isDragActive ? /*#__PURE__*/ React__default.createElement("div", {
|
|
7770
|
-
className: "flex flex-col items-center justify-center gap-
|
|
7771
|
-
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7772
|
-
className: "rounded-md border p-2.5"
|
|
7770
|
+
className: "flex flex-col items-center justify-center gap-2"
|
|
7773
7771
|
}, /*#__PURE__*/ React__default.createElement(Upload, {
|
|
7774
|
-
className: "
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7772
|
+
className: "text-primary h-10 w-10"
|
|
7773
|
+
}), /*#__PURE__*/ React__default.createElement("p", {
|
|
7774
|
+
className: "text-lg font-medium"
|
|
7775
|
+
}, "Arraste e solte seu", multiple ? "s" : "", " arquivo", multiple ? "s" : "", " XML aqui"), /*#__PURE__*/ React__default.createElement("p", {
|
|
7776
|
+
className: "text-sm text-gray-500"
|
|
7777
|
+
}, "ou clique para procurar")) : /*#__PURE__*/ React__default.createElement("div", {
|
|
7779
7778
|
className: "flex flex-col items-center justify-center gap-4 sm:px-5"
|
|
7780
7779
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7781
7780
|
className: "rounded-md border p-2.5"
|