@fewbox/den-web 0.2.0-preview.13 → 0.2.0-preview.14
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.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Engine/index.d.ts +6 -1
- package/templates/.claude/skills/fewbox-den/SKILL.md +8 -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
|
@@ -103,6 +103,11 @@ export type GapType = typeof GapType[keyof typeof GapType];
|
|
|
103
103
|
export type FullGapType = GapType | Property.Gap;
|
|
104
104
|
export declare const LetterSpacingType: {
|
|
105
105
|
readonly Default: "letter-spacing";
|
|
106
|
+
readonly Normal: "letter-spacing-normal";
|
|
107
|
+
readonly ExtraSmall: "letter-spacing-extra-small";
|
|
108
|
+
readonly Small: "letter-spacing-small";
|
|
109
|
+
readonly Large: "letter-spacing-large";
|
|
110
|
+
readonly ExtraLarge: "letter-spacing-extra-large";
|
|
106
111
|
};
|
|
107
112
|
export type LetterSpacingType = typeof LetterSpacingType[keyof typeof LetterSpacingType];
|
|
108
113
|
export type FullLetterSpacingType = LetterSpacingType | Property.LetterSpacing;
|
|
@@ -298,4 +303,4 @@ export declare const DirectionType: {
|
|
|
298
303
|
readonly LeftRight: "left-right";
|
|
299
304
|
};
|
|
300
305
|
export type DirectionType = typeof DirectionType[keyof typeof DirectionType];
|
|
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;
|
|
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;
|
|
@@ -168,7 +168,7 @@ MarginType.Default | .Normal | .ExtraSmall | .Small | .Large | .ExtraLarge
|
|
|
168
168
|
GapType.Default | .Normal | .ExtraSmall | .Small | .Large | .ExtraLarge
|
|
169
169
|
|
|
170
170
|
// Letter Spacing
|
|
171
|
-
LetterSpacingType.Default
|
|
171
|
+
LetterSpacingType.Default | .Normal | .ExtraSmall | .Small | .Large | .ExtraLarge
|
|
172
172
|
|
|
173
173
|
// Opacity
|
|
174
174
|
OpacityType._0 | ._10 | ._20 | ._25 | ._30 | ._40 | ._50 | ._60 | ._70 | ._75 | ._80 | ._90 | ._100
|
|
@@ -754,7 +754,14 @@ const [value, setValue] = useState('');
|
|
|
754
754
|
downIcon={<DownArrowIcon />} // required
|
|
755
755
|
upIcon={<UpArrowIcon />} // required
|
|
756
756
|
enableClear
|
|
757
|
+
readOnly // renders as VLabel (non-interactive)
|
|
758
|
+
isSelectOnly // prevents manual typing, only allows selection from items
|
|
759
|
+
menuGap="4px" // gap between dropdown menu and trigger
|
|
760
|
+
menuBackgroundColor={Den.Components.ColorType.White}
|
|
761
|
+
menuZIndex={9999}
|
|
757
762
|
handleChange={(value) => console.log(value)}
|
|
763
|
+
overWriteDropdownMenu={(items) => <CustomMenu items={items} />} // custom menu renderer
|
|
764
|
+
overWriteDropdownItem={(item) => <CustomItem item={item} />} // custom item renderer
|
|
758
765
|
/>
|
|
759
766
|
// IDropdownItemData: { caption: string; value: string; icon?: JSX.Element }
|
|
760
767
|
|
|
@@ -302,6 +302,12 @@ $border-positions: "all", "top", "right", "bottom", "left", "except-top", "excep
|
|
|
302
302
|
gap: var(#{v.$var-prefix}gap-#{$gap});
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
+
/* letter-spacing */
|
|
306
|
+
@each $letter-spacing, $value in v.$letter-spacings {
|
|
307
|
+
.letter-spacing-#{$letter-spacing} {
|
|
308
|
+
letter-spacing: var(#{v.$var-prefix}letter-spacing-#{$letter-spacing});
|
|
309
|
+
}
|
|
310
|
+
}
|
|
305
311
|
/* padding */
|
|
306
312
|
@each $padding, $value in v.$paddings {
|
|
307
313
|
.padding-#{$padding} {
|
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
#{v.$var-prefix}font-size: #{v.$font-size};
|
|
76
76
|
#{v.$var-prefix}line-height: #{v.$line-height};
|
|
77
77
|
#{v.$var-prefix}letter-spacing: #{v.$letter-spacing};
|
|
78
|
+
@each $letter-spacing, $value in v.$letter-spacings {
|
|
79
|
+
#{v.$var-prefix}letter-spacing-#{$letter-spacing}: #{$value};
|
|
80
|
+
}
|
|
78
81
|
#{v.$var-prefix}padding: #{v.$padding};
|
|
79
82
|
#{v.$var-prefix}margin: #{v.$margin};
|
|
80
83
|
#{v.$var-prefix}box-sizing: #{v.$box-sizing};
|
|
@@ -252,6 +252,18 @@ $scrollbar-radius: 8px;
|
|
|
252
252
|
/*------------------*/
|
|
253
253
|
$line-height: 1.4;
|
|
254
254
|
$letter-spacing: 0.01em;
|
|
255
|
+
$letter-spacing-normal: 0.05em;
|
|
256
|
+
$letter-spacing-extra-small: $letter-spacing-normal * 0.5;
|
|
257
|
+
$letter-spacing-small: $letter-spacing-normal * 0.8;
|
|
258
|
+
$letter-spacing-large: $letter-spacing-normal * 1.4;
|
|
259
|
+
$letter-spacing-extra-large: $letter-spacing-normal * 2.4;
|
|
260
|
+
$letter-spacings: (
|
|
261
|
+
"normal": $letter-spacing-normal,
|
|
262
|
+
"extra-small": $letter-spacing-extra-small,
|
|
263
|
+
"small": $letter-spacing-small,
|
|
264
|
+
"large": $letter-spacing-large,
|
|
265
|
+
"extra-large": $letter-spacing-extra-large,
|
|
266
|
+
);
|
|
255
267
|
$font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
|
256
268
|
"Segoe UI Emoji", "Segoe UI Symbol";
|
|
257
269
|
$font-size: 1em; // 16px * 0.875 = 14px;
|