@iress-oss/ids-components 6.0.0-alpha.5 → 6.0.0-alpha.7
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/{Autocomplete-C5ubHBTi.js → Autocomplete-BQ_YPb5A.js} +1 -1
- package/dist/{Button-mmhMLwp9.js → Button-B4nt3P1v.js} +13 -22
- package/dist/{Provider-8wS70V56.js → Provider-CDIbqQK0.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.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/Checkbox/Checkbox.styles.js +5 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +5 -1
- package/dist/components/Filter/Filter.js +2 -2
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.js +2 -2
- package/dist/components/Label/LabelBase/LabelBase.js +28 -23
- package/dist/components/Modal/Modal.js +39 -38
- package/dist/components/Modal/Modal.styles.js +23 -0
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +41 -41
- package/dist/components/Radio/Radio.styles.js +7 -2
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +2 -4
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -5
- package/dist/components/RichSelect/components/SelectOptions.js +61 -60
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +4 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toggle/Toggle.styles.js +4 -3
- package/dist/constants.js +1 -1
- package/dist/enums.js +3 -3
- package/dist/{index-CZ9ot38T.js → index-aTLA1VIV.js} +1 -1
- package/dist/main.js +3 -3
- package/dist/patterns/Form/FormField/FormField.js +5 -5
- package/dist/patterns/Form/FormField/FormFieldset.js +1 -1
- package/dist/patterns/Form/HookForm/HookForm.js +8 -8
- package/dist/patterns/Form/components/LongForm.js +9 -9
- package/dist/patterns/Form/components/ShortForm.js +7 -7
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Shadow/Shadow.js +73 -69
- package/dist/src/components/Modal/Modal.d.ts +8 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +23 -0
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +10 -0
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/enums.d.ts +2 -1
- package/dist/src/patterns/Form/FormField/hooks/useFieldRenderProps.d.ts +3 -9
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/index.esm-BiUTGNH8.js +0 -1080
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as j, useContext as A } from "react";
|
|
3
3
|
import { useControlledState as B } from "../../hooks/useControlledState.js";
|
|
4
4
|
import { useIdIfNeeded as E } from "../../hooks/useIdIfNeeded.js";
|
|
@@ -6,109 +6,109 @@ import { propagateTestid as l } from "../../helpers/utility/propagateTestid.js";
|
|
|
6
6
|
import { IressReadonly as H } from "../Readonly/Readonly.js";
|
|
7
7
|
import "../Readonly/Readonly.styles.js";
|
|
8
8
|
import { getFormControlValueAsString as P } from "../../helpers/form/getFormControlValueAsString.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as p } from "../../css-fGu_jDvv.js";
|
|
10
10
|
import { c as z } from "../../cx-DN21T1EH.js";
|
|
11
11
|
import { radio as D } from "./Radio.styles.js";
|
|
12
|
-
import { GlobalCSSClass as
|
|
12
|
+
import { GlobalCSSClass as h } from "../../enums.js";
|
|
13
13
|
import { IressCheckboxMark as J } from "../CheckboxMark/CheckboxMark.js";
|
|
14
14
|
import "../CheckboxMark/CheckboxMark.styles.js";
|
|
15
15
|
import { getRadioGroupContext as K } from "../RadioGroup/RadioGroup.js";
|
|
16
16
|
import "../RadioGroup/RadioGroup.styles.js";
|
|
17
|
-
import { s as
|
|
17
|
+
import { s as u } from "../../factory-oPXoMw9H.js";
|
|
18
18
|
import { s as L } from "../../is-valid-prop-Ce0wiweq.js";
|
|
19
19
|
import { IressText as Q } from "../Text/Text.js";
|
|
20
|
-
const T = (
|
|
21
|
-
|
|
20
|
+
const T = (i) => /* @__PURE__ */ e(
|
|
21
|
+
u.svg,
|
|
22
22
|
{
|
|
23
23
|
version: "1.1",
|
|
24
24
|
viewBox: "0 0 200 200",
|
|
25
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
-
...
|
|
27
|
-
className:
|
|
26
|
+
...i,
|
|
27
|
+
className: h.FormElement,
|
|
28
28
|
children: /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70" })
|
|
29
29
|
}
|
|
30
30
|
), U = ({
|
|
31
|
-
checked:
|
|
32
|
-
children:
|
|
31
|
+
checked: i,
|
|
32
|
+
children: f,
|
|
33
33
|
className: x,
|
|
34
|
-
"data-testid":
|
|
34
|
+
"data-testid": a,
|
|
35
35
|
defaultChecked: g,
|
|
36
36
|
hiddenControl: y,
|
|
37
37
|
name: R,
|
|
38
38
|
onChange: w,
|
|
39
|
-
readOnly:
|
|
40
|
-
required:
|
|
41
|
-
value:
|
|
42
|
-
touch:
|
|
39
|
+
readOnly: b,
|
|
40
|
+
required: v,
|
|
41
|
+
value: t,
|
|
42
|
+
touch: N,
|
|
43
43
|
...n
|
|
44
|
-
},
|
|
45
|
-
const
|
|
44
|
+
}, M) => {
|
|
45
|
+
const k = E(n), o = A(K()), { value: S, setValue: G } = B({
|
|
46
46
|
component: "Radio",
|
|
47
47
|
defaultValue: !!g,
|
|
48
|
-
value:
|
|
48
|
+
value: i,
|
|
49
49
|
propName: "checked"
|
|
50
|
-
}), d = !!o?.onChange, s = d ? o.value ===
|
|
51
|
-
if (d ? o.readOnly :
|
|
50
|
+
}), d = !!o?.onChange, s = d ? o.value === t : S;
|
|
51
|
+
if (d ? o.readOnly : b)
|
|
52
52
|
return s ? /* @__PURE__ */ e(
|
|
53
53
|
H,
|
|
54
54
|
{
|
|
55
55
|
...n,
|
|
56
56
|
width: void 0,
|
|
57
|
-
value: P(
|
|
58
|
-
children:
|
|
57
|
+
value: P(t),
|
|
58
|
+
children: f
|
|
59
59
|
}
|
|
60
60
|
) : null;
|
|
61
|
-
const I = o?.name ?? R, c = o?.hiddenRadio ?? y, O = o?.required ??
|
|
61
|
+
const I = o?.name ?? R, c = o?.hiddenRadio ?? y, O = o?.required ?? v, q = o?.touch ?? N, r = D.raw({
|
|
62
62
|
hiddenControl: c,
|
|
63
63
|
touch: q,
|
|
64
64
|
checked: s
|
|
65
65
|
}), [F, V] = L(n);
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ C(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
"data-testid":
|
|
69
|
+
"data-testid": a,
|
|
70
70
|
className: z(
|
|
71
71
|
x,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
p(r.root, F),
|
|
73
|
+
h.Group,
|
|
74
|
+
h.Radio
|
|
75
75
|
),
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ e(
|
|
78
|
-
|
|
78
|
+
u.input,
|
|
79
79
|
{
|
|
80
80
|
...V,
|
|
81
|
-
...
|
|
81
|
+
...r.input,
|
|
82
82
|
type: "radio",
|
|
83
|
-
id:
|
|
83
|
+
id: k,
|
|
84
84
|
name: I,
|
|
85
|
-
ref:
|
|
86
|
-
"data-testid": l(
|
|
85
|
+
ref: M,
|
|
86
|
+
"data-testid": l(a, "input"),
|
|
87
87
|
onChange: (m) => {
|
|
88
|
-
d || G(m.target.checked), w?.(m,
|
|
88
|
+
d || G(m.target.checked), w?.(m, t), o?.onChange?.(m, t);
|
|
89
89
|
},
|
|
90
|
-
value: String(
|
|
90
|
+
value: String(t),
|
|
91
91
|
checked: s,
|
|
92
92
|
required: O
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ C(u.label, { htmlFor: k, ...r.label, children: [
|
|
96
96
|
!c && /* @__PURE__ */ e(
|
|
97
97
|
T,
|
|
98
98
|
{
|
|
99
|
-
...
|
|
100
|
-
"data-testid": l(
|
|
99
|
+
...r.radioMark,
|
|
100
|
+
"data-testid": l(a, "radioMark")
|
|
101
101
|
}
|
|
102
102
|
),
|
|
103
103
|
c && /* @__PURE__ */ e(
|
|
104
104
|
J,
|
|
105
105
|
{
|
|
106
|
-
className:
|
|
106
|
+
className: p(r.checkboxMark),
|
|
107
107
|
checked: s,
|
|
108
|
-
"data-testid": l(
|
|
108
|
+
"data-testid": l(a, "checkboxMark")
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
|
-
/* @__PURE__ */ e(Q, { element: "span", children:
|
|
111
|
+
/* @__PURE__ */ e(Q, { element: "span", className: p(r.labelContent), children: f })
|
|
112
112
|
] })
|
|
113
113
|
]
|
|
114
114
|
}
|
|
@@ -4,6 +4,7 @@ const e = r({
|
|
|
4
4
|
"root",
|
|
5
5
|
"input",
|
|
6
6
|
"label",
|
|
7
|
+
"labelContent",
|
|
7
8
|
"radioMark",
|
|
8
9
|
"checkedRadioMark",
|
|
9
10
|
"checkboxMark"
|
|
@@ -15,6 +16,7 @@ const e = r({
|
|
|
15
16
|
position: "relative",
|
|
16
17
|
padding: "spacing.0",
|
|
17
18
|
transition: "[all 0.2s ease-out]",
|
|
19
|
+
textStyle: "typography.body.md",
|
|
18
20
|
"&:has(svg:hover)": {
|
|
19
21
|
color: "colour.primary.fillHover"
|
|
20
22
|
}
|
|
@@ -41,6 +43,9 @@ const e = r({
|
|
|
41
43
|
margin: "[0px]",
|
|
42
44
|
cursor: "pointer"
|
|
43
45
|
},
|
|
46
|
+
labelContent: {
|
|
47
|
+
font: "inherit"
|
|
48
|
+
},
|
|
44
49
|
radioMark: {
|
|
45
50
|
boxSizing: "border-box",
|
|
46
51
|
position: "relative",
|
|
@@ -51,8 +56,8 @@ const e = r({
|
|
|
51
56
|
display: "inline-flex",
|
|
52
57
|
alignItems: "center",
|
|
53
58
|
justifyContent: "center",
|
|
54
|
-
width: "[
|
|
55
|
-
height: "[
|
|
59
|
+
width: "[1.4em]",
|
|
60
|
+
height: "[1.4em]",
|
|
56
61
|
borderRadius: "[100%]",
|
|
57
62
|
marginInlineEnd: "spacing.2",
|
|
58
63
|
flexShrink: 0,
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import "../../cx-DN21T1EH.js";
|
|
4
4
|
import "./RichSelect.styles.js";
|
|
5
5
|
import "./hooks/useRichSelectState.js";
|
|
6
|
-
import { I as K } from "../../Autocomplete-
|
|
6
|
+
import { I as K } from "../../Autocomplete-BQ_YPb5A.js";
|
|
7
7
|
import "./SelectBody/SelectBody.styles.js";
|
|
8
8
|
import "../../enums.js";
|
|
9
9
|
import "../Menu/Menu.js";
|
|
@@ -21,7 +21,7 @@ import "../Popover/Popover.styles.js";
|
|
|
21
21
|
import "../Popover/InputPopover/InputPopover.js";
|
|
22
22
|
import "./SelectSearchInput/SelectSearchInput.js";
|
|
23
23
|
import "./SelectTags/SelectTags.styles.js";
|
|
24
|
-
import "../../Button-
|
|
24
|
+
import "../../Button-B4nt3P1v.js";
|
|
25
25
|
import "../Button/CloseButton/CloseButton.js";
|
|
26
26
|
import "../Tag/Tag.styles.js";
|
|
27
27
|
import "../Tag/TagInput/TagInput.js";
|
|
@@ -8,7 +8,7 @@ import "../../Divider/Divider.styles.js";
|
|
|
8
8
|
import { GlobalCSSClass as p } from "../../../enums.js";
|
|
9
9
|
import "../../Menu/MenuItem/MenuItem.js";
|
|
10
10
|
import { IressMenuHeading as I } from "../../Menu/MenuText/MenuText.js";
|
|
11
|
-
import { I as v } from "../../../Button-
|
|
11
|
+
import { I as v } from "../../../Button-B4nt3P1v.js";
|
|
12
12
|
import "../../Button/CloseButton/CloseButton.js";
|
|
13
13
|
import "../../Popover/Popover.js";
|
|
14
14
|
import "../../Popover/Popover.styles.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e } from "../../../sva-OmxClA9g.js";
|
|
2
|
-
const
|
|
2
|
+
const o = e({
|
|
3
3
|
slots: ["selectLabel", "contents", "placeholder", "prepend", "append"],
|
|
4
4
|
base: {
|
|
5
5
|
selectLabel: {
|
|
@@ -22,13 +22,11 @@ const n = e({
|
|
|
22
22
|
transition: "common",
|
|
23
23
|
_focusWithin: {
|
|
24
24
|
backgroundColor: "colour.neutral.10",
|
|
25
|
-
borderColor: "colour.primary.fill",
|
|
26
25
|
layerStyle: "elevation.focus",
|
|
27
26
|
outline: "[none]"
|
|
28
27
|
},
|
|
29
28
|
_active: {
|
|
30
29
|
backgroundColor: "colour.neutral.10",
|
|
31
|
-
borderColor: "colour.primary.fill",
|
|
32
30
|
layerStyle: "elevation.focus",
|
|
33
31
|
outline: "[none]"
|
|
34
32
|
}
|
|
@@ -87,5 +85,5 @@ const n = e({
|
|
|
87
85
|
}
|
|
88
86
|
});
|
|
89
87
|
export {
|
|
90
|
-
|
|
88
|
+
o as selectLabel
|
|
91
89
|
};
|
|
@@ -20,7 +20,7 @@ import { IressMenuItem as D } from "../../Menu/MenuItem/MenuItem.js";
|
|
|
20
20
|
import { IressPopover as G } from "../../Popover/Popover.js";
|
|
21
21
|
import "../../Popover/Popover.styles.js";
|
|
22
22
|
import "../../Popover/InputPopover/InputPopover.js";
|
|
23
|
-
import { I as R } from "../../../Button-
|
|
23
|
+
import { I as R } from "../../../Button-B4nt3P1v.js";
|
|
24
24
|
import "../../Button/CloseButton/CloseButton.js";
|
|
25
25
|
import { IressIcon as W } from "../../Icon/Icon.js";
|
|
26
26
|
import "../../Icon/Icon.styles.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
const
|
|
1
|
+
import { s as e } from "../../../sva-OmxClA9g.js";
|
|
2
|
+
const l = e({
|
|
3
3
|
slots: ["root", "placeholder", "prepend", "append", "tag", "tagsList"],
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
@@ -24,13 +24,11 @@ const r = o({
|
|
|
24
24
|
},
|
|
25
25
|
"&:focus": {
|
|
26
26
|
backgroundColor: "colour.neutral.10",
|
|
27
|
-
borderColor: "colour.primary.fill",
|
|
28
27
|
layerStyle: "elevation.focus",
|
|
29
28
|
outline: "[none]"
|
|
30
29
|
},
|
|
31
30
|
"&:focus-within": {
|
|
32
31
|
backgroundColor: "colour.neutral.10",
|
|
33
|
-
borderColor: "colour.primary.fill",
|
|
34
32
|
layerStyle: "elevation.focus",
|
|
35
33
|
outline: "[none]"
|
|
36
34
|
},
|
|
@@ -82,5 +80,5 @@ const r = o({
|
|
|
82
80
|
}
|
|
83
81
|
});
|
|
84
82
|
export {
|
|
85
|
-
|
|
83
|
+
l as selectTags
|
|
86
84
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { getValueAsEvent as
|
|
1
|
+
import { jsx as s, jsxs as y, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { getValueAsEvent as F } from "../../../helpers/form/getValueAsEvent.js";
|
|
3
3
|
import { useCallback as O, useRef as j, useId as k, useEffect as P } from "react";
|
|
4
4
|
import { IressSelectSearch as $ } from "../SelectSearch/SelectSearch.js";
|
|
5
5
|
import { toArray as D } from "../../../helpers/formatting/toArray.js";
|
|
6
|
-
import { IressSelectMenu as
|
|
6
|
+
import { IressSelectMenu as E } from "../SelectMenu/SelectMenu.js";
|
|
7
7
|
import { IressAlert as T } from "../../Alert/Alert.js";
|
|
8
8
|
import "../../Alert/Alert.styles.js";
|
|
9
9
|
import { IressSelectSearchInput as z } from "../SelectSearchInput/SelectSearchInput.js";
|
|
@@ -15,19 +15,19 @@ import "../../Menu/MenuItem/MenuItem.js";
|
|
|
15
15
|
import "../../Popover/hooks/usePopover.js";
|
|
16
16
|
const H = ({
|
|
17
17
|
minSearchLength: e,
|
|
18
|
-
multiSelect:
|
|
19
|
-
onChange:
|
|
18
|
+
multiSelect: r,
|
|
19
|
+
onChange: i,
|
|
20
20
|
query: I,
|
|
21
21
|
results: o,
|
|
22
22
|
shouldShowInstructions: d,
|
|
23
23
|
shouldShowNoResults: c,
|
|
24
24
|
value: t
|
|
25
25
|
}) => /* @__PURE__ */ s(
|
|
26
|
-
|
|
26
|
+
E,
|
|
27
27
|
{
|
|
28
|
-
heading:
|
|
28
|
+
heading: r ? "Search results" : void 0,
|
|
29
29
|
items: o,
|
|
30
|
-
multiSelect:
|
|
30
|
+
multiSelect: r,
|
|
31
31
|
noResults: (() => {
|
|
32
32
|
if (I) {
|
|
33
33
|
if (d)
|
|
@@ -36,18 +36,18 @@ const H = ({
|
|
|
36
36
|
return "No results found";
|
|
37
37
|
}
|
|
38
38
|
})(),
|
|
39
|
-
onChange:
|
|
39
|
+
onChange: i,
|
|
40
40
|
selected: t,
|
|
41
|
-
hideSelectedItems:
|
|
41
|
+
hideSelectedItems: r
|
|
42
42
|
}
|
|
43
|
-
), J = ({ error: e }) => e ? /* @__PURE__ */ s(T, { className: "iress-m--sm", status: "danger", children: typeof e == "string" ? e : /* @__PURE__ */
|
|
43
|
+
), J = ({ error: e }) => e ? /* @__PURE__ */ s(T, { className: "iress-m--sm", status: "danger", children: typeof e == "string" ? e : /* @__PURE__ */ y(W, { children: [
|
|
44
44
|
"An unknown error occurred.",
|
|
45
45
|
/* @__PURE__ */ s("br", {}),
|
|
46
46
|
" Please contact support if the error persists."
|
|
47
47
|
] }) }) : null, K = ({
|
|
48
48
|
autoHighlight: e,
|
|
49
|
-
error:
|
|
50
|
-
loading:
|
|
49
|
+
error: r,
|
|
50
|
+
loading: i,
|
|
51
51
|
minSearchLength: I,
|
|
52
52
|
multiSelect: o,
|
|
53
53
|
onChange: d,
|
|
@@ -56,62 +56,62 @@ const H = ({
|
|
|
56
56
|
results: f,
|
|
57
57
|
setQuery: p,
|
|
58
58
|
show: A,
|
|
59
|
-
value:
|
|
59
|
+
value: l,
|
|
60
60
|
shouldShowInstructions: R,
|
|
61
61
|
shouldShowNoResults: S
|
|
62
62
|
}) => {
|
|
63
|
-
const
|
|
64
|
-
(
|
|
65
|
-
const { formattedLabel: g, ...
|
|
66
|
-
return
|
|
63
|
+
const n = D(l).map(
|
|
64
|
+
(a) => {
|
|
65
|
+
const { formattedLabel: g, ...N } = a;
|
|
66
|
+
return N;
|
|
67
67
|
}
|
|
68
|
-
), u = !
|
|
68
|
+
), u = !r && (!!f?.length || t && !i), m = !!n.length && o, v = u && m, h = j(null), x = k();
|
|
69
69
|
P(() => {
|
|
70
70
|
A || p?.("");
|
|
71
71
|
}, [A, p]);
|
|
72
|
-
const
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
const M = m ? n.length + 1 : 0;
|
|
73
|
+
return /* @__PURE__ */ y(
|
|
74
74
|
$,
|
|
75
75
|
{
|
|
76
76
|
activator: /* @__PURE__ */ s(
|
|
77
77
|
z,
|
|
78
78
|
{
|
|
79
79
|
"aria-label": "Search",
|
|
80
|
-
loading:
|
|
81
|
-
onChange: (
|
|
80
|
+
loading: i,
|
|
81
|
+
onChange: (a) => p?.(a.target.value),
|
|
82
82
|
ref: h,
|
|
83
83
|
placeholder: "Search and select",
|
|
84
84
|
value: t
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
87
|
autoHighlight: e,
|
|
88
|
-
focusStartIndex: e ? t && u ?
|
|
88
|
+
focusStartIndex: e ? t && u ? M : m ? 1 : 0 : void 0,
|
|
89
89
|
children: [
|
|
90
90
|
m && /* @__PURE__ */ s(
|
|
91
|
-
|
|
91
|
+
E,
|
|
92
92
|
{
|
|
93
93
|
"aria-labelledby": x,
|
|
94
94
|
heading: /* @__PURE__ */ s(
|
|
95
95
|
B,
|
|
96
96
|
{
|
|
97
97
|
clearAll: !0,
|
|
98
|
-
onClearAll: (
|
|
99
|
-
c?.(
|
|
98
|
+
onClearAll: (a) => {
|
|
99
|
+
c?.(a), h.current?.focus();
|
|
100
100
|
},
|
|
101
|
-
children: /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ y("h2", { id: x, children: [
|
|
102
102
|
"Selected (",
|
|
103
|
-
|
|
103
|
+
n.length,
|
|
104
104
|
")"
|
|
105
105
|
] })
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
|
-
items:
|
|
108
|
+
items: n,
|
|
109
109
|
multiSelect: o,
|
|
110
110
|
onChange: d,
|
|
111
|
-
selected:
|
|
111
|
+
selected: l
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
|
|
114
|
+
v && /* @__PURE__ */ s(G, {}),
|
|
115
115
|
u && /* @__PURE__ */ s(
|
|
116
116
|
H,
|
|
117
117
|
{
|
|
@@ -120,19 +120,19 @@ const H = ({
|
|
|
120
120
|
onChange: d,
|
|
121
121
|
query: t,
|
|
122
122
|
results: f,
|
|
123
|
-
value:
|
|
123
|
+
value: l,
|
|
124
124
|
shouldShowInstructions: R,
|
|
125
125
|
shouldShowNoResults: S
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */ s(J, { error:
|
|
128
|
+
/* @__PURE__ */ s(J, { error: r })
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
}, oe = ({
|
|
133
133
|
autoHighlight: e,
|
|
134
|
-
debouncedQuery:
|
|
135
|
-
error:
|
|
134
|
+
debouncedQuery: r,
|
|
135
|
+
error: i,
|
|
136
136
|
initialOptions: I,
|
|
137
137
|
loading: o,
|
|
138
138
|
minSearchLength: d,
|
|
@@ -141,36 +141,38 @@ const H = ({
|
|
|
141
141
|
options: f,
|
|
142
142
|
query: p,
|
|
143
143
|
renderOptions: A,
|
|
144
|
-
results:
|
|
144
|
+
results: l,
|
|
145
145
|
setQuery: R,
|
|
146
146
|
setShow: S,
|
|
147
|
-
setValue:
|
|
147
|
+
setValue: n,
|
|
148
148
|
show: u,
|
|
149
149
|
shouldShowInstructions: m,
|
|
150
|
-
shouldShowNoResults:
|
|
150
|
+
shouldShowNoResults: v,
|
|
151
151
|
value: h
|
|
152
152
|
}) => {
|
|
153
|
-
const x = typeof f == "function",
|
|
153
|
+
const x = typeof f == "function", M = I ?? (x ? [] : f), C = l.length ? l : M, b = O(
|
|
154
154
|
(g) => {
|
|
155
|
-
|
|
155
|
+
n(g), t?.(F(g), g), c || S(!1);
|
|
156
156
|
},
|
|
157
|
-
[S,
|
|
158
|
-
),
|
|
157
|
+
[S, n, t, c]
|
|
158
|
+
), a = O(
|
|
159
159
|
(g) => {
|
|
160
160
|
g.stopPropagation();
|
|
161
|
-
const
|
|
162
|
-
|
|
161
|
+
const N = [];
|
|
162
|
+
n(N), t?.(F([]), N);
|
|
163
163
|
},
|
|
164
|
-
[
|
|
164
|
+
[n, t]
|
|
165
165
|
);
|
|
166
166
|
return A ? A({
|
|
167
167
|
close: () => S(!1),
|
|
168
|
-
debouncedQuery:
|
|
169
|
-
error:
|
|
168
|
+
debouncedQuery: r,
|
|
169
|
+
error: i,
|
|
170
|
+
handleClear: a,
|
|
171
|
+
handleMenuChange: b,
|
|
170
172
|
loading: o,
|
|
171
173
|
query: p,
|
|
172
|
-
results:
|
|
173
|
-
setValue:
|
|
174
|
+
results: C,
|
|
175
|
+
setValue: n,
|
|
174
176
|
setQuery: R,
|
|
175
177
|
show: u,
|
|
176
178
|
value: h
|
|
@@ -178,28 +180,27 @@ const H = ({
|
|
|
178
180
|
K,
|
|
179
181
|
{
|
|
180
182
|
autoHighlight: e,
|
|
181
|
-
error:
|
|
183
|
+
error: i,
|
|
182
184
|
loading: o,
|
|
183
185
|
minSearchLength: d,
|
|
184
186
|
multiSelect: c,
|
|
185
|
-
onChange:
|
|
186
|
-
onClear:
|
|
187
|
+
onChange: b,
|
|
188
|
+
onClear: a,
|
|
187
189
|
query: p,
|
|
188
|
-
results:
|
|
190
|
+
results: l,
|
|
189
191
|
setQuery: R,
|
|
190
192
|
show: u,
|
|
191
193
|
value: h,
|
|
192
194
|
shouldShowInstructions: m,
|
|
193
|
-
shouldShowNoResults:
|
|
195
|
+
shouldShowNoResults: v
|
|
194
196
|
}
|
|
195
197
|
) : /* @__PURE__ */ s(
|
|
196
|
-
|
|
198
|
+
E,
|
|
197
199
|
{
|
|
198
|
-
items:
|
|
200
|
+
items: C,
|
|
199
201
|
multiSelect: c,
|
|
200
|
-
onChange:
|
|
201
|
-
selected: h
|
|
202
|
-
selectedFirst: !0
|
|
202
|
+
onChange: b,
|
|
203
|
+
selected: h
|
|
203
204
|
}
|
|
204
205
|
);
|
|
205
206
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRichSelectState as t } from "./hooks/useRichSelectState.js";
|
|
2
|
-
import { I as s } from "../../Autocomplete-
|
|
2
|
+
import { I as s } from "../../Autocomplete-BQ_YPb5A.js";
|
|
3
3
|
import { IressSelectBody as S } from "./SelectBody/SelectBody.js";
|
|
4
4
|
import { IressSelectCreate as p } from "./SelectCreate/SelectCreate.js";
|
|
5
5
|
import { IressSelectHeading as f } from "./SelectHeading/SelectHeading.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m } from "react";
|
|
3
|
-
import { I as p } from "../../Button-
|
|
3
|
+
import { I as p } from "../../Button-B4nt3P1v.js";
|
|
4
4
|
import "../Button/CloseButton/CloseButton.js";
|
|
5
5
|
import { c as k } from "../../cx-DN21T1EH.js";
|
|
6
6
|
import { skipLink as n } from "./SkipLink.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { propagateTestid as o } from "../../../helpers/utility/propagateTestid.js";
|
|
3
|
-
import "../../../Button-
|
|
3
|
+
import "../../../Button-B4nt3P1v.js";
|
|
4
4
|
import { IressCloseButton as j } from "../../Button/CloseButton/CloseButton.js";
|
|
5
5
|
import { slideout as v } from "../Slideout.styles.js";
|
|
6
6
|
import { s as f } from "../../../factory-oPXoMw9H.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as m, useEffect as y } from "react";
|
|
2
2
|
import { GlobalCSSClass as e } from "../../../enums.js";
|
|
3
|
-
import { t as p } from "../../../index-
|
|
3
|
+
import { t as p } from "../../../index-aTLA1VIV.js";
|
|
4
4
|
import { useBreakpoint as S } from "../../../hooks/useBreakpoint.js";
|
|
5
5
|
function h({
|
|
6
6
|
element: r,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as u } from "react";
|
|
3
3
|
import { propagateTestid as d } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
-
import "../../Button-
|
|
4
|
+
import "../../Button-B4nt3P1v.js";
|
|
5
5
|
import { IressCloseButton as x } from "../Button/CloseButton/CloseButton.js";
|
|
6
6
|
import { IressText as C } from "../Text/Text.js";
|
|
7
7
|
import { tag as g } from "./Tag.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { propagateTestid as i } from "../../../../helpers/utility/propagateTestid.js";
|
|
3
|
-
import "../../../../Button-
|
|
3
|
+
import "../../../../Button-B4nt3P1v.js";
|
|
4
4
|
import { IressCloseButton as h } from "../../../Button/CloseButton/CloseButton.js";
|
|
5
5
|
import "../../../Inline/Inline.styles.js";
|
|
6
6
|
import { IressInline as y } from "../../../Inline/Inline.js";
|
|
@@ -12,7 +12,8 @@ const t = e({
|
|
|
12
12
|
toggleBase: {
|
|
13
13
|
display: "inline-flex",
|
|
14
14
|
gap: "spacing.1",
|
|
15
|
-
color: "colour.primary.fill"
|
|
15
|
+
color: "colour.primary.fill",
|
|
16
|
+
textStyle: "typography.body.md.strong"
|
|
16
17
|
},
|
|
17
18
|
toggleButtonContainer: {
|
|
18
19
|
position: "relative",
|
|
@@ -81,7 +82,8 @@ const t = e({
|
|
|
81
82
|
},
|
|
82
83
|
checkboxMark: {
|
|
83
84
|
opacity: 0,
|
|
84
|
-
marginInlineStart: "spacing.1",
|
|
85
|
+
marginInlineStart: "[calc({spacing.spacing.1} * 0.5)]",
|
|
86
|
+
textStyle: "typography.body.md",
|
|
85
87
|
"&&:hover": {
|
|
86
88
|
bg: "transparent"
|
|
87
89
|
}
|
|
@@ -90,7 +92,6 @@ const t = e({
|
|
|
90
92
|
display: "inline-block",
|
|
91
93
|
marginInlineEnd: "spacing.1",
|
|
92
94
|
color: "colour.neutral.80",
|
|
93
|
-
textStyle: "typography.body.md.strong",
|
|
94
95
|
lineHeight: "1.5rem"
|
|
95
96
|
}
|
|
96
97
|
},
|
package/dist/constants.js
CHANGED