@cronocode/react-box 3.0.4 → 3.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "type": "module",
5
5
  "main": "./box.cjs",
6
6
  "module": "./box.mjs",
package/types.d.ts CHANGED
@@ -14,11 +14,10 @@ export type ExtractBoxStyles<T extends Record<string, BoxStyle[]>> = {
14
14
  };
15
15
  export type PseudoClassesType = keyof typeof pseudoClasses;
16
16
  export type BoxStyles = ExtractBoxStylesInternal<typeof cssStyles> & Augmented.BoxProps;
17
- export type BooleanPseudoClassesValue = boolean | [boolean, BoxStylesWithPseudoClasses];
18
17
  type BoxPseudoClassesStyles1 = ExtractKeys<typeof pseudo1, BoxStylesWithPseudoClasses>;
19
18
  type BoxPseudoClassesStyles2Nested = ExtractKeys<typeof pseudo2, BoxStylesWithPseudoClasses>;
20
- type BoxPseudoClassesStyles2TopLevel = ExtractKeys<typeof pseudo2, BooleanPseudoClassesValue>;
21
- interface BoxStylesWithPseudoClasses extends BoxStyles, BoxPseudoClassesStyles1, BoxPseudoClassesStyles2Nested {
19
+ type BoxPseudoClassesStyles2TopLevel = ExtractKeys<typeof pseudo2, boolean | [boolean, BoxStylesWithPseudoClasses]>;
20
+ export interface BoxStylesWithPseudoClasses extends BoxStyles, BoxPseudoClassesStyles1, BoxPseudoClassesStyles2Nested {
22
21
  }
23
22
  type BoxPseudoGroupClassesStyles = ExtractKeys<typeof pseudoGroupClasses, string | Record<string, BoxStyles>>;
24
23
  type BoxBreakpointsStyles = ExtractKeys<typeof breakpoints, BoxStylesWithPseudoClasses & BoxPseudoGroupClassesStyles>;
@@ -1,5 +1,5 @@
1
- import { BooleanPseudoClassesValue } from '../../types';
1
+ import { BoxStylesWithPseudoClasses } from '../../types';
2
2
  declare namespace BoxUtils {
3
- function assignBooleanProp<TProps>(prop: Maybe<BooleanPseudoClassesValue>, name: string, props: TProps): void;
3
+ function assignBooleanProp<TProps>(prop: Maybe<boolean | [boolean, BoxStylesWithPseudoClasses]>, name: string, props: TProps): void;
4
4
  }
5
5
  export default BoxUtils;