q2-tecton-elements 1.10.4 → 1.10.7

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 (196) hide show
  1. package/dist/cjs/{icons-921779df.js → icons-4595ee47.js} +61 -1
  2. package/dist/cjs/{index-f4153f5a.js → index-a55d3c34.js} +9 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/q2-btn_2.cjs.entry.js +10 -6
  6. package/dist/cjs/q2-calendar.cjs.entry.js +2902 -6078
  7. package/dist/cjs/q2-carousel-pane.cjs.entry.js +50 -7
  8. package/dist/cjs/q2-carousel.cjs.entry.js +2719 -6513
  9. package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
  10. package/dist/cjs/q2-checkbox.cjs.entry.js +10 -2
  11. package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
  12. package/dist/cjs/q2-dropdown.cjs.entry.js +8 -2
  13. package/dist/cjs/q2-editable-field.cjs.entry.js +26 -11
  14. package/dist/cjs/q2-icon.cjs.entry.js +2 -2
  15. package/dist/cjs/q2-input.cjs.entry.js +9 -7
  16. package/dist/cjs/q2-loading-element.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  18. package/dist/cjs/q2-message.cjs.entry.js +11 -3
  19. package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
  20. package/dist/cjs/q2-option.cjs.entry.js +3 -34
  21. package/dist/cjs/q2-radio-group.cjs.entry.js +10 -2
  22. package/dist/cjs/q2-radio.cjs.entry.js +10 -2
  23. package/dist/cjs/q2-section.cjs.entry.js +9 -9
  24. package/dist/cjs/q2-select.cjs.entry.js +175 -130
  25. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-stepper.cjs.entry.js +10 -4
  27. package/dist/cjs/q2-tab-container.cjs.entry.js +9 -11
  28. package/dist/cjs/q2-tab-pane.cjs.entry.js +2 -2
  29. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  30. package/dist/cjs/q2-textarea.cjs.entry.js +8 -4
  31. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  32. package/dist/collection/components/q2-avatar/index.js +1 -1
  33. package/dist/collection/components/q2-avatar/styles.css +63 -61
  34. package/dist/collection/components/q2-btn/index.js +8 -4
  35. package/dist/collection/components/q2-btn/styles.css +96 -96
  36. package/dist/collection/components/q2-calendar/helpers.js +77 -52
  37. package/dist/collection/components/q2-calendar/index.js +248 -196
  38. package/dist/collection/components/q2-calendar/styles.css +63 -84
  39. package/dist/collection/components/q2-calendar/validation.js +100 -166
  40. package/dist/collection/components/q2-carousel/index.js +204 -266
  41. package/dist/collection/components/q2-carousel/styles.css +152 -155
  42. package/dist/collection/components/q2-carousel-pane/index.js +67 -28
  43. package/dist/collection/components/q2-carousel-pane/styles.css +82 -16
  44. package/dist/collection/components/q2-checkbox/index.js +16 -2
  45. package/dist/collection/components/q2-checkbox/styles.css +152 -176
  46. package/dist/collection/components/q2-checkbox-group/index.js +1 -1
  47. package/dist/collection/components/q2-checkbox-group/styles.css +65 -81
  48. package/dist/collection/components/q2-dropdown/index.js +15 -2
  49. package/dist/collection/components/q2-dropdown/styles.css +49 -36
  50. package/dist/collection/components/q2-dropdown-item/index.js +1 -1
  51. package/dist/collection/components/q2-dropdown-item/styles.css +48 -62
  52. package/dist/collection/components/q2-editable-field/index.js +33 -12
  53. package/dist/collection/components/q2-editable-field/styles.css +49 -50
  54. package/dist/collection/components/q2-icon/icons.js +61 -1
  55. package/dist/collection/components/q2-icon/styles.css +29 -29
  56. package/dist/collection/components/q2-input/index.js +9 -7
  57. package/dist/collection/components/q2-input/styles.css +211 -292
  58. package/dist/collection/components/q2-loading/index.js +1 -1
  59. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +1 -1
  60. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +5 -6
  61. package/dist/collection/components/q2-loading/styles.css +130 -136
  62. package/dist/collection/components/q2-loc/index.js +1 -1
  63. package/dist/collection/components/q2-loc/styles.css +30 -31
  64. package/dist/collection/components/q2-message/index.js +18 -3
  65. package/dist/collection/components/q2-message/styles.css +32 -29
  66. package/dist/collection/components/q2-optgroup/index.js +1 -1
  67. package/dist/collection/components/q2-optgroup/styles.css +42 -47
  68. package/dist/collection/components/q2-option/index.js +4 -42
  69. package/dist/collection/components/q2-option/styles.css +29 -29
  70. package/dist/collection/components/q2-radio/index.js +16 -2
  71. package/dist/collection/components/q2-radio/styles.css +29 -29
  72. package/dist/collection/components/q2-radio-group/index.js +16 -2
  73. package/dist/collection/components/q2-radio-group/styles.css +67 -72
  74. package/dist/collection/components/q2-section/index.js +16 -10
  75. package/dist/collection/components/q2-section/styles.css +77 -77
  76. package/dist/collection/components/q2-select/index.js +182 -131
  77. package/dist/collection/components/q2-select/styles.css +33 -34
  78. package/dist/collection/components/q2-stepper/index.js +15 -3
  79. package/dist/collection/components/q2-stepper/styles.css +32 -32
  80. package/dist/collection/components/q2-stepper-pane/styles.css +29 -29
  81. package/dist/collection/components/q2-tab-container/index.js +7 -9
  82. package/dist/collection/components/q2-tab-container/styles.css +29 -29
  83. package/dist/collection/components/q2-tab-pane/index.js +2 -2
  84. package/dist/collection/components/q2-tab-pane/styles.css +34 -36
  85. package/dist/collection/components/q2-textarea/index.js +8 -4
  86. package/dist/collection/components/q2-textarea/styles.css +180 -228
  87. package/dist/collection/components/tecton-tab-pane/index.js +2 -2
  88. package/dist/collection/components/tecton-tab-pane/styles.css +50 -50
  89. package/dist/collection/utils/index.js +7 -0
  90. package/dist/esm/{icons-a3817842.js → icons-3ee662ea.js} +61 -1
  91. package/dist/esm/{index-476b86cc.js → index-ec6660af.js} +8 -1
  92. package/dist/esm/loader.js +1 -1
  93. package/dist/esm/q2-avatar.entry.js +1 -1
  94. package/dist/esm/q2-btn_2.entry.js +10 -6
  95. package/dist/esm/q2-calendar.entry.js +2902 -6078
  96. package/dist/esm/q2-carousel-pane.entry.js +51 -8
  97. package/dist/esm/q2-carousel.entry.js +2720 -6514
  98. package/dist/esm/q2-checkbox-group.entry.js +2 -2
  99. package/dist/esm/q2-checkbox.entry.js +10 -2
  100. package/dist/esm/q2-dropdown-item.entry.js +2 -2
  101. package/dist/esm/q2-dropdown.entry.js +8 -2
  102. package/dist/esm/q2-editable-field.entry.js +26 -11
  103. package/dist/esm/q2-icon.entry.js +2 -2
  104. package/dist/esm/q2-input.entry.js +9 -7
  105. package/dist/esm/q2-loading-element.entry.js +1 -1
  106. package/dist/esm/q2-loc.entry.js +1 -1
  107. package/dist/esm/q2-message.entry.js +11 -3
  108. package/dist/esm/q2-optgroup.entry.js +2 -2
  109. package/dist/esm/q2-option.entry.js +4 -35
  110. package/dist/esm/q2-radio-group.entry.js +10 -2
  111. package/dist/esm/q2-radio.entry.js +10 -2
  112. package/dist/esm/q2-section.entry.js +9 -9
  113. package/dist/esm/q2-select.entry.js +175 -130
  114. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  115. package/dist/esm/q2-stepper.entry.js +10 -4
  116. package/dist/esm/q2-tab-container.entry.js +7 -9
  117. package/dist/esm/q2-tab-pane.entry.js +2 -2
  118. package/dist/esm/q2-tecton-elements.js +1 -1
  119. package/dist/esm/q2-textarea.entry.js +8 -4
  120. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  121. package/dist/q2-tecton-elements/{p-4830affe.entry.js → p-07a5d703.entry.js} +1 -1
  122. package/dist/q2-tecton-elements/{p-84c05db6.entry.js → p-32ad664c.entry.js} +1 -1
  123. package/dist/q2-tecton-elements/p-37aba2a4.js +1 -0
  124. package/dist/q2-tecton-elements/p-4ae9d1f3.entry.js +1 -0
  125. package/dist/q2-tecton-elements/{p-67d86e3c.js → p-4cd00f1a.js} +1 -1
  126. package/dist/q2-tecton-elements/p-52f53e07.entry.js +1 -0
  127. package/dist/q2-tecton-elements/p-5559f126.entry.js +1 -0
  128. package/dist/q2-tecton-elements/p-6702eb4d.entry.js +1 -0
  129. package/dist/q2-tecton-elements/p-750bcd33.entry.js +1 -0
  130. package/dist/q2-tecton-elements/p-78642b7b.entry.js +1 -0
  131. package/dist/q2-tecton-elements/p-7e6fc65d.entry.js +1 -0
  132. package/dist/q2-tecton-elements/p-7eb39c90.entry.js +1 -0
  133. package/dist/q2-tecton-elements/p-81df91a1.entry.js +1 -0
  134. package/dist/q2-tecton-elements/{p-01e00610.entry.js → p-843b1ee9.entry.js} +1 -1
  135. package/dist/q2-tecton-elements/p-8509b171.entry.js +1 -0
  136. package/dist/q2-tecton-elements/p-8ea2c4f7.entry.js +1 -0
  137. package/dist/q2-tecton-elements/{p-d1d040ef.entry.js → p-95a73559.entry.js} +1 -1
  138. package/dist/q2-tecton-elements/p-96c9eb75.entry.js +1 -0
  139. package/dist/q2-tecton-elements/p-9b50c3c3.entry.js +1 -0
  140. package/dist/q2-tecton-elements/{p-a9bdd814.entry.js → p-a6f8d09a.entry.js} +1 -1
  141. package/dist/q2-tecton-elements/p-ab977515.entry.js +1 -0
  142. package/dist/q2-tecton-elements/{p-9314863f.entry.js → p-bb2e110a.entry.js} +1 -1
  143. package/dist/q2-tecton-elements/p-bbacb804.entry.js +1 -0
  144. package/dist/q2-tecton-elements/p-c555f1de.entry.js +1 -0
  145. package/dist/q2-tecton-elements/p-c5e55b9f.entry.js +1 -0
  146. package/dist/q2-tecton-elements/{p-4229b057.entry.js → p-df182f61.entry.js} +1 -1
  147. package/dist/q2-tecton-elements/p-fa6eea5c.entry.js +1 -0
  148. package/dist/q2-tecton-elements/{p-61c0e5fd.entry.js → p-fbf7c5e6.entry.js} +1 -1
  149. package/dist/q2-tecton-elements/p-fc804ebd.entry.js +1 -0
  150. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  151. package/dist/test/helpers.js +4 -0
  152. package/dist/types/components/q2-btn/index.d.ts +1 -0
  153. package/dist/types/components/q2-calendar/helpers.d.ts +6 -6
  154. package/dist/types/components/q2-calendar/index.d.ts +16 -17
  155. package/dist/types/components/q2-calendar/types.d.ts +9 -26
  156. package/dist/types/components/q2-calendar/validation.d.ts +27 -12
  157. package/dist/types/components/q2-carousel/index.d.ts +15 -45
  158. package/dist/types/components/q2-carousel-pane/index.d.ts +5 -2
  159. package/dist/types/components/q2-checkbox/index.d.ts +2 -0
  160. package/dist/types/components/q2-dropdown/index.d.ts +1 -0
  161. package/dist/types/components/q2-editable-field/index.d.ts +5 -1
  162. package/dist/types/components/q2-input/index.d.ts +1 -1
  163. package/dist/types/components/q2-message/index.d.ts +2 -0
  164. package/dist/types/components/q2-option/index.d.ts +0 -4
  165. package/dist/types/components/q2-radio/index.d.ts +3 -0
  166. package/dist/types/components/q2-radio-group/index.d.ts +1 -0
  167. package/dist/types/components/q2-section/index.d.ts +1 -1
  168. package/dist/types/components/q2-select/index.d.ts +10 -7
  169. package/dist/types/components/q2-stepper/index.d.ts +2 -1
  170. package/dist/types/components/q2-tab-container/index.d.ts +1 -1
  171. package/dist/types/components/q2-textarea/index.d.ts +2 -1
  172. package/dist/types/components.d.ts +3 -2
  173. package/dist/types/util.d.ts +1 -0
  174. package/dist/types/utils/index.d.ts +2 -0
  175. package/dist/types/workspace/workspace/tecton-production_release_1.10.x/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -1
  176. package/package.json +4 -5
  177. package/dist/q2-tecton-elements/p-1fc4e6f6.entry.js +0 -1
  178. package/dist/q2-tecton-elements/p-25a5f691.js +0 -1
  179. package/dist/q2-tecton-elements/p-27353237.entry.js +0 -1
  180. package/dist/q2-tecton-elements/p-3e100450.entry.js +0 -1
  181. package/dist/q2-tecton-elements/p-428d15fd.entry.js +0 -1
  182. package/dist/q2-tecton-elements/p-48fc317d.entry.js +0 -1
  183. package/dist/q2-tecton-elements/p-5222b792.entry.js +0 -1
  184. package/dist/q2-tecton-elements/p-74c1a311.entry.js +0 -1
  185. package/dist/q2-tecton-elements/p-784af485.entry.js +0 -1
  186. package/dist/q2-tecton-elements/p-7c99a58b.entry.js +0 -1
  187. package/dist/q2-tecton-elements/p-7f74b629.entry.js +0 -1
  188. package/dist/q2-tecton-elements/p-831a461f.entry.js +0 -1
  189. package/dist/q2-tecton-elements/p-84c52d3b.entry.js +0 -9
  190. package/dist/q2-tecton-elements/p-997e4c7e.entry.js +0 -1
  191. package/dist/q2-tecton-elements/p-9cb0fc37.entry.js +0 -1
  192. package/dist/q2-tecton-elements/p-a224bc9c.entry.js +0 -1
  193. package/dist/q2-tecton-elements/p-d893fcf2.entry.js +0 -1
  194. package/dist/q2-tecton-elements/p-da7cca07.entry.js +0 -1
  195. package/dist/q2-tecton-elements/p-f17761da.entry.js +0 -1
  196. package/dist/q2-tecton-elements/p-f5e074f8.entry.js +0 -1
