tuix-webcomponents 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1367 -1367
  2. package/package.json +1 -1
@@ -427,344 +427,480 @@
427
427
  },
428
428
  {
429
429
  "kind": "javascript-module",
430
- "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
430
+ "path": "src/tuix-dropdown/TuixDropdown.styles.ts",
431
431
  "declarations": [
432
432
  {
433
433
  "kind": "variable",
434
- "name": "hostStyles",
435
- "default": "css`\n :host {\n --t-main-color-tuix: ${unsafeCSS(Palette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(Palette.WHITE)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-text-color-error: ${unsafeCSS(Palette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(Palette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-text-color-label: ${unsafeCSS(Palette.BLACK)};\n --t-label-right-default-justify: flex-start;\n --t-label-left-default-justify: space-between;\n }\n :host([dark]) {\n --t-main-color-tuix: ${unsafeCSS(DarkPalette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.BLACK)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-text-color-error: ${unsafeCSS(DarkPalette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(DarkPalette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(DarkPalette.PRIMARY_100)};\n --t-text-color-label: ${unsafeCSS(DarkPalette.WHITE)};\n }\n`"
436
- },
437
- {
438
- "kind": "variable",
439
- "name": "checkboxContainerStyles",
440
- "default": "css`\n .t-checkbox-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-checkbox-full-container {\n cursor: not-allowed;\n }\n .t-checkbox-container {\n --t-checkbox-size-box: 1.5rem;\n --t-checkbox-shadow-width: 2px;\n --t-checkbox-border-radius: 0.25rem;\n display: block;\n position: relative;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n min-width: var(--t-checkbox-size-box);\n }\n .t-checkbox-container .t-checkbox {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-checkbox-container {\n --t-checkbox-size-box: 1rem;\n --t-checkbox-shadow-width: 1px;\n --t-checkbox-border-radius: 0.125rem;\n margin-top: 1px;\n }\n }\n`"
434
+ "name": "dropdownHostStyles",
435
+ "default": "css`\n ${hostStyles}\n :host {\n --t-field-color-option: ${unsafeCSS(Palette.WHITE)};\n --t-field-color-main: ${unsafeCSS(Palette.MAIN)};\n }\n\n :host .t-input-dropdown {\n --t-field-font-weight: 300;\n --t-field-font-size: 1rem;\n --t-field-padding-x: 1rem;\n --t-field-title-left-position: 1rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.938rem;\n --t-field-line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.813rem;\n --t-field-line-height: 1rem;\n }\n }\n\n :host([dark]) {\n --t-field-color-option: ${unsafeCSS(DarkPalette.ELEVATION_2)};\n }\n`"
441
436
  },
442
437
  {
443
438
  "kind": "variable",
444
- "name": "checkboxCheckmarkStyles",
445
- "default": "css`\n .t-checkbox-container .t-checkbox-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n border-radius: var(--t-checkbox-border-radius);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n }\n .t-checkbox-container .t-checkbox-checkmark tuix-icon {\n margin: auto;\n display: none;\n width: calc(var(--t-checkbox-size-box) - 0.5rem);\n height: calc(var(--t-checkbox-size-box) - 0.5rem);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark {\n background-color: var(--t-main-color-tuix);\n border: none;\n }\n .t-checkbox-container .t-checkbox:focus ~ .t-checkbox-checkmark {\n box-shadow: 0 0 0px var(--t-checkbox-shadow-width)\n var(--t-stroke-color-focus);\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark tuix-icon {\n display: block;\n }\n .t-checkbox-full-container:hover .t-checkbox-container .t-checkbox-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox:checked\n ~ .t-checkbox-checkmark {\n background-color: var(--t-text-color-error);\n border: none;\n }\n\n .t-checkbox-container .t-checkbox:disabled ~ .t-checkbox-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
439
+ "name": "dropdownMainContainerStyles",
440
+ "default": "css`\n .t-dropdown-full-container {\n position: relative;\n font-family: 'Rubik', sans-serif;\n }\n .t-dropdown-container .t-input-dropdown {\n --t-field-input-cursor: pointer;\n }\n`"
446
441
  },
447
442
  {
448
443
  "kind": "variable",
449
- "name": "checkboxLabelStyles",
450
- "default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
444
+ "name": "dropdownOptionStyles",
445
+ "default": "css`\n .t-options-container {\n width: 100%;\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n border: none;\n border-radius: 0 0 5px 5px;\n background-color: var(--t-field-color-option);\n visibility: collapse;\n overflow-y: auto;\n max-height: 250px;\n color: var(--t-field-color-text);\n box-shadow: 0px 2px 8px 0px ${unsafeCSS(Palette.SHADOW)};\n z-index: 9999;\n }\n .t-options-container::-webkit-scrollbar {\n width: 0.75rem;\n }\n .t-options-container::-webkit-scrollbar-track {\n background-color: transparent;\n }\n .t-options-container::-webkit-scrollbar-thumb {\n background-color: ${unsafeCSS(Palette.PRIMARY_100)};\n border-radius: 0.25rem;\n border: 0.188rem solid transparent;\n background-clip: content-box;\n }\n .t-options-container.show {\n visibility: visible;\n }\n .t-options-container.show.t-with-description {\n top: calc(100% + 2px - 1.5rem);\n }\n @media only screen and (max-height: 500px) {\n .t-options-container {\n max-height: 50vh;\n }\n }\n .t-dropdown-option {\n padding: var(--t-field-padding-y) 1rem;\n cursor: pointer;\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 300;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .t-dropdown-option.t-option-hover {\n background-color: var(--t-field-color-form);\n }\n .t-dropdown-option.t-option-selected {\n color: var(--t-field-color-main);\n }\n .t-dropdown-option.t-option-filtered {\n display: none;\n }\n .t-dropdown-option:focus {\n outline: none;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .t-dropdown-option {\n font-size: 0.938rem;\n line-height: 1.125rem;\n --t-field-padding-y: 1.063rem;\n --t-field-padding-top: 1.5rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-dropdown-option {\n font-size: 0.813rem;\n line-height: 1rem;\n --t-field-padding-y: 1rem;\n --t-field-padding-top: 1.375rem;\n }\n }\n`"
451
446
  }
452
447
  ],
453
448
  "exports": [
454
449
  {
455
450
  "kind": "js",
456
- "name": "hostStyles",
457
- "declaration": {
458
- "name": "hostStyles",
459
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
460
- }
461
- },
462
- {
463
- "kind": "js",
464
- "name": "checkboxContainerStyles",
451
+ "name": "dropdownHostStyles",
465
452
  "declaration": {
466
- "name": "checkboxContainerStyles",
467
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
453
+ "name": "dropdownHostStyles",
454
+ "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
468
455
  }
469
456
  },
470
457
  {
471
458
  "kind": "js",
472
- "name": "checkboxCheckmarkStyles",
459
+ "name": "dropdownMainContainerStyles",
473
460
  "declaration": {
474
- "name": "checkboxCheckmarkStyles",
475
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
461
+ "name": "dropdownMainContainerStyles",
462
+ "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
476
463
  }
477
464
  },
478
465
  {
479
466
  "kind": "js",
480
- "name": "checkboxLabelStyles",
467
+ "name": "dropdownOptionStyles",
481
468
  "declaration": {
482
- "name": "checkboxLabelStyles",
483
- "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
469
+ "name": "dropdownOptionStyles",
470
+ "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
484
471
  }
485
472
  }
486
473
  ]
487
474
  },
