@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.
- package/dist/components/Badge/Badge.d.ts +2 -6
- package/dist/components/Badge/Badge.js +27 -40
- package/dist/components/Badge/Badge.styles.d.ts +1 -17
- package/dist/components/Badge/Badge.styles.js +5 -24
- package/dist/components/Card/Card.styles.js +2 -0
- package/dist/components/Checkbox/Checkbox.styles.js +2 -0
- package/dist/components/Expander/Expander.styles.js +2 -0
- package/dist/components/Input/Input.styles.d.ts +3 -0
- package/dist/components/Input/Input.styles.js +5 -0
- package/dist/components/Modal/Modal.styles.js +4 -2
- package/dist/components/Panel/Panel.styles.js +2 -0
- package/dist/components/Popover/Popover.styles.js +2 -0
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Progress/Progress.styles.js +2 -0
- package/dist/components/Radio/Radio.styles.js +2 -0
- package/dist/components/RichSelect/RichSelect.styles.js +2 -0
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +2 -0
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +2 -0
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +2 -0
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +2 -0
- package/dist/components/Select/Select.styles.js +4 -2
- package/dist/components/Slideout/Slideout.styles.js +2 -0
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slider/Slider.styles.js +2 -0
- package/dist/components/Spinner/Spinner.styles.js +6 -4
- package/dist/components/TabSet/Tab/Tab.js +98 -84
- package/dist/components/TabSet/Tab/Tab.styles.d.ts +3 -0
- package/dist/components/TabSet/Tab/Tab.styles.js +5 -2
- package/dist/components/TabSet/TabSet.js +84 -66
- package/dist/components/TabSet/TabSet.styles.d.ts +30 -1
- package/dist/components/TabSet/TabSet.styles.js +77 -16
- package/dist/components/Tag/Tag.styles.d.ts +6 -0
- package/dist/components/Tag/Tag.styles.js +10 -2
- package/dist/components/Toggle/Toggle.styles.js +2 -0
- package/dist/components/Tooltip/Tooltip.styles.js +4 -2
- package/dist/{index-Bm5rQqn5.js → index-0AvnPY9d.js} +15 -15
- package/dist/patterns/Shadow/Shadow.js +184 -139
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { s as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
18
|
-
mode:
|
|
19
|
-
pill:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
...
|
|
25
|
-
className:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
...p,
|
|
23
|
+
className: i(
|
|
24
|
+
c(s.root, s.badge, m),
|
|
25
|
+
t,
|
|
26
|
+
g.Badge
|
|
29
27
|
),
|
|
30
|
-
children:
|
|
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
|
-
|
|
32
|
+
y.displayName = "IressBadge";
|
|
46
33
|
export {
|
|
47
|
-
|
|
34
|
+
y as IressBadge
|
|
48
35
|
};
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
export declare const badge: import('../../styled-system/types').SlotRecipeRuntimeFn<"badge" | "root"
|
|
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"
|
|
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.
|
|
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",
|
|
@@ -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
|
-
],
|
|
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
|
-
|
|
158
|
+
i as modal
|
|
157
159
|
};
|
|
@@ -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-
|
|
9
|
+
import { t as N } from "../../index-0AvnPY9d.js";
|
|
10
10
|
const h = ({
|
|
11
11
|
backgroundImage: e,
|
|
12
12
|
borderRadius: t,
|
|
@@ -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"],
|
|
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
|
-
|
|
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-
|
|
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,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { s as
|
|
3
|
-
const o =
|
|
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 =
|
|
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"
|