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/accordion/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
1
|
+
export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-BBMhFkK5.mjs';
|
|
2
|
+
import '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../chunks/index-
|
|
5
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import '@radix-ui/react-collection';
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
8
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
9
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
10
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
11
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
12
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import '@radix-ui/react-slot';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/chevron-down-
|
|
20
|
-
import '../chunks/createLucideIcon-
|
|
15
|
+
import '../chunks/index-DpqIXFxh.mjs';
|
|
16
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
17
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
18
|
+
import '../chunks/index-CLb4rDzh.mjs';
|
|
19
|
+
import '../chunks/chevron-down-BgIYlWhk.mjs';
|
|
20
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
21
21
|
//# sourceMappingURL=index.mjs.map
|
package/dist/alert/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
1
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
4
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
7
7
|
variants: {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as createContextScope } from '../chunks/index-
|
|
3
|
-
import { u as useComposedRefs } from '../chunks/index-
|
|
4
|
-
import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-
|
|
5
|
-
import { c as composeEventHandlers } from '../chunks/index-
|
|
2
|
+
import { c as createContextScope } from '../chunks/index-BdYD9SA8.mjs';
|
|
3
|
+
import { u as useComposedRefs } from '../chunks/index-BsVg0u5v.mjs';
|
|
4
|
+
import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-C45e7-3X.mjs';
|
|
5
|
+
import { c as composeEventHandlers } from '../chunks/index-Db1acFFW.mjs';
|
|
6
6
|
import { createSlottable } from '@radix-ui/react-slot';
|
|
7
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
-
import { c as cn } from '../chunks/utils-
|
|
9
|
-
import { b as buttonVariants } from '../chunks/button-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
8
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
9
|
+
import { b as buttonVariants } from '../chunks/button-ay7E6KrE.mjs';
|
|
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
|
-
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
|
import 'class-variance-authority';
|
|
23
23
|
|
|
24
24
|
var ROOT_NAME = "AlertDialog";
|
package/dist/avatar/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as createContextScope } from '../chunks/index-
|
|
3
|
-
import { u as useCallbackRef } from '../chunks/index-
|
|
4
|
-
import { u as useLayoutEffect2 } from '../chunks/index-
|
|
5
|
-
import { P as Primitive } from '../chunks/index-
|
|
6
|
-
import { r as requireShim } from '../chunks/index-
|
|
2
|
+
import { c as createContextScope } from '../chunks/index-BdYD9SA8.mjs';
|
|
3
|
+
import { u as useCallbackRef } from '../chunks/index-D5pght6h.mjs';
|
|
4
|
+
import { u as useLayoutEffect2 } from '../chunks/index-BW3aCz7h.mjs';
|
|
5
|
+
import { P as Primitive } from '../chunks/index-B7kZbHfd.mjs';
|
|
6
|
+
import { r as requireShim } from '../chunks/index-C9twRC0t.mjs';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { c as cn } from '../chunks/utils-
|
|
8
|
+
import { c as cn } from '../chunks/utils-DwA_HfJw.mjs';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '@radix-ui/react-slot';
|
|
11
|
-
import '../chunks/bundle-mjs-
|
|
11
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
12
12
|
|
|
13
13
|
var shimExports = requireShim();
|
|
14
14
|
|
package/dist/badge/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as Badge, b as badgeVariants } from '../chunks/badge-
|
|
2
|
-
import '../chunks/utils-
|
|
3
|
-
import '../chunks/bundle-mjs-
|
|
1
|
+
export { B as Badge, b as badgeVariants } from '../chunks/badge-CShT6Er8.mjs';
|
|
2
|
+
import '../chunks/utils-DwA_HfJw.mjs';
|
|
3
|
+
import '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
4
4
|
import '@radix-ui/react-slot';
|
|
5
5
|
import 'class-variance-authority';
|
|
6
6
|
import 'react';
|
package/dist/base/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { ButtonProps } from '../button/index.js';
|
|
4
|
+
import { Calendar } from '../calendar/index.js';
|
|
4
5
|
import { Popover } from '../popover/index.js';
|
|
5
6
|
import { BadgeProps } from '../badge/index.js';
|
|
6
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -25,44 +26,45 @@ interface HeaderProps {
|
|
|
25
26
|
}
|
|
26
27
|
declare const Header: React__default.FC<HeaderProps>;
|
|
27
28
|
|
|
28
|
-
type CaptionLayout = "label" | "dropdown";
|
|
29
29
|
declare function normalizeDate(date: Date): string;
|
|
30
|
-
|
|
31
|
-
/** Data selecionada (
|
|
32
|
-
date: Date | undefined;
|
|
33
|
-
/**
|
|
34
|
-
setDate: (
|
|
35
|
-
/** Texto exibido quando
|
|
30
|
+
interface CalendarPopoverProps extends Omit<React__default.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect"> {
|
|
31
|
+
/** Data selecionada (pode ser Date ou string parseável) */
|
|
32
|
+
date: Date | string | undefined;
|
|
33
|
+
/** Função chamada ao selecionar uma data */
|
|
34
|
+
setDate: (date: Date | undefined) => void;
|
|
35
|
+
/** Texto exibido quando não há data selecionada */
|
|
36
36
|
placeholder?: string;
|
|
37
|
-
/** ID opcional
|
|
37
|
+
/** ID opcional do botão */
|
|
38
38
|
id?: string;
|
|
39
|
-
/** Props
|
|
39
|
+
/** Props extras para o botão */
|
|
40
40
|
buttonProps?: ButtonProps;
|
|
41
|
-
/**
|
|
42
|
-
buttonClassName?: string;
|
|
43
|
-
/** Props adicionais para o popover */
|
|
41
|
+
/** Props extras para o popover */
|
|
44
42
|
popoverProps?: React__default.ComponentProps<typeof Popover>;
|
|
45
|
-
/**
|
|
43
|
+
/** Classe extra para o conteúdo do popover */
|
|
46
44
|
popoverContentClassName?: string;
|
|
47
|
-
/**
|
|
48
|
-
numberOfMonths?: number;
|
|
49
|
-
/** Ano inicial permitido */
|
|
50
|
-
fromYear?: number;
|
|
51
|
-
/** Ano final permitido */
|
|
52
|
-
toYear?: number;
|
|
53
|
-
/** Classes extras para o contêiner */
|
|
45
|
+
/** Classe extra para o botão */
|
|
54
46
|
className?: string;
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Permite desabilitar datas específicas (igual ao Calendar do shadcn)
|
|
49
|
+
* Pode ser um boolean, ou uma função que recebe a data e retorna boolean
|
|
50
|
+
*/
|
|
51
|
+
disabled?: boolean | ((date: Date) => boolean);
|
|
52
|
+
/**
|
|
53
|
+
* Exibe o estado de carregamento geral do componente
|
|
54
|
+
* Quando true, mostra o ícone de loading e desabilita a interação
|
|
55
|
+
*/
|
|
58
56
|
isLoading?: boolean;
|
|
59
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Exibe o estado de carregamento específico da tabela (caso exista)
|
|
59
|
+
* Quando true, impede a seleção de datas no calendário
|
|
60
|
+
*/
|
|
60
61
|
isLoadingTable?: boolean;
|
|
61
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Define um conjunto de datas desabilitadas (formato 'yyyy-MM-dd')
|
|
64
|
+
* Cada data presente neste Set será bloqueada na seleção do calendário
|
|
65
|
+
*/
|
|
62
66
|
disabledDates?: Set<string>;
|
|
63
|
-
|
|
64
|
-
captionLayout?: CaptionLayout;
|
|
65
|
-
};
|
|
67
|
+
}
|
|
66
68
|
declare const CalendarPopover: React__default.FC<CalendarPopoverProps>;
|
|
67
69
|
|
|
68
70
|
interface HoverBadgeProps {
|
|
@@ -75,23 +77,27 @@ interface HoverBadgeProps {
|
|
|
75
77
|
}
|
|
76
78
|
declare const HoverBadge: React__default.FC<HoverBadgeProps>;
|
|
77
79
|
|
|
78
|
-
|
|
80
|
+
interface CalendarRangeProps extends Omit<React.ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelect"> {
|
|
81
|
+
/** Intervalo de datas selecionado (com `from` e `to`) */
|
|
79
82
|
value: DateRange | undefined;
|
|
83
|
+
/** Função chamada ao alterar o intervalo de datas selecionado */
|
|
80
84
|
onChange: (range: DateRange | undefined) => void;
|
|
85
|
+
/** Texto exibido quando não há intervalo selecionado */
|
|
81
86
|
placeholder?: string;
|
|
87
|
+
/** ID opcional do botão */
|
|
82
88
|
id?: string;
|
|
89
|
+
/** Props extras para o botão */
|
|
83
90
|
buttonProps?: ButtonProps;
|
|
84
|
-
|
|
91
|
+
/** Props extras para o popover */
|
|
85
92
|
popoverProps?: React.ComponentProps<typeof Popover>;
|
|
93
|
+
/** Classe extra para o conteúdo do popover */
|
|
86
94
|
popoverContentClassName?: string;
|
|
87
|
-
|
|
88
|
-
fromYear?: number;
|
|
89
|
-
toYear?: number;
|
|
90
|
-
toDate?: Date;
|
|
95
|
+
/** Classe extra para o botão */
|
|
91
96
|
className?: string;
|
|
97
|
+
/** Desabilita o botão e impede a seleção de datas */
|
|
92
98
|
disabled?: boolean;
|
|
93
|
-
}
|
|
94
|
-
declare function CalendarRange({ value, onChange, placeholder, id, buttonProps,
|
|
99
|
+
}
|
|
100
|
+
declare function CalendarRange({ value, onChange, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }: CalendarRangeProps): react_jsx_runtime.JSX.Element;
|
|
95
101
|
|
|
96
102
|
interface AutoCompleteProps<T> {
|
|
97
103
|
value: T | null;
|
|
@@ -122,3 +128,4 @@ interface DeleteConfirmationModalProps {
|
|
|
122
128
|
declare function DeleteConfirmationModal({ onConfirm, title, description, confirmText, cancelText, disabled, children, }: DeleteConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
123
129
|
|
|
124
130
|
export { AutoComplete, CalendarPopover, CalendarRange, DeleteConfirmationModal, Header, HoverBadge, TextWrap, normalizeDate };
|
|
131
|
+
export type { CalendarPopoverProps, CalendarRangeProps };
|
package/dist/base/index.mjs
CHANGED
|
@@ -1,58 +1,48 @@
|
|
|
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, { useRef, useEffect, useMemo } from 'react';
|
|
4
|
-
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as toDate, f as format, C as Calendar } from '../chunks/calendar-
|
|
9
|
-
import { B as Button } from '../chunks/button-
|
|
10
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
11
|
-
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-
|
|
12
|
-
import { B as Badge } from '../chunks/badge-
|
|
13
|
-
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-
|
|
14
|
-
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-
|
|
15
|
-
import { C as Check } from '../chunks/check-
|
|
16
|
-
import { D as Dialog, i as DialogTrigger, b as DialogContent, e as DialogHeader, h as DialogTitle, c as DialogDescription, d as DialogFooter, a as DialogClose } from '../chunks/dialog-
|
|
17
|
-
import { T as Trash2 } from '../chunks/trash-2-
|
|
18
|
-
import '../chunks/index-
|
|
4
|
+
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-BBMhFkK5.mjs';
|
|
5
|
+
import { t as tryParseDate, C as CalendarDays, p as ptBR } from '../chunks/pt-BR-on-YW6Ay.mjs';
|
|
6
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-BFcKYAot.mjs';
|
|
7
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-CfhWFS-M.mjs';
|
|
8
|
+
import { t as toDate, f as format, C as Calendar } from '../chunks/calendar-D98dWxWB.mjs';
|
|
9
|
+
import { B as Button } from '../chunks/button-ay7E6KrE.mjs';
|
|
10
|
+
import { t as twMerge } from '../chunks/bundle-mjs-CXcNQyyo.mjs';
|
|
11
|
+
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-DXAGq71O.mjs';
|
|
12
|
+
import { B as Badge } from '../chunks/badge-CShT6Er8.mjs';
|
|
13
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-TytmUcIx.mjs';
|
|
14
|
+
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-OnnopJEP.mjs';
|
|
15
|
+
import { C as Check } from '../chunks/check-M4AEcM3j.mjs';
|
|
16
|
+
import { D as Dialog, i as DialogTrigger, b as DialogContent, e as DialogHeader, h as DialogTitle, c as DialogDescription, d as DialogFooter, a as DialogClose } from '../chunks/dialog-D-h9t9_b.mjs';
|
|
17
|
+
import { T as Trash2 } from '../chunks/trash-2-ZC16Df_k.mjs';
|
|
18
|
+
import '../chunks/index-BdYD9SA8.mjs';
|
|
19
19
|
import 'react/jsx-runtime';
|
|
20
20
|
import '@radix-ui/react-collection';
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
21
|
+
import '../chunks/index-BsVg0u5v.mjs';
|
|
22
|
+
import '../chunks/index-Db1acFFW.mjs';
|
|
23
|
+
import '../chunks/index-Bs4nZmb7.mjs';
|
|
24
|
+
import '../chunks/index-BW3aCz7h.mjs';
|
|
25
|
+
import '../chunks/index-B7kZbHfd.mjs';
|
|
26
26
|
import 'react-dom';
|
|
27
27
|
import '@radix-ui/react-slot';
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/chevron-down-
|
|
33
|
-
import '../chunks/
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
36
|
-
import '../chunks/
|
|
37
|
-
import '../chunks/
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/index-
|
|
40
|
-
import '../chunks/
|
|
41
|
-
import '../chunks/chevron-
|
|
28
|
+
import '../chunks/index-DpqIXFxh.mjs';
|
|
29
|
+
import '../chunks/index-BxaETqU9.mjs';
|
|
30
|
+
import '../chunks/index-DRdSNmMB.mjs';
|
|
31
|
+
import '../chunks/index-CLb4rDzh.mjs';
|
|
32
|
+
import '../chunks/chevron-down-BgIYlWhk.mjs';
|
|
33
|
+
import '../chunks/createLucideIcon-DwD3HsEs.mjs';
|
|
34
|
+
import '../chunks/index-BBC4sR1G.mjs';
|
|
35
|
+
import '../chunks/index-D5pght6h.mjs';
|
|
36
|
+
import '../chunks/index-BLAYpkjT.mjs';
|
|
37
|
+
import '../chunks/tslib.es6-CnQYzBlA.mjs';
|
|
38
|
+
import '../chunks/index-DU7dxusa.mjs';
|
|
39
|
+
import '../chunks/index-C5cl9B-D.mjs';
|
|
40
|
+
import '../chunks/index-BtRo1b5t.mjs';
|
|
41
|
+
import '../chunks/chevron-left-wvVA3SWH.mjs';
|
|
42
|
+
import '../chunks/chevron-right-aTufSnLl.mjs';
|
|
42
43
|
import 'class-variance-authority';
|
|
43
|
-
import '../chunks/index-
|
|
44
|
-
import '../chunks/x-
|
|
45
|
-
|
|
46
|
-
const __iconNode = [
|
|
47
|
-
[
|
|
48
|
-
"path",
|
|
49
|
-
{
|
|
50
|
-
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
51
|
-
key: "13zald"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
];
|
|
55
|
-
const LoaderCircle = createLucideIcon("LoaderCircle", __iconNode);
|
|
44
|
+
import '../chunks/index-C45e7-3X.mjs';
|
|
45
|
+
import '../chunks/x-BZdVnIMx.mjs';
|
|
56
46
|
|
|
57
47
|
const TextWrap = ({ children, className, ...props })=>{
|
|
58
48
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
@@ -109,36 +99,34 @@ const Header = ({ title, description, className, classNameDescription, children,
|
|
|
109
99
|
function normalizeDate(date) {
|
|
110
100
|
return format(date, "yyyy-MM-dd");
|
|
111
101
|
}
|
|
112
|
-
const CalendarPopover = ({ date, setDate, placeholder = "Selecione uma data", id = "calendar-popover", buttonProps,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}, /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
102
|
+
const CalendarPopover = ({ date, setDate, placeholder = "Selecione uma data", id = "calendar-popover", buttonProps, popoverProps, popoverContentClassName, className, disabled, isLoading, disabledDates, isLoadingTable, ...props })=>{
|
|
103
|
+
const validDate = tryParseDate(date);
|
|
104
|
+
return /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
116
105
|
asChild: true
|
|
117
106
|
}, /*#__PURE__*/ React__default.createElement(Button, {
|
|
118
107
|
id: id,
|
|
119
108
|
variant: "outline",
|
|
120
|
-
className: cn("hover:text-foreground
|
|
121
|
-
disabled: disabled,
|
|
109
|
+
className: cn("hover:text-foreground justify-start text-left font-normal", !validDate && "text-muted-foreground hover:text-muted-foreground", className),
|
|
110
|
+
disabled: typeof disabled === "boolean" ? disabled : undefined,
|
|
122
111
|
...buttonProps
|
|
123
112
|
}, isLoading ? /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(LoaderCircle, {
|
|
124
113
|
className: "size-4 animate-spin"
|
|
125
114
|
}), /*#__PURE__*/ React__default.createElement("span", null, "carregando...")) : /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(CalendarDays, {
|
|
126
115
|
className: "size-4"
|
|
127
|
-
}),
|
|
116
|
+
}), validDate ? format(validDate, "P", {
|
|
128
117
|
locale: ptBR
|
|
129
118
|
}) : /*#__PURE__*/ React__default.createElement("span", null, placeholder)))), /*#__PURE__*/ React__default.createElement(PopoverContent, {
|
|
130
119
|
className: cn("w-auto p-0", popoverContentClassName),
|
|
131
120
|
align: "start"
|
|
132
121
|
}, /*#__PURE__*/ React__default.createElement(Calendar, {
|
|
133
122
|
autoFocus: true,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
selected: date,
|
|
123
|
+
captionLayout: "dropdown",
|
|
124
|
+
selected: validDate,
|
|
137
125
|
onSelect: setDate,
|
|
138
|
-
numberOfMonths: numberOfMonths,
|
|
139
|
-
fromYear: fromYear,
|
|
140
|
-
toYear: toYear,
|
|
141
126
|
locale: ptBR,
|
|
127
|
+
numberOfMonths: 1,
|
|
128
|
+
fromYear: 2010,
|
|
129
|
+
toYear: 2040,
|
|
142
130
|
disabled: (currentDate)=>{
|
|
143
131
|
if (isLoading || isLoadingTable) return true;
|
|
144
132
|
const normalizedCurrentDate = normalizeDate(currentDate);
|
|
@@ -146,8 +134,10 @@ const CalendarPopover = ({ date, setDate, placeholder = "Selecione uma data", id
|
|
|
146
134
|
const isWeekendDay = isWeekend(currentDate);
|
|
147
135
|
const isFutureDate = currentDate > new Date();
|
|
148
136
|
return isHoliday || isWeekendDay || isFutureDate;
|
|
149
|
-
}
|
|
150
|
-
|
|
137
|
+
},
|
|
138
|
+
...props,
|
|
139
|
+
mode: "single"
|
|
140
|
+
})));
|
|
151
141
|
};
|
|
152
142
|
|
|
153
143
|
const HoverBadge = ({ title, description, variant, className, showTitleInDescription = true, subtle = false })=>{
|
|
@@ -163,15 +153,13 @@ const HoverBadge = ({ title, description, variant, className, showTitleInDescrip
|
|
|
163
153
|
}, description)));
|
|
164
154
|
};
|
|
165
155
|
|
|
166
|
-
function CalendarRange({ value, onChange, placeholder = "Selecione uma data", id = "date", buttonProps,
|
|
167
|
-
return /*#__PURE__*/ React.createElement(
|
|
168
|
-
className: cn("grid gap-2", className)
|
|
169
|
-
}, /*#__PURE__*/ React.createElement(Popover, popoverProps, /*#__PURE__*/ React.createElement(PopoverTrigger, {
|
|
156
|
+
function CalendarRange({ value, onChange, placeholder = "Selecione uma data", id = "date", buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }) {
|
|
157
|
+
return /*#__PURE__*/ React.createElement(Popover, popoverProps, /*#__PURE__*/ React.createElement(PopoverTrigger, {
|
|
170
158
|
asChild: true
|
|
171
159
|
}, /*#__PURE__*/ React.createElement(Button, {
|
|
172
160
|
id: id,
|
|
173
161
|
variant: "outline",
|
|
174
|
-
className: cn("hover:foreground
|
|
162
|
+
className: cn("hover:foreground justify-start text-left font-normal", !value && "text-muted-foreground hover:text-muted-foreground", className),
|
|
175
163
|
disabled: disabled,
|
|
176
164
|
...buttonProps
|
|
177
165
|
}, /*#__PURE__*/ React.createElement(CalendarDays, {
|
|
@@ -185,17 +173,18 @@ function CalendarRange({ value, onChange, placeholder = "Selecione uma data", id
|
|
|
185
173
|
align: "start"
|
|
186
174
|
}, /*#__PURE__*/ React.createElement(Calendar, {
|
|
187
175
|
autoFocus: true,
|
|
188
|
-
mode: "range",
|
|
189
176
|
captionLayout: "dropdown",
|
|
190
|
-
defaultMonth: value?.from,
|
|
191
177
|
selected: value,
|
|
192
178
|
onSelect: onChange,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
179
|
+
locale: ptBR,
|
|
180
|
+
numberOfMonths: 2,
|
|
181
|
+
fromYear: 2010,
|
|
182
|
+
toYear: 2040,
|
|
183
|
+
defaultMonth: value?.from,
|
|
184
|
+
toDate: new Date(2040, 11, 31),
|
|
185
|
+
...props,
|
|
186
|
+
mode: "range"
|
|
187
|
+
})));
|
|
199
188
|
}
|
|
200
189
|
|
|
201
190
|
function c(e, u, c, i) {
|