@cronocode/react-box 1.5.1 → 1.5.3

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/types.d.ts CHANGED
@@ -19,10 +19,11 @@ export declare const styleVariables: {
19
19
  textAlign: readonly ["left", "right", "center", "justify"];
20
20
  opacity: readonly [10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
21
21
  cursors: readonly ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "e-resize", "n-resize", "ne-resize", "nw-resize", "s-resize", "se-resize", "sw-resize", "w-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "col-resize", "row-resize", "all-scroll", "zoom-in", "zoom-out", "grab", "grabbing"];
22
- sizes: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100];
22
+ sizes: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15];
23
23
  sizeMultiplier: number;
24
24
  borderSizes: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
25
- fontSizes: readonly [6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 54, 58, 64, 70, 78, 86, 96];
25
+ fontSizes: readonly [6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 64, 70, 78, 86, 96];
26
+ fontStyle: readonly ["italic", "normal", "oblique"];
26
27
  fontWeight: readonly [100, 200, 300, 400, 500, 600, 700, 800, 900];
27
28
  zIndexSizes: readonly [1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 1000, 1001, 1002, 1003, 1004, 1005];
28
29
  justifyContent: readonly ["start", "end", "flex-start", "flex-end", "center", "left", "right", "space-between", "space-around", "space-evenly", "stretch"];
@@ -38,9 +39,11 @@ export declare const styleVariables: {
38
39
  outlineOffset: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
39
40
  transition: readonly ["none"];
40
41
  background: readonly ["none"];
41
- userSelect: readonly ["none"];
42
+ userSelect: readonly ["none", "auto", "text", "all"];
42
43
  appearance: readonly ["none"];
43
- pointerEvents: readonly ["none"];
44
+ pointerEvents: readonly ["none", "auto", "all"];
45
+ whiteSpace: readonly ["break-spaces", "normal", "nowrap", "pre", "pre-line", "pre-wrap"];
46
+ textOverflow: readonly ["clip", "ellipsis"];
44
47
  };
45
48
  type GapType = (typeof styleVariables.gap)[number];
46
49
  type BoxSizeValue = (typeof styleVariables.sizeSpecialValues)[number];
@@ -49,6 +52,7 @@ type SizeType = (typeof styleVariables.sizes)[number];
49
52
  type CursorType = (typeof styleVariables.cursors)[number];
50
53
  type OverflowType = (typeof styleVariables.overflows)[number];
51
54
  type FontSizeType = (typeof styleVariables.fontSizes)[number];
55
+ type FontStyleType = (typeof styleVariables.fontStyle)[number];
52
56
  type FontWeightType = (typeof styleVariables.fontWeight)[number];
53
57
  type ZIndexSizeType = (typeof styleVariables.zIndexSizes)[number];
54
58
  type OpacitySizeType = (typeof styleVariables.opacity)[number];
@@ -60,6 +64,8 @@ type TransitionType = (typeof styleVariables.transition)[number];
60
64
  type UserSelectType = (typeof styleVariables.userSelect)[number];
61
65
  type AppearanceType = (typeof styleVariables.appearance)[number];
62
66
  type PointerEventsType = (typeof styleVariables.pointerEvents)[number];
67
+ type WhiteSpaceType = (typeof styleVariables.whiteSpace)[number];
68
+ type TextOverflowType = (typeof styleVariables.textOverflow)[number];
63
69
  interface BoxPseudoClasses {
64
70
  hover?: boolean;
65
71
  focus?: boolean;
@@ -150,12 +156,6 @@ interface BoxBorder {
150
156
  borderRadiusBottomLeft?: SizeType;
151
157
  borderRadiusBottomRight?: SizeType;
152
158
  }
153
- interface BoxShadow {
154
- }
155
- interface BoxBackground {
156
- }
157
- interface BoxColors {
158
- }
159
159
  interface BoxCursor {
160
160
  cursor?: CursorType;
161
161
  }
@@ -175,11 +175,14 @@ interface BoxFont {
175
175
  lineHeight?: FontSizeType;
176
176
  fontWeight?: FontWeightType;
177
177
  letterSpacing?: SizeType;
178
+ fontStyle?: FontStyleType;
178
179
  }
179
180
  interface BoxText {
180
181
  textDecoration?: TextDecorationType;
181
182
  textTransform?: TextTransformType;
182
183
  textAlign?: TextAlignType;
184
+ whiteSpace?: WhiteSpaceType;
185
+ textOverflow?: TextOverflowType;
183
186
  }
184
187
  interface BoxFlex {
185
188
  flexWrap?: (typeof styleVariables.flexWrap)[number];
@@ -213,11 +216,11 @@ interface BoxAppearance {
213
216
  interface BoxPointerEvents {
214
217
  pointerEvents?: PointerEventsType;
215
218
  }
216
- type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition & BoxUserSelect & BoxAppearance & BoxPointerEvents;
219
+ type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition & BoxUserSelect & BoxAppearance & BoxPointerEvents;
217
220
  export type BoxStyles = BoxNormalStyles & Hovered<BoxNormalStyles> & Focused<BoxNormalStyles> & Activated<BoxNormalStyles>;
218
221
  export declare const themeClasses: Partial<Record<string, string>>;
219
222
  interface SvgNormalStyles {
220
- rotate?: 0 | 90 | 180 | 270;
223
+ rotate?: 0 | 90 | 180 | 270 | -90 | -180 | -270;
221
224
  flip?: 'xAxis' | 'yAxis';
222
225
  }
223
226
  export type SvgStyles = SvgNormalStyles & Hovered<SvgNormalStyles> & Focused<SvgNormalStyles> & Activated<SvgNormalStyles>;