@iress-oss/ids-components 6.0.0-alpha.12 → 6.0.0-alpha.14

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 (61) hide show
  1. package/dist/{Button-ZGbOkyOo.js → Button-BTkololu.js} +124 -117
  2. package/dist/{Provider-BPoPUE-B.js → Provider-B87u_maF.js} +4 -4
  3. package/dist/components/Alert/Alert.js +35 -36
  4. package/dist/components/Alert/Alert.styles.d.ts +24 -32
  5. package/dist/components/Alert/Alert.styles.js +24 -32
  6. package/dist/components/Button/Button.d.ts +3 -2
  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/Card/Card.styles.js +1 -1
  11. package/dist/components/Divider/Divider.d.ts +1 -1
  12. package/dist/components/Divider/Divider.js +24 -20
  13. package/dist/components/Divider/Divider.styles.d.ts +6 -1
  14. package/dist/components/Divider/Divider.styles.js +17 -3
  15. package/dist/components/Expander/Expander.js +65 -52
  16. package/dist/components/Expander/Expander.styles.d.ts +23 -11
  17. package/dist/components/Expander/Expander.styles.js +44 -31
  18. package/dist/components/Filter/Filter.js +120 -117
  19. package/dist/components/Filter/Filter.styles.js +5 -3
  20. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  21. package/dist/components/Input/Input.js +1 -1
  22. package/dist/components/Link/Link.styles.js +0 -1
  23. package/dist/components/Menu/MenuText/MenuText.js +1 -1
  24. package/dist/components/Modal/Modal.js +1 -1
  25. package/dist/components/Modal/Modal.styles.d.ts +1 -1
  26. package/dist/components/Modal/Modal.styles.js +1 -1
  27. package/dist/components/Progress/Progress.js +1 -1
  28. package/dist/components/Provider/Provider.js +1 -1
  29. package/dist/components/Provider/index.js +1 -1
  30. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +19 -19
  31. package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
  32. package/dist/components/SkipLink/SkipLink.js +1 -1
  33. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  34. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  35. package/dist/components/Stack/Stack.d.ts +5 -1
  36. package/dist/components/Stack/Stack.styles.d.ts +20 -0
  37. package/dist/components/Stack/Stack.styles.js +23 -3
  38. package/dist/components/TabSet/TabSet.styles.js +1 -1
  39. package/dist/components/Tag/Tag.d.ts +27 -4
  40. package/dist/components/Tag/Tag.js +50 -33
  41. package/dist/components/Tag/Tag.styles.d.ts +25 -0
  42. package/dist/components/Tag/Tag.styles.js +39 -12
  43. package/dist/components/Tag/TagInput/TagInput.js +51 -48
  44. package/dist/components/Tag/TagInput/TagInput.styles.js +4 -10
  45. package/dist/components/Toaster/components/Toast/Toast.d.ts +5 -3
  46. package/dist/components/Toaster/components/Toast/Toast.js +65 -58
  47. package/dist/components/Toaster/components/Toast/Toast.styles.d.ts +31 -1
  48. package/dist/components/Toaster/components/Toast/Toast.styles.js +33 -6
  49. package/dist/{index-gmMGso0u.js → index-Bm5rQqn5.js} +5 -1
  50. package/dist/interfaces.d.ts +7 -2
  51. package/dist/main.js +2 -2
  52. package/dist/patterns/Loading/components/LongLoading.js +28 -28
  53. package/dist/patterns/Loading/components/PageLoading.js +32 -32
  54. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  55. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +14 -14
  56. package/dist/patterns/Shadow/Shadow.js +469 -776
  57. package/dist/style.css +1 -1
  58. package/dist/styled-system/recipes/button.d.ts +1 -1
  59. package/dist/styled-system/tokens/tokens.d.ts +1 -1
  60. package/dist/styled-system/types/prop-type.d.ts +2 -2
  61. package/package.json +4 -4
@@ -4,7 +4,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
4
4
  alert: {
5
5
  backgroundColor: "colour.system.danger.surface";
6
6
  color: "colour.neutral.80";
7
- borderColor: "colour.system.danger.fill";
7
+ borderColor: "colour.system.danger.text";
8
8
  };
