@ionic/core 8.5.5-dev.11744821352.11e7a84f → 8.5.5-dev.11745934912.1dcd33ea

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 (232) hide show
  1. package/components/backdrop.js +3 -3
  2. package/components/button.js +3 -3
  3. package/components/ion-accordion-group.js +1 -1
  4. package/components/ion-accordion.js +1 -1
  5. package/components/ion-avatar.js +1 -1
  6. package/components/ion-badge.js +3 -3
  7. package/components/ion-chip.js +1 -1
  8. package/components/ion-input-password-toggle.js +5 -5
  9. package/components/ion-input.js +1 -1
  10. package/components/ion-item-option.js +3 -3
  11. package/components/ion-item-options.js +3 -3
  12. package/components/ion-progress-bar.js +3 -3
  13. package/components/ion-range.js +1 -1
  14. package/components/ion-searchbar.js +1 -1
  15. package/components/ion-select.js +3 -3
  16. package/components/ion-tab-button.js +3 -3
  17. package/components/ion-textarea.js +3 -3
  18. package/components/ion-toast.js +3 -3
  19. package/components/ion-toggle.js +3 -3
  20. package/components/item.js +1 -1
  21. package/components/list-header.js +3 -3
  22. package/components/modal.js +3 -3
  23. package/components/ripple-effect.js +1 -1
  24. package/components/spinner.js +5 -5
  25. package/css/core.css.map +1 -1
  26. package/css/ionic/bundle.ionic.css +1 -1
  27. package/css/ionic/bundle.ionic.css.map +1 -1
  28. package/css/ionic/global.bundle.ionic.css +1 -1
  29. package/css/ionic/global.bundle.ionic.css.map +1 -1
  30. package/css/ionic/link.ionic.css +1 -1
  31. package/css/ionic/link.ionic.css.map +1 -1
  32. package/css/ionic.bundle.css.map +1 -1
  33. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-avatar_3.cjs.entry.js +4 -4
  35. package/dist/cjs/ion-backdrop.cjs.entry.js +3 -3
  36. package/dist/cjs/ion-button_2.cjs.entry.js +3 -3
  37. package/dist/cjs/ion-chip.cjs.entry.js +1 -1
  38. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +5 -5
  39. package/dist/cjs/ion-input.cjs.entry.js +1 -1
  40. package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
  41. package/dist/cjs/ion-item_8.cjs.entry.js +4 -4
  42. package/dist/cjs/ion-modal.cjs.entry.js +3 -3
  43. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
  44. package/dist/cjs/ion-range.cjs.entry.js +1 -1
  45. package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
  46. package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
  47. package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
  48. package/dist/cjs/ion-spinner.cjs.entry.js +5 -5
  49. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +3 -3
  50. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  51. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  53. package/dist/collection/components/accordion/accordion.ionic.css +5 -5
  54. package/dist/collection/components/accordion-group/accordion-group.ionic.css +2 -2
  55. package/dist/collection/components/avatar/avatar.ionic.css +38 -52
  56. package/dist/collection/components/avatar/avatar.ios.css +0 -39
  57. package/dist/collection/components/avatar/avatar.md.css +0 -39
  58. package/dist/collection/components/backdrop/backdrop.ionic.css +1 -40
  59. package/dist/collection/components/backdrop/backdrop.ios.css +44 -19
  60. package/dist/collection/components/backdrop/backdrop.md.css +44 -19
  61. package/dist/collection/components/badge/badge.ionic.css +31 -52
  62. package/dist/collection/components/badge/badge.ios.css +8 -41
  63. package/dist/collection/components/badge/badge.md.css +8 -41
  64. package/dist/collection/components/button/button.ionic.css +29 -77
  65. package/dist/collection/components/button/button.ios.css +23 -75
  66. package/dist/collection/components/button/button.md.css +23 -75
  67. package/dist/collection/components/chip/chip.ionic.css +17 -6
  68. package/dist/collection/components/input/input.ionic.css +21 -83
  69. package/dist/collection/components/input/input.md.css +0 -122
  70. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +1 -62
  71. package/dist/collection/components/input-password-toggle/input-password-toggle.js +4 -4
  72. package/dist/collection/components/item/item.ionic.css +9 -4
  73. package/dist/collection/components/item-option/item-option.ionic.css +16 -3
  74. package/dist/collection/components/item-option/item-option.ios.css +4 -1
  75. package/dist/collection/components/item-option/item-option.md.css +4 -1
  76. package/dist/collection/components/item-options/item-options.ionic.css +4 -40
  77. package/dist/collection/components/item-options/item-options.ios.css +65 -40
  78. package/dist/collection/components/item-options/item-options.md.css +65 -40
  79. package/dist/collection/components/list/list.ionic.css +22 -0
  80. package/dist/collection/components/list/list.ios.css +36 -14
  81. package/dist/collection/components/list/list.md.css +36 -14
  82. package/dist/collection/components/list-header/list-header.ionic.css +6 -50
  83. package/dist/collection/components/list-header/list-header.ios.css +70 -44
  84. package/dist/collection/components/list-header/list-header.md.css +70 -44
  85. package/dist/collection/components/modal/modal.ionic.css +16 -18
  86. package/dist/collection/components/modal/modal.ios.css +79 -18
  87. package/dist/collection/components/modal/modal.md.css +79 -18
  88. package/dist/collection/components/progress-bar/progress-bar.ionic.css +6 -50
  89. package/dist/collection/components/progress-bar/progress-bar.ios.css +35 -10
  90. package/dist/collection/components/progress-bar/progress-bar.md.css +35 -10
  91. package/dist/collection/components/range/range.ionic.css +2 -2
  92. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +64 -1
  93. package/dist/collection/components/searchbar/searchbar.ionic.css +3 -3
  94. package/dist/collection/components/select/select.ionic.css +46 -112
  95. package/dist/collection/components/select/select.ios.css +109 -103
  96. package/dist/collection/components/select/select.md.css +109 -103
  97. package/dist/collection/components/spinner/spinner.ionic.css +12 -10
  98. package/dist/collection/components/spinner/spinner.js +4 -4
  99. package/dist/collection/components/spinner/{spinner.common.css → spinner.native.css} +9 -10
  100. package/dist/collection/components/tab-button/tab-button.ionic.css +19 -8
  101. package/dist/collection/components/tab-button/tab-button.ios.css +5 -5
  102. package/dist/collection/components/tab-button/tab-button.md.css +5 -5
  103. package/dist/collection/components/textarea/textarea.ionic.css +39 -88
  104. package/dist/collection/components/textarea/textarea.ios.css +115 -88
  105. package/dist/collection/components/textarea/textarea.md.css +115 -88
  106. package/dist/collection/components/toast/toast.ionic.css +2 -12
  107. package/dist/collection/components/toast/toast.ios.css +10 -10
  108. package/dist/collection/components/toast/toast.md.css +10 -10
  109. package/dist/collection/components/toggle/toggle.ionic.css +0 -4
  110. package/dist/collection/components/toggle/toggle.ios.css +4 -4
  111. package/dist/collection/components/toggle/toggle.md.css +4 -4
  112. package/dist/docs.json +1 -13
  113. package/dist/esm/ion-accordion_2.entry.js +2 -2
  114. package/dist/esm/ion-avatar_3.entry.js +4 -4
  115. package/dist/esm/ion-backdrop.entry.js +3 -3
  116. package/dist/esm/ion-button_2.entry.js +3 -3
  117. package/dist/esm/ion-chip.entry.js +1 -1
  118. package/dist/esm/ion-input-password-toggle.entry.js +5 -5
  119. package/dist/esm/ion-input.entry.js +1 -1
  120. package/dist/esm/ion-item-option_3.entry.js +6 -6
  121. package/dist/esm/ion-item_8.entry.js +4 -4
  122. package/dist/esm/ion-modal.entry.js +3 -3
  123. package/dist/esm/ion-progress-bar.entry.js +3 -3
  124. package/dist/esm/ion-range.entry.js +1 -1
  125. package/dist/esm/ion-ripple-effect.entry.js +1 -1
  126. package/dist/esm/ion-searchbar.entry.js +1 -1
  127. package/dist/esm/ion-select_3.entry.js +3 -3
  128. package/dist/esm/ion-spinner.entry.js +5 -5
  129. package/dist/esm/ion-tab-bar_2.entry.js +3 -3
  130. package/dist/esm/ion-textarea.entry.js +3 -3
  131. package/dist/esm/ion-toast.entry.js +3 -3
  132. package/dist/esm/ion-toggle.entry.js +3 -3
  133. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  134. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  135. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  136. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  137. package/dist/esm-es5/ion-chip.entry.js +1 -1
  138. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  139. package/dist/esm-es5/ion-input.entry.js +1 -1
  140. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  141. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  142. package/dist/esm-es5/ion-modal.entry.js +1 -1
  143. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  144. package/dist/esm-es5/ion-range.entry.js +1 -1
  145. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  146. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  147. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  148. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  149. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  150. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  151. package/dist/esm-es5/ion-toast.entry.js +1 -1
  152. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  153. package/dist/ionic/ionic.esm.js +1 -1
  154. package/dist/ionic/{p-2d1ea225.entry.js → p-09072d3b.entry.js} +1 -1
  155. package/dist/ionic/p-0d297574.system.entry.js +4 -0
  156. package/dist/ionic/p-246e6dc5.entry.js +4 -0
  157. package/dist/ionic/p-25679df9.system.entry.js +4 -0
  158. package/dist/ionic/p-259dcfa3.entry.js +4 -0
  159. package/dist/ionic/p-2d8cc8b4.entry.js +4 -0
  160. package/dist/ionic/p-350e4850.system.entry.js +4 -0
  161. package/dist/ionic/p-3533c471.system.entry.js +4 -0
  162. package/dist/ionic/p-3824cffd.entry.js +4 -0
  163. package/dist/ionic/p-3b98dd61.system.entry.js +4 -0
  164. package/dist/ionic/p-436bfcc9.system.entry.js +4 -0
  165. package/dist/ionic/p-43d6a02c.system.entry.js +4 -0
  166. package/dist/ionic/p-44b1fefc.entry.js +4 -0
  167. package/dist/ionic/p-4a767053.entry.js +4 -0
  168. package/dist/ionic/p-7c6f71eb.entry.js +4 -0
  169. package/dist/ionic/p-7cf8fbdc.system.entry.js +4 -0
  170. package/dist/ionic/p-8402b59e.system.entry.js +4 -0
  171. package/dist/ionic/p-840f1c59.entry.js +4 -0
  172. package/dist/ionic/p-84ac0a34.system.entry.js +4 -0
  173. package/dist/ionic/p-85c7c591.system.entry.js +4 -0
  174. package/dist/ionic/{p-1d8a608c.entry.js → p-88aa79f6.entry.js} +1 -1
  175. package/dist/ionic/{p-1091cdb9.entry.js → p-9d513c26.entry.js} +1 -1
  176. package/dist/ionic/{p-f724434e.system.entry.js → p-a1d0ee0b.system.entry.js} +1 -1
  177. package/dist/ionic/p-a569fc14.system.entry.js +4 -0
  178. package/dist/ionic/p-a6a71315.entry.js +4 -0
  179. package/dist/ionic/p-aba2d55f.system.entry.js +4 -0
  180. package/dist/ionic/p-b79a47ba.entry.js +4 -0
  181. package/dist/ionic/p-ba992f31.system.entry.js +4 -0
  182. package/dist/ionic/p-c0b7f342.entry.js +4 -0
  183. package/dist/ionic/p-c18ffa8b.entry.js +4 -0
  184. package/dist/ionic/p-c1e7dbd4.system.entry.js +4 -0
  185. package/dist/ionic/p-c847b24b.system.entry.js +4 -0
  186. package/dist/ionic/{p-30c3101d.entry.js → p-c9481069.entry.js} +1 -1
  187. package/dist/ionic/{p-0407e81b.entry.js → p-ccb71d99.entry.js} +1 -1
  188. package/dist/ionic/p-d2314315.system.entry.js +4 -0
  189. package/dist/ionic/p-db8ffacb.system.js +1 -1
  190. package/dist/ionic/p-dfb63dc2.system.entry.js +4 -0
  191. package/dist/ionic/p-e09bb245.system.entry.js +4 -0
  192. package/dist/ionic/p-f6a03670.entry.js +4 -0
  193. package/dist/ionic/p-fb3ce1f1.entry.js +4 -0
  194. package/dist/ionic/p-fec23a6f.entry.js +4 -0
  195. package/hydrate/index.js +58 -58
  196. package/hydrate/index.mjs +58 -58
  197. package/package.json +1 -1
  198. package/dist/ionic/p-049c8d2a.entry.js +0 -4
  199. package/dist/ionic/p-106d1261.system.entry.js +0 -4
  200. package/dist/ionic/p-14405618.system.entry.js +0 -4
  201. package/dist/ionic/p-226163dd.system.entry.js +0 -4
  202. package/dist/ionic/p-25de2d08.entry.js +0 -4
  203. package/dist/ionic/p-36ac0bd0.system.entry.js +0 -4
  204. package/dist/ionic/p-36e022e5.system.entry.js +0 -4
  205. package/dist/ionic/p-4bad1784.system.entry.js +0 -4
  206. package/dist/ionic/p-4c3e0fde.system.entry.js +0 -4
  207. package/dist/ionic/p-4e5e464b.entry.js +0 -4
  208. package/dist/ionic/p-4eab42bc.entry.js +0 -4
  209. package/dist/ionic/p-4ee9dc7a.entry.js +0 -4
  210. package/dist/ionic/p-519dbeb4.entry.js +0 -4
  211. package/dist/ionic/p-537e7cdc.system.entry.js +0 -4
  212. package/dist/ionic/p-5396aa22.system.entry.js +0 -4
  213. package/dist/ionic/p-65c2b2b1.entry.js +0 -4
  214. package/dist/ionic/p-660800ad.entry.js +0 -4
  215. package/dist/ionic/p-7c2fc007.system.entry.js +0 -4
  216. package/dist/ionic/p-7f74d4fc.system.entry.js +0 -4
  217. package/dist/ionic/p-895adf4d.system.entry.js +0 -4
  218. package/dist/ionic/p-8befed6f.entry.js +0 -4
  219. package/dist/ionic/p-8d3c124a.entry.js +0 -4
  220. package/dist/ionic/p-95039c8b.entry.js +0 -4
  221. package/dist/ionic/p-a212bcac.entry.js +0 -4
  222. package/dist/ionic/p-a929d40a.entry.js +0 -4
  223. package/dist/ionic/p-af4d0e38.system.entry.js +0 -4
  224. package/dist/ionic/p-b7f022cd.system.entry.js +0 -4
  225. package/dist/ionic/p-b852ead6.system.entry.js +0 -4
  226. package/dist/ionic/p-c41441ce.system.entry.js +0 -4
  227. package/dist/ionic/p-c595e718.system.entry.js +0 -4
  228. package/dist/ionic/p-caf65cd8.system.entry.js +0 -4
  229. package/dist/ionic/p-e119d90e.entry.js +0 -4
  230. package/dist/ionic/p-ebe9ec08.system.entry.js +0 -4
  231. package/dist/ionic/p-fd806579.entry.js +0 -4
  232. /package/dist/collection/components/input-password-toggle/{input-password-toggle.common.css → input-password-toggle.native.css} +0 -0
