@ionic/core 8.2.3-dev.11721064272.19e3ddfd → 8.2.3-dev.11723022900.1196a7bf

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 (204) hide show
  1. package/components/button.js +1 -1
  2. package/components/ion-avatar.js +3 -3
  3. package/components/ion-badge.js +3 -3
  4. package/components/ion-chip.js +1 -1
  5. package/components/ion-input.js +1 -1
  6. package/components/ion-segment.js +3 -11
  7. package/components/ion-select-option.js +1 -1
  8. package/components/ion-select.js +2 -2
  9. package/components/ion-skeleton-text.js +2 -2
  10. package/components/ion-split-pane.js +2 -2
  11. package/components/ion-tab-bar.js +2 -2
  12. package/components/ion-tab-button.js +2 -2
  13. package/components/ion-tab.js +2 -2
  14. package/components/ion-tabs.js +1 -1
  15. package/components/ion-text.js +2 -2
  16. package/components/ion-textarea.js +2 -2
  17. package/components/ion-thumbnail.js +2 -2
  18. package/components/ion-title.js +2 -2
  19. package/components/ion-toast.js +2 -2
  20. package/components/ion-toggle.js +3 -3
  21. package/components/ion-toolbar.js +2 -2
  22. package/components/item.js +3 -3
  23. package/components/list.js +1 -1
  24. package/components/select-popover.js +2 -2
  25. package/components/spinner.js +33 -6
  26. package/css/core.css +1 -1
  27. package/css/core.css.map +1 -1
  28. package/css/ionic.bundle.css +1 -1
  29. package/css/ionic.bundle.css.map +1 -1
  30. package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
  31. package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -8
  32. package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
  33. package/dist/cjs/ion-chip.cjs.entry.js +1 -1
  34. package/dist/cjs/ion-input.cjs.entry.js +1 -1
  35. package/dist/cjs/ion-item_8.cjs.entry.js +6 -6
  36. package/dist/cjs/ion-segment_2.cjs.entry.js +3 -11
  37. package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
  38. package/dist/cjs/ion-spinner.cjs.entry.js +30 -4
  39. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  40. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  41. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  42. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-toast.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  46. package/dist/cjs/ionic.cjs.js +1 -1
  47. package/dist/cjs/loader.cjs.js +1 -1
  48. package/dist/collection/collection-manifest.json +0 -2
  49. package/dist/collection/components/avatar/avatar.ionic.css +17 -1
  50. package/dist/collection/components/avatar/avatar.js +5 -5
  51. package/dist/collection/components/avatar/test/shape/avatar.e2e.js +7 -0
  52. package/dist/collection/components/avatar/test/size/avatar.e2e.js +27 -0
  53. package/dist/collection/components/badge/badge.ionic.css +30 -35
  54. package/dist/collection/components/badge/badge.ios.css +94 -3
  55. package/dist/collection/components/badge/badge.md.css +94 -3
  56. package/dist/collection/components/badge/test/basic/badge.e2e.js +1 -1
  57. package/dist/collection/components/button/button.ionic.css +41 -2
  58. package/dist/collection/components/button/test/outline/button.e2e.js +1 -2
  59. package/dist/collection/components/button/test/states/button.e2e.js +3 -3
  60. package/dist/collection/components/chip/chip.ionic.css +22 -1
  61. package/dist/collection/components/chip/test/basic/chip.e2e.js +28 -29
  62. package/dist/collection/components/input/input.ionic.css +2 -1
  63. package/dist/collection/components/item/item.ionic.css +346 -52
  64. package/dist/collection/components/item/item.ios.css +94 -67
  65. package/dist/collection/components/item/item.md.css +94 -67
  66. package/dist/collection/components/item-sliding/test/basic/item-sliding.e2e.js +2 -2
  67. package/dist/collection/components/list/list.ionic.css +1 -0
  68. package/dist/collection/components/segment/segment.js +3 -11
  69. package/dist/collection/components/select/select.js +2 -2
  70. package/dist/collection/components/select-option/select-option.js +1 -1
  71. package/dist/collection/components/select-popover/select-popover.js +2 -2
  72. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  73. package/dist/collection/components/spinner/spinner.common.css +199 -0
  74. package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +55 -0
  75. package/dist/collection/components/spinner/spinner.js +40 -3
  76. package/dist/collection/components/spinner/test/size/spinner.e2e.js +47 -0
  77. package/dist/collection/components/split-pane/split-pane.js +2 -2
  78. package/dist/collection/components/tab/tab.js +2 -2
  79. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  80. package/dist/collection/components/tab-button/tab-button.js +2 -2
  81. package/dist/collection/components/tabs/tabs.js +1 -1
  82. package/dist/collection/components/text/text.js +2 -2
  83. package/dist/collection/components/textarea/textarea.js +2 -2
  84. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  85. package/dist/collection/components/title/title.js +2 -2
  86. package/dist/collection/components/toast/toast.js +2 -2
  87. package/dist/collection/components/toggle/toggle.js +3 -3
  88. package/dist/collection/components/toolbar/toolbar.js +2 -2
  89. package/dist/collection/themes/ionic/test/colors/theme.e2e.js +120 -0
  90. package/dist/docs.json +190 -48
  91. package/dist/esm/ion-app_8.entry.js +4 -4
  92. package/dist/esm/ion-avatar_3.entry.js +8 -8
  93. package/dist/esm/ion-button_2.entry.js +1 -1
  94. package/dist/esm/ion-chip.entry.js +1 -1
  95. package/dist/esm/ion-input.entry.js +1 -1
  96. package/dist/esm/ion-item_8.entry.js +6 -6
  97. package/dist/esm/ion-segment_2.entry.js +3 -11
  98. package/dist/esm/ion-select_3.entry.js +5 -5
  99. package/dist/esm/ion-spinner.entry.js +30 -4
  100. package/dist/esm/ion-split-pane.entry.js +2 -2
  101. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  102. package/dist/esm/ion-tab_2.entry.js +3 -3
  103. package/dist/esm/ion-text.entry.js +2 -2
  104. package/dist/esm/ion-textarea.entry.js +2 -2
  105. package/dist/esm/ion-toast.entry.js +2 -2
  106. package/dist/esm/ion-toggle.entry.js +3 -3
  107. package/dist/esm/ionic.js +1 -1
  108. package/dist/esm/loader.js +1 -1
  109. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  110. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  111. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  112. package/dist/esm-es5/ion-chip.entry.js +1 -1
  113. package/dist/esm-es5/ion-input.entry.js +1 -1
  114. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  115. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  116. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  117. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  118. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  119. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  120. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  121. package/dist/esm-es5/ion-text.entry.js +1 -1
  122. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  123. package/dist/esm-es5/ion-toast.entry.js +1 -1
  124. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  125. package/dist/esm-es5/ionic.js +1 -1
  126. package/dist/esm-es5/loader.js +1 -1
  127. package/dist/html.html-data.json +25 -29
  128. package/dist/ionic/ionic.esm.js +1 -1
  129. package/dist/ionic/{p-29f4100d.entry.js → p-01ae1aa0.entry.js} +1 -1
  130. package/dist/ionic/p-1be0295f.entry.js +4 -0
  131. package/dist/ionic/p-201d8768.system.entry.js +4 -0
  132. package/dist/ionic/{p-062c1cb9.system.entry.js → p-223bc7dd.system.entry.js} +1 -1
  133. package/dist/ionic/{p-0595a36c.system.entry.js → p-24592a4d.system.entry.js} +1 -1
  134. package/dist/ionic/{p-2aa6a169.entry.js → p-28649e61.entry.js} +1 -1
  135. package/dist/ionic/{p-385a361b.entry.js → p-39a39279.entry.js} +1 -1
  136. package/dist/ionic/p-40c14f53.system.entry.js +4 -0
  137. package/dist/ionic/{p-cd6d4c1d.entry.js → p-4346453b.entry.js} +1 -1
  138. package/dist/ionic/{p-1be0ed0e.system.entry.js → p-45ca3acb.system.entry.js} +2 -2
  139. package/dist/ionic/p-4b9c6418.system.entry.js +4 -0
  140. package/dist/ionic/p-4fdbf0ef.entry.js +4 -0
  141. package/dist/ionic/p-563a8d3b.entry.js +4 -0
  142. package/dist/ionic/{p-b67ed806.system.entry.js → p-56c72f65.system.entry.js} +1 -1
  143. package/dist/ionic/p-6d47fa40.entry.js +4 -0
  144. package/dist/ionic/p-7459eeb7.system.entry.js +4 -0
  145. package/dist/ionic/{p-da668343.system.entry.js → p-7ab9c88c.system.entry.js} +1 -1
  146. package/dist/ionic/p-7b590e46.system.js +1 -1
  147. package/dist/ionic/{p-c0dace15.system.entry.js → p-7dad531c.system.entry.js} +1 -1
  148. package/dist/ionic/p-81350e4b.system.entry.js +4 -0
  149. package/dist/ionic/p-8ac5efa9.entry.js +4 -0
  150. package/dist/ionic/p-a6bb62ea.entry.js +4 -0
  151. package/dist/ionic/p-b1938594.entry.js +4 -0
  152. package/dist/ionic/{p-aaf1b71f.entry.js → p-b374abe2.entry.js} +1 -1
  153. package/dist/ionic/p-b4b44bf9.system.entry.js +4 -0
  154. package/dist/ionic/{p-61f51286.system.entry.js → p-b5cc6e57.system.entry.js} +1 -1
  155. package/dist/ionic/p-bbefc52b.system.entry.js +4 -0
  156. package/dist/ionic/p-c11fdca2.entry.js +4 -0
  157. package/dist/ionic/{p-adb54d5b.entry.js → p-c23822f8.entry.js} +1 -1
  158. package/dist/ionic/{p-14ae725a.entry.js → p-d2a580db.entry.js} +1 -1
  159. package/dist/ionic/p-d774e194.system.entry.js +4 -0
  160. package/dist/ionic/p-dc8a3888.entry.js +4 -0
  161. package/dist/ionic/{p-5cc8fa7f.system.entry.js → p-f84ea1e9.system.entry.js} +1 -1
  162. package/dist/types/components/avatar/avatar.d.ts +7 -4
  163. package/dist/types/components/segment/segment.d.ts +1 -1
  164. package/dist/types/components/spinner/spinner.d.ts +11 -0
  165. package/dist/types/components.d.ts +12 -30
  166. package/hydrate/index.js +80 -154
  167. package/package.json +1 -1
  168. package/components/ion-segment-content.d.ts +0 -11
  169. package/components/ion-segment-content.js +0 -38
  170. package/components/ion-segment-view.d.ts +0 -11
  171. package/components/ion-segment-view.js +0 -86
  172. package/dist/cjs/ion-segment-content.cjs.entry.js +0 -24
  173. package/dist/cjs/ion-segment-view.cjs.entry.js +0 -72
  174. package/dist/collection/components/segment-content/segment-content.css +0 -5
  175. package/dist/collection/components/segment-content/segment-content.js +0 -22
  176. package/dist/collection/components/segment-view/segment-view.css +0 -15
  177. package/dist/collection/components/segment-view/segment-view.js +0 -81
  178. package/dist/esm/ion-segment-content.entry.js +0 -20
  179. package/dist/esm/ion-segment-view.entry.js +0 -68
  180. package/dist/esm-es5/ion-segment-content.entry.js +0 -4
  181. package/dist/esm-es5/ion-segment-view.entry.js +0 -4
  182. package/dist/ionic/p-07b804ba.entry.js +0 -4
  183. package/dist/ionic/p-405559bd.entry.js +0 -4
  184. package/dist/ionic/p-5839776e.entry.js +0 -4
  185. package/dist/ionic/p-660cf6f3.system.entry.js +0 -4
  186. package/dist/ionic/p-6ced0cc0.entry.js +0 -4
  187. package/dist/ionic/p-6d4534cb.system.entry.js +0 -4
  188. package/dist/ionic/p-72944d53.system.entry.js +0 -4
  189. package/dist/ionic/p-7813dead.system.entry.js +0 -4
  190. package/dist/ionic/p-833593dd.entry.js +0 -4
  191. package/dist/ionic/p-8ef82205.entry.js +0 -4
  192. package/dist/ionic/p-9316e014.system.entry.js +0 -4
  193. package/dist/ionic/p-935801cc.entry.js +0 -4
  194. package/dist/ionic/p-9771abb4.entry.js +0 -4
  195. package/dist/ionic/p-a2830649.system.entry.js +0 -4
  196. package/dist/ionic/p-a3b856e6.system.entry.js +0 -4
  197. package/dist/ionic/p-aa246404.entry.js +0 -4
  198. package/dist/ionic/p-aa97948b.entry.js +0 -4
  199. package/dist/ionic/p-c6e43624.entry.js +0 -4
  200. package/dist/ionic/p-dc60009b.system.entry.js +0 -4
  201. package/dist/ionic/p-f1eb1152.system.entry.js +0 -4
  202. package/dist/ionic/p-f8a16486.system.entry.js +0 -4
  203. package/dist/types/components/segment-content/segment-content.d.ts +0 -5
  204. package/dist/types/components/segment-view/segment-view.d.ts +0 -13
