@povio/ui 5.0.0-rc.2 → 5.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rulesync/rules/ui-buttons-and-content.md +3 -1
- package/README.md +50 -7
- package/dist/{Accordion-CzFKi8Bp.js → Accordion-BzwO4_ml.js} +20 -136
- package/dist/{Alert-T25LY8ZL.js → Alert-CnvEb1D_.js} +16 -12
- package/dist/{Alert-f1dG-4Uy.d.ts → Alert-DfiJbKH0.d.ts} +2 -1
- package/dist/{AlertDialog-B6R2MbNg.d.ts → AlertDialog-OWTbR4km.d.ts} +3 -3
- package/dist/{Autocomplete-CQ63Cynd.d.ts → Autocomplete-BwNHp8fy.d.ts} +1 -1
- package/dist/{Badge-YKlKz-Jy.d.ts → Badge-CBNpj823.d.ts} +8 -5
- package/dist/BadgeButton-Ccgt3oGO.d.ts +15 -0
- package/dist/{BottomSheet-DvqBvth_.js → BottomSheet-BXLE3161.js} +7 -6
- package/dist/{BottomSheet-xaymO7aQ.d.ts → BottomSheet-DbQuzfAB.d.ts} +1 -1
- package/dist/{BottomSheet.lazy-CGBRPve_.d.ts → BottomSheet.lazy-D9LCEo7s.d.ts} +1 -1
- package/dist/{Breadcrumbs-DyriI-Bi.d.ts → Breadcrumbs-CUV6CU8Q.d.ts} +1 -1
- package/dist/{Breadcrumbs-DiIYJAWf.js → Breadcrumbs-FF8hMfXd.js} +24 -38
- package/dist/Button-C5rv4Cr2.js +506 -0
- package/dist/{Button-BZ3is6IU.d.ts → Button-D-4qb0IR.d.ts} +3 -3
- package/dist/{ButtonContent-B2_dZ6vA.js → ButtonContent-c7lJayVQ.js} +10 -8
- package/dist/{Calendar-DzQApBCy.js → Calendar-BTjajO6i.js} +25 -148
- package/dist/{CheckContent-DZ7Gk8GS.js → CheckContent-D7sZPmzx.js} +2 -2
- package/dist/{Checkbox-BepzfVfK.js → Checkbox-CV1ILXXO.js} +6 -6
- package/dist/{Checkbox-CHpgW3fI.d.ts → Checkbox-DVTWaMKa.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-B3lnOjsU.js → CheckboxCheckmark-CpC3wlMs.js} +11 -11
- package/dist/{CheckboxGroup-CXrR3A-c.d.ts → CheckboxGroup-DGF12cmB.d.ts} +3 -3
- package/dist/ComponentGallery-BWiPGUL8.js +3665 -0
- package/dist/{DatePicker-B3l9TEjW.d.ts → DatePicker-8xSs_jNd.d.ts} +3 -3
- package/dist/{DatePicker-CI87jC4_.js → DatePicker-DOLL7mkc.js} +17 -16
- package/dist/{DatePickerInput-UBZcTmdv.js → DatePickerInput-BLBcySA2.js} +16 -26
- package/dist/{DatePickerInput-CZTEsrS0.d.ts → DatePickerInput-D81ZJ3fT.d.ts} +3 -3
- package/dist/{DateRangePicker-BX2O5zA8.js → DateRangePicker-BF-1CztH.js} +23 -194
- package/dist/{DateRangePicker-DKkc2B3n.d.ts → DateRangePicker-Bfq-yDm7.d.ts} +3 -3
- package/dist/{DateTimePicker-CVfkp45w.js → DateTimePicker-Cj0qvJUz.js} +16 -15
- package/dist/{DateTimePicker-IHr-wPq8.d.ts → DateTimePicker-D4lHyf6P.d.ts} +3 -3
- package/dist/{Dialog-DdRP4YFC.js → Dialog-9manOgMA.js} +4 -4
- package/dist/{Dialog-CXoVeIkU.js → Dialog-CKLkS00H.js} +10 -2
- package/dist/{Dialog-DEbI_9S-.d.ts → Dialog-CW93T9X1.d.ts} +3 -2
- package/dist/{DropdownMenu-zrodtd44.js → DropdownMenu-5jmtgLXd.js} +8 -6
- package/dist/{DropdownMenu-CWDhk3XA.d.ts → DropdownMenu-JNpYT4-3.d.ts} +3 -2
- package/dist/{DropdownMenuDesktop-CGYxsavQ.js → DropdownMenuDesktop-Cl9gZVq0.js} +9 -38
- package/dist/{FileInput-Dz1eESr_.js → FileInput-Br5DQaGQ.js} +10 -9
- package/dist/{FileInput-BQbn77bE.d.ts → FileInput-C4CE5kuP.d.ts} +5 -4
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-D3Io7Is5.js → FileUpload--7ub3EZO.js} +53 -140
- package/dist/{FileUpload-qySCMcLn.d.ts → FileUpload-CR7bZxV1.d.ts} +1 -1
- package/dist/{FileUploadContainer-qOyGvb5J.d.ts → FileUploadContainer-042ztsaL.d.ts} +1 -1
- package/dist/{Form-u_N_6mwo.d.ts → Form-BJ12MjE-.d.ts} +1 -1
- package/dist/{FormField-CHD4OJOt.js → FormField-B99dLt8o.js} +9 -9
- package/dist/{FormField-B0miX3gu.d.ts → FormField-Byiehm9y.d.ts} +1 -1
- package/dist/{FormFieldError-QRAFHUTt.js → FormFieldError-DeOHHLo2.js} +1 -1
- package/dist/FormFieldHeaderTooltip-BV2Ju4oB.js +17 -0
- package/dist/{IconButton-KXecZgYX.d.ts → IconButton-D4thBurp.d.ts} +2 -2
- package/dist/IconSlot-DSK7qNxc.js +79 -0
- package/dist/{InlineIconButton-CbKZ2U_a.d.ts → InlineIconButton-BeJCjl-q.d.ts} +2 -2
- package/dist/{InlineTooltipWrapper-g5yoeH1B.js → InlineTooltipWrapper-BpApaGXV.js} +3 -3
- package/dist/{Input-efmPwk8f.d.ts → Input-DOanwj3l.d.ts} +3 -3
- package/dist/{InputContent-DuBa9FuI.d.ts → InputContent-CXuP1ghQ.d.ts} +3 -3
- package/dist/{InputItem-2zf6QI5L.js → InputItem-CIxbTxZu.js} +11 -11
- package/dist/{Inputs-C-w03Q_F.d.ts → Inputs-DA73LmLc.d.ts} +1 -1
- package/dist/{Inputs-BceDTmdT.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/{Link-QYpprkN1.d.ts → Link-Ow9H7kNv.d.ts} +3 -2
- package/dist/{ListBox-B7DW1S7n.js → ListBox-CL8Ar4Q_.js} +5 -4
- package/dist/{MenuItem--Mjd_yK8.d.ts → MenuItem-DHyqOqln.d.ts} +1 -1
- package/dist/{Modal-CoFt5PGP.js → Modal-w60dVQcb.js} +1 -1
- package/dist/{NumberField-z2JatYK0.d.ts → NumberField-Cb9Gf6QJ.d.ts} +3 -3
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-BxVrHq8R.js → NumberRangeInput-B8-LHfg3.js} +9 -8
- package/dist/{NumberRangeInput-Chai3iEi.d.ts → NumberRangeInput-BfbJQqzn.d.ts} +2 -2
- package/dist/{Pagination-CXtIDclf.d.ts → Pagination-CwQu5Py8.d.ts} +1 -1
- package/dist/{PaginationList-CXG4jWFD.d.ts → PaginationList-DMRUGtf8.d.ts} +1 -1
- package/dist/{PaginationList-0bAmvXC0.js → PaginationList-DtvuP63b.js} +2 -2
- package/dist/{PasswordInput-ub2TQxef.d.ts → PasswordInput-CLwFUgl0.d.ts} +1 -1
- package/dist/{Popover-DUKH0q9u.d.ts → Popover-BTHPteIh.d.ts} +2 -2
- package/dist/{Progress-DQWiFP0L.js → Progress-B3mY9rIP.js} +2 -2
- package/dist/{Progress-Dho39FDs.d.ts → Progress-CjWOR38H.d.ts} +2 -1
- package/dist/{QuerySelect-Bo1K6gi_.d.ts → QuerySelect-BGxb6Y0K.d.ts} +2 -2
- package/dist/{RadioGroup-B_zJdn4y.d.ts → RadioGroup-CZg2kIMk.d.ts} +3 -3
- package/dist/{RadioGroup-SSZYch-J.js → RadioGroup-DOw3PRoX.js} +13 -13
- package/dist/{RichTextEditor-D6RewmRj.js → RichTextEditor-D4yN7Wj7.js} +52 -133
- package/dist/{RichTextEditor-B_JX3nor.d.ts → RichTextEditor-YxuRUlI7.d.ts} +1 -1
- package/dist/{Select-CuZDkeQs.js → Select-UR0ec2Ux.js} +5 -4
- package/dist/{Select-DeapZMYx.d.ts → Select-pHbyJdZJ.d.ts} +1 -1
- package/dist/{SelectBase-7SE9Za2r.d.ts → SelectBase-Omiq2D3M.d.ts} +3 -3
- package/dist/{Slider-DJ9K_a-x.js → Slider-CzEmKYBF.js} +11 -11
- package/dist/{Slider-BFViQmM3.d.ts → Slider-EYlGCLWe.d.ts} +1 -1
- package/dist/{Spinner-BEYBu85B.js → Spinner-BeVTUzzx.js} +1 -1
- package/dist/{Spinner-BbcI6IOb.d.ts → Spinner-DbXeDOa2.d.ts} +2 -1
- package/dist/{SplitButton-lL87EcBL.d.ts → SplitButton-D9ngY1rJ.d.ts} +3 -3
- package/dist/{Stepper-C1YPgTBG.js → Stepper-Cp5vbL5g.js} +4 -117
- package/dist/{Stepper-hlhViuaK.d.ts → Stepper-TATlHZhQ.d.ts} +9 -8
- package/dist/{Switch-JxRmH1dX.js → Switch-CqnGEdeD.js} +11 -11
- package/dist/{Switch-DPftmB1b.d.ts → Switch-s_EPn0Jz.d.ts} +1 -1
- package/dist/Table-piX1SWvN.js +689 -0
- package/dist/Tag-AHfV_XSf.d.ts +44 -0
- package/dist/{Tag-HiDH438e.js → Tag-DPg5sL1Z.js} +22 -21
- package/dist/{TextArea-gikUKKDl.js → TextArea-D8WkKsGn.js} +7 -7
- package/dist/{TextArea-BhrCBGbq.d.ts → TextArea-l_keyLK7.d.ts} +2 -2
- package/dist/{TextButton-DnXRykhF.d.ts → TextButton-XUhV_1s0.d.ts} +4 -4
- package/dist/{TimePicker-CmT89X7v.d.ts → TimePicker-B1POvGWs.d.ts} +2 -2
- package/dist/{TimePicker-DtNTOOGr.js → TimePicker-C4taAOFQ.js} +15 -14
- package/dist/Toast-DtG3pA61.js +53 -0
- package/dist/{Toast-B4cXs2rj.d.ts → Toast-ruXqONDA.d.ts} +1 -1
- package/dist/{ToastContainer-BbsMIwtC.js → ToastContainer-qgpzMFD4.js} +4 -3
- package/dist/{ToggleButton-BGuzPJDO.d.ts → ToggleButton-7aP8Jb11.d.ts} +2 -2
- package/dist/{ToggleGroup-D9CFdM5-.d.ts → ToggleGroup-CRFDIPGZ.d.ts} +1 -1
- package/dist/{ToggleGroup-Cl0NS3fe.js → ToggleGroup-DOk27fgI.js} +29 -123
- package/dist/{Tooltip-aE1Vswxz.js → Tooltip-CpG1nz7Y.js} +8 -49
- package/dist/{Tooltip-D7dNwGy9.d.ts → Tooltip-DHv6vAqW.d.ts} +6 -5
- package/dist/{TooltipWrapper-CRf-JFeo.js → TooltipWrapper-3jyN0Wss.js} +4 -4
- package/dist/{Typography-B0Gp1lpc.js → Typography-LU4z2pR1.js} +2 -2
- package/dist/{Typography-BiuidzDC.d.ts → Typography-XljT9s02.d.ts} +1 -1
- package/dist/accordion.cva-CL1bVscW.js +129 -0
- package/dist/{autocomplete-BJ7rqWa4.d.ts → autocomplete-DeERHN8W.d.ts} +2 -2
- package/dist/badgeButton.cva-B2bgCQP6.d.ts +41 -0
- package/dist/badgeButton.cva-CvN4CTx5.js +300 -0
- package/dist/breadcrumbs.cva-7zzdDhVR.js +27 -0
- package/dist/{button.cva-BvRI-3Gn.d.ts → button.cva-C7kEhgoA.d.ts} +7 -6
- package/dist/{buttonContent.cva-BDT_CReI.d.ts → buttonContent.cva-DPIlROA9.d.ts} +2 -2
- package/dist/{checkbox-BfcE8J5P.d.ts → checkbox-DxIPDTK5.d.ts} +1 -1
- package/dist/{checkbox-group-CHs2wFHS.d.ts → checkbox-group-B3BOVshI.d.ts} +1 -1
- package/dist/{checkbox.cva-gv87kr1W.d.ts → checkbox.cva-t1Ox50hy.d.ts} +4 -3
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +4 -4
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +5 -4
- package/dist/components/badge-button.d.ts +2 -0
- package/dist/components/{pill-button.js → badge-button.js} +13 -12
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +56 -37
- 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 +1 -1
- package/dist/components/checkbox-group.js +6 -6
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- 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.js +3 -3
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +2 -0
- package/dist/components/icon-slot.js +2 -0
- package/dist/components/inline-icon-button.d.ts +1 -1
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +32 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +10 -9
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.d.ts +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +34 -30
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +6 -5
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/query-autocomplete.d.ts +2 -2
- package/dist/components/query-autocomplete.js +2 -2
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +3 -3
- package/dist/components/radio-group.d.ts +1 -1
- 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/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.d.ts +1 -1
- package/dist/components/text-button.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- 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.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/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-configurator-theme.d.ts +2 -0
- package/dist/config/ui-configurator-theme.js +2 -0
- package/dist/config/ui-configurator-vite.d.ts +10 -0
- package/dist/config/ui-configurator-vite.js +174 -0
- package/dist/config/ui-configurator.d.ts +934 -0
- package/dist/config/ui-configurator.js +4555 -0
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-DPAKsLYl.d.ts → confirmation.context-BOeEVczb.d.ts} +1 -1
- package/dist/{date-picker-BYFWSbN8.d.ts → date-picker-DnxDmlOW.d.ts} +1 -1
- package/dist/{date-range-picker-BaaXOObm.d.ts → date-range-picker-DHDOSvHN.d.ts} +1 -1
- package/dist/{date-time-picker-D42cTCgx.d.ts → date-time-picker-UkTa0OJ8.d.ts} +1 -1
- package/dist/datePickerInput.cva-Cd7UUN61.js +14 -0
- package/dist/{datePickerValue.utils-CFCY-fRJ.js → datePickerValue.utils-DCgoSrP3.js} +9 -9
- package/dist/{dialog.cva---xiOXMQ.js → dialog.cva-COhDZaVl.js} +4 -4
- package/dist/{dist-B8h0VT0E.js → dist-CAdwxJbe.js} +1 -208
- package/dist/{dom.utils-DjuRTR6U.js → dom.utils-D1AopHx9.js} +1 -1
- package/dist/dropdownMenu.cva-DvEmX0bs.js +34 -0
- package/dist/{dynamicInputs-wEEikYeg.d.ts → dynamicInputs-iP39lVKf.d.ts} +102 -100
- package/dist/{fieldAdapter-C0lCFmf0.js → fieldAdapter-DjYls12j.js} +1 -1
- package/dist/{file-input-C56GXRwz.d.ts → file-input-DkbkdI7l.d.ts} +1 -1
- package/dist/{file-upload-Bx0X534g.d.ts → file-upload-CTsPhxJk.d.ts} +2 -2
- package/dist/fileUpload.cva-ujmStxB1.js +42 -0
- package/dist/{fileUpload.types-DWuQKA2l.d.ts → fileUpload.types-n5FxK_F-.d.ts} +2 -2
- package/dist/hooks/use-filters.js +1 -1
- package/dist/iconSlot.cva-CnpFzAOR.d.ts +21 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +2 -1
- package/dist/index.d.ts +87 -86
- package/dist/index.js +57 -46
- package/dist/info-iUmX3uDk.js +32 -0
- package/dist/{input-D2kGX0hW.d.ts → input-CdQNCPgH.d.ts} +1 -1
- package/dist/{input.cva-BhDJxc7r.d.ts → input.cva-BsHgYa-L.d.ts} +3 -2
- package/dist/{input.cva-BcXyC1vZ.js → input.cva-DJA8ovm_.js} +9 -9
- package/dist/{link.context-CDZn6oL2.d.ts → link.context-D5qyz9Rf.d.ts} +1 -1
- package/dist/link.cva-DMTHZiJG.js +12 -0
- package/dist/{number-field-Bw2GKr0s.d.ts → number-field-CUDbenNV.d.ts} +1 -1
- package/dist/{number-range-input-Dqe6x2dR.d.ts → number-range-input-DZGrcvjL.d.ts} +1 -1
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/{password-input-DepKyhh3.d.ts → password-input-fYN20cQO.d.ts} +1 -1
- package/dist/{popover.cva-BJSkLndY.js → popover.cva-Bhud1wnp.js} +1 -1
- package/dist/popoverAnimation-DEZSvKP8.js +4 -0
- package/dist/{query-autocomplete-BSpHin_R.d.ts → query-autocomplete-CfuQeiYG.d.ts} +2 -2
- package/dist/{query-select-m1DCp4UF.d.ts → query-select-CuT_sE6a.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-CrbVUmvl.d.ts → queryAutocomplete.types-tl3r6iaY.d.ts} +2 -2
- package/dist/{radio-group-Civ3Fb70.d.ts → radio-group-B3ccPf0p.d.ts} +1 -1
- package/dist/{radio.cva-BlOrmxzf.d.ts → radio.cva-DN9VQ3Kb.d.ts} +4 -3
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/autocomplete.js +1 -1
- package/dist/rhf/checkbox-group.d.ts +2 -2
- package/dist/rhf/checkbox-group.js +1 -1
- package/dist/rhf/checkbox.d.ts +2 -2
- package/dist/rhf/checkbox.js +2 -2
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-picker.js +2 -2
- package/dist/rhf/date-range-picker.d.ts +2 -2
- package/dist/rhf/date-range-picker.js +2 -2
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.js +2 -2
- package/dist/rhf/file-input.d.ts +2 -2
- package/dist/rhf/file-input.js +2 -2
- package/dist/rhf/file-upload.d.ts +2 -2
- package/dist/rhf/file-upload.js +2 -2
- package/dist/rhf/input.d.ts +2 -2
- package/dist/rhf/input.js +1 -1
- package/dist/rhf/inputs.d.ts +2 -2
- package/dist/rhf/number-field.d.ts +2 -2
- package/dist/rhf/number-field.js +1 -1
- package/dist/rhf/number-range-input.d.ts +2 -2
- package/dist/rhf/number-range-input.js +2 -2
- package/dist/rhf/password-input.d.ts +2 -2
- package/dist/rhf/password-input.js +1 -1
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-autocomplete.js +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/query-select.js +1 -1
- package/dist/rhf/radio-group.d.ts +2 -2
- package/dist/rhf/radio-group.js +2 -2
- package/dist/rhf/rich-text-editor.d.ts +2 -2
- package/dist/rhf/rich-text-editor.js +2 -2
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/select.js +2 -2
- package/dist/rhf/slider.d.ts +2 -2
- package/dist/rhf/slider.js +2 -2
- package/dist/rhf/switch.d.ts +2 -2
- package/dist/rhf/switch.js +2 -2
- package/dist/rhf/text-area.d.ts +2 -2
- package/dist/rhf/text-area.js +2 -2
- package/dist/rhf/time-picker.d.ts +2 -2
- package/dist/rhf/time-picker.js +2 -2
- package/dist/rhf/toggle-group.d.ts +2 -2
- package/dist/rhf/toggle-group.js +2 -2
- package/dist/{rhf-D8B7mLO1.js → rhf-t348TCCL.js} +1 -1
- package/dist/rhf.d.ts +87 -86
- package/dist/rhf.js +57 -46
- package/dist/{rich-text-editor-DvNEOIux.d.ts → rich-text-editor-B-Onl7T8.d.ts} +1 -1
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/{select-DY5QtwqI.d.ts → select-B4a52eWW.d.ts} +2 -2
- package/dist/selectDesktop.cva-CHAMxhfO.js +69 -0
- package/dist/{slider-CrB-Gkcv.d.ts → slider-dNj9jruO.d.ts} +1 -1
- package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
- package/dist/{staticSelect.utils-Cm7MoDVG.js → staticSelect.utils-uHa8f_c6.js} +33 -231
- package/dist/stepper.cva-CZ0Kj-s7.js +116 -0
- package/dist/style-merge.util-zLimKwt6.d.ts +40 -0
- package/dist/styles/color-utilities.css +13 -25
- package/dist/styles/configurator.css +2365 -0
- package/dist/styles/input.d.ts +1 -1
- package/dist/{switch-8WzXfTS8.d.ts → switch-C--iWnY8.d.ts} +1 -1
- package/dist/switch.cva-CWNzmdRc.d.ts +16 -0
- package/dist/table.cva-DlMT-zLD.js +48 -0
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +3 -3
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-field.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +2 -1
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.d.ts +71 -70
- package/dist/tanstack.js +68 -55
- package/dist/{text-area-CqnKRWKq.d.ts → text-area-DQAtpOQp.d.ts} +1 -1
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/theme-model-T1zIdBg8.d.ts +12 -0
- package/dist/{time-picker-Cz1GIzpF.d.ts → time-picker-DoGfbil6.d.ts} +1 -1
- package/dist/{toast.cva-Cj6o2Rmu.d.ts → toast.cva-By5lvAfr.d.ts} +3 -2
- package/dist/toast.cva-C_L_RffH.js +163 -0
- package/dist/{toast.runtime-CIKvmkjo.js → toast.runtime-cxex9e4E.js} +2 -1
- package/dist/{toggle-group-CPkKHm1t.d.ts → toggle-group-C1nMDOwz.d.ts} +1 -1
- package/dist/toggleGroup.cva-MbpaEBg1.js +35 -0
- package/dist/{toggleGroup.types-DD6uRI5G.d.ts → toggleGroup.types-Bp43zbSQ.d.ts} +2 -1
- package/dist/tooltip.cva-BIzlOXHH.js +48 -0
- package/dist/{tooltipWrapper.cva-CUu8pI-a.js → tooltipWrapper.cva-BBQ4ic3D.js} +1 -1
- package/dist/{typography.cva-jtp6WWUH.d.ts → typography.cva-D1JOEYl-.d.ts} +2 -1
- package/dist/{typography.cva-CJZZSGXW.js → typography.cva-iD15k56p.js} +1 -1
- package/dist/{uiConfig.context-D2eUIPHn.js → uiConfig.context-BS3r_kTS.js} +1 -1
- package/dist/{uiConfig.context-aoarCLYX.d.ts → uiConfig.context-DeBX2beU.d.ts} +8 -8
- package/dist/{uiOverrides.context-Bfm2n-n8.js → uiOverrides.context-BTCH9y5a.js} +2 -2
- package/dist/{uiOverrides.context-C3xb4Ttq.d.ts → uiOverrides.context-DEp139He.d.ts} +11 -44
- package/dist/underline-66hmELxa.js +81 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/{useBreakpoint-BOA-MyoT.js → useBreakpoint-DQoMN-BG.js} +1 -1
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-D2_Qm26-.js → useFieldAccessibility-ScC6Mtd5.js} +15 -8
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-BYFn3LH8.js → useFormAutosave-DfuP7drj.js} +2 -2
- package/dist/{useStaticInputHandoff-DB9PgioW.js → useStaticInputHandoff-NeZVnci-.js} +14 -11
- package/dist/useTableColumnConfig-BTGZiluz.js +892 -0
- package/dist/{useTableNav-D9mICzNW.d.ts → useTableNav-Ckj5PBRk.d.ts} +3 -2
- package/dist/{useToast-DMSm59Y6.d.ts → useToast-yreVCUer.d.ts} +1 -1
- package/package.json +31 -5
- package/src/configurator/README.md +71 -0
- package/dist/Button-sn52l1Yv.js +0 -506
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/FormFieldHeaderTooltip-Dl24v4_j.js +0 -45
- package/dist/Link-Btxj2gzg.js +0 -42
- package/dist/PillButton-DASBXLFB.d.ts +0 -15
- package/dist/Tag-Cch_68QO.d.ts +0 -43
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/components/pill-button.d.ts +0 -2
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/pillButton.cva-BEWuu0qm.d.ts +0 -34
- package/dist/pillButton.cva-DlP5tOT5.js +0 -197
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-DR8bJw-F.js +0 -3605
- package/dist/switch.cva-8T0fw31t.d.ts +0 -15
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
- package/dist/useTableColumnConfig-CcJxu14U.js +0 -1625
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/inputs/FormField/formFieldError.cva.ts
|
|
5
5
|
const formFieldErrorDefinition = UIOverrides.defineConfig({
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as Info } from "./info-iUmX3uDk.js";
|
|
2
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
4
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
5
|
+
import { t as $a3be900807531178$re_export$Focusable } from "./exports-BNrTn8Tj.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/inputs/FormField/FormFieldHeaderTooltip.tsx
|
|
8
|
+
const FormFieldHeaderTooltip = ({ text, isDisabled }) => /* @__PURE__ */ jsx(Tooltip, {
|
|
9
|
+
text,
|
|
10
|
+
children: /* @__PURE__ */ jsx($a3be900807531178$re_export$Focusable, { children: /* @__PURE__ */ jsx(IconSlot, {
|
|
11
|
+
icon: Info,
|
|
12
|
+
className: clsx(isDisabled ? "text-state-surface-default-popover-foreground/disabled" : "text-surface-default-popover-foreground hover:text-state-surface-default-popover-foreground/hover"),
|
|
13
|
+
tabIndex: 0
|
|
14
|
+
}) })
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FormFieldHeaderTooltip as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
2
|
-
import { n as ButtonAppearanceProps } from "./Button-
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-Ow9H7kNv.js";
|
|
2
|
+
import { n as ButtonAppearanceProps } from "./Button-D-4qb0IR.js";
|
|
3
3
|
import { FC, ReactElement, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.d.ts
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
import { cloneElement, isValidElement } from "react";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/shared/IconSlot/iconSlot.cva.ts
|
|
7
|
+
const iconSlotDefinition = UIOverrides.defineConfig({ base: ["inline-flex size-icons-size shrink-0 items-center justify-center", "[&>svg]:size-[calc(var(--icons-scale,0.8)*100%)] [&>svg]:shrink-0"] });
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/shared/IconSlot/IconSlot.tsx
|
|
10
|
+
/** Reserves the Figma icons-size token and centers a smaller SVG inside it. */
|
|
11
|
+
const IconSlot = (t0) => {
|
|
12
|
+
const $ = c(17);
|
|
13
|
+
const { icon, scale, iconClassName, className, style, ...props } = t0;
|
|
14
|
+
const slotCva = UIOverrides.useCva("iconSlot.cva", iconSlotDefinition);
|
|
15
|
+
if (isValidElement(icon) && icon.type === IconSlot) return cloneElement(icon, {
|
|
16
|
+
...props,
|
|
17
|
+
className: clsx(className, icon.props.className),
|
|
18
|
+
style: {
|
|
19
|
+
...style,
|
|
20
|
+
...icon.props.style
|
|
21
|
+
},
|
|
22
|
+
scale: icon.props.scale ?? scale,
|
|
23
|
+
iconClassName: clsx(iconClassName, icon.props.iconClassName)
|
|
24
|
+
});
|
|
25
|
+
let visual;
|
|
26
|
+
if (isValidElement(icon)) {
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[0] !== icon || $[1] !== iconClassName) {
|
|
29
|
+
t1 = cloneElement(icon, { className: clsx(icon.props.className, iconClassName) });
|
|
30
|
+
$[0] = icon;
|
|
31
|
+
$[1] = iconClassName;
|
|
32
|
+
$[2] = t1;
|
|
33
|
+
} else t1 = $[2];
|
|
34
|
+
visual = t1;
|
|
35
|
+
} else {
|
|
36
|
+
const Icon = icon;
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[3] !== Icon || $[4] !== iconClassName) {
|
|
39
|
+
t1 = /* @__PURE__ */ jsx(Icon, { className: iconClassName });
|
|
40
|
+
$[3] = Icon;
|
|
41
|
+
$[4] = iconClassName;
|
|
42
|
+
$[5] = t1;
|
|
43
|
+
} else t1 = $[5];
|
|
44
|
+
visual = t1;
|
|
45
|
+
}
|
|
46
|
+
let slotStyle;
|
|
47
|
+
if ($[6] !== scale || $[7] !== style) {
|
|
48
|
+
slotStyle = { ...style };
|
|
49
|
+
if (scale !== void 0) Object.assign(slotStyle, { "--icons-scale": scale });
|
|
50
|
+
$[6] = scale;
|
|
51
|
+
$[7] = style;
|
|
52
|
+
$[8] = slotStyle;
|
|
53
|
+
} else slotStyle = $[8];
|
|
54
|
+
let t1;
|
|
55
|
+
if ($[9] !== className || $[10] !== slotCva) {
|
|
56
|
+
t1 = slotCva({ className });
|
|
57
|
+
$[9] = className;
|
|
58
|
+
$[10] = slotCva;
|
|
59
|
+
$[11] = t1;
|
|
60
|
+
} else t1 = $[11];
|
|
61
|
+
let t2;
|
|
62
|
+
if ($[12] !== props || $[13] !== slotStyle || $[14] !== t1 || $[15] !== visual) {
|
|
63
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
64
|
+
...props,
|
|
65
|
+
"data-icon-slot": "",
|
|
66
|
+
className: t1,
|
|
67
|
+
style: slotStyle,
|
|
68
|
+
children: visual
|
|
69
|
+
});
|
|
70
|
+
$[12] = props;
|
|
71
|
+
$[13] = slotStyle;
|
|
72
|
+
$[14] = t1;
|
|
73
|
+
$[15] = visual;
|
|
74
|
+
$[16] = t2;
|
|
75
|
+
} else t2 = $[16];
|
|
76
|
+
return t2;
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { iconSlotDefinition as n, IconSlot as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
2
|
-
import { a as ButtonProps, n as ButtonAppearanceProps } from "./Button-
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-Ow9H7kNv.js";
|
|
2
|
+
import { a as ButtonProps, n as ButtonAppearanceProps } from "./Button-D-4qb0IR.js";
|
|
3
3
|
import { FC, ReactElement, RefObject, SVGProps } from "react";
|
|
4
4
|
//#region src/components/buttons/InlineIconButton/InlineIconButton.d.ts
|
|
5
5
|
interface InlineIconButtonProps extends Omit<ButtonProps, "children">, ButtonAppearanceProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
3
|
+
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-BBQ4ic3D.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/shared/InlineTooltipWrapper.tsx
|
|
6
6
|
const InlineTooltipWrapper = ({ children, error, triggerClassName, triggerTabIndex }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { n as FormFieldProps } from "./FormField-
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
5
|
-
import { t as InputContentProps } from "./InputContent-
|
|
3
|
+
import { n as FormFieldProps } from "./FormField-Byiehm9y.js";
|
|
4
|
+
import { n as InputVariantProps } from "./input.cva-BsHgYa-L.js";
|
|
5
|
+
import { t as InputContentProps } from "./InputContent-CXuP1ghQ.js";
|
|
6
6
|
import { Ref } from "react";
|
|
7
7
|
import { InputProps } from "react-aria-components";
|
|
8
8
|
import { AriaTextFieldProps } from "@react-aria/textfield";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as InlineIconButtonProps } from "./InlineIconButton-
|
|
2
|
-
import { r as FormFieldHeaderProps } from "./FormField-
|
|
3
|
-
import "./input.cva-
|
|
1
|
+
import { n as InlineIconButtonProps } from "./InlineIconButton-BeJCjl-q.js";
|
|
2
|
+
import { r as FormFieldHeaderProps } from "./FormField-Byiehm9y.js";
|
|
3
|
+
import "./input.cva-BsHgYa-L.js";
|
|
4
4
|
import { FC, FocusEvent, ReactElement, ReactNode, SVGProps } from "react";
|
|
5
5
|
//#region src/components/inputs/Input/shared/InputContent.d.ts
|
|
6
6
|
interface InputContentProps {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as PasswordInput } from "./PasswordInput-DYwUZ4-k.js";
|
|
2
|
-
import { t as Checkbox } from "./Checkbox-
|
|
3
|
-
import { t as Slider } from "./Slider-
|
|
4
|
-
import { t as Switch } from "./Switch-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
6
|
-
import { t as ToggleGroup } from "./ToggleGroup-Cl0NS3fe.js";
|
|
7
|
-
import { t as DateRangePicker } from "./DateRangePicker-BX2O5zA8.js";
|
|
2
|
+
import { t as Checkbox } from "./Checkbox-CV1ILXXO.js";
|
|
3
|
+
import { t as Slider } from "./Slider-CzEmKYBF.js";
|
|
4
|
+
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-D8WkKsGn.js";
|
|
8
6
|
import { Input } from "./components/input.js";
|
|
9
7
|
import { Autocomplete } from "./components/autocomplete.js";
|
|
10
8
|
import { CheckboxGroup } from "./components/checkbox-group.js";
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
9
|
+
import { t as DateRangePicker } from "./DateRangePicker-BF-1CztH.js";
|
|
10
|
+
import { t as TimePicker } from "./TimePicker-C4taAOFQ.js";
|
|
11
|
+
import { t as ToggleGroup } from "./ToggleGroup-DOk27fgI.js";
|
|
12
|
+
import { t as DatePicker } from "./DatePicker-DOLL7mkc.js";
|
|
13
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
14
|
+
import { t as DateTimePicker } from "./DateTimePicker-Cj0qvJUz.js";
|
|
15
15
|
import { NumberField } from "./components/number-field.js";
|
|
16
|
-
import { t as NumberRangeInput } from "./NumberRangeInput-
|
|
16
|
+
import { t as NumberRangeInput } from "./NumberRangeInput-B8-LHfg3.js";
|
|
17
17
|
import { QueryAutocomplete } from "./components/query-autocomplete.js";
|
|
18
18
|
import { QuerySelect } from "./components/query-select.js";
|
|
19
19
|
import { useMemo } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as UIForm } from "./form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { l as InputDef } from "./dynamicInputs-
|
|
2
|
+
import { l as InputDef } from "./dynamicInputs-iP39lVKf.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/components/inputs/Inputs/Inputs.d.ts
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as StyleMergeUtils } from "./style-merge.util-zLimKwt6.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DEp139He.js";
|
|
2
3
|
import { AnchorHTMLAttributes, PropsWithChildren } from "react";
|
|
3
4
|
import { LinkProps } from "react-aria-components";
|
|
4
5
|
//#region src/components/text/Link/link.cva.d.ts
|
|
@@ -6,7 +7,7 @@ declare const linkDefinition: {
|
|
|
6
7
|
base: string[];
|
|
7
8
|
config: StyleMergeUtils.Config<{
|
|
8
9
|
readonly variant: {
|
|
9
|
-
default: ["text-interactive-primary-background focus-visible:outline-interactive-ring", "hover:text-
|
|
10
|
+
default: ["text-interactive-primary-background focus-visible:outline-interactive-ring", "hover:text-state-interactive-primary-background/hover focus-visible:text-state-interactive-primary-background/focus active:text-state-interactive-primary-background/pressed"];
|
|
10
11
|
};
|
|
11
12
|
}>;
|
|
12
13
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as $4b38b5b75ecc6208$export$b0d3ecf7112093a7, f as $53e61d82d8b8611d$export$e0e4026c12a8bdbb, h as $263ab7fc0f95ccdb$export$d40e14dec8b060a8, m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, u as $e28ab3efe3e87743$export$6615d83f6de245ce } from "./Dialog-CKLkS00H.js";
|
|
3
3
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D2MPZ3sY.js";
|
|
4
4
|
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-Da1c_cOO.js";
|
|
5
5
|
import { t as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-JblvLKCu.js";
|
|
6
6
|
import $ahdqC$react, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useRef } from "react";
|
|
7
7
|
import { mergeProps } from "react-aria/mergeProps";
|
|
8
8
|
import { useObjectRef } from "react-aria/useObjectRef";
|
|
9
|
-
import { CollectionBuilder, createLeafComponent } from "react-aria/CollectionBuilder";
|
|
9
|
+
import { CollectionBuilder, createBranchComponent, createLeafComponent } from "react-aria/CollectionBuilder";
|
|
10
10
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
11
11
|
import { useFocusRing } from "react-aria/useFocusRing";
|
|
12
12
|
import { useHover } from "react-aria/useHover";
|
|
13
13
|
import { Collection } from "react-aria/Collection";
|
|
14
|
-
import { ItemNode, LoaderNode } from "react-aria/private/collections/BaseCollection";
|
|
14
|
+
import { ItemNode, LoaderNode, SectionNode } from "react-aria/private/collections/BaseCollection";
|
|
15
15
|
import { useLocale } from "react-aria/I18nProvider";
|
|
16
16
|
import { useListBox, useListBoxSection, useOption } from "react-aria/useListBox";
|
|
17
17
|
import { FocusScope } from "react-aria/FocusScope";
|
|
@@ -271,6 +271,7 @@ function $928221da08ecbc62$var$ListBoxSectionInner(props, ref, section, classNam
|
|
|
271
271
|
renderDropIndicator: $f9554a667e4f0374$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
272
272
|
})));
|
|
273
273
|
}
|
|
274
|
+
const $928221da08ecbc62$export$dca12b0bb56e4fc = /*#__PURE__*/ createBranchComponent(SectionNode, $928221da08ecbc62$var$ListBoxSectionInner);
|
|
274
275
|
const $928221da08ecbc62$export$a11e76429ed99b4 = /*#__PURE__*/ createLeafComponent(ItemNode, function ListBoxItem(props, forwardedRef, item) {
|
|
275
276
|
let ref = useObjectRef(forwardedRef);
|
|
276
277
|
let state = useContext($928221da08ecbc62$export$7c5906fe4f1f2af2);
|
|
@@ -415,4 +416,4 @@ createLeafComponent(LoaderNode, function ListBoxLoadingIndicator(props, ref, ite
|
|
|
415
416
|
}, renderProps.children)));
|
|
416
417
|
});
|
|
417
418
|
//#endregion
|
|
418
|
-
export { $928221da08ecbc62$export$a11e76429ed99b4 as i, $928221da08ecbc62$export$7c5906fe4f1f2af2 as n, $928221da08ecbc62$export$7ff8f37d2d81a48d as r, $928221da08ecbc62$export$41f133550aa26f48 as t };
|
|
419
|
+
export { $928221da08ecbc62$export$dca12b0bb56e4fc as a, $928221da08ecbc62$export$a11e76429ed99b4 as i, $928221da08ecbc62$export$7c5906fe4f1f2af2 as n, $928221da08ecbc62$export$7ff8f37d2d81a48d as r, $928221da08ecbc62$export$41f133550aa26f48 as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as MenuItem$1 } from "./DropdownMenu-
|
|
1
|
+
import { r as MenuItem$1 } from "./DropdownMenu-JNpYT4-3.js";
|
|
2
2
|
//#region src/components/DropdownMenu/MenuItem.d.ts
|
|
3
3
|
type MenuListItemProps = MenuItem$1;
|
|
4
4
|
declare const MenuItem: ({ label, content, children, className, ...item }: MenuListItemProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
2
|
-
import { r as $f2ff30fde7b014be$export$d2f961adcb0afbe } from "./Dialog-
|
|
2
|
+
import { r as $f2ff30fde7b014be$export$d2f961adcb0afbe } from "./Dialog-CKLkS00H.js";
|
|
3
3
|
import $ahdqC$react, { createContext, forwardRef, useContext, useMemo, useRef } from "react";
|
|
4
4
|
import { mergeProps } from "react-aria/mergeProps";
|
|
5
5
|
import { mergeRefs } from "react-aria/mergeRefs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { n as FormFieldProps } from "./FormField-
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
5
|
-
import { t as InputContentProps } from "./InputContent-
|
|
3
|
+
import { n as FormFieldProps } from "./FormField-Byiehm9y.js";
|
|
4
|
+
import { n as InputVariantProps } from "./input.cva-BsHgYa-L.js";
|
|
5
|
+
import { t as InputContentProps } from "./InputContent-CXuP1ghQ.js";
|
|
6
6
|
import { FocusEvent, Ref } from "react";
|
|
7
7
|
import { NumberFieldProps } from "react-aria-components";
|
|
8
8
|
//#region src/components/inputs/Input/NumberField/NumberField.d.ts
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
//#region ../../node_modules/.bun/react-stately@3.50.0+83d5fd7b249dbeef/node_modules/react-stately/dist/private/form/useFormValidationState.mjs
|
|
3
|
+
const $fd2148440a13ec26$export$aca958c65c314e6c = {
|
|
4
|
+
badInput: false,
|
|
5
|
+
customError: false,
|
|
6
|
+
patternMismatch: false,
|
|
7
|
+
rangeOverflow: false,
|
|
8
|
+
rangeUnderflow: false,
|
|
9
|
+
stepMismatch: false,
|
|
10
|
+
tooLong: false,
|
|
11
|
+
tooShort: false,
|
|
12
|
+
typeMismatch: false,
|
|
13
|
+
valueMissing: false,
|
|
14
|
+
valid: true
|
|
15
|
+
};
|
|
16
|
+
const $fd2148440a13ec26$var$CUSTOM_VALIDITY_STATE = {
|
|
17
|
+
...$fd2148440a13ec26$export$aca958c65c314e6c,
|
|
18
|
+
customError: true,
|
|
19
|
+
valid: false
|
|
20
|
+
};
|
|
21
|
+
const $fd2148440a13ec26$export$dad6ae84456c676a = {
|
|
22
|
+
isInvalid: false,
|
|
23
|
+
validationDetails: $fd2148440a13ec26$export$aca958c65c314e6c,
|
|
24
|
+
validationErrors: []
|
|
25
|
+
};
|
|
26
|
+
const $fd2148440a13ec26$export$571b5131b7e65c11 = createContext({});
|
|
27
|
+
const $fd2148440a13ec26$export$a763b9476acd3eb = "__reactAriaFormValidationState";
|
|
28
|
+
function $fd2148440a13ec26$export$fc1a364ae1f3ff10(props) {
|
|
29
|
+
if (props["__reactAriaFormValidationState"]) {
|
|
30
|
+
let { realtimeValidation, displayValidation, updateValidation, resetValidation, commitValidation } = props[$fd2148440a13ec26$export$a763b9476acd3eb];
|
|
31
|
+
return {
|
|
32
|
+
realtimeValidation,
|
|
33
|
+
displayValidation,
|
|
34
|
+
updateValidation,
|
|
35
|
+
resetValidation,
|
|
36
|
+
commitValidation
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return $fd2148440a13ec26$var$useFormValidationStateImpl(props);
|
|
40
|
+
}
|
|
41
|
+
function $fd2148440a13ec26$var$useFormValidationStateImpl(props) {
|
|
42
|
+
let { isInvalid, validationState, name, value, builtinValidation, validate, validationBehavior = "aria" } = props;
|
|
43
|
+
if (validationState) isInvalid ||= validationState === "invalid";
|
|
44
|
+
let controlledError = isInvalid !== void 0 ? {
|
|
45
|
+
isInvalid,
|
|
46
|
+
validationErrors: [],
|
|
47
|
+
validationDetails: $fd2148440a13ec26$var$CUSTOM_VALIDITY_STATE
|
|
48
|
+
} : null;
|
|
49
|
+
let clientError = useMemo(() => {
|
|
50
|
+
if (!validate || value == null) return null;
|
|
51
|
+
return $fd2148440a13ec26$var$getValidationResult($fd2148440a13ec26$var$runValidate(validate, value));
|
|
52
|
+
}, [validate, value]);
|
|
53
|
+
if (builtinValidation?.validationDetails.valid) builtinValidation = void 0;
|
|
54
|
+
let serverErrors = useContext($fd2148440a13ec26$export$571b5131b7e65c11);
|
|
55
|
+
let serverErrorMessages = useMemo(() => {
|
|
56
|
+
if (name) return Array.isArray(name) ? name.flatMap((name) => $fd2148440a13ec26$var$asArray(serverErrors[name])) : $fd2148440a13ec26$var$asArray(serverErrors[name]);
|
|
57
|
+
return [];
|
|
58
|
+
}, [serverErrors, name]);
|
|
59
|
+
let [lastServerErrors, setLastServerErrors] = useState(serverErrors);
|
|
60
|
+
let [isServerErrorCleared, setServerErrorCleared] = useState(false);
|
|
61
|
+
if (serverErrors !== lastServerErrors) {
|
|
62
|
+
setLastServerErrors(serverErrors);
|
|
63
|
+
setServerErrorCleared(false);
|
|
64
|
+
}
|
|
65
|
+
let serverError = useMemo(() => $fd2148440a13ec26$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [isServerErrorCleared, serverErrorMessages]);
|
|
66
|
+
let nextValidation = useRef($fd2148440a13ec26$export$dad6ae84456c676a);
|
|
67
|
+
let [currentValidity, setCurrentValidity] = useState($fd2148440a13ec26$export$dad6ae84456c676a);
|
|
68
|
+
let lastError = useRef($fd2148440a13ec26$export$dad6ae84456c676a);
|
|
69
|
+
let commitValidation = () => {
|
|
70
|
+
if (!commitQueued) return;
|
|
71
|
+
setCommitQueued(false);
|
|
72
|
+
let error = clientError || builtinValidation || nextValidation.current;
|
|
73
|
+
if (!$fd2148440a13ec26$var$isEqualValidation(error, lastError.current)) {
|
|
74
|
+
lastError.current = error;
|
|
75
|
+
setCurrentValidity(error);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
let [commitQueued, setCommitQueued] = useState(false);
|
|
79
|
+
useEffect(commitValidation);
|
|
80
|
+
return {
|
|
81
|
+
realtimeValidation: controlledError || serverError || clientError || builtinValidation || $fd2148440a13ec26$export$dad6ae84456c676a,
|
|
82
|
+
displayValidation: validationBehavior === "native" ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity,
|
|
83
|
+
updateValidation(value) {
|
|
84
|
+
if (validationBehavior === "aria" && !$fd2148440a13ec26$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);
|
|
85
|
+
else nextValidation.current = value;
|
|
86
|
+
},
|
|
87
|
+
resetValidation() {
|
|
88
|
+
let error = $fd2148440a13ec26$export$dad6ae84456c676a;
|
|
89
|
+
if (!$fd2148440a13ec26$var$isEqualValidation(error, lastError.current)) {
|
|
90
|
+
lastError.current = error;
|
|
91
|
+
setCurrentValidity(error);
|
|
92
|
+
}
|
|
93
|
+
if (validationBehavior === "native") setCommitQueued(false);
|
|
94
|
+
setServerErrorCleared(true);
|
|
95
|
+
},
|
|
96
|
+
commitValidation() {
|
|
97
|
+
if (validationBehavior === "native") setCommitQueued(true);
|
|
98
|
+
setServerErrorCleared(true);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function $fd2148440a13ec26$var$asArray(v) {
|
|
103
|
+
if (!v) return [];
|
|
104
|
+
return Array.isArray(v) ? v : [v];
|
|
105
|
+
}
|
|
106
|
+
function $fd2148440a13ec26$var$runValidate(validate, value) {
|
|
107
|
+
if (typeof validate === "function") {
|
|
108
|
+
let e = validate(value);
|
|
109
|
+
if (e && typeof e !== "boolean") return $fd2148440a13ec26$var$asArray(e);
|
|
110
|
+
}
|
|
111
|
+
return [];
|
|
112
|
+
}
|
|
113
|
+
function $fd2148440a13ec26$var$getValidationResult(errors) {
|
|
114
|
+
return errors.length ? {
|
|
115
|
+
isInvalid: true,
|
|
116
|
+
validationErrors: errors,
|
|
117
|
+
validationDetails: $fd2148440a13ec26$var$CUSTOM_VALIDITY_STATE
|
|
118
|
+
} : null;
|
|
119
|
+
}
|
|
120
|
+
function $fd2148440a13ec26$var$isEqualValidation(a, b) {
|
|
121
|
+
if (a === b) return true;
|
|
122
|
+
return !!a && !!b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i) => a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v]) => b.validationDetails[k] === v);
|
|
123
|
+
}
|
|
124
|
+
function $fd2148440a13ec26$export$75ee7c75d68f5b0e(...results) {
|
|
125
|
+
let errors = /* @__PURE__ */ new Set();
|
|
126
|
+
let isInvalid = false;
|
|
127
|
+
let validationDetails = { ...$fd2148440a13ec26$export$aca958c65c314e6c };
|
|
128
|
+
for (let v of results) {
|
|
129
|
+
for (let e of v.validationErrors) errors.add(e);
|
|
130
|
+
isInvalid ||= v.isInvalid;
|
|
131
|
+
for (let key in validationDetails) validationDetails[key] ||= v.validationDetails[key];
|
|
132
|
+
}
|
|
133
|
+
validationDetails.valid = !isInvalid;
|
|
134
|
+
return {
|
|
135
|
+
isInvalid,
|
|
136
|
+
validationErrors: [...errors],
|
|
137
|
+
validationDetails
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region ../../node_modules/.bun/@internationalized+number@3.6.8/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
142
|
+
let $1dfb119a85e764e5$var$formatterCache = /* @__PURE__ */ new Map();
|
|
143
|
+
let $1dfb119a85e764e5$var$supportsSignDisplay = false;
|
|
144
|
+
try {
|
|
145
|
+
$1dfb119a85e764e5$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
146
|
+
} catch {}
|
|
147
|
+
let $1dfb119a85e764e5$var$supportsUnit = false;
|
|
148
|
+
try {
|
|
149
|
+
$1dfb119a85e764e5$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
150
|
+
style: "unit",
|
|
151
|
+
unit: "degree"
|
|
152
|
+
}).resolvedOptions().style === "unit";
|
|
153
|
+
} catch {}
|
|
154
|
+
const $1dfb119a85e764e5$var$UNITS = { degree: { narrow: {
|
|
155
|
+
default: "°",
|
|
156
|
+
"ja-JP": " 度",
|
|
157
|
+
"zh-TW": "度",
|
|
158
|
+
"sl-SI": " °"
|
|
159
|
+
} } };
|
|
160
|
+
var $1dfb119a85e764e5$export$cc77c4ff7e8673c5 = class {
|
|
161
|
+
constructor(locale, options = {}) {
|
|
162
|
+
this.numberFormatter = $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options);
|
|
163
|
+
this.options = options;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Formats a number value as a string, according to the locale and options provided to the
|
|
167
|
+
* constructor.
|
|
168
|
+
*/ format(value) {
|
|
169
|
+
let res = "";
|
|
170
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) res = $1dfb119a85e764e5$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);
|
|
171
|
+
else res = this.numberFormatter.format(value);
|
|
172
|
+
if (this.options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
173
|
+
let { unit, unitDisplay = "short", locale } = this.resolvedOptions();
|
|
174
|
+
if (!unit) return res;
|
|
175
|
+
let values = $1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay];
|
|
176
|
+
res += values[locale] || values.default;
|
|
177
|
+
}
|
|
178
|
+
return res;
|
|
179
|
+
}
|
|
180
|
+
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ formatToParts(value) {
|
|
181
|
+
return this.numberFormatter.formatToParts(value);
|
|
182
|
+
}
|
|
183
|
+
/** Formats a number range as a string. */ formatRange(start, end) {
|
|
184
|
+
if (typeof this.numberFormatter.formatRange === "function") return this.numberFormatter.formatRange(start, end);
|
|
185
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
186
|
+
return `${this.format(start)} \u{2013} ${this.format(end)}`;
|
|
187
|
+
}
|
|
188
|
+
/** Formats a number range as an array of parts. */ formatRangeToParts(start, end) {
|
|
189
|
+
if (typeof this.numberFormatter.formatRangeToParts === "function") return this.numberFormatter.formatRangeToParts(start, end);
|
|
190
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
191
|
+
let startParts = this.numberFormatter.formatToParts(start);
|
|
192
|
+
let endParts = this.numberFormatter.formatToParts(end);
|
|
193
|
+
return [
|
|
194
|
+
...startParts.map((p) => ({
|
|
195
|
+
...p,
|
|
196
|
+
source: "startRange"
|
|
197
|
+
})),
|
|
198
|
+
{
|
|
199
|
+
type: "literal",
|
|
200
|
+
value: " – ",
|
|
201
|
+
source: "shared"
|
|
202
|
+
},
|
|
203
|
+
...endParts.map((p) => ({
|
|
204
|
+
...p,
|
|
205
|
+
source: "endRange"
|
|
206
|
+
}))
|
|
207
|
+
];
|
|
208
|
+
}
|
|
209
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
210
|
+
let options = this.numberFormatter.resolvedOptions();
|
|
211
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) options = {
|
|
212
|
+
...options,
|
|
213
|
+
signDisplay: this.options.signDisplay
|
|
214
|
+
};
|
|
215
|
+
if (!$1dfb119a85e764e5$var$supportsUnit && this.options.style === "unit") options = {
|
|
216
|
+
...options,
|
|
217
|
+
style: "unit",
|
|
218
|
+
unit: this.options.unit,
|
|
219
|
+
unitDisplay: this.options.unitDisplay
|
|
220
|
+
};
|
|
221
|
+
return options;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
function $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options = {}) {
|
|
225
|
+
let { numberingSystem } = options;
|
|
226
|
+
if (numberingSystem && locale.includes("-nu-")) {
|
|
227
|
+
if (!locale.includes("-u-")) locale += "-u-";
|
|
228
|
+
locale += `-nu-${numberingSystem}`;
|
|
229
|
+
}
|
|
230
|
+
if (options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
231
|
+
let { unit, unitDisplay = "short" } = options;
|
|
232
|
+
if (!unit) throw new Error("unit option must be provided with style: \"unit\"");
|
|
233
|
+
if (!$1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay]) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
|
|
234
|
+
options = {
|
|
235
|
+
...options,
|
|
236
|
+
style: "decimal"
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
240
|
+
if ($1dfb119a85e764e5$var$formatterCache.has(cacheKey)) return $1dfb119a85e764e5$var$formatterCache.get(cacheKey);
|
|
241
|
+
let numberFormatter = new Intl.NumberFormat(locale, options);
|
|
242
|
+
$1dfb119a85e764e5$var$formatterCache.set(cacheKey, numberFormatter);
|
|
243
|
+
return numberFormatter;
|
|
244
|
+
}
|
|
245
|
+
function $1dfb119a85e764e5$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
|
|
246
|
+
if (signDisplay === "auto") return numberFormat.format(num);
|
|
247
|
+
else if (signDisplay === "never") return numberFormat.format(Math.abs(num));
|
|
248
|
+
else {
|
|
249
|
+
let needsPositiveSign = false;
|
|
250
|
+
if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
|
|
251
|
+
else if (signDisplay === "exceptZero") {
|
|
252
|
+
if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
|
|
253
|
+
else needsPositiveSign = num > 0;
|
|
254
|
+
}
|
|
255
|
+
if (needsPositiveSign) {
|
|
256
|
+
let negative = numberFormat.format(-num);
|
|
257
|
+
let noSign = numberFormat.format(num);
|
|
258
|
+
let minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, "");
|
|
259
|
+
if ([...minus].length !== 1) console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case");
|
|
260
|
+
return negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign);
|
|
261
|
+
} else return numberFormat.format(num);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
export { $fd2148440a13ec26$export$fc1a364ae1f3ff10 as i, $fd2148440a13ec26$export$75ee7c75d68f5b0e as n, $fd2148440a13ec26$export$aca958c65c314e6c as r, $1dfb119a85e764e5$export$cc77c4ff7e8673c5 as t };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
4
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BsbLZDtC.js";
|
|
4
5
|
import { a as $a3be900807531178$re_export$useLocale } from "./exports-BNrTn8Tj.js";
|
|
5
|
-
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
6
|
-
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, r as $cd2fa56213693c5e$export$23f548e970bdf099, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BMgRzyd3.js";
|
|
7
6
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
8
7
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
9
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
10
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
|
|
11
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-
|
|
8
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.js";
|
|
9
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
10
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
11
|
+
import { i as InputFrame, n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
12
|
+
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BX50PSee.js";
|
|
13
13
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
14
14
|
import { memo, useEffect, useRef, useState } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { useNumberField } from "react-aria";
|
|
16
17
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
17
18
|
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeField.tsx
|
|
18
19
|
const NumberRangeValueField = ({ label, value, placeholder, isDisabled, isInvalid, isRequired, formatOptions, hideInnerLabels, autoFocusOnMount, isClearable, isClearableIfDisabled, className, onChange, onClear, onBlur, ...rest }) => {
|
|
@@ -39,7 +40,7 @@ const NumberRangeValueField = ({ label, value, placeholder, isDisabled, isInvali
|
|
|
39
40
|
formatOptions: formatOptions ?? ui.numberField.formatOptions
|
|
40
41
|
};
|
|
41
42
|
const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c(numberProps);
|
|
42
|
-
const { labelProps, inputProps } =
|
|
43
|
+
const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
|
|
43
44
|
return /* @__PURE__ */ jsxs("div", {
|
|
44
45
|
className: "min-w-0 flex-1",
|
|
45
46
|
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { n as FormFieldProps } from "./FormField-
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
3
|
+
import { n as FormFieldProps } from "./FormField-Byiehm9y.js";
|
|
4
|
+
import { n as InputVariantProps } from "./input.cva-BsHgYa-L.js";
|
|
5
5
|
import { FocusEvent, HTMLAttributes, Ref } from "react";
|
|
6
6
|
import { NumberFieldProps } from "react-aria-components";
|
|
7
7
|
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PaginationListProps } from "./PaginationList-
|
|
1
|
+
import { n as PaginationListProps } from "./PaginationList-DMRUGtf8.js";
|
|
2
2
|
//#region src/components/shared/pagination/Pagination.d.ts
|
|
3
3
|
interface PaginationProps extends Omit<PaginationListProps, "totalPages"> {
|
|
4
4
|
totalItems: number;
|
|
@@ -2,8 +2,8 @@ import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
|
2
2
|
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
3
3
|
import { n as ChevronsLeft, t as ChevronsRight } from "./chevrons-right-DJPPn2fD.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as Button } from "./Button-
|
|
5
|
+
import { r as cva } from "./uiOverrides.context-BTCH9y5a.js";
|
|
6
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
7
7
|
import "./i18n-CX2EjhJI.js";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as FieldValues } from "./form.binding-DVJ5F0JE.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-CecYaerF.js";
|
|
3
|
-
import { i as InputProps } from "./Input-
|
|
3
|
+
import { i as InputProps } from "./Input-DOanwj3l.js";
|
|
4
4
|
//#region src/components/inputs/Input/PasswordInput/PasswordInput.d.ts
|
|
5
5
|
interface PasswordInputProps extends Omit<InputProps, "type" | "action" | "trailingIcon" | "unit"> {}
|
|
6
6
|
type ControlledPasswordInputProps<TFieldValues extends FieldValues> = ControlProps<PasswordInputProps, TFieldValues>;
|