488
475
  {
489
476
  "kind": "javascript-module",
490
- "path": "src/tuix-checkbox/TuixCheckbox.ts",
477
+ "path": "src/tuix-dropdown/TuixDropdown.ts",
491
478
  "declarations": [
492
479
  {
493
480
  "kind": "class",
494
481
  "description": "",
495
- "name": "TuixCheckbox",
482
+ "name": "TuixDropdown",
496
483
  "members": [
497
484
  {
498
485
  "kind": "field",
499
- "name": "checked",
486
+ "name": "value",
500
487
  "type": {
501
- "text": "boolean"
488
+ "text": "TuixDropdownOption | undefined"
502
489
  },
503
- "default": "false",
504
- "attribute": "checked"
490
+ "default": "undefined",
491
+ "attribute": "value"
505
492
  },
506
493
  {
507
494
  "kind": "field",
508
- "name": "disabled",
495
+ "name": "options",
509
496
  "type": {
510
- "text": "boolean"
497
+ "text": "TuixDropdownOption[]"
511
498
  },
512
- "default": "false",
513
- "attribute": "disabled",
514
- "reflects": true
499
+ "default": "[]",
500
+ "attribute": "options"
515
501
  },
516
502
  {
517
503
  "kind": "field",
518
- "name": "dark",
504
+ "name": "placeholder",
519
505
  "type": {
520
- "text": "boolean"
506
+ "text": "string"
521
507
  },
522
- "default": "false",
523
- "attribute": "dark",
524
- "reflects": true
508
+ "default": "''",
509
+ "attribute": "placeholder"
525
510
  },
526
511
  {
527
512
  "kind": "field",
528
- "name": "error",
513
+ "name": "title",
514
+ "type": {
515
+ "text": "string"
516
+ },
517
+ "default": "''",
518
+ "attribute": "title"
519
+ },
520
+ {
521
+ "kind": "field",
522
+ "name": "disabled",
529
523
  "type": {
530
524
  "text": "boolean"
531
525
  },
532
526
  "default": "false",
533
- "attribute": "error",
527
+ "attribute": "disabled",
534
528
  "reflects": true
535
529
  },
536
530
  {
537
531
  "kind": "field",
538
- "name": "label",
532
+ "name": "dark",
539
533
  "type": {
540
- "text": "string"
534
+ "text": "boolean"
541
535
  },
542
- "default": "''",
543
- "attribute": "label"
536
+ "default": "false",
537
+ "attribute": "dark",
538
+ "reflects": true
544
539
  },
545
540
  {
546
541
  "kind": "field",
547
- "name": "labelSide",
542
+ "name": "description",
548
543
  "type": {
549
- "text": "CheckboxLabelSide"
544
+ "text": "string | undefined"
550
545
  },
551
- "attribute": "labelSide"
546
+ "attribute": "description"
552
547
  },
553
548
  {
554
- "kind": "method",
555
- "name": "_onCheckboxChange",
556
- "privacy": "private",
557
- "parameters": [
558
- {
559
- "name": "event",
560
- "type": {
561
- "text": "InputEvent"
562
- }
563
- }
564
- ]
549
+ "kind": "field",
550
+ "name": "descriptionType",
551
+ "attribute": "descriptionType"
565
552
  },
566
553
  {
567
- "kind": "method",
568
- "name": "_getIconMode",
569
- "privacy": "private"
554
+ "kind": "field",
555
+ "name": "type",
556
+ "attribute": "type"
570
557
  },
571
558
  {
572
- "kind": "method",
573
- "name": "_getFullContainerClasses",
574
- "privacy": "private",
575
- "return": {
576
- "type": {
577
- "text": "ClassInfo"
578
- }
579
- }
580
- }
581
- ],
582
- "events": [
583
- {
584
- "name": "change",
585
- "type": {
586
- "text": "CustomEvent"
587
- }
588
- }
589
- ],
590
- "attributes": [
591
- {
592
- "name": "checked",
559
+ "kind": "field",
560
+ "name": "_value",
593
561
  "type": {
594
- "text": "boolean"
562
+ "text": "string"
595
563
  },
596
- "default": "false",
597
- "fieldName": "checked"
564
+ "privacy": "private",
565
+ "default": "''"
598
566
  },
599
567
  {
600
- "name": "disabled",
568
+ "kind": "field",
569
+ "name": "_isOptionsVisible",
601
570
  "type": {
602
571
  "text": "boolean"
603
572
  },
604
- "default": "false",
605
- "fieldName": "disabled"
573
+ "privacy": "private",
574
+ "default": "false"
606
575
  },
607
576
  {
608
- "name": "dark",
577
+ "kind": "field",
578
+ "name": "_searchingOption",
609
579
  "type": {
610
580
  "text": "boolean"
611
581
  },
612
- "default": "false",
613
- "fieldName": "dark"
582
+ "privacy": "private",
583
+ "default": "false"
614
584
  },
615
585
  {
616
- "name": "error",
586
+ "kind": "field",
587
+ "name": "_extendedOptions",
617
588
  "type": {
618
- "text": "boolean"
589
+ "text": "TuixDropdownExtendedOption[]"
619
590
  },
620
- "default": "false",
621
- "fieldName": "error"
591
+ "default": "[]"
622
592
  },
623
593
  {
624
- "name": "label",
594
+ "kind": "field",
595
+ "name": "_optionsContainer",
625
596
  "type": {
626
- "text": "string"
597
+ "text": "HTMLElement | undefined"
627
598
  },
628
- "default": "''",
629
- "fieldName": "label"
599
+ "privacy": "private"
630
600
  },
631
601
  {
632
- "name": "labelSide",
602
+ "kind": "field",
603
+ "name": "_inputDropdown",
633
604
  "type": {
634
- "text": "CheckboxLabelSide"
605
+ "text": "HTMLElement | undefined"
635
606
  },
636
- "fieldName": "labelSide"
637
- }
638
- ],
639
- "superclass": {
640
- "name": "LitElement",
641
- "package": "lit"
642
- },
643
- "tagName": "tuix-checkbox",
644
- "customElement": true
645
- }
646
- ],
647
- "exports": [
648
- {
649
- "kind": "js",
650
- "name": "TuixCheckbox",
651
- "declaration": {
652
- "name": "TuixCheckbox",
653
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
654
- }
655
- },
656
- {
657
- "kind": "custom-element-definition",
658
- "name": "tuix-checkbox",
659
- "declaration": {
660
- "name": "TuixCheckbox",
661
- "module": "src/tuix-checkbox/TuixCheckbox.ts"
662
- }
663
- }
664
- ]
665
- },
666
- {
667
- "kind": "javascript-module",
668
- "path": "src/tuix-button/TuixBaseButton.ts",
669
- "declarations": [
670
- {
671
- "kind": "class",
672
- "description": "",
673
- "name": "TuixBaseButton",
674
- "members": [
675
- {
676
- "kind": "field",
677
- "name": "variant",
678
- "attribute": "variant",
679
- "reflects": true
607
+ "privacy": "private"
680
608
  },
681
609
  {
682
610
  "kind": "field",
683
- "name": "disabled",
611
+ "name": "_previousSelectedOption",
684
612
  "type": {
685
- "text": "boolean"
613
+ "text": "HTMLElement | null"
686
614
  },
687
- "default": "false",
688
- "attribute": "disabled",
689
- "reflects": true
615
+ "privacy": "private",
616
+ "default": "null"
690
617
  },
691
618
  {
692
619
  "kind": "field",
693
- "name": "dark",
620
+ "name": "_previousFocusedOption",
694
621
  "type": {
695
- "text": "boolean"
622
+ "text": "HTMLElement | null"
696
623
  },
697
- "default": "false",
698
- "attribute": "dark",
699
- "reflects": true
624
+ "privacy": "private",
625
+ "default": "null"
700
626
  },
701
627
  {
702
- "kind": "field",
703
- "name": "iconColor",
704
- "type": {
705
- "text": "string"
706
- },
707
- "privacy": "protected",
708
- "default": "''"
628
+ "kind": "method",
629
+ "name": "_onEnterPress",
630
+ "privacy": "private",
631
+ "parameters": [
632
+ {
633
+ "name": "event",
634
+ "type": {
635
+ "text": "KeyboardEvent"
636
+ }
637
+ }
638
+ ]
709
639
  },
710
640
  {
711
641
  "kind": "method",
712
- "name": "_getTextColor",
713
- "privacy": "protected"
642
+ "name": "_onKeyDownOption",
643
+ "privacy": "private",
644
+ "parameters": [
645
+ {
646
+ "name": "event",
647
+ "type": {
648
+ "text": "KeyboardEvent"
649
+ }
650
+ }
651
+ ]
714
652
  },
715
653
  {
716
654
  "kind": "method",
717
- "name": "_updateIconColor",
655
+ "name": "_onKeyPressOption",
656
+ "privacy": "private",
657
+ "parameters": [
658
+ {
659
+ "name": "event",
660
+ "type": {
661
+ "text": "KeyboardEvent"
662
+ }
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "kind": "method",
668
+ "name": "_onMouseOverOption",
669
+ "privacy": "private",
670
+ "parameters": [
671
+ {
672
+ "name": "event",
673
+ "type": {
674
+ "text": "MouseEvent"
675
+ }
676
+ }
677
+ ]
678
+ },
679
+ {
680
+ "kind": "method",
681
+ "name": "_onClickOption",
682
+ "privacy": "private",
683
+ "parameters": [
684
+ {
685
+ "name": "event",
686
+ "type": {
687
+ "text": "MouseEvent | KeyboardEvent"
688
+ }
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "kind": "method",
694
+ "name": "_onInputSingle",
695
+ "privacy": "protected",
696
+ "parameters": [
697
+ {
698
+ "name": "e",
699
+ "type": {
700
+ "text": "CustomEvent"
701
+ }
702
+ }
703
+ ]
704
+ },
705
+ {
706
+ "kind": "method",
707
+ "name": "_handleSelectEvent",
718
708
  "privacy": "protected",
709
+ "parameters": [
710
+ {
711
+ "name": "event",
712
+ "type": {
713
+ "text": "MouseEvent | KeyboardEvent"
714
+ }
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "kind": "method",
720
+ "name": "_handleBlur",
721
+ "privacy": "private"
722
+ },
723
+ {
724
+ "kind": "method",
725
+ "name": "_getOptionName",
726
+ "privacy": "private",
719
727
  "return": {
720
728
  "type": {
721
- "text": "void"
729
+ "text": "string"
722
730
  }
723
- }
731
+ },
732
+ "parameters": [
733
+ {
734
+ "name": "option",
735
+ "type": {
736
+ "text": "TuixDropdownOption"
737
+ }
738
+ }
739
+ ]
724
740
  },
725
741
  {
726
742
  "kind": "method",
727
- "name": "_handleClick",
728
- "privacy": "protected"
743
+ "name": "_getOptionValue",
744
+ "privacy": "private",
745
+ "return": {
746
+ "type": {
747
+ "text": "TuixDropdownPlainOption"
748
+ }
749
+ },
750
+ "parameters": [
751
+ {
752
+ "name": "option",
753
+ "type": {
754
+ "text": "TuixDropdownOption"
755
+ }
756
+ }
757
+ ]
729
758
  },
730
759
  {
731
760
  "kind": "method",
732
- "name": "_iconTemplate",
733
- "privacy": "protected",
761
+ "name": "_findIndex",
762
+ "privacy": "private",
734
763
  "return": {
735
764
  "type": {
736
- "text": "TemplateResult"
765
+ "text": "number"
737
766
  }
738
767
  },
739
768
  "parameters": [
740
769
  {
741
- "name": "iconName",
770
+ "name": "option",
742
771
  "type": {
743
- "text": "IconName"
772
+ "text": "TuixDropdownOption"
773
+ }
774
+ }
775
+ ]
776
+ },
777
+ {
778
+ "kind": "method",
779
+ "name": "_handleInputBase",
780
+ "privacy": "private",
781
+ "parameters": [
782
+ {
783
+ "name": "e",
784
+ "type": {
785
+ "text": "CustomEvent"
744
786
  }
745
787
  },
746
788
  {
747
- "name": "iconSize",
789
+ "name": "eventName",
748
790
  "type": {
749
- "text": "IconSizeVariant"
791
+ "text": "string"
750
792
  }
751
793
  }
752
794
  ]
753
795
  },
754
796
  {
755
797
  "kind": "method",
756
- "name": "_buttonContent",
757
- "privacy": "protected",
798
+ "name": "_extendOptionsList",
799
+ "privacy": "private",
800
+ "parameters": [
801
+ {
802
+ "name": "value",
803
+ "default": "''"
804
+ }
805
+ ]
806
+ },
807
+ {
808
+ "kind": "method",
809
+ "name": "_handleArrowDown",
810
+ "privacy": "private"
811
+ },
812
+ {
813
+ "kind": "method",
814
+ "name": "_handleArrowUp",
815
+ "privacy": "private"
816
+ },
817
+ {
818
+ "kind": "field",
819
+ "name": "_handleClickOutside",
820
+ "privacy": "private"
821
+ },
822
+ {
823
+ "kind": "method",
824
+ "name": "_focusTargetOption",
825
+ "privacy": "private",
826
+ "parameters": [
827
+ {
828
+ "name": "targetOption",
829
+ "type": {
830
+ "text": "HTMLElement"
831
+ }
832
+ },
833
+ {
834
+ "name": "extrict",
835
+ "default": "true"
836
+ }
837
+ ]
838
+ },
839
+ {
840
+ "kind": "method",
841
+ "name": "_toggleOptions",
842
+ "privacy": "private"
843
+ },
844
+ {
845
+ "kind": "method",
846
+ "name": "_focusOptionsContainer",
847
+ "privacy": "private"
848
+ },
849
+ {
850
+ "kind": "method",
851
+ "name": "_unselectPreviousOption",
852
+ "privacy": "private"
853
+ },
854
+ {
855
+ "kind": "method",
856
+ "name": "_hasCompleteDescription",
857
+ "privacy": "private",
758
858
  "return": {
759
859
  "type": {
760
- "text": "TemplateResult"
860
+ "text": "boolean"
861
+ }
862
+ }
863
+ },
864
+ {
865
+ "kind": "method",
866
+ "name": "_getOptionsContainerClasses",
867
+ "privacy": "private",
868
+ "return": {
869
+ "type": {
870
+ "text": "ClassInfo"
871
+ }
872
+ }
873
+ },
874
+ {
875
+ "kind": "method",
876
+ "name": "_triggerUpdateByExternalValueChange",
877
+ "privacy": "private"
878
+ },
879
+ {
880
+ "kind": "method",
881
+ "name": "_resetPreviousSelection",
882
+ "privacy": "private"
883
+ },
884
+ {
885
+ "kind": "method",
886
+ "name": "_getOptionsTemplate",
887
+ "privacy": "private",
888
+ "return": {
889
+ "type": {
890
+ "text": "TemplateResult[]"
761
891
  }
762
892
  }
763
893
  }
764
894
  ],
765
895
  "events": [
766
896
  {
767
- "name": "customClick",
897
+ "name": "select",
898
+ "type": {
899
+ "text": "CustomEvent"
900
+ }
901
+ },
902
+ {
903
+ "name": "eventName",
768
904
  "type": {
769
905
  "text": "CustomEvent"
770
906
  }
@@ -772,8 +908,39 @@
772
908
  ],
773
909
  "attributes": [
774
910
  {
775
- "name": "variant",
776
- "fieldName": "variant"
911
+ "name": "value",
912
+ "type": {
913
+ "text": "TuixDropdownOption | undefined"
914
+ },
915
+ "default": "undefined",
916
+ "resolveInitializer": {
917
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
918
+ },
919
+ "fieldName": "value"
920
+ },
921
+ {
922
+ "name": "options",
923
+ "type": {
924
+ "text": "TuixDropdownOption[]"
925
+ },
926
+ "default": "[]",
927
+ "fieldName": "options"
928
+ },
929
+ {
930
+ "name": "placeholder",
931
+ "type": {
932
+ "text": "string"
933
+ },
934
+ "default": "''",
935
+ "fieldName": "placeholder"
936
+ },
937
+ {
938
+ "name": "title",
939
+ "type": {
940
+ "text": "string"
941
+ },
942
+ "default": "''",
943
+ "fieldName": "title"
777
944
  },
778
945
  {
779
946
  "name": "disabled",
@@ -790,205 +957,352 @@
790
957
  },
791
958
  "default": "false",
792
959
  "fieldName": "dark"
960
+ },
961
+ {
962
+ "name": "description",
963
+ "type": {
964
+ "text": "string | undefined"
965
+ },
966
+ "fieldName": "description"
967
+ },
968
+ {
969
+ "name": "descriptionType",
970
+ "fieldName": "descriptionType"
971
+ },
972
+ {
973
+ "name": "type",
974
+ "fieldName": "type"
793
975
  }
794
976
  ],
795
977
  "superclass": {
796
978
  "name": "LitElement",
797
979
  "package": "lit"
798
980
  },
981
+ "tagName": "tuix-dropdown",
799
982
  "customElement": true
800
983
  }
801
984
  ],
802
985
  "exports": [
803
986
  {
804
987
  "kind": "js",
805
- "name": "TuixBaseButton",
988
+ "name": "TuixDropdown",
806
989
  "declaration": {
807
- "name": "TuixBaseButton",
808
- "module": "src/tuix-button/TuixBaseButton.ts"
990
+ "name": "TuixDropdown",
991
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
992
+ }
993
+ },
994
+ {
995
+ "kind": "custom-element-definition",
996
+ "name": "tuix-dropdown",
997
+ "declaration": {
998
+ "name": "TuixDropdown",
999
+ "module": "src/tuix-dropdown/TuixDropdown.ts"
809
1000
  }
810
1001
  }
811
1002
  ]
812
1003
  },
813
1004
  {
814
1005
  "kind": "javascript-module",
815
- "path": "src/tuix-button/TuixButton.styles.ts",
1006
+ "path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
816
1007
  "declarations": [
817
1008
  {
818
1009
  "kind": "variable",
819
- "name": "hostButtonStyles",
820
- "default": "css`\n :host {\n --t-button-primary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-secondary-color: ${unsafeCSS(Palette.WHITE)};\n --t-button-accent-color: ${unsafeCSS(Palette.SECONDARY)};\n --t-button-text-color: ${unsafeCSS(Palette.WHITE)};\n --t-button-text-secondary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-text-muted-color: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-button-disabled-bg-color: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-button-hover-primary-color: ${unsafeCSS(Palette.PRIMARY_600)};\n --t-button-active-primary-color: ${unsafeCSS(Palette.PRIMARY_800)};\n --t-button-hover-secondary-color: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-button-active-secondary-color: ${unsafeCSS(Palette.PRIMARY_200)};\n }\n :host([dark]) {\n --t-button-primary-color: ${unsafeCSS(DarkPalette.MAIN)};\n --t-button-text-color: ${unsafeCSS(DarkPalette.WHITE)};\n --t-button-text-muted-color: ${unsafeCSS(Palette.PRIMARY_800)};\n --t-button-disabled-bg-color: ${unsafeCSS(Palette.PRIMARY_950)};\n --t-button-hover-primary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-active-primary-color: ${unsafeCSS(Palette.PRIMARY_600)};\n --t-button-secondary-color: ${unsafeCSS(Palette.BLACK)};\n --t-button-hover-secondary-color: ${unsafeCSS(Palette.PRIMARY_950)};\n --t-button-active-secondary-color: ${unsafeCSS(Palette.PRIMARY_800)};\n }\n`"
1010
+ "name": "hostStyles",
1011
+ "default": "css`\n :host {\n --t-main-color-tuix: ${unsafeCSS(Palette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(Palette.WHITE)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-text-color-error: ${unsafeCSS(Palette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(Palette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-text-color-label: ${unsafeCSS(Palette.BLACK)};\n --t-label-right-default-justify: flex-start;\n --t-label-left-default-justify: space-between;\n }\n :host([dark]) {\n --t-main-color-tuix: ${unsafeCSS(DarkPalette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.BLACK)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-text-color-error: ${unsafeCSS(DarkPalette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(DarkPalette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(DarkPalette.PRIMARY_100)};\n --t-text-color-label: ${unsafeCSS(DarkPalette.WHITE)};\n }\n`"
821
1012
  },
822
1013
  {
823
1014
  "kind": "variable",
824
- "name": "buttonSizeStyles",
825
- "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Button)} {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Button)} {\n font-size: 0.938rem;\n font-weight: 400;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Button)} {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1rem;\n }\n }\n`)}\n`"
1015
+ "name": "checkboxContainerStyles",
1016
+ "default": "css`\n .t-checkbox-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-checkbox-full-container {\n cursor: not-allowed;\n }\n .t-checkbox-container {\n --t-checkbox-size-box: 1.5rem;\n --t-checkbox-shadow-width: 2px;\n --t-checkbox-border-radius: 0.25rem;\n display: block;\n position: relative;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n min-width: var(--t-checkbox-size-box);\n }\n .t-checkbox-container .t-checkbox {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-checkbox-container {\n --t-checkbox-size-box: 1rem;\n --t-checkbox-shadow-width: 1px;\n --t-checkbox-border-radius: 0.125rem;\n margin-top: 1px;\n }\n }\n`"
826
1017
  },
827
1018
  {
828
1019
  "kind": "variable",
829
- "name": "buttonColorStyles",
830
- "default": "css`\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button {\n background-color: var(--t-button-primary-color);\n outline: none;\n color: var(--t-button-text-color);\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:hover {\n background-color: var(--t-button-hover-primary-color);\n cursor: pointer;\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:focus {\n background-color: var(--t-button-hover-primary-color);\n outline: 2px solid var(--t-button-accent-color);\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:active {\n background-color: var(--t-button-active-primary-color);\n outline: none;\n }\n\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button {\n background-color: var(--t-button-secondary-color);\n outline: 1px solid var(--t-button-hover-primary-color);\n color: var(--t-button-text-secondary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:hover {\n background-color: var(--t-button-hover-secondary-color);\n outline: 1px solid var(--t-button-primary-color);\n color: var(--t-button-primary-color);\n cursor: pointer;\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:focus {\n background-color: var(--t-button-hover-secondary-color);\n outline: 2px solid var(--t-button-accent-color);\n color: var(--t-button-primary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:active {\n background-color: var(--t-button-active-secondary-color);\n outline: 1px solid var(--t-button-primary-color);\n color: var(--t-button-primary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:disabled {\n outline: 1px solid var(--t-button-text-muted-color);\n }\n\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}'][disabled]) .button,\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}'][disabled]) .button {\n background-color: var(--t-button-disabled-bg-color);\n color: var(--t-button-text-muted-color);\n cursor: not-allowed;\n }\n`"
1020
+ "name": "checkboxCheckmarkStyles",
1021
+ "default": "css`\n .t-checkbox-container .t-checkbox-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n border-radius: var(--t-checkbox-border-radius);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n }\n .t-checkbox-container .t-checkbox-checkmark tuix-icon {\n margin: auto;\n display: none;\n width: calc(var(--t-checkbox-size-box) - 0.5rem);\n height: calc(var(--t-checkbox-size-box) - 0.5rem);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark {\n background-color: var(--t-main-color-tuix);\n border: none;\n }\n .t-checkbox-container .t-checkbox:focus ~ .t-checkbox-checkmark {\n box-shadow: 0 0 0px var(--t-checkbox-shadow-width)\n var(--t-stroke-color-focus);\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark tuix-icon {\n display: block;\n }\n .t-checkbox-full-container:hover .t-checkbox-container .t-checkbox-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox:checked\n ~ .t-checkbox-checkmark {\n background-color: var(--t-text-color-error);\n border: none;\n }\n\n .t-checkbox-container .t-checkbox:disabled ~ .t-checkbox-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
1022
+ },
1023
+ {
1024
+ "kind": "variable",
1025
+ "name": "checkboxLabelStyles",
1026
+ "default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
831
1027
  }
832
1028
  ],
833
1029
  "exports": [
834
1030
  {
835
1031
  "kind": "js",
836
- "name": "hostButtonStyles",
1032
+ "name": "hostStyles",
837
1033
  "declaration": {
838
- "name": "hostButtonStyles",
839
- "module": "src/tuix-button/TuixButton.styles.ts"
1034
+ "name": "hostStyles",
1035
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
840
1036
  }
841
1037
  },
842
1038
  {
843
1039
  "kind": "js",
844
- "name": "buttonSizeStyles",
1040
+ "name": "checkboxContainerStyles",
845
1041
  "declaration": {
846
- "name": "buttonSizeStyles",
847
- "module": "src/tuix-button/TuixButton.styles.ts"
1042
+ "name": "checkboxContainerStyles",
1043
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
848
1044
  }
849
1045
  },
850
1046
  {
851
1047
  "kind": "js",
852
- "name": "buttonColorStyles",
1048
+ "name": "checkboxCheckmarkStyles",
853
1049
  "declaration": {
854
- "name": "buttonColorStyles",
855
- "module": "src/tuix-button/TuixButton.styles.ts"
1050
+ "name": "checkboxCheckmarkStyles",
1051
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
1052
+ }
1053
+ },
1054
+ {
1055
+ "kind": "js",
1056
+ "name": "checkboxLabelStyles",
1057
+ "declaration": {
1058
+ "name": "checkboxLabelStyles",
1059
+ "module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
856
1060
  }
857
1061
  }
858
1062
  ]
859
1063
  },
860
1064
  {
861
1065
  "kind": "javascript-module",
862
- "path": "src/tuix-button/TuixButton.ts",
1066
+ "path": "src/tuix-checkbox/TuixCheckbox.ts",
863
1067
  "declarations": [
864
1068
  {
865
1069
  "kind": "class",
866
1070
  "description": "",
867
- "name": "TuixButton",
1071
+ "name": "TuixCheckbox",
868
1072
  "members": [
869
1073
  {
870
1074
  "kind": "field",
871
- "name": "full",
1075
+ "name": "checked",
872
1076
  "type": {
873
1077
  "text": "boolean"
874
1078
  },
875
1079
  "default": "false",
876
- "attribute": "full",
1080
+ "attribute": "checked"
1081
+ },
1082
+ {
1083
+ "kind": "field",
1084
+ "name": "disabled",
1085
+ "type": {
1086
+ "text": "boolean"
1087
+ },
1088
+ "default": "false",
1089
+ "attribute": "disabled",
877
1090
  "reflects": true
878
1091
  },
879
1092
  {
880
1093
  "kind": "field",
881
- "name": "iconRight",
1094
+ "name": "dark",
882
1095
  "type": {
883
- "text": "IconName | undefined"
1096
+ "text": "boolean"
884
1097
  },
885
- "attribute": "iconRight"
1098
+ "default": "false",
1099
+ "attribute": "dark",
1100
+ "reflects": true
886
1101
  },
887
1102
  {
888
1103
  "kind": "field",
889
- "name": "iconLeft",
1104
+ "name": "error",
890
1105
  "type": {
891
- "text": "IconName | undefined"
1106
+ "text": "boolean"
892
1107
  },
893
- "attribute": "iconLeft"
1108
+ "default": "false",
1109
+ "attribute": "error",
1110
+ "reflects": true
1111
+ },
1112
+ {
1113
+ "kind": "field",
1114
+ "name": "label",
1115
+ "type": {
1116
+ "text": "string"
1117
+ },
1118
+ "default": "''",
1119
+ "attribute": "label"
1120
+ },
1121
+ {
1122
+ "kind": "field",
1123
+ "name": "labelSide",
1124
+ "type": {
1125
+ "text": "CheckboxLabelSide"
1126
+ },
1127
+ "attribute": "labelSide"
894
1128
  },
895
1129
  {
896
1130
  "kind": "method",
897
- "name": "_updateIconColor",
898
- "privacy": "protected",
899
- "return": {
900
- "type": {
901
- "text": "void"
1131
+ "name": "_onCheckboxChange",
1132
+ "privacy": "private",
1133
+ "parameters": [
1134
+ {
1135
+ "name": "event",
1136
+ "type": {
1137
+ "text": "InputEvent"
1138
+ }
902
1139
  }
903
- },
904
- "inheritedFrom": {
905
- "name": "TuixBaseButton",
906
- "module": "src/tuix-button/TuixBaseButton.ts"
907
- }
1140
+ ]
908
1141
  },
909
1142
  {
910
1143
  "kind": "method",
911
- "name": "_buttonContent",
912
- "privacy": "protected",
1144
+ "name": "_getIconMode",
1145
+ "privacy": "private"
1146
+ },
1147
+ {
1148
+ "kind": "method",
1149
+ "name": "_getFullContainerClasses",
1150
+ "privacy": "private",
913
1151
  "return": {
914
1152
  "type": {
915
- "text": "TemplateResult"
1153
+ "text": "ClassInfo"
916
1154
  }
917
- },
918
- "inheritedFrom": {
919
- "name": "TuixBaseButton",
920
- "module": "src/tuix-button/TuixBaseButton.ts"
921
1155
  }
922
- },
1156
+ }
1157
+ ],
1158
+ "events": [
923
1159
  {
924
- "kind": "field",
925
- "name": "variant",
926
- "attribute": "variant",
927
- "reflects": true,
928
- "inheritedFrom": {
929
- "name": "TuixBaseButton",
930
- "module": "src/tuix-button/TuixBaseButton.ts"
1160
+ "name": "change",
1161
+ "type": {
1162
+ "text": "CustomEvent"
931
1163
  }
1164
+ }
1165
+ ],
1166
+ "attributes": [
1167
+ {
1168
+ "name": "checked",
1169
+ "type": {
1170
+ "text": "boolean"
1171
+ },
1172
+ "default": "false",
1173
+ "fieldName": "checked"
932
1174
  },
933
1175
  {
934
- "kind": "field",
935
1176
  "name": "disabled",
936
1177
  "type": {
937
1178
  "text": "boolean"
938
1179
  },
939
1180
  "default": "false",
940
- "attribute": "disabled",
941
- "reflects": true,
942
- "inheritedFrom": {
943
- "name": "TuixBaseButton",
944
- "module": "src/tuix-button/TuixBaseButton.ts"
945
- }
1181
+ "fieldName": "disabled"
946
1182
  },
947
1183
  {
948
- "kind": "field",
949
1184
  "name": "dark",
950
1185
  "type": {
951
1186
  "text": "boolean"
952
1187
  },
953
1188
  "default": "false",
954
- "attribute": "dark",
955
- "reflects": true,
956
- "inheritedFrom": {
957
- "name": "TuixBaseButton",
958
- "module": "src/tuix-button/TuixBaseButton.ts"
959
- }
1189
+ "fieldName": "dark"
960
1190
  },
961
1191
  {
962
- "kind": "field",
963
- "name": "iconColor",
1192
+ "name": "error",
1193
+ "type": {
1194
+ "text": "boolean"
1195
+ },
1196
+ "default": "false",
1197
+ "fieldName": "error"
1198
+ },
1199
+ {
1200
+ "name": "label",
964
1201
  "type": {
965
1202
  "text": "string"
966
1203
  },
967
- "privacy": "protected",
968
1204
  "default": "''",
969
- "inheritedFrom": {
970
- "name": "TuixBaseButton",
971
- "module": "src/tuix-button/TuixBaseButton.ts"
972
- }
1205
+ "fieldName": "label"
973
1206
  },
974
1207
  {
975
- "kind": "method",
976
- "name": "_getTextColor",
977
- "privacy": "protected",
978
- "inheritedFrom": {
979
- "name": "TuixBaseButton",
980
- "module": "src/tuix-button/TuixBaseButton.ts"
981
- }
1208
+ "name": "labelSide",
1209
+ "type": {
1210
+ "text": "CheckboxLabelSide"
1211
+ },
1212
+ "fieldName": "labelSide"
1213
+ }
1214
+ ],
1215
+ "superclass": {
1216
+ "name": "LitElement",
1217
+ "package": "lit"
1218
+ },
1219
+ "tagName": "tuix-checkbox",
1220
+ "customElement": true
1221
+ }
1222
+ ],
1223
+ "exports": [
1224
+ {
1225
+ "kind": "js",
1226
+ "name": "TuixCheckbox",
1227
+ "declaration": {
1228
+ "name": "TuixCheckbox",
1229
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
1230
+ }
1231
+ },
1232
+ {
1233
+ "kind": "custom-element-definition",
1234
+ "name": "tuix-checkbox",
1235
+ "declaration": {
1236
+ "name": "TuixCheckbox",
1237
+ "module": "src/tuix-checkbox/TuixCheckbox.ts"
1238
+ }
1239
+ }
1240
+ ]
1241
+ },
1242
+ {
1243
+ "kind": "javascript-module",
1244
+ "path": "src/tuix-button/TuixBaseButton.ts",
1245
+ "declarations": [
1246
+ {
1247
+ "kind": "class",
1248
+ "description": "",
1249
+ "name": "TuixBaseButton",
1250
+ "members": [
1251
+ {
1252
+ "kind": "field",
1253
+ "name": "variant",
1254
+ "attribute": "variant",
1255
+ "reflects": true
1256
+ },
1257
+ {
1258
+ "kind": "field",
1259
+ "name": "disabled",
1260
+ "type": {
1261
+ "text": "boolean"
1262
+ },
1263
+ "default": "false",
1264
+ "attribute": "disabled",
1265
+ "reflects": true
1266
+ },
1267
+ {
1268
+ "kind": "field",
1269
+ "name": "dark",
1270
+ "type": {
1271
+ "text": "boolean"
1272
+ },
1273
+ "default": "false",
1274
+ "attribute": "dark",
1275
+ "reflects": true
1276
+ },
1277
+ {
1278
+ "kind": "field",
1279
+ "name": "iconColor",
1280
+ "type": {
1281
+ "text": "string"
1282
+ },
1283
+ "privacy": "protected",
1284
+ "default": "''"
982
1285
  },
983
1286
  {
984
1287
  "kind": "method",
985
- "name": "_handleClick",
1288
+ "name": "_getTextColor",
1289
+ "privacy": "protected"
1290
+ },
1291
+ {
1292
+ "kind": "method",
1293
+ "name": "_updateIconColor",
986
1294
  "privacy": "protected",
987
- "inheritedFrom": {
988
- "name": "TuixBaseButton",
989
- "module": "src/tuix-button/TuixBaseButton.ts"
1295
+ "return": {
1296
+ "type": {
1297
+ "text": "void"
1298
+ }
990
1299
  }
991
1300
  },
1301
+ {
1302
+ "kind": "method",
1303
+ "name": "_handleClick",
1304
+ "privacy": "protected"
1305
+ },
992
1306
  {
993
1307
  "kind": "method",
994
1308
  "name": "_iconTemplate",
@@ -1011,43 +1325,31 @@
1011
1325
  "text": "IconSizeVariant"
1012
1326
  }
1013
1327
  }
1014
- ],
1015
- "inheritedFrom": {
1016
- "name": "TuixBaseButton",
1017
- "module": "src/tuix-button/TuixBaseButton.ts"
1328
+ ]
1329
+ },
1330
+ {
1331
+ "kind": "method",
1332
+ "name": "_buttonContent",
1333
+ "privacy": "protected",
1334
+ "return": {
1335
+ "type": {
1336
+ "text": "TemplateResult"
1337
+ }
1018
1338
  }
1019
1339
  }
1020
1340
  ],
1021
- "attributes": [
1022
- {
1023
- "name": "full",
1024
- "type": {
1025
- "text": "boolean"
1026
- },
1027
- "default": "false",
1028
- "fieldName": "full"
1029
- },
1030
- {
1031
- "name": "iconRight",
1032
- "type": {
1033
- "text": "IconName | undefined"
1034
- },
1035
- "fieldName": "iconRight"
1036
- },
1341
+ "events": [
1037
1342
  {
1038
- "name": "iconLeft",
1343
+ "name": "customClick",
1039
1344
  "type": {
1040
- "text": "IconName | undefined"
1041
- },
1042
- "fieldName": "iconLeft"
1043
- },
1345
+ "text": "CustomEvent"
1346
+ }
1347
+ }
1348
+ ],
1349
+ "attributes": [
1044
1350
  {
1045
1351
  "name": "variant",
1046
- "fieldName": "variant",
1047
- "inheritedFrom": {
1048
- "name": "TuixBaseButton",
1049
- "module": "src/tuix-button/TuixBaseButton.ts"
1050
- }
1352
+ "fieldName": "variant"
1051
1353
  },
1052
1354
  {
1053
1355
  "name": "disabled",
@@ -1055,11 +1357,7 @@
1055
1357
  "text": "boolean"
1056
1358
  },
1057
1359
  "default": "false",
1058
- "fieldName": "disabled",
1059
- "inheritedFrom": {
1060
- "name": "TuixBaseButton",
1061
- "module": "src/tuix-button/TuixBaseButton.ts"
1062
- }
1360
+ "fieldName": "disabled"
1063
1361
  },
1064
1362
  {
1065
1363
  "name": "dark",
@@ -1067,568 +1365,265 @@
1067
1365
  "text": "boolean"
1068
1366
  },
1069
1367
  "default": "false",
1070
- "fieldName": "dark",
1071
- "inheritedFrom": {
1072
- "name": "TuixBaseButton",
1073
- "module": "src/tuix-button/TuixBaseButton.ts"
1074
- }
1368
+ "fieldName": "dark"
1075
1369
  }
1076
1370
  ],
1077
1371
  "superclass": {
1078
- "name": "TuixBaseButton",
1079
- "module": "/src/tuix-button/TuixBaseButton"
1372
+ "name": "LitElement",
1373
+ "package": "lit"
1080
1374
  },
1081
- "tagName": "tuix-button",
1082
- "customElement": true,
1083
- "events": [
1084
- {
1085
- "name": "customClick",
1086
- "type": {
1087
- "text": "CustomEvent"
1088
- },
1089
- "inheritedFrom": {
1090
- "name": "TuixBaseButton",
1091
- "module": "src/tuix-button/TuixBaseButton.ts"
1092
- }
1093
- }
1094
- ]
1375
+ "customElement": true
1095
1376
  }
1096
1377
  ],
1097
1378
  "exports": [
1098
1379
  {
1099
1380
  "kind": "js",
1100
- "name": "TuixButton",
1101
- "declaration": {
1102
- "name": "TuixButton",
1103
- "module": "src/tuix-button/TuixButton.ts"
1104
- }
1105
- },
1106
- {
1107
- "kind": "custom-element-definition",
1108
- "name": "tuix-button",
1381
+ "name": "TuixBaseButton",
1109
1382
  "declaration": {
1110
- "name": "TuixButton",
1111
- "module": "src/tuix-button/TuixButton.ts"
1383
+ "name": "TuixBaseButton",
1384
+ "module": "src/tuix-button/TuixBaseButton.ts"
1112
1385
  }
1113
1386
  }
1114
1387
  ]
1115
1388
  },
1116
1389
  {
1117
1390
  "kind": "javascript-module",
1118
- "path": "src/tuix-dropdown/TuixDropdown.styles.ts",
1391
+ "path": "src/tuix-button/TuixButton.styles.ts",
1119
1392
  "declarations": [
1120
1393
  {
1121
1394
  "kind": "variable",
1122
- "name": "dropdownHostStyles",
1123
- "default": "css`\n ${hostStyles}\n :host {\n --t-field-color-option: ${unsafeCSS(Palette.WHITE)};\n --t-field-color-main: ${unsafeCSS(Palette.MAIN)};\n }\n\n :host .t-input-dropdown {\n --t-field-font-weight: 300;\n --t-field-font-size: 1rem;\n --t-field-padding-x: 1rem;\n --t-field-title-left-position: 1rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.938rem;\n --t-field-line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.813rem;\n --t-field-line-height: 1rem;\n }\n }\n\n :host([dark]) {\n --t-field-color-option: ${unsafeCSS(DarkPalette.ELEVATION_2)};\n }\n`"
1395
+ "name": "hostButtonStyles",
1396
+ "default": "css`\n :host {\n --t-button-primary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-secondary-color: ${unsafeCSS(Palette.WHITE)};\n --t-button-accent-color: ${unsafeCSS(Palette.SECONDARY)};\n --t-button-text-color: ${unsafeCSS(Palette.WHITE)};\n --t-button-text-secondary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-text-muted-color: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-button-disabled-bg-color: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-button-hover-primary-color: ${unsafeCSS(Palette.PRIMARY_600)};\n --t-button-active-primary-color: ${unsafeCSS(Palette.PRIMARY_800)};\n --t-button-hover-secondary-color: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-button-active-secondary-color: ${unsafeCSS(Palette.PRIMARY_200)};\n }\n :host([dark]) {\n --t-button-primary-color: ${unsafeCSS(DarkPalette.MAIN)};\n --t-button-text-color: ${unsafeCSS(DarkPalette.WHITE)};\n --t-button-text-muted-color: ${unsafeCSS(Palette.PRIMARY_800)};\n --t-button-disabled-bg-color: ${unsafeCSS(Palette.PRIMARY_950)};\n --t-button-hover-primary-color: ${unsafeCSS(Palette.MAIN)};\n --t-button-active-primary-color: ${unsafeCSS(Palette.PRIMARY_600)};\n --t-button-secondary-color: ${unsafeCSS(Palette.BLACK)};\n --t-button-hover-secondary-color: ${unsafeCSS(Palette.PRIMARY_950)};\n --t-button-active-secondary-color: ${unsafeCSS(Palette.PRIMARY_800)};\n }\n`"
1124
1397
  },
1125
1398
  {
1126
1399
  "kind": "variable",
1127
- "name": "dropdownMainContainerStyles",
1128
- "default": "css`\n .t-dropdown-full-container {\n position: relative;\n font-family: 'Rubik', sans-serif;\n }\n .t-dropdown-container .t-input-dropdown {\n --t-field-input-cursor: pointer;\n }\n`"
1400
+ "name": "buttonSizeStyles",
1401
+ "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Button)} {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Button)} {\n font-size: 0.938rem;\n font-weight: 400;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Button)} {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1rem;\n }\n }\n`)}\n`"
1129
1402
  },
1130
1403
  {
1131
1404
  "kind": "variable",
1132
- "name": "dropdownOptionStyles",
1133
- "default": "css`\n .t-options-container {\n width: 100%;\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n border: none;\n border-radius: 0 0 5px 5px;\n background-color: var(--t-field-color-option);\n visibility: collapse;\n overflow-y: auto;\n max-height: 250px;\n color: var(--t-field-color-text);\n box-shadow: 0px 2px 8px 0px ${unsafeCSS(Palette.SHADOW)};\n z-index: 9999;\n }\n .t-options-container::-webkit-scrollbar {\n width: 0.75rem;\n }\n .t-options-container::-webkit-scrollbar-track {\n background-color: transparent;\n }\n .t-options-container::-webkit-scrollbar-thumb {\n background-color: ${unsafeCSS(Palette.PRIMARY_100)};\n border-radius: 0.25rem;\n border: 0.188rem solid transparent;\n background-clip: content-box;\n }\n .t-options-container.show {\n visibility: visible;\n }\n .t-options-container.show.t-with-description {\n top: calc(100% + 2px - 1.5rem);\n }\n @media only screen and (max-height: 500px) {\n .t-options-container {\n max-height: 50vh;\n }\n }\n .t-dropdown-option {\n padding: var(--t-field-padding-y) 1rem;\n cursor: pointer;\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 300;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .t-dropdown-option.t-option-hover {\n background-color: var(--t-field-color-form);\n }\n .t-dropdown-option.t-option-selected {\n color: var(--t-field-color-main);\n }\n .t-dropdown-option.t-option-filtered {\n display: none;\n }\n .t-dropdown-option:focus {\n outline: none;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .t-dropdown-option {\n font-size: 0.938rem;\n line-height: 1.125rem;\n --t-field-padding-y: 1.063rem;\n --t-field-padding-top: 1.5rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-dropdown-option {\n font-size: 0.813rem;\n line-height: 1rem;\n --t-field-padding-y: 1rem;\n --t-field-padding-top: 1.375rem;\n }\n }\n`"
1405
+ "name": "buttonColorStyles",
1406
+ "default": "css`\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button {\n background-color: var(--t-button-primary-color);\n outline: none;\n color: var(--t-button-text-color);\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:hover {\n background-color: var(--t-button-hover-primary-color);\n cursor: pointer;\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:focus {\n background-color: var(--t-button-hover-primary-color);\n outline: 2px solid var(--t-button-accent-color);\n }\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}']) .button:active {\n background-color: var(--t-button-active-primary-color);\n outline: none;\n }\n\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button {\n background-color: var(--t-button-secondary-color);\n outline: 1px solid var(--t-button-hover-primary-color);\n color: var(--t-button-text-secondary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:hover {\n background-color: var(--t-button-hover-secondary-color);\n outline: 1px solid var(--t-button-primary-color);\n color: var(--t-button-primary-color);\n cursor: pointer;\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:focus {\n background-color: var(--t-button-hover-secondary-color);\n outline: 2px solid var(--t-button-accent-color);\n color: var(--t-button-primary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:active {\n background-color: var(--t-button-active-secondary-color);\n outline: 1px solid var(--t-button-primary-color);\n color: var(--t-button-primary-color);\n }\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}']) .button:disabled {\n outline: 1px solid var(--t-button-text-muted-color);\n }\n\n :host([variant='${unsafeCSS(MainVariant.SECONDARY)}'][disabled]) .button,\n :host([variant='${unsafeCSS(MainVariant.PRIMARY)}'][disabled]) .button {\n background-color: var(--t-button-disabled-bg-color);\n color: var(--t-button-text-muted-color);\n cursor: not-allowed;\n }\n`"
1134
1407
  }
1135
1408
  ],
1136
1409
  "exports": [
1137
1410
  {
1138
1411
  "kind": "js",
1139
- "name": "dropdownHostStyles",
1412
+ "name": "hostButtonStyles",
1140
1413
  "declaration": {
1141
- "name": "dropdownHostStyles",
1142
- "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
1414
+ "name": "hostButtonStyles",
1415
+ "module": "src/tuix-button/TuixButton.styles.ts"
1143
1416
  }
1144
1417
  },
1145
1418
  {
1146
1419
  "kind": "js",
1147
- "name": "dropdownMainContainerStyles",
1420
+ "name": "buttonSizeStyles",
1148
1421
  "declaration": {
1149
- "name": "dropdownMainContainerStyles",
1150
- "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
1422
+ "name": "buttonSizeStyles",
1423
+ "module": "src/tuix-button/TuixButton.styles.ts"
1151
1424
  }
1152
1425
  },
1153
1426
  {
1154
1427
  "kind": "js",
1155
- "name": "dropdownOptionStyles",
1428
+ "name": "buttonColorStyles",
1156
1429
  "declaration": {
1157
- "name": "dropdownOptionStyles",
1158
- "module": "src/tuix-dropdown/TuixDropdown.styles.ts"
1430
+ "name": "buttonColorStyles",
1431
+ "module": "src/tuix-button/TuixButton.styles.ts"
1159
1432
  }
1160
1433
  }
1161
1434
  ]
1162
1435
  },
1163
1436
  {
1164
1437
  "kind": "javascript-module",
1165
- "path": "src/tuix-dropdown/TuixDropdown.ts",
1438
+ "path": "src/tuix-button/TuixButton.ts",
1166
1439
  "declarations": [
1167
1440
  {
1168
1441
  "kind": "class",
1169
1442
  "description": "",
1170
- "name": "TuixDropdown",
1443
+ "name": "TuixButton",
1171
1444
  "members": [
1172
1445
  {
1173
1446
  "kind": "field",
1174
- "name": "value",
1447
+ "name": "full",
1175
1448
  "type": {
1176
- "text": "TuixDropdownOption | undefined"
1449
+ "text": "boolean"
1177
1450
  },
1178
- "default": "undefined",
1179
- "attribute": "value"
1451
+ "default": "false",
1452
+ "attribute": "full",
1453
+ "reflects": true
1180
1454
  },
1181
1455
  {
1182
1456
  "kind": "field",
1183
- "name": "options",
1457
+ "name": "iconRight",
1184
1458
  "type": {
1185
- "text": "TuixDropdownOption[]"
1459
+ "text": "IconName | undefined"
1186
1460
  },
1187
- "default": "[]",
1188
- "attribute": "options"
1461
+ "attribute": "iconRight"
1189
1462
  },
1190
1463
  {
1191
1464
  "kind": "field",
1192
- "name": "placeholder",
1465
+ "name": "iconLeft",
1193
1466
  "type": {
1194
- "text": "string"
1467
+ "text": "IconName | undefined"
1195
1468
  },
1196
- "default": "''",
1197
- "attribute": "placeholder"
1469
+ "attribute": "iconLeft"
1198
1470
  },
1199
1471
  {
1200
- "kind": "field",
1201
- "name": "title",
1202
- "type": {
1203
- "text": "string"
1204
- },
1205
- "default": "''",
1206
- "attribute": "title"
1207
- },
1208
- {
1209
- "kind": "field",
1210
- "name": "disabled",
1211
- "type": {
1212
- "text": "boolean"
1213
- },
1214
- "default": "false",
1215
- "attribute": "disabled",
1216
- "reflects": true
1217
- },
1218
- {
1219
- "kind": "field",
1220
- "name": "dark",
1221
- "type": {
1222
- "text": "boolean"
1472
+ "kind": "method",
1473
+ "name": "_updateIconColor",
1474
+ "privacy": "protected",
1475
+ "return": {
1476
+ "type": {
1477
+ "text": "void"
1478
+ }
1223
1479
  },
1224
- "default": "false",
1225
- "attribute": "dark",
1226
- "reflects": true
1480
+ "inheritedFrom": {
1481
+ "name": "TuixBaseButton",
1482
+ "module": "src/tuix-button/TuixBaseButton.ts"
1483
+ }
1227
1484
  },
1228
1485
  {
1229
- "kind": "field",
1230
- "name": "description",
1231
- "type": {
1232
- "text": "string | undefined"
1486
+ "kind": "method",
1487
+ "name": "_buttonContent",
1488
+ "privacy": "protected",
1489
+ "return": {
1490
+ "type": {
1491
+ "text": "TemplateResult"
1492
+ }
1233
1493
  },
1234
- "attribute": "description"
1235
- },
1236
- {
1237
- "kind": "field",
1238
- "name": "descriptionType",
1239
- "attribute": "descriptionType"
1240
- },
1241
- {
1242
- "kind": "field",
1243
- "name": "type",
1244
- "attribute": "type"
1494
+ "inheritedFrom": {
1495
+ "name": "TuixBaseButton",
1496
+ "module": "src/tuix-button/TuixBaseButton.ts"
1497
+ }
1245
1498
  },
1246
1499
  {
1247
1500
  "kind": "field",
1248
- "name": "_value",
1249
- "type": {
1250
- "text": "string"
1251
- },
1252
- "privacy": "private",
1253
- "default": "''"
1501
+ "name": "variant",
1502
+ "attribute": "variant",
1503
+ "reflects": true,
1504
+ "inheritedFrom": {
1505
+ "name": "TuixBaseButton",
1506
+ "module": "src/tuix-button/TuixBaseButton.ts"
1507
+ }
1254
1508
  },
1255
1509
  {
1256
1510
  "kind": "field",
1257
- "name": "_isOptionsVisible",
1511
+ "name": "disabled",
1258
1512
  "type": {
1259
1513
  "text": "boolean"
1260
1514
  },
1261
- "privacy": "private",
1262
- "default": "false"
1515
+ "default": "false",
1516
+ "attribute": "disabled",
1517
+ "reflects": true,
1518
+ "inheritedFrom": {
1519
+ "name": "TuixBaseButton",
1520
+ "module": "src/tuix-button/TuixBaseButton.ts"
1521
+ }
1263
1522
  },
1264
1523
  {
1265
1524
  "kind": "field",
1266
- "name": "_searchingOption",
1525
+ "name": "dark",
1267
1526
  "type": {
1268
1527
  "text": "boolean"
1269
1528
  },
1270
- "privacy": "private",
1271
- "default": "false"
1272
- },
1273
- {
1274
- "kind": "field",
1275
- "name": "_extendedOptions",
1276
- "type": {
1277
- "text": "TuixDropdownExtendedOption[]"
1278
- },
1279
- "default": "[]"
1280
- },
1281
- {
1282
- "kind": "field",
1283
- "name": "_optionsContainer",
1284
- "type": {
1285
- "text": "HTMLElement | undefined"
1286
- },
1287
- "privacy": "private"
1288
- },
1289
- {
1290
- "kind": "field",
1291
- "name": "_inputDropdown",
1292
- "type": {
1293
- "text": "HTMLElement | undefined"
1294
- },
1295
- "privacy": "private"
1296
- },
1297
- {
1298
- "kind": "field",
1299
- "name": "_previousSelectedOption",
1300
- "type": {
1301
- "text": "HTMLElement | null"
1302
- },
1303
- "privacy": "private",
1304
- "default": "null"
1529
+ "default": "false",
1530
+ "attribute": "dark",
1531
+ "reflects": true,
1532
+ "inheritedFrom": {
1533
+ "name": "TuixBaseButton",
1534
+ "module": "src/tuix-button/TuixBaseButton.ts"
1535
+ }
1305
1536
  },
1306
1537
  {
1307
1538
  "kind": "field",
1308
- "name": "_previousFocusedOption",
1539
+ "name": "iconColor",
1309
1540
  "type": {
1310
- "text": "HTMLElement | null"
1541
+ "text": "string"
1311
1542
  },
1312
- "privacy": "private",
1313
- "default": "null"
1314
- },
1315
- {
1316
- "kind": "method",
1317
- "name": "_onEnterPress",
1318
- "privacy": "private",
1319
- "parameters": [
1320
- {
1321
- "name": "event",
1322
- "type": {
1323
- "text": "KeyboardEvent"
1324
- }
1325
- }
1326
- ]
1327
- },
1328
- {
1329
- "kind": "method",
1330
- "name": "_onKeyDownOption",
1331
- "privacy": "private",
1332
- "parameters": [
1333
- {
1334
- "name": "event",
1335
- "type": {
1336
- "text": "KeyboardEvent"
1337
- }
1338
- }
1339
- ]
1340
- },
1341
- {
1342
- "kind": "method",
1343
- "name": "_onKeyPressOption",
1344
- "privacy": "private",
1345
- "parameters": [
1346
- {
1347
- "name": "event",
1348
- "type": {
1349
- "text": "KeyboardEvent"
1350
- }
1351
- }
1352
- ]
1353
- },
1354
- {
1355
- "kind": "method",
1356
- "name": "_onMouseOverOption",
1357
- "privacy": "private",
1358
- "parameters": [
1359
- {
1360
- "name": "event",
1361
- "type": {
1362
- "text": "MouseEvent"
1363
- }
1364
- }
1365
- ]
1366
- },
1367
- {
1368
- "kind": "method",
1369
- "name": "_onClickOption",
1370
- "privacy": "private",
1371
- "parameters": [
1372
- {
1373
- "name": "event",
1374
- "type": {
1375
- "text": "MouseEvent | KeyboardEvent"
1376
- }
1377
- }
1378
- ]
1379
- },
1380
- {
1381
- "kind": "method",
1382
- "name": "_onInputSingle",
1383
1543
  "privacy": "protected",
1384
- "parameters": [
1385
- {
1386
- "name": "e",
1387
- "type": {
1388
- "text": "CustomEvent"
1389
- }
1390
- }
1391
- ]
1544
+ "default": "''",
1545
+ "inheritedFrom": {
1546
+ "name": "TuixBaseButton",
1547
+ "module": "src/tuix-button/TuixBaseButton.ts"
1548
+ }
1392
1549
  },
1393
1550
  {
1394
1551
  "kind": "method",
1395
- "name": "_handleSelectEvent",
1552
+ "name": "_getTextColor",
1396
1553
  "privacy": "protected",
1397
- "parameters": [
1398
- {
1399
- "name": "event",
1400
- "type": {
1401
- "text": "MouseEvent | KeyboardEvent"
1402
- }
1403
- }
1404
- ]
1405
- },
1406
- {
1407
- "kind": "method",
1408
- "name": "_handleBlur",
1409
- "privacy": "private"
1410
- },
1411
- {
1412
- "kind": "method",
1413
- "name": "_getOptionName",
1414
- "privacy": "private",
1415
- "return": {
1416
- "type": {
1417
- "text": "string"
1418
- }
1419
- },
1420
- "parameters": [
1421
- {
1422
- "name": "option",
1423
- "type": {
1424
- "text": "TuixDropdownOption"
1425
- }
1426
- }
1427
- ]
1554
+ "inheritedFrom": {
1555
+ "name": "TuixBaseButton",
1556
+ "module": "src/tuix-button/TuixBaseButton.ts"
1557
+ }
1428
1558
  },
1429
1559
  {
1430
1560
  "kind": "method",
1431
- "name": "_getOptionValue",
1432
- "privacy": "private",
1433
- "return": {
1434
- "type": {
1435
- "text": "TuixDropdownPlainOption"
1436
- }
1437
- },
1438
- "parameters": [
1439
- {
1440
- "name": "option",
1441
- "type": {
1442
- "text": "TuixDropdownOption"
1443
- }
1444
- }
1445
- ]
1561
+ "name": "_handleClick",
1562
+ "privacy": "protected",
1563
+ "inheritedFrom": {
1564
+ "name": "TuixBaseButton",
1565
+ "module": "src/tuix-button/TuixBaseButton.ts"
1566
+ }
1446
1567
  },
1447
1568
  {
1448
1569
  "kind": "method",
1449
- "name": "_findIndex",
1450
- "privacy": "private",
1570
+ "name": "_iconTemplate",
1571
+ "privacy": "protected",
1451
1572
  "return": {
1452
1573
  "type": {
1453
- "text": "number"
1574
+ "text": "TemplateResult"
1454
1575
  }
1455
1576
  },
1456
1577
  "parameters": [
1457
1578
  {
1458
- "name": "option",
1459
- "type": {
1460
- "text": "TuixDropdownOption"
1461
- }
1462
- }
1463
- ]
1464
- },
1465
- {
1466
- "kind": "method",
1467
- "name": "_handleInputBase",
1468
- "privacy": "private",
1469
- "parameters": [
1470
- {
1471
- "name": "e",
1579
+ "name": "iconName",
1472
1580
  "type": {
1473
- "text": "CustomEvent"
1581
+ "text": "IconName"
1474
1582
  }
1475
1583
  },
1476
1584
  {
1477
- "name": "eventName",
1478
- "type": {
1479
- "text": "string"
1480
- }
1481
- }
1482
- ]
1483
- },
1484
- {
1485
- "kind": "method",
1486
- "name": "_extendOptionsList",
1487
- "privacy": "private",
1488
- "parameters": [
1489
- {
1490
- "name": "value",
1491
- "default": "''"
1492
- }
1493
- ]
1494
- },
1495
- {
1496
- "kind": "method",
1497
- "name": "_handleArrowDown",
1498
- "privacy": "private"
1499
- },
1500
- {
1501
- "kind": "method",
1502
- "name": "_handleArrowUp",
1503
- "privacy": "private"
1504
- },
1505
- {
1506
- "kind": "field",
1507
- "name": "_handleClickOutside",
1508
- "privacy": "private"
1509
- },
1510
- {
1511
- "kind": "method",
1512
- "name": "_focusTargetOption",
1513
- "privacy": "private",
1514
- "parameters": [
1515
- {
1516
- "name": "targetOption",
1585
+ "name": "iconSize",
1517
1586
  "type": {
1518
- "text": "HTMLElement"
1587
+ "text": "IconSizeVariant"
1519
1588
  }
1520
- },
1521
- {
1522
- "name": "extrict",
1523
- "default": "true"
1524
- }
1525
- ]
1526
- },
1527
- {
1528
- "kind": "method",
1529
- "name": "_toggleOptions",
1530
- "privacy": "private"
1531
- },
1532
- {
1533
- "kind": "method",
1534
- "name": "_focusOptionsContainer",
1535
- "privacy": "private"
1536
- },
1537
- {
1538
- "kind": "method",
1539
- "name": "_unselectPreviousOption",
1540
- "privacy": "private"
1541
- },
1542
- {
1543
- "kind": "method",
1544
- "name": "_hasCompleteDescription",
1545
- "privacy": "private",
1546
- "return": {
1547
- "type": {
1548
- "text": "boolean"
1549
1589
  }
1550
- }
1551
- },
1552
- {
1553
- "kind": "method",
1554
- "name": "_getOptionsContainerClasses",
1555
- "privacy": "private",
1556
- "return": {
1557
- "type": {
1558
- "text": "ClassInfo"
1559
- }
1560
- }
1561
- },
1562
- {
1563
- "kind": "method",
1564
- "name": "_triggerUpdateByExternalValueChange",
1565
- "privacy": "private"
1566
- },
1567
- {
1568
- "kind": "method",
1569
- "name": "_resetPreviousSelection",
1570
- "privacy": "private"
1571
- },
1572
- {
1573
- "kind": "method",
1574
- "name": "_getOptionsTemplate",
1575
- "privacy": "private",
1576
- "return": {
1577
- "type": {
1578
- "text": "TemplateResult[]"
1579
- }
1580
- }
1581
- }
1582
- ],
1583
- "events": [
1584
- {
1585
- "name": "select",
1586
- "type": {
1587
- "text": "CustomEvent"
1588
- }
1589
- },
1590
- {
1591
- "name": "eventName",
1592
- "type": {
1593
- "text": "CustomEvent"
1590
+ ],
1591
+ "inheritedFrom": {
1592
+ "name": "TuixBaseButton",
1593
+ "module": "src/tuix-button/TuixBaseButton.ts"
1594
1594
  }
1595
1595
  }
1596
1596
  ],
1597
1597
  "attributes": [
1598
1598
  {
1599
- "name": "value",
1600
- "type": {
1601
- "text": "TuixDropdownOption | undefined"
1602
- },
1603
- "default": "undefined",
1604
- "resolveInitializer": {
1605
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1606
- },
1607
- "fieldName": "value"
1608
- },
1609
- {
1610
- "name": "options",
1599
+ "name": "full",
1611
1600
  "type": {
1612
- "text": "TuixDropdownOption[]"
1601
+ "text": "boolean"
1613
1602
  },
1614
- "default": "[]",
1615
- "fieldName": "options"
1603
+ "default": "false",
1604
+ "fieldName": "full"
1616
1605
  },
1617
1606
  {
1618
- "name": "placeholder",
1607
+ "name": "iconRight",
1619
1608
  "type": {
1620
- "text": "string"
1609
+ "text": "IconName | undefined"
1621
1610
  },
1622
- "default": "''",
1623
- "fieldName": "placeholder"
1611
+ "fieldName": "iconRight"
1624
1612
  },
1625
1613
  {
1626
- "name": "title",
1614
+ "name": "iconLeft",
1627
1615
  "type": {
1628
- "text": "string"
1616
+ "text": "IconName | undefined"
1629
1617
  },
1630
- "default": "''",
1631
- "fieldName": "title"
1618
+ "fieldName": "iconLeft"
1619
+ },
1620
+ {
1621
+ "name": "variant",
1622
+ "fieldName": "variant",
1623
+ "inheritedFrom": {
1624
+ "name": "TuixBaseButton",
1625
+ "module": "src/tuix-button/TuixBaseButton.ts"
1626
+ }
1632
1627
  },
1633
1628
  {
1634
1629
  "name": "disabled",
@@ -1636,7 +1631,11 @@
1636
1631
  "text": "boolean"
1637
1632
  },
1638
1633
  "default": "false",
1639
- "fieldName": "disabled"
1634
+ "fieldName": "disabled",
1635
+ "inheritedFrom": {
1636
+ "name": "TuixBaseButton",
1637
+ "module": "src/tuix-button/TuixBaseButton.ts"
1638
+ }
1640
1639
  },
1641
1640
  {
1642
1641
  "name": "dark",
@@ -1644,47 +1643,48 @@
1644
1643
  "text": "boolean"
1645
1644
  },
1646
1645
  "default": "false",
1647
- "fieldName": "dark"
1648
- },
1649
- {
1650
- "name": "description",
1651
- "type": {
1652
- "text": "string | undefined"
1653
- },
1654
- "fieldName": "description"
1655
- },
1656
- {
1657
- "name": "descriptionType",
1658
- "fieldName": "descriptionType"
1659
- },
1660
- {
1661
- "name": "type",
1662
- "fieldName": "type"
1646
+ "fieldName": "dark",
1647
+ "inheritedFrom": {
1648
+ "name": "TuixBaseButton",
1649
+ "module": "src/tuix-button/TuixBaseButton.ts"
1650
+ }
1663
1651
  }
1664
1652
  ],
1665
1653
  "superclass": {
1666
- "name": "LitElement",
1667
- "package": "lit"
1654
+ "name": "TuixBaseButton",
1655
+ "module": "/src/tuix-button/TuixBaseButton"
1668
1656
  },
1669
- "tagName": "tuix-dropdown",
1670
- "customElement": true
1657
+ "tagName": "tuix-button",
1658
+ "customElement": true,
1659
+ "events": [
1660
+ {
1661
+ "name": "customClick",
1662
+ "type": {
1663
+ "text": "CustomEvent"
1664
+ },
1665
+ "inheritedFrom": {
1666
+ "name": "TuixBaseButton",
1667
+ "module": "src/tuix-button/TuixBaseButton.ts"
1668
+ }
1669
+ }
1670
+ ]
1671
1671
  }
1672
1672
  ],
1673
1673
  "exports": [
1674
1674
  {
1675
1675
  "kind": "js",
1676
- "name": "TuixDropdown",
1676
+ "name": "TuixButton",
1677
1677
  "declaration": {
1678
- "name": "TuixDropdown",
1679
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1678
+ "name": "TuixButton",
1679
+ "module": "src/tuix-button/TuixButton.ts"
1680
1680
  }
1681
1681
  },
1682
1682
  {
1683
1683
  "kind": "custom-element-definition",
1684
- "name": "tuix-dropdown",
1684
+ "name": "tuix-button",
1685
1685
  "declaration": {
1686
- "name": "TuixDropdown",
1687
- "module": "src/tuix-dropdown/TuixDropdown.ts"
1686
+ "name": "TuixButton",
1687
+ "module": "src/tuix-button/TuixButton.ts"
1688
1688
  }
1689
1689
  }
1690
1690
  ]
@@ -1813,75 +1813,292 @@
1813
1813
  },
1814
1814
  {
1815
1815
  "kind": "method",
1816
- "name": "_getSelectedFill",
1817
- "privacy": "private"
1816
+ "name": "_getSelectedFill",
1817
+ "privacy": "private"
1818
+ },
1819
+ {
1820
+ "kind": "method",
1821
+ "name": "_getIconTemplate",
1822
+ "privacy": "private",
1823
+ "return": {
1824
+ "type": {
1825
+ "text": "TemplateResult"
1826
+ }
1827
+ }
1828
+ }
1829
+ ],
1830
+ "attributes": [
1831
+ {
1832
+ "name": "name",
1833
+ "fieldName": "name"
1834
+ },
1835
+ {
1836
+ "name": "color",
1837
+ "type": {
1838
+ "text": "string | TextVariant | undefined"
1839
+ },
1840
+ "fieldName": "color"
1841
+ },
1842
+ {
1843
+ "name": "size",
1844
+ "fieldName": "size"
1845
+ },
1846
+ {
1847
+ "name": "dark",
1848
+ "type": {
1849
+ "text": "boolean"
1850
+ },
1851
+ "default": "false",
1852
+ "fieldName": "dark"
1853
+ },
1854
+ {
1855
+ "name": "fill",
1856
+ "type": {
1857
+ "text": "string | TextVariant | undefined"
1858
+ },
1859
+ "fieldName": "fill"
1860
+ }
1861
+ ],
1862
+ "superclass": {
1863
+ "name": "LitElement",
1864
+ "package": "lit"
1865
+ },
1866
+ "tagName": "tuix-icon",
1867
+ "customElement": true
1868
+ }
1869
+ ],
1870
+ "exports": [
1871
+ {
1872
+ "kind": "js",
1873
+ "name": "TuixIcon",
1874
+ "declaration": {
1875
+ "name": "TuixIcon",
1876
+ "module": "src/tuix-icon/TuixIcon.ts"
1877
+ }
1878
+ },
1879
+ {
1880
+ "kind": "custom-element-definition",
1881
+ "name": "tuix-icon",
1882
+ "declaration": {
1883
+ "name": "TuixIcon",
1884
+ "module": "src/tuix-icon/TuixIcon.ts"
1885
+ }
1886
+ }
1887
+ ]
1888
+ },
1889
+ {
1890
+ "kind": "javascript-module",
1891
+ "path": "src/tuix-icon-button/TuixIconButton.ts",
1892
+ "declarations": [
1893
+ {
1894
+ "kind": "class",
1895
+ "description": "",
1896
+ "name": "TuixIconButton",
1897
+ "members": [
1898
+ {
1899
+ "kind": "field",
1900
+ "name": "icon",
1901
+ "attribute": "icon"
1902
+ },
1903
+ {
1904
+ "kind": "method",
1905
+ "name": "_updateIconColor",
1906
+ "privacy": "protected",
1907
+ "return": {
1908
+ "type": {
1909
+ "text": "void"
1910
+ }
1911
+ },
1912
+ "inheritedFrom": {
1913
+ "name": "TuixBaseButton",
1914
+ "module": "src/tuix-button/TuixBaseButton.ts"
1915
+ }
1916
+ },
1917
+ {
1918
+ "kind": "method",
1919
+ "name": "_buttonContent",
1920
+ "privacy": "protected",
1921
+ "return": {
1922
+ "type": {
1923
+ "text": "TemplateResult"
1924
+ }
1925
+ },
1926
+ "inheritedFrom": {
1927
+ "name": "TuixBaseButton",
1928
+ "module": "src/tuix-button/TuixBaseButton.ts"
1929
+ }
1930
+ },
1931
+ {
1932
+ "kind": "field",
1933
+ "name": "variant",
1934
+ "attribute": "variant",
1935
+ "reflects": true,
1936
+ "inheritedFrom": {
1937
+ "name": "TuixBaseButton",
1938
+ "module": "src/tuix-button/TuixBaseButton.ts"
1939
+ }
1940
+ },
1941
+ {
1942
+ "kind": "field",
1943
+ "name": "disabled",
1944
+ "type": {
1945
+ "text": "boolean"
1946
+ },
1947
+ "default": "false",
1948
+ "attribute": "disabled",
1949
+ "reflects": true,
1950
+ "inheritedFrom": {
1951
+ "name": "TuixBaseButton",
1952
+ "module": "src/tuix-button/TuixBaseButton.ts"
1953
+ }
1954
+ },
1955
+ {
1956
+ "kind": "field",
1957
+ "name": "dark",
1958
+ "type": {
1959
+ "text": "boolean"
1960
+ },
1961
+ "default": "false",
1962
+ "attribute": "dark",
1963
+ "reflects": true,
1964
+ "inheritedFrom": {
1965
+ "name": "TuixBaseButton",
1966
+ "module": "src/tuix-button/TuixBaseButton.ts"
1967
+ }
1968
+ },
1969
+ {
1970
+ "kind": "field",
1971
+ "name": "iconColor",
1972
+ "type": {
1973
+ "text": "string"
1974
+ },
1975
+ "privacy": "protected",
1976
+ "default": "''",
1977
+ "inheritedFrom": {
1978
+ "name": "TuixBaseButton",
1979
+ "module": "src/tuix-button/TuixBaseButton.ts"
1980
+ }
1981
+ },
1982
+ {
1983
+ "kind": "method",
1984
+ "name": "_getTextColor",
1985
+ "privacy": "protected",
1986
+ "inheritedFrom": {
1987
+ "name": "TuixBaseButton",
1988
+ "module": "src/tuix-button/TuixBaseButton.ts"
1989
+ }
1990
+ },
1991
+ {
1992
+ "kind": "method",
1993
+ "name": "_handleClick",
1994
+ "privacy": "protected",
1995
+ "inheritedFrom": {
1996
+ "name": "TuixBaseButton",
1997
+ "module": "src/tuix-button/TuixBaseButton.ts"
1998
+ }
1818
1999
  },
1819
2000
  {
1820
2001
  "kind": "method",
1821
- "name": "_getIconTemplate",
1822
- "privacy": "private",
2002
+ "name": "_iconTemplate",
2003
+ "privacy": "protected",
1823
2004
  "return": {
1824
2005
  "type": {
1825
2006
  "text": "TemplateResult"
1826
2007
  }
2008
+ },
2009
+ "parameters": [
2010
+ {
2011
+ "name": "iconName",
2012
+ "type": {
2013
+ "text": "IconName"
2014
+ }
2015
+ },
2016
+ {
2017
+ "name": "iconSize",
2018
+ "type": {
2019
+ "text": "IconSizeVariant"
2020
+ }
2021
+ }
2022
+ ],
2023
+ "inheritedFrom": {
2024
+ "name": "TuixBaseButton",
2025
+ "module": "src/tuix-button/TuixBaseButton.ts"
1827
2026
  }
1828
2027
  }
1829
2028
  ],
1830
2029
  "attributes": [
1831
2030
  {
1832
- "name": "name",
1833
- "fieldName": "name"
1834
- },
1835
- {
1836
- "name": "color",
1837
- "type": {
1838
- "text": "string | TextVariant | undefined"
1839
- },
1840
- "fieldName": "color"
2031
+ "name": "icon",
2032
+ "fieldName": "icon"
1841
2033
  },
1842
2034
  {
1843
- "name": "size",
1844
- "fieldName": "size"
2035
+ "name": "variant",
2036
+ "fieldName": "variant",
2037
+ "inheritedFrom": {
2038
+ "name": "TuixBaseButton",
2039
+ "module": "src/tuix-button/TuixBaseButton.ts"
2040
+ }
1845
2041
  },
1846
2042
  {
1847
- "name": "dark",
2043
+ "name": "disabled",
1848
2044
  "type": {
1849
2045
  "text": "boolean"
1850
2046
  },
1851
2047
  "default": "false",
1852
- "fieldName": "dark"
2048
+ "fieldName": "disabled",
2049
+ "inheritedFrom": {
2050
+ "name": "TuixBaseButton",
2051
+ "module": "src/tuix-button/TuixBaseButton.ts"
2052
+ }
1853
2053
  },
1854
2054
  {
1855
- "name": "fill",
2055
+ "name": "dark",
1856
2056
  "type": {
1857
- "text": "string | TextVariant | undefined"
2057
+ "text": "boolean"
1858
2058
  },
1859
- "fieldName": "fill"
2059
+ "default": "false",
2060
+ "fieldName": "dark",
2061
+ "inheritedFrom": {
2062
+ "name": "TuixBaseButton",
2063
+ "module": "src/tuix-button/TuixBaseButton.ts"
2064
+ }
1860
2065
  }
1861
2066
  ],
1862
2067
  "superclass": {
1863
- "name": "LitElement",
1864
- "package": "lit"
2068
+ "name": "TuixBaseButton",
2069
+ "module": "/src/tuix-button/TuixBaseButton"
1865
2070
  },
1866
- "tagName": "tuix-icon",
1867
- "customElement": true
2071
+ "tagName": "tuix-icon-button",
2072
+ "customElement": true,
2073
+ "events": [
2074
+ {
2075
+ "name": "customClick",
2076
+ "type": {
2077
+ "text": "CustomEvent"
2078
+ },
2079
+ "inheritedFrom": {
2080
+ "name": "TuixBaseButton",
2081
+ "module": "src/tuix-button/TuixBaseButton.ts"
2082
+ }
2083
+ }
2084
+ ]
1868
2085
  }
1869
2086
  ],
1870
2087
  "exports": [
1871
2088
  {
1872
2089
  "kind": "js",
1873
- "name": "TuixIcon",
2090
+ "name": "TuixIconButton",
1874
2091
  "declaration": {
1875
- "name": "TuixIcon",
1876
- "module": "src/tuix-icon/TuixIcon.ts"
2092
+ "name": "TuixIconButton",
2093
+ "module": "src/tuix-icon-button/TuixIconButton.ts"
1877
2094
  }
1878
2095
  },
1879
2096
  {
1880
2097
  "kind": "custom-element-definition",
1881
- "name": "tuix-icon",
2098
+ "name": "tuix-icon-button",
1882
2099
  "declaration": {
1883
- "name": "TuixIcon",
1884
- "module": "src/tuix-icon/TuixIcon.ts"
2100
+ "name": "TuixIconButton",
2101
+ "module": "src/tuix-icon-button/TuixIconButton.ts"
1885
2102
  }
1886
2103
  }
1887
2104
  ]
@@ -2408,317 +2625,100 @@
2408
2625
  },
