uikit-react-public 0.43.1 → 0.43.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/Breadcrumbs/Breadcrumbs.d.ts +23 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -4
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Paragraph/Paragraph.d.ts +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/index.js +5459 -5222
- package/lib/components/Accordion/Accordion.Heading.tsx +0 -2
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +2 -2
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +4 -4
- package/lib/components/Avatar/Avatar.tsx +7 -1
- package/lib/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +12 -12
- package/lib/components/Badge/Badge.tsx +6 -11
- package/lib/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +9 -9
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +166 -7
- package/lib/components/Breadcrumbs/index.ts +3 -0
- package/lib/components/Button/Button.tsx +11 -7
- package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +9 -9
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +18 -18
- package/lib/components/Calendar/subcomponents/AcademicWeek.tsx +7 -5
- package/lib/components/Calendar/subcomponents/ColumnHeading.tsx +12 -7
- package/lib/components/Calendar/subcomponents/ControlsSelect.tsx +11 -6
- package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +2 -2
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +2 -2
- package/lib/components/DrawerMenu/DrawerMenu.tsx +4 -3
- package/lib/components/DropdownMenu/DropdownMenu.tsx +4 -3
- package/lib/components/DropdownUserMenu/DropdownUserMenu.tsx +8 -5
- package/lib/components/Field/CharacterCount.tsx +7 -6
- package/lib/components/Field/ErrorText.tsx +7 -6
- package/lib/components/FileInput/FileInput.tsx +11 -3
- package/lib/components/FileInput/__tests__/__snapshots__/FileInput.test.tsx.snap +4 -4
- package/lib/components/Footer/Footer.tsx +16 -3
- package/lib/components/Footer/FooterColumn.tsx +9 -4
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +13 -11
- package/lib/components/FooterNew/BackToTop.tsx +12 -4
- package/lib/components/FooterNew/FooterColumn.tsx +4 -0
- package/lib/components/FooterNew/FooterNavLink.tsx +12 -6
- package/lib/components/FooterNew/LegalAndCopyright.tsx +11 -6
- package/lib/components/FooterNew/LogoAddressAndSocial.tsx +27 -15
- package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +32 -26
- package/lib/components/HeaderDraft/HeaderBottomBreadcrumbs.tsx +6 -1
- package/lib/components/HeaderDraft/HeaderBottomHeadingAndAvatar.tsx +19 -8
- package/lib/components/HeaderDraft/HeaderBreadcrumb.tsx +11 -2
- package/lib/components/HeaderDraft/HeaderDraft.tsx +16 -5
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +7 -7
- package/lib/components/HeaderNew/HeaderItem.tsx +6 -0
- package/lib/components/Input/__tests__/__snapshots__/Input.test.tsx.snap +4 -4
- package/lib/components/Menu/MenuContent.tsx +9 -1
- package/lib/components/NativeDatepicker/NativeDatepicker.tsx +6 -2
- package/lib/components/Pagination/PaginationInfo.tsx +8 -6
- package/lib/components/Pagination/subcomponents/PaginationCompactControls.tsx +8 -2
- package/lib/components/Pagination/subcomponents/PaginationStandardControls.tsx +2 -1
- package/lib/components/Paragraph/Paragraph.tsx +6 -4
- package/lib/components/Paragraph/__tests__/Paragraph.test.tsx +1 -1
- package/lib/components/Paragraph/__tests__/__snapshots__/Paragraph.test.tsx.snap +9 -9
- package/lib/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +2 -2
- package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +2 -2
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +1 -1
- package/lib/components/Table/subcomponents/Cell/__tests__/__snapshots__/Cell.test.tsx.snap +2 -2
- package/lib/components/Table/subcomponents/HeadCell/__tests__/__snapshots__/HeadCell.test.tsx.snap +1 -1
- package/lib/components/Textarea/__tests__/__snapshots__/Textarea.test.tsx.snap +4 -4
- package/lib/components/Tooltip/Tooltip.tsx +5 -8
- package/lib/components/Tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap +2 -2
- package/lib/components/index.ts +4 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ exports[`Input > snapshot: no props 1`] = `
|
|
|
5
5
|
class="ucl-uikit-input css-1bpb1dw"
|
|
6
6
|
>
|
|
7
7
|
<input
|
|
8
|
-
class="ucl-uikit-input__input css-
|
|
8
|
+
class="ucl-uikit-input__input css-kvsjyn"
|
|
9
9
|
data-testid="ucl-uikit-input"
|
|
10
10
|
id=""
|
|
11
11
|
/>
|
|
@@ -17,7 +17,7 @@ exports[`Input > snapshot: placeholder prop 1`] = `
|
|
|
17
17
|
class="ucl-uikit-input css-1bpb1dw"
|
|
18
18
|
>
|
|
19
19
|
<input
|
|
20
|
-
class="ucl-uikit-input__input css-
|
|
20
|
+
class="ucl-uikit-input__input css-kvsjyn"
|
|
21
21
|
data-testid="ucl-uikit-input"
|
|
22
22
|
id=""
|
|
23
23
|
placeholder="Type your value..."
|
|
@@ -30,7 +30,7 @@ exports[`Input > snapshot: testId prop 1`] = `
|
|
|
30
30
|
class="ucl-uikit-input css-1bpb1dw"
|
|
31
31
|
>
|
|
32
32
|
<input
|
|
33
|
-
class="ucl-uikit-input__input css-
|
|
33
|
+
class="ucl-uikit-input__input css-kvsjyn"
|
|
34
34
|
data-testid="test123"
|
|
35
35
|
id=""
|
|
36
36
|
/>
|
|
@@ -42,7 +42,7 @@ exports[`Input > snapshot: value prop 1`] = `
|
|
|
42
42
|
class="ucl-uikit-input css-1bpb1dw"
|
|
43
43
|
>
|
|
44
44
|
<input
|
|
45
|
-
class="ucl-uikit-input__input css-
|
|
45
|
+
class="ucl-uikit-input__input css-kvsjyn"
|
|
46
46
|
data-testid="ucl-uikit-input"
|
|
47
47
|
id=""
|
|
48
48
|
value="abc"
|
|
@@ -5,6 +5,7 @@ import useTheme from '../../theme/useTheme';
|
|
|
5
5
|
import useMediaQuery from '../../hooks/useMediaQuery';
|
|
6
6
|
import Icon from '../Icon';
|
|
7
7
|
import IconButton from '../IconButton';
|
|
8
|
+
import Heading from '../Heading';
|
|
8
9
|
import { useAppMenu } from './Menu.context';
|
|
9
10
|
|
|
10
11
|
export const NAME = 'ucl-uikit-menu__content';
|
|
@@ -113,7 +114,14 @@ const MenuContent: React.FC<MenuContentProps> = ({
|
|
|
113
114
|
className={style}
|
|
114
115
|
>
|
|
115
116
|
<header className={headerStyle}>
|
|
116
|
-
<
|
|
117
|
+
<Heading
|
|
118
|
+
as='h3'
|
|
119
|
+
level='xs'
|
|
120
|
+
margins={false}
|
|
121
|
+
className={titleStyle}
|
|
122
|
+
>
|
|
123
|
+
{title}
|
|
124
|
+
</Heading>
|
|
117
125
|
<IconButton
|
|
118
126
|
onClick={toggleMenu}
|
|
119
127
|
aria-label='Close menu'
|
|
@@ -17,6 +17,7 @@ const NativeDatepicker = ({
|
|
|
17
17
|
...props
|
|
18
18
|
}: NativeDatepickerProps) => {
|
|
19
19
|
const [theme] = useTheme();
|
|
20
|
+
const { md } = theme.typography.body;
|
|
20
21
|
|
|
21
22
|
const baseStyle = css`
|
|
22
23
|
width: 196px;
|
|
@@ -25,8 +26,11 @@ const NativeDatepicker = ({
|
|
|
25
26
|
padding: 0 16px;
|
|
26
27
|
border: 1px solid ${theme.colour.speciality.inputDefault};
|
|
27
28
|
color: ${theme.colour.text.default};
|
|
28
|
-
font-
|
|
29
|
-
font-
|
|
29
|
+
font-family: ${md.fontFamily};
|
|
30
|
+
font-feature-settings: ${md.fontSettings};
|
|
31
|
+
font-size: ${md.fontSize}px;
|
|
32
|
+
font-weight: ${md.fontWeight};
|
|
33
|
+
line-height: ${md.lineHeight}%;
|
|
30
34
|
text-transform: uppercase;
|
|
31
35
|
cursor: pointer;
|
|
32
36
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useContext, memo } from 'react';
|
|
2
2
|
import { css, cx } from '@emotion/css';
|
|
3
3
|
import useTheme from '../../theme/useTheme';
|
|
4
|
+
import Paragraph from '../Paragraph';
|
|
4
5
|
import { PaginationContext } from './Pagination';
|
|
5
6
|
|
|
6
7
|
export const NAME = 'ucl-uikit-pagination__info';
|
|
@@ -14,7 +15,7 @@ export interface PaginationInfoProps extends React.HTMLAttributes<HTMLDivElement
|
|
|
14
15
|
const PaginationInfo = ({
|
|
15
16
|
format = 'pages',
|
|
16
17
|
itemsPluralName,
|
|
17
|
-
testId,
|
|
18
|
+
testId = NAME,
|
|
18
19
|
className,
|
|
19
20
|
...props
|
|
20
21
|
}: PaginationInfoProps) => {
|
|
@@ -51,8 +52,6 @@ const PaginationInfo = ({
|
|
|
51
52
|
margin: ${theme.margin.m16} 0;
|
|
52
53
|
text-align: center;
|
|
53
54
|
color: ${theme.colour.text.secondary};
|
|
54
|
-
font-family: ${theme.font.family.primary};
|
|
55
|
-
font-size: ${theme.font.size.f16};
|
|
56
55
|
|
|
57
56
|
@media (min-width: ${theme.breakpoints.tablet}px) {
|
|
58
57
|
margin: ${theme.margin.m24} 0;
|
|
@@ -62,15 +61,18 @@ const PaginationInfo = ({
|
|
|
62
61
|
const style = cx(NAME, baseStyle, className);
|
|
63
62
|
|
|
64
63
|
return (
|
|
65
|
-
<
|
|
64
|
+
<Paragraph
|
|
65
|
+
as='div'
|
|
66
|
+
level='md'
|
|
67
|
+
noMargins
|
|
66
68
|
className={style}
|
|
67
|
-
|
|
69
|
+
testId={testId}
|
|
68
70
|
aria-live='polite'
|
|
69
71
|
aria-label={`Pagination info: ${text}`}
|
|
70
72
|
{...props}
|
|
71
73
|
>
|
|
72
74
|
{text}
|
|
73
|
-
</
|
|
75
|
+
</Paragraph>
|
|
74
76
|
);
|
|
75
77
|
};
|
|
76
78
|
|
|
@@ -149,6 +149,14 @@ const PaginationCompactControls = ({
|
|
|
149
149
|
`;
|
|
150
150
|
|
|
151
151
|
const pageInputStyle = css`
|
|
152
|
+
&& {
|
|
153
|
+
font-family: ${theme.typography.body.md.fontFamily};
|
|
154
|
+
font-feature-settings: ${theme.typography.body.md.fontSettings};
|
|
155
|
+
font-size: ${theme.typography.body.md.fontSize}px;
|
|
156
|
+
font-weight: ${theme.typography.body.md.fontWeight};
|
|
157
|
+
line-height: ${theme.typography.body.md.lineHeight}%;
|
|
158
|
+
}
|
|
159
|
+
|
|
152
160
|
height: 48px;
|
|
153
161
|
width: 48px;
|
|
154
162
|
box-sizing: border-box;
|
|
@@ -157,8 +165,6 @@ const PaginationCompactControls = ({
|
|
|
157
165
|
padding: 0;
|
|
158
166
|
text-align: center;
|
|
159
167
|
color: ${theme.colour.text.default};
|
|
160
|
-
font-family: ${theme.typography.body.md.fontFamily};
|
|
161
|
-
font-size: ${theme.typography.body.md.fontSize};
|
|
162
168
|
|
|
163
169
|
&[aria-invalid='true'] {
|
|
164
170
|
border-color: ${theme.colour.border.critical};
|
|
@@ -3,6 +3,7 @@ import { css, cx } from '@emotion/css';
|
|
|
3
3
|
import useTheme from '../../../theme/useTheme';
|
|
4
4
|
import { PaginationContext } from '../Pagination';
|
|
5
5
|
import Button from '../../Button';
|
|
6
|
+
import Text from '../../Text';
|
|
6
7
|
import getPaginationButtons from '../getPaginationButtons';
|
|
7
8
|
import { useMediaQuery } from '../../../hooks';
|
|
8
9
|
|
|
@@ -187,7 +188,7 @@ const PaginationStandardControls = ({
|
|
|
187
188
|
{paginationButtons.map((page) => (
|
|
188
189
|
<li key={page}>
|
|
189
190
|
{page === '...1' || page === '...2' ? (
|
|
190
|
-
<
|
|
191
|
+
<Text aria-hidden>...</Text>
|
|
191
192
|
) : (
|
|
192
193
|
<>
|
|
193
194
|
{page !== currentPage && (
|
|
@@ -3,7 +3,7 @@ import { css, cx } from '@emotion/css';
|
|
|
3
3
|
import useTheme from '../../theme/useTheme';
|
|
4
4
|
import marginsStyle, { MarginProps } from '../common/marginsStyle';
|
|
5
5
|
|
|
6
|
-
export const NAME = 'ucl-uikit-
|
|
6
|
+
export const NAME = 'ucl-uikit-paragraph';
|
|
7
7
|
|
|
8
8
|
export type ParagraphLevel =
|
|
9
9
|
| 'lg'
|
|
@@ -84,9 +84,11 @@ const Paragraph = ({
|
|
|
84
84
|
const baseStyle = css`
|
|
85
85
|
font-family: ${md.fontFamily};
|
|
86
86
|
font-feature-settings: ${md.fontSettings};
|
|
87
|
-
color: ${
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
color: ${
|
|
88
|
+
emphasis === 'medium'
|
|
89
|
+
? theme.colour.text.secondary
|
|
90
|
+
: theme.colour.text.default
|
|
91
|
+
};
|
|
90
92
|
margin: 0;
|
|
91
93
|
`;
|
|
92
94
|
|
|
@@ -60,7 +60,7 @@ describe('Paragraph', () => {
|
|
|
60
60
|
<Paragraph>This is a test</Paragraph>
|
|
61
61
|
</ThemeContextProvider>
|
|
62
62
|
);
|
|
63
|
-
const paragraph = screen.getByTestId('ucl-uikit-
|
|
63
|
+
const paragraph = screen.getByTestId('ucl-uikit-paragraph');
|
|
64
64
|
expect(paragraph).toBeDefined();
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Paragraph > snapshot: custom test id 1`] = `
|
|
4
4
|
<p
|
|
5
|
-
class="ucl-uikit-
|
|
5
|
+
class="ucl-uikit-paragraph css-h12wmf"
|
|
6
6
|
data-testid="custom-test-id"
|
|
7
7
|
>
|
|
8
8
|
This is a test
|
|
@@ -11,8 +11,8 @@ exports[`Paragraph > snapshot: custom test id 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Paragraph > snapshot: emphasis 1`] = `
|
|
13
13
|
<p
|
|
14
|
-
class="ucl-uikit-
|
|
15
|
-
data-testid="ucl-uikit-
|
|
14
|
+
class="ucl-uikit-paragraph css-h12wmf"
|
|
15
|
+
data-testid="ucl-uikit-paragraph"
|
|
16
16
|
>
|
|
17
17
|
high emphasis
|
|
18
18
|
</p>
|
|
@@ -20,8 +20,8 @@ exports[`Paragraph > snapshot: emphasis 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Paragraph > snapshot: minimal props 1`] = `
|
|
22
22
|
<p
|
|
23
|
-
class="ucl-uikit-
|
|
24
|
-
data-testid="ucl-uikit-
|
|
23
|
+
class="ucl-uikit-paragraph css-h12wmf"
|
|
24
|
+
data-testid="ucl-uikit-paragraph"
|
|
25
25
|
>
|
|
26
26
|
This is a test
|
|
27
27
|
</p>
|
|
@@ -29,8 +29,8 @@ exports[`Paragraph > snapshot: minimal props 1`] = `
|
|
|
29
29
|
|
|
30
30
|
exports[`Paragraph > snapshot: no margins 1`] = `
|
|
31
31
|
<p
|
|
32
|
-
class="ucl-uikit-
|
|
33
|
-
data-testid="ucl-uikit-
|
|
32
|
+
class="ucl-uikit-paragraph css-1dosm7d"
|
|
33
|
+
data-testid="ucl-uikit-paragraph"
|
|
34
34
|
>
|
|
35
35
|
no margins
|
|
36
36
|
</p>
|
|
@@ -38,8 +38,8 @@ exports[`Paragraph > snapshot: no margins 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`Paragraph > snapshot: size 1`] = `
|
|
40
40
|
<p
|
|
41
|
-
class="ucl-uikit-
|
|
42
|
-
data-testid="ucl-uikit-
|
|
41
|
+
class="ucl-uikit-paragraph css-h12wmf"
|
|
42
|
+
data-testid="ucl-uikit-paragraph"
|
|
43
43
|
>
|
|
44
44
|
standfirst
|
|
45
45
|
</p>
|
|
@@ -18,7 +18,7 @@ exports[`Radio > snapshot: checked prop 1`] = `
|
|
|
18
18
|
|
|
19
19
|
exports[`Radio > snapshot: no props 1`] = `
|
|
20
20
|
<span
|
|
21
|
-
class="ucl-uikit-radio css-
|
|
21
|
+
class="ucl-uikit-radio css-v556ou"
|
|
22
22
|
>
|
|
23
23
|
<input
|
|
24
24
|
class="css-19qtec1"
|
|
@@ -30,7 +30,7 @@ exports[`Radio > snapshot: no props 1`] = `
|
|
|
30
30
|
|
|
31
31
|
exports[`Radio > snapshot: testId prop 1`] = `
|
|
32
32
|
<span
|
|
33
|
-
class="ucl-uikit-radio css-
|
|
33
|
+
class="ucl-uikit-radio css-v556ou"
|
|
34
34
|
>
|
|
35
35
|
<input
|
|
36
36
|
class="css-19qtec1"
|
|
@@ -8,7 +8,7 @@ exports[`Search > snapshot: no props 1`] = `
|
|
|
8
8
|
class="ucl-uikit-input css-1bpb1dw"
|
|
9
9
|
>
|
|
10
10
|
<input
|
|
11
|
-
class="ucl-uikit-input__input css-
|
|
11
|
+
class="ucl-uikit-input__input css-r12x3w"
|
|
12
12
|
data-testid="ucl-uikit-search"
|
|
13
13
|
id=""
|
|
14
14
|
placeholder=""
|
|
@@ -87,7 +87,7 @@ exports[`Search > snapshot: testId prop 1`] = `
|
|
|
87
87
|
class="ucl-uikit-input css-1bpb1dw"
|
|
88
88
|
>
|
|
89
89
|
<input
|
|
90
|
-
class="ucl-uikit-input__input css-
|
|
90
|
+
class="ucl-uikit-input__input css-r12x3w"
|
|
91
91
|
data-testid="test123"
|
|
92
92
|
id=""
|
|
93
93
|
placeholder=""
|
|
@@ -47,7 +47,7 @@ exports[`Cell > Snapshot: variants 1`] = `
|
|
|
47
47
|
data-testid="ucl-uikit-table__cell-content"
|
|
48
48
|
>
|
|
49
49
|
<span
|
|
50
|
-
class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-
|
|
50
|
+
class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-qoivhx"
|
|
51
51
|
data-testid="ucl-uikit-checkbox__root"
|
|
52
52
|
>
|
|
53
53
|
<input
|
|
@@ -105,7 +105,7 @@ exports[`Cell > Snapshot: variants 1`] = `
|
|
|
105
105
|
>
|
|
106
106
|
<button
|
|
107
107
|
aria-disabled="false"
|
|
108
|
-
class="ucl-uikit-button css-
|
|
108
|
+
class="ucl-uikit-button css-1o7ytg2"
|
|
109
109
|
data-testid="ucl-uikit-button"
|
|
110
110
|
>
|
|
111
111
|
Button
|
package/lib/components/Table/subcomponents/HeadCell/__tests__/__snapshots__/HeadCell.test.tsx.snap
CHANGED
|
@@ -14,7 +14,7 @@ exports[`HeadCell > Snapshot: checkbox variant 1`] = `
|
|
|
14
14
|
data-testid="ucl-uikit-table__head-cell-content"
|
|
15
15
|
>
|
|
16
16
|
<span
|
|
17
|
-
class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-
|
|
17
|
+
class="ucl-uikit-base-checkbox ucl-uikit-checkbox css-qoivhx"
|
|
18
18
|
data-testid="ucl-uikit-checkbox__root"
|
|
19
19
|
>
|
|
20
20
|
<input
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Textarea > snapshot: Disabled 1`] = `
|
|
4
4
|
<textarea
|
|
5
|
-
class="ucl-uikit-textarea css-
|
|
5
|
+
class="ucl-uikit-textarea css-yfw4f5"
|
|
6
6
|
data-testid="ucl-uikit-textarea"
|
|
7
7
|
disabled=""
|
|
8
8
|
id=""
|
|
@@ -11,7 +11,7 @@ exports[`Textarea > snapshot: Disabled 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Textarea > snapshot: Placeholder 1`] = `
|
|
13
13
|
<textarea
|
|
14
|
-
class="ucl-uikit-textarea css-
|
|
14
|
+
class="ucl-uikit-textarea css-1eai1zv"
|
|
15
15
|
data-testid="ucl-uikit-textarea"
|
|
16
16
|
id=""
|
|
17
17
|
placeholder="test"
|
|
@@ -20,7 +20,7 @@ exports[`Textarea > snapshot: Placeholder 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Textarea > snapshot: custom test id 1`] = `
|
|
22
22
|
<textarea
|
|
23
|
-
class="ucl-uikit-textarea css-
|
|
23
|
+
class="ucl-uikit-textarea css-1eai1zv"
|
|
24
24
|
data-testid="custom-test-id"
|
|
25
25
|
id=""
|
|
26
26
|
/>
|
|
@@ -28,7 +28,7 @@ exports[`Textarea > snapshot: custom test id 1`] = `
|
|
|
28
28
|
|
|
29
29
|
exports[`Textarea > snapshot: minimal props 1`] = `
|
|
30
30
|
<textarea
|
|
31
|
-
class="ucl-uikit-textarea css-
|
|
31
|
+
class="ucl-uikit-textarea css-1eai1zv"
|
|
32
32
|
data-testid="ucl-uikit-textarea"
|
|
33
33
|
id=""
|
|
34
34
|
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { memo, forwardRef, HTMLAttributes } from 'react';
|
|
2
2
|
import { css, cx } from '@emotion/css';
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
|
+
import Text from '../Text';
|
|
4
5
|
|
|
5
6
|
export const NAME = 'ucl-uikit-tooltip';
|
|
6
7
|
|
|
@@ -17,14 +18,9 @@ const Tooltip = forwardRef<Ref, TooltipProps>(
|
|
|
17
18
|
const baseStyle = css`
|
|
18
19
|
background-color: ${theme.colour.fill.brandPrimary};
|
|
19
20
|
color: ${theme.colour.text.brandInverse};
|
|
20
|
-
font-family: ${theme.typography.body.md.fontFamily};
|
|
21
|
-
font-feature-settings: ${theme.typography.body.md.fontSettings};
|
|
22
21
|
height: 32px;
|
|
23
22
|
padding: 4px 8px 4px 8px;
|
|
24
23
|
border-radius: ${theme.radius.r4};
|
|
25
|
-
font-size: ${theme.typography.body.md.fontSize}px;
|
|
26
|
-
font-weight: ${theme.typography.body.md.fontWeight};
|
|
27
|
-
line-height: ${theme.typography.body.md.lineHeight}%;
|
|
28
24
|
display: inline;
|
|
29
25
|
white-space: nowrap;
|
|
30
26
|
`;
|
|
@@ -32,14 +28,15 @@ const Tooltip = forwardRef<Ref, TooltipProps>(
|
|
|
32
28
|
const style = cx(NAME, baseStyle, className);
|
|
33
29
|
|
|
34
30
|
return (
|
|
35
|
-
<
|
|
31
|
+
<Text
|
|
36
32
|
ref={ref}
|
|
33
|
+
level='md'
|
|
37
34
|
className={style}
|
|
38
|
-
|
|
35
|
+
testId={testId}
|
|
39
36
|
{...props}
|
|
40
37
|
>
|
|
41
38
|
{children}
|
|
42
|
-
</
|
|
39
|
+
</Text>
|
|
43
40
|
);
|
|
44
41
|
}
|
|
45
42
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Tooltip > snapshot: no props 1`] = `
|
|
4
4
|
<span
|
|
5
|
-
class="ucl-uikit-tooltip css-
|
|
5
|
+
class="ucl-uikit-text ucl-uikit-tooltip css-1s62y9x"
|
|
6
6
|
data-testid="ucl-uikit-tooltip"
|
|
7
7
|
>
|
|
8
8
|
test
|
|
@@ -11,7 +11,7 @@ exports[`Tooltip > snapshot: no props 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Tooltip > snapshot: testId prop 1`] = `
|
|
13
13
|
<span
|
|
14
|
-
class="ucl-uikit-tooltip css-
|
|
14
|
+
class="ucl-uikit-text ucl-uikit-tooltip css-1s62y9x"
|
|
15
15
|
data-testid="test123"
|
|
16
16
|
>
|
|
17
17
|
Info Tooltip
|
package/lib/components/index.ts
CHANGED
|
@@ -95,6 +95,10 @@ export type { AppHeaderProps } from './AppHeader';
|
|
|
95
95
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
96
96
|
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
97
97
|
|
|
98
|
+
/** @deprecated Use Breadcrumbs instead. BreadcrumbsLegacy only supports the default theme. */
|
|
99
|
+
export { LegacyBreadcrumbs as BreadcrumbsLegacy } from './Breadcrumbs';
|
|
100
|
+
export type { LegacyBreadcrumbsProps as BreadcrumbsLegacyProps } from './Breadcrumbs';
|
|
101
|
+
|
|
98
102
|
export { default as BreadcrumbsNew } from './BreadcrumbsNew';
|
|
99
103
|
export type {
|
|
100
104
|
BaseBreadcrumbsItemProps,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit-react-public",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "0.43.
|
|
5
|
+
"version": "0.43.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@emotion/css": "^11.13.5",
|
|
44
44
|
"@emotion/react": "^11.14.0",
|
|
45
45
|
"@floating-ui/react-dom": "^2.1.2",
|
|
46
|
-
"design-system-foundations-public": "0.1.
|
|
46
|
+
"design-system-foundations-public": "0.1.7"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^19.0.0",
|