@@ -59,45 +59,6 @@
59
59
  * }
60
60
  * }
61
61
  */
62
- /**
63
- * Convert a pixels given value into rem
64
- *
65
- * @param pixels - Value in pixels to be converted (i.e. px)
66
- * @param context (optional) - Baseline value
67
- */
68
- /**
69
- * Convert a font size to a dynamic font size.
70
- * Fonts that participate in Dynamic Type should use
71
- * dynamic font sizes.
72
- * @param size - The initial font size including the unit (i.e. px or pt)
73
- * @param unit (optional) - The unit to convert to. Use this if you want to
74
- * convert to a unit other than $baselineUnit.
75
- */
76
- /**
77
- * Convert a font size to a dynamic font size but impose
78
- * a maximum font size.
79
- * @param size - The initial font size including the unit (i.e. px or pt)
80
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
81
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
82
- * convert to a unit other than $baselineUnit.
83
- */
84
- /**
85
- * Convert a font size to a dynamic font size but impose
86
- * a minimum font size.
87
- * @param size - The initial font size including the unit (i.e. px or pt)
88
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
89
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
90
- * convert to a unit other than $baselineUnit.
91
- */
92
- /**
93
- * Convert a font size to a dynamic font size but impose
94
- * maximum and minimum font sizes.
95
- * @param size - The initial font size including the unit (i.e. px or pt)
96
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
97
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
98
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
99
- * convert to a unit other than $baselineUnit.
100
- */
101
62
  /**
102
63
  * A heuristic that applies CSS to tablet
103
64
  * viewports.
@@ -152,16 +113,11 @@
152
113
  --placeholder-color: initial;
153
114
  --placeholder-font-style: initial;
154
115
  --placeholder-font-weight: initial;
155
- --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
156
116
  --padding-top: 0;
157
117
  --padding-end: 0;
158
- --padding-bottom: 8px;
159
118
  --padding-start: 0;
160
119
  --border-radius: 0;
161
120
  --border-style: solid;
162
- --highlight-color-focused: var(--ion-color-primary, #0054e9);
163
- --highlight-color-valid: var(--ion-color-success, #2dd55b);
164
- --highlight-color-invalid: var(--ion-color-danger, #c5000f);
165
121
  /**
166
122
  * This is a private API that is used to switch
167
123
  * out the highlight color based on the state
@@ -193,7 +149,6 @@
193
149
  }
194
150
 
195
151
  :host(.ion-color) {
196
- --highlight-color-focused: var(--ion-color-base);
197
152
  background: initial;
198
153
  }
199
154
 
@@ -445,7 +400,6 @@
445
400
  */
