@nexxtmove/ui 1.18.0 → 1.19.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.
@@ -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>;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ 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';
11
12
  export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
12
13
  export { default as NexxtAnimatedNumber } from './components/atoms/AnimatedNumber/AnimatedNumber.vue';
@@ -28,6 +29,7 @@ export { default as NexxtDoughnutChart } from './components/molecules/DoughnutCh
28
29
  export { default as NexxtDropdownButton } from './components/organisms/DropdownButton/DropdownButton.vue';
29
30
  export { default as NexxtEditorAlignItems } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
30
31
  export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
32
+ export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
31
33
  export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
32
34
  export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
33
35
  export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';