@cal.macconnachie/web-components 2.4.10 → 2.4.12

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 +51 -0
  2. package/dist/index.js +1747 -1232
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -286,6 +286,40 @@ export declare class BaseInput extends BaseElement {
286
286
  render(): TemplateResult<1>;
287
287
  }
288
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
+
289
323
  export declare class BaseSelect extends BaseElement {
290
324
  value: string;
291
325
  label?: string;
@@ -470,6 +504,12 @@ declare type InputSize = 'sm' | 'md' | 'lg';
470
504
 
471
505
  declare type InputType = 'text' | 'email' | 'password' | 'tel' | 'url';
472
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
+
473
513
  export declare class QuantitySelect extends BaseElement {
474
514
  value: number;
475
515
  min: number;
@@ -522,6 +562,10 @@ export declare const registerBaseIcon: () => void;
522
562
 
523
563
  export declare const registerBaseInput: () => void;
524
564
 
565
+ export declare const registerBaseList: () => void;
566
+
567
+ export declare const registerBaseListItem: () => void;
568
+
525
569
  export declare const registerBaseSelect: () => void;
526
570
 
527
571
  export declare const registerBaseTab: () => void;
@@ -554,6 +598,13 @@ export declare function showToast({ message, variant, position, dismiss }: {
554
598
  dismiss?: DismissBehavior;
555
599
  }): void;
556
600
 
601
+ export declare interface SwipeAction {
602
+ icon: string;
603
+ callback: () => void;
604
+ color?: string;
605
+ label?: string;
606
+ }
607
+
557
608
  export declare interface TabData {
558
609
  id: string;
559
610
  label: string;