@universal-material/web 3.0.86 → 3.0.88

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.
@@ -583,255 +583,6 @@
583
583
  }
584
584
  ]
585
585
  },
586
- {
587
- "kind": "javascript-module",
588
- "path": "src/card/card-content.styles.ts",
589
- "declarations": [
590
- {
591
- "kind": "variable",
592
- "name": "styles",
593
- "default": "css `\n :host {\n display: block;\n }\n\n :host(:has(slot > *)) {\n display: none;\n }\n\n :host([has-content]) {\n padding: var(--u-card-padding, 16px);\n }\n\n slot {\n border-radius: inherit;\n }\n`"
594
- }
595
- ],
596
- "exports": [
597
- {
598
- "kind": "js",
599
- "name": "styles",
600
- "declaration": {
601
- "name": "styles",
602
- "module": "src/card/card-content.styles.ts"
603
- }
604
- }
605
- ]
606
- },
607
- {
608
- "kind": "javascript-module",
609
- "path": "src/card/card-content.ts",
610
- "declarations": [
611
- {
612
- "kind": "class",
613
- "description": "",
614
- "name": "UmCardContent",
615
- "members": [
616
- {
617
- "kind": "field",
618
- "name": "hasContent",
619
- "type": {
620
- "text": "boolean"
621
- },
622
- "default": "false",
623
- "attribute": "has-content",
624
- "reflects": true
625
- },
626
- {
627
- "kind": "method",
628
- "name": "handleSlotChange",
629
- "privacy": "private",
630
- "parameters": [
631
- {
632
- "name": "e",
633
- "type": {
634
- "text": "Event"
635
- }
636
- }
637
- ]
638
- }
639
- ],
640
- "attributes": [
641
- {
642
- "name": "has-content",
643
- "type": {
644
- "text": "boolean"
645
- },
646
- "default": "false",
647
- "fieldName": "hasContent"
648
- }
649
- ],
650
- "superclass": {
651
- "name": "LitElement",
652
- "package": "lit"
653
- },
654
- "tagName": "u-card-content",
655
- "customElement": true
656
- }
657
- ],
658
- "exports": [
659
- {
660
- "kind": "js",
661
- "name": "UmCardContent",
662
- "declaration": {
663
- "name": "UmCardContent",
664
- "module": "src/card/card-content.ts"
665
- }
666
- },
667
- {
668
- "kind": "custom-element-definition",
669
- "name": "u-card-content",
670
- "declaration": {
671
- "name": "UmCardContent",
672
- "module": "src/card/card-content.ts"
673
- }
674
- }
675
- ]
676
- },
677
- {
678
- "kind": "javascript-module",
679
- "path": "src/card/card-media.styles.ts",
680
- "declarations": [
681
- {
682
- "kind": "variable",
683
- "name": "styles",
684
- "default": "css `\n :host {\n display: block;\n aspect-ratio: 1;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([wide]) {\n aspect-ratio: 16/9;\n }\n`"
685
- }
686
- ],
687
- "exports": [
688
- {
689
- "kind": "js",
690
- "name": "styles",
691
- "declaration": {
692
- "name": "styles",
693
- "module": "src/card/card-media.styles.ts"
694
- }
695
- }
696
- ]
697
- },
698
- {
699
- "kind": "javascript-module",
700
- "path": "src/card/card-media.ts",
701
- "declarations": [
702
- {
703
- "kind": "class",
704
- "description": "",
705
- "name": "UmCardMedia",
706
- "members": [
707
- {
708
- "kind": "field",
709
- "name": "wide",
710
- "type": {
711
- "text": "boolean"
712
- },
713
- "default": "false",
714
- "attribute": "wide",
715
- "reflects": true
716
- }
717
- ],
718
- "attributes": [
719
- {
720
- "name": "wide",
721
- "type": {
722
- "text": "boolean"
723
- },
724
- "default": "false",
725
- "fieldName": "wide"
726
- }
727
- ],
728
- "superclass": {
729
- "name": "LitElement",
730
- "package": "lit"
731
- },
732
- "tagName": "u-card-media",
733
- "customElement": true
734
- }
735
- ],
736
- "exports": [
737
- {
738
- "kind": "js",
739
- "name": "UmCardMedia",
740
- "declaration": {
741
- "name": "UmCardMedia",
742
- "module": "src/card/card-media.ts"
743
- }
744
- },
745
- {
746
- "kind": "custom-element-definition",
747
- "name": "u-card-media",
748
- "declaration": {
749
- "name": "UmCardMedia",
750
- "module": "src/card/card-media.ts"
751
- }
752
- }
753
- ]
754
- },
755
- {
756
- "kind": "javascript-module",
757
- "path": "src/card/card.styles.ts",
758
- "declarations": [
759
- {
760
- "kind": "variable",
761
- "name": "styles",
762
- "default": "css `\n :host {\n display: block;\n position: relative;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([variant=elevated]) {\n --u-current-bg-color: var(--u-card-elevated-bg-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n background-color: var(--u-current-bg-color);\n }\n :host([variant=elevated]) u-elevation {\n --u-elevation-level: var(--u-elevated-card-elevation-level, 1);\n }\n\n :host([variant=filled]) {\n --u-current-bg-color: var(--u-card-filled-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n background-color: var(--u-current-bg-color);\n }\n\n :host([variant=outlined]) {\n border: var(--u-outlined-card-outline-width, 1px) solid var(--u-outlined-card-outline-color, var(--u-color-outline-variant, rgb(202, 196, 208)));\n }\n\n u-card-content,\n slot {\n border-radius: inherit;\n }\n`"
763
- }
764
- ],
765
- "exports": [
766
- {
767
- "kind": "js",
768
- "name": "styles",
769
- "declaration": {
770
- "name": "styles",
771
- "module": "src/card/card.styles.ts"
772
- }
773
- }
774
- ]
775
- },
776
- {
777
- "kind": "javascript-module",
778
- "path": "src/card/card.ts",
779
- "declarations": [
780
- {
781
- "kind": "class",
782
- "description": "",
783
- "name": "UmCard",
784
- "members": [
785
- {
786
- "kind": "field",
787
- "name": "variant",
788
- "type": {
789
- "text": "UmCardVariant"
790
- },
791
- "default": "'filled'",
792
- "description": "The Card variant to render.",
793
- "attribute": "variant",
794
- "reflects": true
795
- }
796
- ],
797
- "attributes": [
798
- {
799
- "name": "variant",
800
- "type": {
801
- "text": "UmCardVariant"
802
- },
803
- "default": "'filled'",
804
- "description": "The Card variant to render.",
805
- "fieldName": "variant"
806
- }
807
- ],
808
- "superclass": {
809
- "name": "LitElement",
810
- "package": "lit"
811
- },
812
- "tagName": "u-card",
813
- "customElement": true
814
- }
815
- ],
816
- "exports": [
817
- {
818
- "kind": "js",
819
- "name": "UmCard",
820
- "declaration": {
821
- "name": "UmCard",
822
- "module": "src/card/card.ts"
823
- }
824
- },
825
- {
826
- "kind": "custom-element-definition",
827
- "name": "u-card",
828
- "declaration": {
829
- "name": "UmCard",
830
- "module": "src/card/card.ts"
831
- }
832
- }
833
- ]
834
- },
835
586
  {
836
587
  "kind": "javascript-module",
837
588
  "path": "src/button/button-base.styles.ts",
@@ -2908,14 +2659,263 @@
2908
2659
  },
