@iress-oss/ids-components 5.15.2 → 5.17.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/dist/{AutocompleteNoResults-DmkoqKJm.js → AutocompleteNoResults-Z4L_A4F_.js} +1 -1
- package/dist/{ComboboxHiddenInput-CLb6Xp8s.js → ComboboxHiddenInput-gJl1k-Vp.js} +5 -5
- package/dist/{FieldAppendToLabel-Dw0Mn-US.js → FieldAppendToLabel-CNMj7tRY.js} +4 -4
- package/dist/{InputBase-55eUCLgT.js → InputBase-Dt3vHG19.js} +1 -1
- package/dist/Loading.module-PM8ehb0Z.js +13 -0
- package/dist/LoadingSuspense-BjzbePWa.js +5725 -0
- package/dist/LogoFromSrc-Dr3xwNJa.js +59 -0
- package/dist/MenuItem.module-xNOwGiI0.js +24 -0
- package/dist/Popover.module-BzjyEvrY.js +11 -0
- package/dist/PopoverProvider-BqnPfQtY.js +138 -0
- package/dist/{SelectControl-BbirMx9B.js → SelectControl-IZ6Sl4ap.js} +1 -1
- package/dist/SlideoutProvider-CQh140HM.js +200 -0
- package/dist/{SliderTicks-Jb0VVHsB.js → SliderTicks-8ffd5McY.js} +1 -1
- package/dist/TabSet.module-p87tRckl.js +13 -0
- package/dist/Table.module-CdZFi754.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 +5 -5
- package/dist/components/Autocomplete/components/AutocompleteInstructions.js +12 -0
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +160 -97
- 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 +4 -4
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +4 -4
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +5 -5
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +3 -3
- 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 +4 -4
- package/dist/components/Filter/Filter.js +4 -4
- 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 +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 +3 -3
- 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 +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/MenuDivider/MenuDivider.js +3 -3
- 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 +1 -1
- 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 +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- 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 +1 -1
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/PopoverProvider.js +4 -3
- package/dist/components/Popover/components/PopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +2 -2
- 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 +4 -4
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +3 -3
- package/dist/components/RichSelect/SelectBody/SelectBody.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +2 -2
- 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 +2 -2
- package/dist/components/Select/components/SelectControl.js +1 -1
- 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 +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +4 -3
- package/dist/components/Slideout/SlideoutProvider.js +6 -89
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/hooks/useIDSProvidedSlideout.js +1 -1
- package/dist/components/Slideout/hooks/useSlideout.js +1 -1
- package/dist/components/Slideout/index.js +7 -7
- 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 +77 -66
- package/dist/components/TabSet/TabSet.js +1 -1
- package/dist/components/TabSet/components/TabSetItem.js +1 -1
- 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 +1 -1
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +1 -1
- 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 +1 -1
- 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/helpers/dom/closestCrossShadow.js +26 -0
- package/dist/main.js +3 -3
- 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/components/Autocomplete/Autocomplete.types.d.ts +38 -0
- package/dist/src/components/Autocomplete/components/AutocompleteInstructions.d.ts +2 -0
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +5 -1
- package/dist/src/components/Modal/Modal.types.d.ts +4 -0
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +4 -2
- package/dist/src/components/Slideout/Slideout.types.d.ts +5 -1
- package/dist/src/helpers/dom/closestCrossShadow.d.ts +9 -0
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-BdwMUgHj.js → useIDSButtonGroupItem-NdNvcZnJ.js} +1 -1
- package/package.json +1 -1
- package/dist/Loading.module-DUh3NIWC.js +0 -13
- package/dist/LoadingSuspense-BMFBqvXJ.js +0 -5713
- package/dist/LogoFromSrc-7tFjDtcF.js +0 -59
- package/dist/MenuItem.module-bTAQrrT3.js +0 -24
- package/dist/Popover.module-Ct33fXgT.js +0 -11
- package/dist/PopoverProvider-BAhkQIhz.js +0 -137
- package/dist/TabSet.module-z2bbww8p.js +0 -13
- package/dist/Table.module-DNbVlA6R.js +0 -32
- package/dist/components/Autocomplete/hooks/useAutocompleteFlags.js +0 -16
- package/dist/src/components/Autocomplete/hooks/useAutocompleteFlags.d.ts +0 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const h = (t, r) => {
|
|
2
|
+
var i, n;
|
|
3
|
+
if (!t)
|
|
4
|
+
return null;
|
|
5
|
+
const a = (i = t.closest) == null ? void 0 : i.call(t, r);
|
|
6
|
+
if (a)
|
|
7
|
+
return a;
|
|
8
|
+
let o = t;
|
|
9
|
+
for (; o; ) {
|
|
10
|
+
if ((n = o.matches) != null && n.call(o, r))
|
|
11
|
+
return o;
|
|
12
|
+
let s = o.parentElement;
|
|
13
|
+
if (!s) {
|
|
14
|
+
const f = o.getRootNode();
|
|
15
|
+
if (f instanceof ShadowRoot)
|
|
16
|
+
s = f.host;
|
|
17
|
+
else
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
o = s;
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
h as closestCrossShadow
|
|
26
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { I as o, a as s, b as t, d as I, c as a, e as p, g as S, h as m, j as x, i as l, k as T, l as f, m as n, n as i, P as E, Q as u, o as O, p as d, r as C, q as _, s as A, f as L, t as M, u as N, v as P, w as R, D as c, E as D, x as g, y as G, z as B, A as F, B as U, C as b, F as y, G as v, H as k, J as H, K as V, L as h, M as Y, O as X, T as z, N as Z } from "./LoadingSuspense-
|
|
1
|
+
import { I as o, a as s, b as t, d as I, c as a, e as p, g as S, h as m, j as x, i as l, k as T, l as f, m as n, n as i, P as E, Q as u, o as O, p as d, r as C, q as _, s as A, f as L, t as M, u as N, v as P, w as R, D as c, E as D, x as g, y as G, z as B, A as F, B as U, C as b, F as y, G as v, H as k, J as H, K as V, L as h, M as Y, O as X, T as z, N as Z } from "./LoadingSuspense-BjzbePWa.js";
|
|
2
2
|
import { ALERT_ICONS as w } from "./components/Alert/Alert.types.js";
|
|
3
3
|
import { useAutocompleteSearch as W } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
4
4
|
import { IressBadge as q } from "./components/Badge/Badge.js";
|
|
5
5
|
import { BADGE_MODES as $, BadgeMode as ee } from "./components/Badge/Badge.types.js";
|
|
6
6
|
import { BUTTON_MODES as oe, BUTTON_TYPES as se, ButtonCssClass as te, ButtonMode as Ie, ButtonType as ae } from "./components/Button/Button.types.js";
|
|
7
7
|
import { IressButtonGroup as Se } from "./components/ButtonGroup/ButtonGroup.js";
|
|
8
|
-
import { u as xe } from "./useIDSButtonGroupItem-
|
|
8
|
+
import { u as xe } from "./useIDSButtonGroupItem-NdNvcZnJ.js";
|
|
9
9
|
import { CardCssClass as Te, CardSlotClass as fe } from "./components/Card/Card.types.js";
|
|
10
10
|
import { IressCard as ie } from "./components/Card/Card.js";
|
|
11
11
|
import { IressButtonCard as ue } from "./components/Card/components/ButtonCard.js";
|
|
@@ -67,7 +67,7 @@ import { SKELETON_MODES as qo, SkeletonMode as Jo } from "./components/Skeleton/
|
|
|
67
67
|
import { IressSkeleton as es } from "./components/Skeleton/Skeleton.js";
|
|
68
68
|
import { IressSkipLink as os } from "./components/SkipLink/SkipLink.js";
|
|
69
69
|
import { SLIDEOUT_MODES as ts, SLIDEOUT_POSITIONS as Is, SLIDEOUT_SIZES as as, SlideoutMode as ps, SlideoutPosition as Ss, SlideoutSize as ms } from "./components/Slideout/Slideout.types.js";
|
|
70
|
-
import {
|
|
70
|
+
import { I as ls, a as Ts } from "./SlideoutProvider-CQh140HM.js";
|
|
71
71
|
import { useSlideout as ns } from "./components/Slideout/hooks/useSlideout.js";
|
|
72
72
|
import { StackCssClass as Es } from "./components/Stack/Stack.types.js";
|
|
73
73
|
import { IressStack as Os } from "./components/Stack/Stack.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "./components/StartUpLoading.js";
|
|
3
|
-
import { P as s } from "../../LoadingSuspense-
|
|
3
|
+
import { P as s } from "../../LoadingSuspense-BjzbePWa.js";
|
|
4
4
|
import "./hooks/useShouldRenderLoading.js";
|
|
5
5
|
import "./components/LongLoading.js";
|
|
6
6
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../components/Skeleton/Skeleton.js";
|
|
4
|
-
import { ag as e } from "../../../LoadingSuspense-
|
|
5
|
-
import "../../../Loading.module-
|
|
4
|
+
import { ag as e } from "../../../LoadingSuspense-BjzbePWa.js";
|
|
5
|
+
import "../../../Loading.module-PM8ehb0Z.js";
|
|
6
6
|
import "../../../index-2QXL0WYc.js";
|
|
7
7
|
import "../../../components/Text/Text.js";
|
|
8
8
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ae as e } from "../../../LoadingSuspense-
|
|
3
|
+
import { ae as e } from "../../../LoadingSuspense-BjzbePWa.js";
|
|
4
4
|
import "../../../components/Text/Text.js";
|
|
5
5
|
import "../../../index-2QXL0WYc.js";
|
|
6
|
-
import "../../../Loading.module-
|
|
6
|
+
import "../../../Loading.module-PM8ehb0Z.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DefaultLoading
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as g } from "react/jsx-runtime";
|
|
|
2
2
|
import { IressStack as w } from "../../../components/Stack/Stack.js";
|
|
3
3
|
import { useMemo as f, useId as y } from "react";
|
|
4
4
|
import { c as h } from "../../../index-2QXL0WYc.js";
|
|
5
|
-
import { l as m } from "../../../Loading.module-
|
|
5
|
+
import { l as m } from "../../../Loading.module-PM8ehb0Z.js";
|
|
6
6
|
import { IressText as M } from "../../../components/Text/Text.js";
|
|
7
7
|
import { IressPanel as S } from "../../../components/Panel/Panel.js";
|
|
8
8
|
import { IressProgress as j } from "../../../components/Progress/Progress.js";
|
|
@@ -10,7 +10,7 @@ import { GlobalCSSClass as L } from "../../../enums.js";
|
|
|
10
10
|
import { propagateTestid as O } from "../../../helpers/utility/propagateTestid.js";
|
|
11
11
|
import { useShowIndicator as C } from "../hooks/useShowIndicator.js";
|
|
12
12
|
import { useEstimatedProgressValue as G } from "../hooks/useEstimatedProgressValue.js";
|
|
13
|
-
const P = "ids-long-loading--root-
|
|
13
|
+
const P = "ids-long-loading--root-v5170", V = "ids-long-loading--panel-v5170", B = "ids-long-loading--dots-v5170", E = "ids-long-loading--check-list-v5170", R = "ids-long-loading--check-list-item-v5170", T = "ids-long-loading--check-list-item__done-v5170", U = "ids-long-loading--checked-v5170", $ = "ids-long-loading--checked__circle-v5170", q = "ids-long-loading--checked__check-v5170", s = {
|
|
14
14
|
root: P,
|
|
15
15
|
panel: V,
|
|
16
16
|
dots: B,
|
|
@@ -3,12 +3,12 @@ import "react";
|
|
|
3
3
|
import "../../../components/Stack/Stack.js";
|
|
4
4
|
import "../../../components/Skeleton/Skeleton.js";
|
|
5
5
|
import "../../../components/Container/Container.js";
|
|
6
|
-
import { ah as n } from "../../../LoadingSuspense-
|
|
6
|
+
import { ah as n } from "../../../LoadingSuspense-BjzbePWa.js";
|
|
7
7
|
import "../../../components/Col/Col.js";
|
|
8
8
|
import "../../../components/Divider/Divider.js";
|
|
9
9
|
import "../../../components/Card/Card.js";
|
|
10
10
|
import "../../../index-2QXL0WYc.js";
|
|
11
|
-
import "../../../Loading.module-
|
|
11
|
+
import "../../../Loading.module-PM8ehb0Z.js";
|
|
12
12
|
export {
|
|
13
13
|
n as PageLoading
|
|
14
14
|
};
|
|
@@ -3,12 +3,12 @@ import { IressStack as j } from "../../../components/Stack/Stack.js";
|
|
|
3
3
|
import { useState as y, useEffect as u, useRef as I, useMemo as T } from "react";
|
|
4
4
|
import { IressProgress as k } from "../../../components/Progress/Progress.js";
|
|
5
5
|
import { c as M } from "../../../index-2QXL0WYc.js";
|
|
6
|
-
import { l as n } from "../../../Loading.module-
|
|
6
|
+
import { l as n } from "../../../Loading.module-PM8ehb0Z.js";
|
|
7
7
|
import { IressText as v } from "../../../components/Text/Text.js";
|
|
8
8
|
import { propagateTestid as O } from "../../../helpers/utility/propagateTestid.js";
|
|
9
9
|
import { useShowIndicator as E } from "../hooks/useShowIndicator.js";
|
|
10
10
|
import { useEstimatedProgressValue as R } from "../hooks/useEstimatedProgressValue.js";
|
|
11
|
-
const H = "ids-start-up-loading--root-
|
|
11
|
+
const H = "ids-start-up-loading--root-v5170", P = "ids-start-up-loading--progress-v5170", h = {
|
|
12
12
|
root: H,
|
|
13
13
|
progress: P
|
|
14
14
|
}, U = ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { af as d } from "../../../LoadingSuspense-
|
|
2
|
+
import { af as d } from "../../../LoadingSuspense-BjzbePWa.js";
|
|
3
3
|
import "../../../index-2QXL0WYc.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../components/Text/Text.js";
|
|
6
|
-
import "../../../Loading.module-
|
|
6
|
+
import "../../../Loading.module-PM8ehb0Z.js";
|
|
7
7
|
export {
|
|
8
8
|
d as ValidateLoading
|
|
9
9
|
};
|
|
@@ -56,6 +56,12 @@ export interface AutocompleteSearchHookProps {
|
|
|
56
56
|
* Initial options data set, shown when the input is empty.
|
|
57
57
|
*/
|
|
58
58
|
initialOptions?: LabelValueMeta[];
|
|
59
|
+
/**
|
|
60
|
+
* Minimum number of characters required before triggering async search. Only applies to searchable options (function).
|
|
61
|
+
* Below this threshold, no search will be triggered and no loading state will be shown.
|
|
62
|
+
* @default 1
|
|
63
|
+
*/
|
|
64
|
+
minSearchLength?: number;
|
|
59
65
|
/**
|
|
60
66
|
* Options data set, shown when the input is not empty.
|
|
61
67
|
*/
|
|
@@ -91,6 +97,26 @@ export interface AutocompleteSearchHookReturn {
|
|
|
91
97
|
* Stop the search.
|
|
92
98
|
*/
|
|
93
99
|
stopSearch: () => void;
|
|
100
|
+
/**
|
|
101
|
+
* Whether to show "Type at least X characters to search" instruction.
|
|
102
|
+
* True when the query length is below the minimum search length.
|
|
103
|
+
*/
|
|
104
|
+
shouldShowInstructions: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to show nothing (clean, minimal) during debounce waiting period.
|
|
107
|
+
* True when user has typed enough characters but search hasn't started yet.
|
|
108
|
+
*/
|
|
109
|
+
shouldShowDebounceWaiting: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Whether to show "No results found" message.
|
|
112
|
+
* True only after a legitimate search has been performed and returned empty results.
|
|
113
|
+
*/
|
|
114
|
+
shouldShowNoResults: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Smart result calculation that handles all display scenarios.
|
|
117
|
+
* Returns the appropriate results based on current state.
|
|
118
|
+
*/
|
|
119
|
+
displayResults: FormattedLabelValueMeta[];
|
|
94
120
|
}
|
|
95
121
|
export interface AutocompletePopoverProps extends Pick<IressInputPopoverProps, 'autoHighlight' | 'align' | 'className' | 'container' | 'contentClassName' | 'displayMode' | 'style'> {
|
|
96
122
|
append?: ReactNode;
|
|
@@ -104,3 +130,15 @@ export interface AutocompleteNoResultsProps extends Pick<IressAutocompleteProps,
|
|
|
104
130
|
noResults?: string;
|
|
105
131
|
};
|
|
106
132
|
}
|
|
133
|
+
export interface AutocompleteInstructionsProps {
|
|
134
|
+
/**
|
|
135
|
+
* The minimum number of characters required to search.
|
|
136
|
+
*/
|
|
137
|
+
minSearchLength: number;
|
|
138
|
+
/**
|
|
139
|
+
* Pass a CSS module object to override styles.
|
|
140
|
+
*/
|
|
141
|
+
styles?: {
|
|
142
|
+
instructions?: string;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { AutocompleteSearchHookProps, AutocompleteSearchHookReturn } from '../Autocomplete.types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Advanced autocomplete search hook with debouncing and race condition protection
|
|
4
|
+
* Supports both sync array search and async function search
|
|
5
|
+
*/
|
|
6
|
+
export declare const useAutocompleteSearch: ({ debounceThreshold, initialOptions, minSearchLength, options, query, }: AutocompleteSearchHookProps) => AutocompleteSearchHookReturn;
|
|
@@ -50,6 +50,10 @@ export interface IressModalProps extends IressHTMLAttributes {
|
|
|
50
50
|
* Emitted when the modal has opened or closed internally. Use for controlled modals.
|
|
51
51
|
*/
|
|
52
52
|
onShowChange?: (show: boolean) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Emitted when the modal has mounted, unmounted, opened or closed. Open and close occur before animation begins.
|
|
55
|
+
*/
|
|
56
|
+
onStatus?: (status: 'unmounted' | 'initial' | 'open' | 'close') => void;
|
|
53
57
|
/**
|
|
54
58
|
* Emitted when the modal has opened.
|
|
55
59
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IressSelectMenuItemProps } from './SelectMenu.types';
|
|
2
|
-
export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, hiddenOnMobile, label, meta, value,
|
|
2
|
+
export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, hiddenOnMobile, label, meta, value, append, canToggle, onClick, onKeyDown, prepend, role, selected, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, }: IressSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IressRichSelectProps, SelectOptionsRenderProps } from '../RichSelect.types';
|
|
2
|
-
interface SelectOptionsProps extends Pick<IressRichSelectProps, 'autoHighlight' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'value' | 'initialOptions'>, Omit<SelectOptionsRenderProps, 'close'> {
|
|
2
|
+
interface SelectOptionsProps extends Pick<IressRichSelectProps, 'autoHighlight' | 'minSearchLength' | 'multiSelect' | 'onChange' | 'options' | 'renderOptions' | 'value' | 'initialOptions'>, Omit<SelectOptionsRenderProps, 'close'> {
|
|
3
3
|
setShow: (show: boolean) => void;
|
|
4
|
+
shouldShowInstructions?: boolean;
|
|
5
|
+
shouldShowNoResults?: boolean;
|
|
4
6
|
}
|
|
5
|
-
export declare const SelectOptions: ({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, value, }: SelectOptionsProps) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
export declare const SelectOptions: ({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, value, shouldShowInstructions, shouldShowNoResults, }: SelectOptionsProps) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
6
8
|
export {};
|
|
@@ -58,6 +58,10 @@ export interface IressSlideoutProps extends IressHTMLAttributes {
|
|
|
58
58
|
* Use for controlled slideouts.
|
|
59
59
|
*/
|
|
60
60
|
onShowChange?: (show: boolean, reason?: OpenChangeReason) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Emitted when the slideout has mounted, unmounted, opened or closed. Open and close occur before animation begins.
|
|
63
|
+
*/
|
|
64
|
+
onStatus?: (status: 'unmounted' | 'initial' | 'open' | 'close') => void;
|
|
61
65
|
/**
|
|
62
66
|
* Emitted when the slideout has opened.
|
|
63
67
|
*/
|
|
@@ -97,7 +101,7 @@ export interface IressSlideoutProviderProps extends PropsWithChildren {
|
|
|
97
101
|
* If you are rendering a slideout inside a micro-frontend, using `push` mode and `eleToPush` is targetting an element in the parent app, you will need to set this to `true` to ensure the styles are injected into the parent app.
|
|
98
102
|
* This will ensure the slideout is positioned correctly and the element is pushed correctly.
|
|
99
103
|
*/
|
|
100
|
-
injectPushStyles?: boolean;
|
|
104
|
+
injectPushStyles?: boolean | string;
|
|
101
105
|
}
|
|
102
106
|
export interface IressSlideoutContextValue {
|
|
103
107
|
container?: FloatingUIContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds the closest ancestor element that matches the selector, traversing across shadow DOM boundaries.
|
|
3
|
+
* Similar to native Element.closest() but works across shadow DOM.
|
|
4
|
+
*
|
|
5
|
+
* @param element - The starting element
|
|
6
|
+
* @param selector - CSS selector to match against
|
|
7
|
+
* @returns The closest ancestor element matching the selector, or null if not found
|
|
8
|
+
*/
|
|
9
|
+
export declare const closestCrossShadow: (element: Element | null, selector: string) => Element | null;
|