builder-settings-types 0.0.259 → 0.0.262
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SettingGroup } from '../base/settings-group/settingsGroup';
|
|
2
2
|
import { AlignSetting, AlignValue } from '../settings/align-settings/alignSettings';
|
|
3
|
-
import {
|
|
4
|
-
import { GradientSettingProps } from '../settings/gradient-settings/gradientSettings';
|
|
3
|
+
import { ColorWithOpacitySetting } from '../settings/color-with-opacity-settings/colorWithOpacitySettings';
|
|
5
4
|
import { NumberSetting } from '../settings/number-settings/numberSettings';
|
|
6
5
|
import { SelectOption, SelectSetting } from '../settings/select-settings/selectSettings';
|
|
7
6
|
export interface HeaderTypographySettings {
|
|
@@ -9,7 +8,6 @@ export interface HeaderTypographySettings {
|
|
|
9
8
|
colorDefault?: string;
|
|
10
9
|
showAlign?: boolean;
|
|
11
10
|
colorOpacityDefault?: number;
|
|
12
|
-
gradientDefault?: GradientSettingProps["default"];
|
|
13
11
|
fontFamilyDefault?: string;
|
|
14
12
|
fontFamilyOptions?: SelectOption[];
|
|
15
13
|
fontFamilyGetOptions?: () => SelectOption[];
|
|
@@ -25,7 +23,7 @@ export interface HeaderTypographySettings {
|
|
|
25
23
|
fontSizeMobileDefault?: number;
|
|
26
24
|
}
|
|
27
25
|
export declare class HeaderTypographySettingSet extends SettingGroup<{
|
|
28
|
-
color:
|
|
26
|
+
color: ColorWithOpacitySetting;
|
|
29
27
|
fontFamily: SelectSetting<string>;
|
|
30
28
|
fontWeight: SelectSetting<string>;
|
|
31
29
|
fontSize: NumberSetting;
|
|
@@ -22,6 +22,7 @@ export declare class GradientSetting extends Setting<GradientValue, GradientSett
|
|
|
22
22
|
angle: InputTypes;
|
|
23
23
|
stops: InputTypes;
|
|
24
24
|
};
|
|
25
|
+
private getSafeValue;
|
|
25
26
|
private element;
|
|
26
27
|
private previewElement;
|
|
27
28
|
private textInputElement;
|
|
@@ -32,7 +33,7 @@ export declare class GradientSetting extends Setting<GradientValue, GradientSett
|
|
|
32
33
|
private detectChange?;
|
|
33
34
|
private forText;
|
|
34
35
|
constructor(props?: GradientSettingPropsWithStringDefault);
|
|
35
|
-
setValue(newValue: GradientValue |
|
|
36
|
+
setValue(newValue: GradientValue | string | any): void;
|
|
36
37
|
private updateUI;
|
|
37
38
|
private generateDisplayText;
|
|
38
39
|
draw(): HTMLElement;
|
package/package.json
CHANGED