@nexxtmove/ui 0.1.30 → 0.1.32

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.
Files changed (56) hide show
  1. package/dist/index.d.ts +113 -17
  2. package/dist/index.js +146 -111
  3. package/dist/nuxt.js +26 -25
  4. package/package.json +1 -1
  5. package/src/components/Avatar/Avatar.vue +49 -0
  6. package/src/components/Calendar/_CalendarDayView.vue +1 -1
  7. package/src/components/Chip/Chip.vue +9 -4
  8. package/src/components/Table/Table.vue +2 -2
  9. package/src/components.json +1 -0
  10. package/src/index.ts +1 -0
  11. package/src/components/AnimatedNumber/AnimatedNumber.stories.ts +0 -15
  12. package/src/components/AnimatedNumber/AnimatedNumber.test.ts +0 -56
  13. package/src/components/Button/Button.stories.ts +0 -212
  14. package/src/components/Button/Button.test.ts +0 -318
  15. package/src/components/Calendar/Calendar.stories.ts +0 -91
  16. package/src/components/Calendar/Calendar.test.ts +0 -279
  17. package/src/components/Calendar/_CalendarDayView.test.ts +0 -104
  18. package/src/components/Calendar/_CalendarHeader.test.ts +0 -86
  19. package/src/components/Calendar/_CalendarMonthView.test.ts +0 -52
  20. package/src/components/Calendar/_CalendarYearView.test.ts +0 -56
  21. package/src/components/Checkbox/Checkbox.stories.ts +0 -35
  22. package/src/components/Checkbox/Checkbox.test.ts +0 -55
  23. package/src/components/Chip/Chip.stories.ts +0 -42
  24. package/src/components/Chip/Chip.test.ts +0 -51
  25. package/src/components/CustomerJourneyTile/CustomerJourneyTile.stories.ts +0 -86
  26. package/src/components/CustomerJourneyTile/CustomerJourneyTile.test.ts +0 -178
  27. package/src/components/DatePicker/DatePicker.stories.ts +0 -149
  28. package/src/components/DatePicker/DatePicker.test.ts +0 -191
  29. package/src/components/DropdownButton/DropdownButton.stories.ts +0 -68
  30. package/src/components/DropdownButton/DropdownButton.test.ts +0 -124
  31. package/src/components/Header/Header.stories.ts +0 -54
  32. package/src/components/Header/Header.test.ts +0 -183
  33. package/src/components/Icon/Icon.stories.ts +0 -50
  34. package/src/components/Icon/Icon.test.ts +0 -73
  35. package/src/components/InfoBlock/InfoBlock.stories.ts +0 -90
  36. package/src/components/InfoBlock/InfoBlock.test.ts +0 -101
  37. package/src/components/ProgressBar/ProgressBar.stories.ts +0 -30
  38. package/src/components/ProgressBar/ProgressBar.test.ts +0 -314
  39. package/src/components/SocialIcons/SocialIcons.stories.ts +0 -34
  40. package/src/components/SocialIcons/SocialIcons.test.ts +0 -58
  41. package/src/components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.stories.ts +0 -11
  42. package/src/components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.test.ts +0 -131
  43. package/src/components/SocialMediaTemplate/SocialMediaTemplate.stories.ts +0 -71
  44. package/src/components/SocialMediaTemplate/SocialMediaTemplate.test.ts +0 -466
  45. package/src/components/SocialMediaType/SocialMediaType.stories.ts +0 -43
  46. package/src/components/SocialMediaType/SocialMediaType.test.ts +0 -126
  47. package/src/components/StepperHeader/StepperHeader.stories.ts +0 -47
  48. package/src/components/StepperHeader/StepperHeader.test.ts +0 -244
  49. package/src/components/Table/Table.stories.ts +0 -283
  50. package/src/components/Table/Table.test.ts +0 -220
  51. package/src/components/TimelineEvent/TimelineEvent.stories.ts +0 -291
  52. package/src/components/TimelineEvent/TimelineEvent.test.ts +0 -166
  53. package/src/components/TimelinePhaseblock/TimelinePhaseblock.stories.ts +0 -198
  54. package/src/components/TimelinePhaseblock/TimelinePhaseblock.test.ts +0 -283
  55. package/src/components/Tooltip/Tooltip.stories.ts +0 -146
  56. package/src/components/Tooltip/Tooltip.test.ts +0 -122
package/dist/index.d.ts CHANGED
@@ -1,19 +1,25 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
1
3
  import { ComponentOptionsMixin } from 'vue';
2
4
  import { ComponentProvideOptions } from 'vue';
5
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
3
6
  import { DefineComponent } from 'vue';