@@ -1,42 +1,3 @@
1
- /**
2
- * Convert a pixels given value into rem
3
- *
4
- * @param pixels - Value in pixels to be converted (i.e. px)
5
- * @param context (optional) - Baseline value
6
- */
7
- /**
8
- * Convert a font size to a dynamic font size.
9
- * Fonts that participate in Dynamic Type should use
10
- * dynamic font sizes.
11
- * @param size - The initial font size including the unit (i.e. px or pt)
12
- * @param unit (optional) - The unit to convert to. Use this if you want to
13
- * convert to a unit other than $baselineUnit.
14
- */
15
- /**
16
- * Convert a font size to a dynamic font size but impose
17
- * a maximum font size.
18
- * @param size - The initial font size including the unit (i.e. px or pt)
19
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
20
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
21
- * convert to a unit other than $baselineUnit.
22
- */
23
- /**
24
- * Convert a font size to a dynamic font size but impose
25
- * a minimum font size.
26
- * @param size - The initial font size including the unit (i.e. px or pt)
27
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
28
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
29
- * convert to a unit other than $baselineUnit.
30
- */
31
- /**
32
- * Convert a font size to a dynamic font size but impose
33
- * maximum and minimum font sizes.
34
- * @param size - The initial font size including the unit (i.e. px or pt)
35
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
36
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
37
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
38
- * convert to a unit other than $baselineUnit.
39
- */
40
1
  /**
41
2
  * A heuristic that applies CSS to tablet
42
3
  * viewports.
@@ -130,23 +91,12 @@
130
91
  justify-content: space-between;
131
92
  outline: none;
132
93
  color: var(--color);
133
- font-family: var(--ion-font-family, inherit);
134
94
  text-align: initial;
135
95
  text-decoration: none;
136
96
  overflow: hidden;
137
97
  box-sizing: border-box;
138
98
  }
139
99
 
140
- :host(.ion-color) .item-native {
141
- background: var(--ion-color-base);
142
- color: var(--ion-color-contrast);
143
- }
144
-
145
- :host(.ion-color) .item-native,
146
- :host(.ion-color) .item-inner {
147
- border-color: var(--ion-color-shade);
148
- }
149
-
150
100
  :host(.ion-activated) .item-native {
151
101
  color: var(--color-activated);
152
102
  }
@@ -155,10 +105,6 @@
155
105
  opacity: var(--background-activated-opacity);
156
106
  }
157
107
 
158
- :host(.ion-color.ion-activated) .item-native {
159
- color: var(--ion-color-contrast);
160
- }
161
-
162
108
  :host(.ion-focused) .item-native {
163
109
  color: var(--color-focused);
164
110
  }
@@ -167,13 +113,6 @@
167
113
  opacity: var(--background-focused-opacity);
168
114
  }
169
115
 
170
- :host(.ion-color.ion-focused) .item-native {
171
- color: var(--ion-color-contrast);
172
- }
173
- :host(.ion-color.ion-focused) .item-native::after {
174
- background: var(--ion-color-contrast);
175
- }
176
-
177
116
  @media (any-hover: hover) {
178
117
  :host(.ion-activatable:not(.ion-focused):hover) .item-native {
179
118
  color: var(--color-hover);
@@ -182,12 +121,6 @@
182
121
  background: var(--background-hover);
183
122
  opacity: var(--background-hover-opacity);
184
123
  }
185
- :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native {
186
- color: var(--ion-color-contrast);
187
- }
188
- :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after {
189
- background: var(--ion-color-contrast);
190
- }
191
124
  }
192
125
  :host(.item-control-needs-pointer-cursor) {
193
126
  cursor: pointer;
@@ -412,6 +345,100 @@ ion-ripple-effect {
412
345
  color: var(--ripple-color);
413
346
  }
414
347
 
348
+ /**
349
+ * Convert a pixels given value into rem
350
+ *
351
+ * @param pixels - Value in pixels to be converted (i.e. px)
352
+ * @param context (optional) - Baseline value
353
+ */
354
+ /**
355
+ * Convert a font size to a dynamic font size.
356
+ * Fonts that participate in Dynamic Type should use
357
+ * dynamic font sizes.
358
+ * @param size - The initial font size including the unit (i.e. px or pt)
359
+ * @param unit (optional) - The unit to convert to. Use this if you want to
360
+ * convert to a unit other than $baselineUnit.
361
+ */
362
+ /**
363
+ * Convert a font size to a dynamic font size but impose
364
+ * a maximum font size.
365
+ * @param size - The initial font size including the unit (i.e. px or pt)
366
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
367
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
368
+ * convert to a unit other than $baselineUnit.
369
+ */
370
+ /**
371
+ * Convert a font size to a dynamic font size but impose
372
+ * a minimum font size.
373
+ * @param size - The initial font size including the unit (i.e. px or pt)
374
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
375
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
376
+ * convert to a unit other than $baselineUnit.
377
+ */
378
+ /**
379
+ * Convert a font size to a dynamic font size but impose
380
+ * maximum and minimum font sizes.
381
+ * @param size - The initial font size including the unit (i.e. px or pt)
382
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
383
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
384
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
385
+ * convert to a unit other than $baselineUnit.
386
+ */
387
+ /**
388
+ * A heuristic that applies CSS to tablet
389
+ * viewports.
390
+ *
391
+ * Usage:
392
+ * @include tablet-viewport() {
393
+ * :host {
394
+ * background-color: green;
395
+ * }
396
+ * }
397
+ */
398
+ /**
399
+ * A heuristic that applies CSS to mobile
400
+ * viewports (i.e. phones, not tablets).
401
+ *
402
+ * Usage:
403
+ * @include mobile-viewport() {
404
+ * :host {
405
+ * background-color: blue;
406
+ * }
407
+ * }
408
+ */
409
+ :host {
410
+ font-family: var(--ion-font-family, inherit);
411
+ }
412
+
413
+ :host(.ion-color) .item-native {
414
+ background: var(--ion-color-base);
415
+ color: var(--ion-color-contrast);
416
+ }
417
+
418
+ :host(.ion-color) .item-native,
419
+ :host(.ion-color) .item-inner {
420
+ border-color: var(--ion-color-shade);
421
+ }
422
+
423
+ :host(.ion-color.ion-activated) .item-native {
424
+ color: var(--ion-color-contrast);
425
+ }
426
+
427
+ :host(.ion-color.ion-focused) .item-native {
428
+ color: var(--ion-color-contrast);
429
+ }
430
+ :host(.ion-color.ion-focused) .item-native::after {
431
+ background: var(--ion-color-contrast);
432
+ }
433
+
434
+ @media (any-hover: hover) {
435
+ :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native {
436
+ color: var(--ion-color-contrast);
437
+ }
438
+ :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after {
439
+ background: var(--ion-color-contrast);
440
+ }
441
+ }
415
442
  /**
416
443
  * Convert a pixels given value into rem
417
444
  *
@@ -1,42 +1,3 @@
1
- /**
2
- * Convert a pixels given value into rem
3
- *
4
- * @param pixels - Value in pixels to be converted (i.e. px)
5
- * @param context (optional) - Baseline value
6
- */
7
- /**
8
- * Convert a font size to a dynamic font size.
9
- * Fonts that participate in Dynamic Type should use
10
- * dynamic font sizes.
11
- * @param size - The initial font size including the unit (i.e. px or pt)
12
- * @param unit (optional) - The unit to convert to. Use this if you want to
13
- * convert to a unit other than $baselineUnit.
14
- */
15
- /**
16
- * Convert a font size to a dynamic font size but impose
17
- * a maximum font size.
18
- * @param size - The initial font size including the unit (i.e. px or pt)
19
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
20
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
21
- * convert to a unit other than $baselineUnit.
22
- */
23
- /**
24
- * Convert a font size to a dynamic font size but impose
25
- * a minimum font size.
26
- * @param size - The initial font size including the unit (i.e. px or pt)
27
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
28
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
29
- * convert to a unit other than $baselineUnit.
30
- */
31
- /**
32
- * Convert a font size to a dynamic font size but impose
33
- * maximum and minimum font sizes.
34
- * @param size - The initial font size including the unit (i.e. px or pt)
35
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
36
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
37
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
38
- * convert to a unit other than $baselineUnit.
39
- */
40
1
  /**
41
2
  * A heuristic that applies CSS to tablet
42
3
  * viewports.
@@ -130,23 +91,12 @@
130
91
  justify-content: space-between;
131
92
  outline: none;
132
93
  color: var(--color);
133
- font-family: var(--ion-font-family, inherit);
134
94
  text-align: initial;
135
95
  text-decoration: none;
136
96
  overflow: hidden;
137
97
  box-sizing: border-box;
138
98
  }
139
99
 
140
- :host(.ion-color) .item-native {
141
- background: var(--ion-color-base);
142
- color: var(--ion-color-contrast);
143
- }
144
-
145
- :host(.ion-color) .item-native,
146
- :host(.ion-color) .item-inner {
147
- border-color: var(--ion-color-shade);
148
- }
149
-
150
100
  :host(.ion-activated) .item-native {
151
101
  color: var(--color-activated);
152
102
  }
@@ -155,10 +105,6 @@
155
105
  opacity: var(--background-activated-opacity);
156
106
  }
157
107
 
158
- :host(.ion-color.ion-activated) .item-native {
159
- color: var(--ion-color-contrast);
160
- }
161
-
162
108
  :host(.ion-focused) .item-native {
163
109
  color: var(--color-focused);
164
110
  }
@@ -167,13 +113,6 @@
167
113
  opacity: var(--background-focused-opacity);
168
114
  }
169
115
 
170
- :host(.ion-color.ion-focused) .item-native {
171
- color: var(--ion-color-contrast);
172
- }
173
- :host(.ion-color.ion-focused) .item-native::after {
174
- background: var(--ion-color-contrast);
175
- }
176
-
177
116
  @media (any-hover: hover) {
178
117
  :host(.ion-activatable:not(.ion-focused):hover) .item-native {
179
118
  color: var(--color-hover);
@@ -182,12 +121,6 @@
182
121
  background: var(--background-hover);
183
122
  opacity: var(--background-hover-opacity);
184
123
  }
185
- :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native {
186
- color: var(--ion-color-contrast);
187
- }
188
- :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after {
189
- background: var(--ion-color-contrast);
190
- }
191
124
  }
192
125
  :host(.item-control-needs-pointer-cursor) {
193
126
  cursor: pointer;
@@ -412,6 +345,100 @@ ion-ripple-effect {
412
345
  color: var(--ripple-color);
413
346
  }
414
347
 
348
+ /**
349
+ * Convert a pixels given value into rem
350
+ *
351
+ * @param pixels - Value in pixels to be converted (i.e. px)
352
+ * @param context (optional) - Baseline value
353
+ */
354
+ /**
355
+ * Convert a font size to a dynamic font size.
356
+ * Fonts that participate in Dynamic Type should use
357
+ * dynamic font sizes.
358
+ * @param size - The initial font size including the unit (i.e. px or pt)
359
+ * @param unit (optional) - The unit to convert to. Use this if you want to
360
+ * convert to a unit other than $baselineUnit.
361
+ */
362
+ /**
363
+ * Convert a font size to a dynamic font size but impose
364
+ * a maximum font size.
365
+ * @param size - The initial font size including the unit (i.e. px or pt)
366
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
367
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
368
+ * convert to a unit other than $baselineUnit.
369
+ */
370
+ /**
371
+ * Convert a font size to a dynamic font size but impose
372
+ * a minimum font size.
373
+ * @param size - The initial font size including the unit (i.e. px or pt)
374
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
375
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
376
+ * convert to a unit other than $baselineUnit.
377
+ */
378
+ /**
379
+ * Convert a font size to a dynamic font size but impose
380
+ * maximum and minimum font sizes.
381
+ * @param size - The initial font size including the unit (i.e. px or pt)
382
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
383
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
384
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
385
+ * convert to a unit other than $baselineUnit.
386
+ */
387
+ /**
388
+ * A heuristic that applies CSS to tablet
389
+ * viewports.
390
+ *
391
+ * Usage:
392
+ * @include tablet-viewport() {
393
+ * :host {
394
+ * background-color: green;
395
+ * }
396
+ * }
397
+ */
398
+ /**
399
+ * A heuristic that applies CSS to mobile
400
+ * viewports (i.e. phones, not tablets).
401
+ *
402
+ * Usage:
403
+ * @include mobile-viewport() {
404
+ * :host {
405
+ * background-color: blue;
406
+ * }
407
+ * }
408
+ */
409
+ :host {
410
+ font-family: var(--ion-font-family, inherit);
411
+ }
412
+
413
+ :host(.ion-color) .item-native {
414
+ background: var(--ion-color-base);
415
+ color: var(--ion-color-contrast);
416
+ }
417
+
418
+ :host(.ion-color) .item-native,
419
+ :host(.ion-color) .item-inner {
420
+ border-color: var(--ion-color-shade);
421
+ }
422
+
423
+ :host(.ion-color.ion-activated) .item-native {
424
+ color: var(--ion-color-contrast);
425
+ }
426
+
427
+ :host(.ion-color.ion-focused) .item-native {
428
+ color: var(--ion-color-contrast);
429
+ }
430
+ :host(.ion-color.ion-focused) .item-native::after {
431
+ background: var(--ion-color-contrast);
432
+ }
433
+
434
+ @media (any-hover: hover) {
435
+ :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native {
436
+ color: var(--ion-color-contrast);
437
+ }
438
+ :host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after {
439
+ background: var(--ion-color-contrast);
440
+ }
441
+ }
415
442
  /**
416
443
  * Convert a pixels given value into rem
417
444
  *
@@ -10,7 +10,7 @@ import { configs, dragElementBy, test } from "../../../../utils/test/playwright/
10
10
  * It is important to test all modes to ensure that the
11
11
  * child components are being rendered correctly.
12
12
  */
