@nexxtmove/ui 1.34.0 → 1.35.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.
- package/dist/components/editor/molecules/EditorColor/EditorColor.vue.d.ts +4 -1
- package/dist/components/organisms/ColorPicker/ColorPicker.vue.d.ts +7 -0
- package/dist/index.js +696 -646
- package/package.json +1 -1
- package/src/components/editor/molecules/EditorColor/EditorColor.vue +8 -1
- package/src/components/organisms/ColorPicker/ColorPicker.vue +86 -10
|
@@ -11,10 +11,11 @@ export type EditorColorProperty = 'bg' | 'text';
|
|
|
11
11
|
* element it styles.
|
|
12
12
|
*/
|
|
13
13
|
export type EditorColorValue = `${EditorColorProperty}-[#${string}]`;
|
|
14
|
-
/** Overridable copy of the picker. Every key is optional. */
|
|
15
14
|
export interface EditorColorMessages {
|
|
16
15
|
/** Text shown while no colour is set. Defaults to `'Kies kleur...'`. */
|
|
17
16
|
placeholder?: string;
|
|
17
|
+
/** Label shown above reusable colours. */
|
|
18
|
+
suggestionsLabel?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface NexxtEditorColorProps {
|
|
20
21
|
/**
|
|
@@ -40,6 +41,8 @@ export interface NexxtEditorColorProps {
|
|
|
40
41
|
* defaults of the others. Copy is never translated inside the component.
|
|
41
42
|
*/
|
|
42
43
|
messages?: EditorColorMessages;
|
|
44
|
+
/** Hex colours available inside the picker panel as one-click suggestions. */
|
|
45
|
+
suggestions?: string[];
|
|
43
46
|
}
|
|
44
47
|
declare const _default: typeof __VLS_export;
|
|
45
48
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ColorFormat = 'hex' | 'hsl' | 'rgb';
|
|
2
|
+
export type ColorSuggestions = Partial<Record<ColorFormat, string[]>>;
|
|
2
3
|
export interface NexxtColorPickerProps {
|
|
3
4
|
label?: string;
|
|
4
5
|
placeholder?: string;
|
|
@@ -9,6 +10,10 @@ export interface NexxtColorPickerProps {
|
|
|
9
10
|
formats?: ColorFormat[];
|
|
10
11
|
fullWidth?: boolean;
|
|
11
12
|
matchWidth?: boolean;
|
|
13
|
+
/** Existing colours grouped by format; only suggestions for the active format are shown. */
|
|
14
|
+
suggestions?: ColorSuggestions;
|
|
15
|
+
/** Accessible and visible label for the suggestions. */
|
|
16
|
+
suggestionsLabel?: string;
|
|
12
17
|
}
|
|
13
18
|
type __VLS_Props = NexxtColorPickerProps;
|
|
14
19
|
type __VLS_ModelProps = {
|
|
@@ -25,6 +30,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
25
30
|
placeholder: string;
|
|
26
31
|
showAlpha: boolean;
|
|
27
32
|
formats: ColorFormat[];
|
|
33
|
+
suggestions: ColorSuggestions;
|
|
34
|
+
suggestionsLabel: string;
|
|
28
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
36
|
declare const _default: typeof __VLS_export;
|
|
30
37
|
export default _default;
|