@oaknational/oak-components 1.0.2 → 1.1.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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +18 -8
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -656,13 +656,14 @@ type TypographyStyleProps = {
|
|
|
656
656
|
};
|
|
657
657
|
|
|
658
658
|
declare const oakZIndexTokens: {
|
|
659
|
-
behind:
|
|
660
|
-
neutral:
|
|
661
|
-
"in-front":
|
|
662
|
-
"mobile-filters":
|
|
663
|
-
"fixed-header":
|
|
664
|
-
"modal-close-button":
|
|
665
|
-
"modal-dialog":
|
|
659
|
+
readonly behind: -1;
|
|
660
|
+
readonly neutral: 0;
|
|
661
|
+
readonly "in-front": 1;
|
|
662
|
+
readonly "mobile-filters": 2;
|
|
663
|
+
readonly "fixed-header": 100;
|
|
664
|
+
readonly "modal-close-button": 150;
|
|
665
|
+
readonly "modal-dialog": 300;
|
|
666
|
+
readonly banner: number;
|
|
666
667
|
};
|
|
667
668
|
type OakZIndexToken = keyof typeof oakZIndexTokens | null;
|
|
668
669
|
|
|
@@ -2181,6 +2182,9 @@ type OakModalProps = {
|
|
|
2181
2182
|
*
|
|
2182
2183
|
* Defaults to token: `modal-dialog`
|
|
2183
2184
|
*
|
|
2185
|
+
* 🚨 This prop is intended for use by consumers that do not use
|
|
2186
|
+
* the internal system of z-index tokens.
|
|
2187
|
+
*
|
|
2184
2188
|
* NB *The modal is rendered inside a portal so it will not respect the stacking context of its parent component*.
|
|
2185
2189
|
*/
|
|
2186
2190
|
zIndex?: number;
|
|
@@ -3064,7 +3068,10 @@ type OakCookieBannerProps = {
|
|
|
3064
3068
|
/**
|
|
3065
3069
|
* Optional z-index override of the banner.
|
|
3066
3070
|
*
|
|
3067
|
-
* Defaults to token: `
|
|
3071
|
+
* Defaults to token: `banner`
|
|
3072
|
+
*
|
|
3073
|
+
* 🚨 This prop is intended for use by consumers that do not use
|
|
3074
|
+
* the internal system of z-index tokens.
|
|
3068
3075
|
*/
|
|
3069
3076
|
zIndex?: number;
|
|
3070
3077
|
};
|
|
@@ -3225,6 +3232,9 @@ declare const OakCookieSettingsModal: ({ isOpen, onClose, onReject, onConfirm, o
|
|
|
3225
3232
|
type OakCookieConsentProps = Pick<OakCookieSettingsModalProps, "policyURL"> & Pick<OakCookieBannerProps, "isFixed" | "innerMaxWidth"> & {
|
|
3226
3233
|
/**
|
|
3227
3234
|
* Optional stacking context for the entire consent UI
|
|
3235
|
+
*
|
|
3236
|
+
* 🚨 This prop is intended for use by consumers that do not use
|
|
3237
|
+
* the internal system of z-index tokens.
|
|
3228
3238
|
*/
|
|
3229
3239
|
zIndex?: number;
|
|
3230
3240
|
};
|