@midas-ds/components 11.2.0 → 12.1.0
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/AccordionItem-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/BadgeContainer-iNNgJKD9.js +37 -0
- package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
- package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-Dq6ugqxT.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +114 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
- package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
- package/Dropdown-DJ2vWAqk.cjs +6 -0
- package/FieldError-Cornph2A.cjs +1 -0
- package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
- package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/Grid-WbEkSCGh.cjs +1 -0
- package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
- package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-ovwNVMfg.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.cjs +1 -0
- package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
- package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
- package/ProgressBar-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
- package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BKrZ_mMO.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
- package/{Text-CfcjRtke.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
- package/Toast-DclaxvZM.cjs +1 -0
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
- package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/Accordion.d.ts +8 -2
- package/accordion/AccordionContext.d.ts +4 -0
- package/accordion/AccordionItem.d.ts +6 -4
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -0
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +0 -4
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -2
- package/combobox/index.js +2 -3
- package/combobox/intl/translations.json.d.ts +4 -2
- package/combobox/types.d.ts +0 -13
- package/common/icon-map.d.ts +6 -0
- package/common/types.d.ts +8 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +25 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/Grid.d.ts +0 -8
- package/grid/GridItem.d.ts +0 -8
- package/grid/index.cjs +1 -1
- package/grid/index.d.ts +2 -2
- package/grid/index.js +4 -6
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-9XcghDra.cjs +11 -0
- package/icon-map-uS87FT_Q.js +43 -0
- package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
- package/index-DSFSh2sC.cjs +17 -0
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +133 -121
- package/info-banner/InfoBanner.d.ts +18 -10
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/{mergeProps-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +9 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -13
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/Table.d.ts +7 -12
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +0 -12
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +2 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +39 -12
- package/theme/index.js +4037 -13
- package/theme/tokens.d.ts +65 -18
- package/toast/Toast.d.ts +2 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tokens-B3FfJ-rY.cjs +1 -0
- package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
- package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
- package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
- package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
- package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
- package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/utils/types.d.ts +4 -0
- package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-BPOQqTkQ.js +0 -323
- package/AccordionItem-CS-QKqrU.cjs +0 -1
- package/BadgeContainer-CKBIZWsc.js +0 -37
- package/Breadcrumbs-BBzSV4SK.js +0 -262
- package/Breadcrumbs-CFUryOhf.cjs +0 -1
- package/Button-DExMoP5f.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-BRs1FKX5.js +0 -131
- package/Card-cdL5669N.cjs +0 -1
- package/Checkbox-Co3h0hur.cjs +0 -1
- package/Checkbox-EB_SCBEo.js +0 -264
- package/CheckboxGroup-CT_eqERw.cjs +0 -1
- package/CheckboxGroup-DvrN1oyw.js +0 -159
- package/Collection-BtBX5IMY.cjs +0 -1
- package/Collection-D2jVTmDW.js +0 -577
- package/ComboBox-D_jh7TKo.cjs +0 -1
- package/DateField-BURrxhil.cjs +0 -1
- package/DateField-DKCbEonm.js +0 -47
- package/DateInputDivider-ToFY-yjB.cjs +0 -1
- package/DateRangePicker-B5vx9onl.js +0 -870
- package/DateRangePicker-DkIAEIIj.cjs +0 -6
- package/Dialog-CxHiZorC.cjs +0 -1
- package/Dialog-D5c_dUnB.js +0 -1611
- package/Dialog-DtHk3eXI.cjs +0 -1
- package/Dialog-DuGcBeNN.js +0 -212
- package/DragAndDrop-CSg60YQE.cjs +0 -1
- package/DragAndDrop-DOXLfJaA.js +0 -60
- package/Dropdown-CYakzdJg.cjs +0 -6
- package/FieldError-Bv3Q6ZP-.cjs +0 -1
- package/FocusScope-vcXLOQiu.cjs +0 -1
- package/Grid-DVQtOcu9.cjs +0 -1
- package/GridItem-DlbSdRmB.js +0 -246
- package/GridItem-XgHmZWXY.cjs +0 -1
- package/Heading-CKTR4sOz.cjs +0 -1
- package/Heading-D2y_kiC0.js +0 -46
- package/InfoBanner-CzwbOdRG.cjs +0 -1
- package/InfoBanner-D05poAe3.js +0 -91
- package/Label-ChjDdBlv.cjs +0 -1
- package/Layout-D0E1fOgZ.cjs +0 -16
- package/Layout-DtyhUz-G.js +0 -498
- package/Link-CibH8uRY.js +0 -72
- package/Link-CidjjqHb.cjs +0 -1
- package/Link-ESjrl63P.cjs +0 -6
- package/LinkButton-B6AWNiRn.cjs +0 -6
- package/LinkButton-BkZULm2a.js +0 -69
- package/ListBox-B0E1hdEt.cjs +0 -1
- package/ListBox-Djy7244v.js +0 -531
- package/ListBoxButton-CIqNRR3y.cjs +0 -1
- package/ListBoxButton-sqirI6I4.js +0 -15
- package/ListBoxSection-BYJccE4T.cjs +0 -1
- package/ListBoxSection-Cicbu8pS.js +0 -1058
- package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
- package/OverlayArrow-DB_aVTVM.js +0 -507
- package/OverlayArrow-DpZ1FqOd.cjs +0 -1
- package/ProgressBar-ClysdvqU.cjs +0 -1
- package/ProgressBar-DTn23Zkr.js +0 -53
- package/Radio-CCN3o3s-.js +0 -313
- package/Radio-Cz0vLIBw.cjs +0 -1
- package/RangeCalendar-BY82hPRu.cjs +0 -11
- package/Select-MwvnbChP.js +0 -664
- package/Select-lhIwwJL7.cjs +0 -1
- package/SelectionManager-BJjqIWtf.cjs +0 -1
- package/Separator-DPLEx950.cjs +0 -1
- package/Separator-DvvVAypT.js +0 -59
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-VSyPhiJ9.js +0 -51
- package/Spinner-vof0Y9Hh.cjs +0 -6
- package/TabList-CWMlbijV.cjs +0 -1
- package/TabList-VpTv_Xff.js +0 -435
- package/Table-DGYC-sDq.cjs +0 -16
- package/Tag-bYq-wf5D.cjs +0 -1
- package/Tag-rI-NhuT0.js +0 -748
- package/Text-BPcfhYQ9.js +0 -32
- package/Text-DBHWi5gA.cjs +0 -1
- package/TextArea-CrEALC58.js +0 -119
- package/TextArea-DJKHFKuI.cjs +0 -1
- package/TextField-BAX93sq7.cjs +0 -1
- package/TextField-Dma22dnD.js +0 -120
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/Toast-DdmSvNaO.cjs +0 -1
- package/ToggleButtonGroup-98z8Dw8-.js +0 -211
- package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
- package/Tooltip-DjNc93tV.js +0 -285
- package/Tooltip-pN5W3IK6.cjs +0 -1
- package/circle-check-BErh6TKu.js +0 -26
- package/circle-check-OVUGxwp9.cjs +0 -11
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/index-Dsz3aiWt.cjs +0 -17
- package/mergeProps-B5KXZAI3.cjs +0 -1
- package/tokens-5PzK5zK7.cjs +0 -1
- package/triangle-alert-B_qAPmWC.js +0 -21
- package/triangle-alert-BviJNFjf.cjs +0 -6
- package/useButton-BoIV3kDJ.js +0 -47
- package/useButton-D60q0SQw.cjs +0 -1
- package/useDateFormatter-BJBt0jk_.cjs +0 -1
- package/useFormValidation-BlFGdPZB.cjs +0 -1
- package/useFormValidation-BzzruZKm.js +0 -215
- package/useHover-BE_XKZKe.cjs +0 -1
- package/useListState-wLau6fXo.cjs +0 -1
- package/usePress-BooY_CAy.cjs +0 -7
- package/useTextField-DnRrCg5o.cjs +0 -1
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-CoCR_Fce.js +0 -234
- package/utils-Dvdohqm9.cjs +0 -1
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { $ as Z } from "./mergeProps-BSsN7Bgk.js";
|
|
2
|
+
import { flushSync as ge } from "react-dom";
|
|
3
|
+
import $e, { useEffect as Q, useState as D, useCallback as Y, useRef as te, useContext as he, createContext as se, forwardRef as be } from "react";
|
|
4
|
+
import { i as xe } from "./useHover-D6bNIkU0.js";
|
|
5
|
+
import { $ as J } from "./number-BE8InLgI.js";
|
|
6
|
+
import { $ as we } from "./context-CGNJ3grH.js";
|
|
7
|
+
import { $ as Ee } from "./useControlledState-u436Wbp1.js";
|
|
8
|
+
import { $ as Pe, a as Ce } from "./utils-Cpcjg55U.js";
|
|
9
|
+
import { $ as Le } from "./filterDOMProps-wsa9OcNI.js";
|
|
10
|
+
function Re() {
|
|
11
|
+
return typeof window.ResizeObserver < "u";
|
|
12
|
+
}
|
|
13
|
+
function oe(t) {
|
|
14
|
+
const { ref: e, box: l, onResize: n } = t;
|
|
15
|
+
Q(() => {
|
|
16
|
+
let o = e == null ? void 0 : e.current;
|
|
17
|
+
if (o)
|
|
18
|
+
if (Re()) {
|
|
19
|
+
const r = new window.ResizeObserver((c) => {
|
|
20
|
+
c.length && n();
|
|
21
|
+
});
|
|
22
|
+
return r.observe(o, {
|
|
23
|
+
box: l
|
|
24
|
+
}), () => {
|
|
25
|
+
o && r.unobserve(o);
|
|
26
|
+
};
|
|
27
|
+
} else
|
|
28
|
+
return window.addEventListener("resize", n, !1), () => {
|
|
29
|
+
window.removeEventListener("resize", n, !1);
|
|
30
|
+
};
|
|
31
|
+
}, [
|
|
32
|
+
n,
|
|
33
|
+
e,
|
|
34
|
+
l
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
function Ke(t, e = !0) {
|
|
38
|
+
let [l, n] = D(!0), o = l && e;
|
|
39
|
+
return Z(() => {
|
|
40
|
+
if (o && t.current && "getAnimations" in t.current)
|
|
41
|
+
for (let r of t.current.getAnimations()) r instanceof CSSTransition && r.cancel();
|
|
42
|
+
}, [
|
|
43
|
+
t,
|
|
44
|
+
o
|
|
45
|
+
]), fe(t, o, Y(() => n(!1), [])), o;
|
|
46
|
+
}
|
|
47
|
+
function Qe(t, e) {
|
|
48
|
+
let [l, n] = D(e ? "open" : "closed");
|
|
49
|
+
switch (l) {
|
|
50
|
+
case "open":
|
|
51
|
+
e || n("exiting");
|
|
52
|
+
break;
|
|
53
|
+
case "closed":
|
|
54
|
+
case "exiting":
|
|
55
|
+
e && n("open");
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
let o = l === "exiting";
|
|
59
|
+
return fe(t, o, Y(() => {
|
|
60
|
+
n((r) => r === "exiting" ? "closed" : r);
|
|
61
|
+
}, [])), o;
|
|
62
|
+
}
|
|
63
|
+
function fe(t, e, l) {
|
|
64
|
+
Z(() => {
|
|
65
|
+
if (e && t.current) {
|
|
66
|
+
if (!("getAnimations" in t.current)) {
|
|
67
|
+
l();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
let n = t.current.getAnimations();
|
|
71
|
+
if (n.length === 0) {
|
|
72
|
+
l();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
let o = !1;
|
|
76
|
+
return Promise.all(n.map((r) => r.finished)).then(() => {
|
|
77
|
+
o || ge(() => {
|
|
78
|
+
l();
|
|
79
|
+
});
|
|
80
|
+
}).catch(() => {
|
|
81
|
+
}), () => {
|
|
82
|
+
o = !0;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}, [
|
|
86
|
+
t,
|
|
87
|
+
e,
|
|
88
|
+
l
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
const I = {
|
|
92
|
+
top: "top",
|
|
93
|
+
bottom: "top",
|
|
94
|
+
left: "left",
|
|
95
|
+
right: "left"
|
|
96
|
+
}, U = {
|
|
97
|
+
top: "bottom",
|
|
98
|
+
bottom: "top",
|
|
99
|
+
left: "right",
|
|
100
|
+
right: "left"
|
|
101
|
+
}, Te = {
|
|
102
|
+
top: "left",
|
|
103
|
+
left: "top"
|
|
104
|
+
}, K = {
|
|
105
|
+
top: "height",
|
|
106
|
+
left: "width"
|
|
107
|
+
}, de = {
|
|
108
|
+
width: "totalWidth",
|
|
109
|
+
height: "totalHeight"
|
|
110
|
+
}, j = {};
|
|
111
|
+
let P = typeof document < "u" ? window.visualViewport : null;
|
|
112
|
+
function le(t) {
|
|
113
|
+
let e = 0, l = 0, n = 0, o = 0, r = 0, c = 0, i = {};
|
|
114
|
+
var h;
|
|
115
|
+
let d = ((h = P == null ? void 0 : P.scale) !== null && h !== void 0 ? h : 1) > 1;
|
|
116
|
+
if (t.tagName === "BODY") {
|
|
117
|
+
let u = document.documentElement;
|
|
118
|
+
n = u.clientWidth, o = u.clientHeight;
|
|
119
|
+
var p;
|
|
120
|
+
e = (p = P == null ? void 0 : P.width) !== null && p !== void 0 ? p : n;
|
|
121
|
+
var v;
|
|
122
|
+
l = (v = P == null ? void 0 : P.height) !== null && v !== void 0 ? v : o, i.top = u.scrollTop || t.scrollTop, i.left = u.scrollLeft || t.scrollLeft, P && (r = P.offsetTop, c = P.offsetLeft);
|
|
123
|
+
} else
|
|
124
|
+
({ width: e, height: l, top: r, left: c } = B(t, !1)), i.top = t.scrollTop, i.left = t.scrollLeft, n = e, o = l;
|
|
125
|
+
if (xe() && (t.tagName === "BODY" || t.tagName === "HTML") && d) {
|
|
126
|
+
i.top = 0, i.left = 0;
|
|
127
|
+
var m;
|
|
128
|
+
r = (m = P == null ? void 0 : P.pageTop) !== null && m !== void 0 ? m : 0;
|
|
129
|
+
var s;
|
|
130
|
+
c = (s = P == null ? void 0 : P.pageLeft) !== null && s !== void 0 ? s : 0;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
width: e,
|
|
134
|
+
height: l,
|
|
135
|
+
totalWidth: n,
|
|
136
|
+
totalHeight: o,
|
|
137
|
+
scroll: i,
|
|
138
|
+
top: r,
|
|
139
|
+
left: c
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function _e(t) {
|
|
143
|
+
return {
|
|
144
|
+
top: t.scrollTop,
|
|
145
|
+
left: t.scrollLeft,
|
|
146
|
+
width: t.scrollWidth,
|
|
147
|
+
height: t.scrollHeight
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function ne(t, e, l, n, o, r, c) {
|
|
151
|
+
var i;
|
|
152
|
+
let h = (i = o.scroll[t]) !== null && i !== void 0 ? i : 0, d = n[K[t]], p = n.scroll[I[t]] + r, v = d + n.scroll[I[t]] - r, m = e - h + c[t] - n[I[t]], s = e - h + l + c[t] - n[I[t]];
|
|
153
|
+
return m < p ? p - m : s > v ? Math.max(v - s, p - m) : 0;
|
|
154
|
+
}
|
|
155
|
+
function Ae(t) {
|
|
156
|
+
let e = window.getComputedStyle(t);
|
|
157
|
+
return {
|
|
158
|
+
top: parseInt(e.marginTop, 10) || 0,
|
|
159
|
+
bottom: parseInt(e.marginBottom, 10) || 0,
|
|
160
|
+
left: parseInt(e.marginLeft, 10) || 0,
|
|
161
|
+
right: parseInt(e.marginRight, 10) || 0
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function re(t) {
|
|
165
|
+
if (j[t]) return j[t];
|
|
166
|
+
let [e, l] = t.split(" "), n = I[e] || "right", o = Te[n];
|
|
167
|
+
I[l] || (l = "center");
|
|
168
|
+
let r = K[n], c = K[o];
|
|
169
|
+
return j[t] = {
|
|
170
|
+
placement: e,
|
|
171
|
+
crossPlacement: l,
|
|
172
|
+
axis: n,
|
|
173
|
+
crossAxis: o,
|
|
174
|
+
size: r,
|
|
175
|
+
crossSize: c
|
|
176
|
+
}, j[t];
|
|
177
|
+
}
|
|
178
|
+
function q(t, e, l, n, o, r, c, i, h, d) {
|
|
179
|
+
let { placement: p, crossPlacement: v, axis: m, crossAxis: s, size: u, crossSize: g } = n, f = {};
|
|
180
|
+
var L;
|
|
181
|
+
f[s] = (L = t[s]) !== null && L !== void 0 ? L : 0;
|
|
182
|
+
var a, w, x, R;
|
|
183
|
+
v === "center" ? f[s] += (((a = t[g]) !== null && a !== void 0 ? a : 0) - ((w = l[g]) !== null && w !== void 0 ? w : 0)) / 2 : v !== s && (f[s] += ((x = t[g]) !== null && x !== void 0 ? x : 0) - ((R = l[g]) !== null && R !== void 0 ? R : 0)), f[s] += r;
|
|
184
|
+
const $ = t[s] - l[g] + h + d, T = t[s] + t[g] - h - d;
|
|
185
|
+
if (f[s] = J(f[s], $, T), p === m) {
|
|
186
|
+
const M = i ? c[u] : e[de[u]];
|
|
187
|
+
f[U[m]] = Math.floor(M - t[m] + o);
|
|
188
|
+
} else f[m] = Math.floor(t[m] + t[u] + o);
|
|
189
|
+
return f;
|
|
190
|
+
}
|
|
191
|
+
function He(t, e, l, n, o, r, c, i) {
|
|
192
|
+
const h = n ? l.height : e[de.height];
|
|
193
|
+
var d;
|
|
194
|
+
let p = t.top != null ? l.top + t.top : l.top + (h - ((d = t.bottom) !== null && d !== void 0 ? d : 0) - c);
|
|
195
|
+
var v, m, s, u, g, f;
|
|
196
|
+
let L = i !== "top" ? (
|
|
197
|
+
// We want the distance between the top of the overlay to the bottom of the boundary
|
|
198
|
+
Math.max(0, e.height + e.top + ((v = e.scroll.top) !== null && v !== void 0 ? v : 0) - p - (((m = o.top) !== null && m !== void 0 ? m : 0) + ((s = o.bottom) !== null && s !== void 0 ? s : 0) + r))
|
|
199
|
+
) : Math.max(0, p + c - (e.top + ((u = e.scroll.top) !== null && u !== void 0 ? u : 0)) - (((g = o.top) !== null && g !== void 0 ? g : 0) + ((f = o.bottom) !== null && f !== void 0 ? f : 0) + r));
|
|
200
|
+
return Math.min(e.height - r * 2, L);
|
|
201
|
+
}
|
|
202
|
+
function ie(t, e, l, n, o, r) {
|
|
203
|
+
let { placement: c, axis: i, size: h } = r;
|
|
204
|
+
var d, p;
|
|
205
|
+
if (c === i) return Math.max(0, l[i] - t[i] - ((d = t.scroll[i]) !== null && d !== void 0 ? d : 0) + e[i] - ((p = n[i]) !== null && p !== void 0 ? p : 0) - n[U[i]] - o);
|
|
206
|
+
var v;
|
|
207
|
+
return Math.max(0, t[h] + t[i] + t.scroll[i] - e[i] - l[i] - l[h] - ((v = n[i]) !== null && v !== void 0 ? v : 0) - n[U[i]] - o);
|
|
208
|
+
}
|
|
209
|
+
function Se(t, e, l, n, o, r, c, i, h, d, p, v, m, s, u, g) {
|
|
210
|
+
let f = re(t), { size: L, crossAxis: a, crossSize: w, placement: x, crossPlacement: R } = f, $ = q(e, i, l, f, p, v, d, m, u, g), T = p, M = ie(i, d, e, o, r + p, f);
|
|
211
|
+
if (c && n[L] > M) {
|
|
212
|
+
let W = re(`${U[x]} ${R}`), ve = q(e, i, l, W, p, v, d, m, u, g);
|
|
213
|
+
ie(i, d, e, o, r + p, W) > M && (f = W, $ = ve, T = p);
|
|
214
|
+
}
|
|
215
|
+
let H = "bottom";
|
|
216
|
+
f.axis === "top" ? f.placement === "top" ? H = "top" : f.placement === "bottom" && (H = "bottom") : f.crossAxis === "top" && (f.crossPlacement === "top" ? H = "bottom" : f.crossPlacement === "bottom" && (H = "top"));
|
|
217
|
+
let S = ne(a, $[a], l[w], i, h, r, d);
|
|
218
|
+
$[a] += S;
|
|
219
|
+
let y = He($, i, d, m, o, r, l.height, H);
|
|
220
|
+
s && s < y && (y = s), l.height = Math.min(l.height, y), $ = q(e, i, l, f, T, v, d, m, u, g), S = ne(a, $[a], l[w], i, h, r, d), $[a] += S;
|
|
221
|
+
let E = {}, C = e[a] - $[a] - o[I[a]], O = C + 0.5 * e[w];
|
|
222
|
+
const X = u / 2 + g;
|
|
223
|
+
var _, k, N, z;
|
|
224
|
+
const A = I[a] === "left" ? ((_ = o.left) !== null && _ !== void 0 ? _ : 0) + ((k = o.right) !== null && k !== void 0 ? k : 0) : ((N = o.top) !== null && N !== void 0 ? N : 0) + ((z = o.bottom) !== null && z !== void 0 ? z : 0), F = l[w] - A - u / 2 - g, G = e[a] + u / 2 - ($[a] + o[I[a]]), ue = e[a] + e[w] - u / 2 - ($[a] + o[I[a]]), pe = J(O, G, ue);
|
|
225
|
+
E[a] = J(pe, X, F), { placement: x, crossPlacement: R } = f, u ? C = E[a] : R === "right" ? C += e[w] : R === "center" && (C += e[w] / 2);
|
|
226
|
+
let ee = x === "left" || x === "top" ? l[L] : 0, me = {
|
|
227
|
+
x: x === "top" || x === "bottom" ? C : ee,
|
|
228
|
+
y: x === "left" || x === "right" ? C : ee
|
|
229
|
+
};
|
|
230
|
+
return {
|
|
231
|
+
position: $,
|
|
232
|
+
maxHeight: y,
|
|
233
|
+
arrowOffsetLeft: E.left,
|
|
234
|
+
arrowOffsetTop: E.top,
|
|
235
|
+
placement: x,
|
|
236
|
+
triggerAnchorPoint: me
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function ye(t) {
|
|
240
|
+
let { placement: e, targetNode: l, overlayNode: n, scrollNode: o, padding: r, shouldFlip: c, boundaryElement: i, offset: h, crossOffset: d, maxHeight: p, arrowSize: v = 0, arrowBoundaryOffset: m = 0 } = t, s = n instanceof HTMLElement ? ze(n) : document.documentElement, u = s === document.documentElement;
|
|
241
|
+
const g = window.getComputedStyle(s).position;
|
|
242
|
+
let f = !!g && g !== "static", L = u ? B(l, !1) : ae(l, s, !1);
|
|
243
|
+
if (!u) {
|
|
244
|
+
let { marginTop: E, marginLeft: C } = window.getComputedStyle(l);
|
|
245
|
+
L.top += parseInt(E, 10) || 0, L.left += parseInt(C, 10) || 0;
|
|
246
|
+
}
|
|
247
|
+
let a = B(n, !0), w = Ae(n);
|
|
248
|
+
var x, R;
|
|
249
|
+
a.width += ((x = w.left) !== null && x !== void 0 ? x : 0) + ((R = w.right) !== null && R !== void 0 ? R : 0);
|
|
250
|
+
var $, T;
|
|
251
|
+
a.height += (($ = w.top) !== null && $ !== void 0 ? $ : 0) + ((T = w.bottom) !== null && T !== void 0 ? T : 0);
|
|
252
|
+
let M = _e(o), H = le(i), S = le(s), y = i.tagName === "BODY" ? B(s, !1) : ae(s, i, !1);
|
|
253
|
+
return s.tagName === "HTML" && i.tagName === "BODY" && (S.scroll.top = 0, S.scroll.left = 0), Se(e, L, a, M, w, r, c, H, S, y, h, d, f, p, v, m);
|
|
254
|
+
}
|
|
255
|
+
function V(t, e) {
|
|
256
|
+
let { top: l, left: n, width: o, height: r } = t.getBoundingClientRect();
|
|
257
|
+
return e && t instanceof t.ownerDocument.defaultView.HTMLElement && (o = t.offsetWidth, r = t.offsetHeight), {
|
|
258
|
+
top: l,
|
|
259
|
+
left: n,
|
|
260
|
+
width: o,
|
|
261
|
+
height: r
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function B(t, e) {
|
|
265
|
+
let { top: l, left: n, width: o, height: r } = V(t, e), { scrollTop: c, scrollLeft: i, clientTop: h, clientLeft: d } = document.documentElement;
|
|
266
|
+
return {
|
|
267
|
+
top: l + c - h,
|
|
268
|
+
left: n + i - d,
|
|
269
|
+
width: o,
|
|
270
|
+
height: r
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function ae(t, e, l) {
|
|
274
|
+
let n = window.getComputedStyle(t), o;
|
|
275
|
+
if (n.position === "fixed") o = V(t, l);
|
|
276
|
+
else {
|
|
277
|
+
o = B(t, l);
|
|
278
|
+
let r = B(e, l), c = window.getComputedStyle(e);
|
|
279
|
+
r.top += (parseInt(c.borderTopWidth, 10) || 0) - e.scrollTop, r.left += (parseInt(c.borderLeftWidth, 10) || 0) - e.scrollLeft, o.top -= r.top, o.left -= r.left;
|
|
280
|
+
}
|
|
281
|
+
return o.top -= parseInt(n.marginTop, 10) || 0, o.left -= parseInt(n.marginLeft, 10) || 0, o;
|
|
282
|
+
}
|
|
283
|
+
function ze(t) {
|
|
284
|
+
let e = t.offsetParent;
|
|
285
|
+
if (e && e === document.body && window.getComputedStyle(e).position === "static" && !ce(e) && (e = document.documentElement), e == null)
|
|
286
|
+
for (e = t.parentElement; e && !ce(e); ) e = e.parentElement;
|
|
287
|
+
return e || document.documentElement;
|
|
288
|
+
}
|
|
289
|
+
function ce(t) {
|
|
290
|
+
let e = window.getComputedStyle(t);
|
|
291
|
+
return e.transform !== "none" || /transform|perspective/.test(e.willChange) || e.filter !== "none" || e.contain === "paint" || "backdropFilter" in e && e.backdropFilter !== "none" || "WebkitBackdropFilter" in e && e.WebkitBackdropFilter !== "none";
|
|
292
|
+
}
|
|
293
|
+
const Ie = /* @__PURE__ */ new WeakMap();
|
|
294
|
+
function Me(t) {
|
|
295
|
+
let { triggerRef: e, isOpen: l, onClose: n } = t;
|
|
296
|
+
Q(() => {
|
|
297
|
+
if (!l || n === null) return;
|
|
298
|
+
let o = (r) => {
|
|
299
|
+
let c = r.target;
|
|
300
|
+
if (!e.current || c instanceof Node && !c.contains(e.current) || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement) return;
|
|
301
|
+
let i = n || Ie.get(e.current);
|
|
302
|
+
i && i();
|
|
303
|
+
};
|
|
304
|
+
return window.addEventListener("scroll", o, !0), () => {
|
|
305
|
+
window.removeEventListener("scroll", o, !0);
|
|
306
|
+
};
|
|
307
|
+
}, [
|
|
308
|
+
l,
|
|
309
|
+
n,
|
|
310
|
+
e
|
|
311
|
+
]);
|
|
312
|
+
}
|
|
313
|
+
let b = typeof document < "u" ? window.visualViewport : null;
|
|
314
|
+
function De(t) {
|
|
315
|
+
let { direction: e } = we(), { arrowSize: l, targetRef: n, overlayRef: o, arrowRef: r, scrollRef: c = o, placement: i = "bottom", containerPadding: h = 12, shouldFlip: d = !0, boundaryElement: p = typeof document < "u" ? document.body : null, offset: v = 0, crossOffset: m = 0, shouldUpdatePosition: s = !0, isOpen: u = !0, onClose: g, maxHeight: f, arrowBoundaryOffset: L = 0 } = t, [a, w] = D(null), x = [
|
|
316
|
+
s,
|
|
317
|
+
i,
|
|
318
|
+
o.current,
|
|
319
|
+
n.current,
|
|
320
|
+
r == null ? void 0 : r.current,
|
|
321
|
+
c.current,
|
|
322
|
+
h,
|
|
323
|
+
d,
|
|
324
|
+
p,
|
|
325
|
+
v,
|
|
326
|
+
m,
|
|
327
|
+
u,
|
|
328
|
+
e,
|
|
329
|
+
f,
|
|
330
|
+
L,
|
|
331
|
+
l
|
|
332
|
+
], R = te(b == null ? void 0 : b.scale);
|
|
333
|
+
Q(() => {
|
|
334
|
+
u && (R.current = b == null ? void 0 : b.scale);
|
|
335
|
+
}, [
|
|
336
|
+
u
|
|
337
|
+
]);
|
|
338
|
+
let $ = Y(() => {
|
|
339
|
+
if (s === !1 || !u || !o.current || !n.current || !p || (b == null ? void 0 : b.scale) !== R.current) return;
|
|
340
|
+
let E = null;
|
|
341
|
+
if (c.current && c.current.contains(document.activeElement)) {
|
|
342
|
+
var C;
|
|
343
|
+
let A = (C = document.activeElement) === null || C === void 0 ? void 0 : C.getBoundingClientRect(), F = c.current.getBoundingClientRect();
|
|
344
|
+
var O;
|
|
345
|
+
if (E = {
|
|
346
|
+
type: "top",
|
|
347
|
+
offset: ((O = A == null ? void 0 : A.top) !== null && O !== void 0 ? O : 0) - F.top
|
|
348
|
+
}, E.offset > F.height / 2) {
|
|
349
|
+
E.type = "bottom";
|
|
350
|
+
var X;
|
|
351
|
+
E.offset = ((X = A == null ? void 0 : A.bottom) !== null && X !== void 0 ? X : 0) - F.bottom;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
let _ = o.current;
|
|
355
|
+
if (!f && o.current) {
|
|
356
|
+
var k;
|
|
357
|
+
_.style.top = "0px", _.style.bottom = "";
|
|
358
|
+
var N;
|
|
359
|
+
_.style.maxHeight = ((N = (k = window.visualViewport) === null || k === void 0 ? void 0 : k.height) !== null && N !== void 0 ? N : window.innerHeight) + "px";
|
|
360
|
+
}
|
|
361
|
+
let z = ye({
|
|
362
|
+
placement: ke(i, e),
|
|
363
|
+
overlayNode: o.current,
|
|
364
|
+
targetNode: n.current,
|
|
365
|
+
scrollNode: c.current || o.current,
|
|
366
|
+
padding: h,
|
|
367
|
+
shouldFlip: d,
|
|
368
|
+
boundaryElement: p,
|
|
369
|
+
offset: v,
|
|
370
|
+
crossOffset: m,
|
|
371
|
+
maxHeight: f,
|
|
372
|
+
arrowSize: l ?? (r != null && r.current ? V(r.current, !0).width : 0),
|
|
373
|
+
arrowBoundaryOffset: L
|
|
374
|
+
});
|
|
375
|
+
if (z.position) {
|
|
376
|
+
if (_.style.top = "", _.style.bottom = "", _.style.left = "", _.style.right = "", Object.keys(z.position).forEach((A) => _.style[A] = z.position[A] + "px"), _.style.maxHeight = z.maxHeight != null ? z.maxHeight + "px" : "", E && document.activeElement && c.current) {
|
|
377
|
+
let A = document.activeElement.getBoundingClientRect(), F = c.current.getBoundingClientRect(), G = A[E.type] - F[E.type];
|
|
378
|
+
c.current.scrollTop += G - E.offset;
|
|
379
|
+
}
|
|
380
|
+
w(z);
|
|
381
|
+
}
|
|
382
|
+
}, x);
|
|
383
|
+
Z($, x), Oe($), oe({
|
|
384
|
+
ref: o,
|
|
385
|
+
onResize: $
|
|
386
|
+
}), oe({
|
|
387
|
+
ref: n,
|
|
388
|
+
onResize: $
|
|
389
|
+
});
|
|
390
|
+
let T = te(!1);
|
|
391
|
+
Z(() => {
|
|
392
|
+
let E, C = () => {
|
|
393
|
+
T.current = !0, clearTimeout(E), E = setTimeout(() => {
|
|
394
|
+
T.current = !1;
|
|
395
|
+
}, 500), $();
|
|
396
|
+
}, O = () => {
|
|
397
|
+
T.current && C();
|
|
398
|
+
};
|
|
399
|
+
return b == null || b.addEventListener("resize", C), b == null || b.addEventListener("scroll", O), () => {
|
|
400
|
+
b == null || b.removeEventListener("resize", C), b == null || b.removeEventListener("scroll", O);
|
|
401
|
+
};
|
|
402
|
+
}, [
|
|
403
|
+
$
|
|
404
|
+
]);
|
|
405
|
+
let M = Y(() => {
|
|
406
|
+
T.current || g == null || g();
|
|
407
|
+
}, [
|
|
408
|
+
g,
|
|
409
|
+
T
|
|
410
|
+
]);
|
|
411
|
+
Me({
|
|
412
|
+
triggerRef: n,
|
|
413
|
+
isOpen: u,
|
|
414
|
+
onClose: g && M
|
|
415
|
+
});
|
|
416
|
+
var H, S, y;
|
|
417
|
+
return {
|
|
418
|
+
overlayProps: {
|
|
419
|
+
style: {
|
|
420
|
+
position: a ? "absolute" : "fixed",
|
|
421
|
+
top: a ? void 0 : 0,
|
|
422
|
+
left: a ? void 0 : 0,
|
|
423
|
+
zIndex: 1e5,
|
|
424
|
+
...a == null ? void 0 : a.position,
|
|
425
|
+
maxHeight: (H = a == null ? void 0 : a.maxHeight) !== null && H !== void 0 ? H : "100vh"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
placement: (S = a == null ? void 0 : a.placement) !== null && S !== void 0 ? S : null,
|
|
429
|
+
triggerAnchorPoint: (y = a == null ? void 0 : a.triggerAnchorPoint) !== null && y !== void 0 ? y : null,
|
|
430
|
+
arrowProps: {
|
|
431
|
+
"aria-hidden": "true",
|
|
432
|
+
role: "presentation",
|
|
433
|
+
style: {
|
|
434
|
+
left: a == null ? void 0 : a.arrowOffsetLeft,
|
|
435
|
+
top: a == null ? void 0 : a.arrowOffsetTop
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
updatePosition: $
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function Oe(t) {
|
|
442
|
+
Z(() => (window.addEventListener("resize", t, !1), () => {
|
|
443
|
+
window.removeEventListener("resize", t, !1);
|
|
444
|
+
}), [
|
|
445
|
+
t
|
|
446
|
+
]);
|
|
447
|
+
}
|
|
448
|
+
function ke(t, e) {
|
|
449
|
+
return e === "rtl" ? t.replace("start", "right").replace("end", "left") : t.replace("start", "left").replace("end", "right");
|
|
450
|
+
}
|
|
451
|
+
const Ne = /* @__PURE__ */ se({});
|
|
452
|
+
function Ve() {
|
|
453
|
+
var t;
|
|
454
|
+
return (t = he(Ne)) !== null && t !== void 0 ? t : {};
|
|
455
|
+
}
|
|
456
|
+
function et(t) {
|
|
457
|
+
let [e, l] = Ee(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
|
|
458
|
+
const n = Y(() => {
|
|
459
|
+
l(!0);
|
|
460
|
+
}, [
|
|
461
|
+
l
|
|
462
|
+
]), o = Y(() => {
|
|
463
|
+
l(!1);
|
|
464
|
+
}, [
|
|
465
|
+
l
|
|
466
|
+
]), r = Y(() => {
|
|
467
|
+
l(!e);
|
|
468
|
+
}, [
|
|
469
|
+
l,
|
|
470
|
+
e
|
|
471
|
+
]);
|
|
472
|
+
return {
|
|
473
|
+
isOpen: e,
|
|
474
|
+
setOpen: l,
|
|
475
|
+
open: n,
|
|
476
|
+
close: o,
|
|
477
|
+
toggle: r
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const Fe = /* @__PURE__ */ se({
|
|
481
|
+
placement: "bottom"
|
|
482
|
+
}), tt = /* @__PURE__ */ be(function(e, l) {
|
|
483
|
+
[e, l] = Pe(e, l, Fe);
|
|
484
|
+
let n = e.placement, o = {
|
|
485
|
+
position: "absolute",
|
|
486
|
+
transform: n === "top" || n === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
|
|
487
|
+
};
|
|
488
|
+
n != null && (o[n] = "100%");
|
|
489
|
+
let r = Ce({
|
|
490
|
+
...e,
|
|
491
|
+
defaultClassName: "react-aria-OverlayArrow",
|
|
492
|
+
values: {
|
|
493
|
+
placement: n
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
r.style && Object.keys(r.style).forEach((i) => r.style[i] === void 0 && delete r.style[i]);
|
|
497
|
+
let c = Le(e);
|
|
498
|
+
return /* @__PURE__ */ $e.createElement("div", {
|
|
499
|
+
...c,
|
|
500
|
+
...r,
|
|
501
|
+
style: {
|
|
502
|
+
...o,
|
|
503
|
+
...r.style
|
|
504
|
+
},
|
|
505
|
+
ref: l,
|
|
506
|
+
"data-placement": n
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
export {
|
|
510
|
+
tt as $,
|
|
511
|
+
et as a,
|
|
512
|
+
Qe as b,
|
|
513
|
+
Ke as c,
|
|
514
|
+
Ve as d,
|
|
515
|
+
De as e,
|
|
516
|
+
Fe as f,
|
|
517
|
+
oe as g,
|
|
518
|
+
Ie as h
|
|
519
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),n=require("./OverlayArrow-
|
|
1
|
+
"use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),n=require("./OverlayArrow-ByH6lM-H.cjs"),a=require("./Dialog-DR6nEqMT.cjs"),p="_popover_1xltt_1",l="_arrow_1xltt_15",e={popover:p,arrow:l};function x({children:o,className:s,offset:t=4,...c}){return r.jsxs(a.$07b14b47974efb58$export$5b6b19405a83ff9d,{...c,offset:t,className:i.clsx(e.popover,s),children:[r.jsx(n.$44f671af83e7d9e0$export$746d02f47f4d381,{className:e.arrow,children:r.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:r.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o]})}exports.Popover=x;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { $ as c } from "./OverlayArrow-
|
|
4
|
-
import { a as i } from "./Dialog-
|
|
5
|
-
import './assets/Popover.css';const m = "
|
|
3
|
+
import { $ as c } from "./OverlayArrow-CvNuu3e3.js";
|
|
4
|
+
import { a as i } from "./Dialog-B8swxl24.js";
|
|
5
|
+
import './assets/Popover.css';const m = "_popover_1xltt_1", d = "_arrow_1xltt_15", r = {
|
|
6
6
|
popover: m,
|
|
7
7
|
arrow: d
|
|
8
8
|
};
|
|
9
9
|
function v({
|
|
10
10
|
children: e,
|
|
11
|
-
className:
|
|
12
|
-
offset:
|
|
13
|
-
...
|
|
11
|
+
className: t,
|
|
12
|
+
offset: s = 4,
|
|
13
|
+
...p
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ a(
|
|
16
16
|
i,
|
|
17
17
|
{
|
|
18
|
-
...
|
|
19
|
-
offset:
|
|
20
|
-
className: f(r.popover,
|
|
18
|
+
...p,
|
|
19
|
+
offset: s,
|
|
20
|
+
className: f(r.popover, t),
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ o(c, { className: r.arrow, children: /* @__PURE__ */ o(
|
|
23
23
|
"svg",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as s } from "./usePress-
|
|
2
|
-
import { a as n } from "./mergeProps-
|
|
3
|
-
import { b as i } from "./utils-
|
|
4
|
-
import { $ as d } from "./useFocusable-
|
|
1
|
+
import { a as s } from "./usePress-DMUpU0GU.js";
|
|
2
|
+
import { a as n } from "./mergeProps-BSsN7Bgk.js";
|
|
3
|
+
import { b as i } from "./utils-Cpcjg55U.js";
|
|
4
|
+
import { $ as d } from "./useFocusable-DXlMChFC.js";
|
|
5
5
|
import f, { useRef as b, useContext as l, useEffect as u, useMemo as $ } from "react";
|
|
6
6
|
const w = /* @__PURE__ */ f.forwardRef(({ children: t, ...o }, r) => {
|
|
7
7
|
let a = b(!1), e = l(s);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./usePress-
|
|
1
|
+
"use strict";const s=require("./usePress-CicXV7UO.cjs"),f=require("./mergeProps-JhcJ7uJL.cjs"),n=require("./utils-CMHKYKlz.cjs"),$=require("./useFocusable-CsG-IPuC.cjs"),r=require("react"),u=r.forwardRef(({children:c,...a},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=n.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let b=f.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...a,ref:t,register(){o.current=!0,e&&e.register()}});return $.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t),r.useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:b},c)});function d({children:c}){let a=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:a},c)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=u;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=d;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as s, jsxs as d, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "./Button-DD5_S-tD.js";
|
|
3
|
+
import { L as t } from "./Label-BG7G0iyG.js";
|
|
4
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import './assets/ProgressBar.css';const N = "_progressBar_1ia8w_1", v = "_label_1ia8w_9", h = "_value_1ia8w_14", u = "_bar_1ia8w_19", w = "_fill_1ia8w_25", e = {
|
|
6
|
+
progressBar: N,
|
|
7
|
+
label: v,
|
|
8
|
+
value: h,
|
|
9
|
+
bar: u,
|
|
10
|
+
fill: w
|
|
11
|
+
}, $ = ({
|
|
12
|
+
label: i,
|
|
13
|
+
labelProps: a,
|
|
14
|
+
showValueLabel: m = !1,
|
|
15
|
+
...r
|
|
16
|
+
}) => /* @__PURE__ */ s(
|
|
17
|
+
o,
|
|
18
|
+
{
|
|
19
|
+
...r,
|
|
20
|
+
className: c(e.progressBar, r.className),
|
|
21
|
+
children: ({ percentage: n, valueText: l, isIndeterminate: _ }) => /* @__PURE__ */ d(f, { children: [
|
|
22
|
+
i && /* @__PURE__ */ s(
|
|
23
|
+
t,
|
|
24
|
+
{
|
|
25
|
+
elementType: "span",
|
|
26
|
+
...a,
|
|
27
|
+
className: c(a == null ? void 0 : a.className, e.label),
|
|
28
|
+
children: i
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
m && /* @__PURE__ */ s(
|
|
32
|
+
t,
|
|
33
|
+
{
|
|
34
|
+
elementType: "span",
|
|
35
|
+
...a,
|
|
36
|
+
id: "",
|
|
37
|
+
className: c(a == null ? void 0 : a.className, e.value),
|
|
38
|
+
children: l
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ s("div", { className: e.bar, children: /* @__PURE__ */ s(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: e.fill,
|
|
45
|
+
style: { width: `${_ ? 50 : n}%` }
|
|
46
|
+
}
|
|
47
|
+
) })
|
|
48
|
+
] })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
export {
|
|
52
|
+
$ as P
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),x=require("./Button-CMIbSc4-.cjs"),i=require("./Label-C00qz3kQ.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ia8w_1",d="_label_1ia8w_9",N="_value_1ia8w_14",f="_bar_1ia8w_19",j="_fill_1ia8w_25",a={progressBar:m,label:d,value:N,bar:f,fill:j},v=({label:r,labelProps:s,showValueLabel:n=!1,...t})=>e.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:l,valueText:_,isIndeterminate:u})=>e.jsxs(e.Fragment,{children:[r&&e.jsx(i.Label,{elementType:"span",...s,className:c.clsx(s==null?void 0:s.className,a.label),children:r}),n&&e.jsx(i.Label,{elementType:"span",...s,id:"",className:c.clsx(s==null?void 0:s.className,a.value),children:_}),e.jsx("div",{className:a.bar,children:e.jsx("div",{className:a.fill,style:{width:`${u?50:l}%`}})})]})});exports.ProgressBar=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),U=require("./Group-BKYGeOBr.cjs"),P=require("./utils-CMHKYKlz.cjs"),M=require("./FieldError-Cornph2A.cjs"),K=require("./Form-BuOomA4T.cjs"),z=require("./Button-CMIbSc4-.cjs"),J=require("./Text-BtPiT2P1.cjs"),R=require("./mergeProps-JhcJ7uJL.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),o=require("react"),B=require("./useFormValidation-BQIRxgbU.cjs"),k=require("./usePress-CicXV7UO.cjs"),Q=require("./useFocusable-CsG-IPuC.cjs"),X=require("./utils-__vrf9VZ.cjs"),Y=require("./FocusScope-Uy3DiY0-.cjs"),Z=require("./useFocusWithin-DTnk0e8a.cjs"),ee=require("./useField-DyeD7MLj.cjs"),ae=require("./context-Df3XbgBG.cjs"),ie=require("./useFocusRing-BcbYske2.cjs"),de=require("./useHover-DGAmG7jt.cjs"),re=require("./VisuallyHidden-EjrqodVh.cjs"),le=require("./useControlledState-D0L6S_5r.cjs"),G=require("./clsx-C11secjj.cjs"),L=require("./Label-C00qz3kQ.cjs"),te=require("./Text-BAFsaON-.cjs"),N=new WeakMap;function oe(a,e,d){let{value:l,children:n,"aria-label":r,"aria-labelledby":c,onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v}=a;const b=a.isDisabled||e.isDisabled;let g=n!=null,h=r!=null||c!=null;!g&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=e.selectedValue===l,F=C=>{C.stopPropagation(),e.setSelectedValue(l)},{pressProps:I,isPressed:D}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPress:t,onPressUp:s,onClick:v,isDisabled:b}),{pressProps:E,isPressed:x}=k.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:f,onPressChange:$,onPressUp:s,onClick:v,isDisabled:b,onPress(C){var _;t==null||t(C),e.setSelectedValue(l),(_=d.current)===null||_===void 0||_.focus()}}),{focusableProps:u}=Q.$f645667febf57a63$export$4c014de7c8940b4c(R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),q=R.$3ef42575df84b30b$export$9d1611c77c2fe928(I,u),p=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),y=-1;e.selectedValue!=null?e.selectedValue===l&&(y=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(y=0),b&&(y=void 0);let{name:T,form:W,descriptionId:H,errorMessageId:A,validationBehavior:O}=N.get(e);return B.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),B.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:O},e,d),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(E,{onClick:C=>C.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(p,{...q,type:"radio",name:T,form:W,tabIndex:y,disabled:b,required:e.isRequired&&O==="native",checked:m,value:l,onChange:F,"aria-describedby":[a["aria-describedby"],e.isInvalid?A:null,H].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:m,isPressed:D||x}}function se(a,e){let{name:d,form:l,isReadOnly:n,isRequired:r,isDisabled:c,orientation:i="vertical",validationBehavior:f="aria"}=a,{direction:$}=ae.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:t,validationErrors:s,validationDetails:v}=e.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:h,errorMessageProps:m}=ee.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||s}),F=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:I}=Z.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(x){var u;(u=a.onBlur)===null||u===void 0||u.call(a,x),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),D=x=>{let u;switch(x.key){case"ArrowRight":$==="rtl"&&i!=="vertical"?u="prev":u="next";break;case"ArrowLeft":$==="rtl"&&i!=="vertical"?u="next":u="prev";break;case"ArrowDown":u="next";break;case"ArrowUp":u="prev";break;default:return}x.preventDefault();let q=Y.$9bf71ea28793e738$export$2d6ec8fc375ceafa(x.currentTarget,{from:x.target,accept:y=>y instanceof X.$431fbd86ca7dc216$export$f21a1ffae260145a(y).HTMLInputElement&&y.type==="radio"}),p;u==="next"?(p=q.nextNode(),p||(q.currentNode=x.currentTarget,p=q.firstChild())):(p=q.previousNode(),p||(q.currentNode=x.currentTarget,p=q.lastChild())),p&&(p.focus(),e.setSelectedValue(p.value))},E=R.$bdb11010cef70236$export$f680877a34711e37(d);return N.set(e,{name:E,form:l,descriptionId:h.id,errorMessageId:m.id,validationBehavior:f}),{radioGroupProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{role:"radiogroup",onKeyDown:D,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":r||void 0,"aria-disabled":c||void 0,"aria-orientation":i,...g,...I}),labelProps:b,descriptionProps:h,errorMessageProps:m,isInvalid:t,validationErrors:s,validationDetails:v}}let ne=Math.round(Math.random()*1e10),ce=0;function ue(a){let e=o.useMemo(()=>a.name||`radio-group-${ne}-${++ce}`,[a.name]);var d;let[l,n]=le.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=o.useState(l),[c,i]=o.useState(null),f=B.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),$=v=>{!a.isReadOnly&&!a.isDisabled&&(n(v),f.commitValidation())},t=f.displayValidation.isInvalid;var s;return{...f,name:e,selectedValue:l,defaultSelectedValue:a.value!==void 0?r:(s=a.defaultValue)!==null&&s!==void 0?s:null,setSelectedValue:$,lastFocusedValue:c,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(t?"invalid":null),isInvalid:t}}const fe=o.createContext(null),$e=o.createContext(null),j=o.createContext(null),be=o.forwardRef(function(e,d){[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,fe);let{validationBehavior:l}=P.$64fa3d84918910a7$export$fabf2dc03a41866e(K.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var n,r;let c=(r=(n=e.validationBehavior)!==null&&n!==void 0?n:l)!==null&&r!==void 0?r:"native",i=ue({...e,validationBehavior:c}),[f,$]=P.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:t,labelProps:s,descriptionProps:v,errorMessageProps:b,...g}=se({...e,label:$,validationBehavior:c},i),h=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),m=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return o.createElement("div",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(m,h,t),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},o.createElement(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[j,i],[z.$01b77f81d0f07f68$export$75b6ee27786ba447,{...s,ref:f,elementType:"span"}],[J.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:b}}],[M.$ee014567cb39d3f0$export$ff05c3ac10437e03,g]]},h.children))}),ve=o.forwardRef(function(e,d){let{inputRef:l=null,...n}=e;[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(n,d,$e);let r=o.useContext(j),c=P.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>P.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:f,isSelected:$,isDisabled:t,isPressed:s}=oe({...P.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,c),{isFocused:v,isFocusVisible:b,focusProps:g}=ie.$f7dceffc5ad7768b$export$4e328f61c538687f(),h=t||r.isReadOnly,{hoverProps:m,isHovered:F}=de.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:h}),I=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:$,isPressed:s,isHovered:F,isFocused:v,isFocusVisible:b,isDisabled:t,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),D=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete D.id,delete D.onClick,o.createElement("label",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(D,i,m,I),ref:d,"data-selected":$||void 0,"data-pressed":s||void 0,"data-hovered":F||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-disabled":t||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},o.createElement(re.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(f,g),ref:c})),I.children)}),pe="_radioGroup_if66i_4",xe="_wrap_if66i_15",Pe="_radio_if66i_4",w={radioGroup:pe,wrap:xe,radio:Pe},he=({label:a,description:e,errorMessage:d,children:l,className:n,errorPosition:r="top",popover:c,...i})=>V.jsxs(be,{...i,className:G.clsx(w.radioGroup,n),children:[V.jsx(L.LabelWrapper,{popover:c,children:a&&V.jsx(L.Label,{children:a})}),e&&V.jsx(te.Text,{slot:"description",children:e}),r==="top"&&V.jsx(M.FieldError,{"data-testid":"fieldError",children:d}),V.jsx(U.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:w.wrap,children:l}),r==="bottom"&&V.jsx(M.FieldError,{"data-testid":"fieldError",children:d})]}),me=({className:a,...e})=>V.jsx(ve,{className:G.clsx(w.radio,a),...e});exports.Radio=me;exports.RadioGroup=he;
|