ivt 0.6.3 → 0.6.4
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/accordion-table/index.mjs +27 -27
- 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 +90 -3
- package/dist/base/index.mjs +188 -46
- 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 +4 -4
- 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 +4 -4
- package/dist/checkbox/index.mjs +14 -14
- package/dist/chunks/{CalendarRange-C6vOFlmf.mjs → CalendarRange-CSSE2lnb.mjs} +8 -8
- package/dist/chunks/{CalendarRange-C6vOFlmf.mjs.map → CalendarRange-CSSE2lnb.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-Doi9J8PJ.mjs → ComboboxField-whSP1iXZ.mjs} +9 -9
- package/dist/chunks/{ComboboxField-Doi9J8PJ.mjs.map → ComboboxField-whSP1iXZ.mjs.map} +1 -1
- package/dist/chunks/{Container-z6R2DfdZ.mjs → Container-B-d4mE-S.mjs} +2 -2
- package/dist/chunks/{Container-z6R2DfdZ.mjs.map → Container-B-d4mE-S.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-DJqM51Kc.mjs → DeleteConfirmationModal-DXIXFB-K.mjs} +4 -4
- package/dist/chunks/{DeleteConfirmationModal-DJqM51Kc.mjs.map → DeleteConfirmationModal-DXIXFB-K.mjs.map} +1 -1
- package/dist/chunks/ListItem-DMi-MHsZ.mjs +27 -0
- package/dist/chunks/ListItem-DMi-MHsZ.mjs.map +1 -0
- package/dist/chunks/{TooltipIndicator-DXdQXW6m.mjs → TooltipIndicator--2s1dkLz.mjs} +4 -4
- package/dist/chunks/{TooltipIndicator-DXdQXW6m.mjs.map → TooltipIndicator--2s1dkLz.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-CVPOz0BZ.mjs → _commonjsHelpers-Chs9vA-X.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-Chs9vA-X.mjs.map +1 -0
- package/dist/chunks/{accordion-B3vf0fhd.mjs → accordion-CNQB0EvO.mjs} +11 -11
- package/dist/chunks/{accordion-B3vf0fhd.mjs.map → accordion-CNQB0EvO.mjs.map} +1 -1
- package/dist/chunks/{badge-C6F5MW8F.mjs → badge-Xgn2whYL.mjs} +2 -2
- package/dist/chunks/{badge-C6F5MW8F.mjs.map → badge-Xgn2whYL.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-C2x5Ccl3.mjs → bundle-mjs-Bsj-DC7F.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-C2x5Ccl3.mjs.map → bundle-mjs-Bsj-DC7F.mjs.map} +1 -1
- package/dist/chunks/{button-BxzkfInK.mjs → button-w3YgbO4N.mjs} +2 -2
- package/dist/chunks/{button-BxzkfInK.mjs.map → button-w3YgbO4N.mjs.map} +1 -1
- package/dist/chunks/{calendar-B4ub8F9N.mjs → calendar-C93_tf2a.mjs} +7 -7
- package/dist/chunks/{calendar-B4ub8F9N.mjs.map → calendar-C93_tf2a.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-ejdYbUqz.mjs → calendar-days-D2L6Zk6C.mjs} +2 -2
- package/dist/chunks/{calendar-days-ejdYbUqz.mjs.map → calendar-days-D2L6Zk6C.mjs.map} +1 -1
- package/dist/chunks/{card-p-17uB9d.mjs → card-C7MCeKlS.mjs} +2 -2
- package/dist/chunks/{card-p-17uB9d.mjs.map → card-C7MCeKlS.mjs.map} +1 -1
- package/dist/chunks/{check-DhrPUDwT.mjs → check-C7sYxkuc.mjs} +2 -2
- package/dist/chunks/{check-DhrPUDwT.mjs.map → check-C7sYxkuc.mjs.map} +1 -1
- package/dist/chunks/{checkbox-DwTI3rrn.mjs → checkbox-BQiWlwi_.mjs} +11 -11
- package/dist/chunks/{checkbox-DwTI3rrn.mjs.map → checkbox-BQiWlwi_.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-C7AXdCbM.mjs → chevron-down-1Bc_6jE2.mjs} +2 -2
- package/dist/chunks/{chevron-down-C7AXdCbM.mjs.map → chevron-down-1Bc_6jE2.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-J7eijyjl.mjs → chevron-left-DL-iJCZO.mjs} +2 -2
- package/dist/chunks/{chevron-left-J7eijyjl.mjs.map → chevron-left-DL-iJCZO.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-Cw3uJl_J.mjs → chevron-right-DzD-SgEG.mjs} +2 -2
- package/dist/chunks/{chevron-right-Cw3uJl_J.mjs.map → chevron-right-DzD-SgEG.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-qiBJw_CE.mjs → chevrons-up-down-4ljYv7S3.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-qiBJw_CE.mjs.map → chevrons-up-down-4ljYv7S3.mjs.map} +1 -1
- package/dist/chunks/{command-BK2qhT4A.mjs → command-Bojrd8ur.mjs} +8 -8
- package/dist/chunks/{command-BK2qhT4A.mjs.map → command-Bojrd8ur.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-CNxzvTyx.mjs → createLucideIcon-CyJmURRz.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-CNxzvTyx.mjs.map → createLucideIcon-CyJmURRz.mjs.map} +1 -1
- package/dist/chunks/{date-bsoTh0X8.mjs → date-DD27VBup.mjs} +2 -2
- package/dist/chunks/{date-bsoTh0X8.mjs.map → date-DD27VBup.mjs.map} +1 -1
- package/dist/chunks/{dialog-C8BqAoDa.mjs → dialog-gJyG_-ra.mjs} +4 -4
- package/dist/chunks/{dialog-C8BqAoDa.mjs.map → dialog-gJyG_-ra.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-gf-7Pb5Z.mjs → ellipsis-O3-odoqB.mjs} +2 -2
- package/dist/chunks/{ellipsis-gf-7Pb5Z.mjs.map → ellipsis-O3-odoqB.mjs.map} +1 -1
- package/dist/chunks/{form-BBdrSGwB.mjs → form-CnjyqvxW.mjs} +3 -3
- package/dist/chunks/{form-BBdrSGwB.mjs.map → form-CnjyqvxW.mjs.map} +1 -1
- package/dist/chunks/{format-vafQCa1-.mjs → format-D3vl8Nt0.mjs} +1 -1
- package/dist/chunks/{format-vafQCa1-.mjs.map → format-D3vl8Nt0.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-CHSMhEsY.mjs → format-numbers-BZH-5wd0.mjs} +1 -1
- package/dist/chunks/{format-numbers-CHSMhEsY.mjs.map → format-numbers-BZH-5wd0.mjs.map} +1 -1
- package/dist/chunks/{hover-card-DRiY9P32.mjs → hover-card-C9kr52Sn.mjs} +11 -11
- package/dist/chunks/{hover-card-DRiY9P32.mjs.map → hover-card-C9kr52Sn.mjs.map} +1 -1
- package/dist/chunks/{index-DLlcteii.mjs → index-1dIXhFYz.mjs} +1 -1
- package/dist/chunks/{index-DLlcteii.mjs.map → index-1dIXhFYz.mjs.map} +1 -1
- package/dist/chunks/{index-2n7_3Cjk.mjs → index-6X5LMFJg.mjs} +1 -1
- package/dist/chunks/{index-2n7_3Cjk.mjs.map → index-6X5LMFJg.mjs.map} +1 -1
- package/dist/chunks/{index-8IGka0hg.mjs → index-A9sCB-kz.mjs} +1 -1
- package/dist/chunks/{index-8IGka0hg.mjs.map → index-A9sCB-kz.mjs.map} +1 -1
- package/dist/chunks/{index-CPpwqFj8.mjs → index-B4otZW4q.mjs} +9 -9
- package/dist/chunks/{index-CPpwqFj8.mjs.map → index-B4otZW4q.mjs.map} +1 -1
- package/dist/chunks/{index-DJVlJsZA.mjs → index-BLX8fFuX.mjs} +3 -3
- package/dist/chunks/{index-DJVlJsZA.mjs.map → index-BLX8fFuX.mjs.map} +1 -1
- package/dist/chunks/{index-CXqAujOo.mjs → index-BTbETlk3.mjs} +2 -2
- package/dist/chunks/{index-CXqAujOo.mjs.map → index-BTbETlk3.mjs.map} +1 -1
- package/dist/chunks/{index-BddawZ7u.mjs → index-B_RTLXiw.mjs} +1 -1
- package/dist/chunks/{index-BddawZ7u.mjs.map → index-B_RTLXiw.mjs.map} +1 -1
- package/dist/chunks/{index-X0kJNTxp.mjs → index-BcETtjq7.mjs} +2 -2
- package/dist/chunks/{index-X0kJNTxp.mjs.map → index-BcETtjq7.mjs.map} +1 -1
- package/dist/chunks/{index-D3ZXHiOc.mjs → index-BnkQwtoI.mjs} +15 -15
- package/dist/chunks/{index-D3ZXHiOc.mjs.map → index-BnkQwtoI.mjs.map} +1 -1
- package/dist/chunks/{index-BXaCSCS6.mjs → index-C0W5TCYS.mjs} +1 -1
- package/dist/chunks/{index-BXaCSCS6.mjs.map → index-C0W5TCYS.mjs.map} +1 -1
- package/dist/chunks/{index-DynSCSYY.mjs → index-CDMXBjs5.mjs} +1 -1
- package/dist/chunks/{index-DynSCSYY.mjs.map → index-CDMXBjs5.mjs.map} +1 -1
- package/dist/chunks/{index-BkXjIXXx.mjs → index-CP5IMvF6.mjs} +1 -1
- package/dist/chunks/{index-BkXjIXXx.mjs.map → index-CP5IMvF6.mjs.map} +1 -1
- package/dist/chunks/{index-BHMUk6SI.mjs → index-CVlrcY4U.mjs} +5 -5
- package/dist/chunks/{index-BHMUk6SI.mjs.map → index-CVlrcY4U.mjs.map} +1 -1
- package/dist/chunks/{index-eryW7n4F.mjs → index-Ch7It_oz.mjs} +11 -11
- package/dist/chunks/{index-eryW7n4F.mjs.map → index-Ch7It_oz.mjs.map} +1 -1
- package/dist/chunks/{index-DmrnxEAX.mjs → index-D2ZM3eSk.mjs} +3 -3
- package/dist/chunks/{index-DmrnxEAX.mjs.map → index-D2ZM3eSk.mjs.map} +1 -1
- package/dist/chunks/{index-D-oXVZAI.mjs → index-D3raJhg-.mjs} +5 -5
- package/dist/chunks/{index-D-oXVZAI.mjs.map → index-D3raJhg-.mjs.map} +1 -1
- package/dist/chunks/{index-8mMbXCbb.mjs → index-DQB8cT4M.mjs} +1 -1
- package/dist/chunks/{index-8mMbXCbb.mjs.map → index-DQB8cT4M.mjs.map} +1 -1
- package/dist/chunks/{index-6jSM1EM8.mjs → index-GxLl6H4O.mjs} +7 -7
- package/dist/chunks/{index-6jSM1EM8.mjs.map → index-GxLl6H4O.mjs.map} +1 -1
- package/dist/chunks/{index--q4ID74U.mjs → index-LzZONhgk.mjs} +9 -9
- package/dist/chunks/{index--q4ID74U.mjs.map → index-LzZONhgk.mjs.map} +1 -1
- package/dist/chunks/{index-Dem9i7oG.mjs → index-MMJu4clW.mjs} +2 -2
- package/dist/chunks/{index-Dem9i7oG.mjs.map → index-MMJu4clW.mjs.map} +1 -1
- package/dist/chunks/{index-B_SGt3iD.mjs → index-P_DA76lP.mjs} +1 -1
- package/dist/chunks/{index-B_SGt3iD.mjs.map → index-P_DA76lP.mjs.map} +1 -1
- package/dist/chunks/{index-C57rrjbu.mjs → index-uSC1GXit.mjs} +2 -2
- package/dist/chunks/{index-C57rrjbu.mjs.map → index-uSC1GXit.mjs.map} +1 -1
- package/dist/chunks/{index-CccKokvh.mjs → index-xsn786mg.mjs} +1 -1
- package/dist/chunks/{index-CccKokvh.mjs.map → index-xsn786mg.mjs.map} +1 -1
- package/dist/chunks/{input-BmaMdUig.mjs → input-CRSidXiN.mjs} +2 -2
- package/dist/chunks/{input-BmaMdUig.mjs.map → input-CRSidXiN.mjs.map} +1 -1
- package/dist/chunks/{label-EVALGS31.mjs → label-CoCA5N9R.mjs} +3 -3
- package/dist/chunks/{label-EVALGS31.mjs.map → label-CoCA5N9R.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-DWX4e7sf.mjs → loader-circle-CJThtpM8.mjs} +2 -2
- package/dist/chunks/{loader-circle-DWX4e7sf.mjs.map → loader-circle-CJThtpM8.mjs.map} +1 -1
- package/dist/chunks/menubar-IxCRcc3h.mjs +571 -0
- package/dist/chunks/menubar-IxCRcc3h.mjs.map +1 -0
- package/dist/chunks/{multi-select-0MSZ11CM.mjs → multi-select-DNB39SYt.mjs} +44 -20
- package/dist/chunks/multi-select-DNB39SYt.mjs.map +1 -0
- package/dist/chunks/{pagination-B1pMeR37.mjs → pagination-pfERksJd.mjs} +6 -6
- package/dist/chunks/{pagination-B1pMeR37.mjs.map → pagination-pfERksJd.mjs.map} +1 -1
- package/dist/chunks/{popover-CTt4bYVl.mjs → popover-CoM9Bdak.mjs} +13 -13
- package/dist/chunks/{popover-CTt4bYVl.mjs.map → popover-CoM9Bdak.mjs.map} +1 -1
- package/dist/chunks/{progress-DB31Fcrp.mjs → progress-PAATxYFo.mjs} +4 -4
- package/dist/chunks/{progress-DB31Fcrp.mjs.map → progress-PAATxYFo.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-B74qXV9v.mjs → react-number-format.es-Dgl0O_tF.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-B74qXV9v.mjs.map → react-number-format.es-Dgl0O_tF.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-l4LJuq0i.mjs → scroll-area-BEXJ0PYK.mjs} +11 -11
- package/dist/chunks/{scroll-area-l4LJuq0i.mjs.map → scroll-area-BEXJ0PYK.mjs.map} +1 -1
- package/dist/chunks/{select-CAVb-nGs.mjs → select-BaMJUcD-.mjs} +5 -5
- package/dist/chunks/{select-CAVb-nGs.mjs.map → select-BaMJUcD-.mjs.map} +1 -1
- package/dist/chunks/{separator-D0VFW5Lo.mjs → separator-CT0d-bQx.mjs} +3 -3
- package/dist/chunks/{separator-D0VFW5Lo.mjs.map → separator-CT0d-bQx.mjs.map} +1 -1
- package/dist/chunks/{sheet-y3xiV9Ny.mjs → sheet-DBCCU2LY.mjs} +4 -4
- package/dist/chunks/{sheet-y3xiV9Ny.mjs.map → sheet-DBCCU2LY.mjs.map} +1 -1
- package/dist/chunks/{skeleton-CJl47J7g.mjs → skeleton-BGyVdjEB.mjs} +2 -2
- package/dist/chunks/{skeleton-CJl47J7g.mjs.map → skeleton-BGyVdjEB.mjs.map} +1 -1
- package/dist/chunks/{sortable-CZxlBWrl.mjs → sortable-Due8fPR6.mjs} +3 -3
- package/dist/chunks/{sortable-CZxlBWrl.mjs.map → sortable-Due8fPR6.mjs.map} +1 -1
- package/dist/chunks/{table-C63bCCPl.mjs → table-BCwQzaUG.mjs} +2 -2
- package/dist/chunks/{table-C63bCCPl.mjs.map → table-BCwQzaUG.mjs.map} +1 -1
- package/dist/chunks/{textarea-BM5xOATd.mjs → textarea-CkF8UcX5.mjs} +2 -2
- package/dist/chunks/{textarea-BM5xOATd.mjs.map → textarea-CkF8UcX5.mjs.map} +1 -1
- package/dist/chunks/{toggle-EMAWE62-.mjs → toggle-CXSa2200.mjs} +5 -5
- package/dist/chunks/{toggle-EMAWE62-.mjs.map → toggle-CXSa2200.mjs.map} +1 -1
- package/dist/chunks/{tooltip-d4mEsgiQ.mjs → tooltip-DLElmpyh.mjs} +13 -13
- package/dist/chunks/{tooltip-d4mEsgiQ.mjs.map → tooltip-DLElmpyh.mjs.map} +1 -1
- package/dist/chunks/{trash-2-uP7mRxLY.mjs → trash-2-C4LWxYG0.mjs} +2 -2
- package/dist/chunks/{trash-2-uP7mRxLY.mjs.map → trash-2-C4LWxYG0.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-XroV-rg0.mjs → triangle-alert-AD47bW6b.mjs} +2 -2
- package/dist/chunks/{triangle-alert-XroV-rg0.mjs.map → triangle-alert-AD47bW6b.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-Cd4zKtiY.mjs → tslib.es6-BIgLG7bA.mjs} +1 -1
- package/dist/chunks/{tslib.es6-Cd4zKtiY.mjs.map → tslib.es6-BIgLG7bA.mjs.map} +1 -1
- package/dist/chunks/{utils-Cf4V6qcv.mjs → utils-Do8DRzMk.mjs} +2 -2
- package/dist/chunks/{utils-Cf4V6qcv.mjs.map → utils-Do8DRzMk.mjs.map} +1 -1
- package/dist/chunks/{x-Dfbhgap6.mjs → x-DrN_X0V4.mjs} +2 -2
- package/dist/chunks/{x-Dfbhgap6.mjs.map → x-DrN_X0V4.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/dash/index.mjs +25 -25
- 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.mjs +18 -18
- package/dist/editable-table/index.mjs +10 -10
- package/dist/empty/index.mjs +2 -2
- package/dist/field/index.mjs +5 -5
- package/dist/form/index.mjs +5 -5
- package/dist/form-fields/index.mjs +28 -28
- 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.d.ts +3 -0
- package/dist/layout/index.mjs +28 -25
- package/dist/layout/index.mjs.map +1 -1
- package/dist/menubar/index.mjs +27 -581
- package/dist/menubar/index.mjs.map +1 -1
- package/dist/multi-input-list/index.d.ts +24 -0
- package/dist/multi-input-list/index.mjs +217 -0
- package/dist/multi-input-list/index.mjs.map +1 -0
- package/dist/multi-select/index.d.ts +3 -1
- package/dist/multi-select/index.mjs +31 -31
- 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 +26 -26
- package/dist/skeleton-component/index.mjs.map +1 -1
- package/dist/slider/index.mjs +12 -12
- 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.mjs +52 -52
- 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 +5 -1
- package/dist/chunks/_commonjsHelpers-CVPOz0BZ.mjs.map +0 -1
- package/dist/chunks/multi-select-0MSZ11CM.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-
|
|
1
|
+
export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-CNQB0EvO.mjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../chunks/index-
|
|
3
|
+
import '../chunks/index-1dIXhFYz.mjs';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@radix-ui/react-collection';
|
|
6
|
-
import '../chunks/index-
|
|
7
|
-
import '../chunks/index-
|
|
8
|
-
import '../chunks/index-
|
|
9
|
-
import '../chunks/index-
|
|
10
|
-
import '../chunks/index-
|
|
6
|
+
import '../chunks/index-P_DA76lP.mjs';
|
|
7
|
+
import '../chunks/index-A9sCB-kz.mjs';
|
|
8
|
+
import '../chunks/index-BTbETlk3.mjs';
|
|
9
|
+
import '../chunks/index-B_RTLXiw.mjs';
|
|
10
|
+
import '../chunks/index-CP5IMvF6.mjs';
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import '@radix-ui/react-slot';
|
|
13
|
-
import '../chunks/index-
|
|
14
|
-
import '../chunks/index-
|
|
15
|
-
import '../chunks/index-
|
|
16
|
-
import '../chunks/index-
|
|
17
|
-
import '../chunks/utils-
|
|
18
|
-
import '../chunks/bundle-mjs-
|
|
19
|
-
import '../chunks/chevron-down-
|
|
20
|
-
import '../chunks/createLucideIcon-
|
|
13
|
+
import '../chunks/index-B4otZW4q.mjs';
|
|
14
|
+
import '../chunks/index-D2ZM3eSk.mjs';
|
|
15
|
+
import '../chunks/index-uSC1GXit.mjs';
|
|
16
|
+
import '../chunks/index-CDMXBjs5.mjs';
|
|
17
|
+
import '../chunks/utils-Do8DRzMk.mjs';
|
|
18
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.mjs';
|
|
19
|
+
import '../chunks/chevron-down-1Bc_6jE2.mjs';
|
|
20
|
+
import '../chunks/createLucideIcon-CyJmURRz.mjs';
|
|
21
21
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-
|
|
4
|
-
import { c as createLucideIcon } from '../chunks/createLucideIcon-
|
|
5
|
-
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-
|
|
6
|
-
import { B as Badge } from '../chunks/badge-
|
|
7
|
-
import { B as Button } from '../chunks/button-
|
|
8
|
-
import '../chunks/bundle-mjs-
|
|
9
|
-
import '../chunks/dialog-
|
|
10
|
-
import '../chunks/index-
|
|
11
|
-
import '../chunks/index-
|
|
12
|
-
import '../chunks/index-
|
|
13
|
-
import '../chunks/index-
|
|
2
|
+
import { c as cn } from '../chunks/utils-Do8DRzMk.mjs';
|
|
3
|
+
import { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-DXIXFB-K.mjs';
|
|
4
|
+
import { c as createLucideIcon } from '../chunks/createLucideIcon-CyJmURRz.mjs';
|
|
5
|
+
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-CNQB0EvO.mjs';
|
|
6
|
+
import { B as Badge } from '../chunks/badge-Xgn2whYL.mjs';
|
|
7
|
+
import { B as Button } from '../chunks/button-w3YgbO4N.mjs';
|
|
8
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.mjs';
|
|
9
|
+
import '../chunks/dialog-gJyG_-ra.mjs';
|
|
10
|
+
import '../chunks/index-Ch7It_oz.mjs';
|
|
11
|
+
import '../chunks/index-A9sCB-kz.mjs';
|
|
12
|
+
import '../chunks/index-P_DA76lP.mjs';
|
|
13
|
+
import '../chunks/index-1dIXhFYz.mjs';
|
|
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-
|
|
15
|
+
import '../chunks/index-uSC1GXit.mjs';
|
|
16
|
+
import '../chunks/index-B_RTLXiw.mjs';
|
|
17
|
+
import '../chunks/index-BTbETlk3.mjs';
|
|
18
|
+
import '../chunks/index-D3raJhg-.mjs';
|
|
19
|
+
import '../chunks/index-CP5IMvF6.mjs';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import '@radix-ui/react-slot';
|
|
22
|
-
import '../chunks/index-
|
|
23
|
-
import '../chunks/index-
|
|
24
|
-
import '../chunks/tslib.es6-
|
|
25
|
-
import '../chunks/index-
|
|
26
|
-
import '../chunks/index-
|
|
27
|
-
import '../chunks/x-
|
|
28
|
-
import '../chunks/trash-2-
|
|
22
|
+
import '../chunks/index-xsn786mg.mjs';
|
|
23
|
+
import '../chunks/index-CVlrcY4U.mjs';
|
|
24
|
+
import '../chunks/tslib.es6-BIgLG7bA.mjs';
|
|
25
|
+
import '../chunks/index-BLX8fFuX.mjs';
|
|
26
|
+
import '../chunks/index-D2ZM3eSk.mjs';
|
|
27
|
+
import '../chunks/x-DrN_X0V4.mjs';
|
|
28
|
+
import '../chunks/trash-2-C4LWxYG0.mjs';
|
|
29
29
|
import '@radix-ui/react-collection';
|
|
30
|
-
import '../chunks/index-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/chevron-down-
|
|
30
|
+
import '../chunks/index-B4otZW4q.mjs';
|
|
31
|
+
import '../chunks/index-CDMXBjs5.mjs';
|
|
32
|
+
import '../chunks/chevron-down-1Bc_6jE2.mjs';
|
|
33
33
|
import 'class-variance-authority';
|
|
34
34
|
|
|
35
35
|
const __iconNode = [
|
package/dist/alert/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cva } from 'class-variance-authority';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { c as cn } from '../chunks/utils-
|
|
4
|
-
import '../chunks/bundle-mjs-
|
|
3
|
+
import { c as cn } from '../chunks/utils-Do8DRzMk.mjs';
|
|
4
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.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-1dIXhFYz.mjs';
|
|
3
|
+
import { u as useComposedRefs } from '../chunks/index-P_DA76lP.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-Ch7It_oz.mjs';
|
|
5
|
+
import { c as composeEventHandlers } from '../chunks/index-A9sCB-kz.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-Do8DRzMk.mjs';
|
|
9
|
+
import { b as buttonVariants } from '../chunks/button-w3YgbO4N.mjs';
|
|
10
|
+
import '../chunks/index-uSC1GXit.mjs';
|
|
11
|
+
import '../chunks/index-B_RTLXiw.mjs';
|
|
12
|
+
import '../chunks/index-BTbETlk3.mjs';
|
|
13
|
+
import '../chunks/index-D3raJhg-.mjs';
|
|
14
|
+
import '../chunks/index-CP5IMvF6.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-xsn786mg.mjs';
|
|
17
|
+
import '../chunks/index-CVlrcY4U.mjs';
|
|
18
|
+
import '../chunks/tslib.es6-BIgLG7bA.mjs';
|
|
19
|
+
import '../chunks/index-BLX8fFuX.mjs';
|
|
20
|
+
import '../chunks/index-D2ZM3eSk.mjs';
|
|
21
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.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-1dIXhFYz.mjs';
|
|
3
|
+
import { u as useCallbackRef } from '../chunks/index-xsn786mg.mjs';
|
|
4
|
+
import { u as useLayoutEffect2 } from '../chunks/index-B_RTLXiw.mjs';
|
|
5
|
+
import { P as Primitive } from '../chunks/index-CP5IMvF6.mjs';
|
|
6
|
+
import { r as requireShim } from '../chunks/index-DQB8cT4M.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-Do8DRzMk.mjs';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '@radix-ui/react-slot';
|
|
11
|
-
import '../chunks/bundle-mjs-
|
|
11
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.mjs';
|
|
12
12
|
|
|
13
13
|
var shimExports = requireShim();
|
|
14
14
|
|
package/dist/badge/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as Badge, b as badgeVariants } from '../chunks/badge-
|
|
1
|
+
export { B as Badge, b as badgeVariants } from '../chunks/badge-Xgn2whYL.mjs';
|
|
2
2
|
import '@radix-ui/react-slot';
|
|
3
3
|
import 'class-variance-authority';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../chunks/utils-
|
|
6
|
-
import '../chunks/bundle-mjs-
|
|
5
|
+
import '../chunks/utils-Do8DRzMk.mjs';
|
|
6
|
+
import '../chunks/bundle-mjs-Bsj-DC7F.mjs';
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|
package/dist/base/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ButtonProps } from '../button/index.js';
|
|
|
5
5
|
import { Calendar } from '../calendar/index.js';
|
|
6
6
|
import { Popover } from '../popover/index.js';
|
|
7
7
|
import { DateRange } from 'react-day-picker';
|
|
8
|
-
import { BadgeProps } from '../badge/index.js';
|
|
8
|
+
import { BadgeProps, BadgeVariants } from '../badge/index.js';
|
|
9
9
|
import 'class-variance-authority/types';
|
|
10
10
|
import 'class-variance-authority';
|
|
11
11
|
import '@radix-ui/react-popover';
|
|
@@ -145,5 +145,92 @@ interface TooltipIndicatorProps {
|
|
|
145
145
|
}
|
|
146
146
|
declare const TooltipIndicator: ({ children, className, classNameIcon }: TooltipIndicatorProps) => react_jsx_runtime.JSX.Element;
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
interface ConfirmSaveRowConfig {
|
|
149
|
+
title: string;
|
|
150
|
+
value: any;
|
|
151
|
+
type: "text" | "badge-limited" | "custom";
|
|
152
|
+
badge?: {
|
|
153
|
+
variant?: BadgeVariants;
|
|
154
|
+
subtle?: boolean;
|
|
155
|
+
maxVisible?: number;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
interface ConfirmSaveProps {
|
|
159
|
+
onSave: () => void;
|
|
160
|
+
disabled?: boolean;
|
|
161
|
+
dialogTitle?: string;
|
|
162
|
+
dialogDescription?: string;
|
|
163
|
+
actionTitle?: string;
|
|
164
|
+
children?: React__default.ReactNode;
|
|
165
|
+
rows?: ConfirmSaveRowConfig[];
|
|
166
|
+
}
|
|
167
|
+
declare function ConfirmSave({ onSave, disabled, dialogTitle, dialogDescription, actionTitle, children, rows, }: ConfirmSaveProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface BadgeListLimitedProps {
|
|
170
|
+
items: string[];
|
|
171
|
+
maxVisible?: number;
|
|
172
|
+
variant?: BadgeVariants;
|
|
173
|
+
subtle?: boolean;
|
|
174
|
+
tooltipItems?: string[];
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Componente que exibe uma lista de Badges com limite de itens visíveis.
|
|
178
|
+
* Se houver mais itens do que o limite, exibe um Badge adicional com "+N".
|
|
179
|
+
*
|
|
180
|
+
* @param items - Array de strings para exibir como Badges
|
|
181
|
+
* @param maxVisible - Número máximo de Badges visíveis (padrão: 3)
|
|
182
|
+
* @param variant - Variante do Badge (padrão: "default")
|
|
183
|
+
* @param subtle - Se o Badge deve ter estilo sutil (padrão: true)
|
|
184
|
+
* @param tooltipItems - Array de strings para exibir no tooltip (opcional). Se fornecido, exibe todos os itens no tooltip, cada um em uma linha.
|
|
185
|
+
*/
|
|
186
|
+
declare const BadgeListLimited: React__default.FC<BadgeListLimitedProps>;
|
|
187
|
+
|
|
188
|
+
type MenuItemConfig = {
|
|
189
|
+
value: string;
|
|
190
|
+
label: string;
|
|
191
|
+
path: string;
|
|
192
|
+
onClick?: () => void;
|
|
193
|
+
subItems?: {
|
|
194
|
+
label: string;
|
|
195
|
+
onClick: () => void;
|
|
196
|
+
}[];
|
|
197
|
+
/** Função customizada para determinar se o item está ativo */
|
|
198
|
+
isActive?: (pathname: string) => boolean;
|
|
199
|
+
};
|
|
200
|
+
interface GenericHeadingMenubarProps {
|
|
201
|
+
/** Configuração dos itens do menu */
|
|
202
|
+
menuItems: MenuItemConfig[];
|
|
203
|
+
/** Classes CSS adicionais para o container */
|
|
204
|
+
className?: string;
|
|
205
|
+
/** Conteúdo adicional a ser renderizado ao lado do menu */
|
|
206
|
+
children?: React__default.ReactNode;
|
|
207
|
+
/** Desabilita todos os itens do menu */
|
|
208
|
+
disabled?: boolean;
|
|
209
|
+
/** Função customizada para determinar se um item está ativo (fallback) */
|
|
210
|
+
defaultIsActive?: (menuValue: string, pathname: string) => boolean;
|
|
211
|
+
/** Caminho atual da rota (para highlight do ativo). Compatível com Next.js e React Router. */
|
|
212
|
+
currentPath?: string;
|
|
213
|
+
/** Função executada ao solicitar navegação (ex: router.push ou navigate). */
|
|
214
|
+
onNavigate?: (path: string) => void;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Componente genérico de menubar para navegação entre páginas.
|
|
218
|
+
* Ajustado para ser agnóstico de framework (Next.js ou React puro).
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```tsx
|
|
222
|
+
* // Exemplo com Next.js
|
|
223
|
+
* const router = useRouter();
|
|
224
|
+
* const pathname = usePathname();
|
|
225
|
+
*
|
|
226
|
+
* <GenericHeadingMenubar
|
|
227
|
+
* menuItems={menuItems}
|
|
228
|
+
* currentPath={pathname}
|
|
229
|
+
* onNavigate={(path) => router.push(path)}
|
|
230
|
+
* />
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
declare const GenericHeadingMenubar: React__default.FC<GenericHeadingMenubarProps>;
|
|
234
|
+
|
|
235
|
+
export { AutoComplete, BadgeListLimited, CalendarPopover, CalendarRange, ConfirmSave, DeleteConfirmationModal, GenericHeadingMenubar, Header, HoverBadge, TextWrap, TooltipIndicator, normalizeDate };
|
|
236
|
+
export type { CalendarPopoverProps, CalendarRangeProps, ConfirmSaveRowConfig, GenericHeadingMenubarProps, MenuItemConfig };
|
package/dist/base/index.mjs
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useMemo } from 'react';
|
|
2
|
-
import { c as cn } from '../chunks/utils-
|
|
3
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
4
|
-
import { B as Button } from '../chunks/button-
|
|
5
|
-
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-
|
|
6
|
-
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-
|
|
7
|
-
import { C as Check } from '../chunks/check-
|
|
8
|
-
import { t as tryParseDate, p as ptBR } from '../chunks/date-
|
|
9
|
-
import { L as LoaderCircle } from '../chunks/loader-circle-
|
|
10
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
11
|
-
import { C as Calendar } from '../chunks/calendar-
|
|
12
|
-
import { t as toDate, f as format } from '../chunks/format-
|
|
13
|
-
export { C as CalendarRange } from '../chunks/CalendarRange-
|
|
14
|
-
export { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-
|
|
15
|
-
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-
|
|
16
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
17
|
-
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-
|
|
18
|
-
import { B as Badge } from '../chunks/badge-
|
|
19
|
-
export { T as TooltipIndicator } from '../chunks/TooltipIndicator
|
|
20
|
-
import '../chunks/
|
|
21
|
-
import '../chunks/
|
|
22
|
-
import '../chunks/
|
|
2
|
+
import { c as cn } from '../chunks/utils-Do8DRzMk.mjs';
|
|
3
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-CoM9Bdak.mjs';
|
|
4
|
+
import { B as Button } from '../chunks/button-w3YgbO4N.mjs';
|
|
5
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-4ljYv7S3.mjs';
|
|
6
|
+
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-Bojrd8ur.mjs';
|
|
7
|
+
import { C as Check } from '../chunks/check-C7sYxkuc.mjs';
|
|
8
|
+
import { t as tryParseDate, p as ptBR } from '../chunks/date-DD27VBup.mjs';
|
|
9
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-CJThtpM8.mjs';
|
|
10
|
+
import { C as CalendarDays } from '../chunks/calendar-days-D2L6Zk6C.mjs';
|
|
11
|
+
import { C as Calendar } from '../chunks/calendar-C93_tf2a.mjs';
|
|
12
|
+
import { t as toDate, f as format } from '../chunks/format-D3vl8Nt0.mjs';
|
|
13
|
+
export { C as CalendarRange } from '../chunks/CalendarRange-CSSE2lnb.mjs';
|
|
14
|
+
export { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-DXIXFB-K.mjs';
|
|
15
|
+
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-CNQB0EvO.mjs';
|
|
16
|
+
import { t as twMerge } from '../chunks/bundle-mjs-Bsj-DC7F.mjs';
|
|
17
|
+
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-C9kr52Sn.mjs';
|
|
18
|
+
import { B as Badge } from '../chunks/badge-Xgn2whYL.mjs';
|
|
19
|
+
export { T as TooltipIndicator } from '../chunks/TooltipIndicator--2s1dkLz.mjs';
|
|
20
|
+
import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-DLElmpyh.mjs';
|
|
21
|
+
import { L as ListItem } from '../chunks/ListItem-DMi-MHsZ.mjs';
|
|
22
|
+
import { D as Dialog, i as DialogTrigger, b as DialogContent, e as DialogHeader, h as DialogTitle, c as DialogDescription, d as DialogFooter } from '../chunks/dialog-gJyG_-ra.mjs';
|
|
23
|
+
import { M as Menubar, b as MenubarMenu, c as MenubarTrigger, d as MenubarContent, h as MenubarItem } from '../chunks/menubar-IxCRcc3h.mjs';
|
|
24
|
+
import '../chunks/index-A9sCB-kz.mjs';
|
|
25
|
+
import '../chunks/index-P_DA76lP.mjs';
|
|
26
|
+
import '../chunks/index-1dIXhFYz.mjs';
|
|
23
27
|
import 'react/jsx-runtime';
|
|
24
|
-
import '../chunks/index-
|
|
25
|
-
import '../chunks/index-
|
|
28
|
+
import '../chunks/index-D3raJhg-.mjs';
|
|
29
|
+
import '../chunks/index-CP5IMvF6.mjs';
|
|
26
30
|
import 'react-dom';
|
|
27
31
|
import '@radix-ui/react-slot';
|
|
28
|
-
import '../chunks/index-
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/tslib.es6-
|
|
31
|
-
import '../chunks/index-
|
|
32
|
-
import '../chunks/index-
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/index-
|
|
36
|
-
import '../chunks/index-
|
|
37
|
-
import '../chunks/index-
|
|
32
|
+
import '../chunks/index-xsn786mg.mjs';
|
|
33
|
+
import '../chunks/index-CVlrcY4U.mjs';
|
|
34
|
+
import '../chunks/tslib.es6-BIgLG7bA.mjs';
|
|
35
|
+
import '../chunks/index-uSC1GXit.mjs';
|
|
36
|
+
import '../chunks/index-B_RTLXiw.mjs';
|
|
37
|
+
import '../chunks/index-GxLl6H4O.mjs';
|
|
38
|
+
import '../chunks/index-MMJu4clW.mjs';
|
|
39
|
+
import '../chunks/index-BLX8fFuX.mjs';
|
|
40
|
+
import '../chunks/index-D2ZM3eSk.mjs';
|
|
41
|
+
import '../chunks/index-BTbETlk3.mjs';
|
|
38
42
|
import 'class-variance-authority';
|
|
39
|
-
import '../chunks/createLucideIcon-
|
|
40
|
-
import '../chunks/index-
|
|
41
|
-
import '../chunks/
|
|
42
|
-
import '../chunks/
|
|
43
|
-
import '../chunks/chevron-
|
|
44
|
-
import '../chunks/
|
|
45
|
-
import '../chunks/chevron-down-C7AXdCbM.mjs';
|
|
46
|
-
import '../chunks/trash-2-uP7mRxLY.mjs';
|
|
43
|
+
import '../chunks/createLucideIcon-CyJmURRz.mjs';
|
|
44
|
+
import '../chunks/index-Ch7It_oz.mjs';
|
|
45
|
+
import '../chunks/chevron-left-DL-iJCZO.mjs';
|
|
46
|
+
import '../chunks/chevron-right-DzD-SgEG.mjs';
|
|
47
|
+
import '../chunks/chevron-down-1Bc_6jE2.mjs';
|
|
48
|
+
import '../chunks/trash-2-C4LWxYG0.mjs';
|
|
47
49
|
import '@radix-ui/react-collection';
|
|
48
|
-
import '../chunks/index-
|
|
49
|
-
import '../chunks/index-
|
|
50
|
-
import '../chunks/
|
|
51
|
-
import '../chunks/
|
|
50
|
+
import '../chunks/index-B4otZW4q.mjs';
|
|
51
|
+
import '../chunks/index-CDMXBjs5.mjs';
|
|
52
|
+
import '../chunks/index-BcETtjq7.mjs';
|
|
53
|
+
import '../chunks/x-DrN_X0V4.mjs';
|
|
54
|
+
import '../chunks/index-BnkQwtoI.mjs';
|
|
55
|
+
import '../chunks/index-LzZONhgk.mjs';
|
|
52
56
|
|
|
53
57
|
function c(e, u, c, i) {
|
|
54
58
|
var a = this, o = useRef(null), f = useRef(0), l = useRef(0), v = useRef(null), m = useRef([]), d = useRef(), g = useRef(), p = useRef(e), w = useRef(true);
|
|
@@ -315,5 +319,143 @@ const TextWrap = ({ children, className, ...props })=>{
|
|
|
315
319
|
}, children);
|
|
316
320
|
};
|
|
317
321
|
|
|
318
|
-
|
|
322
|
+
/**
|
|
323
|
+
* Componente que exibe uma lista de Badges com limite de itens visíveis.
|
|
324
|
+
* Se houver mais itens do que o limite, exibe um Badge adicional com "+N".
|
|
325
|
+
*
|
|
326
|
+
* @param items - Array de strings para exibir como Badges
|
|
327
|
+
* @param maxVisible - Número máximo de Badges visíveis (padrão: 3)
|
|
328
|
+
* @param variant - Variante do Badge (padrão: "default")
|
|
329
|
+
* @param subtle - Se o Badge deve ter estilo sutil (padrão: true)
|
|
330
|
+
* @param tooltipItems - Array de strings para exibir no tooltip (opcional). Se fornecido, exibe todos os itens no tooltip, cada um em uma linha.
|
|
331
|
+
*/ const BadgeListLimited = ({ items, maxVisible = 3, variant = "default", subtle = true, tooltipItems })=>{
|
|
332
|
+
const visibleItems = items.slice(0, maxVisible);
|
|
333
|
+
const remainingCount = items.length - maxVisible;
|
|
334
|
+
const hasMore = remainingCount > 0;
|
|
335
|
+
const hiddenItems = items.slice(maxVisible);
|
|
336
|
+
const itemsToShowInTooltip = tooltipItems || hiddenItems;
|
|
337
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
338
|
+
className: "flex flex-wrap items-center gap-2.5"
|
|
339
|
+
}, visibleItems.map((item)=>/*#__PURE__*/ React__default.createElement(Badge, {
|
|
340
|
+
key: item,
|
|
341
|
+
variant: variant,
|
|
342
|
+
subtle: subtle
|
|
343
|
+
}, item)), hasMore && (itemsToShowInTooltip.length > 0 ? /*#__PURE__*/ React__default.createElement(TooltipProvider, null, /*#__PURE__*/ React__default.createElement(Tooltip, null, /*#__PURE__*/ React__default.createElement(TooltipTrigger, {
|
|
344
|
+
asChild: true
|
|
345
|
+
}, /*#__PURE__*/ React__default.createElement(Badge, {
|
|
346
|
+
variant: variant,
|
|
347
|
+
subtle: subtle
|
|
348
|
+
}, "+", remainingCount)), /*#__PURE__*/ React__default.createElement(TooltipContent, null, /*#__PURE__*/ React__default.createElement("div", {
|
|
349
|
+
className: "flex flex-col gap-1 max-h-[200px] overflow-y-auto text-xs"
|
|
350
|
+
}, itemsToShowInTooltip.map((tooltipItem)=>/*#__PURE__*/ React__default.createElement("div", {
|
|
351
|
+
key: tooltipItem
|
|
352
|
+
}, tooltipItem)))))) : /*#__PURE__*/ React__default.createElement(Badge, {
|
|
353
|
+
variant: variant,
|
|
354
|
+
subtle: subtle
|
|
355
|
+
}, "+", remainingCount)));
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
function ConfirmSave({ onSave, disabled, dialogTitle = "Confirme os dados da predefinição", dialogDescription = "Verifique se os dados estão corretos antes de salvar. Você pode alterá-los a qualquer momento na lista de predefinições.", actionTitle = "Salvar predefinição", children, rows = [] }) {
|
|
359
|
+
const [open, setOpen] = React__default.useState(false);
|
|
360
|
+
return /*#__PURE__*/ React__default.createElement(Dialog, {
|
|
361
|
+
open: open,
|
|
362
|
+
onOpenChange: setOpen
|
|
363
|
+
}, /*#__PURE__*/ React__default.createElement(DialogTrigger, {
|
|
364
|
+
asChild: true
|
|
365
|
+
}, children), /*#__PURE__*/ React__default.createElement(DialogContent, {
|
|
366
|
+
className: "flex max-h-[90vh] max-w-116 flex-col"
|
|
367
|
+
}, /*#__PURE__*/ React__default.createElement(DialogHeader, {
|
|
368
|
+
className: "text-left"
|
|
369
|
+
}, /*#__PURE__*/ React__default.createElement(DialogTitle, {
|
|
370
|
+
className: "text-xl font-semibold"
|
|
371
|
+
}, dialogTitle), /*#__PURE__*/ React__default.createElement(DialogDescription, null, dialogDescription)), /*#__PURE__*/ React__default.createElement("div", {
|
|
372
|
+
"data-confirm-save-scrollable": true,
|
|
373
|
+
className: "flex min-h-0 max-w-full flex-1 flex-col overflow-y-auto py-2"
|
|
374
|
+
}, rows.map((row, index)=>{
|
|
375
|
+
if (!row.value || Array.isArray(row.value) && row.value.length === 0) ;
|
|
376
|
+
let content;
|
|
377
|
+
if (row.type === "badge-limited") {
|
|
378
|
+
const items = Array.isArray(row.value) ? row.value : [];
|
|
379
|
+
content = /*#__PURE__*/ React__default.createElement(BadgeListLimited, {
|
|
380
|
+
items: items,
|
|
381
|
+
variant: row.badge?.variant || "default",
|
|
382
|
+
subtle: row.badge?.subtle ?? true,
|
|
383
|
+
maxVisible: row.badge?.maxVisible
|
|
384
|
+
});
|
|
385
|
+
} else if (row.type === "custom") {
|
|
386
|
+
content = row.value;
|
|
387
|
+
} else {
|
|
388
|
+
content = row.value || "-";
|
|
389
|
+
}
|
|
390
|
+
return /*#__PURE__*/ React__default.createElement(ListItem, {
|
|
391
|
+
key: `${row.title}-${index}`,
|
|
392
|
+
title: row.title,
|
|
393
|
+
value: content,
|
|
394
|
+
className: "*:text-sm!"
|
|
395
|
+
});
|
|
396
|
+
})), /*#__PURE__*/ React__default.createElement(DialogFooter, null, /*#__PURE__*/ React__default.createElement(Button, {
|
|
397
|
+
disabled: disabled,
|
|
398
|
+
onClick: ()=>{
|
|
399
|
+
onSave();
|
|
400
|
+
setOpen(false);
|
|
401
|
+
}
|
|
402
|
+
}, actionTitle))));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Componente genérico de menubar para navegação entre páginas.
|
|
407
|
+
* Ajustado para ser agnóstico de framework (Next.js ou React puro).
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* ```tsx
|
|
411
|
+
* // Exemplo com Next.js
|
|
412
|
+
* const router = useRouter();
|
|
413
|
+
* const pathname = usePathname();
|
|
414
|
+
*
|
|
415
|
+
* <GenericHeadingMenubar
|
|
416
|
+
* menuItems={menuItems}
|
|
417
|
+
* currentPath={pathname}
|
|
418
|
+
* onNavigate={(path) => router.push(path)}
|
|
419
|
+
* />
|
|
420
|
+
* ```
|
|
421
|
+
*/ const GenericHeadingMenubar = ({ menuItems, className, children, disabled, defaultIsActive, currentPath = "", onNavigate })=>{
|
|
422
|
+
/**
|
|
423
|
+
* Determina se um item do menu está ativo
|
|
424
|
+
*/ const isMenuItemActive = (menu)=>{
|
|
425
|
+
// Se o item tem uma função customizada, usa ela
|
|
426
|
+
if (menu.isActive) {
|
|
427
|
+
return menu.isActive(currentPath);
|
|
428
|
+
}
|
|
429
|
+
// Se foi passada uma função padrão, usa ela
|
|
430
|
+
if (defaultIsActive) {
|
|
431
|
+
return defaultIsActive(menu.value, currentPath);
|
|
432
|
+
}
|
|
433
|
+
// Fallback: compara o pathname com o path do menu
|
|
434
|
+
return currentPath === menu.path;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Handler padrão de clique (navega para o path)
|
|
438
|
+
*/ const handleMenuClick = (menu)=>{
|
|
439
|
+
if (menu.onClick) {
|
|
440
|
+
menu.onClick();
|
|
441
|
+
} else if (onNavigate) {
|
|
442
|
+
onNavigate(menu.path);
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
446
|
+
className: cn("flex flex-wrap items-center justify-between", className)
|
|
447
|
+
}, /*#__PURE__*/ React__default.createElement(Menubar, null, menuItems.map((menu)=>/*#__PURE__*/ React__default.createElement(MenubarMenu, {
|
|
448
|
+
key: menu.value
|
|
449
|
+
}, /*#__PURE__*/ React__default.createElement(MenubarTrigger, {
|
|
450
|
+
onClick: ()=>handleMenuClick(menu),
|
|
451
|
+
className: cn("flex items-center gap-1 disabled:opacity-50 aria-disabled:opacity-50", isMenuItemActive(menu) && "bg-accent text-accent-foreground"),
|
|
452
|
+
disabled: disabled,
|
|
453
|
+
"aria-disabled": disabled
|
|
454
|
+
}, menu.label), menu.subItems && /*#__PURE__*/ React__default.createElement(MenubarContent, null, menu.subItems.map((item)=>/*#__PURE__*/ React__default.createElement(MenubarItem, {
|
|
455
|
+
key: item.label,
|
|
456
|
+
onClick: item.onClick
|
|
457
|
+
}, item.label)))))), children);
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
export { AutoComplete, BadgeListLimited, CalendarPopover, ConfirmSave, GenericHeadingMenubar, Header, HoverBadge, TextWrap, normalizeDate };
|
|
319
461
|
//# sourceMappingURL=index.mjs.map
|