2409
2626
  "fieldName": "iconRight"
2410
2627
  },
2411
- {
2412
- "name": "value",
2413
- "type": {
2414
- "text": "string"
2415
- },
2416
- "default": "''",
2417
- "fieldName": "value"
2418
- },
2419
- {
2420
- "name": "placeholder",
2421
- "type": {
2422
- "text": "string"
2423
- },
2424
- "default": "''",
2425
- "fieldName": "placeholder"
2426
- },
2427
- {
2428
- "name": "title",
2429
- "type": {
2430
- "text": "string"
2431
- },
2432
- "default": "''",
2433
- "fieldName": "title"
2434
- },
2435
- {
2436
- "name": "type",
2437
- "fieldName": "type"
2438
- },
2439
- {
2440
- "name": "maxlength",
2441
- "type": {
2442
- "text": "number | undefined"
2443
- },
2444
- "fieldName": "maxlength"
2445
- },
2446
- {
2447
- "name": "description",
2448
- "type": {
2449
- "text": "string | undefined"
2450
- },
2451
- "fieldName": "description"
2452
- },
2453
- {
2454
- "name": "descriptionType",
2455
- "fieldName": "descriptionType"
2456
- },
2457
- {
2458
- "name": "dark",
2459
- "type": {
2460
- "text": "boolean"
2461
- },
2462
- "default": "false",
2463
- "fieldName": "dark"
2464
- },
2465
- {
2466
- "name": "readonly",
2467
- "type": {
2468
- "text": "boolean"
2469
- },
2470
- "default": "false",
2471
- "fieldName": "readonly"
2472
- },
2473
- {
2474
- "name": "autofocus",
2475
- "type": {
2476
- "text": "boolean"
2477
- },
2478
- "default": "false",
2479
- "fieldName": "autofocus"
2480
- }
2481
- ],
2482
- "superclass": {
2483
- "name": "LitElement",
2484
- "package": "lit"
2485
- },
2486
- "tagName": "tuix-input",
2487
- "customElement": true
2488
- }
2489
- ],
2490
- "exports": [
2491
- {
2492
- "kind": "js",
2493
- "name": "TuixInput",
2494
- "declaration": {
2495
- "name": "TuixInput",
2496
- "module": "src/tuix-input/TuixInput.ts"
2497
- }
2498
- },
2499
- {
2500
- "kind": "custom-element-definition",
2501
- "name": "tuix-input",
2502
- "declaration": {
2503
- "name": "TuixInput",
2504
- "module": "src/tuix-input/TuixInput.ts"
2505
- }
2506
- }
2507
- ]
2508
- },
2509
- {
2510
- "kind": "javascript-module",
2511
- "path": "src/tuix-icon-button/TuixIconButton.ts",
2512
- "declarations": [
2513
- {
2514
- "kind": "class",
2515
- "description": "",
2516
- "name": "TuixIconButton",
2517
- "members": [
2518
- {
2519
- "kind": "field",
2520
- "name": "icon",
2521
- "attribute": "icon"
2522
- },
2523
- {
2524
- "kind": "method",
2525
- "name": "_updateIconColor",
2526
- "privacy": "protected",
2527
- "return": {
2528
- "type": {
2529
- "text": "void"
2530
- }
2531
- },
2532
- "inheritedFrom": {
2533
- "name": "TuixBaseButton",
2534
- "module": "src/tuix-button/TuixBaseButton.ts"
2535
- }
2536
- },
2537
- {
2538
- "kind": "method",
2539
- "name": "_buttonContent",
2540
- "privacy": "protected",
2541
- "return": {
2542
- "type": {
2543
- "text": "TemplateResult"
2544
- }
2545
- },
2546
- "inheritedFrom": {
2547
- "name": "TuixBaseButton",
2548
- "module": "src/tuix-button/TuixBaseButton.ts"
2549
- }
2550
- },
2551
- {
2552
- "kind": "field",
2553
- "name": "variant",
2554
- "attribute": "variant",
2555
- "reflects": true,
2556
- "inheritedFrom": {
2557
- "name": "TuixBaseButton",
2558
- "module": "src/tuix-button/TuixBaseButton.ts"
2559
- }
2560
- },
2561
- {
2562
- "kind": "field",
2563
- "name": "disabled",
2628
+ {
2629
+ "name": "value",
2564
2630
  "type": {
2565
- "text": "boolean"
2631
+ "text": "string"
2566
2632
  },
2567
- "default": "false",
2568
- "attribute": "disabled",
2569
- "reflects": true,
2570
- "inheritedFrom": {
2571
- "name": "TuixBaseButton",
2572
- "module": "src/tuix-button/TuixBaseButton.ts"
2573
- }
2633
+ "default": "''",
2634
+ "fieldName": "value"
2574
2635
  },
2575
2636
  {
2576
- "kind": "field",
2577
- "name": "dark",
2637
+ "name": "placeholder",
2578
2638
  "type": {
2579
- "text": "boolean"
2639
+ "text": "string"
2580
2640
  },
2581
- "default": "false",
2582
- "attribute": "dark",
2583
- "reflects": true,
2584
- "inheritedFrom": {
2585
- "name": "TuixBaseButton",
2586
- "module": "src/tuix-button/TuixBaseButton.ts"
2587
- }
2641
+ "default": "''",
2642
+ "fieldName": "placeholder"
2588
2643
  },
2589
2644
  {
2590
- "kind": "field",
2591
- "name": "iconColor",
2645
+ "name": "title",
2592
2646
  "type": {
2593
2647
  "text": "string"
2594
2648
  },
2595
- "privacy": "protected",
2596
2649
  "default": "''",
2597
- "inheritedFrom": {
2598
- "name": "TuixBaseButton",
2599
- "module": "src/tuix-button/TuixBaseButton.ts"
2600
- }
2650
+ "fieldName": "title"
2601
2651
  },
2602
2652
  {
2603
- "kind": "method",
2604
- "name": "_getTextColor",
2605
- "privacy": "protected",
2606
- "inheritedFrom": {
2607
- "name": "TuixBaseButton",
2608
- "module": "src/tuix-button/TuixBaseButton.ts"
2609
- }
2653
+ "name": "type",
2654
+ "fieldName": "type"
2610
2655
  },
2611
2656
  {
2612
- "kind": "method",
2613
- "name": "_handleClick",
2614
- "privacy": "protected",
2615
- "inheritedFrom": {
2616
- "name": "TuixBaseButton",
2617
- "module": "src/tuix-button/TuixBaseButton.ts"
2618
- }
2657
+ "name": "maxlength",
2658
+ "type": {
2659
+ "text": "number | undefined"
2660
+ },
2661
+ "fieldName": "maxlength"
2619
2662
  },
2620
2663
  {
2621
- "kind": "method",
2622
- "name": "_iconTemplate",
2623
- "privacy": "protected",
2624
- "return": {
2625
- "type": {
2626
- "text": "TemplateResult"
2627
- }
2664
+ "name": "description",
2665
+ "type": {
2666
+ "text": "string | undefined"
2628
2667
  },
2629
- "parameters": [
2630
- {
2631
- "name": "iconName",
2632
- "type": {
2633
- "text": "IconName"
2634
- }
2635
- },
2636
- {
2637
- "name": "iconSize",
2638
- "type": {
2639
- "text": "IconSizeVariant"
2640
- }
2641
- }
2642
- ],
2643
- "inheritedFrom": {
2644
- "name": "TuixBaseButton",
2645
- "module": "src/tuix-button/TuixBaseButton.ts"
2646
- }
2647
- }
2648
- ],
2649
- "attributes": [
2668
+ "fieldName": "description"
2669
+ },
2650
2670
  {
2651
- "name": "icon",
2652
- "fieldName": "icon"
2671
+ "name": "descriptionType",
2672
+ "fieldName": "descriptionType"
2653
2673
  },
2654
2674
  {
2655
- "name": "variant",
2656
- "fieldName": "variant",
2657
- "inheritedFrom": {
2658
- "name": "TuixBaseButton",
2659
- "module": "src/tuix-button/TuixBaseButton.ts"
2660
- }
2675
+ "name": "dark",
2676
+ "type": {
2677
+ "text": "boolean"
2678
+ },
2679
+ "default": "false",
2680
+ "fieldName": "dark"
2661
2681
  },
2662
2682
  {
2663
- "name": "disabled",
2683
+ "name": "readonly",
2664
2684
  "type": {
2665
2685
  "text": "boolean"
2666
2686
  },
2667
2687
  "default": "false",
2668
- "fieldName": "disabled",
2669
- "inheritedFrom": {
2670
- "name": "TuixBaseButton",
2671
- "module": "src/tuix-button/TuixBaseButton.ts"
2672
- }
2688
+ "fieldName": "readonly"
2673
2689
  },
2674
2690
  {
2675
- "name": "dark",
2691
+ "name": "autofocus",
2676
2692
  "type": {
2677
2693
  "text": "boolean"
2678
2694
  },
2679
2695
  "default": "false",
2680
- "fieldName": "dark",
2681
- "inheritedFrom": {
2682
- "name": "TuixBaseButton",
2683
- "module": "src/tuix-button/TuixBaseButton.ts"
2684
- }
2696
+ "fieldName": "autofocus"
2685
2697
  }
2686
2698
  ],
2687
2699
  "superclass": {
2688
- "name": "TuixBaseButton",
2689
- "module": "/src/tuix-button/TuixBaseButton"
2700
+ "name": "LitElement",
2701
+ "package": "lit"
2690
2702
  },
2691
- "tagName": "tuix-icon-button",
2692
- "customElement": true,
2693
- "events": [
2694
- {
2695
- "name": "customClick",
2696
- "type": {
2697
- "text": "CustomEvent"
2698
- },
2699
- "inheritedFrom": {
2700
- "name": "TuixBaseButton",
2701
- "module": "src/tuix-button/TuixBaseButton.ts"
2702
- }
2703
- }
2704
- ]
2703
+ "tagName": "tuix-input",
2704
+ "customElement": true
2705
2705
  }
2706
2706
  ],
2707
2707
  "exports": [
2708
2708
  {
2709
2709
  "kind": "js",
2710
- "name": "TuixIconButton",
2710
+ "name": "TuixInput",
2711
2711
  "declaration": {
2712
- "name": "TuixIconButton",
2713
- "module": "src/tuix-icon-button/TuixIconButton.ts"
2712
+ "name": "TuixInput",
2713
+ "module": "src/tuix-input/TuixInput.ts"
2714
2714
  }
2715
2715
  },
2716
2716
  {
2717
2717
  "kind": "custom-element-definition",
2718
- "name": "tuix-icon-button",
2718
+ "name": "tuix-input",
2719
2719
  "declaration": {
2720
- "name": "TuixIconButton",
2721
- "module": "src/tuix-icon-button/TuixIconButton.ts"
2720
+ "name": "TuixInput",
2721
+ "module": "src/tuix-input/TuixInput.ts"
2722
2722
  }
2723
2723
  }
2724
2724
  ]
@@ -3856,74 +3856,56 @@
3856
3856
  },
3857
3857
  {
3858
3858
  "kind": "javascript-module",
3859
- "path": "src/tuix-toast/TuixToast.styles.ts",
3859
+ "path": "src/tuix-text/TuixText.styles.ts",
3860
3860
  "declarations": [
3861
3861
  {
3862
3862
  "kind": "variable",
3863
- "name": "commonToastStyles",
3864
- "default": "css`\n :host {\n position: fixed;\n bottom: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: bottom 600ms linear;\n width: 640px;\n z-index: 99;\n }\n\n :host([type='text']),\n :host([type='warning']),\n :host([type='error']),\n :host([type='success']) {\n bottom: 1.5rem;\n }\n\n .toast-container {\n padding: 12px 16px;\n display: flex;\n gap: 16px;\n align-items: center;\n border-radius: 4px;\n }\n`"
3865
- },
3866
- {
3867
- "kind": "variable",
3868
- "name": "tabletToastStyles",
3869
- "default": "css`\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host {\n width: 520px;\n }\n }\n`"
3863
+ "name": "linkFontStyles",
3864
+ "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Link)} {\n font-family: 'Rubik', sans-serif;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.875rem;\n line-height: 1rem;\n }\n }\n`)}\n`"
3870
3865
  },
3871
3866
  {
3872
3867
  "kind": "variable",
3873
- "name": "mobileToastStyles",
3874
- "default": "css`\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host {\n max-width: 343px;\n width: 90%;\n }\n }\n`"
3868
+ "name": "textStyles",
3869
+ "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.XXL)} {\n font-size: 6rem;\n font-weight: 600;\n line-height: 6.25rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3.375rem;\n font-weight: 600;\n line-height: 3.688rem;\n }\n\n ${slottedClassName(TextSize.L)} {\n font-size: 2.813rem;\n font-weight: 600;\n line-height: 3.375rem;\n }\n\n ${slottedClassName(TextSize.M)} {\n font-size: 2.313rem;\n font-weight: 600;\n line-height: 2.75rem;\n }\n\n ${slottedClassName(TextSize.S)} {\n font-size: 1.938rem;\n font-weight: 600;\n line-height: 2.313rem;\n }\n\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.313rem;\n font-weight: 600;\n line-height: 1.563rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.688rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.938rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.375rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.25rem;\n }\n\n ${slottedClassName(TextSize.FieldTitle)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n ${slottedClassName(TextSize.FieldDescription)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 3rem;\n font-weight: 600;\n line-height: 3.3125rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3rem;\n line-height: 3.313rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.5rem;\n line-height: 3rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 2.063rem;\n line-height: 2.5rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.75rem;\n line-height: 2.125rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.188rem;\n line-height: 1.438rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1rem;\n line-height: 1.1875rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 1.8125rem;\n font-weight: 600;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 2.625rem;\n line-height: 2.875rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.188rem;\n line-height: 2.4375rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 1.813rem;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.5rem;\n line-height: 1.625rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.063rem;\n line-height: 1.1875rem;\n }\n ${slottedClassName(TextSize.Body1)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.0625rem;\n }\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1rem;\n }\n }\n`)}\n`"
3875
3870
  }
3876
3871
  ],
3877
3872
  "exports": [
3878
3873
  {
3879
3874
  "kind": "js",
3880
- "name": "commonToastStyles",
3881
- "declaration": {
3882
- "name": "commonToastStyles",
3883
- "module": "src/tuix-toast/TuixToast.styles.ts"
3884
- }
3885
- },
3886
- {
3887
- "kind": "js",
3888
- "name": "tabletToastStyles",
3875
+ "name": "linkFontStyles",
3889
3876
  "declaration": {
3890
- "name": "tabletToastStyles",
3891
- "module": "src/tuix-toast/TuixToast.styles.ts"
3877
+ "name": "linkFontStyles",
3878
+ "module": "src/tuix-text/TuixText.styles.ts"
3892
3879
  }
3893
3880
  },
3894
3881
  {
3895
3882
  "kind": "js",
3896
- "name": "mobileToastStyles",
3883
+ "name": "textStyles",
3897
3884
  "declaration": {
3898
- "name": "mobileToastStyles",
3899
- "module": "src/tuix-toast/TuixToast.styles.ts"
3885
+ "name": "textStyles",
3886
+ "module": "src/tuix-text/TuixText.styles.ts"
3900
3887
  }
3901
3888
  }
3902
3889
  ]
3903
3890
  },
3904
3891
  {
3905
3892
  "kind": "javascript-module",
3906
- "path": "src/tuix-toast/TuixToast.ts",
3893
+ "path": "src/tuix-text/TuixText.ts",
3907
3894
  "declarations": [
3908
3895
  {
3909
3896
  "kind": "class",
3910
3897
  "description": "",
3911
- "name": "TuixToast",
3898
+ "name": "TuixText",
3912
3899
  "members": [
3913
3900
  {
3914
3901
  "kind": "field",
3915
- "name": "type",
3916
- "attribute": "type",
3917
- "reflects": true
3902
+ "name": "size",
3903
+ "attribute": "size"
3918
3904
  },
3919
3905
  {
3920
3906
  "kind": "field",
3921
- "name": "visibilityDuration",
3922
- "type": {
3923
- "text": "number"
3924
- },
3925
- "default": "4000",
3926
- "attribute": "visibility-duration"
3907
+ "name": "color",
3908
+ "attribute": "color"
3927
3909
  },
3928
3910
  {
3929
3911
  "kind": "field",
@@ -3935,19 +3917,9 @@
3935
3917
  "attribute": "dark",
3936
3918
  "reflects": true
3937
3919
  },
3938
- {
3939
- "kind": "field",
3940
- "name": "lastType",
3941
- "default": "ToastType.SUCCESS"
3942
- },
3943
3920
  {
3944
3921
  "kind": "method",
3945
- "name": "_handleOnClose",
3946
- "privacy": "private"
3947
- },
3948
- {
3949
- "kind": "field",
3950
- "name": "_saveType",
3922
+ "name": "_getTextColor",
3951
3923
  "privacy": "private"
3952
3924
  },
3953
3925
  {
@@ -3957,30 +3929,18 @@
3957
3929
  },
3958
3930
  {
3959
3931
  "kind": "field",
3960
- "name": "_getIcon",
3932
+ "name": "_getClassMap",
3961
3933
  "privacy": "private"
3962
3934
  }
3963
3935
  ],
3964
- "events": [
3965
- {
3966
- "name": "on-close",
3967
- "type": {
3968
- "text": "CustomEvent"
3969
- }
3970
- }
3971
- ],
3972
3936
  "attributes": [
3973
3937
  {
3974
- "name": "type",
3975
- "fieldName": "type"
3938
+ "name": "size",
3939
+ "fieldName": "size"
3976
3940
  },
3977
3941
  {
3978
- "name": "visibility-duration",
3979
- "type": {
3980
- "text": "number"
3981
- },
3982
- "default": "4000",
3983
- "fieldName": "visibilityDuration"
3942
+ "name": "color",
3943
+ "fieldName": "color"
3984
3944
  },
3985
3945
  {
3986
3946
  "name": "dark",
@@ -3995,81 +3955,99 @@
3995
3955
  "name": "LitElement",
3996
3956
  "package": "lit"
3997
3957
  },
3998
- "tagName": "tuix-toast",
3958
+ "tagName": "tuix-text",
3999
3959
  "customElement": true
4000
3960
  }
4001
3961
  ],
4002
3962
  "exports": [
4003
3963
  {
4004
3964
  "kind": "js",
4005
- "name": "TuixToast",
3965
+ "name": "TuixText",
4006
3966
  "declaration": {
4007
- "name": "TuixToast",
4008
- "module": "src/tuix-toast/TuixToast.ts"
3967
+ "name": "TuixText",
3968
+ "module": "src/tuix-text/TuixText.ts"
4009
3969
  }
4010
3970
  },
4011
3971
  {
4012
3972
  "kind": "custom-element-definition",
4013
- "name": "tuix-toast",
3973
+ "name": "tuix-text",
4014
3974
  "declaration": {
4015
- "name": "TuixToast",
4016
- "module": "src/tuix-toast/TuixToast.ts"
3975
+ "name": "TuixText",
3976
+ "module": "src/tuix-text/TuixText.ts"
4017
3977
  }
4018
3978
  }
4019
3979
  ]
4020
3980
  },
4021
3981
  {
4022
3982
  "kind": "javascript-module",
4023
- "path": "src/tuix-text/TuixText.styles.ts",
3983
+ "path": "src/tuix-toast/TuixToast.styles.ts",
4024
3984
  "declarations": [
4025
3985
  {
4026
3986
  "kind": "variable",
4027
- "name": "linkFontStyles",
4028
- "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Link)} {\n font-family: 'Rubik', sans-serif;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.875rem;\n line-height: 1rem;\n }\n }\n`)}\n`"
3987
+ "name": "commonToastStyles",
3988
+ "default": "css`\n :host {\n position: fixed;\n bottom: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: bottom 600ms linear;\n width: 640px;\n z-index: 99;\n }\n\n :host([type='text']),\n :host([type='warning']),\n :host([type='error']),\n :host([type='success']) {\n bottom: 1.5rem;\n }\n\n .toast-container {\n padding: 12px 16px;\n display: flex;\n gap: 16px;\n align-items: center;\n border-radius: 4px;\n }\n`"
4029
3989
  },
4030
3990
  {
4031
3991
  "kind": "variable",
4032
- "name": "textStyles",
4033
- "default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.XXL)} {\n font-size: 6rem;\n font-weight: 600;\n line-height: 6.25rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3.375rem;\n font-weight: 600;\n line-height: 3.688rem;\n }\n\n ${slottedClassName(TextSize.L)} {\n font-size: 2.813rem;\n font-weight: 600;\n line-height: 3.375rem;\n }\n\n ${slottedClassName(TextSize.M)} {\n font-size: 2.313rem;\n font-weight: 600;\n line-height: 2.75rem;\n }\n\n ${slottedClassName(TextSize.S)} {\n font-size: 1.938rem;\n font-weight: 600;\n line-height: 2.313rem;\n }\n\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.313rem;\n font-weight: 600;\n line-height: 1.563rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.688rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.938rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.375rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.25rem;\n }\n\n ${slottedClassName(TextSize.FieldTitle)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n ${slottedClassName(TextSize.FieldDescription)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 3rem;\n font-weight: 600;\n line-height: 3.3125rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3rem;\n line-height: 3.313rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.5rem;\n line-height: 3rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 2.063rem;\n line-height: 2.5rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.75rem;\n line-height: 2.125rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.188rem;\n line-height: 1.438rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1rem;\n line-height: 1.1875rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 1.8125rem;\n font-weight: 600;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 2.625rem;\n line-height: 2.875rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.188rem;\n line-height: 2.4375rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 1.813rem;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.5rem;\n line-height: 1.625rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.063rem;\n line-height: 1.1875rem;\n }\n ${slottedClassName(TextSize.Body1)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.0625rem;\n }\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1rem;\n }\n }\n`)}\n`"
3992
+ "name": "tabletToastStyles",
3993
+ "default": "css`\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host {\n width: 520px;\n }\n }\n`"
3994
+ },
3995
+ {
3996
+ "kind": "variable",
3997
+ "name": "mobileToastStyles",
3998
+ "default": "css`\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host {\n max-width: 343px;\n width: 90%;\n }\n }\n`"
4034
3999
  }
4035
4000
  ],
4036
4001
  "exports": [
4037
4002
  {
4038
4003
  "kind": "js",
4039
- "name": "linkFontStyles",
4004
+ "name": "commonToastStyles",
4040
4005
  "declaration": {
4041
- "name": "linkFontStyles",
4042
- "module": "src/tuix-text/TuixText.styles.ts"
4006
+ "name": "commonToastStyles",
4007
+ "module": "src/tuix-toast/TuixToast.styles.ts"
4043
4008
  }
4044
4009
  },
4045
4010
  {
4046
4011
  "kind": "js",
4047
- "name": "textStyles",
4012
+ "name": "tabletToastStyles",
4048
4013
  "declaration": {
4049
- "name": "textStyles",
4050
- "module": "src/tuix-text/TuixText.styles.ts"
4014
+ "name": "tabletToastStyles",
4015
+ "module": "src/tuix-toast/TuixToast.styles.ts"
4016
+ }
4017
+ },
4018
+ {
4019
+ "kind": "js",
4020
+ "name": "mobileToastStyles",
4021
+ "declaration": {
4022
+ "name": "mobileToastStyles",
4023
+ "module": "src/tuix-toast/TuixToast.styles.ts"
4051
4024
  }
4052
4025
  }
4053
4026
  ]
4054
4027
  },
4055
4028
  {
4056
4029
  "kind": "javascript-module",
4057
- "path": "src/tuix-text/TuixText.ts",
4030
+ "path": "src/tuix-toast/TuixToast.ts",
4058
4031
  "declarations": [
4059
4032
  {
4060
4033
  "kind": "class",
4061
4034
  "description": "",
4062
- "name": "TuixText",
4035
+ "name": "TuixToast",
4063
4036
  "members": [
4064
4037
  {
4065
4038
  "kind": "field",
4066
- "name": "size",
4067
- "attribute": "size"
4039
+ "name": "type",
4040
+ "attribute": "type",
4041
+ "reflects": true
4068
4042
  },
4069
4043
  {
4070
4044
  "kind": "field",
4071
- "name": "color",
4072
- "attribute": "color"
4045
+ "name": "visibilityDuration",
4046
+ "type": {
4047
+ "text": "number"
4048
+ },
4049
+ "default": "4000",
4050
+ "attribute": "visibility-duration"
4073
4051
  },
4074
4052
  {
4075
4053
  "kind": "field",
@@ -4081,9 +4059,19 @@
4081
4059
  "attribute": "dark",
4082
4060
  "reflects": true
4083
4061
  },
4062
+ {
4063
+ "kind": "field",
4064
+ "name": "lastType",
4065
+ "default": "ToastType.SUCCESS"
4066
+ },
4084
4067
  {
4085
4068
  "kind": "method",
4086
- "name": "_getTextColor",
4069
+ "name": "_handleOnClose",
4070
+ "privacy": "private"
4071
+ },
4072
+ {
4073
+ "kind": "field",
4074
+ "name": "_saveType",
4087
4075
  "privacy": "private"
4088
4076
  },
4089
4077
  {
@@ -4093,18 +4081,30 @@
4093
4081
  },
4094
4082
  {
4095
4083
  "kind": "field",
4096
- "name": "_getClassMap",
4084
+ "name": "_getIcon",
4097
4085
  "privacy": "private"
4098
4086
  }
4099
4087
  ],
4088
+ "events": [
4089
+ {
4090
+ "name": "on-close",
4091
+ "type": {
4092
+ "text": "CustomEvent"
4093
+ }
4094
+ }
4095
+ ],
4100
4096
  "attributes": [
4101
4097
  {
4102
- "name": "size",
4103
- "fieldName": "size"
4098
+ "name": "type",
4099
+ "fieldName": "type"
4104
4100
  },
4105
4101
  {
4106
- "name": "color",
4107
- "fieldName": "color"
4102
+ "name": "visibility-duration",
4103
+ "type": {
4104
+ "text": "number"
4105
+ },
4106
+ "default": "4000",
4107
+ "fieldName": "visibilityDuration"
4108
4108
  },
4109
4109
  {
4110
4110
  "name": "dark",
@@ -4119,25 +4119,25 @@
4119
4119
  "name": "LitElement",
4120
4120
  "package": "lit"
4121
4121
  },
4122
- "tagName": "tuix-text",
4122
+ "tagName": "tuix-toast",
4123
4123
  "customElement": true
4124
4124
  }
4125
4125
  ],
4126
4126
  "exports": [
4127
4127
  {
4128
4128
  "kind": "js",
4129
- "name": "TuixText",
4129
+ "name": "TuixToast",
4130
4130
  "declaration": {
4131
- "name": "TuixText",
4132
- "module": "src/tuix-text/TuixText.ts"
4131
+ "name": "TuixToast",
4132
+ "module": "src/tuix-toast/TuixToast.ts"
4133
4133
  }
4134
4134
  },
4135
4135
  {
4136
4136
  "kind": "custom-element-definition",
4137
- "name": "tuix-text",
4137
+ "name": "tuix-toast",
4138
4138
  "declaration": {
4139
- "name": "TuixText",
4140
- "module": "src/tuix-text/TuixText.ts"
4139
+ "name": "TuixToast",
4140
+ "module": "src/tuix-toast/TuixToast.ts"
4141
4141
  }
4142
4142
  }
4143
4143
  ]
@@ -4436,6 +4436,98 @@
4436
4436
  }
4437
4437
  ]
4438
4438
  },
4439
+ {
4440
+ "kind": "javascript-module",
4441
+ "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4442
+ "declarations": [],
4443
+ "exports": []
4444
+ },
4445
+ {
4446
+ "kind": "javascript-module",
4447
+ "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4448
+ "declarations": [],
4449
+ "exports": []
4450
+ },
4451
+ {
4452
+ "kind": "javascript-module",
4453
+ "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4454
+ "declarations": [
4455
+ {
4456
+ "kind": "variable",
4457
+ "name": "meta",
4458
+ "type": {
4459
+ "text": "object"
4460
+ },
4461
+ "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: {\n control: 'object',\n },\n options: {\n control: 'object',\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: {\n control: 'text',\n },\n title: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4462
+ },
4463
+ {
4464
+ "kind": "variable",
4465
+ "name": "tuixDropdownObjectList",
4466
+ "type": {
4467
+ "text": "Story"
4468
+ },
4469
+ "default": "{\n args: {\n value: '458ac6ca-9a57-48c5-8abf-768460397607',\n // value: { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' }, // This works too\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397602' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397603' },\n { name: 'apple2', value: '458ac6ca-9a57-48c5-8abf-768460397604' },\n { name: 'orange2', value: '458ac6ca-9a57-48c5-8abf-768460397605' },\n { name: 'tomato2', value: '458ac6ca-9a57-48c5-8abf-768460397606' },\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397607' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397608' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397609' },\n ],\n type: DropdownType.SEARCH,\n },\n}"
4470
+ }
4471
+ ],
4472
+ "exports": [
4473
+ {
4474
+ "kind": "js",
4475
+ "name": "default",
4476
+ "declaration": {
4477
+ "name": "meta",
4478
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4479
+ }
4480
+ },
4481
+ {
4482
+ "kind": "js",
4483
+ "name": "tuixDropdownObjectList",
4484
+ "declaration": {
4485
+ "name": "tuixDropdownObjectList",
4486
+ "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4487
+ }
4488
+ }
4489
+ ]
4490
+ },
4491
+ {
4492
+ "kind": "javascript-module",
4493
+ "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4494
+ "declarations": [
4495
+ {
4496
+ "kind": "variable",
4497
+ "name": "meta",
4498
+ "type": {
4499
+ "text": "object"
4500
+ },
4501
+ "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: { control: 'text' },\n\n options: {\n control: 'select',\n options: ['fruits', 'countries'],\n mapping: {\n fruits: fruits,\n countries: countryPhoneArray,\n },\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: { control: 'text' },\n title: { control: 'text' },\n description: { control: 'text' },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html`<div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4502
+ },
4503
+ {
4504
+ "kind": "variable",
4505
+ "name": "tuixDropdownExample",
4506
+ "type": {
4507
+ "text": "Story"
4508
+ },
4509
+ "default": "{\n args: {\n value: 'apple2',\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n 'apple',\n 'orange',\n 'tomato',\n 'apple2',\n 'orange2',\n 'tomato2',\n 'apple3',\n 'orange3',\n 'tomato3',\n ],\n type: DropdownType.SINGLE,\n },\n}"
4510
+ }
4511
+ ],
4512
+ "exports": [
4513
+ {
4514
+ "kind": "js",
4515
+ "name": "default",
4516
+ "declaration": {
4517
+ "name": "meta",
4518
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4519
+ }
4520
+ },
4521
+ {
4522
+ "kind": "js",
4523
+ "name": "tuixDropdownExample",
4524
+ "declaration": {
4525
+ "name": "tuixDropdownExample",
4526
+ "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4527
+ }
4528
+ }
4529
+ ]
4530
+ },
4439
4531
  {
4440
4532
  "kind": "javascript-module",
4441
4533
  "path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
@@ -4594,59 +4686,7 @@
4594
4686
  },
4595
4687
  {
4596
4688
  "kind": "javascript-module",
4597
- "path": "src/tuix-dropdown/enums/tuix-dropdown.enums.ts",
4598
- "declarations": [],
4599
- "exports": []
4600
- },
4601
- {
4602
- "kind": "javascript-module",
4603
- "path": "src/tuix-dropdown/interfaces/tuix-dropdown.interface.ts",
4604
- "declarations": [],
4605
- "exports": []
4606
- },
4607
- {
4608
- "kind": "javascript-module",
4609
- "path": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts",
4610
- "declarations": [
4611
- {
4612
- "kind": "variable",
4613
- "name": "meta",
4614
- "type": {
4615
- "text": "object"
4616
- },
4617
- "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: {\n control: 'object',\n },\n options: {\n control: 'object',\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: {\n control: 'text',\n },\n title: {\n control: 'text',\n },\n description: {\n control: 'text',\n },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4618
- },
4619
- {
4620
- "kind": "variable",
4621
- "name": "tuixDropdownObjectList",
4622
- "type": {
4623
- "text": "Story"
4624
- },
4625
- "default": "{\n args: {\n value: '458ac6ca-9a57-48c5-8abf-768460397607',\n // value: { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' }, // This works too\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397601' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397602' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397603' },\n { name: 'apple2', value: '458ac6ca-9a57-48c5-8abf-768460397604' },\n { name: 'orange2', value: '458ac6ca-9a57-48c5-8abf-768460397605' },\n { name: 'tomato2', value: '458ac6ca-9a57-48c5-8abf-768460397606' },\n { name: 'apple', value: '458ac6ca-9a57-48c5-8abf-768460397607' },\n { name: 'orange', value: '458ac6ca-9a57-48c5-8abf-768460397608' },\n { name: 'tomato', value: '458ac6ca-9a57-48c5-8abf-768460397609' },\n ],\n type: DropdownType.SEARCH,\n },\n}"
4626
- }
4627
- ],
4628
- "exports": [
4629
- {
4630
- "kind": "js",
4631
- "name": "default",
4632
- "declaration": {
4633
- "name": "meta",
4634
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4635
- }
4636
- },
4637
- {
4638
- "kind": "js",
4639
- "name": "tuixDropdownObjectList",
4640
- "declaration": {
4641
- "name": "tuixDropdownObjectList",
4642
- "module": "src/tuix-dropdown/stories/tuix-dropdown-object-list.stories.ts"
4643
- }
4644
- }
4645
- ]
4646
- },
4647
- {
4648
- "kind": "javascript-module",
4649
- "path": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts",
4689
+ "path": "src/tuix-icon/stories/tuix-icon.stories.ts",
4650
4690
  "declarations": [
4651
4691
  {
4652
4692
  "kind": "variable",
@@ -4654,15 +4694,15 @@
4654
4694
  "type": {
4655
4695
  "text": "object"
4656
4696
  },
4657
- "default": "{\n title: 'TuixDropdown',\n component: 'tuix-dropdown',\n argTypes: {\n value: { control: 'text' },\n\n options: {\n control: 'select',\n options: ['fruits', 'countries'],\n mapping: {\n fruits: fruits,\n countries: countryPhoneArray,\n },\n },\n disabled: {\n control: 'boolean',\n },\n placeholder: { control: 'text' },\n title: { control: 'text' },\n description: { control: 'text' },\n descriptionType: {\n control: 'select',\n options: [...Object.values(DescriptionType), null],\n },\n dark: {\n control: 'boolean',\n },\n type: {\n control: 'select',\n options: [...Object.values(DropdownType)],\n },\n onInputSingle: { action: 'input-single' },\n onSelect: { action: 'select' },\n },\n render: (args: ArgTypes) => html`<div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-dropdown\n ?disabled=\"${args.disabled}\"\n .value=\"${args.value}\"\n .options=\"${args.options}\"\n placeholder=\"${args.placeholder}\"\n title=\"${args.title}\"\n .description=\"${args.description}\"\n descriptionType=\"${args.descriptionType}\"\n ?dark=\"${args.dark}\"\n .type=\"${args.type}\"\n @input-single=\"${args.onInputSingle}\"\n @select=\"${args.onSelect}\"\n >\n </tuix-dropdown>\n </div>`,\n}"
4697
+ "default": "{\n title: 'TuixIcon',\n component: 'tuix-icon',\n argTypes: {\n name: {\n control: 'select',\n options: Object.values(IconName),\n },\n size: {\n control: 'select',\n options: Object.values(IconSizeVariant),\n },\n color: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant)],\n },\n fill: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant), null],\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon\n name=\"${args.name}\"\n size=\"${args.size}\"\n color=\"${args.color}\"\n ?dark=\"${args.dark}\"\n fill=\"${args.fill}\"\n >\n </tuix-icon>\n </div>\n `,\n}"
4658
4698
  },
4659
4699
  {
4660
4700
  "kind": "variable",
4661
- "name": "tuixDropdownExample",
4701
+ "name": "regularIcon",
4662
4702
  "type": {
4663
4703
  "text": "Story"
4664
4704
  },
4665
- "default": "{\n args: {\n value: 'apple2',\n disabled: false,\n title: 'Title',\n dark: false,\n options: [\n 'apple',\n 'orange',\n 'tomato',\n 'apple2',\n 'orange2',\n 'tomato2',\n 'apple3',\n 'orange3',\n 'tomato3',\n ],\n type: DropdownType.SINGLE,\n },\n}"
4705
+ "default": "{\n args: {\n ...defaultValues,\n },\n}"
4666
4706
  }
4667
4707
  ],
4668
4708
  "exports": [
@@ -4671,15 +4711,15 @@
4671
4711
  "name": "default",
4672
4712
  "declaration": {
4673
4713
  "name": "meta",
4674
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4714
+ "module": "src/tuix-icon/stories/tuix-icon.stories.ts"
4675
4715
  }
4676
4716
  },
4677
4717
  {
4678
4718
  "kind": "js",
4679
- "name": "tuixDropdownExample",
4719
+ "name": "regularIcon",
4680
4720
  "declaration": {
4681
- "name": "tuixDropdownExample",
4682
- "module": "src/tuix-dropdown/stories/tuix-dropdown.stories.ts"
4721
+ "name": "regularIcon",
4722
+ "module": "src/tuix-icon/stories/tuix-icon.stories.ts"
4683
4723
  }
4684
4724
  }
4685
4725
  ]
@@ -4710,7 +4750,7 @@
4710
4750
  },
