@iress-oss/ids-components 6.0.0-alpha.17 → 6.0.0-alpha.18

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 (27) hide show
  1. package/dist/components/Badge/Badge.styles.js +2 -0
  2. package/dist/components/Card/Card.styles.js +2 -0
  3. package/dist/components/Checkbox/Checkbox.styles.js +2 -0
  4. package/dist/components/Expander/Expander.styles.js +2 -0
  5. package/dist/components/Input/Input.styles.js +2 -0
  6. package/dist/components/Modal/Modal.styles.js +4 -2
  7. package/dist/components/Panel/Panel.styles.js +2 -0
  8. package/dist/components/Popover/Popover.styles.js +2 -0
  9. package/dist/components/Progress/Progress.styles.js +2 -0
  10. package/dist/components/Radio/Radio.styles.js +2 -0
  11. package/dist/components/RichSelect/RichSelect.styles.js +2 -0
  12. package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +2 -0
  13. package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +2 -0
  14. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +2 -0
  15. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +2 -0
  16. package/dist/components/Select/Select.styles.js +4 -2
  17. package/dist/components/Slideout/Slideout.styles.js +2 -0
  18. package/dist/components/Slider/Slider.styles.js +2 -0
  19. package/dist/components/Spinner/Spinner.styles.js +6 -4
  20. package/dist/components/TabSet/TabSet.styles.js +2 -0
  21. package/dist/components/Tag/Tag.styles.d.ts +6 -0
  22. package/dist/components/Tag/Tag.styles.js +10 -2
  23. package/dist/components/Toggle/Toggle.styles.js +2 -0
  24. package/dist/components/Tooltip/Tooltip.styles.js +4 -2
  25. package/dist/patterns/Shadow/Shadow.js +8 -0
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
@@ -3,6 +3,8 @@ const r = o({
3
3
  slots: ["root", "badge", "host"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style paint",
6
8
  display: "inline-block",
7
9
  overflow: "visible",
8
10
  textStyle: "typography.body.sm.regular",
@@ -3,6 +3,8 @@ const e = t({
3
3
  slots: ["root", "prepend", "heading", "topRight", "media", "body", "footer"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment (no paint to allow overflow)
7
+ contain: "layout style",
6
8
  position: "relative",
7
9
  borderRadius: "radius.system.layout",
8
10
  bg: "colour.neutral.10",
@@ -14,6 +14,8 @@ const o = r({
14
14
  base: {
15
15
  formElement: {},
16
16
  root: {
17
+ // Performance: CSS containment (no paint to allow focus ring/shadow)
18
+ contain: "layout style",
17
19
  color: "colour.primary.fill",
18
20
  display: "flex",
19
21
  position: "relative",
@@ -10,6 +10,8 @@ const r = o({
10
10
  ],
11
11
  base: {
12
12
  root: {
13
+ // Performance: CSS containment (no paint to allow overflow)
14
+ contain: "layout style",
13
15
  display: "block",
14
16
  "&:has([aria-controls]:focus-visible)": {
15
17
  layerStyle: "elevation.focusNoBorder"
@@ -3,6 +3,8 @@ const o = r({
3
3
  slots: ["root", "wrapper", "inline", "addon", "internal", "formControl"],
4
4
  base: {
5
5
  wrapper: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style paint",
6
8
  display: "flex",
7
9
  alignItems: "stretch",
8
10
  borderRadius: "radius.system.form",
@@ -7,7 +7,7 @@ const o = [
7
7
  "content",
8
8
  "footer",
9
9
  "pushElement"
10
- ], t = a({
10
+ ], i = a({
11
11
  slots: o,
12
12
  base: {
13
13
  backdrop: {
@@ -29,6 +29,8 @@ const o = [
29
29
  borderBlockStart: "divider"
30
30
  },
31
31
  modal: {
32
+ // Performance: CSS containment (no paint due to fixed positioning)
33
+ contain: "layout style",
32
34
  position: "relative",
33
35
  borderRadius: "radius.system.layout",
34
36
  padding: "spacing.0",
@@ -153,5 +155,5 @@ const o = [
153
155
  }
154
156
  });
155
157
  export {
156
- t as modal
158
+ i as modal
157
159
  };
@@ -1,6 +1,8 @@
1
1
  import { c as a } from "../../cva-DtPMccE9.js";
2
2
  const o = a({
3
3
  base: {
4
+ // Performance: CSS containment (no paint to allow overflow)
5
+ contain: "layout style",
4
6
  display: "block",
5
7
  boxSizing: "border-box",
6
8
  borderRadius: "radius.system.layout",
@@ -9,6 +9,8 @@ const a = t({
9
9
  display: "inline-block"
10
10
  },
11
11
  content: {
12
+ // Performance: CSS containment (no paint due to floating nature)
13
+ contain: "layout style",
12
14
  bg: "colour.neutral.10",
13
15
  border: "divider",
14
16
  borderRadius: "radius.system.form",
@@ -1,6 +1,8 @@
1
1
  import { c as r } from "../../cva-DtPMccE9.js";
2
2
  const e = r({
3
3
  base: {
4
+ // Performance: CSS containment limits style recalculation scope
5
+ contain: "layout style paint",
4
6
  appearance: "none",
5
7
  bg: "colour.neutral.40",
6
8
  color: "colour.neutral.50",
@@ -11,6 +11,8 @@ const e = r({
11
11
  ],
12
12
  base: {
13
13
  root: {
14
+ // Performance: CSS containment (no paint to allow focus ring/shadow)
15
+ contain: "layout style",
14
16
  color: "colour.primary.fill",
15
17
  display: "flex",
16
18
  position: "relative",
@@ -9,6 +9,8 @@ const i = c({
9
9
  ],
10
10
  base: {
11
11
  richSelect: {
12
+ // Performance: CSS containment (no paint to allow focus ring/shadow)
13
+ contain: "layout style",
12
14
  display: "block"
13
15
  },
14
16
  popoverContent: {
@@ -3,6 +3,8 @@ const l = e({
3
3
  slots: ["selectBody", "children"],
4
4
  base: {
5
5
  selectBody: {
6
+ // Performance: CSS containment (no paint due to overflow)
7
+ contain: "layout style",
6
8
  display: "flex",
7
9
  flexDirection: "column",
8
10
  maxHeight: "[30rem]",
@@ -3,6 +3,8 @@ const o = t({
3
3
  slots: ["root"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style paint",
6
8
  width: "[100%]"
7
9
  }
8
10
  },
@@ -3,6 +3,8 @@ const t = o({
3
3
  slots: ["root"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style paint",
6
8
  borderWidth: "0px",
7
9
  borderBottomWidth: "1px",
8
10
  borderBottomStyle: "solid",
@@ -3,6 +3,8 @@ const l = e({
3
3
  slots: ["root", "placeholder", "prepend", "append", "tag", "tagsList"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style paint",
6
8
  display: "flex",
7
9
  alignItems: "center",
8
10
  width: "[100%]",
@@ -1,8 +1,10 @@
1
1
  import { s as e } from "../../sva-B7kca5XO.js";
2
- const t = ["wrapper", "control", "element"], c = e({
2
+ const t = ["wrapper", "control", "element"], a = e({
3
3
  slots: t,
4
4
  base: {
5
5
  wrapper: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style",
6
8
  display: "block",
7
9
  position: "relative",
8
10
  lineHeight: 1,
@@ -122,5 +124,5 @@ const t = ["wrapper", "control", "element"], c = e({
122
124
  }
123
125
  });
124
126
  export {
125
- c as select
127
+ a as select
126
128
  };
@@ -3,6 +3,8 @@ const i = t({
3
3
  slots: ["root", "content", "footer", "closeButton"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment (no paint due to fixed positioning)
7
+ contain: "layout style",
6
8
  textStyle: "typography.body.md",
7
9
  position: "fixed",
8
10
  insetBlockStart: "spacing.0",
@@ -10,6 +10,8 @@ const i = e({
10
10
  ],
11
11
  base: {
12
12
  root: {
13
+ // Performance: CSS containment (no paint to allow focus ring/shadow)
14
+ contain: "layout style",
13
15
  display: "flex",
14
16
  flexDirection: "column"
15
17
  },
@@ -1,14 +1,16 @@
1
- import { c as i } from "../../cva-DtPMccE9.js";
2
- import { s as t } from "../../sva-B7kca5XO.js";
3
- const o = i({
1
+ import { c as t } from "../../cva-DtPMccE9.js";
2
+ import { s as a } from "../../sva-B7kca5XO.js";
3
+ const o = t({
4
4
  base: {
5
5
  boxSizing: "border-box"
6
6
  },
7
7
  variants: {}
8
- }), e = t({
8
+ }), e = a({
9
9
  slots: ["root", "dot"],
10
10
  base: {
11
11
  root: {
12
+ // Performance: CSS containment (no paint to allow animation effects)
13
+ contain: "layout style",
12
14
  display: "inline-flex",
13
15
  alignItems: "center",
14
16
  gap: "spacing.1"
@@ -10,6 +10,8 @@ const e = t({
10
10
  ],
11
11
  base: {
12
12
  root: {
13
+ // Performance: CSS containment (no paint to allow overflow)
14
+ contain: "layout style",
13
15
  bg: "colour.neutral.10",
14
16
  borderRadius: "radius.system.layout"
15
17
  },
@@ -20,6 +20,12 @@ export declare const tag: import('../../styled-system/types').SlotRecipeRuntimeF
20
20
  _active: {
21
21
  boxShadow: "color-mix(in srgb, {colors.colour.primary.surface}, transparent 60%) 0px 0px 0px 3px";
22
22
  };
23
+ _focus: {
24
+ outline: "[none]";
25
+ };
26
+ _focusVisible: {
27
+ layerStyle: "elevation.focus";
28
+ };
23
29
  };
24
30
  };
25
31
  };
@@ -1,8 +1,10 @@
1
- import { s as r } from "../../sva-B7kca5XO.js";
2
- const t = r({
1
+ import { s as o } from "../../sva-B7kca5XO.js";
2
+ const t = o({
3
3
  slots: ["root", "content", "deleteButton"],
4
4
  base: {
5
5
  root: {
6
+ // Performance: CSS containment limits style recalculation scope
7
+ contain: "layout style",
6
8
  alignItems: "center",
7
9
  bg: "colour.neutral.20",
8
10
  border: "divider",
@@ -53,6 +55,12 @@ const t = r({
53
55
  },
54
56
  _active: {
55
57
  boxShadow: "color-mix(in srgb, {colors.colour.primary.surface}, transparent 60%) 0px 0px 0px 3px"
58
+ },
59
+ _focus: {
60
+ outline: "[none]"
61
+ },
62
+ _focusVisible: {
63
+ layerStyle: "elevation.focus"
56
64
  }
57
65
  }
58
66
  }
@@ -10,6 +10,8 @@ const t = e({
10
10
  ],
11
11
  base: {
12
12
  toggleBase: {
13
+ // Performance: CSS containment (no paint to allow focus ring/shadow)
14
+ contain: "layout style",
13
15
  display: "inline-flex",
14
16
  gap: "spacing.1",
15
17
  color: "colour.primary.fill",
@@ -1,5 +1,5 @@
1
- import { s as o } from "../../sva-B7kca5XO.js";
2
- const a = o({
1
+ import { s as t } from "../../sva-B7kca5XO.js";
2
+ const a = t({
3
3
  slots: ["root", "activator", "content"],
4
4
  base: {
5
5
  root: {
@@ -8,6 +8,8 @@ const a = o({
8
8
  },
9
9
  activator: {},
10
10
  content: {
11
+ // Performance: CSS containment limits style recalculation scope
12
+ contain: "layout style paint",
11
13
  zIndex: "600",
12
14
  width: "[max-content]",
13
15
  maxWidth: "[20em]",
@@ -3775,6 +3775,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
3775
3775
  display: none;
3776
3776
  }
3777
3777
 
3778
+ .contain_layout_style_paint {
3779
+ contain: layout style paint;
3780
+ }
3781
+
3778
3782
  .lh_1 {
3779
3783
  line-height: 1;
3780
3784
  }
@@ -3910,6 +3914,10 @@ const z = `@layer reset, base, tokens, recipes, utilities;
3910
3914
  vertical-align: stretch;
3911
3915
  }
3912
3916
 
3917
+ .contain_layout_style {
3918
+ contain: layout style;
3919
+ }
3920
+
3913
3921
  .ta_start {
3914
3922
  text-align: start;
3915
3923
  }