@iress-oss/ids-components 5.15.0 → 5.15.2
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/README.md +1 -1
- package/dist/{AutocompleteNoResults-CvhIxKQI.js → AutocompleteNoResults-DmkoqKJm.js} +1 -1
- package/dist/{ComboboxHiddenInput-B7ztqo0l.js → ComboboxHiddenInput-CLb6Xp8s.js} +5 -5
- package/dist/{FieldAppendToLabel-DgXoSKDG.js → FieldAppendToLabel-Dw0Mn-US.js} +3 -3
- package/dist/{InputBase-nWIFJcGj.js → InputBase-55eUCLgT.js} +1 -1
- package/dist/Loading.module-DUh3NIWC.js +13 -0
- package/dist/{LoadingSuspense-BdXYIsHy.js → LoadingSuspense-BMFBqvXJ.js} +1357 -1367
- package/dist/LogoFromSrc-7tFjDtcF.js +59 -0
- package/dist/MenuItem.module-bTAQrrT3.js +24 -0
- package/dist/Popover.module-Ct33fXgT.js +11 -0
- package/dist/PopoverProvider-BAhkQIhz.js +137 -0
- package/dist/{SelectControl-CYKkf3rM.js → SelectControl-BbirMx9B.js} +1 -1
- package/dist/{SliderTicks-Dqz-k-xS.js → SliderTicks-Jb0VVHsB.js} +1 -1
- package/dist/TabSet.module-z2bbww8p.js +13 -0
- package/dist/Table.module-DNbVlA6R.js +32 -0
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +4 -4
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +2 -2
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Expander/Expander.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
- package/dist/components/Field/components/FieldAppendToLabel.js +3 -3
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +2 -2
- package/dist/components/Filter/components/FilterSearch.js +2 -2
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +2 -2
- package/dist/components/Form/FormField/FormFieldset.js +2 -2
- package/dist/components/Form/HookForm/HookForm.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/composeHideClasses.js +2 -2
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +2 -2
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/InputCurrency/index.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +2 -2
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +3 -3
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +2 -2
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
- package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +2 -2
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +23 -23
- package/dist/components/Popover/Popover.js +12 -12
- package/dist/components/Popover/PopoverProvider.js +12 -113
- package/dist/components/Popover/components/NestedPopoverActivator.js +3 -3
- package/dist/components/Popover/components/PopoverActivator.js +40 -41
- package/dist/components/Popover/components/PopoverContent.js +15 -15
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/Readonly/Readonly.js +3 -3
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectBody/SelectBody.js +2 -2
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +2 -2
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +2 -2
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +2 -2
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +2 -2
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +2 -2
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +2 -2
- package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
- package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +4 -3
- package/dist/components/Slideout/components/SlideoutInner.js +3 -2
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/components/SliderTicks.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/components/TabSetItem.js +2 -2
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableBody/TableBody.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +2 -2
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +1 -1
- package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- package/dist/components/Toaster/ToasterProvider.js +1 -1
- package/dist/components/Toaster/hooks/useToaster.js +1 -1
- package/dist/components/Toaster/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +18 -18
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-SmaXvp4L.js → floating-ui.react-nmA48tb2.js} +201 -207
- package/dist/helpers/dom/domUtils.js +12 -0
- package/dist/helpers/formatting/formatDateTime.js +21 -16
- package/dist/main.js +2 -2
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
- package/dist/patterns/Loading/components/LongLoading.js +2 -2
- package/dist/patterns/Loading/components/PageLoading.js +2 -2
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/src/helpers/dom/domUtils.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-CniAJ9N5.js → useIDSButtonGroupItem-BdwMUgHj.js} +1 -1
- package/dist/vite.config.d.ts +1 -1
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +1 -26
- package/dist/Loading.module-Bs6DSfb4.js +0 -13
- package/dist/LogoFromSrc-CtJE0Fsr.js +0 -59
- package/dist/MenuItem.module-Bj20OWCC.js +0 -24
- package/dist/Popover.module-DJ-RK5B3.js +0 -11
- package/dist/TabSet.module-Cu1itlcf.js +0 -13
- package/dist/Table.module-Bb7fJIr8.js +0 -32
- /package/dist/{setupTests.d.ts → vitest.setup.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as V, useRef as _, useMemo as h } from "react";
|
|
3
|
-
import { o as q,
|
|
4
|
-
import { POPOVER_USE_MAX_HEIGHT as
|
|
3
|
+
import { o as q, h as y, s as U, i as $, j as k, k as z, l as G, m as K } from "../../../floating-ui.react-nmA48tb2.js";
|
|
4
|
+
import { POPOVER_USE_MAX_HEIGHT as X } from "../Popover.types.js";
|
|
5
5
|
import { usePopoverState as B } from "../hooks/usePopoverState.js";
|
|
6
6
|
import { usePopoverNavigation as J } from "../hooks/usePopoverNavigation.js";
|
|
7
7
|
import { usePopoverAria as L } from "../hooks/usePopoverAria.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as Q } from "../../../PopoverProvider-BAhkQIhz.js";
|
|
9
9
|
import { usePopoverImperativeHandle as W } from "../hooks/usePopoverImperativeHandle.js";
|
|
10
10
|
import { focusableElements as Y } from "../../../helpers/dom/focusableElements.js";
|
|
11
11
|
const Z = V(
|
|
@@ -14,12 +14,12 @@ const Z = V(
|
|
|
14
14
|
autoHighlight: v,
|
|
15
15
|
children: w,
|
|
16
16
|
defaultShow: I,
|
|
17
|
-
disabledAutoToggle:
|
|
18
|
-
focusStartIndex:
|
|
17
|
+
disabledAutoToggle: a,
|
|
18
|
+
focusStartIndex: O,
|
|
19
19
|
matchActivatorWidth: l = !0,
|
|
20
|
-
onActivated:
|
|
20
|
+
onActivated: u,
|
|
21
21
|
onDeactivated: m,
|
|
22
|
-
onNavigate:
|
|
22
|
+
onNavigate: g,
|
|
23
23
|
show: F,
|
|
24
24
|
type: n
|
|
25
25
|
}, E) => {
|
|
@@ -34,7 +34,7 @@ const Z = V(
|
|
|
34
34
|
requestAnimationFrame(() => {
|
|
35
35
|
Object.assign(H.floating.style, {
|
|
36
36
|
width: `${t.reference.width}px`,
|
|
37
|
-
maxHeight: s >
|
|
37
|
+
maxHeight: s > X ? `${s}px` : void 0
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
},
|
|
@@ -44,40 +44,40 @@ const Z = V(
|
|
|
44
44
|
}, [l]), o = $({
|
|
45
45
|
open: r.show,
|
|
46
46
|
onOpenChange: (e, t, s) => {
|
|
47
|
-
r.setShow(e), e ?
|
|
47
|
+
r.setShow(e), e ? u == null || u(t, s, i) : m == null || m(t, s, i);
|
|
48
48
|
},
|
|
49
49
|
middleware: S,
|
|
50
50
|
placement: R ? void 0 : c,
|
|
51
|
-
whileElementsMounted:
|
|
52
|
-
}), M =
|
|
53
|
-
enabled: !
|
|
51
|
+
whileElementsMounted: k
|
|
52
|
+
}), M = z(o.context, {
|
|
53
|
+
enabled: !a,
|
|
54
54
|
escapeKey: !1
|
|
55
|
-
}), b =
|
|
55
|
+
}), b = G(o.context, {
|
|
56
56
|
role: n
|
|
57
|
-
}), { activeIndex: i, list: x, listNav: j, setActiveIndex:
|
|
57
|
+
}), { activeIndex: i, list: x, listNav: j, setActiveIndex: P } = J(
|
|
58
58
|
o.context,
|
|
59
59
|
n,
|
|
60
60
|
{
|
|
61
61
|
focusItemOnOpen: v,
|
|
62
62
|
virtual: !0
|
|
63
63
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
),
|
|
64
|
+
g,
|
|
65
|
+
O
|
|
66
|
+
), d = K([M, b, j]), p = L(), C = h(
|
|
67
67
|
() => ({
|
|
68
68
|
...p,
|
|
69
69
|
...r,
|
|
70
70
|
activeIndex: i,
|
|
71
71
|
api: o,
|
|
72
|
-
disabledAutoToggle:
|
|
72
|
+
disabledAutoToggle: a,
|
|
73
73
|
getFocusableActivator: () => {
|
|
74
74
|
const e = o.elements.reference;
|
|
75
75
|
return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? Y(e)[0];
|
|
76
76
|
},
|
|
77
77
|
getVirtualFocus: () => f.current,
|
|
78
|
-
interactions:
|
|
78
|
+
interactions: d,
|
|
79
79
|
list: x,
|
|
80
|
-
setActiveIndex:
|
|
80
|
+
setActiveIndex: P,
|
|
81
81
|
setShowWithReason: (e, t, s) => o.context.onOpenChange(e, t, s),
|
|
82
82
|
setVirtualFocus: (e) => f.current = e,
|
|
83
83
|
type: n
|
|
@@ -86,10 +86,10 @@ const Z = V(
|
|
|
86
86
|
i,
|
|
87
87
|
o,
|
|
88
88
|
p,
|
|
89
|
-
|
|
90
|
-
P,
|
|
91
|
-
x,
|
|
89
|
+
a,
|
|
92
90
|
d,
|
|
91
|
+
x,
|
|
92
|
+
P,
|
|
93
93
|
r,
|
|
94
94
|
n
|
|
95
95
|
]
|
|
@@ -4,9 +4,9 @@ import { c as j } from "../../index-2QXL0WYc.js";
|
|
|
4
4
|
import { PopoverType as R } from "./Popover.types.js";
|
|
5
5
|
import { FloatingUIAlign as S, GlobalCSSClass as b } from "../../enums.js";
|
|
6
6
|
import { idsLogger as k } from "../../helpers/utility/idsLogger.js";
|
|
7
|
-
import { propagateTestid as
|
|
8
|
-
import { s as E } from "../../Popover.module-
|
|
9
|
-
import {
|
|
7
|
+
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
8
|
+
import { s as E } from "../../Popover.module-Ct33fXgT.js";
|
|
9
|
+
import { P as F } from "../../PopoverProvider-BAhkQIhz.js";
|
|
10
10
|
import { PopoverActivator as G } from "./components/PopoverActivator.js";
|
|
11
11
|
import { PopoverContent as L } from "./components/PopoverContent.js";
|
|
12
12
|
import { composePopoverWidth as U } from "./helpers/composePopoverWidth.js";
|
|
@@ -33,7 +33,7 @@ const B = ({
|
|
|
33
33
|
virtualFocus: i,
|
|
34
34
|
...o
|
|
35
35
|
}, T) => {
|
|
36
|
-
const w = W(null),
|
|
36
|
+
const w = W(null), s = g && e === "overlay";
|
|
37
37
|
return r !== void 0 && k(
|
|
38
38
|
"IressPopover: The width prop is deprecated. Please use the --iress-width and --iress-max-width design token instead."
|
|
39
39
|
), /* @__PURE__ */ t(
|
|
@@ -43,7 +43,7 @@ const B = ({
|
|
|
43
43
|
defaultShow: f,
|
|
44
44
|
disabledAutoToggle: h,
|
|
45
45
|
focusStartIndex: P,
|
|
46
|
-
matchActivatorWidth:
|
|
46
|
+
matchActivatorWidth: s,
|
|
47
47
|
onActivated: y,
|
|
48
48
|
onDeactivated: A,
|
|
49
49
|
onNavigate: u,
|
|
@@ -65,7 +65,7 @@ const B = ({
|
|
|
65
65
|
/* @__PURE__ */ t(z, { parentPopover: q(), children: /* @__PURE__ */ t(
|
|
66
66
|
G,
|
|
67
67
|
{
|
|
68
|
-
"data-testid":
|
|
68
|
+
"data-testid": a(o["data-testid"], "activator"),
|
|
69
69
|
children: p
|
|
70
70
|
}
|
|
71
71
|
) }),
|
|
@@ -74,10 +74,10 @@ const B = ({
|
|
|
74
74
|
{
|
|
75
75
|
className: v,
|
|
76
76
|
container: l,
|
|
77
|
-
"data-testid":
|
|
77
|
+
"data-testid": a(o["data-testid"], "content"),
|
|
78
78
|
displayMode: e,
|
|
79
79
|
style: {
|
|
80
|
-
...U(r,
|
|
80
|
+
...U(r, s),
|
|
81
81
|
...o.style
|
|
82
82
|
},
|
|
83
83
|
virtualFocus: i,
|
|
@@ -89,9 +89,9 @@ const B = ({
|
|
|
89
89
|
)
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
}, m = I(B);
|
|
93
|
+
m.Align = S;
|
|
94
|
+
m.Type = R;
|
|
95
95
|
export {
|
|
96
|
-
|
|
96
|
+
m as IressPopover
|
|
97
97
|
};
|
|
@@ -1,115 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
void 0
|
|
12
|
-
), te = q(
|
|
13
|
-
({
|
|
14
|
-
align: x,
|
|
15
|
-
children: I,
|
|
16
|
-
defaultShow: E,
|
|
17
|
-
disabledAutoToggle: n,
|
|
18
|
-
focusStartIndex: R,
|
|
19
|
-
matchActivatorWidth: P,
|
|
20
|
-
onActivated: c,
|
|
21
|
-
onDeactivated: m,
|
|
22
|
-
onNavigate: S,
|
|
23
|
-
type: i,
|
|
24
|
-
show: b,
|
|
25
|
-
virtualFocus: u
|
|
26
|
-
}, g) => {
|
|
27
|
-
const p = x === "auto", h = U(null), r = Z({
|
|
28
|
-
defaultShow: E,
|
|
29
|
-
show: b
|
|
30
|
-
}), M = f(() => {
|
|
31
|
-
const e = [
|
|
32
|
-
$(5),
|
|
33
|
-
p ? y() : z(),
|
|
34
|
-
G()
|
|
35
|
-
];
|
|
36
|
-
return P && e.push(
|
|
37
|
-
X({
|
|
38
|
-
apply({ rects: s, availableHeight: t, elements: V }) {
|
|
39
|
-
requestAnimationFrame(() => {
|
|
40
|
-
Object.assign(V.floating.style, {
|
|
41
|
-
width: `${s.reference.width}px`,
|
|
42
|
-
maxHeight: t > Y ? `${t}px` : void 0
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
padding: 5
|
|
47
|
-
})
|
|
48
|
-
), e;
|
|
49
|
-
}, [p, P]), o = B({
|
|
50
|
-
open: r.show,
|
|
51
|
-
onOpenChange: (e, s, t) => {
|
|
52
|
-
r.setShow(e), e ? c == null || c(s, t, a) : m == null || m(s, t, a);
|
|
53
|
-
},
|
|
54
|
-
middleware: M,
|
|
55
|
-
placement: p ? void 0 : x,
|
|
56
|
-
whileElementsMounted: W
|
|
57
|
-
}), N = J(o.context, {
|
|
58
|
-
enabled: !n
|
|
59
|
-
}), j = K(o.context, {
|
|
60
|
-
enabled: !n
|
|
61
|
-
}), F = L(o.context, {
|
|
62
|
-
role: i
|
|
63
|
-
}), { activeIndex: a, list: d, listNav: H, setActiveIndex: v } = A(
|
|
64
|
-
o.context,
|
|
65
|
-
i,
|
|
66
|
-
{
|
|
67
|
-
focusItemOnOpen: !0,
|
|
68
|
-
virtual: u
|
|
69
|
-
},
|
|
70
|
-
S,
|
|
71
|
-
R
|
|
72
|
-
), l = T(), w = Q([N, j, F, H]), O = f(() => u ? {
|
|
73
|
-
getVirtualFocus: () => h.current,
|
|
74
|
-
setVirtualFocus: (e) => {
|
|
75
|
-
h.current = e;
|
|
76
|
-
}
|
|
77
|
-
} : {}, [u]), C = f(
|
|
78
|
-
() => ({
|
|
79
|
-
...l,
|
|
80
|
-
...r,
|
|
81
|
-
...O,
|
|
82
|
-
api: o,
|
|
83
|
-
activeIndex: a,
|
|
84
|
-
disabledAutoToggle: n,
|
|
85
|
-
getFocusableActivator: () => {
|
|
86
|
-
const e = o.elements.reference;
|
|
87
|
-
return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? ee(e)[0];
|
|
88
|
-
},
|
|
89
|
-
interactions: w,
|
|
90
|
-
list: d,
|
|
91
|
-
setActiveIndex: v,
|
|
92
|
-
setShowWithReason: (e, s, t) => o.context.onOpenChange(e, s, t),
|
|
93
|
-
type: i
|
|
94
|
-
}),
|
|
95
|
-
[
|
|
96
|
-
a,
|
|
97
|
-
o,
|
|
98
|
-
l,
|
|
99
|
-
n,
|
|
100
|
-
w,
|
|
101
|
-
d,
|
|
102
|
-
v,
|
|
103
|
-
r,
|
|
104
|
-
i,
|
|
105
|
-
O
|
|
106
|
-
]
|
|
107
|
-
);
|
|
108
|
-
return D(g, o, l, r, C), /* @__PURE__ */ _(oe.Provider, { value: C, children: I });
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
te.displayName = "PopoverProvider";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../floating-ui.react-nmA48tb2.js";
|
|
4
|
+
import "./Popover.types.js";
|
|
5
|
+
import "./hooks/usePopoverState.js";
|
|
6
|
+
import "./hooks/usePopoverNavigation.js";
|
|
7
|
+
import "./hooks/usePopoverAria.js";
|
|
8
|
+
import "./hooks/usePopoverImperativeHandle.js";
|
|
9
|
+
import "../../helpers/dom/focusableElements.js";
|
|
10
|
+
import { a as x, P as d } from "../../PopoverProvider-BAhkQIhz.js";
|
|
112
11
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
12
|
+
x as PopoverContext,
|
|
13
|
+
d as PopoverProvider
|
|
115
14
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { f as e } from "../../../floating-ui.react-nmA48tb2.js";
|
|
3
|
+
const f = ({
|
|
4
4
|
children: t,
|
|
5
5
|
parentPopover: o
|
|
6
6
|
}) => o ? /* @__PURE__ */ r(e, { elementsRef: o.list, children: t }) : t;
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as NestedPopoverActivator
|
|
9
9
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { s as
|
|
3
|
-
import { PopoverCssClass as
|
|
4
|
-
import { usePopover as
|
|
5
|
-
import { useRef as A, useMemo as
|
|
6
|
-
import { focusableElements as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { s as c } from "../../../Popover.module-Ct33fXgT.js";
|
|
3
|
+
import { PopoverCssClass as m } from "../Popover.types.js";
|
|
4
|
+
import { usePopover as g } from "../hooks/usePopover.js";
|
|
5
|
+
import { useRef as A, useMemo as b, useEffect as v } from "react";
|
|
6
|
+
import { focusableElements as T } from "../../../helpers/dom/focusableElements.js";
|
|
7
|
+
import { safeClosest as f } from "../../../helpers/dom/domUtils.js";
|
|
8
|
+
import { usePopoverActivatorInteractions as x } from "../hooks/usePopoverActivatorInteractions.js";
|
|
9
|
+
import { c as E } from "../../../index-2QXL0WYc.js";
|
|
9
10
|
const P = [
|
|
10
11
|
"aria-controls",
|
|
11
12
|
"aria-expanded",
|
|
@@ -14,75 +15,73 @@ const P = [
|
|
|
14
15
|
"id",
|
|
15
16
|
"role",
|
|
16
17
|
"tabindex"
|
|
17
|
-
], y = (
|
|
18
|
-
const t =
|
|
19
|
-
t == null || t.removeAttribute("id"), P.forEach((
|
|
20
|
-
const n =
|
|
21
|
-
|
|
22
|
-
}), a &&
|
|
23
|
-
},
|
|
24
|
-
children:
|
|
25
|
-
...
|
|
18
|
+
], y = (o, i) => {
|
|
19
|
+
const t = o.querySelector("[id]"), a = t == null ? void 0 : t.getAttribute("id");
|
|
20
|
+
t == null || t.removeAttribute("id"), P.forEach((s) => {
|
|
21
|
+
const n = o.getAttribute(s);
|
|
22
|
+
o.removeAttribute(s), n && i.setAttribute(s, n);
|
|
23
|
+
}), a && i.setAttribute("id", a);
|
|
24
|
+
}, N = ({
|
|
25
|
+
children: o,
|
|
26
|
+
...i
|
|
26
27
|
}) => {
|
|
27
|
-
const t =
|
|
28
|
+
const t = g(), a = A(null), s = o == null ? void 0 : o.props, n = x(
|
|
28
29
|
t,
|
|
29
|
-
|
|
30
|
-
),
|
|
30
|
+
s
|
|
31
|
+
), l = b(() => {
|
|
31
32
|
if (t != null && t.show)
|
|
32
33
|
return [
|
|
33
34
|
...t.getAriaControls(),
|
|
34
|
-
|
|
35
|
+
s["aria-controls"],
|
|
35
36
|
t.api.context.floatingId
|
|
36
37
|
].join(" ").trim();
|
|
37
|
-
}, [
|
|
38
|
-
return
|
|
39
|
-
var r,
|
|
38
|
+
}, [s, t]);
|
|
39
|
+
return v(() => {
|
|
40
|
+
var r, e;
|
|
40
41
|
!a.current || !(t != null && t.getVirtualFocus) || t.activeIndex === null || (setTimeout(
|
|
41
42
|
() => {
|
|
42
|
-
var
|
|
43
|
-
return (
|
|
43
|
+
var u;
|
|
44
|
+
return (u = t == null ? void 0 : t.api.refs.domReference.current) == null ? void 0 : u.removeAttribute(
|
|
44
45
|
"aria-activedescendant"
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
48
|
), a.current.setAttribute(
|
|
48
49
|
"aria-activedescendant",
|
|
49
|
-
((
|
|
50
|
+
((e = (r = t.list.current) == null ? void 0 : r[t.activeIndex]) == null ? void 0 : e.id) ?? ""
|
|
50
51
|
));
|
|
51
52
|
}, [t]), /* @__PURE__ */ d(
|
|
52
53
|
"div",
|
|
53
54
|
{
|
|
54
|
-
...
|
|
55
|
-
className:
|
|
56
|
-
[
|
|
55
|
+
...i,
|
|
56
|
+
className: E(c.activator, {
|
|
57
|
+
[m.Active]: t == null ? void 0 : t.show
|
|
57
58
|
}),
|
|
58
59
|
...t == null ? void 0 : t.interactions.getReferenceProps({
|
|
59
60
|
...n,
|
|
60
|
-
"aria-controls":
|
|
61
|
-
role:
|
|
61
|
+
"aria-controls": l,
|
|
62
|
+
role: s.role,
|
|
62
63
|
ref: (r) => {
|
|
63
64
|
if (!r) return;
|
|
64
65
|
t == null || t.api.refs.setReference(r);
|
|
65
|
-
const
|
|
66
|
-
|
|
66
|
+
const e = (r == null ? void 0 : r.querySelector("[role=combobox]")) ?? T(r)[0];
|
|
67
|
+
e && (a.current = e, y(r, e));
|
|
67
68
|
},
|
|
68
69
|
onBlur: (r) => {
|
|
69
|
-
|
|
70
|
-
(o = r.relatedTarget) != null && o.closest(`.${u.content}`) && (r.preventDefault(), r.stopPropagation());
|
|
70
|
+
r.relatedTarget instanceof Element && f(r.relatedTarget, `.${c.content}`) && (r.preventDefault(), r.stopPropagation());
|
|
71
71
|
},
|
|
72
72
|
onFocus: (r) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
(i = a.current) == null || i.focus();
|
|
73
|
+
t != null && t.disabledAutoToggle || r.relatedTarget instanceof Element && (r.relatedTarget.hasAttribute("data-floating-ui-focus-guard") || f(r.relatedTarget, `.${c.content}`)) && t.show && (setTimeout(() => {
|
|
74
|
+
var e;
|
|
75
|
+
(e = a.current) == null || e.focus();
|
|
77
76
|
}), setTimeout(() => {
|
|
78
77
|
t.setShowWithReason(!1, r.nativeEvent, "focus");
|
|
79
78
|
}, 300));
|
|
80
79
|
}
|
|
81
80
|
}),
|
|
82
|
-
children:
|
|
81
|
+
children: o
|
|
83
82
|
}
|
|
84
83
|
);
|
|
85
84
|
};
|
|
86
85
|
export {
|
|
87
|
-
|
|
86
|
+
N as PopoverActivator
|
|
88
87
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "../../../index-2QXL0WYc.js";
|
|
3
|
-
import { s as m } from "../../../Popover.module-
|
|
4
|
-
import { usePopover as
|
|
5
|
-
import {
|
|
3
|
+
import { s as m } from "../../../Popover.module-Ct33fXgT.js";
|
|
4
|
+
import { usePopover as g } from "../hooks/usePopover.js";
|
|
5
|
+
import { b as F, F as h, c as p, d as i, e as P, f as I, g as N } from "../../../floating-ui.react-nmA48tb2.js";
|
|
6
6
|
import { composePopoverFloatingProps as x } from "../helpers/composeFloatingProps.js";
|
|
7
7
|
const l = ({
|
|
8
|
-
children:
|
|
8
|
+
children: n,
|
|
9
9
|
className: o,
|
|
10
10
|
displayMode: r,
|
|
11
11
|
style: s,
|
|
12
12
|
virtualFocus: a,
|
|
13
13
|
...f
|
|
14
14
|
}) => {
|
|
15
|
-
const t =
|
|
15
|
+
const t = g();
|
|
16
16
|
if (!t) return null;
|
|
17
17
|
const u = x(
|
|
18
18
|
t,
|
|
19
19
|
r,
|
|
20
20
|
s
|
|
21
21
|
);
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ e(I, { elementsRef: t.list, children: /* @__PURE__ */ e(
|
|
23
23
|
N,
|
|
24
24
|
{
|
|
25
25
|
context: t.api.context,
|
|
@@ -27,7 +27,7 @@ const l = ({
|
|
|
27
27
|
modal: !1,
|
|
28
28
|
disabled: !(t != null && t.show),
|
|
29
29
|
returnFocus: !a,
|
|
30
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ e(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
...f,
|
|
@@ -35,25 +35,25 @@ const l = ({
|
|
|
35
35
|
hidden: !(t != null && t.show),
|
|
36
36
|
ref: t == null ? void 0 : t.api.refs.setFloating,
|
|
37
37
|
...u,
|
|
38
|
-
children:
|
|
38
|
+
children: n
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
42
|
) });
|
|
43
43
|
}, d = ({
|
|
44
|
-
className:
|
|
44
|
+
className: n,
|
|
45
45
|
container: o,
|
|
46
46
|
...r
|
|
47
47
|
}) => {
|
|
48
48
|
const s = p();
|
|
49
|
-
return o ? /* @__PURE__ */
|
|
49
|
+
return o ? /* @__PURE__ */ e(i, { id: s, children: /* @__PURE__ */ e(P, { root: o, preserveTabOrder: !0, children: /* @__PURE__ */ e(
|
|
50
50
|
l,
|
|
51
51
|
{
|
|
52
52
|
...r,
|
|
53
|
-
className: c(
|
|
53
|
+
className: c(n, m.portal)
|
|
54
54
|
}
|
|
55
|
-
) }) }) : /* @__PURE__ */
|
|
56
|
-
},
|
|
55
|
+
) }) }) : /* @__PURE__ */ e(i, { id: s, children: /* @__PURE__ */ e(l, { ...r, className: n }) });
|
|
56
|
+
}, y = (n) => F() === null ? /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(d, { ...n }) }) : /* @__PURE__ */ e(d, { ...n });
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
y as PopoverContent
|
|
59
59
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as f } from "../../../index.esm-BnSuefUA.js";
|
|
2
|
-
import { s as c } from "../../../Popover.module-
|
|
2
|
+
import { s as c } from "../../../Popover.module-Ct33fXgT.js";
|
|
3
3
|
import { FOCUSABLE_QUERY_SELECTOR as l } from "../../../constants.js";
|
|
4
4
|
import { focusableElements as m } from "../../../helpers/dom/focusableElements.js";
|
|
5
5
|
import { waitUntilTrue as u } from "./waitUntilTrue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as a, useState as O, useEffect as R, useRef as r } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { n as d } from "../../../floating-ui.react-nmA48tb2.js";
|
|
3
3
|
const E = (l, n, e, t, i = 0) => {
|
|
4
4
|
const s = a(
|
|
5
5
|
() => !!(n && ["menu", "listbox"].includes(n)),
|
|
@@ -3,7 +3,7 @@ import { useState as f, useEffect as v } from "react";
|
|
|
3
3
|
import { propagateTestid as h } from "../../helpers/utility/propagateTestid.js";
|
|
4
4
|
import { stringReplacer as M } from "../../helpers/formatting/stringReplacer.js";
|
|
5
5
|
import { c as S } from "../../index-2QXL0WYc.js";
|
|
6
|
-
const x = "ids-progress-
|
|
6
|
+
const x = "ids-progress-v5151", b = "ids-progress--indicator-v5151", n = {
|
|
7
7
|
progress: x,
|
|
8
8
|
indicator: b
|
|
9
9
|
}, N = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { O as c } from "../../LoadingSuspense-
|
|
2
|
+
import { O as c } from "../../LoadingSuspense-BMFBqvXJ.js";
|
|
3
3
|
import { IressModalProvider as l } from "../Modal/ModalProvider.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { IressSlideoutProvider as p } from "../Slideout/SlideoutProvider.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../index-2QXL0WYc.js";
|
|
3
|
-
import { u as d } from "../../LoadingSuspense-
|
|
3
|
+
import { u as d } from "../../LoadingSuspense-BMFBqvXJ.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../hooks/useIdIfNeeded.js";
|
|
6
6
|
import "../../helpers/utility/propagateTestid.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { u as t } from "../../../LoadingSuspense-
|
|
2
|
+
import { u as t } from "../../../LoadingSuspense-BMFBqvXJ.js";
|
|
3
3
|
import { idsLogger as p } from "../../../helpers/utility/idsLogger.js";
|
|
4
4
|
import { getFormControlValueAsString as d } from "../../../helpers/form/getFormControlValueAsString.js";
|
|
5
5
|
const f = (r) => r != null && r.length ? (p(
|
|
@@ -5,12 +5,12 @@ import { forwardRef as W, useRef as j, useMemo as w, useImperativeHandle as D }
|
|
|
5
5
|
import { useControlledState as F } from "../../hooks/useControlledState.js";
|
|
6
6
|
import { RadioGroupContext as H } from "./RadioGroupContext.js";
|
|
7
7
|
import { useNoDefaultValueInForms as M } from "../Form/hooks/useNoDefaultValueInForms.js";
|
|
8
|
-
const P = "ids-radio-group-
|
|
8
|
+
const P = "ids-radio-group-v5151", z = "ids-radio-group--stack-v5151", A = "ids-radio-group--block-v5151", B = "ids-radio-group--inline-v5151", J = "ids-radio-group--inline-flex-v5151", K = "ids-radio-group--inline-equal-width-v5151", G = {
|
|
9
9
|
radioGroup: P,
|
|
10
10
|
stack: z,
|
|
11
|
-
"ids-radio": "ids-radio-
|
|
11
|
+
"ids-radio": "ids-radio-v5151",
|
|
12
12
|
block: A,
|
|
13
|
-
"ids-radio--label": "ids-radio--label-
|
|
13
|
+
"ids-radio--label": "ids-radio--label-v5151",
|
|
14
14
|
inline: B,
|
|
15
15
|
inlineFlex: J,
|
|
16
16
|
inlineEqualWidth: K
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../helpers/utility/propagateTestid.js";
|
|
4
|
-
import { v as N } from "../../LoadingSuspense-
|
|
4
|
+
import { v as N } from "../../LoadingSuspense-BMFBqvXJ.js";
|
|
5
5
|
import "../../fuzzysort-eoXOpoo6.js";
|
|
6
6
|
import "../Badge/Badge.js";
|
|
7
7
|
import "../../index-2QXL0WYc.js";
|
|
@@ -14,7 +14,7 @@ import "../Expander/Expander.js";
|
|
|
14
14
|
import "../Form/FormContext.js";
|
|
15
15
|
import "../Menu/Menu.js";
|
|
16
16
|
import "../Menu/MenuProvider.js";
|
|
17
|
-
import "
|
|
17
|
+
import "../../PopoverProvider-BAhkQIhz.js";
|
|
18
18
|
import "../CheckboxMark/CheckboxMark.types.js";
|
|
19
19
|
import "../CheckboxMark/CheckboxMark.js";
|
|
20
20
|
import "../Modal/ModalProvider.js";
|
|
@@ -35,7 +35,7 @@ import "../TabSet/TabSet.js";
|
|
|
35
35
|
import "../Toggle/Toggle.js";
|
|
36
36
|
import "../Tooltip/Tooltip.js";
|
|
37
37
|
import "../ValidationMessage/ValidationMessage.js";
|
|
38
|
-
import "../../InputBase-
|
|
38
|
+
import "../../InputBase-55eUCLgT.js";
|
|
39
39
|
import "../Form/hooks/useNoDefaultValueInForms.js";
|
|
40
40
|
export {
|
|
41
41
|
N as IressReadonly
|