4711
4751
  {
4712
4752
  "kind": "javascript-module",
4713
- "path": "src/tuix-icon/stories/tuix-icon.stories.ts",
4753
+ "path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
4714
4754
  "declarations": [
4715
4755
  {
4716
4756
  "kind": "variable",
@@ -4718,15 +4758,15 @@
4718
4758
  "type": {
4719
4759
  "text": "object"
4720
4760
  },
4721
- "default": "{\n title: 'TuixIcon',\n component: 'tuix-icon',\n argTypes: {\n name: {\n control: 'select',\n options: Object.values(IconName),\n },\n size: {\n control: 'select',\n options: Object.values(IconSizeVariant),\n },\n color: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant)],\n },\n fill: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant), null],\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon\n name=\"${args.name}\"\n size=\"${args.size}\"\n color=\"${args.color}\"\n ?dark=\"${args.dark}\"\n fill=\"${args.fill}\"\n >\n </tuix-icon>\n </div>\n `,\n}"
4761
+ "default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
4722
4762
  },
4723
4763
  {
4724
4764
  "kind": "variable",
4725
- "name": "regularIcon",
4765
+ "name": "iconButton",
4726
4766
  "type": {
4727
4767
  "text": "Story"
4728
4768
  },
4729
- "default": "{\n args: {\n ...defaultValues,\n },\n}"
4769
+ "default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
4730
4770
  }
4731
4771
  ],
4732
4772
  "exports": [
@@ -4735,15 +4775,15 @@
4735
4775
  "name": "default",
4736
4776
  "declaration": {
4737
4777
  "name": "meta",
4738
- "module": "src/tuix-icon/stories/tuix-icon.stories.ts"
4778
+ "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4739
4779
  }
4740
4780
  },
4741
4781
  {
4742
4782
  "kind": "js",
4743
- "name": "regularIcon",
4783
+ "name": "iconButton",
4744
4784
  "declaration": {
4745
- "name": "regularIcon",
4746
- "module": "src/tuix-icon/stories/tuix-icon.stories.ts"
4785
+ "name": "iconButton",
4786
+ "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4747
4787
  }
4748
4788
  }
4749
4789
  ]
