@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as ButtonProps$1, n as ButtonSharedProps, t as AriaButtonPropsWithoutRestated } from "./ButtonBase-Bn_FT89h.js";
|
|
2
2
|
//#region src/components/buttons/Button/Button.d.ts
|
|
3
3
|
/** A text action, optionally accompanied by icons. Use ToggleButton for persistent selection. */
|
|
4
|
-
type ButtonProps = ButtonSharedProps & ButtonProps$1 & {
|
|
4
|
+
type ButtonProps = ButtonSharedProps & AriaButtonPropsWithoutRestated<ButtonProps$1> & {
|
|
5
5
|
toggle?: never;
|
|
6
6
|
iconOnly?: never;
|
|
7
7
|
isSelected?: never;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Q5Oc6oX2.js";
|
|
2
|
+
import { n as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-mpNpV7ow.js";
|
|
2
3
|
import $ahdqC$react, { createContext, useEffect, useRef } from "react";
|
|
3
4
|
import { mergeProps } from "react-aria/mergeProps";
|
|
4
5
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
5
6
|
import { useFocusRing } from "react-aria/useFocusRing";
|
|
6
7
|
import { useHover } from "react-aria/useHover";
|
|
7
8
|
import { createHideableComponent } from "react-aria/private/collections/Hidden";
|
|
8
|
-
import "react-aria/useProgressBar";
|
|
9
|
-
import "react-stately/private/utils/number";
|
|
10
9
|
import { announce } from "react-aria/private/live-announcer/LiveAnnouncer";
|
|
11
10
|
import { useButton } from "react-aria/useButton";
|
|
12
11
|
import { useId as useId$1 } from "react-aria/useId";
|
|
13
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
14
|
-
const $6c0095e7e99364f2$export$e9f3bf65a26ce129 = /*#__PURE__*/ createContext(null);
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Button.mjs
|
|
12
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Button.mjs
|
|
17
13
|
const $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ createContext({});
|
|
18
14
|
const $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ createHideableComponent(function Button(props, ref) {
|
|
19
15
|
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);
|
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-
|
|
4
|
-
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-
|
|
5
|
-
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-
|
|
6
|
-
import { t as LinkContext } from "./link.context-
|
|
7
|
-
import { t as ButtonContent } from "./ButtonContent-
|
|
8
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
9
|
-
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-
|
|
3
|
+
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-8zP_NC_c.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
5
|
+
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-D8BT67FO.js";
|
|
6
|
+
import { t as LinkContext } from "./link.context-CD5h_b5O.js";
|
|
7
|
+
import { t as ButtonContent } from "./ButtonContent-2KsbdWRO.js";
|
|
8
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
9
|
+
import { a as buttonTypography, i as buttonSizeDefinition, n as buttonDefinition, r as buttonIconSizeDefinition, t as buttonContentDefinition } from "./button.cva-C2aoXMh-.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/buttons/shared/ButtonBase.tsx
|
|
12
|
-
const getContentIconPosition = ({ icon,
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
return "none";
|
|
12
|
+
const getContentIconPosition = ({ icon, iconPosition }) => {
|
|
13
|
+
if (!icon) return "none";
|
|
14
|
+
return iconPosition === "right" ? "right" : "left";
|
|
16
15
|
};
|
|
17
|
-
const ButtonBase = ({ behavior = "action", icon: Icon,
|
|
16
|
+
const ButtonBase = ({ behavior = "action", icon: Icon, iconPosition, children, isLoading, className, link, iconClassName, disableWhileLoading = true, contentRef, variant: variantProp, size: sizeProp, width, ...props }) => {
|
|
18
17
|
const linkContext = LinkContext.useLinkContext();
|
|
19
18
|
const uiConfig = UIConfig.useConfig();
|
|
20
19
|
const variant = variantProp ?? uiConfig.button.variant;
|
|
21
20
|
const size = sizeProp ?? uiConfig.button.size;
|
|
22
|
-
const width = fullWidth ? "fill" : widthProp;
|
|
23
|
-
const isLoading = isLoadingProp ?? loading;
|
|
24
|
-
const shouldDisableWhileLoading = disableWhileLoading ?? !noDisableWhenLoading;
|
|
25
21
|
const contentIconPosition = getContentIconPosition({
|
|
26
22
|
icon: Icon,
|
|
27
|
-
startIcon,
|
|
28
|
-
endIcon,
|
|
29
23
|
iconPosition
|
|
30
24
|
});
|
|
31
25
|
const buttonCva = UIOverrides.useCva("button.cva", buttonDefinition);
|
|
@@ -42,7 +36,7 @@ const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconP
|
|
|
42
36
|
return /* @__PURE__ */ jsx(Component, {
|
|
43
37
|
...props,
|
|
44
38
|
...link,
|
|
45
|
-
isDisabled: props.isDisabled || isLoading &&
|
|
39
|
+
isDisabled: props.isDisabled || isLoading && disableWhileLoading,
|
|
46
40
|
className: clsx(buttonCva({
|
|
47
41
|
...props,
|
|
48
42
|
variant,
|
|
@@ -64,8 +58,6 @@ const ButtonBase = ({ behavior = "action", icon: Icon, startIcon, endIcon, iconP
|
|
|
64
58
|
ref: contentRef,
|
|
65
59
|
isLoading,
|
|
66
60
|
icon: Icon,
|
|
67
|
-
startIcon,
|
|
68
|
-
endIcon,
|
|
69
61
|
content: children,
|
|
70
62
|
hideText: props.iconOnly,
|
|
71
63
|
iconPosition,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { xn as ButtonVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
+
import { n as LinkNavigationProps } from "./Link-HJ4y-xiW.js";
|
|
5
|
+
import { t as ButtonContentVariantProps } from "./buttonContent.cva-CeGnrjoA.js";
|
|
6
|
+
import { ReactNode, Ref } from "react";
|
|
7
|
+
import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1 } from "react-aria-components";
|
|
8
|
+
//#region src/components/buttons/shared/ButtonBase.d.ts
|
|
9
|
+
type ButtonIconProps = {
|
|
10
|
+
/** The button's single icon: a component such as a lucide icon, or an element. Place it with `iconPosition`. */
|
|
11
|
+
icon?: IconSlotIcon;
|
|
12
|
+
};
|
|
13
|
+
type ButtonAppearanceProps = ButtonVariantProps;
|
|
14
|
+
type ButtonSharedProps = ButtonAppearanceProps & Omit<ButtonContentVariantProps, "size"> & ButtonIconProps & {
|
|
15
|
+
/** Defaults to `UIConfig.button.variant` (`contained`). */
|
|
16
|
+
variant?: ButtonVariantProps["variant"];
|
|
17
|
+
/** Omit for the default height, `sm` for compact. Defaults to `UIConfig.button.size`. */
|
|
18
|
+
size?: ButtonVariantProps["size"];
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
21
|
+
/** Shows a spinner in place of the icon and, unless `disableWhileLoading` is false, disables the button. */
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
/** Renders the button as a router link instead of an action. */
|
|
24
|
+
link?: LinkNavigationProps;
|
|
25
|
+
/** Whether `isLoading` also disables the button. Defaults to true. */
|
|
26
|
+
disableWhileLoading?: boolean;
|
|
27
|
+
/** Classes for the button. React Aria's render-state function form is not supported. */
|
|
28
|
+
className?: string;
|
|
29
|
+
iconClassName?: string;
|
|
30
|
+
contentRef?: Ref<HTMLElement>;
|
|
31
|
+
/** @deprecated Use `isLoading`. */
|
|
32
|
+
isPending?: Removed<"Use `isLoading`; it shows the spinner">;
|
|
33
|
+
/** @deprecated Use `disableWhileLoading={false}`. */
|
|
34
|
+
noDisableWhenLoading?: Removed<"Use `disableWhileLoading={false}`">;
|
|
35
|
+
/** @deprecated Use `width="fill"`. */
|
|
36
|
+
fullWidth?: Removed<"Use `width='fill'` instead of `fullWidth`">;
|
|
37
|
+
/** @deprecated Use `icon`; it is placed left by default. */
|
|
38
|
+
startIcon?: Removed<"Use `icon` (placed left by default) instead of `startIcon`">;
|
|
39
|
+
/** @deprecated Use `icon` with `iconPosition="right"`. */
|
|
40
|
+
endIcon?: Removed<"Use `icon` with `iconPosition='right'` instead of `endIcon`">;
|
|
41
|
+
/** @deprecated Use `link={{ href }}`. */
|
|
42
|
+
href?: Removed<"Use `link={{ href }}` instead of `href`">;
|
|
43
|
+
};
|
|
44
|
+
/** React Aria's button props minus those `ButtonSharedProps` restates: `className` as a string, `isPending` as a hint. */
|
|
45
|
+
type AriaButtonPropsWithoutRestated<TProps> = Omit<TProps, "className" | "isPending">;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ButtonProps$1 as i, ButtonSharedProps as n, ToggleButtonProps$1 as r, AriaButtonPropsWithoutRestated as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { t as IconSlot } from "./IconSlot-
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
4
|
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Spinner } from "./components/spinner.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/shared/buttonContent.cva.ts
|
|
@@ -27,7 +27,7 @@ const buttonContentLabel = cva("hyphens-auto md:truncate", {
|
|
|
27
27
|
//#region src/components/buttons/shared/ButtonContent.tsx
|
|
28
28
|
const ButtonContent = (t0) => {
|
|
29
29
|
const $ = c(24);
|
|
30
|
-
const { ref, content, isLoading, icon: Icon,
|
|
30
|
+
const { ref, content, isLoading, icon: Icon, iconClassName, hideText, iconPosition: t1, typography: typographyOverrides } = t0;
|
|
31
31
|
const iconPosition = t1 === void 0 ? "left" : t1;
|
|
32
32
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
33
33
|
let t2;
|
|
@@ -53,7 +53,7 @@ const ButtonContent = (t0) => {
|
|
|
53
53
|
} else t3 = $[2];
|
|
54
54
|
startIconOrLoader = t3;
|
|
55
55
|
} else {
|
|
56
|
-
const t3 =
|
|
56
|
+
const t3 = iconPosition !== "right" ? Icon : void 0;
|
|
57
57
|
let t4;
|
|
58
58
|
if ($[3] !== renderIcon || $[4] !== t3) {
|
|
59
59
|
t4 = renderIcon(t3);
|
|
@@ -62,7 +62,7 @@ const ButtonContent = (t0) => {
|
|
|
62
62
|
$[5] = t4;
|
|
63
63
|
} else t4 = $[5];
|
|
64
64
|
startIconOrLoader = t4;
|
|
65
|
-
const t5 =
|
|
65
|
+
const t5 = iconPosition === "right" ? Icon : void 0;
|
|
66
66
|
let t6;
|
|
67
67
|
if ($[6] !== renderIcon || $[7] !== t5) {
|
|
68
68
|
t6 = renderIcon(t5);
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-DF6sbTuF.js";
|
|
5
|
+
import { a as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-Ck-B1Jae.js";
|
|
6
|
+
import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-D8BT67FO.js";
|
|
6
7
|
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import { t as useScrollableListBox } from "./useScrollableListBox-
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
8
|
+
import "./i18n-DaIHnR2n.js";
|
|
9
|
+
import { S as calendarYearDefinition, _ as calendarMonthDefinition, c as useTimeWheelCommit, v as calendarOptionTypography } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
10
|
+
import { t as TimePickerForm } from "./TimePickerForm-CaIHR0PV.js";
|
|
11
|
+
import { Badge } from "./components/badge.js";
|
|
12
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-4pieApqz.js";
|
|
13
|
+
import { a as calendarNavigationDefinition, i as calendarNavIconDefinition, n as calendarHeaderSideDefinition, r as calendarNavButtonDefinition, t as calendarHeaderDefinition } from "./calendarHeader.cva-D3sXR7ox.js";
|
|
14
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-Cz8NlFqm.js";
|
|
14
15
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
15
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
|
|
16
18
|
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
19
|
+
import { flushSync } from "react-dom";
|
|
17
20
|
import { useTranslation } from "react-i18next";
|
|
18
21
|
import { useCalendar } from "@react-aria/calendar";
|
|
19
22
|
//#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
|
|
20
|
-
const calendarNavButtonClassName = clsx("inline-flex size-8 shrink-0 items-center justify-center rounded-md p-0 transition-all select-none", "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50 disabled:pointer-events-none", uiOutlineClass);
|
|
21
23
|
const HourCycle = {
|
|
22
24
|
12: "h12",
|
|
23
25
|
24: "h23"
|
|
@@ -27,6 +29,11 @@ const getTimeFormatterDate = (timeValue, timeZone) => {
|
|
|
27
29
|
};
|
|
28
30
|
const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextButtonProps, includesTime, isTimeOptional, hourCycle, granularity = "day", toggleState, setToggleState }) => {
|
|
29
31
|
const { t } = useTranslation("ui");
|
|
32
|
+
const headerCva = UIOverrides.useCva("calendar.headerCva", calendarHeaderDefinition);
|
|
33
|
+
const headerSideCva = UIOverrides.useCva("calendar.headerSideCva", calendarHeaderSideDefinition);
|
|
34
|
+
const navButtonCva = UIOverrides.useCva("calendar.navButtonCva", calendarNavButtonDefinition);
|
|
35
|
+
const navIconCva = UIOverrides.useCva("calendar.navIconCva", calendarNavIconDefinition);
|
|
36
|
+
const navigationCva = UIOverrides.useCva("calendar.navigationCva", calendarNavigationDefinition);
|
|
30
37
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
31
38
|
month: "long",
|
|
32
39
|
timeZone: calendarState.timeZone
|
|
@@ -45,28 +52,33 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
45
52
|
const date = getTimeFormatterDate(timeValue, calendarState.timeZone);
|
|
46
53
|
timeLabel = timeFormatter.format(date);
|
|
47
54
|
}
|
|
55
|
+
const sideClassName = headerSideCva({ includesTime: !!includesTime });
|
|
56
|
+
const navButtonClassName = clsx(navButtonCva({}), !!toggleState && "opacity-0");
|
|
48
57
|
return /* @__PURE__ */ jsxs("div", {
|
|
49
|
-
className:
|
|
58
|
+
className: headerCva({}),
|
|
50
59
|
children: [
|
|
51
60
|
/* @__PURE__ */ jsx("div", {
|
|
52
|
-
className:
|
|
61
|
+
className: sideClassName,
|
|
53
62
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
54
63
|
...prevButtonProps,
|
|
55
64
|
isDisabled: !!toggleState,
|
|
56
|
-
className:
|
|
57
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
65
|
+
className: navButtonClassName,
|
|
66
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
67
|
+
icon: ChevronLeft,
|
|
68
|
+
className: navIconCva({}) || void 0
|
|
69
|
+
})
|
|
58
70
|
})
|
|
59
71
|
}),
|
|
60
72
|
/* @__PURE__ */ jsxs($bc25b811ec97a172$export$40258cc1d95ff477, {
|
|
61
73
|
"aria-label": t(($) => $.ui.datePicker.calendarNavigation),
|
|
62
|
-
className:
|
|
74
|
+
className: navigationCva({}),
|
|
63
75
|
children: [
|
|
64
|
-
granularity !== "year" && /* @__PURE__ */ jsx(
|
|
76
|
+
granularity !== "year" && /* @__PURE__ */ jsx(Badge, {
|
|
77
|
+
as: "toggle",
|
|
65
78
|
color: "secondary",
|
|
66
79
|
variant: "subtle",
|
|
67
80
|
iconPosition: "right",
|
|
68
81
|
icon: toggleState === "month" ? ChevronUp : ChevronDown,
|
|
69
|
-
toggle: true,
|
|
70
82
|
isSelected: toggleState === "month",
|
|
71
83
|
onChange: (isSelected) => {
|
|
72
84
|
if (!isSelected) {
|
|
@@ -81,12 +93,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
81
93
|
},
|
|
82
94
|
children: month
|
|
83
95
|
}),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
96
|
+
/* @__PURE__ */ jsx(Badge, {
|
|
97
|
+
as: "toggle",
|
|
85
98
|
color: "secondary",
|
|
86
99
|
variant: "subtle",
|
|
87
100
|
iconPosition: "right",
|
|
88
101
|
icon: toggleState === "year" ? ChevronUp : ChevronDown,
|
|
89
|
-
toggle: true,
|
|
90
102
|
isSelected: toggleState === "year",
|
|
91
103
|
onChange: (isSelected) => {
|
|
92
104
|
if (isSelected) {
|
|
@@ -105,12 +117,12 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
105
117
|
},
|
|
106
118
|
children: year
|
|
107
119
|
}),
|
|
108
|
-
includesTime && /* @__PURE__ */ jsx(
|
|
120
|
+
includesTime && /* @__PURE__ */ jsx(Badge, {
|
|
121
|
+
as: "toggle",
|
|
109
122
|
color: "secondary",
|
|
110
123
|
variant: "subtle",
|
|
111
124
|
iconPosition: "right",
|
|
112
125
|
icon: toggleState === "time" ? ChevronUp : ChevronDown,
|
|
113
|
-
toggle: true,
|
|
114
126
|
isSelected: toggleState === "time",
|
|
115
127
|
onChange: (isSelected) => setToggleState(isSelected ? "time" : null),
|
|
116
128
|
children: timeLabel
|
|
@@ -118,12 +130,15 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
118
130
|
]
|
|
119
131
|
}),
|
|
120
132
|
/* @__PURE__ */ jsx("div", {
|
|
121
|
-
className:
|
|
133
|
+
className: sideClassName,
|
|
122
134
|
children: /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
123
135
|
...nextButtonProps,
|
|
124
136
|
isDisabled: !!toggleState,
|
|
125
|
-
className:
|
|
126
|
-
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
137
|
+
className: navButtonClassName,
|
|
138
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
139
|
+
icon: ChevronRight,
|
|
140
|
+
className: navIconCva({}) || void 0
|
|
141
|
+
})
|
|
127
142
|
})
|
|
128
143
|
})
|
|
129
144
|
]
|
|
@@ -132,6 +147,9 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
|
|
|
132
147
|
//#endregion
|
|
133
148
|
//#region src/components/inputs/DateTime/shared/MonthPicker.tsx
|
|
134
149
|
const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
150
|
+
const { t } = useTranslation("ui");
|
|
151
|
+
const monthCva = UIOverrides.useCva("calendar.monthCva", calendarMonthDefinition);
|
|
152
|
+
const optionTypography = UIOverrides.useMapper("calendar.optionTypography", calendarOptionTypography);
|
|
135
153
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
136
154
|
month: "long",
|
|
137
155
|
timeZone: state.timeZone
|
|
@@ -168,7 +186,7 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
168
186
|
};
|
|
169
187
|
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
170
188
|
autoFocus: true,
|
|
171
|
-
"aria-label":
|
|
189
|
+
"aria-label": t(($) => $.ui.datePicker.month),
|
|
172
190
|
selectionMode: "single",
|
|
173
191
|
layout: "grid",
|
|
174
192
|
...listBoxSelectionProps,
|
|
@@ -202,10 +220,11 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
202
220
|
if (monthNumber !== selectedMonth) return;
|
|
203
221
|
onCommit?.();
|
|
204
222
|
},
|
|
205
|
-
className:
|
|
223
|
+
className: monthCva({ isDisabled: !!isDisabled }),
|
|
206
224
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
207
225
|
as: "span",
|
|
208
|
-
size: "body",
|
|
226
|
+
size: optionTypography({})?.size ?? "body",
|
|
227
|
+
className: optionTypography({})?.className,
|
|
209
228
|
children: month
|
|
210
229
|
})
|
|
211
230
|
}, monthNumber);
|
|
@@ -215,6 +234,9 @@ const MonthPicker = ({ state, onSelectionChange, onDateChange, onCommit, selecte
|
|
|
215
234
|
//#endregion
|
|
216
235
|
//#region src/components/inputs/DateTime/shared/YearPicker.tsx
|
|
217
236
|
const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selectedDate }) => {
|
|
237
|
+
const { t } = useTranslation("ui");
|
|
238
|
+
const yearCva = UIOverrides.useCva("calendar.yearCva", calendarYearDefinition);
|
|
239
|
+
const optionTypography = UIOverrides.useMapper("calendar.optionTypography", calendarOptionTypography);
|
|
218
240
|
const formatter = $1697a7ad3db7b79f$re_export$useDateFormatter({
|
|
219
241
|
year: "numeric",
|
|
220
242
|
timeZone: state.timeZone
|
|
@@ -260,7 +282,7 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
260
282
|
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
261
283
|
ref,
|
|
262
284
|
autoFocus: true,
|
|
263
|
-
"aria-label":
|
|
285
|
+
"aria-label": t(($) => $.ui.datePicker.year),
|
|
264
286
|
selectionMode: "single",
|
|
265
287
|
...listBoxSelectionProps,
|
|
266
288
|
onSelectionChange: (key) => {
|
|
@@ -293,10 +315,11 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
293
315
|
if (index !== selectedYearIndex) return;
|
|
294
316
|
onCommit?.();
|
|
295
317
|
},
|
|
296
|
-
className:
|
|
318
|
+
className: yearCva({ isDisabled: !!isDisabled }),
|
|
297
319
|
children: /* @__PURE__ */ jsx(Typography, {
|
|
298
320
|
as: "span",
|
|
299
|
-
size: "body",
|
|
321
|
+
size: optionTypography({})?.size ?? "body",
|
|
322
|
+
className: optionTypography({})?.className,
|
|
300
323
|
children: year.formatted
|
|
301
324
|
})
|
|
302
325
|
}, index);
|
|
@@ -305,13 +328,20 @@ const YearPicker = ({ state, onSelectionChange, onDateChange, onCommit, selected
|
|
|
305
328
|
};
|
|
306
329
|
//#endregion
|
|
307
330
|
//#region src/components/inputs/DateTime/shared/Calendar.tsx
|
|
308
|
-
const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, hourCycle, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity = "day", setDateValueOnDateSelection = false, onDateSelectionChange, ...props }) => {
|
|
331
|
+
const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, hourCycle, shouldForceLeadingZeros, isTimeDisabled, isTimeReadOnly, isTimeOptional, onApply, onMonthYearChange, onMonthYearCommit, selectedDate, granularity = "day", setDateValueOnDateSelection = false, onDateSelectionChange, ...props }) => {
|
|
309
332
|
const [toggleState, setToggleState] = useState(() => {
|
|
310
333
|
if (granularity === "year") return "year";
|
|
311
334
|
if (granularity === "month") return "month";
|
|
312
335
|
return null;
|
|
313
336
|
});
|
|
314
337
|
const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(props.calendarProps, props.state);
|
|
338
|
+
const settlers = useTimeWheelCommit()?.settlers;
|
|
339
|
+
const changeView = (next) => {
|
|
340
|
+
if (toggleState === "time" && next !== "time" && settlers?.size) flushSync(() => {
|
|
341
|
+
for (const settle of settlers) settle();
|
|
342
|
+
});
|
|
343
|
+
setToggleState(next);
|
|
344
|
+
};
|
|
315
345
|
useEffect(() => {
|
|
316
346
|
if (granularity === "year" && toggleState !== "year") {
|
|
317
347
|
setToggleState("year");
|
|
@@ -451,7 +481,13 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
451
481
|
});
|
|
452
482
|
if (toggleState === "time" && includesTime) return /* @__PURE__ */ jsx("div", {
|
|
453
483
|
className: "flex h-72 w-80 items-center justify-center",
|
|
454
|
-
children: /* @__PURE__ */ jsx(TimePickerForm, {
|
|
484
|
+
children: /* @__PURE__ */ jsx(TimePickerForm, {
|
|
485
|
+
datePickerState,
|
|
486
|
+
hourCycle,
|
|
487
|
+
shouldForceLeadingZeros,
|
|
488
|
+
isDisabled: isTimeDisabled,
|
|
489
|
+
isReadOnly: isTimeReadOnly
|
|
490
|
+
})
|
|
455
491
|
});
|
|
456
492
|
return null;
|
|
457
493
|
};
|
|
@@ -468,7 +504,7 @@ const Calendar = ({ showWeekNumbers, className, includesTime, datePickerState, h
|
|
|
468
504
|
hourCycle,
|
|
469
505
|
granularity,
|
|
470
506
|
toggleState,
|
|
471
|
-
setToggleState
|
|
507
|
+
setToggleState: changeView
|
|
472
508
|
}), /* @__PURE__ */ jsx("div", {
|
|
473
509
|
className: clsx("flex min-h-0 w-full flex-1 flex-col items-center", toggleState !== "year" && "pb-8 md:pb-0"),
|
|
474
510
|
children: getContent()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-
|
|
4
|
-
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-
|
|
5
|
-
import {
|
|
1
|
+
import { Spinner } from "./components/spinner.js";
|
|
2
|
+
import { i as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-CMEJmZSQ.js";
|
|
3
|
+
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-C1-Mt2i0.js";
|
|
4
|
+
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-D5csbNXm.js";
|
|
5
|
+
import { A as $8b141f2f71e88f85$export$f18627323ab57ac0, D as $8b141f2f71e88f85$export$7e319ea407e63bc0, E as $8b141f2f71e88f85$export$2440da353cedad43, k as $8b141f2f71e88f85$export$c5221a78ef73c5e9 } from "./staticDateTimeSegments-BgUrcqXD.js";
|
|
6
6
|
import { Suspense, lazy, useMemo, useState } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { DateFormatter, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
9
|
-
//#region ../../node_modules/.bun/react-stately@3.51.0+
|
|
9
|
+
//#region ../../node_modules/.bun/react-stately@3.51.0+62547eec5a2188e3/node_modules/react-stately/dist/private/datepicker/useDatePickerState.mjs
|
|
10
10
|
function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
11
11
|
let overlayState = $f11fb0bcf1b2687a$export$61c6a8c84e605fb6(props);
|
|
12
12
|
let [value, setValue] = $3e6197669829fe11$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
@@ -110,7 +110,7 @@ function $28aae683a942e141$export$87194bb378cc3ac2(props) {
|
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/components/inputs/DateTime/shared/Calendar.lazy.tsx
|
|
113
|
-
const loadCalendar = () => import("./Calendar-
|
|
113
|
+
const loadCalendar = () => import("./Calendar-DdneUEhM.js");
|
|
114
114
|
const CalendarRenderer = lazy(() => loadCalendar().then(({ Calendar }) => ({ default: Calendar })));
|
|
115
115
|
/** Fetches the calendar chunk ahead of the dialog opening (hover, focus). */
|
|
116
116
|
const preloadCalendar = () => {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
2
|
+
import { dn as CheckboxVariantProps } from "./link.cva-ZhpQz3P0.js";
|
|
3
|
+
import { n as Removed } from "./hints-B09_WDhL.js";
|
|
4
|
+
import { t as FormFieldErrorProps } from "./FormFieldError-C7yOdjzQ.js";
|
|
5
|
+
import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
|
|
6
|
+
import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
|
|
7
|
+
import { ReactNode, Ref } from "react";
|
|
8
|
+
import { CheckboxProps } from "react-aria-components";
|
|
9
|
+
//#region src/components/inputs/Checkbox/Checkbox.d.ts
|
|
10
|
+
interface CheckboxBaseProps extends Omit<FormFieldErrorProps, "isHidden">, CheckboxVariantProps, Omit<CheckboxProps, "className" | UnsupportedAriaFieldProps> {
|
|
11
|
+
ref?: Ref<HTMLLabelElement>;
|
|
12
|
+
/** The label, rendered next to the box. */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Hides the label visually; a string label stays the accessible name. Defaults to `UIConfig.input.hideLabel`. */
|
|
15
|
+
hideLabel?: boolean;
|
|
16
|
+
/** Skips the error text below the checkbox; the invalid state still applies. */
|
|
17
|
+
hideError?: boolean;
|
|
18
|
+
/** Calls `onBlur` after every change. Defaults to `UIConfig.checkbox.fireBlurOnChange`. */
|
|
19
|
+
fireBlurOnChange?: boolean;
|
|
20
|
+
/** Icon shown while checked: a component such as a lucide icon, or an element. */
|
|
21
|
+
selectedIcon?: IconSlotIcon;
|
|
22
|
+
/** Icon shown while indeterminate: a component such as a lucide icon, or an element. */
|
|
23
|
+
indeterminateIcon?: IconSlotIcon;
|
|
24
|
+
/** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
|
|
25
|
+
isDirty?: boolean;
|
|
26
|
+
labelClassName?: string;
|
|
27
|
+
/** @deprecated Pass the label as children. */
|
|
28
|
+
label?: Removed<"Pass the label as children: <Checkbox>Label</Checkbox>">;
|
|
29
|
+
/** @deprecated Use `isSelected`. */
|
|
30
|
+
checked?: Removed<"Use `isSelected`">;
|
|
31
|
+
/** @deprecated Use `onChange`. */
|
|
32
|
+
onCheckedChange?: Removed<"Use `onChange`: (isSelected: boolean) => void">;
|
|
33
|
+
/** @deprecated Never had an effect. */
|
|
34
|
+
isHidden?: Removed<"Use `hideError` to drop the error text; render the checkbox conditionally to hide it">;
|
|
35
|
+
/** @deprecated Use `onChange`, or `field.onValueChange` on a bound checkbox. */
|
|
36
|
+
onValueChange?: Removed<"Use `onChange`, or `field.onValueChange` when the input is bound with `field`">;
|
|
37
|
+
}
|
|
38
|
+
/** Props for a `Checkbox` that owns its state through `isSelected`/`defaultSelected`/`onChange`. */
|
|
39
|
+
type StandaloneCheckboxProps = CheckboxBaseProps & {
|
|
40
|
+
field?: never;
|
|
41
|
+
};
|
|
42
|
+
/** Props for a `Checkbox` bound to a form field; the form owns the value, change, and blur handling. */
|
|
43
|
+
type ControlledCheckboxProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneCheckboxProps, TFieldValues, "isSelected", "a boolean">;
|
|
44
|
+
/** Props for `Checkbox`: either its own value props, or `field={{ form, name }}` to bind a form field. */
|
|
45
|
+
type CheckboxProps$1<TFieldValues extends FieldValues = FieldValues> = StandaloneCheckboxProps | ControlledCheckboxProps<TFieldValues>;
|
|
46
|
+
declare const CheckboxComponent: <TFieldValues extends FieldValues = FieldValues>(props: CheckboxProps$1<TFieldValues>) => import("react").JSX.Element;
|
|
47
|
+
declare const Checkbox: typeof CheckboxComponent;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { StandaloneCheckboxProps as i, CheckboxProps$1 as n, ControlledCheckboxProps as r, Checkbox as t };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
-
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
4
|
-
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-
|
|
5
|
-
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
6
|
-
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-
|
|
7
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
8
|
-
import {
|
|
3
|
+
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Q5Oc6oX2.js";
|
|
4
|
+
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-VTcaaLO8.js";
|
|
5
|
+
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D7Nqkw1l.js";
|
|
6
|
+
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-4jZarkjk.js";
|
|
7
|
+
import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
|
|
8
|
+
import { n as FieldController } from "./form.binding-Brdjq2yr.js";
|
|
9
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
10
|
+
import { c as checkboxTypography, s as checkboxIndicatorClass, t as checkboxContentClassName } from "./checkbox.cva-qU_q0lSX.js";
|
|
9
11
|
import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
|
|
10
12
|
import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
|
|
11
13
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
12
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
14
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-Beu8T1g9.js";
|
|
13
15
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
14
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
17
|
import { mergeProps } from "react-aria/mergeProps";
|
|
@@ -23,7 +25,7 @@ import { useCheckboxGroup, useCheckboxGroupItem } from "react-aria/useCheckboxGr
|
|
|
23
25
|
import { useCheckbox } from "react-aria/useCheckbox";
|
|
24
26
|
import { useCheckboxGroupState } from "react-stately/useCheckboxGroupState";
|
|
25
27
|
import { useToggleState } from "react-stately/useToggleState";
|
|
26
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+
|
|
28
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+6f4b9a1cfb20c0ae/node_modules/react-aria-components/dist/private/Checkbox.mjs
|
|
27
29
|
const $ed8ccb2e23e76301$export$b085522c77523c51 = /*#__PURE__*/ createContext(null);
|
|
28
30
|
const $ed8ccb2e23e76301$export$baf37c4be89255b8 = /*#__PURE__*/ createContext(null);
|
|
29
31
|
const $ed8ccb2e23e76301$export$139c5b8563afc1fc = /*#__PURE__*/ createContext(null);
|
|
@@ -156,8 +158,7 @@ const CheckboxBase = (props) => {
|
|
|
156
158
|
const ui = UIConfig.useConfig();
|
|
157
159
|
const checkboxTypographyMap = UIOverrides.useMapper("checkbox.typography", checkboxTypography);
|
|
158
160
|
const checkboxContentClassNameMap = UIOverrides.useMapper("checkbox.contentClassName", checkboxContentClassName);
|
|
159
|
-
const { className, children, isDisabled,
|
|
160
|
-
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
161
|
+
const { className, children, isDisabled, isRequired, error, isInvalid, hideError, labelClassName, variant: variantProp, hideLabel: hideLabelProp, fireBlurOnChange: fireBlurOnChangeProp, onChange, onBlur, ...rest } = props;
|
|
161
162
|
const variant = variantProp ?? ui.checkbox.variant;
|
|
162
163
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
163
164
|
const fireBlurOnChange = fireBlurOnChangeProp ?? ui.checkbox.fireBlurOnChange;
|
|
@@ -168,7 +169,7 @@ const CheckboxBase = (props) => {
|
|
|
168
169
|
const formFieldErrorProps = {
|
|
169
170
|
id: accessibility.errorMessageId,
|
|
170
171
|
error,
|
|
171
|
-
isDisabled
|
|
172
|
+
isDisabled
|
|
172
173
|
};
|
|
173
174
|
const handleChange = (isSelected) => {
|
|
174
175
|
onChange?.(isSelected);
|
|
@@ -176,9 +177,10 @@ const CheckboxBase = (props) => {
|
|
|
176
177
|
};
|
|
177
178
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs($ed8ccb2e23e76301$export$48513f6b9f8ce62d, {
|
|
178
179
|
...rest,
|
|
179
|
-
isDisabled
|
|
180
|
-
isInvalid: !!error,
|
|
180
|
+
isDisabled,
|
|
181
|
+
isInvalid: isInvalid || !!error,
|
|
181
182
|
isRequired,
|
|
183
|
+
validationBehavior: "aria",
|
|
182
184
|
"aria-label": rest["aria-label"] ?? (!rest["aria-labelledby"] && hideLabel && typeof children === "string" ? children : void 0),
|
|
183
185
|
"aria-describedby": accessibility.describedBy,
|
|
184
186
|
"aria-errormessage": rest["aria-errormessage"] ?? accessibility.errorMessageId,
|
|
@@ -204,7 +206,31 @@ const CheckboxBase = (props) => {
|
|
|
204
206
|
})]
|
|
205
207
|
}), !hideError && /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
|
|
206
208
|
};
|
|
207
|
-
const
|
|
209
|
+
const ControlledCheckbox = (props) => {
|
|
210
|
+
const { field, ref, ...innerProps } = props;
|
|
211
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
212
|
+
control: field.form,
|
|
213
|
+
name: field.name,
|
|
214
|
+
onValueChange: field.onValueChange,
|
|
215
|
+
onBlur: field.onBlur,
|
|
216
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(CheckboxBase, {
|
|
217
|
+
...innerProps,
|
|
218
|
+
fireBlurOnChange: false,
|
|
219
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
220
|
+
isSelected: field.value ?? false,
|
|
221
|
+
onChange: (value) => {
|
|
222
|
+
field.onChange(value);
|
|
223
|
+
field.onValueCommit();
|
|
224
|
+
},
|
|
225
|
+
onBlur: field.onBlur,
|
|
226
|
+
name: field.name,
|
|
227
|
+
isDirty,
|
|
228
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
229
|
+
error: props.error ?? error?.message
|
|
230
|
+
})
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
const CheckboxComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledCheckbox, { ...props }) : /* @__PURE__ */ jsx(CheckboxBase, { ...props });
|
|
208
234
|
const Checkbox = memo(CheckboxComponent);
|
|
209
235
|
//#endregion
|
|
210
236
|
export { CheckboxBase as n, $ed8ccb2e23e76301$export$4aa08d5625cb8ead as r, Checkbox as t };
|