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

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 (39) hide show
  1. package/dist/components/Badge/Badge.d.ts +2 -6
  2. package/dist/components/Badge/Badge.js +27 -40
  3. package/dist/components/Badge/Badge.styles.d.ts +1 -17
  4. package/dist/components/Badge/Badge.styles.js +5 -24
  5. package/dist/components/Card/Card.styles.js +2 -0
  6. package/dist/components/Checkbox/Checkbox.styles.js +2 -0
  7. package/dist/components/Expander/Expander.styles.js +2 -0
  8. package/dist/components/Input/Input.styles.d.ts +3 -0
  9. package/dist/components/Input/Input.styles.js +5 -0
  10. package/dist/components/Modal/Modal.styles.js +4 -2
  11. package/dist/components/Panel/Panel.styles.js +2 -0
  12. package/dist/components/Popover/Popover.styles.js +2 -0
  13. package/dist/components/Progress/Progress.js +1 -1
  14. package/dist/components/Progress/Progress.styles.js +2 -0
  15. package/dist/components/Radio/Radio.styles.js +2 -0
  16. package/dist/components/RichSelect/RichSelect.styles.js +2 -0
  17. package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +2 -0
  18. package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +2 -0
  19. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +2 -0
  20. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +2 -0
  21. package/dist/components/Select/Select.styles.js +4 -2
  22. package/dist/components/Slideout/Slideout.styles.js +2 -0
  23. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  24. package/dist/components/Slider/Slider.styles.js +2 -0
  25. package/dist/components/Spinner/Spinner.styles.js +6 -4
  26. package/dist/components/TabSet/Tab/Tab.js +98 -84
  27. package/dist/components/TabSet/Tab/Tab.styles.d.ts +3 -0
  28. package/dist/components/TabSet/Tab/Tab.styles.js +5 -2
  29. package/dist/components/TabSet/TabSet.js +84 -66
  30. package/dist/components/TabSet/TabSet.styles.d.ts +30 -1
  31. package/dist/components/TabSet/TabSet.styles.js +77 -16
  32. package/dist/components/Tag/Tag.styles.d.ts +6 -0
  33. package/dist/components/Tag/Tag.styles.js +10 -2
  34. package/dist/components/Toggle/Toggle.styles.js +2 -0
  35. package/dist/components/Tooltip/Tooltip.styles.js +4 -2
  36. package/dist/{index-Bm5rQqn5.js → index-0AvnPY9d.js} +15 -15
  37. package/dist/patterns/Shadow/Shadow.js +184 -139
  38. package/dist/style.css +1 -1
  39. package/package.json +2 -2
