@ncds/ui-admin 1.8.22-alpha.3 → 1.8.22
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/cjs/src/components/feedback-and-status/badge/Badge.js +1 -1
- package/dist/cjs/src/components/overlays/modal/Modal.js +46 -41
- package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +2 -2
- package/dist/cjs/src/generated/scoped-css.js +1 -1
- package/dist/esm/src/components/feedback-and-status/badge/Badge.js +1 -1
- package/dist/esm/src/components/overlays/modal/Modal.js +47 -42
- package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +2 -2
- package/dist/esm/src/generated/scoped-css.js +1 -1
- package/dist/temp/src/components/feedback-and-status/badge/Badge.d.ts +1 -1
- package/dist/temp/src/components/feedback-and-status/badge/Badge.js +1 -1
- package/dist/temp/src/components/overlays/modal/Modal.d.ts +5 -5
- package/dist/temp/src/components/overlays/modal/Modal.js +11 -14
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +1 -1
- package/dist/temp/src/generated/scoped-css.js +1 -1
- package/dist/types/src/components/feedback-and-status/badge/Badge.d.ts +1 -1
- package/dist/types/src/components/overlays/modal/Modal.d.ts +5 -5
- package/dist/ui-admin/assets/styles/style.css +28 -28
- package/package.json +1 -1
|
@@ -16,4 +16,4 @@ type BadgeProps = {
|
|
|
16
16
|
};
|
|
17
17
|
declare const Badge: ({ label, type, color, className, leadingIcon, trailingIcon, size, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export { Badge };
|
|
19
|
-
export type {
|
|
19
|
+
export type { BadgeType, BadgeColor, BadgeSize, BadgeProps };
|
|
@@ -12,14 +12,12 @@ type ModalProps = {
|
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
closeOnBackdropClick?: boolean;
|
|
14
14
|
closeOnEsc?: boolean;
|
|
15
|
-
showHeaderDivider?: boolean;
|
|
16
|
-
showActionsDivider?: boolean;
|
|
17
15
|
className?: string;
|
|
18
16
|
zIndex?: number;
|
|
19
17
|
};
|
|
20
18
|
declare const Modal: {
|
|
21
|
-
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc,
|
|
22
|
-
Header({ children, onClose, featuredIcon, title, subtitle, align, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
|
|
20
|
+
Header({ children, onClose, featuredIcon, title, subtitle, align, showDivider, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
21
|
Content({ children, className }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
/**
|
|
25
23
|
* Modal.Actions - The actions area of the modal
|
|
@@ -49,7 +47,7 @@ declare const Modal: {
|
|
|
49
47
|
* <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
|
|
50
48
|
* </Modal.Actions>
|
|
51
49
|
*/
|
|
52
|
-
Actions({ children, layout, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
Actions({ children, layout, showDivider, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
53
51
|
};
|
|
54
52
|
type ModalHeaderProps = {
|
|
55
53
|
children?: ReactNode;
|
|
@@ -62,6 +60,7 @@ type ModalHeaderProps = {
|
|
|
62
60
|
align?: ModalHeaderAlign;
|
|
63
61
|
title?: string | ReactNode;
|
|
64
62
|
subtitle?: string | ReactNode;
|
|
63
|
+
showDivider?: boolean;
|
|
65
64
|
hideCloseButton?: boolean;
|
|
66
65
|
};
|
|
67
66
|
type ModalContentProps = {
|
|
@@ -72,6 +71,7 @@ type ModalActionsProps = {
|
|
|
72
71
|
className?: string;
|
|
73
72
|
children: ReactNode;
|
|
74
73
|
layout?: ModalActionsLayout;
|
|
74
|
+
showDivider?: boolean;
|
|
75
75
|
align?: ModalActionsAlign;
|
|
76
76
|
checkboxContent?: ReactNode;
|
|
77
77
|
};
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
--shadow-xs-focused-3px-primary-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 3px #ffeaee;
|
|
68
68
|
--shadow-xs-focused-3px-gray-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 3px #f2f4f7;
|
|
69
69
|
--shadow-xs-focused-3px-error-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 3px #fee4e2;
|
|
70
|
+
--shadow-xs-focused-4px-primary-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #ffeaee;
|
|
71
|
+
--shadow-xs-focused-4px-gray-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #f2f4f7;
|
|
72
|
+
--shadow-xs-focused-4px-error-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #fee4e2;
|
|
70
73
|
--shadow-sm: 0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f;
|
|
71
74
|
--shadow-sm-focused-4px-primary-100: 0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #ffeaee;
|
|
72
75
|
--shadow-sm-focused-4px-gray-100: 0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #f2f4f7;
|
|
@@ -324,7 +327,7 @@ button {
|
|
|
324
327
|
background-color: var(--primary-red-450);
|
|
325
328
|
border: 1px solid var(--primary-red-500);
|
|
326
329
|
color: var(--base-white);
|
|
327
|
-
box-shadow: var(--shadow-
|
|
330
|
+
box-shadow: var(--shadow-xs-focused-4px-primary-100);
|
|
328
331
|
}
|
|
329
332
|
.ncua-btn--primary:disabled, .ncua-btn--primary.is-disable {
|
|
330
333
|
background-color: var(--primary-red-100);
|
|
@@ -370,7 +373,7 @@ button {
|
|
|
370
373
|
background-color: var(--base-white);
|
|
371
374
|
border: 1px solid var(--gray-200);
|
|
372
375
|
color: var(--gray-700);
|
|
373
|
-
box-shadow: var(--shadow-
|
|
376
|
+
box-shadow: var(--shadow-xs-focused-4px-gray-100);
|
|
374
377
|
}
|
|
375
378
|
.ncua-btn--secondary-gray:disabled, .ncua-btn--secondary-gray.is-disable {
|
|
376
379
|
background-color: var(--base-white);
|
|
@@ -956,7 +959,7 @@ button {
|
|
|
956
959
|
}
|
|
957
960
|
.ncua-checkbox-input.destructive :where(input):focus {
|
|
958
961
|
border-color: var(--primary-red-600);
|
|
959
|
-
box-shadow: var(--shadow-
|
|
962
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
960
963
|
}
|
|
961
964
|
.ncua-checkbox-input:hover {
|
|
962
965
|
border-color: var(--gray-600);
|
|
@@ -1737,7 +1740,7 @@ button {
|
|
|
1737
1740
|
border-color: var(--primary-red-600);
|
|
1738
1741
|
}
|
|
1739
1742
|
.ncua-input.destructive:where(:focus-within) .ncua-input__field {
|
|
1740
|
-
box-shadow: var(--shadow-
|
|
1743
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
1741
1744
|
}
|
|
1742
1745
|
.ncua-input.is-disabled .ncua-input__content > :not(button) {
|
|
1743
1746
|
background-color: var(--gray-50);
|
|
@@ -1927,7 +1930,7 @@ button {
|
|
|
1927
1930
|
border-color: var(--primary-red-600);
|
|
1928
1931
|
}
|
|
1929
1932
|
.ncua-input--textarea.destructive textarea:focus {
|
|
1930
|
-
box-shadow: var(--shadow-
|
|
1933
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
1931
1934
|
}
|
|
1932
1935
|
|
|
1933
1936
|
.ncua-input--textarea--xs textarea {
|
|
@@ -2075,20 +2078,6 @@ button {
|
|
|
2075
2078
|
}
|
|
2076
2079
|
}
|
|
2077
2080
|
|
|
2078
|
-
.ncua-modal--divider-header .ncua-modal__header {
|
|
2079
|
-
border-block-end: 1px solid var(--gray-100);
|
|
2080
|
-
}
|
|
2081
|
-
.ncua-modal--divider-header .ncua-modal__content {
|
|
2082
|
-
padding-block-start: 16px;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
.ncua-modal--divider-actions .ncua-modal__actions-wrapper {
|
|
2086
|
-
border-block-start: 1px solid var(--gray-100);
|
|
2087
|
-
}
|
|
2088
|
-
.ncua-modal--divider-actions .ncua-modal__content {
|
|
2089
|
-
padding-block-end: 16px;
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
2081
|
.ncua-modal__header {
|
|
2093
2082
|
padding: 0px 20px 16px;
|
|
2094
2083
|
border-bottom: none;
|
|
@@ -2097,6 +2086,12 @@ button {
|
|
|
2097
2086
|
flex-direction: column;
|
|
2098
2087
|
gap: 8px;
|
|
2099
2088
|
}
|
|
2089
|
+
.ncua-modal__header-divider {
|
|
2090
|
+
width: 100%;
|
|
2091
|
+
height: 1px;
|
|
2092
|
+
background-color: var(--gray-100);
|
|
2093
|
+
margin: 0 0 16px;
|
|
2094
|
+
}
|
|
2100
2095
|
.ncua-modal__header:has(.ncua-modal__close-button) {
|
|
2101
2096
|
padding-right: 48px;
|
|
2102
2097
|
}
|
|
@@ -2189,6 +2184,12 @@ button {
|
|
|
2189
2184
|
display: flex;
|
|
2190
2185
|
gap: 8px;
|
|
2191
2186
|
}
|
|
2187
|
+
.ncua-modal__actions-divider {
|
|
2188
|
+
width: 100%;
|
|
2189
|
+
height: 1px;
|
|
2190
|
+
background-color: var(--gray-100);
|
|
2191
|
+
margin: 16px 0 0;
|
|
2192
|
+
}
|
|
2192
2193
|
.ncua-modal__actions--vertical {
|
|
2193
2194
|
flex-direction: column;
|
|
2194
2195
|
}
|
|
@@ -2265,8 +2266,8 @@ button {
|
|
|
2265
2266
|
}
|
|
2266
2267
|
}
|
|
2267
2268
|
|
|
2268
|
-
.ncua-modal
|
|
2269
|
-
|
|
2269
|
+
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-modal__header-divider {
|
|
2270
|
+
margin: 0;
|
|
2270
2271
|
}
|
|
2271
2272
|
|
|
2272
2273
|
.ncua-modal__content:has(.ncua-postcode-search-modal) {
|
|
@@ -3183,7 +3184,7 @@ button {
|
|
|
3183
3184
|
}
|
|
3184
3185
|
.ncua-radio-input.destructive :where(input):focus {
|
|
3185
3186
|
border-color: var(--primary-red-600);
|
|
3186
|
-
box-shadow: var(--shadow-
|
|
3187
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
3187
3188
|
}
|
|
3188
3189
|
|
|
3189
3190
|
.ncua-radio-field {
|
|
@@ -3685,7 +3686,7 @@ button {
|
|
|
3685
3686
|
border-color: var(--primary-red-600);
|
|
3686
3687
|
}
|
|
3687
3688
|
.ncua-select.destructive .ncua-select__content:focus-within {
|
|
3688
|
-
box-shadow: var(--shadow-
|
|
3689
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
3689
3690
|
}
|
|
3690
3691
|
.ncua-select--xs .ncua-select__content {
|
|
3691
3692
|
height: var(--select-height-xs);
|
|
@@ -4026,7 +4027,7 @@ button {
|
|
|
4026
4027
|
border-color: var(--primary-red-600);
|
|
4027
4028
|
}
|
|
4028
4029
|
.ncua-selectbox.destructive .ncua-selectbox__content:focus {
|
|
4029
|
-
box-shadow: var(--shadow-
|
|
4030
|
+
box-shadow: var(--shadow-xs-focused-4px-error-100);
|
|
4030
4031
|
}
|
|
4031
4032
|
.ncua-selectbox--xs .ncua-selectbox__content {
|
|
4032
4033
|
height: var(--select-height-xs);
|
|
@@ -5319,16 +5320,15 @@ button {
|
|
|
5319
5320
|
justify-content: center;
|
|
5320
5321
|
color: var(--pink-600);
|
|
5321
5322
|
background-color: var(--pink-200);
|
|
5323
|
+
border-radius: 5px;
|
|
5322
5324
|
}
|
|
5323
5325
|
.ncua-badge--new-badge-sm {
|
|
5324
5326
|
width: 16px;
|
|
5325
5327
|
height: 16px;
|
|
5326
|
-
border-radius: 3px;
|
|
5327
5328
|
}
|
|
5328
5329
|
.ncua-badge--new-badge-md {
|
|
5329
5330
|
width: 20px;
|
|
5330
5331
|
height: 20px;
|
|
5331
|
-
border-radius: 4px;
|
|
5332
5332
|
}
|
|
5333
5333
|
|
|
5334
5334
|
.ncua-badge-group {
|
|
@@ -6590,7 +6590,7 @@ button {
|
|
|
6590
6590
|
bottom: 0;
|
|
6591
6591
|
width: 3px;
|
|
6592
6592
|
background: var(--base-black);
|
|
6593
|
-
z-index:
|
|
6593
|
+
z-index: 1;
|
|
6594
6594
|
}
|
|
6595
6595
|
.ncua-table__row--warning.ncua-table__row--selected:nth-child(n) {
|
|
6596
6596
|
background: var(--orange-50);
|
|
@@ -6735,7 +6735,7 @@ button {
|
|
|
6735
6735
|
.ncua-table--fixed-header .ncua-table__header-cell {
|
|
6736
6736
|
position: sticky;
|
|
6737
6737
|
top: 0;
|
|
6738
|
-
z-index:
|
|
6738
|
+
z-index: 10;
|
|
6739
6739
|
padding: 0 var(--spacing-m);
|
|
6740
6740
|
height: var(--ncua-table-header-height);
|
|
6741
6741
|
}
|