2909
2660
  {
2910
2661
  "kind": "javascript-module",
2911
- "path": "src/checkbox/checkbox-list-item.ts",
2662
+ "path": "src/card/card-content.styles.ts",
2912
2663
  "declarations": [
2913
2664
  {
2914
- "kind": "class",
2915
- "description": "",
2916
- "name": "UmCheckboxListItem",
2917
- "mixins": [
2918
- {
2665
+ "kind": "variable",
2666
+ "name": "styles",
2667
+ "default": "css `\n :host {\n display: block;\n }\n\n :host(:has(slot > *)) {\n display: none;\n }\n\n :host([has-content]) {\n padding: var(--u-card-padding, 16px);\n }\n\n slot {\n border-radius: inherit;\n }\n`"
2668
+ }
2669
+ ],
2670
+ "exports": [
2671
+ {
2672
+ "kind": "js",
2673
+ "name": "styles",
2674
+ "declaration": {
2675
+ "name": "styles",
2676
+ "module": "src/card/card-content.styles.ts"
2677
+ }
2678
+ }
2679
+ ]
2680
+ },
2681
+ {
2682
+ "kind": "javascript-module",
2683
+ "path": "src/card/card-content.ts",
2684
+ "declarations": [
2685
+ {
2686
+ "kind": "class",
2687
+ "description": "",
2688
+ "name": "UmCardContent",
2689
+ "members": [
2690
+ {
2691
+ "kind": "field",
2692
+ "name": "hasContent",
2693
+ "type": {
2694
+ "text": "boolean"
2695
+ },
2696
+ "default": "false",
2697
+ "attribute": "has-content",
2698
+ "reflects": true
2699
+ },
2700
+ {
2701
+ "kind": "method",
2702
+ "name": "handleSlotChange",
2703
+ "privacy": "private",
2704
+ "parameters": [
2705
+ {
2706
+ "name": "e",
2707
+ "type": {
2708
+ "text": "Event"
2709
+ }
2710
+ }
2711
+ ]
2712
+ }
2713
+ ],
2714
+ "attributes": [
2715
+ {
2716
+ "name": "has-content",
2717
+ "type": {
2718
+ "text": "boolean"
2719
+ },
2720
+ "default": "false",
2721
+ "fieldName": "hasContent"
2722
+ }
2723
+ ],
2724
+ "superclass": {
2725
+ "name": "LitElement",
2726
+ "package": "lit"
2727
+ },
2728
+ "tagName": "u-card-content",
2729
+ "customElement": true
2730
+ }
2731
+ ],
2732
+ "exports": [
2733
+ {
2734
+ "kind": "js",
2735
+ "name": "UmCardContent",
2736
+ "declaration": {
2737
+ "name": "UmCardContent",
2738
+ "module": "src/card/card-content.ts"
2739
+ }
2740
+ },
2741
+ {
2742
+ "kind": "custom-element-definition",
2743
+ "name": "u-card-content",
2744
+ "declaration": {
2745
+ "name": "UmCardContent",
2746
+ "module": "src/card/card-content.ts"
2747
+ }
2748
+ }
2749
+ ]
2750
+ },
2751
+ {
2752
+ "kind": "javascript-module",
2753
+ "path": "src/card/card-media.styles.ts",
2754
+ "declarations": [
2755
+ {
2756
+ "kind": "variable",
2757
+ "name": "styles",
2758
+ "default": "css `\n :host {\n display: block;\n aspect-ratio: 1;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([wide]) {\n aspect-ratio: 16/9;\n }\n`"
2759
+ }
2760
+ ],
2761
+ "exports": [
2762
+ {
2763
+ "kind": "js",
2764
+ "name": "styles",
2765
+ "declaration": {
2766
+ "name": "styles",
2767
+ "module": "src/card/card-media.styles.ts"
2768
+ }
2769
+ }
2770
+ ]
2771
+ },
2772
+ {
2773
+ "kind": "javascript-module",
2774
+ "path": "src/card/card-media.ts",
2775
+ "declarations": [
2776
+ {
2777
+ "kind": "class",
2778
+ "description": "",
2779
+ "name": "UmCardMedia",
2780
+ "members": [
2781
+ {
2782
+ "kind": "field",
2783
+ "name": "wide",
2784
+ "type": {
2785
+ "text": "boolean"
2786
+ },
2787
+ "default": "false",
2788
+ "attribute": "wide",
2789
+ "reflects": true
2790
+ }
2791
+ ],
2792
+ "attributes": [
2793
+ {
2794
+ "name": "wide",
2795
+ "type": {
2796
+ "text": "boolean"
2797
+ },
2798
+ "default": "false",
2799
+ "fieldName": "wide"
2800
+ }
2801
+ ],
2802
+ "superclass": {
2803
+ "name": "LitElement",
2804
+ "package": "lit"
2805
+ },
2806
+ "tagName": "u-card-media",
2807
+ "customElement": true
2808
+ }
2809
+ ],
2810
+ "exports": [
2811
+ {
2812
+ "kind": "js",
2813
+ "name": "UmCardMedia",
2814
+ "declaration": {
2815
+ "name": "UmCardMedia",
2816
+ "module": "src/card/card-media.ts"
2817
+ }
2818
+ },
2819
+ {
2820
+ "kind": "custom-element-definition",
2821
+ "name": "u-card-media",
2822
+ "declaration": {
2823
+ "name": "UmCardMedia",
2824
+ "module": "src/card/card-media.ts"
2825
+ }
2826
+ }
2827
+ ]
2828
+ },
2829
+ {
2830
+ "kind": "javascript-module",
2831
+ "path": "src/card/card.styles.ts",
2832
+ "declarations": [
2833
+ {
2834
+ "kind": "variable",
2835
+ "name": "styles",
2836
+ "default": "css `\n :host {\n display: block;\n position: relative;\n border-radius: var(--u-card-shape-corner, var(--u-shape-corner-medium, 12px));\n }\n\n :host([variant=elevated]) {\n --u-current-bg-color: var(--u-card-elevated-bg-color, var(--u-color-surface-container-low, rgb(247, 242, 250)));\n background-color: var(--u-current-bg-color);\n }\n :host([variant=elevated]) u-elevation {\n --u-elevation-level: var(--u-elevated-card-elevation-level, 1);\n }\n\n :host([variant=filled]) {\n --u-current-bg-color: var(--u-card-filled-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n background-color: var(--u-current-bg-color);\n }\n\n :host([variant=outlined]) {\n border: var(--u-outlined-card-outline-width, 1px) solid var(--u-outlined-card-outline-color, var(--u-color-outline-variant, rgb(202, 196, 208)));\n }\n\n u-card-content,\n slot {\n border-radius: inherit;\n }\n`"
2837
+ }
2838
+ ],
2839
+ "exports": [
2840
+ {
2841
+ "kind": "js",
2842
+ "name": "styles",
2843
+ "declaration": {
2844
+ "name": "styles",
2845
+ "module": "src/card/card.styles.ts"
2846
+ }
2847
+ }
2848
+ ]
2849
+ },
2850
+ {
2851
+ "kind": "javascript-module",
2852
+ "path": "src/card/card.ts",
2853
+ "declarations": [
2854
+ {
2855
+ "kind": "class",
2856
+ "description": "",
2857
+ "name": "UmCard",
2858
+ "members": [
2859
+ {
2860
+ "kind": "field",
2861
+ "name": "variant",
2862
+ "type": {
2863
+ "text": "UmCardVariant"
2864
+ },
2865
+ "default": "'filled'",
2866
+ "description": "The Card variant to render.",
2867
+ "attribute": "variant",
2868
+ "reflects": true
2869
+ }
2870
+ ],
2871
+ "attributes": [
2872
+ {
2873
+ "name": "variant",
2874
+ "type": {
2875
+ "text": "UmCardVariant"
2876
+ },
2877
+ "default": "'filled'",
2878
+ "description": "The Card variant to render.",
2879
+ "fieldName": "variant"
2880
+ }
2881
+ ],
2882
+ "superclass": {
2883
+ "name": "LitElement",
2884
+ "package": "lit"
2885
+ },
2886
+ "tagName": "u-card",
2887
+ "customElement": true
2888
+ }
2889
+ ],
2890
+ "exports": [
2891
+ {
2892
+ "kind": "js",
2893
+ "name": "UmCard",
2894
+ "declaration": {
2895
+ "name": "UmCard",
2896
+ "module": "src/card/card.ts"
2897
+ }
2898
+ },
2899
+ {
2900
+ "kind": "custom-element-definition",
2901
+ "name": "u-card",
2902
+ "declaration": {
2903
+ "name": "UmCard",
2904
+ "module": "src/card/card.ts"
2905
+ }
2906
+ }
2907
+ ]
2908
+ },
2909
+ {
2910
+ "kind": "javascript-module",
2911
+ "path": "src/checkbox/checkbox-list-item.ts",
2912
+ "declarations": [
2913
+ {
2914
+ "kind": "class",
2915
+ "description": "",
2916
+ "name": "UmCheckboxListItem",
2917
+ "mixins": [
2918
+ {
2919
2919
  "name": "mixinSelectionControlListItem",
2920
2920
  "module": "/src/shared/selection-control/selection-control-list-item.js"
2921
2921
  }
@@ -9830,8 +9830,247 @@
9830
9830
  },
9831
9831
  {
9832
9832
  "kind": "javascript-module",
9833
- "path": "src/select/extended-option.ts",
9834
- "declarations": [],
9833
+ "path": "src/ripple/ripple.styles.ts",
9834
+ "declarations": [
9835
+ {
9836
+ "kind": "variable",
9837
+ "name": "styles",
9838
+ "default": "css `\n :host,\n .ripple-container::before {\n --_ripple-hover-color: var(--u-ripple-hover-color, var(--u-ripple-color, var(--u-state-layer-color, currentColor)));\n --_ripple-pressed-color: var(--u-ripple-pressed-color, var(--u-ripple-color, var(--u-state-layer-color, currentColor)));\n --_ripple-hover-opacity: var(--u-ripple-pressed-opacity, var(--u-state-hover-opacity, 0.08));\n --_ripple-pressed-opacity: var(--u-ripple-pressed-opacity, .2);\n display: block;\n inset: 0;\n isolation: isolate;\n }\n\n .ripple-container {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n border-radius: inherit;\n }\n\n .ripple-container::before {\n content: \"\";\n background: var(--_ripple-hover-color);\n opacity: 0;\n transition: opacity 200ms;\n }\n\n @media (hover: hover) {\n :host(:not([disabled]):hover) .ripple-container::before {\n content: \"\";\n background: var(--_ripple-hover-color);\n opacity: var(--_ripple-hover-opacity);\n }\n }\n :host,\n .ripple-container::before,\n .ripple {\n position: absolute;\n border-radius: inherit;\n }\n\n .ripple {\n top: 50%;\n left: 50%;\n background: var(--_ripple-pressed-color);\n border-radius: 50%;\n box-shadow: 0 0 64px 64px var(--_ripple-pressed-color);\n opacity: var(--_ripple-pressed-opacity);\n transform: scale3d(0, 0, 1);\n pointer-events: none;\n will-change: transform;\n }\n .ripple.show {\n transition: transform calc(var(--_ripple-transition-duration) / var(--u-ripple-speed, 1)) cubic-bezier(0.19, 1, 0.22, 1), opacity calc(750ms / var(--u-ripple-speed, 1));\n transform: scale3d(1, 1, 1);\n }\n .ripple.show-forced {\n transition: transform calc(var(--_ripple-transition-duration) / var(--u-ripple-speed, 1)) cubic-bezier(0.19, 1, 0.22, 1), opacity calc(200ms / var(--u-ripple-speed, 1)) 300ms;\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n .ripple.dismiss {\n opacity: 0;\n transform: scale3d(2, 2, 1);\n }\n\n ::slotted(*) {\n position: absolute !important;\n inset: 0;\n border-radius: inherit;\n }\n`"
9839
+ }
9840
+ ],
9841
+ "exports": [
9842
+ {
9843
+ "kind": "js",
9844
+ "name": "styles",
9845
+ "declaration": {
9846
+ "name": "styles",
9847
+ "module": "src/ripple/ripple.styles.ts"
9848
+ }
9849
+ }
9850
+ ]
9851
+ },
9852
+ {
9853
+ "kind": "javascript-module",
9854
+ "path": "src/ripple/ripple.ts",
9855
+ "declarations": [
9856
+ {
9857
+ "kind": "class",
9858
+ "description": "",
9859
+ "name": "UmRipple",
9860
+ "members": [
9861
+ {
9862
+ "kind": "field",
9863
+ "name": "isTouching",
9864
+ "type": {
9865
+ "text": "boolean"
9866
+ },
9867
+ "privacy": "private",
9868
+ "default": "false"
9869
+ },
9870
+ {
9871
+ "kind": "field",
9872
+ "name": "disabled",
9873
+ "type": {
9874
+ "text": "boolean"
9875
+ },
9876
+ "default": "false",
9877
+ "description": "Disables the ripple.",
9878
+ "attribute": "disabled",
9879
+ "reflects": true
9880
+ },
9881
+ {
9882
+ "kind": "field",
9883
+ "name": "rippleContainer",
9884
+ "type": {
9885
+ "text": "HTMLElement"
9886
+ },
9887
+ "privacy": "private"
9888
+ },
9889
+ {
9890
+ "kind": "method",
9891
+ "name": "attachEvents",
9892
+ "privacy": "private",
9893
+ "return": {
9894
+ "type": {
9895
+ "text": "void"
9896
+ }
9897
+ }
9898
+ },
9899
+ {
9900
+ "kind": "method",
9901
+ "name": "dettachEvents",
9902
+ "privacy": "private",
9903
+ "return": {
9904
+ "type": {
9905
+ "text": "void"
9906
+ }
9907
+ }
9908
+ },
9909
+ {
9910
+ "kind": "method",
9911
+ "name": "handleMouseDown",
9912
+ "privacy": "private",
9913
+ "return": {
9914
+ "type": {
9915
+ "text": "void"
9916
+ }
9917
+ },
9918
+ "parameters": [
9919
+ {
9920
+ "name": "e",
9921
+ "type": {
9922
+ "text": "MouseEvent"
9923
+ }
9924
+ }
9925
+ ]
9926
+ },
9927
+ {
9928
+ "kind": "method",
9929
+ "name": "handleTouchStart",
9930
+ "privacy": "private",
9931
+ "return": {
9932
+ "type": {
9933
+ "text": "void"
9934
+ }
9935
+ },
9936
+ "parameters": [
9937
+ {
9938
+ "name": "e",
9939
+ "type": {
9940
+ "text": "TouchEvent"
9941
+ }
9942
+ }
9943
+ ]
9944
+ },
9945
+ {
9946
+ "kind": "method",
9947
+ "name": "canCreateRipple",
9948
+ "privacy": "private",
9949
+ "return": {
9950
+ "type": {
9951
+ "text": "boolean"
9952
+ }
9953
+ }
9954
+ },
9955
+ {
9956
+ "kind": "method",
9957
+ "name": "createRipple",
9958
+ "return": {
9959
+ "type": {
9960
+ "text": "(() => void) | null"
9961
+ }
9962
+ },
9963
+ "parameters": [
9964
+ {
9965
+ "name": "targetX",
9966
+ "default": "null",
9967
+ "type": {
9968
+ "text": "number | null"
9969
+ }
9970
+ },
9971
+ {
9972
+ "name": "targetY",
9973
+ "default": "null",
9974
+ "type": {
9975
+ "text": "number | null"
9976
+ }
9977
+ },
9978
+ {
9979
+ "name": "releaseEventName",
9980
+ "default": "null",
9981
+ "type": {
9982
+ "text": "string | null"
9983
+ }
9984
+ }
9985
+ ]
9986
+ },
9987
+ {
9988
+ "kind": "method",
9989
+ "name": "createDismissEvent",
9990
+ "privacy": "private",
9991
+ "return": {
9992
+ "type": {
9993
+ "text": "() => void"
9994
+ }
9995
+ },
9996
+ "parameters": [
9997
+ {
9998
+ "name": "ripple",
9999
+ "type": {
10000
+ "text": "HTMLElement"
10001
+ }
10002
+ },
10003
+ {
10004
+ "name": "releaseEventName",
10005
+ "type": {
10006
+ "text": "string"
10007
+ }
10008
+ }
10009
+ ]
10010
+ },
10011
+ {
10012
+ "kind": "method",
10013
+ "name": "_setElementSquareSizeAndCenter",
10014
+ "privacy": "private",
10015
+ "static": true,
10016
+ "parameters": [
10017
+ {
10018
+ "name": "element",
10019
+ "type": {
10020
+ "text": "HTMLElement"
10021
+ }
10022
+ },
10023
+ {
10024
+ "name": "size",
10025
+ "type": {
10026
+ "text": "number"
10027
+ }
10028
+ }
10029
+ ]
10030
+ }
10031
+ ],
10032
+ "attributes": [
10033
+ {
10034
+ "name": "disabled",
10035
+ "type": {
10036
+ "text": "boolean"
10037
+ },
10038
+ "default": "false",
10039
+ "description": "Disables the ripple.",
10040
+ "fieldName": "disabled"
10041
+ }
10042
+ ],
10043
+ "superclass": {
10044
+ "name": "LitElement",
10045
+ "package": "lit"
10046
+ },
10047
+ "tagName": "u-ripple",
10048
+ "customElement": true
10049
+ }
10050
+ ],
10051
+ "exports": [
10052
+ {
10053
+ "kind": "js",
10054
+ "name": "UmRipple",
10055
+ "declaration": {
10056
+ "name": "UmRipple",
10057
+ "module": "src/ripple/ripple.ts"
10058
+ }
10059
+ },
10060
+ {
10061
+ "kind": "custom-element-definition",
10062
+ "name": "u-ripple",
10063
+ "declaration": {
10064
+ "name": "UmRipple",
10065
+ "module": "src/ripple/ripple.ts"
10066
+ }
10067
+ }
10068
+ ]
10069
+ },
10070
+ {
10071
+ "kind": "javascript-module",
10072
+ "path": "src/select/extended-option.ts",
10073
+ "declarations": [],
9835
10074
  "exports": []
9836
10075
  },
9837
10076
  {
@@ -11555,12 +11794,12 @@
11555
11794
  },
11556
11795
  {
11557
11796
  "kind": "javascript-module",
11558
- "path": "src/ripple/ripple.styles.ts",
11797
+ "path": "src/shared/base.styles.ts",
11559
11798
  "declarations": [
11560
11799
  {
11561
11800
  "kind": "variable",
11562
11801
  "name": "styles",
11563
- "default": "css `\n :host,\n .ripple-container::before {\n --_ripple-hover-color: var(--u-ripple-hover-color, var(--u-ripple-color, var(--u-state-layer-color, currentColor)));\n --_ripple-pressed-color: var(--u-ripple-pressed-color, var(--u-ripple-color, var(--u-state-layer-color, currentColor)));\n --_ripple-hover-opacity: var(--u-ripple-pressed-opacity, var(--u-state-hover-opacity, 0.08));\n --_ripple-pressed-opacity: var(--u-ripple-pressed-opacity, .2);\n display: block;\n inset: 0;\n isolation: isolate;\n }\n\n .ripple-container {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n border-radius: inherit;\n }\n\n .ripple-container::before {\n content: \"\";\n background: var(--_ripple-hover-color);\n opacity: 0;\n transition: opacity 200ms;\n }\n\n @media (hover: hover) {\n :host(:not([disabled]):hover) .ripple-container::before {\n content: \"\";\n background: var(--_ripple-hover-color);\n opacity: var(--_ripple-hover-opacity);\n }\n }\n :host,\n .ripple-container::before,\n .ripple {\n position: absolute;\n border-radius: inherit;\n }\n\n .ripple {\n top: 50%;\n left: 50%;\n background: var(--_ripple-pressed-color);\n border-radius: 50%;\n box-shadow: 0 0 64px 64px var(--_ripple-pressed-color);\n opacity: var(--_ripple-pressed-opacity);\n transform: scale3d(0, 0, 1);\n pointer-events: none;\n will-change: transform;\n }\n .ripple.show {\n transition: transform calc(var(--_ripple-transition-duration) / var(--u-ripple-speed, 1)) cubic-bezier(0.19, 1, 0.22, 1), opacity calc(750ms / var(--u-ripple-speed, 1));\n transform: scale3d(1, 1, 1);\n }\n .ripple.show-forced {\n transition: transform calc(var(--_ripple-transition-duration) / var(--u-ripple-speed, 1)) cubic-bezier(0.19, 1, 0.22, 1), opacity calc(200ms / var(--u-ripple-speed, 1)) 300ms;\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n .ripple.dismiss {\n opacity: 0;\n transform: scale3d(2, 2, 1);\n }\n\n ::slotted(*) {\n position: absolute !important;\n inset: 0;\n border-radius: inherit;\n }\n`"
11802
+ "default": "css `\n :host,\n * {\n --_focus-ring-outline-offset: var(--u-focus-ring-outline-offset, 2px);\n font-family: var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n box-sizing: border-box;\n outline: 0;\n }\n\n :host(.force-focus-ring) .focus-ring,\n .focus-ring:focus-visible {\n --_color-primary: var(--u-color-primary, rgb(103, 80, 164));\n animation: u-focus-pulse 500ms ease;\n animation-fill-mode: forwards;\n outline-offset: var(--_focus-ring-outline-offset);\n }\n\n @keyframes u-focus-pulse {\n 0% {\n outline: 0 solid var(--_color-primary);\n }\n 50% {\n outline: 6px solid var(--_color-primary);\n }\n 100% {\n outline: 4px solid var(--_color-primary);\n }\n }\n`"
11564
11803
  }
11565
11804
  ],
11566
11805
  "exports": [
@@ -11569,29 +11808,41 @@
11569
11808
  "name": "styles",
11570
11809
  "declaration": {
11571
11810
  "name": "styles",
11572
- "module": "src/ripple/ripple.styles.ts"
11811
+ "module": "src/shared/base.styles.ts"
11573
11812
  }
11574
11813
  }
11575
11814
  ]
11576
11815
  },
11577
11816
  {
11578
11817
  "kind": "javascript-module",
11579
- "path": "src/ripple/ripple.ts",
11818
+ "path": "src/shared/button-wrapper.styles.ts",
11580
11819
  "declarations": [
11581
11820
  {
11582
- "kind": "class",
11583
- "description": "",
11584
- "name": "UmRipple",
11585
- "members": [
11586
- {
11587
- "kind": "field",
11588
- "name": "isTouching",
11589
- "type": {
11590
- "text": "boolean"
11591
- },
11592
- "privacy": "private",
11593
- "default": "false"
11594
- },
11821
+ "kind": "variable",
11822
+ "name": "styles",
11823
+ "default": "css `\n :host {\n --_color-primary: var(--u-color-primary, rgb(103, 80, 164));\n -webkit-tap-highlight-color: transparent;\n --u-elevation-level: 0;\n position: relative;\n display: inline-block;\n font-family: var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n appearance: none !important;\n }\n\n :host([disabled]) {\n --u-elevation-level: 0 !important;\n background-color: var(--u-button-disabled-bg-color, rgba(var(--u-color-on-surface-rgb, 29, 27, 32), var(--u-button-disabled-background-opacity, 0.12))) !important;\n color: var(--u-button-disabled-text-color, rgba(var(--u-color-on-surface-rgb, 29, 27, 32), var(--u-button-disabled-color, 0.38))) !important;\n }\n\n :host([disabled]) .button {\n cursor: default;\n }\n\n * {\n color: inherit;\n }\n\n u-elevation {\n z-index: -1;\n }\n\n .button {\n cursor: pointer;\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n width: 100%;\n height: 100%;\n font-family: inherit;\n border-radius: inherit;\n color: inherit;\n border: none;\n margin: 0;\n padding: 0;\n text-align: center;\n white-space: nowrap;\n background: transparent;\n user-select: none;\n text-decoration: none;\n outline: 0;\n z-index: 0;\n }\n\n .content {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n border-radius: inherit;\n width: 100%;\n height: 100%;\n }\n`"
11824
+ }
11825
+ ],
11826
+ "exports": [
11827
+ {
11828
+ "kind": "js",
11829
+ "name": "styles",
11830
+ "declaration": {
11831
+ "name": "styles",
11832
+ "module": "src/shared/button-wrapper.styles.ts"
11833
+ }
11834
+ }
11835
+ ]
11836
+ },
11837
+ {
11838
+ "kind": "javascript-module",
11839
+ "path": "src/shared/button-wrapper.ts",
11840
+ "declarations": [
11841
+ {
11842
+ "kind": "class",
11843
+ "description": "",
11844
+ "name": "UmButtonWrapper",
11845
+ "members": [
11595
11846
  {
11596
11847
  "kind": "field",
11597
11848
  "name": "disabled",
@@ -11599,156 +11850,154 @@
11599
11850
  "text": "boolean"
11600
11851
  },
11601
11852
  "default": "false",
11602
- "description": "Disables the ripple.",
11853
+ "description": "Whether the button is disabled or not.",
11603
11854
  "attribute": "disabled",
11604
11855
  "reflects": true
11605
11856
  },
11606
11857
  {
11607
11858
  "kind": "field",
11608
- "name": "rippleContainer",
11859
+ "name": "renderRipple",
11860
+ "type": {
11861
+ "text": "boolean"
11862
+ },
11863
+ "default": "true"
11864
+ },
11865
+ {
11866
+ "kind": "field",
11867
+ "name": "href",
11868
+ "type": {
11869
+ "text": "string | undefined"
11870
+ },
11871
+ "description": "The URL that the link button points to.",
11872
+ "attribute": "href"
11873
+ },
11874
+ {
11875
+ "kind": "field",
11876
+ "name": "target",
11877
+ "type": {
11878
+ "text": "string | undefined"
11879
+ },
11880
+ "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
11881
+ "attribute": "target"
11882
+ },
11883
+ {
11884
+ "kind": "field",
11885
+ "name": "name",
11886
+ "type": {
11887
+ "text": "string | undefined"
11888
+ },
11889
+ "attribute": "name"
11890
+ },
11891
+ {
11892
+ "kind": "field",
11893
+ "name": "buttonElement",
11609
11894
  "type": {
11610
11895
  "text": "HTMLElement"
11896
+ }
11897
+ },
11898
+ {
11899
+ "kind": "field",
11900
+ "name": "ripple",
11901
+ "type": {
11902
+ "text": "UmRipple"
11611
11903
  },
11612
11904
  "privacy": "private"
11613
11905
  },
11614
11906
  {
11615
- "kind": "method",
11616
- "name": "attachEvents",
11617
- "privacy": "private",
11618
- "return": {
11619
- "type": {
11620
- "text": "void"
11621
- }
11907
+ "kind": "field",
11908
+ "name": "innerRole",
11909
+ "type": {
11910
+ "text": "string | null"
11911
+ },
11912
+ "privacy": "protected",
11913
+ "default": "null"
11914
+ },
11915
+ {
11916
+ "kind": "field",
11917
+ "name": "pathname",
11918
+ "type": {
11919
+ "text": "string"
11622
11920
  }
11623
11921
  },
11624
11922
  {
11625
11923
  "kind": "method",
11626
- "name": "dettachEvents",
11627
- "privacy": "private",
11924
+ "name": "renderButton",
11925
+ "privacy": "private"
11926
+ },
11927
+ {
11928
+ "kind": "method",
11929
+ "name": "renderLink",
11930
+ "privacy": "private"
11931
+ },
11932
+ {
11933
+ "kind": "method",
11934
+ "name": "renderContent",
11935
+ "privacy": "protected",
11628
11936
  "return": {
11629
11937
  "type": {
11630
- "text": "void"
11938
+ "text": "HTMLTemplateResult"
11631
11939
  }
11632
11940
  }
11633
11941
  },
11634
11942
  {
11635
11943
  "kind": "method",
11636
- "name": "handleMouseDown",
11637
- "privacy": "private",
11638
- "return": {
11639
- "type": {
11640
- "text": "void"
11641
- }
11642
- },
11643
- "parameters": [
11644
- {
11645
- "name": "e",
11646
- "type": {
11647
- "text": "MouseEvent"
11648
- }
11649
- }
11650
- ]
11944
+ "name": "focus"
11651
11945
  },
11652
11946
  {
11653
11947
  "kind": "method",
11654
- "name": "handleTouchStart",
11655
- "privacy": "private",
11948
+ "name": "blur"
11949
+ },
11950
+ {
11951
+ "kind": "method",
11952
+ "name": "getAriaLabel",
11953
+ "privacy": "protected",
11656
11954
  "return": {
11657
11955
  "type": {
11658
- "text": "void"
11659
- }
11660
- },
11661
- "parameters": [
11662
- {
11663
- "name": "e",
11664
- "type": {
11665
- "text": "TouchEvent"
11666
- }
11956
+ "text": "string | null"
11667
11957
  }
11668
- ]
11958
+ }
11669
11959
  },
11670
11960
  {
11671
11961
  "kind": "method",
11672
- "name": "canCreateRipple",
11962
+ "name": "innerFocusHandler",
11673
11963
  "privacy": "private",
11674
11964
  "return": {
11675
11965
  "type": {
11676
- "text": "boolean"
11966
+ "text": "void"
11677
11967
  }
11678
11968
  }
11679
11969
  },
11680
11970
  {
11681
11971
  "kind": "method",
11682
- "name": "createRipple",
11972
+ "name": "#innerClickHandler",
11683
11973
  "return": {
11684
11974
  "type": {
11685
- "text": "(() => void) | null"
11975
+ "text": "void"
11686
11976
  }
11687
11977
  },
11688
11978
  "parameters": [
11689
11979
  {
11690
- "name": "targetX",
11691
- "default": "null",
11692
- "type": {
11693
- "text": "number | null"
11694
- }
11695
- },
11696
- {
11697
- "name": "targetY",
11698
- "default": "null",
11699
- "type": {
11700
- "text": "number | null"
11701
- }
11702
- },
11703
- {
11704
- "name": "releaseEventName",
11705
- "default": "null",
11980
+ "name": "event",
11706
11981
  "type": {
11707
- "text": "string | null"
11982
+ "text": "MouseEvent"
11708
11983
  }
11709
11984
  }
11710
11985
  ]
11711
11986
  },
11712
11987
  {
11713
11988
  "kind": "method",
11714
- "name": "createDismissEvent",
11715
- "privacy": "private",
11989
+ "name": "handleClick",
11990
+ "privacy": "protected",
11716
11991
  "return": {
11717
11992
  "type": {
11718
- "text": "() => void"
11993
+ "text": "void"
11719
11994
  }
11720
11995
  },
11721
11996
  "parameters": [
11722
11997
  {
11723
- "name": "ripple",
11724
- "type": {
11725
- "text": "HTMLElement"
11726
- }
11727
- },
11728
- {
11729
- "name": "releaseEventName",
11730
- "type": {
11731
- "text": "string"
11732
- }
11733
- }
11734
- ]
11735
- },
11736
- {
11737
- "kind": "method",
11738
- "name": "_setElementSquareSizeAndCenter",
11739
- "privacy": "private",
11740
- "static": true,
11741
- "parameters": [
11742
- {
11743
- "name": "element",
11744
- "type": {
11745
- "text": "HTMLElement"
11746
- }
11747
- },
11748
- {
11749
- "name": "size",
11998
+ "name": "_",
11750
11999
  "type": {
11751
- "text": "number"
12000
+ "text": "UIEvent"
11752
12001
  }
11753
12002
  }
11754
12003
  ]
@@ -11761,335 +12010,137 @@
11761
12010
  "text": "boolean"
11762
12011
  },
11763
12012
  "default": "false",
11764
- "description": "Disables the ripple.",
12013
+ "description": "Whether the button is disabled or not.",
11765
12014
  "fieldName": "disabled"
12015
+ },
12016
+ {
12017
+ "name": "href",
12018
+ "type": {
12019
+ "text": "string | undefined"
12020
+ },
12021
+ "description": "The URL that the link button points to.",
12022
+ "fieldName": "href"
12023
+ },
12024
+ {
12025
+ "name": "target",
12026
+ "type": {
12027
+ "text": "string | undefined"
12028
+ },
12029
+ "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
12030
+ "fieldName": "target"
12031
+ },
12032
+ {
12033
+ "name": "name",
12034
+ "type": {
12035
+ "text": "string | undefined"
12036
+ },
12037
+ "fieldName": "name"
11766
12038
  }
11767
12039
  ],
11768
12040
  "superclass": {
11769
12041
  "name": "LitElement",
11770
12042
  "package": "lit"
11771
12043
  },
11772
- "tagName": "u-ripple",
11773
12044
  "customElement": true
11774
12045
  }
11775
12046
  ],
11776
12047
  "exports": [
11777
12048
  {
11778
12049
  "kind": "js",
11779
- "name": "UmRipple",
11780
- "declaration": {
11781
- "name": "UmRipple",
11782
- "module": "src/ripple/ripple.ts"
11783
- }
11784
- },
11785
- {
11786
- "kind": "custom-element-definition",
11787
- "name": "u-ripple",
12050
+ "name": "UmButtonWrapper",
11788
12051
  "declaration": {
11789
- "name": "UmRipple",
11790
- "module": "src/ripple/ripple.ts"
12052
+ "name": "UmButtonWrapper",
12053
+ "module": "src/shared/button-wrapper.ts"
11791
12054
  }
11792
12055
  }
11793
12056
  ]
11794
12057
  },
11795
12058
  {
11796
12059
  "kind": "javascript-module",
11797
- "path": "src/switch/switch-list-item.ts",
12060
+ "path": "src/shared/compare-text.ts",
11798
12061
  "declarations": [
11799
12062
  {
11800
- "kind": "class",
11801
- "description": "",
11802
- "name": "UmSwitchListItem",
11803
- "mixins": [
11804
- {
11805
- "name": "mixinSelectionControlListItem",
11806
- "module": "/src/shared/selection-control/selection-control-list-item.js"
12063
+ "kind": "function",
12064
+ "name": "normalizedStartsWith",
12065
+ "return": {
12066
+ "type": {
12067
+ "text": "boolean"
11807
12068
  }
11808
- ],
11809
- "superclass": {
11810
- "name": "UmSwitch",
11811
- "module": "/src/switch/switch.js"
11812
12069
  },
11813
- "tagName": "u-switch-list-item",
11814
- "customElement": true,
11815
- "members": [
11816
- {
11817
- "kind": "field",
11818
- "name": "styles",
11819
- "type": {
11820
- "text": "array"
11821
- },
11822
- "static": true,
11823
- "default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`:host {\n --u-list-item-block-padding: 0;\n display: block;\n }`\n ]",
11824
- "inheritedFrom": {
11825
- "name": "mixinSelectionControlListItem",
11826
- "module": "src/shared/selection-control/selection-control-list-item.ts"
11827
- }
11828
- },
11829
- {
11830
- "kind": "method",
11831
- "name": "render",
11832
- "return": {
11833
- "type": {
11834
- "text": "HTMLTemplateResult"
11835
- }
11836
- },
11837
- "inheritedFrom": {
11838
- "name": "mixinSelectionControlListItem",
11839
- "module": "src/shared/selection-control/selection-control-list-item.ts"
11840
- }
11841
- },
11842
- {
11843
- "kind": "field",
11844
- "name": "renderRipple",
11845
- "type": {
11846
- "text": "boolean"
11847
- },
11848
- "privacy": "protected",
11849
- "default": "false",
11850
- "inheritedFrom": {
11851
- "name": "UmSelectionControl",
11852
- "module": "src/shared/selection-control/selection-control.ts"
11853
- }
11854
- },
11855
- {
11856
- "kind": "method",
11857
- "name": "renderIndicator",
11858
- "privacy": "protected",
11859
- "return": {
11860
- "type": {
11861
- "text": "HTMLTemplateResult"
11862
- }
11863
- },
11864
- "inheritedFrom": {
11865
- "name": "UmSelectionControl",
11866
- "module": "src/shared/selection-control/selection-control.ts"
11867
- }
11868
- },
11869
- {
11870
- "kind": "field",
11871
- "name": "formAssociated",
11872
- "type": {
11873
- "text": "boolean"
11874
- },
11875
- "static": true,
11876
- "default": "true",
11877
- "inheritedFrom": {
11878
- "name": "UmSelectionControl",
11879
- "module": "src/shared/selection-control/selection-control.ts"
11880
- }
11881
- },
11882
- {
11883
- "kind": "field",
11884
- "name": "elementInternals",
11885
- "type": {
11886
- "text": "ElementInternals"
11887
- },
11888
- "privacy": "protected",
11889
- "inheritedFrom": {
11890
- "name": "UmSelectionControl",
11891
- "module": "src/shared/selection-control/selection-control.ts"
11892
- }
11893
- },
11894
- {
11895
- "kind": "field",
11896
- "name": "name",
11897
- "type": {
11898
- "text": "string | undefined"
11899
- },
11900
- "default": "''",
11901
- "attribute": "name",
11902
- "inheritedFrom": {
11903
- "name": "UmSelectionControl",
11904
- "module": "src/shared/selection-control/selection-control.ts"
11905
- }
11906
- },
11907
- {
11908
- "kind": "field",
11909
- "name": "disabled",
11910
- "type": {
11911
- "text": "boolean"
11912
- },
11913
- "default": "false",
11914
- "attribute": "disabled",
11915
- "reflects": true,
11916
- "inheritedFrom": {
11917
- "name": "UmSelectionControl",
11918
- "module": "src/shared/selection-control/selection-control.ts"
11919
- }
11920
- },
11921
- {
11922
- "kind": "field",
11923
- "name": "input",
11924
- "type": {
11925
- "text": "HTMLInputElement"
11926
- },
11927
- "inheritedFrom": {
11928
- "name": "UmSelectionControl",
11929
- "module": "src/shared/selection-control/selection-control.ts"
11930
- }
11931
- },
11932
- {
11933
- "kind": "field",
11934
- "name": "form",
11935
- "type": {
11936
- "text": "HTMLFormElement | null"
11937
- },
11938
- "inheritedFrom": {
11939
- "name": "UmSelectionControl",
11940
- "module": "src/shared/selection-control/selection-control.ts"
11941
- }
11942
- },
11943
- {
11944
- "kind": "field",
11945
- "name": "#checked",
11946
- "privacy": "private",
11947
- "type": {
11948
- "text": "boolean"
11949
- },
11950
- "default": "false",
11951
- "inheritedFrom": {
11952
- "name": "UmSelectionControl",
11953
- "module": "src/shared/selection-control/selection-control.ts"
11954
- }
11955
- },
11956
- {
11957
- "kind": "field",
11958
- "name": "inputType",
11959
- "type": {
11960
- "text": "'checkbox' | 'radio'"
11961
- },
11962
- "privacy": "protected",
11963
- "default": "'checkbox'",
11964
- "inheritedFrom": {
11965
- "name": "UmSelectionControl",
11966
- "module": "src/shared/selection-control/selection-control.ts"
11967
- }
11968
- },
12070
+ "parameters": [
11969
12071
  {
11970
- "kind": "field",
11971
- "name": "value",
12072
+ "name": "text",
11972
12073
  "type": {
11973
- "text": "string"
11974
- },
11975
- "default": "'on'",
11976
- "description": "The element value to use in form submission when checked.",
11977
- "attribute": "value",
11978
- "inheritedFrom": {
11979
- "name": "UmSelectionControl",
11980
- "module": "src/shared/selection-control/selection-control.ts"
11981
- }
11982
- },
11983
- {
11984
- "kind": "field",
11985
- "name": "checked",
11986
- "attribute": "checked",
11987
- "inheritedFrom": {
11988
- "name": "UmSelectionControl",
11989
- "module": "src/shared/selection-control/selection-control.ts"
12074
+ "text": "string | null"
11990
12075
  }
11991
12076
  },
11992
12077
  {
11993
- "kind": "field",
11994
- "name": "_checkedAttribute",
12078
+ "name": "term",
11995
12079
  "type": {
11996
- "text": "boolean"
11997
- },
11998
- "privacy": "private",
11999
- "default": "false",
12000
- "attribute": "checked",
12001
- "inheritedFrom": {
12002
- "name": "UmSelectionControl",
12003
- "module": "src/shared/selection-control/selection-control.ts"
12004
- }
12005
- },
12006
- {
12007
- "kind": "method",
12008
- "name": "#handleClick",
12009
- "parameters": [
12010
- {
12011
- "name": "e",
12012
- "type": {
12013
- "text": "Event"
12014
- }
12015
- }
12016
- ],
12017
- "inheritedFrom": {
12018
- "name": "UmSelectionControl",
12019
- "module": "src/shared/selection-control/selection-control.ts"
12080
+ "text": "string | null"
12020
12081
  }
12021
12082
  }
12022
- ],
12023
- "attributes": [
12024
- {
12025
- "name": "name",
12026
- "type": {
12027
- "text": "string | undefined"
12028
- },
12029
- "default": "''",
12030
- "fieldName": "name",
12031
- "inheritedFrom": {
12032
- "name": "UmSelectionControl",
12033
- "module": "src/shared/selection-control/selection-control.ts"
12034
- }
12035
- },
12036
- {
12037
- "name": "disabled",
12038
- "type": {
12039
- "text": "boolean"
12040
- },
12041
- "default": "false",
12042
- "fieldName": "disabled",
12043
- "inheritedFrom": {
12044
- "name": "UmSelectionControl",
12045
- "module": "src/shared/selection-control/selection-control.ts"
12046
- }
12047
- },
12048
- {
12049
- "name": "value",
12050
- "type": {
12051
- "text": "string"
12052
- },
12053
- "default": "'on'",
12054
- "description": "The element value to use in form submission when checked.",
12055
- "fieldName": "value",
12056
- "inheritedFrom": {
12057
- "name": "UmSelectionControl",
12058
- "module": "src/shared/selection-control/selection-control.ts"
12059
- }
12060
- },
12083
+ ]
12084
+ }
12085
+ ],
12086
+ "exports": [
12087
+ {
12088
+ "kind": "js",
12089
+ "name": "normalizedStartsWith",
12090
+ "declaration": {
12091
+ "name": "normalizedStartsWith",
12092
+ "module": "src/shared/compare-text.ts"
12093
+ }
12094
+ }
12095
+ ]
12096
+ },
12097
+ {
12098
+ "kind": "javascript-module",
12099
+ "path": "src/shared/extract-template-html.ts",
12100
+ "declarations": [
12101
+ {
12102
+ "kind": "function",
12103
+ "name": "extractTemplateHtml",
12104
+ "parameters": [
12061
12105
  {
12062
- "name": "checked",
12063
- "fieldName": "_checkedAttribute",
12106
+ "name": "template",
12064
12107
  "type": {
12065
- "text": "boolean"
12066
- },
12067
- "default": "false",
12068
- "inheritedFrom": {
12069
- "name": "UmSelectionControl",
12070
- "module": "src/shared/selection-control/selection-control.ts"
12108
+ "text": "HTMLTemplateElement"
12071
12109
  }
12072
12110
  }
12073
- ],
12074
- "events": [
12111
+ ]
12112
+ }
12113
+ ],
12114
+ "exports": [
12115
+ {
12116
+ "kind": "js",
12117
+ "name": "extractTemplateHtml",
12118
+ "declaration": {
12119
+ "name": "extractTemplateHtml",
12120
+ "module": "src/shared/extract-template-html.ts"
12121
+ }
12122
+ }
12123
+ ]
12124
+ },
12125
+ {
12126
+ "kind": "javascript-module",
12127
+ "path": "src/shared/mixin-attribute-properties.ts",
12128
+ "declarations": [
12129
+ {
12130
+ "kind": "mixin",
12131
+ "description": "",
12132
+ "name": "mixinAttributeProperties",
12133
+ "parameters": [
12075
12134
  {
12076
- "name": "input",
12135
+ "name": "base",
12077
12136
  "type": {
12078
- "text": "InputEvent"
12079
- },
12080
- "inheritedFrom": {
12081
- "name": "UmSelectionControl",
12082
- "module": "src/shared/selection-control/selection-control.ts"
12137
+ "text": "T"
12083
12138
  }
12084
12139
  },
12085
12140
  {
12086
- "name": "change",
12141
+ "name": "properties",
12087
12142
  "type": {
12088
- "text": "Event"
12089
- },
12090
- "inheritedFrom": {
12091
- "name": "UmSelectionControl",
12092
- "module": "src/shared/selection-control/selection-control.ts"
12143
+ "text": "string[]"
12093
12144
  }
12094
12145
  }
12095
12146
  ]
@@ -12098,30 +12149,61 @@
12098
12149
  "exports": [
12099
12150
  {
12100
12151
  "kind": "js",
12101
- "name": "UmSwitchListItem",
12152
+ "name": "mixinAttributeProperties",
12102
12153
  "declaration": {
12103
- "name": "UmSwitchListItem",
12104
- "module": "src/switch/switch-list-item.ts"
12154
+ "name": "mixinAttributeProperties",
12155
+ "module": "src/shared/mixin-attribute-properties.ts"
12105
12156
  }
12106
- },
12157
+ }
12158
+ ]
12159
+ },
12160
+ {
12161
+ "kind": "javascript-module",
12162
+ "path": "src/shared/mixin.ts",
12163
+ "declarations": [],
12164
+ "exports": []
12165
+ },
12166
+ {
12167
+ "kind": "javascript-module",
12168
+ "path": "src/shared/normalize-text.ts",
12169
+ "declarations": [
12107
12170
  {
12108
- "kind": "custom-element-definition",
12109
- "name": "u-switch-list-item",
12171
+ "kind": "function",
12172
+ "name": "normalizeText",
12173
+ "return": {
12174
+ "type": {
12175
+ "text": "string"
12176
+ }
12177
+ },
12178
+ "parameters": [
12179
+ {
12180
+ "name": "text",
12181
+ "type": {
12182
+ "text": "string | null"
12183
+ }
12184
+ }
12185
+ ]
12186
+ }
12187
+ ],
12188
+ "exports": [
12189
+ {
12190
+ "kind": "js",
12191
+ "name": "normalizeText",
12110
12192
  "declaration": {
12111
- "name": "UmSwitchListItem",
12112
- "module": "src/switch/switch-list-item.ts"
12193
+ "name": "normalizeText",
12194
+ "module": "src/shared/normalize-text.ts"
12113
12195
  }
12114
12196
  }
12115
12197
  ]
12116
12198
  },
12117
12199
  {
12118
12200
  "kind": "javascript-module",
12119
- "path": "src/switch/switch.styles.ts",
12201
+ "path": "src/snackbar/snackbar.styles.ts",
12120
12202
  "declarations": [
12121
12203
  {
12122
12204
  "kind": "variable",
12123
12205
  "name": "styles",
12124
- "default": "css `\n :host {\n --_state-layer-padding: var(--u-switch-state-layer-padding, 4px);\n --_input-size: calc(var(--_width) - var(--_state-layer-padding) * 2);\n --_indicator-color: var(--u-switch-indicator-unselected-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n display: inline-block;\n vertical-align: middle;\n }\n\n .container {\n cursor: pointer;\n position: relative;\n width: var(--_width);\n height: var(--_height);\n padding: var(--_state-layer-padding);\n border-radius: var(--u-shape-corner-full, 9999px);\n }\n\n :host([hide-state-layer]) .container {\n width: var(--_indicator-size);\n height: var(--_indicator-size);\n padding: 0;\n }\n :host([hide-state-layer]) u-ripple {\n display: none;\n }\n\n input {\n cursor: pointer;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n border-radius: inherit;\n appearance: none;\n pointer-events: none;\n }\n\n u-ripple {\n padding: var(--_state-layer-padding);\n }\n\n .indicator-container {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n inset: 0;\n pointer-events: none;\n }\n\n input:checked ~ .indicator-container {\n --_indicator-color: var(--u-switch-indicator-selected-color, var(--u-color-primary, rgb(103, 80, 164)));\n }\n\n :host([disabled]) {\n opacity: var(--u-switch-disabled-state-opacity, 0.38);\n }\n :host([disabled]) input,\n :host([disabled]) .container {\n cursor: default;\n }\n :host([disabled]) .indicator-container {\n --_indicator-color: var(--u-switch-indicator-disabled-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n }\n\n :host {\n --_width: 3.25rem;\n --_height: 2rem;\n --_state-layer-padding: 0;\n --_selected-track-background: var(--u-switch-track-bg-color, var(--u-color-primary, rgb(103, 80, 164)));\n --_state-layer-size: var(--u-switch-state-layer-size, 2.5rem);\n --_unselected-color: var(--u-switch-track-outline-color, var(--u-color-outline, rgb(121, 116, 126)));\n --_unselected-handle-size: var(--u-swich-unselected-handle-size, 1rem);\n --_selected-handle-size: var(--u-swich-unselected-handle-size, 1.5rem);\n --_active-handle-size: var(--u-swich-unselected-handle-size, 1.75rem);\n }\n\n .indicator-container {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: var(--_height);\n transition: width 200ms;\n }\n\n .state-layer,\n .indicator {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .indicator {\n width: var(--_height);\n height: var(--_height);\n }\n\n .state-layer {\n flex-shrink: 0;\n width: var(--_state-layer-size);\n height: var(--_state-layer-size);\n border-radius: var(--u-shape-corner-full, 9999px);\n }\n\n .handle {\n width: var(--_unselected-handle-size);\n height: var(--_unselected-handle-size);\n background-color: var(--u-switch-unselected-handle-color, var(--_unselected-color));\n border-radius: var(--u-switch-handle-shape-corner, var(--u-shape-corner-full, 9999px));\n transition: background 200ms, width 200ms, height 200ms;\n }\n\n input {\n border: var(--u-switch-track-width, 0.125rem) solid var(--u-switch-unselected-track-outline-color, var(--_unselected-color));\n background-color: var(--u-switch-unselected-track-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n transition: background 200ms, border-color 200ms;\n }\n input:checked {\n background-color: var(--_selected-track-background);\n border-color: var(--_selected-track-background);\n }\n input:checked ~ .indicator-container {\n width: 100%;\n }\n input:checked ~ .indicator-container .handle {\n width: var(--_selected-handle-size);\n height: var(--_selected-handle-size);\n background-color: var(--u-switch-selected-handle-color, var(--u-color-on-primary, rgb(255, 255, 255)));\n }\n\n @media (hover: hover) {\n :host(:not([disabled]):hover) .state-layer {\n background-color: rgba(var(--u-color-on-surface-rgb, ), var(--u-switch-state-layer-hover-opacity, var(--u-state-hover-opacity, 0.08)));\n }\n }\n :host(:not([disabled]):active) .indicator-container .handle {\n width: var(--_active-handle-size);\n height: var(--_active-handle-size);\n }\n`"
12206
+ "default": "css `\n :host {\n --u-elevation-level: var(--u-snackbar-elevation-level, 3);\n --_snackbar-margin: var(--u-snackbar-margin, var(--u-spacing-medium, 16px));\n position: fixed;\n inset-inline: 0;\n inset-block-end: 0;\n padding: var(--_snackbar-margin);\n z-index: var(--u-snackbar-z-index, 1070);\n display: flex;\n justify-content: center;\n }\n\n .snackbar {\n display: flex;\n align-items: center;\n min-height: var(--u-snackbar-height, 48px);\n color: var(--u-snackbar-text-color, var(--u-color-on-inverse-surface, rgb(245, 239, 247)));\n background-color: var(--u-snackbar-bg-color, var(--u-color-inverse-surface, rgb(50, 47, 53)));\n border-radius: var(--u-snackbar-shape, var(--u-shape-corner-extra-small, 4px));\n animation-name: snackbar-fade-in;\n animation-duration: 450ms;\n animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n animation-fill-mode: forwards;\n min-width: var(--u-snackbar-min-width, 100%);\n max-width: var(--u-snackbar-max-width, 100%);\n }\n .snackbar.dismiss {\n animation-name: snackbar-fade-out;\n }\n\n u-button {\n color: var(--u-color-inverse-primary, );\n margin-inline: var(--u-snackbar-text-button-margin, var(--u-spacing-small, 8px));\n }\n\n u-icon-button {\n color: var(--u-color-on-inverse-surface, rgb(245, 239, 247));\n margin-inline: var(--u-snackbar-close-button-margin, var(--u-spacing-extra-small, 4px));\n }\n\n .label {\n flex: 1;\n overflow: hidden;\n color: var(--u-on-inverse-surface-color);\n padding: var(--u-snackbar-text-margin, var(--u-spacing-medium, 16px));\n line-height: 18px;\n }\n\n @media (min-width: 840px) {\n :host {\n --_snackbar-margin: var(--u-snackbar-margin, var(--u-spacing-large, 24px));\n }\n .snackbar {\n min-width: var(--u-snackbar-min-width, 288px);\n max-width: var(--u-snackbar-max-width, 568px);\n }\n }\n @keyframes snackbar-fade-in {\n 0% {\n opacity: 0;\n transform: scale3d(0.5, 0.5, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n }\n @keyframes snackbar-fade-out {\n 0% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n 100% {\n opacity: 0;\n transform: scale3d(0.5, 0.5, 1);\n }\n }\n`"
12125
12207
  }
12126
12208
  ],
12127
12209
  "exports": [
@@ -12130,650 +12212,559 @@
12130
12212
  "name": "styles",
12131
12213
  "declaration": {
12132
12214
  "name": "styles",
12133
- "module": "src/switch/switch.styles.ts"
12215
+ "module": "src/snackbar/snackbar.styles.ts"
12134
12216
  }
12135
12217
  }
12136
12218
  ]
12137
12219
  },
12138
12220
  {
12139
12221
  "kind": "javascript-module",
12140
- "path": "src/switch/switch.ts",
12222
+ "path": "src/snackbar/snackbar.ts",
12141
12223
  "declarations": [
12142
12224
  {
12143
12225
  "kind": "class",
12144
12226
  "description": "",
12145
- "name": "UmSwitch",
12227
+ "name": "UmSnackbar",
12146
12228
  "members": [
12147
12229
  {
12148
12230
  "kind": "field",
12149
- "name": "renderRipple",
12231
+ "name": "label",
12150
12232
  "type": {
12151
- "text": "boolean"
12233
+ "text": "string"
12152
12234
  },
12153
- "privacy": "protected",
12154
- "default": "false",
12155
- "inheritedFrom": {
12156
- "name": "UmSelectionControl",
12157
- "module": "src/shared/selection-control/selection-control.ts"
12158
- }
12235
+ "default": "''",
12236
+ "attribute": "label",
12237
+ "reflects": true
12159
12238
  },
12160
12239
  {
12161
- "kind": "method",
12162
- "name": "renderIndicator",
12163
- "privacy": "protected",
12164
- "return": {
12165
- "type": {
12166
- "text": "HTMLTemplateResult"
12167
- }
12240
+ "kind": "field",
12241
+ "name": "buttonLabel",
12242
+ "type": {
12243
+ "text": "string"
12168
12244
  },
12169
- "inheritedFrom": {
12170
- "name": "UmSelectionControl",
12171
- "module": "src/shared/selection-control/selection-control.ts"
12172
- }
12245
+ "default": "''",
12246
+ "attribute": "buttonLabel",
12247
+ "reflects": true
12173
12248
  },
12174
12249
  {
12175
12250
  "kind": "field",
12176
- "name": "formAssociated",
12251
+ "name": "showClose",
12177
12252
  "type": {
12178
12253
  "text": "boolean"
12179
12254
  },
12180
- "static": true,
12181
- "default": "true",
12182
- "inheritedFrom": {
12183
- "name": "UmSelectionControl",
12184
- "module": "src/shared/selection-control/selection-control.ts"
12185
- }
12255
+ "default": "false",
12256
+ "attribute": "show-close",
12257
+ "reflects": true
12186
12258
  },
12187
12259
  {
12188
12260
  "kind": "field",
12189
- "name": "elementInternals",
12261
+ "name": "dismissed",
12190
12262
  "type": {
12191
- "text": "ElementInternals"
12263
+ "text": "boolean"
12192
12264
  },
12193
- "privacy": "protected",
12194
- "inheritedFrom": {
12195
- "name": "UmSelectionControl",
12196
- "module": "src/shared/selection-control/selection-control.ts"
12197
- }
12265
+ "default": "false",
12266
+ "attribute": "dismissed",
12267
+ "reflects": true
12198
12268
  },
12199
12269
  {
12200
12270
  "kind": "field",
12201
- "name": "name",
12271
+ "name": "duration",
12202
12272
  "type": {
12203
- "text": "string | undefined"
12273
+ "text": "SnackbarDuration"
12204
12274
  },
12205
- "default": "''",
12206
- "attribute": "name",
12207
- "inheritedFrom": {
12208
- "name": "UmSelectionControl",
12209
- "module": "src/shared/selection-control/selection-control.ts"
12210
- }
12275
+ "privacy": "private"
12211
12276
  },
12212
12277
  {
12213
12278
  "kind": "field",
12214
- "name": "disabled",
12279
+ "name": "snackbar",
12215
12280
  "type": {
12216
- "text": "boolean"
12281
+ "text": "HTMLElement"
12217
12282
  },
12218
- "default": "false",
12219
- "attribute": "disabled",
12220
- "reflects": true,
12221
- "inheritedFrom": {
12222
- "name": "UmSelectionControl",
12223
- "module": "src/shared/selection-control/selection-control.ts"
12224
- }
12283
+ "privacy": "private"
12225
12284
  },
12226
12285
  {
12227
- "kind": "field",
12228
- "name": "input",
12229
- "type": {
12230
- "text": "HTMLInputElement"
12231
- },
12232
- "inheritedFrom": {
12233
- "name": "UmSelectionControl",
12234
- "module": "src/shared/selection-control/selection-control.ts"
12286
+ "kind": "method",
12287
+ "name": "renderButton",
12288
+ "privacy": "private"
12289
+ },
12290
+ {
12291
+ "kind": "method",
12292
+ "name": "renderCloseButton",
12293
+ "privacy": "private"
12294
+ },
12295
+ {
12296
+ "kind": "method",
12297
+ "name": "dismiss",
12298
+ "return": {
12299
+ "type": {
12300
+ "text": "void"
12301
+ }
12235
12302
  }
12236
12303
  },
12237
12304
  {
12238
12305
  "kind": "field",
12239
- "name": "form",
12306
+ "name": "_queue",
12240
12307
  "type": {
12241
- "text": "HTMLFormElement | null"
12308
+ "text": "UmSnackbar[]"
12242
12309
  },
12243
- "inheritedFrom": {
12244
- "name": "UmSelectionControl",
12245
- "module": "src/shared/selection-control/selection-control.ts"
12246
- }
12310
+ "privacy": "private",
12311
+ "static": true,
12312
+ "default": "[]"
12247
12313
  },
12248
12314
  {
12249
12315
  "kind": "field",
12250
- "name": "#checked",
12251
- "privacy": "private",
12316
+ "name": "_consuming",
12252
12317
  "type": {
12253
12318
  "text": "boolean"
12254
12319
  },
12255
- "default": "false",
12256
- "inheritedFrom": {
12257
- "name": "UmSelectionControl",
12258
- "module": "src/shared/selection-control/selection-control.ts"
12259
- }
12320
+ "privacy": "private",
12321
+ "static": true
12260
12322
  },
12261
12323
  {
12262
- "kind": "field",
12263
- "name": "inputType",
12264
- "type": {
12265
- "text": "'checkbox' | 'radio'"
12324
+ "kind": "method",
12325
+ "name": "show",
12326
+ "static": true,
12327
+ "return": {
12328
+ "type": {
12329
+ "text": "UmSnackbar"
12330
+ }
12266
12331
  },
12267
- "privacy": "protected",
12268
- "default": "'checkbox'",
12269
- "inheritedFrom": {
12270
- "name": "UmSelectionControl",
12271
- "module": "src/shared/selection-control/selection-control.ts"
12272
- }
12332
+ "parameters": [
12333
+ {
12334
+ "name": "label",
12335
+ "type": {
12336
+ "text": "string"
12337
+ }
12338
+ }
12339
+ ]
12273
12340
  },
12274
12341
  {
12275
- "kind": "field",
12276
- "name": "value",
12277
- "type": {
12278
- "text": "string"
12342
+ "kind": "method",
12343
+ "name": "show",
12344
+ "static": true,
12345
+ "return": {
12346
+ "type": {
12347
+ "text": "UmSnackbar"
12348
+ }
12349
+ },
12350
+ "parameters": [
12351
+ {
12352
+ "name": "config",
12353
+ "type": {
12354
+ "text": "SnackbarConfig"
12355
+ }
12356
+ }
12357
+ ]
12358
+ },
12359
+ {
12360
+ "kind": "method",
12361
+ "name": "show",
12362
+ "static": true,
12363
+ "return": {
12364
+ "type": {
12365
+ "text": "UmSnackbar"
12366
+ }
12279
12367
  },
12280
- "default": "'on'",
12281
- "description": "The element value to use in form submission when checked.",
12282
- "attribute": "value",
12283
- "inheritedFrom": {
12284
- "name": "UmSelectionControl",
12285
- "module": "src/shared/selection-control/selection-control.ts"
12286
- }
12368
+ "parameters": [
12369
+ {
12370
+ "name": "configOrLabel",
12371
+ "type": {
12372
+ "text": "SnackbarConfig | string"
12373
+ }
12374
+ }
12375
+ ]
12287
12376
  },
12288
12377
  {
12289
- "kind": "field",
12290
- "name": "checked",
12291
- "attribute": "checked",
12292
- "inheritedFrom": {
12293
- "name": "UmSelectionControl",
12294
- "module": "src/shared/selection-control/selection-control.ts"
12295
- }
12378
+ "kind": "method",
12379
+ "name": "consumeQueue",
12380
+ "privacy": "private",
12381
+ "static": true
12296
12382
  },
12297
12383
  {
12298
- "kind": "field",
12299
- "name": "_checkedAttribute",
12300
- "type": {
12301
- "text": "boolean"
12302
- },
12384
+ "kind": "method",
12385
+ "name": "showNext",
12303
12386
  "privacy": "private",
12304
- "default": "false",
12305
- "attribute": "checked",
12306
- "inheritedFrom": {
12307
- "name": "UmSelectionControl",
12308
- "module": "src/shared/selection-control/selection-control.ts"
12309
- }
12387
+ "static": true
12310
12388
  },
12311
12389
  {
12312
12390
  "kind": "method",
12313
- "name": "#handleClick",
12391
+ "name": "createSnackbar",
12392
+ "privacy": "private",
12393
+ "static": true,
12394
+ "return": {
12395
+ "type": {
12396
+ "text": "UmSnackbar"
12397
+ }
12398
+ },
12314
12399
  "parameters": [
12315
12400
  {
12316
- "name": "e",
12401
+ "name": "config",
12317
12402
  "type": {
12318
- "text": "Event"
12403
+ "text": "SnackbarConfig"
12319
12404
  }
12320
12405
  }
12321
- ],
12322
- "inheritedFrom": {
12323
- "name": "UmSelectionControl",
12324
- "module": "src/shared/selection-control/selection-control.ts"
12325
- }
12406
+ ]
12326
12407
  }
12327
12408
  ],
12328
- "superclass": {
12329
- "name": "UmSelectionControl",
12330
- "module": "/src/shared/selection-control/selection-control.js"
12331
- },
12332
- "tagName": "u-switch",
12333
- "customElement": true,
12334
12409
  "attributes": [
12335
12410
  {
12336
- "name": "name",
12411
+ "name": "label",
12337
12412
  "type": {
12338
- "text": "string | undefined"
12413
+ "text": "string"
12339
12414
  },
12340
12415
  "default": "''",
12341
- "fieldName": "name",
12342
- "inheritedFrom": {
12343
- "name": "UmSelectionControl",
12344
- "module": "src/shared/selection-control/selection-control.ts"
12345
- }
12346
- },
12347
- {
12348
- "name": "disabled",
12349
- "type": {
12350
- "text": "boolean"
12351
- },
12352
- "default": "false",
12353
- "fieldName": "disabled",
12354
- "inheritedFrom": {
12355
- "name": "UmSelectionControl",
12356
- "module": "src/shared/selection-control/selection-control.ts"
12357
- }
12416
+ "fieldName": "label"
12358
12417
  },
12359
12418
  {
12360
- "name": "value",
12419
+ "name": "buttonLabel",
12361
12420
  "type": {
12362
12421
  "text": "string"
12363
12422
  },
12364
- "default": "'on'",
12365
- "description": "The element value to use in form submission when checked.",
12366
- "fieldName": "value",
12367
- "inheritedFrom": {
12368
- "name": "UmSelectionControl",
12369
- "module": "src/shared/selection-control/selection-control.ts"
12370
- }
12423
+ "default": "''",
12424
+ "fieldName": "buttonLabel"
12371
12425
  },
12372
12426
  {
12373
- "name": "checked",
12374
- "fieldName": "_checkedAttribute",
12427
+ "name": "show-close",
12375
12428
  "type": {
12376
12429
  "text": "boolean"
12377
12430
  },
12378
12431
  "default": "false",
12379
- "inheritedFrom": {
12380
- "name": "UmSelectionControl",
12381
- "module": "src/shared/selection-control/selection-control.ts"
12382
- }
12383
- }
12384
- ],
12385
- "events": [
12386
- {
12387
- "name": "input",
12388
- "type": {
12389
- "text": "InputEvent"
12390
- },
12391
- "inheritedFrom": {
12392
- "name": "UmSelectionControl",
12393
- "module": "src/shared/selection-control/selection-control.ts"
12394
- }
12432
+ "fieldName": "showClose"
12395
12433
  },
12396
12434
  {
12397
- "name": "change",
12435
+ "name": "dismissed",
12398
12436
  "type": {
12399
- "text": "Event"
12437
+ "text": "boolean"
12400
12438
  },
12401
- "inheritedFrom": {
12402
- "name": "UmSelectionControl",
12403
- "module": "src/shared/selection-control/selection-control.ts"
12404
- }
12439
+ "default": "false",
12440
+ "fieldName": "dismissed"
12405
12441
  }
12406
- ]
12442
+ ],
12443
+ "superclass": {
12444
+ "name": "LitElement",
12445
+ "package": "lit"
12446
+ },
12447
+ "tagName": "u-snackbar",
12448
+ "customElement": true
12407
12449
  }
12408
12450
  ],
12409
12451
  "exports": [
12410
12452
  {
12411
12453
  "kind": "js",
12412
- "name": "UmSwitch",
12454
+ "name": "UmSnackbar",
12413
12455
  "declaration": {
12414
- "name": "UmSwitch",
12415
- "module": "src/switch/switch.ts"
12456
+ "name": "UmSnackbar",
12457
+ "module": "src/snackbar/snackbar.ts"
12416
12458
  }
12417
12459
  },
12418
12460
  {
12419
12461
  "kind": "custom-element-definition",
12420
- "name": "u-switch",
12421
- "declaration": {
12422
- "name": "UmSwitch",
12423
- "module": "src/switch/switch.ts"
12424
- }
12425
- }
12426
- ]
12427
- },
12428
- {
12429
- "kind": "javascript-module",
12430
- "path": "src/shared/base.styles.ts",
12431
- "declarations": [
12432
- {
12433
- "kind": "variable",
12434
- "name": "styles",
12435
- "default": "css `\n :host,\n * {\n --_focus-ring-outline-offset: var(--u-focus-ring-outline-offset, 2px);\n font-family: var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n box-sizing: border-box;\n outline: 0;\n }\n\n :host(.force-focus-ring) .focus-ring,\n .focus-ring:focus-visible {\n --_color-primary: var(--u-color-primary, rgb(103, 80, 164));\n animation: u-focus-pulse 500ms ease;\n animation-fill-mode: forwards;\n outline-offset: var(--_focus-ring-outline-offset);\n }\n\n @keyframes u-focus-pulse {\n 0% {\n outline: 0 solid var(--_color-primary);\n }\n 50% {\n outline: 6px solid var(--_color-primary);\n }\n 100% {\n outline: 4px solid var(--_color-primary);\n }\n }\n`"
12436
- }
12437
- ],
12438
- "exports": [
12439
- {
12440
- "kind": "js",
12441
- "name": "styles",
12442
- "declaration": {
12443
- "name": "styles",
12444
- "module": "src/shared/base.styles.ts"
12445
- }
12446
- }
12447
- ]
12448
- },
12449
- {
12450
- "kind": "javascript-module",
12451
- "path": "src/shared/button-wrapper.styles.ts",
12452
- "declarations": [
12453
- {
12454
- "kind": "variable",
12455
- "name": "styles",
12456
- "default": "css `\n :host {\n --_color-primary: var(--u-color-primary, rgb(103, 80, 164));\n -webkit-tap-highlight-color: transparent;\n --u-elevation-level: 0;\n position: relative;\n display: inline-block;\n font-family: var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n appearance: none !important;\n }\n\n :host([disabled]) {\n --u-elevation-level: 0 !important;\n background-color: var(--u-button-disabled-bg-color, rgba(var(--u-color-on-surface-rgb, 29, 27, 32), var(--u-button-disabled-background-opacity, 0.12))) !important;\n color: var(--u-button-disabled-text-color, rgba(var(--u-color-on-surface-rgb, 29, 27, 32), var(--u-button-disabled-color, 0.38))) !important;\n }\n\n :host([disabled]) .button {\n cursor: default;\n }\n\n * {\n color: inherit;\n }\n\n u-elevation {\n z-index: -1;\n }\n\n .button {\n cursor: pointer;\n position: absolute;\n inset-inline-start: 0;\n inset-block-start: 0;\n width: 100%;\n height: 100%;\n font-family: inherit;\n border-radius: inherit;\n color: inherit;\n border: none;\n margin: 0;\n padding: 0;\n text-align: center;\n white-space: nowrap;\n background: transparent;\n user-select: none;\n text-decoration: none;\n outline: 0;\n z-index: 0;\n }\n\n .content {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n border-radius: inherit;\n width: 100%;\n height: 100%;\n }\n`"
12457
- }
12458
- ],
12459
- "exports": [
12460
- {
12461
- "kind": "js",
12462
- "name": "styles",
12462
+ "name": "u-snackbar",
12463
12463
  "declaration": {
12464
- "name": "styles",
12465
- "module": "src/shared/button-wrapper.styles.ts"
12464
+ "name": "UmSnackbar",
12465
+ "module": "src/snackbar/snackbar.ts"
12466
12466
  }
12467
12467
  }
12468
12468
  ]
12469
12469
  },
12470
12470
  {
12471
12471
  "kind": "javascript-module",
12472
- "path": "src/shared/button-wrapper.ts",
12472
+ "path": "src/switch/switch-list-item.ts",
12473
12473
  "declarations": [
12474
12474
  {
12475
12475
  "kind": "class",
12476
12476
  "description": "",
12477
- "name": "UmButtonWrapper",
12477
+ "name": "UmSwitchListItem",
12478
+ "mixins": [
12479
+ {
12480
+ "name": "mixinSelectionControlListItem",
12481
+ "module": "/src/shared/selection-control/selection-control-list-item.js"
12482
+ }
12483
+ ],
12484
+ "superclass": {
12485
+ "name": "UmSwitch",
12486
+ "module": "/src/switch/switch.js"
12487
+ },
12488
+ "tagName": "u-switch-list-item",
12489
+ "customElement": true,
12478
12490
  "members": [
12479
12491
  {
12480
12492
  "kind": "field",
12481
- "name": "disabled",
12493
+ "name": "styles",
12494
+ "type": {
12495
+ "text": "array"
12496
+ },
12497
+ "static": true,
12498
+ "default": "[\n (base as unknown as typeof LitElement).styles ?? [],\n css`:host {\n --u-list-item-block-padding: 0;\n display: block;\n }`\n ]",
12499
+ "inheritedFrom": {
12500
+ "name": "mixinSelectionControlListItem",
12501
+ "module": "src/shared/selection-control/selection-control-list-item.ts"
12502
+ }
12503
+ },
12504
+ {
12505
+ "kind": "method",
12506
+ "name": "render",
12507
+ "return": {
12508
+ "type": {
12509
+ "text": "HTMLTemplateResult"
12510
+ }
12511
+ },
12512
+ "inheritedFrom": {
12513
+ "name": "mixinSelectionControlListItem",
12514
+ "module": "src/shared/selection-control/selection-control-list-item.ts"
12515
+ }
12516
+ },
12517
+ {
12518
+ "kind": "field",
12519
+ "name": "renderRipple",
12520
+ "type": {
12521
+ "text": "boolean"
12522
+ },
12523
+ "privacy": "protected",
12524
+ "default": "false",
12525
+ "inheritedFrom": {
12526
+ "name": "UmSelectionControl",
12527
+ "module": "src/shared/selection-control/selection-control.ts"
12528
+ }
12529
+ },
12530
+ {
12531
+ "kind": "method",
12532
+ "name": "renderIndicator",
12533
+ "privacy": "protected",
12534
+ "return": {
12535
+ "type": {
12536
+ "text": "HTMLTemplateResult"
12537
+ }
12538
+ },
12539
+ "inheritedFrom": {
12540
+ "name": "UmSelectionControl",
12541
+ "module": "src/shared/selection-control/selection-control.ts"
12542
+ }
12543
+ },
12544
+ {
12545
+ "kind": "field",
12546
+ "name": "formAssociated",
12482
12547
  "type": {
12483
12548
  "text": "boolean"
12484
12549
  },
12485
- "default": "false",
12486
- "description": "Whether the button is disabled or not.",
12487
- "attribute": "disabled",
12488
- "reflects": true
12550
+ "static": true,
12551
+ "default": "true",
12552
+ "inheritedFrom": {
12553
+ "name": "UmSelectionControl",
12554
+ "module": "src/shared/selection-control/selection-control.ts"
12555
+ }
12489
12556
  },
12490
12557
  {
12491
12558
  "kind": "field",
12492
- "name": "renderRipple",
12559
+ "name": "elementInternals",
12493
12560
  "type": {
12494
- "text": "boolean"
12561
+ "text": "ElementInternals"
12495
12562
  },
12496
- "default": "true"
12563
+ "privacy": "protected",
12564
+ "inheritedFrom": {
12565
+ "name": "UmSelectionControl",
12566
+ "module": "src/shared/selection-control/selection-control.ts"
12567
+ }
12497
12568
  },
12498
12569
  {
12499
12570
  "kind": "field",
12500
- "name": "href",
12571
+ "name": "name",
12501
12572
  "type": {
12502
12573
  "text": "string | undefined"
12503
12574
  },
12504
- "description": "The URL that the link button points to.",
12505
- "attribute": "href"
12575
+ "default": "''",
12576
+ "attribute": "name",
12577
+ "inheritedFrom": {
12578
+ "name": "UmSelectionControl",
12579
+ "module": "src/shared/selection-control/selection-control.ts"
12580
+ }
12506
12581
  },
12507
12582
  {
12508
12583
  "kind": "field",
12509
- "name": "target",
12584
+ "name": "disabled",
12510
12585
  "type": {
12511
- "text": "string | undefined"
12586
+ "text": "boolean"
12512
12587
  },
12513
- "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
12514
- "attribute": "target"
12588
+ "default": "false",
12589
+ "attribute": "disabled",
12590
+ "reflects": true,
12591
+ "inheritedFrom": {
12592
+ "name": "UmSelectionControl",
12593
+ "module": "src/shared/selection-control/selection-control.ts"
12594
+ }
12515
12595
  },
12516
12596
  {
12517
12597
  "kind": "field",
12518
- "name": "name",
12598
+ "name": "input",
12519
12599
  "type": {
12520
- "text": "string | undefined"
12600
+ "text": "HTMLInputElement"
12521
12601
  },
12522
- "attribute": "name"
12602
+ "inheritedFrom": {
12603
+ "name": "UmSelectionControl",
12604
+ "module": "src/shared/selection-control/selection-control.ts"
12605
+ }
12523
12606
  },
12524
12607
  {
12525
12608
  "kind": "field",
12526
- "name": "buttonElement",
12609
+ "name": "form",
12527
12610
  "type": {
12528
- "text": "HTMLElement"
12611
+ "text": "HTMLFormElement | null"
12612
+ },
12613
+ "inheritedFrom": {
12614
+ "name": "UmSelectionControl",
12615
+ "module": "src/shared/selection-control/selection-control.ts"
12529
12616
  }
12530
12617
  },
12531
12618
  {
12532
12619
  "kind": "field",
12533
- "name": "ripple",
12620
+ "name": "#checked",
12621
+ "privacy": "private",
12534
12622
  "type": {
12535
- "text": "UmRipple"
12623
+ "text": "boolean"
12536
12624
  },
12537
- "privacy": "private"
12625
+ "default": "false",
12626
+ "inheritedFrom": {
12627
+ "name": "UmSelectionControl",
12628
+ "module": "src/shared/selection-control/selection-control.ts"
12629
+ }
12538
12630
  },
12539
12631
  {
12540
12632
  "kind": "field",
12541
- "name": "innerRole",
12633
+ "name": "inputType",
12542
12634
  "type": {
12543
- "text": "string | null"
12635
+ "text": "'checkbox' | 'radio'"
12544
12636
  },
12545
12637
  "privacy": "protected",
12546
- "default": "null"
12638
+ "default": "'checkbox'",
12639
+ "inheritedFrom": {
12640
+ "name": "UmSelectionControl",
12641
+ "module": "src/shared/selection-control/selection-control.ts"
12642
+ }
12547
12643
  },
12548
12644
  {
12549
12645
  "kind": "field",
12550
- "name": "pathname",
12646
+ "name": "value",
12551
12647
  "type": {
12552
12648
  "text": "string"
12649
+ },
12650
+ "default": "'on'",
12651
+ "description": "The element value to use in form submission when checked.",
12652
+ "attribute": "value",
12653
+ "inheritedFrom": {
12654
+ "name": "UmSelectionControl",
12655
+ "module": "src/shared/selection-control/selection-control.ts"
12553
12656
  }
12554
12657
  },
12555
12658
  {
12556
- "kind": "method",
12557
- "name": "renderButton",
12558
- "privacy": "private"
12559
- },
12560
- {
12561
- "kind": "method",
12562
- "name": "renderLink",
12563
- "privacy": "private"
12564
- },
12565
- {
12566
- "kind": "method",
12567
- "name": "renderContent",
12568
- "privacy": "protected",
12569
- "return": {
12570
- "type": {
12571
- "text": "HTMLTemplateResult"
12572
- }
12573
- }
12574
- },
12575
- {
12576
- "kind": "method",
12577
- "name": "focus"
12578
- },
12579
- {
12580
- "kind": "method",
12581
- "name": "blur"
12582
- },
12583
- {
12584
- "kind": "method",
12585
- "name": "getAriaLabel",
12586
- "privacy": "protected",
12587
- "return": {
12588
- "type": {
12589
- "text": "string | null"
12590
- }
12659
+ "kind": "field",
12660
+ "name": "checked",
12661
+ "attribute": "checked",
12662
+ "inheritedFrom": {
12663
+ "name": "UmSelectionControl",
12664
+ "module": "src/shared/selection-control/selection-control.ts"
12591
12665
  }
12592
12666
  },
12593
12667
  {
12594
- "kind": "method",
12595
- "name": "innerFocusHandler",
12668
+ "kind": "field",
12669
+ "name": "_checkedAttribute",
12670
+ "type": {
12671
+ "text": "boolean"
12672
+ },
12596
12673
  "privacy": "private",
12597
- "return": {
12598
- "type": {
12599
- "text": "void"
12600
- }
12674
+ "default": "false",
12675
+ "attribute": "checked",
12676
+ "inheritedFrom": {
12677
+ "name": "UmSelectionControl",
12678
+ "module": "src/shared/selection-control/selection-control.ts"
12601
12679
  }
12602
12680
  },
12603
12681
  {
12604
12682
  "kind": "method",
12605
- "name": "#innerClickHandler",
12606
- "return": {
12607
- "type": {
12608
- "text": "void"
12609
- }
12610
- },
12611
- "parameters": [
12612
- {
12613
- "name": "event",
12614
- "type": {
12615
- "text": "MouseEvent"
12616
- }
12617
- }
12618
- ]
12619
- },
12620
- {
12621
- "kind": "method",
12622
- "name": "handleClick",
12623
- "privacy": "protected",
12624
- "return": {
12625
- "type": {
12626
- "text": "void"
12627
- }
12628
- },
12683
+ "name": "#handleClick",
12629
12684
  "parameters": [
12630
12685
  {
12631
- "name": "_",
12686
+ "name": "e",
12632
12687
  "type": {
12633
- "text": "UIEvent"
12688
+ "text": "Event"
12634
12689
  }
12635
12690
  }
12636
- ]
12637
- }
12638
- ],
12639
- "attributes": [
12640
- {
12641
- "name": "disabled",
12642
- "type": {
12643
- "text": "boolean"
12644
- },
12645
- "default": "false",
12646
- "description": "Whether the button is disabled or not.",
12647
- "fieldName": "disabled"
12648
- },
12649
- {
12650
- "name": "href",
12651
- "type": {
12652
- "text": "string | undefined"
12653
- },
12654
- "description": "The URL that the link button points to.",
12655
- "fieldName": "href"
12656
- },
12657
- {
12658
- "name": "target",
12659
- "type": {
12660
- "text": "string | undefined"
12661
- },
12662
- "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
12663
- "fieldName": "target"
12664
- },
12665
- {
12666
- "name": "name",
12667
- "type": {
12668
- "text": "string | undefined"
12669
- },
12670
- "fieldName": "name"
12671
- }
12672
- ],
12673
- "superclass": {
12674
- "name": "LitElement",
12675
- "package": "lit"
12676
- },
12677
- "customElement": true
12678
- }
12679
- ],
12680
- "exports": [
12681
- {
12682
- "kind": "js",
12683
- "name": "UmButtonWrapper",
12684
- "declaration": {
12685
- "name": "UmButtonWrapper",
12686
- "module": "src/shared/button-wrapper.ts"
12687
- }
12688
- }
12689
- ]
12690
- },
12691
- {
12692
- "kind": "javascript-module",
12693
- "path": "src/shared/compare-text.ts",
12694
- "declarations": [
12695
- {
12696
- "kind": "function",
12697
- "name": "normalizedStartsWith",
12698
- "return": {
12699
- "type": {
12700
- "text": "boolean"
12701
- }
12702
- },
12703
- "parameters": [
12691
+ ],
12692
+ "inheritedFrom": {
12693
+ "name": "UmSelectionControl",
12694
+ "module": "src/shared/selection-control/selection-control.ts"
12695
+ }
12696
+ }
12697
+ ],
12698
+ "attributes": [
12704
12699
  {
12705
- "name": "text",
12700
+ "name": "name",
12706
12701
  "type": {
12707
- "text": "string | null"
12702
+ "text": "string | undefined"
12703
+ },
12704
+ "default": "''",
12705
+ "fieldName": "name",
12706
+ "inheritedFrom": {
12707
+ "name": "UmSelectionControl",
12708
+ "module": "src/shared/selection-control/selection-control.ts"
12708
12709
  }
12709
12710
  },
12710
12711
  {
12711
- "name": "term",
12712
+ "name": "disabled",
12712
12713
  "type": {
12713
- "text": "string | null"
12714
+ "text": "boolean"
12715
+ },
12716
+ "default": "false",
12717
+ "fieldName": "disabled",
12718
+ "inheritedFrom": {
12719
+ "name": "UmSelectionControl",
12720
+ "module": "src/shared/selection-control/selection-control.ts"
12714
12721
  }
12715
- }
12716
- ]
12717
- }
12718
- ],
12719
- "exports": [
12720
- {
12721
- "kind": "js",
12722
- "name": "normalizedStartsWith",
12723
- "declaration": {
12724
- "name": "normalizedStartsWith",
12725
- "module": "src/shared/compare-text.ts"
12726
- }
12727
- }
12728
- ]
12729
- },
12730
- {
12731
- "kind": "javascript-module",
12732
- "path": "src/shared/extract-template-html.ts",
12733
- "declarations": [
12734
- {
12735
- "kind": "function",
12736
- "name": "extractTemplateHtml",
12737
- "parameters": [
12722
+ },
12738
12723
  {
12739
- "name": "template",
12724
+ "name": "value",
12740
12725
  "type": {
12741
- "text": "HTMLTemplateElement"
12726
+ "text": "string"
12727
+ },
12728
+ "default": "'on'",
12729
+ "description": "The element value to use in form submission when checked.",
12730
+ "fieldName": "value",
12731
+ "inheritedFrom": {
12732
+ "name": "UmSelectionControl",
12733
+ "module": "src/shared/selection-control/selection-control.ts"
12734
+ }
12735
+ },
12736
+ {
12737
+ "name": "checked",
12738
+ "fieldName": "_checkedAttribute",
12739
+ "type": {
12740
+ "text": "boolean"
12741
+ },
12742
+ "default": "false",
12743
+ "inheritedFrom": {
12744
+ "name": "UmSelectionControl",
12745
+ "module": "src/shared/selection-control/selection-control.ts"
12742
12746
  }
12743
12747
  }
12744
- ]
12745
- }
12746
- ],
12747
- "exports": [
12748
- {
12749
- "kind": "js",
12750
- "name": "extractTemplateHtml",
12751
- "declaration": {
12752
- "name": "extractTemplateHtml",
12753
- "module": "src/shared/extract-template-html.ts"
12754
- }
12755
- }
12756
- ]
12757
- },
12758
- {
12759
- "kind": "javascript-module",
12760
- "path": "src/shared/mixin-attribute-properties.ts",
12761
- "declarations": [
12762
- {
12763
- "kind": "mixin",
12764
- "description": "",
12765
- "name": "mixinAttributeProperties",
12766
- "parameters": [
12748
+ ],
12749
+ "events": [
12767
12750
  {
12768
- "name": "base",
12751
+ "name": "input",
12769
12752
  "type": {
12770
- "text": "T"
12753
+ "text": "InputEvent"
12754
+ },
12755
+ "inheritedFrom": {
12756
+ "name": "UmSelectionControl",
12757
+ "module": "src/shared/selection-control/selection-control.ts"
12771
12758
  }
12772
12759
  },
12773
12760
  {
12774
- "name": "properties",
12761
+ "name": "change",
12775
12762
  "type": {
12776
- "text": "string[]"
12763
+ "text": "Event"
12764
+ },
12765
+ "inheritedFrom": {
12766
+ "name": "UmSelectionControl",
12767
+ "module": "src/shared/selection-control/selection-control.ts"
12777
12768
  }
12778
12769
  }
12779
12770
  ]
@@ -12782,61 +12773,30 @@
12782
12773
  "exports": [
12783
12774
  {
12784
12775
  "kind": "js",
12785
- "name": "mixinAttributeProperties",
12776
+ "name": "UmSwitchListItem",
12786
12777
  "declaration": {
12787
- "name": "mixinAttributeProperties",
12788
- "module": "src/shared/mixin-attribute-properties.ts"
12778
+ "name": "UmSwitchListItem",
12779
+ "module": "src/switch/switch-list-item.ts"
12789
12780
  }
12790
- }
12791
- ]
12792
- },
12793
- {
12794
- "kind": "javascript-module",
12795
- "path": "src/shared/mixin.ts",
12796
- "declarations": [],
12797
- "exports": []
12798
- },
12799
- {
12800
- "kind": "javascript-module",
12801
- "path": "src/shared/normalize-text.ts",
12802
- "declarations": [
12803
- {
12804
- "kind": "function",
12805
- "name": "normalizeText",
12806
- "return": {
12807
- "type": {
12808
- "text": "string"
12809
- }
12810
- },
12811
- "parameters": [
12812
- {
12813
- "name": "text",
12814
- "type": {
12815
- "text": "string | null"
12816
- }
12817
- }
12818
- ]
12819
- }
12820
- ],
12821
- "exports": [
12781
+ },
12822
12782
  {
12823
- "kind": "js",
12824
- "name": "normalizeText",
12783
+ "kind": "custom-element-definition",
12784
+ "name": "u-switch-list-item",
12825
12785
  "declaration": {
12826
- "name": "normalizeText",
12827
- "module": "src/shared/normalize-text.ts"
12786
+ "name": "UmSwitchListItem",
12787
+ "module": "src/switch/switch-list-item.ts"
12828
12788
  }
12829
12789
  }
12830
12790
  ]
12831
12791
  },
12832
12792
  {
12833
12793
  "kind": "javascript-module",
12834
- "path": "src/snackbar/snackbar.styles.ts",
12794
+ "path": "src/switch/switch.styles.ts",
12835
12795
  "declarations": [
12836
12796
  {
12837
12797
  "kind": "variable",
12838
12798
  "name": "styles",
12839
- "default": "css `\n :host {\n --u-elevation-level: var(--u-snackbar-elevation-level, 3);\n --_snackbar-margin: var(--u-snackbar-margin, var(--u-spacing-medium, 16px));\n position: fixed;\n inset-inline: 0;\n inset-block-end: 0;\n padding: var(--_snackbar-margin);\n z-index: var(--u-snackbar-z-index, 1070);\n display: flex;\n justify-content: center;\n }\n\n .snackbar {\n display: flex;\n align-items: center;\n min-height: var(--u-snackbar-height, 48px);\n color: var(--u-snackbar-text-color, var(--u-color-on-inverse-surface, rgb(245, 239, 247)));\n background-color: var(--u-snackbar-bg-color, var(--u-color-inverse-surface, rgb(50, 47, 53)));\n border-radius: var(--u-snackbar-shape, var(--u-shape-corner-extra-small, 4px));\n animation-name: snackbar-fade-in;\n animation-duration: 450ms;\n animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n animation-fill-mode: forwards;\n min-width: var(--u-snackbar-min-width, 100%);\n max-width: var(--u-snackbar-max-width, 100%);\n }\n .snackbar.dismiss {\n animation-name: snackbar-fade-out;\n }\n\n u-button {\n color: var(--u-color-inverse-primary, );\n margin-inline: var(--u-snackbar-text-button-margin, var(--u-spacing-small, 8px));\n }\n\n u-icon-button {\n color: var(--u-color-on-inverse-surface, rgb(245, 239, 247));\n margin-inline: var(--u-snackbar-close-button-margin, var(--u-spacing-extra-small, 4px));\n }\n\n .label {\n flex: 1;\n overflow: hidden;\n color: var(--u-on-inverse-surface-color);\n padding: var(--u-snackbar-text-margin, var(--u-spacing-medium, 16px));\n line-height: 18px;\n }\n\n @media (min-width: 840px) {\n :host {\n --_snackbar-margin: var(--u-snackbar-margin, var(--u-spacing-large, 24px));\n }\n .snackbar {\n min-width: var(--u-snackbar-min-width, 288px);\n max-width: var(--u-snackbar-max-width, 568px);\n }\n }\n @keyframes snackbar-fade-in {\n 0% {\n opacity: 0;\n transform: scale3d(0.5, 0.5, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n }\n @keyframes snackbar-fade-out {\n 0% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n 100% {\n opacity: 0;\n transform: scale3d(0.5, 0.5, 1);\n }\n }\n`"
12799
+ "default": "css `\n :host {\n --_state-layer-padding: var(--u-switch-state-layer-padding, 4px);\n --_input-size: calc(var(--_width) - var(--_state-layer-padding) * 2);\n --_indicator-color: var(--u-switch-indicator-unselected-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n display: inline-block;\n vertical-align: middle;\n }\n\n .container {\n cursor: pointer;\n position: relative;\n width: var(--_width);\n height: var(--_height);\n padding: var(--_state-layer-padding);\n border-radius: var(--u-shape-corner-full, 9999px);\n }\n\n :host([hide-state-layer]) .container {\n width: var(--_indicator-size);\n height: var(--_indicator-size);\n padding: 0;\n }\n :host([hide-state-layer]) u-ripple {\n display: none;\n }\n\n input {\n cursor: pointer;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n border-radius: inherit;\n appearance: none;\n pointer-events: none;\n }\n\n u-ripple {\n padding: var(--_state-layer-padding);\n }\n\n .indicator-container {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n inset: 0;\n pointer-events: none;\n }\n\n input:checked ~ .indicator-container {\n --_indicator-color: var(--u-switch-indicator-selected-color, var(--u-color-primary, rgb(103, 80, 164)));\n }\n\n :host([disabled]) {\n opacity: var(--u-switch-disabled-state-opacity, 0.38);\n }\n :host([disabled]) input,\n :host([disabled]) .container {\n cursor: default;\n }\n :host([disabled]) .indicator-container {\n --_indicator-color: var(--u-switch-indicator-disabled-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n }\n\n :host {\n --_width: 3.25rem;\n --_height: 2rem;\n --_state-layer-padding: 0;\n --_selected-track-background: var(--u-switch-track-bg-color, var(--u-color-primary, rgb(103, 80, 164)));\n --_state-layer-size: var(--u-switch-state-layer-size, 2.5rem);\n --_unselected-color: var(--u-switch-track-outline-color, var(--u-color-outline, rgb(121, 116, 126)));\n --_unselected-handle-size: var(--u-swich-unselected-handle-size, 1rem);\n --_selected-handle-size: var(--u-swich-unselected-handle-size, 1.5rem);\n --_active-handle-size: var(--u-swich-unselected-handle-size, 1.75rem);\n }\n\n .indicator-container {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: var(--_height);\n transition: width 200ms;\n }\n\n .state-layer,\n .indicator {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .indicator {\n width: var(--_height);\n height: var(--_height);\n }\n\n .state-layer {\n flex-shrink: 0;\n width: var(--_state-layer-size);\n height: var(--_state-layer-size);\n border-radius: var(--u-shape-corner-full, 9999px);\n }\n\n .handle {\n width: var(--_unselected-handle-size);\n height: var(--_unselected-handle-size);\n background-color: var(--u-switch-unselected-handle-color, var(--_unselected-color));\n border-radius: var(--u-switch-handle-shape-corner, var(--u-shape-corner-full, 9999px));\n transition: background 200ms, width 200ms, height 200ms;\n }\n\n input {\n border: var(--u-switch-track-width, 0.125rem) solid var(--u-switch-unselected-track-outline-color, var(--_unselected-color));\n background-color: var(--u-switch-unselected-track-bg-color, var(--u-color-surface-container-highest, rgb(230, 224, 233)));\n transition: background 200ms, border-color 200ms;\n }\n input:checked {\n background-color: var(--_selected-track-background);\n border-color: var(--_selected-track-background);\n }\n input:checked ~ .indicator-container {\n width: 100%;\n }\n input:checked ~ .indicator-container .handle {\n width: var(--_selected-handle-size);\n height: var(--_selected-handle-size);\n background-color: var(--u-switch-selected-handle-color, var(--u-color-on-primary, rgb(255, 255, 255)));\n }\n\n @media (hover: hover) {\n :host(:not([disabled]):hover) .state-layer {\n background-color: rgba(var(--u-color-on-surface-rgb, ), var(--u-switch-state-layer-hover-opacity, var(--u-state-hover-opacity, 0.08)));\n }\n }\n :host(:not([disabled]):active) .indicator-container .handle {\n width: var(--_active-handle-size);\n height: var(--_active-handle-size);\n }\n`"
12840
12800
  }
12841
12801
  ],
12842
12802
  "exports": [
@@ -12845,257 +12805,297 @@
12845
12805
  "name": "styles",
12846
12806
  "declaration": {
12847
12807
  "name": "styles",
12848
- "module": "src/snackbar/snackbar.styles.ts"
12808
+ "module": "src/switch/switch.styles.ts"
12849
12809
  }
12850
12810
  }
12851
12811
  ]
12852
12812
  },
12853
12813
  {
12854
12814
  "kind": "javascript-module",
12855
- "path": "src/snackbar/snackbar.ts",
12815
+ "path": "src/switch/switch.ts",
12856
12816
  "declarations": [
12857
12817
  {
12858
12818
  "kind": "class",
12859
12819
  "description": "",
12860
- "name": "UmSnackbar",
12820
+ "name": "UmSwitch",
12861
12821
  "members": [
12862
12822
  {
12863
12823
  "kind": "field",
12864
- "name": "label",
12824
+ "name": "renderRipple",
12865
12825
  "type": {
12866
- "text": "string"
12826
+ "text": "boolean"
12867
12827
  },
12868
- "default": "''",
12869
- "attribute": "label",
12870
- "reflects": true
12828
+ "privacy": "protected",
12829
+ "default": "false",
12830
+ "inheritedFrom": {
12831
+ "name": "UmSelectionControl",
12832
+ "module": "src/shared/selection-control/selection-control.ts"
12833
+ }
12834
+ },
12835
+ {
12836
+ "kind": "method",
12837
+ "name": "renderIndicator",
12838
+ "privacy": "protected",
12839
+ "return": {
12840
+ "type": {
12841
+ "text": "HTMLTemplateResult"
12842
+ }
12843
+ },
12844
+ "inheritedFrom": {
12845
+ "name": "UmSelectionControl",
12846
+ "module": "src/shared/selection-control/selection-control.ts"
12847
+ }
12871
12848
  },
12872
12849
  {
12873
12850
  "kind": "field",
12874
- "name": "buttonLabel",
12851
+ "name": "formAssociated",
12875
12852
  "type": {
12876
- "text": "string"
12853
+ "text": "boolean"
12854
+ },
12855
+ "static": true,
12856
+ "default": "true",
12857
+ "inheritedFrom": {
12858
+ "name": "UmSelectionControl",
12859
+ "module": "src/shared/selection-control/selection-control.ts"
12860
+ }
12861
+ },
12862
+ {
12863
+ "kind": "field",
12864
+ "name": "elementInternals",
12865
+ "type": {
12866
+ "text": "ElementInternals"
12867
+ },
12868
+ "privacy": "protected",
12869
+ "inheritedFrom": {
12870
+ "name": "UmSelectionControl",
12871
+ "module": "src/shared/selection-control/selection-control.ts"
12872
+ }
12873
+ },
12874
+ {
12875
+ "kind": "field",
12876
+ "name": "name",
12877
+ "type": {
12878
+ "text": "string | undefined"
12877
12879
  },
12878
12880
  "default": "''",
12879
- "attribute": "buttonLabel",
12880
- "reflects": true
12881
+ "attribute": "name",
12882
+ "inheritedFrom": {
12883
+ "name": "UmSelectionControl",
12884
+ "module": "src/shared/selection-control/selection-control.ts"
12885
+ }
12886
+ },
12887
+ {
12888
+ "kind": "field",
12889
+ "name": "disabled",
12890
+ "type": {
12891
+ "text": "boolean"
12892
+ },
12893
+ "default": "false",
12894
+ "attribute": "disabled",
12895
+ "reflects": true,
12896
+ "inheritedFrom": {
12897
+ "name": "UmSelectionControl",
12898
+ "module": "src/shared/selection-control/selection-control.ts"
12899
+ }
12900
+ },
12901
+ {
12902
+ "kind": "field",
12903
+ "name": "input",
12904
+ "type": {
12905
+ "text": "HTMLInputElement"
12906
+ },
12907
+ "inheritedFrom": {
12908
+ "name": "UmSelectionControl",
12909
+ "module": "src/shared/selection-control/selection-control.ts"
12910
+ }
12881
12911
  },
12882
12912
  {
12883
12913
  "kind": "field",
12884
- "name": "showClose",
12914
+ "name": "form",
12885
12915
  "type": {
12886
- "text": "boolean"
12916
+ "text": "HTMLFormElement | null"
12887
12917
  },
12888
- "default": "false",
12889
- "attribute": "show-close",
12890
- "reflects": true
12918
+ "inheritedFrom": {
12919
+ "name": "UmSelectionControl",
12920
+ "module": "src/shared/selection-control/selection-control.ts"
12921
+ }
12891
12922
  },
12892
12923
  {
12893
12924
  "kind": "field",
12894
- "name": "dismissed",
12925
+ "name": "#checked",
12926
+ "privacy": "private",
12895
12927
  "type": {
12896
12928
  "text": "boolean"
12897
12929
  },
12898
12930
  "default": "false",
12899
- "attribute": "dismissed",
12900
- "reflects": true
12931
+ "inheritedFrom": {
12932
+ "name": "UmSelectionControl",
12933
+ "module": "src/shared/selection-control/selection-control.ts"
12934
+ }
12901
12935
  },
12902
12936
  {
12903
12937
  "kind": "field",
12904
- "name": "duration",
12938
+ "name": "inputType",
12905
12939
  "type": {
12906
- "text": "SnackbarDuration"
12940
+ "text": "'checkbox' | 'radio'"
12907
12941
  },
12908
- "privacy": "private"
12942
+ "privacy": "protected",
12943
+ "default": "'checkbox'",
12944
+ "inheritedFrom": {
12945
+ "name": "UmSelectionControl",
12946
+ "module": "src/shared/selection-control/selection-control.ts"
12947
+ }
12909
12948
  },
12910
12949
  {
12911
12950
  "kind": "field",
12912
- "name": "snackbar",
12951
+ "name": "value",
12913
12952
  "type": {
12914
- "text": "HTMLElement"
12953
+ "text": "string"
12915
12954
  },
12916
- "privacy": "private"
12917
- },
12918
- {
12919
- "kind": "method",
12920
- "name": "renderButton",
12921
- "privacy": "private"
12922
- },
12923
- {
12924
- "kind": "method",
12925
- "name": "renderCloseButton",
12926
- "privacy": "private"
12927
- },
12928
- {
12929
- "kind": "method",
12930
- "name": "dismiss",
12931
- "return": {
12932
- "type": {
12933
- "text": "void"
12934
- }
12955
+ "default": "'on'",
12956
+ "description": "The element value to use in form submission when checked.",
12957
+ "attribute": "value",
12958
+ "inheritedFrom": {
12959
+ "name": "UmSelectionControl",
12960
+ "module": "src/shared/selection-control/selection-control.ts"
12935
12961
  }
12936
12962
  },
12937
12963
  {
12938
12964
  "kind": "field",
12939
- "name": "_queue",
12940
- "type": {
12941
- "text": "UmSnackbar[]"
12942
- },
12943
- "privacy": "private",
12944
- "static": true,
12945
- "default": "[]"
12965
+ "name": "checked",
12966
+ "attribute": "checked",
12967
+ "inheritedFrom": {
12968
+ "name": "UmSelectionControl",
12969
+ "module": "src/shared/selection-control/selection-control.ts"
12970
+ }
12946
12971
  },
12947
12972
  {
12948
12973
  "kind": "field",
12949
- "name": "_consuming",
12974
+ "name": "_checkedAttribute",
12950
12975
  "type": {
12951
12976
  "text": "boolean"
12952
12977
  },
12953
12978
  "privacy": "private",
12954
- "static": true
12955
- },
12956
- {
12957
- "kind": "method",
12958
- "name": "show",
12959
- "static": true,
12960
- "return": {
12961
- "type": {
12962
- "text": "UmSnackbar"
12963
- }
12964
- },
12965
- "parameters": [
12966
- {
12967
- "name": "label",
12968
- "type": {
12969
- "text": "string"
12970
- }
12971
- }
12972
- ]
12973
- },
12974
- {
12975
- "kind": "method",
12976
- "name": "show",
12977
- "static": true,
12978
- "return": {
12979
- "type": {
12980
- "text": "UmSnackbar"
12981
- }
12982
- },
12983
- "parameters": [
12984
- {
12985
- "name": "config",
12986
- "type": {
12987
- "text": "SnackbarConfig"
12988
- }
12989
- }
12990
- ]
12991
- },
12992
- {
12993
- "kind": "method",
12994
- "name": "show",
12995
- "static": true,
12996
- "return": {
12997
- "type": {
12998
- "text": "UmSnackbar"
12999
- }
13000
- },
13001
- "parameters": [
13002
- {
13003
- "name": "configOrLabel",
13004
- "type": {
13005
- "text": "SnackbarConfig | string"
13006
- }
13007
- }
13008
- ]
13009
- },
13010
- {
13011
- "kind": "method",
13012
- "name": "consumeQueue",
13013
- "privacy": "private",
13014
- "static": true
13015
- },
13016
- {
13017
- "kind": "method",
13018
- "name": "showNext",
13019
- "privacy": "private",
13020
- "static": true
12979
+ "default": "false",
12980
+ "attribute": "checked",
12981
+ "inheritedFrom": {
12982
+ "name": "UmSelectionControl",
12983
+ "module": "src/shared/selection-control/selection-control.ts"
12984
+ }
13021
12985
  },
13022
12986
  {
13023
12987
  "kind": "method",
13024
- "name": "createSnackbar",
13025
- "privacy": "private",
13026
- "static": true,
13027
- "return": {
13028
- "type": {
13029
- "text": "UmSnackbar"
13030
- }
13031
- },
12988
+ "name": "#handleClick",
13032
12989
  "parameters": [
13033
12990
  {
13034
- "name": "config",
12991
+ "name": "e",
13035
12992
  "type": {
13036
- "text": "SnackbarConfig"
12993
+ "text": "Event"
13037
12994
  }
13038
12995
  }
13039
- ]
12996
+ ],
12997
+ "inheritedFrom": {
12998
+ "name": "UmSelectionControl",
12999
+ "module": "src/shared/selection-control/selection-control.ts"
13000
+ }
13040
13001
  }
13041
13002
  ],
13003
+ "superclass": {
13004
+ "name": "UmSelectionControl",
13005
+ "module": "/src/shared/selection-control/selection-control.js"
13006
+ },
13007
+ "tagName": "u-switch",
13008
+ "customElement": true,
13042
13009
  "attributes": [
13043
13010
  {
13044
- "name": "label",
13011
+ "name": "name",
13045
13012
  "type": {
13046
- "text": "string"
13013
+ "text": "string | undefined"
13047
13014
  },
13048
13015
  "default": "''",
13049
- "fieldName": "label"
13016
+ "fieldName": "name",
13017
+ "inheritedFrom": {
13018
+ "name": "UmSelectionControl",
13019
+ "module": "src/shared/selection-control/selection-control.ts"
13020
+ }
13050
13021
  },
13051
13022
  {
13052
- "name": "buttonLabel",
13023
+ "name": "disabled",
13053
13024
  "type": {
13054
- "text": "string"
13025
+ "text": "boolean"
13055
13026
  },
13056
- "default": "''",
13057
- "fieldName": "buttonLabel"
13027
+ "default": "false",
13028
+ "fieldName": "disabled",
13029
+ "inheritedFrom": {
13030
+ "name": "UmSelectionControl",
13031
+ "module": "src/shared/selection-control/selection-control.ts"
13032
+ }
13058
13033
  },
13059
13034
  {
13060
- "name": "show-close",
13035
+ "name": "value",
13061
13036
  "type": {
13062
- "text": "boolean"
13037
+ "text": "string"
13063
13038
  },
13064
- "default": "false",
13065
- "fieldName": "showClose"
13039
+ "default": "'on'",
13040
+ "description": "The element value to use in form submission when checked.",
13041
+ "fieldName": "value",
13042
+ "inheritedFrom": {
13043
+ "name": "UmSelectionControl",
13044
+ "module": "src/shared/selection-control/selection-control.ts"
13045
+ }
13066
13046
  },
13067
13047
  {
13068
- "name": "dismissed",
13048
+ "name": "checked",
13049
+ "fieldName": "_checkedAttribute",
13069
13050
  "type": {
13070
13051
  "text": "boolean"
13071
13052
  },
13072
13053
  "default": "false",
13073
- "fieldName": "dismissed"
13054
+ "inheritedFrom": {
13055
+ "name": "UmSelectionControl",
13056
+ "module": "src/shared/selection-control/selection-control.ts"
13057
+ }
13074
13058
  }
13075
13059
  ],
13076
- "superclass": {
13077
- "name": "LitElement",
13078
- "package": "lit"
13079
- },
13080
- "tagName": "u-snackbar",
13081
- "customElement": true
13060
+ "events": [
13061
+ {
13062
+ "name": "input",
13063
+ "type": {
13064
+ "text": "InputEvent"
13065
+ },
13066
+ "inheritedFrom": {
13067
+ "name": "UmSelectionControl",
13068
+ "module": "src/shared/selection-control/selection-control.ts"
13069
+ }
13070
+ },
13071
+ {
13072
+ "name": "change",
13073
+ "type": {
13074
+ "text": "Event"
13075
+ },
13076
+ "inheritedFrom": {
13077
+ "name": "UmSelectionControl",
13078
+ "module": "src/shared/selection-control/selection-control.ts"
13079
+ }
13080
+ }
13081
+ ]
13082
13082
  }
13083
13083
  ],
13084
13084
  "exports": [
13085
13085
  {
13086
13086
  "kind": "js",
13087
- "name": "UmSnackbar",
13087
+ "name": "UmSwitch",
13088
13088
  "declaration": {
13089
- "name": "UmSnackbar",
13090
- "module": "src/snackbar/snackbar.ts"
13089
+ "name": "UmSwitch",
13090
+ "module": "src/switch/switch.ts"
13091
13091
  }
13092
13092
  },
13093
13093
  {
13094
13094
  "kind": "custom-element-definition",
13095
- "name": "u-snackbar",
13095
+ "name": "u-switch",
13096
13096
  "declaration": {
13097
- "name": "UmSnackbar",
13098
- "module": "src/snackbar/snackbar.ts"
13097
+ "name": "UmSwitch",
13098
+ "module": "src/switch/switch.ts"
13099
13099
  }
13100
13100
  }
13101
13101
  ]