@nexxtmove/ui 2.0.0 → 2.1.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 +10 -0
- package/dist/components/organisms/ColorPicker/ColorPicker.vue.d.ts +5 -0
- package/dist/index.js +559 -543
- package/package.json +1 -1
- package/src/components/editor/molecules/EditorColor/EditorColor.vue +35 -6
- package/src/components/organisms/ColorPicker/ColorPicker.vue +20 -2
|
@@ -74,6 +74,16 @@ export interface NexxtEditorColorProps {
|
|
|
74
74
|
* 8-digit hex is left out. Without roles the section is not rendered.
|
|
75
75
|
*/
|
|
76
76
|
themeRoles?: EditorColorThemeRole[];
|
|
77
|
+
/**
|
|
78
|
+
* Offer an opacity slider in the picker. A colour picked below full opacity is
|
|
79
|
+
* written as an 8-digit hex (`bg-[#1777ea80]`); a fully opaque one keeps the
|
|
80
|
+
* 6-digit form. The slider is hidden while a theme role is selected: a role
|
|
81
|
+
* class carries no opacity. Off by default, in which case a stored 8-digit hex
|
|
82
|
+
* is shown opaque and only replaced once a new colour is picked. Turning it off
|
|
83
|
+
* while a translucent colour is set does write at once: the picker drops the
|
|
84
|
+
* alpha and the model gets the opaque 6-digit hex.
|
|
85
|
+
*/
|
|
86
|
+
showAlpha?: boolean;
|
|
77
87
|
}
|
|
78
88
|
declare const _default: typeof __VLS_export;
|
|
79
89
|
export default _default;
|
|
@@ -6,6 +6,11 @@ export interface NexxtColorPickerProps {
|
|
|
6
6
|
error?: boolean;
|
|
7
7
|
errorMessage?: string;
|
|
8
8
|
required?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Offer an opacity slider and accept colours below full opacity. Turning it
|
|
11
|
+
* off while the colour is translucent writes the opaque colour to the model
|
|
12
|
+
* at once.
|
|
13
|
+
*/
|
|
9
14
|
showAlpha?: boolean;
|
|
10
15
|
formats?: ColorFormat[];
|
|
11
16
|
fullWidth?: boolean;
|