@nexxtmove/ui 0.1.31 → 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 (54) hide show
  1. package/dist/index.d.ts +104 -17
  2. package/dist/index.js +132 -128
  3. package/package.json +1 -1
  4. package/src/components/Calendar/_CalendarDayView.vue +1 -1
  5. package/src/components/Chip/Chip.vue +9 -4
  6. package/src/components/Table/Table.vue +2 -2
  7. package/src/components/AnimatedNumber/AnimatedNumber.stories.ts +0 -15
  8. package/src/components/AnimatedNumber/AnimatedNumber.test.ts +0 -56
  9. package/src/components/Avatar/Avatar.stories.ts +0 -28
  10. package/src/components/Avatar/Avatar.test.ts +0 -55
  11. package/src/components/Button/Button.stories.ts +0 -212
  12. package/src/components/Button/Button.test.ts +0 -318
  13. package/src/components/Calendar/Calendar.stories.ts +0 -91
  14. package/src/components/Calendar/Calendar.test.ts +0 -279
  15. package/src/components/Calendar/_CalendarDayView.test.ts +0 -104
  16. package/src/components/Calendar/_CalendarHeader.test.ts +0 -86
  17. package/src/components/Calendar/_CalendarMonthView.test.ts +0 -52
  18. package/src/components/Calendar/_CalendarYearView.test.ts +0 -56
  19. package/src/components/Checkbox/Checkbox.stories.ts +0 -35
  20. package/src/components/Checkbox/Checkbox.test.ts +0 -55
  21. package/src/components/Chip/Chip.stories.ts +0 -42
  22. package/src/components/Chip/Chip.test.ts +0 -51
  23. package/src/components/CustomerJourneyTile/CustomerJourneyTile.stories.ts +0 -86
  24. package/src/components/CustomerJourneyTile/CustomerJourneyTile.test.ts +0 -178
  25. package/src/components/DatePicker/DatePicker.stories.ts +0 -149
  26. package/src/components/DatePicker/DatePicker.test.ts +0 -191
  27. package/src/components/DropdownButton/DropdownButton.stories.ts +0 -68
  28. package/src/components/DropdownButton/DropdownButton.test.ts +0 -124
  29. package/src/components/Header/Header.stories.ts +0 -54
  30. package/src/components/Header/Header.test.ts +0 -183
  31. package/src/components/Icon/Icon.stories.ts +0 -50
  32. package/src/components/Icon/Icon.test.ts +0 -73
  33. package/src/components/InfoBlock/InfoBlock.stories.ts +0 -90
  34. package/src/components/InfoBlock/InfoBlock.test.ts +0 -101
  35. package/src/components/ProgressBar/ProgressBar.stories.ts +0 -30
  36. package/src/components/ProgressBar/ProgressBar.test.ts +0 -314
  37. package/src/components/SocialIcons/SocialIcons.stories.ts +0 -34
  38. package/src/components/SocialIcons/SocialIcons.test.ts +0 -58
  39. package/src/components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.stories.ts +0 -11
  40. package/src/components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.test.ts +0 -131
  41. package/src/components/SocialMediaTemplate/SocialMediaTemplate.stories.ts +0 -71
  42. package/src/components/SocialMediaTemplate/SocialMediaTemplate.test.ts +0 -466
  43. package/src/components/SocialMediaType/SocialMediaType.stories.ts +0 -43
  44. package/src/components/SocialMediaType/SocialMediaType.test.ts +0 -126
  45. package/src/components/StepperHeader/StepperHeader.stories.ts +0 -47
  46. package/src/components/StepperHeader/StepperHeader.test.ts +0 -244
  47. package/src/components/Table/Table.stories.ts +0 -283
  48. package/src/components/Table/Table.test.ts +0 -220
  49. package/src/components/TimelineEvent/TimelineEvent.stories.ts +0 -291
  50. package/src/components/TimelineEvent/TimelineEvent.test.ts +0 -166
  51. package/src/components/TimelinePhaseblock/TimelinePhaseblock.stories.ts +0 -198
  52. package/src/components/TimelinePhaseblock/TimelinePhaseblock.test.ts +0 -283
  53. package/src/components/Tooltip/Tooltip.stories.ts +0 -146
  54. 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;
47
57
 
48
- declare type __VLS_Props_3 = NexxtDatePickerProps;
58
+ declare type __VLS_Props_3 = NexxtCheckboxProps;
49
59
 
50
- declare type __VLS_Props_4 = {
60
+ declare type __VLS_Props_4 = NexxtDatePickerProps;
61
+
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,6 +216,16 @@ 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';
@@ -226,7 +252,35 @@ declare interface NexxtButtonProps {
226
252
  buttonType?: 'button' | 'submit' | 'reset';
227
253
  }
228
254
 
229
- 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>;
230
284
 
231
285
  declare interface NexxtCalendarProps {
232
286
  locale?: Locale;
@@ -238,9 +292,9 @@ declare interface NexxtCalendarProps {
238
292
  timezone?: string;
239
293
  }
240
294
 
241
- export declare const NexxtCheckbox: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
295
+ export declare const NexxtCheckbox: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
242
296
  "update:modelValue": (value: boolean) => any;
243
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
297
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
244
298
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
245
299
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
246
300
  inputRef: HTMLInputElement;
@@ -254,7 +308,7 @@ declare interface NexxtCheckboxProps {
254
308
  export declare const NexxtChip: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
255
309
 
256
310
  declare interface NexxtChipProps {
257
- variant?: 'default' | 'warning' | 'success' | 'danger';
311
+ variant?: 'default' | 'warning' | 'success' | 'danger' | 'ghost';
258
312
  }
259
313
 
260
314
  export declare const NexxtCustomerJourneyTile: DefineComponent<NexxtCustomerJourneyTileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtCustomerJourneyTileProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
@@ -388,13 +442,39 @@ declare interface NexxtStepperHeaderProps {
388
442
  backButtonAction: InstanceType<typeof NexxtHeader>['backButtonAction'];
389
443
  }
390
444
 
391
- 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
+ }
392
472
 
393
- 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<{}>, {
394
474
  splitView: boolean;
395
475
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
396
476
 
397
- 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>;
398
478
 
399
479
  export declare const NexxtTooltip: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
400
480
 
@@ -408,6 +488,13 @@ declare interface NexxtTooltip_2 {
408
488
 
409
489
  declare type SocialPlatform = 'tiktok' | 'facebook' | 'instagram' | 'linkedin' | 'x' | 'twitter' | 'google';
410
490
 
491
+ declare interface TableColumn<K extends string = string> {
492
+ key: K;
493
+ label: string;
494
+ sortable?: boolean;
495
+ width?: string;
496
+ }
497
+
411
498
  declare interface TimelineEvent {
412
499
  id: number;
413
500
  type: string;