@astral/ui 4.89.0 → 4.90.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.
- package/components/Accordion/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
- package/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
- package/components/Badge/styles.js +7 -0
- package/components/BulletListItem/styles.d.ts +1 -1
- package/components/Chevron/styles.d.ts +1 -1
- package/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
- package/components/ComplianceStatus/styles.d.ts +3 -3
- package/components/CopyTypography/styles.d.ts +1 -1
- package/components/DataGrid/Row/styles.d.ts +1 -1
- package/components/DataGridCollapsibleRow/styles.d.ts +1 -1
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
- package/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
- package/components/HintIcon/HintIcon.d.ts +1 -1
- package/components/HintIcon/HintIcon.js +2 -2
- package/components/HintIcon/Icon/Icon.d.ts +1 -1
- package/components/HintIcon/Icon/Icon.js +11 -4
- package/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
- package/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
- package/components/HintIcon/constants.d.ts +5 -4
- package/components/HintIcon/constants.js +4 -5
- package/components/HintIcon/types.d.ts +6 -0
- package/components/IconButton/IconButton.js +4 -2
- package/components/IconButton/constants.d.ts +3 -0
- package/components/IconButton/constants.js +4 -0
- package/components/IconButton/index.d.ts +1 -0
- package/components/IconButton/index.js +1 -0
- package/components/IconButton/public.d.ts +1 -0
- package/components/IconButton/public.js +1 -0
- package/components/JsonViewer/JsonNode/styles.d.ts +1 -1
- package/components/LegacyNotification/styles.d.ts +4 -4
- package/components/Loader/styles.d.ts +1 -1
- package/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
- package/components/NewPopover/styles.js +1 -1
- package/components/NewStepper/Step/styles.d.ts +1 -1
- package/components/Notification/styles.d.ts +4 -4
- package/components/SearchField/styles.d.ts +1 -1
- package/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/components/Stepper/StepIcon/styles.d.ts +5 -5
- package/components/SvgIcon/SvgIcon.js +11 -1
- package/components/SvgIcon/constants.d.ts +4 -0
- package/components/SvgIcon/constants.js +4 -0
- package/components/SvgIcon/styles.js +7 -4
- package/components/SvgIcon/types.d.ts +2 -2
- package/components/Tree/TreeItem/styles.d.ts +1 -1
- package/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/hook-form/EditableText/styles.d.ts +1 -1
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
- package/node/components/Accordion/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/DefaultState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/LoadingState/styles.d.ts +1 -1
- package/node/components/AutoSaveIndicator/SuccessState/styles.d.ts +1 -1
- package/node/components/Badge/styles.js +7 -0
- package/node/components/BulletListItem/styles.d.ts +1 -1
- package/node/components/Chevron/styles.d.ts +1 -1
- package/node/components/Chip/ChipStatusIcon/styled.d.ts +1 -1
- package/node/components/ComplianceStatus/styles.d.ts +3 -3
- package/node/components/CopyTypography/styles.d.ts +1 -1
- package/node/components/DataGrid/Row/styles.d.ts +1 -1
- package/node/components/DataGridCollapsibleRow/styles.d.ts +1 -1
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.d.ts +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.d.ts +2 -2
- package/node/components/FormHelperText/FormHelperTextContent/styles.d.ts +2 -2
- package/node/components/HintIcon/HintIcon.d.ts +1 -1
- package/node/components/HintIcon/HintIcon.js +2 -2
- package/node/components/HintIcon/Icon/Icon.d.ts +1 -1
- package/node/components/HintIcon/Icon/Icon.js +10 -3
- package/node/components/HintIcon/Icon/useLogic/useLogic.d.ts +1 -3
- package/node/components/HintIcon/Icon/useLogic/useLogic.js +2 -14
- package/node/components/HintIcon/constants.d.ts +5 -4
- package/node/components/HintIcon/constants.js +4 -5
- package/node/components/HintIcon/types.d.ts +6 -0
- package/node/components/IconButton/IconButton.js +4 -2
- package/node/components/IconButton/constants.d.ts +3 -0
- package/node/components/IconButton/constants.js +7 -0
- package/node/components/IconButton/index.d.ts +1 -0
- package/node/components/IconButton/index.js +3 -0
- package/node/components/IconButton/public.d.ts +1 -0
- package/node/components/IconButton/public.js +3 -0
- package/node/components/JsonViewer/JsonNode/styles.d.ts +1 -1
- package/node/components/LegacyNotification/styles.d.ts +4 -4
- package/node/components/Loader/styles.d.ts +1 -1
- package/node/components/NavMenu/Item/ItemButton/styles.d.ts +2 -2
- package/node/components/NewPopover/styles.js +1 -1
- package/node/components/NewStepper/Step/styles.d.ts +1 -1
- package/node/components/Notification/styles.d.ts +4 -4
- package/node/components/SearchField/styles.d.ts +1 -1
- package/node/components/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/node/components/Stepper/StepIcon/styles.d.ts +5 -5
- package/node/components/SvgIcon/SvgIcon.js +11 -1
- package/node/components/SvgIcon/constants.d.ts +4 -0
- package/node/components/SvgIcon/constants.js +4 -0
- package/node/components/SvgIcon/styles.js +7 -4
- package/node/components/SvgIcon/types.d.ts +2 -2
- package/node/components/Tree/TreeItem/styles.d.ts +1 -1
- package/node/components/fileUploading/FileInfo/styles.d.ts +1 -1
- package/node/hook-form/EditableText/styles.d.ts +1 -1
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export declare const ArrowConnector: import("@emotion/styled/dist/declarations/s
|
|
|
11
11
|
children?: import("react").ReactNode;
|
|
12
12
|
color?: string | undefined;
|
|
13
13
|
titleAccess?: string | undefined;
|
|
14
|
-
size?: "sm" | "md" | undefined;
|
|
14
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
15
15
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const InfoNotificationIcon: import("@emotion/styled/dist/declarat
|
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
titleAccess?: string | undefined;
|
|
6
|
-
size?: "sm" | "md" | undefined;
|
|
6
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
7
7
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
@@ -11,7 +11,7 @@ export declare const SuccessNotificationIcon: import("@emotion/styled/dist/decla
|
|
|
11
11
|
children?: import("react").ReactNode;
|
|
12
12
|
color?: string | undefined;
|
|
13
13
|
titleAccess?: string | undefined;
|
|
14
|
-
size?: "sm" | "md" | undefined;
|
|
14
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
15
15
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -19,7 +19,7 @@ export declare const WarningNotificationIcon: import("@emotion/styled/dist/decla
|
|
|
19
19
|
children?: import("react").ReactNode;
|
|
20
20
|
color?: string | undefined;
|
|
21
21
|
titleAccess?: string | undefined;
|
|
22
|
-
size?: "sm" | "md" | undefined;
|
|
22
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
23
23
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
}, {}, {}>;
|
|
@@ -27,7 +27,7 @@ export declare const ErrorNotificationIcon: import("@emotion/styled/dist/declara
|
|
|
27
27
|
children?: import("react").ReactNode;
|
|
28
28
|
color?: string | undefined;
|
|
29
29
|
titleAccess?: string | undefined;
|
|
30
|
-
size?: "sm" | "md" | undefined;
|
|
30
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
31
31
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
32
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
33
33
|
}, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const SearchIcon: import("@emotion/styled/dist/declarations/src/t
|
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
titleAccess?: string | undefined;
|
|
6
|
-
size?: "sm" | "md" | undefined;
|
|
6
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
7
7
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const ArrowConnector: import("@emotion/styled/dist/declarations/s
|
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
titleAccess?: string | undefined;
|
|
6
|
-
size?: "sm" | "md" | undefined;
|
|
6
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
7
7
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const ErrorIcon: import("@emotion/styled/dist/declarations/src/ty
|
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
titleAccess?: string | undefined;
|
|
6
|
-
size?: "sm" | "md" | undefined;
|
|
6
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
7
7
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
9
|
}, {}, {}>;
|
|
@@ -11,7 +11,7 @@ export declare const SuccessIcon: import("@emotion/styled/dist/declarations/src/
|
|
|
11
11
|
children?: import("react").ReactNode;
|
|
12
12
|
color?: string | undefined;
|
|
13
13
|
titleAccess?: string | undefined;
|
|
14
|
-
size?: "sm" | "md" | undefined;
|
|
14
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
15
15
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -19,7 +19,7 @@ export declare const SelectIcon: import("@emotion/styled/dist/declarations/src/t
|
|
|
19
19
|
children?: import("react").ReactNode;
|
|
20
20
|
color?: string | undefined;
|
|
21
21
|
titleAccess?: string | undefined;
|
|
22
|
-
size?: "sm" | "md" | undefined;
|
|
22
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
23
23
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
} & {
|
|
@@ -29,7 +29,7 @@ export declare const DefaultIcon: import("@emotion/styled/dist/declarations/src/
|
|
|
29
29
|
children?: import("react").ReactNode;
|
|
30
30
|
color?: string | undefined;
|
|
31
31
|
titleAccess?: string | undefined;
|
|
32
|
-
size?: "sm" | "md" | undefined;
|
|
32
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
33
33
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
34
34
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
35
|
}, {}, {}>;
|
|
@@ -37,7 +37,7 @@ export declare const ActiveIcon: import("@emotion/styled/dist/declarations/src/t
|
|
|
37
37
|
children?: import("react").ReactNode;
|
|
38
38
|
color?: string | undefined;
|
|
39
39
|
titleAccess?: string | undefined;
|
|
40
|
-
size?: "sm" | "md" | undefined;
|
|
40
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
41
41
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
42
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
43
43
|
}, {}, {}>;
|
|
@@ -3,10 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SvgIcon = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const classNames_1 = require("../utils/classNames");
|
|
6
|
+
const cva_1 = require("../utils/cva");
|
|
6
7
|
const constants_1 = require("./constants");
|
|
7
8
|
const styles_1 = require("./styles");
|
|
9
|
+
const svgCva = (0, cva_1.cva)(constants_1.svgIconClassnames.root, {
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
auto: constants_1.svgIconClassnames.sizeAuto,
|
|
13
|
+
sm: constants_1.svgIconClassnames.sizeSm,
|
|
14
|
+
md: constants_1.svgIconClassnames.sizeMd,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
8
18
|
const SvgIcon = (props) => {
|
|
9
19
|
const { children, color = 'inherit', titleAccess, size, width, height, viewBox = '0 0 24 24', xmlns = 'http://www.w3.org/2000/svg', className, ...restProps } = props;
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledSvg, { className: (0, classNames_1.classNames)(className,
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledSvg, { className: (0, classNames_1.classNames)(className, svgCva({ size })), viewBox: viewBox, "aria-hidden": titleAccess ? undefined : true, role: titleAccess ? 'img' : undefined, xmlns: xmlns, color: color, width: constants_1.SIZES[size] || width || '1em', height: constants_1.SIZES[size] || height || '1em', ...restProps, children: [children, titleAccess ? (0, jsx_runtime_1.jsx)("title", { children: titleAccess }) : null] }));
|
|
11
21
|
};
|
|
12
22
|
exports.SvgIcon = SvgIcon;
|
|
@@ -5,7 +5,11 @@ const createUIKitClassname_1 = require("../utils/createUIKitClassname");
|
|
|
5
5
|
exports.SIZES = {
|
|
6
6
|
sm: '16px',
|
|
7
7
|
md: '24px',
|
|
8
|
+
auto: '1em',
|
|
8
9
|
};
|
|
9
10
|
exports.svgIconClassnames = {
|
|
10
11
|
root: (0, createUIKitClassname_1.createUIKitClassname)('svg-icon'),
|
|
12
|
+
sizeAuto: (0, createUIKitClassname_1.createUIKitClassname)('svg-icon_size-auto'),
|
|
13
|
+
sizeSm: (0, createUIKitClassname_1.createUIKitClassname)('svg-icon_size-sm'),
|
|
14
|
+
sizeMd: (0, createUIKitClassname_1.createUIKitClassname)('svg-icon_size-md'),
|
|
11
15
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StyledSvg = void 0;
|
|
4
4
|
const styled_1 = require("../styled");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
5
6
|
const getColor = (theme, color) => {
|
|
6
7
|
if (color === 'inherit') {
|
|
7
8
|
return 'inherit';
|
|
@@ -32,10 +33,8 @@ exports.StyledSvg = styled_1.styled.svg `
|
|
|
32
33
|
display: inline-block;
|
|
33
34
|
flex-shrink: 0;
|
|
34
35
|
|
|
35
|
-
font-size: ${({ theme }) =>
|
|
36
|
-
|
|
37
|
-
return theme.typography.pxToRem(24);
|
|
38
|
-
}};
|
|
36
|
+
font-size: ${({ theme }) => theme.typography.pxToRem(24)};
|
|
37
|
+
|
|
39
38
|
color: ${({ theme, color }) => getColor(theme, color)};
|
|
40
39
|
|
|
41
40
|
fill: currentColor;
|
|
@@ -43,4 +42,8 @@ exports.StyledSvg = styled_1.styled.svg `
|
|
|
43
42
|
transition: ${({ theme }) => theme.transitions.create(['fill'], {
|
|
44
43
|
duration: theme.transitions.duration.shorter,
|
|
45
44
|
})};
|
|
45
|
+
|
|
46
|
+
&.${constants_1.svgIconClassnames.sizeAuto} {
|
|
47
|
+
font-size: inherit;
|
|
48
|
+
}
|
|
46
49
|
`;
|
|
@@ -30,7 +30,7 @@ export declare const ChevronIcon: import("@emotion/styled/dist/declarations/src/
|
|
|
30
30
|
children?: import("react").ReactNode;
|
|
31
31
|
color?: string | undefined;
|
|
32
32
|
titleAccess?: string | undefined;
|
|
33
|
-
size?: "sm" | "md" | undefined;
|
|
33
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
34
34
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
35
35
|
theme?: import("@emotion/react").Theme | undefined;
|
|
36
36
|
} & {
|
|
@@ -358,7 +358,7 @@ export declare const DotIcon: import("@emotion/styled/dist/declarations/src/type
|
|
|
358
358
|
children?: import("react").ReactNode;
|
|
359
359
|
color?: string | undefined;
|
|
360
360
|
titleAccess?: string | undefined;
|
|
361
|
-
size?: "sm" | "md" | undefined;
|
|
361
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
362
362
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
363
363
|
theme?: import("@emotion/react").Theme | undefined;
|
|
364
364
|
}, {}, {}>;
|
|
@@ -17,7 +17,7 @@ export declare const StyledEditIcon: import("@emotion/styled/dist/declarations/s
|
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
18
|
color?: string | undefined;
|
|
19
19
|
titleAccess?: string | undefined;
|
|
20
|
-
size?: "sm" | "md" | undefined;
|
|
20
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
21
21
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
22
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
23
|
} & {
|
|
@@ -13,7 +13,7 @@ export declare const StyledPreviousIcon: import("@emotion/styled/dist/declaratio
|
|
|
13
13
|
children?: import("react").ReactNode;
|
|
14
14
|
color?: string | undefined;
|
|
15
15
|
titleAccess?: string | undefined;
|
|
16
|
-
size?: "sm" | "md" | undefined;
|
|
16
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
17
17
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
}, {}, {}>;
|
|
@@ -21,7 +21,7 @@ export declare const StyledNextIcon: import("@emotion/styled/dist/declarations/s
|
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
color?: string | undefined;
|
|
23
23
|
titleAccess?: string | undefined;
|
|
24
|
-
size?: "sm" | "md" | undefined;
|
|
24
|
+
size?: "sm" | "md" | "auto" | undefined;
|
|
25
25
|
} & import("react").SVGProps<SVGSVGElement> & {
|
|
26
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
27
|
}, {}, {}>;
|