@nexxtmove/ui 1.15.0 → 1.17.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/EditorFlexDirection/EditorFlexDirection.vue.d.ts +39 -0
- package/dist/components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue.d.ts +44 -0
- package/dist/components/molecules/ToggleGroup/ToggleGroup.vue.d.ts +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +523 -424
- package/dist/nuxt.js +3 -1
- package/package.json +1 -1
- package/src/components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue +1 -1
- package/src/components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue +73 -0
- package/src/components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue +95 -0
- package/src/components/molecules/ToggleGroup/ToggleGroup.vue +20 -1
- package/src/components.json +3 -1
- package/src/index.ts +10 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The flex direction 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 EditorFlexDirectionValue = 'flex-row' | 'flex-col';
|
|
6
|
+
/** Overridable copy for the two options. Every key is optional. */
|
|
7
|
+
export interface EditorFlexDirectionMessages {
|
|
8
|
+
/** Label of the `flex-row` option. Defaults to `'Horizontaal'`. */
|
|
9
|
+
horizontal?: string;
|
|
10
|
+
/** Label of the `flex-col` option. Defaults to `'Verticaal'`. */
|
|
11
|
+
vertical?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NexxtEditorFlexDirectionProps {
|
|
14
|
+
/**
|
|
15
|
+
* Header text of the settings block. Defaults to the Dutch `'Richting'`;
|
|
16
|
+
* the library has no i18n layer, so a consumer in another language passes
|
|
17
|
+
* its own copy in.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Labels of the two options. Defaults are Dutch and are merged per key, so
|
|
22
|
+
* overriding one label keeps the default of the other. Copy is never
|
|
23
|
+
* translated inside the component.
|
|
24
|
+
*/
|
|
25
|
+
messages?: EditorFlexDirectionMessages;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorFlexDirectionProps & {
|
|
30
|
+
/** The selected direction, as the Tailwind class to apply. */
|
|
31
|
+
modelValue: EditorFlexDirectionValue;
|
|
32
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (value: EditorFlexDirectionValue) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorFlexDirectionProps & {
|
|
35
|
+
/** The selected direction, as the Tailwind class to apply. */
|
|
36
|
+
modelValue: EditorFlexDirectionValue;
|
|
37
|
+
}> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: EditorFlexDirectionValue) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The justification 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 EditorJustifyContentValue = 'justify-start' | 'justify-center' | 'justify-end' | 'justify-between';
|
|
6
|
+
/** Overridable copy for the four options. Every key is optional. */
|
|
7
|
+
export interface EditorJustifyContentMessages {
|
|
8
|
+
/** Accessible name of the `justify-start` option. Defaults to `'Begin'`. */
|
|
9
|
+
start?: string;
|
|
10
|
+
/** Accessible name of the `justify-center` option. Defaults to `'Midden'`. */
|
|
11
|
+
center?: string;
|
|
12
|
+
/** Accessible name of the `justify-end` option. Defaults to `'Einde'`. */
|
|
13
|
+
end?: string;
|
|
14
|
+
/** Accessible name of the `justify-between` option. Defaults to `'Verdelen'`. */
|
|
15
|
+
between?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NexxtEditorJustifyContentProps {
|
|
18
|
+
/**
|
|
19
|
+
* Header text of the settings block. Defaults to the Dutch `'Uitlijning'`;
|
|
20
|
+
* the library has no i18n layer, so a consumer in another language passes
|
|
21
|
+
* 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?: EditorJustifyContentMessages;
|
|
31
|
+
}
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorJustifyContentProps & {
|
|
35
|
+
/** The selected justification, as the Tailwind class to apply. */
|
|
36
|
+
modelValue: EditorJustifyContentValue;
|
|
37
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
"update:modelValue": (value: EditorJustifyContentValue) => any;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorJustifyContentProps & {
|
|
40
|
+
/** The selected justification, as the Tailwind class to apply. */
|
|
41
|
+
modelValue: EditorJustifyContentValue;
|
|
42
|
+
}> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: EditorJustifyContentValue) => any) | undefined;
|
|
44
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,6 +4,13 @@ export interface NexxtToggleGroupOption {
|
|
|
4
4
|
icon?: IconName;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Accessible name for an icon-only option without a visible label. A button
|
|
9
|
+
* whose only content is an icon has no discernible text, so axe flags it with
|
|
10
|
+
* `button-name`; this is the copy that names it. Takes precedence over the
|
|
11
|
+
* `tooltip` fallback below, and is not needed when `label` is set.
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel?: string;
|
|
7
14
|
activeClass?: string;
|
|
8
15
|
}
|
|
9
16
|
interface NexxtToggleGroupProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ 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 { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
9
|
+
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
8
10
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
9
11
|
export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
|
|
10
12
|
export { default as NexxtAnnouncement } from './components/molecules/Announcement/Announcement.vue';
|
|
@@ -23,6 +25,8 @@ export { default as NexxtCustomerJourneyTile } from './components/molecules/Cust
|
|
|
23
25
|
export { default as NexxtDatePicker } from './components/organisms/DatePicker/DatePicker.vue';
|
|
24
26
|
export { default as NexxtDoughnutChart } from './components/molecules/DoughnutChart/DoughnutChart.vue';
|
|
25
27
|
export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
|
|
28
|
+
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
29
|
+
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
26
30
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
27
31
|
export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
28
32
|
export { default as NexxtFloatingPanel } from './components/atoms/FloatingPanel/FloatingPanel.vue';
|