@spscommerce/ds-react 6.33.2 → 6.34.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/lib/index.cjs.js +60 -60
- package/lib/index.es.js +7 -4
- package/lib/modal/SpsModal.d.ts +2 -1
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -29228,7 +29228,8 @@ const propTypes$K = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
29228
29228
|
size: enumValue(ModalSize),
|
|
29229
29229
|
title: propTypes$1I.exports.string,
|
|
29230
29230
|
onClose: fun(),
|
|
29231
|
-
focusElementOnOpen: ref()
|
|
29231
|
+
focusElementOnOpen: ref(),
|
|
29232
|
+
fullHeight: propTypes$1I.exports.bool
|
|
29232
29233
|
});
|
|
29233
29234
|
function SpsModalFooter({ children }) {
|
|
29234
29235
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -29249,7 +29250,8 @@ function SpsModal(_M) {
|
|
|
29249
29250
|
size = ModalSize.SMALL,
|
|
29250
29251
|
onClose,
|
|
29251
29252
|
focusElementOnOpen,
|
|
29252
|
-
title
|
|
29253
|
+
title,
|
|
29254
|
+
fullHeight = false
|
|
29253
29255
|
} = _N, rest = __objRest(_N, [
|
|
29254
29256
|
"children",
|
|
29255
29257
|
"className",
|
|
@@ -29258,7 +29260,8 @@ function SpsModal(_M) {
|
|
|
29258
29260
|
"size",
|
|
29259
29261
|
"onClose",
|
|
29260
29262
|
"focusElementOnOpen",
|
|
29261
|
-
"title"
|
|
29263
|
+
"title",
|
|
29264
|
+
"fullHeight"
|
|
29262
29265
|
]);
|
|
29263
29266
|
const id = useElementId(idProp);
|
|
29264
29267
|
const classes = clsx("sps-modal", "z-stratum-dialog", `sps-modal--${kind}`, `sps-modal--${size}`, className);
|
|
@@ -29323,7 +29326,7 @@ function SpsModal(_M) {
|
|
|
29323
29326
|
tabIndex: -1,
|
|
29324
29327
|
ref: rootElement
|
|
29325
29328
|
}, /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
|
29326
|
-
className: "sps-modal__dialog"
|
|
29329
|
+
className: clsx("sps-modal__dialog", { "sps-modal__dialog-full-height": fullHeight })
|
|
29327
29330
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
29328
29331
|
className: "sps-modal__titlebar"
|
|
29329
29332
|
}, /* @__PURE__ */ React.createElement("div", {
|
package/lib/modal/SpsModal.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const propTypes: {
|
|
|
7
7
|
title: PropTypes.Requireable<string>;
|
|
8
8
|
onClose: PropTypes.Requireable<() => void>;
|
|
9
9
|
focusElementOnOpen: PropTypes.Requireable<React.MutableRefObject<HTMLElement>>;
|
|
10
|
+
fullHeight: PropTypes.Requireable<boolean>;
|
|
10
11
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
12
|
className: PropTypes.Requireable<string>;
|
|
12
13
|
"data-testid": PropTypes.Requireable<string>;
|
|
@@ -14,5 +15,5 @@ declare const propTypes: {
|
|
|
14
15
|
};
|
|
15
16
|
export declare type SpsModalProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
16
17
|
export declare function SpsModalFooter({ children }: SpsModalProps): JSX.Element;
|
|
17
|
-
export declare function SpsModal({ children, className, id: idProp, kind, size, onClose, focusElementOnOpen, title, ...rest }: SpsModalProps): JSX.Element;
|
|
18
|
+
export declare function SpsModal({ children, className, id: idProp, kind, size, onClose, focusElementOnOpen, title, fullHeight, ...rest }: SpsModalProps): JSX.Element;
|
|
18
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.34.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-stately/collections": "^3.3.3",
|
|
31
|
-
"@spscommerce/ds-colors": "6.
|
|
32
|
-
"@spscommerce/ds-illustrations": "6.
|
|
33
|
-
"@spscommerce/ds-shared": "6.
|
|
34
|
-
"@spscommerce/positioning": "6.
|
|
31
|
+
"@spscommerce/ds-colors": "6.34.0",
|
|
32
|
+
"@spscommerce/ds-illustrations": "6.34.0",
|
|
33
|
+
"@spscommerce/ds-shared": "6.34.0",
|
|
34
|
+
"@spscommerce/positioning": "6.34.0",
|
|
35
35
|
"@spscommerce/utils": "^6.11.3",
|
|
36
36
|
"moment": "^2.25.3",
|
|
37
37
|
"moment-timezone": "^0.5.28",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@react-stately/collections": "^3.3.3",
|
|
43
|
-
"@spscommerce/ds-colors": "6.
|
|
44
|
-
"@spscommerce/ds-illustrations": "6.
|
|
45
|
-
"@spscommerce/ds-shared": "6.
|
|
46
|
-
"@spscommerce/positioning": "6.
|
|
43
|
+
"@spscommerce/ds-colors": "6.34.0",
|
|
44
|
+
"@spscommerce/ds-illustrations": "6.34.0",
|
|
45
|
+
"@spscommerce/ds-shared": "6.34.0",
|
|
46
|
+
"@spscommerce/positioning": "6.34.0",
|
|
47
47
|
"@spscommerce/utils": "^6.11.3",
|
|
48
48
|
"@testing-library/react": "^10.4.0",
|
|
49
49
|
"@types/prop-types": "^15.7.1",
|