uikit-react-public 0.45.2 → 0.45.5
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/Alert/Alert.d.ts +4 -1
- package/dist/components/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Label/Label.d.ts +1 -0
- package/dist/components/Label/Label.stories.d.ts +1 -0
- package/dist/index.js +76 -63
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +2 -2
- package/lib/components/Alert/Alert.tsx +18 -2
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +16 -8
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +2 -2
- package/lib/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +6 -6
- package/lib/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +4 -4
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +4 -4
- package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +2 -2
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +8 -8
- package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +2 -2
- package/lib/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +5 -5
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +2 -2
- package/lib/components/FileInput/__tests__/__snapshots__/FileInput.test.tsx.snap +2 -2
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +21 -21
- package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +27 -27
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +1 -1
- package/lib/components/Icon/BaseIcon.tsx +1 -0
- package/lib/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +4 -4
- package/lib/components/IconButton/__tests__/__snapshots__/IconButton.test.tsx.snap +3 -3
- package/lib/components/Label/Label.stories.tsx +17 -0
- package/lib/components/Label/Label.tsx +4 -7
- package/lib/components/Label/__tests__/Label.test.tsx +15 -0
- package/lib/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +1 -3
- package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +4 -4
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +1 -1
- package/lib/components/Sidebar/__tests__/__snapshots__/Sidebar.test.tsx.snap +6 -6
- package/lib/components/Snackbar/__tests__/__snapshots__/Snackbar.test.tsx.snap +3 -3
- package/lib/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +1 -1
- package/lib/components/Table/subcomponents/Cell/__tests__/__snapshots__/Cell.test.tsx.snap +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon';
|
|
2
3
|
import { default as AlertMessage } from './AlertMessage';
|
|
3
4
|
import { default as AlertTitle } from './AlertTitle';
|
|
4
5
|
import { MarginProps } from '../common/marginsStyle';
|
|
@@ -11,11 +12,13 @@ export declare const AlertContext: import('react').Context<AlertContextProps | n
|
|
|
11
12
|
export declare function useAlertContext(): AlertContextProps;
|
|
12
13
|
export interface AlertBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
14
|
type: AlertType;
|
|
15
|
+
iconProps?: Omit<IconProps, 'svg'>;
|
|
16
|
+
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
14
17
|
testId?: string;
|
|
15
18
|
}
|
|
16
19
|
export type AlertProps = AlertBaseProps & MarginProps;
|
|
17
20
|
declare const Alert: {
|
|
18
|
-
({ type, children, testId, className, ...props }: AlertProps): import("react").JSX.Element;
|
|
21
|
+
({ type, iconProps, contentProps, children, testId, className, ...props }: AlertProps): import("react").JSX.Element;
|
|
19
22
|
Title: ({ children, testId, className, ...props }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
|
|
20
23
|
Message: ({ testId, className, children, ...props }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
|
|
21
24
|
};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: {
|
|
5
|
-
({ type, children, testId, className, ...props }: import('./Alert').AlertProps): import("react").JSX.Element;
|
|
5
|
+
({ type, iconProps, contentProps, children, testId, className, ...props }: import('./Alert').AlertProps): import("react").JSX.Element;
|
|
6
6
|
Title: ({ children, testId, className, ...props }: import('./AlertTitle').AlertTitleProps) => import("react").JSX.Element;
|
|
7
7
|
Message: ({ testId, className, children, ...props }: import('./AlertMessage').AlertMessageProps) => import("react").JSX.Element;
|
|
8
8
|
} & import('./Alert').IAlertSubComponents;
|
package/dist/index.js
CHANGED
|
@@ -935,6 +935,7 @@ const kr = "ucl-uikit-icon", Bc = ({
|
|
|
935
935
|
}) => {
|
|
936
936
|
const u = d`
|
|
937
937
|
vertical-align: middle;
|
|
938
|
+
flex-shrink: 0;
|
|
938
939
|
`, s = A(kr, u, a);
|
|
939
940
|
return /* @__PURE__ */ n(
|
|
940
941
|
e,
|
|
@@ -20949,20 +20950,21 @@ const M3 = (e, t) => {
|
|
|
20949
20950
|
type: e = "block",
|
|
20950
20951
|
disabled: t,
|
|
20951
20952
|
optional: o,
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20953
|
+
optionalClassName: r,
|
|
20954
|
+
testId: l = dl,
|
|
20955
|
+
className: i,
|
|
20956
|
+
children: a,
|
|
20957
|
+
...c
|
|
20958
|
+
}, u) => {
|
|
20959
|
+
const [s] = L(), {
|
|
20960
|
+
disabled: f,
|
|
20961
|
+
optional: h,
|
|
20962
|
+
id: p
|
|
20961
20963
|
} = St(Tt);
|
|
20962
|
-
t = t ??
|
|
20963
|
-
const
|
|
20964
|
+
t = t ?? f, o = o ?? h;
|
|
20965
|
+
const m = c.htmlFor ?? p, { mdSemibold: y } = s.typography.body, b = d`
|
|
20964
20966
|
width: 100%;
|
|
20965
|
-
color: ${
|
|
20967
|
+
color: ${s.colour.text.default};
|
|
20966
20968
|
font-family: ${y.fontFamily};
|
|
20967
20969
|
font-feature-settings: ${y.fontSettings};
|
|
20968
20970
|
font-size: ${y.fontSize}px;
|
|
@@ -20973,32 +20975,29 @@ const M3 = (e, t) => {
|
|
|
20973
20975
|
`, k = d`
|
|
20974
20976
|
display: inline;
|
|
20975
20977
|
`, x = d`
|
|
20976
|
-
color: ${
|
|
20978
|
+
color: ${s.colour.text.disabled};
|
|
20977
20979
|
`, S = A(
|
|
20978
20980
|
dl,
|
|
20979
20981
|
b,
|
|
20980
|
-
He(
|
|
20982
|
+
He(c, s),
|
|
20981
20983
|
e === "block" && C,
|
|
20982
20984
|
e === "inline" && k,
|
|
20983
20985
|
t && x,
|
|
20984
|
-
|
|
20985
|
-
)
|
|
20986
|
-
font-weight: ${m.fontWeight};
|
|
20987
|
-
font-style: italic;
|
|
20988
|
-
`;
|
|
20986
|
+
i
|
|
20987
|
+
);
|
|
20989
20988
|
return /* @__PURE__ */ g(
|
|
20990
20989
|
"label",
|
|
20991
20990
|
{
|
|
20992
|
-
ref:
|
|
20993
|
-
htmlFor:
|
|
20991
|
+
ref: u,
|
|
20992
|
+
htmlFor: m,
|
|
20994
20993
|
className: S,
|
|
20995
|
-
"data-testid":
|
|
20996
|
-
...
|
|
20994
|
+
"data-testid": l,
|
|
20995
|
+
...c,
|
|
20997
20996
|
children: [
|
|
20998
|
-
|
|
20997
|
+
a,
|
|
20999
20998
|
o && /* @__PURE__ */ g(Oe, { children: [
|
|
21000
20999
|
" ",
|
|
21001
|
-
/* @__PURE__ */ n("span", { className:
|
|
21000
|
+
/* @__PURE__ */ n("span", { className: r, children: "(optional)" })
|
|
21002
21001
|
] })
|
|
21003
21002
|
]
|
|
21004
21003
|
}
|
|
@@ -28026,53 +28025,59 @@ const Li = "ucl-uikit-alert__message", t5 = ({
|
|
|
28026
28025
|
);
|
|
28027
28026
|
}, n5 = (e) => e.charAt(0).toUpperCase() + e.slice(1), Hi = "ucl-uikit-alert", r5 = ct(null), dr = ({
|
|
28028
28027
|
type: e,
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
|
|
28028
|
+
iconProps: t,
|
|
28029
|
+
contentProps: o,
|
|
28030
|
+
children: r,
|
|
28031
|
+
testId: l = Hi,
|
|
28032
|
+
className: i,
|
|
28033
|
+
...a
|
|
28033
28034
|
}) => {
|
|
28034
|
-
const
|
|
28035
|
+
const c = n5(e), [u] = L(), { padding: s } = u, f = d`
|
|
28035
28036
|
display: flex;
|
|
28036
28037
|
align-items: flex-start;
|
|
28037
|
-
gap: ${
|
|
28038
|
-
padding: ${
|
|
28038
|
+
gap: ${u.margin.m8};
|
|
28039
|
+
padding: ${s.p16} ${s.p12} ${s.p16} ${s.p8};
|
|
28039
28040
|
border-left-width: 4px;
|
|
28040
28041
|
border-left-style: solid;
|
|
28041
|
-
`, s = d`
|
|
28042
|
-
background-color: ${a.colour.surface.brand};
|
|
28043
|
-
border-color: ${a.colour.border.brand};
|
|
28044
|
-
`, f = d`
|
|
28045
|
-
background-color: ${a.colour.surface.success};
|
|
28046
|
-
border-color: ${a.colour.border.success};
|
|
28047
28042
|
`, h = d`
|
|
28048
|
-
background-color: ${
|
|
28049
|
-
border-color: ${
|
|
28043
|
+
background-color: ${u.colour.surface.brand};
|
|
28044
|
+
border-color: ${u.colour.border.brand};
|
|
28050
28045
|
`, p = d`
|
|
28051
|
-
background-color: ${
|
|
28052
|
-
border-color: ${
|
|
28053
|
-
`, m =
|
|
28046
|
+
background-color: ${u.colour.surface.success};
|
|
28047
|
+
border-color: ${u.colour.border.success};
|
|
28048
|
+
`, m = d`
|
|
28049
|
+
background-color: ${u.colour.surface.warning};
|
|
28050
|
+
border-color: ${u.colour.border.warning};
|
|
28051
|
+
`, y = d`
|
|
28052
|
+
background-color: ${u.colour.surface.critical};
|
|
28053
|
+
border-color: ${u.colour.border.critical};
|
|
28054
|
+
`, b = A(
|
|
28054
28055
|
Hi,
|
|
28055
|
-
|
|
28056
|
-
He(
|
|
28057
|
-
e === "info" &&
|
|
28058
|
-
e === "success" &&
|
|
28059
|
-
e === "warning" &&
|
|
28060
|
-
e === "error" &&
|
|
28061
|
-
|
|
28062
|
-
),
|
|
28056
|
+
f,
|
|
28057
|
+
He(a, u),
|
|
28058
|
+
e === "info" && h,
|
|
28059
|
+
e === "success" && p,
|
|
28060
|
+
e === "warning" && m,
|
|
28061
|
+
e === "error" && y,
|
|
28062
|
+
i
|
|
28063
|
+
), C = A(
|
|
28063
28064
|
e === "info" && d`
|
|
28064
|
-
color: ${
|
|
28065
|
+
color: ${u.colour.icon.brand};
|
|
28065
28066
|
`,
|
|
28066
28067
|
e === "success" && d`
|
|
28067
|
-
color: ${
|
|
28068
|
+
color: ${u.colour.icon.success};
|
|
28068
28069
|
`,
|
|
28069
28070
|
e === "warning" && d`
|
|
28070
|
-
color: ${
|
|
28071
|
+
color: ${u.colour.icon.warning};
|
|
28071
28072
|
`,
|
|
28072
28073
|
e === "error" && d`
|
|
28073
|
-
color: ${
|
|
28074
|
+
color: ${u.colour.icon.critical};
|
|
28074
28075
|
`
|
|
28075
|
-
),
|
|
28076
|
+
), k = d`
|
|
28077
|
+
flex: 1;
|
|
28078
|
+
min-width: 0;
|
|
28079
|
+
overflow-wrap: anywhere;
|
|
28080
|
+
`, x = {
|
|
28076
28081
|
info: P.Info,
|
|
28077
28082
|
success: P.CheckCircle,
|
|
28078
28083
|
warning: P.AlertTriangle,
|
|
@@ -28081,19 +28086,27 @@ const Li = "ucl-uikit-alert__message", t5 = ({
|
|
|
28081
28086
|
return /* @__PURE__ */ n(r5.Provider, { value: { type: e }, children: /* @__PURE__ */ g(
|
|
28082
28087
|
"div",
|
|
28083
28088
|
{
|
|
28084
|
-
className:
|
|
28085
|
-
"data-testid":
|
|
28089
|
+
className: b,
|
|
28090
|
+
"data-testid": l,
|
|
28086
28091
|
role: "alert",
|
|
28087
|
-
...
|
|
28092
|
+
...a,
|
|
28088
28093
|
children: [
|
|
28089
28094
|
/* @__PURE__ */ n(
|
|
28090
|
-
|
|
28095
|
+
x,
|
|
28091
28096
|
{
|
|
28092
|
-
className:
|
|
28093
|
-
"aria-label":
|
|
28097
|
+
className: C,
|
|
28098
|
+
"aria-label": c,
|
|
28099
|
+
...t
|
|
28094
28100
|
}
|
|
28095
28101
|
),
|
|
28096
|
-
/* @__PURE__ */ n(
|
|
28102
|
+
/* @__PURE__ */ n(
|
|
28103
|
+
"div",
|
|
28104
|
+
{
|
|
28105
|
+
...o,
|
|
28106
|
+
className: A(k, o == null ? void 0 : o.className),
|
|
28107
|
+
children: r
|
|
28108
|
+
}
|
|
28109
|
+
)
|
|
28097
28110
|
]
|
|
28098
28111
|
}
|
|
28099
28112
|
) });
|
|
@@ -15,7 +15,7 @@ exports[`Accordion > snapshot: no props 1`] = `
|
|
|
15
15
|
>
|
|
16
16
|
Heading
|
|
17
17
|
<svg
|
|
18
|
-
class="ucl-uikit-icon ucl-uikit-accordion__heading__icon css-
|
|
18
|
+
class="ucl-uikit-icon ucl-uikit-accordion__heading__icon css-2wx333"
|
|
19
19
|
data-testid="ucl-uikit-icon"
|
|
20
20
|
fill="none"
|
|
21
21
|
focusable="false"
|
|
@@ -51,7 +51,7 @@ exports[`Accordion > snapshot: testId prop 1`] = `
|
|
|
51
51
|
>
|
|
52
52
|
Heading
|
|
53
53
|
<svg
|
|
54
|
-
class="ucl-uikit-icon ucl-uikit-accordion__heading__icon css-
|
|
54
|
+
class="ucl-uikit-icon ucl-uikit-accordion__heading__icon css-2wx333"
|
|
55
55
|
data-testid="ucl-uikit-icon"
|
|
56
56
|
fill="none"
|
|
57
57
|
focusable="false"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, HTMLAttributes } from 'react';
|
|
2
2
|
import { css, cx } from '@emotion/css';
|
|
3
|
-
import Icon from '../Icon';
|
|
3
|
+
import Icon, { IconProps } from '../Icon';
|
|
4
4
|
import AlertMessage from './AlertMessage';
|
|
5
5
|
import AlertTitle from './AlertTitle';
|
|
6
6
|
import marginsStyle, { MarginProps } from '../common/marginsStyle';
|
|
@@ -27,6 +27,8 @@ export function useAlertContext() {
|
|
|
27
27
|
|
|
28
28
|
export interface AlertBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
29
|
type: AlertType;
|
|
30
|
+
iconProps?: Omit<IconProps, 'svg'>;
|
|
31
|
+
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
30
32
|
testId?: string;
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -34,6 +36,8 @@ export type AlertProps = AlertBaseProps & MarginProps;
|
|
|
34
36
|
|
|
35
37
|
const Alert = ({
|
|
36
38
|
type,
|
|
39
|
+
iconProps,
|
|
40
|
+
contentProps,
|
|
37
41
|
children,
|
|
38
42
|
testId = NAME,
|
|
39
43
|
className,
|
|
@@ -104,6 +108,12 @@ const Alert = ({
|
|
|
104
108
|
`
|
|
105
109
|
);
|
|
106
110
|
|
|
111
|
+
const contentStyle = css`
|
|
112
|
+
flex: 1;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
overflow-wrap: anywhere;
|
|
115
|
+
`;
|
|
116
|
+
|
|
107
117
|
const IconComp = {
|
|
108
118
|
info: Icon.Info,
|
|
109
119
|
success: Icon.CheckCircle,
|
|
@@ -122,8 +132,14 @@ const Alert = ({
|
|
|
122
132
|
<IconComp
|
|
123
133
|
className={iconStyle}
|
|
124
134
|
aria-label={typeName}
|
|
135
|
+
{...iconProps}
|
|
125
136
|
/>
|
|
126
|
-
<div
|
|
137
|
+
<div
|
|
138
|
+
{...contentProps}
|
|
139
|
+
className={cx(contentStyle, contentProps?.className)}
|
|
140
|
+
>
|
|
141
|
+
{children}
|
|
142
|
+
</div>
|
|
127
143
|
</div>
|
|
128
144
|
</AlertContext.Provider>
|
|
129
145
|
);
|
|
@@ -8,7 +8,7 @@ exports[`Alert > snapshot: type=error 1`] = `
|
|
|
8
8
|
>
|
|
9
9
|
<svg
|
|
10
10
|
aria-label="Error"
|
|
11
|
-
class="ucl-uikit-icon css-
|
|
11
|
+
class="ucl-uikit-icon css-16jv6ib"
|
|
12
12
|
data-testid="ucl-uikit-icon"
|
|
13
13
|
fill="none"
|
|
14
14
|
focusable="false"
|
|
@@ -30,7 +30,9 @@ exports[`Alert > snapshot: type=error 1`] = `
|
|
|
30
30
|
d="m15 9-6 6m0-6 6 6"
|
|
31
31
|
/>
|
|
32
32
|
</svg>
|
|
33
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
class="css-1ig476w"
|
|
35
|
+
>
|
|
34
36
|
<h3
|
|
35
37
|
class="ucl-uikit-alert__title css-mm5n7t"
|
|
36
38
|
data-test-id="ucl-uikit-alert__title"
|
|
@@ -60,7 +62,7 @@ exports[`Alert > snapshot: type=info, no title 1`] = `
|
|
|
60
62
|
>
|
|
61
63
|
<svg
|
|
62
64
|
aria-label="Info"
|
|
63
|
-
class="ucl-uikit-icon css-
|
|
65
|
+
class="ucl-uikit-icon css-b4260q"
|
|
64
66
|
data-testid="ucl-uikit-icon"
|
|
65
67
|
fill="none"
|
|
66
68
|
focusable="false"
|
|
@@ -82,7 +84,9 @@ exports[`Alert > snapshot: type=info, no title 1`] = `
|
|
|
82
84
|
d="M12 16v-4m0-4h.01"
|
|
83
85
|
/>
|
|
84
86
|
</svg>
|
|
85
|
-
<div
|
|
87
|
+
<div
|
|
88
|
+
class="css-1ig476w"
|
|
89
|
+
>
|
|
86
90
|
<p
|
|
87
91
|
class="ucl-uikit-paragraph ucl-uikit-alert__message css-1dosm7d"
|
|
88
92
|
data-testid="ucl-uikit-alert__message"
|
|
@@ -101,7 +105,7 @@ exports[`Alert > snapshot: type=success 1`] = `
|
|
|
101
105
|
>
|
|
102
106
|
<svg
|
|
103
107
|
aria-label="Success"
|
|
104
|
-
class="ucl-uikit-icon css-
|
|
108
|
+
class="ucl-uikit-icon css-t5um01"
|
|
105
109
|
data-testid="ucl-uikit-icon"
|
|
106
110
|
fill="none"
|
|
107
111
|
focusable="false"
|
|
@@ -121,7 +125,9 @@ exports[`Alert > snapshot: type=success 1`] = `
|
|
|
121
125
|
d="M22 4 12 14.01l-3-3"
|
|
122
126
|
/>
|
|
123
127
|
</svg>
|
|
124
|
-
<div
|
|
128
|
+
<div
|
|
129
|
+
class="css-1ig476w"
|
|
130
|
+
>
|
|
125
131
|
<h3
|
|
126
132
|
class="ucl-uikit-alert__title css-mm5n7t"
|
|
127
133
|
data-test-id="ucl-uikit-alert__title"
|
|
@@ -151,7 +157,7 @@ exports[`Alert > snapshot: type=warning 1`] = `
|
|
|
151
157
|
>
|
|
152
158
|
<svg
|
|
153
159
|
aria-label="Warning"
|
|
154
|
-
class="ucl-uikit-icon css-
|
|
160
|
+
class="ucl-uikit-icon css-12gjszp"
|
|
155
161
|
data-testid="ucl-uikit-icon"
|
|
156
162
|
fill="none"
|
|
157
163
|
focusable="false"
|
|
@@ -168,7 +174,9 @@ exports[`Alert > snapshot: type=warning 1`] = `
|
|
|
168
174
|
d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0M12 9v4m0 4h.01"
|
|
169
175
|
/>
|
|
170
176
|
</svg>
|
|
171
|
-
<div
|
|
177
|
+
<div
|
|
178
|
+
class="css-1ig476w"
|
|
179
|
+
>
|
|
172
180
|
<h3
|
|
173
181
|
class="ucl-uikit-alert__title css-mm5n7t"
|
|
174
182
|
data-test-id="ucl-uikit-alert__title"
|
|
@@ -16,7 +16,7 @@ exports[`AppMenu > snapshot: defaultOpen prop 1`] = `
|
|
|
16
16
|
tabindex="0"
|
|
17
17
|
>
|
|
18
18
|
<svg
|
|
19
|
-
class="ucl-uikit-icon css-
|
|
19
|
+
class="ucl-uikit-icon css-f962ig"
|
|
20
20
|
data-testid="ucl-uikit-icon"
|
|
21
21
|
fill="none"
|
|
22
22
|
focusable="false"
|
|
@@ -54,7 +54,7 @@ exports[`AppMenu > snapshot: defaultOpen prop 1`] = `
|
|
|
54
54
|
class="css-1epmcqg"
|
|
55
55
|
>
|
|
56
56
|
<svg
|
|
57
|
-
class="ucl-uikit-icon css-
|
|
57
|
+
class="ucl-uikit-icon css-f962ig"
|
|
58
58
|
data-testid="ucl-uikit-icon"
|
|
59
59
|
fill="none"
|
|
60
60
|
focusable="false"
|
|
@@ -6,7 +6,7 @@ exports[`Avatar > Snapshot: Default 1`] = `
|
|
|
6
6
|
data-testid="ucl-uikit-avatar"
|
|
7
7
|
>
|
|
8
8
|
<svg
|
|
9
|
-
class="ucl-uikit-icon css-
|
|
9
|
+
class="ucl-uikit-icon css-8xhukk"
|
|
10
10
|
data-testid="ucl-uikit-icon"
|
|
11
11
|
fill="currentColor"
|
|
12
12
|
height="24"
|
|
@@ -36,7 +36,7 @@ exports[`Avatar > Snapshot: Default with disabled prop 1`] = `
|
|
|
36
36
|
disabled=""
|
|
37
37
|
>
|
|
38
38
|
<svg
|
|
39
|
-
class="ucl-uikit-icon css-
|
|
39
|
+
class="ucl-uikit-icon css-1eyulv8"
|
|
40
40
|
data-testid="ucl-uikit-icon"
|
|
41
41
|
fill="currentColor"
|
|
42
42
|
height="24"
|
|
@@ -66,7 +66,7 @@ exports[`Avatar > Snapshot: icon variant with disabled prop 1`] = `
|
|
|
66
66
|
disabled=""
|
|
67
67
|
>
|
|
68
68
|
<svg
|
|
69
|
-
class="ucl-uikit-icon css-
|
|
69
|
+
class="ucl-uikit-icon css-1eyulv8"
|
|
70
70
|
data-testid="ucl-uikit-icon"
|
|
71
71
|
fill="currentColor"
|
|
72
72
|
height="24"
|
|
@@ -95,7 +95,7 @@ exports[`Avatar > Snapshot: icon variant with no props 1`] = `
|
|
|
95
95
|
data-testid="ucl-uikit-avatar"
|
|
96
96
|
>
|
|
97
97
|
<svg
|
|
98
|
-
class="ucl-uikit-icon css-
|
|
98
|
+
class="ucl-uikit-icon css-8xhukk"
|
|
99
99
|
data-testid="ucl-uikit-icon"
|
|
100
100
|
fill="currentColor"
|
|
101
101
|
height="24"
|
|
@@ -180,7 +180,7 @@ exports[`Avatar > Snapshot: image variant with no props 1`] = `
|
|
|
180
180
|
data-testid="ucl-uikit-avatar"
|
|
181
181
|
>
|
|
182
182
|
<svg
|
|
183
|
-
class="ucl-uikit-icon css-
|
|
183
|
+
class="ucl-uikit-icon css-8xhukk"
|
|
184
184
|
data-testid="ucl-uikit-icon"
|
|
185
185
|
fill="currentColor"
|
|
186
186
|
height="24"
|
|
@@ -236,7 +236,7 @@ exports[`Avatar > Snapshot: initials variant with no props 1`] = `
|
|
|
236
236
|
data-testid="ucl-uikit-avatar"
|
|
237
237
|
>
|
|
238
238
|
<svg
|
|
239
|
-
class="ucl-uikit-icon css-
|
|
239
|
+
class="ucl-uikit-icon css-8xhukk"
|
|
240
240
|
data-testid="ucl-uikit-icon"
|
|
241
241
|
fill="currentColor"
|
|
242
242
|
height="24"
|
|
@@ -38,7 +38,7 @@ exports[`Badge > snapshot: variant=critical with icon 1`] = `
|
|
|
38
38
|
>
|
|
39
39
|
<svg
|
|
40
40
|
aria-hidden="true"
|
|
41
|
-
class="ucl-uikit-icon css-
|
|
41
|
+
class="ucl-uikit-icon css-16viqlt"
|
|
42
42
|
data-testid="ucl-uikit-icon"
|
|
43
43
|
fill="none"
|
|
44
44
|
focusable="false"
|
|
@@ -80,7 +80,7 @@ exports[`Badge > snapshot: variant=info with icon 1`] = `
|
|
|
80
80
|
>
|
|
81
81
|
<svg
|
|
82
82
|
aria-hidden="true"
|
|
83
|
-
class="ucl-uikit-icon css-
|
|
83
|
+
class="ucl-uikit-icon css-16viqlt"
|
|
84
84
|
data-testid="ucl-uikit-icon"
|
|
85
85
|
fill="none"
|
|
86
86
|
focusable="false"
|
|
@@ -122,7 +122,7 @@ exports[`Badge > snapshot: variant=success with icon 1`] = `
|
|
|
122
122
|
>
|
|
123
123
|
<svg
|
|
124
124
|
aria-hidden="true"
|
|
125
|
-
class="ucl-uikit-icon css-
|
|
125
|
+
class="ucl-uikit-icon css-16viqlt"
|
|
126
126
|
data-testid="ucl-uikit-icon"
|
|
127
127
|
fill="none"
|
|
128
128
|
focusable="false"
|
|
@@ -153,7 +153,7 @@ exports[`Badge > snapshot: variant=warning with icon 1`] = `
|
|
|
153
153
|
>
|
|
154
154
|
<svg
|
|
155
155
|
aria-hidden="true"
|
|
156
|
-
class="ucl-uikit-icon css-
|
|
156
|
+
class="ucl-uikit-icon css-16viqlt"
|
|
157
157
|
data-testid="ucl-uikit-icon"
|
|
158
158
|
fill="none"
|
|
159
159
|
focusable="false"
|
|
@@ -15,7 +15,7 @@ exports[`Breadcrumbs > Snapshot: No props 1`] = `
|
|
|
15
15
|
Home
|
|
16
16
|
</span>
|
|
17
17
|
<svg
|
|
18
|
-
class="ucl-uikit-icon css-
|
|
18
|
+
class="ucl-uikit-icon css-17jji3v"
|
|
19
19
|
data-testid="ucl-uikit-icon"
|
|
20
20
|
fill="none"
|
|
21
21
|
focusable="false"
|
|
@@ -44,7 +44,7 @@ exports[`Breadcrumbs > Snapshot: No props 1`] = `
|
|
|
44
44
|
Timetable
|
|
45
45
|
</a>
|
|
46
46
|
<svg
|
|
47
|
-
class="ucl-uikit-icon css-
|
|
47
|
+
class="ucl-uikit-icon css-17jji3v"
|
|
48
48
|
data-testid="ucl-uikit-icon"
|
|
49
49
|
fill="none"
|
|
50
50
|
focusable="false"
|
|
@@ -91,7 +91,7 @@ exports[`Breadcrumbs > snapshot: Custom Test ID 1`] = `
|
|
|
91
91
|
Home
|
|
92
92
|
</span>
|
|
93
93
|
<svg
|
|
94
|
-
class="ucl-uikit-icon css-
|
|
94
|
+
class="ucl-uikit-icon css-17jji3v"
|
|
95
95
|
data-testid="ucl-uikit-icon"
|
|
96
96
|
fill="none"
|
|
97
97
|
focusable="false"
|
|
@@ -120,7 +120,7 @@ exports[`Breadcrumbs > snapshot: Custom Test ID 1`] = `
|
|
|
120
120
|
Timetable
|
|
121
121
|
</a>
|
|
122
122
|
<svg
|
|
123
|
-
class="ucl-uikit-icon css-
|
|
123
|
+
class="ucl-uikit-icon css-17jji3v"
|
|
124
124
|
data-testid="ucl-uikit-icon"
|
|
125
125
|
fill="none"
|
|
126
126
|
focusable="false"
|
|
@@ -95,7 +95,7 @@ exports[`Button > snapshot: with icon 1`] = `
|
|
|
95
95
|
data-testid="ucl-uikit-button"
|
|
96
96
|
>
|
|
97
97
|
<svg
|
|
98
|
-
class="ucl-uikit-icon css-
|
|
98
|
+
class="ucl-uikit-icon css-f962ig"
|
|
99
99
|
data-testid="ucl-uikit-icon"
|
|
100
100
|
fill="none"
|
|
101
101
|
focusable="false"
|
|
@@ -124,7 +124,7 @@ exports[`Button > snapshot: with icon and iconPosition right 1`] = `
|
|
|
124
124
|
>
|
|
125
125
|
Download
|
|
126
126
|
<svg
|
|
127
|
-
class="ucl-uikit-icon css-
|
|
127
|
+
class="ucl-uikit-icon css-f962ig"
|
|
128
128
|
data-testid="ucl-uikit-icon"
|
|
129
129
|
fill="none"
|
|
130
130
|
focusable="false"
|
|
@@ -19,7 +19,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
19
19
|
type="button"
|
|
20
20
|
>
|
|
21
21
|
<svg
|
|
22
|
-
class="ucl-uikit-icon css-
|
|
22
|
+
class="ucl-uikit-icon css-f962ig"
|
|
23
23
|
data-testid="ucl-uikit-icon"
|
|
24
24
|
fill="none"
|
|
25
25
|
focusable="false"
|
|
@@ -56,7 +56,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
56
56
|
March
|
|
57
57
|
</span>
|
|
58
58
|
<svg
|
|
59
|
-
class="ucl-uikit-icon css-
|
|
59
|
+
class="ucl-uikit-icon css-discc8"
|
|
60
60
|
data-testid="ucl-uikit-icon"
|
|
61
61
|
fill="none"
|
|
62
62
|
focusable="false"
|
|
@@ -103,7 +103,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
103
103
|
2025
|
|
104
104
|
</span>
|
|
105
105
|
<svg
|
|
106
|
-
class="ucl-uikit-icon css-
|
|
106
|
+
class="ucl-uikit-icon css-discc8"
|
|
107
107
|
data-testid="ucl-uikit-icon"
|
|
108
108
|
fill="none"
|
|
109
109
|
focusable="false"
|
|
@@ -134,7 +134,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
134
134
|
type="button"
|
|
135
135
|
>
|
|
136
136
|
<svg
|
|
137
|
-
class="ucl-uikit-icon css-
|
|
137
|
+
class="ucl-uikit-icon css-f962ig"
|
|
138
138
|
data-testid="ucl-uikit-icon"
|
|
139
139
|
fill="none"
|
|
140
140
|
focusable="false"
|
|
@@ -899,7 +899,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
899
899
|
type="button"
|
|
900
900
|
>
|
|
901
901
|
<svg
|
|
902
|
-
class="ucl-uikit-icon css-
|
|
902
|
+
class="ucl-uikit-icon css-f962ig"
|
|
903
903
|
data-testid="ucl-uikit-icon"
|
|
904
904
|
fill="none"
|
|
905
905
|
focusable="false"
|
|
@@ -936,7 +936,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
936
936
|
January
|
|
937
937
|
</span>
|
|
938
938
|
<svg
|
|
939
|
-
class="ucl-uikit-icon css-
|
|
939
|
+
class="ucl-uikit-icon css-discc8"
|
|
940
940
|
data-testid="ucl-uikit-icon"
|
|
941
941
|
fill="none"
|
|
942
942
|
focusable="false"
|
|
@@ -983,7 +983,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
983
983
|
2025
|
|
984
984
|
</span>
|
|
985
985
|
<svg
|
|
986
|
-
class="ucl-uikit-icon css-
|
|
986
|
+
class="ucl-uikit-icon css-discc8"
|
|
987
987
|
data-testid="ucl-uikit-icon"
|
|
988
988
|
fill="none"
|
|
989
989
|
focusable="false"
|
|
@@ -1014,7 +1014,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
1014
1014
|
type="button"
|
|
1015
1015
|
>
|
|
1016
1016
|
<svg
|
|
1017
|
-
class="ucl-uikit-icon css-
|
|
1017
|
+
class="ucl-uikit-icon css-f962ig"
|
|
1018
1018
|
data-testid="ucl-uikit-icon"
|
|
1019
1019
|
fill="none"
|
|
1020
1020
|
focusable="false"
|
|
@@ -16,7 +16,7 @@ exports[`Checkbox > snapshot: checked prop 1`] = `
|
|
|
16
16
|
class="css-g3adpt"
|
|
17
17
|
>
|
|
18
18
|
<svg
|
|
19
|
-
class="ucl-uikit-icon css-
|
|
19
|
+
class="ucl-uikit-icon css-hkwk1r"
|
|
20
20
|
data-testid="ucl-uikit-icon"
|
|
21
21
|
fill="none"
|
|
22
22
|
height="24"
|
|
@@ -52,7 +52,7 @@ exports[`Checkbox > snapshot: indeterminate prop 1`] = `
|
|
|
52
52
|
class="css-g3adpt"
|
|
53
53
|
>
|
|
54
54
|
<svg
|
|
55
|
-
class="ucl-uikit-icon css-
|
|
55
|
+
class="ucl-uikit-icon css-1vb3wpa"
|
|
56
56
|
data-testid="ucl-uikit-icon"
|
|
57
57
|
fill="none"
|
|
58
58
|
height="24"
|