@fewbox/den-web 0.2.0-preview.7 → 0.2.0-preview.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/engine.js +1 -1
- package/engine.js.map +1 -1
- package/index-engine.d.ts +1 -1
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Engine/Base/index.d.ts +3 -3
- package/src/components/Engine/index.d.ts +16 -14
- package/tsconfig.app.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType,
|
|
1
|
+
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, FullOpacityType, FullLetterSpacingType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
export interface IViewProps {
|
|
4
4
|
className?: string;
|
|
@@ -20,7 +20,7 @@ export interface IViewProps {
|
|
|
20
20
|
borderWidth?: FullBorderWidthType;
|
|
21
21
|
padding?: FullPaddingType;
|
|
22
22
|
margin?: FullMarginType;
|
|
23
|
-
opacity?:
|
|
23
|
+
opacity?: FullOpacityType;
|
|
24
24
|
display?: FullDisplayType;
|
|
25
25
|
visibility?: FullVisibilityType;
|
|
26
26
|
cursor?: FullCursorType;
|
|
@@ -33,7 +33,7 @@ export interface IViewProps {
|
|
|
33
33
|
minWidth?: Property.Width;
|
|
34
34
|
maxHeight?: Property.Width;
|
|
35
35
|
maxWidth?: Property.Width;
|
|
36
|
-
letterSpacing?:
|
|
36
|
+
letterSpacing?: FullLetterSpacingType;
|
|
37
37
|
lineHeight?: Property.LineHeight;
|
|
38
38
|
overflowX?: FullOverflowXType;
|
|
39
39
|
overflowY?: FullOverflowYType;
|
|
@@ -80,7 +80,7 @@ export declare const PaddingType: {
|
|
|
80
80
|
readonly ExtraLarge: "padding-extra-large";
|
|
81
81
|
};
|
|
82
82
|
export type PaddingType = typeof PaddingType[keyof typeof PaddingType];
|
|
83
|
-
export type FullPaddingType = PaddingType |
|
|
83
|
+
export type FullPaddingType = PaddingType | Property.Padding;
|
|
84
84
|
export declare const MarginType: {
|
|
85
85
|
readonly Default: "margin";
|
|
86
86
|
readonly Normal: "margin-normal";
|
|
@@ -90,7 +90,7 @@ export declare const MarginType: {
|
|
|
90
90
|
readonly ExtraLarge: "margin-extra-large";
|
|
91
91
|
};
|
|
92
92
|
export type MarginType = typeof MarginType[keyof typeof MarginType];
|
|
93
|
-
export type FullMarginType = MarginType |
|
|
93
|
+
export type FullMarginType = MarginType | Property.Margin;
|
|
94
94
|
export declare const GapType: {
|
|
95
95
|
readonly Default: "gap";
|
|
96
96
|
readonly Normal: "gap-normal";
|
|
@@ -105,6 +105,7 @@ export declare const LetterSpacingType: {
|
|
|
105
105
|
readonly Default: "letter-spacing";
|
|
106
106
|
};
|
|
107
107
|
export type LetterSpacingType = typeof LetterSpacingType[keyof typeof LetterSpacingType];
|
|
108
|
+
export type FullLetterSpacingType = LetterSpacingType | Property.LetterSpacing;
|
|
108
109
|
export declare const BorderRadiusType: {
|
|
109
110
|
readonly Default: "border-radius";
|
|
110
111
|
readonly Normal: "border-radius-normal";
|
|
@@ -115,7 +116,7 @@ export declare const BorderRadiusType: {
|
|
|
115
116
|
readonly Max: "border-radius-max";
|
|
116
117
|
};
|
|
117
118
|
export type BorderRadiusType = typeof BorderRadiusType[keyof typeof BorderRadiusType];
|
|
118
|
-
export type FullBorderRadiusType = BorderRadiusType |
|
|
119
|
+
export type FullBorderRadiusType = BorderRadiusType | Property.BorderRadius;
|
|
119
120
|
export declare const BorderStyleType: {
|
|
120
121
|
readonly None: "border-style-none";
|
|
121
122
|
readonly Solid: "border-style-solid";
|
|
@@ -129,7 +130,7 @@ export declare const BorderStyleType: {
|
|
|
129
130
|
readonly Hidden: "border-style-hidden";
|
|
130
131
|
};
|
|
131
132
|
export type BorderStyleType = typeof BorderStyleType[keyof typeof BorderStyleType];
|
|
132
|
-
export type FullBorderStyleType = BorderStyleType |
|
|
133
|
+
export type FullBorderStyleType = BorderStyleType | Property.BorderStyle;
|
|
133
134
|
export declare const BorderWidthType: {
|
|
134
135
|
readonly Default: "border-width";
|
|
135
136
|
readonly Normal: "border-width-normal";
|
|
@@ -139,14 +140,14 @@ export declare const BorderWidthType: {
|
|
|
139
140
|
readonly ExtraLarge: "border-width-extra-large";
|
|
140
141
|
};
|
|
141
142
|
export type BorderWidthType = typeof BorderWidthType[keyof typeof BorderWidthType];
|
|
142
|
-
export type FullBorderWidthType = BorderWidthType |
|
|
143
|
+
export type FullBorderWidthType = BorderWidthType | Property.BorderWidth;
|
|
143
144
|
export declare const VisibilityType: {
|
|
144
145
|
readonly Visible: "visibility-visible";
|
|
145
146
|
readonly Hidden: "visibility-hidden";
|
|
146
147
|
readonly Collapse: "visibility-collapse";
|
|
147
148
|
};
|
|
148
149
|
export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
|
|
149
|
-
export type FullVisibilityType = VisibilityType |
|
|
150
|
+
export type FullVisibilityType = VisibilityType | Property.Visibility;
|
|
150
151
|
export declare const DisplayType: {
|
|
151
152
|
readonly None: "display-none";
|
|
152
153
|
readonly Block: "display-block";
|
|
@@ -163,7 +164,7 @@ export declare const DisplayType: {
|
|
|
163
164
|
readonly FlowRoot: "display-flow-root";
|
|
164
165
|
};
|
|
165
166
|
export type DisplayType = typeof DisplayType[keyof typeof DisplayType];
|
|
166
|
-
export type FullDisplayType = DisplayType |
|
|
167
|
+
export type FullDisplayType = DisplayType | Property.Display;
|
|
167
168
|
export declare const CursorType: {
|
|
168
169
|
readonly Auto: "cursor-auto";
|
|
169
170
|
readonly Default: "cursor-default";
|
|
@@ -203,7 +204,7 @@ export declare const CursorType: {
|
|
|
203
204
|
readonly ZoomOut: "cursor-zoom-out";
|
|
204
205
|
};
|
|
205
206
|
export type CursorType = typeof CursorType[keyof typeof CursorType];
|
|
206
|
-
export type FullCursorType = CursorType |
|
|
207
|
+
export type FullCursorType = CursorType | Property.Cursor;
|
|
207
208
|
export declare const OverflowType: {
|
|
208
209
|
readonly Visible: "overflow-visible";
|
|
209
210
|
readonly Hidden: "overflow-hidden";
|
|
@@ -212,7 +213,7 @@ export declare const OverflowType: {
|
|
|
212
213
|
readonly Clip: "overflow-clip";
|
|
213
214
|
};
|
|
214
215
|
export type OverflowType = typeof OverflowType[keyof typeof OverflowType];
|
|
215
|
-
export type FullOverflowType = OverflowType |
|
|
216
|
+
export type FullOverflowType = OverflowType | Property.Overflow;
|
|
216
217
|
export declare const OverflowXType: {
|
|
217
218
|
readonly Visible: "overflow-x-visible";
|
|
218
219
|
readonly Hidden: "overflow-x-hidden";
|
|
@@ -221,7 +222,7 @@ export declare const OverflowXType: {
|
|
|
221
222
|
readonly Clip: "overflow-x-clip";
|
|
222
223
|
};
|
|
223
224
|
export type OverflowXType = typeof OverflowXType[keyof typeof OverflowXType];
|
|
224
|
-
export type FullOverflowXType = OverflowXType |
|
|
225
|
+
export type FullOverflowXType = OverflowXType | Property.OverflowX;
|
|
225
226
|
export declare const OverflowYType: {
|
|
226
227
|
readonly Visible: "overflow-y-visible";
|
|
227
228
|
readonly Hidden: "overflow-y-hidden";
|
|
@@ -230,7 +231,7 @@ export declare const OverflowYType: {
|
|
|
230
231
|
readonly Clip: "overflow-y-clip";
|
|
231
232
|
};
|
|
232
233
|
export type OverflowYType = typeof OverflowYType[keyof typeof OverflowYType];
|
|
233
|
-
export type FullOverflowYType = OverflowYType |
|
|
234
|
+
export type FullOverflowYType = OverflowYType | Property.OverflowY;
|
|
234
235
|
export declare const OpacityType: {
|
|
235
236
|
readonly _0: "opacity-0";
|
|
236
237
|
readonly _10: "opacity-10";
|
|
@@ -247,6 +248,7 @@ export declare const OpacityType: {
|
|
|
247
248
|
readonly _100: "opacity-100";
|
|
248
249
|
};
|
|
249
250
|
export type OpacityType = typeof OpacityType[keyof typeof OpacityType];
|
|
251
|
+
export type FullOpacityType = OpacityType | Property.Opacity;
|
|
250
252
|
export declare const ViewSizeType: {
|
|
251
253
|
readonly Ellipse: "v-ellipse-size";
|
|
252
254
|
readonly Rectangle: "v-rectangle-size";
|
|
@@ -256,7 +258,7 @@ export declare const ViewSizeType: {
|
|
|
256
258
|
};
|
|
257
259
|
export type ViewSizeType = typeof ViewSizeType[keyof typeof ViewSizeType];
|
|
258
260
|
export declare const getWeightValue: (weightType: FontWeightType) => number;
|
|
259
|
-
export type FullFontSizeType = FontSizeType |
|
|
261
|
+
export type FullFontSizeType = FontSizeType | Property.FontSize;
|
|
260
262
|
export declare const FontSizeType: {
|
|
261
263
|
readonly Default: "font-size";
|
|
262
264
|
readonly Normal: "font-size-normal";
|
|
@@ -271,7 +273,7 @@ export declare const FontSizeType: {
|
|
|
271
273
|
readonly AutoExtraLarge: "auto-font-size-extra-large";
|
|
272
274
|
};
|
|
273
275
|
export type FontSizeType = typeof FontSizeType[keyof typeof FontSizeType];
|
|
274
|
-
export type FullColorType = ColorType |
|
|
276
|
+
export type FullColorType = ColorType | Property.Color;
|
|
275
277
|
export declare const PseudoType: {
|
|
276
278
|
readonly All: "all";
|
|
277
279
|
readonly Before: "before";
|
|
@@ -296,4 +298,4 @@ export declare const DirectionType: {
|
|
|
296
298
|
readonly LeftRight: "left-right";
|
|
297
299
|
};
|
|
298
300
|
export type DirectionType = typeof DirectionType[keyof typeof DirectionType];
|
|
299
|
-
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?:
|
|
301
|
+
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?: FullOpacityType, display?: FullDisplayType, visibility?: FullVisibilityType, cursor?: FullCursorType, overflow?: FullOverflowType, overflowX?: FullOverflowXType, overflowY?: FullOverflowYType) => string;
|