@nexxtmove/ui 1.18.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/atoms/Slider/Slider.vue.d.ts +11 -0
- package/dist/components/editor/molecules/EditorGap/EditorGap.vue.d.ts +43 -0
- 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 +4 -0
- package/dist/index.js +664 -365
- package/dist/nuxt.js +3 -1
- package/package.json +1 -1
- package/src/components/atoms/Slider/Slider.vue +22 -1
- package/src/components/editor/molecules/EditorGap/EditorGap.vue +115 -0
- 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 +3 -1
- package/src/index.ts +7 -0
- package/tailwind/nexxtmove.tailwind.custom.css +5 -0
|
@@ -3,6 +3,17 @@ type SliderSize = 'sm' | 'md' | 'lg';
|
|
|
3
3
|
type SliderVariant = 'filled' | 'plain';
|
|
4
4
|
interface NexxtSliderProps {
|
|
5
5
|
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Accessible name of the thumb for a slider without a visible `label`. When both are given the
|
|
8
|
+
* visible `label` wins, so the name matches what a sighted user reads.
|
|
9
|
+
*/
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Human-readable version of the value, announced instead of the raw number — `'16 px'` for a
|
|
13
|
+
* slider whose model is an index into a scale. Ignored on a range: one string cannot describe two
|
|
14
|
+
* thumbs, and repeating it on both would announce the wrong value on one of them.
|
|
15
|
+
*/
|
|
16
|
+
ariaValuetext?: string;
|
|
6
17
|
min?: number;
|
|
7
18
|
max?: number;
|
|
8
19
|
step?: number;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steps the slider can land on, as the numeric part of the Tailwind class.
|
|
3
|
+
* 13 and 15 are missing on purpose: the theme defines `--spacing-0` through
|
|
4
|
+
* `--spacing-12` and then only 14 and 16, so stepping over the px value instead
|
|
5
|
+
* of over this list would offer gaps that have no token behind them.
|
|
6
|
+
*/
|
|
7
|
+
declare const GAP_STEPS: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16];
|
|
8
|
+
/**
|
|
9
|
+
* The gap as the editor needs it: the Tailwind class itself, so the consumer
|
|
10
|
+
* can put the model value straight on the element it styles.
|
|
11
|
+
*/
|
|
12
|
+
export type EditorGapValue = `gap-${(typeof GAP_STEPS)[number]}`;
|
|
13
|
+
/** Overridable copy of the value readout. Every key is optional. */
|
|
14
|
+
export interface EditorGapMessages {
|
|
15
|
+
/** Unit shown behind the value. Defaults to `'px'`. */
|
|
16
|
+
unit?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface NexxtEditorGapProps {
|
|
19
|
+
/**
|
|
20
|
+
* Header text of the settings block. Defaults to the Dutch
|
|
21
|
+
* `'Tussenruimte'`; the library has no i18n layer, so a consumer in another
|
|
22
|
+
* language passes its own copy in.
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Copy of the value readout. Merged per key, so overriding one key keeps the
|
|
27
|
+
* defaults of the others. Copy is never translated inside the component.
|
|
28
|
+
*/
|
|
29
|
+
messages?: EditorGapMessages;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorGapProps & {
|
|
34
|
+
/** The selected gap, as the Tailwind class to apply. */
|
|
35
|
+
modelValue: EditorGapValue;
|
|
36
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (value: "gap-0" | "gap-1" | "gap-2" | "gap-3" | "gap-4" | "gap-5" | "gap-6" | "gap-7" | "gap-8" | "gap-9" | "gap-10" | "gap-11" | "gap-12" | "gap-14" | "gap-16") => any;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorGapProps & {
|
|
39
|
+
/** The selected gap, as the Tailwind class to apply. */
|
|
40
|
+
modelValue: EditorGapValue;
|
|
41
|
+
}> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((value: "gap-0" | "gap-1" | "gap-2" | "gap-3" | "gap-4" | "gap-5" | "gap-6" | "gap-7" | "gap-8" | "gap-9" | "gap-10" | "gap-11" | "gap-12" | "gap-14" | "gap-16") => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -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
|
@@ -7,7 +7,9 @@ export type { CustomIconName } from './components/atoms/Icon/customIcons';
|
|
|
7
7
|
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
|
+
export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
10
11
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
12
|
+
export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
11
13
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
12
14
|
export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
|
|
13
15
|
export { default as NexxtAnnouncement } from './components/molecules/Announcement/Announcement.vue';
|
|
@@ -28,7 +30,9 @@ export { default as NexxtDoughnutChart } from './components/molecules/DoughnutCh
|
|
|
28
30
|
export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
|
|
29
31
|
export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
30
32
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
33
|
+
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
31
34
|
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
35
|
+
export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
32
36
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
33
37
|
export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
34
38
|
export { default as NexxtFloatingPanel } from './components/atoms/FloatingPanel/FloatingPanel.vue';
|