ivt 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.mjs +15 -14
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.mjs +2 -2
- package/dist/alert-dialog/index.mjs +17 -16
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/aspect-ratio/index.d.ts +7 -0
- package/dist/aspect-ratio/index.mjs +46 -0
- package/dist/aspect-ratio/index.mjs.map +1 -0
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +34 -8
- package/dist/base/index.mjs +73 -639
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.d.ts +14 -0
- package/dist/breadcrumb/index.mjs +71 -0
- package/dist/breadcrumb/index.mjs.map +1 -0
- package/dist/button/index.mjs +3 -3
- package/dist/calendar/index.mjs +8 -8
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.d.ts +25 -0
- package/dist/carousel/index.mjs +1793 -0
- package/dist/carousel/index.mjs.map +1 -0
- package/dist/chart/index.mjs +4 -4
- package/dist/checkbox/index.mjs +13 -13
- package/dist/chunks/{Container-OkpmLImV.mjs → Container-sBmoUJ1A.mjs} +2 -2
- package/dist/chunks/{Container-OkpmLImV.mjs.map → Container-sBmoUJ1A.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-DB0L5QuM.mjs → _commonjsHelpers-DMx7h_rP.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DMx7h_rP.mjs.map +1 -0
- package/dist/chunks/{accordion-D8D50bOM.mjs → accordion-BEzCfjyX.mjs} +11 -133
- package/dist/chunks/accordion-BEzCfjyX.mjs.map +1 -0
- package/dist/chunks/{badge-D6WUAOGu.mjs → badge-poifvE-U.mjs} +2 -2
- package/dist/chunks/{badge-D6WUAOGu.mjs.map → badge-poifvE-U.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-CHV3NDgz.mjs → bundle-mjs-8KEENQOJ.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-CHV3NDgz.mjs.map → bundle-mjs-8KEENQOJ.mjs.map} +1 -1
- package/dist/chunks/{button-C4494Xwz.mjs → button-TULRIYFO.mjs} +2 -2
- package/dist/chunks/{button-C4494Xwz.mjs.map → button-TULRIYFO.mjs.map} +1 -1
- package/dist/chunks/{calendar-Bn7etJ7O.mjs → calendar-nJ5T1YgK.mjs} +6 -6
- package/dist/chunks/{calendar-Bn7etJ7O.mjs.map → calendar-nJ5T1YgK.mjs.map} +1 -1
- package/dist/chunks/{check-BufRfuJc.mjs → check-DcPt24aD.mjs} +2 -2
- package/dist/chunks/{check-BufRfuJc.mjs.map → check-DcPt24aD.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-B2x6HHdH.mjs → chevron-down-BNw46No-.mjs} +2 -2
- package/dist/chunks/{chevron-down-B2x6HHdH.mjs.map → chevron-down-BNw46No-.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-DII9rLXX.mjs → chevron-left-B-ZN622G.mjs} +2 -2
- package/dist/chunks/{chevron-left-DII9rLXX.mjs.map → chevron-left-B-ZN622G.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-lKnfXpjb.mjs → chevron-right-Ddz8dCda.mjs} +2 -2
- package/dist/chunks/{chevron-right-lKnfXpjb.mjs.map → chevron-right-Ddz8dCda.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-B_ep4nON.mjs → chevrons-up-down-ChXPuZd6.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-B_ep4nON.mjs.map → chevrons-up-down-ChXPuZd6.mjs.map} +1 -1
- package/dist/chunks/{command-CrYOqG25.mjs → command-D6QS1LFL.mjs} +8 -8
- package/dist/chunks/{command-CrYOqG25.mjs.map → command-D6QS1LFL.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-BAOK8uBo.mjs → createLucideIcon-DOOu6ntc.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-BAOK8uBo.mjs.map → createLucideIcon-DOOu6ntc.mjs.map} +1 -1
- package/dist/chunks/{dialog-FO9bKZ6s.mjs → dialog-BefJPh8X.mjs} +4 -4
- package/dist/chunks/{dialog-FO9bKZ6s.mjs.map → dialog-BefJPh8X.mjs.map} +1 -1
- package/dist/chunks/ellipsis-Cwr1X9R2.mjs +35 -0
- package/dist/chunks/ellipsis-Cwr1X9R2.mjs.map +1 -0
- package/dist/chunks/{hover-card-CuN13oVM.mjs → hover-card-CcNjcMZa.mjs} +11 -10
- package/dist/chunks/{hover-card-CuN13oVM.mjs.map → hover-card-CcNjcMZa.mjs.map} +1 -1
- package/dist/chunks/{index-CX0Te_pb.mjs → index-0fdTSdHQ.mjs} +6 -21
- package/dist/chunks/index-0fdTSdHQ.mjs.map +1 -0
- package/dist/chunks/{index-CUDW0ZQ_.mjs → index-1tph_k2t.mjs} +1 -1
- package/dist/chunks/{index-CUDW0ZQ_.mjs.map → index-1tph_k2t.mjs.map} +1 -1
- package/dist/chunks/{index-BzMhdUkg.mjs → index-BCsiqIRL.mjs} +1 -1
- package/dist/chunks/{index-BzMhdUkg.mjs.map → index-BCsiqIRL.mjs.map} +1 -1
- package/dist/chunks/index-Bb31UsVK.mjs +7 -0
- package/dist/chunks/index-Bb31UsVK.mjs.map +1 -0
- package/dist/chunks/index-BnNdF3Y6.mjs +133 -0
- package/dist/chunks/index-BnNdF3Y6.mjs.map +1 -0
- package/dist/chunks/{index-D_xzHl5d.mjs → index-BwVg1Kb5.mjs} +1 -1
- package/dist/chunks/{index-D_xzHl5d.mjs.map → index-BwVg1Kb5.mjs.map} +1 -1
- package/dist/chunks/{index-CXNCVcaz.mjs → index-CK9CWim6.mjs} +2 -2
- package/dist/chunks/{index-CXNCVcaz.mjs.map → index-CK9CWim6.mjs.map} +1 -1
- package/dist/chunks/{index-mYta_RI8.mjs → index-CQc8iXpK.mjs} +11 -10
- package/dist/chunks/{index-mYta_RI8.mjs.map → index-CQc8iXpK.mjs.map} +1 -1
- package/dist/chunks/{index-Dw8lQ-RR.mjs → index-CSiM72Dy.mjs} +1 -1
- package/dist/chunks/{index-Dw8lQ-RR.mjs.map → index-CSiM72Dy.mjs.map} +1 -1
- package/dist/chunks/{index-BNqOXbUm.mjs → index-CWMDV9qs.mjs} +2 -2
- package/dist/chunks/{index-BNqOXbUm.mjs.map → index-CWMDV9qs.mjs.map} +1 -1
- package/dist/chunks/{index-8gnkKZlE.mjs → index-CjtaP9C4.mjs} +1 -1
- package/dist/chunks/{index-8gnkKZlE.mjs.map → index-CjtaP9C4.mjs.map} +1 -1
- package/dist/chunks/index-Cl4mLFZO.mjs +21 -0
- package/dist/chunks/index-Cl4mLFZO.mjs.map +1 -0
- package/dist/chunks/{index-BbDRMUvK.mjs → index-D1qT_gBX.mjs} +1 -1
- package/dist/chunks/{index-BbDRMUvK.mjs.map → index-D1qT_gBX.mjs.map} +1 -1
- package/dist/chunks/{index-DT-ocbAI.mjs → index-D7B2_9g4.mjs} +2 -2
- package/dist/chunks/{index-DT-ocbAI.mjs.map → index-D7B2_9g4.mjs.map} +1 -1
- package/dist/chunks/{index-CbW8A2kC.mjs → index-DDe3wbsL.mjs} +1 -1
- package/dist/chunks/{index-CbW8A2kC.mjs.map → index-DDe3wbsL.mjs.map} +1 -1
- package/dist/chunks/{index-LseEEE-q.mjs → index-DSL6rasA.mjs} +9 -9
- package/dist/chunks/{index-LseEEE-q.mjs.map → index-DSL6rasA.mjs.map} +1 -1
- package/dist/chunks/{index-zNRN-G4N.mjs → index-DejfSFbY.mjs} +7 -7
- package/dist/chunks/{index-zNRN-G4N.mjs.map → index-DejfSFbY.mjs.map} +1 -1
- package/dist/chunks/{index-DfZ3GX4x.mjs → index-DoRi3lh9.mjs} +2 -2
- package/dist/chunks/{index-DfZ3GX4x.mjs.map → index-DoRi3lh9.mjs.map} +1 -1
- package/dist/chunks/{index-DzMHHCWk.mjs → index-DvLErdHO.mjs} +1 -1
- package/dist/chunks/{index-DzMHHCWk.mjs.map → index-DvLErdHO.mjs.map} +1 -1
- package/dist/chunks/{index-Df9Yxox9.mjs → index-EfpXtubk.mjs} +5 -5
- package/dist/chunks/{index-Df9Yxox9.mjs.map → index-EfpXtubk.mjs.map} +1 -1
- package/dist/chunks/{index-BASEfxEg.mjs → index-JyHiZGQv.mjs} +29 -14
- package/dist/chunks/index-JyHiZGQv.mjs.map +1 -0
- package/dist/chunks/{index--albQ_45.mjs → index-P1gmXtXB.mjs} +3 -3
- package/dist/chunks/{index--albQ_45.mjs.map → index-P1gmXtXB.mjs.map} +1 -1
- package/dist/chunks/{index-DzjTqHOw.mjs → index-e34k5BX3.mjs} +1 -1
- package/dist/chunks/{index-DzjTqHOw.mjs.map → index-e34k5BX3.mjs.map} +1 -1
- package/dist/chunks/{input-B2f0GlFq.mjs → input-CDsq1Xde.mjs} +2 -2
- package/dist/chunks/{input-B2f0GlFq.mjs.map → input-CDsq1Xde.mjs.map} +1 -1
- package/dist/chunks/{label-CTvusVhq.mjs → label-BzGy6SRg.mjs} +3 -3
- package/dist/chunks/{label-CTvusVhq.mjs.map → label-BzGy6SRg.mjs.map} +1 -1
- package/dist/chunks/{pagination-BLz66_yn.mjs → pagination-CfFGN_ib.mjs} +6 -37
- package/dist/chunks/pagination-CfFGN_ib.mjs.map +1 -0
- package/dist/chunks/{popover-CuyS8YJG.mjs → popover-BlSoIp_B.mjs} +13 -12
- package/dist/chunks/{popover-CuyS8YJG.mjs.map → popover-BlSoIp_B.mjs.map} +1 -1
- package/dist/chunks/{progress-Ck6wO1t2.mjs → progress-CIapbA26.mjs} +4 -4
- package/dist/chunks/{progress-Ck6wO1t2.mjs.map → progress-CIapbA26.mjs.map} +1 -1
- package/dist/chunks/pt-BR-BCfQl1oP.mjs +608 -0
- package/dist/chunks/pt-BR-BCfQl1oP.mjs.map +1 -0
- package/dist/chunks/{scroll-area-CD6RlkcP.mjs → scroll-area-BE1y6Igy.mjs} +11 -15
- package/dist/chunks/scroll-area-BE1y6Igy.mjs.map +1 -0
- package/dist/chunks/{select-WF2nid0z.mjs → select-BBb0ke76.mjs} +5 -5
- package/dist/chunks/{select-WF2nid0z.mjs.map → select-BBb0ke76.mjs.map} +1 -1
- package/dist/chunks/{separator-BK0Tvy4g.mjs → separator-B1yL1lh8.mjs} +3 -3
- package/dist/chunks/{separator-BK0Tvy4g.mjs.map → separator-B1yL1lh8.mjs.map} +1 -1
- package/dist/chunks/sheet-FhW-R397.mjs +80 -0
- package/dist/chunks/sheet-FhW-R397.mjs.map +1 -0
- package/dist/chunks/{skeleton-Bl-MaKOs.mjs → skeleton-Cy2Kyc1R.mjs} +2 -2
- package/dist/chunks/{skeleton-Bl-MaKOs.mjs.map → skeleton-Cy2Kyc1R.mjs.map} +1 -1
- package/dist/chunks/{sortable-DRqX-gMK.mjs → sortable-qR5yOJD2.mjs} +3 -3
- package/dist/chunks/{sortable-DRqX-gMK.mjs.map → sortable-qR5yOJD2.mjs.map} +1 -1
- package/dist/chunks/{table-Dw1XMlWf.mjs → table-QPbxZz58.mjs} +2 -2
- package/dist/chunks/{table-Dw1XMlWf.mjs.map → table-QPbxZz58.mjs.map} +1 -1
- package/dist/chunks/{toggle-EOJD2uWa.mjs → toggle-CoBW3Uqo.mjs} +5 -5
- package/dist/chunks/{toggle-EOJD2uWa.mjs.map → toggle-CoBW3Uqo.mjs.map} +1 -1
- package/dist/chunks/{tooltip-CyByO4MF.mjs → tooltip-DNfLTD30.mjs} +13 -12
- package/dist/chunks/{tooltip-CyByO4MF.mjs.map → tooltip-DNfLTD30.mjs.map} +1 -1
- package/dist/chunks/{trash-2-Dnyls9bQ.mjs → trash-2-D3X2krCW.mjs} +2 -2
- package/dist/chunks/{trash-2-Dnyls9bQ.mjs.map → trash-2-D3X2krCW.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-CZnabdCM.mjs → tslib.es6-UJQ1U8uE.mjs} +1 -1
- package/dist/chunks/{tslib.es6-CZnabdCM.mjs.map → tslib.es6-UJQ1U8uE.mjs.map} +1 -1
- package/dist/chunks/{utils-Dizh2I4E.mjs → utils-AmLv58nm.mjs} +2 -2
- package/dist/chunks/{utils-Dizh2I4E.mjs.map → utils-AmLv58nm.mjs.map} +1 -1
- package/dist/chunks/{x-D0eS_uVN.mjs → x-CENvqJg-.mjs} +2 -2
- package/dist/chunks/{x-D0eS_uVN.mjs.map → x-CENvqJg-.mjs.map} +1 -1
- package/dist/collapsible/index.d.ts +9 -0
- package/dist/collapsible/index.mjs +35 -0
- package/dist/collapsible/index.mjs.map +1 -0
- package/dist/combobox/index.mjs +26 -25
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.mjs +20 -19
- package/dist/command/index.mjs.map +1 -1
- package/dist/context-menu/index.d.ts +28 -0
- package/dist/context-menu/index.mjs +460 -0
- package/dist/context-menu/index.mjs.map +1 -0
- package/dist/data-table/index.mjs +43 -41
- package/dist/data-table/index.mjs.map +1 -1
- package/dist/date-picker/index.d.ts +38 -0
- package/dist/date-picker/index.mjs +64 -0
- package/dist/date-picker/index.mjs.map +1 -0
- package/dist/dialog/index.mjs +19 -18
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/drawer/index.d.ts +16 -0
- package/dist/drawer/index.mjs +1704 -0
- package/dist/drawer/index.mjs.map +1 -0
- package/dist/dropdown-menu/index.mjs +23 -23
- package/dist/dropzone/index.mjs +18 -17
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/form/index.mjs +4 -4
- package/dist/hover-card/index.mjs +15 -14
- package/dist/hover-card/index.mjs.map +1 -1
- package/dist/icon/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/input/index.mjs +3 -3
- package/dist/input-otp/index.d.ts +14 -0
- package/dist/input-otp/index.mjs +456 -0
- package/dist/input-otp/index.mjs.map +1 -0
- package/dist/ivt.css +1 -1
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.mjs +5 -5
- package/dist/menubar/index.mjs +23 -23
- package/dist/multi-select/index.mjs +30 -29
- package/dist/multi-select/index.mjs.map +1 -1
- package/dist/navigation-menu/index.d.ts +18 -0
- package/dist/navigation-menu/index.mjs +868 -0
- package/dist/navigation-menu/index.mjs.map +1 -0
- package/dist/pagination/index.mjs +8 -7
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/popover/index.mjs +18 -17
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +20 -20
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/resizable/index.d.ts +11 -0
- package/dist/resizable/index.mjs +2166 -0
- package/dist/resizable/index.mjs.map +1 -0
- package/dist/scroll-area/index.mjs +12 -11
- package/dist/scroll-area/index.mjs.map +1 -1
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +20 -93
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.d.ts +75 -0
- package/dist/sidebar/index.mjs +457 -0
- package/dist/sidebar/index.mjs.map +1 -0
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.d.ts +7 -0
- package/dist/slider/index.mjs +594 -0
- package/dist/slider/index.mjs.map +1 -0
- package/dist/sortable/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/tabs/index.mjs +13 -13
- package/dist/textarea/index.mjs +2 -2
- package/dist/toast/index.mjs +15 -14
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toggle/index.mjs +7 -7
- package/dist/toggle-group/index.mjs +13 -13
- package/dist/tooltip/index.mjs +17 -16
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +64 -7
- package/dist/chunks/_commonjsHelpers-DB0L5QuM.mjs.map +0 -1
- package/dist/chunks/accordion-D8D50bOM.mjs.map +0 -1
- package/dist/chunks/circle-B8A0IGvj.mjs +0 -17
- package/dist/chunks/circle-B8A0IGvj.mjs.map +0 -1
- package/dist/chunks/index-BASEfxEg.mjs.map +0 -1
- package/dist/chunks/index-CX0Te_pb.mjs.map +0 -1
- package/dist/chunks/pagination-BLz66_yn.mjs.map +0 -1
- package/dist/chunks/scroll-area-CD6RlkcP.mjs.map +0 -1
package/dist/base/index.mjs
CHANGED
|
@@ -1,80 +1,47 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
1
|
+
import { c as cn } from '../chunks/utils-AmLv58nm.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 { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
6
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import '../chunks/
|
|
4
|
+
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-BEzCfjyX.mjs';
|
|
5
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-BlSoIp_B.mjs';
|
|
6
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-DOOu6ntc.mjs';
|
|
7
|
+
import { C as CalendarDays, p as ptBR } from '../chunks/pt-BR-BCfQl1oP.mjs';
|
|
8
|
+
import { t as toDate, f as format, C as Calendar } from '../chunks/calendar-nJ5T1YgK.mjs';
|
|
9
|
+
import { B as Button } from '../chunks/button-TULRIYFO.mjs';
|
|
10
|
+
import { t as twMerge } from '../chunks/bundle-mjs-8KEENQOJ.mjs';
|
|
11
|
+
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-CcNjcMZa.mjs';
|
|
12
|
+
import { B as Badge } from '../chunks/badge-poifvE-U.mjs';
|
|
13
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-ChXPuZd6.mjs';
|
|
14
|
+
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-D6QS1LFL.mjs';
|
|
15
|
+
import { C as Check } from '../chunks/check-DcPt24aD.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-BefJPh8X.mjs';
|
|
17
|
+
import { T as Trash2 } from '../chunks/trash-2-D3X2krCW.mjs';
|
|
18
|
+
import '../chunks/index-DvLErdHO.mjs';
|
|
18
19
|
import 'react/jsx-runtime';
|
|
19
20
|
import '@radix-ui/react-collection';
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
21
|
+
import '../chunks/index-CSiM72Dy.mjs';
|
|
22
|
+
import '../chunks/index-D1qT_gBX.mjs';
|
|
23
|
+
import '../chunks/index-DoRi3lh9.mjs';
|
|
24
|
+
import '../chunks/index-BwVg1Kb5.mjs';
|
|
25
|
+
import '../chunks/index-DDe3wbsL.mjs';
|
|
25
26
|
import 'react-dom';
|
|
26
27
|
import '@radix-ui/react-slot';
|
|
27
|
-
import '../chunks/index
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/
|
|
31
|
-
import '../chunks/
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/
|
|
35
|
-
import '../chunks/
|
|
36
|
-
import '../chunks/index-
|
|
37
|
-
import '../chunks/
|
|
38
|
-
import '../chunks/
|
|
28
|
+
import '../chunks/index-BnNdF3Y6.mjs';
|
|
29
|
+
import '../chunks/index-P1gmXtXB.mjs';
|
|
30
|
+
import '../chunks/index-CWMDV9qs.mjs';
|
|
31
|
+
import '../chunks/index-CjtaP9C4.mjs';
|
|
32
|
+
import '../chunks/chevron-down-BNw46No-.mjs';
|
|
33
|
+
import '../chunks/index-0fdTSdHQ.mjs';
|
|
34
|
+
import '../chunks/index-e34k5BX3.mjs';
|
|
35
|
+
import '../chunks/index-EfpXtubk.mjs';
|
|
36
|
+
import '../chunks/tslib.es6-UJQ1U8uE.mjs';
|
|
37
|
+
import '../chunks/index-DejfSFbY.mjs';
|
|
38
|
+
import '../chunks/index-CK9CWim6.mjs';
|
|
39
|
+
import '../chunks/index-Cl4mLFZO.mjs';
|
|
40
|
+
import '../chunks/chevron-left-B-ZN622G.mjs';
|
|
41
|
+
import '../chunks/chevron-right-Ddz8dCda.mjs';
|
|
39
42
|
import 'class-variance-authority';
|
|
40
|
-
import '../chunks/index-
|
|
41
|
-
import '../chunks/x-
|
|
42
|
-
|
|
43
|
-
const __iconNode$1 = [
|
|
44
|
-
[
|
|
45
|
-
"path",
|
|
46
|
-
{
|
|
47
|
-
d: "M8 2v4",
|
|
48
|
-
key: "1cmpym"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
"path",
|
|
53
|
-
{
|
|
54
|
-
d: "M16 2v4",
|
|
55
|
-
key: "4m81vk"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
[
|
|
59
|
-
"rect",
|
|
60
|
-
{
|
|
61
|
-
width: "18",
|
|
62
|
-
height: "18",
|
|
63
|
-
x: "3",
|
|
64
|
-
y: "4",
|
|
65
|
-
rx: "2",
|
|
66
|
-
key: "1hopcy"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
"path",
|
|
71
|
-
{
|
|
72
|
-
d: "M3 10h18",
|
|
73
|
-
key: "8toen8"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
];
|
|
77
|
-
const Calendar = createLucideIcon("Calendar", __iconNode$1);
|
|
43
|
+
import '../chunks/index-CQc8iXpK.mjs';
|
|
44
|
+
import '../chunks/x-CENvqJg-.mjs';
|
|
78
45
|
|
|
79
46
|
const __iconNode = [
|
|
80
47
|
[
|
|
@@ -139,563 +106,39 @@ const Header = ({ title, description, className, classNameDescription, children,
|
|
|
139
106
|
return day === 0 || day === 6;
|
|
140
107
|
}
|
|
141
108
|
|
|
142
|
-
const formatDistanceLocale = {
|
|
143
|
-
lessThanXSeconds: {
|
|
144
|
-
one: "menos de um segundo",
|
|
145
|
-
other: "menos de {{count}} segundos"
|
|
146
|
-
},
|
|
147
|
-
xSeconds: {
|
|
148
|
-
one: "1 segundo",
|
|
149
|
-
other: "{{count}} segundos"
|
|
150
|
-
},
|
|
151
|
-
halfAMinute: "meio minuto",
|
|
152
|
-
lessThanXMinutes: {
|
|
153
|
-
one: "menos de um minuto",
|
|
154
|
-
other: "menos de {{count}} minutos"
|
|
155
|
-
},
|
|
156
|
-
xMinutes: {
|
|
157
|
-
one: "1 minuto",
|
|
158
|
-
other: "{{count}} minutos"
|
|
159
|
-
},
|
|
160
|
-
aboutXHours: {
|
|
161
|
-
one: "cerca de 1 hora",
|
|
162
|
-
other: "cerca de {{count}} horas"
|
|
163
|
-
},
|
|
164
|
-
xHours: {
|
|
165
|
-
one: "1 hora",
|
|
166
|
-
other: "{{count}} horas"
|
|
167
|
-
},
|
|
168
|
-
xDays: {
|
|
169
|
-
one: "1 dia",
|
|
170
|
-
other: "{{count}} dias"
|
|
171
|
-
},
|
|
172
|
-
aboutXWeeks: {
|
|
173
|
-
one: "cerca de 1 semana",
|
|
174
|
-
other: "cerca de {{count}} semanas"
|
|
175
|
-
},
|
|
176
|
-
xWeeks: {
|
|
177
|
-
one: "1 semana",
|
|
178
|
-
other: "{{count}} semanas"
|
|
179
|
-
},
|
|
180
|
-
aboutXMonths: {
|
|
181
|
-
one: "cerca de 1 mês",
|
|
182
|
-
other: "cerca de {{count}} meses"
|
|
183
|
-
},
|
|
184
|
-
xMonths: {
|
|
185
|
-
one: "1 mês",
|
|
186
|
-
other: "{{count}} meses"
|
|
187
|
-
},
|
|
188
|
-
aboutXYears: {
|
|
189
|
-
one: "cerca de 1 ano",
|
|
190
|
-
other: "cerca de {{count}} anos"
|
|
191
|
-
},
|
|
192
|
-
xYears: {
|
|
193
|
-
one: "1 ano",
|
|
194
|
-
other: "{{count}} anos"
|
|
195
|
-
},
|
|
196
|
-
overXYears: {
|
|
197
|
-
one: "mais de 1 ano",
|
|
198
|
-
other: "mais de {{count}} anos"
|
|
199
|
-
},
|
|
200
|
-
almostXYears: {
|
|
201
|
-
one: "quase 1 ano",
|
|
202
|
-
other: "quase {{count}} anos"
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
const formatDistance = (token, count, options)=>{
|
|
206
|
-
let result;
|
|
207
|
-
const tokenValue = formatDistanceLocale[token];
|
|
208
|
-
if (typeof tokenValue === "string") {
|
|
209
|
-
result = tokenValue;
|
|
210
|
-
} else if (count === 1) {
|
|
211
|
-
result = tokenValue.one;
|
|
212
|
-
} else {
|
|
213
|
-
result = tokenValue.other.replace("{{count}}", String(count));
|
|
214
|
-
}
|
|
215
|
-
if (options?.addSuffix) {
|
|
216
|
-
if (options.comparison && options.comparison > 0) {
|
|
217
|
-
return "em " + result;
|
|
218
|
-
} else {
|
|
219
|
-
return "há " + result;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
return result;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
const dateFormats = {
|
|
226
|
-
full: "EEEE, d 'de' MMMM 'de' y",
|
|
227
|
-
long: "d 'de' MMMM 'de' y",
|
|
228
|
-
medium: "d MMM y",
|
|
229
|
-
short: "dd/MM/yyyy"
|
|
230
|
-
};
|
|
231
|
-
const timeFormats = {
|
|
232
|
-
full: "HH:mm:ss zzzz",
|
|
233
|
-
long: "HH:mm:ss z",
|
|
234
|
-
medium: "HH:mm:ss",
|
|
235
|
-
short: "HH:mm"
|
|
236
|
-
};
|
|
237
|
-
const dateTimeFormats = {
|
|
238
|
-
full: "{{date}} 'às' {{time}}",
|
|
239
|
-
long: "{{date}} 'às' {{time}}",
|
|
240
|
-
medium: "{{date}}, {{time}}",
|
|
241
|
-
short: "{{date}}, {{time}}"
|
|
242
|
-
};
|
|
243
|
-
const formatLong = {
|
|
244
|
-
date: buildFormatLongFn({
|
|
245
|
-
formats: dateFormats,
|
|
246
|
-
defaultWidth: "full"
|
|
247
|
-
}),
|
|
248
|
-
time: buildFormatLongFn({
|
|
249
|
-
formats: timeFormats,
|
|
250
|
-
defaultWidth: "full"
|
|
251
|
-
}),
|
|
252
|
-
dateTime: buildFormatLongFn({
|
|
253
|
-
formats: dateTimeFormats,
|
|
254
|
-
defaultWidth: "full"
|
|
255
|
-
})
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
const formatRelativeLocale = {
|
|
259
|
-
lastWeek: (date)=>{
|
|
260
|
-
const weekday = date.getDay();
|
|
261
|
-
const last = weekday === 0 || weekday === 6 ? "último" : "última";
|
|
262
|
-
return "'" + last + "' eeee 'às' p";
|
|
263
|
-
},
|
|
264
|
-
yesterday: "'ontem às' p",
|
|
265
|
-
today: "'hoje às' p",
|
|
266
|
-
tomorrow: "'amanhã às' p",
|
|
267
|
-
nextWeek: "eeee 'às' p",
|
|
268
|
-
other: "P"
|
|
269
|
-
};
|
|
270
|
-
const formatRelative = (token, date, _baseDate, _options)=>{
|
|
271
|
-
const format = formatRelativeLocale[token];
|
|
272
|
-
if (typeof format === "function") {
|
|
273
|
-
return format(date);
|
|
274
|
-
}
|
|
275
|
-
return format;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
const eraValues = {
|
|
279
|
-
narrow: [
|
|
280
|
-
"AC",
|
|
281
|
-
"DC"
|
|
282
|
-
],
|
|
283
|
-
abbreviated: [
|
|
284
|
-
"AC",
|
|
285
|
-
"DC"
|
|
286
|
-
],
|
|
287
|
-
wide: [
|
|
288
|
-
"antes de cristo",
|
|
289
|
-
"depois de cristo"
|
|
290
|
-
]
|
|
291
|
-
};
|
|
292
|
-
const quarterValues = {
|
|
293
|
-
narrow: [
|
|
294
|
-
"1",
|
|
295
|
-
"2",
|
|
296
|
-
"3",
|
|
297
|
-
"4"
|
|
298
|
-
],
|
|
299
|
-
abbreviated: [
|
|
300
|
-
"T1",
|
|
301
|
-
"T2",
|
|
302
|
-
"T3",
|
|
303
|
-
"T4"
|
|
304
|
-
],
|
|
305
|
-
wide: [
|
|
306
|
-
"1º trimestre",
|
|
307
|
-
"2º trimestre",
|
|
308
|
-
"3º trimestre",
|
|
309
|
-
"4º trimestre"
|
|
310
|
-
]
|
|
311
|
-
};
|
|
312
|
-
const monthValues = {
|
|
313
|
-
narrow: [
|
|
314
|
-
"j",
|
|
315
|
-
"f",
|
|
316
|
-
"m",
|
|
317
|
-
"a",
|
|
318
|
-
"m",
|
|
319
|
-
"j",
|
|
320
|
-
"j",
|
|
321
|
-
"a",
|
|
322
|
-
"s",
|
|
323
|
-
"o",
|
|
324
|
-
"n",
|
|
325
|
-
"d"
|
|
326
|
-
],
|
|
327
|
-
abbreviated: [
|
|
328
|
-
"jan",
|
|
329
|
-
"fev",
|
|
330
|
-
"mar",
|
|
331
|
-
"abr",
|
|
332
|
-
"mai",
|
|
333
|
-
"jun",
|
|
334
|
-
"jul",
|
|
335
|
-
"ago",
|
|
336
|
-
"set",
|
|
337
|
-
"out",
|
|
338
|
-
"nov",
|
|
339
|
-
"dez"
|
|
340
|
-
],
|
|
341
|
-
wide: [
|
|
342
|
-
"janeiro",
|
|
343
|
-
"fevereiro",
|
|
344
|
-
"março",
|
|
345
|
-
"abril",
|
|
346
|
-
"maio",
|
|
347
|
-
"junho",
|
|
348
|
-
"julho",
|
|
349
|
-
"agosto",
|
|
350
|
-
"setembro",
|
|
351
|
-
"outubro",
|
|
352
|
-
"novembro",
|
|
353
|
-
"dezembro"
|
|
354
|
-
]
|
|
355
|
-
};
|
|
356
|
-
const dayValues = {
|
|
357
|
-
narrow: [
|
|
358
|
-
"D",
|
|
359
|
-
"S",
|
|
360
|
-
"T",
|
|
361
|
-
"Q",
|
|
362
|
-
"Q",
|
|
363
|
-
"S",
|
|
364
|
-
"S"
|
|
365
|
-
],
|
|
366
|
-
short: [
|
|
367
|
-
"dom",
|
|
368
|
-
"seg",
|
|
369
|
-
"ter",
|
|
370
|
-
"qua",
|
|
371
|
-
"qui",
|
|
372
|
-
"sex",
|
|
373
|
-
"sab"
|
|
374
|
-
],
|
|
375
|
-
abbreviated: [
|
|
376
|
-
"domingo",
|
|
377
|
-
"segunda",
|
|
378
|
-
"terça",
|
|
379
|
-
"quarta",
|
|
380
|
-
"quinta",
|
|
381
|
-
"sexta",
|
|
382
|
-
"sábado"
|
|
383
|
-
],
|
|
384
|
-
wide: [
|
|
385
|
-
"domingo",
|
|
386
|
-
"segunda-feira",
|
|
387
|
-
"terça-feira",
|
|
388
|
-
"quarta-feira",
|
|
389
|
-
"quinta-feira",
|
|
390
|
-
"sexta-feira",
|
|
391
|
-
"sábado"
|
|
392
|
-
]
|
|
393
|
-
};
|
|
394
|
-
const dayPeriodValues = {
|
|
395
|
-
narrow: {
|
|
396
|
-
am: "a",
|
|
397
|
-
pm: "p",
|
|
398
|
-
midnight: "mn",
|
|
399
|
-
noon: "md",
|
|
400
|
-
morning: "manhã",
|
|
401
|
-
afternoon: "tarde",
|
|
402
|
-
evening: "tarde",
|
|
403
|
-
night: "noite"
|
|
404
|
-
},
|
|
405
|
-
abbreviated: {
|
|
406
|
-
am: "AM",
|
|
407
|
-
pm: "PM",
|
|
408
|
-
midnight: "meia-noite",
|
|
409
|
-
noon: "meio-dia",
|
|
410
|
-
morning: "manhã",
|
|
411
|
-
afternoon: "tarde",
|
|
412
|
-
evening: "tarde",
|
|
413
|
-
night: "noite"
|
|
414
|
-
},
|
|
415
|
-
wide: {
|
|
416
|
-
am: "a.m.",
|
|
417
|
-
pm: "p.m.",
|
|
418
|
-
midnight: "meia-noite",
|
|
419
|
-
noon: "meio-dia",
|
|
420
|
-
morning: "manhã",
|
|
421
|
-
afternoon: "tarde",
|
|
422
|
-
evening: "tarde",
|
|
423
|
-
night: "noite"
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
const formattingDayPeriodValues = {
|
|
427
|
-
narrow: {
|
|
428
|
-
am: "a",
|
|
429
|
-
pm: "p",
|
|
430
|
-
midnight: "mn",
|
|
431
|
-
noon: "md",
|
|
432
|
-
morning: "da manhã",
|
|
433
|
-
afternoon: "da tarde",
|
|
434
|
-
evening: "da tarde",
|
|
435
|
-
night: "da noite"
|
|
436
|
-
},
|
|
437
|
-
abbreviated: {
|
|
438
|
-
am: "AM",
|
|
439
|
-
pm: "PM",
|
|
440
|
-
midnight: "meia-noite",
|
|
441
|
-
noon: "meio-dia",
|
|
442
|
-
morning: "da manhã",
|
|
443
|
-
afternoon: "da tarde",
|
|
444
|
-
evening: "da tarde",
|
|
445
|
-
night: "da noite"
|
|
446
|
-
},
|
|
447
|
-
wide: {
|
|
448
|
-
am: "a.m.",
|
|
449
|
-
pm: "p.m.",
|
|
450
|
-
midnight: "meia-noite",
|
|
451
|
-
noon: "meio-dia",
|
|
452
|
-
morning: "da manhã",
|
|
453
|
-
afternoon: "da tarde",
|
|
454
|
-
evening: "da tarde",
|
|
455
|
-
night: "da noite"
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
const ordinalNumber = (dirtyNumber, options)=>{
|
|
459
|
-
const number = Number(dirtyNumber);
|
|
460
|
-
if (options?.unit === "week") {
|
|
461
|
-
return number + "ª";
|
|
462
|
-
}
|
|
463
|
-
return number + "º";
|
|
464
|
-
};
|
|
465
|
-
const localize = {
|
|
466
|
-
ordinalNumber,
|
|
467
|
-
era: buildLocalizeFn({
|
|
468
|
-
values: eraValues,
|
|
469
|
-
defaultWidth: "wide"
|
|
470
|
-
}),
|
|
471
|
-
quarter: buildLocalizeFn({
|
|
472
|
-
values: quarterValues,
|
|
473
|
-
defaultWidth: "wide",
|
|
474
|
-
argumentCallback: (quarter)=>quarter - 1
|
|
475
|
-
}),
|
|
476
|
-
month: buildLocalizeFn({
|
|
477
|
-
values: monthValues,
|
|
478
|
-
defaultWidth: "wide"
|
|
479
|
-
}),
|
|
480
|
-
day: buildLocalizeFn({
|
|
481
|
-
values: dayValues,
|
|
482
|
-
defaultWidth: "wide"
|
|
483
|
-
}),
|
|
484
|
-
dayPeriod: buildLocalizeFn({
|
|
485
|
-
values: dayPeriodValues,
|
|
486
|
-
defaultWidth: "wide",
|
|
487
|
-
formattingValues: formattingDayPeriodValues,
|
|
488
|
-
defaultFormattingWidth: "wide"
|
|
489
|
-
})
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
const matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i;
|
|
493
|
-
const parseOrdinalNumberPattern = /\d+/i;
|
|
494
|
-
const matchEraPatterns = {
|
|
495
|
-
narrow: /^(ac|dc|a|d)/i,
|
|
496
|
-
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
497
|
-
wide: /^(antes de cristo|depois de cristo)/i
|
|
498
|
-
};
|
|
499
|
-
const parseEraPatterns = {
|
|
500
|
-
any: [
|
|
501
|
-
/^ac/i,
|
|
502
|
-
/^dc/i
|
|
503
|
-
],
|
|
504
|
-
wide: [
|
|
505
|
-
/^antes de cristo/i,
|
|
506
|
-
/^depois de cristo/i
|
|
507
|
-
]
|
|
508
|
-
};
|
|
509
|
-
const matchQuarterPatterns = {
|
|
510
|
-
narrow: /^[1234]/i,
|
|
511
|
-
abbreviated: /^T[1234]/i,
|
|
512
|
-
wide: /^[1234](º)? trimestre/i
|
|
513
|
-
};
|
|
514
|
-
const parseQuarterPatterns = {
|
|
515
|
-
any: [
|
|
516
|
-
/1/i,
|
|
517
|
-
/2/i,
|
|
518
|
-
/3/i,
|
|
519
|
-
/4/i
|
|
520
|
-
]
|
|
521
|
-
};
|
|
522
|
-
const matchMonthPatterns = {
|
|
523
|
-
narrow: /^[jfmajsond]/i,
|
|
524
|
-
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
525
|
-
wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
|
|
526
|
-
};
|
|
527
|
-
const parseMonthPatterns = {
|
|
528
|
-
narrow: [
|
|
529
|
-
/^j/i,
|
|
530
|
-
/^f/i,
|
|
531
|
-
/^m/i,
|
|
532
|
-
/^a/i,
|
|
533
|
-
/^m/i,
|
|
534
|
-
/^j/i,
|
|
535
|
-
/^j/i,
|
|
536
|
-
/^a/i,
|
|
537
|
-
/^s/i,
|
|
538
|
-
/^o/i,
|
|
539
|
-
/^n/i,
|
|
540
|
-
/^d/i
|
|
541
|
-
],
|
|
542
|
-
any: [
|
|
543
|
-
/^ja/i,
|
|
544
|
-
/^fev/i,
|
|
545
|
-
/^mar/i,
|
|
546
|
-
/^abr/i,
|
|
547
|
-
/^mai/i,
|
|
548
|
-
/^jun/i,
|
|
549
|
-
/^jul/i,
|
|
550
|
-
/^ago/i,
|
|
551
|
-
/^set/i,
|
|
552
|
-
/^out/i,
|
|
553
|
-
/^nov/i,
|
|
554
|
-
/^dez/i
|
|
555
|
-
]
|
|
556
|
-
};
|
|
557
|
-
const matchDayPatterns = {
|
|
558
|
-
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
559
|
-
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
560
|
-
abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
|
|
561
|
-
wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
|
|
562
|
-
};
|
|
563
|
-
const parseDayPatterns = {
|
|
564
|
-
short: [
|
|
565
|
-
/^d/i,
|
|
566
|
-
/^2/i,
|
|
567
|
-
/^3/i,
|
|
568
|
-
/^4/i,
|
|
569
|
-
/^5/i,
|
|
570
|
-
/^6/i,
|
|
571
|
-
/^s[aá]/i
|
|
572
|
-
],
|
|
573
|
-
narrow: [
|
|
574
|
-
/^d/i,
|
|
575
|
-
/^2/i,
|
|
576
|
-
/^3/i,
|
|
577
|
-
/^4/i,
|
|
578
|
-
/^5/i,
|
|
579
|
-
/^6/i,
|
|
580
|
-
/^s[aá]/i
|
|
581
|
-
],
|
|
582
|
-
any: [
|
|
583
|
-
/^d/i,
|
|
584
|
-
/^seg/i,
|
|
585
|
-
/^t/i,
|
|
586
|
-
/^qua/i,
|
|
587
|
-
/^qui/i,
|
|
588
|
-
/^sex/i,
|
|
589
|
-
/^s[aá]b/i
|
|
590
|
-
]
|
|
591
|
-
};
|
|
592
|
-
const matchDayPeriodPatterns = {
|
|
593
|
-
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
594
|
-
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
595
|
-
};
|
|
596
|
-
const parseDayPeriodPatterns = {
|
|
597
|
-
any: {
|
|
598
|
-
am: /^a/i,
|
|
599
|
-
pm: /^p/i,
|
|
600
|
-
midnight: /^mn|^meia[-\s]noite/i,
|
|
601
|
-
noon: /^md|^meio[-\s]dia/i,
|
|
602
|
-
morning: /manhã/i,
|
|
603
|
-
afternoon: /tarde/i,
|
|
604
|
-
evening: /tarde/i,
|
|
605
|
-
night: /noite/i
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
const match = {
|
|
609
|
-
ordinalNumber: buildMatchPatternFn({
|
|
610
|
-
matchPattern: matchOrdinalNumberPattern,
|
|
611
|
-
parsePattern: parseOrdinalNumberPattern,
|
|
612
|
-
valueCallback: (value)=>parseInt(value, 10)
|
|
613
|
-
}),
|
|
614
|
-
era: buildMatchFn({
|
|
615
|
-
matchPatterns: matchEraPatterns,
|
|
616
|
-
defaultMatchWidth: "wide",
|
|
617
|
-
parsePatterns: parseEraPatterns,
|
|
618
|
-
defaultParseWidth: "any"
|
|
619
|
-
}),
|
|
620
|
-
quarter: buildMatchFn({
|
|
621
|
-
matchPatterns: matchQuarterPatterns,
|
|
622
|
-
defaultMatchWidth: "wide",
|
|
623
|
-
parsePatterns: parseQuarterPatterns,
|
|
624
|
-
defaultParseWidth: "any",
|
|
625
|
-
valueCallback: (index)=>index + 1
|
|
626
|
-
}),
|
|
627
|
-
month: buildMatchFn({
|
|
628
|
-
matchPatterns: matchMonthPatterns,
|
|
629
|
-
defaultMatchWidth: "wide",
|
|
630
|
-
parsePatterns: parseMonthPatterns,
|
|
631
|
-
defaultParseWidth: "any"
|
|
632
|
-
}),
|
|
633
|
-
day: buildMatchFn({
|
|
634
|
-
matchPatterns: matchDayPatterns,
|
|
635
|
-
defaultMatchWidth: "wide",
|
|
636
|
-
parsePatterns: parseDayPatterns,
|
|
637
|
-
defaultParseWidth: "any"
|
|
638
|
-
}),
|
|
639
|
-
dayPeriod: buildMatchFn({
|
|
640
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
641
|
-
defaultMatchWidth: "any",
|
|
642
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
643
|
-
defaultParseWidth: "any"
|
|
644
|
-
})
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* @category Locales
|
|
649
|
-
* @summary Portuguese locale (Brazil).
|
|
650
|
-
* @language Portuguese
|
|
651
|
-
* @iso-639-2 por
|
|
652
|
-
* @author Lucas Duailibe [@duailibe](https://github.com/duailibe)
|
|
653
|
-
* @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo)
|
|
654
|
-
*/ const ptBR = {
|
|
655
|
-
code: "pt-BR",
|
|
656
|
-
formatDistance: formatDistance,
|
|
657
|
-
formatLong: formatLong,
|
|
658
|
-
formatRelative: formatRelative,
|
|
659
|
-
localize: localize,
|
|
660
|
-
match: match,
|
|
661
|
-
options: {
|
|
662
|
-
weekStartsOn: 0 /* Sunday */ ,
|
|
663
|
-
firstWeekContainsDate: 1
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
|
|
667
109
|
function normalizeDate(date) {
|
|
668
110
|
return format(date, "yyyy-MM-dd");
|
|
669
111
|
}
|
|
670
|
-
const CalendarPopover = ({ date, setDate,
|
|
671
|
-
return /*#__PURE__*/ React__default.createElement(
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}, /*#__PURE__*/ React__default.createElement(LoaderCircle, {
|
|
675
|
-
className: "h-4 w-4 animate-spin"
|
|
676
|
-
}), /*#__PURE__*/ React__default.createElement("span", null, "carregando...")) : /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
112
|
+
const CalendarPopover = ({ date, setDate, placeholder = "Selecione uma data", id = "calendar-popover", buttonProps, buttonClassName, popoverProps, popoverContentClassName, numberOfMonths = 1, fromYear = 2010, toYear = 2040, className, disabled = false, isLoading, captionLayout = "dropdown", disabledDates, isLoadingTable })=>{
|
|
113
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
114
|
+
className: cn("grid gap-2", className)
|
|
115
|
+
}, /*#__PURE__*/ React__default.createElement(Popover, popoverProps, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
677
116
|
asChild: true
|
|
678
117
|
}, /*#__PURE__*/ React__default.createElement(Button, {
|
|
118
|
+
id: id,
|
|
679
119
|
variant: "outline",
|
|
680
|
-
className: cn("
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
684
|
-
className: "
|
|
685
|
-
}, /*#__PURE__*/ React__default.createElement(
|
|
120
|
+
className: cn("hover:text-foreground w-fit justify-start text-left font-normal", !date && "text-muted-foreground hover:text-muted-foreground", buttonProps?.className, buttonClassName),
|
|
121
|
+
disabled: disabled,
|
|
122
|
+
...buttonProps
|
|
123
|
+
}, isLoading ? /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(LoaderCircle, {
|
|
124
|
+
className: "size-4 animate-spin"
|
|
125
|
+
}), /*#__PURE__*/ React__default.createElement("span", null, "carregando...")) : /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ React__default.createElement(CalendarDays, {
|
|
126
|
+
className: "size-4"
|
|
127
|
+
}), date ? format(date, "P", {
|
|
128
|
+
locale: ptBR
|
|
129
|
+
}) : /*#__PURE__*/ React__default.createElement("span", null, placeholder)))), /*#__PURE__*/ React__default.createElement(PopoverContent, {
|
|
130
|
+
className: cn("w-auto p-0", popoverContentClassName),
|
|
131
|
+
align: "start"
|
|
132
|
+
}, /*#__PURE__*/ React__default.createElement(Calendar, {
|
|
133
|
+
autoFocus: true,
|
|
686
134
|
mode: "single",
|
|
135
|
+
captionLayout: captionLayout,
|
|
687
136
|
selected: date,
|
|
688
|
-
onSelect:
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
if (normalizedSelectedDate !== normalizedCurrentDate) {
|
|
693
|
-
setDate(selectedDate);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
},
|
|
137
|
+
onSelect: setDate,
|
|
138
|
+
numberOfMonths: numberOfMonths,
|
|
139
|
+
fromYear: fromYear,
|
|
140
|
+
toYear: toYear,
|
|
697
141
|
locale: ptBR,
|
|
698
|
-
defaultMonth: date,
|
|
699
142
|
disabled: (currentDate)=>{
|
|
700
143
|
if (isLoading || isLoadingTable) return true;
|
|
701
144
|
const normalizedCurrentDate = normalizeDate(currentDate);
|
|
@@ -703,11 +146,8 @@ const CalendarPopover = ({ date, setDate, isLoading, isLoadingTable, disabledDat
|
|
|
703
146
|
const isWeekendDay = isWeekend(currentDate);
|
|
704
147
|
const isFutureDate = currentDate > new Date();
|
|
705
148
|
return isHoliday || isWeekendDay || isFutureDate;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
fromYear: fromYear,
|
|
709
|
-
toYear: toYear
|
|
710
|
-
})));
|
|
149
|
+
}
|
|
150
|
+
}))));
|
|
711
151
|
};
|
|
712
152
|
|
|
713
153
|
const HoverBadge = ({ title, description, variant, className, showTitleInDescription = true, subtle = false })=>{
|
|
@@ -724,12 +164,6 @@ const HoverBadge = ({ title, description, variant, className, showTitleInDescrip
|
|
|
724
164
|
};
|
|
725
165
|
|
|
726
166
|
function CalendarRange({ value, onChange, placeholder = "Selecione uma data", id = "date", buttonProps, buttonClassName, popoverProps, popoverContentClassName, numberOfMonths = 2, fromYear = 2010, toYear = 2040, toDate = new Date(2040, 11, 31), className, disabled = false }) {
|
|
727
|
-
const [internalDate, setInternalDate] = React.useState(value ?? undefined);
|
|
728
|
-
const date = value ?? internalDate;
|
|
729
|
-
const setDate = (range)=>{
|
|
730
|
-
if (!value) setInternalDate(range);
|
|
731
|
-
onChange?.(range);
|
|
732
|
-
};
|
|
733
167
|
return /*#__PURE__*/ React.createElement("div", {
|
|
734
168
|
className: cn("grid gap-2", className)
|
|
735
169
|
}, /*#__PURE__*/ React.createElement(Popover, popoverProps, /*#__PURE__*/ React.createElement(PopoverTrigger, {
|
|
@@ -737,25 +171,25 @@ function CalendarRange({ value, onChange, placeholder = "Selecione uma data", id
|
|
|
737
171
|
}, /*#__PURE__*/ React.createElement(Button, {
|
|
738
172
|
id: id,
|
|
739
173
|
variant: "outline",
|
|
740
|
-
className: cn("w-fit justify-start text-left font-normal", !
|
|
174
|
+
className: cn("hover:foreground w-fit justify-start text-left font-normal", !value && "text-muted-foreground hover:text-muted-foreground", buttonProps?.className, buttonClassName),
|
|
741
175
|
disabled: disabled,
|
|
742
176
|
...buttonProps
|
|
743
|
-
}, /*#__PURE__*/ React.createElement(
|
|
744
|
-
className: "
|
|
745
|
-
}),
|
|
177
|
+
}, /*#__PURE__*/ React.createElement(CalendarDays, {
|
|
178
|
+
className: "size-4"
|
|
179
|
+
}), value?.from ? value.to ? /*#__PURE__*/ React.createElement(React.Fragment, null, format(value.from, "P", {
|
|
746
180
|
locale: ptBR
|
|
747
|
-
}), " -", " ", format(
|
|
181
|
+
}), " -", " ", format(value.to, "P", {
|
|
748
182
|
locale: ptBR
|
|
749
|
-
})) : format(
|
|
183
|
+
})) : format(value.from, "P") : /*#__PURE__*/ React.createElement("span", null, placeholder))), /*#__PURE__*/ React.createElement(PopoverContent, {
|
|
750
184
|
className: cn("w-auto p-0", popoverContentClassName),
|
|
751
185
|
align: "start"
|
|
752
|
-
}, /*#__PURE__*/ React.createElement(Calendar
|
|
186
|
+
}, /*#__PURE__*/ React.createElement(Calendar, {
|
|
753
187
|
autoFocus: true,
|
|
754
188
|
mode: "range",
|
|
755
189
|
captionLayout: "dropdown",
|
|
756
|
-
defaultMonth:
|
|
757
|
-
selected:
|
|
758
|
-
onSelect:
|
|
190
|
+
defaultMonth: value?.from,
|
|
191
|
+
selected: value,
|
|
192
|
+
onSelect: onChange,
|
|
759
193
|
numberOfMonths: numberOfMonths,
|
|
760
194
|
fromYear: fromYear,
|
|
761
195
|
toYear: toYear,
|