@iress-oss/ids-components 6.3.0 → 6.4.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/.ai/components/modal.md +6 -1
- package/.ai/components/select.md +22 -0
- package/.ai/skills/ui-translation.md +4 -4
- package/dist/Autocomplete-CfNw4UXr.js +328 -0
- package/dist/{Button-BY2qzshw.js → Button-x1_YRAyD.js} +3 -3
- package/dist/{Shadow-DAfthdT2.js → Shadow-BKrsbwQE.js} +8 -6
- package/dist/Slideout-DuFGU2C8.js +197 -0
- package/dist/{Table.styles-CKD_vWqh.js → Table.styles-CeUw7q9b.js} +3 -3
- package/dist/{TableProvider-C8bDaWu2.js → TableProvider-DLIQWfLq.js} +1 -1
- package/dist/{TableRows-DXoiLfwt.js → TableRows-RGC4_RRZ.js} +8 -6
- package/dist/{Text.styles-DUvXBRio.js → Text.styles-CVKI4cU7.js} +2 -2
- package/dist/components/Alert/Alert.js +12 -8
- package/dist/components/Alert/Alert.styles.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/components/AutocompleteInstructions.js +7 -4
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +1 -1
- package/dist/components/Autocomplete/index.js +2 -2
- package/dist/components/Avatar/Avatar.js +2 -2
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.styles.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/Card/Card.js +4 -4
- package/dist/components/Card/Card.styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +1 -1
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +3 -3
- package/dist/components/Expander/Expander.styles.js +1 -1
- package/dist/components/ExpanderChevron/ExpanderChevron.styles.js +1 -1
- package/dist/components/Field/Field.js +3 -3
- package/dist/components/Field/Field.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +2 -2
- package/dist/components/Field/components/FieldHint.js +3 -3
- package/dist/components/FieldGroup/FieldGroup.js +3 -3
- package/dist/components/FieldGroup/FieldGroup.styles.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +4 -4
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +85 -79
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Input/InputBase/InputBase.js +1 -1
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +3 -3
- package/dist/components/Link/Link.js +4 -4
- package/dist/components/Link/Link.styles.js +1 -1
- package/dist/components/Menu/Menu.js +2 -2
- package/dist/components/Menu/Menu.styles.js +1 -1
- package/dist/components/Menu/MenuGroup/MenuGroup.styles.js +1 -1
- package/dist/components/Menu/MenuItem/MenuItem.js +121 -121
- package/dist/components/Menu/MenuItem/MenuItem.styles.js +1 -1
- package/dist/components/Menu/MenuText/MenuText.js +2 -2
- package/dist/components/Modal/Modal.d.ts +3 -2
- package/dist/components/Modal/Modal.js +46 -46
- package/dist/components/Modal/Modal.styles.js +1 -1
- package/dist/components/Pill/Pill.js +3 -3
- package/dist/components/Pill/Pill.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/Popover.styles.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +2 -2
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +2 -2
- package/dist/components/Popover/hooks/useFloatingPopover.js +66 -66
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +3 -3
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/RadioMark/RadioMark.js +2 -2
- package/dist/components/RadioMark/RadioMark.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +3 -3
- package/dist/components/Readonly/Readonly.styles.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.d.ts +10 -0
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.styles.js +1 -1
- package/dist/components/Select/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/Select/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/Select/SelectLabel/SelectLabel.styles.js +1 -1
- package/dist/components/Select/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/Select/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/Select/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/Select/SelectTags/SelectTags.js +1 -1
- package/dist/components/Select/SelectTags/SelectTags.styles.js +1 -1
- package/dist/components/Select/components/NativeSelect.js +2 -2
- package/dist/components/Select/components/NativeSelect.styles.js +1 -1
- package/dist/components/Select/components/SelectOptions.d.ts +2 -2
- package/dist/components/Select/components/SelectOptions.js +89 -74
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +1 -1
- package/dist/components/Slideout/Slideout.styles.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/Slider.styles.js +1 -1
- package/dist/components/Slider/components/SliderTicks.js +16 -13
- package/dist/components/Spinner/Spinner.styles.js +2 -2
- package/dist/components/Stack/Stack.js +11 -8
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/Styled/Styled.js +8 -5
- package/dist/components/TabSet/Tab/Tab.js +2 -2
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.styles.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/TableProvider.js +1 -1
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableFilterButton.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/TableRows.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +1 -1
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialColumnFilters.js +1 -1
- package/dist/components/Table/hooks/useTable.js +1 -1
- package/dist/components/Table/hooks/useTableColumnFilter.js +3 -3
- package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +4 -4
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/Tag/Tag.styles.js +1 -1
- package/dist/components/TagInput/TagInput.styles.js +1 -1
- package/dist/components/Text/Text.js +9 -6
- package/dist/components/Text/Text.styles.js +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +16 -16
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/{composeTableColumnDefs-DzUn8D5f.js → composeTableColumnDefs-Ds00wPMn.js} +3 -3
- package/dist/{create-recipe-A316lnq3.js → create-recipe-BWTPSpll.js} +2 -2
- package/dist/{css-R34N3rft.js → css-BRrgGHqo.js} +1 -1
- package/dist/{cva-DcOwIar2.js → cva-1V8NmPTA.js} +1 -1
- package/dist/{factory-BKr3zaf6.js → factory-Dbc35N0_.js} +5 -5
- package/dist/{floating-ui.react-TDMXDOBr.js → floating-ui.react-DP-wD-Nz.js} +70 -59
- package/dist/helpers/formatting/formatDateTime.js +3 -3
- package/dist/helpers/label-value/highlightQueryInLabel.js +1 -1
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/styling/iressCss.js +1 -1
- package/dist/{index.esm-CapMi3wi.js → index.esm-Bl8pnHUv.js} +16 -14
- package/dist/{is-valid-prop-BVyYPT21.js → is-valid-prop-CvqUuuBB.js} +1 -1
- package/dist/{main-TklToXNs.js → main-BY3nH2iz.js} +7 -7
- package/dist/main.js +8 -8
- package/dist/patterns/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/patterns/Breadcrumbs/Breadcrumbs.styles.js +1 -1
- package/dist/patterns/ContextualMenu/ContextualMenu.js +4 -4
- package/dist/patterns/ContextualMenu/ContextualMenu.styles.js +1 -1
- package/dist/patterns/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/patterns/DropdownMenu/DropdownMenu.styles.js +1 -1
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +1 -1
- package/dist/patterns/Form/HookForm/HookForm.js +1 -1
- package/dist/patterns/Loading/Loading.styles.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +3 -3
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +19 -19
- package/dist/patterns/Loading/components/PageLoading.js +1 -1
- package/dist/patterns/Loading/components/StartUpLoading.js +7 -7
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Shadow/Shadow.js +1 -1
- package/dist/patterns/Shadow/index.js +1 -1
- package/dist/patterns/SideNav/SideNav.js +3 -3
- package/dist/patterns/SideNav/SideNav.styles.js +1 -1
- package/dist/{rolldown-runtime-3b4jIN3o.js → rolldown-runtime-DtPi1Y-2.js} +2 -2
- package/dist/{sva-DGhdmNso.js → sva-CG-TbBow.js} +2 -2
- package/dist/{useAutocompleteSearch-BYzUn7Ag.js → useAutocompleteSearch-m33c4lI7.js} +7 -5
- package/package.json +6 -6
- package/dist/Autocomplete-ZqkibVwt.js +0 -327
- package/dist/Slideout-BOH2gwIN.js +0 -194
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { t as e } from "./cx-QcEwjve6.js";
|
|
2
|
+
import { n as t } from "./is-valid-prop-CvqUuuBB.js";
|
|
3
|
+
import { GlobalCSSClass as n } from "./enums.js";
|
|
4
|
+
import { idsLogger as r } from "./helpers/utility/idsLogger.js";
|
|
5
|
+
import { IressText as i } from "./components/Text/Text.js";
|
|
6
|
+
import { propagateTestid as a } from "./helpers/utility/propagateTestid.js";
|
|
7
|
+
import { useIdIfNeeded as o } from "./hooks/useIdIfNeeded.js";
|
|
8
|
+
import { b as s, d as c, g as l, s as u, u as d, y as f } from "./floating-ui.react-DP-wD-Nz.js";
|
|
9
|
+
import { getTransitionDuration as p } from "./helpers/transition/getTransitionDuration.js";
|
|
10
|
+
import { slideout as m } from "./components/Slideout/Slideout.styles.js";
|
|
11
|
+
import { SlideoutInner as ee } from "./components/Slideout/components/SlideoutInner.js";
|
|
12
|
+
import { usePushElement as h } from "./components/Slideout/hooks/usePushElement.js";
|
|
13
|
+
import { useProviderSlideout as te } from "./components/Slideout/hooks/useProviderSlideout.js";
|
|
14
|
+
import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
15
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
16
|
+
//#region ../../node_modules/query-selector-shadow-dom/src/normalize.js
|
|
17
|
+
/* istanbul ignore file */
|
|
18
|
+
function S(e) {
|
|
19
|
+
function t() {
|
|
20
|
+
i && (n.length > 0 && /^[~+>]$/.test(n[n.length - 1]) && n.push(" "), n.push(i));
|
|
21
|
+
}
|
|
22
|
+
var n = [], r, i, a, o = [0], s = 0, c, l = /(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/, u = /^\s+$/, d = [
|
|
23
|
+
/\s+|\/\*|["'>~+[(]/g,
|
|
24
|
+
/\s+|\/\*|["'[\]()]/g,
|
|
25
|
+
/\s+|\/\*|["'[\]()]/g,
|
|
26
|
+
null,
|
|
27
|
+
/\*\//g
|
|
28
|
+
];
|
|
29
|
+
for (e = e.trim();;) if (i = "", a = d[o[o.length - 1]], a.lastIndex = s, r = a.exec(e), r) {
|
|
30
|
+
if (c = s, s = a.lastIndex, c < s - r[0].length && (i = e.substring(c, s - r[0].length)), o[o.length - 1] < 3) {
|
|
31
|
+
if (t(), r[0] === "[") o.push(1);
|
|
32
|
+
else if (r[0] === "(") o.push(2);
|
|
33
|
+
else if (/^["']$/.test(r[0])) o.push(3), d[3] = new RegExp(r[0], "g");
|
|
34
|
+
else if (r[0] === "/*") o.push(4);
|
|
35
|
+
else if (/^[\])]$/.test(r[0]) && o.length > 0) o.pop();
|
|
36
|
+
else if (/^(?:\s+|[~+>])$/.test(r[0]) && (n.length > 0 && !u.test(n[n.length - 1]) && o[o.length - 1] === 0 && n.push(" "), o[o.length - 1] === 1 && n.length === 5 && n[2].charAt(n[2].length - 1) === "=" && (n[4] = " " + n[4]), u.test(r[0]))) continue;
|
|
37
|
+
n.push(r[0]);
|
|
38
|
+
} else n[n.length - 1] += i, l.test(n[n.length - 1]) && (o[o.length - 1] === 4 && (n.length < 2 || u.test(n[n.length - 2]) ? n.pop() : n[n.length - 1] = " ", r[0] = ""), o.pop()), n[n.length - 1] += r[0];
|
|
39
|
+
} else {
|
|
40
|
+
i = e.substr(s), t();
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return n.join("").trim();
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../../node_modules/query-selector-shadow-dom/src/querySelectorDeep.js
|
|
47
|
+
function C(e, t = document, n = null) {
|
|
48
|
+
return w(e, !1, t, n);
|
|
49
|
+
}
|
|
50
|
+
function w(e, t, n, r = null) {
|
|
51
|
+
e = S(e);
|
|
52
|
+
let i = n.querySelector(e);
|
|
53
|
+
return document.head.createShadowRoot || document.head.attachShadow ? !t && i ? i : E(e, ",").reduce((e, i) => {
|
|
54
|
+
if (!t && e) return e;
|
|
55
|
+
let a = E(i.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((e) => !!e).map((e) => E(e, ">")), o = a.length - 1, s = a[o][a[o].length - 1], c = k(s, n, r), l = T(a, o, n);
|
|
56
|
+
return t ? (e = e.concat(c.filter(l)), e) : (e = c.find(l), e || null);
|
|
57
|
+
}, t ? [] : null) : t ? n.querySelectorAll(e) : i;
|
|
58
|
+
}
|
|
59
|
+
function T(e, t, n) {
|
|
60
|
+
return (r) => {
|
|
61
|
+
let i = t, a = r, o = !1;
|
|
62
|
+
for (; a && !D(a);) {
|
|
63
|
+
let t = !0;
|
|
64
|
+
if (e[i].length === 1) t = a.matches(e[i]);
|
|
65
|
+
else {
|
|
66
|
+
let r = [].concat(e[i]).reverse(), o = a;
|
|
67
|
+
for (let e of r) {
|
|
68
|
+
if (!o || !o.matches(e)) {
|
|
69
|
+
t = !1;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
o = O(o, n);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (t && i === 0) {
|
|
76
|
+
o = !0;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
t && i--, a = O(a, n);
|
|
80
|
+
}
|
|
81
|
+
return o;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function E(e, t) {
|
|
85
|
+
return e.match(/\\?.|^$/g).reduce((e, n) => (n === "\"" && !e.sQuote ? (e.quote ^= 1, e.a[e.a.length - 1] += n) : n === "'" && !e.quote ? (e.sQuote ^= 1, e.a[e.a.length - 1] += n) : !e.quote && !e.sQuote && n === t ? e.a.push("") : e.a[e.a.length - 1] += n, e), { a: [""] }).a;
|
|
86
|
+
}
|
|
87
|
+
function D(e) {
|
|
88
|
+
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE || e.nodeType === Node.DOCUMENT_NODE;
|
|
89
|
+
}
|
|
90
|
+
function O(e, t) {
|
|
91
|
+
let n = e.parentNode;
|
|
92
|
+
return n && n.host && n.nodeType === 11 ? n.host : n === t ? null : n;
|
|
93
|
+
}
|
|
94
|
+
function k(e = null, t, n = null) {
|
|
95
|
+
let r = [];
|
|
96
|
+
if (n) r = n;
|
|
97
|
+
else {
|
|
98
|
+
let e = function(t) {
|
|
99
|
+
for (let n = 0; n < t.length; n++) {
|
|
100
|
+
let i = t[n];
|
|
101
|
+
r.push(i), i.shadowRoot && e(i.shadowRoot.querySelectorAll("*"));
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
t.shadowRoot && e(t.shadowRoot.querySelectorAll("*")), e(t.querySelectorAll("*"));
|
|
105
|
+
}
|
|
106
|
+
return e ? r.filter((t) => t.matches(e)) : r;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/Slideout/Slideout.tsx
|
|
110
|
+
var A = ({ children: S, className: w, closeText: T = "Close", container: E, "data-testid": D, defaultShow: O = !1, eleToPush: k, footer: A, heading: j, mode: M = "overlay", onEntered: N, onExited: P, onShowChange: F, onStatus: I, onTransitionEnd: L, position: R = "right", show: z, size: B = "sm", style: ne, ...V }) => {
|
|
111
|
+
let [H, U] = b(O), W = 240, G = y(null), K = te(V.id), q = o({ id: V.id }), J = `${q}--heading`, Y = K.opened || z || H, X = (e, t, n) => {
|
|
112
|
+
K?.show?.(e), U(e), F?.(e, n);
|
|
113
|
+
}, { context: Z } = c({
|
|
114
|
+
open: Y,
|
|
115
|
+
onOpenChange: X
|
|
116
|
+
}), re = d(Z, {
|
|
117
|
+
enabled: !0,
|
|
118
|
+
outsidePress: !1
|
|
119
|
+
}), ie = f(Z), ae = l([re, ie]);
|
|
120
|
+
Z.refs.floating.current && (W = p(Z.refs.floating.current, 1.2, 240));
|
|
121
|
+
let { isMounted: oe, status: Q } = s(Z, { duration: W }), se = m({
|
|
122
|
+
position: R,
|
|
123
|
+
size: B,
|
|
124
|
+
status: Q,
|
|
125
|
+
mode: M
|
|
126
|
+
});
|
|
127
|
+
_(() => {
|
|
128
|
+
K.opened && z && r("IressSlideout: Please use either IressSlideoutProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the slideout will become unpredictable. If you want to show a slideout by default in uncontrolled mode, use the defaultShow prop.");
|
|
129
|
+
}, [K.opened, z]), _(() => {
|
|
130
|
+
I?.(Q);
|
|
131
|
+
}, [Q, I]), _(() => (M === "overlay" ? G.current = null : G.current = ((e) => typeof e == "string" ? C(e) : e instanceof Element ? e : e?.current)(k), () => {
|
|
132
|
+
G.current = null;
|
|
133
|
+
}), [k, M]), _(() => {
|
|
134
|
+
Q === "open" && Z.refs.floating?.current?.focus();
|
|
135
|
+
}, [Z.refs.floating, Q]);
|
|
136
|
+
let ce = v(() => ({
|
|
137
|
+
element: G.current ?? null,
|
|
138
|
+
isActive: M === "push",
|
|
139
|
+
position: R,
|
|
140
|
+
size: B,
|
|
141
|
+
status: Q
|
|
142
|
+
}), [
|
|
143
|
+
G,
|
|
144
|
+
M,
|
|
145
|
+
R,
|
|
146
|
+
B,
|
|
147
|
+
Q
|
|
148
|
+
]);
|
|
149
|
+
h(ce);
|
|
150
|
+
let le = g((e) => {
|
|
151
|
+
L?.(e);
|
|
152
|
+
let t = R === "right" ? "right" : "left";
|
|
153
|
+
e.propertyName !== t && e.propertyName !== "opacity" && e.propertyName || e.target !== e.currentTarget || (Q === "open" ? N?.() : Q === "close" && P?.());
|
|
154
|
+
}, [
|
|
155
|
+
L,
|
|
156
|
+
R,
|
|
157
|
+
Q,
|
|
158
|
+
N,
|
|
159
|
+
P
|
|
160
|
+
]), $ = v(() => typeof j == "string" ? /* @__PURE__ */ x(i, {
|
|
161
|
+
id: J,
|
|
162
|
+
"data-testid": a(D, "heading"),
|
|
163
|
+
element: "h2",
|
|
164
|
+
children: j
|
|
165
|
+
}) : j, [
|
|
166
|
+
D,
|
|
167
|
+
J,
|
|
168
|
+
j
|
|
169
|
+
]);
|
|
170
|
+
if (!oe) return null;
|
|
171
|
+
let ue = e(se.root, w, n.Slideout, Q === "open" && n.SlideoutOpen), [de, fe] = t(V), pe = {
|
|
172
|
+
"aria-labelledby": $ ? J : void 0,
|
|
173
|
+
children: S,
|
|
174
|
+
className: ue,
|
|
175
|
+
closeText: T,
|
|
176
|
+
"data-testid": D,
|
|
177
|
+
footer: A,
|
|
178
|
+
floatingRef: (e) => Z.refs.setFloating(e),
|
|
179
|
+
heading: $,
|
|
180
|
+
id: q,
|
|
181
|
+
onOpenChange: X,
|
|
182
|
+
...de,
|
|
183
|
+
...ae.getFloatingProps(fe),
|
|
184
|
+
onTransitionEnd: le
|
|
185
|
+
};
|
|
186
|
+
return /* @__PURE__ */ x(u, {
|
|
187
|
+
root: E ?? K?.container,
|
|
188
|
+
children: /* @__PURE__ */ x(ee, {
|
|
189
|
+
...pe,
|
|
190
|
+
style: ne,
|
|
191
|
+
"data-testid": D
|
|
192
|
+
})
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
A.displayName = "IressSlideout";
|
|
196
|
+
//#endregion
|
|
197
|
+
export { A as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, f as t, l as n, s as r } from "./css-
|
|
2
|
-
import { n as i } from "./cva-
|
|
3
|
-
import { t as a } from "./create-recipe-
|
|
1
|
+
import { a as e, f as t, l as n, s as r } from "./css-BRrgGHqo.js";
|
|
2
|
+
import { n as i } from "./cva-1V8NmPTA.js";
|
|
3
|
+
import { t as a } from "./create-recipe-BWTPSpll.js";
|
|
4
4
|
//#region src/styled-system/recipes/table.mjs
|
|
5
5
|
var o = {
|
|
6
6
|
compact: !1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, o as i, r as a, s as o, t as s } from "./composeTableColumnDefs-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, o as i, r as a, s as o, t as s } from "./composeTableColumnDefs-Ds00wPMn.js";
|
|
2
2
|
import { composeTableInitialSorting as c } from "./components/Table/helpers/composeTableInitialSorting.js";
|
|
3
3
|
import { composeTableInitialColumnFilters as l } from "./components/Table/helpers/composeTableInitialColumnFilters.js";
|
|
4
4
|
import * as u from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./factory-
|
|
1
|
+
import { t as e } from "./factory-Dbc35N0_.js";
|
|
2
2
|
import { propagateTestid as t } from "./helpers/utility/propagateTestid.js";
|
|
3
|
-
import { i as n, r } from "./TableProvider-
|
|
3
|
+
import { i as n, r } from "./TableProvider-DLIQWfLq.js";
|
|
4
4
|
import { TableBodyCell as i } from "./components/Table/components/TableBodyCell.js";
|
|
5
5
|
import * as a from "react";
|
|
6
6
|
import { useContext as o } from "react";
|
|
@@ -193,7 +193,7 @@ var p = (e, t) => Math.abs(e - t) < 1.01, m = (e, t, n) => {
|
|
|
193
193
|
this.maybeNotify();
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
this.scrollElement = e, this.scrollElement && "ownerDocument" in this.scrollElement ? this.
|
|
196
|
+
this.scrollElement = e, this.targetWindow = this.scrollElement && "ownerDocument" in this.scrollElement ? this.scrollElement.ownerDocument.defaultView : this.scrollElement?.window ?? null, this.elementsCache.forEach((e) => {
|
|
197
197
|
this.observer.observe(e);
|
|
198
198
|
}), this._scrollToOffset(this.getScrollOffset(), {
|
|
199
199
|
adjustments: void 0,
|
|
@@ -329,9 +329,11 @@ var p = (e, t) => Math.abs(e - t) < 1.01, m = (e, t, n) => {
|
|
|
329
329
|
let n = this.measurementsCache[e];
|
|
330
330
|
if (!n) return;
|
|
331
331
|
let r = this.getSize(), i = this.getScrollOffset();
|
|
332
|
-
if (t === "auto")
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
if (t === "auto") {
|
|
333
|
+
if (n.end >= i + r - this.options.scrollPaddingEnd) t = "end";
|
|
334
|
+
else if (n.start <= i + this.options.scrollPaddingStart) t = "start";
|
|
335
|
+
else return [i, t];
|
|
336
|
+
}
|
|
335
337
|
let a = t === "end" ? n.end + this.options.scrollPaddingEnd : n.start - this.options.scrollPaddingStart;
|
|
336
338
|
return [this.getOffsetForAlignment(a, t, n.size), t];
|
|
337
339
|
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (e, { align: t = "start", behavior: n } = {}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, l as t } from "./css-
|
|
2
|
-
import { n, t as r } from "./create-recipe-
|
|
1
|
+
import { f as e, l as t } from "./css-BRrgGHqo.js";
|
|
2
|
+
import { n, t as r } from "./create-recipe-BWTPSpll.js";
|
|
3
3
|
//#region src/styled-system/recipes/text.mjs
|
|
4
4
|
var i = /* @__PURE__ */ r("text", { element: "div" }, [{
|
|
5
5
|
element: [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { IressIcon as i } from "../Icon/Icon.js";
|
|
6
|
-
import { t as a } from "../../Button-
|
|
6
|
+
import { t as a } from "../../Button-x1_YRAyD.js";
|
|
7
7
|
import { IressText as o } from "../Text/Text.js";
|
|
8
8
|
import { propagateTestid as s } from "../../helpers/utility/propagateTestid.js";
|
|
9
9
|
import { alert as c } from "./Alert.styles.js";
|
|
@@ -34,11 +34,15 @@ var h = {
|
|
|
34
34
|
defaultValue: y,
|
|
35
35
|
propName: "closed",
|
|
36
36
|
value: b
|
|
37
|
-
}), z = f(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
}), z = f(() => {
|
|
38
|
+
if (w === !1) return null;
|
|
39
|
+
let e = w ?? h[D];
|
|
40
|
+
return /* @__PURE__ */ p(i, {
|
|
41
|
+
name: e,
|
|
42
|
+
screenreaderText: `${D}: `,
|
|
43
|
+
className: N.icon
|
|
44
|
+
});
|
|
45
|
+
}, [
|
|
42
46
|
N.icon,
|
|
43
47
|
w,
|
|
44
48
|
D
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Autocomplete-
|
|
1
|
+
import { t as e } from "../../Autocomplete-CfNw4UXr.js";
|
|
2
2
|
export { e as IressAutocomplete };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IressPanel as e } from "../../Panel/Panel.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Autocomplete/components/AutocompleteInstructions.tsx
|
|
4
|
-
var n = ({ minSearchLength: n }) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var n = ({ minSearchLength: n }) => {
|
|
5
|
+
let r = `Type at least ${n} character${n === 1 ? "" : "s"} to search`;
|
|
6
|
+
return /* @__PURE__ */ t(e, {
|
|
7
|
+
noBorder: !0,
|
|
8
|
+
children: r
|
|
9
|
+
});
|
|
10
|
+
};
|
|
8
11
|
n.displayName = "AutocompleteInstructions";
|
|
9
12
|
//#endregion
|
|
10
13
|
export { n as AutocompleteInstructions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../useAutocompleteSearch-
|
|
1
|
+
import { t as e } from "../../../useAutocompleteSearch-m33c4lI7.js";
|
|
2
2
|
export { e as useAutocompleteSearch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { autoComplete as e } from "./Autocomplete.styles.js";
|
|
2
|
-
import { t } from "../../useAutocompleteSearch-
|
|
3
|
-
import { t as n } from "../../Autocomplete-
|
|
2
|
+
import { t } from "../../useAutocompleteSearch-m33c4lI7.js";
|
|
3
|
+
import { t as n } from "../../Autocomplete-CfNw4UXr.js";
|
|
4
4
|
export { n as IressAutocomplete, e as autoComplete, t as useAutocompleteSearch };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { IressIcon as i } from "../Icon/Icon.js";
|
|
6
6
|
import { IressTooltip as a } from "../Tooltip/Tooltip.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../../css-
|
|
1
|
+
import { t as e } from "../../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../../is-valid-prop-
|
|
3
|
+
import { n } from "../../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../../enums.js";
|
|
5
5
|
import { IressAvatar as i } from "../Avatar.js";
|
|
6
6
|
import { avatarGroup as a } from "./AvatarGroup.styles.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Button-
|
|
1
|
+
import { t as e } from "../../Button-x1_YRAyD.js";
|
|
2
2
|
export { e as IressButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../../../cx-QcEwjve6.js";
|
|
2
2
|
import { GlobalCSSClass as t } from "../../../enums.js";
|
|
3
|
-
import { t as n } from "../../../Button-
|
|
3
|
+
import { t as n } from "../../../Button-x1_YRAyD.js";
|
|
4
4
|
import { forwardRef as r } from "react";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Button/CloseButton/CloseButton.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
|
+
import { t as r } from "../../factory-Dbc35N0_.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { useIdIfNeeded as o } from "../../hooks/useIdIfNeeded.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { IressText as i } from "../Text/Text.js";
|
|
6
6
|
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
@@ -19,8 +19,8 @@ var d = ({ element: d, className: f, selected: p, children: m, footer: h, headin
|
|
|
19
19
|
hasMedia: E,
|
|
20
20
|
hasPrepend: C,
|
|
21
21
|
noBorder: v
|
|
22
|
-
}), N = k["data-testid"];
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
22
|
+
}), N = k["data-testid"], P = s(() => d ?? i, [d]);
|
|
23
|
+
return /* @__PURE__ */ l(P, {
|
|
24
24
|
...k,
|
|
25
25
|
className: t(e(M.root, j), f, r.Card),
|
|
26
26
|
children: w ? /* @__PURE__ */ u(c, { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
|
+
import { t as r } from "../../factory-Dbc35N0_.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { IressText as a } from "../Text/Text.js";
|
|
7
7
|
import { propagateTestid as o } from "../../helpers/utility/propagateTestid.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { checkboxMark as i } from "./CheckboxMark.styles.js";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
-
import { t } from "../../factory-
|
|
2
|
+
import { t } from "../../factory-Dbc35N0_.js";
|
|
3
3
|
import { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { col as r } from "./Col.styles.js";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
-
import { t } from "../../factory-
|
|
2
|
+
import { t } from "../../factory-Dbc35N0_.js";
|
|
3
3
|
import { GlobalCSSClass as n } from "../../enums.js";
|
|
4
4
|
import { container as r } from "./Container.styles.js";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
5
|
import { divider as i } from "./Divider.styles.js";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
|
+
import { t as r } from "../../factory-Dbc35N0_.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { IressText as a } from "../Text/Text.js";
|
|
7
7
|
import { propagateTestid as o } from "../../helpers/utility/propagateTestid.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
|
+
import { t as r } from "../../factory-Dbc35N0_.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { toArray as o } from "../../helpers/formatting/toArray.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../../css-
|
|
1
|
+
import { t as e } from "../../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../../cx-QcEwjve6.js";
|
|
3
|
-
import { t as n } from "../../../factory-
|
|
3
|
+
import { t as n } from "../../../factory-Dbc35N0_.js";
|
|
4
4
|
import { IressIcon as r } from "../../Icon/Icon.js";
|
|
5
5
|
import { IressText as i } from "../../Text/Text.js";
|
|
6
6
|
import { field as a } from "../Field.styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../../css-
|
|
2
|
-
import { t } from "../../../factory-
|
|
1
|
+
import { t as e } from "../../../css-BRrgGHqo.js";
|
|
2
|
+
import { t } from "../../../factory-Dbc35N0_.js";
|
|
3
3
|
import { IressIcon as n } from "../../Icon/Icon.js";
|
|
4
|
-
import { t as r } from "../../../Button-
|
|
4
|
+
import { t as r } from "../../../Button-x1_YRAyD.js";
|
|
5
5
|
import { propagateTestid as i } from "../../../helpers/utility/propagateTestid.js";
|
|
6
6
|
import { IressTooltip as a } from "../../Tooltip/Tooltip.js";
|
|
7
7
|
import { field as o } from "../Field.styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../../css-
|
|
1
|
+
import { t as e } from "../../css-BRrgGHqo.js";
|
|
2
2
|
import { t } from "../../cx-QcEwjve6.js";
|
|
3
|
-
import { n } from "../../is-valid-prop-
|
|
4
|
-
import { t as r } from "../../factory-
|
|
3
|
+
import { n } from "../../is-valid-prop-CvqUuuBB.js";
|
|
4
|
+
import { t as r } from "../../factory-Dbc35N0_.js";
|
|
5
5
|
import { GlobalCSSClass as i } from "../../enums.js";
|
|
6
6
|
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
7
7
|
import { LabelBase as o } from "../Label/LabelBase/LabelBase.js";
|