@oaknational/oak-components 2.11.0 → 2.11.2

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/types.d.ts CHANGED
@@ -198,15 +198,6 @@ type DropShadowStyleProps = {
198
198
  $dropShadow?: ResponsiveValues<OakDropShadowToken>;
199
199
  };
200
200
 
201
- type DisplayStyleProps = {
202
- /**
203
- * Sets the `display` CSS property of the element.
204
- *
205
- * Accepts a `display` value or a responsive array of `display` values.
206
- */
207
- $display?: ResponsiveValues<CSSProperties$1["display"]>;
208
- };
209
-
210
201
  declare const oakBorderWidthTokens: {
211
202
  "border-solid-none": number;
212
203
  "border-solid-s": number;
@@ -516,6 +507,15 @@ type MarginStyleProps = {
516
507
  };
517
508
  type SpacingStyleProps = PaddingStyleProps & MarginStyleProps;
518
509
 
510
+ type DisplayStyleProps = {
511
+ /**
512
+ * Sets the `display` CSS property of the element.
513
+ *
514
+ * Accepts a `display` value or a responsive array of `display` values.
515
+ */
516
+ $display?: ResponsiveValues<CSSProperties$1["display"]>;
517
+ };
518
+
519
519
  declare const oakFontSizeTokens: {
520
520
  "font-size-1": number;
521
521
  "font-size-2": number;
@@ -1249,6 +1249,7 @@ type InternalShadowRectButtonProps = Omit<InternalButtonProps, "$pa" | "$ph" | "
1249
1249
  font?: TypographyStyleProps["$font"];
1250
1250
  innerWidth?: SizeStyleProps["$width"];
1251
1251
  textAlign?: TypographyStyleProps["$textAlign"];
1252
+ display?: DisplayStyleProps["$display"];
1252
1253
  } & PositionStyleProps;
1253
1254
 
1254
1255
  type OakSecondaryButtonProps = Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "licence": "MIT",
5
5
  "description": "Shared components for Oak applications",
6
6
  "main": "dist/cjs/index.js",