@cronocode/react-box 1.0.8 → 1.0.9
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/box.module.css.js +1 -1
- package/components/baseSvg.js +4 -4
- package/package.json +1 -1
- package/style.css +1 -1
- package/types.d.ts +6 -1
package/types.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare const styleVariables: {
|
|
|
37
37
|
flexShrink: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
38
38
|
flexSelf: readonly ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"];
|
|
39
39
|
outlineOffset: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
40
|
+
transition: readonly ["none"];
|
|
40
41
|
};
|
|
41
42
|
declare type GapType = (typeof styleVariables.gap)[number];
|
|
42
43
|
declare type BoxSizeValue = (typeof styleVariables.sizeSpecialValues)[number];
|
|
@@ -53,6 +54,7 @@ declare type TextDecorationType = (typeof styleVariables.textDecoration)[number]
|
|
|
53
54
|
declare type TextTransformType = (typeof styleVariables.textTransform)[number];
|
|
54
55
|
declare type TextAlignType = (typeof styleVariables.textAlign)[number];
|
|
55
56
|
declare type BorderAndOutlineStyleType = (typeof styleVariables.borderAndOutlineStyles)[number];
|
|
57
|
+
declare type TransitionType = (typeof styleVariables.transition)[number];
|
|
56
58
|
interface BoxPseudoClasses {
|
|
57
59
|
hover?: boolean;
|
|
58
60
|
focus?: boolean;
|
|
@@ -198,7 +200,10 @@ interface BoxFlex {
|
|
|
198
200
|
alignSelf?: (typeof styleVariables.flexSelf)[number];
|
|
199
201
|
justifySelf?: (typeof styleVariables.flexSelf)[number];
|
|
200
202
|
}
|
|
201
|
-
|
|
203
|
+
interface BoxTransition {
|
|
204
|
+
transition?: TransitionType;
|
|
205
|
+
}
|
|
206
|
+
declare type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition;
|
|
202
207
|
export declare type BoxStyles = BoxNormalStyles & Hovered<BoxNormalStyles> & Focused<BoxNormalStyles> & Activated<BoxNormalStyles>;
|
|
203
208
|
export declare const themeClasses: Array<keyof BoxStyles>;
|
|
204
209
|
export {};
|