@nexxtmove/ui 1.22.0 → 1.24.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.
@@ -0,0 +1,80 @@
1
+ /**
2
+ * The CSS property the chosen colour is written to. It is the prefix of the
3
+ * Tailwind class the model carries, so it decides whether the colour becomes a
4
+ * background or a text colour. `border` is deliberately not offered: a border
5
+ * is colour plus width, and that pair gets a component of its own.
6
+ */
7
+ export type EditorColorProperty = 'bg' | 'text';
8
+ /**
9
+ * The colour as the editor needs it: a Tailwind arbitrary-value class such as
10
+ * `'bg-[#1777EA]'`, so the consumer can put the model value straight on the
11
+ * element it styles.
12
+ */
13
+ export type EditorColorValue = `${EditorColorProperty}-[#${string}]`;
14
+ /** Overridable copy of the picker. Every key is optional. */
15
+ export interface EditorColorMessages {
16
+ /** Text shown while no colour is set. Defaults to `'Kies kleur...'`. */
17
+ placeholder?: string;
18
+ }
19
+ export interface NexxtEditorColorProps {
20
+ /**
21
+ * Header text of the settings block. Defaults to the Dutch `'Kleur'`; the
22
+ * library has no i18n layer, so a consumer in another language passes its
23
+ * own copy in.
24
+ */
25
+ label?: string;
26
+ /**
27
+ * Render a switch next to the label that collapses and expands the picker.
28
+ * The switch state is the `enabled` model; the colour itself is kept while
29
+ * the block is collapsed.
30
+ */
31
+ switchable?: boolean;
32
+ /**
33
+ * The prefix of the class that is written: `'bg'` for a background colour,
34
+ * `'text'` for a text colour. Changing it rewrites the current value, so the
35
+ * model never disagrees with this prop.
36
+ */
37
+ property?: EditorColorProperty;
38
+ /**
39
+ * Copy of the picker. Merged per key, so overriding one key keeps the
40
+ * defaults of the others. Copy is never translated inside the component.
41
+ */
42
+ messages?: EditorColorMessages;
43
+ }
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
46
+ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorColorProps & {
47
+ /**
48
+ * The chosen colour, as the Tailwind class to apply.
49
+ *
50
+ * Beware: Tailwind only generates an arbitrary class for text it finds in the
51
+ * source at build time. A value that arrives at runtime -- from a database,
52
+ * say -- therefore gets no CSS of its own; the consumer either translates it
53
+ * into an inline style or safelists the classes it can produce. The hex is
54
+ * always parseable out of the string, which is what makes that translation
55
+ * possible.
56
+ */
57
+ modelValue: EditorColorValue;
58
+ /** Open state of the block. Only has an effect when `switchable` is `true`. */
59
+ enabled?: boolean;
60
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
+ "update:modelValue": (value: `text-[#${string}]` | `bg-[#${string}]`) => any;
62
+ "update:enabled": (value: boolean) => any;
63
+ }, string, import('vue').PublicProps, Readonly<NexxtEditorColorProps & {
64
+ /**
65
+ * The chosen colour, as the Tailwind class to apply.
66
+ *
67
+ * Beware: Tailwind only generates an arbitrary class for text it finds in the
68
+ * source at build time. A value that arrives at runtime -- from a database,
69
+ * say -- therefore gets no CSS of its own; the consumer either translates it
70
+ * into an inline style or safelists the classes it can produce. The hex is
71
+ * always parseable out of the string, which is what makes that translation
72
+ * possible.
73
+ */
74
+ modelValue: EditorColorValue;
75
+ /** Open state of the block. Only has an effect when `switchable` is `true`. */
76
+ enabled?: boolean;
77
+ }> & Readonly<{
78
+ "onUpdate:modelValue"?: ((value: `text-[#${string}]` | `bg-[#${string}]`) => any) | undefined;
79
+ "onUpdate:enabled"?: ((value: boolean) => any) | undefined;
80
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -66,10 +66,10 @@ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorHeadingType
66
66
  /** The selected heading, as the Tailwind font-size class to apply. */
67
67
  modelValue: EditorHeadingTypeValue;
68
68
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
- "update:modelValue": (value: "text-lg" | "text-base" | "text-xl" | "text-2xl" | "text-4xl" | "text-3xl") => any;
69
+ "update:modelValue": (value: "text-4xl" | "text-3xl" | "text-2xl" | "text-xl" | "text-lg" | "text-base") => any;
70
70
  }, string, import('vue').PublicProps, Readonly<NexxtEditorHeadingTypeProps & {
71
71
  /** The selected heading, as the Tailwind font-size class to apply. */
72
72
  modelValue: EditorHeadingTypeValue;
73
73
  }> & Readonly<{
74
- "onUpdate:modelValue"?: ((value: "text-lg" | "text-base" | "text-xl" | "text-2xl" | "text-4xl" | "text-3xl") => any) | undefined;
74
+ "onUpdate:modelValue"?: ((value: "text-4xl" | "text-3xl" | "text-2xl" | "text-xl" | "text-lg" | "text-base") => any) | undefined;
75
75
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * The text alignment 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 EditorTextAlignValue = 'text-left' | 'text-center' | 'text-right' | 'text-justify';
6
+ /** Overridable copy for the four options. Every key is optional. */
7
+ export interface EditorTextAlignMessages {
8
+ /** Accessible name of the `text-left` option. Defaults to `'Links'`. */
9
+ left?: string;
10
+ /** Accessible name of the `text-center` option. Defaults to `'Midden'`. */
11
+ center?: string;
12
+ /** Accessible name of the `text-right` option. Defaults to `'Rechts'`. */
13
+ right?: string;
14
+ /** Accessible name of the `text-justify` option. Defaults to `'Uitvullen'`. */
15
+ justify?: string;
16
+ }
17
+ export interface NexxtEditorTextAlignProps {
18
+ /**
19
+ * Header text of the settings block. Defaults to the Dutch
20
+ * `'Tekst uitlijning'`; the library has no i18n layer, so a consumer in
21
+ * another language passes its own copy in.
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Copy of the four options. The options are icon-only and show no tooltip, so
26
+ * this copy is purely the accessible name of each button. Defaults are Dutch
27
+ * and are merged per key, so overriding one keeps the defaults of the others.
28
+ * Copy is never translated inside the component.
29
+ */
30
+ messages?: EditorTextAlignMessages;
31
+ }
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ declare const __VLS_export: import('vue').DefineComponent<NexxtEditorTextAlignProps & {
35
+ /** The selected text alignment, as the Tailwind class to apply. */
36
+ modelValue: EditorTextAlignValue;
37
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ "update:modelValue": (value: EditorTextAlignValue) => any;
39
+ }, string, import('vue').PublicProps, Readonly<NexxtEditorTextAlignProps & {
40
+ /** The selected text alignment, as the Tailwind class to apply. */
41
+ modelValue: EditorTextAlignValue;
42
+ }> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: EditorTextAlignValue) => any) | undefined;
44
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -20,11 +20,11 @@ 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;
24
- fullWidth: boolean;
25
23
  matchWidth: boolean;