7
+ import { GlobalComponents } from 'vue';
8
+ import { GlobalDirectives } from 'vue';
4
9
  import { IconName } from '@awesome.me/kit-37b149f3ef/icons';
5
10
  import { Locale } from 'date-fns';
6
- import { default as NexxtCalendar } from './components/Calendar/Calendar.vue';
7
- import { default as NexxtTable } from './components/Table/Table.vue';
8
11
  import { PublicProps } from 'vue';
12
+ import { ShallowUnwrapRef } from 'vue';
13
+ import { VNode } from 'vue';
14
+ import { VNodeProps } from 'vue';
9
15
 
10
16
  declare const __VLS_component: DefineComponent<NexxtButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
11
17
 
12
18
  declare const __VLS_component_2: DefineComponent<NexxtChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtChipProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
13
19
 
14
- declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
21
  "update:modelValue": (value: Date | null) => any;
16
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
22
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
17
23
  "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
18
24
  }>, {
19
25
  anchor: CalendarAnchor;
@@ -37,22 +43,28 @@ declare const __VLS_component_6: DefineComponent<NexxtStepperHeaderProps, {}, {}
37
43
 
38
44
  declare const __VLS_component_7: DefineComponent<NexxtTooltip_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtTooltip_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
39
45
 
46
+ declare type __VLS_PrettifyLocal<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
49
+
40
50
  declare type __VLS_Props = {
41
51
  value: number;
42
52
  duration?: number;
43
53
  easing?: EasingFunction;
44
54
  };
45
55
 
46
- declare type __VLS_Props_2 = NexxtCheckboxProps;
56
+ declare type __VLS_Props_2 = NexxtCalendarProps;
57
+
58
+ declare type __VLS_Props_3 = NexxtCheckboxProps;
47
59
 
48
- declare type __VLS_Props_3 = NexxtDatePickerProps;
60
+ declare type __VLS_Props_4 = NexxtDatePickerProps;
49
61
 
50
- declare type __VLS_Props_4 = {
62
+ declare type __VLS_Props_5 = {
51
63
  event: TimelineEvent;
52
64
  splitView?: boolean;
53
65
  };
54
66
 
55
- declare type __VLS_Props_5 = {
67
+ declare type __VLS_Props_6 = {
56
68
  phase: TimelinePhase;
57
69
  /** Index within the filtered phases array (used to determine phase direction/date). */
58
70
  index: number;
@@ -63,13 +75,17 @@ declare type __VLS_Props_5 = {
63
75
  };
64
76
 
65
77
  declare type __VLS_PublicProps = {
66
- modelValue?: boolean;
78
+ modelValue?: Date | null;
67
79
  } & __VLS_Props_2;
68
80
 
69
81
  declare type __VLS_PublicProps_2 = {
70
- modelValue?: Date | null;
82
+ modelValue?: boolean;
71
83
  } & __VLS_Props_3;
72
84
 
85
+ declare type __VLS_PublicProps_3 = {
86
+ modelValue?: Date | null;
87
+ } & __VLS_Props_4;
88
+
73
89
  declare function __VLS_template(): {
74
90
  attrs: Partial<{}>;
75
91
  slots: {
@@ -200,12 +216,31 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
200
216
 
201
217
  declare type CalendarAnchor = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
202
218
 
219
+ declare interface CalendarDayViewProps {
220
+ viewDate: Date;
221
+ calendarDays: Date[];
222
+ modelValue: Date | null;
223
+ markedDates: Date[];
224
+ locale: Locale;
225
+ isDisabled: (day: Date) => boolean;
226
+ timezone: string;
227
+ }
228
+
203
229
  declare type EasingFunction = 'ease-linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
204
230
 
205
231
  declare type IconType = 'regular' | 'solid' | 'light' | 'duotone' | 'brands';
206
232
 
207
233
  export declare const NexxtAnimatedNumber: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
208
234
 
235
+ export declare const NexxtAvatar: DefineComponent<NexxtAvatarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtAvatarProps> & Readonly<{}>, {
236
+ size: "xs" | "sm" | "md" | "lg" | "xl";
237
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
238
+
239
+ declare interface NexxtAvatarProps {
240
+ name: string;
241
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
242
+ }
243
+
209
244
  export declare const NexxtButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
210
245
 
211
246
  declare interface NexxtButtonProps {
@@ -217,7 +252,35 @@ declare interface NexxtButtonProps {
217
252
  buttonType?: 'button' | 'submit' | 'reset';
218
253
  }
219
254
 
220
- export { NexxtCalendar }
255
+ export declare const NexxtCalendar: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
256
+ "update:modelValue": (value: Date | null) => any;
257
+ } & {
258
+ select: (day: Date) => any;
259
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
260
+ onSelect?: ((day: Date) => any) | undefined;
261
+ "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
262
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
263
+ dayViewRef: CreateComponentPublicInstanceWithMixins<Readonly<CalendarDayViewProps> & Readonly<{
264
+ onSelect?: ((day: Date) => any) | undefined;
265
+ }>, {
266
+ focus: (date: Date) => void;
267
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
268
+ select: (day: Date) => any;
269
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
270
+ dayButtonsRef: HTMLButtonElement;
271
+ }, HTMLDivElement, ComponentProvideOptions, {
272
+ P: {};
273
+ B: {};
274
+ D: {};
275
+ C: {};
276
+ M: {};
277
+ Defaults: {};
278
+ }, Readonly<CalendarDayViewProps> & Readonly<{
279
+ onSelect?: ((day: Date) => any) | undefined;
280
+ }>, {
281
+ focus: (date: Date) => void;
282
+ }, {}, {}, {}, {}> | null;
283
+ }, HTMLDivElement>;
221
284
 
222
285
  declare interface NexxtCalendarProps {
223
286
  locale?: Locale;
@@ -229,9 +292,9 @@ declare interface NexxtCalendarProps {
229
292
  timezone?: string;
230
293
  }
231
294
 
232
- export declare const NexxtCheckbox: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
295
+ export declare const NexxtCheckbox: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
233
296
  "update:modelValue": (value: boolean) => any;
234
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
297
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
235
298
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
236
299
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
237
300
  inputRef: HTMLInputElement;
@@ -245,7 +308,7 @@ declare interface NexxtCheckboxProps {
245
308
  export declare const NexxtChip: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
246
309
 
247
310
  declare interface NexxtChipProps {
248
- variant?: 'default' | 'warning' | 'success' | 'danger';
311
+ variant?: 'default' | 'warning' | 'success' | 'danger' | 'ghost';
249
312
  }
250
313
 
251
314
  export declare const NexxtCustomerJourneyTile: DefineComponent<NexxtCustomerJourneyTileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtCustomerJourneyTileProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
@@ -379,13 +442,39 @@ declare interface NexxtStepperHeaderProps {
379
442
  backButtonAction: InstanceType<typeof NexxtHeader>['backButtonAction'];
380
443
  }
381
444
 
382
- export { NexxtTable }
445
+ export declare const NexxtTable: <TKey extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
446
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
447
+ readonly onSort?: ((key: string, direction: "desc" | "asc") => any) | undefined;
448
+ readonly "onUpdate:modelValue"?: ((selected: number[]) => any) | undefined;
449
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onSort"> & NexxtTableProps<TKey> & Partial<{}>> & PublicProps;
450
+ expose(exposed: ShallowUnwrapRef< {}>): void;
451
+ attrs: any;
452
+ slots: Partial<Record<`cell-${TKey}`, (_: {
453
+ row: Record<TKey, unknown>;
454
+ value: Record<TKey, unknown>[TKey];
455
+ }) => any>> & {
456
+ toolbar?(_: {}): any;
457
+ empty?(_: {}): any;
458
+ };
459
+ emit: ((evt: "sort", key: string, direction: "desc" | "asc") => void) & ((evt: "update:modelValue", selected: number[]) => void);
460
+ }>) => VNode & {
461
+ __ctx?: Awaited<typeof __VLS_setup>;
462
+ };
463
+
464
+ declare interface NexxtTableProps<TKey extends string = string> {
465
+ columns: TableColumn<TKey>[];
466
+ rows: Record<TKey, unknown>[];
467
+ sortKey?: TKey;
468
+ sortDirection?: 'asc' | 'desc';
469
+ selectable?: boolean;
470
+ modelValue?: number[];
471
+ }
383
472
 
384
- export declare const NexxtTimelineEvent: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
473
+ export declare const NexxtTimelineEvent: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
385
474
  splitView: boolean;
386
475
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
387
476
 
388
- export declare const NexxtTimelinePhaseblock: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
477
+ export declare const NexxtTimelinePhaseblock: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
389
478
 
390
479
  export declare const NexxtTooltip: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
391
480
 
@@ -399,6 +488,13 @@ declare interface NexxtTooltip_2 {
399
488
 
400
489
  declare type SocialPlatform = 'tiktok' | 'facebook' | 'instagram' | 'linkedin' | 'x' | 'twitter' | 'google';
401
490
 
491
+ declare interface TableColumn<K extends string = string> {
492
+ key: K;
493
+ label: string;
494
+ sortable?: boolean;
495
+ width?: string;
496
+ }
497
+
402
498
  declare interface TimelineEvent {
403
499
  id: number;
404
500
  type: string;