@@ -4870,7 +4910,13 @@
4870
4910
  },
4871
4911
  {
4872
4912
  "kind": "javascript-module",
4873
- "path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
4913
+ "path": "src/tuix-link/enums/linkTarget.enum.ts",
4914
+ "declarations": [],
4915
+ "exports": []
4916
+ },
4917
+ {
4918
+ "kind": "javascript-module",
4919
+ "path": "src/tuix-link/stories/tuix-link.stories.ts",
4874
4920
  "declarations": [
4875
4921
  {
4876
4922
  "kind": "variable",
@@ -4878,15 +4924,15 @@
4878
4924
  "type": {
4879
4925
  "text": "object"
4880
4926
  },
4881
- "default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
4927
+ "default": "{\n title: 'TuixLink',\n component: 'tuix-link',\n argTypes: {\n value: { control: 'text' },\n href: { control: 'text' },\n target: {\n control: 'select',\n options: Object.values(LinkTarget),\n },\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; flex-direction:column; gap:20px; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\n ${args.variant === MainVariant.SECONDARY\n ? `background-color: ${Palette.MAIN};`\n : ''}\"\n >\n <tuix-link\n href=\"${args.href}\"\n target=\"${args.target}\"\n variant=\"${args.variant}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n >\n <tuix-text size=\"${TextSize.Button}\"> ${args.value} </tuix-text>\n </tuix-link>\n <tuix-link\n href=\"${args.href}\"\n target=\"${args.target}\"\n variant=\"${args.variant}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n >\n ${args.value}\n </tuix-link>\n </div>\n `,\n}"
4882
4928
  },
4883
4929
  {
4884
4930
  "kind": "variable",
4885
- "name": "iconButton",
4931
+ "name": "linkExample",
4886
4932
  "type": {
4887
4933
  "text": "Story"
4888
4934
  },
4889
- "default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
4935
+ "default": "{\n args: {\n value: 'Test link',\n href: 'https://google.com',\n target: LinkTarget.BLANK,\n variant: MainVariant.PRIMARY,\n disabled: false,\n dark: false,\n },\n}"
4890
4936
  }
4891
4937
  ],
4892
4938
  "exports": [
@@ -4895,28 +4941,28 @@
4895
4941
  "name": "default",
4896
4942
  "declaration": {
4897
4943
  "name": "meta",
4898
- "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4944
+ "module": "src/tuix-link/stories/tuix-link.stories.ts"
4899
4945
  }
4900
4946
  },
4901
4947
  {
4902
4948
  "kind": "js",
4903
- "name": "iconButton",
4949
+ "name": "linkExample",
4904
4950
  "declaration": {
4905
- "name": "iconButton",
4906
- "module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
4951
+ "name": "linkExample",
4952
+ "module": "src/tuix-link/stories/tuix-link.stories.ts"
4907
4953
  }
4908
4954
  }
4909
4955
  ]
