@fewbox/den-web 0.1.43 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewbox/den-web",
3
- "version": "0.1.43",
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",
@@ -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
- display?: Property.Display;
20
- visibility?: Property.Visibility;
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
- cursor?: Property.Cursor;
38
- overflow?: Property.Overflow;
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
- Fixed = "border-radius-fixed",
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,4 +274,4 @@ export declare enum DirectionType {
122
274
  TopBottom = "top-bottom",
123
275
  LeftRight = "left-right"
124
276
  }
125
- 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, IBaseStates } from '../../Engine/Base';
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?: string;
43
+ gap?: FullGapType;
43
44
  }
44
45
  declare const Flex: (props: IFlexProps) => React.JSX.Element;
45
46
  export default Flex;
@@ -1,6 +1,6 @@
1
- import { BreakpointType } from '..';
1
+ import { ScreenSizeType } from "../Breakpoint";
2
2
  export interface IResponsiveProps {
3
- breakpointType?: BreakpointType;
3
+ breakpointType?: ScreenSizeType;
4
4
  desktop: React.JSX.Element;
5
5
  mobile: React.JSX.Element;
6
6
  }
@@ -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?: string;
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?: string;
14
+ gap?: FullGapType;
14
15
  cross?: YCrossType;
15
16
  itemsShrink?: Property.FlexShrink;
16
17
  }
@@ -1,6 +1,5 @@
1
1
  import { IBaseProps } from '../../Engine/Base';
2
2
  import { ColorType } from '../../Engine';
3
- import './index.scss';
4
3
  export interface IVAvatarProps extends IBaseProps {
5
4
  avatar: string | React.JSX.Element;
6
5
  badge?: string | React.JSX.Element;
@@ -13,6 +13,6 @@ declare class VErrorBoundary extends Component<IVErrorBoundaryProps, IVErrorBoun
13
13
  constructor(props: IVErrorBoundaryProps);
14
14
  static getDerivedStateFromError(error: Error): Partial<IVErrorBoundaryState>;
15
15
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
16
- render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | 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> | null | undefined;
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
17
  }
18
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: (json: any) => void;
9
- handleValidateError?: (input: HTMLInputElement) => void;
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;
@@ -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, TLength } from "../../Engine/Base";
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?: Property.Padding<TLength>;
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
  }
@@ -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
- export interface Theme<C extends string, FS extends string, FW extends string, FF extends string, BR extends string, LH extends string, LS extends string, P extends string, VS extends string> {
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
- theme: Theme<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, FontSizeType.AutoExtraLarge | FontSizeType.AutoExtraSmall | FontSizeType.AutoLarge | FontSizeType.AutoNormal | FontSizeType.AutoSmall | FontSizeType.Default | FontSizeType.ExtraLarge | FontSizeType.ExtraSmall | FontSizeType.Large | FontSizeType.Normal | FontSizeType.Small, FontWeightType.Black | FontWeightType.Bold | FontWeightType.ExtraBold | FontWeightType.ExtraLight | FontWeightType.Light | FontWeightType.Medium | FontWeightType.Regular | FontWeightType.SemiBold | FontWeightType.Thin, FontFamilyType.Default, BorderRadiusType.Default | BorderRadiusType.Fixed | BorderRadiusType.Max, LineHeightType.Default, LetterSpacingType.Default, PaddingType.Default, ViewSizeType.Ellipse | ViewSizeType.Image | ViewSizeType.Rectangle | ViewSizeType.Svg | ViewSizeType.Window>;
44
+ variables: ThemeVariables;
40
45
  }
41
46
  declare const VTheme: React.FC<IVThemeProps>;
42
47
  export default VTheme;
@@ -1,9 +1,10 @@
1
- export { default as Base, IBaseProps, IBaseStates, IBaseReturn, IViewProps } from './Engine/Base';
2
- export { BreakpointType } from './Layout';
1
+ export { default as Base } from './Engine/Base';
2
+ export type { IBaseProps, IBaseStates, IBaseReturn, IViewProps } from './Engine/Base';
3
3
  export { default as VZone, ZoneCategory } from './View/VZone';
