@povio/ui 6.0.0-rc.12 → 6.0.0-rc.14
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/README.md +523 -42
- package/dist/{Accordion-ORBin0EZ.js → Accordion-BNHpv7Zj.js} +42 -42
- package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
- package/dist/Alert-xHGPLUpt.d.ts +36 -0
- package/dist/AlertDialog-CKcUZ6l9.d.ts +70 -0
- package/dist/Autocomplete-CkWTSFoj.d.ts +123 -0
- package/dist/Autocomplete-CrNDRxvg.js +319 -0
- package/dist/Badge-B25YEMEw.d.ts +67 -0
- package/dist/BottomSheet-CtcPZG82.d.ts +65 -0
- package/dist/{BottomSheet-CGipksM_.js → BottomSheet-tUXH3NjS.js} +9 -9
- package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
- package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +6 -3
- package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-D8WXqOLN.js} +36 -20
- package/dist/{Button-BaODzvZd.js → Button-C1Jv1Plk.js} +1 -1
- package/dist/{Button-0SswSdDg.d.ts → Button-DDuk3hJ3.d.ts} +2 -2
- package/dist/{Button-C1YB5dOw.js → Button-DF6sbTuF.js} +3 -7
- package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-BYJz1JkH.js} +12 -20
- package/dist/ButtonBase-Bn_FT89h.d.ts +47 -0
- package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
- package/dist/{Calendar-yaQubCWK.js → Calendar-DdneUEhM.js} +71 -35
- package/dist/{Calendar.lazy-DcVss9Bk.js → Calendar.lazy-BY0kLoYH.js} +7 -7
- package/dist/Checkbox-Bwl6MA-V.d.ts +49 -0
- package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-E2bns_n0.js} +40 -14
- package/dist/CheckboxCheckmark-Beu8T1g9.js +42 -0
- package/dist/CheckboxGroup-0rzsn-bA.d.ts +52 -0
- package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-C7epIEpW.js} +75 -35
- package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
- package/dist/ColumnListContent-Dzze5R7T.js +133 -0
- package/dist/DatePicker-B70SCKfT.d.ts +80 -0
- package/dist/{DatePicker-bme8zGBo.js → DatePicker-BU-34fCk.js} +117 -46
- package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
- package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-CMEJmZSQ.js} +41 -30
- package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-D0RtqeBM.js} +90 -162
- package/dist/DateRangePicker-jovxcWGk.d.ts +102 -0
- package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-Cbdt76CL.js} +94 -40
- package/dist/DateTimePicker-Cfi3ruFy.d.ts +83 -0
- package/dist/Dialog-BWNQjIgo.d.ts +66 -0
- package/dist/{Dialog-C9H9_BmK.js → Dialog-Bpwr1nuy.js} +15 -15
- package/dist/{Dialog-DN5703sy.js → Dialog-ebjPH22i.js} +23 -19
- package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-D_aym2zh.js} +3 -3
- package/dist/Drawer-o018RqIt.d.ts +42 -0
- package/dist/DropdownMenu-3V-G7fZ7.d.ts +51 -0
- package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-C4WitobV.js} +33 -21
- package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-BM7659Sk.js} +14 -8
- package/dist/{FileInput-BUwtAF2-.js → FileInput-Bc_E1M1X.js} +76 -81
- package/dist/FileInput-CWRW7OzZ.d.ts +61 -0
- package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
- package/dist/FileUpload-DVnp9xxv.d.ts +181 -0
- package/dist/FileUpload-Dk6ZmgWF.js +1105 -0
- package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
- package/dist/FormField-BgiWLGjf.d.ts +70 -0
- package/dist/{FormField-dduTMkNH.js → FormField-DOZ7eXjA.js} +11 -11
- package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
- package/dist/FormFieldHeaderTooltip-DW9sqJWl.js +22 -0
- package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
- package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
- package/dist/IconButton-Bjjf5cQL.d.ts +24 -0
- package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
- package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
- package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
- package/dist/{Input-CG5LQ0zs.js → Input-CvYyjMWx.js} +95 -60
- package/dist/Input-lppNS8wM.d.ts +56 -0
- package/dist/{InputContent-Fx2E4UXl.js → InputContent-B5YjsLDE.js} +15 -13
- package/dist/InputContent-Bgalf6R1.d.ts +39 -0
- package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
- package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
- package/dist/Link-HJ4y-xiW.d.ts +15 -0
- package/dist/{ListBox-DhR5kojP.js → ListBox-Ck-B1Jae.js} +9 -9
- package/dist/{Modal-DcLWF9cB.js → Modal-xT-Wz5GH.js} +3 -3
- package/dist/{NumberField-DxuikBcr.js → NumberField-BXLzNb2T.js} +92 -63
- package/dist/NumberField-Q-4y3jpb.d.ts +41 -0
- package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
- package/dist/{NumberRangeInput-8bOjNEnS.js → NumberRangeInput-BBzZCC54.js} +153 -102
- package/dist/NumberRangeInput-DuWOdSdU.d.ts +89 -0
- package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
- package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-jVaC3Z9L.d.ts} +6 -5
- package/dist/PasswordInput-DtTnGHRD.d.ts +16 -0
- package/dist/{PasswordInput.bound-Dfq5c3JQ.js → PasswordInput-U0QhNsMp.js} +6 -6
- package/dist/Popover-ClCEOP3e.d.ts +51 -0
- package/dist/Progress-DlXY0dv_.js +180 -0
- package/dist/Progress-VkkXbIh7.d.ts +26 -0
- package/dist/ProgressBar-mpNpV7ow.js +46 -0
- package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-BPPJyA1s.js} +72 -32
- package/dist/RadioGroup-BbcrP56w.d.ts +52 -0
- package/dist/{RangeCalendar-DT63UD8K.js → RangeCalendar-DIVjIl0T.js} +12 -10
- package/dist/Select-D1qIWZCv.d.ts +248 -0
- package/dist/{Select-BM8PNrjC.js → Select-DlbVDCz8.js} +452 -191
- package/dist/{SelectListBox-BFSZxDSi.js → SelectListBox-CCr5YY86.js} +55 -43
- package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
- package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
- package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-CIpFJGOa.js} +283 -366
- package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +31 -17
- package/dist/Slider-CLViwkE1.d.ts +57 -0
- package/dist/{Slider-DCsCCPFx.js → Slider-_RsgBJcg.js} +72 -15
- package/dist/Spinner-GMEauCHv.d.ts +13 -0
- package/dist/SplitButton-BdP4xjFQ.d.ts +25 -0
- package/dist/{Stepper-Dyhxp0Tl.js → Stepper-D4z7JNsD.js} +116 -88
- package/dist/Stepper-DBb0qfla.d.ts +49 -0
- package/dist/{Switch-BfpSMMpv.js → Switch-Bi3_bUw1.js} +56 -14
- package/dist/Switch-DCxONL2Q.d.ts +42 -0
- package/dist/TableDnd-CG1yOlxh.js +238 -0
- package/dist/TableDragHandle-CXApnuUm.js +51 -0
- package/dist/{TabsFilters-DybNturW.js → TabsFilters-BPogry73.js} +46 -35
- package/dist/TabsFilters-CPfGBODw.d.ts +59 -0
- package/dist/Tag-xhcJOv_X.d.ts +26 -0
- package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
- package/dist/TextArea-BYX9Kk_v.d.ts +33 -0
- package/dist/{TextArea-Blsip3ZC.js → TextArea-CuJS3-Nv.js} +62 -35
- package/dist/{TimePicker-4hV5zbgd.js → TimePicker-ByfjqkLp.js} +120 -56
- package/dist/TimePicker-UTo9C6gz.d.ts +64 -0
- package/dist/TimePickerForm-CaIHR0PV.js +532 -0
- package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-tr7Zxahc.js} +4 -4
- package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-BX8o7ECO.d.ts} +2 -2
- package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
- package/dist/ToggleGroup-18c-FZ_r.js +500 -0
- package/dist/ToggleGroup-UazUtgU1.d.ts +95 -0
- package/dist/{Tooltip-DRB6lo0U.js → Tooltip-Dl3sf8fq.js} +5 -5
- package/dist/Tooltip-FcJ29dhq.d.ts +33 -0
- package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
- package/dist/{TooltipWrapper-BSY31JMc.js → TooltipWrapper-bvNpM6ku.js} +6 -6
- package/dist/{Typography-DJojwiXV.d.ts → Typography-auHWN282.d.ts} +5 -1
- package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-C9mE8CMf.js} +23 -24
- package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
- package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
- package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
- package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
- package/dist/columnConfig.cva-CERwSZRN.js +29 -0
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +2 -2
- package/dist/components/alert-dialog.js +174 -128
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +17 -15
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +166 -81
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +25 -21
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +4 -41
- package/dist/components/date-range-picker.js +4 -2
- package/dist/components/date-range-presets.d.ts +2 -0
- package/dist/components/date-range-presets.js +3 -0
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +16 -80
- package/dist/components/dropdown-menu.d.ts +2 -3
- package/dist/components/dropdown-menu.js +2 -3
- package/dist/components/file-input.d.ts +2 -2
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload.d.ts +2 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +3 -2
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +22 -25
- package/dist/components/icon-slot.d.ts +1 -2
- package/dist/components/icon-slot.js +2 -2
- package/dist/components/input-frame.d.ts +6 -10
- package/dist/components/input-frame.js +31 -28
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +2 -2
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +5 -5
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +1 -22
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +105 -87
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +71 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +15 -4
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +3 -3
- package/dist/components/style-definitions.js +62 -20
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +50 -64
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +3 -3
- package/dist/components/toast.js +4 -3
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.d.ts +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/use-toast.d.ts +2 -2
- package/dist/components/use-toast.js +1 -41
- package/dist/config/component-configuration.d.ts +2 -2
- package/dist/config/component-configuration.js +53 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +3 -3
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-router.d.ts +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/confirmation.context-C_-uADGJ.js +93 -0
- package/dist/confirmation.context-DkWyR2aT.d.ts +32 -0
- package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
- package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
- package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
- package/dist/{dist-DEZzXa0W.js → dist-CP6vV22I.js} +68 -39
- package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
- package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
- package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
- package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
- package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
- package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
- package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-SrF6v406.js} +3 -3
- package/dist/form-field-C735uXsi.d.ts +1 -0
- package/dist/form.binding-Brdjq2yr.js +161 -0
- package/dist/form.binding-DSXB2AOD.d.ts +127 -0
- package/dist/form.types-a2WVJDQX.d.ts +43 -0
- package/dist/formReset-CnZl_yze.js +35 -0
- package/dist/hints-B09_WDhL.d.ts +17 -0
- package/dist/hooks/use-async-list.d.ts +1 -1
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-breakpoint.d.ts +3 -0
- package/dist/hooks/use-breakpoint.js +2 -0
- package/dist/hooks/use-filters.d.ts +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/{i18n-D8vXIoiq.js → i18n-DaIHnR2n.js} +123 -9
- package/dist/{i18n-DM-PUcxQ.d.ts → i18n-xXkHgzet.d.ts} +124 -4
- package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
- package/dist/{import-C7W0Wv2r.js → import-Cz8NlFqm.js} +40 -16
- package/dist/index.d.ts +66 -84
- package/dist/index.js +57 -92
- package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
- package/dist/inputLayout-CIVpuUBq.js +7 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
- package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
- package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
- package/dist/link.context-BxVK2yQ5.d.ts +20 -0
- package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
- package/dist/link.cva-ZhpQz3P0.d.ts +2277 -0
- package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
- package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
- package/dist/rich-text-editor.d.ts +44 -2
- package/dist/rich-text-editor.js +733 -1
- package/dist/router.context-B6j_M4cN.js +151 -0
- package/dist/router.context-CSd9JYQ4.d.ts +33 -0
- package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
- package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
- package/dist/sidebar.cva-BgxTCejU.js +150 -0
- package/dist/spinner.cva-j4kGmIWC.js +17 -0
- package/dist/{staticDateTimeSegments-CVuAhDDl.js → staticDateTimeSegments-BgUrcqXD.js} +379 -94
- package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
- package/dist/tableCells.cva-Br0_kgRM.js +18 -0
- package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
- package/dist/tableVirtualStore-whSmFzTV.js +67 -0
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/table-context.d.ts +2 -0
- package/dist/tanstack/table-context.js +2 -0
- package/dist/tanstack/table-types.d.ts +55 -0
- package/dist/tanstack/table.d.ts +5 -3
- package/dist/tanstack/table.js +3 -2
- package/dist/tanstack-JB8VmS9j.js +73 -0
- package/dist/tanstack-cQOW9-Q2.d.ts +165 -0
- package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
- package/dist/tanstack-table-M1M26UQJ.js +5299 -0
- package/dist/tanstack.d.ts +66 -84
- package/dist/tanstack.js +57 -92
- package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-DusQwZw-.js} +13 -9
- package/dist/toast.runtime-ZN5q4T9X.js +25 -0
- package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
- package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-NWmBJ2Hc.js} +72 -10
- package/dist/uiConfig.context-ykH4E2js.d.ts +19 -0
- package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
- package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
- package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-DkIjhlce.js} +142 -37
- package/dist/useAsyncList-F-328rtE.d.ts +25 -0
- package/dist/useAutoFocus-K-bfNxa2.js +16 -0
- package/dist/useBreakpoint-BPrZNuNl.d.ts +9 -0
- package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-DtYSRweq.js} +6 -2
- package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
- package/dist/useDebounceCallback-C7YKfjXW.js +96 -0
- package/dist/useFilters-CybBXUAA.js +217 -0
- package/dist/useFilters-DrfBFNLw.d.ts +57 -0
- package/dist/useFormAutosave-BzCGqFqi.js +419 -0
- package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
- package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
- package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-npiqOvyB.js} +107 -6
- package/dist/useRemoveButton-zhlA1Pbc.js +98 -0
- package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
- package/dist/useResolveDateRangePreset-k_h_XJBG.js +26 -0
- package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-4pieApqz.js} +1 -1
- package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
- package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
- package/dist/useToast-BHqkSByv.d.ts +78 -0
- package/dist/useToast-DgqC6Ta_.js +63 -0
- package/dist/utils/file.d.ts +1 -1
- package/dist/utils/file.js +1 -1
- package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
- package/llms.txt +3201 -0
- package/package.json +22 -118
- package/MIGRATION.md +0 -655
- package/dist/Alert-D4X7OWiv.d.ts +0 -34
- package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
- package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
- package/dist/Autocomplete-Bn13u0zu.js +0 -145
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
- package/dist/Autocomplete.bound-Dwh__y-Z.js +0 -28
- package/dist/Badge-Db1ndK67.d.ts +0 -30
- package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
- package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
- package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
- package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
- package/dist/Checkbox.bound-D2nBglJz.js +0 -33
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
- package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
- package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
- package/dist/ComboBox-ChsdI0lt.js +0 -212
- package/dist/DatePicker-QzfQf21b.d.ts +0 -56
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
- package/dist/DatePicker.bound-M2cjR37s.js +0 -36
- package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
- package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
- package/dist/DateRangePicker.bound-CkIDsAUf.js +0 -35
- package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
- package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
- package/dist/Dialog-CO9xljD3.d.ts +0 -21
- package/dist/Drawer-D1cHiBFO.d.ts +0 -18
- package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
- package/dist/FileInput-BEaECoBS.d.ts +0 -75
- package/dist/FileInput.bound-C12mOKpg.js +0 -30
- package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
- package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
- package/dist/FileUpload-D7FMYm-k.js +0 -749
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
- package/dist/FileUpload.bound-DmkuulOi.js +0 -30
- package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
- package/dist/FormField-DGyCDxOp.d.ts +0 -42
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
- package/dist/IconButton-shH_9wcl.d.ts +0 -25
- package/dist/Input-CTp_9mS9.d.ts +0 -34
- package/dist/Input.bound-B9a62ylL.d.ts +0 -9
- package/dist/Input.bound-DYoXyRGy.js +0 -31
- package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
- package/dist/Link-PvYB_M-j.d.ts +0 -30
- package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
- package/dist/NumberField-WXebfxjK.d.ts +0 -34
- package/dist/NumberField.bound-ChJnNyJS.js +0 -32
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
- package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
- package/dist/NumberRangeInput.bound-BF6P_ega.js +0 -32
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
- package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
- package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
- package/dist/Popover-D_t1XDPA.d.ts +0 -20
- package/dist/Progress-Ckfpi_-M.d.ts +0 -45
- package/dist/Progress-RiEGGxNG.js +0 -119
- package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
- package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
- package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
- package/dist/RichTextEditor-DfwVdm45.js +0 -651
- package/dist/Select-C34ENdjq.d.ts +0 -119
- package/dist/Select.bound--Az1Xwgm.js +0 -34
- package/dist/Select.bound-qOihchei.d.ts +0 -17
- package/dist/Slider-DRg8zKRM.d.ts +0 -23
- package/dist/Slider.bound-CByTXPTr.js +0 -31
- package/dist/Slider.bound-CaEF19um.d.ts +0 -9
- package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
- package/dist/Spinner-DqjP06T1.js +0 -101
- package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
- package/dist/Stepper-k91x_m-E.d.ts +0 -114
- package/dist/Switch-ELVPkPx0.d.ts +0 -24
- package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
- package/dist/Switch.bound-Dv0cHsMM.js +0 -33
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
- package/dist/TabsFilters-DePddjCk.d.ts +0 -30
- package/dist/Tag-B2_ZiSE-.d.ts +0 -44
- package/dist/TextArea-iqUeB2QY.d.ts +0 -26
- package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
- package/dist/TextArea.bound-DeaskY6r.js +0 -28
- package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
- package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
- package/dist/TimePickerForm-DD9VA_td.js +0 -225
- package/dist/Toast-D9pdadZ4.d.ts +0 -16
- package/dist/ToggleGroup-CrDoeLN0.js +0 -333
- package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
- package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
- package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
- package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
- package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
- package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
- package/dist/components/badge-button.d.ts +0 -2
- package/dist/components/badge-button.js +0 -74
- package/dist/components/file-upload-container.d.ts +0 -3
- package/dist/components/file-upload-container.js +0 -15
- package/dist/confirmation.context-Bc2yEVp_.js +0 -114
- package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
- package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
- package/dist/form.binding-DOR5gIQf.js +0 -49
- package/dist/form.types-C8P4sznq.d.ts +0 -22
- package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
- package/dist/icons.d.ts +0 -4
- package/dist/icons.js +0 -3
- package/dist/input.cva-BjuHsDGy.d.ts +0 -80
- package/dist/inputLayout-KdAtunGk.js +0 -5
- package/dist/link.context-BCHn7NSy.d.ts +0 -12
- package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
- package/dist/router.context-CtafjXV7.d.ts +0 -16
- package/dist/router.context-MckTbHw9.js +0 -63
- package/dist/routing.utils-DfxEt0_Y.js +0 -30
- package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
- package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
- package/dist/tanstack/autocomplete.d.ts +0 -3
- package/dist/tanstack/autocomplete.js +0 -2
- package/dist/tanstack/checkbox-group.d.ts +0 -3
- package/dist/tanstack/checkbox-group.js +0 -2
- package/dist/tanstack/checkbox.d.ts +0 -3
- package/dist/tanstack/checkbox.js +0 -2
- package/dist/tanstack/date-picker.d.ts +0 -3
- package/dist/tanstack/date-picker.js +0 -2
- package/dist/tanstack/date-range-picker.d.ts +0 -3
- package/dist/tanstack/date-range-picker.js +0 -2
- package/dist/tanstack/date-time-picker.d.ts +0 -3
- package/dist/tanstack/date-time-picker.js +0 -2
- package/dist/tanstack/file-input.d.ts +0 -3
- package/dist/tanstack/file-input.js +0 -2
- package/dist/tanstack/file-upload.d.ts +0 -4
- package/dist/tanstack/file-upload.js +0 -2
- package/dist/tanstack/input.d.ts +0 -3
- package/dist/tanstack/input.js +0 -2
- package/dist/tanstack/number-field.d.ts +0 -3
- package/dist/tanstack/number-field.js +0 -2
- package/dist/tanstack/number-range-input.d.ts +0 -3
- package/dist/tanstack/number-range-input.js +0 -2
- package/dist/tanstack/password-input.d.ts +0 -2
- package/dist/tanstack/password-input.js +0 -2
- package/dist/tanstack/radio-group.d.ts +0 -3
- package/dist/tanstack/radio-group.js +0 -2
- package/dist/tanstack/rich-text-editor.d.ts +0 -9
- package/dist/tanstack/rich-text-editor.js +0 -28
- package/dist/tanstack/select.d.ts +0 -3
- package/dist/tanstack/select.js +0 -2
- package/dist/tanstack/slider.d.ts +0 -3
- package/dist/tanstack/slider.js +0 -2
- package/dist/tanstack/switch.d.ts +0 -3
- package/dist/tanstack/switch.js +0 -2
- package/dist/tanstack/text-area.d.ts +0 -3
- package/dist/tanstack/text-area.js +0 -2
- package/dist/tanstack/time-picker.d.ts +0 -3
- package/dist/tanstack/time-picker.js +0 -2
- package/dist/tanstack/toggle-group.d.ts +0 -3
- package/dist/tanstack/toggle-group.js +0 -2
- package/dist/tanstack-Bgdv0qU1.js +0 -19
- package/dist/tanstack-wNbE6b-h.d.ts +0 -566
- package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
- package/dist/toast.runtime-Drd2IJ_j.js +0 -17
- package/dist/toastActivation.store-BELtcr76.js +0 -16
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
- package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
- package/dist/uiConfig.context-BnCORTNm.d.ts +0 -132
- package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
- package/dist/useFilters-BxRScJdn.d.ts +0 -11
- package/dist/useFilters-DMi94RZK.js +0 -190
- package/dist/useForm-Cb7KWLds.js +0 -217
- package/dist/useForm-I6z23FXf.d.ts +0 -51
- package/dist/useFormAutosave-BPGlChiY.js +0 -216
- package/dist/useTableColumnConfig-CXYgj5xi.js +0 -1906
- package/dist/useTableNav-BusSFEVC.d.ts +0 -197
- package/dist/useToast-DsA8CVoY.d.ts +0 -16
|
@@ -9,7 +9,7 @@ const alertDefinition = UIOverrides.defineConfig({
|
|
|
9
9
|
contained: ""
|
|
10
10
|
},
|
|
11
11
|
color: {
|
|
12
|
-
|
|
12
|
+
secondary: "",
|
|
13
13
|
success: "",
|
|
14
14
|
warning: "",
|
|
15
15
|
error: ""
|
|
@@ -18,7 +18,7 @@ const alertDefinition = UIOverrides.defineConfig({
|
|
|
18
18
|
compoundVariants: [
|
|
19
19
|
{
|
|
20
20
|
variant: "outlined",
|
|
21
|
-
color: "
|
|
21
|
+
color: "secondary",
|
|
22
22
|
className: "border-border bg-card text-card-foreground"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
@@ -38,7 +38,7 @@ const alertDefinition = UIOverrides.defineConfig({
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
variant: "contained",
|
|
41
|
-
color: "
|
|
41
|
+
color: "secondary",
|
|
42
42
|
className: "border-transparent bg-muted text-foreground"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -59,7 +59,7 @@ const alertDefinition = UIOverrides.defineConfig({
|
|
|
59
59
|
],
|
|
60
60
|
defaultVariants: {
|
|
61
61
|
variant: "outlined",
|
|
62
|
-
color: "
|
|
62
|
+
color: "secondary"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -74,7 +74,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
74
74
|
contained: "text-current"
|
|
75
75
|
},
|
|
76
76
|
color: {
|
|
77
|
-
|
|
77
|
+
secondary: "",
|
|
78
78
|
success: "",
|
|
79
79
|
warning: "",
|
|
80
80
|
error: ""
|
|
@@ -83,7 +83,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
83
83
|
compoundVariants: [
|
|
84
84
|
{
|
|
85
85
|
variant: "outlined",
|
|
86
|
-
color: "
|
|
86
|
+
color: "secondary",
|
|
87
87
|
class: "text-current"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
@@ -104,7 +104,7 @@ const statusIconDefinition = UIOverrides.defineConfig({
|
|
|
104
104
|
],
|
|
105
105
|
defaultVariants: {
|
|
106
106
|
variant: "outlined",
|
|
107
|
-
color: "
|
|
107
|
+
color: "secondary"
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
});
|
|
@@ -117,13 +117,13 @@ const statusSeparatorDefinition = UIOverrides.defineConfig({
|
|
|
117
117
|
contained: "hidden"
|
|
118
118
|
},
|
|
119
119
|
color: {
|
|
120
|
-
|
|
120
|
+
secondary: "bg-border",
|
|
121
121
|
success: "bg-success/30",
|
|
122
122
|
warning: "bg-warning/30",
|
|
123
123
|
error: "bg-destructive/30"
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
|
-
defaultVariants: { color: "
|
|
126
|
+
defaultVariants: { color: "secondary" }
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
//#endregion
|
package/dist/styles/input.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { an as InputVariantProps } from "../link.cva-ZhpQz3P0.js";
|
|
2
2
|
export type { InputVariantProps };
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
+
import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
|
|
2
3
|
//#region src/components/table/table.cva.ts
|
|
3
4
|
const tableRowDefinition = UIOverrides.defineConfig({
|
|
4
5
|
base: [
|
|
5
6
|
"transition-colors",
|
|
6
7
|
"not-selected:not-disabled:hover:bg-muted/50",
|
|
7
|
-
"not-selected:not-disabled:focus-within:bg-muted/50",
|
|
8
8
|
"disabled:opacity-50",
|
|
9
9
|
"selected:bg-muted",
|
|
10
10
|
"data-details-open:bg-muted",
|
|
11
11
|
"selected:not-disabled:hover:bg-accent",
|
|
12
12
|
"data-clickable:cursor-pointer"
|
|
13
13
|
],
|
|
14
|
-
config: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
config: {
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
bordered: "",
|
|
18
|
+
rounded: "",
|
|
19
|
+
verticals: "",
|
|
20
|
+
horizontals: "",
|
|
21
|
+
zebra: "data-[row-parity=even]:bg-muted/50 data-[row-parity=even]:not-selected:not-disabled:hover:bg-muted",
|
|
22
|
+
"striped-columns": "",
|
|
23
|
+
inner: ""
|
|
24
|
+
},
|
|
25
|
+
alternatingBackground: {
|
|
26
|
+
even: "data-[row-parity=even]:bg-muted/50 data-[row-parity=even]:not-selected:not-disabled:hover:bg-muted",
|
|
27
|
+
odd: "data-[row-parity=odd]:bg-muted/50 data-[row-parity=odd]:not-selected:not-disabled:hover:bg-muted"
|
|
28
|
+
},
|
|
29
|
+
highlightFocused: {
|
|
30
|
+
true: "not-selected:not-disabled:focus-within:bg-muted/50",
|
|
31
|
+
false: ""
|
|
32
|
+
}
|
|
23
33
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
odd: "[&:nth-child(odd_of_:not([data-details-row]))]:bg-muted/50 [&:nth-child(odd_of_:not([data-details-row]))]:not-selected:not-disabled:hover:bg-muted"
|
|
27
|
-
}
|
|
28
|
-
} }
|
|
34
|
+
defaultVariants: { highlightFocused: true }
|
|
35
|
+
}
|
|
29
36
|
});
|
|
30
37
|
const tableContainerDefinition = UIOverrides.defineConfig({
|
|
31
38
|
base: ["relative w-full"],
|
|
@@ -51,7 +58,7 @@ const tableContainerDefinition = UIOverrides.defineConfig({
|
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
60
|
});
|
|
54
|
-
const theadDefinition = UIOverrides.defineConfig({ base: ["group/table-head sticky top-
|
|
61
|
+
const theadDefinition = UIOverrides.defineConfig({ base: ["group/table-head sticky top-[var(--table-sticky-top,0px)] z-sticky data-is-sticky:shadow-xs"] });
|
|
55
62
|
const pinnedEdgeClasses = [
|
|
56
63
|
"transition-shadow",
|
|
57
64
|
"group-data-stuck-start/table:data-[pinned-edge=start]:shadow-[inset_-1px_0_0_var(--color-border),8px_0_12px_-6px_rgb(0_0_0/0.10),2px_0_4px_-2px_rgb(0_0_0/0.06)]",
|
|
@@ -143,5 +150,49 @@ const tableDetailsPanelDefinition = UIOverrides.defineConfig({ base: ["px-4 py-4
|
|
|
143
150
|
const tableSidePanelDefinition = UIOverrides.defineConfig({ base: ["sticky top-0 flex max-h-screen w-96 max-w-[45%] shrink-0 flex-col overflow-y-auto", "border-l border-solid border-border bg-card"] });
|
|
144
151
|
const tableSidePanelHeaderDefinition = UIOverrides.defineConfig({ base: ["flex items-start gap-3 px-6 pt-5 text-card-foreground"] });
|
|
145
152
|
const tableSidePanelBodyDefinition = UIOverrides.defineConfig({ base: ["px-6 pt-4 pb-6 font-sans text-foreground"] });
|
|
153
|
+
const tableDefinition = UIOverrides.defineConfig({ base: ["group/table w-full font-sans text-sm"] });
|
|
154
|
+
const tableHeadContentDefinition = UIOverrides.defineConfig({ base: ["flex min-w-0 items-center gap-1"] });
|
|
155
|
+
const tableHeadLabelDefinition = UIOverrides.defineConfig({ base: ["flex min-w-0 flex-1"] });
|
|
156
|
+
const tableSortButtonDefinition = UIOverrides.defineConfig({
|
|
157
|
+
base: ["flex min-w-0 select-none items-center gap-1 text-card-foreground", uiOutlineClass],
|
|
158
|
+
config: {
|
|
159
|
+
variants: { sortable: {
|
|
160
|
+
true: "-mx-1 h-6 cursor-pointer rounded-xs px-1 hover:bg-muted/50",
|
|
161
|
+
false: "cursor-default"
|
|
162
|
+
} },
|
|
163
|
+
defaultVariants: { sortable: false }
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
const tableResizeHandleDefinition = UIOverrides.defineConfig({
|
|
167
|
+
base: [
|
|
168
|
+
"absolute inset-y-0 z-raised w-2 pointer-coarse:w-6 cursor-col-resize touch-none select-none outline-none",
|
|
169
|
+
"after:absolute after:inset-y-1 after:w-0.5 after:rounded-full after:transition-colors",
|
|
170
|
+
"hover:after:bg-card-foreground focus-visible:after:bg-ring",
|
|
171
|
+
"data-resizing:after:bg-card-foreground"
|
|
172
|
+
],
|
|
173
|
+
config: {
|
|
174
|
+
variants: { edge: {
|
|
175
|
+
end: "right-0 after:right-0",
|
|
176
|
+
start: "left-0 after:left-0"
|
|
177
|
+
} },
|
|
178
|
+
defaultVariants: { edge: "end" }
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
const tableFootDefinition = UIOverrides.defineConfig({ base: ["sticky bottom-0 z-raised"] });
|
|
182
|
+
const tableSkeletonDefinition = UIOverrides.defineConfig({ base: ["h-4 w-3/4 animate-pulse rounded bg-muted motion-reduce:animate-none"] });
|
|
183
|
+
const tableEmptyCellDefinition = UIOverrides.defineConfig({ base: ["p-0"] });
|
|
184
|
+
const tableEmptyDefinition = UIOverrides.defineConfig({ base: ["flex items-center justify-center px-4 py-6 text-center text-muted-foreground"] });
|
|
185
|
+
const tableErrorNoticeDefinition = UIOverrides.defineConfig({ base: ["sticky left-0 px-4 py-2 text-sm text-destructive"] });
|
|
186
|
+
const tableLoadingDefinition = UIOverrides.defineConfig({ base: ["sticky start-1/2 flex w-fit -translate-x-1/2 items-center justify-center p-6 text-muted-foreground rtl:translate-x-1/2"] });
|
|
187
|
+
const tableDragHandleDefinition = UIOverrides.defineConfig({
|
|
188
|
+
base: ["inline-flex shrink-0 cursor-move touch-none items-center justify-center rounded-md text-muted-foreground hover:text-foreground", uiOutlineClass],
|
|
189
|
+
config: {
|
|
190
|
+
variants: { size: {
|
|
191
|
+
sm: "size-8",
|
|
192
|
+
default: "size-9"
|
|
193
|
+
} },
|
|
194
|
+
defaultVariants: { size: "sm" }
|
|
195
|
+
}
|
|
196
|
+
});
|
|
146
197
|
//#endregion
|
|
147
|
-
export {
|
|
198
|
+
export { tableSkeletonDefinition as C, tableSidePanelHeaderDefinition as S, theadDefinition as T, tableLoadingDefinition as _, tableDetailsCellDefinition as a, tableSidePanelBodyDefinition as b, tableEmptyCellDefinition as c, tableFootDefinition as d, tableHeadContentDefinition as f, tableHeaderTextDefinition as g, tableHeadRowDefinition as h, tableDefinition as i, tableEmptyDefinition as l, tableHeadLabelDefinition as m, tableContainerDefinition as n, tableDetailsPanelDefinition as o, tableHeadDataDefinition as p, tableDataDefinition as r, tableDragHandleDefinition as s, tableCellTextDefinition as t, tableErrorNoticeDefinition as u, tableResizeHandleDefinition as v, tableSortButtonDefinition as w, tableSidePanelDefinition as x, tableRowDefinition as y };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
2
|
+
//#region src/components/table/tableCells.cva.ts
|
|
3
|
+
const cellLinkDefinition = UIOverrides.defineConfig({ base: ["group/cell-link flex items-center justify-between gap-1"] });
|
|
4
|
+
const cellLinkTextDefinition = UIOverrides.defineConfig({ base: ["min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap"] });
|
|
5
|
+
const cellLinkActionDefinition = UIOverrides.defineConfig({ base: [
|
|
6
|
+
"inline-flex size-5 shrink-0 items-center justify-center rounded text-muted-foreground",
|
|
7
|
+
"opacity-0 group-hover/cell-link:opacity-100 focus-visible:opacity-100",
|
|
8
|
+
"hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring"
|
|
9
|
+
] });
|
|
10
|
+
const cellNumberUnitDefinition = UIOverrides.defineConfig({ base: ["text-muted-foreground"] });
|
|
11
|
+
const tableRowCheckboxDefinition = UIOverrides.defineConfig({ base: [
|
|
12
|
+
"group relative inline-flex size-6 shrink-0 items-center justify-center",
|
|
13
|
+
"[&:has(input:focus-visible)>div]:outline-2 [&:has(input:focus-visible)>div]:outline-offset-2 [&:has(input:focus-visible)>div]:outline-ring",
|
|
14
|
+
"data-disabled:opacity-50"
|
|
15
|
+
] });
|
|
16
|
+
const tableSelectionCheckboxDefinition = UIOverrides.defineConfig({ base: ["flex h-full w-full items-center justify-center"] });
|
|
17
|
+
//#endregion
|
|
18
|
+
export { tableRowCheckboxDefinition as a, cellNumberUnitDefinition as i, cellLinkDefinition as n, tableSelectionCheckboxDefinition as o, cellLinkTextDefinition as r, cellLinkActionDefinition as t };
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { createContext, useEffect, useLayoutEffect, useState, useSyncExternalStore } from "react";
|
|
3
|
+
//#region src/components/table/cellLinkContext.ts
|
|
4
|
+
/**
|
|
5
|
+
* Opens cell links in place instead of a new tab. Provide a handler, e.g. one that navigates inside a search
|
|
6
|
+
* overlay; the link icon then becomes a button calling it with the link's `href`.
|
|
7
|
+
*/
|
|
8
|
+
const CellLinkNavigationContext = createContext(null);
|
|
9
|
+
/** Preload handlers for every `CellLink` below it, so an app wires its router once. */
|
|
10
|
+
const CellLinkPreloadContext = createContext(null);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/table/lazyModule.ts
|
|
13
|
+
const useLazyModule = (lazyModule, enabled) => {
|
|
14
|
+
const $ = c(10);
|
|
15
|
+
let t0;
|
|
16
|
+
if ($[0] !== lazyModule.loaded) {
|
|
17
|
+
t0 = () => ({
|
|
18
|
+
module: lazyModule.loaded,
|
|
19
|
+
failed: false
|
|
20
|
+
});
|
|
21
|
+
$[0] = lazyModule.loaded;
|
|
22
|
+
$[1] = t0;
|
|
23
|
+
} else t0 = $[1];
|
|
24
|
+
const [state, setState] = useState(t0);
|
|
25
|
+
const { module } = state;
|
|
26
|
+
let t1;
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[2] !== enabled || $[3] !== lazyModule || $[4] !== module) {
|
|
29
|
+
t1 = () => {
|
|
30
|
+
if (!enabled || module) return;
|
|
31
|
+
let active = true;
|
|
32
|
+
lazyModule.load().then((loaded) => {
|
|
33
|
+
if (active) setState({
|
|
34
|
+
module: loaded,
|
|
35
|
+
failed: false
|
|
36
|
+
});
|
|
37
|
+
}, () => {
|
|
38
|
+
if (active) setState({
|
|
39
|
+
module: null,
|
|
40
|
+
failed: true
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
return () => {
|
|
44
|
+
active = false;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
t2 = [
|
|
48
|
+
enabled,
|
|
49
|
+
lazyModule,
|
|
50
|
+
module
|
|
51
|
+
];
|
|
52
|
+
$[2] = enabled;
|
|
53
|
+
$[3] = lazyModule;
|
|
54
|
+
$[4] = module;
|
|
55
|
+
$[5] = t1;
|
|
56
|
+
$[6] = t2;
|
|
57
|
+
} else {
|
|
58
|
+
t1 = $[5];
|
|
59
|
+
t2 = $[6];
|
|
60
|
+
}
|
|
61
|
+
useEffect(t1, t2);
|
|
62
|
+
let t3;
|
|
63
|
+
if ($[7] !== enabled || $[8] !== state) {
|
|
64
|
+
t3 = enabled ? state : {
|
|
65
|
+
module: null,
|
|
66
|
+
failed: false
|
|
67
|
+
};
|
|
68
|
+
$[7] = enabled;
|
|
69
|
+
$[8] = state;
|
|
70
|
+
$[9] = t3;
|
|
71
|
+
} else t3 = $[9];
|
|
72
|
+
return t3;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* A module loaded on demand and shared by every table. A failed load is not cached: `preload` and later mounts try
|
|
76
|
+
* again, and the tables that asked for it learn of the failure so they can render without it.
|
|
77
|
+
*/
|
|
78
|
+
const createLazyModule = (load) => {
|
|
79
|
+
let modulePromise = null;
|
|
80
|
+
const lazyModule = {
|
|
81
|
+
loaded: null,
|
|
82
|
+
load: () => {
|
|
83
|
+
modulePromise ??= load().then((module) => {
|
|
84
|
+
lazyModule.loaded = module;
|
|
85
|
+
return module;
|
|
86
|
+
}, (error) => {
|
|
87
|
+
modulePromise = null;
|
|
88
|
+
throw error;
|
|
89
|
+
});
|
|
90
|
+
return modulePromise;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
/** Starts loading; a failure is swallowed here, and a mount that needs the module retries. */
|
|
95
|
+
preload: () => lazyModule.load().catch(() => null),
|
|
96
|
+
useModule: (enabled) => useLazyModule(lazyModule, enabled)
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/table/tableConfigurationContext.ts
|
|
101
|
+
/**
|
|
102
|
+
* Turns table configuration (column resizing, the column config UI and saved column settings) on or off for every
|
|
103
|
+
* table below it. Wrap a subtree in `<TableConfigurationEnabledContext value={false}>` to render plain tables there.
|
|
104
|
+
*/
|
|
105
|
+
const TableConfigurationEnabledContext = createContext(true);
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/table/tableDndModule.ts
|
|
108
|
+
const dndModuleLoader = createLazyModule(() => import("./TableDnd-CG1yOlxh.js"));
|
|
109
|
+
/**
|
|
110
|
+
* Loads dnd-kit for `enableDragDrop` tables. Tables load it on mount; call it earlier (for example when a route that
|
|
111
|
+
* reorders rows starts loading) so their rows render on the first paint.
|
|
112
|
+
*/
|
|
113
|
+
const preloadTableDnd = dndModuleLoader.preload;
|
|
114
|
+
const TableDndModuleContext = createContext(null);
|
|
115
|
+
/** dnd-kit once it has loaded, while `enabled`; `failed` when it couldn't load (the table then renders without drag). */
|
|
116
|
+
const useTableDndModule = dndModuleLoader.useModule;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/table/useTableVirtualizer.ts
|
|
119
|
+
const virtualModuleLoader = createLazyModule(() => import("./tableVirtualStore-whSmFzTV.js"));
|
|
120
|
+
/**
|
|
121
|
+
* Loads row virtualization. Virtualized tables load it on mount and render their first rows meanwhile; call it at
|
|
122
|
+
* startup when most tables virtualize, so the first table virtualizes on its first render.
|
|
123
|
+
*/
|
|
124
|
+
const preloadTableVirtualizer = virtualModuleLoader.preload;
|
|
125
|
+
/** The virtualization module once it has loaded, while `enabled`; `failed` when it couldn't load. */
|
|
126
|
+
const useTableVirtualModule = virtualModuleLoader.useModule;
|
|
127
|
+
const EMPTY_SNAPSHOT = {
|
|
128
|
+
virtualItems: [],
|
|
129
|
+
totalSize: 0
|
|
130
|
+
};
|
|
131
|
+
const getEmptySnapshot = () => EMPTY_SNAPSHOT;
|
|
132
|
+
const subscribeToNothing = () => () => {};
|
|
133
|
+
/** A row virtualizer once `module` is loaded; until then it renders nothing virtual. */
|
|
134
|
+
function useTableVirtualizer(module, options) {
|
|
135
|
+
const $ = c(21);
|
|
136
|
+
let t0;
|
|
137
|
+
if ($[0] !== module || $[1] !== options) {
|
|
138
|
+
t0 = () => module ? new module.TableVirtualStore(options) : null;
|
|
139
|
+
$[0] = module;
|
|
140
|
+
$[1] = options;
|
|
141
|
+
$[2] = t0;
|
|
142
|
+
} else t0 = $[2];
|
|
143
|
+
const [store, setStore] = useState(t0);
|
|
144
|
+
let current;
|
|
145
|
+
if ($[3] !== module || $[4] !== options || $[5] !== store) {
|
|
146
|
+
current = store;
|
|
147
|
+
if (module && !current) {
|
|
148
|
+
current = new module.TableVirtualStore(options);
|
|
149
|
+
setStore(current);
|
|
150
|
+
}
|
|
151
|
+
$[3] = module;
|
|
152
|
+
$[4] = options;
|
|
153
|
+
$[5] = store;
|
|
154
|
+
$[6] = current;
|
|
155
|
+
} else current = $[6];
|
|
156
|
+
const snapshot = useSyncExternalStore(current?.subscribe ?? subscribeToNothing, current?.getSnapshot ?? getEmptySnapshot, current?.getSnapshot ?? getEmptySnapshot);
|
|
157
|
+
let t1;
|
|
158
|
+
if ($[7] !== current) {
|
|
159
|
+
t1 = () => current?.mount();
|
|
160
|
+
$[7] = current;
|
|
161
|
+
$[8] = t1;
|
|
162
|
+
} else t1 = $[8];
|
|
163
|
+
let t2;
|
|
164
|
+
if ($[9] !== current) {
|
|
165
|
+
t2 = [current];
|
|
166
|
+
$[9] = current;
|
|
167
|
+
$[10] = t2;
|
|
168
|
+
} else t2 = $[10];
|
|
169
|
+
useLayoutEffect(t1, t2);
|
|
170
|
+
let t3;
|
|
171
|
+
if ($[11] !== current || $[12] !== options) {
|
|
172
|
+
t3 = () => current?.update(options);
|
|
173
|
+
$[11] = current;
|
|
174
|
+
$[12] = options;
|
|
175
|
+
$[13] = t3;
|
|
176
|
+
} else t3 = $[13];
|
|
177
|
+
let t4;
|
|
178
|
+
if ($[14] !== current || $[15] !== options) {
|
|
179
|
+
t4 = [current, options];
|
|
180
|
+
$[14] = current;
|
|
181
|
+
$[15] = options;
|
|
182
|
+
$[16] = t4;
|
|
183
|
+
} else t4 = $[16];
|
|
184
|
+
useLayoutEffect(t3, t4);
|
|
185
|
+
const t5 = current?.instance ?? null;
|
|
186
|
+
const t6 = current?.measureElement;
|
|
187
|
+
let t7;
|
|
188
|
+
if ($[17] !== snapshot || $[18] !== t5 || $[19] !== t6) {
|
|
189
|
+
t7 = {
|
|
190
|
+
...snapshot,
|
|
191
|
+
instance: t5,
|
|
192
|
+
measureElement: t6
|
|
193
|
+
};
|
|
194
|
+
$[17] = snapshot;
|
|
195
|
+
$[18] = t5;
|
|
196
|
+
$[19] = t6;
|
|
197
|
+
$[20] = t7;
|
|
198
|
+
} else t7 = $[20];
|
|
199
|
+
return t7;
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/components/table/tableColumnConfigStorage.ts
|
|
203
|
+
const NO_SETTINGS = {
|
|
204
|
+
settings: void 0,
|
|
205
|
+
save: () => {}
|
|
206
|
+
};
|
|
207
|
+
/** The default: nothing is saved, so configuration lasts while the table is mounted. */
|
|
208
|
+
const memoryTableColumnConfigStorage = { useColumnSettings: () => NO_SETTINGS };
|
|
209
|
+
/**
|
|
210
|
+
* Storage used by `useTableColumnConfig` below it, unless a table passes its own `storage`.
|
|
211
|
+
* Provide one stable object for the app's lifetime: its hook must not change between renders.
|
|
212
|
+
*/
|
|
213
|
+
const TableColumnConfigStorageContext = createContext(memoryTableColumnConfigStorage);
|
|
214
|
+
//#endregion
|
|
215
|
+
export { useTableVirtualizer as a, useTableDndModule as c, CellLinkNavigationContext as d, CellLinkPreloadContext as f, useTableVirtualModule as i, TableConfigurationEnabledContext as l, memoryTableColumnConfigStorage as n, TableDndModuleContext as o, preloadTableVirtualizer as r, preloadTableDnd as s, TableColumnConfigStorageContext as t, createLazyModule as u };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { flushSync } from "react-dom";
|
|
2
|
+
import { Virtualizer, elementScroll, observeElementOffset, observeElementRect, observeWindowOffset, observeWindowRect, windowScroll } from "@tanstack/react-virtual";
|
|
3
|
+
//#region src/components/table/tableVirtualStore.ts
|
|
4
|
+
const sameItems = (left, right) => left.length === right.length && left.every((item, index) => {
|
|
5
|
+
const other = right[index];
|
|
6
|
+
return other && item.key === other.key && item.index === other.index && item.start === other.start && item.end === other.end && item.size === other.size && item.lane === other.lane;
|
|
7
|
+
});
|
|
8
|
+
/** Keeps the mutable virtualizer behind an external-store boundary; rendering reads immutable snapshots. */
|
|
9
|
+
var TableVirtualStore = class {
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
12
|
+
this.notify = () => {
|
|
13
|
+
for (const listener of this.listeners) listener();
|
|
14
|
+
};
|
|
15
|
+
this.mount = () => this.instance._didMount();
|
|
16
|
+
this.getSnapshot = () => this.snapshot;
|
|
17
|
+
this.subscribe = (listener) => {
|
|
18
|
+
this.listeners.add(listener);
|
|
19
|
+
return () => {
|
|
20
|
+
this.listeners.delete(listener);
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
this.measureElement = (element) => this.instance.measureElement(element);
|
|
24
|
+
this.instance = new Virtualizer(this.resolveOptions(options));
|
|
25
|
+
this.snapshot = {
|
|
26
|
+
virtualItems: this.instance.getVirtualItems(),
|
|
27
|
+
totalSize: this.instance.getTotalSize()
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
resolveOptions({ isWindow, ...options }) {
|
|
31
|
+
const windowFunctions = {
|
|
32
|
+
observeElementRect: observeWindowRect,
|
|
33
|
+
observeElementOffset: observeWindowOffset,
|
|
34
|
+
scrollToFn: windowScroll,
|
|
35
|
+
getScrollElement: () => window
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
observeElementRect,
|
|
39
|
+
observeElementOffset,
|
|
40
|
+
scrollToFn: elementScroll,
|
|
41
|
+
...options,
|
|
42
|
+
...isWindow ? windowFunctions : {},
|
|
43
|
+
onChange: (instance, synchronous) => {
|
|
44
|
+
this.publish(synchronous);
|
|
45
|
+
options.onChange?.(instance, synchronous);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
publish(synchronous = false) {
|
|
50
|
+
const virtualItems = this.instance.getVirtualItems();
|
|
51
|
+
const totalSize = this.instance.getTotalSize();
|
|
52
|
+
if (totalSize === this.snapshot.totalSize && sameItems(this.snapshot.virtualItems, virtualItems)) return;
|
|
53
|
+
this.snapshot = {
|
|
54
|
+
virtualItems,
|
|
55
|
+
totalSize
|
|
56
|
+
};
|
|
57
|
+
if (synchronous) flushSync(this.notify);
|
|
58
|
+
else this.notify();
|
|
59
|
+
}
|
|
60
|
+
update(options) {
|
|
61
|
+
this.instance.setOptions(this.resolveOptions(options));
|
|
62
|
+
this.instance._willUpdate();
|
|
63
|
+
this.publish();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { TableVirtualStore };
|
package/dist/tanstack/form.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as UseAutosaveProps, i as AutosavePatch, n as useFormAutosave, o as useAutosave, r as AutosaveHandler, t as UseFormAutosaveProps } from "../useFormAutosave-
|
|
3
|
-
export { type AutosaveHandler, type AutosavePatch, type DeepKeys, type DeepValue, type FormSubmitErrorHandler, type FormSubmitHandler, type UIForm, type UseAutosaveProps, type UseFormAutosaveProps, type UseFormProps, useAutosave, useForm, useFormAutosave, useFormState, useFormValue };
|
|
1
|
+
import { a as DeepKeys, c as FormSubmitErrorHandler, d as UseFormProps, f as useForm, l as FormSubmitHandler, m as useFormValue, n as BoundFieldControl, o as DeepValue, p as useFormState, r as BoundFieldProps, s as FormFieldErrors, t as BoundField, u as UIForm } from "../form.binding-DSXB2AOD.js";
|
|
2
|
+
import { a as UseAutosaveProps, i as AutosavePatch, n as useFormAutosave, o as useAutosave, r as AutosaveHandler, t as UseFormAutosaveProps } from "../useFormAutosave-ClMnzVE7.js";
|
|
3
|
+
export { type AutosaveHandler, type AutosavePatch, BoundField, type BoundFieldControl, type BoundFieldProps, type DeepKeys, type DeepValue, type FormFieldErrors, type FormSubmitErrorHandler, type FormSubmitHandler, type UIForm, type UseAutosaveProps, type UseFormAutosaveProps, type UseFormProps, useAutosave, useForm, useFormAutosave, useFormState, useFormValue };
|
package/dist/tanstack/form.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export { useAutosave, useForm, useFormAutosave, useFormState, useFormValue };
|
|
1
|
+
import { t as BoundField } from "../form.binding-Brdjq2yr.js";
|
|
2
|
+
import { a as useAutosave, i as useFormValue, n as useForm, r as useFormState, t as useFormAutosave } from "../useFormAutosave-BzCGqFqi.js";
|
|
3
|
+
export { BoundField, useAutosave, useForm, useFormAutosave, useFormState, useFormValue };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as TableColumnConfigStorage, c as TableColumnSettingsHandle, d as CellLinkNavigationContext, f as CellLinkPreloadContext, i as TableConfigurationEnabledContext, l as TableColumnStorageTarget, n as preloadTableDnd, o as TableColumnConfigStorageContext, p as CellLinkPreloadHandlers, s as TableColumnSettings, t as preloadTableVirtualizer, u as memoryTableColumnConfigStorage } from "../useTableVirtualizer-sFInQiH-.js";
|
|
2
|
+
export { CellLinkNavigationContext, CellLinkPreloadContext, type CellLinkPreloadHandlers, type TableColumnConfigStorage, TableColumnConfigStorageContext, type TableColumnSettings, type TableColumnSettingsHandle, type TableColumnStorageTarget, TableConfigurationEnabledContext, memoryTableColumnConfigStorage, preloadTableDnd, preloadTableVirtualizer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { d as CellLinkNavigationContext, f as CellLinkPreloadContext, l as TableConfigurationEnabledContext, n as memoryTableColumnConfigStorage, r as preloadTableVirtualizer, s as preloadTableDnd, t as TableColumnConfigStorageContext } from "../tableColumnConfigStorage-Cciq8gVe.js";
|
|
2
|
+
export { CellLinkNavigationContext, CellLinkPreloadContext, TableColumnConfigStorageContext, TableConfigurationEnabledContext, memoryTableColumnConfigStorage, preloadTableDnd, preloadTableVirtualizer };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* oxlint-disable unused-imports/no-unused-vars */
|
|
2
|
+
import "@tanstack/react-table";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
import type { TableSelectionModel } from "./table";
|
|
6
|
+
|
|
7
|
+
declare module "@tanstack/react-table" {
|
|
8
|
+
interface ColumnMeta<TFeatures, TData extends RowData, TValue> {
|
|
9
|
+
/** Width class for the column's cells, until it is resized. */
|
|
10
|
+
width?: string;
|
|
11
|
+
headerClass?: string;
|
|
12
|
+
/** Class for each cell, or a function of the row that returns it. */
|
|
13
|
+
cellClass?: string | ((data: TData) => string | undefined);
|
|
14
|
+
/** Class for a wrapper around each cell's content. */
|
|
15
|
+
cellContentClass?: string;
|
|
16
|
+
/** Class for the row of header content (label, filter) inside the header cell. */
|
|
17
|
+
headerContentClass?: string;
|
|
18
|
+
sortClass?: string;
|
|
19
|
+
/** Key handed to `renderColumnFilter`. Defaults to the column id. */
|
|
20
|
+
filterKey?: string;
|
|
21
|
+
/** Key used in the table's `sorting` state for this column. Defaults to the column id. */
|
|
22
|
+
sortKey?: string;
|
|
23
|
+
/** Key, or keys, an export uses for this column. The table itself doesn't read it. */
|
|
24
|
+
exportKey?: string | string[];
|
|
25
|
+
/** Columns a cell spans, per row. `0` hides the cell (a cell before it spans over it). */
|
|
26
|
+
colSpan?: number | ((data: TData) => number);
|
|
27
|
+
/** Text a cell shows for a value, used to measure the column when it is auto-sized. */
|
|
28
|
+
textFormatter?: (value: unknown, row: TData) => string;
|
|
29
|
+
/** `false` keeps the column at its size when `sized` columns stretch to fill the table. */
|
|
30
|
+
grow?: boolean;
|
|
31
|
+
/** Called with the column's width after it is resized or auto-sized. */
|
|
32
|
+
onWidthChange?: (width: number) => void;
|
|
33
|
+
/** Called with every visible column's width after a resize. Used instead of `onWidthChange` when set. */
|
|
34
|
+
onWidthsChange?: (widths: Record<string, number>) => void;
|
|
35
|
+
/** The column `size`s come from saved widths, so `sized` columns don't stretch to fill the table. */
|
|
36
|
+
hasSavedWidths?: boolean;
|
|
37
|
+
/** Selection state of a checkbox column; such a column never stretches. */
|
|
38
|
+
selectionModel?: TableSelectionModel<TData>;
|
|
39
|
+
/** Label of the column in column configuration, when the header isn't plain text. */
|
|
40
|
+
configLabel?: ReactNode;
|
|
41
|
+
/** Pins the column when the table has no `columnPinning`. */
|
|
42
|
+
configuredPinPosition?: false | "left" | "right";
|
|
43
|
+
/**
|
|
44
|
+
* Keeps the column's cells mounted while the table virtualizes columns, for content that sets the row height
|
|
45
|
+
* (badges, multi-line values), so rows keep their height during horizontal scrolling.
|
|
46
|
+
*/
|
|
47
|
+
keepMounted?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface CellContext<TFeatures, TData extends RowData, TValue> {
|
|
51
|
+
original: TData;
|
|
52
|
+
data: TData;
|
|
53
|
+
value: TValue;
|
|
54
|
+
}
|
|
55
|
+
}
|
package/dist/tanstack/table.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { a as TableColumnConfigStorage, c as TableColumnSettingsHandle, d as CellLinkNavigationContext, f as CellLinkPreloadContext, i as TableConfigurationEnabledContext, l as TableColumnStorageTarget, n as preloadTableDnd, o as TableColumnConfigStorageContext, p as CellLinkPreloadHandlers, r as TableDragHandleProps, s as TableColumnSettings, t as preloadTableVirtualizer, u as memoryTableColumnConfigStorage } from "../useTableVirtualizer-sFInQiH-.js";
|
|
2
|
+
import { c as TableRowVariantProps, l as TableVariant } from "../link.cva-ZhpQz3P0.js";
|
|
3
|
+
import { a as TableRowDetailsMode } from "../uiConfig.types-BsyPKepP.js";
|
|
4
|
+
import { $ as orderTableColumns, A as InfiniteTableQueryState, B as RowDragHandleCell, C as TableSelectionState, Ct as CellDateUTC, D as InfiniteTableData, E as InfiniteTable, F as Table, G as HeaderText, H as TableRowDetails, I as TableProps, J as ColumnConfigModal, K as HeaderTextProps, L as TableReorderContext, M as BulkSelectionActionsComponent, N as ColumnDef, O as InfiniteTablePage, P as Row, Q as ColumnConfigProps, R as TableRowRenderContext, S as TableSelectionModel, St as CellDateTimeUTC, T as TableRowCheckboxProps, Tt as CellTextProps, U as TableColumnFilterContext, V as TableMountBoundary, W as TableColumnLayout, X as ColumnConfigPopover, Y as ColumnConfigModalProps, Z as ColumnConfigContentProps, _ as useRemainingNameColumnWidth, _t as CellLink, a as ExpandedState, at as CellDateFormatOptions, b as TableSelectionCheckbox, bt as CellDateProps, c as SortingState, ct as formatCellDateTimeUTCValue, d as UseTableColumnConfigOptions, dt as formatCellDateValue, et as formatColumnBoolean, f as mergeColumnOrder, ft as toCellDate, g as UseRemainingNameColumnWidthArgs, gt as CellNumberValueProps, h as useSorting, ht as CellNumberValue, i as ColumnVisibilityState, it as CELL_DATE_PLACEHOLDER, j as InfiniteTableWrapperProps, k as InfiniteTableProps, l as StockFeatures, lt as formatCellDateTimeValue, m as UseSortingOptions, mt as CellNumberProps, n as ColumnPinningState, nt as formatColumnNumber, o as OnChangeFn, ot as formatCellDateTime, p as useTableColumnConfig, pt as CellNumber, q as ColumnConfigContent, r as ColumnSizingState, rt as formatColumnText, s as RowSelectionState, st as formatCellDateTimeUTC, t as ColumnOrderState, tt as formatColumnEnum, u as useTableNav, ut as formatCellDateUTCValue, v as UseControlledTableRowSelectionOptions, vt as CellLinkProps, w as TableRowCheckbox, wt as CellText, x as TableSelectionCheckboxProps, xt as CellDateTime, y as useControlledTableRowSelection, yt as CellDate, z as TableWrapperProps } from "../tanstack-table-DdWYwCZM.js";
|
|
5
|
+
export { type BulkSelectionActionsComponent, CELL_DATE_PLACEHOLDER, CellDate, type CellDateFormatOptions, type CellDateProps, CellDateTime, CellDateTimeUTC, CellDateUTC, CellLink, CellLinkNavigationContext, CellLinkPreloadContext, type CellLinkPreloadHandlers, type CellLinkProps, CellNumber, type CellNumberProps, CellNumberValue, type CellNumberValueProps, CellText, type CellTextProps, ColumnConfigContent, type ColumnConfigContentProps, ColumnConfigModal, type ColumnConfigModalProps, ColumnConfigPopover, type ColumnConfigProps, type ColumnDef, type ColumnOrderState, type ColumnPinningState, type ColumnSizingState, type ColumnVisibilityState, type ExpandedState, HeaderText, type HeaderTextProps, InfiniteTable, type InfiniteTableData, type InfiniteTablePage, type InfiniteTableProps, type InfiniteTableQueryState, type InfiniteTableWrapperProps, type OnChangeFn, type Row, RowDragHandleCell, type RowSelectionState, type SortingState, type StockFeatures, Table, type TableColumnConfigStorage, TableColumnConfigStorageContext, type TableColumnFilterContext, type TableColumnLayout, type TableColumnSettings, type TableColumnSettingsHandle, type TableColumnStorageTarget, TableConfigurationEnabledContext, type TableDragHandleProps, TableMountBoundary, type TableProps, type TableReorderContext, TableRowCheckbox, type TableRowCheckboxProps, type TableRowDetails, type TableRowDetailsMode, type TableRowRenderContext, type TableRowVariantProps, TableSelectionCheckbox, type TableSelectionCheckboxProps, type TableSelectionModel, type TableSelectionState, type TableVariant, type TableWrapperProps, type UseControlledTableRowSelectionOptions, type UseRemainingNameColumnWidthArgs, type UseSortingOptions, type UseTableColumnConfigOptions, formatCellDateTime, formatCellDateTimeUTC, formatCellDateTimeUTCValue, formatCellDateTimeValue, formatCellDateUTCValue, formatCellDateValue, formatColumnBoolean, formatColumnEnum, formatColumnNumber, formatColumnText, memoryTableColumnConfigStorage, mergeColumnOrder, orderTableColumns, preloadTableDnd, preloadTableVirtualizer, toCellDate, useControlledTableRowSelection, useRemainingNameColumnWidth, useSorting, useTableColumnConfig, useTableNav };
|
package/dist/tanstack/table.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { A as CELL_DATE_PLACEHOLDER, C as CellNumber, D as CellDateTime, E as CellDate, F as formatCellDateUTCValue, I as formatCellDateValue, L as toCellDate, M as formatCellDateTimeUTC, N as formatCellDateTimeUTCValue, O as CellDateTimeUTC, P as formatCellDateTimeValue, R as CellText, S as formatColumnText, T as CellLink, _ as orderTableColumns, a as useControlledTableRowSelection, b as formatColumnEnum, c as InfiniteTable, d as RowDragHandleCell, f as useTableNav, g as ColumnConfigPopover, h as ColumnConfigModal, i as useRemainingNameColumnWidth, j as formatCellDateTime, k as CellDateUTC, l as Table, m as ColumnConfigContent, n as useTableColumnConfig, o as TableSelectionCheckbox, p as HeaderText, r as useSorting, s as TableRowCheckbox, t as mergeColumnOrder, u as TableMountBoundary, w as CellNumberValue, x as formatColumnNumber, y as formatColumnBoolean } from "../tanstack-table-M1M26UQJ.js";
|
|
2
|
+
import { d as CellLinkNavigationContext, f as CellLinkPreloadContext, l as TableConfigurationEnabledContext, n as memoryTableColumnConfigStorage, r as preloadTableVirtualizer, s as preloadTableDnd, t as TableColumnConfigStorageContext } from "../tableColumnConfigStorage-Cciq8gVe.js";
|
|
3
|
+
export { CELL_DATE_PLACEHOLDER, CellDate, CellDateTime, CellDateTimeUTC, CellDateUTC, CellLink, CellLinkNavigationContext, CellLinkPreloadContext, CellNumber, CellNumberValue, CellText, ColumnConfigContent, ColumnConfigModal, ColumnConfigPopover, HeaderText, InfiniteTable, RowDragHandleCell, Table, TableColumnConfigStorageContext, TableConfigurationEnabledContext, TableMountBoundary, TableRowCheckbox, TableSelectionCheckbox, formatCellDateTime, formatCellDateTimeUTC, formatCellDateTimeUTCValue, formatCellDateTimeValue, formatCellDateUTCValue, formatCellDateValue, formatColumnBoolean, formatColumnEnum, formatColumnNumber, formatColumnText, memoryTableColumnConfigStorage, mergeColumnOrder, orderTableColumns, preloadTableDnd, preloadTableVirtualizer, toCellDate, useControlledTableRowSelection, useRemainingNameColumnWidth, useSorting, useTableColumnConfig, useTableNav };
|