9
9
  heading: {
10
10
  color: "colour.system.danger.text";
@@ -13,14 +13,12 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
13
13
  color: "colour.system.danger.text";
14
14
  };
15
15
  action: {
16
- color: "colour.system.danger.text";
17
- _before: {
18
- borderColor: "colour.system.danger.text";
19
- };
20
- _after: {
21
- bg: "colour.system.danger.fill";
22
- };
16
+ bg: "colour.system.danger.fill";
17
+ borderColor: "colour.system.danger.fill";
18
+ color: "colour.system.danger.onFill";
23
19
  _hover: {
20
+ bg: "colour.system.danger.fillHover";
21
+ borderColor: "colour.system.danger.fillHover";
24
22
  color: "colour.system.danger.onFill";
25
23
  };
26
24
  };
@@ -29,7 +27,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
29
27
  alert: {
30
28
  backgroundColor: "colour.system.info.surface";
31
29
  color: "colour.neutral.80";
32
- borderColor: "colour.system.info.fill";
30
+ borderColor: "colour.system.info.text";
33
31
  };
34
32
  heading: {
35
33
  color: "colour.system.info.text";
@@ -38,14 +36,12 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
38
36
  color: "colour.system.info.text";
39
37
  };
40
38
  action: {
41
- color: "colour.system.info.text";
42
- _before: {
43
- borderColor: "colour.system.info.text";
44
- };
45
- _after: {
46
- bg: "colour.system.info.fill";
47
- };
39
+ bg: "colour.system.info.fill";
40
+ borderColor: "colour.system.info.fill";
41
+ color: "colour.system.info.onFill";
48
42
  _hover: {
43
+ bg: "colour.system.info.fillHover";
44
+ borderColor: "colour.system.info.fillHover";
49
45
  color: "colour.system.info.onFill";
50
46
  };
51
47
  };
@@ -54,7 +50,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
54
50
  alert: {
55
51
  backgroundColor: "colour.system.success.surface";
56
52
  color: "colour.neutral.80";
57
- borderColor: "colour.system.success.fill";
53
+ borderColor: "colour.system.success.text";
58
54
  };
59
55
  heading: {
60
56
  color: "colour.system.success.text";
@@ -63,14 +59,12 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
63
59
  color: "colour.system.success.text";
64
60
  };
65
61
  action: {
66
- color: "colour.system.success.text";
67
- _before: {
68
- borderColor: "colour.system.success.text";
69
- };
70
- _after: {
71
- bg: "colour.system.success.fill";
72
- };
62
+ bg: "colour.system.success.fill";
63
+ borderColor: "colour.system.success.fill";
64
+ color: "colour.system.success.onFill";
73
65
  _hover: {
66
+ bg: "colour.system.success.fillHover";
67
+ borderColor: "colour.system.success.fillHover";
74
68
  color: "colour.system.success.onFill";
75
69
  };
76
70
  };
@@ -79,7 +73,7 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
79
73
  alert: {
80
74
  backgroundColor: "colour.system.warning.surface";
81
75
  color: "colour.neutral.80";
82
- borderColor: "colour.system.warning.fill";
76
+ borderColor: "colour.system.warning.text";
83
77
  };
84
78
  heading: {
85
79
  color: "colour.system.warning.text";
@@ -88,14 +82,12 @@ export declare const alert: import('../../styled-system/types').SlotRecipeRuntim
88
82
  color: "colour.system.warning.text";
89
83
  };
90
84
  action: {
91
- color: "colour.system.warning.text";
92
- _before: {
93
- borderColor: "colour.system.warning.text";
94
- };
95
- _after: {
96
- bg: "colour.system.warning.fill";
97
- };
85
+ bg: "colour.system.warning.fill";
86
+ borderColor: "colour.system.warning.fill";
87
+ color: "colour.system.warning.onFill";
98
88
  _hover: {
89
+ bg: "colour.system.warning.fillHover";
90
+ borderColor: "colour.system.warning.fillHover";
99
91
  color: "colour.system.warning.onFill";
100
92
  };
101
93
  };