446
401
  -webkit-margin-start: auto;
447
402
  margin-inline-start: auto;
448
- color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
449
403
  white-space: nowrap;
450
404
  }
451
405
 
@@ -456,16 +410,6 @@
456
410
  padding-inline-end: 0px;
457
411
  padding-top: var(--padding-top);
458
412
  padding-bottom: var(--padding-bottom);
459
- /**
460
- * Label text should not extend
461
- * beyond the bounds of the textarea.
462
- * However, we do not set the max
463
- * width to 100% because then
464
- * only the label would show and users
465
- * would not be able to see what they are typing.
466
- */
467
- max-width: 200px;
468
- transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
469
413
  /**
470
414
  * This ensures that double tapping this text
471
415
  * clicks the <label> and focuses the textarea
@@ -504,15 +448,6 @@
504
448
  display: none;
505
449
  }
506
450
 
507
- .textarea-wrapper textarea {
508
- /**
509
- * When the floating label appears on top of the
510
- * textarea, we need to fade the textarea out so that the
511
- * label does not overlap with the placeholder.
512
- */
513
- transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
514
- }
515
-
516
451
  /**
517
452
  * Label is on the left of the textarea in LTR and
518
453
  * on the right in RTL.
@@ -529,17 +464,6 @@
529
464
  flex-direction: row-reverse;
530
465
  }
531
466
 
532
- /**
533
- * Label is on the left of the textarea in LTR and
534
- * on the right in RTL. Label also has a fixed width.
535
- */
536
- :host(.textarea-label-placement-fixed) .label-text {
537
- flex: 0 0 100px;
538
- width: 100px;
539
- min-width: 100px;
540
- max-width: 200px;
541
- }
542
-
543
467
  /**
544
468
  * Stacked: Label sits above the textarea and is scaled down.
545
469
  * Floating: Label sits over the textarea when the textarea has no
@@ -623,18 +547,6 @@
623
547
  opacity: 1;
624
548
  }
625
549
 
626
- /**
627
- * This makes the label sit above the textarea.
628
- */
629
- :host(.label-floating) .label-text-wrapper {
630
- transform: translateY(50%) scale(0.75);
631
- /**
632
- * Label text should not extend
633
- * beyond the bounds of the textarea.
634
- */
635
- max-width: calc(100% / 0.75);
636
- }
637
-
638
550
  .start-slot-wrapper,