@@ -1,14 +1,10 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { IressStyledProps, Statuses } from '../../types';
3
3
  export interface IressBadgeProps extends IressStyledProps<'span'> {
4
4
  /**
5
5
  * Content of the badge.
6
6
  */
7
7
  children?: ReactNode;
8
- /**
9
- * Element to attach the badge to.
10
- */
11
- host?: ReactElement;
12
8
  /**
13
9
  * Style of the badge.
14
10
  */
@@ -19,6 +15,6 @@ export interface IressBadgeProps extends IressStyledProps<'span'> {
19
15
  pill?: boolean;
20
16
  }
21
17
  export declare const IressBadge: {
22
- ({ children, mode, pill, className, host, ...restProps }: IressBadgeProps): import("react/jsx-runtime").JSX.Element;
18
+ ({ children, mode, pill, className, ...restProps }: IressBadgeProps): import("react/jsx-runtime").JSX.Element;
23
19
  displayName: string;
24
20
  };
@@ -1,48 +1,35 @@
1
- import { jsx as c, jsxs as n } from "react/jsx-runtime";
2
- import { propagateTestid as f } from "../../helpers/utility/propagateTestid.js";
3
- import { c as r } from "../../css-DNdLYQld.js";
4
- import { c as g } from "../../cx-DN21T1EH.js";
5
- import { badge as b } from "./Badge.styles.js";
6
- import { s as x } from "../../factory-CsinCTPr.js";
7
- import { s as y } from "../../is-valid-prop-DweT-eOL.js";
8
- import { GlobalCSSClass as B } from "../../enums.js";
9
- const C = ({
10
- children: e,
11
- mode: m = "neutral",
12
- pill: p,
13
- className: d,
14
- host: s,
15
- ...a
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { c } from "../../css-DNdLYQld.js";
3
+ import { c as i } from "../../cx-DN21T1EH.js";
4
+ import { badge as n } from "./Badge.styles.js";
5
+ import { s as d } from "../../factory-CsinCTPr.js";
6
+ import { s as f } from "../../is-valid-prop-DweT-eOL.js";
7
+ import { GlobalCSSClass as g } from "../../enums.js";
8
+ const y = ({
9
+ children: o,
10
+ mode: r = "neutral",
11
+ pill: a,
12
+ className: t,
13
+ ...e
16
14
  }) => {
17
- const o = b.raw({
18
- mode: m,
19
- pill: p,
20
- host: !!s
21
- }), [i, l] = y(a), t = /* @__PURE__ */ c(
22
- x.span,
15
+ const s = n.raw({
16
+ mode: r,
17
+ pill: a
18
+ }), [m, p] = f(e);
19
+ return /* @__PURE__ */ l(
20
+ d.span,
23
21
  {
24
- ...l,
25
- className: g(
26
- r(o.root, o.badge, i),
27
- d,
28
- B.Badge
22
+ ...p,
23
+ className: i(
24
+ c(s.root, s.badge, m),
25
+ t,
26
+ g.Badge
29
27
  ),
30
- children: e
28
+ children: o
31
29
  }
32
30
  );
33
- return s ? /* @__PURE__ */ n(
34
- "div",
35
- {
36
- className: r(o.host),
37
- "data-testid": f(a["data-testid"], "host"),
38
- children: [
39
- s,
40
- t
41
- ]
42
- }
43
- ) : t;
44
31
  };
45
- C.displayName = "IressBadge";
32
+ y.displayName = "IressBadge";
46
33
  export {
47
- C as IressBadge
34
+ y as IressBadge
48
35
  };
@@ -1,20 +1,4 @@
1
- export declare const badge: import('../../styled-system/types').SlotRecipeRuntimeFn<"badge" | "root" | "host", {
2
- host: {
3
- true: {
4
- badge: {
5
- position: "absolute";
6
- insetBlockStart: "spacing.0";
7
- insetInlineEnd: "spacing.0";
8
- zIndex: "100";
9
- transformOrigin: "100% 0";
10
- borderRadius: "radius.100";
11
- transform: {
12
- base: "translate(50%, -50%)";
13
- _rtl: "translate(-50%, -50%)";
14
- };
15
- };
16
- };
17
- };
1
+ export declare const badge: import('../../styled-system/types').SlotRecipeRuntimeFn<"badge" | "root", {
18
2
  pill: {
19
3
  true: {
20
4
  badge: {
@@ -1,8 +1,10 @@
1
1
  import { s as o } from "../../sva-B7kca5XO.js";
2
2
  const r = o({
3
- slots: ["root", "badge", "host"],
3
+ slots: ["root", "badge"],
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",
@@ -12,7 +14,7 @@ const r = o({
12
14
  whiteSpace: "nowrap",
13
15
  textDecoration: "none",
14
16
  minHeight: "[1.35em]",
15
- minWidth: "[1.35em]"
17
+ minWidth: "[1.5em]"
16
18
  },
17
19
  badge: {
18
20
  alignItems: "center",
@@ -24,29 +26,9 @@ const r = o({
24
26
  lineHeight: 1,
25
27
  display: "inline-block"
26
28
  }
27
- },
28
- host: {
29
- position: "relative",
30
- height: "auto"
31
29
  }
32
30
  },
33
31
  variants: {
34
- host: {
35
- true: {
36
- badge: {
37
- position: "absolute",
38
- insetBlockStart: "spacing.0",
39
- insetInlineEnd: "spacing.0",
40
- zIndex: "100",
41
- transformOrigin: "100% 0",
42
- borderRadius: "radius.100",
43
- transform: {
44
- base: "translate(50%, -50%)",
45
- _rtl: "translate(-50%, -50%)"
46
- }
47
- }
48
- }
49
- },
50
32
  pill: {
51
33
  true: {
52
34
  badge: {
@@ -149,8 +131,7 @@ const r = o({
149
131
  },
150
132
  defaultVariants: {
151
133
  mode: "neutral",
152
- pill: !1,
153
- host: !1
134
+ pill: !1
154
135
  }
155
136
  });
156
137
  export {
@@ -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"
@@ -22,6 +22,9 @@ export declare const input: import('../../styled-system/types').SlotRecipeRuntim
22
22
  };
23
23
  isTextarea: {
24
24
  true: {
25
+ wrapper: {
26
+ alignItems: "end";
27
+ };
25
28
  formControl: {
26
29
  lineHeight: number;
27
30
  height: "auto";
@@ -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",
@@ -104,6 +106,9 @@ const o = r({
104
106
  },
105
107
  isTextarea: {
106
108
  true: {
109
+ wrapper: {
110
+ alignItems: "end"
111
+ },
107
112
  formControl: {
108
113
  lineHeight: 1.5,
109
114
  height: "auto",
@@ -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",
@@ -6,7 +6,7 @@ import { progress as b } from "./Progress.styles.js";
6
6
  import { s as p } from "../../factory-CsinCTPr.js";
7
7
  import { s as x } from "../../is-valid-prop-DweT-eOL.js";
8
8
  import { GlobalCSSClass as C } from "../../enums.js";
9
- import { t as N } from "../../index-Bm5rQqn5.js";
9
+ import { t as N } from "../../index-0AvnPY9d.js";
10
10
  const h = ({
11
11
  backgroundImage: e,
12
12
  borderRadius: t,
@@ -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",
@@ -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-Bm5rQqn5.js";
3
+ import { t as p } from "../../../index-0AvnPY9d.js";
4
4
  import { useBreakpoint as S } from "../../../hooks/useBreakpoint.js";
5
5
  function h({
6
6
  element: r,
@@ -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"