@nexxtmove/ui 1.46.0 → 1.47.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/EditorShadow/EditorShadow.vue.d.ts +72 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +919 -783
- package/dist/nuxt.js +1 -0
- package/package.json +3 -3
- package/src/components/editor/molecules/EditorAlignItems/EditorAlignItems.vue +1 -1
- package/src/components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue +1 -1
- package/src/components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue +1 -1
- package/src/components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue +1 -1
- package/src/components/editor/molecules/EditorLineStyle/EditorLineStyle.vue +3 -3
- package/src/components/editor/molecules/EditorShadow/EditorShadow.vue +106 -0
- package/src/components/editor/molecules/EditorSize/EditorSize.vue +1 -1
- package/src/components/editor/molecules/EditorTextAlign/EditorTextAlign.vue +1 -1
- package/src/components/molecules/ToggleGroup/ToggleGroup.vue +75 -3
- package/src/components.json +1 -0
- package/src/index.ts +7 -0
- package/tailwind/nexxtmove.tailwind.custom.css +3 -4
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The strengths the editor offers, in the order they are shown. `token` is the
|
|
3
|
+
* class without its fixed `shadow-` prefix, so the class is `shadow-` plus the
|
|
4
|
+
* token. They are three steps of the theme's `--shadow-*` scale -- the ones the
|
|
5
|
+
* sidebar has room for as labelled options. "No shadow" is not a strength: it is
|
|
6
|
+
* the switch being off. The labels are not in here; they arrive through
|
|
7
|
+
* `messages`, keyed by token.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EDITOR_SHADOW_OPTIONS: readonly [{
|
|
10
|
+
readonly token: "sm";
|
|
11
|
+
}, {
|
|
12
|
+
readonly token: "md";
|
|
13
|
+
}, {
|
|
14
|
+
readonly token: "lg";
|
|
15
|
+
}];
|
|
16
|
+
/**
|
|
17
|
+
* The shadow strength as the editor needs it: the Tailwind class itself, so the
|
|
18
|
+
* consumer can put the model value straight on the element it styles.
|
|
19
|
+
*/
|
|
20
|
+
export type EditorShadowValue = `shadow-${(typeof EDITOR_SHADOW_OPTIONS)[number]['token']}`;
|
|
21
|
+
/** Overridable copy of the strength control. Every key is optional. */
|
|
22
|
+
export interface EditorShadowMessages {
|
|
23
|
+
/** Label above the three strengths. Defaults to the Dutch `'Sterkte'`. */
|
|
24
|
+
strength?: string;
|
|
25
|
+
/** Name of the `shadow-sm` option. Defaults to the Dutch `'Licht'`. */
|
|
26
|
+
sm?: string;
|
|
27
|
+
/** Name of the `shadow-md` option. Defaults to the Dutch `'Gemiddeld'`. */
|
|
28
|
+
md?: string;
|
|
29
|
+
/** Name of the `shadow-lg` option. Defaults to the Dutch `'Sterk'`. */
|
|
30
|
+
lg?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface NexxtEditorShadowProps {
|
|
33
|
+
/**
|
|
34
|
+
* Header text of the settings block. Defaults to the Dutch `'Schaduw'`; the
|
|
35
|
+
* library has no i18n layer, so a consumer in another language passes its own
|
|
36
|
+
* copy in.
|
|
37
|
+
*/
|
|
38
|
+
label?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Render a switch next to the label that collapses and expands the strengths.
|
|
41
|
+
* Defaults to `true`: a shadow is the kind of setting that is off as often as
|
|
42
|
+
* it is on, so turning it off is part of the control rather than an extra.
|
|
43
|
+
* The switch state is the `enabled` model; the component only reports it and
|
|
44
|
+
* leaves the strength alone, so how a consumer stores an element without a
|
|
45
|
+
* shadow is up to the consumer.
|
|
46
|
+
*/
|
|
47
|
+
switchable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Copy of the strength control. Merged per key, so overriding one key keeps
|
|
50
|
+
* the defaults of the others. Copy is never translated inside the component.
|
|
51
|
+
*/
|
|
52
|
+
messages?: EditorShadowMessages;
|
|
53
|
+
}
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
56
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorShadowProps & {
|
|
57
|
+
/** The selected strength, as the Tailwind class to apply. */
|
|
58
|
+
modelValue: EditorShadowValue;
|
|
59
|
+
/** Open state of the block. Only has an effect when `switchable` is `true`. */
|
|
60
|
+
enabled?: boolean;
|
|
61
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"update:modelValue": (value: "shadow-sm" | "shadow-md" | "shadow-lg") => any;
|
|
63
|
+
"update:enabled": (value: boolean) => any;
|
|
64
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorShadowProps & {
|
|
65
|
+
/** The selected strength, as the Tailwind class to apply. */
|
|
66
|
+
modelValue: EditorShadowValue;
|
|
67
|
+
/** Open state of the block. Only has an effect when `switchable` is `true`. */
|
|
68
|
+
enabled?: boolean;
|
|
69
|
+
}> & Readonly<{
|
|
70
|
+
"onUpdate:modelValue"?: ((value: "shadow-sm" | "shadow-md" | "shadow-lg") => any) | undefined;
|
|
71
|
+
"onUpdate:enabled"?: ((value: boolean) => any) | undefined;
|
|
72
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export { EDITOR_HEADING_TYPE_OPTIONS } from './components/editor/molecules/Edito
|
|
|
26
26
|
export type { EditorHeadingTypeMessages, EditorHeadingTypeValue, } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
|
|
27
27
|
export { EDITOR_RADIUS_STEPS } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
28
28
|
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
29
|
+
export { EDITOR_SHADOW_OPTIONS } from './components/editor/molecules/EditorShadow/EditorShadow.vue';
|
|
30
|
+
export type { EditorShadowMessages, EditorShadowValue, NexxtEditorShadowProps, } from './components/editor/molecules/EditorShadow/EditorShadow.vue';
|
|
29
31
|
export { EDITOR_TEXT_ALIGN_OPTIONS } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|
|
30
32
|
export type { EditorTextAlignMessages, EditorTextAlignValue, } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|
|
31
33
|
export { EDITOR_JUSTIFY_CONTENT_OPTIONS } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
@@ -89,6 +91,7 @@ export { default as NexxtEditorPadding } from './components/editor/molecules/Edi
|
|
|
89
91
|
export { default as NexxtEditorRadius } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
90
92
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
91
93
|
export { default as NexxtEditorSettingsGroup } from './components/editor/atoms/EditorSettingsGroup/EditorSettingsGroup.vue';
|
|
94
|
+
export { default as NexxtEditorShadow } from './components/editor/molecules/EditorShadow/EditorShadow.vue';
|
|
92
95
|
export { default as NexxtEditorSize } from './components/editor/molecules/EditorSize/EditorSize.vue';
|
|
93
96
|
export { default as NexxtEditorSizeLimit } from './components/editor/molecules/EditorSizeLimit/EditorSizeLimit.vue';
|
|
94
97
|
export { default as NexxtEditorTextAlign } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|