@@ -83,7 +83,7 @@ const e = o({
83
83
  alert: {
84
84
  backgroundColor: "colour.system.danger.surface",
85
85
  color: "colour.neutral.80",
86
- borderColor: "colour.system.danger.fill"
86
+ borderColor: "colour.system.danger.text"
87
87
  },
88
88
  heading: {
89
89
  color: "colour.system.danger.text"
@@ -92,14 +92,12 @@ const e = o({
92
92
  color: "colour.system.danger.text"
93
93
  },
94
94
  action: {
95
- color: "colour.system.danger.text",
96
- _before: {
97
- borderColor: "colour.system.danger.text"
98
- },
99
- _after: {
100
- bg: "colour.system.danger.fill"
101
- },
95
+ bg: "colour.system.danger.fill",
96
+ borderColor: "colour.system.danger.fill",
97
+ color: "colour.system.danger.onFill",
102
98
  _hover: {
99
+ bg: "colour.system.danger.fillHover",
100
+ borderColor: "colour.system.danger.fillHover",
103
101
  color: "colour.system.danger.onFill"
104
102
  }
105
103
  }
@@ -108,7 +106,7 @@ const e = o({
108
106
  alert: {
109
107
  backgroundColor: "colour.system.info.surface",
110
108
  color: "colour.neutral.80",
111
- borderColor: "colour.system.info.fill"
109
+ borderColor: "colour.system.info.text"
112
110
  },
113
111
  heading: {
114
112
  color: "colour.system.info.text"
@@ -117,14 +115,12 @@ const e = o({
117
115
  color: "colour.system.info.text"
118
116
  },
119
117
  action: {
120
- color: "colour.system.info.text",
121
- _before: {
122
- borderColor: "colour.system.info.text"
123
- },
124
- _after: {
125
- bg: "colour.system.info.fill"
126
- },
118
+ bg: "colour.system.info.fill",
119
+ borderColor: "colour.system.info.fill",
120
+ color: "colour.system.info.onFill",
127
121
  _hover: {
122
+ bg: "colour.system.info.fillHover",
123
+ borderColor: "colour.system.info.fillHover",
128
124
  color: "colour.system.info.onFill"
129
125
  }
130
126
  }
@@ -133,7 +129,7 @@ const e = o({
133
129
  alert: {
134
130
  backgroundColor: "colour.system.success.surface",
135
131
  color: "colour.neutral.80",
136
- borderColor: "colour.system.success.fill"
132
+ borderColor: "colour.system.success.text"
137
133
  },
138
134
  heading: {
139
135
  color: "colour.system.success.text"
@@ -142,14 +138,12 @@ const e = o({
142
138
  color: "colour.system.success.text"
143
139
  },
144
140
  action: {
145
- color: "colour.system.success.text",
146
- _before: {
147
- borderColor: "colour.system.success.text"
148
- },
149
- _after: {
150
- bg: "colour.system.success.fill"
151
- },
141
+ bg: "colour.system.success.fill",
142
+ borderColor: "colour.system.success.fill",
143
+ color: "colour.system.success.onFill",
152
144
  _hover: {
145
+ bg: "colour.system.success.fillHover",
146
+ borderColor: "colour.system.success.fillHover",
153
147
  color: "colour.system.success.onFill"
154
148
  }
155
149
  }
@@ -158,7 +152,7 @@ const e = o({
158
152
  alert: {
159
153
  backgroundColor: "colour.system.warning.surface",
160
154
  color: "colour.neutral.80",
161
- borderColor: "colour.system.warning.fill"
155
+ borderColor: "colour.system.warning.text"
162
156
  },
163
157
  heading: {
164
158
  color: "colour.system.warning.text"
@@ -167,14 +161,12 @@ const e = o({
167
161
  color: "colour.system.warning.text"
168
162
  },
169
163
  action: {
170
- color: "colour.system.warning.text",
171
- _before: {
172
- borderColor: "colour.system.warning.text"
173
- },
174
- _after: {
175
- bg: "colour.system.warning.fill"
176
- },
164
+ bg: "colour.system.warning.fill",
165
+ borderColor: "colour.system.warning.fill",
166
+ color: "colour.system.warning.onFill",
177
167
  _hover: {
168
+ bg: "colour.system.warning.fillHover",
169
+ borderColor: "colour.system.warning.fillHover",
178
170
  color: "colour.system.warning.onFill"
179
171
  }
180
172
  }
@@ -58,14 +58,15 @@ export interface InternalButtonProps<C extends ElementType | undefined = undefin
58
58
  * - Primary: Used for the main action on a page. Usually only used once per screen.
59
59
  * - Secondary: Used for secondary actions on a page, often an action on multiple `IressPanel`s. Can used multiple times per screen.
60
60
  * - Tertiary: Used for tertiary actions on a page, often the secondary action on multiple `IressPanel`s. Can used multiple times per screen.
61
- * - Muted: Used for less prominent actions, often used in toolbars or inline with headings. They are mainly used with icons only.
61
+ * - Quaternary: Used for less prominent actions, often used for preference toggles (eg. Collapse all).
62
+ * - Muted: Used for less prominent actions, often used inline with headings. They are mainly used with icons only.
62
63
  *
63
64
  * **Migrating to version 6**
64
65
  * - `link` mode has been removed. If it is an action, use the `tertiary` mode. If it is a link inside a paragraph, use the new `IressLink` component instead.
65
66
  * - `danger` has been removed. Please use the `status` prop instead.
66
67
  * - `positive` and `success` have been removed. Please use the `status` prop instead.
67
68
  */
68
- mode?: 'primary' | 'secondary' | 'tertiary' | 'muted';
69
+ mode?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'muted';
69
70
  /**
70
71
  * Emitted when the menu item is clicked.
71
72
  */
@@ -9,7 +9,7 @@ import "../ButtonGroup/hooks/useButtonGroupItem.js";
9
9
  import "../../is-valid-prop-DweT-eOL.js";
10
10
  import "../../css-DNdLYQld.js";
11
11
  import "../../cx-DN21T1EH.js";
12
- import { I as g } from "../../Button-ZGbOkyOo.js";
12
+ import { I as g } from "../../Button-BTkololu.js";
13
13
  import "../Popover/Popover.js";
14
14
  import "../Popover/Popover.styles.js";
15
15
  import "../Popover/InputPopover/InputPopover.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { I as e } from "../../../Button-ZGbOkyOo.js";
2
+ import { I as e } from "../../../Button-BTkololu.js";
3
3
  import { IressIcon as a } from "../../Icon/Icon.js";
4
4
  import "../../Icon/Icon.styles.js";
5
5
  import { forwardRef as i } from "react";
@@ -1,4 +1,4 @@
1
- import { I as s, b as r } from "../../Button-ZGbOkyOo.js";
1
+ import { I as s, b as r } from "../../Button-BTkololu.js";
2
2
  import { IressCloseButton as n } from "./CloseButton/CloseButton.js";
3
3
  export {
4
4
  s as IressButton,
@@ -25,7 +25,7 @@ const e = t({
25
25
  gridArea: "heading",
26
26
  padding: "spacing.4",
27
27
  "& > h1:not([class]), & > h2:not([class]), & > h3:not([class]), & > h4:not([class]), & > h5:not([class]), & > h6:not([class])": {
28
- textStyle: "typography.heading.4",
28
+ textStyle: "typography.heading.3",
29
29
  mb: "spacing.0"
30
30
  },
31
31
  "& a": {
@@ -6,6 +6,6 @@ export interface IressDividerProps extends IressStyledProps<'hr'> {
6
6
  vertical?: boolean;
7
7
  }
8
8
  export declare const IressDivider: {
9
- ({ className, vertical, ...restProps }: IressDividerProps): import("react/jsx-runtime").JSX.Element;
9
+ ({ className, stretch, vertical, ...restProps }: IressDividerProps): import("react/jsx-runtime").JSX.Element;
10
10
  displayName: string;
11
11
  };
@@ -1,31 +1,35 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { c as e } from "../../css-DNdLYQld.js";
3
- import { c as p } from "../../cx-DN21T1EH.js";
4
- import { divider as a } from "./Divider.styles.js";
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { c as p } from "../../css-DNdLYQld.js";
3
+ import { c as a } from "../../cx-DN21T1EH.js";
4
+ import { divider as c } from "./Divider.styles.js";
5
5
  import { s as l } from "../../is-valid-prop-DweT-eOL.js";
6
- import { GlobalCSSClass as c } from "../../enums.js";
7
- const d = ({
8
- className: r,
9
- vertical: s,
10
- ...o
6
+ import { GlobalCSSClass as d } from "../../enums.js";
7
+ const f = ({
8
+ className: s,
9
+ stretch: o,
10
+ vertical: r,
11
+ ...i
11
12
  }) => {
12
- const [i, m] = l(o);
13
- return /* @__PURE__ */ t(
13
+ const [t, e] = l(i);
14
+ return /* @__PURE__ */ m(
14
15
  "hr",
15
16
  {
16
- className: p(
17
- r,
18
- e({
19
- ...a.raw({ vertical: !!s }),
20
- ...i
17
+ className: a(
18
+ s,
19
+ p({
20
+ ...c.raw({
21
+ vertical: !!r,
22
+ verticalStretch: !!o && r
23
+ }),
24
+ ...t
21
25
  }),
22
- c.Divider
26
+ d.Divider
23
27
  ),
24
- ...m
28
+ ...e
25
29
  }
26
30
  );
27
31
  };
28
- d.displayName = "IressDivider";
32
+ f.displayName = "IressDivider";
29
33
  export {
30
- d as IressDivider
34
+ f as IressDivider
31
35
  };
@@ -5,7 +5,6 @@ export declare const divider: import('../../styled-system/types').RecipeRuntimeF
5
5
  alignSelf: "stretch";
6
6
  borderInlineStartWidth: "1px";
7
7
  borderInlineStartStyle: "solid";
8
- height: "auto";
9
8
  minHeight: "[1em]";
10
9
  verticalAlign: "middle";
11
10
  };
@@ -15,4 +14,10 @@ export declare const divider: import('../../styled-system/types').RecipeRuntimeF
15
14
  borderBlockStartStyle: "solid";
16
15
  };
17
16
  };
17
+ verticalStretch: {
18
+ true: {
19
+ height: "[100%]";
20
+ alignSelf: "center";
21
+ };
22
+ };
18
23
  }>;
@@ -1,5 +1,5 @@
1
1
  import { c as r } from "../../cva-DtPMccE9.js";
2
- const t = r({
2
+ const e = r({
3
3
  base: {
4
4
  display: "block",
5
5
  color: "colour.neutral.30",
@@ -13,7 +13,6 @@ const t = r({
13
13
  alignSelf: "stretch",
14
14
  borderInlineStartWidth: "1px",
15
15
  borderInlineStartStyle: "solid",
16
- height: "auto",
17
16
  minHeight: "[1em]",
18
17
  verticalAlign: "middle"
19
18
  },
@@ -22,12 +21,27 @@ const t = r({
22
21
  borderBlockStartWidth: "1px",
23
22
  borderBlockStartStyle: "solid"
24
23
  }
24
+ },
25
+ verticalStretch: {
26
+ true: {
27
+ height: "[100%]",
28
+ alignSelf: "center"
29
+ }
25
30
  }
26
31
  },
32
+ compoundVariants: [
33
+ {
34
+ vertical: !0,
35
+ verticalStretch: !1,
36
+ css: {
37
+ height: "auto"
38
+ }
39
+ }
40
+ ],
27
41
  defaultVariants: {
28
42
  vertical: !1
29
43
  }
30
44
  });
31
45
  export {
32
- t as divider
46
+ e as divider
33
47
  };
@@ -1,72 +1,85 @@
1
- import { jsxs as y, jsx as a } from "react/jsx-runtime";
2
- import { useState as P, useEffect as j } from "react";
3
- import { propagateTestid as d } from "../../helpers/utility/propagateTestid.js";
4
- import { useIdIfNeeded as k } from "../../hooks/useIdIfNeeded.js";
5
- import { expander as m } from "./Expander.styles.js";
6
- import { c as w } from "../../css-DNdLYQld.js";
7
- import { c as p } from "../../cx-DN21T1EH.js";
8
- import { IressText as l } from "../Text/Text.js";
9
- import { s as O } from "../../factory-CsinCTPr.js";
10
- import { s as S } from "../../is-valid-prop-DweT-eOL.js";
11
- import { GlobalCSSClass as T } from "../../enums.js";
12
- const $ = ({
13
- activator: f,
14
- activatorStyle: e = {},
15
- children: x,
16
- className: N,
17
- "data-testid": r,
18
- onChange: I,
19
- id: u,
20
- mode: i = "section",
21
- noGutter: h,
22
- open: o = !1,
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
+ import { useState as b, useEffect as y } from "react";
3
+ import { propagateTestid as p } from "../../helpers/utility/propagateTestid.js";
4
+ import { useIdIfNeeded as L } from "../../hooks/useIdIfNeeded.js";
5
+ import { expander as l } from "./Expander.styles.js";
6
+ import { c as P } from "../../css-DNdLYQld.js";
7
+ import { c as f } from "../../cx-DN21T1EH.js";
8
+ import { IressText as x } from "../Text/Text.js";
9
+ import { s as j } from "../../factory-CsinCTPr.js";
10
+ import { s as k } from "../../is-valid-prop-DweT-eOL.js";
11
+ import { GlobalCSSClass as h } from "../../enums.js";
12
+ const G = ({ className: a }) => /* @__PURE__ */ s(
13
+ "svg",
14
+ {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ viewBox: "0 -960 960 960",
17
+ className: a,
18
+ "aria-hidden": "true",
19
+ children: /* @__PURE__ */ s("path", { d: "M480-372.92q-7.23 0-13.46-2.31t-11.85-7.92L274.92-562.92q-8.3-8.31-8.5-20.89-.19-12.57 8.5-21.27 8.7-8.69 21.08-8.69 12.38 0 21.08 8.69L480-442.15l162.92-162.93q8.31-8.3 20.89-8.5 12.57-.19 21.27 8.5 8.69 8.7 8.69 21.08 0 12.38-8.69 21.08L505.31-383.15q-5.62 5.61-11.85 7.92-6.23 2.31-13.46 2.31Z" })
20
+ }
21
+ ), O = ({
22
+ activator: a,
23
+ activatorStyle: r = {},
24
+ children: N,
25
+ className: u,
26
+ "data-testid": o,
27
+ onChange: v,
28
+ id: w,
29
+ mode: c = "section",
30
+ noGutter: I,
31
+ open: n = !1,
23
32
  ...C
24
33
  }) => {
25
- const [s, c] = P(o), n = k({ id: u }), t = m({ mode: i, open: s }), E = m.raw({ mode: i, open: s });
26
- j(() => {
27
- c(o);
28
- }, [o]);
29
- const _ = () => {
30
- c(!s), I?.(!s);
31
- }, [b, v] = S(e);
32
- return /* @__PURE__ */ y(
33
- l,
34
+ const [t, d] = b(n), i = L({ id: w }), e = l({ mode: c, open: t }), g = l.raw({ mode: c, open: t });
35
+ y(() => {
36
+ d(n);
37
+ }, [n]);
38
+ const q = () => {
39
+ d(!t), v?.(!t);
40
+ }, [E, _] = k(r);
41
+ return /* @__PURE__ */ m(
42
+ x,
34
43
  {
35
- className: p(N, t.root, T.Expander),
44
+ className: f(u, e.root, h.Expander),
36
45
  ...C,
37
- "data-testid": r,
38
- id: n,
46
+ "data-testid": o,
47
+ id: i,
39
48
  children: [
40
- /* @__PURE__ */ a(
41
- O.button,
49
+ /* @__PURE__ */ m(
50
+ j.button,
42
51
  {
43
- ...v,
44
- "aria-expanded": s,
45
- "aria-controls": `${n}__container`,
46
- className: p(
47
- e?.className,
48
- w(E.activator, b)
52
+ ..._,
53
+ "aria-expanded": t,
54
+ "aria-controls": `${i}__container`,
55
+ className: f(
56
+ r?.className,
57
+ P(g.activator, E),
58
+ h.Group
49
59
  ),
50
- "data-testid": e?.["data-testid"] ?? d(r, "activator"),
51
- onClick: _,
60
+ "data-testid": r?.["data-testid"] ?? p(o, "activator"),
61
+ onClick: q,
52
62
  type: "button",
53
- children: f
63
+ children: [
64
+ a,
65
+ /* @__PURE__ */ s(G, { className: e.chevron })
66
+ ]
54
67
  }
55
68
  ),
56
- /* @__PURE__ */ a(
69
+ /* @__PURE__ */ s(
57
70
  "div",
58
71
  {
59
- id: `${n}__container`,
60
- className: t.container,
61
- "data-testid": d(r, "container"),
62
- children: /* @__PURE__ */ a("div", { className: t.containerInner, children: /* @__PURE__ */ a(l, { className: t.content, noGutter: h, children: x }) })
72
+ id: `${i}__container`,
73
+ className: e.container,
74
+ "data-testid": p(o, "container"),
75
+ children: /* @__PURE__ */ s("div", { className: e.containerInner, children: /* @__PURE__ */ s(x, { className: e.content, noGutter: I, children: N }) })
63
76
  }
64
77
  )
65
78
  ]
66
79
  }
67
80
  );
68
81
  };
69
- $.displayName = "IressExpander";
82
+ O.displayName = "IressExpander";
70
83
  export {
71
- $ as IressExpander
84
+ O as IressExpander
72
85
  };
@@ -1,21 +1,30 @@
1
- export declare const expander: import('../../styled-system/types').SlotRecipeRuntimeFn<"container" | "content" | "root" | "activator" | "containerInner", {
1
+ export declare const expander: import('../../styled-system/types').SlotRecipeRuntimeFn<"container" | "content" | "root" | "activator" | "chevron" | "containerInner", {
2
2
  mode: {
3
3
  section: {
4
+ root: {
5
+ border: "table";
6
+ borderRadius: "radius.system.layout";
7
+ p: "spacing.4";
8
+ transition: "colors";
9
+ '&:has([aria-controls]:hover)': {
10
+ borderColor: "colour.primary.fill";
11
+ };
12
+ };
4
13
  activator: {
5
14
  display: "flex";
6
15
  justifyContent: "space-between";
7
16
  alignItems: "flex-end";
8
17
  width: "[100%]";
9
- textStyle: "typography.heading.4";
10
- py: "spacing.3";
11
- borderBottom: "divider";
12
- transition: "[all 0.2s ease-in-out]";
13
- _after: {
14
- mr: "spacing.2";
15
- };
18
+ textStyle: "typography.heading.3";
16
19
  _hover: {
17
20
  color: "colour.primary.text";
18
- borderBottom: "hover";
21
+ };
22
+ };
23
+ chevron: {
24
+ bg: "colour.neutral.30";
25
+ borderRadius: "50%";
26
+ _groupHover: {
27
+ bg: "colour.primary.surfaceHover";
19
28
  };
20
29
  };
21
30
  };
@@ -30,12 +39,15 @@ export declare const expander: import('../../styled-system/types').SlotRecipeRun
30
39
  textDecoration: "none";
31
40
  };
32
41
  };
42
+ chevron: {
43
+ display: "inline";
44
+ };
33
45
  };
34
46
  };
35
47
  open: {
36
48
  true: {
37
- activator: {
38
- tableChevron: false;
49
+ chevron: {
50
+ transform: "rotate(180deg)";
39
51
  };
40
52
  container: {
41
53
  gridTemplateRows: "1fr";