@midas-ds/components 10.4.0 → 11.0.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-BqsgiVWV.js → AccordionItem-BtDoammf.js} +7 -7
- package/{AccordionItem-BcsoC78F.cjs → AccordionItem-D2QYNgZS.cjs} +1 -1
- package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
- package/BadgeContainer-DWVHS5dn.cjs +1 -0
- package/{Breadcrumbs-D7eoibWk.js → Breadcrumbs-BBzSV4SK.js} +4 -4
- package/{Breadcrumbs-CfW5IuyE.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
- package/{Button-BZUo7vsZ.js → Button-BjMaGya2.js} +2 -2
- package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
- package/{Button-BXY5ZhqI.cjs → Button-Dq6ugqxT.cjs} +1 -1
- package/Button.module-D-mPLRxe.js +14 -0
- package/Button.module-goCEz5qs.cjs +1 -0
- package/CHANGELOG.md +36 -0
- package/{Card-BaWSgtSF.js → Card-BRs1FKX5.js} +4 -4
- package/{Card-Cc1TNPcQ.cjs → Card-cdL5669N.cjs} +1 -1
- package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
- package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
- package/{CheckboxGroup-CUA8_xSx.js → CheckboxGroup-CC9QGMuE.js} +7 -8
- package/CheckboxGroup-DhQX10rP.cjs +1 -0
- package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
- package/{ColorSchemeSwitch-Cwono7Ap.js → ColorSchemeSwitch-Cnyb9EKC.js} +42 -41
- package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
- package/ComboBox-CiCB2e4W.cjs +1 -0
- package/{ComboBox-HLIAbb2q.js → ComboBox-Dnk8JMQ6.js} +65 -66
- package/{DateField-CnLEi7uX.js → DateField-BAS2v9aI.js} +4 -4
- package/{DateField-B3VjOSde.cjs → DateField-DleDM0Sy.cjs} +1 -1
- package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
- package/DateInputDivider-ToFY-yjB.cjs +1 -0
- package/{DateRangePicker-CFOoGvut.js → DateRangePicker-Blej-jD0.js} +71 -72
- package/DateRangePicker-CYXWnCTq.cjs +6 -0
- package/{Dialog-pSSy1zwf.cjs → Dialog-B3R3WtL5.cjs} +1 -1
- package/{Dialog-SqciohRY.js → Dialog-BkUw6PlA.js} +7 -7
- package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
- package/Dialog-DtHk3eXI.cjs +1 -0
- package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
- package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
- package/Dropdown-CYakzdJg.cjs +6 -0
- package/{Dropdown-CkBp70BH.js → Dropdown-D6WCi_Ll.js} +19 -19
- package/FieldError-Bv3Q6ZP-.cjs +1 -0
- package/FieldError-CDCvUjK5.js +46 -0
- package/{FileUpload-B4rv-wke.js → FileUpload-BokzdXVc.js} +448 -562
- package/{FileUpload-BwMhyLjG.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
- package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
- package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
- package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
- package/{InfoBanner-CVry6Y8i.cjs → InfoBanner-CzwbOdRG.cjs} +1 -1
- package/{InfoBanner-CBUoad7A.js → InfoBanner-D05poAe3.js} +5 -5
- package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
- package/{Label-TVxwGZ-O.js → Label-JLgFEbP9.js} +5 -5
- package/{Label-CNmTN1YY.cjs → Label-VO6CAFux.cjs} +1 -1
- package/Layout-BwLxIwtY.cjs +16 -0
- package/{Layout-amz9BESl.js → Layout-CcADAhds.js} +98 -98
- package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
- package/Link-ESjrl63P.cjs +6 -0
- package/Link-ovwNVMfg.js +60 -0
- package/LinkButton-B6AWNiRn.cjs +6 -0
- package/LinkButton-BkZULm2a.js +69 -0
- package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
- package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
- package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
- package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
- package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
- package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
- package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
- package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
- package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
- package/Popover--r4Zr4mO.cjs +1 -0
- package/{Popover-C8VY1YKi.js → Popover-DypW9ift.js} +13 -13
- package/PressResponder-4jE_HLu3.cjs +1 -0
- package/PressResponder-C3APAKsz.js +34 -0
- package/{ProgressBar-BNCjpcv8.js → ProgressBar-CFgcqHTR.js} +2 -2
- package/{ProgressBar-CcbxcWdT.cjs → ProgressBar-CJFNiudl.cjs} +1 -1
- package/Radio-CMH6pTWD.cjs +1 -0
- package/{Radio-CZYibh9r.js → Radio-DUBSD0kQ.js} +19 -20
- package/{RangeCalendar-B16b6tJD.js → RangeCalendar-BCruEq9d.js} +106 -109
- package/RangeCalendar-BY82hPRu.cjs +11 -0
- package/SearchField-QFyuaT-K.cjs +6 -0
- package/{SearchField-giwECmXS.js → SearchField-nwlyszwt.js} +47 -47
- package/Select-C5i-rIDh.cjs +1 -0
- package/{Select-mwaAv20X.js → Select-DKME5lZp.js} +107 -108
- package/SelectionManager-BJjqIWtf.cjs +1 -0
- package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
- package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
- package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
- package/Spinner-VSyPhiJ9.js +51 -0
- package/Spinner-vof0Y9Hh.cjs +6 -0
- package/{TabList-7VtCiXxX.cjs → TabList-BkSWzbDG.cjs} +1 -1
- package/{TabList-CthsM5h6.js → TabList-QApx8qRC.js} +90 -90
- package/{Table-BcQPvJT3.js → Table-B5Aine4F.js} +55 -54
- package/Table-DGYC-sDq.cjs +16 -0
- package/{Tag-Bs8T2Ei7.js → Tag-Byva_Xuy.js} +136 -135
- package/Tag-bYq-wf5D.cjs +1 -0
- package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
- package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
- package/{TextArea-DBNAVWqL.js → TextArea-BhmdgD1w.js} +8 -8
- package/{TextArea-XJDfeXRs.cjs → TextArea-CY_tzBAJ.cjs} +1 -1
- package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
- package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
- package/{Toast-DPPvPhrF.js → Toast-CWt_mNIg.js} +5 -5
- package/{Toast-l1bKo2oA.cjs → Toast-DdmSvNaO.cjs} +1 -1
- package/{ToggleButtonGroup-DH8IgR4G.cjs → ToggleButtonGroup-DZ_wo0qx.cjs} +1 -1
- package/{ToggleButtonGroup-HOWNWtQZ.js → ToggleButtonGroup-HjvaTYD4.js} +4 -4
- package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/arrow-right-BGd86zzR.cjs +6 -0
- package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- 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 +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/Card.d.ts +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/check-B0aKTFe5.cjs +6 -0
- package/check-B5h1DvDs.js +11 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-down-5hFlg_lR.cjs +6 -0
- package/chevron-down-DmZMdOiC.js +11 -0
- package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
- package/circle-check-OVUGxwp9.cjs +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.js +1 -1
- package/createLucideIcon-CTVXwe6i.cjs +21 -0
- package/createLucideIcon-XRdN60yz.js +94 -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 +3 -14
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.d.ts +1 -1
- package/file-upload/index.js +3 -2
- package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
- package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +97 -96
- package/{info-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
- package/info-Dj6SyPex.cjs +6 -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/Link.d.ts +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- 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/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- 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/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
- package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -0
- 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.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +1 -0
- 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-BghDnMdO.cjs → tokens-BF-dPard.cjs} +1 -1
- package/{tokens-fEwCQXDv.js → tokens-r1r3wC04.js} +4 -3
- package/tooltip/index.js +1 -1
- package/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
- package/triangle-alert-BviJNFjf.cjs +6 -0
- package/{useButton-1-Jf-oHj.js → useButton-BoIV3kDJ.js} +5 -5
- package/{useDateFormatter-BVCkxVdw.js → useDateFormatter-C7BJgoDR.js} +1 -1
- package/useDescription-CPo72trh.cjs +1 -0
- package/useDescription-DYfKjGGU.js +32 -0
- package/{useField-BEBXv5Mh.js → useField-CefQB81E.js} +1 -1
- package/{useFilter-e2oIVF_O.cjs → useFilter-BhM2yVO3.cjs} +1 -1
- package/{useFilter-CousKe2K.js → useFilter-DginflOU.js} +1 -1
- package/{useFocusable-ChPA2Jc7.js → useFocusable-BjE42axF.js} +7 -7
- package/{useHasTabbableChild-BE81d_ab.js → useHasTabbableChild-DP62kzkG.js} +1 -1
- package/{useHighlightSelectionDescription-BfR_vGOe.cjs → useHighlightSelectionDescription-DmbDkFGY.cjs} +1 -1
- package/{useHighlightSelectionDescription-D73hrkmn.js → useHighlightSelectionDescription-xr_16pKd.js} +2 -2
- package/{useListState-CebsX_1d.js → useListState-DNB7JWoj.js} +1 -1
- package/{useListState-DymkJGDF.cjs → useListState-wLau6fXo.cjs} +1 -1
- package/{usePress-DuR4pVsE.js → usePress-BW47IcyU.js} +34 -34
- package/{useSingleSelectListState-BLXvGjLI.js → useSingleSelectListState-B0OMoHd_.js} +1 -1
- package/{useSingleSelectListState-BPhlCU26.cjs → useSingleSelectListState-DlO5H9N-.cjs} +1 -1
- package/{useTextField-C-sUypsx.js → useTextField-DjxayZsV.js} +2 -2
- package/{utils-DJhAJHk_.js → utils-KLjWgdLR.js} +5 -5
- package/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
- package/x-rV-nu490.cjs +6 -0
- package/BadgeContainer-I1XA3OCl.cjs +0 -1
- package/Button.module-DEQtBYe5.cjs +0 -1
- package/Button.module-tti8HGxs.js +0 -14
- package/CheckboxGroup-DmUOM0xl.cjs +0 -1
- package/ColorSchemeSwitch-DDXdSzqg.cjs +0 -16
- package/ComboBox-BBC7jhnm.cjs +0 -1
- package/DateInputDivider-3BvwXXa9.cjs +0 -1
- package/DateRangePicker-BPlZ12r8.cjs +0 -6
- package/Dialog-CSnN6baf.cjs +0 -1
- package/Dropdown-DAsVShlt.cjs +0 -6
- package/FieldError-B3YFj-an.js +0 -23
- package/FieldError-BbR-29BM.js +0 -28
- package/FieldError-MVsU-Mgw.cjs +0 -1
- package/FieldError-bRTpchvr.cjs +0 -1
- package/Layout-Dw-oCqxd.cjs +0 -16
- package/Link-D92ftFi2.cjs +0 -6
- package/Link-DegonJfl.js +0 -59
- package/LinkButton-CckYzfJ8.js +0 -69
- package/LinkButton-DKZ4z6zu.cjs +0 -6
- package/Popover-CnAsw3wI.cjs +0 -1
- package/Radio-B2zfEFdq.cjs +0 -1
- package/RangeCalendar-C1LFeOVk.cjs +0 -11
- package/SearchField-CML0kjtn.cjs +0 -6
- package/Select-DKey6CeS.cjs +0 -1
- package/SelectionManager-D0jYUYcy.cjs +0 -1
- package/Spinner-CbJ6YAz-.js +0 -53
- package/Spinner-yHcy8YHC.cjs +0 -6
- package/Table-DkvNp6xm.cjs +0 -16
- package/Tag-CFWZ2LQW.cjs +0 -1
- package/arrow-right-QJ2gXPKQ.cjs +0 -6
- package/check-CLF6Yxza.js +0 -11
- package/check-D_KoootC.cjs +0 -6
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-down-jl83cllc.cjs +0 -6
- package/circle-check-BGo8gML8.cjs +0 -11
- package/createLucideIcon-Cg_wkoIA.cjs +0 -21
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/file-upload/intl/translations.json.d.ts +0 -17
- package/info-CIEIENo6.cjs +0 -6
- package/scrollIntoView-BLnsPvFA.js +0 -87
- package/scrollIntoView-joIyo-Jt.cjs +0 -1
- package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
- package/triangle-alert-DJW8U7jL.cjs +0 -6
- package/x-H8Zrx8-x.cjs +0 -6
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { jsxs as qe, jsx as S } from "react/jsx-runtime";
|
|
2
|
-
import { e as Xe,
|
|
3
|
-
import { $ as Qe, d as G, f as Ye, b as Ze, c as eo, g as oo } from "./Collection
|
|
4
|
-
import {
|
|
5
|
-
import { f as R } from "./ListBox-
|
|
6
|
-
import {
|
|
2
|
+
import { e as Xe, b as Je } from "./Button-CepQFEit.js";
|
|
3
|
+
import { $ as Qe, d as G, f as Ye, b as Ze, c as eo, g as oo } from "./Collection-D2jVTmDW.js";
|
|
4
|
+
import { b as ro, a as q, f as X, $ as J, d as to } from "./utils-KLjWgdLR.js";
|
|
5
|
+
import { f as R } from "./ListBox-CsxDGpCA.js";
|
|
6
|
+
import { $ as ao } from "./Text-DcZqSUN9.js";
|
|
7
7
|
import { c as Q, a as P, b as io, e as no } from "./mergeProps-C1U1OIeJ.js";
|
|
8
8
|
import { $ as z } from "./filterDOMProps-D6KHYVBX.js";
|
|
9
9
|
import g, { useRef as V, useState as lo, useEffect as Y, forwardRef as Z, useContext as T, createContext as ee } from "react";
|
|
10
10
|
import { $ as oe } from "./useFocusRing-DOfBqnUN.js";
|
|
11
11
|
import { a as uo, p as so, $ as co } from "./useHover-DQvJ3Y-W.js";
|
|
12
|
-
import { a as po } from "./ListKeyboardDelegate-
|
|
13
|
-
import { $ as
|
|
14
|
-
import { $ as
|
|
15
|
-
import { $ as $o, a as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { $ as go } from "./Separator-
|
|
12
|
+
import { a as po } from "./ListKeyboardDelegate-C-sPNj0f.js";
|
|
13
|
+
import { $ as bo } from "./useField-CefQB81E.js";
|
|
14
|
+
import { $ as fo } from "./useFocusWithin-T1ifEM_s.js";
|
|
15
|
+
import { $ as $o, a as mo } from "./useHighlightSelectionDescription-xr_16pKd.js";
|
|
16
|
+
import { $ as vo } from "./useHasTabbableChild-DP62kzkG.js";
|
|
17
|
+
import { $ as go } from "./Separator-CEZ5y7tZ.js";
|
|
18
18
|
import { $ as re } from "./context-CGNJ3grH.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { $ as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
19
|
+
import { g as te } from "./usePress-BW47IcyU.js";
|
|
20
|
+
import { $ as xo } from "./useDescription-DYfKjGGU.js";
|
|
21
|
+
import { b as h, a as Do } from "./useFocusable-BjE42axF.js";
|
|
22
|
+
import { $ as C } from "./getScrollParent-Ru2U2LlM.js";
|
|
23
|
+
import { b as L } from "./scrollIntoView-ClEACHUk.js";
|
|
24
|
+
import { $ as U } from "./FocusScope-BCsrRPqD.js";
|
|
25
|
+
import { i as yo, d as Bo } from "./SelectionManager-BubxiIKu.js";
|
|
25
26
|
import { $ as Po } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
26
|
-
import { $ as
|
|
27
|
-
import { B as
|
|
27
|
+
import { $ as ko } from "./useListState-DNB7JWoj.js";
|
|
28
|
+
import { B as ho } from "./Button-BjMaGya2.js";
|
|
28
29
|
import { c as Eo } from "./clsx-OuTLNxxd.js";
|
|
29
|
-
import { X as wo } from "./x-
|
|
30
|
+
import { X as wo } from "./x-C2xUHAEl.js";
|
|
30
31
|
import './assets/Tag.css';const O = /* @__PURE__ */ new WeakMap();
|
|
31
32
|
function W(r, e) {
|
|
32
33
|
var o;
|
|
@@ -38,9 +39,9 @@ function Co(r) {
|
|
|
38
39
|
return typeof r == "string" ? r.replace(/\s*/g, "") : "" + r;
|
|
39
40
|
}
|
|
40
41
|
function Lo(r, e, o) {
|
|
41
|
-
let { isVirtualized: a, keyboardDelegate: u, layoutDelegate: t, onAction: n, disallowTypeAhead: s, linkBehavior:
|
|
42
|
+
let { isVirtualized: a, keyboardDelegate: u, layoutDelegate: t, onAction: n, disallowTypeAhead: s, linkBehavior: d = "action", keyboardNavigationBehavior: f = "arrow", escapeKeyBehavior: l = "clearSelection", shouldSelectOnPressUp: $ } = r;
|
|
42
43
|
!r["aria-label"] && !r["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
43
|
-
let { listProps:
|
|
44
|
+
let { listProps: c } = go({
|
|
44
45
|
selectionManager: e.selectionManager,
|
|
45
46
|
collection: e.collection,
|
|
46
47
|
disabledKeys: e.disabledKeys,
|
|
@@ -50,7 +51,7 @@ function Lo(r, e, o) {
|
|
|
50
51
|
isVirtualized: a,
|
|
51
52
|
selectOnFocus: e.selectionManager.selectionBehavior === "replace",
|
|
52
53
|
shouldFocusWrap: r.shouldFocusWrap,
|
|
53
|
-
linkBehavior:
|
|
54
|
+
linkBehavior: d,
|
|
54
55
|
disallowTypeAhead: s,
|
|
55
56
|
autoFocus: r.autoFocus,
|
|
56
57
|
escapeKeyBehavior: l
|
|
@@ -58,18 +59,18 @@ function Lo(r, e, o) {
|
|
|
58
59
|
O.set(e, {
|
|
59
60
|
id: p,
|
|
60
61
|
onAction: n,
|
|
61
|
-
linkBehavior:
|
|
62
|
-
keyboardNavigationBehavior:
|
|
62
|
+
linkBehavior: d,
|
|
63
|
+
keyboardNavigationBehavior: f,
|
|
63
64
|
shouldSelectOnPressUp: $
|
|
64
65
|
});
|
|
65
|
-
let
|
|
66
|
+
let m = $o({
|
|
66
67
|
selectionManager: e.selectionManager,
|
|
67
68
|
hasItemActions: !!n
|
|
68
|
-
}), E =
|
|
69
|
+
}), E = vo(o, {
|
|
69
70
|
isDisabled: e.collection.size !== 0
|
|
70
71
|
}), x = z(r, {
|
|
71
72
|
labelable: !0
|
|
72
|
-
}),
|
|
73
|
+
}), k = P(
|
|
73
74
|
x,
|
|
74
75
|
{
|
|
75
76
|
role: "grid",
|
|
@@ -79,11 +80,11 @@ function Lo(r, e, o) {
|
|
|
79
80
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
80
81
|
e.collection.size === 0 ? {
|
|
81
82
|
tabIndex: E ? -1 : 0
|
|
82
|
-
} :
|
|
83
|
-
|
|
83
|
+
} : c,
|
|
84
|
+
m
|
|
84
85
|
);
|
|
85
|
-
return a && (
|
|
86
|
-
gridProps:
|
|
86
|
+
return a && (k["aria-rowcount"] = e.collection.size, k["aria-colcount"] = 1), mo({}, e), {
|
|
87
|
+
gridProps: k
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
const _ = {
|
|
@@ -98,30 +99,30 @@ const _ = {
|
|
|
98
99
|
};
|
|
99
100
|
function Ao(r, e, o) {
|
|
100
101
|
var a, u;
|
|
101
|
-
let { node: t, isVirtualized: n } = r, { direction: s } = re(), { onAction:
|
|
102
|
+
let { node: t, isVirtualized: n } = r, { direction: s } = re(), { onAction: d, linkBehavior: f, keyboardNavigationBehavior: l, shouldSelectOnPressUp: $ } = O.get(e), c = io(), p = V(null), m = () => {
|
|
102
103
|
var i;
|
|
103
|
-
o.current !== null && (p.current != null && t.key !== p.current || !(!((i = o.current) === null || i === void 0) && i.contains(document.activeElement))) &&
|
|
104
|
-
}, E = {}, x = r.hasChildItems,
|
|
104
|
+
o.current !== null && (p.current != null && t.key !== p.current || !(!((i = o.current) === null || i === void 0) && i.contains(document.activeElement))) && h(o.current);
|
|
105
|
+
}, E = {}, x = r.hasChildItems, k = e.selectionManager.isLink(t.key);
|
|
105
106
|
if (t != null && "expandedKeys" in e) {
|
|
106
107
|
var A, M, K;
|
|
107
108
|
let i = (A = (M = e.collection).getChildren) === null || A === void 0 ? void 0 : A.call(M, t.key);
|
|
108
109
|
x = x || [
|
|
109
110
|
...i ?? []
|
|
110
|
-
].length > 1,
|
|
111
|
-
let
|
|
111
|
+
].length > 1, d == null && !k && e.selectionManager.selectionMode === "none" && x && (d = () => e.toggleKey(t.key));
|
|
112
|
+
let b = x ? e.expandedKeys.has(t.key) : void 0, B = 1;
|
|
112
113
|
var F;
|
|
113
114
|
if (t.level > 0 && (t == null ? void 0 : t.parentKey) != null) {
|
|
114
|
-
let
|
|
115
|
-
if (
|
|
115
|
+
let v = e.collection.getItem(t.parentKey);
|
|
116
|
+
if (v) {
|
|
116
117
|
var N, w;
|
|
117
|
-
let D = (N = (w = e.collection).getChildren) === null || N === void 0 ? void 0 : N.call(w,
|
|
118
|
+
let D = (N = (w = e.collection).getChildren) === null || N === void 0 ? void 0 : N.call(w, v.key);
|
|
118
119
|
B = yo(D).index + 1;
|
|
119
120
|
}
|
|
120
121
|
} else B = ((F = (K = [
|
|
121
122
|
...e.collection
|
|
122
|
-
].filter((
|
|
123
|
+
].filter((v) => v.level === 0).at(-1)) === null || K === void 0 ? void 0 : K.index) !== null && F !== void 0 ? F : 0) + 1;
|
|
123
124
|
E = {
|
|
124
|
-
"aria-expanded":
|
|
125
|
+
"aria-expanded": b,
|
|
125
126
|
"aria-level": t.level + 1,
|
|
126
127
|
"aria-posinset": (t == null ? void 0 : t.index) + 1,
|
|
127
128
|
"aria-setsize": B
|
|
@@ -133,13 +134,13 @@ function Ao(r, e, o) {
|
|
|
133
134
|
ref: o,
|
|
134
135
|
isVirtualized: n,
|
|
135
136
|
shouldSelectOnPressUp: r.shouldSelectOnPressUp || $,
|
|
136
|
-
onAction:
|
|
137
|
-
focus:
|
|
138
|
-
linkBehavior:
|
|
137
|
+
onAction: d || !((a = t.props) === null || a === void 0) && a.onAction ? no((u = t.props) === null || u === void 0 ? void 0 : u.onAction, d ? () => d(t.key) : void 0) : void 0,
|
|
138
|
+
focus: m,
|
|
139
|
+
linkBehavior: f
|
|
139
140
|
}), Ie = (i) => {
|
|
140
141
|
if (!i.currentTarget.contains(i.target) || !o.current || !document.activeElement) return;
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
142
|
+
let b = U(o.current);
|
|
143
|
+
if (b.currentNode = document.activeElement, "expandedKeys" in e && document.activeElement === o.current) {
|
|
143
144
|
if (i.key === _.expand[s] && e.selectionManager.focusedKey === t.key && x && !e.expandedKeys.has(t.key)) {
|
|
144
145
|
e.toggleKey(t.key), i.stopPropagation();
|
|
145
146
|
return;
|
|
@@ -151,40 +152,40 @@ function Ao(r, e, o) {
|
|
|
151
152
|
switch (i.key) {
|
|
152
153
|
case "ArrowLeft":
|
|
153
154
|
if (l === "arrow") {
|
|
154
|
-
let
|
|
155
|
-
if (
|
|
156
|
-
i.preventDefault(), i.stopPropagation(),
|
|
157
|
-
containingElement:
|
|
155
|
+
let v = s === "rtl" ? b.nextNode() : b.previousNode();
|
|
156
|
+
if (v)
|
|
157
|
+
i.preventDefault(), i.stopPropagation(), h(v), L(v, {
|
|
158
|
+
containingElement: C(o.current)
|
|
158
159
|
});
|
|
159
160
|
else if (i.preventDefault(), i.stopPropagation(), s === "rtl")
|
|
160
|
-
|
|
161
|
-
containingElement:
|
|
161
|
+
h(o.current), L(o.current, {
|
|
162
|
+
containingElement: C(o.current)
|
|
162
163
|
});
|
|
163
164
|
else {
|
|
164
|
-
|
|
165
|
-
let D = H(
|
|
166
|
-
D && (
|
|
167
|
-
containingElement:
|
|
165
|
+
b.currentNode = o.current;
|
|
166
|
+
let D = H(b);
|
|
167
|
+
D && (h(D), L(D, {
|
|
168
|
+
containingElement: C(o.current)
|
|
168
169
|
}));
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
break;
|
|
172
173
|
case "ArrowRight":
|
|
173
174
|
if (l === "arrow") {
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
176
|
-
i.preventDefault(), i.stopPropagation(),
|
|
177
|
-
containingElement:
|
|
175
|
+
let v = s === "rtl" ? b.previousNode() : b.nextNode();
|
|
176
|
+
if (v)
|
|
177
|
+
i.preventDefault(), i.stopPropagation(), h(v), L(v, {
|
|
178
|
+
containingElement: C(o.current)
|
|
178
179
|
});
|
|
179
180
|
else if (i.preventDefault(), i.stopPropagation(), s === "ltr")
|
|
180
|
-
|
|
181
|
-
containingElement:
|
|
181
|
+
h(o.current), L(o.current, {
|
|
182
|
+
containingElement: C(o.current)
|
|
182
183
|
});
|
|
183
184
|
else {
|
|
184
|
-
|
|
185
|
-
let D = H(
|
|
186
|
-
D && (
|
|
187
|
-
containingElement:
|
|
185
|
+
b.currentNode = o.current;
|
|
186
|
+
let D = H(b);
|
|
187
|
+
D && (h(D), L(D, {
|
|
188
|
+
containingElement: C(o.current)
|
|
188
189
|
}));
|
|
189
190
|
}
|
|
190
191
|
}
|
|
@@ -207,10 +208,10 @@ function Ao(r, e, o) {
|
|
|
207
208
|
switch (i.key) {
|
|
208
209
|
case "Tab":
|
|
209
210
|
if (l === "tab") {
|
|
210
|
-
let
|
|
211
|
+
let b = U(o.current, {
|
|
211
212
|
tabbable: !0
|
|
212
213
|
});
|
|
213
|
-
|
|
214
|
+
b.currentNode = document.activeElement, (i.shiftKey ? b.previousNode() : b.nextNode()) && i.stopPropagation();
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
}, _e = te(t.props), He = j.hasAction ? _e : {}, I = P(je, He, {
|
|
@@ -222,7 +223,7 @@ function Ao(r, e, o) {
|
|
|
222
223
|
"aria-label": t.textValue || void 0,
|
|
223
224
|
"aria-selected": e.selectionManager.canSelectItem(t.key) ? e.selectionManager.isSelected(t.key) : void 0,
|
|
224
225
|
"aria-disabled": e.selectionManager.isDisabled(t.key) || void 0,
|
|
225
|
-
"aria-labelledby":
|
|
226
|
+
"aria-labelledby": c && t.textValue ? `${W(e, t.key)} ${c}` : void 0,
|
|
226
227
|
id: W(e, t.key)
|
|
227
228
|
});
|
|
228
229
|
n && (I["aria-rowindex"] = t.index + 1);
|
|
@@ -236,7 +237,7 @@ function Ao(r, e, o) {
|
|
|
236
237
|
},
|
|
237
238
|
gridCellProps: Ge,
|
|
238
239
|
descriptionProps: {
|
|
239
|
-
id:
|
|
240
|
+
id: c
|
|
240
241
|
},
|
|
241
242
|
...j
|
|
242
243
|
};
|
|
@@ -257,21 +258,21 @@ function Mo(r, e, o) {
|
|
|
257
258
|
direction: a,
|
|
258
259
|
disabledKeys: e.disabledKeys,
|
|
259
260
|
disabledBehavior: e.selectionManager.disabledBehavior
|
|
260
|
-
}), { labelProps: t, fieldProps: n, descriptionProps: s, errorMessageProps:
|
|
261
|
+
}), { labelProps: t, fieldProps: n, descriptionProps: s, errorMessageProps: d } = bo({
|
|
261
262
|
...r,
|
|
262
263
|
labelElementType: "span"
|
|
263
|
-
}), { gridProps:
|
|
264
|
+
}), { gridProps: f } = Lo({
|
|
264
265
|
...r,
|
|
265
266
|
...n,
|
|
266
267
|
keyboardDelegate: u,
|
|
267
268
|
shouldFocusWrap: !0,
|
|
268
269
|
linkBehavior: "override",
|
|
269
270
|
keyboardNavigationBehavior: "tab"
|
|
270
|
-
}, e, o), [l, $] = lo(!1), { focusWithinProps:
|
|
271
|
+
}, e, o), [l, $] = lo(!1), { focusWithinProps: c } = fo({
|
|
271
272
|
onFocusWithinChange: $
|
|
272
|
-
}), p = z(r),
|
|
273
|
+
}), p = z(r), m = V(e.collection.size);
|
|
273
274
|
return Y(() => {
|
|
274
|
-
o.current &&
|
|
275
|
+
o.current && m.current > 0 && e.collection.size === 0 && l && o.current.focus(), m.current = e.collection.size;
|
|
275
276
|
}, [
|
|
276
277
|
e.collection.size,
|
|
277
278
|
l,
|
|
@@ -279,17 +280,17 @@ function Mo(r, e, o) {
|
|
|
279
280
|
]), ae.set(e, {
|
|
280
281
|
onRemove: r.onRemove
|
|
281
282
|
}), {
|
|
282
|
-
gridProps: P(
|
|
283
|
+
gridProps: P(f, p, {
|
|
283
284
|
role: e.collection.size ? "grid" : null,
|
|
284
285
|
"aria-atomic": !1,
|
|
285
286
|
"aria-relevant": "additions",
|
|
286
287
|
"aria-live": l ? "polite" : "off",
|
|
287
|
-
...
|
|
288
|
+
...c,
|
|
288
289
|
...n
|
|
289
290
|
}),
|
|
290
291
|
labelProps: t,
|
|
291
292
|
descriptionProps: s,
|
|
292
|
-
errorMessageProps:
|
|
293
|
+
errorMessageProps: d
|
|
293
294
|
};
|
|
294
295
|
}
|
|
295
296
|
var ie = {};
|
|
@@ -317,13 +318,13 @@ se = {
|
|
|
317
318
|
removeButtonLabel: "Entfernen",
|
|
318
319
|
removeDescription: "Auf „Löschen“ drücken, um das Tag zu entfernen."
|
|
319
320
|
};
|
|
320
|
-
var
|
|
321
|
-
|
|
321
|
+
var de = {};
|
|
322
|
+
de = {
|
|
322
323
|
removeButtonLabel: "Κατάργηση",
|
|
323
324
|
removeDescription: "Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."
|
|
324
325
|
};
|
|
325
|
-
var
|
|
326
|
-
|
|
326
|
+
var ce = {};
|
|
327
|
+
ce = {
|
|
327
328
|
removeDescription: "Press Delete to remove tag.",
|
|
328
329
|
removeButtonLabel: "Remove"
|
|
329
330
|
};
|
|
@@ -332,13 +333,13 @@ pe = {
|
|
|
332
333
|
removeButtonLabel: "Quitar",
|
|
333
334
|
removeDescription: "Pulse Eliminar para quitar la etiqueta."
|
|
334
335
|
};
|
|
335
|
-
var
|
|
336
|
-
|
|
336
|
+
var be = {};
|
|
337
|
+
be = {
|
|
337
338
|
removeButtonLabel: "Eemalda",
|
|
338
339
|
removeDescription: "Sildi eemaldamiseks vajutage kustutusklahvi Delete."
|
|
339
340
|
};
|
|
340
|
-
var
|
|
341
|
-
|
|
341
|
+
var fe = {};
|
|
342
|
+
fe = {
|
|
342
343
|
removeButtonLabel: "Poista",
|
|
343
344
|
removeDescription: "Poista tunniste painamalla Poista-painiketta."
|
|
344
345
|
};
|
|
@@ -347,13 +348,13 @@ $e = {
|
|
|
347
348
|
removeButtonLabel: "Supprimer",
|
|
348
349
|
removeDescription: "Appuyez sur Supprimer pour supprimer l’étiquette."
|
|
349
350
|
};
|
|
350
|
-
var
|
|
351
|
-
|
|
351
|
+
var me = {};
|
|
352
|
+
me = {
|
|
352
353
|
removeButtonLabel: "הסר",
|
|
353
354
|
removeDescription: "לחץ על מחק כדי להסיר תג."
|
|
354
355
|
};
|
|
355
|
-
var
|
|
356
|
-
|
|
356
|
+
var ve = {};
|
|
357
|
+
ve = {
|
|
357
358
|
removeButtonLabel: "Ukloni",
|
|
358
359
|
removeDescription: "Pritisnite Delete za uklanjanje oznake."
|
|
359
360
|
};
|
|
@@ -387,13 +388,13 @@ Pe = {
|
|
|
387
388
|
removeButtonLabel: "Noņemt",
|
|
388
389
|
removeDescription: "Nospiediet Delete [Dzēst], lai noņemtu tagu."
|
|
389
390
|
};
|
|
390
|
-
var
|
|
391
|
-
|
|
391
|
+
var ke = {};
|
|
392
|
+
ke = {
|
|
392
393
|
removeButtonLabel: "Fjern",
|
|
393
394
|
removeDescription: "Trykk på Slett for å fjerne taggen."
|
|
394
395
|
};
|
|
395
|
-
var
|
|
396
|
-
|
|
396
|
+
var he = {};
|
|
397
|
+
he = {
|
|
397
398
|
removeButtonLabel: "Verwijderen",
|
|
398
399
|
removeDescription: "Druk op Verwijderen om de tag te verwijderen."
|
|
399
400
|
};
|
|
@@ -469,22 +470,22 @@ Ve = {
|
|
|
469
470
|
"cs-CZ": le,
|
|
470
471
|
"da-DK": ue,
|
|
471
472
|
"de-DE": se,
|
|
472
|
-
"el-GR":
|
|
473
|
-
"en-US":
|
|
473
|
+
"el-GR": de,
|
|
474
|
+
"en-US": ce,
|
|
474
475
|
"es-ES": pe,
|
|
475
|
-
"et-EE":
|
|
476
|
-
"fi-FI":
|
|
476
|
+
"et-EE": be,
|
|
477
|
+
"fi-FI": fe,
|
|
477
478
|
"fr-FR": $e,
|
|
478
|
-
"he-IL":
|
|
479
|
-
"hr-HR":
|
|
479
|
+
"he-IL": me,
|
|
480
|
+
"hr-HR": ve,
|
|
480
481
|
"hu-HU": ge,
|
|
481
482
|
"it-IT": xe,
|
|
482
483
|
"ja-JP": De,
|
|
483
484
|
"ko-KR": ye,
|
|
484
485
|
"lt-LT": Be,
|
|
485
486
|
"lv-LV": Pe,
|
|
486
|
-
"nb-NO":
|
|
487
|
-
"nl-NL":
|
|
487
|
+
"nb-NO": ke,
|
|
488
|
+
"nl-NL": he,
|
|
488
489
|
"pl-PL": Ee,
|
|
489
490
|
"pt-BR": we,
|
|
490
491
|
"pt-PT": Ce,
|
|
@@ -503,27 +504,27 @@ function Ko(r) {
|
|
|
503
504
|
return r && r.__esModule ? r.default : r;
|
|
504
505
|
}
|
|
505
506
|
function Fo(r, e, o) {
|
|
506
|
-
let { item: a } = r, u = Po(Ko(Ve), "@react-aria/tag"), t = Q(), { onRemove: n } = ae.get(e) || {}, { rowProps: s, gridCellProps:
|
|
507
|
+
let { item: a } = r, u = Po(Ko(Ve), "@react-aria/tag"), t = Q(), { onRemove: n } = ae.get(e) || {}, { rowProps: s, gridCellProps: d, ...f } = Ao({
|
|
507
508
|
node: a
|
|
508
|
-
}, e, o), { descriptionProps: l, ...$ } =
|
|
509
|
+
}, e, o), { descriptionProps: l, ...$ } = f, c = e.disabledKeys.has(a.key) || a.props.isDisabled, p = (w) => {
|
|
509
510
|
if (w.key === "Delete" || w.key === "Backspace") {
|
|
510
|
-
if (
|
|
511
|
+
if (c) return;
|
|
511
512
|
w.preventDefault(), e.selectionManager.isSelected(a.key) ? n == null || n(new Set(e.selectionManager.selectedKeys)) : n == null || n(/* @__PURE__ */ new Set([
|
|
512
513
|
a.key
|
|
513
514
|
]));
|
|
514
515
|
}
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
let E = n && (
|
|
518
|
-
!
|
|
516
|
+
}, m = so();
|
|
517
|
+
m === "virtual" && typeof window < "u" && "ontouchstart" in window && (m = "pointer");
|
|
518
|
+
let E = n && (m === "keyboard" || m === "virtual") ? u.format("removeDescription") : "", x = xo(E), k = a.key === e.selectionManager.focusedKey, A = e.selectionManager.focusedKey != null, M = -1;
|
|
519
|
+
!c && (k || !A) && (M = 0);
|
|
519
520
|
let K = z(a.props), F = te(a.props), { focusableProps: N } = Do({
|
|
520
|
-
isDisabled:
|
|
521
|
+
isDisabled: c
|
|
521
522
|
}, o);
|
|
522
523
|
return {
|
|
523
524
|
removeButtonProps: {
|
|
524
525
|
"aria-label": u.format("removeButtonLabel"),
|
|
525
526
|
"aria-labelledby": `${t} ${s.id}`,
|
|
526
|
-
isDisabled:
|
|
527
|
+
isDisabled: c,
|
|
527
528
|
id: t,
|
|
528
529
|
onPress: () => n ? n(/* @__PURE__ */ new Set([
|
|
529
530
|
a.key
|
|
@@ -534,7 +535,7 @@ function Fo(r, e, o) {
|
|
|
534
535
|
onKeyDown: n ? p : void 0,
|
|
535
536
|
"aria-describedby": x["aria-describedby"]
|
|
536
537
|
}),
|
|
537
|
-
gridCellProps: P(
|
|
538
|
+
gridCellProps: P(d, {
|
|
538
539
|
"aria-errormessage": r["aria-errormessage"],
|
|
539
540
|
"aria-label": r["aria-label"]
|
|
540
541
|
}),
|
|
@@ -552,16 +553,16 @@ const No = /* @__PURE__ */ ee(null), Oe = /* @__PURE__ */ ee(null), So = /* @__P
|
|
|
552
553
|
}));
|
|
553
554
|
});
|
|
554
555
|
function zo({ props: r, forwardedRef: e, collection: o }) {
|
|
555
|
-
let a = V(null), [u, t] = to(!r["aria-label"] && !r["aria-labelledby"]), n =
|
|
556
|
+
let a = V(null), [u, t] = to(!r["aria-label"] && !r["aria-labelledby"]), n = ko({
|
|
556
557
|
...r,
|
|
557
558
|
children: void 0,
|
|
558
559
|
collection: o
|
|
559
|
-
}), s = z(r),
|
|
560
|
-
|
|
560
|
+
}), s = z(r), d = Object.fromEntries(Object.entries(s).map(([m]) => [
|
|
561
|
+
m,
|
|
561
562
|
void 0
|
|
562
|
-
])), { gridProps:
|
|
563
|
+
])), { gridProps: f, labelProps: l, descriptionProps: $, errorMessageProps: c } = Mo({
|
|
563
564
|
...r,
|
|
564
|
-
...
|
|
565
|
+
...d,
|
|
565
566
|
label: t
|
|
566
567
|
}, n, a);
|
|
567
568
|
var p;
|
|
@@ -584,7 +585,7 @@ function zo({ props: r, forwardedRef: e, collection: o }) {
|
|
|
584
585
|
[
|
|
585
586
|
Oe,
|
|
586
587
|
{
|
|
587
|
-
...
|
|
588
|
+
...f,
|
|
588
589
|
ref: a
|
|
589
590
|
}
|
|
590
591
|
],
|
|
@@ -597,7 +598,7 @@ function zo({ props: r, forwardedRef: e, collection: o }) {
|
|
|
597
598
|
{
|
|
598
599
|
slots: {
|
|
599
600
|
description: $,
|
|
600
|
-
errorMessage:
|
|
601
|
+
errorMessage: c
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
604
|
]
|
|
@@ -613,16 +614,16 @@ const To = /* @__PURE__ */ Z(function(e, o) {
|
|
|
613
614
|
function Ro({ props: r, forwardedRef: e }) {
|
|
614
615
|
let o = T(R), { CollectionRoot: a } = T(G), [u, t] = J(r, e, Oe);
|
|
615
616
|
delete u.items, delete u.renderEmptyState;
|
|
616
|
-
let { focusProps: n, isFocused: s, isFocusVisible:
|
|
617
|
+
let { focusProps: n, isFocused: s, isFocusVisible: d } = oe(), f = {
|
|
617
618
|
isEmpty: o.collection.size === 0,
|
|
618
619
|
isFocused: s,
|
|
619
|
-
isFocusVisible:
|
|
620
|
+
isFocusVisible: d,
|
|
620
621
|
state: o
|
|
621
622
|
}, l = q({
|
|
622
623
|
className: r.className,
|
|
623
624
|
style: r.style,
|
|
624
625
|
defaultClassName: "react-aria-TagList",
|
|
625
|
-
values:
|
|
626
|
+
values: f
|
|
626
627
|
}), $ = oo(o.selectionManager.focusedKey);
|
|
627
628
|
return /* @__PURE__ */ g.createElement("div", {
|
|
628
629
|
...P(u, n),
|
|
@@ -630,8 +631,8 @@ function Ro({ props: r, forwardedRef: e }) {
|
|
|
630
631
|
ref: t,
|
|
631
632
|
"data-empty": o.collection.size === 0 || void 0,
|
|
632
633
|
"data-focused": s || void 0,
|
|
633
|
-
"data-focus-visible":
|
|
634
|
-
}, o.collection.size === 0 && r.renderEmptyState ? r.renderEmptyState(
|
|
634
|
+
"data-focus-visible": d || void 0
|
|
635
|
+
}, o.collection.size === 0 && r.renderEmptyState ? r.renderEmptyState(f) : /* @__PURE__ */ g.createElement(a, {
|
|
635
636
|
collection: o.collection,
|
|
636
637
|
persistedKeys: $
|
|
637
638
|
}));
|
|
@@ -639,9 +640,9 @@ function Ro({ props: r, forwardedRef: e }) {
|
|
|
639
640
|
const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
640
641
|
let a = T(R), u = ro(e), { focusProps: t, isFocusVisible: n } = oe({
|
|
641
642
|
within: !1
|
|
642
|
-
}), { rowProps: s, gridCellProps:
|
|
643
|
+
}), { rowProps: s, gridCellProps: d, removeButtonProps: f, ...l } = Fo({
|
|
643
644
|
item: o
|
|
644
|
-
}, a, u), { hoverProps: $, isHovered:
|
|
645
|
+
}, a, u), { hoverProps: $, isHovered: c } = co({
|
|
645
646
|
isDisabled: !l.allowsSelection,
|
|
646
647
|
onHoverStart: o.props.onHoverStart,
|
|
647
648
|
onHoverChange: o.props.onHoverChange,
|
|
@@ -654,7 +655,7 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
654
655
|
values: {
|
|
655
656
|
...l,
|
|
656
657
|
isFocusVisible: n,
|
|
657
|
-
isHovered:
|
|
658
|
+
isHovered: c,
|
|
658
659
|
selectionMode: a.selectionManager.selectionMode,
|
|
659
660
|
selectionBehavior: a.selectionManager.selectionBehavior
|
|
660
661
|
}
|
|
@@ -669,14 +670,14 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
669
670
|
...P(z(r), s, t, $),
|
|
670
671
|
"data-selected": l.isSelected || void 0,
|
|
671
672
|
"data-disabled": l.isDisabled || void 0,
|
|
672
|
-
"data-hovered":
|
|
673
|
+
"data-hovered": c || void 0,
|
|
673
674
|
"data-focused": l.isFocused || void 0,
|
|
674
675
|
"data-focus-visible": n || void 0,
|
|
675
676
|
"data-pressed": l.isPressed || void 0,
|
|
676
677
|
"data-allows-removing": l.allowsRemoving || void 0,
|
|
677
678
|
"data-selection-mode": a.selectionManager.selectionMode === "none" ? void 0 : a.selectionManager.selectionMode
|
|
678
679
|
}, /* @__PURE__ */ g.createElement("div", {
|
|
679
|
-
...
|
|
680
|
+
...d,
|
|
680
681
|
style: {
|
|
681
682
|
display: "contents"
|
|
682
683
|
}
|
|
@@ -686,7 +687,7 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
686
687
|
Xe,
|
|
687
688
|
{
|
|
688
689
|
slots: {
|
|
689
|
-
remove:
|
|
690
|
+
remove: f
|
|
690
691
|
}
|
|
691
692
|
}
|
|
692
693
|
],
|
|
@@ -696,7 +697,7 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
696
697
|
]
|
|
697
698
|
]
|
|
698
699
|
}, p.children)));
|
|
699
|
-
}), Oo = "
|
|
700
|
+
}), Oo = "_button_1oew4_4", jo = "_success_1oew4_19", Io = "_warning_1oew4_20", Uo = "_info_1oew4_21", Wo = "_important_1oew4_22", _o = "_tag_1oew4_34", Ho = "_dismissable_1oew4_76", Go = "_tagText_1oew4_84", qo = "_tagList_1oew4_93", y = {
|
|
700
701
|
button: Oo,
|
|
701
702
|
success: jo,
|
|
702
703
|
warning: Io,
|
|
@@ -706,7 +707,7 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
706
707
|
dismissable: Ho,
|
|
707
708
|
tagText: Go,
|
|
708
709
|
tagList: qo
|
|
709
|
-
}, hr = ({ children: r, ...e }) => /* @__PURE__ */ S(So, { ...e, children: /* @__PURE__ */ S(To, { className: y.tagList, children: r }) }),
|
|
710
|
+
}, hr = ({ children: r, ...e }) => /* @__PURE__ */ S(So, { ...e, children: /* @__PURE__ */ S(To, { className: y.tagList, children: r }) }), Er = ({
|
|
710
711
|
children: r,
|
|
711
712
|
dismissable: e,
|
|
712
713
|
className: o,
|
|
@@ -728,7 +729,7 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
728
729
|
children: [
|
|
729
730
|
/* @__PURE__ */ S("div", { className: y.tagText, children: r }),
|
|
730
731
|
e && /* @__PURE__ */ S(
|
|
731
|
-
|
|
732
|
+
ho,
|
|
732
733
|
{
|
|
733
734
|
variant: "icon",
|
|
734
735
|
size: "medium",
|
|
@@ -742,6 +743,6 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
742
743
|
);
|
|
743
744
|
export {
|
|
744
745
|
To as $,
|
|
745
|
-
|
|
746
|
+
Er as T,
|
|
746
747
|
hr as a
|
|
747
748
|
};
|