builder-settings-types 0.0.279 → 0.0.280

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,5 +1,5 @@
1
1
  import { SettingGroup } from '../base/settings-group/settingsGroup';
2
- import { ColorWithOpacitySetting } from '../settings/color-with-opacity-settings/colorWithOpacitySettings';
2
+ import { GradientSetting } from '../settings/gradient-settings/GradientSetting';
3
3
  import { NumberSetting } from '../settings/number-settings/numberSettings';
4
4
  /**
5
5
  * A SettingGroup for configuring "Border" settings.
@@ -7,7 +7,7 @@ import { NumberSetting } from '../settings/number-settings/numberSettings';
7
7
  * You can pass default values to override the internal defaults.
8
8
  */
9
9
  export declare class BorderSettingSet extends SettingGroup<{
10
- color: ColorWithOpacitySetting;
10
+ color: GradientSetting;
11
11
  radius: NumberSetting;
12
12
  size: NumberSetting;
13
13
  }> {
@@ -17,8 +17,10 @@ export declare class BorderSettingSet extends SettingGroup<{
17
17
  size?: number;
18
18
  collapsed?: boolean;
19
19
  });
20
- /**
21
- * Optional helper to generate CSS from the current settings.
22
- */
20
+ getValues(): {
21
+ color: unknown;
22
+ radius: unknown;
23
+ size: unknown;
24
+ };
23
25
  getCssCode(): string;
24
26
  }
@@ -1,6 +1,6 @@
1
1
  import { SettingGroup } from '../base/settings-group/settingsGroup';
2
2
  import { AlignSetting, AlignValue } from '../settings/align-settings/alignSettings';
3
- import { ColorWithOpacitySetting } from '../settings/color-with-opacity-settings/colorWithOpacitySettings';
3
+ import { GradientSetting } from '../settings/gradient-settings/GradientSetting';
4
4
  import { NumberSetting } from '../settings/number-settings/numberSettings';
5
5
  import { SelectOption, SelectSetting } from '../settings/select-settings/selectSettings';
6
6
  export interface HeaderTypographySettings {
@@ -23,7 +23,7 @@ export interface HeaderTypographySettings {
23
23
  fontSizeMobileDefault?: number;
24
24
  }
25
25
  export declare class HeaderTypographySettingSet extends SettingGroup<{
26
- color: ColorWithOpacitySetting;
26
+ color: GradientSetting;
27
27
  fontFamily: SelectSetting<string>;
28
28
  fontWeight: SelectSetting<string>;
29
29
  fontSize: NumberSetting;
@@ -31,4 +31,5 @@ export declare class HeaderTypographySettingSet extends SettingGroup<{
31
31
  }> {
32
32
  constructor(props?: HeaderTypographySettings);
33
33
  getCssCode(): string;
34
+ getTextGradientCss(): string;
34
35
  }
@@ -27,14 +27,8 @@ export declare class SelectSetting<T = SettingsMap> extends Setting<T, SelectSet
27
27
  setValue(newValue: T): void;
28
28
  private createOption;
29
29
  draw(): HTMLElement;
30
- /**
31
- * Check if dropdown should be positioned above the button
32
- */
33
30
  private checkDropdownPosition;
34
31
  private selectOption;
35
- /**
36
- * Clean up dropdown positioning when closed
37
- */
38
32
  private cleanupDropdownPosition;
39
33
  private updateOptionsList;
40
34
  private updateButtonText;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "builder-settings-types",
3
3
  "description": "builder settings",
4
- "version": "0.0.279",
4
+ "version": "0.0.280",
5
5
  "type": "module",
6
6
  "main": "dist/builder-settings-types.cjs.js",
7
7
  "module": "dist/builder-settings-types.es.js",