@nexxtmove/ui 1.28.0 → 1.30.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/EditorBackgroundSize/EditorBackgroundSize.vue.d.ts +42 -0
- package/dist/components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue.d.ts +99 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1194 -1050
- package/dist/nuxt.js +2 -0
- package/package.json +1 -1
- package/src/components/atoms/Switch/Switch.vue +6 -1
- package/src/components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue +83 -0
- package/src/components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue +146 -0
- package/src/components.json +2 -0
- package/src/index.ts +11 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The background size as the editor needs it: the Tailwind class itself, so the
|
|
3
|
+
* consumer can put the model value straight on the element it styles.
|
|
4
|
+
*/
|
|
5
|
+
export type EditorBackgroundSizeValue = 'bg-cover' | 'bg-contain' | 'bg-auto';
|
|
6
|
+
/** Overridable copy for the three options. Every key is optional. */
|
|
7
|
+
export interface EditorBackgroundSizeMessages {
|
|
8
|
+
/** Accessible name of the `bg-cover` option. Defaults to `'Opvullen'`. */
|
|
9
|
+
cover?: string;
|
|
10
|
+
/** Accessible name of the `bg-contain` option. Defaults to `'Passend'`. */
|
|
11
|
+
contain?: string;
|
|
12
|
+
/** Accessible name of the `bg-auto` option. Defaults to `'Origineel'`. */
|
|
13
|
+
auto?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface NexxtEditorBackgroundSizeProps {
|
|
16
|
+
/**
|
|
17
|
+
* Header text of the settings block. Defaults to the Dutch `'Vulling'`;
|
|
18
|
+
* the library has no i18n layer, so a consumer in another language passes
|
|
19
|
+
* its own copy in.
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Copy of the three options. The options are icon-only and show no tooltip,
|
|
24
|
+
* so this copy is purely the accessible name of each button. Defaults are
|
|
25
|
+
* Dutch and are merged per key, so overriding one keeps the defaults of the
|
|
26
|
+
* others. Copy is never translated inside the component.
|
|
27
|
+
*/
|
|
28
|
+
messages?: EditorBackgroundSizeMessages;
|
|
29
|
+
}
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorBackgroundSizeProps & {
|
|
33
|
+
/** The selected background size, as the Tailwind class to apply. */
|
|
34
|
+
modelValue: EditorBackgroundSizeValue;
|
|
35
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (value: EditorBackgroundSizeValue) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorBackgroundSizeProps & {
|
|
38
|
+
/** The selected background size, as the Tailwind class to apply. */
|
|
39
|
+
modelValue: EditorBackgroundSizeValue;
|
|
40
|
+
}> & Readonly<{
|
|
41
|
+
"onUpdate:modelValue"?: ((value: EditorBackgroundSizeValue) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steps the slider can land on: the `max-w-*` sizes, with the px numbers
|
|
3
|
+
* mirroring their values (rem × 16). These are Tailwind's own container sizes,
|
|
4
|
+
* not Figma tokens -- `tailwind/` defines no `--container-*`, so the token sync
|
|
5
|
+
* cannot move them. The desync to watch for is a Tailwind major that renames or
|
|
6
|
+
* renumbers the scale: nothing here fails when that happens, the numbers just
|
|
7
|
+
* stop matching the CSS, so this list has to be checked by hand on an upgrade.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EDITOR_MAX_WIDTH_STEPS: readonly [{
|
|
10
|
+
readonly token: "xs";
|
|
11
|
+
readonly px: 320;
|
|
12
|
+
}, {
|
|
13
|
+
readonly token: "sm";
|
|
14
|
+
readonly px: 384;
|
|
15
|
+
}, {
|
|
16
|
+
readonly token: "md";
|
|
17
|
+
readonly px: 448;
|
|
18
|
+
}, {
|
|
19
|
+
readonly token: "lg";
|
|
20
|
+
readonly px: 512;
|
|
21
|
+
}, {
|
|
22
|
+
readonly token: "xl";
|
|
23
|
+
readonly px: 576;
|
|
24
|
+
}, {
|
|
25
|
+
readonly token: "2xl";
|
|
26
|
+
readonly px: 672;
|
|
27
|
+
}, {
|
|
28
|
+
readonly token: "3xl";
|
|
29
|
+
readonly px: 768;
|
|
30
|
+
}, {
|
|
31
|
+
readonly token: "4xl";
|
|
32
|
+
readonly px: 896;
|
|
33
|
+
}, {
|
|
34
|
+
readonly token: "5xl";
|
|
35
|
+
readonly px: 1024;
|
|
36
|
+
}, {
|
|
37
|
+
readonly token: "6xl";
|
|
38
|
+
readonly px: 1152;
|
|
39
|
+
}, {
|
|
40
|
+
readonly token: "7xl";
|
|
41
|
+
readonly px: 1280;
|
|
42
|
+
}];
|
|
43
|
+
/**
|
|
44
|
+
* The maximum width as the editor needs it: the Tailwind class itself, so the
|
|
45
|
+
* consumer can put the model value straight on the element it styles.
|
|
46
|
+
*/
|
|
47
|
+
export type EditorMaxWidthValue = `max-w-${(typeof EDITOR_MAX_WIDTH_STEPS)[number]['token']}`;
|
|
48
|
+
/** Overridable copy of the value readout. Every key is optional. */
|
|
49
|
+
export interface EditorMaxWidthMessages {
|
|
50
|
+
/**
|
|
51
|
+
* Unit shown behind the value. Defaults to `'px'`. Keep it to a short symbol
|
|
52
|
+
* such as `'px'` or `'pt'`: the readout is only as wide as `1280 px` needs,
|
|
53
|
+
* and a spelled-out unit grows it and pushes the slider in.
|
|
54
|
+
*/
|
|
55
|
+
unit?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface NexxtEditorMaxWidthProps {
|
|
58
|
+
/**
|
|
59
|
+
* Header text of the settings block. Defaults to the Dutch
|
|
60
|
+
* `'Vaste breedte'` -- switched off the page runs full width, so the setting
|
|
61
|
+
* is the fixed width, not a maximum. The library has no i18n layer, so a
|
|
62
|
+
* consumer in another language passes its own copy in.
|
|
63
|
+
*/
|
|
64
|
+
label?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Copy of the value readout. Merged per key, so overriding one key keeps the
|
|
67
|
+
* defaults of the others. Copy is never translated inside the component.
|
|
68
|
+
*/
|
|
69
|
+
messages?: EditorMaxWidthMessages;
|
|
70
|
+
}
|
|
71
|
+
declare const _default: typeof __VLS_export;
|
|
72
|
+
export default _default;
|
|
73
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorMaxWidthProps & {
|
|
74
|
+
/** The selected maximum width, as the Tailwind class to apply. */
|
|
75
|
+
modelValue: EditorMaxWidthValue;
|
|
76
|
+
/**
|
|
77
|
+
* Open state of the block. Switched off means the page runs full width, which
|
|
78
|
+
* is the absence of a class rather than a value of its own: the consumer simply
|
|
79
|
+
* writes no `max-w-*` then. The chosen width is kept while the block is
|
|
80
|
+
* collapsed, so switching back on restores it.
|
|
81
|
+
*/
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
84
|
+
"update:modelValue": (value: "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xs" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl") => any;
|
|
85
|
+
"update:enabled": (value: boolean) => any;
|
|
86
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorMaxWidthProps & {
|
|
87
|
+
/** The selected maximum width, as the Tailwind class to apply. */
|
|
88
|
+
modelValue: EditorMaxWidthValue;
|
|
89
|
+
/**
|
|
90
|
+
* Open state of the block. Switched off means the page runs full width, which
|
|
91
|
+
* is the absence of a class rather than a value of its own: the consumer simply
|
|
92
|
+
* writes no `max-w-*` then. The chosen width is kept while the block is
|
|
93
|
+
* collapsed, so switching back on restores it.
|
|
94
|
+
*/
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
}> & Readonly<{
|
|
97
|
+
"onUpdate:modelValue"?: ((value: "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xs" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl") => any) | undefined;
|
|
98
|
+
"onUpdate:enabled"?: ((value: boolean) => any) | undefined;
|
|
99
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type { NexxtPageCardProps, NexxtPageCardSlots, } from './components/molec
|
|
|
9
9
|
export type { NexxtPageMockupType } from './components/molecules/PageMockup/PageMockup.vue';
|
|
10
10
|
export type { NexxtTreeNode, NexxtTreeProps } from './components/molecules/Tree/Tree.vue';
|
|
11
11
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
12
|
+
export type { EditorBackgroundSizeMessages, EditorBackgroundSizeValue, } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
|
|
12
13
|
export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
13
14
|
export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
14
15
|
export type { EditorColorMessages, EditorColorProperty, EditorColorValue, } from './components/editor/molecules/EditorColor/EditorColor.vue';
|
|
@@ -17,6 +18,8 @@ export type { EditorHeadingTypeMessages, EditorHeadingTypeValue, } from './compo
|
|
|
17
18
|
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
18
19
|
export type { EditorTextAlignMessages, EditorTextAlignValue, } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|
|
19
20
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
21
|
+
export { EDITOR_MAX_WIDTH_STEPS } from './components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue';
|
|
22
|
+
export type { EditorMaxWidthMessages, EditorMaxWidthValue, } from './components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue';
|
|
20
23
|
export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
21
24
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
22
25
|
export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
|
|
@@ -37,12 +40,14 @@ export { default as NexxtDatePicker } from './components/organisms/DatePicker/Da
|
|
|
37
40
|
export { default as NexxtDoughnutChart } from './components/molecules/DoughnutChart/DoughnutChart.vue';
|
|
38
41
|
export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
|
|
39
42
|
export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
43
|
+
export { default as NexxtEditorBackgroundSize } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
|
|
40
44
|
export { default as NexxtEditorBorder } from './components/editor/molecules/EditorBorder/EditorBorder.vue';
|
|
41
45
|
export { default as NexxtEditorColor } from './components/editor/molecules/EditorColor/EditorColor.vue';
|
|
42
46
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
43
47
|
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
44
48
|
export { default as NexxtEditorHeadingType } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
|
|
45
49
|
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
50
|
+
export { default as NexxtEditorMaxWidth } from './components/editor/molecules/EditorMaxWidth/EditorMaxWidth.vue';
|
|
46
51
|
export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
47
52
|
export { default as NexxtEditorRadius } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
48
53
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|