@fewbox/den-web 0.2.0-preview.42 → 0.2.0-preview.43
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 +2 -2
- package/src/components/Engine/index.d.ts +7 -1
- package/templates/style/_core.scss +6 -0
- package/templates/style/_root-properties.scss +3 -0
- package/templates/style/_variables.scss +12 -0
- 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, FullOpacityType, FullLetterSpacingType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
|
|
1
|
+
import { DirectionType, FullColorType, PseudoType, FullFontSizeType, FontWeightType, FullBorderRadiusType, FullBorderStyleType, FullBorderWidthType, FullPaddingType, FullMarginType, FullOpacityType, FullLetterSpacingType, FullLineHeightType, FullDisplayType, FullVisibilityType, FullCursorType, FullOverflowType, FullOverflowXType, FullOverflowYType } from '..';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
export interface IViewProps {
|
|
4
4
|
className?: string;
|
|
@@ -34,7 +34,7 @@ export interface IViewProps {
|
|
|
34
34
|
maxHeight?: Property.Width;
|
|
35
35
|
maxWidth?: Property.Width;
|
|
36
36
|
letterSpacing?: FullLetterSpacingType;
|
|
37
|
-
lineHeight?:
|
|
37
|
+
lineHeight?: FullLineHeightType;
|
|
38
38
|
overflowX?: FullOverflowXType;
|
|
39
39
|
overflowY?: FullOverflowYType;
|
|
40
40
|
selfShrink?: Property.FlexShrink;
|
|
@@ -69,8 +69,14 @@ export declare const FontFamilyType: {
|
|
|
69
69
|
export type FontFamilyType = typeof FontFamilyType[keyof typeof FontFamilyType];
|
|
70
70
|
export declare const LineHeightType: {
|
|
71
71
|
readonly Default: "line-height";
|
|
72
|
+
readonly Normal: "line-height-normal";
|
|
73
|
+
readonly ExtraSmall: "line-height-extra-small";
|
|
74
|
+
readonly Small: "line-height-small";
|
|
75
|
+
readonly Large: "line-height-large";
|
|
76
|
+
readonly ExtraLarge: "line-height-extra-large";
|
|
72
77
|
};
|
|
73
78
|
export type LineHeightType = typeof LineHeightType[keyof typeof LineHeightType];
|
|
79
|
+
export type FullLineHeightType = LineHeightType | Property.LineHeight;
|
|
74
80
|
export declare const PaddingType: {
|
|
75
81
|
readonly Default: "padding";
|
|
76
82
|
readonly Normal: "padding-normal";
|
|
@@ -303,4 +309,4 @@ export declare const DirectionType: {
|
|
|
303
309
|
readonly LeftRight: "left-right";
|
|
304
310
|
};
|
|
305
311
|
export type DirectionType = typeof DirectionType[keyof typeof DirectionType];
|
|
306
|
-
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, letterSpacing?: FullLetterSpacingType) => string;
|
|
312
|
+
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, letterSpacing?: FullLetterSpacingType, lineHeight?: FullLineHeightType) => string;
|
|
@@ -308,6 +308,12 @@ $border-positions: "all", "top", "right", "bottom", "left", "except-top", "excep
|
|
|
308
308
|
letter-spacing: var(#{v.$var-prefix}letter-spacing-#{$letter-spacing});
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
+
/* line-height */
|
|
312
|
+
@each $line-height, $value in v.$line-heights {
|
|
313
|
+
.line-height-#{$line-height} {
|
|
314
|
+
line-height: var(#{v.$var-prefix}line-height-#{$line-height});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
311
317
|
/* padding */
|
|
312
318
|
@each $padding, $value in v.$paddings {
|
|
313
319
|
.padding-#{$padding} {
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
#{v.$var-prefix}font-family: #{v.$font-family};
|
|
75
75
|
#{v.$var-prefix}font-size: #{v.$font-size};
|
|
76
76
|
#{v.$var-prefix}line-height: #{v.$line-height};
|
|
77
|
+
@each $line-height, $value in v.$line-heights {
|
|
78
|
+
#{v.$var-prefix}line-height-#{$line-height}: #{$value};
|
|
79
|
+
}
|
|
77
80
|
#{v.$var-prefix}letter-spacing: #{v.$letter-spacing};
|
|
78
81
|
@each $letter-spacing, $value in v.$letter-spacings {
|
|
79
82
|
#{v.$var-prefix}letter-spacing-#{$letter-spacing}: #{$value};
|
|
@@ -251,6 +251,18 @@ $scrollbar-radius: 8px;
|
|
|
251
251
|
/* FONT */
|
|
252
252
|
/*------------------*/
|
|
253
253
|
$line-height: 1.4;
|
|
254
|
+
$line-height-normal: 1.3;
|
|
255
|
+
$line-height-extra-small: 1.15;
|
|
256
|
+
$line-height-small: 1.2;
|
|
257
|
+
$line-height-large: 1.4;
|
|
258
|
+
$line-height-extra-large: 1.45;
|
|
259
|
+
$line-heights: (
|
|
260
|
+
"normal": $line-height-normal,
|
|
261
|
+
"extra-small": $line-height-extra-small,
|
|
262
|
+
"small": $line-height-small,
|
|
263
|
+
"large": $line-height-large,
|
|
264
|
+
"extra-large": $line-height-extra-large,
|
|
265
|
+
);
|
|
254
266
|
$letter-spacing: 0.01em;
|
|
255
267
|
$letter-spacing-normal: 0.05em;
|
|
256
268
|
$letter-spacing-extra-small: $letter-spacing-normal * 0.5;
|