4
- export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
4
+ export { default as BreakpointDisplay, ScreenSizeType, BreakpointCategory, BreakpointType } from './Layout/Breakpoint';
5
5
  export { default as Responsive } from './Layout/Responsive';
6
- export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, getGeneratedClassName } from './Engine';
6
+ export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, BorderStyleType, BorderWidthType, LineHeightType, LetterSpacingType, PaddingType, MarginType, GapType, OpacityType, DisplayType, VisibilityType, CursorType, OverflowType, OverflowXType, OverflowYType, ViewSizeType, ColorType, getGeneratedClassName } from './Engine';
7
+ export type { FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, FullGapType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType, FullColorType } from './Engine';
7
8
  export { default as Dock, DockCategory, DockAlignment } from './Layout/Dock';
8
9
  export { default as Position, PositionCategory, PositionType } from './Layout/Position';
9
10
  export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
@@ -88,8 +89,10 @@ export { default as VWeek } from './View/VInput/VWeek';
88
89
  export { default as VHidden } from './View/VInput/VHidden';
89
90
  export { default as VGroup } from './View/VInput/VGroup';
90
91
  export { default as VSwitch } from './View/VSwitch';
91
- export { default as VSelect, ISelectItemData } from './View/VSelect';
92
- export { default as VDropdown, IDropdownItemData } from './View/VInput/VDropdown';
92
+ export { default as VSelect } from './View/VSelect';
93
+ export type { ISelectItemData } from './View/VSelect';
94
+ export { default as VDropdown } from './View/VInput/VDropdown';
95
+ export type { IDropdownItemData } from './View/VInput/VDropdown';
93
96
  export { default as VSvg, SvgCategory } from './View/VSvg';
94
97
  export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
95
98
  export { default as VImage, ImageCategory } from './View/VImage';
@@ -110,7 +113,7 @@ export { default as VHR } from './View/VHR';
110
113
  export { default as VSection } from './View/VSection';
111
114
  export { default as VMask } from './View/VMask';
112
115
  export { default as VFrame } from './View/VFrame';
113
- export { default as VTheme, ThemeCategory } from './View/VTheme';
116
+ export { default as VTheme, ThemeCategory, type ThemeVariables } from './View/VTheme';
114
117
  export { default as VTooltip, TooltipCategory } from './View/VTooltip';
115
118
  export { default as VLoading } from './View/VLoading';
116
119
  export { default as VErrorBoundary } from './View/VErrorBoundary';
@@ -1,9 +1,12 @@
1
1
  export * from './core';
2
2
  export { default as Debug } from './Debug';
3
3
  export { default as VChromeExtensionValidator, ExtensionStatus } from './View/VChromeExtensionValidator';
4
- export { default as VGoogleFont, IGoogleTypeface, IGoogleFont, GoogleFontType } from './View/VGoogleFont';
5
- export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
4
+ export { default as VGoogleFont, GoogleFontType } from './View/VGoogleFont';
5
+ export type { IGoogleTypeface, IGoogleFont } from './View/VGoogleFont';
6
+ export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode } from './Auth/GoogleGrant';
7
+ export type { GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
6
8
  export { default as FigmaSignin } from './Auth/FigmaSignin';
7
9
  export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
8
10
  export { default as WeComSignin } from './Auth/WeComSignin';
9
- export { IUserProfile, parseJWT } from './Auth/util';
11
+ export { parseJWT } from './Auth/util';
12
+ export type { IUserProfile } from './Auth/util';
@@ -1,7 +1,7 @@
1
- export { default as IList } from './IList';
2
- export { default as IPaging } from './IPaging';
3
- export { default as IContinuePaging } from './IContinuePaging';
4
- export { EnumDictionary } from './EnumDictionary';
1
+ export type { default as IList } from './IList';
2
+ export type { default as IPaging } from './IPaging';
3
+ export type { default as IContinuePaging } from './IContinuePaging';
4
+ export type { EnumDictionary } from './EnumDictionary';
5
5
  export type { Json } from './Json';
6
- export { default as IMetaResponse } from './IMetaResponse';
7
- export { default as IPayloadResponse } from './IPayloadResponse';
6
+ export type { default as IMetaResponse } from './IMetaResponse';
7
+ export type { default as IPayloadResponse } from './IPayloadResponse';
@@ -268,6 +268,16 @@ $border-positions: "all", "top", "right", "bottom", "left", "except-top", "excep
268
268
  border-color: var(#{v.$var-prefix}color-#{$color}) !important;
269
269
  }
270
270
  }
