ivt 0.4.8 → 0.5.0
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 +43 -32
- package/dist/combobox/index.mjs.map +1 -1
- 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 +19 -2
- package/dist/date-picker/index.mjs +29 -27
- 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,40 +1,46 @@
|
|
|
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
|
-
function Combobox({ items, value, onValueChange, placeholder = "
|
|
33
|
+
function Combobox({ items, value, onValueChange, placeholder = "Selecione um item...", searchPlaceholder = "Busque um item...", emptyMessage = "Nenhum item encontrado.", widthClassName = "w-fit", className, groupHeading }) {
|
|
34
34
|
const [open, setOpen] = React.useState(false);
|
|
35
|
+
const [search, setSearch] = React.useState("");
|
|
36
|
+
const filteredItems = items.filter((item)=>{
|
|
37
|
+
const match = item.label.toLowerCase().includes(search.toLowerCase());
|
|
38
|
+
return match;
|
|
39
|
+
});
|
|
35
40
|
const handleSelect = (currentValue)=>{
|
|
36
41
|
onValueChange(currentValue === value ? "" : currentValue);
|
|
37
42
|
setOpen(false);
|
|
43
|
+
setSearch("");
|
|
38
44
|
};
|
|
39
45
|
return /*#__PURE__*/ React.createElement(Popover, {
|
|
40
46
|
open: open,
|
|
@@ -45,19 +51,24 @@ function Combobox({ items, value, onValueChange, placeholder = "Select item...",
|
|
|
45
51
|
variant: "outline",
|
|
46
52
|
"aria-expanded": open,
|
|
47
53
|
className: cn(widthClassName, "justify-between", className)
|
|
48
|
-
}, value ? items.find((item)=>item.value === value)?.label : placeholder, /*#__PURE__*/ React.createElement(ChevronsUpDown, {
|
|
54
|
+
}, value ? items.find((item)=>item.value === value)?.label ?? emptyMessage : placeholder, /*#__PURE__*/ React.createElement(ChevronsUpDown, {
|
|
49
55
|
className: "ml-2 h-4 w-4 shrink-0 opacity-50"
|
|
50
56
|
}))), /*#__PURE__*/ React.createElement(PopoverContent, {
|
|
57
|
+
align: "start",
|
|
51
58
|
className: cn(widthClassName, "p-0")
|
|
52
59
|
}, /*#__PURE__*/ React.createElement(Command, null, /*#__PURE__*/ React.createElement(CommandInput, {
|
|
53
60
|
placeholder: searchPlaceholder,
|
|
54
|
-
className: "h-9"
|
|
61
|
+
className: "h-9",
|
|
62
|
+
value: search,
|
|
63
|
+
onInput: (e)=>{
|
|
64
|
+
setSearch(e.currentTarget.value);
|
|
65
|
+
}
|
|
55
66
|
}), /*#__PURE__*/ React.createElement(CommandList, null, /*#__PURE__*/ React.createElement(CommandEmpty, null, emptyMessage), /*#__PURE__*/ React.createElement(CommandGroup, {
|
|
56
67
|
heading: groupHeading
|
|
57
|
-
},
|
|
68
|
+
}, filteredItems.map((item)=>/*#__PURE__*/ React.createElement(CommandItem, {
|
|
58
69
|
key: item.value,
|
|
59
|
-
value: item.
|
|
60
|
-
onSelect: handleSelect
|
|
70
|
+
value: item.label,
|
|
71
|
+
onSelect: ()=>handleSelect(item.value)
|
|
61
72
|
}, item.label, /*#__PURE__*/ React.createElement(Check, {
|
|
62
73
|
className: cn("ml-auto h-4 w-4", value === item.value ? "opacity-100" : "opacity-0")
|
|
63
74
|
}))))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/components/ui/combobox/combobox.tsx"],"sourcesContent":["\"use client\";\n\nimport { Check, ChevronsUpDown } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n\tCommand,\n\tCommandEmpty,\n\tCommandGroup,\n\tCommandInput,\n\tCommandItem,\n\tCommandList,\n} from \"@/components/ui/command\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\n\ninterface ComboboxItem {\n\tvalue: string;\n\tlabel: string;\n
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/components/ui/combobox/combobox.tsx"],"sourcesContent":["\"use client\";\n\nimport { Check, ChevronsUpDown } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n\tCommand,\n\tCommandEmpty,\n\tCommandGroup,\n\tCommandInput,\n\tCommandItem,\n\tCommandList,\n} from \"@/components/ui/command\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { cn } from \"@/lib/utils\";\n\ninterface ComboboxItem {\n\tvalue: string;\n\tlabel: string;\n}\n\ninterface ComboboxProps {\n\t/**\n\t * A lista de itens a serem exibidos no combobox.\n\t * Cada item deve ter 'value' e 'label'.\n\t */\n\titems: ComboboxItem[];\n\t/**\n\t * O valor atualmente selecionado no combobox.\n\t */\n\tvalue: string;\n\t/**\n\t * Função de callback para quando um item é selecionado.\n\t * Recebe o novo valor selecionado.\n\t */\n\tonValueChange: (newValue: string) => void;\n\t/**\n\t * Placeholder para o botão do combobox quando nenhum item está selecionado.\n\t * @default \"Select item...\"\n\t */\n\tplaceholder?: string;\n\t/**\n\t * Placeholder para o campo de busca dentro do combobox.\n\t * @default \"Search item...\"\n\t */\n\tsearchPlaceholder?: string;\n\t/**\n\t * Mensagem exibida quando nenhum item é encontrado na busca.\n\t * @default \"No item found.\"\n\t */\n\temptyMessage?: string;\n\t/**\n\t * Largura do combobox (e do popover).\n\t * @default \"w-[200px]\"\n\t */\n\twidthClassName?: string;\n\t/**\n\t * Classes CSS adicionais para o combobox principal.\n\t */\n\tclassName?: string;\n\t/**\n\t * Título do grupo de comandos.\n\t */\n\tgroupHeading?: string;\n}\n\nexport function Combobox({\n\titems,\n\tvalue,\n\tonValueChange,\n\tplaceholder = \"Selecione um item...\",\n\tsearchPlaceholder = \"Busque um item...\",\n\temptyMessage = \"Nenhum item encontrado.\",\n\twidthClassName = \"w-fit\",\n\tclassName,\n\tgroupHeading,\n}: ComboboxProps) {\n\tconst [open, setOpen] = React.useState(false);\n\tconst [search, setSearch] = React.useState(\"\");\n\n\tconst filteredItems = items.filter((item) => {\n\t\tconst match = item.label.toLowerCase().includes(search.toLowerCase());\n\t\treturn match;\n\t});\n\n\tconst handleSelect = (currentValue: string) => {\n\t\tonValueChange(currentValue === value ? \"\" : currentValue);\n\t\tsetOpen(false);\n\t\tsetSearch(\"\");\n\t};\n\n\treturn (\n\t\t<Popover open={open} onOpenChange={setOpen}>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\taria-expanded={open}\n\t\t\t\t\tclassName={cn(widthClassName, \"justify-between\", className)}\n\t\t\t\t>\n\t\t\t\t\t{value\n\t\t\t\t\t\t? (items.find((item) => item.value === value)?.label ?? emptyMessage)\n\t\t\t\t\t\t: placeholder}\n\t\t\t\t\t<ChevronsUpDown className=\"ml-2 h-4 w-4 shrink-0 opacity-50\" />\n\t\t\t\t</Button>\n\t\t\t</PopoverTrigger>\n\t\t\t<PopoverContent align=\"start\" className={cn(widthClassName, \"p-0\")}>\n\t\t\t\t<Command>\n\t\t\t\t\t<CommandInput\n\t\t\t\t\t\tplaceholder={searchPlaceholder}\n\t\t\t\t\t\tclassName=\"h-9\"\n\t\t\t\t\t\tvalue={search}\n\t\t\t\t\t\tonInput={(e) => {\n\t\t\t\t\t\t\tsetSearch(e.currentTarget.value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t<CommandList>\n\t\t\t\t\t\t<CommandEmpty>{emptyMessage}</CommandEmpty>\n\t\t\t\t\t\t<CommandGroup heading={groupHeading}>\n\t\t\t\t\t\t\t{filteredItems.map((item) => (\n\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\tkey={item.value}\n\t\t\t\t\t\t\t\t\tvalue={item.label}\n\t\t\t\t\t\t\t\t\tonSelect={() => handleSelect(item.value)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{item.label}\n\t\t\t\t\t\t\t\t\t<Check\n\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\"ml-auto h-4 w-4\",\n\t\t\t\t\t\t\t\t\t\t\tvalue === item.value ? \"opacity-100\" : \"opacity-0\",\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</CommandGroup>\n\t\t\t\t\t</CommandList>\n\t\t\t\t</Command>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t);\n}\n"],"names":["Combobox","items","value","onValueChange","placeholder","searchPlaceholder","emptyMessage","widthClassName","className","groupHeading","open","setOpen","React","useState","search","setSearch","filteredItems","filter","item","match","label","toLowerCase","includes","handleSelect","currentValue","Popover","onOpenChange","PopoverTrigger","asChild","Button","variant","aria-expanded","cn","find","ChevronsUpDown","PopoverContent","align","Command","CommandInput","onInput","e","currentTarget","CommandList","CommandEmpty","CommandGroup","heading","map","CommandItem","key","onSelect","Check"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEO,SAASA,QAAAA,CAAS,EACxBC,KAAK,EACLC,KAAK,EACLC,aAAa,EACbC,WAAAA,GAAc,sBAAsB,EACpCC,oBAAoB,mBAAmB,EACvCC,YAAAA,GAAe,yBAAyB,EACxCC,cAAAA,GAAiB,OAAO,EACxBC,SAAS,EACTC,YAAY,EACG,EAAA;AACf,IAAA,MAAM,CAACC,IAAAA,EAAMC,OAAAA,CAAQ,GAAGC,KAAAA,CAAMC,QAAQ,CAAC,KAAA,CAAA;AACvC,IAAA,MAAM,CAACC,MAAAA,EAAQC,SAAAA,CAAU,GAAGH,KAAAA,CAAMC,QAAQ,CAAC,EAAA,CAAA;AAE3C,IAAA,MAAMG,aAAAA,GAAgBf,KAAAA,CAAMgB,MAAM,CAAC,CAACC,IAAAA,GAAAA;QACnC,MAAMC,KAAAA,GAAQD,KAAKE,KAAK,CAACC,WAAW,EAAA,CAAGC,QAAQ,CAACR,MAAAA,CAAOO,WAAW,EAAA,CAAA;QAClE,OAAOF,KAAAA;AACR,IAAA,CAAA,CAAA;AAEA,IAAA,MAAMI,eAAe,CAACC,YAAAA,GAAAA;QACrBrB,aAAAA,CAAcqB,YAAAA,KAAiBtB,QAAQ,EAAA,GAAKsB,YAAAA,CAAAA;QAC5Cb,OAAAA,CAAQ,KAAA,CAAA;QACRI,SAAAA,CAAU,EAAA,CAAA;AACX,IAAA,CAAA;AAEA,IAAA,qBACC,KAAA,CAAA,aAAA,CAACU,OAAAA,EAAAA;QAAQf,IAAAA,EAAMA,IAAAA;QAAMgB,YAAAA,EAAcf;qBAClC,KAAA,CAAA,aAAA,CAACgB,cAAAA,EAAAA;QAAeC,OAAAA,EAAAA;qBACf,KAAA,CAAA,aAAA,CAACC,MAAAA,EAAAA;QACAC,OAAAA,EAAQ,SAAA;QACRC,eAAAA,EAAerB,IAAAA;QACfF,SAAAA,EAAWwB,EAAAA,CAAGzB,gBAAgB,iBAAA,EAAmBC,SAAAA;AAEhDN,KAAAA,EAAAA,KAAAA,GACGD,KAAAA,CAAMgC,IAAI,CAAC,CAACf,IAAAA,GAASA,IAAAA,CAAKhB,KAAK,KAAKA,KAAAA,CAAAA,EAAQkB,KAAAA,IAASd,YAAAA,GACtDF,WAAAA,gBACH,KAAA,CAAA,aAAA,CAAC8B,cAAAA,EAAAA;QAAe1B,SAAAA,EAAU;wBAG5B,KAAA,CAAA,aAAA,CAAC2B,cAAAA,EAAAA;QAAeC,KAAAA,EAAM,OAAA;AAAQ5B,QAAAA,SAAAA,EAAWwB,GAAGzB,cAAAA,EAAgB,KAAA;AAC3D,KAAA,gBAAA,KAAA,CAAA,aAAA,CAAC8B,6BACA,KAAA,CAAA,aAAA,CAACC,YAAAA,EAAAA;QACAlC,WAAAA,EAAaC,iBAAAA;QACbG,SAAAA,EAAU,KAAA;QACVN,KAAAA,EAAOY,MAAAA;AACPyB,QAAAA,OAAAA,EAAS,CAACC,CAAAA,GAAAA;YACTzB,SAAAA,CAAUyB,CAAAA,CAAEC,aAAa,CAACvC,KAAK,CAAA;AAChC,QAAA;AAED,KAAA,CAAA,gBAAA,KAAA,CAAA,aAAA,CAACwC,WAAAA,EAAAA,IAAAA,gBACA,KAAA,CAAA,aAAA,CAACC,YAAAA,EAAAA,IAAAA,EAAcrC,YAAAA,CAAAA,gBACf,KAAA,CAAA,aAAA,CAACsC,YAAAA,EAAAA;QAAaC,OAAAA,EAASpC;AACrBO,KAAAA,EAAAA,aAAAA,CAAc8B,GAAG,CAAC,CAAC5B,IAAAA,iBACnB,KAAA,CAAA,aAAA,CAAC6B,WAAAA,EAAAA;AACAC,YAAAA,GAAAA,EAAK9B,KAAKhB,KAAK;AACfA,YAAAA,KAAAA,EAAOgB,KAAKE,KAAK;YACjB6B,QAAAA,EAAU,IAAM1B,YAAAA,CAAaL,IAAAA,CAAKhB,KAAK;WAEtCgB,IAAAA,CAAKE,KAAK,gBACX,KAAA,CAAA,aAAA,CAAC8B,KAAAA,EAAAA;AACA1C,YAAAA,SAAAA,EAAWwB,GACV,iBAAA,EACA9B,KAAAA,KAAUgB,IAAAA,CAAKhB,KAAK,GAAG,aAAA,GAAgB,WAAA;;AAWlD;;;;"}
|
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,17 +9,34 @@ 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);
|
|
33
|
+
/**
|
|
34
|
+
* Mês padrão a ser mostrado (caso nenhuma data esteja selecionada)
|
|
35
|
+
* Por padrão, será o mês atual.
|
|
36
|
+
*/
|
|
37
|
+
defaultMonth?: Date;
|
|
21
38
|
}
|
|
22
|
-
declare function DatePicker({ date, setDate, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function DatePicker({ date, setDate, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, defaultMonth, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
23
40
|
|
|
24
41
|
export { DatePicker };
|
|
25
42
|
export type { DatePickerProps };
|
|
@@ -1,35 +1,35 @@
|
|
|
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
|
-
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }) {
|
|
32
|
+
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, defaultMonth, ...props }) {
|
|
33
33
|
const validDate = tryParseDate(date);
|
|
34
34
|
return /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
35
35
|
asChild: true
|
|
@@ -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,8 @@ 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,
|
|
59
|
+
defaultMonth: validDate ?? defaultMonth ?? new Date(),
|
|
58
60
|
...props,
|
|
59
61
|
mode: "single"
|
|
60
62
|
})));
|
|
@@ -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\t/**\n\t * Mês padrão a ser mostrado (caso nenhuma data esteja selecionada)\n\t * Por padrão, será o mês atual.\n\t */\n\tdefaultMonth?: Date;\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\tdefaultMonth,\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\tdefaultMonth={validDate ?? defaultMonth ?? new Date()}\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","defaultMonth","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","Date","mode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDO,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,EACRC,YAAY,EACZ,GAAGC,KAAAA,EACc,EAAA;AACjB,IAAA,MAAMC,YAAYC,YAAAA,CAAaZ,IAAAA,CAAAA;IAE/B,qBACCa,cAAA,CAAA,aAAA,CAACC,OAAAA,EAAYT,YAAAA,gBACZQ,cAAA,CAAA,aAAA,CAACE,cAAAA,EAAAA;QAAeC,OAAAA,EAAAA;qBACfH,cAAA,CAAA,aAAA,CAACI,MAAAA,EAAAA;QACAd,EAAAA,EAAIA,EAAAA;QACJe,OAAAA,EAAQ,SAAA;AACRX,QAAAA,SAAAA,EAAWY,EAAAA,CACV,2DAAA,EACA,CAACR,SAAAA,IAAa,mDAAA,EACdJ,SAAAA,CAAAA;QAEDC,QAAAA,EAAU,OAAOA,QAAAA,KAAa,SAAA,GAAYA,QAAAA,GAAWY,SAAAA;AACpD,QAAA,GAAGhB;qBAEJS,cAAA,CAAA,aAAA,CAACQ,YAAAA,EAAAA;QAAiBd,SAAAA,EAAU;QAC3BI,SAAAA,GAAYW,MAAAA,CAAOX,WAAW,GAAA,EAAK;QAAEY,MAAAA,EAAQC;KAAK,CAAA,iBAAKX,cAAA,CAAA,aAAA,CAACY,MAAAA,EAAAA,IAAAA,EAAMvB,WAAAA,CAAAA,CAAAA,CAAAA,gBAIjEW,cAAA,CAAA,aAAA,CAACa,cAAAA,EAAAA;AAAenB,QAAAA,SAAAA,EAAWY,GAAG,YAAA,EAAcb,uBAAAA,CAAAA;QAA0BqB,KAAAA,EAAM;qBAC3Ed,cAAA,CAAA,aAAA,CAACe,QAAAA,EAAAA;QACAC,SAAAA,EAAAA,IAAAA;QACAC,aAAAA,EAAc,UAAA;QACdC,QAAAA,EAAUpB,SAAAA;QACVqB,QAAAA,EAAU/B,OAAAA;QACVsB,MAAAA,EAAQC,IAAAA;QACRS,cAAAA,EAAgB,CAAA;QAChBC,QAAAA,EAAU,IAAA;QACVC,MAAAA,EAAQ,IAAA;QACR3B,QAAAA,EAAUA,QAAAA;QACVC,YAAAA,EAAcE,SAAAA,IAAaF,gBAAgB,IAAI2B,IAAAA,EAAAA;AAC9C,QAAA,GAAG1B,KAAK;QACT2B,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;
|