@iress-oss/ids-components 6.0.0-beta.9 → 6.0.1

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.
@@ -19,8 +19,12 @@ export declare const expander: import('../../styled-system/types').SlotRecipeRun
19
19
  _hover: {
20
20
  bg: "colour.neutral.20";
21
21
  };
22
+ _focusVisible: {
23
+ bg: "colour.neutral.20";
24
+ };
22
25
  '&[aria-expanded="true"]': {
23
26
  borderBottomRadius: "radius.0";
27
+ bg: "colour.neutral.20";
24
28
  };
25
29
  };
26
30
  content: {
@@ -52,7 +52,11 @@ var t = e({
52
52
  transition: "[all 0.3s linear]",
53
53
  focusable: "expander-activator",
54
54
  _hover: { bg: "colour.neutral.20" },
55
- "&[aria-expanded=\"true\"]": { borderBottomRadius: "radius.0" }
55
+ _focusVisible: { bg: "colour.neutral.20" },
56
+ "&[aria-expanded=\"true\"]": {
57
+ borderBottomRadius: "radius.0",
58
+ bg: "colour.neutral.20"
59
+ }
56
60
  },
57
61
  content: {
58
62
  px: "spacing.4",
@@ -42,7 +42,7 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
42
42
  hasHint: {
43
43
  true: {
44
44
  label: {
45
- mb: "spacing.0";
45
+ mb: "spacing.1";
46
46
  };
47
47
  };
48
48
  };
@@ -33,7 +33,7 @@ var t = e({
33
33
  },
34
34
  footerIcon: { verticalAlign: "[-1.5px]" },
35
35
  supplementary: { fontSize: "inherit" },
36
- label: { mb: "spacing.1" },
36
+ label: { mb: "spacing.2" },
37
37
  labelContainer: {},
38
38
  fieldContainer: { "& .ids-popover__content": { zIndex: "100" } }
39
39
  },
@@ -60,7 +60,7 @@ var t = e({
60
60
  element: { "& > .ids-radio-group:first-child, & > .ids-checkbox-group:first-child, & > .ids-checkbox:first-child": { mt: "spacing.0" } }
61
61
  } },
62
62
  hasError: { true: { root: { _nestedFormElements: { "--iress-border-color": "{colors.colour.system.danger.fill}" } } } },
63
- hasHint: { true: { label: { mb: "spacing.0" } } },
63
+ hasHint: { true: { label: { mb: "spacing.1" } } },
64
64
  hiddenLabel: { true: { label: { mb: "none" } } },
65
65
  multipleFields: { true: { supplementary: {
66
66
  position: "relative",
@@ -12,6 +12,7 @@ import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
12
  var d = ({ children: d, className: f, "data-testid": p, error: m, errorMessages: h, hiddenLabel: g, hint: _, inline: v, join: y, label: b, removeErrorMargin: x, required: S, supplementary: C, ...w }) => {
13
13
  let T = c.raw({
14
14
  hasError: !!m || !!h?.length,
15
+ hasHint: !!_,
15
16
  hiddenLabel: g,
16
17
  inline: v,
17
18
  join: y,
@@ -8,6 +8,13 @@ export declare const fieldGroup: import('../../../styled-system/types').SlotReci
8
8
  };
9
9
  };
10
10
  };
11
+ hasHint: {
12
+ true: {
13
+ legend: {
14
+ mb: "spacing.1";
15
+ };
16
+ };
17
+ };
11
18
  hiddenLabel: {
12
19
  true: {
13
20
  legend: {
@@ -18,10 +18,11 @@ var t = e({
18
18
  },
19
19
  hint: {
20
20
  color: "colour.neutral.70",
21
- textStyle: "typography.body.sm"
21
+ textStyle: "typography.body.sm",
22
+ mt: "spacing.1"
22
23
  },
23
24
  legend: {
24
- mb: "spacing.1",
25
+ mb: "spacing.2",
25
26
  px: "spacing.0",
26
27
  float: "start",
27
28
  "& + *": { clear: "left" }
@@ -38,6 +39,7 @@ var t = e({
38
39
  },
39
40
  variants: {
40
41
  hasError: { true: { root: { _nestedFormElements: { borderColor: "colour.system.danger.fill" } } } },
42
+ hasHint: { true: { legend: { mb: "spacing.1" } } },
41
43
  hiddenLabel: { true: { legend: { mb: "none" } } },
42
44
  inline: { true: { fields: {
43
45
  alignItems: "flex-end",
package/dist/main.js CHANGED
@@ -149,7 +149,7 @@ import { IressFormField as mn } from "./patterns/Form/FormField/FormField.js";
149
149
  import { IressFormFieldset as hn } from "./patterns/Form/FormField/FormFieldset.js";
150
150
  import { IressLoading as gn } from "./patterns/Loading/Loading.js";
151
151
  import { IressLoadingSuspense as _n } from "./patterns/Loading/LoadingSuspense.js";
152
- import { t as vn } from "./Shadow-BL3YAhE_.js";
152
+ import { t as vn } from "./Shadow-OHZiBoEb.js";
153
153
  import { contextualMenu as yn } from "./patterns/ContextualMenu/ContextualMenu.styles.js";
154
154
  import { IressContextualMenu as bn } from "./patterns/ContextualMenu/ContextualMenu.js";
155
155
  import { sideNav as xn } from "./patterns/SideNav/SideNav.styles.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Shadow-BL3YAhE_.js";
1
+ import { t as e } from "../../Shadow-OHZiBoEb.js";
2
2
  export { e as IressShadow };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../Shadow-BL3YAhE_.js";
1
+ import { t as e } from "../../Shadow-OHZiBoEb.js";
2
2
  export { e as IressShadow };