@nexxtmove/ui 1.26.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;
@@ -0,0 +1,31 @@
1
+ import { NexxtIconName } from '../../atoms/Icon/Icon.vue';
2
+ export interface NexxtTreeNode {
3
+ /** Unique within the tree; this is what `selected` and `collapsed` hold. */
4
+ id: string;
5
+ label: string;
6
+ icon?: NexxtIconName;
7
+ /** A node with children gets a chevron and can be folded. */
8
+ children?: NexxtTreeNode[];
9
+ }
10
+ export interface NexxtTreeProps {
11
+ /** The top-level nodes; nest `children` for deeper levels. */
12
+ nodes: NexxtTreeNode[];
13
+ /** Accessible name for the tree, e.g. the heading above it. */
14
+ label: string;
15
+ }
16
+ type __VLS_Props = NexxtTreeProps;
17
+ type __VLS_ModelProps = {
18
+ 'selected'?: string | null;
19
+ /** Ids of the nodes whose children are hidden. Tracking the collapsed ones makes "everything open" the default. */
20
+ 'collapsed'?: string[];
21
+ };
22
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
23
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ "update:selected": (value: string | null) => any;
25
+ "update:collapsed": (value: string[]) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:selected"?: ((value: string | null) => any) | undefined;
28
+ "onUpdate:collapsed"?: ((value: string[]) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
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 { NexxtPageCardProps, NexxtPageCardSlots, } from './components/molecules/PageCard/PageCard.vue';
9
9
  export type { NexxtPageMockupType } from './components/molecules/PageMockup/PageMockup.vue';
10
+ export type { NexxtTreeNode, NexxtTreeProps } from './components/molecules/Tree/Tree.vue';
10
11
  export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
11
12
  export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
12
13
  export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
@@ -93,4 +94,5 @@ export { default as NexxtToast } from './components/molecules/Toast/Toast.vue';
93
94
  export { default as NexxtToaster } from './components/organisms/Toaster/Toaster.vue';
94
95
  export { default as NexxtToggleGroup } from './components/molecules/ToggleGroup/ToggleGroup.vue';
95
96
  export { default as NexxtTooltip } from './components/atoms/Tooltip/Tooltip.vue';
97
+ export { default as NexxtTree } from './components/molecules/Tree/Tree.vue';
96
98
  export { default as NexxtVideoPlayer } from './components/organisms/VideoPlayer/VideoPlayer.vue';