@cal.macconnachie/web-components 2.4.9 → 2.4.11

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 (3) hide show
  1. package/dist/index.d.ts +53 -1
  2. package/dist/index.js +1892 -1446
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { TemplateResult } from 'lit-html';
7
7
 
8
8
  declare interface ApiClientConfig {
9
9
  baseUrl: string;
10
+ useToasts?: boolean;
10
11
  }
11
12
 
12
13
  export declare class AuthForm extends BaseElement {
@@ -285,6 +286,40 @@ export declare class BaseInput extends BaseElement {
285
286
  render(): TemplateResult<1>;
286
287
  }
287
288
 
289
+ export declare class BaseList extends BaseElement {
290
+ size: ListSize;
291
+ variant: ListVariant;
292
+ interactive: boolean;
293
+ role: string;
294
+ static styles: CSSResult;
295
+ render(): TemplateResult<1>;
296
+ }
297
+
298
+ export declare class BaseListItem extends BaseElement {
299
+ size: ListItemSize;
300
+ disabled: boolean;
301
+ selected: boolean;
302
+ interactive: boolean;
303
+ role: string;
304
+ leftSwipeAction?: SwipeAction;
305
+ rightSwipeAction?: SwipeAction;
306
+ private swipeOffset;
307
+ private isSwiping;
308
+ private touchStartX;
309
+ private touchStartY;
310
+ private currentX;
311
+ private isDragging;
312
+ private swipeThreshold;
313
+ static styles: CSSResult;
314
+ private handleClick;
315
+ private handleKeyDown;
316
+ private handleTouchStart;
317
+ private handleTouchMove;
318
+ private handleTouchEnd;
319
+ private triggerSwipeAction;
320
+ render(): TemplateResult<1>;
321
+ }
322
+
288
323
  export declare class BaseSelect extends BaseElement {
289
324
  value: string;
290
325
  label?: string;
@@ -455,7 +490,7 @@ declare type CardPadding = 'auto' | 'none' | 'sm' | 'md' | 'lg';
455
490
 
456
491
  declare type CardVariant = 'default' | 'elevated';
457
492
 
458
- export declare const createApiClient: ({ baseUrl }: ApiClientConfig) => AxiosInstance;
493
+ export declare const createApiClient: ({ baseUrl, useToasts }: ApiClientConfig) => AxiosInstance;
459
494
 
460
495
  declare type DatePickerSize = 'sm' | 'md' | 'lg';
461
496
 
@@ -469,6 +504,12 @@ declare type InputSize = 'sm' | 'md' | 'lg';
469
504
 
470
505
  declare type InputType = 'text' | 'email' | 'password' | 'tel' | 'url';
471
506
 
507
+ declare type ListItemSize = 'sm' | 'md' | 'lg';
508
+
509
+ declare type ListSize = 'sm' | 'md' | 'lg';
510
+
511
+ declare type ListVariant = 'default' | 'bordered' | 'divided';
512
+
472
513
  export declare class QuantitySelect extends BaseElement {
473
514
  value: number;
474
515
  min: number;
@@ -521,6 +562,10 @@ export declare const registerBaseIcon: () => void;
521
562
 
522
563
  export declare const registerBaseInput: () => void;
523
564
 
565
+ export declare const registerBaseList: () => void;
566
+
567
+ export declare const registerBaseListItem: () => void;
568
+
524
569
  export declare const registerBaseSelect: () => void;
525
570
 
526
571
  export declare const registerBaseTab: () => void;
@@ -553,6 +598,13 @@ export declare function showToast({ message, variant, position, dismiss }: {
553
598
  dismiss?: DismissBehavior;
554
599
  }): void;
555
600
 
601
+ export declare interface SwipeAction {
602
+ icon: string;
603
+ callback: () => void;
604
+ color?: string;
605
+ label?: string;
606
+ }
607
+
556
608
  export declare interface TabData {
557
609
  id: string;
558
610
  label: string;