@uniformdev/design-system 19.79.0 → 19.80.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/esm/index.js +7 -1
- package/dist/index.d.mts +2 -19
- package/dist/index.d.ts +2 -19
- package/dist/index.js +7 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -91,7 +91,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
91
91
|
|
|
92
92
|
/* off brand */
|
|
93
93
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
94
|
-
--ring: 0 0 0 0 var(--white), 0 0 0
|
|
94
|
+
--ring: 0 0 0 0 var(--white), 0 0 0 2px var(--brand-primary-3);
|
|
95
95
|
--ring-inset: inset 0 0 0 0 var(--white), inset 0 0 0 3px var(--brand-primary-3);
|
|
96
96
|
|
|
97
97
|
/* site settings */
|
|
@@ -16286,6 +16286,12 @@ var Modal = React19.forwardRef(
|
|
|
16286
16286
|
});
|
|
16287
16287
|
useEffect10(() => {
|
|
16288
16288
|
var _a;
|
|
16289
|
+
if (!document.contains(dialogRef.current)) {
|
|
16290
|
+
console.warn(
|
|
16291
|
+
"The Modal component could not be rendered because it's not attached to the current Document."
|
|
16292
|
+
);
|
|
16293
|
+
return;
|
|
16294
|
+
}
|
|
16289
16295
|
(_a = dialogRef.current) == null ? void 0 : _a.showModal();
|
|
16290
16296
|
return () => {
|
|
16291
16297
|
var _a2;
|
package/dist/index.d.mts
CHANGED
|
@@ -22243,29 +22243,12 @@ type ModalProps = {
|
|
|
22243
22243
|
withoutContentPadding?: boolean;
|
|
22244
22244
|
/** Places buttons at the bottom of the modal */
|
|
22245
22245
|
buttonGroup?: ReactNode;
|
|
22246
|
-
} & React__default.
|
|
22246
|
+
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22247
22247
|
/**
|
|
22248
22248
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
22249
22249
|
* @example <Modal>Hello World</Modal>
|
|
22250
22250
|
*/
|
|
22251
|
-
declare const Modal: React__default.ForwardRefExoticComponent<
|
|
22252
|
-
header?: React__default.ReactNode;
|
|
22253
|
-
children?: React__default.ReactNode;
|
|
22254
|
-
/** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
|
|
22255
|
-
onRequestClose: () => void;
|
|
22256
|
-
/** A valid CSS width */
|
|
22257
|
-
width?: string | undefined;
|
|
22258
|
-
/** A valid CSS height */
|
|
22259
|
-
height?: string | undefined;
|
|
22260
|
-
/** The classname to set on the wrapper of the modal.
|
|
22261
|
-
* @deprecated the dialog is not rendered inside a wrapper anymore.
|
|
22262
|
-
*/
|
|
22263
|
-
wrapperClassName?: string | undefined;
|
|
22264
|
-
/** Removes the default padding on the content wrapper */
|
|
22265
|
-
withoutContentPadding?: boolean | undefined;
|
|
22266
|
-
/** Places buttons at the bottom of the modal */
|
|
22267
|
-
buttonGroup?: ReactNode;
|
|
22268
|
-
} & React__default.HTMLAttributes<HTMLDialogElement> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22251
|
+
declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22269
22252
|
|
|
22270
22253
|
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
22271
22254
|
limit: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -22243,29 +22243,12 @@ type ModalProps = {
|
|
|
22243
22243
|
withoutContentPadding?: boolean;
|
|
22244
22244
|
/** Places buttons at the bottom of the modal */
|
|
22245
22245
|
buttonGroup?: ReactNode;
|
|
22246
|
-
} & React__default.
|
|
22246
|
+
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22247
22247
|
/**
|
|
22248
22248
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
22249
22249
|
* @example <Modal>Hello World</Modal>
|
|
22250
22250
|
*/
|
|
22251
|
-
declare const Modal: React__default.ForwardRefExoticComponent<
|
|
22252
|
-
header?: React__default.ReactNode;
|
|
22253
|
-
children?: React__default.ReactNode;
|
|
22254
|
-
/** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
|
|
22255
|
-
onRequestClose: () => void;
|
|
22256
|
-
/** A valid CSS width */
|
|
22257
|
-
width?: string | undefined;
|
|
22258
|
-
/** A valid CSS height */
|
|
22259
|
-
height?: string | undefined;
|
|
22260
|
-
/** The classname to set on the wrapper of the modal.
|
|
22261
|
-
* @deprecated the dialog is not rendered inside a wrapper anymore.
|
|
22262
|
-
*/
|
|
22263
|
-
wrapperClassName?: string | undefined;
|
|
22264
|
-
/** Removes the default padding on the content wrapper */
|
|
22265
|
-
withoutContentPadding?: boolean | undefined;
|
|
22266
|
-
/** Places buttons at the bottom of the modal */
|
|
22267
|
-
buttonGroup?: ReactNode;
|
|
22268
|
-
} & React__default.HTMLAttributes<HTMLDialogElement> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22251
|
+
declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22269
22252
|
|
|
22270
22253
|
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
22271
22254
|
limit: number;
|
package/dist/index.js
CHANGED
|
@@ -1661,7 +1661,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1661
1661
|
|
|
1662
1662
|
/* off brand */
|
|
1663
1663
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
1664
|
-
--ring: 0 0 0 0 var(--white), 0 0 0
|
|
1664
|
+
--ring: 0 0 0 0 var(--white), 0 0 0 2px var(--brand-primary-3);
|
|
1665
1665
|
--ring-inset: inset 0 0 0 0 var(--white), inset 0 0 0 3px var(--brand-primary-3);
|
|
1666
1666
|
|
|
1667
1667
|
/* site settings */
|
|
@@ -18080,6 +18080,12 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18080
18080
|
});
|
|
18081
18081
|
(0, import_react99.useEffect)(() => {
|
|
18082
18082
|
var _a;
|
|
18083
|
+
if (!document.contains(dialogRef.current)) {
|
|
18084
|
+
console.warn(
|
|
18085
|
+
"The Modal component could not be rendered because it's not attached to the current Document."
|
|
18086
|
+
);
|
|
18087
|
+
return;
|
|
18088
|
+
}
|
|
18083
18089
|
(_a = dialogRef.current) == null ? void 0 : _a.showModal();
|
|
18084
18090
|
return () => {
|
|
18085
18091
|
var _a2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.80.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/react": "6.5.16",
|
|
24
24
|
"@types/react": "18.2.21",
|
|
25
25
|
"@types/react-dom": "18.2.7",
|
|
26
|
-
"@uniformdev/canvas": "^19.
|
|
27
|
-
"@uniformdev/richtext": "^19.
|
|
26
|
+
"@uniformdev/canvas": "^19.80.0",
|
|
27
|
+
"@uniformdev/richtext": "^19.80.0",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.31",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "8c61dce79f176cb5aa3cb163657326407f17dee6"
|
|
71
71
|
}
|