uikit-react-public 0.45.1 → 0.45.4
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/index.js +78 -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/FeedbackDialog/FeedbackDialog.tsx +7 -1
- 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/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,
|
|
@@ -28026,53 +28027,59 @@ const Li = "ucl-uikit-alert__message", t5 = ({
|
|
|
28026
28027
|
);
|
|
28027
28028
|
}, n5 = (e) => e.charAt(0).toUpperCase() + e.slice(1), Hi = "ucl-uikit-alert", r5 = ct(null), dr = ({
|
|
28028
28029
|
type: e,
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
|
|
28030
|
+
iconProps: t,
|
|
28031
|
+
contentProps: o,
|
|
28032
|
+
children: r,
|
|
28033
|
+
testId: l = Hi,
|
|
28034
|
+
className: i,
|
|
28035
|
+
...a
|
|
28033
28036
|
}) => {
|
|
28034
|
-
const
|
|
28037
|
+
const c = n5(e), [u] = L(), { padding: s } = u, f = d`
|
|
28035
28038
|
display: flex;
|
|
28036
28039
|
align-items: flex-start;
|
|
28037
|
-
gap: ${
|
|
28038
|
-
padding: ${
|
|
28040
|
+
gap: ${u.margin.m8};
|
|
28041
|
+
padding: ${s.p16} ${s.p12} ${s.p16} ${s.p8};
|
|
28039
28042
|
border-left-width: 4px;
|
|
28040
28043
|
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
28044
|
`, h = d`
|
|
28048
|
-
background-color: ${
|
|
28049
|
-
border-color: ${
|
|
28045
|
+
background-color: ${u.colour.surface.brand};
|
|
28046
|
+
border-color: ${u.colour.border.brand};
|
|
28050
28047
|
`, p = d`
|
|
28051
|
-
background-color: ${
|
|
28052
|
-
border-color: ${
|
|
28053
|
-
`, m =
|
|
28048
|
+
background-color: ${u.colour.surface.success};
|
|
28049
|
+
border-color: ${u.colour.border.success};
|
|
28050
|
+
`, m = d`
|
|
28051
|
+
background-color: ${u.colour.surface.warning};
|
|
28052
|
+
border-color: ${u.colour.border.warning};
|
|
28053
|
+
`, y = d`
|
|
28054
|
+
background-color: ${u.colour.surface.critical};
|
|
28055
|
+
border-color: ${u.colour.border.critical};
|
|
28056
|
+
`, b = A(
|
|
28054
28057
|
Hi,
|
|
28055
|
-
|
|
28056
|
-
He(
|
|
28057
|
-
e === "info" &&
|
|
28058
|
-
e === "success" &&
|
|
28059
|
-
e === "warning" &&
|
|
28060
|
-
e === "error" &&
|
|
28061
|
-
|
|
28062
|
-
),
|
|
28058
|
+
f,
|
|
28059
|
+
He(a, u),
|
|
28060
|
+
e === "info" && h,
|
|
28061
|
+
e === "success" && p,
|
|
28062
|
+
e === "warning" && m,
|
|
28063
|
+
e === "error" && y,
|
|
28064
|
+
i
|
|
28065
|
+
), C = A(
|
|
28063
28066
|
e === "info" && d`
|
|
28064
|
-
color: ${
|
|
28067
|
+
color: ${u.colour.icon.brand};
|
|
28065
28068
|
`,
|
|
28066
28069
|
e === "success" && d`
|
|
28067
|
-
color: ${
|
|
28070
|
+
color: ${u.colour.icon.success};
|
|
28068
28071
|
`,
|
|
28069
28072
|
e === "warning" && d`
|
|
28070
|
-
color: ${
|
|
28073
|
+
color: ${u.colour.icon.warning};
|
|
28071
28074
|
`,
|
|
28072
28075
|
e === "error" && d`
|
|
28073
|
-
color: ${
|
|
28076
|
+
color: ${u.colour.icon.critical};
|
|
28074
28077
|
`
|
|
28075
|
-
),
|
|
28078
|
+
), k = d`
|
|
28079
|
+
flex: 1;
|
|
28080
|
+
min-width: 0;
|
|
28081
|
+
overflow-wrap: anywhere;
|
|
28082
|
+
`, x = {
|
|
28076
28083
|
info: P.Info,
|
|
28077
28084
|
success: P.CheckCircle,
|
|
28078
28085
|
warning: P.AlertTriangle,
|
|
@@ -28081,19 +28088,27 @@ const Li = "ucl-uikit-alert__message", t5 = ({
|
|
|
28081
28088
|
return /* @__PURE__ */ n(r5.Provider, { value: { type: e }, children: /* @__PURE__ */ g(
|
|
28082
28089
|
"div",
|
|
28083
28090
|
{
|
|
28084
|
-
className:
|
|
28085
|
-
"data-testid":
|
|
28091
|
+
className: b,
|
|
28092
|
+
"data-testid": l,
|
|
28086
28093
|
role: "alert",
|
|
28087
|
-
...
|
|
28094
|
+
...a,
|
|
28088
28095
|
children: [
|
|
28089
28096
|
/* @__PURE__ */ n(
|
|
28090
|
-
|
|
28097
|
+
x,
|
|
28091
28098
|
{
|
|
28092
|
-
className:
|
|
28093
|
-
"aria-label":
|
|
28099
|
+
className: C,
|
|
28100
|
+
"aria-label": c,
|
|
28101
|
+
...t
|
|
28094
28102
|
}
|
|
28095
28103
|
),
|
|
28096
|
-
/* @__PURE__ */ n(
|
|
28104
|
+
/* @__PURE__ */ n(
|
|
28105
|
+
"div",
|
|
28106
|
+
{
|
|
28107
|
+
...o,
|
|
28108
|
+
className: A(k, o == null ? void 0 : o.className),
|
|
28109
|
+
children: r
|
|
28110
|
+
}
|
|
28111
|
+
)
|
|
28097
28112
|
]
|
|
28098
28113
|
}
|
|
28099
28114
|
) });
|
|
@@ -29481,79 +29496,79 @@ const ji = "ucl-uikit-base-dialog", N5 = 495, T5 = 495, R5 = 740, V5 = We(
|
|
|
29481
29496
|
children: c,
|
|
29482
29497
|
...u
|
|
29483
29498
|
}) => {
|
|
29484
|
-
const [
|
|
29485
|
-
colour: { icon:
|
|
29486
|
-
} =
|
|
29499
|
+
const s = typeof c == "string", [f] = L(), {
|
|
29500
|
+
colour: { icon: h }
|
|
29501
|
+
} = f, p = d`
|
|
29487
29502
|
display: block;
|
|
29488
|
-
margin-top: ${
|
|
29489
|
-
margin-bottom: ${
|
|
29503
|
+
margin-top: ${f.margin.m32};
|
|
29504
|
+
margin-bottom: ${f.margin.m32};
|
|
29490
29505
|
margin-left: auto;
|
|
29491
29506
|
margin-right: auto;
|
|
29492
|
-
`,
|
|
29493
|
-
|
|
29507
|
+
`, m = A(
|
|
29508
|
+
p,
|
|
29494
29509
|
e === "success" && d`
|
|
29495
|
-
color: ${
|
|
29510
|
+
color: ${h.success};
|
|
29496
29511
|
`,
|
|
29497
29512
|
e === "warning" && d`
|
|
29498
|
-
color: ${
|
|
29513
|
+
color: ${h.warning};
|
|
29499
29514
|
`,
|
|
29500
29515
|
e === "error" && d`
|
|
29501
|
-
color: ${
|
|
29516
|
+
color: ${h.critical};
|
|
29502
29517
|
`
|
|
29503
|
-
),
|
|
29518
|
+
), y = {
|
|
29504
29519
|
success: /* @__PURE__ */ n(
|
|
29505
29520
|
P.CheckCircle,
|
|
29506
29521
|
{
|
|
29507
29522
|
size: Ln,
|
|
29508
|
-
className:
|
|
29523
|
+
className: m
|
|
29509
29524
|
}
|
|
29510
29525
|
),
|
|
29511
29526
|
error: /* @__PURE__ */ n(
|
|
29512
29527
|
P.XCircle,
|
|
29513
29528
|
{
|
|
29514
29529
|
size: Ln,
|
|
29515
|
-
className:
|
|
29530
|
+
className: m
|
|
29516
29531
|
}
|
|
29517
29532
|
),
|
|
29518
29533
|
warning: /* @__PURE__ */ n(
|
|
29519
29534
|
P.AlertTriangle,
|
|
29520
29535
|
{
|
|
29521
29536
|
size: Ln,
|
|
29522
|
-
className:
|
|
29537
|
+
className: m
|
|
29523
29538
|
}
|
|
29524
29539
|
)
|
|
29525
|
-
}[e],
|
|
29526
|
-
text-align: center;
|
|
29527
|
-
`, k = d`
|
|
29540
|
+
}[e], b = d``, C = A(Yi, b, a), k = d`
|
|
29528
29541
|
text-align: center;
|
|
29529
|
-
margin: ${s.margin.m24};
|
|
29530
29542
|
`, x = d`
|
|
29531
|
-
|
|
29532
|
-
margin
|
|
29543
|
+
text-align: center;
|
|
29544
|
+
margin: ${f.margin.m24};
|
|
29545
|
+
`, S = d`
|
|
29546
|
+
margin-top: ${f.margin.m40};
|
|
29547
|
+
margin-bottom: ${f.margin.m48};
|
|
29533
29548
|
justify-content: center;
|
|
29534
29549
|
`;
|
|
29535
29550
|
return /* @__PURE__ */ g(
|
|
29536
29551
|
jt,
|
|
29537
29552
|
{
|
|
29538
29553
|
testId: i,
|
|
29539
|
-
className:
|
|
29554
|
+
className: C,
|
|
29540
29555
|
...u,
|
|
29541
29556
|
children: [
|
|
29542
29557
|
/* @__PURE__ */ n(
|
|
29543
29558
|
jt.Header,
|
|
29544
29559
|
{
|
|
29545
|
-
decoration:
|
|
29560
|
+
decoration: y,
|
|
29546
29561
|
headingProps: {
|
|
29547
|
-
className:
|
|
29562
|
+
className: k
|
|
29548
29563
|
},
|
|
29549
29564
|
children: t
|
|
29550
29565
|
}
|
|
29551
29566
|
),
|
|
29552
|
-
/* @__PURE__ */ n(Ue, { className:
|
|
29567
|
+
s ? /* @__PURE__ */ n(Ue, { className: x, children: c }) : /* @__PURE__ */ n("div", { className: x, children: c }),
|
|
29553
29568
|
/* @__PURE__ */ n(
|
|
29554
29569
|
jt.Footer,
|
|
29555
29570
|
{
|
|
29556
|
-
className:
|
|
29571
|
+
className: S,
|
|
29557
29572
|
primaryButton: o,
|
|
29558
29573
|
primaryButtonProps: {
|
|
29559
29574
|
variant: r,
|
|
@@ -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"
|