@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../factory-
|
|
1
|
+
import { t as e } from "../../factory-Dbc35N0_.js";
|
|
2
2
|
import { useBreakpoint as t } from "../../hooks/useBreakpoint.js";
|
|
3
3
|
import { normaliseHideValues as n } from "./helpers/normaliseHideValues.js";
|
|
4
4
|
import { jsx as r } 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 { icon as i } from "./Icon.styles.js";
|
|
6
6
|
import { GlobalCSSClass as a } from "../../enums.js";
|
|
7
7
|
import { idsLogger as o } from "../../helpers/utility/idsLogger.js";
|
|
@@ -15,7 +15,7 @@ var f = ({ className: f, flip: p, name: m, rotate: h, screenreaderText: g, spin:
|
|
|
15
15
|
v == "fontawesome" && o(`[IressIcon] Font Awesome is deprecated and will be removed in a future version. Please migrate to Material Symbols. Icon name: "${m}"`);
|
|
16
16
|
let S;
|
|
17
17
|
if (x === "material" && (S = c[m] ?? m), u(() => {
|
|
18
|
-
|
|
18
|
+
b && x === "material" && S && b.registerIcon(S);
|
|
19
19
|
}, [
|
|
20
20
|
x,
|
|
21
21
|
b,
|
|
@@ -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 { image as r } from "./Image.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 { inline as r } from "./Inline.styles.js";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { t as e } from "../../cx-QcEwjve6.js";
|
|
2
|
-
import { n as t } from "../../is-valid-prop-
|
|
3
|
-
import { t as n } from "../../factory-
|
|
2
|
+
import { n as t } from "../../is-valid-prop-CvqUuuBB.js";
|
|
3
|
+
import { t as n } from "../../factory-Dbc35N0_.js";
|
|
4
4
|
import { GlobalCSSClass as r } from "../../enums.js";
|
|
5
|
-
import { t as i } from "../../Button-
|
|
6
|
-
import { IressSpinner as
|
|
7
|
-
import { useControlledState as
|
|
8
|
-
import { IressCloseButton as
|
|
9
|
-
import { getFormControlValueAsString as
|
|
10
|
-
import { InputBase as
|
|
11
|
-
import { useNoDefaultValueInForms as
|
|
5
|
+
import { t as i } from "../../Button-x1_YRAyD.js";
|
|
6
|
+
import { IressSpinner as ee } from "../Spinner/Spinner.js";
|
|
7
|
+
import { useControlledState as a } from "../../hooks/useControlledState.js";
|
|
8
|
+
import { IressCloseButton as o } from "../Button/CloseButton/CloseButton.js";
|
|
9
|
+
import { getFormControlValueAsString as s } from "../../helpers/form/getFormControlValueAsString.js";
|
|
10
|
+
import { InputBase as c } from "./InputBase/InputBase.js";
|
|
11
|
+
import { useNoDefaultValueInForms as l } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
12
12
|
import { IressReadonly as u } from "../Readonly/Readonly.js";
|
|
13
13
|
import { input as d } from "./Input.styles.js";
|
|
14
|
-
import { createElement as f, forwardRef as p, useEffect as m, useImperativeHandle as h, useRef as g, useState as
|
|
15
|
-
import { jsx as
|
|
16
|
-
var
|
|
17
|
-
let { loading:
|
|
18
|
-
|
|
14
|
+
import { createElement as f, forwardRef as p, useEffect as m, useImperativeHandle as h, useRef as g, useState as te } from "react";
|
|
15
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
16
|
+
var y = p(({ rows: p, ...y }, b) => {
|
|
17
|
+
let { loading: x = !1, clearable: S = !1, defaultValue: C, onClear: w, width: T, prepend: E, append: D, onChange: O, className: k, readOnly: A, formatter: j, type: M, inline: N, alignRight: P, actions: F, variant: I, autoGrow: ne, ...L } = y, R = p === void 0 ? void 0 : y.autoGrow;
|
|
18
|
+
R === !0 && (R = 5), l({
|
|
19
19
|
component: "IressInput",
|
|
20
|
-
defaultValue:
|
|
20
|
+
defaultValue: C
|
|
21
21
|
});
|
|
22
|
-
let
|
|
22
|
+
let z = g(null), B = g(null), { value: V, setValue: H } = a({
|
|
23
23
|
component: "IressInput",
|
|
24
|
-
defaultValue:
|
|
25
|
-
value:
|
|
26
|
-
}),
|
|
27
|
-
if (p !== void 0 && (
|
|
28
|
-
if (p &&
|
|
29
|
-
let e =
|
|
24
|
+
defaultValue: C,
|
|
25
|
+
value: y.value
|
|
26
|
+
}), U = s(V), [W, G] = te(!1), [K, q] = t(L), J = j && !W ? j(V) : U, Y = j && !W ? { type: "text" } : { type: M };
|
|
27
|
+
if (p !== void 0 && (Y = void 0), h(b, () => ({ ...z.current })), m(() => {
|
|
28
|
+
if (p && R && z.current) {
|
|
29
|
+
let e = z.current.input;
|
|
30
30
|
if (!e) return;
|
|
31
31
|
e.style.height = "auto";
|
|
32
|
-
let t = parseFloat(getComputedStyle(e).lineHeight) * 1.075 *
|
|
32
|
+
let t = parseFloat(getComputedStyle(e).lineHeight) * 1.075 * R, n = Math.min(e.scrollHeight, t);
|
|
33
33
|
e.style.height = `${n}px`, e.style.overflowY = e.scrollHeight > t ? "auto" : "hidden";
|
|
34
34
|
}
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
V,
|
|
37
37
|
p,
|
|
38
|
-
|
|
39
|
-
]),
|
|
40
|
-
...
|
|
41
|
-
actions:
|
|
38
|
+
R
|
|
39
|
+
]), A) return /* @__PURE__ */ _(u, {
|
|
40
|
+
...L,
|
|
41
|
+
actions: F,
|
|
42
42
|
defaultValue: void 0,
|
|
43
|
-
value:
|
|
44
|
-
alignRight:
|
|
45
|
-
append:
|
|
46
|
-
className:
|
|
47
|
-
variant:
|
|
48
|
-
children:
|
|
43
|
+
value: V,
|
|
44
|
+
alignRight: P,
|
|
45
|
+
append: D,
|
|
46
|
+
className: k,
|
|
47
|
+
variant: A,
|
|
48
|
+
children: J
|
|
49
49
|
});
|
|
50
|
-
let
|
|
51
|
-
|
|
50
|
+
let X = (e) => {
|
|
51
|
+
H(""), z.current?.focus();
|
|
52
52
|
let t = new Event("change", { bubbles: !0 });
|
|
53
53
|
Object.defineProperty(t, "target", {
|
|
54
54
|
writable: !1,
|
|
@@ -62,69 +62,75 @@ var b = p(({ rows: p, ...b }, x) => {
|
|
|
62
62
|
...e.currentTarget,
|
|
63
63
|
value: ""
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
66
|
-
},
|
|
65
|
+
}), O?.(t, ""), w?.(t);
|
|
66
|
+
}, Z = (e) => {
|
|
67
67
|
let t = e.target.value;
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
alignRight:
|
|
71
|
-
autoGrow: !!
|
|
72
|
-
inline:
|
|
68
|
+
H(t), O?.(e, t);
|
|
69
|
+
}, Q = d({
|
|
70
|
+
alignRight: P,
|
|
71
|
+
autoGrow: !!R,
|
|
72
|
+
inline: N,
|
|
73
73
|
isTextarea: p !== void 0,
|
|
74
|
-
stretched: !!
|
|
75
|
-
variant:
|
|
76
|
-
width:
|
|
77
|
-
});
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
className: e(r.FormElement, r.Input,
|
|
80
|
-
"data-testid":
|
|
81
|
-
children: [/* @__PURE__ */
|
|
82
|
-
className: e(
|
|
83
|
-
...
|
|
74
|
+
stretched: !!K.stretch,
|
|
75
|
+
variant: I,
|
|
76
|
+
width: T
|
|
77
|
+
}), $ = S && !!U;
|
|
78
|
+
return /* @__PURE__ */ v("div", {
|
|
79
|
+
className: e(r.FormElement, r.Input, k, Q.root),
|
|
80
|
+
"data-testid": L["data-testid"],
|
|
81
|
+
children: [/* @__PURE__ */ v(n.div, {
|
|
82
|
+
className: e(Q.wrapper, r.FormElementInner),
|
|
83
|
+
...K,
|
|
84
84
|
children: [
|
|
85
|
-
|
|
86
|
-
className: e(
|
|
87
|
-
children:
|
|
85
|
+
E && /* @__PURE__ */ _("div", {
|
|
86
|
+
className: e(Q.addon, r.InputAddon),
|
|
87
|
+
children: E
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
...
|
|
91
|
-
...
|
|
92
|
-
className:
|
|
93
|
-
value:
|
|
94
|
-
onChange:
|
|
89
|
+
/* @__PURE__ */ _(c, {
|
|
90
|
+
...q,
|
|
91
|
+
...Y,
|
|
92
|
+
className: Q.formControl,
|
|
93
|
+
value: J,
|
|
94
|
+
onChange: Z,
|
|
95
95
|
onFocus: (e) => {
|
|
96
|
-
|
|
96
|
+
G(!0), L?.onFocus?.(e), B.current ? B.current = null : e.relatedTarget && j && queueMicrotask(() => e.target.select());
|
|
97
97
|
},
|
|
98
98
|
onMouseDown: (e) => {
|
|
99
|
-
|
|
99
|
+
L?.onMouseDown?.(e), B.current = !0;
|
|
100
100
|
},
|
|
101
101
|
onBlur: (e) => {
|
|
102
|
-
|
|
102
|
+
G(!1), L?.onBlur?.(e);
|
|
103
103
|
},
|
|
104
104
|
rows: p,
|
|
105
|
-
ref:
|
|
105
|
+
ref: z
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
className: e(
|
|
109
|
-
children: [
|
|
110
|
-
onClick:
|
|
111
|
-
onMouseDown: (e) =>
|
|
107
|
+
/* @__PURE__ */ v("div", {
|
|
108
|
+
className: e(Q.internal),
|
|
109
|
+
children: [x && /* @__PURE__ */ _(ee, { screenreaderText: x === !0 ? "loading" : x }), S && /* @__PURE__ */ _(o, {
|
|
110
|
+
onClick: $ ? X : void 0,
|
|
111
|
+
onMouseDown: (e) => {
|
|
112
|
+
$ && e.preventDefault();
|
|
113
|
+
},
|
|
112
114
|
screenreaderText: "Clear",
|
|
113
|
-
compact: !0
|
|
115
|
+
compact: !0,
|
|
116
|
+
disabled: !$,
|
|
117
|
+
tabIndex: $ ? 0 : -1,
|
|
118
|
+
style: $ ? void 0 : { visibility: "hidden" },
|
|
119
|
+
"aria-hidden": !$
|
|
114
120
|
})]
|
|
115
121
|
}),
|
|
116
|
-
|
|
117
|
-
className: e(
|
|
118
|
-
children:
|
|
122
|
+
D && /* @__PURE__ */ _("div", {
|
|
123
|
+
className: e(Q.addon, r.InputAddon),
|
|
124
|
+
children: D
|
|
119
125
|
})
|
|
120
126
|
]
|
|
121
|
-
}),
|
|
127
|
+
}), F?.map((t, n) => /* @__PURE__ */ f(i, {
|
|
122
128
|
...t,
|
|
123
|
-
className: e(t.className,
|
|
129
|
+
className: e(t.className, Q.action),
|
|
124
130
|
key: n
|
|
125
131
|
}))]
|
|
126
132
|
});
|
|
127
133
|
});
|
|
128
|
-
|
|
134
|
+
y.displayName = "IressInput";
|
|
129
135
|
//#endregion
|
|
130
|
-
export {
|
|
136
|
+
export { y as IressInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../../factory-
|
|
1
|
+
import { t as e } from "../../../factory-Dbc35N0_.js";
|
|
2
2
|
import { forwardRef as t, useImperativeHandle as n, useRef as r } from "react";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
var a = t(({ "data-testid": t, rows: a, ...o }, s) => {
|
|
@@ -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 { IressIcon as r } from "../../Icon/Icon.js";
|
|
5
5
|
import { propagateTestid as i } from "../../../helpers/utility/propagateTestid.js";
|
|
@@ -14,8 +14,8 @@ var d = ({ append: d, children: f, className: p, "data-testid": m, element: h, h
|
|
|
14
14
|
}), C = (e) => {
|
|
15
15
|
let t = e?.textContent;
|
|
16
16
|
t && t !== b && x(t);
|
|
17
|
-
};
|
|
18
|
-
return /* @__PURE__ */ u(
|
|
17
|
+
}, w = o(() => t(h ?? "label"), [h]);
|
|
18
|
+
return /* @__PURE__ */ u(w, {
|
|
19
19
|
className: e(p, n.FormLabel, n.Label, S.root),
|
|
20
20
|
"data-testid": m,
|
|
21
21
|
...y,
|
|
@@ -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 { IressSpinner as i } from "../Spinner/Spinner.js";
|
|
6
6
|
import { link as a } from "./Link.styles.js";
|
|
@@ -48,8 +48,8 @@ var p = o(({ active: o, append: p, children: m, className: h, element: g, loadin
|
|
|
48
48
|
C.prepend,
|
|
49
49
|
C.root,
|
|
50
50
|
C.spinner
|
|
51
|
-
]);
|
|
52
|
-
return /* @__PURE__ */ d(
|
|
51
|
+
]), O = l(() => g ?? (T.href ? "a" : "button"), [g, T.href]);
|
|
52
|
+
return /* @__PURE__ */ d(O, {
|
|
53
53
|
"aria-describedby": _ ? S : void 0,
|
|
54
54
|
type: g || !T.href ? "button" : void 0,
|
|
55
55
|
...D,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { toArray as r } from "../../helpers/formatting/toArray.js";
|
|
5
5
|
import { useControlledState as i } from "../../hooks/useControlledState.js";
|
|
6
6
|
import { useIdIfNeeded as a } from "../../hooks/useIdIfNeeded.js";
|
|
7
|
-
import { t as o } from "../../floating-ui.react-
|
|
7
|
+
import { t as o } from "../../floating-ui.react-DP-wD-Nz.js";
|
|
8
8
|
import { usePopover as s } from "../Popover/hooks/usePopover.js";
|
|
9
9
|
import { IressTooltipProvider as c } from "../Tooltip/TooltipProvider.js";
|
|
10
10
|
import { menu as l } from "./Menu.styles.js";
|