@cal.macconnachie/web-components 1.2.6 → 2.0.2
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 +78 -0
- package/dist/index.js +3941 -3426
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -408,6 +408,24 @@ export declare class BaseTimePicker extends BaseElement {
|
|
|
408
408
|
render(): TemplateResult<1>;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
export declare class BaseToast extends BaseElement {
|
|
412
|
+
variant: ToastVariant;
|
|
413
|
+
padding: ToastPadding;
|
|
414
|
+
size: 'sm' | 'md' | 'lg';
|
|
415
|
+
dismiss: DismissBehavior;
|
|
416
|
+
position: ToastPosition;
|
|
417
|
+
connectedCallback(): void;
|
|
418
|
+
private timerStarted;
|
|
419
|
+
private timerPausedAt;
|
|
420
|
+
private toastTimout;
|
|
421
|
+
private pauseTimer;
|
|
422
|
+
private resumeTimer;
|
|
423
|
+
show(): void;
|
|
424
|
+
remove(): void;
|
|
425
|
+
static styles: CSSResult;
|
|
426
|
+
render(): TemplateResult<1>;
|
|
427
|
+
}
|
|
428
|
+
|
|
411
429
|
declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
412
430
|
|
|
413
431
|
declare type ButtonVariant = 'solid-primary' | 'solid-secondary' | 'solid-danger' | 'solid-warning' | 'solid-info' | 'solid-success' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-warning' | 'outlined-info' | 'outlined-success' | 'ghost-primary' | 'ghost-secondary' | 'ghost-danger' | 'ghost-warning' | 'ghost-info' | 'ghost-success' | 'link-primary' | 'link-secondary' | 'link-danger' | 'link-warning' | 'link-info' | 'link-success' | 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
|
|
@@ -422,6 +440,10 @@ declare type DatePickerSize = 'sm' | 'md' | 'lg';
|
|
|
422
440
|
|
|
423
441
|
declare type DateTimePickerSize = 'sm' | 'md' | 'lg';
|
|
424
442
|
|
|
443
|
+
declare type DismissBehavior = 'manual' | DismissPeriod;
|
|
444
|
+
|
|
445
|
+
declare type DismissPeriod = `${number}${'s' | 'ms'}`;
|
|
446
|
+
|
|
425
447
|
declare type InputSize = 'sm' | 'md' | 'lg';
|
|
426
448
|
|
|
427
449
|
declare type InputType = 'text' | 'email' | 'password' | 'tel' | 'url';
|
|
@@ -444,6 +466,54 @@ export declare class QuantitySelect extends BaseElement {
|
|
|
444
466
|
|
|
445
467
|
declare type QuantitySize = 'xs' | 'sm' | 'md' | 'lg';
|
|
446
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Registers all web components in the custom elements registry.
|
|
471
|
+
*
|
|
472
|
+
* Components will only be registered once due to the check in each
|
|
473
|
+
* register helper function.
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* // For CDN usage
|
|
477
|
+
* import { registerAll } from 'https://cdn.example.com/index.js'
|
|
478
|
+
* registerAll()
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* // For npm usage
|
|
482
|
+
* import { registerAll } from '@your-package/web-components'
|
|
483
|
+
* registerAll()
|
|
484
|
+
*/
|
|
485
|
+
export declare function registerAll(): void;
|
|
486
|
+
|
|
487
|
+
export declare const registerAuthForm: () => void;
|
|
488
|
+
|
|
489
|
+
export declare const registerBaseButton: () => void;
|
|
490
|
+
|
|
491
|
+
export declare const registerBaseCard: () => void;
|
|
492
|
+
|
|
493
|
+
export declare const registerBaseDatePicker: () => void;
|
|
494
|
+
|
|
495
|
+
export declare const registerBaseDateTimePicker: () => void;
|
|
496
|
+
|
|
497
|
+
export declare const registerBaseDrawer: () => void;
|
|
498
|
+
|
|
499
|
+
export declare const registerBaseInput: () => void;
|
|
500
|
+
|
|
501
|
+
export declare const registerBaseSelect: () => void;
|
|
502
|
+
|
|
503
|
+
export declare const registerBaseTab: () => void;
|
|
504
|
+
|
|
505
|
+
export declare const registerBaseTabs: () => void;
|
|
506
|
+
|
|
507
|
+
export declare const registerBaseTextarea: () => void;
|
|
508
|
+
|
|
509
|
+
export declare const registerBaseTimePicker: () => void;
|
|
510
|
+
|
|
511
|
+
export declare const registerBaseToast: () => void;
|
|
512
|
+
|
|
513
|
+
export declare const registerQuantitySelect: () => void;
|
|
514
|
+
|
|
515
|
+
export declare const registerThemeToggle: () => void;
|
|
516
|
+
|
|
447
517
|
declare type ResizeMode = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
448
518
|
|
|
449
519
|
export declare interface SelectOption {
|
|
@@ -453,6 +523,8 @@ export declare interface SelectOption {
|
|
|
453
523
|
|
|
454
524
|
declare type SelectSize = 'sm' | 'md' | 'lg';
|
|
455
525
|
|
|
526
|
+
export declare function showToast(message: string, variant?: ToastVariant, position?: ToastPosition, dismiss?: DismissBehavior): void;
|
|
527
|
+
|
|
456
528
|
export declare interface TabData {
|
|
457
529
|
id: string;
|
|
458
530
|
label: string;
|
|
@@ -490,4 +562,10 @@ declare type TimeFormat_2 = '12' | '24';
|
|
|
490
562
|
|
|
491
563
|
declare type TimePickerSize = 'sm' | 'md' | 'lg';
|
|
492
564
|
|
|
565
|
+
declare type ToastPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
566
|
+
|
|
567
|
+
declare type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
568
|
+
|
|
569
|
+
declare type ToastVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
570
|
+
|
|
493
571
|
export { }
|