@cronocode/react-box 1.5.2 → 1.5.4
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/baseSvg.module.css.cjs +1 -1
- package/baseSvg.module.css.mjs +1 -1
- package/box.d.ts +1 -5
- package/box.module.css.cjs +1 -1
- package/box.module.css.mjs +1 -1
- package/components/baseSvg.d.ts +1 -5
- package/package.json +4 -1
- package/plugins.cjs +7 -11
- package/plugins.mjs +12 -16
- package/style.css +1 -1
- package/types.d.ts +14 -2
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];
|
|
@@ -211,12 +217,18 @@ interface BoxPointerEvents {
|
|
|
211
217
|
pointerEvents?: PointerEventsType;
|
|
212
218
|
}
|
|
213
219
|
type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition & BoxUserSelect & BoxAppearance & BoxPointerEvents;
|
|
214
|
-
|
|
220
|
+
declare namespace Augmented {
|
|
221
|
+
interface BoxProps {
|
|
222
|
+
}
|
|
223
|
+
interface SvgProps {
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export type BoxStyles = BoxNormalStyles & Hovered<BoxNormalStyles> & Focused<BoxNormalStyles> & Activated<BoxNormalStyles> & Augmented.BoxProps;
|
|
215
227
|
export declare const themeClasses: Partial<Record<string, string>>;
|
|
216
228
|
interface SvgNormalStyles {
|
|
217
229
|
rotate?: 0 | 90 | 180 | 270 | -90 | -180 | -270;
|
|
218
230
|
flip?: 'xAxis' | 'yAxis';
|
|
219
231
|
}
|
|
220
|
-
export type SvgStyles = SvgNormalStyles & Hovered<SvgNormalStyles> & Focused<SvgNormalStyles> & Activated<SvgNormalStyles
|
|
232
|
+
export type SvgStyles = SvgNormalStyles & Hovered<SvgNormalStyles> & Focused<SvgNormalStyles> & Activated<SvgNormalStyles> & Augmented.SvgProps;
|
|
221
233
|
export declare const themeSvgClasses: Partial<Record<string, string>>;
|
|
222
234
|
export {};
|