@cronocode/react-box 1.3.7 → 1.3.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/baseSvg.module.css.mjs +1 -1
- package/box.mjs +5 -4
- package/box.module.css.mjs +1 -1
- package/package.json +2 -2
- package/plugins/box-theme.ts +250 -0
- package/style.css +1 -1
- package/types.d.ts +1 -11
package/types.d.ts
CHANGED
|
@@ -47,7 +47,6 @@ type GapType = (typeof styleVariables.gap)[number];
|
|
|
47
47
|
type BoxSizeValue = (typeof styleVariables.sizeSpecialValues)[number];
|
|
48
48
|
type BorderSizeType = (typeof styleVariables.borderSizes)[number];
|
|
49
49
|
type SizeType = (typeof styleVariables.sizes)[number];
|
|
50
|
-
export type ColorType = string;
|
|
51
50
|
type CursorType = (typeof styleVariables.cursors)[number];
|
|
52
51
|
type OverflowType = (typeof styleVariables.overflows)[number];
|
|
53
52
|
type FontSizeType = (typeof styleVariables.fontSizes)[number];
|
|
@@ -59,7 +58,6 @@ type TextTransformType = (typeof styleVariables.textTransform)[number];
|
|
|
59
58
|
type TextAlignType = (typeof styleVariables.textAlign)[number];
|
|
60
59
|
type BorderAndOutlineStyleType = (typeof styleVariables.borderAndOutlineStyles)[number];
|
|
61
60
|
type TransitionType = (typeof styleVariables.transition)[number];
|
|
62
|
-
type BackgroundType = (typeof styleVariables.background)[number];
|
|
63
61
|
type UserSelectType = (typeof styleVariables.userSelect)[number];
|
|
64
62
|
type AppearanceType = (typeof styleVariables.appearance)[number];
|
|
65
63
|
type PointerEventsType = (typeof styleVariables.pointerEvents)[number];
|
|
@@ -154,18 +152,10 @@ interface BoxBorder {
|
|
|
154
152
|
borderRadiusBottomRight?: SizeType;
|
|
155
153
|
}
|
|
156
154
|
interface BoxShadow {
|
|
157
|
-
shadow?: string;
|
|
158
155
|
}
|
|
159
156
|
interface BoxBackground {
|
|
160
|
-
background?: BackgroundType | string;
|
|
161
|
-
bg?: BackgroundType | string;
|
|
162
157
|
}
|
|
163
158
|
interface BoxColors {
|
|
164
|
-
color?: ColorType | string;
|
|
165
|
-
backgroundColor?: ColorType | string;
|
|
166
|
-
bgColor?: ColorType | string;
|
|
167
|
-
borderColor?: ColorType | string;
|
|
168
|
-
outlineColor?: ColorType | string;
|
|
169
159
|
}
|
|
170
160
|
interface BoxCursor {
|
|
171
161
|
cursor?: CursorType;
|
|
@@ -226,6 +216,6 @@ interface BoxPointerEvents {
|
|
|
226
216
|
}
|
|
227
217
|
type BoxNormalStyles = BoxPseudoClasses & BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxPadding & BoxBorder & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxOutline & BoxTransition & BoxUserSelect & BoxAppearance & BoxPointerEvents;
|
|
228
218
|
export type BoxStyles = BoxNormalStyles & Hovered<BoxNormalStyles> & Focused<BoxNormalStyles> & Activated<BoxNormalStyles>;
|
|
229
|
-
export declare const themeClasses: Partial<Record<
|
|
219
|
+
export declare const themeClasses: Partial<Record<string, string>>;
|
|
230
220
|
export declare const themeSvgClasses: Partial<Record<keyof SvgStyles, string>>;
|
|
231
221
|
export {};
|