@nexxtmove/ui 1.25.0 → 1.27.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.
@@ -0,0 +1,42 @@
1
+ import { NexxtIconName } from '../../atoms/Icon/Icon.vue';
2
+ import { NexxtPageMockupType } from '../PageMockup/PageMockup.vue';
3
+ export interface NexxtPageCardProps {
4
+ /** Page name, shown in the footer. Truncated on one line. */
5
+ title: string;
6
+ /** Icon for the page type, shown before the title. */
7
+ icon?: NexxtIconName;
8
+ /** Draws the sketch for this page type in the preview area. The `preview` slot wins when both are given. */
9
+ mockup?: NexxtPageMockupType;
10
+ /** Lays a full-card button over the content that emits `select`. Off keeps the card inert. */
11
+ selectable?: boolean;
12
+ /** Whether this card is the current one: draws the blue border. Only does something with `selectable`. */
13
+ selected?: boolean;
14
+ /** The card is being dragged: dims it and draws the blue border, so the list shows where it came from. */
15
+ dragging?: boolean;
16
+ }
17
+ export type NexxtPageCardSlots = {
18
+ /** The preview area above the footer, for a mockup or thumbnail of the page. Empty shows a plain surface. */
19
+ preview?(): unknown;
20
+ /** Right side of the footer, for a menu. Kept above the select button so a press there never selects. */
21
+ actions?(): unknown;
22
+ };
23
+ type __VLS_Slots = NexxtPageCardSlots;
24
+ declare const __VLS_base: import('vue').DefineComponent<NexxtPageCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ select: () => any;
26
+ }, string, import('vue').PublicProps, Readonly<NexxtPageCardProps> & Readonly<{
27
+ onSelect?: (() => any) | undefined;
28
+ }>, {
29
+ selected: boolean;
30
+ icon: NexxtIconName;
31
+ mockup: NexxtPageMockupType;
32
+ selectable: boolean;
33
+ dragging: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,9 @@
1
+ export interface NexxtPageMockupProps {
2
+ /** Which kind of proposal page to sketch. */
3
+ type: NexxtPageMockupType;
4
+ }
5
+ export declare const PAGE_MOCKUP_TYPES: readonly ["introduction", "about", "valuation", "services", "packages", "references", "reviews", "other"];
6
+ export type NexxtPageMockupType = (typeof PAGE_MOCKUP_TYPES)[number];
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ declare const __VLS_export: import('vue').DefineComponent<NexxtPageMockupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NexxtPageMockupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,17 @@
1
+ import { NexxtIconName } from '../../atoms/Icon/Icon.vue';
2
+ export interface NexxtPageTypeTileProps {
3
+ /** What the tile stands for, e.g. a page type. Shown under the icon. */
4
+ label: string;
5
+ icon: NexxtIconName;
6
+ /** The tile is being dragged: draws the blue border. The consumer makes it draggable. */
7
+ dragging?: boolean;
8
+ }
9
+ declare const __VLS_export: import('vue').DefineComponent<NexxtPageTypeTileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ select: () => any;
11
+ }, string, import('vue').PublicProps, Readonly<NexxtPageTypeTileProps> & Readonly<{
12
+ onSelect?: (() => any) | undefined;
13
+ }>, {
14
+ dragging: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -38,10 +38,10 @@ declare const __VLS_base: import('vue').DefineComponent<NexxtTemplateCardProps,
38
38
  image: string;
39
39
  messages: Partial<Record<NexxtTemplateCardContentFeature, string>>;
40
40
  selected: boolean;
41
+ selectable: boolean;
41
42
  disabled: boolean;
42
43
  subtitle: string;
43
44
  contentFeatures: NexxtTemplateCardContentFeature[];
44
- selectable: boolean;
45
45
  checkmark: boolean;
46
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
47
47
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -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
@@ -5,6 +5,9 @@ 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 { NexxtPageCardProps, NexxtPageCardSlots, } from './components/molecules/PageCard/PageCard.vue';
9
+ export type { NexxtPageMockupType } from './components/molecules/PageMockup/PageMockup.vue';
10
+ export type { NexxtTreeNode, NexxtTreeProps } from './components/molecules/Tree/Tree.vue';
8
11
  export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
9
12
  export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
10
13
  export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
@@ -54,7 +57,10 @@ export { default as NexxtInputSelect } from './components/molecules/InputSelect/
54
57
  export { default as NexxtLoader } from './components/atoms/Loader/Loader.vue';
55
58
  export { default as NexxtModal } from './components/organisms/Modal/Modal.vue';
56
59
  export { default as NexxtModalFooter } from './components/molecules/ModalFooter/ModalFooter.vue';
60
+ export { default as NexxtPageCard } from './components/molecules/PageCard/PageCard.vue';
57
61
  export { default as NexxtPageContainer } from './components/molecules/PageContainer/PageContainer.vue';
62
+ export { default as NexxtPageMockup } from './components/molecules/PageMockup/PageMockup.vue';
63
+ export { default as NexxtPageTypeTile } from './components/molecules/PageTypeTile/PageTypeTile.vue';
58
64
  export { default as NexxtPagination } from './components/molecules/Pagination/Pagination.vue';
59
65
  export { default as NexxtPresenceIndicator } from './components/atoms/PresenceIndicator/PresenceIndicator.vue';
60
66
  export { default as NexxtProgressBar } from './components/organisms/ProgressBar/ProgressBar.vue';
@@ -88,4 +94,5 @@ export { default as NexxtToast } from './components/molecules/Toast/Toast.vue';
88
94
  export { default as NexxtToaster } from './components/organisms/Toaster/Toaster.vue';
89
95
  export { default as NexxtToggleGroup } from './components/molecules/ToggleGroup/ToggleGroup.vue';
90
96
  export { default as NexxtTooltip } from './components/atoms/Tooltip/Tooltip.vue';
97
+ export { default as NexxtTree } from './components/molecules/Tree/Tree.vue';
91
98
  export { default as NexxtVideoPlayer } from './components/organisms/VideoPlayer/VideoPlayer.vue';