@nexxtmove/ui 1.19.0 → 1.21.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/editor/molecules/EditorRadius/EditorRadius.vue.d.ts +84 -0
- package/dist/components/organisms/ColorPicker/ColorPicker.vue.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +598 -275
- package/dist/nuxt.js +3 -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/editor/molecules/EditorRadius/EditorRadius.vue +137 -0
- package/src/components.json +3 -1
- package/src/index.ts +7 -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>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steps the slider can land on: the radius scale the library actually has,
|
|
3
|
+
* which is the Figma theme tokens plus the Tailwind defaults that sit on top of
|
|
4
|
+
* them -- the theme adds no `--radius-*: initial`, so `rounded-2xl` through
|
|
5
|
+
* `rounded-4xl` and `rounded-full` resolve to Tailwind's own values. The px
|
|
6
|
+
* numbers mirror those values (rem × 16). Known limitation: the theme file is
|
|
7
|
+
* overwritten wholesale by the Figma token sync, and a sync that changes a
|
|
8
|
+
* radius does not reach this list -- it has to be updated by hand.
|
|
9
|
+
*
|
|
10
|
+
* `full` is last and carries no px: it is a pill, not a size on the scale, so
|
|
11
|
+
* the readout names it instead of measuring it.
|
|
12
|
+
*/
|
|
13
|
+
declare const RADIUS_STEPS: readonly [{
|
|
14
|
+
readonly token: "none";
|
|
15
|
+
readonly px: 0;
|
|
16
|
+
}, {
|
|
17
|
+
readonly token: "xs";
|
|
18
|
+
readonly px: 2;
|
|
19
|
+
}, {
|
|
20
|
+
readonly token: "sm";
|
|
21
|
+
readonly px: 4;
|
|
22
|
+
}, {
|
|
23
|
+
readonly token: "md";
|
|
24
|
+
readonly px: 6;
|
|
25
|
+
}, {
|
|
26
|
+
readonly token: "lg";
|
|
27
|
+
readonly px: 8;
|
|
28
|
+
}, {
|
|
29
|
+
readonly token: "xl";
|
|
30
|
+
readonly px: 12;
|
|
31
|
+
}, {
|
|
32
|
+
readonly token: "2xl";
|
|
33
|
+
readonly px: 16;
|
|
34
|
+
}, {
|
|
35
|
+
readonly token: "3xl";
|
|
36
|
+
readonly px: 24;
|
|
37
|
+
}, {
|
|
38
|
+
readonly token: "4xl";
|
|
39
|
+
readonly px: 32;
|
|
40
|
+
}, {
|
|
41
|
+
readonly token: "full";
|
|
42
|
+
readonly px: null;
|
|
43
|
+
}];
|
|
44
|
+
/**
|
|
45
|
+
* The radius as the editor needs it: the Tailwind class itself, so the consumer
|
|
46
|
+
* can put the model value straight on the element it styles.
|
|
47
|
+
*/
|
|
48
|
+
export type EditorRadiusValue = `rounded-${(typeof RADIUS_STEPS)[number]['token']}`;
|
|
49
|
+
/** Overridable copy of the value readout. Every key is optional. */
|
|
50
|
+
export interface EditorRadiusMessages {
|
|
51
|
+
/** Unit shown behind the value. Defaults to `'px'`. */
|
|
52
|
+
unit?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Readout of the last step, `rounded-full`, which has no px size. Defaults to
|
|
55
|
+
* the Dutch `'Rond'`.
|
|
56
|
+
*/
|
|
57
|
+
full?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface NexxtEditorRadiusProps {
|
|
60
|
+
/**
|
|
61
|
+
* Header text of the settings block. Defaults to the Dutch
|
|
62
|
+
* `'Hoekafronding'`; the library has no i18n layer, so a consumer in another
|
|
63
|
+
* language passes its own copy in.
|
|
64
|
+
*/
|
|
65
|
+
label?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Copy of the value readout. Merged per key, so overriding one key keeps the
|
|
68
|
+
* defaults of the others. Copy is never translated inside the component.
|
|
69
|
+
*/
|
|
70
|
+
messages?: EditorRadiusMessages;
|
|
71
|
+
}
|
|
72
|
+
declare const _default: typeof __VLS_export;
|
|
73
|
+
export default _default;
|
|
74
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorRadiusProps & {
|
|
75
|
+
/** The selected radius, as the Tailwind class to apply. */
|
|
76
|
+
modelValue: EditorRadiusValue;
|
|
77
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
78
|
+
"update:modelValue": (value: "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xs" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-4xl" | "rounded-full") => any;
|
|
79
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorRadiusProps & {
|
|
80
|
+
/** The selected radius, as the Tailwind class to apply. */
|
|
81
|
+
modelValue: EditorRadiusValue;
|
|
82
|
+
}> & Readonly<{
|
|
83
|
+
"onUpdate:modelValue"?: ((value: "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xs" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-4xl" | "rounded-full") => any) | undefined;
|
|
84
|
+
}>, {}, {}, {}, {}, 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
|
@@ -8,7 +8,9 @@ export type { NexxtTabItem } from './components/molecules/Tabs/Tabs.vue';
|
|
|
8
8
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
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
|
+
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
11
12
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
13
|
+
export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
12
14
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
13
15
|
export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
|
|
14
16
|
export { default as NexxtAnnouncement } from './components/molecules/Announcement/Announcement.vue';
|
|
@@ -31,6 +33,8 @@ export { default as NexxtEditorAlignItems } from './components/editor/molecules/
|
|
|
31
33
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
32
34
|
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
33
35
|
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
36
|
+
export { default as NexxtEditorRadius } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
37
|
+
export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
34
38
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
35
39
|
export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
36
40
|
export { default as NexxtFloatingPanel } from './components/atoms/FloatingPanel/FloatingPanel.vue';
|