@nexxtmove/ui 1.27.0 → 1.28.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.
@@ -17,6 +17,12 @@ export interface EditorPaddingMessages {
17
17
  * fields. Defaults to `'Padding per zijde'`.
18
18
  */
19
19
  toggle?: string;
20
+ /**
21
+ * Unit the fields show and read, appended to every accessible name. The
22
+ * values themselves are px whatever this says, so it is copy, not a
23
+ * conversion. Defaults to `'px'`.
24
+ */
25
+ unit?: string;
20
26
  }
21
27
  export interface NexxtEditorPaddingProps {
22
28
  /**
@@ -2,17 +2,19 @@ import { PaddingIconSide } from './_PaddingIcon.vue';
2
2
  export interface NexxtEditorPaddingFieldProps {
3
3
  /** Sides the icon marks, which is also what this field edits. */
4
4
  sides: PaddingIconSide[];
5
- /** Accessible name of the input; the settings block label is not a `<label for>`. */
5
+ /** Name of the field; the unit is appended to it for the accessible name. */
6
6
  label: string;
7
- /** Value as shown, already normalised. An empty string falls back to the `0` placeholder. */
7
+ /** Value as shown, in the unit below. An empty string falls back to the `0` placeholder. */
8
8
  value: string;
9
- /** Highest value the input accepts. */
10
- max: number;
9
+ /** Unit of the value, shown behind the input and part of the accessible name. */
10
+ unit: string;
11
11
  }
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
12
14
  declare const __VLS_export: import('vue').DefineComponent<NexxtEditorPaddingFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- input: (value: string) => any;
15
+ step: (direction: 1 | -1) => any;
16
+ commit: (value: number) => any;
14
17
  }, string, import('vue').PublicProps, Readonly<NexxtEditorPaddingFieldProps> & Readonly<{
15
- onInput?: ((value: string) => any) | undefined;
18
+ onStep?: ((direction: 1 | -1) => any) | undefined;
19
+ onCommit?: ((value: number) => any) | undefined;
16
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;