ivt 0.5.1 → 0.5.2
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/aspect-ratio/index.mjs.map +1 -1
- package/dist/avatar/index.mjs +7 -7
- package/dist/badge/index.mjs +3 -3
- package/dist/base/index.d.ts +1 -7
- package/dist/base/index.mjs +45 -85
- package/dist/base/index.mjs.map +1 -1
- package/dist/breadcrumb/index.mjs +5 -5
- package/dist/button/index.mjs +3 -3
- package/dist/button-group/index.mjs +3 -3
- package/dist/calendar/index.mjs +9 -9
- package/dist/card/index.mjs +3 -3
- package/dist/carousel/index.mjs +4 -4
- package/dist/chart/index.mjs +58 -27
- package/dist/chart/index.mjs.map +1 -1
- package/dist/checkbox/index.mjs +16 -221
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chunks/CalendarRange-cGKHXdiT.mjs +45 -0
- package/dist/chunks/CalendarRange-cGKHXdiT.mjs.map +1 -0
- package/dist/chunks/ComboboxField-BTKXl9y7.mjs +67 -0
- package/dist/chunks/ComboboxField-BTKXl9y7.mjs.map +1 -0
- package/dist/chunks/{Container-BrdBMmR0.mjs → Container-BUT39dlc.mjs} +2 -2
- package/dist/chunks/{Container-BrdBMmR0.mjs.map → Container-BUT39dlc.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-BRnOXovZ.mjs → TooltipIndicator-EfXM1ogO.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-BRnOXovZ.mjs.map → TooltipIndicator-EfXM1ogO.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-BMPzsb8G.mjs → _commonjsHelpers-DCzDIER3.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-DCzDIER3.mjs.map +1 -0
- package/dist/chunks/{accordion-D2idHhKo.mjs → accordion-BXurL6Pv.mjs} +11 -11
- package/dist/chunks/{accordion-D2idHhKo.mjs.map → accordion-BXurL6Pv.mjs.map} +1 -1
- package/dist/chunks/{badge-DBJfSSib.mjs → badge-CpWQDnGV.mjs} +2 -2
- package/dist/chunks/{badge-DBJfSSib.mjs.map → badge-CpWQDnGV.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-hDzYn9Rn.mjs → bundle-mjs-C9OlPgmH.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-hDzYn9Rn.mjs.map → bundle-mjs-C9OlPgmH.mjs.map} +1 -1
- package/dist/chunks/{button-D-AuR380.mjs → button-BrmYbiY8.mjs} +2 -2
- package/dist/chunks/{button-D-AuR380.mjs.map → button-BrmYbiY8.mjs.map} +1 -1
- package/dist/chunks/{calendar-UmDqBCDE.mjs → calendar-BQgywKTj.mjs} +7 -7
- package/dist/chunks/{calendar-UmDqBCDE.mjs.map → calendar-BQgywKTj.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-DwMabC50.mjs → calendar-days-C_RzSweF.mjs} +2 -2
- package/dist/chunks/{calendar-days-DwMabC50.mjs.map → calendar-days-C_RzSweF.mjs.map} +1 -1
- package/dist/chunks/{card-BvvM14Gb.mjs → card-DeaeODxs.mjs} +2 -2
- package/dist/chunks/{card-BvvM14Gb.mjs.map → card-DeaeODxs.mjs.map} +1 -1
- package/dist/chunks/{check-BRfyRdfr.mjs → check-CP6BCwvU.mjs} +2 -2
- package/dist/chunks/{check-BRfyRdfr.mjs.map → check-CP6BCwvU.mjs.map} +1 -1
- package/dist/chunks/checkbox-BvnI-3Q6.mjs +219 -0
- package/dist/chunks/checkbox-BvnI-3Q6.mjs.map +1 -0
- package/dist/chunks/{chevron-down-Da1qAjZn.mjs → chevron-down-cCIwKwmA.mjs} +2 -2
- package/dist/chunks/{chevron-down-Da1qAjZn.mjs.map → chevron-down-cCIwKwmA.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-COHT-3Eq.mjs → chevron-left-BPWGf-Mt.mjs} +2 -2
- package/dist/chunks/{chevron-left-COHT-3Eq.mjs.map → chevron-left-BPWGf-Mt.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-DuI9c_Gd.mjs → chevron-right-Bk4Jys-R.mjs} +2 -2
- package/dist/chunks/{chevron-right-DuI9c_Gd.mjs.map → chevron-right-Bk4Jys-R.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-CPNoTxmJ.mjs → chevrons-up-down-BDmpiJmb.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-CPNoTxmJ.mjs.map → chevrons-up-down-BDmpiJmb.mjs.map} +1 -1
- package/dist/chunks/{command-Qqchwo0s.mjs → command-CTTPLJSd.mjs} +8 -8
- package/dist/chunks/{command-Qqchwo0s.mjs.map → command-CTTPLJSd.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-7URJZQ6y.mjs → createLucideIcon-rdK7ReAV.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-7URJZQ6y.mjs.map → createLucideIcon-rdK7ReAV.mjs.map} +1 -1
- package/dist/chunks/{date-OwUlKCdN.mjs → date-BF0VPeD6.mjs} +13 -3
- package/dist/chunks/{date-OwUlKCdN.mjs.map → date-BF0VPeD6.mjs.map} +1 -1
- package/dist/chunks/{dialog-COoPeq2Z.mjs → dialog-BZ1Bem1X.mjs} +5 -5
- package/dist/chunks/dialog-BZ1Bem1X.mjs.map +1 -0
- package/dist/chunks/{ellipsis-D4Xfhncn.mjs → ellipsis-CvvEpdNm.mjs} +2 -2
- package/dist/chunks/{ellipsis-D4Xfhncn.mjs.map → ellipsis-CvvEpdNm.mjs.map} +1 -1
- package/dist/chunks/form-CLuajH9A.mjs +2223 -0
- package/dist/chunks/form-CLuajH9A.mjs.map +1 -0
- package/dist/chunks/{format-D4e-OzO4.mjs → format-DvB2IToG.mjs} +1 -1
- package/dist/chunks/{format-D4e-OzO4.mjs.map → format-DvB2IToG.mjs.map} +1 -1
- package/dist/chunks/format-numbers-DtAwKNYo.mjs +55 -0
- package/dist/chunks/format-numbers-DtAwKNYo.mjs.map +1 -0
- package/dist/chunks/{hover-card-DWwA1Yuy.mjs → hover-card-Cwtai5wK.mjs} +11 -11
- package/dist/chunks/{hover-card-DWwA1Yuy.mjs.map → hover-card-Cwtai5wK.mjs.map} +1 -1
- package/dist/chunks/{index-DtKExqnn.mjs → index-2wUt7vgM.mjs} +5 -5
- package/dist/chunks/{index-DtKExqnn.mjs.map → index-2wUt7vgM.mjs.map} +1 -1
- package/dist/chunks/{index-5faT867a.mjs → index-9Ejb37i6.mjs} +2 -2
- package/dist/chunks/{index-5faT867a.mjs.map → index-9Ejb37i6.mjs.map} +1 -1
- package/dist/chunks/{index-BkSq4h61.mjs → index-B0fljwsr.mjs} +1 -1
- package/dist/chunks/{index-BkSq4h61.mjs.map → index-B0fljwsr.mjs.map} +1 -1
- package/dist/chunks/{index-Ddd4CdXg.mjs → index-B1HovDby.mjs} +1 -1
- package/dist/chunks/{index-Ddd4CdXg.mjs.map → index-B1HovDby.mjs.map} +1 -1
- package/dist/chunks/{index-v6afswDN.mjs → index-BpfkkunI.mjs} +3 -3
- package/dist/chunks/{index-v6afswDN.mjs.map → index-BpfkkunI.mjs.map} +1 -1
- package/dist/chunks/{index-NklcsNwH.mjs → index-C5dQnmlR.mjs} +9 -9
- package/dist/chunks/{index-NklcsNwH.mjs.map → index-C5dQnmlR.mjs.map} +1 -1
- package/dist/chunks/{index-5Pzed4rM.mjs → index-C7WDAsMc.mjs} +2 -2
- package/dist/chunks/{index-5Pzed4rM.mjs.map → index-C7WDAsMc.mjs.map} +1 -1
- package/dist/chunks/{index-nZoGoNPf.mjs → index-C8YG6ZVI.mjs} +1 -1
- package/dist/chunks/{index-nZoGoNPf.mjs.map → index-C8YG6ZVI.mjs.map} +1 -1
- package/dist/chunks/{index-B8Xjv2ZH.mjs → index-CJIjOsdz.mjs} +1 -1
- package/dist/chunks/{index-B8Xjv2ZH.mjs.map → index-CJIjOsdz.mjs.map} +1 -1
- package/dist/chunks/{index-DBCfgozJ.mjs → index-CN-1P6oe.mjs} +9 -9
- package/dist/chunks/{index-DBCfgozJ.mjs.map → index-CN-1P6oe.mjs.map} +1 -1
- package/dist/chunks/{index-B8-uTAUO.mjs → index-CcfhA3fh.mjs} +11 -11
- package/dist/chunks/{index-B8-uTAUO.mjs.map → index-CcfhA3fh.mjs.map} +1 -1
- package/dist/chunks/{index-C9o4LjP_.mjs → index-CdbLHZ-v.mjs} +2 -2
- package/dist/chunks/{index-C9o4LjP_.mjs.map → index-CdbLHZ-v.mjs.map} +1 -1
- package/dist/chunks/{index-CN5_KnJA.mjs → index-D4Y6_Jit.mjs} +5 -5
- package/dist/chunks/{index-CN5_KnJA.mjs.map → index-D4Y6_Jit.mjs.map} +1 -1
- package/dist/chunks/{index-BtarojiO.mjs → index-DEFfOyUE.mjs} +1 -1
- package/dist/chunks/{index-BtarojiO.mjs.map → index-DEFfOyUE.mjs.map} +1 -1
- package/dist/chunks/{index-B2yIIBCu.mjs → index-DFMyqwc8.mjs} +2 -2
- package/dist/chunks/{index-B2yIIBCu.mjs.map → index-DFMyqwc8.mjs.map} +1 -1
- package/dist/chunks/{index-ZHgU3iXJ.mjs → index-DNPAHxPV.mjs} +1 -1
- package/dist/chunks/{index-ZHgU3iXJ.mjs.map → index-DNPAHxPV.mjs.map} +1 -1
- package/dist/chunks/{index-DLJUwQi9.mjs → index-DkhtbUNc.mjs} +1 -1
- package/dist/chunks/{index-DLJUwQi9.mjs.map → index-DkhtbUNc.mjs.map} +1 -1
- package/dist/chunks/{index-B-6Ckys4.mjs → index-Dpe5NTKJ.mjs} +7 -7
- package/dist/chunks/{index-B-6Ckys4.mjs.map → index-Dpe5NTKJ.mjs.map} +1 -1
- package/dist/chunks/{index-B6brYbxC.mjs → index-DymROPqb.mjs} +1 -1
- package/dist/chunks/{index-B6brYbxC.mjs.map → index-DymROPqb.mjs.map} +1 -1
- package/dist/chunks/{index-CfDMge0f.mjs → index-LOIUbp1N.mjs} +3 -3
- package/dist/chunks/{index-CfDMge0f.mjs.map → index-LOIUbp1N.mjs.map} +1 -1
- package/dist/chunks/{index-B87WmpPj.mjs → index-N54PlKgO.mjs} +1 -1
- package/dist/chunks/{index-B87WmpPj.mjs.map → index-N54PlKgO.mjs.map} +1 -1
- package/dist/chunks/{index-C9PsqjPs.mjs → index-SHhYuecD.mjs} +1 -1
- package/dist/chunks/{index-C9PsqjPs.mjs.map → index-SHhYuecD.mjs.map} +1 -1
- package/dist/chunks/{index-C67E33Wg.mjs → index-eIYpJRu_.mjs} +15 -15
- package/dist/chunks/{index-C67E33Wg.mjs.map → index-eIYpJRu_.mjs.map} +1 -1
- package/dist/chunks/{input-P6tpQoZI.mjs → input-BRRi8JbN.mjs} +2 -2
- package/dist/chunks/{input-P6tpQoZI.mjs.map → input-BRRi8JbN.mjs.map} +1 -1
- package/dist/chunks/{label-DO-vk0C1.mjs → label-DyMdyPfF.mjs} +3 -3
- package/dist/chunks/{label-DO-vk0C1.mjs.map → label-DyMdyPfF.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-ByrzCrlm.mjs → loader-circle-DlDf3jDF.mjs} +2 -2
- package/dist/chunks/{loader-circle-ByrzCrlm.mjs.map → loader-circle-DlDf3jDF.mjs.map} +1 -1
- package/dist/chunks/multi-select-BAp66njF.mjs +277 -0
- package/dist/chunks/multi-select-BAp66njF.mjs.map +1 -0
- package/dist/chunks/{pagination-BokeG2NE.mjs → pagination-CoQF8H-y.mjs} +6 -6
- package/dist/chunks/{pagination-BokeG2NE.mjs.map → pagination-CoQF8H-y.mjs.map} +1 -1
- package/dist/chunks/{popover-BHGG1pi4.mjs → popover-Bx3Ak-qS.mjs} +13 -13
- package/dist/chunks/{popover-BHGG1pi4.mjs.map → popover-Bx3Ak-qS.mjs.map} +1 -1
- package/dist/chunks/{progress-tTjKFb3n.mjs → progress-Unv1Ywou.mjs} +4 -4
- package/dist/chunks/{progress-tTjKFb3n.mjs.map → progress-Unv1Ywou.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-DEPEjRwi.mjs → scroll-area-Bu_eg6tq.mjs} +11 -11
- package/dist/chunks/{scroll-area-DEPEjRwi.mjs.map → scroll-area-Bu_eg6tq.mjs.map} +1 -1
- package/dist/chunks/{select-D65oWCP_.mjs → select-VgTkuC8i.mjs} +5 -5
- package/dist/chunks/{select-D65oWCP_.mjs.map → select-VgTkuC8i.mjs.map} +1 -1
- package/dist/chunks/{separator-DGk34I19.mjs → separator-ChTsmHyH.mjs} +3 -3
- package/dist/chunks/{separator-DGk34I19.mjs.map → separator-ChTsmHyH.mjs.map} +1 -1
- package/dist/chunks/{sheet-DzqTwvfR.mjs → sheet-CX9dlZuk.mjs} +4 -4
- package/dist/chunks/{sheet-DzqTwvfR.mjs.map → sheet-CX9dlZuk.mjs.map} +1 -1
- package/dist/chunks/{skeleton-BKAZlhUa.mjs → skeleton-TvPSLZ-7.mjs} +2 -2
- package/dist/chunks/{skeleton-BKAZlhUa.mjs.map → skeleton-TvPSLZ-7.mjs.map} +1 -1
- package/dist/chunks/{sortable-h2HFN8nu.mjs → sortable-DQ0ESvYM.mjs} +3 -3
- package/dist/chunks/{sortable-h2HFN8nu.mjs.map → sortable-DQ0ESvYM.mjs.map} +1 -1
- package/dist/chunks/{table-CU2pn-A3.mjs → table-5dae4DKj.mjs} +2 -2
- package/dist/chunks/{table-CU2pn-A3.mjs.map → table-5dae4DKj.mjs.map} +1 -1
- package/dist/chunks/{textarea-BwN5bQKw.mjs → textarea-C6sc9FNI.mjs} +2 -2
- package/dist/chunks/{textarea-BwN5bQKw.mjs.map → textarea-C6sc9FNI.mjs.map} +1 -1
- package/dist/chunks/{toggle-D4Zey3Qh.mjs → toggle-SS3ISGud.mjs} +5 -5
- package/dist/chunks/{toggle-D4Zey3Qh.mjs.map → toggle-SS3ISGud.mjs.map} +1 -1
- package/dist/chunks/{tooltip-DzraytiQ.mjs → tooltip-WyVePJR7.mjs} +13 -13
- package/dist/chunks/{tooltip-DzraytiQ.mjs.map → tooltip-WyVePJR7.mjs.map} +1 -1
- package/dist/chunks/{trash-2-CP_u4s-9.mjs → trash-2-Dp8LY8vw.mjs} +2 -2
- package/dist/chunks/{trash-2-CP_u4s-9.mjs.map → trash-2-Dp8LY8vw.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-BWSa1Gx0.mjs → triangle-alert-CpLMma6K.mjs} +2 -2
- package/dist/chunks/{triangle-alert-BWSa1Gx0.mjs.map → triangle-alert-CpLMma6K.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-OCi7qCQ4.mjs → tslib.es6-BgXxJBc3.mjs} +1 -1
- package/dist/chunks/{tslib.es6-OCi7qCQ4.mjs.map → tslib.es6-BgXxJBc3.mjs.map} +1 -1
- package/dist/chunks/{utils-D0vBZFbG.mjs → utils-DfaTa-5f.mjs} +2 -2
- package/dist/chunks/{utils-D0vBZFbG.mjs.map → utils-DfaTa-5f.mjs.map} +1 -1
- package/dist/chunks/{x-Cpa5dTvp.mjs → x-BtRqeVV7.mjs} +2 -2
- package/dist/chunks/{x-Cpa5dTvp.mjs.map → x-BtRqeVV7.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.d.ts +8 -1
- package/dist/combobox/index.mjs +121 -39
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.mjs +20 -20
- package/dist/context-menu/index.mjs +23 -23
- package/dist/dash/index.mjs +25 -75
- package/dist/dash/index.mjs.map +1 -1
- package/dist/data-table/index.mjs +35 -35
- package/dist/date-picker/index.mjs +27 -27
- 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.d.ts +6 -0
- package/dist/dropzone/index.mjs +40 -28
- package/dist/dropzone/index.mjs.map +1 -1
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.mjs +5 -5
- package/dist/form/index.mjs +7 -653
- package/dist/form/index.mjs.map +1 -1
- package/dist/form-fields/index.mjs +29 -85
- package/dist/form-fields/index.mjs.map +1 -1
- 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.mjs +5 -5
- package/dist/input-otp/index.mjs +3 -3
- package/dist/item/index.mjs +4 -4
- package/dist/ivt.css +1 -1
- package/dist/kbd/index.mjs +2 -2
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.mjs +6 -6
- package/dist/menubar/index.mjs +23 -23
- package/dist/multi-select/index.mjs +33 -295
- package/dist/multi-select/index.mjs.map +1 -1
- 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/slider/index.mjs.map +1 -1
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +49 -0
- package/dist/table-filter/index.mjs +2068 -0
- package/dist/table-filter/index.mjs.map +1 -0
- package/dist/tabs/index.mjs +13 -13
- package/dist/textarea/index.mjs +3 -3
- 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 +6 -1
- package/dist/chunks/_commonjsHelpers-BMPzsb8G.mjs.map +0 -1
- package/dist/chunks/dialog-COoPeq2Z.mjs.map +0 -1
|
@@ -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-DfaTa-5f.mjs';
|
|
4
|
+
import { C as ChevronDown } from '../chunks/chevron-down-cCIwKwmA.mjs';
|
|
5
|
+
import { C as Check } from '../chunks/check-CP6BCwvU.mjs';
|
|
6
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-Bx3Ak-qS.mjs';
|
|
7
|
+
import { B as Button } from '../chunks/button-BrmYbiY8.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-CTTPLJSd.mjs';
|
|
9
|
+
import { I as Input } from '../chunks/input-BRRi8JbN.mjs';
|
|
10
|
+
import { S as Select, h as SelectTrigger, i as SelectValue, a as SelectContent, c as SelectItem } from '../chunks/select-VgTkuC8i.mjs';
|
|
11
|
+
import { C as ChevronLeft } from '../chunks/chevron-left-BPWGf-Mt.mjs';
|
|
12
|
+
import { C as ChevronRight } from '../chunks/chevron-right-Bk4Jys-R.mjs';
|
|
13
|
+
import { c as PaginationItem, f as PaginationEllipsis } from '../chunks/pagination-CoQF8H-y.mjs';
|
|
14
|
+
import { S as Skeleton } from '../chunks/skeleton-TvPSLZ-7.mjs';
|
|
15
|
+
import { e as TableRow, f as TableCell, T as Table, a as TableHeader, d as TableHead, b as TableBody } from '../chunks/table-5dae4DKj.mjs';
|
|
16
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-rdK7ReAV.mjs';
|
|
17
|
+
import { S as Sortable, b as SortableItem } from '../chunks/sortable-DQ0ESvYM.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-C9OlPgmH.mjs';
|
|
19
|
+
import '../chunks/index-DEFfOyUE.mjs';
|
|
20
|
+
import '../chunks/index-SHhYuecD.mjs';
|
|
21
|
+
import '../chunks/index-C8YG6ZVI.mjs';
|
|
22
22
|
import 'react/jsx-runtime';
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/index-
|
|
23
|
+
import '../chunks/index-D4Y6_Jit.mjs';
|
|
24
|
+
import '../chunks/index-B0fljwsr.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-DNPAHxPV.mjs';
|
|
28
|
+
import '../chunks/index-2wUt7vgM.mjs';
|
|
29
|
+
import '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
30
|
+
import '../chunks/index-9Ejb37i6.mjs';
|
|
31
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
32
|
+
import '../chunks/index-Dpe5NTKJ.mjs';
|
|
33
|
+
import '../chunks/index-C7WDAsMc.mjs';
|
|
34
|
+
import '../chunks/index-BpfkkunI.mjs';
|
|
35
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
36
|
+
import '../chunks/index-DFMyqwc8.mjs';
|
|
37
37
|
import 'class-variance-authority';
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/dialog-
|
|
40
|
-
import '../chunks/x-
|
|
38
|
+
import '../chunks/index-CcfhA3fh.mjs';
|
|
39
|
+
import '../chunks/dialog-BZ1Bem1X.mjs';
|
|
40
|
+
import '../chunks/x-BtRqeVV7.mjs';
|
|
41
41
|
import '@radix-ui/react-select';
|
|
42
|
-
import '../chunks/ellipsis-
|
|
42
|
+
import '../chunks/ellipsis-CvvEpdNm.mjs';
|
|
43
43
|
|
|
44
44
|
const __iconNode$1 = [
|
|
45
45
|
[
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { c as cn } from '../chunks/utils-
|
|
2
|
-
import { t as tryParseDate, p as ptBR } from '../chunks/date-
|
|
1
|
+
import { c as cn } from '../chunks/utils-DfaTa-5f.mjs';
|
|
2
|
+
import { t as tryParseDate, p as ptBR } from '../chunks/date-BF0VPeD6.mjs';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
5
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
6
|
-
import { B as Button } from '../chunks/button-
|
|
7
|
-
import { f as format } from '../chunks/format-
|
|
8
|
-
import { C as Calendar } from '../chunks/calendar-
|
|
9
|
-
import '../chunks/bundle-mjs-
|
|
10
|
-
import '../chunks/createLucideIcon-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
4
|
+
import { C as CalendarDays } from '../chunks/calendar-days-C_RzSweF.mjs';
|
|
5
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-Bx3Ak-qS.mjs';
|
|
6
|
+
import { B as Button } from '../chunks/button-BrmYbiY8.mjs';
|
|
7
|
+
import { f as format } from '../chunks/format-DvB2IToG.mjs';
|
|
8
|
+
import { C as Calendar } from '../chunks/calendar-BQgywKTj.mjs';
|
|
9
|
+
import '../chunks/bundle-mjs-C9OlPgmH.mjs';
|
|
10
|
+
import '../chunks/createLucideIcon-rdK7ReAV.mjs';
|
|
11
|
+
import '../chunks/index-DEFfOyUE.mjs';
|
|
12
|
+
import '../chunks/index-SHhYuecD.mjs';
|
|
13
|
+
import '../chunks/index-C8YG6ZVI.mjs';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
15
|
+
import '../chunks/index-D4Y6_Jit.mjs';
|
|
16
|
+
import '../chunks/index-B0fljwsr.mjs';
|
|
17
17
|
import 'react-dom';
|
|
18
18
|
import '@radix-ui/react-slot';
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/tslib.es6-
|
|
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/index-
|
|
19
|
+
import '../chunks/index-DNPAHxPV.mjs';
|
|
20
|
+
import '../chunks/index-2wUt7vgM.mjs';
|
|
21
|
+
import '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
22
|
+
import '../chunks/index-9Ejb37i6.mjs';
|
|
23
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
24
|
+
import '../chunks/index-Dpe5NTKJ.mjs';
|
|
25
|
+
import '../chunks/index-C7WDAsMc.mjs';
|
|
26
|
+
import '../chunks/index-BpfkkunI.mjs';
|
|
27
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
28
|
+
import '../chunks/index-DFMyqwc8.mjs';
|
|
29
29
|
import 'class-variance-authority';
|
|
30
|
-
import '../chunks/chevron-left-
|
|
31
|
-
import '../chunks/chevron-right-
|
|
32
|
-
import '../chunks/chevron-down-
|
|
30
|
+
import '../chunks/chevron-left-BPWGf-Mt.mjs';
|
|
31
|
+
import '../chunks/chevron-right-Bk4Jys-R.mjs';
|
|
32
|
+
import '../chunks/chevron-down-cCIwKwmA.mjs';
|
|
33
33
|
|
|
34
34
|
function DatePicker({ date, setDate, placeholder = "Selecione uma data", id = "date-picker", buttonProps, popoverProps, popoverContentClassName, className, disabled, defaultMonth, ...props }) {
|
|
35
35
|
const validDate = tryParseDate(date);
|
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/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-BZ1Bem1X.mjs';
|
|
2
|
+
import '../chunks/index-CcfhA3fh.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../chunks/index-
|
|
5
|
-
import '../chunks/index-
|
|
6
|
-
import '../chunks/index-
|
|
4
|
+
import '../chunks/index-DEFfOyUE.mjs';
|
|
5
|
+
import '../chunks/index-SHhYuecD.mjs';
|
|
6
|
+
import '../chunks/index-C8YG6ZVI.mjs';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
8
|
+
import '../chunks/index-9Ejb37i6.mjs';
|
|
9
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
10
|
+
import '../chunks/index-DFMyqwc8.mjs';
|
|
11
|
+
import '../chunks/index-D4Y6_Jit.mjs';
|
|
12
|
+
import '../chunks/index-B0fljwsr.mjs';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import '@radix-ui/react-slot';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/tslib.es6-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/utils-
|
|
21
|
-
import '../chunks/bundle-mjs-
|
|
22
|
-
import '../chunks/x-
|
|
23
|
-
import '../chunks/createLucideIcon-
|
|
15
|
+
import '../chunks/index-DNPAHxPV.mjs';
|
|
16
|
+
import '../chunks/index-2wUt7vgM.mjs';
|
|
17
|
+
import '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
18
|
+
import '../chunks/index-BpfkkunI.mjs';
|
|
19
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
20
|
+
import '../chunks/utils-DfaTa-5f.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-C9OlPgmH.mjs';
|
|
22
|
+
import '../chunks/x-BtRqeVV7.mjs';
|
|
23
|
+
import '../chunks/createLucideIcon-rdK7ReAV.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-CcfhA3fh.mjs';
|
|
4
|
+
import { c as cn } from '../chunks/utils-DfaTa-5f.mjs';
|
|
5
|
+
import '../chunks/index-DEFfOyUE.mjs';
|
|
6
|
+
import '../chunks/index-SHhYuecD.mjs';
|
|
7
|
+
import '../chunks/index-C8YG6ZVI.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-9Ejb37i6.mjs';
|
|
10
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
11
|
+
import '../chunks/index-DFMyqwc8.mjs';
|
|
12
|
+
import '../chunks/index-D4Y6_Jit.mjs';
|
|
13
|
+
import '../chunks/index-B0fljwsr.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-DNPAHxPV.mjs';
|
|
17
|
+
import '../chunks/index-2wUt7vgM.mjs';
|
|
18
|
+
import '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
19
|
+
import '../chunks/index-BpfkkunI.mjs';
|
|
20
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-C9OlPgmH.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-DfaTa-5f.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-DEFfOyUE.mjs';
|
|
5
|
+
import { c as composeRefs } from '../chunks/index-SHhYuecD.mjs';
|
|
6
|
+
import { c as createContextScope } from '../chunks/index-C8YG6ZVI.mjs';
|
|
7
|
+
import { u as useControllableState } from '../chunks/index-DFMyqwc8.mjs';
|
|
8
|
+
import { P as Primitive } from '../chunks/index-B0fljwsr.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-eIYpJRu_.mjs';
|
|
10
|
+
import { u as useId } from '../chunks/index-9Ejb37i6.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-CP6BCwvU.mjs';
|
|
13
|
+
import { C as ChevronRight } from '../chunks/chevron-right-Bk4Jys-R.mjs';
|
|
14
|
+
import '../chunks/bundle-mjs-C9OlPgmH.mjs';
|
|
15
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import '@radix-ui/react-slot';
|
|
18
|
-
import '../chunks/createLucideIcon-
|
|
18
|
+
import '../chunks/createLucideIcon-rdK7ReAV.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-DymROPqb.mjs';
|
|
21
|
+
import '../chunks/index-D4Y6_Jit.mjs';
|
|
22
|
+
import '../chunks/index-DNPAHxPV.mjs';
|
|
23
|
+
import '../chunks/index-2wUt7vgM.mjs';
|
|
24
|
+
import '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
25
|
+
import '../chunks/index-Dpe5NTKJ.mjs';
|
|
26
|
+
import '../chunks/index-C7WDAsMc.mjs';
|
|
27
|
+
import '../chunks/index-BpfkkunI.mjs';
|
|
28
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
29
|
+
import '../chunks/index-C5dQnmlR.mjs';
|
|
30
30
|
|
|
31
31
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
32
32
|
var [createDropdownMenuContext] = createContextScope(DROPDOWN_MENU_NAME, [
|
package/dist/dropzone/index.d.ts
CHANGED
|
@@ -120,6 +120,12 @@ interface FileUploaderProps extends React__default.HTMLAttributes<HTMLDivElement
|
|
|
120
120
|
* @type React.Dispatch<React.SetStateAction<FileErrorMessage[]>>
|
|
121
121
|
*/
|
|
122
122
|
setFileErrors: React__default.Dispatch<React__default.SetStateAction<FileErrorMessage[]>>;
|
|
123
|
+
/**
|
|
124
|
+
* Tipo de arquivo exibido no texto de instrução (ex: "XML", "CSV").
|
|
125
|
+
* @default undefined
|
|
126
|
+
* @example fileType="XML"
|
|
127
|
+
*/
|
|
128
|
+
fileType?: string;
|
|
123
129
|
}
|
|
124
130
|
declare function FileUploader(props: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
|
125
131
|
|
package/dist/dropzone/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useMemo, useCallback, useState, forwardRef, useImperativeHandle, Fragment, useReducer } from 'react';
|
|
2
|
-
import { c as cn, f as formatBytes } from '../chunks/utils-
|
|
3
|
-
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-
|
|
4
|
-
import { c as __awaiter } from '../chunks/tslib.es6-
|
|
5
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
6
|
-
import { S as ScrollArea } from '../chunks/scroll-area-
|
|
7
|
-
import { P as Progress } from '../chunks/progress-
|
|
8
|
-
import { X } from '../chunks/x-
|
|
9
|
-
import { B as Button } from '../chunks/button-
|
|
10
|
-
import '../chunks/bundle-mjs-
|
|
11
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn, f as formatBytes } from '../chunks/utils-DfaTa-5f.mjs';
|
|
3
|
+
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-DCzDIER3.mjs';
|
|
4
|
+
import { c as __awaiter } from '../chunks/tslib.es6-BgXxJBc3.mjs';
|
|
5
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-rdK7ReAV.mjs';
|
|
6
|
+
import { S as ScrollArea } from '../chunks/scroll-area-Bu_eg6tq.mjs';
|
|
7
|
+
import { P as Progress } from '../chunks/progress-Unv1Ywou.mjs';
|
|
8
|
+
import { X } from '../chunks/x-BtRqeVV7.mjs';
|
|
9
|
+
import { B as Button } from '../chunks/button-BrmYbiY8.mjs';
|
|
10
|
+
import '../chunks/bundle-mjs-C9OlPgmH.mjs';
|
|
11
|
+
import '../chunks/index-B0fljwsr.mjs';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@radix-ui/react-slot';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/index-
|
|
18
|
-
import '../chunks/index-
|
|
19
|
-
import '../chunks/index-
|
|
20
|
-
import '../chunks/index-
|
|
21
|
-
import '../chunks/index-
|
|
22
|
-
import '../chunks/index-
|
|
15
|
+
import '../chunks/index-LOIUbp1N.mjs';
|
|
16
|
+
import '../chunks/index-SHhYuecD.mjs';
|
|
17
|
+
import '../chunks/index-B1HovDby.mjs';
|
|
18
|
+
import '../chunks/index-C8YG6ZVI.mjs';
|
|
19
|
+
import '../chunks/index-DNPAHxPV.mjs';
|
|
20
|
+
import '../chunks/index-DymROPqb.mjs';
|
|
21
|
+
import '../chunks/index-DkhtbUNc.mjs';
|
|
22
|
+
import '../chunks/index-DEFfOyUE.mjs';
|
|
23
23
|
import 'class-variance-authority';
|
|
24
24
|
|
|
25
25
|
const __iconNode$1 = [
|
|
@@ -7690,11 +7690,18 @@ function noop() {}
|
|
|
7690
7690
|
function FileUploader(props) {
|
|
7691
7691
|
const { value: valueProp, onValueChange, onUpload, progresses, accept = {
|
|
7692
7692
|
"image/*": []
|
|
7693
|
-
}, maxSize = 2 * 1024 * 1024, maxFileCount = 1, multiple = false, disabled = false, className, onGetErrorMessage, onValidFile, title, fileErrors, setFileErrors, description, previewFiles = true, isLoading = false, id, ...dropzoneProps } = props;
|
|
7693
|
+
}, maxSize = 2 * 1024 * 1024, maxFileCount = 1, multiple = false, disabled = false, className, onGetErrorMessage, onValidFile, title, fileErrors, setFileErrors, description, previewFiles = true, isLoading = false, id, fileType, ...dropzoneProps } = props;
|
|
7694
7694
|
const [files, setFiles] = useControllableState({
|
|
7695
7695
|
prop: valueProp,
|
|
7696
7696
|
onChange: onValueChange
|
|
7697
7697
|
});
|
|
7698
|
+
const fileLabelMap = {
|
|
7699
|
+
xml: "XML",
|
|
7700
|
+
csv: "CSV",
|
|
7701
|
+
pdf: "PDF",
|
|
7702
|
+
img: "imagem"
|
|
7703
|
+
};
|
|
7704
|
+
const fileLabel = fileType && fileLabelMap[fileType.toLowerCase()] ? fileLabelMap[fileType.toLowerCase()] : fileType || "";
|
|
7698
7705
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
|
|
7699
7706
|
const onDrop = React__default.useCallback((acceptedFiles, rejectedFiles)=>{
|
|
7700
7707
|
const totalFilesCount = (files?.length ?? 0) + acceptedFiles.length;
|
|
@@ -7767,14 +7774,19 @@ function FileUploader(props) {
|
|
|
7767
7774
|
id: id,
|
|
7768
7775
|
...getInputProps()
|
|
7769
7776
|
}), isDragActive ? /*#__PURE__*/ React__default.createElement("div", {
|
|
7770
|
-
className: "flex flex-col items-center justify-center gap-
|
|
7777
|
+
className: "flex flex-col items-center justify-center gap-4 sm:px-5"
|
|
7778
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7779
|
+
className: "rounded-md border p-2.5"
|
|
7771
7780
|
}, /*#__PURE__*/ React__default.createElement(Upload, {
|
|
7772
|
-
className: "
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7781
|
+
className: "size-4",
|
|
7782
|
+
"aria-hidden": "true"
|
|
7783
|
+
})), /*#__PURE__*/ React__default.createElement("div", {
|
|
7784
|
+
className: "flex flex-col gap-1 text-center"
|
|
7785
|
+
}, /*#__PURE__*/ React__default.createElement("p", {
|
|
7786
|
+
className: "text-lg font-bold md:text-xl"
|
|
7787
|
+
}, "Arraste e solte seu", multiple ? "s" : "", " ", fileLabel ? `arquivo${multiple ? "s" : ""} ${fileLabel}` : `arquivo${multiple ? "s" : ""}`, " ", "aqui"), /*#__PURE__*/ React__default.createElement("p", {
|
|
7788
|
+
className: "text-foreground/70 text-sm md:text-base"
|
|
7789
|
+
}, "ou clique para procurar"))) : /*#__PURE__*/ React__default.createElement("div", {
|
|
7778
7790
|
className: "flex flex-col items-center justify-center gap-4 sm:px-5"
|
|
7779
7791
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7780
7792
|
className: "rounded-md border p-2.5"
|
|
@@ -7785,13 +7797,13 @@ function FileUploader(props) {
|
|
|
7785
7797
|
className: "size-4",
|
|
7786
7798
|
"aria-hidden": "true"
|
|
7787
7799
|
})), /*#__PURE__*/ React__default.createElement("div", {
|
|
7788
|
-
className: "flex flex-col gap-1"
|
|
7800
|
+
className: "flex flex-col gap-1 text-center"
|
|
7789
7801
|
}, /*#__PURE__*/ React__default.createElement("p", {
|
|
7790
7802
|
className: "text-lg font-bold md:text-xl"
|
|
7791
7803
|
}, isLoading ? "Carregando arquivo(s)..." : title), /*#__PURE__*/ React__default.createElement("p", {
|
|
7792
7804
|
className: "text-foreground/70 text-sm md:text-base"
|
|
7793
7805
|
}, description ? description : /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, "Faça upload no máximo com", maxFileCount > 1 ? ` ${maxFileCount === Number.POSITIVE_INFINITY ? "multiple" : maxFileCount}
|
|
7794
|
-
|
|
7806
|
+
arquivos (de até ${formatBytes(maxSize)})` : ` um arquivo com ${formatBytes(maxSize)}`)))))), previewFiles && files?.length ? /*#__PURE__*/ React__default.createElement(ScrollArea, {
|
|
7795
7807
|
className: "h-fit w-full px-3"
|
|
7796
7808
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
7797
7809
|
className: "flex max-h-48 flex-col gap-4"
|