@nexxtmove/ui 1.24.0 → 1.26.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/EditorBorder/EditorBorder.vue.d.ts +98 -0
- package/dist/components/molecules/PageCard/PageCard.vue.d.ts +42 -0
- package/dist/components/molecules/PageMockup/PageMockup.vue.d.ts +9 -0
- package/dist/components/molecules/PageTypeTile/PageTypeTile.vue.d.ts +17 -0
- package/dist/components/molecules/TemplateCard/TemplateCard.vue.d.ts +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +786 -537
- package/dist/nuxt.js +4 -0
- package/package.json +1 -1
- package/src/assets/svg/page_mockup_about.svg +27 -0
- package/src/assets/svg/page_mockup_introduction.svg +9 -0
- package/src/assets/svg/page_mockup_other.svg +13 -0
- package/src/assets/svg/page_mockup_packages.svg +34 -0
- package/src/assets/svg/page_mockup_references.svg +19 -0
- package/src/assets/svg/page_mockup_reviews.svg +46 -0
- package/src/assets/svg/page_mockup_services.svg +22 -0
- package/src/assets/svg/page_mockup_valuation.svg +24 -0
- package/src/components/editor/molecules/EditorBorder/EditorBorder.vue +215 -0
- package/src/components/molecules/PageCard/PageCard.vue +92 -0
- package/src/components/molecules/PageMockup/PageMockup.vue +52 -0
- package/src/components/molecules/PageTypeTile/PageTypeTile.vue +34 -0
- package/src/components.json +4 -0
- package/src/index.ts +13 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The widths the slider can land on: the Tailwind class and the pixels it
|
|
3
|
+
* renders. These are Tailwind's own defaults (`border` is 1px, then 2, 4 and 8)
|
|
4
|
+
* rather than theme tokens -- the theme defines no border-width scale, so
|
|
5
|
+
* stepping over arbitrary integers would produce classes with no CSS behind
|
|
6
|
+
* them.
|
|
7
|
+
*/
|
|
8
|
+
declare const BORDER_STEPS: readonly [{
|
|
9
|
+
readonly class: "border";
|
|
10
|
+
readonly px: 1;
|
|
11
|
+
}, {
|
|
12
|
+
readonly class: "border-2";
|
|
13
|
+
readonly px: 2;
|
|
14
|
+
}, {
|
|
15
|
+
readonly class: "border-4";
|
|
16
|
+
readonly px: 4;
|
|
17
|
+
}, {
|
|
18
|
+
readonly class: "border-8";
|
|
19
|
+
readonly px: 8;
|
|
20
|
+
}];
|
|
21
|
+
/** The width part of the model value, as the Tailwind class itself. */
|
|
22
|
+
export type EditorBorderWidth = (typeof BORDER_STEPS)[number]['class'];
|
|
23
|
+
/** Overridable copy of the readout and the picker. Every key is optional. */
|
|
24
|
+
export interface EditorBorderMessages {
|
|
25
|
+
/** Unit shown behind the width. Defaults to `'px'`. */
|
|
26
|
+
unit?: string;
|
|
27
|
+
/** Text shown while no colour is set. Defaults to `'Kies kleur...'`. */
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/** Accessible name of the width slider. Defaults to `'Dikte'`. */
|
|
30
|
+
width?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface NexxtEditorBorderProps {
|
|
33
|
+
/**
|
|
34
|
+
* Header text of the settings block. Defaults to the Dutch `'Rand'`; 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 controls.
|
|
41
|
+
* Defaults to `true`: a border 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 width and the colour are kept
|
|
44
|
+
* while the block is collapsed.
|
|
45
|
+
*/
|
|
46
|
+
switchable?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Copy of the readout and the picker. Merged per key, so overriding one key
|
|
49
|
+
* keeps the defaults of the others. Copy is never translated inside the
|
|
50
|
+
* component.
|
|
51
|
+
*/
|
|
52
|
+
messages?: EditorBorderMessages;
|
|
53
|
+
}
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
56
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorBorderProps & {
|
|
57
|
+
/**
|
|
58
|
+
* The border as the editor needs it: one class string that carries both halves
|
|
59
|
+
* of the setting -- a width class, a space, and a `border-[#hex]` colour class,
|
|
60
|
+
* as in `'border-2 border-[#1777EA]'`. Either half may be missing on read and
|
|
61
|
+
* the two may arrive in any order; a change always writes the width first.
|
|
62
|
+
* Tokens this component does not own are dropped by that rewrite.
|
|
63
|
+
*
|
|
64
|
+
* Beware: Tailwind only generates an arbitrary class for text it finds in the
|
|
65
|
+
* source at build time. A value that arrives at runtime -- from a database,
|
|
66
|
+
* say -- therefore gets no CSS of its own; the consumer either translates it
|
|
67
|
+
* into an inline style or safelists the classes it can produce. The hex is
|
|
68
|
+
* always parseable out of the string, which is what makes that translation
|
|
69
|
+
* possible.
|
|
70
|
+
*/
|
|
71
|
+
modelValue: string;
|
|
72
|
+
/** Open state of the block. Only has an effect when `switchable` is `true`. */
|
|
73
|
+
enabled?: boolean;
|
|
74
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
75
|
+
"update:modelValue": (value: string) => any;
|
|
76
|
+
"update:enabled": (value: boolean) => any;
|
|
77
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorBorderProps & {
|
|
78
|
+
/**
|
|
79
|
+
* The border as the editor needs it: one class string that carries both halves
|
|
80
|
+
* of the setting -- a width class, a space, and a `border-[#hex]` colour class,
|
|
81
|
+
* as in `'border-2 border-[#1777EA]'`. Either half may be missing on read and
|
|
82
|
+
* the two may arrive in any order; a change always writes the width first.
|
|
83
|
+
* Tokens this component does not own are dropped by that rewrite.
|
|
84
|
+
*
|
|
85
|
+
* Beware: Tailwind only generates an arbitrary class for text it finds in the
|
|
86
|
+
* source at build time. A value that arrives at runtime -- from a database,
|
|
87
|
+
* say -- therefore gets no CSS of its own; the consumer either translates it
|
|
88
|
+
* into an inline style or safelists the classes it can produce. The hex is
|
|
89
|
+
* always parseable out of the string, which is what makes that translation
|
|
90
|
+
* possible.
|
|
91
|
+
*/
|
|
92
|
+
modelValue: string;
|
|
93
|
+
/** Open state of the block. Only has an effect when `switchable` is `true`. */
|
|
94
|
+
enabled?: boolean;
|
|
95
|
+
}> & Readonly<{
|
|
96
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
97
|
+
"onUpdate:enabled"?: ((value: boolean) => any) | undefined;
|
|
98
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NexxtIconName } from '../../atoms/Icon/Icon.vue';
|
|
2
|
+
import { NexxtPageMockupType } from '../PageMockup/PageMockup.vue';
|
|
3
|
+
export interface NexxtPageCardProps {
|
|
4
|
+
/** Page name, shown in the footer. Truncated on one line. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Icon for the page type, shown before the title. */
|
|
7
|
+
icon?: NexxtIconName;
|
|
8
|
+
/** Draws the sketch for this page type in the preview area. The `preview` slot wins when both are given. */
|
|
9
|
+
mockup?: NexxtPageMockupType;
|
|
10
|
+
/** Lays a full-card button over the content that emits `select`. Off keeps the card inert. */
|
|
11
|
+
selectable?: boolean;
|
|
12
|
+
/** Whether this card is the current one: draws the blue border. Only does something with `selectable`. */
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
/** The card is being dragged: dims it and draws the blue border, so the list shows where it came from. */
|
|
15
|
+
dragging?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type NexxtPageCardSlots = {
|
|
18
|
+
/** The preview area above the footer, for a mockup or thumbnail of the page. Empty shows a plain surface. */
|
|
19
|
+
preview?(): unknown;
|
|
20
|
+
/** Right side of the footer, for a menu. Kept above the select button so a press there never selects. */
|
|
21
|
+
actions?(): unknown;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = NexxtPageCardSlots;
|
|
24
|
+
declare const __VLS_base: import('vue').DefineComponent<NexxtPageCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
select: () => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<NexxtPageCardProps> & Readonly<{
|
|
27
|
+
onSelect?: (() => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
selected: boolean;
|
|
30
|
+
icon: NexxtIconName;
|
|
31
|
+
mockup: NexxtPageMockupType;
|
|
32
|
+
selectable: boolean;
|
|
33
|
+
dragging: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface NexxtPageMockupProps {
|
|
2
|
+
/** Which kind of proposal page to sketch. */
|
|
3
|
+
type: NexxtPageMockupType;
|
|
4
|
+
}
|
|
5
|
+
export declare const PAGE_MOCKUP_TYPES: readonly ["introduction", "about", "valuation", "services", "packages", "references", "reviews", "other"];
|
|
6
|
+
export type NexxtPageMockupType = (typeof PAGE_MOCKUP_TYPES)[number];
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtPageMockupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NexxtPageMockupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NexxtIconName } from '../../atoms/Icon/Icon.vue';
|
|
2
|
+
export interface NexxtPageTypeTileProps {
|
|
3
|
+
/** What the tile stands for, e.g. a page type. Shown under the icon. */
|
|
4
|
+
label: string;
|
|
5
|
+
icon: NexxtIconName;
|
|
6
|
+
/** The tile is being dragged: draws the blue border. The consumer makes it draggable. */
|
|
7
|
+
dragging?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtPageTypeTileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
select: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<NexxtPageTypeTileProps> & Readonly<{
|
|
12
|
+
onSelect?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
dragging: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -38,10 +38,10 @@ declare const __VLS_base: import('vue').DefineComponent<NexxtTemplateCardProps,
|
|
|
38
38
|
image: string;
|
|
39
39
|
messages: Partial<Record<NexxtTemplateCardContentFeature, string>>;
|
|
40
40
|
selected: boolean;
|
|
41
|
+
selectable: boolean;
|
|
41
42
|
disabled: boolean;
|
|
42
43
|
subtitle: string;
|
|
43
44
|
contentFeatures: NexxtTemplateCardContentFeature[];
|
|
44
|
-
selectable: boolean;
|
|
45
45
|
checkmark: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,13 @@ export type { EnergyLabelLetter } from './components/atoms/EnergyLabel/EnergyLab
|
|
|
5
5
|
export type { IconType, NexxtIconName } from './components/atoms/Icon/Icon.vue';
|
|
6
6
|
export type { CustomIconName } from './components/atoms/Icon/customIcons';
|
|
7
7
|
export type { NexxtTabItem } from './components/molecules/Tabs/Tabs.vue';
|
|
8
|
+
export type { NexxtPageCardProps, NexxtPageCardSlots, } from './components/molecules/PageCard/PageCard.vue';
|
|
9
|
+
export type { NexxtPageMockupType } from './components/molecules/PageMockup/PageMockup.vue';
|
|
8
10
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
9
11
|
export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
10
12
|
export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
11
13
|
export type { EditorColorMessages, EditorColorProperty, EditorColorValue, } from './components/editor/molecules/EditorColor/EditorColor.vue';
|
|
14
|
+
export type { EditorBorderMessages, EditorBorderWidth, } from './components/editor/molecules/EditorBorder/EditorBorder.vue';
|
|
12
15
|
export type { EditorHeadingTypeMessages, EditorHeadingTypeValue, } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
|
|
13
16
|
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
14
17
|
export type { EditorTextAlignMessages, EditorTextAlignValue, } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|
|
@@ -33,6 +36,7 @@ export { default as NexxtDatePicker } from './components/organisms/DatePicker/Da
|
|
|
33
36
|
export { default as NexxtDoughnutChart } from './components/molecules/DoughnutChart/DoughnutChart.vue';
|
|
34
37
|
export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
|
|
35
38
|
export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
39
|
+
export { default as NexxtEditorBorder } from './components/editor/molecules/EditorBorder/EditorBorder.vue';
|
|
36
40
|
export { default as NexxtEditorColor } from './components/editor/molecules/EditorColor/EditorColor.vue';
|
|
37
41
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
38
42
|
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
@@ -52,7 +56,10 @@ export { default as NexxtInputSelect } from './components/molecules/InputSelect/
|
|
|
52
56
|
export { default as NexxtLoader } from './components/atoms/Loader/Loader.vue';
|
|
53
57
|
export { default as NexxtModal } from './components/organisms/Modal/Modal.vue';
|
|
54
58
|
export { default as NexxtModalFooter } from './components/molecules/ModalFooter/ModalFooter.vue';
|
|
59
|
+
export { default as NexxtPageCard } from './components/molecules/PageCard/PageCard.vue';
|
|
55
60
|
export { default as NexxtPageContainer } from './components/molecules/PageContainer/PageContainer.vue';
|
|
61
|
+
export { default as NexxtPageMockup } from './components/molecules/PageMockup/PageMockup.vue';
|
|
62
|
+
export { default as NexxtPageTypeTile } from './components/molecules/PageTypeTile/PageTypeTile.vue';
|
|
56
63
|
export { default as NexxtPagination } from './components/molecules/Pagination/Pagination.vue';
|
|
57
64
|
export { default as NexxtPresenceIndicator } from './components/atoms/PresenceIndicator/PresenceIndicator.vue';
|
|
58
65
|
export { default as NexxtProgressBar } from './components/organisms/ProgressBar/ProgressBar.vue';
|