@@ -1,290 +1,266 @@
1
1
  * {
2
- box-sizing: border-box;
2
+ box-sizing: border-box;
3
3
  }
4
4
 
5
5
  *:active {
6
- outline: none;
6
+ outline: none;
7
7
  }
8
8
 
9
9
  *:focus {
10
- outline: none;
11
- box-shadow: var(--const-global-focus);
10
+ outline: none;
11
+ box-shadow: var(--const-global-focus);
12
12
  }
13
13
 
14
14
  :host {
15
- box-shadow: none !important;
15
+ box-shadow: none !important;
16
16
  }
17
17
 
18
18
  ::-moz-focus-inner {
19
- border: none;
19
+ border: none;
20
20
  }
21
21
 
22
22
  input,
23
23
  textarea,
24
24
  button {
25
- font-family: inherit;
26
- font-size: inherit;
25
+ font-family: inherit;
26
+ font-size: inherit;
27
27
  }
28
28
 
29
29
  :host(.sr),
30
30
  :host(.sr) button {
31
- border: 0;
32
- clip: rect(0 0 0 0);
33
- height: 1px;
34
- margin: -1px;
35
- overflow: hidden;
36
- padding: 0;
37
- position: absolute;
38
- width: 1px;
39
- white-space: nowrap;
31
+ border: 0;
32
+ clip: rect(0 0 0 0);
33
+ height: 1px;
34
+ margin: -1px;
35
+ overflow: hidden;
36
+ padding: 0;
37
+ position: absolute;
38
+ width: 1px;
39
+ white-space: nowrap;
40
40
  }