4910
4956
  },
4911
4957
  {
4912
4958
  "kind": "javascript-module",
4913
- "path": "src/tuix-link/enums/linkTarget.enum.ts",
4959
+ "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
4914
4960
  "declarations": [],
4915
4961
  "exports": []
4916
4962
  },
4917
4963
  {
4918
4964
  "kind": "javascript-module",
4919
- "path": "src/tuix-link/stories/tuix-link.stories.ts",
4965
+ "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
4920
4966
  "declarations": [
4921
4967
  {
4922
4968
  "kind": "variable",
@@ -4924,15 +4970,15 @@
4924
4970
  "type": {
4925
4971
  "text": "object"
4926
4972
  },
4927
- "default": "{\n title: 'TuixLink',\n component: 'tuix-link',\n argTypes: {\n value: { control: 'text' },\n href: { control: 'text' },\n target: {\n control: 'select',\n options: Object.values(LinkTarget),\n },\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; flex-direction:column; gap:20px; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\n ${args.variant === MainVariant.SECONDARY\n ? `background-color: ${Palette.MAIN};`\n : ''}\"\n >\n <tuix-link\n href=\"${args.href}\"\n target=\"${args.target}\"\n variant=\"${args.variant}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n >\n <tuix-text size=\"${TextSize.Button}\"> ${args.value} </tuix-text>\n </tuix-link>\n <tuix-link\n href=\"${args.href}\"\n target=\"${args.target}\"\n variant=\"${args.variant}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n >\n ${args.value}\n </tuix-link>\n </div>\n `,\n}"
4973
+ "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
4928
4974
  },
4929
4975
  {
4930
4976
  "kind": "variable",
4931
- "name": "linkExample",
4977
+ "name": "elevation",
4932
4978
  "type": {
4933
4979
  "text": "Story"
4934
4980
  },
4935
- "default": "{\n args: {\n value: 'Test link',\n href: 'https://google.com',\n target: LinkTarget.BLANK,\n variant: MainVariant.PRIMARY,\n disabled: false,\n dark: false,\n },\n}"
4981
+ "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
4936
4982
  }
4937
4983
  ],
4938
4984
  "exports": [
@@ -4941,22 +4987,28 @@
4941
4987
  "name": "default",
4942
4988
  "declaration": {
4943
4989
  "name": "meta",
4944
- "module": "src/tuix-link/stories/tuix-link.stories.ts"
4990
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
4945
4991
  }
4946
4992
  },
4947
4993
  {
4948
4994
  "kind": "js",
4949
- "name": "linkExample",
4995
+ "name": "elevation",
4950
4996
  "declaration": {
4951
- "name": "linkExample",
4952
- "module": "src/tuix-link/stories/tuix-link.stories.ts"
4997
+ "name": "elevation",
4998
+ "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
4953
4999
  }
4954
5000
  }
4955
5001
  ]