639
551
  .end-slot-wrapper {
640
552
  display: flex;
@@ -642,12 +554,82 @@
642
554
  align-self: start;
643
555
  }
644
556
 
557
+ /**
558
+ * Convert a pixels given value into rem
559
+ *
560
+ * @param pixels - Value in pixels to be converted (i.e. px)
561
+ * @param context (optional) - Baseline value
562
+ */
563
+ /**
564
+ * Convert a font size to a dynamic font size.
565
+ * Fonts that participate in Dynamic Type should use
566
+ * dynamic font sizes.
567
+ * @param size - The initial font size including the unit (i.e. px or pt)
568
+ * @param unit (optional) - The unit to convert to. Use this if you want to
569
+ * convert to a unit other than $baselineUnit.
570
+ */
571
+ /**
572
+ * Convert a font size to a dynamic font size but impose
573
+ * a maximum font size.
574
+ * @param size - The initial font size including the unit (i.e. px or pt)
575
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
576
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
577
+ * convert to a unit other than $baselineUnit.
578
+ */
579
+ /**
580
+ * Convert a font size to a dynamic font size but impose
581
+ * a minimum font size.
582
+ * @param size - The initial font size including the unit (i.e. px or pt)
583
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
584
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
585
+ * convert to a unit other than $baselineUnit.
586
+ */
587
+ /**
588
+ * Convert a font size to a dynamic font size but impose
589
+ * maximum and minimum font sizes.
590
+ * @param size - The initial font size including the unit (i.e. px or pt)
591
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
592
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
593
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
594
+ * convert to a unit other than $baselineUnit.
595
+ */
596
+ /**
597
+ * A heuristic that applies CSS to tablet
598
+ * viewports.
599
+ *
600
+ * Usage:
601
+ * @include tablet-viewport() {
602
+ * :host {
603
+ * background-color: green;
604
+ * }
605
+ * }
606
+ */
607
+ /**
608
+ * A heuristic that applies CSS to mobile
609
+ * viewports (i.e. phones, not tablets).
610
+ *
611
+ * Usage:
612
+ * @include mobile-viewport() {
613
+ * :host {
614
+ * background-color: blue;
615
+ * }
616
+ * }
617
+ */
645
618
  :host {
619
+ --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
620
+ --padding-bottom: 8px;
621
+ --highlight-color-focused: var(--ion-color-primary, #0054e9);
622
+ --highlight-color-valid: var(--ion-color-success, #2dd55b);
623
+ --highlight-color-invalid: var(--ion-color-danger, #c5000f);
646
624
  min-height: 44px;
647
625
  font-family: var(--ion-font-family, inherit);
648
626
  z-index: 2;
649
627
  }
650
628
 
629
+ :host(.ion-color) {
630
+ --highlight-color-focused: var(--ion-color-base);
631
+ }
632
+
651
633
  /**
652
634
  * Since the label sits on top of the element,
653
635
  * the component needs to be taller otherwise the
@@ -772,6 +754,51 @@
772
754
  margin-inline-end: 0;
773
755
  }
774
756
 
757
+ /**
758
+ * This makes the label sit above the textarea.
759
+ */
760
+ :host(.label-floating) .label-text-wrapper {
761
+ transform: translateY(50%) scale(0.75);
762
+ /**
763
+ * Label text should not extend
764
+ * beyond the bounds of the textarea.
765
+ */
766
+ max-width: calc(100% / 0.75);
767
+ }
768
+
769
+ .label-text-wrapper {
770
+ /**
771
+ * Label text should not extend
772
+ * beyond the bounds of the textarea.
773
+ * However, we do not set the max
774
+ * width to 100% because then
775
+ * only the label would show and users
776
+ * would not be able to see what they are typing.
777
+ */
778
+ max-width: 200px;
779
+ transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
780
+ }
781
+
782
+ .textarea-wrapper textarea {
783
+ /**
784
+ * When the floating label appears on top of the
785
+ * textarea, we need to fade the textarea out so that the
786
+ * label does not overlap with the placeholder.
787
+ */
788
+ transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
789
+ }
790
+
791
+ /**
792
+ * Label is on the left of the textarea in LTR and
793
+ * on the right in RTL. Label also has a fixed width.
794
+ */
795
+ :host(.textarea-label-placement-fixed) .label-text {
796
+ flex: 0 0 100px;
797
+ width: 100px;
798
+ min-width: 100px;
799
+ max-width: 200px;
800
+ }
801
+
775
802
  /**
776
803
  * Convert a pixels given value into rem
777
804
  *
@@ -59,45 +59,6 @@
59
59
  * }
60
60
  * }
61
61
  */
62
- /**
63
- * Convert a pixels given value into rem
64
- *
65
- * @param pixels - Value in pixels to be converted (i.e. px)
66
- * @param context (optional) - Baseline value
67
- */
68
- /**
69
- * Convert a font size to a dynamic font size.
70
- * Fonts that participate in Dynamic Type should use
71
- * dynamic font sizes.
72
- * @param size - The initial font size including the unit (i.e. px or pt)
73
- * @param unit (optional) - The unit to convert to. Use this if you want to
74
- * convert to a unit other than $baselineUnit.
75
- */
76
- /**
77
- * Convert a font size to a dynamic font size but impose
78
- * a maximum font size.
79
- * @param size - The initial font size including the unit (i.e. px or pt)
80
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
81
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
82
- * convert to a unit other than $baselineUnit.
83
- */
84
- /**
85
- * Convert a font size to a dynamic font size but impose
86
- * a minimum font size.
87
- * @param size - The initial font size including the unit (i.e. px or pt)
88
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
89
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
90
- * convert to a unit other than $baselineUnit.
91
- */
92
- /**
93
- * Convert a font size to a dynamic font size but impose
94
- * maximum and minimum font sizes.
95
- * @param size - The initial font size including the unit (i.e. px or pt)
96
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
97
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
98
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
99
- * convert to a unit other than $baselineUnit.
100
- */
101
62
  /**
102
63
  * A heuristic that applies CSS to tablet
103
64
  * viewports.
@@ -152,16 +113,11 @@
152
113
  --placeholder-color: initial;
153
114
  --placeholder-font-style: initial;
154
115
  --placeholder-font-weight: initial;
155
- --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
156
116
  --padding-top: 0;
157
117
  --padding-end: 0;
158
- --padding-bottom: 8px;
159
118
  --padding-start: 0;
160
119
  --border-radius: 0;
161
120
  --border-style: solid;
162
- --highlight-color-focused: var(--ion-color-primary, #0054e9);
163
- --highlight-color-valid: var(--ion-color-success, #2dd55b);
164
- --highlight-color-invalid: var(--ion-color-danger, #c5000f);
165
121
  /**
166
122
  * This is a private API that is used to switch
167
123
  * out the highlight color based on the state
@@ -193,7 +149,6 @@
193
149
  }
194
150
 
195
151
  :host(.ion-color) {
196
- --highlight-color-focused: var(--ion-color-base);
197
152
  background: initial;
198
153
  }
199
154
 
@@ -445,7 +400,6 @@
445
400
  */
446
401
  -webkit-margin-start: auto;
447
402
  margin-inline-start: auto;
448
- color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
449
403
  white-space: nowrap;
450
404
  }
451
405
 
@@ -456,16 +410,6 @@
456
410
  padding-inline-end: 0px;
457
411
  padding-top: var(--padding-top);
458
412
  padding-bottom: var(--padding-bottom);
459
- /**
460
- * Label text should not extend
461
- * beyond the bounds of the textarea.
462
- * However, we do not set the max
463
- * width to 100% because then
464
- * only the label would show and users
465
- * would not be able to see what they are typing.
466
- */
467
- max-width: 200px;
468
- transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
469
413
  /**
470
414
  * This ensures that double tapping this text
471
415
  * clicks the <label> and focuses the textarea
@@ -504,15 +448,6 @@
504
448
  display: none;
505
449
  }
506
450
 
507
- .textarea-wrapper textarea {
508
- /**
509
- * When the floating label appears on top of the
510
- * textarea, we need to fade the textarea out so that the
511
- * label does not overlap with the placeholder.
512
- */
513
- transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
514
- }
515
-
516
451
  /**
517
452
  * Label is on the left of the textarea in LTR and
518
453
  * on the right in RTL.
@@ -529,17 +464,6 @@
529
464
  flex-direction: row-reverse;
530
465
  }
531
466
 
532
- /**
533
- * Label is on the left of the textarea in LTR and
534
- * on the right in RTL. Label also has a fixed width.
535
- */
536
- :host(.textarea-label-placement-fixed) .label-text {
537
- flex: 0 0 100px;
538
- width: 100px;
539
- min-width: 100px;
540
- max-width: 200px;
541
- }
542
-
543
467
  /**
544
468
  * Stacked: Label sits above the textarea and is scaled down.
545
469
  * Floating: Label sits over the textarea when the textarea has no
@@ -623,18 +547,6 @@
623
547
  opacity: 1;
624
548
  }
625
549
 
626
- /**
627
- * This makes the label sit above the textarea.
628
- */
629
- :host(.label-floating) .label-text-wrapper {
630
- transform: translateY(50%) scale(0.75);
631
- /**
632
- * Label text should not extend
633
- * beyond the bounds of the textarea.
634
- */
635
- max-width: calc(100% / 0.75);
636
- }
637
-
638
550
  .start-slot-wrapper,
639
551
  .end-slot-wrapper {
640
552
  display: flex;
@@ -642,12 +554,82 @@
642
554
  align-self: start;
643
555
  }
644
556
 
557
+ /**
558
+ * Convert a pixels given value into rem
559
+ *
560
+ * @param pixels - Value in pixels to be converted (i.e. px)
561
+ * @param context (optional) - Baseline value
562
+ */
563
+ /**
564
+ * Convert a font size to a dynamic font size.
565
+ * Fonts that participate in Dynamic Type should use
566
+ * dynamic font sizes.
567
+ * @param size - The initial font size including the unit (i.e. px or pt)
568
+ * @param unit (optional) - The unit to convert to. Use this if you want to
569
+ * convert to a unit other than $baselineUnit.
570
+ */
571
+ /**
572
+ * Convert a font size to a dynamic font size but impose
573
+ * a maximum font size.
574
+ * @param size - The initial font size including the unit (i.e. px or pt)
575
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
576
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
577
+ * convert to a unit other than $baselineUnit.
578
+ */
579
+ /**
580
+ * Convert a font size to a dynamic font size but impose
581
+ * a minimum font size.
582
+ * @param size - The initial font size including the unit (i.e. px or pt)
583
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
584
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
585
+ * convert to a unit other than $baselineUnit.
586
+ */
587
+ /**
588
+ * Convert a font size to a dynamic font size but impose
589
+ * maximum and minimum font sizes.
590
+ * @param size - The initial font size including the unit (i.e. px or pt)
591
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
592
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
593
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
594
+ * convert to a unit other than $baselineUnit.
595
+ */
596
+ /**
597
+ * A heuristic that applies CSS to tablet
598
+ * viewports.
599
+ *
600
+ * Usage:
601
+ * @include tablet-viewport() {
602
+ * :host {
603
+ * background-color: green;
604
+ * }
605
+ * }
606
+ */
607
+ /**
608
+ * A heuristic that applies CSS to mobile
609
+ * viewports (i.e. phones, not tablets).
610
+ *
611
+ * Usage:
612
+ * @include mobile-viewport() {
613
+ * :host {
614
+ * background-color: blue;
615
+ * }
616
+ * }
617
+ */
645
618
  :host {
619
+ --placeholder-opacity: var(--ion-placeholder-opacity, 0.6);
620
+ --padding-bottom: 8px;
621
+ --highlight-color-focused: var(--ion-color-primary, #0054e9);
622
+ --highlight-color-valid: var(--ion-color-success, #2dd55b);
623
+ --highlight-color-invalid: var(--ion-color-danger, #c5000f);
646
624
  min-height: 44px;
647
625
  font-family: var(--ion-font-family, inherit);
648
626
  z-index: 2;
649
627
  }
650
628
 
629
+ :host(.ion-color) {
630
+ --highlight-color-focused: var(--ion-color-base);
631
+ }
632
+
651
633
  /**
652
634
  * Since the label sits on top of the element,
653
635
  * the component needs to be taller otherwise the
@@ -772,6 +754,51 @@
772
754
  margin-inline-end: 0;
773
755
  }
774
756
 
757
+ /**
758
+ * This makes the label sit above the textarea.
759
+ */
760
+ :host(.label-floating) .label-text-wrapper {
761
+ transform: translateY(50%) scale(0.75);
762
+ /**
763
+ * Label text should not extend
764
+ * beyond the bounds of the textarea.
765
+ */
766
+ max-width: calc(100% / 0.75);
767
+ }
768
+
769
+ .label-text-wrapper {
770
+ /**
771
+ * Label text should not extend
772
+ * beyond the bounds of the textarea.
773
+ * However, we do not set the max
774
+ * width to 100% because then
775
+ * only the label would show and users
776
+ * would not be able to see what they are typing.
777
+ */
778
+ max-width: 200px;
779
+ transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
780
+ }
781
+
782
+ .textarea-wrapper textarea {
783
+ /**
784
+ * When the floating label appears on top of the
785
+ * textarea, we need to fade the textarea out so that the
786
+ * label does not overlap with the placeholder.
787
+ */
788
+ transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
789
+ }
790
+
791
+ /**
792
+ * Label is on the left of the textarea in LTR and
793
+ * on the right in RTL. Label also has a fixed width.
794
+ */
795
+ :host(.textarea-label-placement-fixed) .label-text {
796
+ flex: 0 0 100px;
797
+ width: 100px;
798
+ min-width: 100px;
799
+ max-width: 200px;
800
+ }
801
+
775
802
  /**
776
803
  * Convert a pixels given value into rem
777
804
  *
@@ -201,11 +201,6 @@ Do not edit directly, this file was auto-generated.
201
201
  justify-content: center;
202
202
  }
203
203
 
204
- .toast-icon {
205
- -webkit-margin-start: 16px;
206
- margin-inline-start: 16px;
207
- }
208
-
209
204
  .toast-content {
210
205
  min-width: 0;
211
206
  }
@@ -231,11 +226,6 @@ Do not edit directly, this file was auto-generated.
231
226
  z-index: 0;
232
227
  }
233
228
 
234
- .toast-icon,
235
- .toast-button-icon {
236
- font-size: 1.4em;
237
- }
238
-
239
229
  .toast-button-inner {
240
230
  display: flex;
241
231
  align-items: center;
@@ -249,8 +239,8 @@ Do not edit directly, this file was auto-generated.
249
239
  :host {
250
240
  --box-shadow: var(--ion-elevation-4, 0px 3px 12px 0px rgba(0, 0, 0, 0.12), 0px 15px 48px 0px rgba(0, 0, 0, 0.18));
251
241
  --max-width: 343px;
252
- --start: 8px;
253
- --end: 8px;
242
+ --start: var(--ion-space-200, 8px);
243
+ --end: var(--ion-space-200, 8px);
254
244
  font-size: var(--ion-font-size-350, 0.875rem);
255
245
  font-weight: var(--ion-font-weight-medium, 500);
256
246
  letter-spacing: var(--ion-font-letter-spacing-0, 0%);
@@ -140,11 +140,6 @@
140
140
  justify-content: center;
141
141
  }
142
142
 
143
- .toast-icon {
144
- -webkit-margin-start: 16px;
145
- margin-inline-start: 16px;
146
- }
147
-
148
143
  .toast-content {
149
144
  min-width: 0;
150
145
  }
@@ -170,11 +165,6 @@
170
165
  z-index: 0;
171
166
  }
172
167
 
173
- .toast-icon,
174
- .toast-button-icon {
175
- font-size: 1.4em;
176
- }
177
-
178
168
  .toast-button-inner {
179
169
  display: flex;
180
170
  align-items: center;
@@ -251,6 +241,16 @@
251
241
  z-index: 1001;
252
242
  }
253
243
 
244
+ .toast-icon {
245
+ -webkit-margin-start: 16px;
246
+ margin-inline-start: 16px;
247
+ }
248
+
249
+ .toast-icon,
250
+ .toast-button-icon {
251
+ font-size: 1.4em;
252
+ }
253
+
254
254
  /**
255
255
  * Convert a pixels given value into rem
256
256
  *
@@ -140,11 +140,6 @@
140
140
  justify-content: center;
141
141
  }
142
142
 
143
- .toast-icon {
144
- -webkit-margin-start: 16px;
145
- margin-inline-start: 16px;
146
- }
147
-
148
143
  .toast-content {
149
144
  min-width: 0;
150
145
  }
@@ -170,11 +165,6 @@
170
165
  z-index: 0;
171
166
  }
172
167
 
173
- .toast-icon,
174
- .toast-button-icon {
175
- font-size: 1.4em;
176
- }
177
-
178
168
  .toast-button-inner {
179
169
  display: flex;
180
170
  align-items: center;
@@ -251,6 +241,16 @@
251
241
  z-index: 1001;
252
242
  }
253
243
 
244
+ .toast-icon {
245
+ -webkit-margin-start: 16px;
246
+ margin-inline-start: 16px;
247
+ }
248
+
249
+ .toast-icon,
250
+ .toast-button-icon {
251
+ font-size: 1.4em;
252
+ }
253
+
254
254
  /**
255
255
  * Convert a pixels given value into rem
256
256
  *
@@ -188,10 +188,6 @@ Do not edit directly, this file was auto-generated.
188
188
  width: auto;
189
189
  }
190
190
 
191
- :host(.ion-focused) input {
192
- border: 2px solid #5e9ed6;
193
- }
194
-
195
191
  :host(.toggle-disabled) {
196
192
  pointer-events: none;
197
193
  }
@@ -186,10 +186,6 @@
186
186
  width: auto;
187
187
  }
188
188
 
189
- :host(.ion-focused) input {
190
- border: 2px solid #5e9ed6;
191
- }
192
-
193
189
  :host(.toggle-disabled) {
194
190
  pointer-events: none;
195
191
  }
@@ -373,6 +369,10 @@ input {
373
369
  z-index: 2;
374
370
  }
375
371
 
372
+ :host(.ion-focused) input {
373
+ border: 2px solid #5e9ed6;
374
+ }
375
+
376
376
  :host(.in-item) .label-text-wrapper {
377
377
  margin-top: 10px;
378
378
  margin-bottom: 10px;