41
41
 
42
42
  .sr,
43
43
  .sr button {
44
- border: 0;
45
- clip: rect(0 0 0 0);
46
- height: 1px;
47
- margin: -1px;
48
- overflow: hidden;
49
- padding: 0;
50
- position: absolute;
51
- width: 1px;
52
- white-space: nowrap;
44
+ border: 0;
45
+ clip: rect(0 0 0 0);
46
+ height: 1px;
47
+ margin: -1px;
48
+ overflow: hidden;
49
+ padding: 0;
50
+ position: absolute;
51
+ width: 1px;
52
+ white-space: nowrap;
53
53
  }
54
54
 
55
55
  .hidden {
56
- display: none;
56
+ display: none;
57
57
  }
58
58
 
59
59
  :host([hidden]) {
60
- display: none;
60
+ display: none;
61
61
  }
62
62
 
63
63
  .invisible {
64
- visibility: hidden;
64
+ visibility: hidden;
65
65
  }
66
66
 
67
-
68
67
  :host {
69
- display: block;
70
- padding: var(--tct-checkbox-vertical-padding, var(--tct-scale-2, var(--app-scale-2, 10px))) 0;
68
+ display: block;
69
+ padding: var(--tct-checkbox-vertical-padding, var(--tct-scale-2, var(--app-scale-2, 10px))) 0;
71
70
  }
