@midas-ds/components 10.4.1 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AccordionItem-oeN1Cc09.js → AccordionItem-BPOQqTkQ.js} +17 -16
- package/AccordionItem-CS-QKqrU.cjs +1 -0
- package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
- package/BadgeContainer-DWVHS5dn.cjs +1 -0
- package/{Breadcrumbs-D8ad6xvL.js → Breadcrumbs-BBzSV4SK.js} +4 -4
- package/{Breadcrumbs-DkJIkGG5.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
- package/{Button-DtSrCAf6.js → Button-BjMaGya2.js} +1 -1
- package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
- package/CHANGELOG.md +34 -0
- package/{Card-BzJ_OEe6.js → Card-BRs1FKX5.js} +3 -3
- package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
- package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
- package/CheckboxGroup-CT_eqERw.cjs +1 -0
- package/{CheckboxGroup-CcTfzurp.js → CheckboxGroup-oosHSGAt.js} +7 -8
- package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
- package/{ColorSchemeSwitch-y8qKczjQ.js → ColorSchemeSwitch-Cnyb9EKC.js} +1 -1
- package/ComboBox-CQ49PhNd.cjs +1 -0
- package/{ComboBox-CZyP8Dfh.js → ComboBox-D4MsSPBu.js} +64 -65
- package/{DateField-1w5J_iyF.cjs → DateField-BURrxhil.cjs} +1 -1
- package/{DateField-BTROlenJ.js → DateField-COs1-CkQ.js} +4 -4
- package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
- package/DateInputDivider-ToFY-yjB.cjs +1 -0
- package/DateRangePicker-Bfibl08v.cjs +6 -0
- package/{DateRangePicker-DmZP9laM.js → DateRangePicker-CvEycxmX.js} +43 -44
- package/{Dialog-DnMwnqiC.cjs → Dialog-B3R3WtL5.cjs} +1 -1
- package/{Dialog-0ZBhhPyd.js → Dialog-BkUw6PlA.js} +6 -6
- 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-By91MEV2.cjs → Dropdown-CYakzdJg.cjs} +1 -1
- package/{Dropdown-BEAMfAxj.js → Dropdown-D6WCi_Ll.js} +2 -2
- package/FieldError-Bv3Q6ZP-.cjs +1 -0
- package/FieldError-CDCvUjK5.js +46 -0
- package/{FileUpload-DvQdIZ6k.js → FileUpload-BokzdXVc.js} +448 -562
- package/{FileUpload-vf0oJd0K.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-yj90XVEP.js → InfoBanner-D05poAe3.js} +1 -1
- package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
- package/{Label-E3LhQfNv.cjs → Label-ChjDdBlv.cjs} +1 -1
- package/{Label-D2GmP8_2.js → Label-DA6FZwy0.js} +4 -4
- package/{Layout-Ri7XQHFp.cjs → Layout-BwLxIwtY.cjs} +1 -1
- package/{Layout-BMNgqjXv.js → Layout-CcADAhds.js} +6 -6
- package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
- package/{Link-CVvnCOGP.cjs → Link-ESjrl63P.cjs} +1 -1
- package/{Link-BCVI5W_i.js → Link-ovwNVMfg.js} +12 -11
- package/{LinkButton-Cui-gvAk.js → LinkButton-BkZULm2a.js} +1 -1
- 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-CnAsw3wI.cjs → Popover-BDvKByTT.cjs} +1 -1
- package/{Popover-C8VY1YKi.js → Popover-DHoXfBp2.js} +3 -3
- package/PressResponder-4jE_HLu3.cjs +1 -0
- package/PressResponder-C3APAKsz.js +34 -0
- package/{ProgressBar-Bpq-hyZa.js → ProgressBar-C0IBfi5I.js} +2 -2
- package/{ProgressBar-D4lOEhAh.cjs → ProgressBar-ClysdvqU.cjs} +1 -1
- package/{Radio-BPcq9kW5.js → Radio-B6N9dCtB.js} +19 -20
- package/Radio-Cz0vLIBw.cjs +1 -0
- package/{RangeCalendar-6miAJVoO.js → RangeCalendar-BCruEq9d.js} +16 -15
- package/RangeCalendar-BY82hPRu.cjs +11 -0
- package/{SearchField-DEoGi9xv.cjs → SearchField-QFyuaT-K.cjs} +1 -1
- package/{SearchField-CDyD5iWr.js → SearchField-nwlyszwt.js} +3 -3
- package/{Select-B2wYDnAU.js → Select-DMVj2lrG.js} +104 -105
- package/Select-DiCEyap1.cjs +1 -0
- 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/{TabList-CheXtBJm.cjs → TabList-BkSWzbDG.cjs} +1 -1
- package/{TabList-D0qzIjSx.js → TabList-QApx8qRC.js} +8 -8
- package/{Table-zKvjzd9t.js → Table-B5Aine4F.js} +35 -34
- package/Table-DGYC-sDq.cjs +16 -0
- package/{Tag-BoqT5nbh.js → Tag-Byva_Xuy.js} +123 -122
- 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-B5und61h.cjs → TextArea-DJKHFKuI.cjs} +1 -1
- package/{TextArea-Pxr-eLXe.js → TextArea-eK7Jx3qs.js} +8 -8
- package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
- package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
- package/{Toast-DfKiA5hp.js → Toast-CWt_mNIg.js} +1 -1
- package/{ToggleButtonGroup-DhlfvYGg.js → ToggleButtonGroup-HjvaTYD4.js} +3 -3
- package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
- package/accordion/Accordion.d.ts +1 -2
- package/accordion/index.cjs +1 -1
- package/accordion/index.d.ts +2 -1
- package/accordion/index.js +3 -2
- 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/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -0
- package/breadcrumbs/index.js +1 -1
- package/button/Button.d.ts +1 -2
- package/button/index.d.ts +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.d.ts +1 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.d.ts +1 -0
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -2
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.d.ts +1 -0
- 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/grid/index.d.ts +1 -1
- package/heading/index.d.ts +1 -0
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +118 -116
- package/info-banner/index.d.ts +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.d.ts +1 -0
- package/layout/index.js +1 -1
- package/link/Link.d.ts +2 -2
- package/link/index.cjs +1 -1
- package/link/index.d.ts +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +2 -2
- package/link-button/index.d.ts +1 -0
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/Dialog.d.ts +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/Popover.d.ts +1 -2
- package/popover/index.cjs +1 -1
- package/popover/index.d.ts +1 -0
- package/popover/index.js +1 -1
- package/progress-bar/ProgressBar.d.ts +1 -2
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +1 -2
- package/radio/index.cjs +1 -1
- package/radio/index.d.ts +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.d.ts +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.d.ts +1 -1
- package/spinner/index.d.ts +1 -1
- package/table/index.cjs +1 -1
- package/table/index.d.ts +1 -0
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +1 -0
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.d.ts +1 -1
- package/tag/index.js +1 -1
- package/text/index.d.ts +1 -0
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.d.ts +3 -0
- 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/Toast.d.ts +2 -3
- package/toast/index.d.ts +1 -0
- package/toast/index.js +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/Tooltip.d.ts +1 -2
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.js +1 -1
- 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/AccordionItem-D2QYNgZS.cjs +0 -1
- package/BadgeContainer-I1XA3OCl.cjs +0 -1
- package/CheckboxGroup-DWxQTABg.cjs +0 -1
- package/ComboBox-Dg2xhkLC.cjs +0 -1
- package/DateInputDivider-3BvwXXa9.cjs +0 -1
- package/DateRangePicker-CX3830ZF.cjs +0 -6
- package/Dialog-CSnN6baf.cjs +0 -1
- 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/Radio-CwNbUGah.cjs +0 -1
- package/RangeCalendar-CAI1PRDo.cjs +0 -11
- package/Select-nRN944QZ.cjs +0 -1
- package/SelectionManager-D0jYUYcy.cjs +0 -1
- package/Table-DAhnYYIA.cjs +0 -16
- package/Tag-t-aJVo3W.cjs +0 -1
- package/file-upload/intl/translations.json.d.ts +0 -17
- package/scrollIntoView-BLnsPvFA.js +0 -87
- package/scrollIntoView-joIyo-Jt.cjs +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
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 ko } from "./useListState-
|
|
27
|
-
import { B as ho } from "./Button-
|
|
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
30
|
import { X as wo } from "./x-C2xUHAEl.js";
|
|
30
31
|
import './assets/Tag.css';const O = /* @__PURE__ */ new WeakMap();
|
|
@@ -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,14 +59,14 @@ 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
|
|
@@ -79,10 +80,10 @@ 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 && (k["aria-rowcount"] = e.collection.size, k["aria-colcount"] = 1),
|
|
86
|
+
return a && (k["aria-rowcount"] = e.collection.size, k["aria-colcount"] = 1), mo({}, e), {
|
|
86
87
|
gridProps: k
|
|
87
88
|
};
|
|
88
89
|
}
|
|
@@ -98,7 +99,7 @@ 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
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);
|
|
104
105
|
}, E = {}, x = r.hasChildItems, k = e.selectionManager.isLink(t.key);
|
|
@@ -107,21 +108,21 @@ function Ao(r, e, o) {
|
|
|
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(), h(
|
|
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
|
-
h(o.current),
|
|
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 && (h(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(), h(
|
|
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
|
-
h(o.current),
|
|
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 && (h(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
|
};
|
|
@@ -469,14 +470,14 @@ 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,
|
|
@@ -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
|
}),
|
|
@@ -556,12 +557,12 @@ function zo({ props: r, forwardedRef: e, collection: o }) {
|
|
|
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
|
],
|
|
@@ -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
|
-
},
|
|
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,
|
|
@@ -742,6 +743,6 @@ const Vo = /* @__PURE__ */ Qe("item", (r, e, o) => {
|
|
|
742
743
|
);
|
|
743
744
|
export {
|
|
744
745
|
To as $,
|
|
745
|
-
|
|
746
|
-
|
|
746
|
+
Er as T,
|
|
747
|
+
hr as a
|
|
747
748
|
};
|
package/Tag-bYq-wf5D.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Tag.css');const F=require("react/jsx-runtime"),J=require("./Button-DExMoP5f.cjs"),w=require("./Collection-BtBX5IMY.cjs"),h=require("./utils-DHNZrQmj.cjs"),q=require("./ListBox-B0E1hdEt.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-ZKBk2IId.cjs"),_e=require("./useField-D1UkzeaI.cjs"),Ge=require("./useFocusWithin-CG8mAt2D.cjs"),U=require("./useHighlightSelectionDescription-DmbDkFGY.cjs"),Xe=require("./useHasTabbableChild-CoQRpNbC.cjs"),Je=require("./Separator-DPLEx950.cjs"),Y=require("./context-Df3XbgBG.cjs"),Z=require("./usePress-BooY_CAy.cjs"),Qe=require("./useDescription-CPo72trh.cjs"),k=require("./useFocusable-D7I1ujkW.cjs"),A=require("./getScrollParent-DuKmPmUa.cjs"),S=require("./scrollIntoView-DRSoJp89.cjs"),H=require("./FocusScope-vcXLOQiu.cjs"),W=require("./SelectionManager-BJjqIWtf.cjs"),Ye=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),Ze=require("./useListState-wLau6fXo.cjs"),er=require("./Button-Dq6ugqxT.cjs"),rr=require("./clsx-C11secjj.cjs"),tr=require("./x-rV-nu490.cjs"),j=new WeakMap;function _(t,e){var r;let{id:a}=(r=j.get(t))!==null&&r!==void 0?r:{};if(!a)throw new Error("Unknown list");return`${a}-${or(e)}`}function or(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ar(t,e,r){let{isVirtualized:a,keyboardDelegate:c,layoutDelegate:o,onAction:n,disallowTypeAhead:s,linkBehavior:d="action",keyboardNavigationBehavior:p="arrow",escapeKeyBehavior:l="clearSelection",shouldSelectOnPressUp:v}=t;!t["aria-label"]&&!t["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:r,keyboardDelegate:c,layoutDelegate:o,isVirtualized:a,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:d,disallowTypeAhead:s,autoFocus:t.autoFocus,escapeKeyBehavior:l}),b=g.$bdb11010cef70236$export$f680877a34711e37(t.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}),C=Xe.$83013635b024ae3d$export$eac1895992b9f3d6(r,{isDisabled:e.collection.size!==0}),D=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{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:C?-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 ir(t,e,r){var a,c;let{node:o,isVirtualized:n}=t,{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;r.current!==null&&(b.current!=null&&o.key!==b.current||!(!((i=r.current)===null||i===void 0)&&i.contains(document.activeElement)))&&k.$3ad3f6e1647bc98d$export$80f3e147d781571c(r.current)},C={},D=t.hasChildItems,E=e.selectionManager.isLink(o.key);if(o!=null&&"expandedKeys"in e){var M,K,N;let i=(M=(K=e.collection).getChildren)===null||M===void 0?void 0:M.call(K,o.key);D=D||[...i??[]].length>1,d==null&&!E&&e.selectionManager.selectionMode==="none"&&D&&(d=()=>e.toggleKey(o.key));let $=D?e.expandedKeys.has(o.key):void 0,P=1;var R;if(o.level>0&&(o==null?void 0:o.parentKey)!=null){let m=e.collection.getItem(o.parentKey);if(m){var T,L;let y=(T=(L=e.collection).getChildren)===null||T===void 0?void 0:T.call(L,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;C={"aria-expanded":$,"aria-level":o.level+1,"aria-posinset":(o==null?void 0:o.index)+1,"aria-setsize":P}}let{itemProps:ze,...O}=W.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:o.key,ref:r,isVirtualized:n,shouldSelectOnPressUp:t.shouldSelectOnPressUp||v,onAction:d||!((a=o.props)===null||a===void 0)&&a.onAction?g.$ff5963eb1fccf552$export$e08e3b67e392101e((c=o.props)===null||c===void 0?void 0:c.onAction,d?()=>d(o.key):void 0):void 0,focus:x,linkBehavior:p}),qe=i=>{if(!i.currentTarget.contains(i.target)||!r.current||!document.activeElement)return;let $=H.$9bf71ea28793e738$export$2d6ec8fc375ceafa(r.current);if($.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===r.current){if(i.key===G.expand[s]&&e.selectionManager.focusedKey===o.key&&D&&!e.expandedKeys.has(o.key)){e.toggleKey(o.key),i.stopPropagation();return}else if(i.key===G.collapse[s]&&e.selectionManager.focusedKey===o.key&&D&&e.expandedKeys.has(o.key)){e.toggleKey(o.key),i.stopPropagation();return}}switch(i.key){case"ArrowLeft":if(l==="arrow"){let m=s==="rtl"?$.nextNode():$.previousNode();if(m)i.preventDefault(),i.stopPropagation(),k.$3ad3f6e1647bc98d$export$80f3e147d781571c(m),S.$2f04cbc44ee30ce0$export$c826860796309d1b(m,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)});else if(i.preventDefault(),i.stopPropagation(),s==="rtl")k.$3ad3f6e1647bc98d$export$80f3e147d781571c(r.current),S.$2f04cbc44ee30ce0$export$c826860796309d1b(r.current,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)});else{$.currentNode=r.current;let y=X($);y&&(k.$3ad3f6e1647bc98d$export$80f3e147d781571c(y),S.$2f04cbc44ee30ce0$export$c826860796309d1b(y,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)}))}}break;case"ArrowRight":if(l==="arrow"){let m=s==="rtl"?$.previousNode():$.nextNode();if(m)i.preventDefault(),i.stopPropagation(),k.$3ad3f6e1647bc98d$export$80f3e147d781571c(m),S.$2f04cbc44ee30ce0$export$c826860796309d1b(m,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)});else if(i.preventDefault(),i.stopPropagation(),s==="ltr")k.$3ad3f6e1647bc98d$export$80f3e147d781571c(r.current),S.$2f04cbc44ee30ce0$export$c826860796309d1b(r.current,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)});else{$.currentNode=r.current;let y=X($);y&&(k.$3ad3f6e1647bc98d$export$80f3e147d781571c(y),S.$2f04cbc44ee30ce0$export$c826860796309d1b(y,{containingElement:A.$62d8ded9296f3872$export$cfa2225e87938781(r.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!i.altKey&&r.current.contains(i.target)){var P;i.stopPropagation(),i.preventDefault(),(P=r.current.parentElement)===null||P===void 0||P.dispatchEvent(new KeyboardEvent(i.nativeEvent.type,i.nativeEvent))}break}},Ve=i=>{if(b.current=o.key,i.target!==r.current){V.$507fabe10e71c6fb$export$b9b3dfddab17db27()||e.selectionManager.setFocusedKey(o.key);return}},je=i=>{if(!(!i.currentTarget.contains(i.target)||!r.current||!document.activeElement))switch(i.key){case"Tab":if(l==="tab"){let $=H.$9bf71ea28793e738$export$2d6ec8fc375ceafa(r.current,{tabbable:!0});$.currentNode=document.activeElement,(i.shiftKey?$.previousNode():$.nextNode())&&i.stopPropagation()}}},Oe=Z.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(o.props),Ie=O.hasAction?Oe:{},I=g.$3ef42575df84b30b$export$9d1611c77c2fe928(ze,Ie,{role:"row",onKeyDownCapture:qe,onKeyDown:je,onFocus:Ve,"aria-label":o.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(o.key)?e.selectionManager.isSelected(o.key):void 0,"aria-disabled":e.selectionManager.isDisabled(o.key)||void 0,"aria-labelledby":f&&o.textValue?`${_(e,o.key)} ${f}`:void 0,id:_(e,o.key)});n&&(I["aria-rowindex"]=o.index+1);let Ue={role:"gridcell","aria-colindex":1};return{rowProps:{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(I,C)},gridCellProps:Ue,descriptionProps:{id:f},...O}}function X(t){let e=null,r=null;do r=t.lastChild(),r&&(e=r);while(r);return e}const ee=new WeakMap;function nr(t,e,r){let{direction:a}=Y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=t.keyboardDelegate||new We.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:e.collection,ref:r,orientation:"horizontal",direction:a,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:o,fieldProps:n,descriptionProps:s,errorMessageProps:d}=_e.$2baaea4c71418dea$export$294aa081a6c6f55d({...t,labelElementType:"span"}),{gridProps:p}=ar({...t,...n,keyboardDelegate:c,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,r),[l,v]=u.useState(!1),{focusWithinProps:f}=Ge.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:v}),b=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),x=u.useRef(e.collection.size);return u.useEffect(()=>{r.current&&x.current>0&&e.collection.size===0&&l&&r.current.focus(),x.current=e.collection.size},[e.collection.size,l,r]),ee.set(e,{onRemove:t.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:o,descriptionProps:s,errorMessageProps:d}}var re={};re={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var te={};te={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var oe={};oe={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 ke={};ke={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var he={};he={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":re,"bg-BG":te,"cs-CZ":oe,"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":ke,"ro-RO":he,"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 ur(t){return t&&t.__esModule?t.default:t}function lr(t,e,r){let{item:a}=t,c=Ye.$fca6afa0e843324b$export$f12b703ca79dfbb1(ur(Ne),"@react-aria/tag"),o=g.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:n}=ee.get(e)||{},{rowProps:s,gridCellProps:d,...p}=ir({node:a},e,r),{descriptionProps:l,...v}=p,f=e.disabledKeys.has(a.key)||a.props.isDisabled,b=L=>{if(L.key==="Delete"||L.key==="Backspace"){if(f)return;L.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 C=n&&(x==="keyboard"||x==="virtual")?c.format("removeDescription"):"",D=Qe.$ef06256079686ba0$export$f8aeda7b10753fa1(C),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}=k.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:f},r);return{removeButtonProps:{"aria-label":c.format("removeButtonLabel"),"aria-labelledby":`${o} ${s.id}`,isDisabled:f,id:o,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":t["aria-errormessage"],"aria-label":t["aria-label"]}),...v,allowsRemoving:!!n}}const cr=u.createContext(null),Re=u.createContext(null),sr=u.forwardRef(function(e,r){return[e,r]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,cr),u.createElement(w.$e1995378a142960e$export$bf788dd355e3a401,{content:e.children},a=>u.createElement(dr,{props:e,forwardedRef:r,collection:a}))});function dr({props:t,forwardedRef:e,collection:r}){let a=u.useRef(null),[c,o]=h.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!t["aria-label"]&&!t["aria-labelledby"]),n=Ze.$e72dd72e1c76a225$export$2f645645f7bca764({...t,children:void 0,collection:r}),s=z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),d=Object.fromEntries(Object.entries(s).map(([x])=>[x,void 0])),{gridProps:p,labelProps:l,descriptionProps:v,errorMessageProps:f}=nr({...t,...d,label:o},n,a);var b;return u.createElement("div",{...s,ref:e,slot:t.slot||void 0,className:(b=t.className)!==null&&b!==void 0?b:"react-aria-TagGroup",style:t.style},u.createElement(h.$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}}]]},t.children))}const Te=u.forwardRef(function(e,r){return u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?u.createElement(fr,{props:e,forwardedRef:r}):u.createElement(w.$e1995378a142960e$export$fb8073518f34e6ec,e)});function fr({props:t,forwardedRef:e}){let r=u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:a}=u.useContext(w.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,o]=h.$64fa3d84918910a7$export$29f1550f4b0d4415(t,e,Re);delete c.items,delete c.renderEmptyState;let{focusProps:n,isFocused:s,isFocusVisible:d}=Q.$f7dceffc5ad7768b$export$4e328f61c538687f(),p={isEmpty:r.collection.size===0,isFocused:s,isFocusVisible:d,state:r},l=h.$64fa3d84918910a7$export$4d86445c2cf5e3({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:p}),v=w.$7135fc7d473fd974$export$90e00781bc59d8f9(r.selectionManager.focusedKey);return u.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(c,n),...l,ref:o,"data-empty":r.collection.size===0||void 0,"data-focused":s||void 0,"data-focus-visible":d||void 0},r.collection.size===0&&t.renderEmptyState?t.renderEmptyState(p):u.createElement(a,{collection:r.collection,persistedKeys:v}))}const br=w.$e1995378a142960e$export$18af5c7a9e9b3664("item",(t,e,r)=>{let a=u.useContext(q.$eed445e0843c11d0$export$7c5906fe4f1f2af2),c=h.$df56164dff5785e2$export$4338b53315abf666(e),{focusProps:o,isFocusVisible:n}=Q.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:s,gridCellProps:d,removeButtonProps:p,...l}=lr({item:r},a,c),{hoverProps:v,isHovered:f}=V.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!l.allowsSelection,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),b=h.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tag",values:{...l,isFocusVisible:n,isHovered:f,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior}});return u.useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[r.textValue]),u.createElement("div",{ref:c,...b,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(z.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),s,o,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(h.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[J.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:p}}],[w.$7135fc7d473fd974$export$4feb769f8ddf26c5,w.$7135fc7d473fd974$export$a164736487e3f0ae]]},b.children)))}),$r="_button_1oew4_4",pr="_success_1oew4_19",vr="_warning_1oew4_20",xr="_info_1oew4_21",mr="_important_1oew4_22",gr="_tag_1oew4_34",Dr="_dismissable_1oew4_76",yr="_tagText_1oew4_84",Br="_tagList_1oew4_93",B={button:$r,success:pr,warning:vr,info:xr,important:mr,tag:gr,dismissable:Dr,tagText:yr,tagList:Br},Pr=({children:t,...e})=>F.jsx(sr,{...e,children:F.jsx(Te,{className:B.tagList,children:t})}),kr=({children:t,dismissable:e,className:r,type:a="default",...c})=>F.jsxs(br,{className:rr.clsx(B.tag,e&&B.dismissable,a==="success"&&B.success,a==="info"&&B.info,a==="important"&&B.important,a==="warning"&&B.warning,r),...c,children:[F.jsx("div",{className:B.tagText,children:t}),e&&F.jsx(er.Button,{variant:"icon",size:"medium",className:B.button,slot:"remove",children:F.jsx(tr.X,{size:20})})]});exports.$eaf9e70818b436db$export$f9fef0f55402315b=Te;exports.Tag=kr;exports.TagGroup=Pr;
|
|
@@ -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 { a as y } from "./Text-DcZqSUN9.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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as c } from "./utils-
|
|
1
|
+
import { $ as c } from "./utils-KLjWgdLR.js";
|
|
2
2
|
import o, { forwardRef as f, createContext as $ } from "react";
|
|
3
3
|
const n = /* @__PURE__ */ $({}), s = /* @__PURE__ */ f(function(e, t) {
|
|
4
4
|
[e, t] = c(e, t, n);
|
|
@@ -10,6 +10,6 @@ const n = /* @__PURE__ */ $({}), s = /* @__PURE__ */ f(function(e, t) {
|
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
n as $,
|
|
14
|
+
s as a
|
|
15
15
|
};
|
|
@@ -1 +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-Dq6ugqxT.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),d=require("./TextField-
|
|
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-Dq6ugqxT.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),d=require("./TextField-BAX93sq7.cjs"),m=require("./FieldError-Bv3Q6ZP-.cjs"),g=require("./CharacterCounter-DSFBv3Rw.cjs"),h=require("./Label-ChjDdBlv.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;
|