271
+ /* placeholder */
272
+ @each $color, $value in v.$colors {
273
+ .#{$color}-placeholder {
274
+ &::placeholder,
275
+ & input::placeholder,
276
+ & textarea::placeholder {
277
+ color: var(#{v.$var-prefix}color-#{$color});
278
+ }
279
+ }
280
+ }
271
281
  /* size */
272
282
  @each $font-size, $value in v.$font-sizes {
273
283
  .font-size-#{$font-size} {
@@ -286,3 +296,75 @@ $border-positions: "all", "top", "right", "bottom", "left", "except-top", "excep
286
296
  font-weight: var(#{v.$var-prefix}font-weight-#{$font-weight});
287
297
  }
288
298
  }
299
+ /* padding */
300
+ @each $padding, $value in v.$paddings {
301
+ .padding-#{$padding} {
302
+ padding: var(#{v.$var-prefix}padding-#{$padding});
303
+ }
304
+ }
305
+ /* margin */
306
+ @each $margin, $value in v.$margins {
307
+ .margin-#{$margin} {
308
+ margin: var(#{v.$var-prefix}margin-#{$margin});
309
+ }
310
+ }
311
+ /* border style */
312
+ @each $border-style, $value in v.$border-styles {
313
+ .border-style-#{$border-style} {
314
+ border-style: var(#{v.$var-prefix}border-style-#{$border-style});
315
+ }
316
+ }
317
+ /* border width */
318
+ @each $border-width, $value in v.$border-widths {
319
+ .border-width-#{$border-width} {
320
+ border-width: var(#{v.$var-prefix}border-width-#{$border-width});
321
+ }
322
+ }
323
+ /* border radius */
324
+ @each $border-radius, $value in v.$border-radius-sizes {
325
+ .border-radius-#{$border-radius} {
326
+ border-radius: var(#{v.$var-prefix}border-radius-#{$border-radius});
327
+ }
328
+ }
329
+ /* opacity */
330
+ @each $opacity, $value in v.$opacities {
331
+ .opacity-#{$opacity} {
332
+ opacity: var(#{v.$var-prefix}opacity-#{$opacity});
333
+ }
334
+ }
335
+ /* visibility */
336
+ @each $visibility, $value in v.$visibilities {
337
+ .visibility-#{$visibility} {
338
+ visibility: var(#{v.$var-prefix}visibility-#{$visibility});
339
+ }
340
+ }
341
+ /* display */
342
+ @each $display, $value in v.$displays {
343
+ .display-#{$display} {
344
+ display: var(#{v.$var-prefix}display-#{$display}) !important;
345
+ }
346
+ }
347
+ /* overflow */
348
+ @each $overflow, $value in v.$overflows {
349
+ .overflow-#{$overflow} {
350
+ overflow: var(#{v.$var-prefix}overflow-#{$overflow});
351
+ }
352
+ }
353
+ /* overflow-x */
354
+ @each $overflow, $value in v.$overflows {
355
+ .overflow-x-#{$overflow} {
356
+ overflow-x: var(#{v.$var-prefix}overflow-x-#{$overflow});
357
+ }
358
+ }
359
+ /* overflow-y */
360
+ @each $overflow, $value in v.$overflows {
361
+ .overflow-y-#{$overflow} {
362
+ overflow-y: var(#{v.$var-prefix}overflow-y-#{$overflow});
363
+ }
364
+ }
365
+ /* cursor */
366
+ @each $cursor, $value in v.$cursors {
367
+ .cursor-#{$cursor} {
368
+ cursor: var(#{v.$var-prefix}cursor-#{$cursor});
369
+ }
370
+ }