72
71
 
73
72
  label {
74
- display: flex;
75
- align-items: center;
76
- cursor: pointer;
77
- --comp-checkbox-outer-stroke-color: var(
78
- --tct-checkbox-outer-stroke-color,
79
- var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))
80
- );
81
- --comp-checkbox-outer-fill-color: var(
82
- --tct-checkbox-outer-fill-color,
83
- var(--tct-white, var(--app-white, #ffffff))
84
- );
85
- --comp-checkbox-checked-color: var(
86
- --tct-checkbox-check-stroke-color,
87
- var(
88
- --t-checkbox-fill,
89
- var(--tct-gray-5, var(--t-gray-5, var(--tct-gray-d2, var(--app-gray-d2, #404040))))
90
- )
91
- );
73
+ display: flex;
74
+ align-items: center;
75
+ cursor: pointer;
76
+ --comp-checkbox-outer-stroke-color: var(
77
+ --tct-checkbox-outer-stroke-color,
78
+ var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))
79
+ );
80
+ --comp-checkbox-outer-fill-color: var(
81
+ --tct-checkbox-outer-fill-color,
82
+ var(--tct-white, var(--app-white, #ffffff))
83
+ );
84
+ --comp-checkbox-checked-color: var(
85
+ --tct-checkbox-check-stroke-color,
86
+ var(
87
+ --t-checkbox-fill,
88
+ var(--tct-gray-5, var(--t-gray-5, var(--tct-gray-d2, var(--app-gray-d2, #404040))))
89
+ )
90
+ );
92
91
  }
93
92
 
94
93
  input:disabled + label {
95
- opacity: var(
96
- --tct-checkbox-disabled-opacity,
97
- var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))
98
- );
94
+ opacity: var(--tct-checkbox-disabled-opacity, var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4)));
99
95
  }
100
96
 
101
97
  .checkbox-icon {
102
- height: var(--tct-checkbox-size, 20px);
103
- width: var(--tct-checkbox-size, 20px);
104
- border-radius: var(
105
- --tct-checkbox-outer-border-radius,
106
- var(--tct-border-radius-1, var(--app-border-radius-1, 3px))
107
- );
108
- stroke: var(--comp-checkbox-outer-stroke-color);
109
- color: var(--comp-checkbox-outer-stroke-color);
110
- --t-icon-stroke-primary: var(--comp-checkbox-outer-stroke-color);
111
- stroke-width: var(--tct-checkbox-outer-stroke-width, 2);
112
- fill: var(--comp-checkbox-outer-fill-color);
113
- flex-shrink: 0;
98
+ height: var(--tct-checkbox-size, 20px);
99
+ width: var(--tct-checkbox-size, 20px);
100
+ border-radius: var(--tct-checkbox-outer-border-radius, var(--tct-border-radius-1, var(--app-border-radius-1, 3px)));
101
+ stroke: var(--comp-checkbox-outer-stroke-color);
102
+ color: var(--comp-checkbox-outer-stroke-color);
103
+ --t-icon-stroke-primary: var(--comp-checkbox-outer-stroke-color);
104
+ stroke-width: var(--tct-checkbox-outer-stroke-width, 2);
105
+ fill: var(--comp-checkbox-outer-fill-color);
106
+ flex-shrink: 0;
114
107
  }
115
108
 
116
109
  input:focus + label .checkbox-icon {
117
- box-shadow: var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff));
110
+ box-shadow: var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff));
118
111
  }
119
112
 
120
113
  .checkbox-fill {
121
- stroke: var(--comp-checkbox-checked-color);
114
+ stroke: var(--comp-checkbox-checked-color);
122
115
  }
123
116
 
124
117
  input:checked + label .checkbox-icon {
125
- fill: var(--tct-checkbox-checked-outer-fill-color, var(--comp-checkbox-outer-fill-color));
126
- stroke: var(--tct-checkbox-checked-outer-stroke-color, var(--comp-checkbox-outer-stroke-color));
118
+ fill: var(--tct-checkbox-checked-outer-fill-color, var(--comp-checkbox-outer-fill-color));
119
+ stroke: var(--tct-checkbox-checked-outer-stroke-color, var(--comp-checkbox-outer-stroke-color));
127
120
  }
128
121
 
129
122
  input:focus + label .checkbox-icon {
130
- stroke: var(--tct-checkbox-focused-outer-stroke-color, var(--comp-checkbox-checked-color));
123
+ stroke: var(--tct-checkbox-focused-outer-stroke-color, var(--comp-checkbox-checked-color));
131
124
  }
132
125
 
133
126
  .checked-fill {
134
- stroke-width: var(--tct-checkbox-check-stroke-width, 2.5);
135
- stroke-linecap: round;
136
- stroke-linejoin: round;
127
+ stroke-width: var(--tct-checkbox-check-stroke-width, 2.5);
128
+ stroke-linecap: round;
129
+ stroke-linejoin: round;
137
130
  }
138
131
 
139
132
  .indeterminate-fill {
140
- stroke-width: var(--tct-checkbox-indeterminate-stroke-width, 3.5);
133
+ stroke-width: var(--tct-checkbox-indeterminate-stroke-width, 3.5);
141
134
  }
142
135
 
143
136
  .q2-checkbox-label-content {
144
- font-weight: var(--tct-checkbox-font-weight, 400);
145
- flex: 1 1 auto;
146
- width: calc(
147
- 100% - var(--tct-checkbox-size, 20px) - var(--tct-scale-2, var(--app-scale-2, 10px))
148
- );
137
+ font-weight: var(--tct-checkbox-font-weight, 400);
138
+ flex: 1 1 auto;
139
+ width: calc( 100% - var(--tct-checkbox-size, 20px) - var(--tct-scale-2, var(--app-scale-2, 10px)) );
149
140
  }
150
141
 
151
142
  input:checked + label .q2-checkbox-label-content {
152
- font-weight: var(--tct-checkbox-selected-font-weight, 600);
153
- letter-spacing: var(--tct-checkbox-selected-letter-spacing, 0.25);
143
+ font-weight: var(--tct-checkbox-selected-font-weight, 600);
144
+ letter-spacing: var(--tct-checkbox-selected-letter-spacing, 0.25);
154
145
  }
155
146
 
156
- :host([type='favorite']) {
157
- --scoped-checkbox-favorite-stroke-color: var(
158
- --tct-checkbox-favorite-stroke-color,
159
- var(--t-textA, rgba(77, 77, 77, 0.77))
160
- );
161
- --scoped-checkbox-favorite-fill-color: var(
162
- --tct-checkbox-favorite-fill-color,
163
- var(--tct-stoplight-warning, var(--const-stoplight-warning, #f0b400))
164
- );
147
+ :host([type=favorite]) {
148
+ --scoped-checkbox-favorite-stroke-color: var(
149
+ --tct-checkbox-favorite-stroke-color,
150
+ var(--t-textA, rgba(77, 77, 77, 0.77))
151
+ );
152
+ --scoped-checkbox-favorite-fill-color: var(
153
+ --tct-checkbox-favorite-fill-color,
154
+ var(--tct-stoplight-warning, var(--const-stoplight-warning, #f0b400))
155
+ );
165
156
  }
166
157
 
167
- :host([type='favorite']) .checkbox-icon {
168
- --tct-icon-stroke-width: var(--tct-checkbox-favorite-stroke-width, 1);
169
- --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-stroke-color);
170
- width: var(--tct-checkbox-size, 20px);
171
- height: var(--tct-checkbox-size, 20px);
172
- transition: fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),
173
- color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),
174
- stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease));
158
+ :host([type=favorite]) .checkbox-icon {
159
+ --tct-icon-stroke-width: var(--tct-checkbox-favorite-stroke-width, 1);
160
+ --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-stroke-color);
161
+ width: var(--tct-checkbox-size, 20px);
162
+ height: var(--tct-checkbox-size, 20px);
163
+ transition: fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)), color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)), stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease));
175
164
  }
