@nexxtmove/ui 0.1.37 → 0.1.39

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/index.d.ts CHANGED
@@ -22,8 +22,8 @@ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_3, {}, {}, {}
22
22
  }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
24
24
  }>, {
25
- anchor: CalendarAnchor;
26
25
  placeholder: string;
26
+ anchor: CalendarAnchor;
27
27
  autoClose: boolean;
28
28
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
29
29
  wrapperRef: HTMLDivElement;
@@ -35,13 +35,19 @@ declare const __VLS_component_4: DefineComponent<NexxtHeaderProps, {}, {}, {}, {
35
35
 
36
36
  declare const __VLS_component_5: DefineComponent<NexxtInfoBlockProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtInfoBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
37
37
 
38
- declare const __VLS_component_6: DefineComponent<NexxtStepperHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
38
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
+ "update:modelValue": (value: string) => any;
40
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
41
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
43
+
44
+ declare const __VLS_component_7: DefineComponent<NexxtStepperHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
45
  "update:currentStep": (...args: any[]) => void;
40
46
  }, string, PublicProps, Readonly<NexxtStepperHeaderProps> & Readonly<{
41
47
  "onUpdate:currentStep"?: ((...args: any[]) => any) | undefined;
42
48
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
43
49
 
44
- declare const __VLS_component_7: DefineComponent<NexxtTooltip_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtTooltip_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_component_8: DefineComponent<NexxtTooltip_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtTooltip_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
45
51
 
46
52
  declare type __VLS_PrettifyLocal<T> = {
47
53
  [K in keyof T]: T[K];
@@ -50,7 +56,7 @@ declare type __VLS_PrettifyLocal<T> = {
50
56
  declare type __VLS_Props = {
51
57
  value: number;
52
58
  duration?: number;
53
- easing?: EasingFunction;
59
+ delay?: number;
54
60
  };
55
61
 
56
62
  declare type __VLS_Props_2 = NexxtCalendarProps;
@@ -154,13 +160,22 @@ declare function __VLS_template_5(): {
154
160
  declare function __VLS_template_6(): {
155
161
  attrs: Partial<{}>;
156
162
  slots: {
157
- default?(_: {}): any;
163
+ right?(_: {}): any;
158
164
  };
159
165
  refs: {};
160
166
  rootEl: HTMLDivElement;
161
167
  };
162
168
 
163
169
  declare function __VLS_template_7(): {
170
+ attrs: Partial<{}>;
171
+ slots: {
172
+ default?(_: {}): any;
173
+ };
174
+ refs: {};
175
+ rootEl: HTMLDivElement;
176
+ };
177
+
178
+ declare function __VLS_template_8(): {
164
179
  attrs: Partial<{}>;
165
180
  slots: {
166
181
  default?(_: {}): any;
@@ -184,6 +199,8 @@ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
184
199
 
185
200
  declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
186
201
 
202
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
203
+
187
204
  declare type __VLS_WithTemplateSlots<T, S> = T & {
188
205
  new (): {
189
206
  $slots: S;
@@ -226,6 +243,12 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
226
243
  };
227
244
  };
228
245
 
246
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
247
+ new (): {
248
+ $slots: S;
249
+ };
250
+ };
251
+
229
252
  declare type CalendarAnchor = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
230
253
 
231
254
  declare interface CalendarDayViewProps {
@@ -238,8 +261,6 @@ declare interface CalendarDayViewProps {
238
261
  timezone: string;
239
262
  }
240
263
 
241
- declare type EasingFunction = 'ease-linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
242
-
243
264
  declare type IconType = 'regular' | 'solid' | 'light' | 'duotone' | 'brands';
244
265
 
245
266
  export declare const NexxtAnimatedNumber: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -323,11 +344,14 @@ declare interface NexxtChipProps {
323
344
  variant?: 'default' | 'warning' | 'success' | 'danger' | 'ghost';
324
345
  }
325
346
 
326
- export declare const NexxtCustomerJourneyTile: DefineComponent<NexxtCustomerJourneyTileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtCustomerJourneyTileProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
347
+ export declare const NexxtCustomerJourneyTile: DefineComponent<NexxtCustomerJourneyTileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NexxtCustomerJourneyTileProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
327
348
 
328
349
  declare interface NexxtCustomerJourneyTileProps {
350
+ as?: keyof HTMLElementTagNameMap;
329
351
  title?: string;
330
352
  amount?: number;
353
+ animated?: boolean;
354
+ delay?: number;
331
355
  percentage?: number;
332
356
  percentageExplanaition?: string;
333
357
  }
@@ -340,9 +364,25 @@ declare interface NexxtDatePickerProps extends NexxtCalendarProps {
340
364
  autoClose?: boolean;
341
365
  }
342
366
 
343
- export declare const NexxtDropdownButton: DefineComponent<NexxtDropdownButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
367
+ export declare const NexxtDropdownButton: DefineComponent<(NexxtDropdownButtonBase & {
368
+ iconOnly?: false;
369
+ label: string;
370
+ action: string | (() => void);
371
+ }) | (NexxtDropdownButtonBase & {
372
+ iconOnly: true;
373
+ label?: string;
374
+ action?: string | (() => void);
375
+ }), {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
344
376
  navigate: (url: string) => any;
345
- }, string, PublicProps, Readonly<NexxtDropdownButtonProps> & Readonly<{
377
+ }, string, PublicProps, Readonly<(NexxtDropdownButtonBase & {
378
+ iconOnly?: false;
379
+ label: string;
380
+ action: string | (() => void);
381
+ }) | (NexxtDropdownButtonBase & {
382
+ iconOnly: true;
383
+ label?: string;
384
+ action?: string | (() => void);
385
+ })> & Readonly<{
346
386
  onNavigate?: ((url: string) => any) | undefined;
347
387
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
348
388
  wrapperRef: HTMLDivElement;
@@ -352,18 +392,22 @@ declare interface NexxtDropdownButton_2 {
352
392
  label: string;
353
393
  action: string | (() => void);
354
394
  icon?: InstanceType<typeof NexxtIcon>['name'];
395
+ selected?: boolean;
355
396
  }
356
397
 
357
- declare interface NexxtDropdownButtonProps extends NexxtDropdownButton_2 {
398
+ declare type NexxtDropdownButtonBase = {
358
399
  variant?: 'primary' | 'secondary';
359
400
  options: NexxtDropdownButton_2[];
360
401
  placement?: 'left' | 'right';
361
- }
402
+ triggerIcon?: InstanceType<typeof NexxtIcon>['name'];
403
+ icon?: InstanceType<typeof NexxtIcon>['name'];
404
+ };
362
405
 
363
406
  export declare const NexxtHeader: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
364
407
 
365
408
  declare interface NexxtHeaderProps {
366
409
  title: string;
410
+ headingType?: 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4';
367
411
  backButtonText?: string;
368
412
  backButtonAction?: () => void;
369
413
  }
@@ -382,18 +426,13 @@ declare interface NexxtInfoBlockProps {
382
426
  color?: 'green' | 'purple' | 'blue' | 'rose';
383
427
  }
384
428
 
385
- export declare const NexxtInputField: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
386
- "update:modelValue": (value: string) => any;
387
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
388
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
389
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
429
+ export declare const NexxtInputField: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
390
430
 
391
431
  declare interface NexxtInputFieldProps {
392
432
  placeholder?: string;
393
433
  label?: string;
394
434
  error?: boolean;
395
435
  errorMessage?: string;
396
- focused?: boolean;
397
436
  leftIcon?: InstanceType<typeof NexxtIcon>['name'];
398
437
  rightIcon?: InstanceType<typeof NexxtIcon>['name'];
399
438
  }
@@ -474,7 +513,7 @@ declare interface NexxtSocialMediaTypeProps {
474
513
  icons?: SocialPlatform[];
475
514
  }
476
515
 
477
- export declare const NexxtStepperHeader: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
516
+ export declare const NexxtStepperHeader: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
478
517
 
479
518
  declare interface NexxtStepperHeaderProps {
480
519
  title: string;
@@ -484,35 +523,40 @@ declare interface NexxtStepperHeaderProps {
484
523
  backButtonAction: InstanceType<typeof NexxtHeader>['backButtonAction'];
485
524
  }
486
525
 
487
- 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<{
526
+ export declare const NexxtTable: <TKey extends string, TRow extends Record<TKey, unknown>>(__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<{
488
527
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
489
- readonly "onUpdate:modelValue"?: ((value: Record<TKey, unknown>[]) => any) | undefined;
528
+ readonly "onUpdate:modelValue"?: ((value: TRow[]) => any) | undefined;
490
529
  readonly "onUpdate:sortKey"?: ((value: TKey) => any) | undefined;
491
530
  readonly "onUpdate:sortDirection"?: ((value: "desc" | "asc") => any) | undefined;
492
- readonly "onRow-click"?: ((row: Record<TKey, unknown>) => any) | undefined;
531
+ readonly "onRow-click"?: ((row: TRow) => any) | undefined;
493
532
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:sortKey" | "onUpdate:sortDirection" | "onRow-click"> & ({
494
- modelValue?: Record<TKey, unknown>[];
533
+ modelValue?: TRow[];
495
534
  sortKey?: TKey;
496
535
  sortDirection?: "asc" | "desc";
497
- } & NexxtTableProps<TKey>) & Partial<{}>> & PublicProps;
536
+ } & NexxtTableProps<TKey, TRow>) & Partial<{}>> & PublicProps;
498
537
  expose(exposed: ShallowUnwrapRef< {}>): void;
499
538
  attrs: any;
500
- slots: Partial<Record<`cell-${TKey}`, (_: {
501
- row: Record<TKey, unknown>;
502
- value: Record<TKey, unknown>[TKey];
503
- }) => any>> & {
504
- toolbar?(_: {}): any;
505
- empty?(_: {}): any;
539
+ slots: Readonly<{ [K in TKey as `cell-${K}`]?: ((props: {
540
+ row: TRow;
541
+ value: TRow[K];
542
+ }) => unknown) | undefined; } & {
543
+ [key: string]: ((props: Record<string, unknown>) => unknown) | undefined;
544
+ }> & { [K in TKey as `cell-${K}`]?: ((props: {
545
+ row: TRow;
546
+ value: TRow[K];
547
+ }) => unknown) | undefined; } & {
548
+ [key: string]: ((props: Record<string, unknown>) => unknown) | undefined;
506
549
  };
507
- emit: ((evt: "row-click", row: Record<TKey, unknown>) => void) & (((evt: "update:modelValue", value: Record<TKey, unknown>[]) => void) & ((evt: "update:sortKey", value: TKey) => void) & ((evt: "update:sortDirection", value: "desc" | "asc") => void));
550
+ emit: ((evt: "row-click", row: TRow) => void) & (((evt: "update:modelValue", value: TRow[]) => void) & ((evt: "update:sortKey", value: TKey) => void) & ((evt: "update:sortDirection", value: "desc" | "asc") => void));
508
551
  }>) => VNode & {
509
552
  __ctx?: Awaited<typeof __VLS_setup>;
510
553
  };
511
554
 
512
- declare interface NexxtTableProps<TKey extends string = string> {
555
+ declare interface NexxtTableProps<TKey extends string = string, TRow extends Record<TKey, unknown> = Record<TKey, unknown>> {
513
556
  columns: TableColumn<TKey>[];
514
- rows: Record<TKey, unknown>[];
557
+ rows: TRow[];
515
558
  selectable?: boolean;
559
+ loading?: boolean;
516
560
  }
517
561
 
518
562
  export declare const NexxtTimelineEvent: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
@@ -521,7 +565,7 @@ splitView: boolean;
521
565
 
522
566
  export declare const NexxtTimelinePhaseblock: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
523
567
 
524
- export declare const NexxtTooltip: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
568
+ export declare const NexxtTooltip: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
525
569
 
526
570
  declare interface NexxtTooltip_2 {
527
571
  delay?: number;
@@ -538,6 +582,7 @@ declare interface TableColumn<K extends string = string> {
538
582
  label: string;
539
583
  sortable?: boolean;
540
584
  width?: string;
585
+ minCellWidth?: number;
541
586
  }
542
587
 
543
588
  declare interface TimelineEvent {