@cronocode/react-box 1.5.1 → 1.5.2
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.mjs +0 -2
- package/box.module.css.cjs +1 -1
- package/box.module.css.mjs +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types.d.ts +9 -12
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];
|
|
@@ -150,12 +153,6 @@ interface BoxBorder {
|
|
|
150
153
|
borderRadiusBottomLeft?: SizeType;
|
|
151
154
|
borderRadiusBottomRight?: SizeType;
|
|
152
155
|
}
|
|
153
|
-
interface BoxShadow {
|
|
154
|
-
}
|
|
155
|
-
interface BoxBackground {
|
|
156
|
-
}
|
|
157
|
-
interface BoxColors {
|
|
158
|
-
}
|
|
159
156
|
interface BoxCursor {
|
|
160
157
|
cursor?: CursorType;
|
|
161
158
|
}
|
|
@@ -213,11 +210,11 @@ interface BoxAppearance {
|
|
|
213
210
|
interface BoxPointerEvents {
|
|
214
211
|
pointerEvents?: PointerEventsType;
|
|
215
212
|
}
|
|
216
|
-
type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder &
|
|
213
|
+
type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition & BoxUserSelect & BoxAppearance & BoxPointerEvents;
|
|
217
214
|
export type BoxStyles = BoxNormalStyles & Hovered<BoxNormalStyles> & Focused<BoxNormalStyles> & Activated<BoxNormalStyles>;
|
|
218
215
|
export declare const themeClasses: Partial<Record<string, string>>;
|
|
219
216
|
interface SvgNormalStyles {
|
|
220
|
-
rotate?: 0 | 90 | 180 | 270;
|
|
217
|
+
rotate?: 0 | 90 | 180 | 270 | -90 | -180 | -270;
|
|
221
218
|
flip?: 'xAxis' | 'yAxis';
|
|
222
219
|
}
|
|
223
220
|
export type SvgStyles = SvgNormalStyles & Hovered<SvgNormalStyles> & Focused<SvgNormalStyles> & Activated<SvgNormalStyles>;
|