176
165
 
177
- :host([type='favorite']:focus-within) input + label .checkbox-icon,
178
- :host([type='favorite']:hover) input + label .checkbox-icon {
179
- --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-fill-color);
180
- --tct-icon-stroke-width: var(--tct-checkbox-favorite-hover-stroke-width, 2);
166
+ :host([type=favorite]:focus-within) input + label .checkbox-icon,
167
+ :host([type=favorite]:hover) input + label .checkbox-icon {
168
+ --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-fill-color);
169
+ --tct-icon-stroke-width: var(--tct-checkbox-favorite-hover-stroke-width, 2);
181
170
  }
182
171
 
183
- :host([type='favorite']) input:checked + label .checkbox-icon {
184
- --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-fill-color);
185
- fill: var(--scoped-checkbox-favorite-fill-color);
186
- transition: fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),
187
- color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),
188
- stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
172
+ :host([type=favorite]) input:checked + label .checkbox-icon {
173
+ --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-fill-color);
174
+ fill: var(--scoped-checkbox-favorite-fill-color);
175
+ transition: fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)), color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)), stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
189
176
  }
190
177
 
191
- :host([type='favorite']:focus-within) input:checked + label .checkbox-icon,
192
- :host([type='favorite']:hover) input:checked + label .checkbox-icon {
193
- --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-stroke-color);
178
+ :host([type=favorite]:focus-within) input:checked + label .checkbox-icon,
179
+ :host([type=favorite]:hover) input:checked + label .checkbox-icon {
180
+ --tct-icon-stroke-primary: var(--scoped-checkbox-favorite-stroke-color);
194
181
  }
