@cronocode/react-box 1.5.2 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "main": "./box.cjs",
5
5
  "module": "./box.mjs",
6
6
  "types": "./box.d.ts",
package/types.d.ts CHANGED
@@ -52,6 +52,7 @@ type SizeType = (typeof styleVariables.sizes)[number];
52
52
  type CursorType = (typeof styleVariables.cursors)[number];
53
53
  type OverflowType = (typeof styleVariables.overflows)[number];
54
54
  type FontSizeType = (typeof styleVariables.fontSizes)[number];
55
+ type FontStyleType = (typeof styleVariables.fontStyle)[number];
55
56
  type FontWeightType = (typeof styleVariables.fontWeight)[number];
56
57
  type ZIndexSizeType = (typeof styleVariables.zIndexSizes)[number];
57
58
  type OpacitySizeType = (typeof styleVariables.opacity)[number];
@@ -63,6 +64,8 @@ type TransitionType = (typeof styleVariables.transition)[number];
63
64
  type UserSelectType = (typeof styleVariables.userSelect)[number];
64
65
  type AppearanceType = (typeof styleVariables.appearance)[number];
65
66
  type PointerEventsType = (typeof styleVariables.pointerEvents)[number];
67
+ type WhiteSpaceType = (typeof styleVariables.whiteSpace)[number];
68
+ type TextOverflowType = (typeof styleVariables.textOverflow)[number];
66
69
  interface BoxPseudoClasses {
67
70
  hover?: boolean;
68
71
  focus?: boolean;
@@ -172,11 +175,14 @@ interface BoxFont {
172
175
  lineHeight?: FontSizeType;
173
176
  fontWeight?: FontWeightType;
174
177
  letterSpacing?: SizeType;
178
+ fontStyle?: FontStyleType;
175
179
  }
176
180
  interface BoxText {
177
181
  textDecoration?: TextDecorationType;
178
182
  textTransform?: TextTransformType;
179
183
  textAlign?: TextAlignType;
184
+ whiteSpace?: WhiteSpaceType;
185
+ textOverflow?: TextOverflowType;
180
186
  }
181
187
  interface BoxFlex {
182
188
  flexWrap?: (typeof styleVariables.flexWrap)[number];