24
+ placeholder: string;
26
25
  showAlpha: boolean;
27
26
  formats: ColorFormat[];
27
+ fullWidth: boolean;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,10 @@ 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 { EditorColorMessages, EditorColorProperty, EditorColorValue, } from './components/editor/molecules/EditorColor/EditorColor.vue';
12
+ export type { EditorHeadingTypeMessages, EditorHeadingTypeValue, } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
11
13
  export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
14
+ export type { EditorTextAlignMessages, EditorTextAlignValue, } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
12
15
  export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
13
16
  export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
14
17
  export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
@@ -30,6 +33,7 @@ export { default as NexxtDatePicker } from './components/organisms/DatePicker/Da
30
33
  export { default as NexxtDoughnutChart } from './components/molecules/DoughnutChart/DoughnutChart.vue';
31
34
  export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
32
35
  export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
36
+ export { default as NexxtEditorColor } from './components/editor/molecules/EditorColor/EditorColor.vue';
33
37
  export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
34
38
  export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
35
39
  export { default as NexxtEditorHeadingType } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
@@ -37,6 +41,7 @@ export { default as NexxtEditorJustifyContent } from './components/editor/molecu
37
41
  export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
38
42
  export { default as NexxtEditorRadius } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
39
43
  export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
44
+ export { default as NexxtEditorTextAlign } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
40
45
  export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
41
46
  export { default as NexxtFloatingPanel } from './components/atoms/FloatingPanel/FloatingPanel.vue';
42
47
  export { default as NexxtHeader } from './components/organisms/Header/Header.vue';