@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.
Files changed (59) hide show
  1. package/dist/{Autocomplete-C5ubHBTi.js → Autocomplete-BQ_YPb5A.js} +1 -1
  2. package/dist/{Button-mmhMLwp9.js → Button-B4nt3P1v.js} +13 -22
  3. package/dist/{Provider-8wS70V56.js → Provider-CDIbqQK0.js} +3 -3
  4. package/dist/components/Alert/Alert.js +1 -1
  5. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  6. package/dist/components/Autocomplete/index.js +1 -1
  7. package/dist/components/Button/Button.js +1 -1
  8. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  9. package/dist/components/Button/index.js +1 -1
  10. package/dist/components/Checkbox/Checkbox.styles.js +5 -2
  11. package/dist/components/CheckboxMark/CheckboxMark.styles.js +3 -3
  12. package/dist/components/Field/Field.styles.js +5 -1
  13. package/dist/components/Filter/Filter.js +2 -2
  14. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  15. package/dist/components/Input/Input.js +1 -1
  16. package/dist/components/Input/Input.styles.js +2 -2
  17. package/dist/components/Label/LabelBase/LabelBase.js +28 -23
  18. package/dist/components/Modal/Modal.js +39 -38
  19. package/dist/components/Modal/Modal.styles.js +23 -0
  20. package/dist/components/Progress/Progress.js +1 -1
  21. package/dist/components/Provider/Provider.js +3 -3
  22. package/dist/components/Provider/index.js +1 -1
  23. package/dist/components/Radio/Radio.js +41 -41
  24. package/dist/components/Radio/Radio.styles.js +7 -2
  25. package/dist/components/RichSelect/RichSelect.js +2 -2
  26. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
  27. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +2 -4
  28. package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
  29. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -5
  30. package/dist/components/RichSelect/components/SelectOptions.js +61 -60
  31. package/dist/components/RichSelect/index.js +1 -1
  32. package/dist/components/Select/Select.styles.js +4 -1
  33. package/dist/components/SkipLink/SkipLink.js +1 -1
  34. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  35. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  36. package/dist/components/Tag/Tag.js +1 -1
  37. package/dist/components/Toaster/components/Toast/Toast.js +1 -1
  38. package/dist/components/Toggle/Toggle.styles.js +4 -3
  39. package/dist/constants.js +1 -1
  40. package/dist/enums.js +3 -3
  41. package/dist/{index-CZ9ot38T.js → index-aTLA1VIV.js} +1 -1
  42. package/dist/main.js +3 -3
  43. package/dist/patterns/Form/FormField/FormField.js +5 -5
  44. package/dist/patterns/Form/FormField/FormFieldset.js +1 -1
  45. package/dist/patterns/Form/HookForm/HookForm.js +8 -8
  46. package/dist/patterns/Form/components/LongForm.js +9 -9
  47. package/dist/patterns/Form/components/ShortForm.js +7 -7
  48. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  49. package/dist/patterns/Shadow/Shadow.js +73 -69
  50. package/dist/src/components/Modal/Modal.d.ts +8 -1
  51. package/dist/src/components/Modal/Modal.styles.d.ts +23 -0
  52. package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
  53. package/dist/src/components/RichSelect/RichSelect.d.ts +10 -0
  54. package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
  55. package/dist/src/enums.d.ts +2 -1
  56. package/dist/src/patterns/Form/FormField/hooks/useFieldRenderProps.d.ts +3 -9
  57. package/dist/style.css +1 -1
  58. package/package.json +3 -3
  59. package/dist/index.esm-BiUTGNH8.js +0 -1080
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as k } from "react/jsx-runtime";
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 C } from "../../css-fGu_jDvv.js";
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 p } from "../../enums.js";
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 h } from "../../factory-oPXoMw9H.js";
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 = (a) => /* @__PURE__ */ e(
21
- h.svg,
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
- ...a,
27
- className: p.FormElement,
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: a,
32
- children: u,
31
+ checked: i,
32
+ children: f,
33
33
  className: x,
34
- "data-testid": i,
34
+ "data-testid": a,
35
35
  defaultChecked: g,
36
36
  hiddenControl: y,
37
37
  name: R,
38
38
  onChange: w,
39
- readOnly: v,
40
- required: b,
41
- value: r,
42
- touch: M,
39
+ readOnly: b,
40
+ required: v,
41
+ value: t,
42
+ touch: N,
43
43
  ...n
44
- }, N) => {
45
- const f = E(n), o = A(K()), { value: S, setValue: G } = B({
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: a,
48
+ value: i,
49
49
  propName: "checked"
50
- }), d = !!o?.onChange, s = d ? o.value === r : S;
51
- if (d ? o.readOnly : v)
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(r),
58
- children: u
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 ?? b, q = o?.touch ?? M, t = D.raw({
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__ */ k(
66
+ return /* @__PURE__ */ C(
67
67
  "div",
68
68
  {
69
- "data-testid": i,
69
+ "data-testid": a,
70
70
  className: z(
71
71
  x,
72
- C(t.root, F),
73
- p.Group,
74
- p.Radio
72
+ p(r.root, F),
73
+ h.Group,
74
+ h.Radio
75
75
  ),
76
76
  children: [
77
77
  /* @__PURE__ */ e(
78
- h.input,
78
+ u.input,
79
79
  {
80
80
  ...V,
81
- ...t.input,
81
+ ...r.input,
82
82
  type: "radio",
83
- id: f,
83
+ id: k,
84
84
  name: I,
85
- ref: N,
86
- "data-testid": l(i, "input"),
85
+ ref: M,
86
+ "data-testid": l(a, "input"),
87
87
  onChange: (m) => {
88
- d || G(m.target.checked), w?.(m, r), o?.onChange?.(m, r);
88
+ d || G(m.target.checked), w?.(m, t), o?.onChange?.(m, t);
89
89
  },
90
- value: String(r),
90
+ value: String(t),
91
91
  checked: s,
92
92
  required: O
93
93
  }
94
94
  ),
95
- /* @__PURE__ */ k(h.label, { htmlFor: f, ...t.label, children: [
95
+ /* @__PURE__ */ C(u.label, { htmlFor: k, ...r.label, children: [
96
96
  !c && /* @__PURE__ */ e(
97
97
  T,
98
98
  {
99
- ...t.radioMark,
100
- "data-testid": l(i, "radioMark")
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: C(t.checkboxMark),
106
+ className: p(r.checkboxMark),
107
107
  checked: s,
108
- "data-testid": l(i, "checkboxMark")
108
+ "data-testid": l(a, "checkboxMark")
109
109
  }
110
110
  ),
111
- /* @__PURE__ */ e(Q, { element: "span", children: u })
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: "[calc(1.3 * 1rem)]",
55
- height: "[calc(1.3 * 1rem)]",
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-C5ubHBTi.js";
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-mmhMLwp9.js";
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-mmhMLwp9.js";
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 n = e({
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
- n as selectLabel
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-mmhMLwp9.js";
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 o } from "../../../sva-OmxClA9g.js";
2
- const r = o({
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
- r as selectTags
83
+ l as selectTags
86
84
  };
@@ -1,9 +1,9 @@
1
- import { jsx as s, jsxs as F, Fragment as W } from "react/jsx-runtime";
2
- import { getValueAsEvent as E } from "../../../helpers/form/getValueAsEvent.js";
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 y } from "../SelectMenu/SelectMenu.js";
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: n,
19
- onChange: a,
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
- y,
26
+ E,
27
27
  {
28
- heading: n ? "Search results" : void 0,
28
+ heading: r ? "Search results" : void 0,
29
29
  items: o,
30
- multiSelect: n,
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: a,
39
+ onChange: i,
40
40
  selected: t,
41
- hideSelectedItems: n
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__ */ F(W, { children: [
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: n,
50
- loading: a,
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: i,
59
+ value: l,
60
60
  shouldShowInstructions: R,
61
61
  shouldShowNoResults: S
62
62
  }) => {
63
- const r = D(i).map(
64
- (l) => {
65
- const { formattedLabel: g, ...b } = l;
66
- return b;
63
+ const n = D(l).map(
64
+ (a) => {
65
+ const { formattedLabel: g, ...N } = a;
66
+ return N;
67
67
  }
68
- ), u = !n && (!!f?.length || t && !a), m = !!r.length && o, N = u && m, h = j(null), x = k();
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 v = m ? r.length + 1 : 0;
73
- return /* @__PURE__ */ F(
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: a,
81
- onChange: (l) => p?.(l.target.value),
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 ? v : m ? 1 : 0 : void 0,
88
+ focusStartIndex: e ? t && u ? M : m ? 1 : 0 : void 0,
89
89
  children: [
90
90
  m && /* @__PURE__ */ s(
91
- y,
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: (l) => {
99
- c?.(l), h.current?.focus();
98
+ onClearAll: (a) => {
99
+ c?.(a), h.current?.focus();
100
100
  },
101
- children: /* @__PURE__ */ F("h2", { id: x, children: [
101
+ children: /* @__PURE__ */ y("h2", { id: x, children: [
102
102
  "Selected (",
103
- r.length,
103
+ n.length,
104
104
  ")"
105
105
  ] })
106
106
  }
107
107
  ),
108
- items: r,
108
+ items: n,
109
109
  multiSelect: o,
110
110
  onChange: d,
111
- selected: i
111
+ selected: l
112
112
  }
113
113
  ),
114
- N && /* @__PURE__ */ s(G, {}),
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: i,
123
+ value: l,
124
124
  shouldShowInstructions: R,
125
125
  shouldShowNoResults: S
126
126
  }
127
127
  ),
128
- /* @__PURE__ */ s(J, { error: n })
128
+ /* @__PURE__ */ s(J, { error: r })
129
129
  ]
130
130
  }
131
131
  );
132
132
  }, oe = ({
133
133
  autoHighlight: e,
134
- debouncedQuery: n,
135
- error: a,
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: i,
144
+ results: l,
145
145
  setQuery: R,
146
146
  setShow: S,
147
- setValue: r,
147
+ setValue: n,
148
148
  show: u,
149
149
  shouldShowInstructions: m,
150
- shouldShowNoResults: N,
150
+ shouldShowNoResults: v,
151
151
  value: h
152
152
  }) => {
153
- const x = typeof f == "function", v = I ?? (x ? [] : f), M = i.length ? i : v, C = O(
153
+ const x = typeof f == "function", M = I ?? (x ? [] : f), C = l.length ? l : M, b = O(
154
154
  (g) => {
155
- r(g), t?.(E(g), g), c || S(!1);
155
+ n(g), t?.(F(g), g), c || S(!1);
156
156
  },
157
- [S, r, t, c]
158
- ), l = O(
157
+ [S, n, t, c]
158
+ ), a = O(
159
159
  (g) => {
160
160
  g.stopPropagation();
161
- const b = [];
162
- r(b), t?.(E([]), b);
161
+ const N = [];
162
+ n(N), t?.(F([]), N);
163
163
  },
164
- [r, t]
164
+ [n, t]
165
165
  );
166
166
  return A ? A({
167
167
  close: () => S(!1),
168
- debouncedQuery: n,
169
- error: a,
168
+ debouncedQuery: r,
169
+ error: i,
170
+ handleClear: a,
171
+ handleMenuChange: b,
170
172
  loading: o,
171
173
  query: p,
172
- results: M,
173
- setValue: r,
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: a,
183
+ error: i,
182
184
  loading: o,
183
185
  minSearchLength: d,
184
186
  multiSelect: c,
185
- onChange: C,
186
- onClear: l,
187
+ onChange: b,
188
+ onClear: a,
187
189
  query: p,
188
- results: i,
190
+ results: l,
189
191
  setQuery: R,
190
192
  show: u,
191
193
  value: h,
192
194
  shouldShowInstructions: m,
193
- shouldShowNoResults: N
195
+ shouldShowNoResults: v
194
196
  }
195
197
  ) : /* @__PURE__ */ s(
196
- y,
198
+ E,
197
199
  {
198
- items: M,
200
+ items: C,
199
201
  multiSelect: c,
200
- onChange: C,
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-C5ubHBTi.js";
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";
@@ -5,7 +5,10 @@ const t = ["wrapper", "control", "element"], c = e({
5
5
  wrapper: {
6
6
  display: "block",
7
7
  position: "relative",
8
- lineHeight: 1
8
+ lineHeight: 1,
9
+ "&:has(select:focus)": {
10
+ layerStyle: "elevation.focus"
11
+ }
9
12
  },
10
13
  control: {
11
14
  position: "relative",
@@ -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-mmhMLwp9.js";
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-mmhMLwp9.js";
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-CZ9ot38T.js";
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-mmhMLwp9.js";
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-mmhMLwp9.js";
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
@@ -1,4 +1,4 @@
1
- const t = "6.0.0-alpha.5", e = {
1
+ const t = "6.0.0-alpha.7", e = {
2
2
  /**
3
3
  * Extra small breakpoint, for mobile devices
4
4
  */