4956
5002
  },
4957
5003
  {
4958
5004
  "kind": "javascript-module",
4959
- "path": "src/tuix-modal/stories/tuix-modal.stories.ts",
5005
+ "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5006
+ "declarations": [],
5007
+ "exports": []
5008
+ },
5009
+ {
5010
+ "kind": "javascript-module",
5011
+ "path": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts",
4960
5012
  "declarations": [
4961
5013
  {
4962
5014
  "kind": "variable",
@@ -4964,15 +5016,15 @@
4964
5016
  "type": {
4965
5017
  "text": "object"
4966
5018
  },
4967
- "default": "{\n title: 'TuixModal',\n component: 'tuix-modal',\n argTypes: {\n dark: {\n control: 'boolean',\n },\n visible: {\n control: 'boolean',\n },\n onClose: { action: 'on-close' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"height: 100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <tuix-modal\n ?dark=\"${args.dark}\"\n ?visible=\"${args.visible}\"\n @on-close=\"${args.onClose}\"\n >\n <tuix-text\n slot=\"title\"\n color=${TextVariant.PRIMARY}\n ?dark=${args.dark}\n size=\"${TextSize.S}\"\n >\n Title\n </tuix-text>\n <tuix-text slot=\"body\" ?dark=\"${args.dark}\">\n Lorem ipsum dolor sit amet consectetur. Sollicitudin id interdum\n dignissim at orci. Augue vivamus arcu massa porta facilisi.\n </tuix-text>\n <div\n slot=\"actions\"\n style=\"display:flex; gap: 10px; justify-content: flex-end;\n width: 100%;\"\n >\n <tuix-button ?dark=\"${args.dark}\">Action</tuix-button>\n <tuix-button variant=\"${MainVariant.SECONDARY}\" ?dark=\"${args.dark}\"\n >Cancel</tuix-button\n >\n </div>\n </tuix-modal>\n </div>\n `,\n}"
5019
+ "default": "{\n title: 'TuixRadioButton',\n component: 'tuix-radio-button',\n argTypes: {\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n options: {\n control: 'object',\n },\n labelSide: {\n control: 'select',\n options: Object.values(CheckboxLabelSide),\n },\n selectedOption: {\n control: 'object',\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh; ${args.dark\n ? 'background-color:' + Palette.BLACK + ';'\n : ''}}\"\n >\n <div\n style=\"max-width: 300px; display: flex; gap: 16px; flex-direction: column\"\n >\n <tuix-radio-button\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n .options=\"${args.options}\"\n labelSide=\"${args.labelSide}\"\n .selectedOption=\"${args.selectedOption}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n slot=\"label-1\"\n ?dark=\"${args.dark}\"\n >\n Label from named slot 1 using a long text with max-width container\n </tuix-text>\n </tuix-radio-button>\n </div>\n </div>`,\n}"
4968
5020
  },
4969
5021
  {
4970
5022
  "kind": "variable",
4971
- "name": "modalExample",
5023
+ "name": "tuixRadioButtonExample",
4972
5024
  "type": {
4973
5025
  "text": "Story"
4974
5026
  },
4975
- "default": "{\n args: {\n dark: false,\n visible: true,\n },\n}"
5027
+ "default": "{\n args: {\n disabled: false,\n dark: false,\n error: false,\n options: ['Option 0', 'Option 1', 'Option 2'],\n labelSide: CheckboxLabelSide.RIGHT,\n selectedOption: 'Option 0',\n },\n}"
4976
5028
  }
4977
5029
  ],
4978
5030
  "exports": [
@@ -4981,28 +5033,28 @@
4981
5033
  "name": "default",
4982
5034
  "declaration": {
4983
5035
  "name": "meta",
4984
- "module": "src/tuix-modal/stories/tuix-modal.stories.ts"
5036
+ "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
4985
5037
  }
4986
5038
  },
4987
5039
  {
4988
5040
  "kind": "js",
4989
- "name": "modalExample",
5041
+ "name": "tuixRadioButtonExample",
4990
5042
  "declaration": {
4991
- "name": "modalExample",
4992
- "module": "src/tuix-modal/stories/tuix-modal.stories.ts"
5043
+ "name": "tuixRadioButtonExample",
5044
+ "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
4993
5045
  }
4994
5046
  }
4995
5047
  ]
