@nexxtmove/ui 1.19.0 → 1.20.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/EditorPadding/EditorPadding.vue.d.ts +47 -0
- package/dist/components/editor/molecules/EditorPadding/_PaddingField.vue.d.ts +18 -0
- package/dist/components/editor/molecules/EditorPadding/_PaddingIcon.vue.d.ts +14 -0
- package/dist/components/organisms/ColorPicker/ColorPicker.vue.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +513 -275
- package/dist/nuxt.js +2 -1
- package/package.json +1 -1
- package/src/components/editor/molecules/EditorPadding/EditorPadding.vue +310 -0
- package/src/components/editor/molecules/EditorPadding/_PaddingField.vue +56 -0
- package/src/components/editor/molecules/EditorPadding/_PaddingIcon.vue +85 -0
- package/src/components.json +2 -1
- package/src/index.ts +2 -0
- package/tailwind/nexxtmove.tailwind.custom.css +5 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Overridable copy of the field and toggle names. Every key is optional. */
|
|
2
|
+
export interface EditorPaddingMessages {
|
|
3
|
+
/** Accessible name of the collapsed left/right field. Defaults to `'Horizontaal'`. */
|
|
4
|
+
horizontal?: string;
|
|
5
|
+
/** Accessible name of the collapsed top/bottom field. Defaults to `'Verticaal'`. */
|
|
6
|
+
vertical?: string;
|
|
7
|
+
/** Accessible name of the top field. Defaults to `'Boven'`. */
|
|
8
|
+
top?: string;
|
|
9
|
+
/** Accessible name of the right field. Defaults to `'Rechts'`. */
|
|
10
|
+
right?: string;
|
|
11
|
+
/** Accessible name of the bottom field. Defaults to `'Onder'`. */
|
|
12
|
+
bottom?: string;
|
|
13
|
+
/** Accessible name of the left field. Defaults to `'Links'`. */
|
|
14
|
+
left?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible name *and* tooltip of the button that shows the four separate
|
|
17
|
+
* fields. Defaults to `'Padding per zijde'`.
|
|
18
|
+
*/
|
|
19
|
+
toggle?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface NexxtEditorPaddingProps {
|
|
22
|
+
/**
|
|
23
|
+
* Header text of the settings block. Defaults to the Dutch `'Padding'`; the
|
|
24
|
+
* library has no i18n layer, so a consumer in another language passes its
|
|
25
|
+
* own copy in.
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Accessible names of the fields and the toggle. Defaults are Dutch and are
|
|
30
|
+
* merged per key, so overriding one keeps the defaults of the others. Copy
|
|
31
|
+
* is never translated inside the component.
|
|
32
|
+
*/
|
|
33
|
+
messages?: EditorPaddingMessages;
|
|
34
|
+
}
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorPaddingProps & {
|
|
38
|
+
/** The padding, as the Tailwind class string to apply. */
|
|
39
|
+
modelValue: string;
|
|
40
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (value: string) => any;
|
|
42
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorPaddingProps & {
|
|
43
|
+
/** The padding, as the Tailwind class string to apply. */
|
|
44
|
+
modelValue: string;
|
|
45
|
+
}> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
47
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaddingIconSide } from './_PaddingIcon.vue';
|
|
2
|
+
export interface NexxtEditorPaddingFieldProps {
|
|
3
|
+
/** Sides the icon marks, which is also what this field edits. */
|
|
4
|
+
sides: PaddingIconSide[];
|
|
5
|
+
/** Accessible name of the input; the settings block label is not a `<label for>`. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Value as shown, already normalised. An empty string falls back to the `0` placeholder. */
|
|
8
|
+
value: string;
|
|
9
|
+
/** Highest value the input accepts. */
|
|
10
|
+
max: number;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorPaddingFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
input: (value: string) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorPaddingFieldProps> & Readonly<{
|
|
15
|
+
onInput?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** The four edges of the box, in CSS order. */
|
|
2
|
+
export type PaddingIconSide = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export interface NexxtEditorPaddingIconProps {
|
|
4
|
+
/**
|
|
5
|
+
* Edges that are lit, so one icon covers every field: `['left', 'right']`
|
|
6
|
+
* reads as horizontal padding, `['top', 'bottom']` as vertical, a single
|
|
7
|
+
* side as that side, and all four as padding in general. The other lines are
|
|
8
|
+
* drawn as well, but transparent.
|
|
9
|
+
*/
|
|
10
|
+
sides: PaddingIconSide[];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorPaddingIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NexxtEditorPaddingIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,9 +20,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
21
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
+
placeholder: string;
|
|
23
24
|
fullWidth: boolean;
|
|
24
25
|
matchWidth: boolean;
|
|
25
|
-
placeholder: string;
|
|
26
26
|
showAlpha: boolean;
|
|
27
27
|
formats: ColorFormat[];
|
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './compone
|
|
|
9
9
|
export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
10
10
|
export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
11
11
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
12
|
+
export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
12
13
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
13
14
|
export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
|
|
14
15
|
export { default as NexxtAnnouncement } from './components/molecules/Announcement/Announcement.vue';
|
|
@@ -31,6 +32,7 @@ export { default as NexxtEditorAlignItems } from './components/editor/molecules/
|
|
|
31
32
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
32
33
|
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
33
34
|
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
35
|
+
export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
34
36
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
35
37
|
export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
36
38
|
export { default as NexxtFloatingPanel } from './components/atoms/FloatingPanel/FloatingPanel.vue';
|