@iress-oss/ids-components 5.13.1 → 5.14.1
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/dist/{AutocompleteNoResults-Bk7q5K89.js → AutocompleteNoResults-BJwn3Csz.js} +1 -1
- package/dist/{ComboboxHiddenInput-BRgHrfvH.js → ComboboxHiddenInput-Dgwi3tti.js} +6 -6
- package/dist/{FieldAppendToLabel-B7A85TG1.js → FieldAppendToLabel-DOal1Jmq.js} +4 -4
- package/dist/{InputBase-K0leqZnv.js → InputBase-DevBiqf2.js} +2 -2
- package/dist/Loading.module-CC_6gnKJ.js +13 -0
- package/dist/LoadingSuspense-COCIFlsi.js +5692 -0
- package/dist/LogoFromSrc-0jeEBge9.js +59 -0
- package/dist/MenuItem.module-mlKiHW50.js +24 -0
- package/dist/Popover.module-BVX_vz5-.js +11 -0
- package/dist/{SelectControl-415DMBPp.js → SelectControl-CrSaqFGs.js} +2 -2
- package/dist/{SliderTicks-B6vu-MUH.js → SliderTicks-C2tiJ8Jz.js} +2 -2
- package/dist/TabSet.module-BdTRhXdV.js +13 -0
- package/dist/Table.module-Dax40UyV.js +32 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/components/Alert/Alert.js +2 -2
- 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 +5 -5
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +2 -2
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/helpers/composeIDSCard.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +7 -7
- package/dist/components/CheckboxMark/CheckboxMark.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -2
- package/dist/components/Combobox/components/ComboboxResults.js +6 -6
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +3 -3
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Expander/Expander.js +2 -2
- package/dist/components/Field/Field.js +2 -2
- package/dist/components/Field/FieldGroup/FieldGroup.js +3 -3
- package/dist/components/Field/components/FieldAppendToLabel.js +4 -4
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +3 -3
- package/dist/components/Filter/components/FilterSearch.js +3 -3
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +3 -3
- package/dist/components/Form/FormField/FormFieldset.js +3 -3
- package/dist/components/Form/HookForm/HookForm.js +2 -2
- package/dist/components/Form/components/FormValidationSummary.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +2 -2
- package/dist/components/Hide/helpers/composeHideClasses.js +5 -5
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +3 -3
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Input/InputBase/InputBase.js +2 -2
- 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 +2 -2
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +3 -3
- package/dist/components/Menu/MenuHeading/MenuHeading.js +3 -3
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +2 -2
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +4 -4
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +4 -4
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/hooks/useModal.js +17 -14
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +3 -3
- 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 +3 -3
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +2 -2
- package/dist/components/Popover/InputPopover/InputPopover.js +37 -35
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +55 -53
- package/dist/components/Popover/Popover.js +40 -38
- package/dist/components/Popover/PopoverProvider.js +47 -45
- package/dist/components/Popover/components/NestedPopoverActivator.js +9 -0
- package/dist/components/Popover/components/PopoverActivator.js +2 -2
- package/dist/components/Popover/components/PopoverContent.js +3 -3
- package/dist/components/Popover/helpers/composeFloatingProps.js +26 -22
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +16 -13
- package/dist/components/Popover/helpers/waitUntilTrue.js +12 -0
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +25 -17
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +2 -2
- package/dist/components/Radio/Radio.js +2 -2
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +4 -4
- package/dist/components/Readonly/Readonly.js +4 -4
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectBody/SelectBody.js +5 -5
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +3 -3
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +3 -3
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -2
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +3 -3
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +3 -3
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +3 -3
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -2
- package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -3
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +3 -3
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +3 -3
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/SelectControl.js +2 -2
- package/dist/components/Select/components/SelectReadonly.js +3 -3
- 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 +3 -3
- package/dist/components/SkipLink/SkipLink.js +2 -2
- package/dist/components/Slideout/Slideout.js +3 -3
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/hooks/useSlideout.js +17 -14
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +3 -3
- package/dist/components/Slider/components/SliderTicks.js +2 -2
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +2 -2
- package/dist/components/TabSet/TabSet.js +3 -3
- package/dist/components/TabSet/components/TabSetItem.js +2 -2
- package/dist/components/Table/Table.js +3 -3
- package/dist/components/Table/TableBody/TableBody.js +16 -16
- 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 +2 -2
- package/dist/components/Table/components/TableSortButton.js +4 -4
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +2 -2
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -2
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +2 -2
- package/dist/components/Toaster/Toast/ToastAnimated.js +3 -3
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +4 -4
- 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 +4 -4
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -2
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-D_ysmiM3.js → floating-ui.react-RKRjRgyj.js} +972 -961
- package/dist/fuzzysort-eoXOpoo6.js +395 -0
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/highlightQueryInLabel.js +1 -1
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/index-2QXL0WYc.js +45 -0
- package/dist/main.js +309 -308
- package/dist/patterns/Loading/Loading.js +4 -3
- package/dist/patterns/Loading/LoadingSuspense.js +7 -0
- package/dist/patterns/Loading/components/ComponentLoading.js +3 -3
- package/dist/patterns/Loading/components/DefaultLoading.js +4 -4
- package/dist/patterns/Loading/components/LongLoading.js +132 -0
- package/dist/patterns/Loading/components/PageLoading.js +4 -4
- package/dist/patterns/Loading/components/StartUpLoading.js +105 -9
- package/dist/patterns/Loading/components/ValidateLoading.js +3 -3
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +29 -0
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +19 -15
- package/dist/patterns/Loading/hooks/useShowIndicator.js +20 -0
- package/dist/patterns/Loading/hooks/useSuspenseResource.js +27 -0
- package/dist/patterns/Loading/index.js +3 -2
- package/dist/src/components/Popover/Popover.types.d.ts +1 -0
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +5 -0
- package/dist/src/components/Popover/helpers/handlePopoverTabKey.d.ts +1 -1
- package/dist/src/components/Popover/helpers/waitUntilTrue.d.ts +1 -0
- package/dist/src/components/RichSelect/RichSelect.types.d.ts +14 -0
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +2 -2
- package/dist/src/patterns/Loading/Loading.d.ts +7 -2
- package/dist/src/patterns/Loading/LoadingSuspense.d.ts +73 -0
- package/dist/src/patterns/Loading/components/LongLoading.d.ts +60 -0
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +1 -1
- package/dist/src/patterns/Loading/hooks/useEstimatedProgressValue.d.ts +11 -0
- package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +2 -1
- package/dist/src/patterns/Loading/hooks/useShowIndicator.d.ts +9 -0
- package/dist/src/patterns/Loading/hooks/useSuspenseResource.d.ts +17 -0
- package/dist/src/patterns/Loading/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-Dzgv35ni.js → useIDSButtonGroupItem-DWuujtfY.js} +2 -2
- package/package.json +9 -9
- package/dist/Loading-CZ64hUvP.js +0 -5638
- package/dist/LogoFromSrc-tAhdMB9Y.js +0 -59
- package/dist/MenuItem.module-Br0lJU3k.js +0 -24
- package/dist/Popover.module-COHnD5HM.js +0 -11
- package/dist/StartUpLoading-DpO7RfDY.js +0 -145
- package/dist/TabSet.module-Bje9oAao.js +0 -13
- package/dist/Table.module-CSNtX5ab.js +0 -32
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/fuzzysort-CuIReeYY.js +0 -393
- package/dist/index-Cu0xwYjD.js +0 -42
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
import { jsx as o, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as F } from "react";
|
|
3
|
-
import { c as i } from "../../../index-
|
|
3
|
+
import { c as i } from "../../../index-2QXL0WYc.js";
|
|
4
4
|
import { GlobalCSSClass as S } from "../../../enums.js";
|
|
5
5
|
import { propagateTestid as m } from "../../../helpers/utility/propagateTestid.js";
|
|
6
|
-
import { s as r } from "../../../Popover.module-
|
|
6
|
+
import { s as r } from "../../../Popover.module-BVX_vz5-.js";
|
|
7
7
|
import { InputPopoverProvider as W } from "./InputPopoverProvider.js";
|
|
8
8
|
import { PopoverContent as b } from "../components/PopoverContent.js";
|
|
9
9
|
import { InputPopoverActivator as w } from "./InputPopoverActivator.js";
|
|
10
10
|
import { composePopoverWidth as E } from "../helpers/composePopoverWidth.js";
|
|
11
|
-
|
|
11
|
+
import { NestedPopoverActivator as G } from "../components/NestedPopoverActivator.js";
|
|
12
|
+
import { usePopover as R } from "../hooks/usePopover.js";
|
|
13
|
+
const k = ({
|
|
12
14
|
activator: p,
|
|
13
15
|
align: s = "auto",
|
|
14
|
-
autoHighlight:
|
|
15
|
-
children:
|
|
16
|
+
autoHighlight: v = !0,
|
|
17
|
+
children: c,
|
|
16
18
|
className: n,
|
|
17
|
-
container:
|
|
18
|
-
contentClassName:
|
|
19
|
+
container: d,
|
|
20
|
+
contentClassName: l,
|
|
19
21
|
defaultShow: f,
|
|
20
|
-
disabledAutoToggle:
|
|
21
|
-
displayMode:
|
|
22
|
+
disabledAutoToggle: e,
|
|
23
|
+
displayMode: a = "overlay",
|
|
22
24
|
focusStartIndex: u,
|
|
23
|
-
minLength:
|
|
24
|
-
onActivated:
|
|
25
|
-
onDeactivated:
|
|
25
|
+
minLength: P,
|
|
26
|
+
onActivated: h,
|
|
27
|
+
onDeactivated: I,
|
|
26
28
|
onNavigate: x,
|
|
27
|
-
show:
|
|
28
|
-
type:
|
|
29
|
-
width:
|
|
29
|
+
show: A,
|
|
30
|
+
type: N = "listbox",
|
|
31
|
+
width: y,
|
|
30
32
|
...t
|
|
31
|
-
},
|
|
33
|
+
}, C) => /* @__PURE__ */ o(
|
|
32
34
|
W,
|
|
33
35
|
{
|
|
34
36
|
align: s,
|
|
35
|
-
autoHighlight:
|
|
37
|
+
autoHighlight: v,
|
|
36
38
|
defaultShow: f,
|
|
37
|
-
disabledAutoToggle:
|
|
38
|
-
matchActivatorWidth:
|
|
39
|
-
onActivated:
|
|
40
|
-
onDeactivated:
|
|
39
|
+
disabledAutoToggle: e,
|
|
40
|
+
matchActivatorWidth: a === "overlay",
|
|
41
|
+
onActivated: h,
|
|
42
|
+
onDeactivated: I,
|
|
41
43
|
onNavigate: x,
|
|
42
|
-
ref:
|
|
43
|
-
type:
|
|
44
|
-
show:
|
|
44
|
+
ref: C,
|
|
45
|
+
type: N,
|
|
46
|
+
show: A,
|
|
45
47
|
focusStartIndex: u,
|
|
46
48
|
children: /* @__PURE__ */ j(
|
|
47
49
|
"div",
|
|
@@ -54,32 +56,32 @@ const G = ({
|
|
|
54
56
|
r.hasInputActivator
|
|
55
57
|
),
|
|
56
58
|
children: [
|
|
57
|
-
/* @__PURE__ */ o(
|
|
59
|
+
/* @__PURE__ */ o(G, { parentPopover: R(), children: /* @__PURE__ */ o(
|
|
58
60
|
w,
|
|
59
61
|
{
|
|
60
62
|
"data-testid": m(t["data-testid"], "activator"),
|
|
61
|
-
disabledAutoToggle:
|
|
62
|
-
minLength:
|
|
63
|
+
disabledAutoToggle: e,
|
|
64
|
+
minLength: P,
|
|
63
65
|
children: p
|
|
64
66
|
}
|
|
65
|
-
),
|
|
67
|
+
) }),
|
|
66
68
|
/* @__PURE__ */ o(
|
|
67
69
|
b,
|
|
68
70
|
{
|
|
69
|
-
className: i(r.inputActivatorPortal,
|
|
70
|
-
container:
|
|
71
|
+
className: i(r.inputActivatorPortal, l),
|
|
72
|
+
container: d,
|
|
71
73
|
"data-testid": m(t["data-testid"], "content"),
|
|
72
|
-
displayMode:
|
|
73
|
-
style: E(
|
|
74
|
+
displayMode: a,
|
|
75
|
+
style: E(y),
|
|
74
76
|
virtualFocus: !0,
|
|
75
|
-
children:
|
|
77
|
+
children: c
|
|
76
78
|
}
|
|
77
79
|
)
|
|
78
80
|
]
|
|
79
81
|
}
|
|
80
82
|
)
|
|
81
83
|
}
|
|
82
|
-
),
|
|
84
|
+
), V = F(k);
|
|
83
85
|
export {
|
|
84
|
-
|
|
86
|
+
V as IressInputPopover
|
|
85
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import { s as R } from "../../../Popover.module-
|
|
2
|
+
import { s as R } from "../../../Popover.module-BVX_vz5-.js";
|
|
3
3
|
import { usePopover as k } from "../hooks/usePopover.js";
|
|
4
4
|
import { useCallback as f, cloneElement as F } from "react";
|
|
5
5
|
import { hasFocus as S } from "../helpers/hasFocus.js";
|
|
@@ -1,101 +1,103 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { o as
|
|
4
|
-
import { POPOVER_USE_MAX_HEIGHT as
|
|
5
|
-
import { usePopoverState as
|
|
6
|
-
import { usePopoverNavigation as
|
|
7
|
-
import { usePopoverAria as
|
|
8
|
-
import { PopoverContext as
|
|
9
|
-
import { usePopoverImperativeHandle as
|
|
10
|
-
import { focusableElements as
|
|
11
|
-
const
|
|
1
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V, useRef as _, useMemo as h } from "react";
|
|
3
|
+
import { o as q, f as y, c as U, d as $, j as z, g as G, h as K, i as X } from "../../../floating-ui.react-RKRjRgyj.js";
|
|
4
|
+
import { POPOVER_USE_MAX_HEIGHT as k } from "../Popover.types.js";
|
|
5
|
+
import { usePopoverState as B } from "../hooks/usePopoverState.js";
|
|
6
|
+
import { usePopoverNavigation as J } from "../hooks/usePopoverNavigation.js";
|
|
7
|
+
import { usePopoverAria as L } from "../hooks/usePopoverAria.js";
|
|
8
|
+
import { PopoverContext as Q } from "../PopoverProvider.js";
|
|
9
|
+
import { usePopoverImperativeHandle as W } from "../hooks/usePopoverImperativeHandle.js";
|
|
10
|
+
import { focusableElements as Y } from "../../../helpers/dom/focusableElements.js";
|
|
11
|
+
const Z = V(
|
|
12
12
|
({
|
|
13
13
|
align: c,
|
|
14
|
-
autoHighlight:
|
|
14
|
+
autoHighlight: v,
|
|
15
15
|
children: w,
|
|
16
|
-
defaultShow:
|
|
16
|
+
defaultShow: I,
|
|
17
17
|
disabledAutoToggle: u,
|
|
18
18
|
focusStartIndex: g,
|
|
19
19
|
matchActivatorWidth: l = !0,
|
|
20
20
|
onActivated: a,
|
|
21
21
|
onDeactivated: m,
|
|
22
|
-
onNavigate:
|
|
23
|
-
show:
|
|
22
|
+
onNavigate: O,
|
|
23
|
+
show: F,
|
|
24
24
|
type: n
|
|
25
|
-
},
|
|
26
|
-
const
|
|
27
|
-
defaultShow:
|
|
28
|
-
show:
|
|
29
|
-
}),
|
|
30
|
-
const
|
|
31
|
-
return l &&
|
|
32
|
-
|
|
33
|
-
apply({ rects:
|
|
25
|
+
}, E) => {
|
|
26
|
+
const R = c === "auto", f = _(null), r = B({
|
|
27
|
+
defaultShow: I,
|
|
28
|
+
show: F
|
|
29
|
+
}), S = h(() => {
|
|
30
|
+
const e = [q(5), y({ padding: 5 })];
|
|
31
|
+
return l && e.push(
|
|
32
|
+
U({
|
|
33
|
+
apply({ rects: t, availableHeight: s, elements: H }) {
|
|
34
34
|
requestAnimationFrame(() => {
|
|
35
|
-
Object.assign(
|
|
36
|
-
width: `${
|
|
37
|
-
maxHeight: s >
|
|
35
|
+
Object.assign(H.floating.style, {
|
|
36
|
+
width: `${t.reference.width}px`,
|
|
37
|
+
maxHeight: s > k ? `${s}px` : void 0
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
padding: 5
|
|
42
42
|
})
|
|
43
|
-
),
|
|
44
|
-
}, [l]),
|
|
45
|
-
open:
|
|
46
|
-
onOpenChange: (
|
|
47
|
-
|
|
43
|
+
), e;
|
|
44
|
+
}, [l]), o = $({
|
|
45
|
+
open: r.show,
|
|
46
|
+
onOpenChange: (e, t, s) => {
|
|
47
|
+
r.setShow(e), e ? a == null || a(t, s, i) : m == null || m(t, s, i);
|
|
48
48
|
},
|
|
49
|
-
middleware:
|
|
50
|
-
placement:
|
|
51
|
-
whileElementsMounted:
|
|
52
|
-
}),
|
|
49
|
+
middleware: S,
|
|
50
|
+
placement: R ? void 0 : c,
|
|
51
|
+
whileElementsMounted: z
|
|
52
|
+
}), M = G(o.context, {
|
|
53
53
|
enabled: !u,
|
|
54
54
|
escapeKey: !1
|
|
55
|
-
}),
|
|
55
|
+
}), b = K(o.context, {
|
|
56
56
|
role: n
|
|
57
|
-
}), { activeIndex: i, list: x, listNav:
|
|
58
|
-
|
|
57
|
+
}), { activeIndex: i, list: x, listNav: j, setActiveIndex: d } = J(
|
|
58
|
+
o.context,
|
|
59
59
|
n,
|
|
60
60
|
{
|
|
61
|
-
focusItemOnOpen:
|
|
61
|
+
focusItemOnOpen: v,
|
|
62
62
|
virtual: !0
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
O,
|
|
65
65
|
g
|
|
66
|
-
), P =
|
|
66
|
+
), P = X([M, b, j]), p = L(), C = h(
|
|
67
67
|
() => ({
|
|
68
68
|
...p,
|
|
69
|
-
...
|
|
69
|
+
...r,
|
|
70
70
|
activeIndex: i,
|
|
71
|
-
api:
|
|
71
|
+
api: o,
|
|
72
72
|
disabledAutoToggle: u,
|
|
73
73
|
getFocusableActivator: () => {
|
|
74
|
-
const
|
|
75
|
-
return (
|
|
74
|
+
const e = o.elements.reference;
|
|
75
|
+
return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? Y(e)[0];
|
|
76
76
|
},
|
|
77
77
|
getVirtualFocus: () => f.current,
|
|
78
78
|
interactions: P,
|
|
79
79
|
list: x,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
setActiveIndex: d,
|
|
81
|
+
setShowWithReason: (e, t, s) => o.context.onOpenChange(e, t, s),
|
|
82
|
+
setVirtualFocus: (e) => f.current = e,
|
|
82
83
|
type: n
|
|
83
84
|
}),
|
|
84
85
|
[
|
|
85
86
|
i,
|
|
86
|
-
|
|
87
|
+
o,
|
|
87
88
|
p,
|
|
88
89
|
u,
|
|
89
90
|
P,
|
|
90
91
|
x,
|
|
91
|
-
|
|
92
|
+
d,
|
|
93
|
+
r,
|
|
92
94
|
n
|
|
93
95
|
]
|
|
94
96
|
);
|
|
95
|
-
return
|
|
97
|
+
return W(E, o, p, r), /* @__PURE__ */ N(Q.Provider, { value: C, children: w });
|
|
96
98
|
}
|
|
97
99
|
);
|
|
98
|
-
|
|
100
|
+
Z.displayName = "InputPopoverProvider";
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
Z as InputPopoverProvider
|
|
101
103
|
};
|
|
@@ -1,81 +1,83 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as j } from "../../index-
|
|
1
|
+
import { jsx as t, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, useRef as W } from "react";
|
|
3
|
+
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-
|
|
7
|
+
import { propagateTestid as s } from "../../helpers/utility/propagateTestid.js";
|
|
8
|
+
import { s as E } from "../../Popover.module-BVX_vz5-.js";
|
|
9
9
|
import { PopoverProvider as F } from "./PopoverProvider.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";
|
|
13
|
-
|
|
13
|
+
import { usePopover as q } from "./hooks/usePopover.js";
|
|
14
|
+
import { NestedPopoverActivator as z } from "./components/NestedPopoverActivator.js";
|
|
15
|
+
const B = ({
|
|
14
16
|
activator: p,
|
|
15
17
|
align: d = "auto",
|
|
16
18
|
children: n,
|
|
17
|
-
className:
|
|
18
|
-
container:
|
|
19
|
-
contentClassName:
|
|
20
|
-
defaultShow:
|
|
19
|
+
className: c,
|
|
20
|
+
container: l,
|
|
21
|
+
contentClassName: v,
|
|
22
|
+
defaultShow: f,
|
|
21
23
|
disabledAutoToggle: h,
|
|
22
24
|
displayMode: e = "overlay",
|
|
23
|
-
focusStartIndex:
|
|
24
|
-
matchActivatorWidth:
|
|
25
|
+
focusStartIndex: P,
|
|
26
|
+
matchActivatorWidth: g,
|
|
25
27
|
onActivated: y,
|
|
26
28
|
onDeactivated: A,
|
|
27
|
-
onNavigate:
|
|
28
|
-
type:
|
|
29
|
-
show:
|
|
29
|
+
onNavigate: u,
|
|
30
|
+
type: x,
|
|
31
|
+
show: N,
|
|
30
32
|
width: r,
|
|
31
33
|
virtualFocus: i,
|
|
32
34
|
...o
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
+
}, T) => {
|
|
36
|
+
const w = W(null), m = g && e === "overlay";
|
|
35
37
|
return r !== void 0 && k(
|
|
36
38
|
"IressPopover: The width prop is deprecated. Please use the --iress-width and --iress-max-width design token instead."
|
|
37
39
|
), /* @__PURE__ */ t(
|
|
38
40
|
F,
|
|
39
41
|
{
|
|
40
42
|
align: d,
|
|
41
|
-
defaultShow:
|
|
43
|
+
defaultShow: f,
|
|
42
44
|
disabledAutoToggle: h,
|
|
43
|
-
focusStartIndex:
|
|
44
|
-
matchActivatorWidth:
|
|
45
|
+
focusStartIndex: P,
|
|
46
|
+
matchActivatorWidth: m,
|
|
45
47
|
onActivated: y,
|
|
46
48
|
onDeactivated: A,
|
|
47
|
-
onNavigate:
|
|
48
|
-
ref:
|
|
49
|
-
show:
|
|
50
|
-
type:
|
|
49
|
+
onNavigate: u,
|
|
50
|
+
ref: T,
|
|
51
|
+
show: N,
|
|
52
|
+
type: x,
|
|
51
53
|
virtualFocus: i,
|
|
52
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ C(
|
|
53
55
|
"div",
|
|
54
56
|
{
|
|
55
57
|
...o,
|
|
56
58
|
className: j(
|
|
57
|
-
|
|
59
|
+
c,
|
|
58
60
|
b.FormElement,
|
|
59
61
|
E.popover
|
|
60
62
|
),
|
|
61
|
-
ref:
|
|
63
|
+
ref: w,
|
|
62
64
|
children: [
|
|
63
|
-
/* @__PURE__ */ t(
|
|
65
|
+
/* @__PURE__ */ t(z, { parentPopover: q(), children: /* @__PURE__ */ t(
|
|
64
66
|
G,
|
|
65
67
|
{
|
|
66
|
-
"data-testid":
|
|
68
|
+
"data-testid": s(o["data-testid"], "activator"),
|
|
67
69
|
children: p
|
|
68
70
|
}
|
|
69
|
-
),
|
|
71
|
+
) }),
|
|
70
72
|
/* @__PURE__ */ t(
|
|
71
73
|
L,
|
|
72
74
|
{
|
|
73
|
-
className:
|
|
74
|
-
container:
|
|
75
|
-
"data-testid":
|
|
75
|
+
className: v,
|
|
76
|
+
container: l,
|
|
77
|
+
"data-testid": s(o["data-testid"], "content"),
|
|
76
78
|
displayMode: e,
|
|
77
79
|
style: {
|
|
78
|
-
...U(r,
|
|
80
|
+
...U(r, m),
|
|
79
81
|
...o.style
|
|
80
82
|
},
|
|
81
83
|
virtualFocus: i,
|
|
@@ -87,9 +89,9 @@ const q = ({
|
|
|
87
89
|
)
|
|
88
90
|
}
|
|
89
91
|
);
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
}, a = I(B);
|
|
93
|
+
a.Align = S;
|
|
94
|
+
a.Type = R;
|
|
93
95
|
export {
|
|
94
|
-
|
|
96
|
+
a as IressPopover
|
|
95
97
|
};
|
|
@@ -1,93 +1,94 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { o as
|
|
4
|
-
import { POPOVER_USE_MAX_HEIGHT as
|
|
5
|
-
import { usePopoverState as
|
|
6
|
-
import { usePopoverNavigation as
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as k, forwardRef as q, useRef as U, useMemo as f } from "react";
|
|
3
|
+
import { o as $, b as y, f as z, s as G, c as X, d as B, e as J, g as K, h as L, i as Q, j as W } from "../../floating-ui.react-RKRjRgyj.js";
|
|
4
|
+
import { POPOVER_USE_MAX_HEIGHT as Y } from "./Popover.types.js";
|
|
5
|
+
import { usePopoverState as Z } from "./hooks/usePopoverState.js";
|
|
6
|
+
import { usePopoverNavigation as A } from "./hooks/usePopoverNavigation.js";
|
|
7
7
|
import { usePopoverAria as T } from "./hooks/usePopoverAria.js";
|
|
8
|
-
import { usePopoverImperativeHandle as
|
|
9
|
-
import { focusableElements as
|
|
10
|
-
const
|
|
8
|
+
import { usePopoverImperativeHandle as D } from "./hooks/usePopoverImperativeHandle.js";
|
|
9
|
+
import { focusableElements as ee } from "../../helpers/dom/focusableElements.js";
|
|
10
|
+
const oe = k(
|
|
11
11
|
void 0
|
|
12
|
-
),
|
|
12
|
+
), te = q(
|
|
13
13
|
({
|
|
14
14
|
align: x,
|
|
15
|
-
children:
|
|
15
|
+
children: I,
|
|
16
16
|
defaultShow: E,
|
|
17
17
|
disabledAutoToggle: n,
|
|
18
|
-
focusStartIndex:
|
|
18
|
+
focusStartIndex: R,
|
|
19
19
|
matchActivatorWidth: P,
|
|
20
20
|
onActivated: c,
|
|
21
21
|
onDeactivated: m,
|
|
22
|
-
onNavigate:
|
|
22
|
+
onNavigate: S,
|
|
23
23
|
type: i,
|
|
24
|
-
show:
|
|
24
|
+
show: b,
|
|
25
25
|
virtualFocus: u
|
|
26
|
-
},
|
|
27
|
-
const p = x === "auto", h =
|
|
26
|
+
}, g) => {
|
|
27
|
+
const p = x === "auto", h = U(null), r = Z({
|
|
28
28
|
defaultShow: E,
|
|
29
|
-
show:
|
|
30
|
-
}),
|
|
29
|
+
show: b
|
|
30
|
+
}), M = f(() => {
|
|
31
31
|
const e = [
|
|
32
|
-
|
|
33
|
-
p ?
|
|
34
|
-
|
|
32
|
+
$(5),
|
|
33
|
+
p ? y() : z(),
|
|
34
|
+
G()
|
|
35
35
|
];
|
|
36
36
|
return P && e.push(
|
|
37
|
-
|
|
38
|
-
apply({ rects: s, availableHeight: t, elements:
|
|
37
|
+
X({
|
|
38
|
+
apply({ rects: s, availableHeight: t, elements: V }) {
|
|
39
39
|
requestAnimationFrame(() => {
|
|
40
|
-
Object.assign(
|
|
40
|
+
Object.assign(V.floating.style, {
|
|
41
41
|
width: `${s.reference.width}px`,
|
|
42
|
-
maxHeight: t >
|
|
42
|
+
maxHeight: t > Y ? `${t}px` : void 0
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
},
|
|
46
46
|
padding: 5
|
|
47
47
|
})
|
|
48
48
|
), e;
|
|
49
|
-
}, [p, P]), o =
|
|
49
|
+
}, [p, P]), o = B({
|
|
50
50
|
open: r.show,
|
|
51
51
|
onOpenChange: (e, s, t) => {
|
|
52
52
|
r.setShow(e), e ? c == null || c(s, t, a) : m == null || m(s, t, a);
|
|
53
53
|
},
|
|
54
|
-
middleware:
|
|
54
|
+
middleware: M,
|
|
55
55
|
placement: p ? void 0 : x,
|
|
56
|
-
whileElementsMounted:
|
|
57
|
-
}), M = B(o.context, {
|
|
58
|
-
enabled: !n
|
|
56
|
+
whileElementsMounted: W
|
|
59
57
|
}), N = J(o.context, {
|
|
60
58
|
enabled: !n
|
|
61
59
|
}), j = K(o.context, {
|
|
60
|
+
enabled: !n
|
|
61
|
+
}), F = L(o.context, {
|
|
62
62
|
role: i
|
|
63
|
-
}), { activeIndex: a, list:
|
|
63
|
+
}), { activeIndex: a, list: d, listNav: H, setActiveIndex: v } = A(
|
|
64
64
|
o.context,
|
|
65
65
|
i,
|
|
66
66
|
{
|
|
67
67
|
focusItemOnOpen: !0,
|
|
68
68
|
virtual: u
|
|
69
69
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
), l = T(),
|
|
70
|
+
S,
|
|
71
|
+
R
|
|
72
|
+
), l = T(), w = Q([N, j, F, H]), O = f(() => u ? {
|
|
73
73
|
getVirtualFocus: () => h.current,
|
|
74
74
|
setVirtualFocus: (e) => {
|
|
75
75
|
h.current = e;
|
|
76
76
|
}
|
|
77
|
-
} : {}, [u]),
|
|
77
|
+
} : {}, [u]), C = f(
|
|
78
78
|
() => ({
|
|
79
79
|
...l,
|
|
80
80
|
...r,
|
|
81
|
-
...
|
|
81
|
+
...O,
|
|
82
82
|
api: o,
|
|
83
83
|
activeIndex: a,
|
|
84
84
|
disabledAutoToggle: n,
|
|
85
85
|
getFocusableActivator: () => {
|
|
86
86
|
const e = o.elements.reference;
|
|
87
|
-
return (e == null ? void 0 : e.querySelector("[role=combobox]")) ??
|
|
87
|
+
return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? ee(e)[0];
|
|
88
88
|
},
|
|
89
|
-
interactions:
|
|
90
|
-
list:
|
|
89
|
+
interactions: w,
|
|
90
|
+
list: d,
|
|
91
|
+
setActiveIndex: v,
|
|
91
92
|
setShowWithReason: (e, s, t) => o.context.onOpenChange(e, s, t),
|
|
92
93
|
type: i
|
|
93
94
|
}),
|
|
@@ -96,18 +97,19 @@ const ee = _(
|
|
|
96
97
|
o,
|
|
97
98
|
l,
|
|
98
99
|
n,
|
|
99
|
-
d,
|
|
100
100
|
w,
|
|
101
|
+
d,
|
|
102
|
+
v,
|
|
101
103
|
r,
|
|
102
104
|
i,
|
|
103
|
-
|
|
105
|
+
O
|
|
104
106
|
]
|
|
105
107
|
);
|
|
106
|
-
return
|
|
108
|
+
return D(g, o, l, r, C), /* @__PURE__ */ _(oe.Provider, { value: C, children: I });
|
|
107
109
|
}
|
|
108
110
|
);
|
|
109
|
-
|
|
111
|
+
te.displayName = "PopoverProvider";
|
|
110
112
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
oe as PopoverContext,
|
|
114
|
+
te as PopoverProvider
|
|
113
115
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { p as e } from "../../../floating-ui.react-RKRjRgyj.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
children: t,
|
|
5
|
+
parentPopover: o
|
|
6
|
+
}) => o ? /* @__PURE__ */ r(e, { elementsRef: o.list, children: t }) : t;
|
|
7
|
+
export {
|
|
8
|
+
m as NestedPopoverActivator
|
|
9
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { s as u } from "../../../Popover.module-
|
|
2
|
+
import { s as u } from "../../../Popover.module-BVX_vz5-.js";
|
|
3
3
|
import { PopoverCssClass as l } from "../Popover.types.js";
|
|
4
4
|
import { usePopover as m } from "../hooks/usePopover.js";
|
|
5
5
|
import { useRef as A, useMemo as g, useEffect as b } from "react";
|
|
6
6
|
import { focusableElements as v } from "../../../helpers/dom/focusableElements.js";
|
|
7
7
|
import { usePopoverActivatorInteractions as T } from "../hooks/usePopoverActivatorInteractions.js";
|
|
8
|
-
import { c as x } from "../../../index-
|
|
8
|
+
import { c as x } from "../../../index-2QXL0WYc.js";
|
|
9
9
|
const P = [
|
|
10
10
|
"aria-controls",
|
|
11
11
|
"aria-expanded",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "../../../index-
|
|
3
|
-
import { s as m } from "../../../Popover.module-
|
|
2
|
+
import { c } from "../../../index-2QXL0WYc.js";
|
|
3
|
+
import { s as m } from "../../../Popover.module-BVX_vz5-.js";
|
|
4
4
|
import { usePopover as F } from "../hooks/usePopover.js";
|
|
5
|
-
import { k as g, F as h, l as p, m as i, n as P, p as I, q as N } from "../../../floating-ui.react-
|
|
5
|
+
import { k as g, F as h, l as p, m as i, n as P, p as I, q as N } from "../../../floating-ui.react-RKRjRgyj.js";
|
|
6
6
|
import { composePopoverFloatingProps as x } from "../helpers/composeFloatingProps.js";
|
|
7
7
|
const l = ({
|
|
8
8
|
children: e,
|