@midas-ds/components 12.0.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-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-DQm2iqKU.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 +65 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- 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-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.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-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
- package/FieldError-Cornph2A.cjs +1 -0
- package/FieldError-DdvFyIf4.js +48 -0
- package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
- package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-Dnnv00g9.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-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
- package/PressResponder-DbnYqwGB.cjs +1 -0
- 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-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BdKKuso-.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-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
- package/{Text-wuw0HQoa.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-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
- package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
- 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-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
- package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- 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 -1
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- 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/index.cjs +1 -1
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +4 -2
- package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
- 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 +18 -0
- 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/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
- package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +140 -125
- package/inertValue-B3AFhVG4.cjs +1 -0
- 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-BSsN7Bgk.js +117 -0
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +6 -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.js +1 -1
- 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/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -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 +4 -1
- package/theme/index.js +4037 -14
- package/theme/tokens.d.ts +30 -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-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
- package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
- 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-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/useEvent-3ZO5TPSH.cjs +1 -0
- package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
- package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/useHasTabbableChild-CJcLnolh.cjs +1 -0
- package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
- package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
- package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/useTextField-BC5X_AO_.js +89 -0
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/types.d.ts +4 -0
- package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-DEiRuizp.js +0 -361
- package/AccordionItem-Dhr7uo8u.cjs +0 -1
- package/BadgeContainer-CxVmqJ7g.cjs +0 -1
- package/Breadcrumbs-CEyKlcGU.js +0 -262
- package/Breadcrumbs-CnGzvtbn.cjs +0 -1
- package/Button-DZzQGk-L.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-CwwVnA_a.js +0 -131
- package/Card-DPfOZC7f.cjs +0 -1
- package/CharacterCounter-DPphWPzA.js +0 -22
- package/Checkbox-BN_3F2Hl.js +0 -264
- package/Checkbox-CZtCj4yR.cjs +0 -1
- package/CheckboxGroup--xgOT1Do.js +0 -159
- package/CheckboxGroup-DGHaqRvb.cjs +0 -1
- package/Collection-B1xL4EdF.cjs +0 -1
- package/Collection-C5vE9MtJ.js +0 -577
- package/ComboBox-UadZMhiR.cjs +0 -1
- package/DateField-CNEoLyf5.cjs +0 -1
- package/DateField-CZmLugT0.js +0 -47
- package/DateInputDivider-CCjiq90K.cjs +0 -1
- package/DateRangePicker-DhgLEa9P.cjs +0 -6
- package/DateRangePicker-WQ97Psz7.js +0 -870
- package/Dialog-BT0tVGQb.cjs +0 -1
- package/Dialog-BuJdAr0D.js +0 -1611
- package/Dialog-DYK8lySl.cjs +0 -1
- package/Dialog-L53DWF0Z.js +0 -220
- package/DragAndDrop-DKxsUpmW.js +0 -60
- package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
- package/FieldError-BlKkw9YL.js +0 -46
- package/FieldError-BvU0sueN.cjs +0 -1
- package/FocusScope-CAgWgk3N.cjs +0 -1
- package/GridItem-BnyULDnc.cjs +0 -1
- package/GridItem-orSzD7H5.js +0 -243
- package/Heading-DDhdwRAW.js +0 -46
- package/Heading-OUPkdoEJ.cjs +0 -1
- package/InfoBanner-DpLcq_1R.cjs +0 -1
- package/InfoBanner-U5hxOipC.js +0 -99
- package/Label-COpr4xVt.cjs +0 -1
- package/Layout-BR3Or1Ga.cjs +0 -16
- package/Layout-Bdqauktv.js +0 -498
- package/Link-CM2N5Jq-.js +0 -72
- package/Link-Dq8IFDBx.cjs +0 -6
- package/Link-ceVlGaWQ.cjs +0 -1
- package/LinkButton-BJA9_HzL.cjs +0 -6
- package/LinkButton-DH3Nfdis.js +0 -69
- package/ListBox-D0u9svwm.cjs +0 -1
- package/ListBox-y_dw__MI.js +0 -531
- package/ListBoxButton-C2zp-gXD.cjs +0 -1
- package/ListBoxButton-DiseS_LX.js +0 -15
- package/ListBoxSection-Cv-gN76G.js +0 -1058
- package/ListBoxSection-DtsigmC1.cjs +0 -1
- package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
- package/OverlayArrow-8praV_Xy.cjs +0 -1
- package/OverlayArrow-DfkRZlgG.js +0 -507
- package/PressResponder-Bm3_RM9c.cjs +0 -1
- package/ProgressBar-D5mNQTID.cjs +0 -1
- package/ProgressBar-wQirOG1N.js +0 -53
- package/Radio-BIomn_sP.js +0 -313
- package/Radio-CxvJ5Wrl.cjs +0 -1
- package/RangeCalendar-BvvZ2SBj.cjs +0 -11
- package/Select-769RSZ9V.js +0 -664
- package/Select-Go5x0zWl.cjs +0 -1
- package/SelectionManager-BvREZgeu.cjs +0 -1
- package/Separator-CggS0R7Q.js +0 -59
- package/Separator-DBsDhqCr.cjs +0 -1
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-AXFRWuT6.js +0 -51
- package/Spinner-yHx_DX_4.cjs +0 -6
- package/TabList-0gj27e_e.js +0 -386
- package/TabList-Cqpup53E.cjs +0 -1
- package/Table-BhtlNY9P.cjs +0 -16
- package/Tag-B9M-nBTM.js +0 -748
- package/Tag-DkW6zaIS.cjs +0 -1
- package/Text-BUDAzDjW.js +0 -32
- package/Text-DA_gK6a2.cjs +0 -1
- package/TextArea-CSrrYY05.cjs +0 -1
- package/TextArea-DphcH6wE.js +0 -119
- package/TextField-CsyRTSEG.js +0 -120
- package/TextField-P5yICj5z.cjs +0 -1
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
- package/ToggleButtonGroup-CuxAKB3-.js +0 -211
- package/Tooltip-Bz0xCZSw.cjs +0 -1
- package/Tooltip-EuEQtHZj.js +0 -285
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/mergeProps-BYJQ6N1s.js +0 -115
- package/mergeProps-C7Sx47fA.cjs +0 -1
- package/useButton-CWHoXYnj.js +0 -47
- package/useButton-CwOQUGtY.cjs +0 -1
- package/useDateFormatter-bzjwqA2K.cjs +0 -1
- package/useEvent-CGRyLM2c.cjs +0 -1
- package/useFormValidation-BW2NSTM4.js +0 -215
- package/useFormValidation-DSRwb9US.cjs +0 -1
- package/useHasTabbableChild-CogBR_6o.cjs +0 -1
- package/useHover-CaFzQrR_.cjs +0 -1
- package/useListState-TtWy_rDI.cjs +0 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BOGIOlm8.cjs +0 -7
- package/useTextField-BVIOd8Ld.cjs +0 -1
- package/useTextField-DFkSHoQN.js +0 -86
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-C5-CzvX2.cjs +0 -1
- package/utils-CuqJqFqQ.js +0 -234
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { m as oe, b as O, $ as
|
|
2
|
-
import { e as
|
|
3
|
-
import { j as
|
|
4
|
-
import fe, { useMemo as ce, createContext as
|
|
5
|
-
import { d as k, a as de, e as
|
|
6
|
-
import { flushSync as
|
|
7
|
-
const pe = /* @__PURE__ */
|
|
1
|
+
import { m as oe, b as O, $ as me, f as Ke, g as Se, e as p, d, n as q, h as V } from "./utils-DFIwp4PB.js";
|
|
2
|
+
import { e as xe, $ as we } from "./useFocusable-DXlMChFC.js";
|
|
3
|
+
import { j as ke, i as _e, h as G, k as Oe, l as le, m as Me, n as J } from "./useHover-D6bNIkU0.js";
|
|
4
|
+
import fe, { useMemo as ce, createContext as Ce, useContext as ue, useState as Ae, useRef as Ie, useEffect as Q } from "react";
|
|
5
|
+
import { d as k, a as de, e as Le } from "./mergeProps-BSsN7Bgk.js";
|
|
6
|
+
import { flushSync as De } from "react-dom";
|
|
7
|
+
const pe = /* @__PURE__ */ Ce({
|
|
8
8
|
isNative: !0,
|
|
9
|
-
open:
|
|
9
|
+
open: Ue,
|
|
10
10
|
useHref: (t) => t
|
|
11
11
|
});
|
|
12
12
|
function tt(t) {
|
|
13
13
|
let { children: n, navigate: a, useHref: o } = t, c = ce(() => ({
|
|
14
14
|
isNative: !1,
|
|
15
15
|
open: (g, $, y, P) => {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
$e(g, (b) => {
|
|
17
|
+
ge(b, $) ? a(y, P) : M(b, $);
|
|
18
18
|
});
|
|
19
19
|
},
|
|
20
20
|
useHref: o || ((g) => g)
|
|
@@ -29,7 +29,7 @@ function tt(t) {
|
|
|
29
29
|
function ve() {
|
|
30
30
|
return ue(pe);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ge(t, n) {
|
|
33
33
|
let a = t.getAttribute("target");
|
|
34
34
|
return (!a || a === "_self") && t.origin === location.origin && !t.hasAttribute("download") && !n.metaKey && // open in new tab (mac)
|
|
35
35
|
!n.ctrlKey && // open in new tab (windows)
|
|
@@ -39,8 +39,8 @@ function Ue(t, n) {
|
|
|
39
39
|
function M(t, n, a = !0) {
|
|
40
40
|
var o, c;
|
|
41
41
|
let { metaKey: g, ctrlKey: $, altKey: y, shiftKey: P } = n;
|
|
42
|
-
|
|
43
|
-
let b =
|
|
42
|
+
ke() && (!((c = window.event) === null || c === void 0 || (o = c.type) === null || o === void 0) && o.startsWith("key")) && t.target === "_blank" && (G() ? g = !0 : $ = !0);
|
|
43
|
+
let b = _e() && G() && !Oe() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
44
44
|
keyIdentifier: "Enter",
|
|
45
45
|
metaKey: g,
|
|
46
46
|
ctrlKey: $,
|
|
@@ -57,15 +57,15 @@ function M(t, n, a = !0) {
|
|
|
57
57
|
M.isOpening = a, oe(t), t.dispatchEvent(b), M.isOpening = !1;
|
|
58
58
|
}
|
|
59
59
|
M.isOpening = !1;
|
|
60
|
-
function
|
|
60
|
+
function $e(t, n) {
|
|
61
61
|
if (t instanceof HTMLAnchorElement) n(t);
|
|
62
62
|
else if (t.hasAttribute("data-href")) {
|
|
63
63
|
let a = document.createElement("a");
|
|
64
64
|
a.href = t.getAttribute("data-href"), t.hasAttribute("data-target") && (a.target = t.getAttribute("data-target")), t.hasAttribute("data-rel") && (a.rel = t.getAttribute("data-rel")), t.hasAttribute("data-download") && (a.download = t.getAttribute("data-download")), t.hasAttribute("data-ping") && (a.ping = t.getAttribute("data-ping")), t.hasAttribute("data-referrer-policy") && (a.referrerPolicy = t.getAttribute("data-referrer-policy")), t.appendChild(a), n(a), t.removeChild(a);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function Ue(t, n) {
|
|
68
|
+
$e(t, (a) => M(a, n));
|
|
69
69
|
}
|
|
70
70
|
function rt(t) {
|
|
71
71
|
let n = ve();
|
|
@@ -93,14 +93,25 @@ function nt(t) {
|
|
|
93
93
|
referrerPolicy: t == null ? void 0 : t.referrerPolicy
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
function at(t, n, a, o) {
|
|
97
|
+
!n.isNative && t.currentTarget instanceof HTMLAnchorElement && t.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
|
|
98
|
+
!t.isDefaultPrevented() && ge(t.currentTarget, t) && a && (t.preventDefault(), n.open(t.currentTarget, t, a, o));
|
|
99
|
+
}
|
|
100
|
+
function He(t, n) {
|
|
101
|
+
if (n.has(t))
|
|
102
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
103
|
+
}
|
|
104
|
+
function Ye(t, n, a) {
|
|
105
|
+
He(t, n), n.set(t, a);
|
|
106
|
+
}
|
|
107
|
+
let A = "default", j = "", Y = /* @__PURE__ */ new WeakMap();
|
|
97
108
|
function Z(t) {
|
|
98
109
|
if (le()) {
|
|
99
|
-
if (
|
|
110
|
+
if (A === "default") {
|
|
100
111
|
const n = O(t);
|
|
101
112
|
j = n.documentElement.style.webkitUserSelect, n.documentElement.style.webkitUserSelect = "none";
|
|
102
113
|
}
|
|
103
|
-
|
|
114
|
+
A = "disabled";
|
|
104
115
|
} else if (t instanceof HTMLElement || t instanceof SVGElement) {
|
|
105
116
|
let n = "userSelect" in t.style ? "userSelect" : "webkitUserSelect";
|
|
106
117
|
Y.set(t, t.style[n]), t.style[n] = "none";
|
|
@@ -108,12 +119,12 @@ function Z(t) {
|
|
|
108
119
|
}
|
|
109
120
|
function F(t) {
|
|
110
121
|
if (le()) {
|
|
111
|
-
if (
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (
|
|
122
|
+
if (A !== "disabled") return;
|
|
123
|
+
A = "restoring", setTimeout(() => {
|
|
124
|
+
xe(() => {
|
|
125
|
+
if (A === "restoring") {
|
|
115
126
|
const n = O(t);
|
|
116
|
-
n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect = j || ""), j = "",
|
|
127
|
+
n.documentElement.style.webkitUserSelect === "none" && (n.documentElement.style.webkitUserSelect = j || ""), j = "", A = "default";
|
|
117
128
|
}
|
|
118
129
|
});
|
|
119
130
|
}, 300);
|
|
@@ -122,28 +133,21 @@ function F(t) {
|
|
|
122
133
|
t.style[a] === "none" && (t.style[a] = n), t.getAttribute("style") === "" && t.removeAttribute("style"), Y.delete(t);
|
|
123
134
|
}
|
|
124
135
|
}
|
|
125
|
-
const
|
|
136
|
+
const ye = fe.createContext({
|
|
126
137
|
register: () => {
|
|
127
138
|
}
|
|
128
139
|
});
|
|
129
|
-
|
|
130
|
-
function
|
|
140
|
+
ye.displayName = "PressResponderContext";
|
|
141
|
+
function Xe(t, n) {
|
|
131
142
|
return n.get ? n.get.call(t) : n.value;
|
|
132
143
|
}
|
|
133
|
-
function
|
|
144
|
+
function be(t, n, a) {
|
|
134
145
|
if (!n.has(t)) throw new TypeError("attempted to " + a + " private field on non-instance");
|
|
135
146
|
return n.get(t);
|
|
136
147
|
}
|
|
137
|
-
function
|
|
138
|
-
var a =
|
|
139
|
-
return
|
|
140
|
-
}
|
|
141
|
-
function Xe(t, n) {
|
|
142
|
-
if (n.has(t))
|
|
143
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
144
|
-
}
|
|
145
|
-
function Re(t, n, a) {
|
|
146
|
-
Xe(t, n), n.set(t, a);
|
|
148
|
+
function Re(t, n) {
|
|
149
|
+
var a = be(t, n, "get");
|
|
150
|
+
return Xe(t, a);
|
|
147
151
|
}
|
|
148
152
|
function Ne(t, n, a) {
|
|
149
153
|
if (n.set) n.set.call(t, a);
|
|
@@ -154,40 +158,40 @@ function Ne(t, n, a) {
|
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
function ee(t, n, a) {
|
|
157
|
-
var o =
|
|
161
|
+
var o = be(t, n, "set");
|
|
158
162
|
return Ne(t, o, a), a;
|
|
159
163
|
}
|
|
160
164
|
function Fe(t) {
|
|
161
|
-
let n = ue(
|
|
165
|
+
let n = ue(ye);
|
|
162
166
|
if (n) {
|
|
163
167
|
let { register: a, ...o } = n;
|
|
164
168
|
t = de(o, t), a();
|
|
165
169
|
}
|
|
166
|
-
return
|
|
170
|
+
return we(n, t.ref), t;
|
|
167
171
|
}
|
|
168
|
-
var
|
|
172
|
+
var U = /* @__PURE__ */ new WeakMap();
|
|
169
173
|
class H {
|
|
170
174
|
continuePropagation() {
|
|
171
|
-
ee(this,
|
|
175
|
+
ee(this, U, !1);
|
|
172
176
|
}
|
|
173
177
|
get shouldStopPropagation() {
|
|
174
|
-
return
|
|
178
|
+
return Re(this, U);
|
|
175
179
|
}
|
|
176
180
|
constructor(n, a, o, c) {
|
|
177
|
-
|
|
181
|
+
Ye(this, U, {
|
|
178
182
|
writable: !0,
|
|
179
183
|
value: void 0
|
|
180
|
-
}), ee(this,
|
|
184
|
+
}), ee(this, U, !0);
|
|
181
185
|
var g;
|
|
182
186
|
let $ = (g = c == null ? void 0 : c.target) !== null && g !== void 0 ? g : o.currentTarget;
|
|
183
187
|
const y = $ == null ? void 0 : $.getBoundingClientRect();
|
|
184
|
-
let P, b = 0,
|
|
185
|
-
o.clientX != null && o.clientY != null && (
|
|
188
|
+
let P, b = 0, I, T = null;
|
|
189
|
+
o.clientX != null && o.clientY != null && (I = o.clientX, T = o.clientY), y && (I != null && T != null ? (P = I - y.left, b = T - y.top) : (P = y.width / 2, b = y.height / 2)), this.type = n, this.pointerType = a, this.target = o.currentTarget, this.shiftKey = o.shiftKey, this.metaKey = o.metaKey, this.ctrlKey = o.ctrlKey, this.altKey = o.altKey, this.x = P, this.y = b;
|
|
186
190
|
}
|
|
187
191
|
}
|
|
188
192
|
const te = Symbol("linkClicked"), re = "react-aria-pressable-style", ne = "data-react-aria-pressable";
|
|
189
|
-
function
|
|
190
|
-
let { onPress: n, onPressChange: a, onPressStart: o, onPressEnd: c, onPressUp: g, onClick: $, isDisabled: y, isPressed: P, preventFocusOnPress: b, shouldCancelOnPointerExit:
|
|
193
|
+
function it(t) {
|
|
194
|
+
let { onPress: n, onPressChange: a, onPressStart: o, onPressEnd: c, onPressUp: g, onClick: $, isDisabled: y, isPressed: P, preventFocusOnPress: b, shouldCancelOnPointerExit: I, allowTextSelectionOnPress: T, ref: X, ...he } = Fe(t), [Pe, W] = Ae(!1), C = Ie({
|
|
191
195
|
isPressed: !1,
|
|
192
196
|
ignoreEmulatedMouseEvents: !1,
|
|
193
197
|
didFirePressStart: !1,
|
|
@@ -197,7 +201,7 @@ function at(t) {
|
|
|
197
201
|
isOverTarget: !1,
|
|
198
202
|
pointerType: null,
|
|
199
203
|
disposables: []
|
|
200
|
-
}), { addGlobalListener: x, removeAllGlobalListeners: L } =
|
|
204
|
+
}), { addGlobalListener: x, removeAllGlobalListeners: L } = me(), m = k((e, s) => {
|
|
201
205
|
let v = C.current;
|
|
202
206
|
if (y || v.didFirePressStart) return !1;
|
|
203
207
|
let i = !0;
|
|
@@ -236,16 +240,16 @@ function at(t) {
|
|
|
236
240
|
for (let v of s.disposables) v();
|
|
237
241
|
s.disposables = [];
|
|
238
242
|
}
|
|
239
|
-
}),
|
|
240
|
-
|
|
243
|
+
}), D = k((e) => {
|
|
244
|
+
I && h(e);
|
|
241
245
|
}), R = k((e) => {
|
|
242
246
|
$ == null || $(e);
|
|
243
247
|
}), N = k((e, s) => {
|
|
244
248
|
if ($) {
|
|
245
249
|
let v = new MouseEvent("click", e);
|
|
246
|
-
|
|
250
|
+
Ke(v, s), $(Se(v));
|
|
247
251
|
}
|
|
248
|
-
}),
|
|
252
|
+
}), Ee = ce(() => {
|
|
249
253
|
let e = C.current, s = {
|
|
250
254
|
onKeyDown(i) {
|
|
251
255
|
if (B(i.nativeEvent, i.currentTarget) && p(i.currentTarget, d(i.nativeEvent))) {
|
|
@@ -254,10 +258,10 @@ function at(t) {
|
|
|
254
258
|
let r = !0;
|
|
255
259
|
if (!e.isPressed && !i.repeat) {
|
|
256
260
|
e.target = i.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = m(i, "keyboard");
|
|
257
|
-
let l = i.currentTarget, f = (
|
|
258
|
-
B(
|
|
261
|
+
let l = i.currentTarget, f = (K) => {
|
|
262
|
+
B(K, l) && !K.repeat && p(l, d(K)) && e.target && w(_(e.target, K), "keyboard");
|
|
259
263
|
};
|
|
260
|
-
x(O(i.currentTarget), "keyup",
|
|
264
|
+
x(O(i.currentTarget), "keyup", Le(f, v), !0);
|
|
261
265
|
}
|
|
262
266
|
r && i.stopPropagation(), i.metaKey && G() && ((u = e.metaKeyEvents) === null || u === void 0 || u.set(i.key, i.nativeEvent));
|
|
263
267
|
} else i.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
@@ -280,19 +284,19 @@ function at(t) {
|
|
|
280
284
|
if (e.isPressed && e.target && B(i, e.target)) {
|
|
281
285
|
var r;
|
|
282
286
|
se(d(i), i.key) && i.preventDefault();
|
|
283
|
-
let f = d(i),
|
|
284
|
-
E(_(e.target, i), "keyboard",
|
|
287
|
+
let f = d(i), K = p(e.target, d(i));
|
|
288
|
+
E(_(e.target, i), "keyboard", K), K && N(i, e.target), L(), i.key !== "Enter" && z(e.target) && p(e.target, f) && !i[te] && (i[te] = !0, M(e.target, i, !1)), e.isPressed = !1, (r = e.metaKeyEvents) === null || r === void 0 || r.delete(i.key);
|
|
285
289
|
} else if (i.key === "Meta" && (!((u = e.metaKeyEvents) === null || u === void 0) && u.size)) {
|
|
286
290
|
var l;
|
|
287
291
|
let f = e.metaKeyEvents;
|
|
288
292
|
e.metaKeyEvents = void 0;
|
|
289
|
-
for (let
|
|
293
|
+
for (let K of f.values()) (l = e.target) === null || l === void 0 || l.dispatchEvent(new KeyboardEvent("keyup", K));
|
|
290
294
|
}
|
|
291
295
|
};
|
|
292
296
|
if (typeof PointerEvent < "u") {
|
|
293
297
|
s.onPointerDown = (r) => {
|
|
294
298
|
if (r.button !== 0 || !p(r.currentTarget, d(r.nativeEvent))) return;
|
|
295
|
-
if (
|
|
299
|
+
if (Me(r.nativeEvent)) {
|
|
296
300
|
e.pointerType = "virtual";
|
|
297
301
|
return;
|
|
298
302
|
}
|
|
@@ -317,7 +321,7 @@ function at(t) {
|
|
|
317
321
|
}, s.onPointerEnter = (r) => {
|
|
318
322
|
r.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, m(_(e.target, r), e.pointerType));
|
|
319
323
|
}, s.onPointerLeave = (r) => {
|
|
320
|
-
r.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, E(_(e.target, r), e.pointerType, !1),
|
|
324
|
+
r.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, E(_(e.target, r), e.pointerType, !1), D(r));
|
|
321
325
|
};
|
|
322
326
|
let i = (r) => {
|
|
323
327
|
if (r.pointerId === e.activePointerId && e.isPressed && r.button === 0 && e.target) {
|
|
@@ -342,7 +346,7 @@ function at(t) {
|
|
|
342
346
|
r.stopPropagation();
|
|
343
347
|
return;
|
|
344
348
|
}
|
|
345
|
-
if (e.isPressed = !0, e.isOverTarget = !0, e.target = r.currentTarget, e.pointerType = J(r.nativeEvent) ? "virtual" : "mouse",
|
|
349
|
+
if (e.isPressed = !0, e.isOverTarget = !0, e.target = r.currentTarget, e.pointerType = J(r.nativeEvent) ? "virtual" : "mouse", De(() => m(r, e.pointerType)) && r.stopPropagation(), b) {
|
|
346
350
|
let f = q(r.target);
|
|
347
351
|
f && e.disposables.push(f);
|
|
348
352
|
}
|
|
@@ -354,7 +358,7 @@ function at(t) {
|
|
|
354
358
|
}, s.onMouseLeave = (r) => {
|
|
355
359
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
356
360
|
let l = !0;
|
|
357
|
-
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !1, l = E(r, e.pointerType, !1),
|
|
361
|
+
e.isPressed && !e.ignoreEmulatedMouseEvents && e.pointerType != null && (e.isOverTarget = !1, l = E(r, e.pointerType, !1), D(r)), l && r.stopPropagation();
|
|
358
362
|
}, s.onMouseUp = (r) => {
|
|
359
363
|
p(r.currentTarget, d(r.nativeEvent)) && !e.ignoreEmulatedMouseEvents && r.button === 0 && !e.isPressed && w(r, e.pointerType || "mouse");
|
|
360
364
|
};
|
|
@@ -371,7 +375,7 @@ function at(t) {
|
|
|
371
375
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
372
376
|
let l = Be(r.nativeEvent);
|
|
373
377
|
if (!l) return;
|
|
374
|
-
e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", T || Z(e.target), m(
|
|
378
|
+
e.activePointerId = l.identifier, e.ignoreEmulatedMouseEvents = !0, e.isOverTarget = !0, e.isPressed = !0, e.target = r.currentTarget, e.pointerType = "touch", T || Z(e.target), m(S(e.target, r), e.pointerType) && r.stopPropagation(), x(V(r.currentTarget), "scroll", u, !0);
|
|
375
379
|
}, s.onTouchMove = (r) => {
|
|
376
380
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
377
381
|
if (!e.isPressed) {
|
|
@@ -379,7 +383,7 @@ function at(t) {
|
|
|
379
383
|
return;
|
|
380
384
|
}
|
|
381
385
|
let l = ae(r.nativeEvent, e.activePointerId), f = !0;
|
|
382
|
-
l && ie(l, r.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, f = m(
|
|
386
|
+
l && ie(l, r.currentTarget) ? !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, f = m(S(e.target, r), e.pointerType)) : e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, f = E(S(e.target, r), e.pointerType, !1), D(S(e.target, r))), f && r.stopPropagation();
|
|
383
387
|
}, s.onTouchEnd = (r) => {
|
|
384
388
|
if (!p(r.currentTarget, d(r.nativeEvent))) return;
|
|
385
389
|
if (!e.isPressed) {
|
|
@@ -387,9 +391,9 @@ function at(t) {
|
|
|
387
391
|
return;
|
|
388
392
|
}
|
|
389
393
|
let l = ae(r.nativeEvent, e.activePointerId), f = !0;
|
|
390
|
-
l && ie(l, r.currentTarget) && e.pointerType != null ? (w(
|
|
394
|
+
l && ie(l, r.currentTarget) && e.pointerType != null ? (w(S(e.target, r), e.pointerType), f = E(S(e.target, r), e.pointerType), N(r.nativeEvent, e.target)) : e.isOverTarget && e.pointerType != null && (f = E(S(e.target, r), e.pointerType, !1)), f && r.stopPropagation(), e.isPressed = !1, e.activePointerId = null, e.isOverTarget = !1, e.ignoreEmulatedMouseEvents = !0, e.target && !T && F(e.target), L();
|
|
391
395
|
}, s.onTouchCancel = (r) => {
|
|
392
|
-
p(r.currentTarget, d(r.nativeEvent)) && (r.stopPropagation(), e.isPressed && h(
|
|
396
|
+
p(r.currentTarget, d(r.nativeEvent)) && (r.stopPropagation(), e.isPressed && h(S(e.target, r)));
|
|
393
397
|
};
|
|
394
398
|
let u = (r) => {
|
|
395
399
|
e.isPressed && p(d(r), e.target) && h({
|
|
@@ -412,7 +416,7 @@ function at(t) {
|
|
|
412
416
|
L,
|
|
413
417
|
T,
|
|
414
418
|
h,
|
|
415
|
-
|
|
419
|
+
D,
|
|
416
420
|
E,
|
|
417
421
|
m,
|
|
418
422
|
w,
|
|
@@ -444,8 +448,8 @@ function at(t) {
|
|
|
444
448
|
}, [
|
|
445
449
|
T
|
|
446
450
|
]), {
|
|
447
|
-
isPressed: P ||
|
|
448
|
-
pressProps: de(
|
|
451
|
+
isPressed: P || Pe,
|
|
452
|
+
pressProps: de(he, Ee, {
|
|
449
453
|
[ne]: !0
|
|
450
454
|
})
|
|
451
455
|
};
|
|
@@ -455,7 +459,7 @@ function z(t) {
|
|
|
455
459
|
}
|
|
456
460
|
function B(t, n) {
|
|
457
461
|
const { key: a, code: o } = t, c = n, g = c.getAttribute("role");
|
|
458
|
-
return (a === "Enter" || a === " " || a === "Spacebar" || o === "Space") && !(c instanceof V(c).HTMLInputElement && !
|
|
462
|
+
return (a === "Enter" || a === " " || a === "Spacebar" || o === "Space") && !(c instanceof V(c).HTMLInputElement && !Te(c, a) || c instanceof V(c).HTMLTextAreaElement || c.isContentEditable) && // Links should only trigger with Enter key
|
|
459
463
|
!((g === "link" || !g && z(c)) && a !== "Enter");
|
|
460
464
|
}
|
|
461
465
|
function Be(t) {
|
|
@@ -470,7 +474,7 @@ function ae(t, n) {
|
|
|
470
474
|
}
|
|
471
475
|
return null;
|
|
472
476
|
}
|
|
473
|
-
function
|
|
477
|
+
function S(t, n) {
|
|
474
478
|
let a = 0, o = 0;
|
|
475
479
|
return n.targetTouches && n.targetTouches.length === 1 && (a = n.targetTouches[0].clientX, o = n.targetTouches[0].clientY), {
|
|
476
480
|
currentTarget: t,
|
|
@@ -514,7 +518,7 @@ function je(t) {
|
|
|
514
518
|
return t instanceof HTMLInputElement ? !1 : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !z(t);
|
|
515
519
|
}
|
|
516
520
|
function se(t, n) {
|
|
517
|
-
return t instanceof HTMLInputElement ? !
|
|
521
|
+
return t instanceof HTMLInputElement ? !Te(t, n) : je(t);
|
|
518
522
|
}
|
|
519
523
|
const ze = /* @__PURE__ */ new Set([
|
|
520
524
|
"checkbox",
|
|
@@ -527,17 +531,17 @@ const ze = /* @__PURE__ */ new Set([
|
|
|
527
531
|
"submit",
|
|
528
532
|
"reset"
|
|
529
533
|
]);
|
|
530
|
-
function
|
|
534
|
+
function Te(t, n) {
|
|
531
535
|
return t.type === "checkbox" || t.type === "radio" ? n === " " : ze.has(t.type);
|
|
532
536
|
}
|
|
533
537
|
export {
|
|
534
538
|
tt as $,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
539
|
+
Ye as _,
|
|
540
|
+
ye as a,
|
|
541
|
+
it as b,
|
|
538
542
|
ve as c,
|
|
539
543
|
nt as d,
|
|
540
|
-
|
|
544
|
+
at as e,
|
|
541
545
|
M as f,
|
|
542
546
|
rt as g
|
|
543
547
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("./useListState-
|
|
1
|
+
"use strict";const f=require("./useListState-D2IEg6_e.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),b=require("react");function K(l){var t;let[e,a]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(l.selectedKey,(t=l.defaultSelectedKey)!==null&&t!==void 0?t:null,l.onSelectionChange),d=b.useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:i,selectionManager:u}=f.$e72dd72e1c76a225$export$2f645645f7bca764({...l,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:d,onSelectionChange:s=>{if(s==="all")return;var n;let c=(n=s.values().next().value)!==null&&n!==void 0?n:null;c===e&&l.onSelectionChange&&l.onSelectionChange(c),a(c)}}),r=e!=null?o.getItem(e):null;return{collection:o,disabledKeys:i,selectionManager:u,selectedKey:e,setSelectedKey:a,selectedItem:r}}exports.$a0d645289fe9b86b$export$e7f05e985daf4b5f=K;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { h as E } from "./utils-DFIwp4PB.js";
|
|
2
|
+
import { a as I } from "./mergeProps-BSsN7Bgk.js";
|
|
3
|
+
import { $ as M } from "./filterDOMProps-wsa9OcNI.js";
|
|
4
|
+
import { $ as V, a as S, b as D } from "./useFormValidation-L0UHvOsP.js";
|
|
5
|
+
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
6
|
+
import O, { useState as R, useEffect as q } from "react";
|
|
7
|
+
import { $ as B } from "./useField-BMegM8fA.js";
|
|
8
|
+
import { a as T } from "./useFocusable-DXlMChFC.js";
|
|
9
|
+
function w(e, a) {
|
|
10
|
+
let { inputElementType: c = "input", isDisabled: f = !1, isRequired: r = !1, isReadOnly: m = !1, type: $ = "text", validationBehavior: l = "aria" } = e, [i, d] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: b } = T(e, a), u = V({
|
|
11
|
+
...e,
|
|
12
|
+
value: i
|
|
13
|
+
}), { isInvalid: n, validationErrors: s, validationDetails: v } = u.displayValidation, { labelProps: C, fieldProps: P, descriptionProps: p, errorMessageProps: g } = B({
|
|
14
|
+
...e,
|
|
15
|
+
isInvalid: n,
|
|
16
|
+
errorMessage: e.errorMessage || s
|
|
17
|
+
}), h = M(e, {
|
|
18
|
+
labelable: !0
|
|
19
|
+
});
|
|
20
|
+
const y = {
|
|
21
|
+
type: $,
|
|
22
|
+
pattern: e.pattern
|
|
23
|
+
};
|
|
24
|
+
let [x] = R(i);
|
|
25
|
+
var o;
|
|
26
|
+
return S(a, (o = e.defaultValue) !== null && o !== void 0 ? o : x, d), D(e, u, a), q(() => {
|
|
27
|
+
if (a.current instanceof E(a.current).HTMLTextAreaElement) {
|
|
28
|
+
let t = a.current;
|
|
29
|
+
Object.defineProperty(t, "defaultValue", {
|
|
30
|
+
get: () => t.value,
|
|
31
|
+
set: () => {
|
|
32
|
+
},
|
|
33
|
+
configurable: !0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}, [
|
|
37
|
+
a
|
|
38
|
+
]), {
|
|
39
|
+
labelProps: C,
|
|
40
|
+
inputProps: I(h, c === "input" ? y : void 0, {
|
|
41
|
+
disabled: f,
|
|
42
|
+
readOnly: m,
|
|
43
|
+
required: r && l === "native",
|
|
44
|
+
"aria-required": r && l === "aria" || void 0,
|
|
45
|
+
"aria-invalid": n || void 0,
|
|
46
|
+
"aria-errormessage": e["aria-errormessage"],
|
|
47
|
+
"aria-activedescendant": e["aria-activedescendant"],
|
|
48
|
+
"aria-autocomplete": e["aria-autocomplete"],
|
|
49
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
50
|
+
"aria-controls": e["aria-controls"],
|
|
51
|
+
value: i,
|
|
52
|
+
onChange: (t) => d(t.target.value),
|
|
53
|
+
autoComplete: e.autoComplete,
|
|
54
|
+
autoCapitalize: e.autoCapitalize,
|
|
55
|
+
maxLength: e.maxLength,
|
|
56
|
+
minLength: e.minLength,
|
|
57
|
+
name: e.name,
|
|
58
|
+
form: e.form,
|
|
59
|
+
placeholder: e.placeholder,
|
|
60
|
+
inputMode: e.inputMode,
|
|
61
|
+
autoCorrect: e.autoCorrect,
|
|
62
|
+
spellCheck: e.spellCheck,
|
|
63
|
+
[parseInt(O.version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: e.enterKeyHint,
|
|
64
|
+
// Clipboard events
|
|
65
|
+
onCopy: e.onCopy,
|
|
66
|
+
onCut: e.onCut,
|
|
67
|
+
onPaste: e.onPaste,
|
|
68
|
+
// Composition events
|
|
69
|
+
onCompositionEnd: e.onCompositionEnd,
|
|
70
|
+
onCompositionStart: e.onCompositionStart,
|
|
71
|
+
onCompositionUpdate: e.onCompositionUpdate,
|
|
72
|
+
// Selection events
|
|
73
|
+
onSelect: e.onSelect,
|
|
74
|
+
// Input events
|
|
75
|
+
onBeforeInput: e.onBeforeInput,
|
|
76
|
+
onInput: e.onInput,
|
|
77
|
+
...b,
|
|
78
|
+
...P
|
|
79
|
+
}),
|
|
80
|
+
descriptionProps: p,
|
|
81
|
+
errorMessageProps: g,
|
|
82
|
+
isInvalid: n,
|
|
83
|
+
validationErrors: s,
|
|
84
|
+
validationDetails: v
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
w as $
|
|
89
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("./utils-__vrf9VZ.cjs"),M=require("./mergeProps-JhcJ7uJL.cjs"),V=require("./filterDOMProps-RRlKPKX0.cjs"),r=require("./useFormValidation-BQIRxgbU.cjs"),S=require("./useControlledState-D0L6S_5r.cjs"),l=require("react"),D=require("./useField-DyeD7MLj.cjs"),O=require("./useFocusable-CsG-IPuC.cjs");function L(e,a){let{inputElementType:$="input",isDisabled:b=!1,isRequired:d=!1,isReadOnly:v=!1,type:m="text",validationBehavior:u="aria"}=e,[i,s]=S.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:C}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),c=r.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:f,validationDetails:P}=c.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:h,errorMessageProps:x}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||f}),q=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:m,pattern:e.pattern};let[E]=l.useState(i);var o;return r.$99facab73266f662$export$5add1d006293d136(a,(o=e.defaultValue)!==null&&o!==void 0?o:E,s),r.$e93e671b31057976$export$b8473d3665f3a75a(e,c,a),l.useEffect(()=>{if(a.current instanceof I.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:g,inputProps:M.$3ef42575df84b30b$export$9d1611c77c2fe928(q,$==="input"?p:void 0,{disabled:b,readOnly:v,required:d&&u==="native","aria-required":d&&u==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>s(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(l.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...C,...y}),descriptionProps:h,errorMessageProps:x,isInvalid:n,validationErrors:f,validationDetails:P}}exports.$2d73ec29415bd339$export$712718f7aec83d5=L;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { $ as u } from "./useControlledState-u436Wbp1.js";
|
|
2
|
+
import { useState as S } from "react";
|
|
3
|
+
function $(e = {}) {
|
|
4
|
+
let { isReadOnly: d } = e, [t, a] = u(e.isSelected, e.defaultSelected || !1, e.onChange), [c] = S(t);
|
|
5
|
+
function f(n) {
|
|
6
|
+
d || a(n);
|
|
7
|
+
}
|
|
8
|
+
function i() {
|
|
9
|
+
d || a(!t);
|
|
10
|
+
}
|
|
11
|
+
var l;
|
|
12
|
+
return {
|
|
13
|
+
isSelected: t,
|
|
14
|
+
defaultSelected: (l = e.defaultSelected) !== null && l !== void 0 ? l : c,
|
|
15
|
+
setSelected: f,
|
|
16
|
+
toggle: i
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
$
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./useControlledState-D0L6S_5r.cjs"),S=require("react");function o(e={}){let{isReadOnly:d}=e,[t,c]=u.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=S.useState(t);function f(n){d||c(n)}function i(){d||c(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:a,setSelected:f,toggle:i}}exports.$3017fa7ffdddec74$export$8042c6c013fd5226=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react");function
|
|
1
|
+
"use strict";const t=require("react");function l(c,r){const e=t.useRef(!0),f=t.useRef(null);t.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.useEffect(()=>{let u=f.current;e.current?e.current=!1:(!u||r.some((s,n)=>!Object.is(s,u[n])))&&c(),f.current=r},r)}exports.$4f58c5f72bcf79f7$export$496315a1608d9602=l;
|
package/utils/types.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const $=require("./mergeProps-JhcJ7uJL.cjs"),r=require("react");function y(...e){return e.length===1&&e[0]?e[0]:l=>{let t=!1;const n=e.map(a=>{const f=i(a,l);return t||(t=typeof f=="function"),f});if(t)return()=>{n.forEach((a,f)=>{typeof a=="function"?a():i(e[f],null)})}}}function i(e,l){if(typeof e=="function")return e(l);e!=null&&(e.current=l)}function p(e){const l=r.useRef(null),t=r.useRef(void 0),n=r.useCallback(a=>{if(typeof e=="function"){const f=e,u=f(a);return()=>{typeof u=="function"?u():f(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return r.useMemo(()=>({get current(){return l.current},set current(a){l.current=a,t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=n(a))}}),[n])}const b=Symbol("default");function C({values:e,children:l}){for(let[t,n]of e)l=r.createElement(t.Provider,{value:n},l);return l}function S(e){let{className:l,style:t,children:n,defaultClassName:a,defaultChildren:f,defaultStyle:u,values:s}=e;return r.useMemo(()=>{let o,d,c;return typeof l=="function"?o=l({...s,defaultClassName:a}):o=l,typeof t=="function"?d=t({...s,defaultStyle:u||{}}):d=t,typeof n=="function"?c=n({...s,defaultChildren:f}):n==null?c=f:c=n,{className:o??a,style:d||u?{...u,...d}:void 0,children:c??f,"data-rac":""}},[l,t,n,a,f,u,s])}function x(e,l){let t=r.useContext(e);if(l===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=l||b;if(!t.slots[n]){let a=new Intl.ListFormat().format(Object.keys(t.slots).map(u=>`"${u}"`)),f=l?`Invalid slot "${l}".`:"A slot prop is required.";throw new Error(`${f} Valid slot names are ${a}.`)}return t.slots[n]}return t}function h(e,l,t){let n=x(t,e.slot)||{},{ref:a,...f}=n,u=p(r.useMemo(()=>y(l,a),[l,a])),s=$.$3ef42575df84b30b$export$9d1611c77c2fe928(f,e);return"style"in f&&f.style&&"style"in e&&e.style&&(typeof f.style=="function"||typeof e.style=="function"?s.style=o=>{let d=typeof f.style=="function"?f.style(o):f.style,c={...o.defaultStyle,...d},m=typeof e.style=="function"?e.style({...o,defaultStyle:c}):e.style;return{...c,...m}}:s.style={...f.style,...e.style}),[s,u]}function R(e=!0){let[l,t]=r.useState(e),n=r.useRef(!1),a=r.useCallback(f=>{n.current=!0,t(!!f)},[]);return $.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{n.current||t(!1)},[]),[a,l]}function v(e){const l=/^(data-.*)$/;let t={};for(const n in e)l.test(n)||(t[n]=e[n]);return t}exports.$5dc95899b306f630$export$c9058316764c140e=y;exports.$64fa3d84918910a7$export$2881499e37b75b9a=C;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=h;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=S;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=R;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=b;exports.$64fa3d84918910a7$export$ef03459518577ad4=v;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=x;exports.$df56164dff5785e2$export$4338b53315abf666=p;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { a as p, $ as b } from "./mergeProps-
|
|
2
|
-
import x, { useRef as d, useCallback as
|
|
3
|
-
function
|
|
1
|
+
import { a as p, $ as b } from "./mergeProps-BSsN7Bgk.js";
|
|
2
|
+
import x, { useRef as d, useCallback as $, useMemo as i, useContext as C, useState as h } from "react";
|
|
3
|
+
function S(...e) {
|
|
4
4
|
return e.length === 1 && e[0] ? e[0] : (l) => {
|
|
5
5
|
let t = !1;
|
|
6
6
|
const f = e.map((a) => {
|
|
7
|
-
const n =
|
|
7
|
+
const n = y(a, l);
|
|
8
8
|
return t || (t = typeof n == "function"), n;
|
|
9
9
|
});
|
|
10
10
|
if (t) return () => {
|
|
11
11
|
f.forEach((a, n) => {
|
|
12
|
-
typeof a == "function" ? a() :
|
|
12
|
+
typeof a == "function" ? a() : y(e[n], null);
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function y(e, l) {
|
|
18
18
|
if (typeof e == "function") return e(l);
|
|
19
19
|
e != null && (e.current = l);
|
|
20
20
|
}
|
|
21
21
|
function v(e) {
|
|
22
|
-
const l = d(null), t = d(void 0), f =
|
|
22
|
+
const l = d(null), t = d(void 0), f = $((a) => {
|
|
23
23
|
if (typeof e == "function") {
|
|
24
24
|
const n = e, u = n(a);
|
|
25
25
|
return () => {
|
|
@@ -98,7 +98,7 @@ function N(e, l) {
|
|
|
98
98
|
return t;
|
|
99
99
|
}
|
|
100
100
|
function w(e, l, t) {
|
|
101
|
-
let f = N(t, e.slot) || {}, { ref: a, ...n } = f, u = v(i(() =>
|
|
101
|
+
let f = N(t, e.slot) || {}, { ref: a, ...n } = f, u = v(i(() => S(l, a), [
|
|
102
102
|
l,
|
|
103
103
|
a
|
|
104
104
|
])), o = p(n, e);
|
|
@@ -123,7 +123,7 @@ function w(e, l, t) {
|
|
|
123
123
|
];
|
|
124
124
|
}
|
|
125
125
|
function I(e = !0) {
|
|
126
|
-
let [l, t] =
|
|
126
|
+
let [l, t] = h(e), f = d(!1), a = $((n) => {
|
|
127
127
|
f.current = !0, t(!!n);
|
|
128
128
|
}, []);
|
|
129
129
|
return b(() => {
|
|
@@ -148,5 +148,5 @@ export {
|
|
|
148
148
|
M as e,
|
|
149
149
|
j as f,
|
|
150
150
|
R as g,
|
|
151
|
-
h
|
|
151
|
+
S as h
|
|
152
152
|
};
|