4996
5048
  },
4997
5049
  {
4998
5050
  "kind": "javascript-module",
4999
- "path": "src/tuix-paper/enums/tuix-paper.enum.ts",
5051
+ "path": "src/tuix-table/interfaces/tuix-table.interface.ts",
5000
5052
  "declarations": [],
5001
5053
  "exports": []
5002
5054
  },
5003
5055
  {
5004
5056
  "kind": "javascript-module",
5005
- "path": "src/tuix-paper/stories/tuix-paper.stories.ts",
5057
+ "path": "src/tuix-modal/stories/tuix-modal.stories.ts",
5006
5058
  "declarations": [
5007
5059
  {
5008
5060
  "kind": "variable",
@@ -5010,15 +5062,15 @@
5010
5062
  "type": {
5011
5063
  "text": "object"
5012
5064
  },
5013
- "default": "{\n title: 'TuixPaper',\n component: 'tuix-paper',\n argTypes: {\n elevation: {\n control: 'select',\n options: Object.values(PaperElevation),\n },\n borderRadius: {\n control: 'select',\n options: Object.values(BorderRadiusPaper),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text {\n width: 181px;\n height: 181px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-paper\n elevation=\"${args.elevation}\"\n ?dark=\"${args.dark}\"\n border-radius=\"${args.borderRadius}\"\n >\n <tuix-text size=\"${TextSize.Body2}\" ?dark=\"${args.dark}\">\n Elevation\n </tuix-text>\n </tuix-paper>\n </div>\n `,\n}"
5065
+ "default": "{\n title: 'TuixModal',\n component: 'tuix-modal',\n argTypes: {\n dark: {\n control: 'boolean',\n },\n visible: {\n control: 'boolean',\n },\n onClose: { action: 'on-close' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"height: 100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <tuix-modal\n ?dark=\"${args.dark}\"\n ?visible=\"${args.visible}\"\n @on-close=\"${args.onClose}\"\n >\n <tuix-text\n slot=\"title\"\n color=${TextVariant.PRIMARY}\n ?dark=${args.dark}\n size=\"${TextSize.S}\"\n >\n Title\n </tuix-text>\n <tuix-text slot=\"body\" ?dark=\"${args.dark}\">\n Lorem ipsum dolor sit amet consectetur. Sollicitudin id interdum\n dignissim at orci. Augue vivamus arcu massa porta facilisi.\n </tuix-text>\n <div\n slot=\"actions\"\n style=\"display:flex; gap: 10px; justify-content: flex-end;\n width: 100%;\"\n >\n <tuix-button ?dark=\"${args.dark}\">Action</tuix-button>\n <tuix-button variant=\"${MainVariant.SECONDARY}\" ?dark=\"${args.dark}\"\n >Cancel</tuix-button\n >\n </div>\n </tuix-modal>\n </div>\n `,\n}"
5014
5066
  },
5015
5067
  {
5016
5068
  "kind": "variable",
5017
- "name": "elevation",
5069
+ "name": "modalExample",
5018
5070
  "type": {
5019
5071
  "text": "Story"
5020
5072
  },
5021
- "default": "{\n args: {\n elevation: PaperElevation.VARIANT_1,\n borderRadius: BorderRadiusPaper.STRONG,\n dark: false,\n },\n}"
5073
+ "default": "{\n args: {\n dark: false,\n visible: true,\n },\n}"
5022
5074
  }
5023
5075
  ],
5024
5076
  "exports": [
@@ -5027,71 +5079,59 @@
5027
5079
  "name": "default",
5028
5080
  "declaration": {
5029
5081
  "name": "meta",
5030
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5082
+ "module": "src/tuix-modal/stories/tuix-modal.stories.ts"
5031
5083
  }
5032
5084
  },
5033
5085
  {
5034
5086
  "kind": "js",
5035
- "name": "elevation",
5087
+ "name": "modalExample",
5036
5088
  "declaration": {
5037
- "name": "elevation",
5038
- "module": "src/tuix-paper/stories/tuix-paper.stories.ts"
5089
+ "name": "modalExample",
5090
+ "module": "src/tuix-modal/stories/tuix-modal.stories.ts"
5039
5091
  }
5040
5092
  }
5041
5093
  ]
5042
5094
  },
5043
5095
  {
5044
5096
  "kind": "javascript-module",
5045
- "path": "src/tuix-radio-button/interfaces/tuix-radio-button.interface.ts",
5046
- "declarations": [],
5047
- "exports": []
5048
- },
5049
- {
5050
- "kind": "javascript-module",
5051
- "path": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts",
5097
+ "path": "src/tuix-text/enums/tuix-text.enums.ts",
5052
5098
  "declarations": [
5053
5099
  {
5054
5100
  "kind": "variable",
5055
- "name": "meta",
5101
+ "name": "colorText",
5056
5102
  "type": {
5057
- "text": "object"
5103
+ "text": "Record<TextVariant, string>"
5058
5104
  },
5059
- "default": "{\n title: 'TuixRadioButton',\n component: 'tuix-radio-button',\n argTypes: {\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n options: {\n control: 'object',\n },\n labelSide: {\n control: 'select',\n options: Object.values(CheckboxLabelSide),\n },\n selectedOption: {\n control: 'object',\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html` <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh; ${args.dark\n ? 'background-color:' + Palette.BLACK + ';'\n : ''}}\"\n >\n <div\n style=\"max-width: 300px; display: flex; gap: 16px; flex-direction: column\"\n >\n <tuix-radio-button\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n .options=\"${args.options}\"\n labelSide=\"${args.labelSide}\"\n .selectedOption=\"${args.selectedOption}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n slot=\"label-1\"\n ?dark=\"${args.dark}\"\n >\n Label from named slot 1 using a long text with max-width container\n </tuix-text>\n </tuix-radio-button>\n </div>\n </div>`,\n}"
5105
+ "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
5060
5106
  },
5061
5107
  {
5062
5108
  "kind": "variable",
5063
- "name": "tuixRadioButtonExample",
5109
+ "name": "colorTextDark",
5064
5110
  "type": {
5065
- "text": "Story"
5111
+ "text": "Record<TextVariant, string>"
5066
5112
  },
5067
- "default": "{\n args: {\n disabled: false,\n dark: false,\n error: false,\n options: ['Option 0', 'Option 1', 'Option 2'],\n labelSide: CheckboxLabelSide.RIGHT,\n selectedOption: 'Option 0',\n },\n}"
5113
+ "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
5068
5114
  }
5069
5115
  ],
5070
5116
  "exports": [
5071
5117
  {
5072
5118
  "kind": "js",
5073
- "name": "default",
5119
+ "name": "colorText",
5074
5120
  "declaration": {
5075
- "name": "meta",
5076
- "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5121
+ "name": "colorText",
5122
+ "module": "src/tuix-text/enums/tuix-text.enums.ts"
5077
5123
  }
5078
5124
  },
5079
5125
  {
5080
5126
  "kind": "js",
5081
- "name": "tuixRadioButtonExample",
5127
+ "name": "colorTextDark",
5082
5128
  "declaration": {
5083
- "name": "tuixRadioButtonExample",
5084
- "module": "src/tuix-radio-button/stories/tuix-radio-button.stories.ts"
5129
+ "name": "colorTextDark",
5130
+ "module": "src/tuix-text/enums/tuix-text.enums.ts"
5085
5131
  }
5086
5132
  }
5087
5133
  ]
5088
5134
  },
5089
- {
5090
- "kind": "javascript-module",
5091
- "path": "src/tuix-table/interfaces/tuix-table.interface.ts",
5092
- "declarations": [],
5093
- "exports": []
5094
- },
5095
5135
  {
5096
5136
  "kind": "javascript-module",
5097
5137
  "path": "src/tuix-table/stories/tuix-table.stories.ts",
@@ -5132,6 +5172,46 @@
5132
5172
  }
5133
5173
  ]
5134
5174
  },
5175
+ {
5176
+ "kind": "javascript-module",
5177
+ "path": "src/tuix-text/stories/tuix-text.stories.ts",
5178
+ "declarations": [
5179
+ {
5180
+ "kind": "variable",
5181
+ "name": "meta",
5182
+ "type": {
5183
+ "text": "object"
5184
+ },
5185
+ "default": "{\n title: 'TuixText',\n component: 'tuix-text',\n argTypes: {\n value: { control: 'text' },\n size: {\n control: 'select',\n options: Object.values(TextSize),\n },\n color: {\n control: 'select',\n options: Object.values(TextVariant),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text > * {\n display: block;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100%; \n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-text size=\"${args.size}\" color=\"${args.color}\" ?dark=\"${args.dark}\">\n ${args.value}\n <h1>${args.value}</h1>\n <h2>${args.value}</h2>\n <h3>${args.value}</h3>\n <h4>${args.value}</h4>\n <h5>${args.value}</h5>\n <h6>${args.value}</h6>\n <p>${args.value}</p>\n <span> ${args.value} </span>\n </tuix-text>\n </div>\n `,\n}"
5186
+ },
5187
+ {
5188
+ "kind": "variable",
5189
+ "name": "Headline",
5190
+ "type": {
5191
+ "text": "Story"
5192
+ },
5193
+ "default": "{\n args: {\n value: 'Test text',\n size: TextSize.XL,\n dark: false,\n },\n}"
5194
+ }
5195
+ ],
5196
+ "exports": [
5197
+ {
5198
+ "kind": "js",
5199
+ "name": "default",
5200
+ "declaration": {
5201
+ "name": "meta",
5202
+ "module": "src/tuix-text/stories/tuix-text.stories.ts"
5203
+ }
5204
+ },
5205
+ {
5206
+ "kind": "js",
5207
+ "name": "Headline",
5208
+ "declaration": {
5209
+ "name": "Headline",
5210
+ "module": "src/tuix-text/stories/tuix-text.stories.ts"
5211
+ }
5212
+ }
5213
+ ]
5214
+ },
5135
5215
  {
5136
5216
  "kind": "javascript-module",
5137
5217
  "path": "src/tuix-toast/enums/tuix-toast.enums.ts",
@@ -5244,86 +5324,6 @@
5244
5324
  }
5245
5325
  ]
5246
5326
  },
5247
- {
5248
- "kind": "javascript-module",
5249
- "path": "src/tuix-text/enums/tuix-text.enums.ts",
5250
- "declarations": [
5251
- {
5252
- "kind": "variable",
5253
- "name": "colorText",
5254
- "type": {
5255
- "text": "Record<TextVariant, string>"
5256
- },
5257
- "default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
5258
- },
5259
- {
5260
- "kind": "variable",
5261
- "name": "colorTextDark",
5262
- "type": {
5263
- "text": "Record<TextVariant, string>"
5264
- },
5265
- "default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
5266
- }
5267
- ],
5268
- "exports": [
5269
- {
5270
- "kind": "js",
5271
- "name": "colorText",
5272
- "declaration": {
5273
- "name": "colorText",
5274
- "module": "src/tuix-text/enums/tuix-text.enums.ts"
5275
- }
5276
- },
5277
- {
5278
- "kind": "js",
5279
- "name": "colorTextDark",
5280
- "declaration": {
5281
- "name": "colorTextDark",
5282
- "module": "src/tuix-text/enums/tuix-text.enums.ts"
5283
- }
5284
- }
5285
- ]
5286
- },
5287
- {
5288
- "kind": "javascript-module",
5289
- "path": "src/tuix-text/stories/tuix-text.stories.ts",
5290
- "declarations": [
5291
- {
5292
- "kind": "variable",
5293
- "name": "meta",
5294
- "type": {
5295
- "text": "object"
5296
- },
5297
- "default": "{\n title: 'TuixText',\n component: 'tuix-text',\n argTypes: {\n value: { control: 'text' },\n size: {\n control: 'select',\n options: Object.values(TextSize),\n },\n color: {\n control: 'select',\n options: Object.values(TextVariant),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text > * {\n display: block;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100%; \n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-text size=\"${args.size}\" color=\"${args.color}\" ?dark=\"${args.dark}\">\n ${args.value}\n <h1>${args.value}</h1>\n <h2>${args.value}</h2>\n <h3>${args.value}</h3>\n <h4>${args.value}</h4>\n <h5>${args.value}</h5>\n <h6>${args.value}</h6>\n <p>${args.value}</p>\n <span> ${args.value} </span>\n </tuix-text>\n </div>\n `,\n}"
5298
- },
5299
- {
5300
- "kind": "variable",
5301
- "name": "Headline",
5302
- "type": {
5303
- "text": "Story"
5304
- },
5305
- "default": "{\n args: {\n value: 'Test text',\n size: TextSize.XL,\n dark: false,\n },\n}"
5306
- }
5307
- ],
5308
- "exports": [
5309
- {
5310
- "kind": "js",
5311
- "name": "default",
5312
- "declaration": {
5313
- "name": "meta",
5314
- "module": "src/tuix-text/stories/tuix-text.stories.ts"
5315
- }
5316
- },
5317
- {
5318
- "kind": "js",
5319
- "name": "Headline",
5320
- "declaration": {
5321
- "name": "Headline",
5322
- "module": "src/tuix-text/stories/tuix-text.stories.ts"
5323
- }
5324
- }
5325
- ]
5326
- },
5327
5327
  {
5328
5328
  "kind": "javascript-module",
5329
5329
  "path": "src/tuix-toggle-button/interfaces/tuix-toggle.interface.ts",