@fewbox/den-web 0.1.42 → 0.1.44
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/index.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/scripts/copy-templates.js +1 -1
- package/scripts/generate-packages.js +41 -0
- package/src/components/Engine/Base/index.d.ts +13 -13
- package/src/components/Engine/index.d.ts +155 -90
- package/src/components/Layout/Breakpoint/index.d.ts +25 -0
- package/src/components/Layout/Dock/index.d.ts +1 -4
- package/src/components/Layout/Flex/index.d.ts +2 -1
- package/src/components/Layout/Responsive/index.d.ts +2 -2
- package/src/components/Layout/XBase/index.d.ts +2 -1
- package/src/components/Layout/YBase/index.d.ts +2 -1
- package/src/components/View/VAnimation/index.d.ts +2 -2
- package/src/components/View/VAvatar/index.d.ts +0 -1
- package/src/components/View/VErrorBoundary/index.d.ts +18 -0
- package/src/components/View/VForm/index.d.ts +2 -3
- package/src/components/View/VImage/index.d.ts +2 -2
- package/src/components/View/VInput/VRange/index.d.ts +2 -0
- package/src/components/View/VInput/index.d.ts +5 -4
- package/src/components/View/VLabel/index.d.ts +2 -1
- package/src/components/View/VSvg/index.d.ts +2 -2
- package/src/components/View/VTextArea/index.d.ts +2 -0
- package/src/components/View/VTheme/index.d.ts +7 -2
- package/src/components/core.d.ts +11 -7
- package/src/components/web.d.ts +6 -3
- package/src/store/index.d.ts +7 -6
- package/templates/.claude/skills/fewbox-den/SKILL.md +1111 -0
- package/templates/style/_core.scss +82 -0
- package/templates/style/_root-properties.scss +48 -0
- package/templates/style/_variables.scss +154 -3
- package/tsconfig.app.tsbuildinfo +1 -0
- package/src/components/Layout/Display/index.d.ts +0 -18
- package/src/components/Layout/index.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fewbox/den-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index-web.d.ts",
|
|
6
6
|
"repository": "https://github.com/FewBox/fewbox-den.git",
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
"react-dom": "^19.2.0",
|
|
20
20
|
"jwt-decode": "^4.0.0"
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const { readFileSync, writeFileSync, mkdirSync } = require('fs');
|
|
2
|
+
const { join } = require('path');
|
|
3
|
+
|
|
4
|
+
const root = join(__dirname, '..');
|
|
5
|
+
|
|
6
|
+
const config = JSON.parse(readFileSync(join(root, 'packages', 'variants.json'), 'utf8'));
|
|
7
|
+
const { common, npm: npmConfig, variants } = config;
|
|
8
|
+
|
|
9
|
+
const registries = ['github', 'npm'];
|
|
10
|
+
|
|
11
|
+
for (const registry of registries) {
|
|
12
|
+
for (const [variant, variantConfig] of Object.entries(variants)) {
|
|
13
|
+
const pkg = {
|
|
14
|
+
name: variantConfig.name,
|
|
15
|
+
version: common.version,
|
|
16
|
+
main: common.main,
|
|
17
|
+
types: variantConfig.types,
|
|
18
|
+
repository: common.repository,
|
|
19
|
+
author: common.author,
|
|
20
|
+
license: common.license,
|
|
21
|
+
type: common.type,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
if (variantConfig.hasPostinstall) {
|
|
25
|
+
pkg.scripts = { postinstall: 'node scripts/copy-templates.js' };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (registry === 'npm') {
|
|
29
|
+
pkg.publishConfig = npmConfig.publishConfig;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const basePeerDeps = variantConfig.overridePeerDependencies ? {} : { ...common.peerDependencies };
|
|
33
|
+
pkg.peerDependencies = { ...basePeerDeps, ...variantConfig.extraPeerDependencies };
|
|
34
|
+
|
|
35
|
+
const dir = join(root, 'packages', registry, variant);
|
|
36
|
+
mkdirSync(dir, { recursive: true });
|
|
37
|
+
writeFileSync(join(dir, 'package.json'), JSON.stringify(pkg, null, 2) + '\n');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
console.log('Generated package.json files for all variants and registries.');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType } from '..';
|
|
1
|
+
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, OpacityType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
export type TLength = (string & {}) | 0;
|
|
4
4
|
export interface IViewProps {
|
|
@@ -16,28 +16,28 @@ export interface IViewProps {
|
|
|
16
16
|
pseudoBackgroundColor?: FullColorType;
|
|
17
17
|
pseudoBorderColor?: FullColorType;
|
|
18
18
|
pseudoBorderDirection?: DirectionType;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
borderRadius?: FullBorderRadiusType;
|
|
20
|
+
borderStyle?: FullBorderStyleType;
|
|
21
|
+
borderWidth?: FullBorderWidthType;
|
|
22
|
+
padding?: FullPaddingType;
|
|
23
|
+
margin?: FullMarginType;
|
|
24
|
+
opacity?: OpacityType;
|
|
25
|
+
display?: FullDisplayType;
|
|
26
|
+
visibility?: FullVisibilityType;
|
|
27
|
+
cursor?: FullCursorType;
|
|
28
|
+
overflow?: FullOverflowType;
|
|
21
29
|
zIndex?: Property.ZIndex;
|
|
22
30
|
fontFamily?: Property.FontFamily;
|
|
23
|
-
borderWidth?: Property.BorderWidth<TLength>;
|
|
24
|
-
borderRadius?: Property.BorderRadius<TLength>;
|
|
25
|
-
borderStyle?: Property.BorderStyle;
|
|
26
|
-
padding?: Property.Padding<TLength>;
|
|
27
|
-
margin?: Property.Margin<TLength>;
|
|
28
31
|
height?: Property.Height<TLength>;
|
|
29
32
|
width?: Property.Width<TLength>;
|
|
30
33
|
minHeight?: Property.Width<TLength>;
|
|
31
34
|
minWidth?: Property.Width<TLength>;
|
|
32
35
|
maxHeight?: Property.Width<TLength>;
|
|
33
36
|
maxWidth?: Property.Width<TLength>;
|
|
34
|
-
opacity?: Property.Opacity;
|
|
35
37
|
letterSpacing?: Property.LetterSpacing<TLength>;
|
|
36
38
|
lineHeight?: Property.LineHeight<TLength>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
overflowX?: Property.OverflowX;
|
|
40
|
-
overflowY?: Property.OverflowY;
|
|
39
|
+
overflowX?: FullOverflowXType;
|
|
40
|
+
overflowY?: FullOverflowYType;
|
|
41
41
|
selfShrink?: Property.FlexShrink;
|
|
42
42
|
selfGrow?: Property.FlexGrow;
|
|
43
43
|
selfBasis?: Property.FlexBasis;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from "csstype";
|
|
1
2
|
export declare enum ColorType {
|
|
2
3
|
Font = "font",
|
|
3
4
|
Body = "body",
|
|
@@ -67,16 +68,167 @@ export declare enum LineHeightType {
|
|
|
67
68
|
Default = "line-height"
|
|
68
69
|
}
|
|
69
70
|
export declare enum PaddingType {
|
|
70
|
-
Default = "padding"
|
|
71
|
+
Default = "padding",
|
|
72
|
+
Normal = "padding-normal",
|
|
73
|
+
ExtraSmall = "padding-extra-small",
|
|
74
|
+
Small = "padding-small",
|
|
75
|
+
Large = "padding-large",
|
|
76
|
+
ExtraLarge = "padding-extra-large"
|
|
71
77
|
}
|
|
78
|
+
export type FullPaddingType = PaddingType | string;
|
|
79
|
+
export declare enum MarginType {
|
|
80
|
+
Default = "margin",
|
|
81
|
+
Normal = "margin-normal",
|
|
82
|
+
ExtraSmall = "margin-extra-small",
|
|
83
|
+
Small = "margin-small",
|
|
84
|
+
Large = "margin-large",
|
|
85
|
+
ExtraLarge = "margin-extra-large"
|
|
86
|
+
}
|
|
87
|
+
export type FullMarginType = MarginType | string;
|
|
88
|
+
export declare enum GapType {
|
|
89
|
+
Default = "gap",
|
|
90
|
+
Normal = "gap-normal",
|
|
91
|
+
ExtraSmall = "gap-extra-small",
|
|
92
|
+
Small = "gap-small",
|
|
93
|
+
Large = "gap-large",
|
|
94
|
+
ExtraLarge = "gap-extra-large"
|
|
95
|
+
}
|
|
96
|
+
export type FullGapType = GapType | Property.Gap;
|
|
72
97
|
export declare enum LetterSpacingType {
|
|
73
98
|
Default = "letter-spacing"
|
|
74
99
|
}
|
|
75
100
|
export declare enum BorderRadiusType {
|
|
76
101
|
Default = "border-radius",
|
|
77
|
-
|
|
102
|
+
Normal = "border-radius-normal",
|
|
103
|
+
ExtraSmall = "border-radius-extra-small",
|
|
104
|
+
Small = "border-radius-small",
|
|
105
|
+
Large = "border-radius-large",
|
|
106
|
+
ExtraLarge = "border-radius-extra-large",
|
|
78
107
|
Max = "border-radius-max"
|
|
79
108
|
}
|
|
109
|
+
export type FullBorderRadiusType = BorderRadiusType | string;
|
|
110
|
+
export declare enum BorderStyleType {
|
|
111
|
+
None = "border-style-none",
|
|
112
|
+
Solid = "border-style-solid",
|
|
113
|
+
Dashed = "border-style-dashed",
|
|
114
|
+
Dotted = "border-style-dotted",
|
|
115
|
+
Double = "border-style-double",
|
|
116
|
+
Groove = "border-style-groove",
|
|
117
|
+
Ridge = "border-style-ridge",
|
|
118
|
+
Inset = "border-style-inset",
|
|
119
|
+
Outset = "border-style-outset",
|
|
120
|
+
Hidden = "border-style-hidden"
|
|
121
|
+
}
|
|
122
|
+
export type FullBorderStyleType = BorderStyleType | string;
|
|
123
|
+
export declare enum BorderWidthType {
|
|
124
|
+
Default = "border-width",
|
|
125
|
+
Normal = "border-width-normal",
|
|
126
|
+
ExtraSmall = "border-width-extra-small",
|
|
127
|
+
Small = "border-width-small",
|
|
128
|
+
Large = "border-width-large",
|
|
129
|
+
ExtraLarge = "border-width-extra-large"
|
|
130
|
+
}
|
|
131
|
+
export type FullBorderWidthType = BorderWidthType | string;
|
|
132
|
+
export declare enum VisibilityType {
|
|
133
|
+
Visible = "visibility-visible",
|
|
134
|
+
Hidden = "visibility-hidden",
|
|
135
|
+
Collapse = "visibility-collapse"
|
|
136
|
+
}
|
|
137
|
+
export type FullVisibilityType = VisibilityType | string;
|
|
138
|
+
export declare enum DisplayType {
|
|
139
|
+
None = "display-none",
|
|
140
|
+
Block = "display-block",
|
|
141
|
+
Inline = "display-inline",
|
|
142
|
+
InlineBlock = "display-inline-block",
|
|
143
|
+
Flex = "display-flex",
|
|
144
|
+
InlineFlex = "display-inline-flex",
|
|
145
|
+
Grid = "display-grid",
|
|
146
|
+
InlineGrid = "display-inline-grid",
|
|
147
|
+
Table = "display-table",
|
|
148
|
+
TableRow = "display-table-row",
|
|
149
|
+
TableCell = "display-table-cell",
|
|
150
|
+
Contents = "display-contents",
|
|
151
|
+
FlowRoot = "display-flow-root"
|
|
152
|
+
}
|
|
153
|
+
export type FullDisplayType = DisplayType | string;
|
|
154
|
+
export declare enum CursorType {
|
|
155
|
+
Auto = "cursor-auto",
|
|
156
|
+
Default = "cursor-default",
|
|
157
|
+
None = "cursor-none",
|
|
158
|
+
ContextMenu = "cursor-context-menu",
|
|
159
|
+
Help = "cursor-help",
|
|
160
|
+
Pointer = "cursor-pointer",
|
|
161
|
+
Progress = "cursor-progress",
|
|
162
|
+
Wait = "cursor-wait",
|
|
163
|
+
Cell = "cursor-cell",
|
|
164
|
+
Crosshair = "cursor-crosshair",
|
|
165
|
+
Text = "cursor-text",
|
|
166
|
+
VerticalText = "cursor-vertical-text",
|
|
167
|
+
Alias = "cursor-alias",
|
|
168
|
+
Copy = "cursor-copy",
|
|
169
|
+
Move = "cursor-move",
|
|
170
|
+
NoDrop = "cursor-no-drop",
|
|
171
|
+
NotAllowed = "cursor-not-allowed",
|
|
172
|
+
Grab = "cursor-grab",
|
|
173
|
+
Grabbing = "cursor-grabbing",
|
|
174
|
+
AllScroll = "cursor-all-scroll",
|
|
175
|
+
ColResize = "cursor-col-resize",
|
|
176
|
+
RowResize = "cursor-row-resize",
|
|
177
|
+
NResize = "cursor-n-resize",
|
|
178
|
+
EResize = "cursor-e-resize",
|
|
179
|
+
SResize = "cursor-s-resize",
|
|
180
|
+
WResize = "cursor-w-resize",
|
|
181
|
+
NeResize = "cursor-ne-resize",
|
|
182
|
+
NwResize = "cursor-nw-resize",
|
|
183
|
+
SeResize = "cursor-se-resize",
|
|
184
|
+
SwResize = "cursor-sw-resize",
|
|
185
|
+
EwResize = "cursor-ew-resize",
|
|
186
|
+
NsResize = "cursor-ns-resize",
|
|
187
|
+
NeswResize = "cursor-nesw-resize",
|
|
188
|
+
NwseResize = "cursor-nwse-resize",
|
|
189
|
+
ZoomIn = "cursor-zoom-in",
|
|
190
|
+
ZoomOut = "cursor-zoom-out"
|
|
191
|
+
}
|
|
192
|
+
export type FullCursorType = CursorType | string;
|
|
193
|
+
export declare enum OverflowType {
|
|
194
|
+
Visible = "overflow-visible",
|
|
195
|
+
Hidden = "overflow-hidden",
|
|
196
|
+
Scroll = "overflow-scroll",
|
|
197
|
+
Auto = "overflow-auto",
|
|
198
|
+
Clip = "overflow-clip"
|
|
199
|
+
}
|
|
200
|
+
export type FullOverflowType = OverflowType | string;
|
|
201
|
+
export declare enum OverflowXType {
|
|
202
|
+
Visible = "overflow-x-visible",
|
|
203
|
+
Hidden = "overflow-x-hidden",
|
|
204
|
+
Scroll = "overflow-x-scroll",
|
|
205
|
+
Auto = "overflow-x-auto",
|
|
206
|
+
Clip = "overflow-x-clip"
|
|
207
|
+
}
|
|
208
|
+
export type FullOverflowXType = OverflowXType | string;
|
|
209
|
+
export declare enum OverflowYType {
|
|
210
|
+
Visible = "overflow-y-visible",
|
|
211
|
+
Hidden = "overflow-y-hidden",
|
|
212
|
+
Scroll = "overflow-y-scroll",
|
|
213
|
+
Auto = "overflow-y-auto",
|
|
214
|
+
Clip = "overflow-y-clip"
|
|
215
|
+
}
|
|
216
|
+
export type FullOverflowYType = OverflowYType | string;
|
|
217
|
+
export declare enum OpacityType {
|
|
218
|
+
_0 = "opacity-0",
|
|
219
|
+
_10 = "opacity-10",
|
|
220
|
+
_20 = "opacity-20",
|
|
221
|
+
_25 = "opacity-25",
|
|
222
|
+
_30 = "opacity-30",
|
|
223
|
+
_40 = "opacity-40",
|
|
224
|
+
_50 = "opacity-50",
|
|
225
|
+
_60 = "opacity-60",
|
|
226
|
+
_70 = "opacity-70",
|
|
227
|
+
_75 = "opacity-75",
|
|
228
|
+
_80 = "opacity-80",
|
|
229
|
+
_90 = "opacity-90",
|
|
230
|
+
_100 = "opacity-100"
|
|
231
|
+
}
|
|
80
232
|
export declare enum ViewSizeType {
|
|
81
233
|
Ellipse = "v-ellipse-size",
|
|
82
234
|
Rectangle = "v-rectangle-size",
|
|
@@ -122,91 +274,4 @@ export declare enum DirectionType {
|
|
|
122
274
|
TopBottom = "top-bottom",
|
|
123
275
|
LeftRight = "left-right"
|
|
124
276
|
}
|
|
125
|
-
export declare
|
|
126
|
-
Flex = "Flex",
|
|
127
|
-
FlexItem = "FlexItem",
|
|
128
|
-
Position = "Position",
|
|
129
|
-
PositionArea = "PositionArea",
|
|
130
|
-
SBaseline = "SBaseline",
|
|
131
|
-
SBottom = "SBottom",
|
|
132
|
-
SLeft = "SLeft",
|
|
133
|
-
SMiddle = "SMiddle",
|
|
134
|
-
SCenter = "SCenter",
|
|
135
|
-
SRight = "SRight",
|
|
136
|
-
SStretch = "SStretch",
|
|
137
|
-
STop = "STop",
|
|
138
|
-
X = "X",
|
|
139
|
-
XAround = "XAround",
|
|
140
|
-
XAutoBoth = "XAutoBoth",
|
|
141
|
-
XAutoCenter = "XAutoCenter",
|
|
142
|
-
XAutoLeft = "XAutoLeft",
|
|
143
|
-
XAutoLefts = "XAutoLefts",
|
|
144
|
-
XAutoRight = "XAutoRight",
|
|
145
|
-
XAutoRights = "XAutoRights",
|
|
146
|
-
XBetween = "XBetween",
|
|
147
|
-
XCenter = "XCenter",
|
|
148
|
-
XCustom = "XCustom",
|
|
149
|
-
XCustomBoth = "XCustomBoth",
|
|
150
|
-
XEvenly = "XEvenly",
|
|
151
|
-
XLeft = "XLeft",
|
|
152
|
-
XRight = "XRight",
|
|
153
|
-
XWrap = "XWrap",
|
|
154
|
-
XWrapAround = "XWrapAround",
|
|
155
|
-
XWrapBetween = "XWrapBetween",
|
|
156
|
-
XWrapBottom = "XWrapBottom",
|
|
157
|
-
XWrapEvenly = "XWrapEvenly",
|
|
158
|
-
XWrapMiddle = "XWrapMiddle",
|
|
159
|
-
XWrapTop = "XWrapTop",
|
|
160
|
-
Y = "Y",
|
|
161
|
-
YAround = "YAround",
|
|
162
|
-
YBetween = "YBetween",
|
|
163
|
-
YBottom = "YBottom",
|
|
164
|
-
YEvenly = "YEvenly",
|
|
165
|
-
YMiddle = "YMiddle",
|
|
166
|
-
YTop = "YTop",
|
|
167
|
-
VEllipse = "VEllipse",
|
|
168
|
-
VLine = "VLine",
|
|
169
|
-
VRectangle = "VRectangle",
|
|
170
|
-
VAvatar = "VAvatar",
|
|
171
|
-
VBlock = "VBlock",
|
|
172
|
-
VBoundary = "VBoundary",
|
|
173
|
-
VButton = "VButton",
|
|
174
|
-
VCard = "VCard",
|
|
175
|
-
VCardMedia = "VCardMedia",
|
|
176
|
-
VCardSocial = "VCardSocial",
|
|
177
|
-
VCardWindow = "VCardWindow",
|
|
178
|
-
VChromeExtensionValidator = "VChromeExtensionValidator",
|
|
179
|
-
VCodePreview = "VCodePreview",
|
|
180
|
-
VDesigner = "VDesigner",
|
|
181
|
-
VDynamic = "VDynamic",
|
|
182
|
-
VBackground = "VBackground",
|
|
183
|
-
VForm = "VForm",
|
|
184
|
-
VImage = "VImage",
|
|
185
|
-
VCheckBox = "VCheckBox",
|
|
186
|
-
VColor = "VColor",
|
|
187
|
-
VDate = "VDate",
|
|
188
|
-
VDatetimeLocal = "VDatetimeLocal",
|
|
189
|
-
VEmail = "VEmail",
|
|
190
|
-
VFile = "VFile",
|
|
191
|
-
VMonth = "VMonth",
|
|
192
|
-
VNumber = "VNumber",
|
|
193
|
-
VPassword = "VPassword",
|
|
194
|
-
VRadio = "VRadio",
|
|
195
|
-
VRange = "VRange",
|
|
196
|
-
VSearch = "VSearch",
|
|
197
|
-
VSubmit = "VSubmit",
|
|
198
|
-
VTel = "VTel",
|
|
199
|
-
VTextBox = "VTextBox",
|
|
200
|
-
VTime = "VTime",
|
|
201
|
-
VUrl = "VUrl",
|
|
202
|
-
VWeek = "VWeek",
|
|
203
|
-
VLabel = "VLabel",
|
|
204
|
-
VLink = "VLink",
|
|
205
|
-
VPhoto = "VPhoto",
|
|
206
|
-
VShadow = "VShadow",
|
|
207
|
-
VStack = "VStack",
|
|
208
|
-
VSvg = "VSvg",
|
|
209
|
-
VText = "VText",
|
|
210
|
-
VTooltip = "VTooltip"
|
|
211
|
-
}
|
|
212
|
-
export declare const getGeneratedClassName: (className: string, isDefaultValue: boolean | undefined, sizeType?: FullFontSizeType, isAutoSize?: boolean, weightType?: FontWeightType, frontColorType?: FullColorType, backgroundColorType?: FullColorType, borderColorType?: FullColorType, borderDirection?: DirectionType, pseudoType?: PseudoType, pseudoFrontColor?: FullColorType, pseudoBackgroundColor?: FullColorType, pseudoBorderColor?: FullColorType, pseudoBorderDirection?: DirectionType) => string;
|
|
277
|
+
export declare const getGeneratedClassName: (className: string, isDefaultValue: boolean | undefined, sizeType?: FullFontSizeType, isAutoSize?: boolean, weightType?: FontWeightType, frontColorType?: FullColorType, backgroundColorType?: FullColorType, borderColorType?: FullColorType, borderDirection?: DirectionType, pseudoType?: PseudoType, pseudoFrontColor?: FullColorType, pseudoBackgroundColor?: FullColorType, pseudoBorderColor?: FullColorType, pseudoBorderDirection?: DirectionType, borderRadius?: FullBorderRadiusType, borderStyle?: FullBorderStyleType, borderWidth?: FullBorderWidthType, padding?: FullPaddingType, margin?: FullMarginType, opacityType?: OpacityType, display?: FullDisplayType, visibility?: FullVisibilityType, cursor?: FullCursorType, overflow?: FullOverflowType, overflowX?: FullOverflowXType, overflowY?: FullOverflowYType) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum ScreenSizeType {
|
|
3
|
+
ExtraSmall = "extra-small",
|
|
4
|
+
Small = "small",
|
|
5
|
+
Medium = "medium",
|
|
6
|
+
Large = "large",
|
|
7
|
+
ExtraLarge = "extra-large",
|
|
8
|
+
ExtraExtraLarge = "extra-extra-large"
|
|
9
|
+
}
|
|
10
|
+
export declare enum BreakpointCategory {
|
|
11
|
+
Visible = "visiable",
|
|
12
|
+
Hidden = "hidden"
|
|
13
|
+
}
|
|
14
|
+
export declare enum BreakpointType {
|
|
15
|
+
Only = "only",
|
|
16
|
+
Up = "up",
|
|
17
|
+
Down = "down"
|
|
18
|
+
}
|
|
19
|
+
export interface IBreakpointDisplayProps extends IBaseProps {
|
|
20
|
+
category: BreakpointCategory;
|
|
21
|
+
type?: BreakpointType;
|
|
22
|
+
breakpoint?: ScreenSizeType | ScreenSizeType[];
|
|
23
|
+
}
|
|
24
|
+
declare const BreakpointDisplay: (props: IBreakpointDisplayProps) => React.JSX.Element;
|
|
25
|
+
export default BreakpointDisplay;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBaseProps
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
export declare enum DockCategory {
|
|
4
4
|
Top = "top",
|
|
@@ -35,8 +35,5 @@ export type IDockProps = ({
|
|
|
35
35
|
} | {
|
|
36
36
|
category: NonAlignmentCategory;
|
|
37
37
|
}) & IDockBaseProps;
|
|
38
|
-
export interface IDockStates extends IBaseStates {
|
|
39
|
-
isMounted: boolean;
|
|
40
|
-
}
|
|
41
38
|
declare const Dock: (props: IDockProps) => React.JSX.Element;
|
|
42
39
|
export default Dock;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
import { FullGapType } from '../../Engine';
|
|
2
3
|
export declare enum FlexDirectionType {
|
|
3
4
|
Row = "row",
|
|
4
5
|
RowReverse = "row-reverse",
|
|
@@ -39,7 +40,7 @@ export interface IFlexProps extends IBaseProps<'div'> {
|
|
|
39
40
|
justifyContent?: FlexJustifyContentType;
|
|
40
41
|
alignItems?: FlexAlignItemsType;
|
|
41
42
|
alignContent?: FlexAlignContentType;
|
|
42
|
-
gap?:
|
|
43
|
+
gap?: FullGapType;
|
|
43
44
|
}
|
|
44
45
|
declare const Flex: (props: IFlexProps) => React.JSX.Element;
|
|
45
46
|
export default Flex;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
import { FullGapType } from '../../Engine';
|
|
3
4
|
import { FlexAlignContentType, FlexJustifyContentType, FlexWrapType } from '../Flex';
|
|
4
5
|
import { FlexItemAlignSelfType } from '../FlexItem';
|
|
5
6
|
export declare enum XCrossType {
|
|
@@ -10,7 +11,7 @@ export declare enum XCrossType {
|
|
|
10
11
|
Baseline = "baseline"
|
|
11
12
|
}
|
|
12
13
|
export interface IXBaseProps extends IBaseProps {
|
|
13
|
-
gap?:
|
|
14
|
+
gap?: FullGapType;
|
|
14
15
|
cross?: XCrossType;
|
|
15
16
|
itemsShrink?: Property.FlexShrink;
|
|
16
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
import { FullGapType } from '../../Engine';
|
|
3
4
|
import { FlexAlignContentType, FlexWrapType, FlexJustifyContentType } from '../Flex';
|
|
4
5
|
import { FlexItemAlignSelfType } from '../FlexItem';
|
|
5
6
|
export declare enum YCrossType {
|
|
@@ -10,7 +11,7 @@ export declare enum YCrossType {
|
|
|
10
11
|
Stretch = "stretch"
|
|
11
12
|
}
|
|
12
13
|
export interface IYBaseProps extends IBaseProps {
|
|
13
|
-
gap?:
|
|
14
|
+
gap?: FullGapType;
|
|
14
15
|
cross?: YCrossType;
|
|
15
16
|
itemsShrink?: Property.FlexShrink;
|
|
16
17
|
}
|
|
@@ -77,8 +77,8 @@ export declare enum AnimationCategory {
|
|
|
77
77
|
RotateOutUpRight = "animate__rotateOutUpRight",
|
|
78
78
|
Hinge = "animate__hinge",
|
|
79
79
|
JackInTheBox = "animate__jackInTheBox",
|
|
80
|
-
RollIn = "
|
|
81
|
-
RollOut = "
|
|
80
|
+
RollIn = "animate__rollIn",
|
|
81
|
+
RollOut = "animate__rollOut",
|
|
82
82
|
ZoomIn = "animate__zoomIn",
|
|
83
83
|
ZoomInDown = "animate__zoomInDown",
|
|
84
84
|
ZoomInLeft = "animate__zoomInLeft",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, ErrorInfo } from 'react';
|
|
2
|
+
export interface IVErrorBoundaryProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
fallback?: React.ReactNode | ((error: Error, errorInfo: ErrorInfo) => React.ReactNode);
|
|
5
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
6
|
+
}
|
|
7
|
+
interface IVErrorBoundaryState {
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
error: Error | null;
|
|
10
|
+
errorInfo: ErrorInfo | null;
|
|
11
|
+
}
|
|
12
|
+
declare class VErrorBoundary extends Component<IVErrorBoundaryProps, IVErrorBoundaryState> {
|
|
13
|
+
constructor(props: IVErrorBoundaryProps);
|
|
14
|
+
static getDerivedStateFromError(error: Error): Partial<IVErrorBoundaryState>;
|
|
15
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
16
|
+
render(): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
17
|
+
}
|
|
18
|
+
export default VErrorBoundary;
|
|
@@ -5,9 +5,8 @@ export declare enum HandleSubmitCategory {
|
|
|
5
5
|
}
|
|
6
6
|
export interface IVFormProps extends IBaseProps<'form'> {
|
|
7
7
|
handleSubmitCategory?: HandleSubmitCategory;
|
|
8
|
-
handleSubmit: (
|
|
9
|
-
handleValidateError?: (
|
|
10
|
-
errorColor?: string;
|
|
8
|
+
handleSubmit: (data: any) => void;
|
|
9
|
+
handleValidateError?: (invalidInputs: HTMLInputElement[]) => void;
|
|
11
10
|
}
|
|
12
11
|
declare const VForm: (props: IVFormProps) => React.JSX.Element;
|
|
13
12
|
export default VForm;
|
|
@@ -9,5 +9,5 @@ export declare enum ImageCategory {
|
|
|
9
9
|
export interface IVImageProps extends IBaseProps<'img'> {
|
|
10
10
|
category?: ImageCategory;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
12
|
+
declare const _default: import("react").MemoExoticComponent<(props: IVImageProps) => React.JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from "csstype";
|
|
1
2
|
import { IBaseInputProps } from "..";
|
|
2
3
|
import { ColorType } from "../../../Engine";
|
|
3
4
|
export type TLength = (string & {}) | 0;
|
|
@@ -5,6 +6,7 @@ export interface IVRangeProps extends IBaseInputProps {
|
|
|
5
6
|
thumbColor: ColorType;
|
|
6
7
|
thumbBorderColor: ColorType;
|
|
7
8
|
trackColor: ColorType;
|
|
9
|
+
trackHeight?: Property.Height<TLength>;
|
|
8
10
|
}
|
|
9
11
|
declare const VRange: (props: IVRangeProps) => React.JSX.Element;
|
|
10
12
|
export default VRange;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IBaseProps
|
|
2
|
-
import { FontSizeType } from "../../Engine";
|
|
1
|
+
import { IBaseProps } from "../../Engine/Base";
|
|
2
|
+
import { FontSizeType, FullColorType, FullGapType, FullPaddingType } from "../../Engine";
|
|
3
3
|
import { LabelCategory } from "../VLabel";
|
|
4
|
-
import { Property } from 'csstype';
|
|
5
4
|
export interface IBaseInputProps extends IBaseProps<'input'> {
|
|
6
5
|
ref?: React.Ref<HTMLInputElement>;
|
|
6
|
+
gap?: FullGapType;
|
|
7
7
|
type?: React.HTMLInputTypeAttribute | undefined;
|
|
8
8
|
label?: string;
|
|
9
9
|
icon?: React.JSX.Element;
|
|
@@ -13,9 +13,10 @@ export interface IBaseInputProps extends IBaseProps<'input'> {
|
|
|
13
13
|
isValueShow?: boolean;
|
|
14
14
|
valueSize?: FontSizeType;
|
|
15
15
|
valueCategory?: LabelCategory;
|
|
16
|
-
valuePadding?:
|
|
16
|
+
valuePadding?: FullPaddingType;
|
|
17
17
|
inputStyle?: React.CSSProperties;
|
|
18
18
|
inputClassName?: string;
|
|
19
|
+
placeholderColor?: FullColorType;
|
|
19
20
|
overWrite?: (inputRef: React.RefObject<HTMLInputElement | null>) => React.JSX.Element;
|
|
20
21
|
renderOptions?: (inputRef: React.RefObject<HTMLInputElement | null>) => React.JSX.Element;
|
|
21
22
|
}
|
|
@@ -53,4 +53,5 @@ export type IVLabelProps<C extends LabelCategory = LabelCategory.Span> = IBasePr
|
|
|
53
53
|
caption: string | React.JSX.Element;
|
|
54
54
|
};
|
|
55
55
|
declare const VLabel: <C extends LabelCategory>(props: IVLabelProps<C>) => React.JSX.Element;
|
|
56
|
-
|
|
56
|
+
declare const _default: typeof VLabel;
|
|
57
|
+
export default _default;
|
|
@@ -11,5 +11,5 @@ export interface IVSvgProps extends IBaseProps {
|
|
|
11
11
|
onMouseEnter?: React.MouseEventHandler<any>;
|
|
12
12
|
onMouseLeave?: React.MouseEventHandler<any>;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const _default: import("react").MemoExoticComponent<(props: IVSvgProps) => React.JSX.Element>;
|
|
15
|
+
export default _default;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
import { FullColorType } from '../../Engine';
|
|
2
3
|
export interface IVTextAreaProps extends IBaseProps<'textarea'> {
|
|
3
4
|
ref?: React.Ref<HTMLTextAreaElement>;
|
|
4
5
|
icon?: React.JSX.Element;
|
|
5
6
|
valueHook?: string;
|
|
6
7
|
setStateHook?: (value: string) => void;
|
|
8
|
+
placeholderColor?: FullColorType;
|
|
7
9
|
}
|
|
8
10
|
export interface IVTextAreaStates extends IBaseStates {
|
|
9
11
|
value?: string | ReadonlyArray<string> | number | undefined;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { BorderRadiusType, ColorType, FontFamilyType, FontSizeType, FontWeightType, LetterSpacingType, LineHeightType, PaddingType, ViewSizeType } from '../../Engine';
|
|
2
2
|
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
-
|
|
3
|
+
type DefaultColors = ColorType.Font | ColorType.Body | ColorType.White | ColorType.Black | ColorType.Light | ColorType.Light75 | ColorType.Light50 | ColorType.Light25 | ColorType.Dark | ColorType.Dark75 | ColorType.Dark50 | ColorType.Dark25 | ColorType.Primary | ColorType.Primary75 | ColorType.Primary50 | ColorType.Primary25 | ColorType.Secondary | ColorType.Secondary75 | ColorType.Secondary50 | ColorType.Secondary25 | ColorType.Tertiary | ColorType.Tertiary75 | ColorType.Tertiary50 | ColorType.Tertiary25 | ColorType.Info | ColorType.Info75 | ColorType.Info50 | ColorType.Info25 | ColorType.Success | ColorType.Success75 | ColorType.Success50 | ColorType.Success25 | ColorType.Warning | ColorType.Warning75 | ColorType.Warning50 | ColorType.Warning25 | ColorType.Error | ColorType.Error75 | ColorType.Error50 | ColorType.Error25 | ColorType.Border | ColorType.Border75 | ColorType.Border50 | ColorType.Border25 | ColorType.Placeholder | ColorType.Placeholder75 | ColorType.Placeholder50 | ColorType.Placeholder25;
|
|
4
|
+
type DefaultFontSizes = FontSizeType.AutoExtraLarge | FontSizeType.AutoExtraSmall | FontSizeType.AutoLarge | FontSizeType.AutoNormal | FontSizeType.AutoSmall | FontSizeType.Default | FontSizeType.ExtraLarge | FontSizeType.ExtraSmall | FontSizeType.Large | FontSizeType.Normal | FontSizeType.Small;
|
|
5
|
+
type DefaultFontWeights = FontWeightType.Black | FontWeightType.Bold | FontWeightType.ExtraBold | FontWeightType.ExtraLight | FontWeightType.Light | FontWeightType.Medium | FontWeightType.Regular | FontWeightType.SemiBold | FontWeightType.Thin;
|
|
6
|
+
type DefaultBorderRadius = BorderRadiusType.Default | BorderRadiusType.Normal | BorderRadiusType.ExtraSmall | BorderRadiusType.Small | BorderRadiusType.Large | BorderRadiusType.ExtraLarge | BorderRadiusType.Max;
|
|
7
|
+
type DefaultViewSizes = ViewSizeType.Ellipse | ViewSizeType.Image | ViewSizeType.Rectangle | ViewSizeType.Svg | ViewSizeType.Window;
|
|
8
|
+
export interface ThemeVariables<C extends string = DefaultColors, FS extends string = DefaultFontSizes, FW extends string = DefaultFontWeights, FF extends string = FontFamilyType.Default, BR extends string = DefaultBorderRadius, LH extends string = LineHeightType.Default, LS extends string = LetterSpacingType.Default, P extends string = PaddingType.Default, VS extends string = DefaultViewSizes> {
|
|
4
9
|
colors: {
|
|
5
10
|
[key in C]: string;
|
|
6
11
|
};
|
|
@@ -36,7 +41,7 @@ export declare enum ThemeCategory {
|
|
|
36
41
|
export interface IVThemeProps extends IBaseProps {
|
|
37
42
|
category?: ThemeCategory;
|
|
38
43
|
area?: string;
|
|
39
|
-
|
|
44
|
+
variables: ThemeVariables;
|
|
40
45
|
}
|
|
41
46
|
declare const VTheme: React.FC<IVThemeProps>;
|
|
42
47
|
export default VTheme;
|