uikit-react-public 0.39.0 → 0.40.0
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/Accordion/Accordion.Heading.d.ts +2 -1
- package/dist/components/Accordion/Accordion.d.ts +8 -2
- package/dist/components/Accordion/Accordion.stories.d.ts +2 -2
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.stories.d.ts +2 -2
- package/dist/components/Alert/AlertMessage.d.ts +1 -1
- package/dist/components/Alert/AlertTitle.d.ts +1 -1
- package/dist/components/ErrorDialog/ErrorDialog.d.ts +26 -0
- package/dist/components/ErrorDialog/ErrorDialog.stories.d.ts +14 -0
- package/dist/components/ErrorDialog/__tests__/ErrorDialog.test.d.ts +1 -0
- package/dist/components/ErrorDialog/index.d.ts +2 -0
- package/dist/components/Field/HelperText.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +6648 -6322
- package/lib/components/Accordion/Accordion.Heading.tsx +24 -8
- package/lib/components/Accordion/Accordion.Panel.tsx +7 -4
- package/lib/components/Accordion/Accordion.stories.tsx +8 -8
- package/lib/components/Accordion/Accordion.tsx +17 -23
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +14 -14
- package/lib/components/Alert/Alert.tsx +0 -1
- package/lib/components/Alert/AlertMessage.tsx +10 -14
- package/lib/components/Alert/AlertTitle.tsx +11 -8
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +29 -14
- package/lib/components/AppHeader/AppHeader.tsx +0 -1
- package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +1 -1
- package/lib/components/AppMenu/AppMenu.tsx +2 -9
- package/lib/components/AppMenu/AppMenuItem.tsx +6 -2
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +6 -6
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -4
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +10 -10
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +85 -85
- package/lib/components/Calendar/subcomponents/Day.tsx +7 -3
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +2 -2
- package/lib/components/Datepicker/subcomponents/DatepickerInput.tsx +6 -3
- package/lib/components/Dialog/BaseDialog.tsx +6 -2
- package/lib/components/ErrorDialog/ErrorDialog.stories.tsx +85 -0
- package/lib/components/ErrorDialog/ErrorDialog.tsx +433 -0
- package/lib/components/ErrorDialog/__tests__/ErrorDialog.test.tsx +145 -0
- package/lib/components/ErrorDialog/index.tsx +2 -0
- package/lib/components/Field/HelperText.tsx +9 -10
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +25 -25
- package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +28 -28
- package/lib/components/Header/Header.tsx +6 -3
- package/lib/components/Header/__tests__/__snapshots__/Header.test.tsx.snap +4 -4
- package/lib/components/HeaderNew/Header.tsx +0 -1
- package/lib/components/HeaderNew/__tests__/__snapshots__/Header.test.tsx.snap +2 -2
- package/lib/components/Input/Input.tsx +6 -3
- package/lib/components/Input/__tests__/__snapshots__/Input.test.tsx.snap +4 -4
- package/lib/components/Label/Label.tsx +7 -7
- package/lib/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +7 -7
- package/lib/components/Link/BaseLink.tsx +8 -16
- package/lib/components/Link/__tests__/__snapshots__/link.test.tsx.snap +2 -2
- package/lib/components/Menu/Menu.tsx +0 -4
- package/lib/components/Menu/MenuItem.tsx +7 -5
- package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +2 -2
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +2 -2
- package/lib/components/Select/subcomponents/CustomOption.tsx +6 -3
- package/lib/components/Select/subcomponents/CustomSelect.tsx +6 -2
- package/lib/components/Select/subcomponents/NativeSelect.tsx +6 -3
- package/lib/components/Select/subcomponents/VisibleField.tsx +6 -1
- package/lib/components/Sidebar/Sidebar.tsx +0 -1
- package/lib/components/Sidebar/__tests__/__snapshots__/Sidebar.test.tsx.snap +2 -2
- package/lib/components/StandaloneLink/__tests__/__snapshots__/StandaloneLink.test.tsx.snap +2 -2
- package/lib/components/Textarea/Textarea.tsx +6 -3
- package/lib/components/Textarea/__tests__/__snapshots__/Textarea.test.tsx.snap +4 -4
- package/lib/components/Timepicker/Timepicker.tsx +6 -2
- package/lib/components/Timepicker/__tests__/__snapshots__/Timepicker.test.tsx.snap +2 -2
- package/lib/components/WeekPicker/subcomponents/DatepickerInput.tsx +6 -3
- package/lib/components/index.ts +3 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ const DatepickerInput = ({
|
|
|
28
28
|
ref,
|
|
29
29
|
}: DatepickerInputProps) => {
|
|
30
30
|
const [theme] = useTheme();
|
|
31
|
+
const { md } = theme.typography.body;
|
|
31
32
|
|
|
32
33
|
const [isFocused, setIsFocused] = useState(false);
|
|
33
34
|
|
|
@@ -37,9 +38,11 @@ const DatepickerInput = ({
|
|
|
37
38
|
border: none;
|
|
38
39
|
color: ${theme.colour.text.default};
|
|
39
40
|
background-color: ${theme.colour.fill.inverse};
|
|
40
|
-
font-family: ${
|
|
41
|
-
font-
|
|
42
|
-
|
|
41
|
+
font-family: ${md.fontFamily};
|
|
42
|
+
font-feature-settings: ${md.fontSettings};
|
|
43
|
+
font-size: ${md.fontSize}px;
|
|
44
|
+
font-weight: ${md.fontWeight};
|
|
45
|
+
line-height: ${md.lineHeight}%;
|
|
43
46
|
caret-color: ${theme.colour.text.default};
|
|
44
47
|
padding: 0px;
|
|
45
48
|
|
package/lib/components/index.ts
CHANGED
|
@@ -174,6 +174,9 @@ export type {
|
|
|
174
174
|
export { FeedbackDialog } from './FeedbackDialog';
|
|
175
175
|
export type { FeedbackDialogProps } from './FeedbackDialog';
|
|
176
176
|
|
|
177
|
+
export { default as ErrorDialog } from './ErrorDialog';
|
|
178
|
+
export type { ErrorDialogDetail, ErrorDialogProps } from './ErrorDialog';
|
|
179
|
+
|
|
177
180
|
export { default as Radio, LabelledRadio } from './Radio';
|
|
178
181
|
export type { RadioProps, LabelledRadioProps } from './Radio';
|
|
179
182
|
|