@cronocode/react-box 0.3.8 → 0.4.0
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.d.ts +12 -4
- package/box.module.css.js +10654 -10024
- package/components/formAsync.d.ts +6 -0
- package/components/formAsync.js +26 -0
- package/components/uncontrolledTextboxCore.d.ts +2 -1
- package/components/uncontrolledTextboxCore.js +18 -16
- package/css.variables.d.ts +6 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/box.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SizeType, ColorType, CursorType, FontSizeType, BaseFontColorType, BaseBgColorType, BaseBorderColorType, BackgroundType, ShadowType } from './css.variables';
|
|
2
|
+
import { SizeType, ColorType, CursorType, FontSizeType, BaseFontColorType, BaseBgColorType, BaseBorderColorType, BackgroundType, ShadowType, BaseOutlineColorType } from './css.variables';
|
|
3
3
|
import { Hovered } from './types';
|
|
4
4
|
import ClassNameUtils from './utils/className/classNameUtils';
|
|
5
5
|
interface BoxDisplay {
|
|
@@ -42,6 +42,12 @@ interface BoxMargin {
|
|
|
42
42
|
marginLeft?: SizeType | 'auto';
|
|
43
43
|
ml?: SizeType | 'auto';
|
|
44
44
|
}
|
|
45
|
+
declare type BoxBorderAndOutlineStyleType = 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'none' | 'hidden';
|
|
46
|
+
interface BoxOutline {
|
|
47
|
+
outline?: SizeType;
|
|
48
|
+
outlineStyle?: BoxBorderAndOutlineStyleType;
|
|
49
|
+
outlineOffset?: SizeType;
|
|
50
|
+
}
|
|
45
51
|
interface BoxBorder {
|
|
46
52
|
border?: SizeType;
|
|
47
53
|
b?: SizeType;
|
|
@@ -57,8 +63,8 @@ interface BoxBorder {
|
|
|
57
63
|
bb?: SizeType;
|
|
58
64
|
borderLeft?: SizeType;
|
|
59
65
|
bl?: SizeType;
|
|
60
|
-
borderStyle?:
|
|
61
|
-
bStyle?:
|
|
66
|
+
borderStyle?: BoxBorderAndOutlineStyleType;
|
|
67
|
+
bStyle?: BoxBorderAndOutlineStyleType;
|
|
62
68
|
borderRadius?: SizeType;
|
|
63
69
|
bRadius?: SizeType;
|
|
64
70
|
borderRadiusTop?: SizeType;
|
|
@@ -112,6 +118,8 @@ interface BoxColors {
|
|
|
112
118
|
bColor?: ColorType | BaseBorderColorType;
|
|
113
119
|
borderColorHover?: ColorType | BaseBorderColorType;
|
|
114
120
|
bColorHover?: ColorType | BaseBorderColorType;
|
|
121
|
+
outlineColor?: ColorType | BaseOutlineColorType;
|
|
122
|
+
outlineColorHover?: ColorType | BaseOutlineColorType;
|
|
115
123
|
}
|
|
116
124
|
interface BoxCursor {
|
|
117
125
|
cursor?: CursorType;
|
|
@@ -157,7 +165,7 @@ interface BoxFlex {
|
|
|
157
165
|
interface BoxHover {
|
|
158
166
|
hover?: boolean;
|
|
159
167
|
}
|
|
160
|
-
declare type BoxStyles = BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxBorder & BoxPadding & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxHover;
|
|
168
|
+
declare type BoxStyles = BoxDisplay & BoxSizing & BoxPosition & BoxSize & BoxMargin & BoxOutline & BoxBorder & BoxPadding & BoxShadow & BoxBackground & BoxColors & BoxCursor & BoxZIndex & BoxOverflow & BoxOpacity & BoxFont & BoxText & BoxFlex & BoxHover;
|
|
161
169
|
declare type TagPropsType<TTag extends keyof React.ReactHTML> = Omit<React.ComponentProps<TTag>, 'className' | 'style'>;
|
|
162
170
|
interface Props<TTag extends keyof React.ReactHTML> extends BoxStyles, Hovered<BoxStyles> {
|
|
163
171
|
children?: React.ReactNode | ((props: {
|