@nexxtmove/ui 2.5.0 → 2.6.0

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,3 +1,4 @@
1
+ import { EditorColorThemeRole } from '../EditorColor/colorClass';
1
2
  /**
2
3
  * The widths the slider can land on: the Tailwind class and the pixels it
3
4
  * renders. These are Tailwind's own defaults (`border` is 1px, then 2, 4 and 8)
@@ -33,6 +34,8 @@ export interface EditorBorderMessages {
33
34
  placeholder?: string;
34
35
  /** Accessible name of the width slider. Defaults to `'Dikte'`. */
35
36
  width?: string;
37
+ /** Label shown above the theme roles. Defaults to `'Huisstijl'`. */
38
+ themeLabel?: string;
36
39
  }
37
40
  export interface NexxtEditorBorderProps {
38
41
  /**
@@ -55,6 +58,15 @@ export interface NexxtEditorBorderProps {
55
58
  * component.
56
59
  */
57
60
  messages?: EditorBorderMessages;
61
+ /**
62
+ * Theme roles offered as swatches in the colour panel, the same ones
63
+ * NexxtEditorColor takes. A role is a shortcut to its hex, not a binding: a
64
+ * pick writes `border-[#hex]` exactly as a picked colour does, and a swatch
65
+ * shows as selected while the border's hex equals the role's, whatever the
66
+ * case. An entry with an unreadable hex is left out. Defaults to `[]`, which
67
+ * renders no theme section.
68
+ */
69
+ themeRoles?: EditorColorThemeRole[];
58
70
  }
59
71
  declare const _default: typeof __VLS_export;
60
72
  export default _default;
@@ -0,0 +1,16 @@
1
+ import { EditorColorThemeRole } from './colorClass';
2
+ type __VLS_Props = {
3
+ /** The roles to show, already stripped of entries with an unreadable hex. */
4
+ roles: EditorColorThemeRole[];
5
+ /** Section title above the swatches. */
6
+ label: string;
7
+ /** Whether the swatch of a role shows as selected. */
8
+ isPressed: (entry: EditorColorThemeRole) => boolean;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ pick: (entry: EditorColorThemeRole) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onPick?: ((entry: EditorColorThemeRole) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;