195
182
 
196
- :host([alignment='right']) label,
197
- :host([type='toggle']:not([alignment='left'])) label {
198
- flex-flow: row-reverse;
183
+ :host([alignment=right]) label,
184
+ :host([type=toggle]:not([alignment=left])) label {
185
+ flex-flow: row-reverse;
199
186
  }
200
187
 
201
188
  .checkbox-icon,
202
- :host([type='toggle'][alignment='left']) .toggle-svg {
203
- margin-right: var(--tct-scale-2, var(--app-scale-2, 10px));
204
- margin-left: 0;
189
+ :host([type=toggle][alignment=left]) .toggle-svg {
190
+ margin-right: var(--tct-scale-2, var(--app-scale-2, 10px));
191
+ margin-left: 0;
205
192
  }
206
193
 
207
- :host([alignment='right']) .checkbox-icon,
194
+ :host([alignment=right]) .checkbox-icon,
208
195
  .toggle-svg {
209
- margin-right: 0;
210
- margin-left: var(--tct-scale-2, var(--app-scale-2, 10px));
196
+ margin-right: 0;
197
+ margin-left: var(--tct-scale-2, var(--app-scale-2, 10px));
211
198
  }
212
199
 
213
- :host([type='toggle']) .toggle-svg {
214
- height: 30px;
215
- width: 46px;
216
- position: relative;
200
+ :host([type=toggle]) .toggle-svg {
201
+ height: 30px;
202
+ width: 46px;
203
+ position: relative;
217
204
  }
218
205
 
219
- :host([type='toggle']) .toggle-track,
220
- :host([type='toggle']) .toggle-indicator {
221
- position: absolute;
222
- top: 50%;
223
- transform: translateY(-50%);
224
- }
225
- :host([type='toggle']) .toggle-track {
226
- fill: var(
227
- --tct-checkbox-toggle-track-color,
228
- var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))
229
- );
230
- height: 14px;
231
- width: 46px;
206
+ :host([type=toggle]) .toggle-track,
207
+ :host([type=toggle]) .toggle-indicator {
208
+ position: absolute;
209
+ top: 50%;
210
+ transform: translateY(-50%);
232
211
  }
233
212
 
234
- :host([type='toggle']) input:checked + label .toggle-track {
235
- fill: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
236
- opacity: 0.5;
213
+ :host([type=toggle]) .toggle-track {
214
+ fill: var(--tct-checkbox-toggle-track-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));
215
+ height: 14px;
216
+ width: 46px;
237
217
  }
238
218
 
239
- :host([type='toggle']) .toggle-indicator {
240
- transition: left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
241
- height: 30px;
242
- width: 30px;
243
- left: 0;
244
- border-radius: 50%;
219
+ :host([type=toggle]) input:checked + label .toggle-track {
220
+ fill: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
221
+ opacity: 0.5;
245
222
  }
246
223
 
247
- :host([type='toggle']) input:checked + label .toggle-indicator {
248
- left: 21px;
224
+ :host([type=toggle]) .toggle-indicator {
225
+ transition: left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
226
+ height: 30px;
227
+ width: 30px;
228
+ left: 0;
229
+ border-radius: 50%;
249
230
  }
250
231
 
251
- :host([type='toggle']) .toggle-circle {
252
- fill: var(
253
- --tct-checkbox-toggle-circle-color,
254
- var(--tct-gray-9, var(--t-gray-9, var(--tct-gray, var(--app-gray, #999999))))
255
- );
232
+ :host([type=toggle]) input:checked + label .toggle-indicator {
233
+ left: 21px;
256
234
  }
257
235
 
258
- :host([type='toggle']) input:checked + label .toggle-circle {
259
- fill: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
236
+ :host([type=toggle]) .toggle-circle {
237
+ fill: var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--t-gray-9, var(--tct-gray, var(--app-gray, #999999)))));
260
238
  }
261
239
 
262
- :host([type='toggle']) input:checked + label .off,
263
- :host([type='toggle']) input:not(:checked) + label .on {
264
- opacity: 0;
240
+ :host([type=toggle]) input:checked + label .toggle-circle {
241
+ fill: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
265
242
  }
266
243
 
267
- :host([type='toggle']) input:focus + label .toggle-circle {
268
- stroke: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
269
- stroke-width: 10px;
270
- stroke-opacity: 0.5;
244
+ :host([type=toggle]) input:checked + label .off,
245
+ :host([type=toggle]) input:not(:checked) + label .on {
246
+ opacity: 0;
271
247
  }
272
248
 
273
- :host([type='toggle']) input:not(:checked):focus + label .toggle-circle {
274
- stroke: var(
275
- --tct-checkbox-toggle-circle-color,
276
- var(--tct-gray-9, var(--t-gray-9, var(--tct-gray, var(--app-gray, #999999))))
277
- );
249
+ :host([type=toggle]) input:focus + label .toggle-circle {
250
+ stroke: var(--tct-checkbox-toggle-checked-color, var(--comp-checkbox-checked-color));
251
+ stroke-width: 10px;
252
+ stroke-opacity: 0.5;
278
253
  }
279
254
 
280
- :host([type='toggle']) .checked-fill {
281
- stroke: var(--tct-checkbox-toggle-icon-stroke, var(--tct-white, var(--app-white, #ffffff)));
282
- transition: opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
255
+ :host([type=toggle]) input:not(:checked):focus + label .toggle-circle {
256
+ stroke: var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--t-gray-9, var(--tct-gray, var(--app-gray, #999999)))));
283
257
  }
284
258
 
285
- :host([type='toggle']) input:checked + label .checked-fill {
286
- stroke: var(
287
- --tct-checkbox-toggle-checked-icon-stroke,
288
- var(--t-checkbox-text, var(--tct-white, var(--app-white, #ffffff)))
289
- );
259
+ :host([type=toggle]) .checked-fill {
260
+ stroke: var(--tct-checkbox-toggle-icon-stroke, var(--tct-white, var(--app-white, #ffffff)));
261
+ transition: opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease));
290
262
  }
263
+
264
+ :host([type=toggle]) input:checked + label .checked-fill {
265
+ stroke: var(--tct-checkbox-toggle-checked-icon-stroke, var(--t-checkbox-text, var(--tct-white, var(--app-white, #ffffff))));
266
+ }
@@ -74,7 +74,7 @@ export class Q2CheckboxGroup {
74
74
  static get is() { return "q2-checkbox-group"; }
75
75
  static get encapsulation() { return "shadow"; }
76
76
  static get originalStyleUrls() { return {
77
- "$": ["styles.css"]
77
+ "$": ["styles.scss"]
78
78
  }; }
79
79
  static get styleUrls() { return {
80
80
  "$": ["styles.css"]
@@ -1,145 +1,129 @@
1
1
  * {
2
- box-sizing: border-box;
2
+ box-sizing: border-box;
3
3
  }
4
4
 
5
5
  *:active {
6
- outline: none;
6
+ outline: none;
7
7
  }
8
8
 
9
9
  *:focus {
10
- outline: none;
11
- box-shadow: var(--const-global-focus);
10
+ outline: none;
11
+ box-shadow: var(--const-global-focus);
12
12
  }
13
13
 
14
14
  :host {
15
- box-shadow: none !important;
15
+ box-shadow: none !important;
16
16
  }
17
17
 
18
18
  ::-moz-focus-inner {
19
- border: none;
19
+ border: none;
20
20
  }
21
21
 
22
22
  input,
23
23
  textarea,
24
24
  button {
25
- font-family: inherit;
26
- font-size: inherit;
25
+ font-family: inherit;
26
+ font-size: inherit;
27
27
  }
28
28
 
29
29
  :host(.sr),
30
30
  :host(.sr) button {
31
- border: 0;
32
- clip: rect(0 0 0 0);
33
- height: 1px;
34
- margin: -1px;
35
- overflow: hidden;
36
- padding: 0;
37
- position: absolute;
38
- width: 1px;
39
- white-space: nowrap;
31
+ border: 0;
32
+ clip: rect(0 0 0 0);
33
+ height: 1px;
34
+ margin: -1px;
35
+ overflow: hidden;
36
+ padding: 0;
37
+ position: absolute;
38
+ width: 1px;
39
+ white-space: nowrap;
40
40
  }
41
41
 
42
42
  .sr,
43
43
  .sr button {
44
- border: 0;
45
- clip: rect(0 0 0 0);
46
- height: 1px;
47
- margin: -1px;
48
- overflow: hidden;
49
- padding: 0;
50
- position: absolute;
51
- width: 1px;
52
- white-space: nowrap;
44
+ border: 0;
45
+ clip: rect(0 0 0 0);
46
+ height: 1px;
47
+ margin: -1px;
48
+ overflow: hidden;
49
+ padding: 0;
50
+ position: absolute;
51
+ width: 1px;
52
+ white-space: nowrap;
53
53
  }
54
54
 
55
55
  .hidden {
56
- display: none;
56
+ display: none;
57
57
  }
58
58
 
59
59
  :host([hidden]) {
60
- display: none;
60
+ display: none;
61
61
  }
62
62
 
63
63
  .invisible {
64
- visibility: hidden;
64
+ visibility: hidden;
65
65
  }
66
66
 
67
-
68
67
  :host {
69
- margin-top: var(--tct-scale-2, var(--app-scale-2, 10px));
68
+ margin-top: var(--tct-scale-2, var(--app-scale-2, 10px));
70
69
  }
71
70
 
72
71
  fieldset {
73
- padding: var(--tct-input-error-padding, 0);
74
- margin: 0;
75
- border: 0;
72
+ padding: var(--tct-input-error-padding, 0);
73
+ margin: 0;
74
+ border: 0;
76
75
  }
77
76
 
78
77
  fieldset.has-error {
79
- border-color: var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));
80
- border-width: 1px;
81
- border-style: solid;
82
- border-radius: var(--tct-border-radius-1, var(--app-border-radius-1, 2px));
83
- position: relative;
78
+ border-color: var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));
79
+ border-width: 1px;
80
+ border-style: solid;
81
+ border-radius: var(--tct-border-radius-1, var(--app-border-radius-1, 2px));
82
+ position: relative;
84
83
  }
85
84
 
86
85
  fieldset.has-error .error-icon-container {
87
- top: 8px;
88
- right: 8px;
89
- position: absolute;
90
- width: 40%;
91
- text-align: right;
92
- background: linear-gradient(
93
- to right,
94
- var(--tct-checkbox-group-error-gradient-start, var(--t-base-a0, rgba(255, 255, 255, 0))),
95
- var(--tct-checkbox-group-error-gradient-end, var(--t-base, rgba(255, 255, 255)))
96
- );
86
+ top: 8px;
87
+ right: 8px;
88
+ position: absolute;
89
+ width: 40%;
90
+ text-align: right;
91
+ background: linear-gradient(to right, var(--tct-checkbox-group-error-gradient-start, var(--t-base-a0, rgba(255, 255, 255, 0))), var(--tct-checkbox-group-error-gradient-end, var(--t-base, white)));
97
92
  }
98
93
 
99
94
  fieldset.has-error legend + div.error-icon-container.no-label {
100
- top: 28px;
95
+ top: 28px;
101
96
  }
102
97
 
103
98
  .group-legend {
104
- font-weight: 600;
99
+ font-weight: 600;
105
100
  }
106
101
 
107
102
  legend.sr-only {
108
- position: absolute;
109
- width: 1px;
110
- height: 1px;
111
- padding: 0;
112
- margin: -1px;
113
- overflow: hidden;
114
- border: 0;
103
+ position: absolute;
104
+ width: 1px;
105
+ height: 1px;
106
+ padding: 0;
107
+ margin: -1px;
108
+ overflow: hidden;
109
+ border: 0;
115
110
  }
116
111
 
117
112
  .optional-tag {
118
- margin-left: var(
119
- --tct-input-label-optional-margin-left,
120
- var(--tct-scale-1, var(--app-scale-1, 5px))
121
- );
122
- color: var(
123
- --tct-input-label-optional-font-color,
124
- var(
125
- --tct-a11y-color,
126
- var(
127
- --t-a11y-gray-color,
128
- var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--app-gray-d1, #666666))))
129
- )
130
- )
131
- );
132
- font-size: var(--tct-input-label-optional-font-size, 12px);
133
- font-weight: var(--tct-input-label-optional-font-weight, 400);
113
+ margin-left: var(--tct-input-label-optional-margin-left, var(--tct-scale-1, var(--app-scale-1, 5px)));
114
+ color: var(--tct-input-label-optional-font-color, var(--tct-a11y-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--app-gray-d1, #666666)))))));
115
+ font-size: var(--tct-input-label-optional-font-size, 12px);
116
+ font-weight: var(--tct-input-label-optional-font-weight, 400);
134
117
  }
135
118
 
136
119
  .flexed {
137
- margin: 0;
138
- display: flex;
139
- flex-wrap: wrap;
140
- align-items: center;
141
- justify-content: center;
120
+ margin: 0;
121
+ display: flex;
122
+ flex-wrap: wrap;
123
+ align-items: center;
124
+ justify-content: center;
142
125
  }
126
+
143
127
  .flexed.left {
144
- justify-content: left;
145
- }
128
+ justify-content: left;
129
+ }