@nexxtmove/ui 1.31.1 → 1.33.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/EditorRadius/EditorRadius.vue.d.ts +2 -2
- package/dist/components/molecules/Tree/Tree.vue.d.ts +17 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1190 -1155
- package/package.json +1 -1
- package/src/components/editor/molecules/EditorRadius/EditorRadius.vue +6 -6
- package/src/components/molecules/Tree/Tree.vue +139 -6
- package/src/index.ts +6 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `full` is last and carries no px: it is a pill, not a size on the scale, so
|
|
11
11
|
* the readout names it instead of measuring it.
|
|
12
12
|
*/
|
|
13
|
-
declare const
|
|
13
|
+
export declare const EDITOR_RADIUS_STEPS: readonly [{
|
|
14
14
|
readonly token: "none";
|
|
15
15
|
readonly px: 0;
|
|
16
16
|
}, {
|
|
@@ -45,7 +45,7 @@ declare const RADIUS_STEPS: readonly [{
|
|
|
45
45
|
* The radius as the editor needs it: the Tailwind class itself, so the consumer
|
|
46
46
|
* can put the model value straight on the element it styles.
|
|
47
47
|
*/
|
|
48
|
-
export type EditorRadiusValue = `rounded-${(typeof
|
|
48
|
+
export type EditorRadiusValue = `rounded-${(typeof EDITOR_RADIUS_STEPS)[number]['token']}`;
|
|
49
49
|
/** Overridable copy of the value readout. Every key is optional. */
|
|
50
50
|
export interface EditorRadiusMessages {
|
|
51
51
|
/** Unit shown behind the value. Defaults to `'px'`. */
|
|
@@ -13,19 +13,35 @@ export interface NexxtTreeProps {
|
|
|
13
13
|
/** Accessible name for the tree, e.g. the heading above it. */
|
|
14
14
|
label: string;
|
|
15
15
|
}
|
|
16
|
+
export type NexxtTreeSlots = {
|
|
17
|
+
/** Actions at the end of a row, e.g. a delete button. Hidden until the row is hovered or holds focus, and always shown on a coarse pointer. Clicks and keys inside it never reach the tree, so they neither select the row nor move focus. Put `tabindex` on every focusable element in it: it is `0` only on the row that is the tree's tab stop, which keeps one extra Tab stop for the whole tree. Keep the content at most 24px high, or the rows grow. */
|
|
18
|
+
'node-actions'?(props: {
|
|
19
|
+
node: NexxtTreeNode;
|
|
20
|
+
tabindex: 0 | -1;
|
|
21
|
+
}): unknown;
|
|
22
|
+
};
|
|
16
23
|
type __VLS_Props = NexxtTreeProps;
|
|
24
|
+
type __VLS_Slots = NexxtTreeSlots;
|
|
17
25
|
type __VLS_ModelProps = {
|
|
18
26
|
'selected'?: string | null;
|
|
19
27
|
/** Ids of the nodes whose children are hidden. Tracking the collapsed ones makes "everything open" the default. */
|
|
20
28
|
'collapsed'?: string[];
|
|
21
29
|
};
|
|
22
30
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
-
declare const
|
|
31
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
32
|
+
focusNode: (id: string) => Promise<boolean>;
|
|
33
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
34
|
"update:selected": (value: string | null) => any;
|
|
25
35
|
"update:collapsed": (value: string[]) => any;
|
|
26
36
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
37
|
"onUpdate:selected"?: ((value: string | null) => any) | undefined;
|
|
28
38
|
"onUpdate:collapsed"?: ((value: string[]) => any) | undefined;
|
|
29
39
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
41
|
declare const _default: typeof __VLS_export;
|
|
31
42
|
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +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
|
+
export type { NexxtTreeNode, NexxtTreeProps, NexxtTreeSlots, } from './components/molecules/Tree/Tree.vue';
|
|
11
11
|
export type { NexxtPlaceholderGroup, NexxtPlaceholderInputMessages, NexxtPlaceholderInputProps, } from './components/molecules/PlaceholderInput/PlaceholderInput.vue';
|
|
12
12
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
13
13
|
export type { EditorBackgroundSizeMessages, EditorBackgroundSizeValue, } from './components/editor/molecules/EditorBackgroundSize/EditorBackgroundSize.vue';
|
|
@@ -16,6 +16,7 @@ export type { EditorGapMessages, EditorGapValue, } from './components/editor/mol
|
|
|
16
16
|
export type { EditorColorMessages, EditorColorProperty, EditorColorValue, } from './components/editor/molecules/EditorColor/EditorColor.vue';
|
|
17
17
|
export type { EditorBorderMessages, EditorBorderWidth, } from './components/editor/molecules/EditorBorder/EditorBorder.vue';
|
|
18
18
|
export type { EditorHeadingTypeMessages, EditorHeadingTypeValue, } from './components/editor/molecules/EditorHeadingType/EditorHeadingType.vue';
|
|
19
|
+
export { EDITOR_RADIUS_STEPS } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
19
20
|
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
20
21
|
export type { EditorTextAlignMessages, EditorTextAlignValue, } from './components/editor/molecules/EditorTextAlign/EditorTextAlign.vue';
|
|
21
22
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|