ivt 0.6.9 → 0.7.1
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 +5 -44
- package/dist/alert/index.mjs.map +1 -1
- package/dist/alert-dialog/index.mjs +17 -17
- package/dist/aspect-ratio/index.mjs +1 -1
- package/dist/auto-complete-multi-select/index.d.ts +4 -3
- package/dist/auto-complete-multi-select/index.mjs +34 -34
- package/dist/auto-complete-multi-select/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 +130 -3
- package/dist/base/index.mjs +240 -51
- 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-yEDYUjQD.mjs → CalendarRange-BCcF9etO.mjs} +8 -8
- package/dist/chunks/{CalendarRange-yEDYUjQD.mjs.map → CalendarRange-BCcF9etO.mjs.map} +1 -1
- package/dist/chunks/{ComboboxField-ILa8OaOB.mjs → ComboboxField-C8LG3Dfr.mjs} +9 -9
- package/dist/chunks/{ComboboxField-ILa8OaOB.mjs.map → ComboboxField-C8LG3Dfr.mjs.map} +1 -1
- package/dist/chunks/{Container-DIxGDpnK.mjs → Container-DGNhxyRJ.mjs} +2 -2
- package/dist/chunks/{Container-DIxGDpnK.mjs.map → Container-DGNhxyRJ.mjs.map} +1 -1
- package/dist/chunks/{DeleteConfirmationModal-Chw9qtJ5.mjs → DeleteConfirmationModal-CjXlfOWx.mjs} +6 -6
- package/dist/chunks/DeleteConfirmationModal-CjXlfOWx.mjs.map +1 -0
- package/dist/chunks/{ListItem-Cmc5KRwa.mjs → ListItem-D8UYYQVp.mjs} +4 -4
- package/dist/chunks/{ListItem-Cmc5KRwa.mjs.map → ListItem-D8UYYQVp.mjs.map} +1 -1
- package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs → TooltipIndicator-DgBUQgOI.mjs} +5 -5
- package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs.map → TooltipIndicator-DgBUQgOI.mjs.map} +1 -1
- package/dist/chunks/{_commonjsHelpers-BB7msia9.mjs → _commonjsHelpers-9sDwrKIv.mjs} +1 -1
- package/dist/chunks/_commonjsHelpers-9sDwrKIv.mjs.map +1 -0
- package/dist/chunks/{accordion-CEM9oHG4.mjs → accordion-130n2E9C.mjs} +11 -11
- package/dist/chunks/{accordion-CEM9oHG4.mjs.map → accordion-130n2E9C.mjs.map} +1 -1
- package/dist/chunks/alert-BONxY3hS.mjs +44 -0
- package/dist/chunks/alert-BONxY3hS.mjs.map +1 -0
- package/dist/chunks/{badge-Bq7g6DlG.mjs → badge-rV4HbE_R.mjs} +2 -2
- package/dist/chunks/{badge-Bq7g6DlG.mjs.map → badge-rV4HbE_R.mjs.map} +1 -1
- package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs → bundle-mjs-BYcyWisL.mjs} +1 -1
- package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs.map → bundle-mjs-BYcyWisL.mjs.map} +1 -1
- package/dist/chunks/{button-C0ijXnnF.mjs → button-Co_1yLv6.mjs} +2 -2
- package/dist/chunks/{button-C0ijXnnF.mjs.map → button-Co_1yLv6.mjs.map} +1 -1
- package/dist/chunks/{calendar-days-Bvb62uyh.mjs → calendar-days-D8ft1Hpj.mjs} +2 -2
- package/dist/chunks/{calendar-days-Bvb62uyh.mjs.map → calendar-days-D8ft1Hpj.mjs.map} +1 -1
- package/dist/chunks/{calendar-DZgstGv7.mjs → calendar-olAv9AH7.mjs} +7 -7
- package/dist/chunks/{calendar-DZgstGv7.mjs.map → calendar-olAv9AH7.mjs.map} +1 -1
- package/dist/chunks/{card-BQVVUjMb.mjs → card-C_2pshaz.mjs} +2 -2
- package/dist/chunks/{card-BQVVUjMb.mjs.map → card-C_2pshaz.mjs.map} +1 -1
- package/dist/chunks/{check-DduIDKAH.mjs → check-BBGTedl-.mjs} +2 -2
- package/dist/chunks/{check-DduIDKAH.mjs.map → check-BBGTedl-.mjs.map} +1 -1
- package/dist/chunks/{checkbox-CWK1-JLs.mjs → checkbox-D9LLByPZ.mjs} +11 -11
- package/dist/chunks/{checkbox-CWK1-JLs.mjs.map → checkbox-D9LLByPZ.mjs.map} +1 -1
- package/dist/chunks/{chevron-down-C8lGEIzE.mjs → chevron-down-DNXEgdv9.mjs} +2 -2
- package/dist/chunks/{chevron-down-C8lGEIzE.mjs.map → chevron-down-DNXEgdv9.mjs.map} +1 -1
- package/dist/chunks/{chevron-left-Ca4MIUps.mjs → chevron-left-D7OzIyKL.mjs} +2 -2
- package/dist/chunks/{chevron-left-Ca4MIUps.mjs.map → chevron-left-D7OzIyKL.mjs.map} +1 -1
- package/dist/chunks/{chevron-right-D8jyu1Ce.mjs → chevron-right-mC6NR8jW.mjs} +2 -2
- package/dist/chunks/{chevron-right-D8jyu1Ce.mjs.map → chevron-right-mC6NR8jW.mjs.map} +1 -1
- package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs → chevrons-up-down-BFiJwHit.mjs} +2 -2
- package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs.map → chevrons-up-down-BFiJwHit.mjs.map} +1 -1
- package/dist/chunks/{command-CTTEi-Tw.mjs → command-IckfUQsK.mjs} +8 -8
- package/dist/chunks/{command-CTTEi-Tw.mjs.map → command-IckfUQsK.mjs.map} +1 -1
- package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs → createLucideIcon-DLrNgMqk.mjs} +1 -1
- package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs.map → createLucideIcon-DLrNgMqk.mjs.map} +1 -1
- package/dist/chunks/{date-Nk-MIRuv.mjs → date-bAe2UaSj.mjs} +2 -2
- package/dist/chunks/{date-Nk-MIRuv.mjs.map → date-bAe2UaSj.mjs.map} +1 -1
- package/dist/chunks/{dialog-DsCgCf_e.mjs → dialog-BkF50Tmo.mjs} +4 -4
- package/dist/chunks/{dialog-DsCgCf_e.mjs.map → dialog-BkF50Tmo.mjs.map} +1 -1
- package/dist/chunks/{ellipsis-CETjPDAu.mjs → ellipsis-xV1ovGxI.mjs} +2 -2
- package/dist/chunks/{ellipsis-CETjPDAu.mjs.map → ellipsis-xV1ovGxI.mjs.map} +1 -1
- package/dist/chunks/{form-Cu6WYy_F.mjs → form-0eamcSZm.mjs} +3 -3
- package/dist/chunks/{form-Cu6WYy_F.mjs.map → form-0eamcSZm.mjs.map} +1 -1
- package/dist/chunks/{format-Dy5xvA9f.mjs → format-Cn5wls3k.mjs} +1 -1
- package/dist/chunks/{format-Dy5xvA9f.mjs.map → format-Cn5wls3k.mjs.map} +1 -1
- package/dist/chunks/{format-numbers-Cv0AFOA0.mjs → format-numbers-BMHnFGse.mjs} +1 -1
- package/dist/chunks/{format-numbers-Cv0AFOA0.mjs.map → format-numbers-BMHnFGse.mjs.map} +1 -1
- package/dist/chunks/{hover-card-DftgNnGK.mjs → hover-card-CodWi0dK.mjs} +11 -11
- package/dist/chunks/{hover-card-DftgNnGK.mjs.map → hover-card-CodWi0dK.mjs.map} +1 -1
- package/dist/chunks/{index-BI2MxMeC.mjs → index-1tQVI0Jh.mjs} +1 -1
- package/dist/chunks/{index-BI2MxMeC.mjs.map → index-1tQVI0Jh.mjs.map} +1 -1
- package/dist/chunks/{index-DZlAt5Up.mjs → index-An4yBrAZ.mjs} +2 -2
- package/dist/chunks/{index-DZlAt5Up.mjs.map → index-An4yBrAZ.mjs.map} +1 -1
- package/dist/chunks/{index-sGgLIg5I.mjs → index-BRYGnp2Q.mjs} +11 -11
- package/dist/chunks/{index-sGgLIg5I.mjs.map → index-BRYGnp2Q.mjs.map} +1 -1
- package/dist/chunks/{index-qUT5iV25.mjs → index-BTe1rv5Z.mjs} +3 -3
- package/dist/chunks/{index-qUT5iV25.mjs.map → index-BTe1rv5Z.mjs.map} +1 -1
- package/dist/chunks/{index-D56BYstR.mjs → index-Bl-WJHvp.mjs} +1 -1
- package/dist/chunks/{index-D56BYstR.mjs.map → index-Bl-WJHvp.mjs.map} +1 -1
- package/dist/chunks/{index-DE-b60L0.mjs → index-BsG_UW8k.mjs} +9 -9
- package/dist/chunks/{index-DE-b60L0.mjs.map → index-BsG_UW8k.mjs.map} +1 -1
- package/dist/chunks/{index-2anlJbdb.mjs → index-C6s8KI_8.mjs} +3 -3
- package/dist/chunks/{index-2anlJbdb.mjs.map → index-C6s8KI_8.mjs.map} +1 -1
- package/dist/chunks/{index-BsB-iQGw.mjs → index-CGLjQEjG.mjs} +1 -1
- package/dist/chunks/{index-BsB-iQGw.mjs.map → index-CGLjQEjG.mjs.map} +1 -1
- package/dist/chunks/{index-CQt6sjXa.mjs → index-Cbm3--wc.mjs} +1 -1
- package/dist/chunks/{index-CQt6sjXa.mjs.map → index-Cbm3--wc.mjs.map} +1 -1
- package/dist/chunks/{index-Ccz8nL5M.mjs → index-D4FMFHi9.mjs} +2 -2
- package/dist/chunks/{index-Ccz8nL5M.mjs.map → index-D4FMFHi9.mjs.map} +1 -1
- package/dist/chunks/{index-B0Kdhw0d.mjs → index-DKOlG3mh.mjs} +1 -1
- package/dist/chunks/{index-B0Kdhw0d.mjs.map → index-DKOlG3mh.mjs.map} +1 -1
- package/dist/chunks/{index-vtBqBO3S.mjs → index-DT8WgpCS.mjs} +1 -1
- package/dist/chunks/{index-vtBqBO3S.mjs.map → index-DT8WgpCS.mjs.map} +1 -1
- package/dist/chunks/{index-CKARIk9k.mjs → index-DUpRrJTH.mjs} +5 -5
- package/dist/chunks/{index-CKARIk9k.mjs.map → index-DUpRrJTH.mjs.map} +1 -1
- package/dist/chunks/{index-Dot3Y4xv.mjs → index-DWJ_2Xiy.mjs} +9 -9
- package/dist/chunks/{index-Dot3Y4xv.mjs.map → index-DWJ_2Xiy.mjs.map} +1 -1
- package/dist/chunks/{index-CUXpXuiX.mjs → index-DWmrjIYv.mjs} +15 -15
- package/dist/chunks/{index-CUXpXuiX.mjs.map → index-DWmrjIYv.mjs.map} +1 -1
- package/dist/chunks/{index-L4pU8dCQ.mjs → index-DgKlJYZP.mjs} +1 -1
- package/dist/chunks/{index-L4pU8dCQ.mjs.map → index-DgKlJYZP.mjs.map} +1 -1
- package/dist/chunks/{index-DAZztiKf.mjs → index-DmY774z-.mjs} +2 -2
- package/dist/chunks/{index-DAZztiKf.mjs.map → index-DmY774z-.mjs.map} +1 -1
- package/dist/chunks/{index-Coakg78O.mjs → index-DvCZGX3H.mjs} +5 -5
- package/dist/chunks/{index-Coakg78O.mjs.map → index-DvCZGX3H.mjs.map} +1 -1
- package/dist/chunks/{index-PrEP6495.mjs → index-FL3PKmOS.mjs} +1 -1
- package/dist/chunks/{index-PrEP6495.mjs.map → index-FL3PKmOS.mjs.map} +1 -1
- package/dist/chunks/{index-DpP8NjDG.mjs → index-GgS4otoq.mjs} +1 -1
- package/dist/chunks/{index-DpP8NjDG.mjs.map → index-GgS4otoq.mjs.map} +1 -1
- package/dist/chunks/{index-n9Y_kDgY.mjs → index-aLIsJMgt.mjs} +7 -7
- package/dist/chunks/{index-n9Y_kDgY.mjs.map → index-aLIsJMgt.mjs.map} +1 -1
- package/dist/chunks/{index-aXbRFMsA.mjs → index-korrz_kD.mjs} +1 -1
- package/dist/chunks/{index-aXbRFMsA.mjs.map → index-korrz_kD.mjs.map} +1 -1
- package/dist/chunks/{index-BEh8ek6-.mjs → index-tkRL9Tft.mjs} +2 -2
- package/dist/chunks/{index-BEh8ek6-.mjs.map → index-tkRL9Tft.mjs.map} +1 -1
- package/dist/chunks/{index.module-dysOJ0dE.mjs → index.module-1-Lm1QYF.mjs} +1 -1
- package/dist/chunks/{index.module-dysOJ0dE.mjs.map → index.module-1-Lm1QYF.mjs.map} +1 -1
- package/dist/chunks/{input-tGWBpkwj.mjs → input-BEkvMaQp.mjs} +2 -2
- package/dist/chunks/{input-tGWBpkwj.mjs.map → input-BEkvMaQp.mjs.map} +1 -1
- package/dist/chunks/{label-BrO1sQ0r.mjs → label-atj6gghV.mjs} +3 -3
- package/dist/chunks/{label-BrO1sQ0r.mjs.map → label-atj6gghV.mjs.map} +1 -1
- package/dist/chunks/{loader-circle-4xW2b9O-.mjs → loader-circle-BX1p6hn_.mjs} +2 -2
- package/dist/chunks/{loader-circle-4xW2b9O-.mjs.map → loader-circle-BX1p6hn_.mjs.map} +1 -1
- package/dist/chunks/{menubar-IydEfpqR.mjs → menubar-JE1m8rYJ.mjs} +13 -13
- package/dist/chunks/{menubar-IydEfpqR.mjs.map → menubar-JE1m8rYJ.mjs.map} +1 -1
- package/dist/chunks/{multi-select-okHPP4N6.mjs → multi-select-dor8SMeS.mjs} +13 -13
- package/dist/chunks/{multi-select-okHPP4N6.mjs.map → multi-select-dor8SMeS.mjs.map} +1 -1
- package/dist/chunks/{pagination-DMKpWpJG.mjs → pagination-BaIJ0fC9.mjs} +6 -6
- package/dist/chunks/{pagination-DMKpWpJG.mjs.map → pagination-BaIJ0fC9.mjs.map} +1 -1
- package/dist/chunks/{popover-BW3SktUO.mjs → popover-CsYW0nDm.mjs} +13 -13
- package/dist/chunks/{popover-BW3SktUO.mjs.map → popover-CsYW0nDm.mjs.map} +1 -1
- package/dist/chunks/{progress-DUEVgFeg.mjs → progress-CwHuXUFj.mjs} +4 -4
- package/dist/chunks/{progress-DUEVgFeg.mjs.map → progress-CwHuXUFj.mjs.map} +1 -1
- package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs → react-number-format.es-DSc45Db0.mjs} +1 -1
- package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs.map → react-number-format.es-DSc45Db0.mjs.map} +1 -1
- package/dist/chunks/{scroll-area-D9LK7L4w.mjs → scroll-area-Cr1Iu-Ot.mjs} +11 -11
- package/dist/chunks/{scroll-area-D9LK7L4w.mjs.map → scroll-area-Cr1Iu-Ot.mjs.map} +1 -1
- package/dist/chunks/{select-PRQ81N8j.mjs → select-C4BJbkha.mjs} +5 -5
- package/dist/chunks/{select-PRQ81N8j.mjs.map → select-C4BJbkha.mjs.map} +1 -1
- package/dist/chunks/{separator-D7Q4xZTz.mjs → separator-StpvupIv.mjs} +3 -3
- package/dist/chunks/{separator-D7Q4xZTz.mjs.map → separator-StpvupIv.mjs.map} +1 -1
- package/dist/chunks/{sheet-C-yvf0_u.mjs → sheet-BVDcVKli.mjs} +4 -4
- package/dist/chunks/{sheet-C-yvf0_u.mjs.map → sheet-BVDcVKli.mjs.map} +1 -1
- package/dist/chunks/{skeleton-Bz6KDspc.mjs → skeleton-CIulxewv.mjs} +2 -2
- package/dist/chunks/{skeleton-Bz6KDspc.mjs.map → skeleton-CIulxewv.mjs.map} +1 -1
- package/dist/chunks/{sortable-BD-qat9h.mjs → sortable-CjI-AdZJ.mjs} +3 -3
- package/dist/chunks/{sortable-BD-qat9h.mjs.map → sortable-CjI-AdZJ.mjs.map} +1 -1
- package/dist/chunks/{table-CcTvqI8M.mjs → table-Bxaxu8Lu.mjs} +2 -2
- package/dist/chunks/{table-CcTvqI8M.mjs.map → table-Bxaxu8Lu.mjs.map} +1 -1
- package/dist/chunks/tabs-BY4r8p4T.mjs +187 -0
- package/dist/chunks/tabs-BY4r8p4T.mjs.map +1 -0
- package/dist/chunks/{textarea-DQisQdiY.mjs → textarea-C6wEktNT.mjs} +2 -2
- package/dist/chunks/{textarea-DQisQdiY.mjs.map → textarea-C6wEktNT.mjs.map} +1 -1
- package/dist/chunks/{toggle-DAuL1B39.mjs → toggle-BKUFNwmI.mjs} +5 -5
- package/dist/chunks/{toggle-DAuL1B39.mjs.map → toggle-BKUFNwmI.mjs.map} +1 -1
- package/dist/chunks/{tooltip-DF-75FfQ.mjs → tooltip-BTEGteNb.mjs} +13 -13
- package/dist/chunks/{tooltip-DF-75FfQ.mjs.map → tooltip-BTEGteNb.mjs.map} +1 -1
- package/dist/chunks/{trash-2-C-nU3lmr.mjs → trash-2-D6lkozey.mjs} +2 -2
- package/dist/chunks/{trash-2-C-nU3lmr.mjs.map → trash-2-D6lkozey.mjs.map} +1 -1
- package/dist/chunks/{triangle-alert-MhLQqOiF.mjs → triangle-alert-D5Cr5kOo.mjs} +2 -2
- package/dist/chunks/{triangle-alert-MhLQqOiF.mjs.map → triangle-alert-D5Cr5kOo.mjs.map} +1 -1
- package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs → tslib.es6-DXUeYCTx.mjs} +1 -1
- package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs.map → tslib.es6-DXUeYCTx.mjs.map} +1 -1
- package/dist/chunks/{utils-CwDmCEge.mjs → utils-05LlW3Cl.mjs} +2 -2
- package/dist/chunks/{utils-CwDmCEge.mjs.map → utils-05LlW3Cl.mjs.map} +1 -1
- package/dist/chunks/{wand-sparkles-7XfX5Sd6.mjs → wand-sparkles-BIbU0kjG.mjs} +2 -2
- package/dist/chunks/{wand-sparkles-7XfX5Sd6.mjs.map → wand-sparkles-BIbU0kjG.mjs.map} +1 -1
- package/dist/chunks/{x-Dpaoz6yn.mjs → x-BOMmTgZd.mjs} +2 -2
- package/dist/chunks/{x-Dpaoz6yn.mjs.map → x-BOMmTgZd.mjs.map} +1 -1
- package/dist/collapsible/index.mjs +9 -9
- package/dist/combobox/index.d.ts +5 -1
- package/dist/combobox/index.mjs +29 -27
- 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 -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 +19 -19
- package/dist/editable-table/index.mjs +20 -20
- 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.mjs +23 -23
- package/dist/menubar/index.mjs +24 -24
- package/dist/multi-input-list/index.d.ts +7 -0
- package/dist/multi-input-list/index.mjs +178 -74
- package/dist/multi-input-list/index.mjs.map +1 -1
- package/dist/multi-select/index.mjs +33 -33
- package/dist/navigation-menu/index.mjs +17 -17
- package/dist/pagination/index.mjs +8 -8
- package/dist/popover/index.mjs +18 -18
- package/dist/progress/index.mjs +5 -5
- package/dist/radio-group/index.mjs +17 -17
- package/dist/resizable/index.mjs +3 -3
- package/dist/scroll-area/index.mjs +12 -12
- package/dist/select/index.mjs +6 -6
- package/dist/separator/index.mjs +4 -4
- package/dist/shared/index.mjs +5 -5
- package/dist/sheet/index.mjs +19 -19
- package/dist/sidebar/index.mjs +27 -27
- package/dist/skeleton/index.mjs +3 -3
- package/dist/skeleton-component/index.mjs +4 -4
- package/dist/slider/index.mjs +12 -12
- package/dist/sortable/index.mjs +4 -4
- package/dist/spinner/index.mjs +4 -4
- package/dist/switch/index.mjs +10 -10
- package/dist/table/index.mjs +3 -3
- package/dist/table-filter/index.d.ts +7 -1
- package/dist/table-filter/index.mjs +95 -65
- package/dist/table-filter/index.mjs.map +1 -1
- package/dist/tabs/index.mjs +16 -190
- package/dist/tabs/index.mjs.map +1 -1
- 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 +470 -470
- package/dist/chunks/DeleteConfirmationModal-Chw9qtJ5.mjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-BB7msia9.mjs.map +0 -1
package/dist/base/index.d.ts
CHANGED
|
@@ -119,6 +119,28 @@ interface CalendarRangeProps extends Omit<React.ComponentProps<typeof Calendar>,
|
|
|
119
119
|
}
|
|
120
120
|
declare function CalendarRange({ value, onChange, placeholder, id, buttonProps, popoverProps, popoverContentClassName, className, disabled, ...props }: CalendarRangeProps): react_jsx_runtime.JSX.Element;
|
|
121
121
|
|
|
122
|
+
interface CollapsibleHelpProps {
|
|
123
|
+
children?: React__default.ReactNode;
|
|
124
|
+
content: React__default.ReactNode;
|
|
125
|
+
title?: string;
|
|
126
|
+
className?: string;
|
|
127
|
+
label?: React__default.ReactNode;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A simpler CollapsibleHelp component that uses a Popover for the help content.
|
|
131
|
+
* It manages its own open state internally.
|
|
132
|
+
* The trigger is provided as 'children', and the content to show is passed as the 'content' prop.
|
|
133
|
+
*
|
|
134
|
+
* Usage:
|
|
135
|
+
* <CollapsibleHelp
|
|
136
|
+
* content={<p>Help text goes here...</p>}
|
|
137
|
+
* title="Help Section"
|
|
138
|
+
* >
|
|
139
|
+
* <button>Toggle Help</button> // This is your custom trigger
|
|
140
|
+
* </CollapsibleHelp>
|
|
141
|
+
*/
|
|
142
|
+
declare function CollapsibleHelp({ children, content, title, className, label, }: CollapsibleHelpProps): react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
122
144
|
interface ConfirmSaveRowConfig {
|
|
123
145
|
title: string;
|
|
124
146
|
value: any;
|
|
@@ -149,8 +171,16 @@ interface DeleteConfirmationModalProps {
|
|
|
149
171
|
cancelText?: string;
|
|
150
172
|
disabled?: boolean;
|
|
151
173
|
children?: React__default.ReactNode;
|
|
174
|
+
/**
|
|
175
|
+
* Ícone a ser exibido no botão de confirmação.
|
|
176
|
+
* Se não fornecido, usa Trash2Icon por padrão.
|
|
177
|
+
* Se for null, não exibe ícone.
|
|
178
|
+
*/
|
|
179
|
+
confirmIcon?: React__default.ComponentType<{
|
|
180
|
+
className?: string;
|
|
181
|
+
}> | null;
|
|
152
182
|
}
|
|
153
|
-
declare function DeleteConfirmationModal({ onConfirm, title, description, confirmText, cancelText, disabled, children, }: DeleteConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function DeleteConfirmationModal({ onConfirm, title, description, confirmText, cancelText, disabled, children, confirmIcon, }: DeleteConfirmationModalProps): react_jsx_runtime.JSX.Element;
|
|
154
184
|
|
|
155
185
|
type MenuItemConfig = {
|
|
156
186
|
value: string;
|
|
@@ -199,6 +229,71 @@ interface GenericHeadingMenubarProps {
|
|
|
199
229
|
*/
|
|
200
230
|
declare const GenericHeadingMenubar: React__default.FC<GenericHeadingMenubarProps>;
|
|
201
231
|
|
|
232
|
+
interface ColumnConfig<T> {
|
|
233
|
+
header: string;
|
|
234
|
+
cell: (item: T) => React__default.ReactNode;
|
|
235
|
+
className?: string;
|
|
236
|
+
}
|
|
237
|
+
interface GenericTableProps<T> {
|
|
238
|
+
data: T[];
|
|
239
|
+
columns: ColumnConfig<T>[];
|
|
240
|
+
renderSeparator?: (index: number) => React__default.ReactNode;
|
|
241
|
+
emptyMessage?: string;
|
|
242
|
+
className?: string;
|
|
243
|
+
keyExtractor?: (item: T, index: number) => string | number;
|
|
244
|
+
}
|
|
245
|
+
declare function GenericTable<T>({ data, columns, renderSeparator, emptyMessage, className, keyExtractor, }: GenericTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
246
|
+
|
|
247
|
+
type TabConfig = {
|
|
248
|
+
value: string;
|
|
249
|
+
label: string;
|
|
250
|
+
path?: string;
|
|
251
|
+
match?: string;
|
|
252
|
+
disabled?: boolean;
|
|
253
|
+
className?: string;
|
|
254
|
+
};
|
|
255
|
+
interface GenericTabsProps {
|
|
256
|
+
/**
|
|
257
|
+
* Array of tab configurations.
|
|
258
|
+
*/
|
|
259
|
+
tabs: TabConfig[];
|
|
260
|
+
/**
|
|
261
|
+
* Disables all tabs if true.
|
|
262
|
+
*/
|
|
263
|
+
isLoading?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Custom class name for the container.
|
|
266
|
+
*/
|
|
267
|
+
className?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Current path string used for matching active tab.
|
|
270
|
+
* Pass browser URL or current router path here to enable auto-highlighting.
|
|
271
|
+
* Makes the component compatible with any router (Next.js, React Router, etc).
|
|
272
|
+
*/
|
|
273
|
+
currentPath?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Callback handler for navigation.
|
|
276
|
+
* Called with the tab's path when a tab is clicked.
|
|
277
|
+
* Use this to trigger your router's navigation (e.g. router.push, navigate(), etc).
|
|
278
|
+
*/
|
|
279
|
+
onNavigate?: (path: string) => void;
|
|
280
|
+
/**
|
|
281
|
+
* Optional override for active tab value.
|
|
282
|
+
* If provided, the component acts as controlled for the active state display.
|
|
283
|
+
*/
|
|
284
|
+
value?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Custom class name for all tab triggers.
|
|
287
|
+
*/
|
|
288
|
+
triggerClassName?: string;
|
|
289
|
+
/**
|
|
290
|
+
* If true, sets the tab width to fit content on small screens (sm:min-w-fit),
|
|
291
|
+
* overriding the default fixed width.
|
|
292
|
+
*/
|
|
293
|
+
widthCurrent?: boolean;
|
|
294
|
+
}
|
|
295
|
+
declare const GenericTabs: React__default.FC<GenericTabsProps>;
|
|
296
|
+
|
|
202
297
|
interface HeaderProps {
|
|
203
298
|
title: string;
|
|
204
299
|
description: string;
|
|
@@ -221,6 +316,38 @@ interface HoverBadgeProps {
|
|
|
221
316
|
}
|
|
222
317
|
declare const HoverBadge: React__default.FC<HoverBadgeProps>;
|
|
223
318
|
|
|
319
|
+
interface RuleFilterBuilderProps {
|
|
320
|
+
fields: any[];
|
|
321
|
+
onRemove: (index: number) => void;
|
|
322
|
+
onAdd: () => void;
|
|
323
|
+
maxBlocks?: number;
|
|
324
|
+
isPending?: boolean;
|
|
325
|
+
instructionContent?: React__default.ReactNode;
|
|
326
|
+
renderConnector?: (index: number) => React__default.ReactNode;
|
|
327
|
+
renderItem: (index: number) => React__default.ReactNode;
|
|
328
|
+
}
|
|
329
|
+
declare function RuleFilterBuilder({ fields, onRemove, onAdd, maxBlocks, isPending, instructionContent, renderConnector, renderItem, }: RuleFilterBuilderProps): react_jsx_runtime.JSX.Element;
|
|
330
|
+
|
|
331
|
+
interface StepNavigatorProps {
|
|
332
|
+
/** Índice atual do passo */
|
|
333
|
+
currentIndex: number;
|
|
334
|
+
/** Total de passos */
|
|
335
|
+
totalSteps: number;
|
|
336
|
+
/** Ação ao clicar em "Anterior" */
|
|
337
|
+
onPrev: () => void;
|
|
338
|
+
/** Ação ao clicar em "Próximo" */
|
|
339
|
+
onNext: () => void;
|
|
340
|
+
/** Desabilita os botões (ex: loading) */
|
|
341
|
+
disabled?: boolean;
|
|
342
|
+
/** Personalização opcional dos rótulos */
|
|
343
|
+
prevLabel?: string;
|
|
344
|
+
nextLabel?: string;
|
|
345
|
+
/** Controla se deve ocultar os botões ao chegar nas extremidades */
|
|
346
|
+
hideEdgeButtons?: boolean;
|
|
347
|
+
className?: string;
|
|
348
|
+
}
|
|
349
|
+
declare const StepNavigator: React__default.FC<StepNavigatorProps>;
|
|
350
|
+
|
|
224
351
|
interface TextWrapProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
225
352
|
children: React__default.ReactNode;
|
|
226
353
|
}
|
|
@@ -233,5 +360,5 @@ interface TooltipIndicatorProps {
|
|
|
233
360
|
}
|
|
234
361
|
declare const TooltipIndicator: ({ children, className, classNameIcon }: TooltipIndicatorProps) => react_jsx_runtime.JSX.Element;
|
|
235
362
|
|
|
236
|
-
export { AutoComplete, BadgeListLimited, CalendarPopover, CalendarRange, ConfirmSave, DeleteConfirmationModal, GenericHeadingMenubar, Header, HoverBadge, TextWrap, TooltipIndicator, normalizeDate };
|
|
237
|
-
export type { CalendarPopoverProps, CalendarRangeProps, ConfirmSaveRowConfig, GenericHeadingMenubarProps, MenuItemConfig };
|
|
363
|
+
export { AutoComplete, BadgeListLimited, CalendarPopover, CalendarRange, CollapsibleHelp, ConfirmSave, DeleteConfirmationModal, GenericHeadingMenubar, GenericTable, GenericTabs, Header, HoverBadge, RuleFilterBuilder, StepNavigator, TextWrap, TooltipIndicator, normalizeDate };
|
|
364
|
+
export type { CalendarPopoverProps, CalendarRangeProps, ColumnConfig, ConfirmSaveRowConfig, DeleteConfirmationModalProps, GenericHeadingMenubarProps, GenericTableProps, GenericTabsProps, MenuItemConfig, TabConfig };
|
package/dist/base/index.mjs
CHANGED
|
@@ -1,59 +1,65 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { c } from '../chunks/index.module-
|
|
3
|
-
import { c as cn } from '../chunks/utils-
|
|
4
|
-
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-
|
|
5
|
-
import { B as Button } from '../chunks/button-
|
|
6
|
-
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-
|
|
7
|
-
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-
|
|
8
|
-
import { C as Check } from '../chunks/check-
|
|
9
|
-
import { B as Badge } from '../chunks/badge-
|
|
10
|
-
import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-
|
|
11
|
-
import { t as tryParseDate, p as ptBR } from '../chunks/date-
|
|
12
|
-
import { L as LoaderCircle } from '../chunks/loader-circle-
|
|
13
|
-
import { C as CalendarDays } from '../chunks/calendar-days-
|
|
14
|
-
import { C as Calendar } from '../chunks/calendar-
|
|
15
|
-
import { t as toDate, f as format } from '../chunks/format-
|
|
16
|
-
export { C as CalendarRange } from '../chunks/CalendarRange-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
export {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import '../chunks/
|
|
26
|
-
import '../chunks/
|
|
27
|
-
import '../chunks/
|
|
2
|
+
import { c } from '../chunks/index.module-1-Lm1QYF.mjs';
|
|
3
|
+
import { c as cn } from '../chunks/utils-05LlW3Cl.mjs';
|
|
4
|
+
import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-CsYW0nDm.mjs';
|
|
5
|
+
import { B as Button } from '../chunks/button-Co_1yLv6.mjs';
|
|
6
|
+
import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-BFiJwHit.mjs';
|
|
7
|
+
import { C as Command, b as CommandInput, d as CommandEmpty, c as CommandList, e as CommandGroup, f as CommandItem } from '../chunks/command-IckfUQsK.mjs';
|
|
8
|
+
import { C as Check } from '../chunks/check-BBGTedl-.mjs';
|
|
9
|
+
import { B as Badge } from '../chunks/badge-rV4HbE_R.mjs';
|
|
10
|
+
import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-BTEGteNb.mjs';
|
|
11
|
+
import { t as tryParseDate, p as ptBR } from '../chunks/date-bAe2UaSj.mjs';
|
|
12
|
+
import { L as LoaderCircle } from '../chunks/loader-circle-BX1p6hn_.mjs';
|
|
13
|
+
import { C as CalendarDays } from '../chunks/calendar-days-D8ft1Hpj.mjs';
|
|
14
|
+
import { C as Calendar } from '../chunks/calendar-olAv9AH7.mjs';
|
|
15
|
+
import { t as toDate, f as format } from '../chunks/format-Cn5wls3k.mjs';
|
|
16
|
+
export { C as CalendarRange } from '../chunks/CalendarRange-BCcF9etO.mjs';
|
|
17
|
+
import { A as Alert, a as AlertTitle, b as AlertDescription } from '../chunks/alert-BONxY3hS.mjs';
|
|
18
|
+
import { I as Info } from '../chunks/TooltipIndicator-DgBUQgOI.mjs';
|
|
19
|
+
export { T as TooltipIndicator } from '../chunks/TooltipIndicator-DgBUQgOI.mjs';
|
|
20
|
+
import { X } from '../chunks/x-BOMmTgZd.mjs';
|
|
21
|
+
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-BkF50Tmo.mjs';
|
|
22
|
+
import { L as ListItem } from '../chunks/ListItem-D8UYYQVp.mjs';
|
|
23
|
+
export { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-CjXlfOWx.mjs';
|
|
24
|
+
import { M as Menubar, b as MenubarMenu, c as MenubarTrigger, d as MenubarContent, h as MenubarItem } from '../chunks/menubar-JE1m8rYJ.mjs';
|
|
25
|
+
import { T as Table, a as TableHeader, e as TableRow, d as TableHead, b as TableBody, f as TableCell } from '../chunks/table-Bxaxu8Lu.mjs';
|
|
26
|
+
import { T as Tabs, a as TabsList, b as TabsTrigger } from '../chunks/tabs-BY4r8p4T.mjs';
|
|
27
|
+
import { S as ScrollArea, a as ScrollBar } from '../chunks/scroll-area-Cr1Iu-Ot.mjs';
|
|
28
|
+
import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-130n2E9C.mjs';
|
|
29
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BYcyWisL.mjs';
|
|
30
|
+
import { H as HoverCard, a as HoverCardTrigger, b as HoverCardContent } from '../chunks/hover-card-CodWi0dK.mjs';
|
|
31
|
+
import { C as ChevronLeft } from '../chunks/chevron-left-D7OzIyKL.mjs';
|
|
32
|
+
import { C as ChevronRight } from '../chunks/chevron-right-mC6NR8jW.mjs';
|
|
33
|
+
import '../chunks/index-Bl-WJHvp.mjs';
|
|
34
|
+
import '../chunks/index-1tQVI0Jh.mjs';
|
|
35
|
+
import '../chunks/index-DT8WgpCS.mjs';
|
|
28
36
|
import 'react/jsx-runtime';
|
|
29
|
-
import '../chunks/index-
|
|
30
|
-
import '../chunks/index-
|
|
37
|
+
import '../chunks/index-DUpRrJTH.mjs';
|
|
38
|
+
import '../chunks/index-DgKlJYZP.mjs';
|
|
31
39
|
import 'react-dom';
|
|
32
40
|
import '@radix-ui/react-slot';
|
|
33
|
-
import '../chunks/index-
|
|
34
|
-
import '../chunks/index-
|
|
35
|
-
import '../chunks/tslib.es6-
|
|
36
|
-
import '../chunks/index-
|
|
37
|
-
import '../chunks/index-
|
|
38
|
-
import '../chunks/index-
|
|
39
|
-
import '../chunks/index-
|
|
40
|
-
import '../chunks/index-
|
|
41
|
-
import '../chunks/index-
|
|
42
|
-
import '../chunks/index-
|
|
41
|
+
import '../chunks/index-Cbm3--wc.mjs';
|
|
42
|
+
import '../chunks/index-DvCZGX3H.mjs';
|
|
43
|
+
import '../chunks/tslib.es6-DXUeYCTx.mjs';
|
|
44
|
+
import '../chunks/index-tkRL9Tft.mjs';
|
|
45
|
+
import '../chunks/index-DKOlG3mh.mjs';
|
|
46
|
+
import '../chunks/index-aLIsJMgt.mjs';
|
|
47
|
+
import '../chunks/index-DmY774z-.mjs';
|
|
48
|
+
import '../chunks/index-BTe1rv5Z.mjs';
|
|
49
|
+
import '../chunks/index-C6s8KI_8.mjs';
|
|
50
|
+
import '../chunks/index-D4FMFHi9.mjs';
|
|
43
51
|
import 'class-variance-authority';
|
|
44
|
-
import '../chunks/createLucideIcon-
|
|
45
|
-
import '../chunks/index-
|
|
46
|
-
import '../chunks/index-
|
|
47
|
-
import '../chunks/chevron-
|
|
48
|
-
import '../chunks/
|
|
49
|
-
import '../chunks/chevron-down-C8lGEIzE.mjs';
|
|
50
|
-
import '../chunks/x-Dpaoz6yn.mjs';
|
|
51
|
-
import '../chunks/trash-2-C-nU3lmr.mjs';
|
|
52
|
+
import '../chunks/createLucideIcon-DLrNgMqk.mjs';
|
|
53
|
+
import '../chunks/index-BRYGnp2Q.mjs';
|
|
54
|
+
import '../chunks/index-An4yBrAZ.mjs';
|
|
55
|
+
import '../chunks/chevron-down-DNXEgdv9.mjs';
|
|
56
|
+
import '../chunks/trash-2-D6lkozey.mjs';
|
|
52
57
|
import '@radix-ui/react-collection';
|
|
53
|
-
import '../chunks/index-
|
|
54
|
-
import '../chunks/index-
|
|
55
|
-
import '../chunks/index-
|
|
56
|
-
import '../chunks/index-
|
|
58
|
+
import '../chunks/index-CGLjQEjG.mjs';
|
|
59
|
+
import '../chunks/index-DWmrjIYv.mjs';
|
|
60
|
+
import '../chunks/index-BsG_UW8k.mjs';
|
|
61
|
+
import '../chunks/index-GgS4otoq.mjs';
|
|
62
|
+
import '../chunks/index-DWJ_2Xiy.mjs';
|
|
57
63
|
|
|
58
64
|
function AutoComplete({ value, onChange, placeholder, searchPlaceholder, open, onOpenChange, disabled, messageEmpty = "Nenhum item encontrado.", fetchOptions, getOptionLabel, getOptionKey, onSelect, className }) {
|
|
59
65
|
const [options, setOptions] = React__default.useState([]);
|
|
@@ -244,6 +250,55 @@ const CalendarPopover = ({ date, setDate, placeholder = "Selecione uma data", id
|
|
|
244
250
|
})));
|
|
245
251
|
};
|
|
246
252
|
|
|
253
|
+
/**
|
|
254
|
+
* A simpler CollapsibleHelp component that uses a Popover for the help content.
|
|
255
|
+
* It manages its own open state internally.
|
|
256
|
+
* The trigger is provided as 'children', and the content to show is passed as the 'content' prop.
|
|
257
|
+
*
|
|
258
|
+
* Usage:
|
|
259
|
+
* <CollapsibleHelp
|
|
260
|
+
* content={<p>Help text goes here...</p>}
|
|
261
|
+
* title="Help Section"
|
|
262
|
+
* >
|
|
263
|
+
* <button>Toggle Help</button> // This is your custom trigger
|
|
264
|
+
* </CollapsibleHelp>
|
|
265
|
+
*/ function CollapsibleHelp({ children, content, title = "Ajuda", className, label }) {
|
|
266
|
+
const [open, setOpen] = React__default.useState(false);
|
|
267
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
268
|
+
className: cn("flex items-start justify-between gap-2", className)
|
|
269
|
+
}, label && /*#__PURE__*/ React__default.createElement("div", {
|
|
270
|
+
className: "flex-1"
|
|
271
|
+
}, label), /*#__PURE__*/ React__default.createElement(Popover, {
|
|
272
|
+
open: open,
|
|
273
|
+
onOpenChange: setOpen
|
|
274
|
+
}, /*#__PURE__*/ React__default.createElement(PopoverTrigger, {
|
|
275
|
+
asChild: true
|
|
276
|
+
}, children), /*#__PURE__*/ React__default.createElement(PopoverContent, {
|
|
277
|
+
className: "w-100 p-0 border-none bg-transparent shadow-none",
|
|
278
|
+
align: "end",
|
|
279
|
+
side: "bottom"
|
|
280
|
+
}, /*#__PURE__*/ React__default.createElement(Alert, {
|
|
281
|
+
className: "relative border-primary/20 shadow-md bg-popover"
|
|
282
|
+
}, /*#__PURE__*/ React__default.createElement(Info, {
|
|
283
|
+
className: "h-4 w-4 text-primary"
|
|
284
|
+
}), /*#__PURE__*/ React__default.createElement(AlertTitle, {
|
|
285
|
+
className: "text-primary font-medium"
|
|
286
|
+
}, title), /*#__PURE__*/ React__default.createElement(Button, {
|
|
287
|
+
variant: "ghost",
|
|
288
|
+
size: "sm",
|
|
289
|
+
type: "button",
|
|
290
|
+
className: "absolute top-4 right-4 h-6 w-6 p-0 text-muted-foreground hover:text-foreground",
|
|
291
|
+
onClick: (e)=>{
|
|
292
|
+
e.stopPropagation();
|
|
293
|
+
setOpen(false);
|
|
294
|
+
}
|
|
295
|
+
}, /*#__PURE__*/ React__default.createElement(X, {
|
|
296
|
+
className: "h-4 w-4"
|
|
297
|
+
})), /*#__PURE__*/ React__default.createElement(AlertDescription, {
|
|
298
|
+
className: "mt-2 text-sm space-y-3 text-foreground"
|
|
299
|
+
}, content)))));
|
|
300
|
+
}
|
|
301
|
+
|
|
247
302
|
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 = [], actionVariant = "default" }) {
|
|
248
303
|
const [open, setOpen] = React__default.useState(false);
|
|
249
304
|
return /*#__PURE__*/ React__default.createElement(Dialog, {
|
|
@@ -348,6 +403,61 @@ function ConfirmSave({ onSave, disabled, dialogTitle = "Confirme os dados da pre
|
|
|
348
403
|
}, item.label)))))), children);
|
|
349
404
|
};
|
|
350
405
|
|
|
406
|
+
function GenericTable({ data, columns, renderSeparator, emptyMessage = "Nenhum dado encontrado.", className, keyExtractor }) {
|
|
407
|
+
if (!data || data.length === 0) {
|
|
408
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
409
|
+
className: "text-muted-foreground"
|
|
410
|
+
}, emptyMessage);
|
|
411
|
+
}
|
|
412
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
413
|
+
className: `rounded-md border ${className ?? ""}`
|
|
414
|
+
}, /*#__PURE__*/ React__default.createElement(Table, null, /*#__PURE__*/ React__default.createElement(TableHeader, null, /*#__PURE__*/ React__default.createElement(TableRow, null, columns.map((col, index)=>/*#__PURE__*/ React__default.createElement(TableHead, {
|
|
415
|
+
key: index.toString()
|
|
416
|
+
}, col.header)))), /*#__PURE__*/ React__default.createElement(TableBody, null, data.map((item, index)=>{
|
|
417
|
+
const rowKey = keyExtractor ? keyExtractor(item, index) : index;
|
|
418
|
+
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, {
|
|
419
|
+
key: rowKey
|
|
420
|
+
}, /*#__PURE__*/ React__default.createElement(TableRow, null, columns.map((col, colIndex)=>/*#__PURE__*/ React__default.createElement(TableCell, {
|
|
421
|
+
key: colIndex.toString(),
|
|
422
|
+
className: col.className
|
|
423
|
+
}, col.cell(item)))), renderSeparator?.(index));
|
|
424
|
+
}))));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const GenericTabs = ({ tabs, isLoading = false, className, currentPath = "", onNavigate, value: controlledValue, triggerClassName, widthCurrent })=>{
|
|
428
|
+
const activeTab = controlledValue ?? tabs.filter((t)=>{
|
|
429
|
+
const matchString = t.match ?? t.path;
|
|
430
|
+
return matchString && currentPath.includes(matchString);
|
|
431
|
+
}).sort((a, b)=>{
|
|
432
|
+
const lenA = (a.match ?? a.path ?? "").length;
|
|
433
|
+
const lenB = (b.match ?? b.path ?? "").length;
|
|
434
|
+
return lenB - lenA;
|
|
435
|
+
})[0]?.value ?? tabs[0]?.value;
|
|
436
|
+
const handleNavigate = (tab)=>{
|
|
437
|
+
if (tab.disabled || isLoading) return;
|
|
438
|
+
if (onNavigate && tab.path) {
|
|
439
|
+
onNavigate(tab.path);
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
return /*#__PURE__*/ React__default.createElement(Tabs, {
|
|
443
|
+
value: activeTab,
|
|
444
|
+
className: className
|
|
445
|
+
}, /*#__PURE__*/ React__default.createElement(ScrollArea, {
|
|
446
|
+
className: "w-full"
|
|
447
|
+
}, /*#__PURE__*/ React__default.createElement(TabsList, {
|
|
448
|
+
className: "flex h-full w-full justify-start gap-2"
|
|
449
|
+
}, tabs.map((tab)=>/*#__PURE__*/ React__default.createElement(TabsTrigger, {
|
|
450
|
+
key: tab.value,
|
|
451
|
+
value: tab.value,
|
|
452
|
+
className: cn("min-w-fit sm:min-w-[180px] w-fit", triggerClassName, widthCurrent && "sm:min-w-fit", tab.className),
|
|
453
|
+
disabled: isLoading || tab.disabled,
|
|
454
|
+
onClick: ()=>handleNavigate(tab),
|
|
455
|
+
type: "button"
|
|
456
|
+
}, tab.label))), /*#__PURE__*/ React__default.createElement(ScrollBar, {
|
|
457
|
+
orientation: "horizontal"
|
|
458
|
+
})));
|
|
459
|
+
};
|
|
460
|
+
|
|
351
461
|
const Header = ({ title, description, className, classNameDescription, children, defaultValue = "item-1", defaultOpen = false, menu })=>{
|
|
352
462
|
const [value, setValue] = React__default.useState(defaultOpen ? defaultValue : "");
|
|
353
463
|
const isOpen = value === defaultValue;
|
|
@@ -389,6 +499,85 @@ const HoverBadge = ({ title, description, variant, className, showTitleInDescrip
|
|
|
389
499
|
}, description)));
|
|
390
500
|
};
|
|
391
501
|
|
|
502
|
+
function RuleFilterBuilder({ fields, onRemove, onAdd, maxBlocks = 3, isPending = false, instructionContent, renderConnector, renderItem }) {
|
|
503
|
+
// Ensure at least one block exists
|
|
504
|
+
React__default.useEffect(()=>{
|
|
505
|
+
if (fields.length === 0) {
|
|
506
|
+
onAdd();
|
|
507
|
+
}
|
|
508
|
+
}, [
|
|
509
|
+
fields.length,
|
|
510
|
+
onAdd
|
|
511
|
+
]);
|
|
512
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
513
|
+
className: "space-y-6"
|
|
514
|
+
}, instructionContent && /*#__PURE__*/ React__default.createElement("div", {
|
|
515
|
+
className: "bg-muted/50 p-4 rounded-md border text-sm text-muted-foreground mb-4"
|
|
516
|
+
}, instructionContent), fields.map((fieldItem, index)=>/*#__PURE__*/ React__default.createElement("div", {
|
|
517
|
+
key: fieldItem.id,
|
|
518
|
+
className: "relative"
|
|
519
|
+
}, index > 0 && /*#__PURE__*/ React__default.createElement("div", {
|
|
520
|
+
className: "relative py-4 flex items-center justify-center"
|
|
521
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
522
|
+
className: "absolute inset-0 flex items-center"
|
|
523
|
+
}, /*#__PURE__*/ React__default.createElement("span", {
|
|
524
|
+
className: "w-full border-t border-border"
|
|
525
|
+
})), /*#__PURE__*/ React__default.createElement("div", {
|
|
526
|
+
className: "relative bg-background px-4"
|
|
527
|
+
}, renderConnector ? renderConnector(index) : null)), /*#__PURE__*/ React__default.createElement("div", {
|
|
528
|
+
className: "border rounded-lg bg-card text-card-foreground shadow-sm overflow-hidden"
|
|
529
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
530
|
+
className: "bg-muted/30 px-4 py-3 border-b flex items-center justify-between"
|
|
531
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
532
|
+
className: "font-semibold text-sm flex items-center gap-2"
|
|
533
|
+
}, /*#__PURE__*/ React__default.createElement("span", {
|
|
534
|
+
className: "bg-primary/10 text-primary w-6 h-6 flex items-center justify-center rounded-full text-xs"
|
|
535
|
+
}, index + 1), "Bloco de Seleção ", index + 1), index > 0 && /*#__PURE__*/ React__default.createElement(Button, {
|
|
536
|
+
type: "button",
|
|
537
|
+
variant: "ghost",
|
|
538
|
+
size: "sm",
|
|
539
|
+
onClick: ()=>onRemove(index),
|
|
540
|
+
className: "hover:bg-destructive hover:text-destructive-foreground h-8 w-8 p-0",
|
|
541
|
+
disabled: isPending
|
|
542
|
+
}, /*#__PURE__*/ React__default.createElement(X, {
|
|
543
|
+
className: "h-4 w-4"
|
|
544
|
+
}))), /*#__PURE__*/ React__default.createElement("div", {
|
|
545
|
+
className: "p-4 grid grid-cols-1 md:grid-cols-2 gap-4"
|
|
546
|
+
}, renderItem(index))))), fields.length < maxBlocks && /*#__PURE__*/ React__default.createElement(Button, {
|
|
547
|
+
type: "button",
|
|
548
|
+
variant: "outline",
|
|
549
|
+
className: "w-full border-dashed",
|
|
550
|
+
onClick: onAdd,
|
|
551
|
+
disabled: isPending
|
|
552
|
+
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
553
|
+
className: "flex items-center gap-2"
|
|
554
|
+
}, /*#__PURE__*/ React__default.createElement("span", {
|
|
555
|
+
className: "font-semibold text-lg"
|
|
556
|
+
}, "+"), "Adicionar Bloco de Seleção (Restam ", maxBlocks - fields.length, ")")));
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
const StepNavigator = ({ currentIndex, totalSteps, onPrev, onNext, disabled = false, prevLabel = "Anterior", nextLabel = "Próximo", hideEdgeButtons = true, className })=>{
|
|
560
|
+
const isFirst = currentIndex === 0;
|
|
561
|
+
const isLast = currentIndex === totalSteps - 1;
|
|
562
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
|
563
|
+
className: cn("flex items-center gap-2", className)
|
|
564
|
+
}, (!hideEdgeButtons || !isFirst) && /*#__PURE__*/ React__default.createElement(Button, {
|
|
565
|
+
type: "button",
|
|
566
|
+
variant: "secondary",
|
|
567
|
+
onClick: onPrev,
|
|
568
|
+
disabled: disabled || isFirst
|
|
569
|
+
}, /*#__PURE__*/ React__default.createElement(ChevronLeft, {
|
|
570
|
+
className: "size-4"
|
|
571
|
+
}), prevLabel), (!hideEdgeButtons || !isLast) && /*#__PURE__*/ React__default.createElement(Button, {
|
|
572
|
+
type: "button",
|
|
573
|
+
variant: "secondary",
|
|
574
|
+
onClick: onNext,
|
|
575
|
+
disabled: disabled || isLast
|
|
576
|
+
}, nextLabel, /*#__PURE__*/ React__default.createElement(ChevronRight, {
|
|
577
|
+
className: "size-4"
|
|
578
|
+
})));
|
|
579
|
+
};
|
|
580
|
+
|
|
392
581
|
const TextWrap = ({ children, className, ...props })=>{
|
|
393
582
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
394
583
|
className: cn("line-clamp-4 w-full max-w-60 min-w-60 text-wrap break-words 2xl:max-w-[80%]", className),
|
|
@@ -396,5 +585,5 @@ const TextWrap = ({ children, className, ...props })=>{
|
|
|
396
585
|
}, children);
|
|
397
586
|
};
|
|
398
587
|
|
|
399
|
-
export { AutoComplete, BadgeListLimited, CalendarPopover, ConfirmSave, GenericHeadingMenubar, Header, HoverBadge, TextWrap, normalizeDate };
|
|
588
|
+
export { AutoComplete, BadgeListLimited, CalendarPopover, CollapsibleHelp, ConfirmSave, GenericHeadingMenubar, GenericTable, GenericTabs, Header, HoverBadge, RuleFilterBuilder, StepNavigator, TextWrap, normalizeDate };
|
|
400
589
|
//# sourceMappingURL=index.mjs.map
|