@midas-ds/components 10.3.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
- package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/CHANGELOG.md +28 -0
- package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
- package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.cjs} +1 -1
- package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
- package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/FieldError-BbR-29BM.js +28 -0
- package/FieldError-MVsU-Mgw.cjs +1 -0
- package/FieldError-bRTpchvr.cjs +1 -0
- package/{FileUpload-D6qoEAjn.js → FileUpload-B4rv-wke.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
- package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
- package/{InfoBanner-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
- package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
- package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
- package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
- package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
- package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
- package/{ProgressBar-DMSg-Prr.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
- package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
- package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/Text-92cPh38G.js +15 -0
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
- package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- 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/Checkbox.d.ts +3 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +2 -30
- package/checkbox/types.d.ts +3 -1
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
- package/context-Df3XbgBG.cjs +1 -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/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/FileUpload.d.ts +1 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +100 -97
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- 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/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -1
- 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/Radio.d.ts +1 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- 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/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
- package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
- package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
- package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
- package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- package/Checkbox-DqcPg5hz.cjs +0 -1
- package/CheckboxGroup-BBrSMuDY.cjs +0 -1
- package/CheckboxGroup-CLgixk2p.js +0 -243
- package/Collection-BIDsXNhi.cjs +0 -1
- package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
- package/ComboBox-CWJUg9Xx.cjs +0 -1
- package/DateInputDivider-ADvOavHw.cjs +0 -1
- package/DateRangePicker-BsAHhy99.cjs +0 -6
- package/Dialog-B8GTYbvu.cjs +0 -1
- package/Dialog-BOrYdX50.cjs +0 -1
- package/Dialog-CXNu48AC.js +0 -208
- package/DragAndDrop-DNth776R.cjs +0 -1
- package/FieldError-CAcjosk_.js +0 -46
- package/FieldError-CKBb2-mp.cjs +0 -1
- package/FocusScope-5c9SVBcR.cjs +0 -1
- package/Group-B6EslsHZ.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/InfoBanner-C2kTIsrB.cjs +0 -1
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-7Ybb99CE.cjs +0 -1
- package/Label-BwJrdqEE.js +0 -70
- package/Layout-1g6bMH62.cjs +0 -16
- package/Layout-Ey8flY7E.js +0 -468
- package/Link-BQhauBuw.cjs +0 -1
- package/ListBox-DP9M4H6R.cjs +0 -1
- package/ListBoxSection-BGaigBnG.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/Radio-BwqrdhQE.cjs +0 -1
- package/RangeCalendar-BehUaydF.cjs +0 -11
- package/SearchField-CxMwDeUM.cjs +0 -6
- package/Select-2q1iSzAX.cjs +0 -1
- package/Select-BVQZtoi9.js +0 -646
- package/SelectionManager-CwYux2h3.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-P35rvvsl.cjs +0 -6
- package/Table-B40CGLT-.cjs +0 -16
- package/Tabs-B4oZJkZG.js +0 -404
- package/Tabs-DA2qXhzb.cjs +0 -1
- package/Tag-DPAGmcMK.cjs +0 -1
- package/Text-BoXuUVVH.js +0 -15
- package/TextArea-C7JZ_pQd.cjs +0 -1
- package/TextArea-XeBCSyzl.js +0 -191
- package/TextField-BgNdhZi_.cjs +0 -1
- package/Toast-AbDA1BOs.cjs +0 -1
- package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
- package/Tooltip-DeBuBKhS.cjs +0 -1
- package/VisuallyHidden-CLWHbz2n.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- package/useButton-cpNi-fY4.cjs +0 -1
- package/useEvent-DxBxMX2V.cjs +0 -1
- package/useField-CXKYU74k.cjs +0 -1
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusRing-XnR3cZjO.js +0 -82
- package/useFocusable-NUVSFcRC.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
- package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
- package/useHover-DjIHtjGN.js +0 -490
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
- package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
- package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
- package/usePress-0AjDbW9R.cjs +0 -7
- package/useTextField--czJtyNd.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-DIMfEPAt.js +0 -308
package/Tag-CFWZ2LQW.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Tag.css');const F=require("react/jsx-runtime"),J=require("./Button-DExMoP5f.cjs"),C=require("./Collection-BtBX5IMY.cjs"),k=require("./utils-DHNZrQmj.cjs"),q=require("./ListBox-BCz5-23H.cjs"),He=require("./Text-CfcjRtke.cjs"),g=require("./mergeProps-B5KXZAI3.cjs"),z=require("./filterDOMProps-BS2lrgFA.cjs"),u=require("react"),Q=require("./useFocusRing-B-A1OLhU.cjs"),V=require("./useHover-BE_XKZKe.cjs"),We=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),_e=require("./useField-D1UkzeaI.cjs"),Ge=require("./useFocusWithin-CG8mAt2D.cjs"),U=require("./useHighlightSelectionDescription-BfR_vGOe.cjs"),Xe=require("./useHasTabbableChild-CoQRpNbC.cjs"),Je=require("./Separator-CxF-3jhR.cjs"),Y=require("./context-Df3XbgBG.cjs"),Z=require("./usePress-BooY_CAy.cjs"),w=require("./scrollIntoView-joIyo-Jt.cjs"),h=require("./useFocusable-D7I1ujkW.cjs"),S=require("./getScrollParent-CsZ9ciml.cjs"),H=require("./FocusScope-vcXLOQiu.cjs"),W=require("./SelectionManager-D0jYUYcy.cjs"),Qe=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),Ye=require("./useListState-DymkJGDF.cjs"),Ze=require("./Button-BXY5ZhqI.cjs"),eo=require("./clsx-C11secjj.cjs"),oo=require("./x-H8Zrx8-x.cjs"),j=new WeakMap;function _(r,e){var o;let{id:a}=(o=j.get(r))!==null&&o!==void 0?o:{};if(!a)throw new Error("Unknown list");return`${a}-${ro(e)}`}function ro(r){return typeof r=="string"?r.replace(/\s*/g,""):""+r}function to(r,e,o){let{isVirtualized:a,keyboardDelegate:c,layoutDelegate:t,onAction:n,disallowTypeAhead:s,linkBehavior:d="action",keyboardNavigationBehavior:p="arrow",escapeKeyBehavior:l="clearSelection",shouldSelectOnPressUp:v}=r;!r["aria-label"]&&!r["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=Je.$982254629710d113$export$b95089534ab7c1fd({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:o,keyboardDelegate:c,layoutDelegate:t,isVirtualized:a,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:r.shouldFocusWrap,linkBehavior:d,disallowTypeAhead:s,autoFocus:r.autoFocus,escapeKeyBehavior:l}),b=g.$bdb11010cef70236$export$f680877a34711e37(r.id);j.set(e,{id:b,onAction:n,linkBehavior:d,keyboardNavigationBehavior:p,shouldSelectOnPressUp:v});let x=U.$5b9b5b5723db6ae1$export$be42ebdab07ae4c2({selectionManager:e.selectionManager,hasItemActions:!!n}),L=Xe.$83013635b024ae3d$export$eac1895992b9f3d6(o,{isDisabled:e.collection.size!==0}),D=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r,{labelable:!0}),E=g.$3ef42575df84b30b$export$9d1611c77c2fe928(D,{role:"grid",id:b,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:L?-1:0}:f,x);return a&&(E["aria-rowcount"]=e.collection.size,E["aria-colcount"]=1),U.$92599c3fd427b763$export$137e594ef3218a10({},e),{gridProps:E}}const G={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ao(r,e,o){var a,c;let{node:t,isVirtualized:n}=r,{direction:s}=Y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{onAction:d,linkBehavior:p,keyboardNavigationBehavior:l,shouldSelectOnPressUp:v}=j.get(e),f=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),b=u.useRef(null),x=()=>{var i;o.current!==null&&(b.current!=null&&t.key!==b.current||!(!((i=o.current)===null||i===void 0)&&i.contains(document.activeElement)))&&h.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current)},L={},D=r.hasChildItems,E=e.selectionManager.isLink(t.key);if(t!=null&&"expandedKeys"in e){var M,K,N;let i=(M=(K=e.collection).getChildren)===null||M===void 0?void 0:M.call(K,t.key);D=D||[...i??[]].length>1,d==null&&!E&&e.selectionManager.selectionMode==="none"&&D&&(d=()=>e.toggleKey(t.key));let $=D?e.expandedKeys.has(t.key):void 0,P=1;var R;if(t.level>0&&(t==null?void 0:t.parentKey)!=null){let m=e.collection.getItem(t.parentKey);if(m){var T,A;let y=(T=(A=e.collection).getChildren)===null||T===void 0?void 0:T.call(A,m.key);P=W.$c5a24bc478652b5f$export$7475b2c64539e4cf(y).index+1}}else P=((R=(N=[...e.collection].filter(m=>m.level===0).at(-1))===null||N===void 0?void 0:N.index)!==null&&R!==void 0?R:0)+1;L={"aria-expanded":$,"aria-level":t.level+1,"aria-posinset":(t==null?void 0:t.index)+1,"aria-setsize":P}}let{itemProps:ze,...O}=W.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:t.key,ref:o,isVirtualized:n,shouldSelectOnPressUp:r.shouldSelectOnPressUp||v,onAction:d||!((a=t.props)===null||a===void 0)&&a.onAction?g.$ff5963eb1fccf552$export$e08e3b67e392101e((c=t.props)===null||c===void 0?void 0:c.onAction,d?()=>d(t.key):void 0):void 0,focus:x,linkBehavior:p}),qe=i=>{if(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement)return;let $=H.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current);if($.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===o.current){if(i.key===G.expand[s]&&e.selectionManager.focusedKey===t.key&&D&&!e.expandedKeys.has(t.key)){e.toggleKey(t.key),i.stopPropagation();return}else if(i.key===G.collapse[s]&&e.selectionManager.focusedKey===t.key&&D&&e.expandedKeys.has(t.key)){e.toggleKey(t.key),i.stopPropagation();return}}switch(i.key){case"ArrowLeft":if(l==="arrow"){let m=s==="rtl"?$.nextNode():$.previousNode();if(m)i.preventDefault(),i.stopPropagation(),h.$3ad3f6e1647bc98d$export$80f3e147d781571c(m),w.$2f04cbc44ee30ce0$export$c826860796309d1b(m,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),s==="rtl")h.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),w.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{$.currentNode=o.current;let y=X($);y&&(h.$3ad3f6e1647bc98d$export$80f3e147d781571c(y),w.$2f04cbc44ee30ce0$export$c826860796309d1b(y,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowRight":if(l==="arrow"){let m=s==="rtl"?$.previousNode():$.nextNode();if(m)i.preventDefault(),i.stopPropagation(),h.$3ad3f6e1647bc98d$export$80f3e147d781571c(m),w.$2f04cbc44ee30ce0$export$c826860796309d1b(m,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),s==="ltr")h.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),w.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{$.currentNode=o.current;let y=X($);y&&(h.$3ad3f6e1647bc98d$export$80f3e147d781571c(y),w.$2f04cbc44ee30ce0$export$c826860796309d1b(y,{containingElement:S.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!i.altKey&&o.current.contains(i.target)){var P;i.stopPropagation(),i.preventDefault(),(P=o.current.parentElement)===null||P===void 0||P.dispatchEvent(new KeyboardEvent(i.nativeEvent.type,i.nativeEvent))}break}},Ve=i=>{if(b.current=t.key,i.target!==o.current){V.$507fabe10e71c6fb$export$b9b3dfddab17db27()||e.selectionManager.setFocusedKey(t.key);return}},je=i=>{if(!(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement))switch(i.key){case"Tab":if(l==="tab"){let $=H.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current,{tabbable:!0});$.currentNode=document.activeElement,(i.shiftKey?$.previousNode():$.nextNode())&&i.stopPropagation()}}},Oe=Z.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(t.props),Ie=O.hasAction?Oe:{},I=g.$3ef42575df84b30b$export$9d1611c77c2fe928(ze,Ie,{role:"row",onKeyDownCapture:qe,onKeyDown:je,onFocus:Ve,"aria-label":t.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(t.key)?e.selectionManager.isSelected(t.key):void 0,"aria-disabled":e.selectionManager.isDisabled(t.key)||void 0,"aria-labelledby":f&&t.textValue?`${_(e,t.key)} ${f}`:void 0,id:_(e,t.key)});n&&(I["aria-rowindex"]=t.index+1);let Ue={role:"gridcell","aria-colindex":1};return{rowProps:{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(I,L)},gridCellProps:Ue,descriptionProps:{id:f},...O}}function X(r){let e=null,o=null;do o=r.lastChild(),o&&(e=o);while(o);return e}const ee=new WeakMap;function io(r,e,o){let{direction:a}=Y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=r.keyboardDelegate||new We.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:e.collection,ref:o,orientation:"horizontal",direction:a,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:t,fieldProps:n,descriptionProps:s,errorMessageProps:d}=_e.$2baaea4c71418dea$export$294aa081a6c6f55d({...r,labelElementType:"span"}),{gridProps:p}=to({...r,...n,keyboardDelegate:c,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,o),[l,v]=u.useState(!1),{focusWithinProps:f}=Ge.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:v}),b=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r),x=u.useRef(e.collection.size);return u.useEffect(()=>{o.current&&x.current>0&&e.collection.size===0&&l&&o.current.focus(),x.current=e.collection.size},[e.collection.size,l,o]),ee.set(e,{onRemove:r.onRemove}),{gridProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(p,b,{role:e.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":l?"polite":"off",...f,...n}),labelProps:t,descriptionProps:s,errorMessageProps:d}}var oe={};oe={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var re={};re={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var te={};te={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var ae={};ae={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var ie={};ie={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var ne={};ne={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var ue={};ue={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var le={};le={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var ce={};ce={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var se={};se={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var de={};de={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var fe={};fe={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var be={};be={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var $e={};$e={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var pe={};pe={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var ve={};ve={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var xe={};xe={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var me={};me={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var ge={};ge={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var De={};De={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var ye={};ye={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var Be={};Be={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var Pe={};Pe={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var he={};he={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var ke={};ke={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var Ee={};Ee={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var we={};we={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var Ce={};Ce={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var Le={};Le={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var Ae={};Ae={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var Se={};Se={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var Fe={};Fe={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var Me={};Me={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Ke={};Ke={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var Ne={};Ne={"ar-AE":oe,"bg-BG":re,"cs-CZ":te,"da-DK":ae,"de-DE":ie,"el-GR":ne,"en-US":ue,"es-ES":le,"et-EE":ce,"fi-FI":se,"fr-FR":de,"he-IL":fe,"hr-HR":be,"hu-HU":$e,"it-IT":pe,"ja-JP":ve,"ko-KR":xe,"lt-LT":me,"lv-LV":ge,"nb-NO":De,"nl-NL":ye,"pl-PL":Be,"pt-BR":Pe,"pt-PT":he,"ro-RO":ke,"ru-RU":Ee,"sk-SK":we,"sl-SI":Ce,"sr-SP":Le,"sv-SE":Ae,"tr-TR":Se,"uk-UA":Fe,"zh-CN":Me,"zh-TW":Ke};function no(r){return r&&r.__esModule?r.default:r}function uo(r,e,o){let{item:a}=r,c=Qe.$fca6afa0e843324b$export$f12b703ca79dfbb1(no(Ne),"@react-aria/tag"),t=g.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:n}=ee.get(e)||{},{rowProps:s,gridCellProps:d,...p}=ao({node:a},e,o),{descriptionProps:l,...v}=p,f=e.disabledKeys.has(a.key)||a.props.isDisabled,b=A=>{if(A.key==="Delete"||A.key==="Backspace"){if(f)return;A.preventDefault(),e.selectionManager.isSelected(a.key)?n==null||n(new Set(e.selectionManager.selectedKeys)):n==null||n(new Set([a.key]))}},x=V.$507fabe10e71c6fb$export$98e20ec92f614cfe();x==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(x="pointer");let L=n&&(x==="keyboard"||x==="virtual")?c.format("removeDescription"):"",D=w.$ef06256079686ba0$export$f8aeda7b10753fa1(L),E=a.key===e.selectionManager.focusedKey,M=e.selectionManager.focusedKey!=null,K=-1;!f&&(E||!M)&&(K=0);let N=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a.props),R=Z.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(a.props),{focusableProps:T}=h.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:f},o);return{removeButtonProps:{"aria-label":c.format("removeButtonLabel"),"aria-labelledby":`${t} ${s.id}`,isDisabled:f,id:t,onPress:()=>n?n(new Set([a.key])):null},rowProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(T,s,N,R,{tabIndex:K,onKeyDown:n?b:void 0,"aria-describedby":D["aria-describedby"]}),gridCellProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(d,{"aria-errormessage":r["aria-errormessage"],"aria-label":r["aria-label"]}),...v,allowsRemoving:!!n}}const lo=u.createContext(null),Re=u.createContext(null),co=u.forwardRef(function(e,o){return[e,o]=k.$64fa3d84918910a7$export$29f1550f4b0d4415(e,o,lo),u.createElement(C.$e1995378a142960e$export$bf788dd355e3a401,{content:e.children},a=>u.createElement(so,{props:e,forwardedRef:o,collection:a}))});function so({props:r,forwardedRef:e,collection:o}){let a=u.useRef(null),[c,t]=k.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!r["aria-label"]&&!r["aria-labelledby"]),n=Ye.$e72dd72e1c76a225$export$2f645645f7bca764({...r,children:void 0,collection:o}),s=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r),d=Object.fromEntries(Object.entries(s).map(([x])=>[x,void 0])),{gridProps:p,labelProps:l,descriptionProps:v,errorMessageProps:f}=io({...r,...d,label:t},n,a);var b;return u.createElement("div",{...s,ref:e,slot:r.slot||void 0,className:(b=r.className)!==null&&b!==void 0?b:"react-aria-TagGroup",style:r.style},u.createElement(k.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[J.$01b77f81d0f07f68$export$75b6ee27786ba447,{...l,elementType:"span",ref:c}],[Re,{...p,ref:a}],[q.$eed445e0843c11d0$export$7c5906fe4f1f2af2,n],[He.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:f}}]]},r.children))}const Te=u.forwardRef(function(e,o){return u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?u.createElement(fo,{props:e,forwardedRef:o}):u.createElement(C.$e1995378a142960e$export$fb8073518f34e6ec,e)});function fo({props:r,forwardedRef:e}){let o=u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:a}=u.useContext(C.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,t]=k.$64fa3d84918910a7$export$29f1550f4b0d4415(r,e,Re);delete c.items,delete c.renderEmptyState;let{focusProps:n,isFocused:s,isFocusVisible:d}=Q.$f7dceffc5ad7768b$export$4e328f61c538687f(),p={isEmpty:o.collection.size===0,isFocused:s,isFocusVisible:d,state:o},l=k.$64fa3d84918910a7$export$4d86445c2cf5e3({className:r.className,style:r.style,defaultClassName:"react-aria-TagList",values:p}),v=C.$7135fc7d473fd974$export$90e00781bc59d8f9(o.selectionManager.focusedKey);return u.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(c,n),...l,ref:t,"data-empty":o.collection.size===0||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0},o.collection.size===0&&r.renderEmptyState?r.renderEmptyState(p):u.createElement(a,{collection:o.collection,persistedKeys:v}))}const bo=C.$e1995378a142960e$export$18af5c7a9e9b3664("item",(r,e,o)=>{let a=u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2),c=k.$df56164dff5785e2$export$4338b53315abf666(e),{focusProps:t,isFocusVisible:n}=Q.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:s,gridCellProps:d,removeButtonProps:p,...l}=uo({item:o},a,c),{hoverProps:v,isHovered:f}=V.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!l.allowsSelection,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),b=k.$64fa3d84918910a7$export$4d86445c2cf5e3({...r,id:void 0,children:o.rendered,defaultClassName:"react-aria-Tag",values:{...l,isFocusVisible:n,isHovered:f,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior}});return u.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[o.textValue]),u.createElement("div",{ref:c,...b,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(r),s,t,v),"data-selected":l.isSelected||void 0,"data-disabled":l.isDisabled||void 0,"data-hovered":f||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":n||void 0,"data-pressed":l.isPressed||void 0,"data-allows-removing":l.allowsRemoving||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},u.createElement("div",{...d,style:{display:"contents"}},u.createElement(k.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[J.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:p}}],[C.$7135fc7d473fd974$export$4feb769f8ddf26c5,C.$7135fc7d473fd974$export$a164736487e3f0ae]]},b.children)))}),$o="_button_os8ho_4",po="_success_os8ho_19",vo="_warning_os8ho_20",xo="_info_os8ho_21",mo="_important_os8ho_22",go="_tag_os8ho_34",Do="_dismissable_os8ho_77",yo="_tagText_os8ho_85",Bo="_tagList_os8ho_90",B={button:$o,success:po,warning:vo,info:xo,important:mo,tag:go,dismissable:Do,tagText:yo,tagList:Bo},Po=({children:r,...e})=>F.jsx(co,{...e,children:F.jsx(Te,{className:B.tagList,children:r})}),ho=({children:r,dismissable:e,className:o,type:a="default",...c})=>F.jsxs(bo,{className:eo.clsx(B.tag,e&&B.dismissable,a==="success"&&B.success,a==="info"&&B.info,a==="important"&&B.important,a==="warning"&&B.warning,o),...c,children:[F.jsx("div",{className:B.tagText,children:r}),e&&F.jsx(Ze.Button,{variant:"icon",size:"medium",className:B.button,slot:"remove",children:F.jsx(oo.X,{size:20})})]});exports.$eaf9e70818b436db$export$f9fef0f55402315b=Te;exports.Tag=ho;exports.TagGroup=Po;
|
package/Text-92cPh38G.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { $ as c } from "./utils-DJhAJHk_.js";
|
|
2
|
+
import o, { forwardRef as f, createContext as $ } from "react";
|
|
3
|
+
const n = /* @__PURE__ */ $({}), s = /* @__PURE__ */ f(function(e, t) {
|
|
4
|
+
[e, t] = c(e, t, n);
|
|
5
|
+
let { elementType: a = "span", ...r } = e;
|
|
6
|
+
return /* @__PURE__ */ o.createElement(a, {
|
|
7
|
+
className: "react-aria-Text",
|
|
8
|
+
...r,
|
|
9
|
+
ref: t
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
s as $,
|
|
14
|
+
n as a
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const b=require("./utils-
|
|
1
|
+
"use strict";const b=require("./utils-DHNZrQmj.cjs"),c=require("react"),a=c.createContext({}),n=c.forwardRef(function(e,t){[e,t]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,a);let{elementType:r="span",...$}=e;return c.createElement(r,{className:"react-aria-Text",...$,ref:t})});exports.$514c0188e459b4c0$export$5f1af8db9871e1d6=n;exports.$514c0188e459b4c0$export$9afb8bc826b033ea=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Text.css');const b=require("react/jsx-runtime"),y=require("./clsx-C11secjj.cjs"),p=require("./Text-
|
|
1
|
+
"use strict";require('./assets/Text.css');const b=require("react/jsx-runtime"),y=require("./clsx-C11secjj.cjs"),p=require("./Text-CfcjRtke.cjs"),_="_description_17s3x_24",s={"body-01":"_body-01_17s3x_4","body-02":"_body-02_17s3x_5",description:_},t="span",a=({children:o,className:c,variant:n="body-02",isExpressive:d=!1,elementType:r=t,...e})=>{const i={"body-01":s["body-01"],"body-02":s["body-02"]},x={className:y.clsx(e.slot==="description"?s.description:i[n],c),elementType:r||t,...d&&{"data-expressive":!0},...e};return b.jsx(p.$514c0188e459b4c0$export$5f1af8db9871e1d6,{...x,children:o})};exports.Text=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as y } from "./Text-92cPh38G.js";
|
|
4
4
|
import './assets/Text.css';const x = "_description_17s3x_24", s = {
|
|
5
5
|
"body-01": "_body-01_17s3x_4",
|
|
6
6
|
"body-02": "_body-02_17s3x_5",
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { $ as h } from "./utils-DJhAJHk_.js";
|
|
4
|
+
import { a as N, $ as F } from "./Input-LnjmFI1x.js";
|
|
5
|
+
import { c as n } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
import { s as i } from "./TextField.module-BcpPBWnD.js";
|
|
7
|
+
import { T as $ } from "./Text-DlKqpvSa.js";
|
|
8
|
+
import { B as T } from "./Button-BZUo7vsZ.js";
|
|
9
|
+
import { u as g } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
10
|
+
import { $ as P, a as v, b as L } from "./TextField-ByDJkig9.js";
|
|
11
|
+
import { F as f } from "./FieldError-B3YFj-an.js";
|
|
12
|
+
import { C as R } from "./CharacterCounter-cLhqPZlk.js";
|
|
13
|
+
import { a as y, L as B } from "./Label-TVxwGZ-O.js";
|
|
14
|
+
const p = d.forwardRef((e, s) => {
|
|
15
|
+
[e] = h(e, s, v);
|
|
16
|
+
const {
|
|
17
|
+
label: o,
|
|
18
|
+
description: a,
|
|
19
|
+
errorMessage: t,
|
|
20
|
+
showCounter: c,
|
|
21
|
+
errorPosition: l = "top",
|
|
22
|
+
size: b = "large",
|
|
23
|
+
popover: w,
|
|
24
|
+
children: x
|
|
25
|
+
} = e;
|
|
26
|
+
return /* @__PURE__ */ m(
|
|
27
|
+
P,
|
|
28
|
+
{
|
|
29
|
+
...e,
|
|
30
|
+
className: n(i.textField, {
|
|
31
|
+
[i.medium]: b === "medium"
|
|
32
|
+
}),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r(y, { popover: w, children: o && /* @__PURE__ */ r(B, { children: o }) }),
|
|
35
|
+
a && /* @__PURE__ */ r($, { slot: "description", children: a }),
|
|
36
|
+
c && /* @__PURE__ */ r(R, { isLonely: !a }),
|
|
37
|
+
l === "top" && /* @__PURE__ */ r(f, { "data-testid": "fieldError", children: t }),
|
|
38
|
+
x,
|
|
39
|
+
l === "bottom" && /* @__PURE__ */ r(
|
|
40
|
+
f,
|
|
41
|
+
{
|
|
42
|
+
"data-testid": "fieldError",
|
|
43
|
+
className: i.bottomError,
|
|
44
|
+
children: t
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}), C = {
|
|
51
|
+
hide: "Hide",
|
|
52
|
+
show: "Show"
|
|
53
|
+
}, E = {
|
|
54
|
+
hide: "Dölj",
|
|
55
|
+
show: "Visa"
|
|
56
|
+
}, S = {
|
|
57
|
+
en: C,
|
|
58
|
+
sv: E
|
|
59
|
+
}, j = ({ value: e }) => {
|
|
60
|
+
const [s, o] = d.useState(!1), a = () => o((c) => !c), t = g(S);
|
|
61
|
+
return /* @__PURE__ */ m(u, { children: [
|
|
62
|
+
s && /* @__PURE__ */ r(
|
|
63
|
+
$,
|
|
64
|
+
{
|
|
65
|
+
slot: "description",
|
|
66
|
+
className: i.passwordText,
|
|
67
|
+
children: e
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ r(
|
|
71
|
+
T,
|
|
72
|
+
{
|
|
73
|
+
variant: "tertiary",
|
|
74
|
+
onPress: a,
|
|
75
|
+
className: i.passwordButton,
|
|
76
|
+
children: s ? t.format("hide") : t.format("show")
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
80
|
+
}, z = d.forwardRef(
|
|
81
|
+
(e, s) => ([e, s] = h(e, s, F), /* @__PURE__ */ m("div", { className: i.wrap, children: [
|
|
82
|
+
/* @__PURE__ */ r(
|
|
83
|
+
N,
|
|
84
|
+
{
|
|
85
|
+
...e,
|
|
86
|
+
ref: s,
|
|
87
|
+
className: n(i.input, e.className)
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
e.type === "password" && /* @__PURE__ */ r(j, { ...e })
|
|
91
|
+
] }))
|
|
92
|
+
), O = d.forwardRef(
|
|
93
|
+
({ className: e, form: s, list: o, ...a }, t) => /* @__PURE__ */ r(p, { ...a, children: /* @__PURE__ */ r(
|
|
94
|
+
z,
|
|
95
|
+
{
|
|
96
|
+
className: n(e),
|
|
97
|
+
form: s,
|
|
98
|
+
list: o,
|
|
99
|
+
ref: t
|
|
100
|
+
}
|
|
101
|
+
) })
|
|
102
|
+
), Q = d.forwardRef(
|
|
103
|
+
({ className: e, form: s, rows: o, wrap: a, ...t }, c) => /* @__PURE__ */ r(p, { ...t, children: /* @__PURE__ */ r(
|
|
104
|
+
L,
|
|
105
|
+
{
|
|
106
|
+
className: n(i.textArea, e),
|
|
107
|
+
form: s,
|
|
108
|
+
ref: c,
|
|
109
|
+
rows: o,
|
|
110
|
+
wrap: a
|
|
111
|
+
}
|
|
112
|
+
) })
|
|
113
|
+
);
|
|
114
|
+
export {
|
|
115
|
+
z as I,
|
|
116
|
+
p as T,
|
|
117
|
+
O as a,
|
|
118
|
+
Q as b
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),F=require("react"),b=require("./utils-DHNZrQmj.cjs"),f=require("./Input-MJji5hhq.cjs"),l=require("./clsx-C11secjj.cjs"),a=require("./TextField.module-Dw5Rtn9y.cjs"),j=require("./Text-DBHWi5gA.cjs"),q=require("./Button-BXY5ZhqI.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),d=require("./TextField-BdK9KEQ5.cjs"),m=require("./FieldError-bRTpchvr.cjs"),g=require("./CharacterCounter-DSFBv3Rw.cjs"),h=require("./Label-CNmTN1YY.cjs");function N(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const i=N(F),u=i.forwardRef((e,s)=>{[e]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,d.$bcdf0525bf22703d$export$2129e27b3ef0d483);const{label:r,description:o,errorMessage:c,showCounter:n,errorPosition:x="top",size:w="large",popover:p,children:y}=e;return t.jsxs(d.$bcdf0525bf22703d$export$2c73285ae9390cec,{...e,className:l.clsx(a.styles.textField,{[a.styles.medium]:w==="medium"}),children:[t.jsx(h.LabelWrapper,{popover:p,children:r&&t.jsx(h.Label,{children:r})}),o&&t.jsx(j.Text,{slot:"description",children:o}),n&&t.jsx(g.CharacterCounter,{isLonely:!o}),x==="top"&&t.jsx(m.FieldError,{"data-testid":"fieldError",children:c}),y,x==="bottom"&&t.jsx(m.FieldError,{"data-testid":"fieldError",className:a.styles.bottomError,children:c})]})}),P={hide:"Hide",show:"Show"},R={hide:"Dölj",show:"Visa"},S={en:P,sv:R},v=({value:e})=>{const[s,r]=i.useState(!1),o=()=>r(n=>!n),c=T.useLocalizedStringFormatter(S);return t.jsxs(t.Fragment,{children:[s&&t.jsx(j.Text,{slot:"description",className:a.styles.passwordText,children:e}),t.jsx(q.Button,{variant:"tertiary",onPress:o,className:a.styles.passwordButton,children:s?c.format("hide"):c.format("show")})]})},$=i.forwardRef((e,s)=>([e,s]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,f.$3985021b0ad6602f$export$37fb8590cf2c088c),t.jsxs("div",{className:a.styles.wrap,children:[t.jsx(f.$3985021b0ad6602f$export$f5b8910cec6cf069,{...e,ref:s,className:l.clsx(a.styles.input,e.className)}),e.type==="password"&&t.jsx(v,{...e})]}))),E=i.forwardRef(({className:e,form:s,list:r,...o},c)=>t.jsx(u,{...o,children:t.jsx($,{className:l.clsx(e),form:s,list:r,ref:c})})),L=i.forwardRef(({className:e,form:s,rows:r,wrap:o,...c},n)=>t.jsx(u,{...c,children:t.jsx(d.$216918bed6669f72$export$f5c9f3c2c4054eec,{className:l.clsx(a.styles.textArea,e),form:s,ref:n,rows:r,wrap:o})}));exports.Input=$;exports.TextArea=L;exports.TextField=E;exports.TextFieldBase=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./utils-DHNZrQmj.cjs"),y=require("./FieldError-MVsU-Mgw.cjs"),C=require("./Form-BuOomA4T.cjs"),P=require("./Input-MJji5hhq.cjs"),B=require("./Button-DExMoP5f.cjs"),t=require("react"),D=require("./useHover-BE_XKZKe.cjs"),M=require("./useFocusRing-B-A1OLhU.cjs"),q=require("./mergeProps-B5KXZAI3.cjs"),O=require("./Text-CfcjRtke.cjs"),A=require("./Hidden-BxRZGdEW.cjs"),V=require("./filterDOMProps-BS2lrgFA.cjs"),S=require("./useTextField-DnRrCg5o.cjs"),F=t.createContext({});let _=l=>{let{onHoverStart:e,onHoverChange:d,onHoverEnd:n,...r}=l;return r};const N=t.forwardRef(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,F);let{hoverProps:n,isHovered:r}=D.$6179b936705e76d3$export$ae780daf29e6d456(e),{isFocused:i,isFocusVisible:f,focusProps:s}=M.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:e.autoFocus}),c=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",o=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isHovered:r,isFocused:i,isFocusVisible:f,isDisabled:e.disabled||!1,isInvalid:c},defaultClassName:"react-aria-TextArea"});return t.createElement("textarea",{...q.$3ef42575df84b30b$export$9d1611c77c2fe928(_(e),s,n),...o,ref:d,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":f||void 0,"data-invalid":c||void 0})}),R=t.createContext(null),k=A.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,R);let{validationBehavior:n}=a.$64fa3d84918910a7$export$fabf2dc03a41866e(C.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var r,i;let f=(i=(r=e.validationBehavior)!==null&&r!==void 0?r:n)!==null&&i!==void 0?i:"native",s=t.useRef(null),[c,o]=a.$64fa3d84918910a7$export$29f1550f4b0d4415({},s,P.$3985021b0ad6602f$export$37fb8590cf2c088c),[h,m]=a.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),[H,T]=t.useState("input"),{labelProps:E,inputProps:b,descriptionProps:I,errorMessageProps:g,...$}=S.$2d73ec29415bd339$export$712718f7aec83d5({...a.$64fa3d84918910a7$export$ef03459518577ad4(e),inputElementType:H,label:m,validationBehavior:f},o),v=t.useCallback(u=>{o.current=u,u&&T(u instanceof HTMLTextAreaElement?"textarea":"input")},[o]),x=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:$.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),p=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return delete p.id,t.createElement("div",{...p,...x,ref:d,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":$.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(a.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[B.$01b77f81d0f07f68$export$75b6ee27786ba447,{...E,ref:h}],[P.$3985021b0ad6602f$export$37fb8590cf2c088c,{...q.$3ef42575df84b30b$export$9d1611c77c2fe928(b,c),ref:v}],[F,{...b,ref:v}],[O.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:I,errorMessage:g}}],[y.$ee014567cb39d3f0$export$ff05c3ac10437e03,$]]},x.children))});exports.$216918bed6669f72$export$f5c9f3c2c4054eec=N;exports.$bcdf0525bf22703d$export$2129e27b3ef0d483=R;exports.$bcdf0525bf22703d$export$2c73285ae9390cec=k;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as _ } from "./FieldError-
|
|
1
|
+
import { $ as c, a as P, b as B, c as D, d as M, e as O } from "./utils-DJhAJHk_.js";
|
|
2
|
+
import { $ as _ } from "./FieldError-BbR-29BM.js";
|
|
3
3
|
import { $ as q } from "./Form-CXcEMuBf.js";
|
|
4
|
-
import { $ as p } from "./Input-
|
|
5
|
-
import {
|
|
6
|
-
import u, { forwardRef as V, createContext as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import {
|
|
4
|
+
import { $ as p } from "./Input-LnjmFI1x.js";
|
|
5
|
+
import { c as A } from "./Button-CFYdzG0H.js";
|
|
6
|
+
import u, { forwardRef as V, createContext as h, useRef as S, useState as N, useCallback as k } from "react";
|
|
7
|
+
import { $ as w } from "./useHover-DQvJ3Y-W.js";
|
|
8
|
+
import { $ as L } from "./useFocusRing-DOfBqnUN.js";
|
|
9
|
+
import { a as R } from "./mergeProps-C1U1OIeJ.js";
|
|
10
|
+
import { a as j } from "./Text-92cPh38G.js";
|
|
10
11
|
import { $ as z } from "./Hidden-C9KWUR7b.js";
|
|
11
12
|
import { $ as G } from "./filterDOMProps-D6KHYVBX.js";
|
|
12
|
-
import { $ as J } from "./useTextField-
|
|
13
|
-
const H = /* @__PURE__ */
|
|
13
|
+
import { $ as J } from "./useTextField-C-sUypsx.js";
|
|
14
|
+
const H = /* @__PURE__ */ h({});
|
|
14
15
|
let K = (s) => {
|
|
15
16
|
let { onHoverStart: e, onHoverChange: a, onHoverEnd: r, ...t } = s;
|
|
16
17
|
return t;
|
|
17
18
|
};
|
|
18
|
-
const
|
|
19
|
+
const se = /* @__PURE__ */ V(function(e, a) {
|
|
19
20
|
[e, a] = c(e, a, H);
|
|
20
|
-
let { hoverProps: r, isHovered: t } =
|
|
21
|
+
let { hoverProps: r, isHovered: t } = w(e), { isFocused: d, isFocusVisible: o, focusProps: f } = L({
|
|
21
22
|
isTextInput: !0,
|
|
22
23
|
autoFocus: e.autoFocus
|
|
23
24
|
}), l = !!e["aria-invalid"] && e["aria-invalid"] !== "false", i = P({
|
|
@@ -32,7 +33,7 @@ const le = /* @__PURE__ */ V(function(e, a) {
|
|
|
32
33
|
defaultClassName: "react-aria-TextArea"
|
|
33
34
|
});
|
|
34
35
|
return /* @__PURE__ */ u.createElement("textarea", {
|
|
35
|
-
...
|
|
36
|
+
...R(K(e), f, r),
|
|
36
37
|
...i,
|
|
37
38
|
ref: a,
|
|
38
39
|
"data-focused": d || void 0,
|
|
@@ -41,16 +42,16 @@ const le = /* @__PURE__ */ V(function(e, a) {
|
|
|
41
42
|
"data-focus-visible": o || void 0,
|
|
42
43
|
"data-invalid": l || void 0
|
|
43
44
|
});
|
|
44
|
-
}), Q = /* @__PURE__ */
|
|
45
|
+
}), Q = /* @__PURE__ */ h(null), fe = /* @__PURE__ */ z(function(e, a) {
|
|
45
46
|
[e, a] = c(e, a, Q);
|
|
46
47
|
let { validationBehavior: r } = B(q) || {};
|
|
47
48
|
var t, d;
|
|
48
|
-
let o = (d = (t = e.validationBehavior) !== null && t !== void 0 ? t : r) !== null && d !== void 0 ? d : "native", f = S(null), [l, i] = c({}, f, p), [T, F] = D(!e["aria-label"] && !e["aria-labelledby"]), [E, y] = N("input"), { labelProps: I, inputProps: b, descriptionProps:
|
|
49
|
+
let o = (d = (t = e.validationBehavior) !== null && t !== void 0 ? t : r) !== null && d !== void 0 ? d : "native", f = S(null), [l, i] = c({}, f, p), [T, F] = D(!e["aria-label"] && !e["aria-labelledby"]), [E, y] = N("input"), { labelProps: I, inputProps: b, descriptionProps: C, errorMessageProps: g, ...n } = J({
|
|
49
50
|
...M(e),
|
|
50
51
|
inputElementType: E,
|
|
51
52
|
label: F,
|
|
52
53
|
validationBehavior: o
|
|
53
|
-
}, i), v =
|
|
54
|
+
}, i), v = k(($) => {
|
|
54
55
|
i.current = $, $ && y($ instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
55
56
|
}, [
|
|
56
57
|
i
|
|
@@ -85,7 +86,7 @@ const le = /* @__PURE__ */ V(function(e, a) {
|
|
|
85
86
|
[
|
|
86
87
|
p,
|
|
87
88
|
{
|
|
88
|
-
...
|
|
89
|
+
...R(b, l),
|
|
89
90
|
ref: v
|
|
90
91
|
}
|
|
91
92
|
],
|
|
@@ -97,11 +98,11 @@ const le = /* @__PURE__ */ V(function(e, a) {
|
|
|
97
98
|
}
|
|
98
99
|
],
|
|
99
100
|
[
|
|
100
|
-
|
|
101
|
+
j,
|
|
101
102
|
{
|
|
102
103
|
slots: {
|
|
103
|
-
description:
|
|
104
|
-
errorMessage:
|
|
104
|
+
description: C,
|
|
105
|
+
errorMessage: g
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
],
|
|
@@ -113,7 +114,7 @@ const le = /* @__PURE__ */ V(function(e, a) {
|
|
|
113
114
|
}, m.children));
|
|
114
115
|
});
|
|
115
116
|
export {
|
|
116
|
-
|
|
117
|
+
fe as $,
|
|
117
118
|
Q as a,
|
|
118
|
-
|
|
119
|
+
se as b
|
|
119
120
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as ge } from "./Button-
|
|
1
|
+
import { jsx as p, jsxs as y, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { B as ge } from "./Button-BZUo7vsZ.js";
|
|
3
3
|
import A, { useState as P, useCallback as L, useEffect as T, useRef as v, useMemo as ye } from "react";
|
|
4
4
|
import { createPortal as Le, flushSync as _e } from "react-dom";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
import { s as N } from "./index-CGRFP4CC.js";
|
|
7
|
-
import { $ as j,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { $ as j, c as we, b as Be, d as Ie, a as Ce } from "./mergeProps-C1U1OIeJ.js";
|
|
8
|
+
import { m as E } from "./utils-CoCR_Fce.js";
|
|
9
|
+
import { $ as Ae, f as _ } from "./useHover-DQvJ3Y-W.js";
|
|
10
|
+
import { $ as Pe } from "./useFocusWithin-T1ifEM_s.js";
|
|
11
|
+
import { $ as F } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
11
12
|
import { $ as Ne } from "./filterDOMProps-D6KHYVBX.js";
|
|
12
13
|
import { T as je } from "./triangle-alert-wxyxspAl.js";
|
|
13
14
|
import { C as Fe, a as De } from "./circle-check-B9HYcH7Z.js";
|
|
@@ -244,11 +245,11 @@ class He {
|
|
|
244
245
|
}
|
|
245
246
|
function Ve(t, e) {
|
|
246
247
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: r } = t;
|
|
247
|
-
let u = Oe(), a = i || o, [
|
|
248
|
+
let u = Oe(), a = i || o, [b, d] = P(!1), f = L(() => {
|
|
248
249
|
d(!0);
|
|
249
250
|
}, [
|
|
250
251
|
d
|
|
251
|
-
]),
|
|
252
|
+
]), h = L(() => {
|
|
252
253
|
d(!1);
|
|
253
254
|
}, [
|
|
254
255
|
d
|
|
@@ -259,7 +260,7 @@ function Ve(t, e) {
|
|
|
259
260
|
label: a,
|
|
260
261
|
role: n,
|
|
261
262
|
focus: r || f,
|
|
262
|
-
blur:
|
|
263
|
+
blur: h
|
|
263
264
|
});
|
|
264
265
|
}, [
|
|
265
266
|
u,
|
|
@@ -268,17 +269,17 @@ function Ve(t, e) {
|
|
|
268
269
|
n,
|
|
269
270
|
r,
|
|
270
271
|
f,
|
|
271
|
-
|
|
272
|
+
h
|
|
272
273
|
]), T(() => {
|
|
273
274
|
var s;
|
|
274
|
-
|
|
275
|
+
b && ((s = e.current) === null || s === void 0 || s.focus());
|
|
275
276
|
}, [
|
|
276
|
-
|
|
277
|
+
b,
|
|
277
278
|
e
|
|
278
279
|
]), {
|
|
279
280
|
landmarkProps: {
|
|
280
281
|
role: n,
|
|
281
|
-
tabIndex:
|
|
282
|
+
tabIndex: b ? -1 : void 0,
|
|
282
283
|
"aria-label": i,
|
|
283
284
|
"aria-labelledby": o
|
|
284
285
|
}
|
|
@@ -561,8 +562,8 @@ $e = {
|
|
|
561
562
|
other: () => `${e.number(t.count)} 個通知`
|
|
562
563
|
})}。`
|
|
563
564
|
};
|
|
564
|
-
var
|
|
565
|
-
|
|
565
|
+
var I = {};
|
|
566
|
+
I = {
|
|
566
567
|
"ar-AE": S,
|
|
567
568
|
"bg-BG": R,
|
|
568
569
|
"cs-CZ": M,
|
|
@@ -612,7 +613,7 @@ function Ue(t, e, n) {
|
|
|
612
613
|
o,
|
|
613
614
|
r
|
|
614
615
|
]);
|
|
615
|
-
let u = we(), a = Be(),
|
|
616
|
+
let u = we(), a = Be(), b = F(ze(I), "@react-aria/toast"), [d, f] = P(!1);
|
|
616
617
|
return T(() => {
|
|
617
618
|
f(!0);
|
|
618
619
|
}, []), {
|
|
@@ -638,7 +639,7 @@ function Ue(t, e, n) {
|
|
|
638
639
|
id: a
|
|
639
640
|
},
|
|
640
641
|
closeButtonProps: {
|
|
641
|
-
"aria-label":
|
|
642
|
+
"aria-label": b.format("close"),
|
|
642
643
|
onPress: () => e.close(i)
|
|
643
644
|
}
|
|
644
645
|
};
|
|
@@ -647,52 +648,52 @@ function We(t) {
|
|
|
647
648
|
return t && t.__esModule ? t.default : t;
|
|
648
649
|
}
|
|
649
650
|
function Ke(t, e, n) {
|
|
650
|
-
let i = F(We(
|
|
651
|
+
let i = F(We(I), "@react-aria/toast"), { landmarkProps: o } = Ve({
|
|
651
652
|
role: "region",
|
|
652
653
|
"aria-label": t["aria-label"] || i.format("notifications", {
|
|
653
654
|
count: e.visibleToasts.length
|
|
654
655
|
})
|
|
655
656
|
}, n), r = v(!1), u = v(!1), a = Ie(() => {
|
|
656
657
|
r.current || u.current ? e.pauseAll() : e.resumeAll();
|
|
657
|
-
}), { hoverProps:
|
|
658
|
+
}), { hoverProps: b } = Ae({
|
|
658
659
|
onHoverStart: () => {
|
|
659
660
|
r.current = !0, a();
|
|
660
661
|
},
|
|
661
662
|
onHoverEnd: () => {
|
|
662
663
|
r.current = !1, a();
|
|
663
664
|
}
|
|
664
|
-
}), d = v([]), f = v(e.visibleToasts),
|
|
665
|
+
}), d = v([]), f = v(e.visibleToasts), h = v(null);
|
|
665
666
|
j(() => {
|
|
666
|
-
if (
|
|
667
|
+
if (h.current === -1 || e.visibleToasts.length === 0 || !n.current) {
|
|
667
668
|
d.current = [], f.current = e.visibleToasts;
|
|
668
669
|
return;
|
|
669
670
|
}
|
|
670
671
|
if (d.current = [
|
|
671
672
|
...n.current.querySelectorAll('[role="alertdialog"]')
|
|
672
|
-
], f.current.length === e.visibleToasts.length && e.visibleToasts.every((c,
|
|
673
|
+
], f.current.length === e.visibleToasts.length && e.visibleToasts.every((c, m) => c.key === f.current[m].key)) {
|
|
673
674
|
f.current = e.visibleToasts;
|
|
674
675
|
return;
|
|
675
676
|
}
|
|
676
|
-
let l = f.current.map((c,
|
|
677
|
+
let l = f.current.map((c, m) => ({
|
|
677
678
|
...c,
|
|
678
|
-
i:
|
|
679
|
-
isRemoved: !e.visibleToasts.some((
|
|
680
|
-
})), g = l.findIndex((c) => c.i ===
|
|
679
|
+
i: m,
|
|
680
|
+
isRemoved: !e.visibleToasts.some(($) => c.key === $.key)
|
|
681
|
+
})), g = l.findIndex((c) => c.i === h.current && c.isRemoved);
|
|
681
682
|
if (g > -1) {
|
|
682
683
|
var k;
|
|
683
684
|
if (_() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
|
|
684
685
|
else {
|
|
685
|
-
let c = 0,
|
|
686
|
+
let c = 0, m, $;
|
|
686
687
|
for (; c <= g; )
|
|
687
|
-
l[c].isRemoved || (
|
|
688
|
+
l[c].isRemoved || ($ = Math.max(0, c - 1)), c++;
|
|
688
689
|
for (; c < l.length; ) {
|
|
689
690
|
if (!l[c].isRemoved) {
|
|
690
|
-
|
|
691
|
+
m = c - 1;
|
|
691
692
|
break;
|
|
692
693
|
}
|
|
693
694
|
c++;
|
|
694
695
|
}
|
|
695
|
-
|
|
696
|
+
$ === void 0 && m === void 0 && ($ = 0), $ >= 0 && $ < d.current.length ? E(d.current[$]) : m >= 0 && m < d.current.length && E(d.current[m]);
|
|
696
697
|
}
|
|
697
698
|
}
|
|
698
699
|
f.current = e.visibleToasts;
|
|
@@ -721,7 +722,7 @@ function Ke(t, e, n) {
|
|
|
721
722
|
}, [
|
|
722
723
|
n
|
|
723
724
|
]), {
|
|
724
|
-
regionProps: Ce(o,
|
|
725
|
+
regionProps: Ce(o, b, Ee, {
|
|
725
726
|
tabIndex: -1,
|
|
726
727
|
// Mark the toast region as a "top layer", so that it:
|
|
727
728
|
// - is not aria-hidden when opening an overlay
|
|
@@ -733,10 +734,10 @@ function Ke(t, e, n) {
|
|
|
733
734
|
// and we need to follow all focus changes
|
|
734
735
|
onFocus: (l) => {
|
|
735
736
|
let g = l.target.closest('[role="alertdialog"]');
|
|
736
|
-
|
|
737
|
+
h.current = d.current.findIndex((k) => k === g);
|
|
737
738
|
},
|
|
738
739
|
onBlur: () => {
|
|
739
|
-
|
|
740
|
+
h.current = -1;
|
|
740
741
|
}
|
|
741
742
|
})
|
|
742
743
|
};
|
|
@@ -870,10 +871,10 @@ function lt(t = {}) {
|
|
|
870
871
|
);
|
|
871
872
|
return pe(i);
|
|
872
873
|
}
|
|
873
|
-
const ct = new ve(xe),
|
|
874
|
+
const ct = new ve(xe), Bt = (t) => {
|
|
874
875
|
const e = pe(ct);
|
|
875
876
|
return e.visibleToasts.length > 0 ? Le(
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ p(
|
|
877
878
|
ke,
|
|
878
879
|
{
|
|
879
880
|
...t,
|
|
@@ -882,11 +883,11 @@ const ct = new ve(xe), wt = (t) => {
|
|
|
882
883
|
),
|
|
883
884
|
document.body
|
|
884
885
|
) : null;
|
|
885
|
-
},
|
|
886
|
+
}, It = ({ children: t, ...e }) => {
|
|
886
887
|
const n = lt(xe);
|
|
887
888
|
return /* @__PURE__ */ y(Te, { children: [
|
|
888
889
|
typeof t == "function" ? t(n) : t,
|
|
889
|
-
n.visibleToasts.length > 0 && /* @__PURE__ */
|
|
890
|
+
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
890
891
|
ke,
|
|
891
892
|
{
|
|
892
893
|
...e,
|
|
@@ -897,50 +898,56 @@ const ct = new ve(xe), wt = (t) => {
|
|
|
897
898
|
};
|
|
898
899
|
function ke({
|
|
899
900
|
state: t,
|
|
900
|
-
|
|
901
|
+
className: e,
|
|
902
|
+
...n
|
|
901
903
|
}) {
|
|
902
|
-
const
|
|
903
|
-
return /* @__PURE__ */
|
|
904
|
+
const i = A.useRef(null), { regionProps: o } = Ke(n, t, i);
|
|
905
|
+
return /* @__PURE__ */ p(
|
|
904
906
|
"div",
|
|
905
907
|
{
|
|
906
|
-
...
|
|
907
|
-
ref:
|
|
908
|
-
className: x.toastRegion,
|
|
909
|
-
children: t.visibleToasts.map((
|
|
908
|
+
...o,
|
|
909
|
+
ref: i,
|
|
910
|
+
className: B(x.toastRegion, e),
|
|
911
|
+
children: t.visibleToasts.map((r) => /* @__PURE__ */ p(
|
|
910
912
|
dt,
|
|
911
913
|
{
|
|
912
|
-
toast:
|
|
914
|
+
toast: r,
|
|
913
915
|
state: t
|
|
914
916
|
},
|
|
915
|
-
|
|
917
|
+
r.key
|
|
916
918
|
))
|
|
917
919
|
}
|
|
918
920
|
);
|
|
919
921
|
}
|
|
920
922
|
function dt({
|
|
921
923
|
state: t,
|
|
922
|
-
|
|
924
|
+
className: e,
|
|
925
|
+
...n
|
|
923
926
|
}) {
|
|
924
|
-
const
|
|
925
|
-
|
|
927
|
+
const i = A.useRef(null), { toastProps: o, contentProps: r, titleProps: u, closeButtonProps: a } = Ue(
|
|
928
|
+
n,
|
|
926
929
|
t
|
|
927
|
-
),
|
|
930
|
+
), b = st[n.toast.content.type];
|
|
928
931
|
return /* @__PURE__ */ y(
|
|
929
932
|
"div",
|
|
930
933
|
{
|
|
931
|
-
...
|
|
932
|
-
ref:
|
|
933
|
-
className:
|
|
934
|
-
|
|
934
|
+
...o,
|
|
935
|
+
ref: i,
|
|
936
|
+
className: B(
|
|
937
|
+
x.toast,
|
|
938
|
+
x[n.toast.content.type],
|
|
939
|
+
e
|
|
940
|
+
),
|
|
941
|
+
style: { viewTransitionName: n.toast.key },
|
|
935
942
|
children: [
|
|
936
943
|
/* @__PURE__ */ y(
|
|
937
944
|
"div",
|
|
938
945
|
{
|
|
939
|
-
...
|
|
940
|
-
className:
|
|
946
|
+
...r,
|
|
947
|
+
className: B(x.toastContent, r.className),
|
|
941
948
|
children: [
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
|
|
949
|
+
/* @__PURE__ */ p(
|
|
950
|
+
b,
|
|
944
951
|
{
|
|
945
952
|
className: x.icon,
|
|
946
953
|
size: 20,
|
|
@@ -948,25 +955,25 @@ function dt({
|
|
|
948
955
|
}
|
|
949
956
|
),
|
|
950
957
|
/* @__PURE__ */ y("div", { children: [
|
|
951
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ p(
|
|
952
959
|
"p",
|
|
953
960
|
{
|
|
954
961
|
className: x.toastMessage,
|
|
955
|
-
...
|
|
956
|
-
children:
|
|
962
|
+
...u,
|
|
963
|
+
children: n.toast.content.message
|
|
957
964
|
}
|
|
958
965
|
),
|
|
959
|
-
|
|
966
|
+
n.toast.content.children
|
|
960
967
|
] })
|
|
961
968
|
]
|
|
962
969
|
}
|
|
963
970
|
),
|
|
964
|
-
/* @__PURE__ */
|
|
971
|
+
/* @__PURE__ */ p(
|
|
965
972
|
ge,
|
|
966
973
|
{
|
|
967
974
|
variant: "icon",
|
|
968
|
-
...
|
|
969
|
-
children: /* @__PURE__ */
|
|
975
|
+
...a,
|
|
976
|
+
children: /* @__PURE__ */ p(
|
|
970
977
|
Re,
|
|
971
978
|
{
|
|
972
979
|
size: 20,
|
|
@@ -980,8 +987,8 @@ function dt({
|
|
|
980
987
|
);
|
|
981
988
|
}
|
|
982
989
|
export {
|
|
983
|
-
|
|
984
|
-
|
|
990
|
+
Bt as G,
|
|
991
|
+
It as T,
|
|
985
992
|
ke as a,
|
|
986
993
|
dt as b,
|
|
987
994
|
ct as t,
|