@gusarov-studio/rubik-ui 31.2.0 → 31.4.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.
@@ -1,13 +1,17 @@
1
1
  import React from "react";
2
- import "./Stack.scss";
3
2
  import type { CSSUnit } from "../types/CSSUnit";
3
+ import type { ResponsiveValue } from "../foundation/breakpoints";
4
+ import "./Stack.scss";
4
5
  type GapProperty = CSSUnit | `${number} ` | `calc(${string})` | number;
6
+ type Direction = "row" | "row-reverse" | "column" | "column-reverse";
7
+ type AlignItems = "start" | "center" | "end" | "stretch" | "baseline";
8
+ type JustifyContent = "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
5
9
  interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
6
- direction?: "row" | "row-reverse" | "column" | "column-reverse";
7
- spacing?: GapProperty;
8
- alignItems?: "start" | "center" | "end" | "stretch" | "baseline";
9
- justifyContent?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
10
- wrap?: boolean;
10
+ direction?: ResponsiveValue<Direction>;
11
+ spacing?: ResponsiveValue<GapProperty>;
12
+ alignItems?: ResponsiveValue<AlignItems>;
13
+ justifyContent?: ResponsiveValue<JustifyContent>;
14
+ wrap?: ResponsiveValue<boolean>;
11
15
  as?: React.ElementType;
12
16
  children: React.ReactNode;
13
17
  }
@@ -3,7 +3,7 @@ import type { NamedColor } from "./types";
3
3
  import type { Color } from "../types/Color";
4
4
  import type { ResponsiveValue } from "../foundation/breakpoints";
5
5
  import "./Text.scss";
6
- type TextSize = 8 | 10 | 12 | 13 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 36 | 40 | 48 | 56 | 60 | 64 | 72;
6
+ type TextSize = 8 | 10 | 12 | 13 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 36 | 40 | 44 | 48 | 56 | 60 | 64 | 72;
7
7
  type TextElement = HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement;
8
8
  type TextWeight = "inherit" | "thin" | "extra-light" | "light" | "regular" | "medium" | "semibold" | "bold" | "extra-bold" | "black" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
9
9
  type TextAlign = "inherit" | "start" | "center" | "end" | "justify";