ivt 0.4.7 → 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 +43 -36
- package/dist/base/index.mjs +65 -76
- 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-Bk36x55h.mjs → Container-LlUz2Xf7.mjs} +2 -2
- package/dist/chunks/{Container-Bk36x55h.mjs.map → Container-LlUz2Xf7.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-B6NPw-gB.mjs → _commonjsHelpers-CZIfjjiR.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-CZIfjjiR.mjs.map +1 -0
- package/dist/chunks/{accordion-DkQil9br.mjs → accordion-BBMhFkK5.mjs} +11 -11
- package/dist/chunks/{accordion-DkQil9br.mjs.map → accordion-BBMhFkK5.mjs.map} +1 -1
- package/dist/chunks/{badge-DDmxqVIu.mjs → badge-CShT6Er8.mjs} +2 -2
- package/dist/chunks/{badge-DDmxqVIu.mjs.map → badge-CShT6Er8.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-Bj6M7Bh5.mjs → bundle-mjs-CXcNQyyo.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-Bj6M7Bh5.mjs.map → bundle-mjs-CXcNQyyo.mjs.map} +1 -1
- package/dist/chunks/{button-DUnGULhS.mjs → button-ay7E6KrE.mjs} +5 -3
- package/dist/chunks/button-ay7E6KrE.mjs.map +1 -0
- package/dist/chunks/{calendar-Cgi4uVPL.mjs → calendar-D98dWxWB.mjs} +23 -8
- package/dist/chunks/{calendar-Cgi4uVPL.mjs.map → calendar-D98dWxWB.mjs.map} +1 -1
- package/dist/chunks/{check-D7XegcNq.mjs → check-M4AEcM3j.mjs} +2 -2
- package/dist/chunks/{check-D7XegcNq.mjs.map → check-M4AEcM3j.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-B7w8j1qi.mjs → chevron-down-BgIYlWhk.mjs} +2 -2
- package/dist/chunks/{chevron-down-B7w8j1qi.mjs.map → chevron-down-BgIYlWhk.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-P-VgJSoP.mjs → chevron-left-wvVA3SWH.mjs} +2 -2
- package/dist/chunks/{chevron-left-P-VgJSoP.mjs.map → chevron-left-wvVA3SWH.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-D8I8B3al.mjs → chevron-right-aTufSnLl.mjs} +2 -2
- package/dist/chunks/{chevron-right-D8I8B3al.mjs.map → chevron-right-aTufSnLl.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-BJzgHrFv.mjs → chevrons-up-down-TytmUcIx.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-BJzgHrFv.mjs.map → chevrons-up-down-TytmUcIx.mjs.map} +1 -1
- package/dist/chunks/{command-B2Q7vPrV.mjs → command-OnnopJEP.mjs} +8 -8
- package/dist/chunks/{command-B2Q7vPrV.mjs.map → command-OnnopJEP.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BnuYhciy.mjs → createLucideIcon-DwD3HsEs.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BnuYhciy.mjs.map → createLucideIcon-DwD3HsEs.mjs.map} +1 -1
- package/dist/chunks/{dialog-5R8jYrH2.mjs → dialog-D-h9t9_b.mjs} +4 -4
- package/dist/chunks/{dialog-5R8jYrH2.mjs.map → dialog-D-h9t9_b.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-rAfolw0i.mjs → ellipsis-x68Orkqp.mjs} +2 -2
- package/dist/chunks/{ellipsis-rAfolw0i.mjs.map → ellipsis-x68Orkqp.mjs.map} +1 -1
- package/dist/chunks/{hover-card-IMC6GmGl.mjs → hover-card-DXAGq71O.mjs} +11 -11
- package/dist/chunks/{hover-card-IMC6GmGl.mjs.map → hover-card-DXAGq71O.mjs.map} +1 -1
- package/dist/chunks/{index-Cx4XlYKf.mjs → index-B7kZbHfd.mjs} +1 -1
- package/dist/chunks/{index-Cx4XlYKf.mjs.map → index-B7kZbHfd.mjs.map} +1 -1
- package/dist/chunks/{index-DGB6xduL.mjs → index-BBC4sR1G.mjs} +5 -5
- package/dist/chunks/{index-DGB6xduL.mjs.map → index-BBC4sR1G.mjs.map} +1 -1
- package/dist/chunks/{index-CUUcgAWS.mjs → index-BBONAxxm.mjs} +1 -1
- package/dist/chunks/{index-CUUcgAWS.mjs.map → index-BBONAxxm.mjs.map} +1 -1
- package/dist/chunks/{index-xgPrRc3G.mjs → index-BLAYpkjT.mjs} +5 -5
- package/dist/chunks/{index-xgPrRc3G.mjs.map → index-BLAYpkjT.mjs.map} +1 -1
- package/dist/chunks/{index-AD2ohxjm.mjs → index-BW3aCz7h.mjs} +1 -1
- package/dist/chunks/{index-AD2ohxjm.mjs.map → index-BW3aCz7h.mjs.map} +1 -1
- package/dist/chunks/{index-Bfqp6L57.mjs → index-BdYD9SA8.mjs} +1 -1
- package/dist/chunks/{index-Bfqp6L57.mjs.map → index-BdYD9SA8.mjs.map} +1 -1
- package/dist/chunks/{index-Dj2mKKII.mjs → index-Bs4nZmb7.mjs} +2 -2
- package/dist/chunks/{index-Dj2mKKII.mjs.map → index-Bs4nZmb7.mjs.map} +1 -1
- package/dist/chunks/{index-x0TwBXvJ.mjs → index-BsVg0u5v.mjs} +1 -1
- package/dist/chunks/{index-x0TwBXvJ.mjs.map → index-BsVg0u5v.mjs.map} +1 -1
- package/dist/chunks/{index-plymPSgY.mjs → index-BtRo1b5t.mjs} +3 -3
- package/dist/chunks/{index-plymPSgY.mjs.map → index-BtRo1b5t.mjs.map} +1 -1
- package/dist/chunks/{index-CIlaxeML.mjs → index-BxaETqU9.mjs} +3 -3
- package/dist/chunks/{index-CIlaxeML.mjs.map → index-BxaETqU9.mjs.map} +1 -1
- package/dist/chunks/{index-C-eBEzsd.mjs → index-C45e7-3X.mjs} +11 -11
- package/dist/chunks/{index-C-eBEzsd.mjs.map → index-C45e7-3X.mjs.map} +1 -1
- package/dist/chunks/{index-Bhy5-l7L.mjs → index-C5cl9B-D.mjs} +2 -2
- package/dist/chunks/{index-Bhy5-l7L.mjs.map → index-C5cl9B-D.mjs.map} +1 -1
- package/dist/chunks/{index-D02u4jwi.mjs → index-C9twRC0t.mjs} +1 -1
- package/dist/chunks/{index-D02u4jwi.mjs.map → index-C9twRC0t.mjs.map} +1 -1
- package/dist/chunks/{index-CI7Tnqaf.mjs → index-CLb4rDzh.mjs} +1 -1
- package/dist/chunks/{index-CI7Tnqaf.mjs.map → index-CLb4rDzh.mjs.map} +1 -1
- package/dist/chunks/{index-KCHKKCqw.mjs → index-CMbJ1I29.mjs} +2 -2
- package/dist/chunks/{index-KCHKKCqw.mjs.map → index-CMbJ1I29.mjs.map} +1 -1
- package/dist/chunks/{index-gB-FKFqi.mjs → index-CVGBR4nU.mjs} +15 -15
- package/dist/chunks/{index-gB-FKFqi.mjs.map → index-CVGBR4nU.mjs.map} +1 -1
- package/dist/chunks/{index-BtzrdXXu.mjs → index-D5pght6h.mjs} +1 -1
- package/dist/chunks/{index-BtzrdXXu.mjs.map → index-D5pght6h.mjs.map} +1 -1
- package/dist/chunks/{index-CiJHmWph.mjs → index-DRdSNmMB.mjs} +2 -2
- package/dist/chunks/{index-CiJHmWph.mjs.map → index-DRdSNmMB.mjs.map} +1 -1
- package/dist/chunks/{index-CxpHOtv2.mjs → index-DU7dxusa.mjs} +7 -7
- package/dist/chunks/{index-CxpHOtv2.mjs.map → index-DU7dxusa.mjs.map} +1 -1
- package/dist/chunks/{index-BL6I2O8I.mjs → index-Db1acFFW.mjs} +1 -1
- package/dist/chunks/{index-BL6I2O8I.mjs.map → index-Db1acFFW.mjs.map} +1 -1
- package/dist/chunks/{index-CsVkG_9K.mjs → index-DfjpL9Sk.mjs} +9 -9
- package/dist/chunks/{index-CsVkG_9K.mjs.map → index-DfjpL9Sk.mjs.map} +1 -1
- package/dist/chunks/{index-j8BDMqXg.mjs → index-DpqIXFxh.mjs} +9 -9
- package/dist/chunks/{index-j8BDMqXg.mjs.map → index-DpqIXFxh.mjs.map} +1 -1
- package/dist/chunks/{index-DKuVLbq1.mjs → index-qOZvnMSQ.mjs} +1 -1
- package/dist/chunks/{index-DKuVLbq1.mjs.map → index-qOZvnMSQ.mjs.map} +1 -1
- package/dist/chunks/{input-TuCGqI_P.mjs → input-CqipwgOY.mjs} +2 -2
- package/dist/chunks/{input-TuCGqI_P.mjs.map → input-CqipwgOY.mjs.map} +1 -1
- package/dist/chunks/{label-C3diPSrP.mjs → label-Cx4XtbXv.mjs} +3 -3
- package/dist/chunks/{label-C3diPSrP.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-CFPUC8_E.mjs → pagination-CzDSUdbY.mjs} +6 -6
- package/dist/chunks/{pagination-CFPUC8_E.mjs.map → pagination-CzDSUdbY.mjs.map} +1 -1
- package/dist/chunks/{popover-BLkBJEBi.mjs → popover-BFcKYAot.mjs} +13 -13
- package/dist/chunks/{popover-BLkBJEBi.mjs.map → popover-BFcKYAot.mjs.map} +1 -1
- package/dist/chunks/{progress-BCXpEea-.mjs → progress-Cm71BOo_.mjs} +4 -4
- package/dist/chunks/{progress-BCXpEea-.mjs.map → progress-Cm71BOo_.mjs.map} +1 -1
- package/dist/chunks/pt-BR-on-YW6Ay.mjs +3275 -0
- package/dist/chunks/pt-BR-on-YW6Ay.mjs.map +1 -0
- package/dist/chunks/{scroll-area-DfDHXrMl.mjs → scroll-area-B9cWImdG.mjs} +11 -11
- package/dist/chunks/{scroll-area-DfDHXrMl.mjs.map → scroll-area-B9cWImdG.mjs.map} +1 -1
- package/dist/chunks/{select-Dm61g3Di.mjs → select-CQBb4aB3.mjs} +5 -5
- package/dist/chunks/{select-Dm61g3Di.mjs.map → select-CQBb4aB3.mjs.map} +1 -1
- package/dist/chunks/{separator-D9zU7ztA.mjs → separator-D6zbGj0R.mjs} +3 -3
- package/dist/chunks/{separator-D9zU7ztA.mjs.map → separator-D6zbGj0R.mjs.map} +1 -1
- package/dist/chunks/{sheet-CG9T6jEm.mjs → sheet-C0AR_o6p.mjs} +4 -4
- package/dist/chunks/{sheet-CG9T6jEm.mjs.map → sheet-C0AR_o6p.mjs.map} +1 -1
- package/dist/chunks/{skeleton-BBrPlJZ6.mjs → skeleton-Bd9uEq1R.mjs} +2 -2
- package/dist/chunks/{skeleton-BBrPlJZ6.mjs.map → skeleton-Bd9uEq1R.mjs.map} +1 -1
- package/dist/chunks/{sortable-C5sg2z09.mjs → sortable-CTcnqQX_.mjs} +3 -3
- package/dist/chunks/{sortable-C5sg2z09.mjs.map → sortable-CTcnqQX_.mjs.map} +1 -1
- package/dist/chunks/{table-D8dawH6l.mjs → table-C829r3Zv.mjs} +2 -2
- package/dist/chunks/{table-D8dawH6l.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-BNDwy3fI.mjs → toggle-C8fZP79W.mjs} +5 -5
- package/dist/chunks/{toggle-BNDwy3fI.mjs.map → toggle-C8fZP79W.mjs.map} +1 -1
- package/dist/chunks/{tooltip-SoLw7T22.mjs → tooltip-R49U1IPs.mjs} +13 -13
- package/dist/chunks/{tooltip-SoLw7T22.mjs.map → tooltip-R49U1IPs.mjs.map} +1 -1
- package/dist/chunks/{trash-2-C_bzpesE.mjs → trash-2-ZC16Df_k.mjs} +2 -2
- package/dist/chunks/{trash-2-C_bzpesE.mjs.map → trash-2-ZC16Df_k.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-dgoTq-4a.mjs → tslib.es6-CnQYzBlA.mjs} +1 -1
- package/dist/chunks/{tslib.es6-dgoTq-4a.mjs.map → tslib.es6-CnQYzBlA.mjs.map} +1 -1
- package/dist/chunks/{utils-DiIQyE9g.mjs → utils-DwA_HfJw.mjs} +2 -2
- package/dist/chunks/{utils-DiIQyE9g.mjs.map → utils-DwA_HfJw.mjs.map} +1 -1
- package/dist/chunks/{x-BCPCYl4o.mjs → x-BZdVnIMx.mjs} +2 -2
- package/dist/chunks/{x-BCPCYl4o.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 +20 -21
- package/dist/date-picker/index.mjs +40 -39
- 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 -3
- package/dist/chunks/_commonjsHelpers-B6NPw-gB.mjs.map +0 -1
- package/dist/chunks/button-DUnGULhS.mjs.map +0 -1
- package/dist/chunks/pt-BR-dv9Ki026.mjs +0 -608
- package/dist/chunks/pt-BR-dv9Ki026.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
|
[
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonProps } from '../button/index.js';
|
|
3
|
+
import { Calendar } from '../calendar/index.js';
|
|
3
4
|
import { Popover } from '../popover/index.js';
|
|
4
5
|
import React__default from 'react';
|
|
5
6
|
import 'class-variance-authority/types';
|
|
6
7
|
import 'class-variance-authority';
|
|
8
|
+
import 'react-day-picker';
|
|
7
9
|
import '@radix-ui/react-popover';
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
/** Data
|
|
11
|
-
date: Date | undefined;
|
|
12
|
-
/**
|
|
11
|
+
interface DatePickerProps extends Omit<React__default.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect"> {
|
|
12
|
+
/** Data selecionada (pode ser Date ou string parseável) */
|
|
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;
|
|
15
|
-
/** ID opcional
|
|
18
|
+
/** ID opcional do botão */
|
|
16
19
|
id?: string;
|
|
17
|
-
/** Props
|
|
20
|
+
/** Props extras para o botão */
|
|
18
21
|
buttonProps?: ButtonProps;
|
|
19
|
-
/**
|
|
20
|
-
buttonClassName?: string;
|
|
21
|
-
/** Props adicionais para o popover */
|
|
22
|
+
/** Props extras para o popover */
|
|
22
23
|
popoverProps?: React__default.ComponentProps<typeof Popover>;
|
|
23
|
-
/**
|
|
24
|
+
/** Classe extra para o conteúdo do popover */
|
|
24
25
|
popoverContentClassName?: string;
|
|
25
|
-
/**
|
|
26
|
-
numberOfMonths?: number;
|
|
27
|
-
/** Ano inicial permitido */
|
|
28
|
-
fromYear?: number;
|
|
29
|
-
/** Ano final permitido */
|
|
30
|
-
toYear?: number;
|
|
31
|
-
/** Classes extras para o contêiner */
|
|
26
|
+
/** Classe extra para o botão */
|
|
32
27
|
className?: string;
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
declare function DatePicker({ date, setDate, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
37
35
|
|
|
38
36
|
export { DatePicker };
|
|
37
|
+
export type { DatePickerProps };
|
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
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';
|
|
2
3
|
import React__default from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import '../chunks/
|
|
8
|
-
import '../chunks/
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-Bfqp6L57.mjs';
|
|
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,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
32
|
+
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }) {
|
|
33
|
+
const validDate = tryParseDate(date);
|
|
34
|
+
return /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
36
35
|
asChild: true
|
|
37
36
|
}, /*#__PURE__*/ React__default.createElement(Button, {
|
|
38
37
|
id: id,
|
|
39
38
|
variant: "outline",
|
|
40
|
-
className: cn("hover:text-foreground
|
|
41
|
-
disabled: disabled,
|
|
39
|
+
className: cn("hover:text-foreground justify-start text-left font-normal", !validDate && "text-muted-foreground hover:text-muted-foreground", className),
|
|
40
|
+
disabled: typeof disabled === "boolean" ? disabled : undefined,
|
|
42
41
|
...buttonProps
|
|
43
42
|
}, /*#__PURE__*/ React__default.createElement(CalendarDays, {
|
|
44
43
|
className: "size-4"
|
|
45
|
-
}),
|
|
44
|
+
}), validDate ? format(validDate, "P", {
|
|
46
45
|
locale: ptBR
|
|
47
46
|
}) : /*#__PURE__*/ React__default.createElement("span", null, placeholder))), /*#__PURE__*/ React__default.createElement(PopoverContent, {
|
|
48
47
|
className: cn("w-auto p-0", popoverContentClassName),
|
|
49
48
|
align: "start"
|
|
50
49
|
}, /*#__PURE__*/ React__default.createElement(Calendar, {
|
|
51
50
|
autoFocus: true,
|
|
52
|
-
mode: "single",
|
|
53
51
|
captionLayout: "dropdown",
|
|
54
|
-
selected:
|
|
52
|
+
selected: validDate,
|
|
55
53
|
onSelect: setDate,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
locale: ptBR,
|
|
55
|
+
numberOfMonths: 1,
|
|
56
|
+
fromYear: 2010,
|
|
57
|
+
toYear: 2040,
|
|
58
|
+
disabled: disabled,
|
|
59
|
+
...props,
|
|
60
|
+
mode: "single"
|
|
61
|
+
})));
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export { DatePicker };
|
|
@@ -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 { format } from \"date-fns\";\nimport { ptBR } from \"date-fns/locale\";\nimport { CalendarDaysIcon } from \"lucide-react\";\nimport React from \"react\";\n\
|
|
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, [
|