uikit-react-public 0.50.6 → 0.50.7
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/ToggleGroup/ToggleGroup.stories.d.ts +5 -0
- package/dist/index.js +12 -5
- package/lib/components/Accordion/Accordion.Heading.tsx +1 -1
- package/lib/components/Accordion/Accordion.Panel.tsx +1 -1
- package/lib/components/Accordion/__tests__/Accordion.test.tsx +21 -0
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +2 -2
- package/lib/components/Badge/Badge.tsx +3 -1
- package/lib/components/Badge/__tests__/Badge.test.tsx +10 -2
- package/lib/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +9 -9
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +4 -4
- package/lib/components/Callout/Callout.tsx +1 -1
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +6 -6
- package/lib/components/Datepicker/subcomponents/DatepickerInput.tsx +1 -0
- package/lib/components/Datepicker/subcomponents/VisibleField.tsx +2 -1
- package/lib/components/NativeDatepicker/NativeDatepicker.tsx +1 -0
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +1 -1
- package/lib/components/Select/subcomponents/CustomSelect.tsx +1 -0
- package/lib/components/Select/subcomponents/NativeSelect.tsx +1 -0
- package/lib/components/ToggleGroup/ToggleGroup.stories.tsx +3 -0
- package/lib/components/ToggleGroup/subcomponents/ToggleGroupItem.stories.tsx +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21367,7 +21367,7 @@ const cx = (e, t) => {
|
|
|
21367
21367
|
gap: 30px;
|
|
21368
21368
|
width: 100%;
|
|
21369
21369
|
padding: ${h.padding.p24};
|
|
21370
|
-
background-color: ${h.colour.surface.
|
|
21370
|
+
background-color: ${h.colour.surface.brandSecondary};
|
|
21371
21371
|
border: 1px solid ${h.colour.border.brand};
|
|
21372
21372
|
`, f = d`
|
|
21373
21373
|
display: flex;
|
|
@@ -22583,8 +22583,9 @@ const cx = (e, t) => {
|
|
|
22583
22583
|
color: e.colour.text.inverse,
|
|
22584
22584
|
backgroundColor: e.colour.fill.warning
|
|
22585
22585
|
},
|
|
22586
|
+
// TODO: replace primitiveColour use here with colour.text.warningOnBgFill when token is updated to matching hex
|
|
22586
22587
|
"warning-subtle": {
|
|
22587
|
-
color: e.
|
|
22588
|
+
color: e.primitiveColour.orange[13].$value.hex,
|
|
22588
22589
|
backgroundColor: e.colour.fill.warningSubtle
|
|
22589
22590
|
},
|
|
22590
22591
|
disabled: {
|
|
@@ -22610,6 +22611,7 @@ const cx = (e, t) => {
|
|
|
22610
22611
|
padding: 0 ${h.padding.p8};
|
|
22611
22612
|
|
|
22612
22613
|
color: ${p};
|
|
22614
|
+
font-weight: ${h.typography.body.smSemibold.fontWeight};
|
|
22613
22615
|
background-color: ${g};
|
|
22614
22616
|
border: ${y ?? "none"};
|
|
22615
22617
|
|
|
@@ -24259,6 +24261,7 @@ const Ji = "ucl-uikit-breadcrumbs__item", mr = ({
|
|
|
24259
24261
|
font-weight: ${Ye.fontWeight};
|
|
24260
24262
|
line-height: ${Ye.lineHeight}%;
|
|
24261
24263
|
border: ${L.border.b1} solid ${L.colour.speciality.inputDefault};
|
|
24264
|
+
border-radius: ${L.radius.r4};
|
|
24262
24265
|
cursor: pointer;
|
|
24263
24266
|
user-select: none;
|
|
24264
24267
|
|
|
@@ -24460,6 +24463,7 @@ const Gw = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
24460
24463
|
line-height: ${f.lineHeight}%;
|
|
24461
24464
|
background-color: ${c.colour.fill.inverse};
|
|
24462
24465
|
border: ${c.border.b1} solid ${c.colour.border.secondary};
|
|
24466
|
+
border-radius: ${c.radius.r4};
|
|
24463
24467
|
color: ${c.colour.text.default};
|
|
24464
24468
|
appearance: none;
|
|
24465
24469
|
-webkit-appearance: none;
|
|
@@ -29996,7 +30000,7 @@ const ec = tt(void 0), tc = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g,
|
|
|
29996
30000
|
position: relative;
|
|
29997
30001
|
justify-content: space-between;
|
|
29998
30002
|
align-items: center;
|
|
29999
|
-
padding: ${r.padding.p16};
|
|
30003
|
+
padding: ${r.padding.p16} ${r.padding.p8};
|
|
30000
30004
|
background-color: ${r.colour.fill.inverse};
|
|
30001
30005
|
cursor: pointer;
|
|
30002
30006
|
transition: background-color 0.15s ease;
|
|
@@ -30079,7 +30083,7 @@ const ec = tt(void 0), tc = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g,
|
|
|
30079
30083
|
max-width: 100%;
|
|
30080
30084
|
min-width: 0;
|
|
30081
30085
|
flex-shrink: 1;
|
|
30082
|
-
padding: ${i.padding.
|
|
30086
|
+
padding: ${i.padding.p8} ${i.padding.p8} ${i.padding.p24};
|
|
30083
30087
|
box-sizing: border-box;
|
|
30084
30088
|
overflow: hidden;
|
|
30085
30089
|
overflow-wrap: break-word;
|
|
@@ -32038,6 +32042,7 @@ const fa = "ucl-uikit-base-dialog", Y9 = 495, J9 = 495, G9 = 740, Q9 = We(
|
|
|
32038
32042
|
height: 100%;
|
|
32039
32043
|
box-sizing: border-box;
|
|
32040
32044
|
border: 1px solid ${u.colour.speciality.inputDefault};
|
|
32045
|
+
border-radius: ${u.radius.r4};
|
|
32041
32046
|
background-color: ${u.colour.fill.inverse};
|
|
32042
32047
|
|
|
32043
32048
|
&:focus-within {
|
|
@@ -32070,7 +32075,7 @@ const fa = "ucl-uikit-base-dialog", Y9 = 495, J9 = 495, G9 = 740, Q9 = We(
|
|
|
32070
32075
|
}
|
|
32071
32076
|
`, b = d`
|
|
32072
32077
|
min-width: 24px;
|
|
32073
|
-
color: ${a ? u.colour.icon.disabled : u.colour.icon.
|
|
32078
|
+
color: ${a ? u.colour.icon.disabled : u.colour.icon.secondary};
|
|
32074
32079
|
`, x = c && h && !a, k = C(Do, p, a && g);
|
|
32075
32080
|
return /* @__PURE__ */ m(
|
|
32076
32081
|
"div",
|
|
@@ -32129,6 +32134,7 @@ const fa = "ucl-uikit-base-dialog", Y9 = 495, J9 = 495, G9 = 740, Q9 = We(
|
|
|
32129
32134
|
height: 100%;
|
|
32130
32135
|
padding: 0 0 0 16px;
|
|
32131
32136
|
border: none;
|
|
32137
|
+
border-radius: ${a.radius.r4} 0 0 ${a.radius.r4};
|
|
32132
32138
|
color: ${a.colour.text.default};
|
|
32133
32139
|
background-color: ${a.colour.fill.inverse};
|
|
32134
32140
|
font-family: ${c.fontFamily};
|
|
@@ -32214,6 +32220,7 @@ const fa = "ucl-uikit-base-dialog", Y9 = 495, J9 = 495, G9 = 740, Q9 = We(
|
|
|
32214
32220
|
box-sizing: border-box;
|
|
32215
32221
|
padding: 0 16px;
|
|
32216
32222
|
border: 1px solid ${s.colour.speciality.inputDefault};
|
|
32223
|
+
border-radius: ${s.radius.r4};
|
|
32217
32224
|
color: ${s.colour.text.default};
|
|
32218
32225
|
font-family: ${f.fontFamily};
|
|
32219
32226
|
font-feature-settings: ${f.fontSettings};
|
|
@@ -38,7 +38,7 @@ const AccordionHeading: React.FC<AccordionHeadingProps> = ({
|
|
|
38
38
|
position: relative;
|
|
39
39
|
justify-content: space-between;
|
|
40
40
|
align-items: center;
|
|
41
|
-
padding: ${theme.padding.p16};
|
|
41
|
+
padding: ${theme.padding.p16} ${theme.padding.p8};
|
|
42
42
|
background-color: ${theme.colour.fill.inverse};
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
transition: background-color 0.15s ease;
|
|
@@ -29,7 +29,7 @@ const AccordionPanel: React.FC<AccordionPanelProps> = ({
|
|
|
29
29
|
max-width: 100%;
|
|
30
30
|
min-width: 0;
|
|
31
31
|
flex-shrink: 1;
|
|
32
|
-
padding: ${theme.padding.
|
|
32
|
+
padding: ${theme.padding.p8} ${theme.padding.p8} ${theme.padding.p24};
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
overflow-wrap: break-word;
|
|
@@ -40,6 +40,27 @@ describe('Accordion', () => {
|
|
|
40
40
|
|
|
41
41
|
// Interaction tests
|
|
42
42
|
|
|
43
|
+
test('uses the expected heading and panel padding', () => {
|
|
44
|
+
render(
|
|
45
|
+
<ThemeContextProvider>
|
|
46
|
+
<Accordion>
|
|
47
|
+
<Accordion.Heading>Heading</Accordion.Heading>
|
|
48
|
+
<Accordion.Panel>Panel Content</Accordion.Panel>
|
|
49
|
+
</Accordion>
|
|
50
|
+
</ThemeContextProvider>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const heading = screen.getByTestId('ucl-uikit-accordion__heading');
|
|
54
|
+
expect(getComputedStyle(heading).padding).toBe('16px 8px');
|
|
55
|
+
|
|
56
|
+
fireEvent.click(heading);
|
|
57
|
+
const panel = screen.getByTestId('ucl-uikit-accordion__panel');
|
|
58
|
+
expect(getComputedStyle(panel).paddingTop).toBe('8px');
|
|
59
|
+
expect(getComputedStyle(panel).paddingRight).toBe('8px');
|
|
60
|
+
expect(getComputedStyle(panel).paddingBottom).toBe('24px');
|
|
61
|
+
expect(getComputedStyle(panel).paddingLeft).toBe('8px');
|
|
62
|
+
});
|
|
63
|
+
|
|
43
64
|
test('should open and close the accordion', () => {
|
|
44
65
|
render(
|
|
45
66
|
<ThemeContextProvider>
|
|
@@ -8,7 +8,7 @@ exports[`Accordion > snapshot: no props 1`] = `
|
|
|
8
8
|
>
|
|
9
9
|
<h6
|
|
10
10
|
aria-expanded="false"
|
|
11
|
-
class="ucl-uikit-heading ucl-uikit-accordion__heading css-
|
|
11
|
+
class="ucl-uikit-heading ucl-uikit-accordion__heading css-3x70cw"
|
|
12
12
|
data-testid="ucl-uikit-accordion__heading"
|
|
13
13
|
role="button"
|
|
14
14
|
tabindex="0"
|
|
@@ -44,7 +44,7 @@ exports[`Accordion > snapshot: testId prop 1`] = `
|
|
|
44
44
|
>
|
|
45
45
|
<h6
|
|
46
46
|
aria-expanded="false"
|
|
47
|
-
class="ucl-uikit-heading ucl-uikit-accordion__heading css-
|
|
47
|
+
class="ucl-uikit-heading ucl-uikit-accordion__heading css-3x70cw"
|
|
48
48
|
data-testid="ucl-uikit-accordion__heading"
|
|
49
49
|
role="button"
|
|
50
50
|
tabindex="0"
|
|
@@ -91,8 +91,9 @@ export const getBadgeVariantColours = (
|
|
|
91
91
|
color: theme.colour.text.inverse,
|
|
92
92
|
backgroundColor: theme.colour.fill.warning,
|
|
93
93
|
},
|
|
94
|
+
// TODO: replace primitiveColour use here with colour.text.warningOnBgFill when token is updated to matching hex
|
|
94
95
|
'warning-subtle': {
|
|
95
|
-
color: theme.
|
|
96
|
+
color: theme.primitiveColour.orange['13'].$value.hex,
|
|
96
97
|
backgroundColor: theme.colour.fill.warningSubtle,
|
|
97
98
|
},
|
|
98
99
|
disabled: {
|
|
@@ -145,6 +146,7 @@ const Badge = ({
|
|
|
145
146
|
padding: 0 ${theme.padding.p8};
|
|
146
147
|
|
|
147
148
|
color: ${color};
|
|
149
|
+
font-weight: ${theme.typography.body.smSemibold.fontWeight};
|
|
148
150
|
background-color: ${backgroundColor};
|
|
149
151
|
border: ${border ?? 'none'};
|
|
150
152
|
|
|
@@ -91,6 +91,14 @@ describe('Badge', () => {
|
|
|
91
91
|
expect(getByText('Hello')).toBeTruthy();
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
test('uses semibold text', () => {
|
|
95
|
+
const { getByTestId } = wrap(<Badge>Text</Badge>);
|
|
96
|
+
|
|
97
|
+
expect(getComputedStyle(getByTestId('ucl-uikit-badge')).fontWeight).toBe(
|
|
98
|
+
String(lightTheme.typography.body.smSemibold.fontWeight)
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
|
|
94
102
|
test('applies custom testId', () => {
|
|
95
103
|
const { getByTestId } = wrap(<Badge testId='my-badge'>Text</Badge>);
|
|
96
104
|
expect(getByTestId('my-badge')).toBeTruthy();
|
|
@@ -175,7 +183,7 @@ describe('Badge', () => {
|
|
|
175
183
|
backgroundColor: darkTheme.colour.fill.warning,
|
|
176
184
|
});
|
|
177
185
|
expect(colours['warning-subtle']).toMatchObject({
|
|
178
|
-
color: darkTheme.
|
|
186
|
+
color: darkTheme.primitiveColour.orange['13'].$value.hex,
|
|
179
187
|
backgroundColor: darkTheme.colour.fill.warningSubtle,
|
|
180
188
|
});
|
|
181
189
|
});
|
|
@@ -217,7 +225,7 @@ describe('Badge', () => {
|
|
|
217
225
|
backgroundColor: lightTheme.colour.fill.warning,
|
|
218
226
|
});
|
|
219
227
|
expect(colours['warning-subtle']).toMatchObject({
|
|
220
|
-
color:
|
|
228
|
+
color: '#994D29',
|
|
221
229
|
backgroundColor: lightTheme.colour.fill.warningSubtle,
|
|
222
230
|
});
|
|
223
231
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Badge > snapshot: default 1`] = `
|
|
4
4
|
<span
|
|
5
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
5
|
+
class="ucl-uikit-text ucl-uikit-badge css-193xmhy"
|
|
6
6
|
data-testid="ucl-uikit-badge"
|
|
7
7
|
>
|
|
8
8
|
Default
|
|
@@ -11,7 +11,7 @@ exports[`Badge > snapshot: default 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Badge > snapshot: size=large 1`] = `
|
|
13
13
|
<span
|
|
14
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
14
|
+
class="ucl-uikit-text ucl-uikit-badge css-xkp5fs"
|
|
15
15
|
data-testid="ucl-uikit-badge"
|
|
16
16
|
>
|
|
17
17
|
Large
|
|
@@ -20,7 +20,7 @@ exports[`Badge > snapshot: size=large 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Badge > snapshot: statusIndicator 1`] = `
|
|
22
22
|
<span
|
|
23
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
23
|
+
class="ucl-uikit-text ucl-uikit-badge css-193xmhy"
|
|
24
24
|
data-testid="ucl-uikit-badge"
|
|
25
25
|
>
|
|
26
26
|
<span
|
|
@@ -33,7 +33,7 @@ exports[`Badge > snapshot: statusIndicator 1`] = `
|
|
|
33
33
|
|
|
34
34
|
exports[`Badge > snapshot: variant=critical with icon 1`] = `
|
|
35
35
|
<span
|
|
36
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
36
|
+
class="ucl-uikit-text ucl-uikit-badge css-1ussa90"
|
|
37
37
|
data-testid="ucl-uikit-badge"
|
|
38
38
|
>
|
|
39
39
|
<svg
|
|
@@ -66,7 +66,7 @@ exports[`Badge > snapshot: variant=critical with icon 1`] = `
|
|
|
66
66
|
|
|
67
67
|
exports[`Badge > snapshot: variant=disabled 1`] = `
|
|
68
68
|
<span
|
|
69
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
69
|
+
class="ucl-uikit-text ucl-uikit-badge css-1lag7jx"
|
|
70
70
|
data-testid="ucl-uikit-badge"
|
|
71
71
|
>
|
|
72
72
|
Disabled
|
|
@@ -75,7 +75,7 @@ exports[`Badge > snapshot: variant=disabled 1`] = `
|
|
|
75
75
|
|
|
76
76
|
exports[`Badge > snapshot: variant=info with icon 1`] = `
|
|
77
77
|
<span
|
|
78
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
78
|
+
class="ucl-uikit-text ucl-uikit-badge css-pmqt4o"
|
|
79
79
|
data-testid="ucl-uikit-badge"
|
|
80
80
|
>
|
|
81
81
|
<svg
|
|
@@ -108,7 +108,7 @@ exports[`Badge > snapshot: variant=info with icon 1`] = `
|
|
|
108
108
|
|
|
109
109
|
exports[`Badge > snapshot: variant=info-subtle 1`] = `
|
|
110
110
|
<span
|
|
111
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
111
|
+
class="ucl-uikit-text ucl-uikit-badge css-1ikogho"
|
|
112
112
|
data-testid="ucl-uikit-badge"
|
|
113
113
|
>
|
|
114
114
|
Info subtle
|
|
@@ -117,7 +117,7 @@ exports[`Badge > snapshot: variant=info-subtle 1`] = `
|
|
|
117
117
|
|
|
118
118
|
exports[`Badge > snapshot: variant=success with icon 1`] = `
|
|
119
119
|
<span
|
|
120
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
120
|
+
class="ucl-uikit-text ucl-uikit-badge css-plwfy3"
|
|
121
121
|
data-testid="ucl-uikit-badge"
|
|
122
122
|
>
|
|
123
123
|
<svg
|
|
@@ -148,7 +148,7 @@ exports[`Badge > snapshot: variant=success with icon 1`] = `
|
|
|
148
148
|
|
|
149
149
|
exports[`Badge > snapshot: variant=warning with icon 1`] = `
|
|
150
150
|
<span
|
|
151
|
-
class="ucl-uikit-text ucl-uikit-badge css-
|
|
151
|
+
class="ucl-uikit-text ucl-uikit-badge css-159h60j"
|
|
152
152
|
data-testid="ucl-uikit-badge"
|
|
153
153
|
>
|
|
154
154
|
<svg
|
|
@@ -41,7 +41,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
41
41
|
aria-expanded="false"
|
|
42
42
|
aria-haspopup="listbox"
|
|
43
43
|
aria-label="Month"
|
|
44
|
-
class="ucl-uikit-select css-
|
|
44
|
+
class="ucl-uikit-select css-1mgirop"
|
|
45
45
|
data-testid="ucl-uikit-select"
|
|
46
46
|
role="combobox"
|
|
47
47
|
tabindex="0"
|
|
@@ -88,7 +88,7 @@ exports[`Calendar > Snapshot: no date provided 1`] = `
|
|
|
88
88
|
aria-expanded="false"
|
|
89
89
|
aria-haspopup="listbox"
|
|
90
90
|
aria-label="Year"
|
|
91
|
-
class="ucl-uikit-select css-
|
|
91
|
+
class="ucl-uikit-select css-1mgirop"
|
|
92
92
|
data-testid="ucl-uikit-select"
|
|
93
93
|
role="combobox"
|
|
94
94
|
tabindex="0"
|
|
@@ -921,7 +921,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
921
921
|
aria-expanded="false"
|
|
922
922
|
aria-haspopup="listbox"
|
|
923
923
|
aria-label="Month"
|
|
924
|
-
class="ucl-uikit-select css-
|
|
924
|
+
class="ucl-uikit-select css-1mgirop"
|
|
925
925
|
data-testid="ucl-uikit-select"
|
|
926
926
|
role="combobox"
|
|
927
927
|
tabindex="0"
|
|
@@ -968,7 +968,7 @@ exports[`Calendar > Snapshot: with date provided 1`] = `
|
|
|
968
968
|
aria-expanded="false"
|
|
969
969
|
aria-haspopup="listbox"
|
|
970
970
|
aria-label="Year"
|
|
971
|
-
class="ucl-uikit-select css-
|
|
971
|
+
class="ucl-uikit-select css-1mgirop"
|
|
972
972
|
data-testid="ucl-uikit-select"
|
|
973
973
|
role="combobox"
|
|
974
974
|
tabindex="0"
|
|
@@ -6,11 +6,11 @@ exports[`Datepicker > Snapshot: no date provided 1`] = `
|
|
|
6
6
|
data-testid="ucl-uikit-datepicker"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="ucl-uikit-datepicker__visible-field css-
|
|
9
|
+
class="ucl-uikit-datepicker__visible-field css-51hkje"
|
|
10
10
|
data-testid="ucl-uikit-datepicker__visible-field"
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
|
-
class="ucl-uikit-datepicker__input css-
|
|
13
|
+
class="ucl-uikit-datepicker__input css-gjp4ve"
|
|
14
14
|
data-testid="ucl-uikit-datepicker__input"
|
|
15
15
|
inputmode="numeric"
|
|
16
16
|
placeholder="DD/MM/YYYY"
|
|
@@ -25,7 +25,7 @@ exports[`Datepicker > Snapshot: no date provided 1`] = `
|
|
|
25
25
|
type="button"
|
|
26
26
|
>
|
|
27
27
|
<svg
|
|
28
|
-
class="ucl-uikit-icon css-
|
|
28
|
+
class="ucl-uikit-icon css-7p0vcp"
|
|
29
29
|
data-testid="ucl-uikit-icon"
|
|
30
30
|
fill="none"
|
|
31
31
|
focusable="false"
|
|
@@ -61,11 +61,11 @@ exports[`Datepicker > Snapshot: with date provided 1`] = `
|
|
|
61
61
|
data-testid="ucl-uikit-datepicker"
|
|
62
62
|
>
|
|
63
63
|
<div
|
|
64
|
-
class="ucl-uikit-datepicker__visible-field css-
|
|
64
|
+
class="ucl-uikit-datepicker__visible-field css-51hkje"
|
|
65
65
|
data-testid="ucl-uikit-datepicker__visible-field"
|
|
66
66
|
>
|
|
67
67
|
<input
|
|
68
|
-
class="ucl-uikit-datepicker__input css-
|
|
68
|
+
class="ucl-uikit-datepicker__input css-gjp4ve"
|
|
69
69
|
data-testid="ucl-uikit-datepicker__input"
|
|
70
70
|
inputmode="numeric"
|
|
71
71
|
placeholder="DD/MM/YYYY"
|
|
@@ -80,7 +80,7 @@ exports[`Datepicker > Snapshot: with date provided 1`] = `
|
|
|
80
80
|
type="button"
|
|
81
81
|
>
|
|
82
82
|
<svg
|
|
83
|
-
class="ucl-uikit-icon css-
|
|
83
|
+
class="ucl-uikit-icon css-7p0vcp"
|
|
84
84
|
data-testid="ucl-uikit-icon"
|
|
85
85
|
fill="none"
|
|
86
86
|
focusable="false"
|
|
@@ -45,6 +45,7 @@ const DatepickerInput = ({
|
|
|
45
45
|
height: 100%;
|
|
46
46
|
padding: 0 0 0 16px;
|
|
47
47
|
border: none;
|
|
48
|
+
border-radius: ${theme.radius.r4} 0 0 ${theme.radius.r4};
|
|
48
49
|
color: ${theme.colour.text.default};
|
|
49
50
|
background-color: ${theme.colour.fill.inverse};
|
|
50
51
|
font-family: ${md.fontFamily};
|
|
@@ -44,6 +44,7 @@ const VisibleField = ({
|
|
|
44
44
|
height: 100%;
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
border: 1px solid ${theme.colour.speciality.inputDefault};
|
|
47
|
+
border-radius: ${theme.radius.r4};
|
|
47
48
|
background-color: ${theme.colour.fill.inverse};
|
|
48
49
|
|
|
49
50
|
&:focus-within {
|
|
@@ -88,7 +89,7 @@ const VisibleField = ({
|
|
|
88
89
|
// TODO: This ought to be fixed in the <Icon> component itself.
|
|
89
90
|
const iconStyle = css`
|
|
90
91
|
min-width: 24px;
|
|
91
|
-
color: ${disabled ? theme.colour.icon.disabled : theme.colour.icon.
|
|
92
|
+
color: ${disabled ? theme.colour.icon.disabled : theme.colour.icon.secondary};
|
|
92
93
|
`;
|
|
93
94
|
|
|
94
95
|
// Determine which icon to show
|
|
@@ -25,6 +25,7 @@ const NativeDatepicker = ({
|
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
padding: 0 16px;
|
|
27
27
|
border: 1px solid ${theme.colour.speciality.inputDefault};
|
|
28
|
+
border-radius: ${theme.radius.r4};
|
|
28
29
|
color: ${theme.colour.text.default};
|
|
29
30
|
font-family: ${md.fontFamily};
|
|
30
31
|
font-feature-settings: ${md.fontSettings};
|
|
@@ -604,6 +604,7 @@ const CustomSelect = <T extends string | number>({
|
|
|
604
604
|
font-weight: ${md.fontWeight};
|
|
605
605
|
line-height: ${md.lineHeight}%;
|
|
606
606
|
border: ${theme.border.b1} solid ${theme.colour.speciality.inputDefault};
|
|
607
|
+
border-radius: ${theme.radius.r4};
|
|
607
608
|
cursor: pointer;
|
|
608
609
|
user-select: none;
|
|
609
610
|
|
|
@@ -44,6 +44,7 @@ const NativeSelect = ({
|
|
|
44
44
|
line-height: ${md.lineHeight}%;
|
|
45
45
|
background-color: ${theme.colour.fill.inverse};
|
|
46
46
|
border: ${theme.border.b1} solid ${theme.colour.border.secondary};
|
|
47
|
+
border-radius: ${theme.radius.r4};
|
|
47
48
|
color: ${theme.colour.text.default};
|
|
48
49
|
appearance: none;
|
|
49
50
|
-webkit-appearance: none;
|