13
- configs().forEach(({ title, screenshot, config }) => {
13
+ configs({ modes: ['ios', 'md', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
14
14
  test.describe(title('item-sliding: basic'), () => {
15
15
  test.beforeEach(async ({ page }) => {
16
16
  await page.goto(`/src/components/item-sliding/test/basic`, config);
@@ -88,7 +88,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
88
88
  * make sure the safe area padding is applied only to that side
89
89
  * regardless of direction
90
90
  */
91
- configs().forEach(({ title, screenshot, config }) => {
91
+ configs({ modes: ['ios', 'md', 'ionic-md'] }).forEach(({ title, screenshot, config }) => {
92
92
  test.describe(title('item-sliding: basic'), () => {
93
93
  test.describe('safe area left', () => {
94
94
  test('should have padding on the left only', async ({ page }) => {
@@ -73,6 +73,7 @@ ion-list {
73
73
  padding-top: 0;
74
74
  padding-bottom: 0;
75
75
  display: block;
76
+ background: var(--ionic-color-base-white, #ffffff);
76
77
  contain: content;
77
78
  list-style-type: none;
78
79
  }
@@ -82,15 +82,7 @@ export class Segment {
82
82
  swipeGestureChanged() {
83
83
  this.gestureChanged();
84
84
  }
85
- valueChanged(value, oldValue) {
86
- if (oldValue !== undefined && value !== undefined) {
87
- const buttons = this.getButtons();
88
- const previous = buttons.find((button) => button.value === oldValue);
89
- const current = buttons.find((button) => button.value === value);
90
- if (previous && current) {
91
- this.checkButton(previous, current);
92
- }
93
- }
85
+ valueChanged(value) {
94
86
  /**
95
87
  * `ionSelect` is emitted every time the value changes (internal or external changes).
96
88
  * Used by `ion-segment-button` to determine if the button should be checked.
@@ -430,14 +422,14 @@ export class Segment {
430
422
  }
431
423
  render() {
432
424
  const theme = getIonTheme(this);
433
- return (h(Host, { key: 'fa333a638e291c771155cc8205a89022799b2f35', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
425
+ return (h(Host, { key: '8ebad474914841f288bad5076063c04eb8697c1f', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
434
426
  [theme]: true,
435
427
  'in-toolbar': hostContext('ion-toolbar', this.el),
436
428
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
437
429
  'segment-activated': this.activated,
438
430
  'segment-disabled': this.disabled,
439
431
  'segment-scrollable': this.scrollable,
440
- }) }, h("slot", { key: '245eb99eee33b71a7cc4f33fedfd52ede284a21c', onSlotchange: this.onSlottedItemsChange })));
432
+ }) }, h("slot", { key: '7c80d6ab541998f3edf0ae12254c6412103000a0', onSlotchange: this.onSlottedItemsChange })));
441
433
  }
442
434
  static get is() { return "ion-segment"; }
443
435
  static get encapsulation() { return "shadow"; }
@@ -669,7 +669,7 @@ export class Select {
669
669
  * TODO(FW-5592): Remove hasStartEndSlots condition
670
670
  */
671
671
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
672
- return (h(Host, { key: '63114b245835e18e63ab6b791713e1c34c2a91d3', onClick: this.onClick, class: createColorClasses(this.color, {
672
+ return (h(Host, { key: '50a843952ba75a266cb2690e3bac68c7bbb8ba95', onClick: this.onClick, class: createColorClasses(this.color, {
673
673
  [theme]: true,
674
674
  'in-item': inItem,
675
675
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -685,7 +685,7 @@ export class Select {
685
685
  [`select-justify-${justify}`]: justifyEnabled,
686
686
  [`select-shape-${shape}`]: shape !== undefined,
687
687
  [`select-label-placement-${labelPlacement}`]: true,
688
- }) }, h("label", { key: 'dd7f90e38fd21cb0ce2cb26c588ff1318a3b4e03', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '946a1f025be4a63e1b7f9243d1e089e204f7e2c4', class: "select-wrapper-inner" }, h("slot", { key: '4ab1ffe6511e37ec148768edd41ba26ca59dc0a2', name: "start" }), h("div", { key: 'bc949b66207c31b4f412e1a0480c779bdb20ab99', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '3ce8d8bdf08ba900ae12f4ed51bcc693e9eb5f7c', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'ad3f883b723354327602b93208913dcfae218e2f', class: "select-highlight" }))));
688
+ }) }, h("label", { key: '617e8b1ee3636c35e8262748028c5c9b53349ab8', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '0b5a7126bcb30203986c5a0ed9f2f41f25501ace', class: "select-wrapper-inner" }, h("slot", { key: '0e35013e26f58f04f7eb9228cb270991e5b755ae', name: "start" }), h("div", { key: 'cf131b61e7907f63a1ce32dd931a9753ae290807', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '0adb8f7cdd610dfe67e1a363180e99322f5a6343', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'd9d2954141a517296483c22eac4b143c4096e1c5', class: "select-highlight" }))));
689
689
  }
690
690
  static get is() { return "ion-select"; }
691
691
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class SelectOption {
15
15
  }
16
16
  render() {
17
17
  const theme = getIonTheme(this);
18
- return (h(Host, { key: '9c119de67b396ed5a1cd5efa40034a1b10313f1b', class: {
18
+ return (h(Host, { key: '1a977b2d7953ecbddf216c5b68d47104dda07bce', class: {
19
19
  [theme]: true,
20
20
  }, role: "option", id: this.inputId }));
21
21
  }
@@ -106,9 +106,9 @@ export class SelectPopover {
106
106
  const { header, message, options, subHeader } = this;
107
107
  const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
108
108
  const theme = getIonTheme(this);
109
- return (h(Host, { key: '499511498ca8be82086bb06e2b27ce33bffc1ddb', class: {
109
+ return (h(Host, { key: '6ac9472c819c6631cd64ad8810256dd03fde120b', class: {
110
110
  [theme]: true,
111
- } }, h("ion-list", { key: '278f6bc1feeede9f02728971f322aa63f806321e' }, header !== undefined && h("ion-list-header", { key: 'ae4b4d8d73b7d353ac11e26dab35d001b7bfd2bf' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: '79e6641ab2dbbd08811ddcf8f346b0f18e3f0454' }, h("ion-label", { key: '53788eacd7384c4f24c727cd9312da3a57ccc67b', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '0f028877e1fb89b66c22f5963bc57257d34f653d' }, subHeader), message !== undefined && h("p", { key: 'ff3b24d1bddacf963d9e1c287e65b71c97bb95b9' }, message)))), this.renderOptions(options))));
111
+ } }, h("ion-list", { key: 'b485896c38c080bc42f92e962440cd3b8308e728' }, header !== undefined && h("ion-list-header", { key: '6a1df70265a4b9feec9521d5f946994345456925' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: 'c4ecbcaa2c56c1cb900e039cbfe36c2fae03f2ac' }, h("ion-label", { key: 'e310d3445c6abfffb4ff00a1aec97dd09c94e1d3', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '9a6ffdfd9df8aea92290caf317d855b262ac8998' }, subHeader), message !== undefined && h("p", { key: 'b5ca3c716d69e6a2c013df3fa3436b92953c4296' }, message)))), this.renderOptions(options))));
112
112
  }
113
113
  static get is() { return "ion-select-popover"; }
114
114
  static get encapsulation() { return "scoped"; }
@@ -29,11 +29,11 @@ export class SkeletonText {
29
29
  const animated = this.animated && config.getBoolean('animated', true);
30
30
  const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
31
31
  const theme = getIonTheme(this);
32
- return (h(Host, { key: 'f788545e591fdd0d1b3b61ad5e97b02d2d7e46f4', class: {
32
+ return (h(Host, { key: '20170a23455836848210459749d9ba6a6eaaff53', class: {
33
33
  [theme]: true,
34
34
  'skeleton-text-animated': animated,
35
35
  'in-media': inMedia,
36
- } }, h("span", { key: '4f62ad7f8851d4111c60e7f7b28edcbb7067125c' }, "\u00A0")));
36
+ } }, h("span", { key: '96a9a18da286285abb647e7b69a4832cbe59b3b8' }, "\u00A0")));
37
37
  }
38
38
  static get is() { return "ion-skeleton-text"; }
39
39
  static get encapsulation() { return "shadow"; }