@ionic/core 8.8.4-dev.11776186452.1cc0af05 → 8.8.4-dev.11776246162.138c2737

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 (214) hide show
  1. package/components/index.js +1 -1
  2. package/components/ion-action-sheet.js +1 -1
  3. package/components/ion-alert.js +1 -1
  4. package/components/ion-datetime.js +1 -1
  5. package/components/ion-infinite-scroll-content.js +1 -1
  6. package/components/ion-loading.js +1 -1
  7. package/components/ion-menu.js +1 -1
  8. package/components/ion-modal.js +1 -1
  9. package/components/ion-picker-legacy.js +1 -1
  10. package/components/ion-popover.js +1 -1
  11. package/components/ion-refresher-content.js +1 -1
  12. package/components/ion-select-modal.js +1 -1
  13. package/components/ion-select-option.js +1 -1
  14. package/components/ion-select-popover.js +1 -1
  15. package/components/ion-select.js +1 -1
  16. package/components/ion-skeleton-text.js +1 -1
  17. package/components/ion-spinner.js +1 -1
  18. package/components/ion-split-pane.js +1 -1
  19. package/components/ion-tab-bar.js +1 -1
  20. package/components/ion-tab-button.js +1 -1
  21. package/components/ion-tab.js +1 -1
  22. package/components/ion-tabs.js +1 -1
  23. package/components/ion-text.js +1 -1
  24. package/components/ion-textarea.js +1 -1
  25. package/components/ion-thumbnail.js +1 -1
  26. package/components/ion-title.js +1 -1
  27. package/components/ion-toast.js +1 -1
  28. package/components/ion-toggle.js +1 -1
  29. package/components/ion-toolbar.js +1 -1
  30. package/components/p-B36-MWK0.js +4 -0
  31. package/components/p-BDPU2685.js +4 -0
  32. package/components/p-BrNzoF1U.js +4 -0
  33. package/components/{p-B0orUoaV.js → p-C-_EGKki.js} +1 -1
  34. package/components/{p-qhBzWoOF.js → p-C2cZvGcF.js} +1 -1
  35. package/components/p-CEUppJkx.js +4 -0
  36. package/components/p-CSexRbnt.js +4 -0
  37. package/components/{p-ZRp3l6Dk.js → p-CoarhFWH.js} +1 -1
  38. package/components/p-DNdBtsfu.js +4 -0
  39. package/components/p-Njik5v4C.js +4 -0
  40. package/dist/cjs/index.cjs.js +1 -1
  41. package/dist/cjs/ion-action-sheet.cjs.entry.js +34 -25
  42. package/dist/cjs/ion-alert.cjs.entry.js +51 -44
  43. package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
  44. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-datetime_3.cjs.entry.js +28 -4
  46. package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-loading.cjs.entry.js +29 -4
  48. package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
  49. package/dist/cjs/ion-modal.cjs.entry.js +176 -79
  50. package/dist/cjs/ion-popover.cjs.entry.js +90 -4
  51. package/dist/cjs/ion-select-modal.cjs.entry.js +27 -60
  52. package/dist/cjs/ion-select_3.cjs.entry.js +48 -191
  53. package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
  54. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  56. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  57. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  58. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  59. package/dist/cjs/ion-toast.cjs.entry.js +32 -4
  60. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  61. package/dist/cjs/ionic.cjs.js +1 -1
  62. package/dist/cjs/loader.cjs.js +1 -1
  63. package/dist/cjs/{overlays-Dhoy6v_5.js → overlays-BbhewSIQ.js} +4 -4
  64. package/dist/collection/components/action-sheet/action-sheet.ios.css +0 -84
  65. package/dist/collection/components/action-sheet/action-sheet.js +8 -22
  66. package/dist/collection/components/action-sheet/action-sheet.md.css +0 -84
  67. package/dist/collection/components/action-sheet/animations/ionic.enter.js +27 -0
  68. package/dist/collection/components/action-sheet/animations/ionic.leave.js +21 -0
  69. package/dist/collection/components/alert/alert.ios.css +0 -83
  70. package/dist/collection/components/alert/alert.js +24 -41
  71. package/dist/collection/components/alert/alert.md.css +0 -83
  72. package/dist/collection/components/alert/animations/ionic.enter.js +28 -0
  73. package/dist/collection/components/alert/animations/ionic.leave.js +19 -0
  74. package/dist/collection/components/loading/animations/ionic.enter.js +28 -0
  75. package/dist/collection/components/loading/animations/ionic.leave.js +22 -0
  76. package/dist/collection/components/loading/loading.js +4 -3
  77. package/dist/collection/components/modal/animations/ionic.enter.js +40 -0
  78. package/dist/collection/components/modal/animations/ionic.leave.js +28 -0
  79. package/dist/collection/components/modal/gestures/sheet.js +71 -9
  80. package/dist/collection/components/modal/modal.ionic.css +1 -1
  81. package/dist/collection/components/modal/modal.js +6 -5
  82. package/dist/collection/components/picker-legacy/animations/ionic.enter.js +27 -0
  83. package/dist/collection/components/picker-legacy/animations/ionic.leave.js +23 -0
  84. package/dist/collection/components/picker-legacy/picker.js +4 -3
  85. package/dist/collection/components/popover/animations/ionic.enter.js +91 -0
  86. package/dist/collection/components/popover/animations/ionic.leave.js +29 -0
  87. package/dist/collection/components/popover/popover.js +4 -3
  88. package/dist/collection/components/select/select.ionic.css +0 -31
  89. package/dist/collection/components/select/select.ios.css +0 -31
  90. package/dist/collection/components/select/select.js +14 -125
  91. package/dist/collection/components/select/select.md.css +0 -31
  92. package/dist/collection/components/select-modal/select-modal.ionic.css +0 -24
  93. package/dist/collection/components/select-modal/select-modal.ios.css +0 -77
  94. package/dist/collection/components/select-modal/select-modal.js +23 -56
  95. package/dist/collection/components/select-modal/select-modal.md.css +1 -80
  96. package/dist/collection/components/select-option/select-option.js +2 -21
  97. package/dist/collection/components/select-popover/select-popover.ios.css +0 -77
  98. package/dist/collection/components/select-popover/select-popover.js +26 -59
  99. package/dist/collection/components/select-popover/select-popover.md.css +0 -77
  100. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  101. package/dist/collection/components/spinner/spinner.js +1 -1
  102. package/dist/collection/components/split-pane/split-pane.js +2 -2
  103. package/dist/collection/components/tab/tab.js +2 -2
  104. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  105. package/dist/collection/components/tab-button/tab-button.js +2 -2
  106. package/dist/collection/components/tabs/tabs.js +1 -1
  107. package/dist/collection/components/text/text.js +2 -2
  108. package/dist/collection/components/textarea/textarea.js +3 -3
  109. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  110. package/dist/collection/components/title/title.js +2 -2
  111. package/dist/collection/components/toast/animations/ionic.enter.js +33 -0
  112. package/dist/collection/components/toast/animations/ionic.leave.js +16 -0
  113. package/dist/collection/components/toast/toast.js +4 -3
  114. package/dist/collection/components/toggle/toggle.js +3 -3
  115. package/dist/collection/components/toolbar/toolbar.js +2 -2
  116. package/dist/collection/utils/overlays.js +5 -5
  117. package/dist/docs.json +1 -135
  118. package/dist/esm/index.js +1 -1
  119. package/dist/esm/ion-action-sheet.entry.js +34 -25
  120. package/dist/esm/ion-alert.entry.js +51 -44
  121. package/dist/esm/ion-app_8.entry.js +4 -4
  122. package/dist/esm/ion-avatar_3.entry.js +2 -2
  123. package/dist/esm/ion-datetime_3.entry.js +28 -4
  124. package/dist/esm/ion-item_8.entry.js +2 -2
  125. package/dist/esm/ion-loading.entry.js +29 -4
  126. package/dist/esm/ion-menu_3.entry.js +1 -1
  127. package/dist/esm/ion-modal.entry.js +177 -80
  128. package/dist/esm/ion-popover.entry.js +90 -4
  129. package/dist/esm/ion-select-modal.entry.js +27 -60
  130. package/dist/esm/ion-select_3.entry.js +49 -192
  131. package/dist/esm/ion-spinner.entry.js +1 -1
  132. package/dist/esm/ion-split-pane.entry.js +2 -2
  133. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  134. package/dist/esm/ion-tab_2.entry.js +3 -3
  135. package/dist/esm/ion-text.entry.js +2 -2
  136. package/dist/esm/ion-textarea.entry.js +3 -3
  137. package/dist/esm/ion-toast.entry.js +32 -4
  138. package/dist/esm/ion-toggle.entry.js +3 -3
  139. package/dist/esm/ionic.js +1 -1
  140. package/dist/esm/loader.js +1 -1
  141. package/dist/esm/{overlays-CvFHfO3y.js → overlays-VA-4NWjf.js} +5 -5
  142. package/dist/html.html-data.json +0 -4
  143. package/dist/ionic/index.esm.js +1 -1
  144. package/dist/ionic/ionic.esm.js +1 -1
  145. package/dist/ionic/p-07b129d5.entry.js +4 -0
  146. package/dist/ionic/p-0cb50208.entry.js +4 -0
  147. package/dist/ionic/{p-db4f4eaf.entry.js → p-1efe83c8.entry.js} +1 -1
  148. package/dist/ionic/{p-d2fe6791.entry.js → p-2193e875.entry.js} +1 -1
  149. package/dist/ionic/{p-69033ad6.entry.js → p-2bf931ae.entry.js} +1 -1
  150. package/dist/ionic/{p-26595044.entry.js → p-3bf01c2c.entry.js} +1 -1
  151. package/dist/ionic/p-3d4c8528.entry.js +4 -0
  152. package/dist/ionic/{p-9e71982e.entry.js → p-49799a34.entry.js} +1 -1
  153. package/dist/ionic/p-64341e32.entry.js +4 -0
  154. package/dist/ionic/p-6992d9d6.entry.js +4 -0
  155. package/dist/ionic/{p-aa8c1e64.entry.js → p-6c8c37c2.entry.js} +1 -1
  156. package/dist/ionic/{p-a94016be.entry.js → p-91e242e4.entry.js} +1 -1
  157. package/dist/ionic/{p-96ec9a10.entry.js → p-9b9b1450.entry.js} +1 -1
  158. package/dist/ionic/p-9dd4276b.entry.js +4 -0
  159. package/dist/ionic/p-BExfzy0B.js +4 -0
  160. package/dist/ionic/p-a3d794ba.entry.js +4 -0
  161. package/dist/ionic/p-ba9f8cbb.entry.js +4 -0
  162. package/dist/ionic/{p-2095969c.entry.js → p-bae3ebe5.entry.js} +1 -1
  163. package/dist/ionic/{p-a1c8ba8c.entry.js → p-bc5713f7.entry.js} +1 -1
  164. package/dist/ionic/{p-71f28573.entry.js → p-cdfbe4cc.entry.js} +1 -1
  165. package/dist/ionic/p-fa701753.entry.js +4 -0
  166. package/dist/types/components/action-sheet/animations/ionic.enter.d.ts +5 -0
  167. package/dist/types/components/action-sheet/animations/ionic.leave.d.ts +5 -0
  168. package/dist/types/components/alert/animations/ionic.enter.d.ts +5 -0
  169. package/dist/types/components/alert/animations/ionic.leave.d.ts +5 -0
  170. package/dist/types/components/loading/animations/ionic.enter.d.ts +5 -0
  171. package/dist/types/components/loading/animations/ionic.leave.d.ts +5 -0
  172. package/dist/types/components/modal/animations/ionic.enter.d.ts +6 -0
  173. package/dist/types/components/modal/animations/ionic.leave.d.ts +6 -0
  174. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  175. package/dist/types/components/picker-legacy/animations/ionic.enter.d.ts +5 -0
  176. package/dist/types/components/picker-legacy/animations/ionic.leave.d.ts +5 -0
  177. package/dist/types/components/popover/animations/ionic.enter.d.ts +5 -0
  178. package/dist/types/components/popover/animations/ionic.leave.d.ts +5 -0
  179. package/dist/types/components/select/select-interface.d.ts +0 -21
  180. package/dist/types/components/select/select.d.ts +0 -7
  181. package/dist/types/components/select-option/select-option.d.ts +0 -4
  182. package/dist/types/components/toast/animations/ionic.enter.d.ts +6 -0
  183. package/dist/types/components/toast/animations/ionic.leave.d.ts +5 -0
  184. package/dist/types/components.d.ts +0 -9
  185. package/dist/types/utils/overlays.d.ts +1 -1
  186. package/hydrate/index.js +534 -489
  187. package/hydrate/index.mjs +534 -489
  188. package/package.json +1 -1
  189. package/components/p-B6czg-mf.js +0 -4
  190. package/components/p-BObmvbuR.js +0 -4
  191. package/components/p-C8Dne7pI.js +0 -4
  192. package/components/p-Cm7hjN9B.js +0 -4
  193. package/components/p-DQY5lHUa.js +0 -4
  194. package/components/p-D_uMZULz.js +0 -4
  195. package/components/p-GytrfCp8.js +0 -4
  196. package/components/p-ZeIAjDcZ.js +0 -4
  197. package/dist/cjs/select-option-render-qQf4xz8P.js +0 -67
  198. package/dist/collection/components/action-sheet/action-sheet.ionic.css +0 -834
  199. package/dist/collection/components/alert/alert.ionic.css +0 -1165
  200. package/dist/collection/components/select-popover/select-popover.ionic.css +0 -489
  201. package/dist/collection/utils/select-option-render.js +0 -62
  202. package/dist/esm/select-option-render-BQUT9Aqa.js +0 -65
  203. package/dist/ionic/p-003b40fc.entry.js +0 -4
  204. package/dist/ionic/p-35aa95dc.entry.js +0 -4
  205. package/dist/ionic/p-37f895a8.entry.js +0 -4
  206. package/dist/ionic/p-3884bfa4.entry.js +0 -4
  207. package/dist/ionic/p-38897781.entry.js +0 -4
  208. package/dist/ionic/p-575061c0.entry.js +0 -4
  209. package/dist/ionic/p-6bffc700.entry.js +0 -4
  210. package/dist/ionic/p-BYtS2rae.js +0 -4
  211. package/dist/ionic/p-Dr3N4o63.js +0 -4
  212. package/dist/ionic/p-c3335fe0.entry.js +0 -4
  213. package/dist/ionic/p-ef0c281a.entry.js +0 -4
  214. package/dist/types/utils/select-option-render.d.ts +0 -26
@@ -1,489 +0,0 @@
1
- /**
2
- * A heuristic that applies CSS to tablet
3
- * viewports.
4
- *
5
- * Usage:
6
- * @include tablet-viewport() {
7
- * :host {
8
- * background-color: green;
9
- * }
10
- * }
11
- */
12
- /**
13
- * A heuristic that applies CSS to mobile
14
- * viewports (i.e. phones, not tablets).
15
- *
16
- * Usage:
17
- * @include mobile-viewport() {
18
- * :host {
19
- * background-color: blue;
20
- * }
21
- * }
22
- */
23
- /**
24
- * Convert a pixels given value into rem
25
- *
26
- * @param pixels - Value in pixels to be converted (i.e. px)
27
- * @param context (optional) - Baseline value
28
- */
29
- /**
30
- * Convert a font size to a dynamic font size.
31
- * Fonts that participate in Dynamic Type should use
32
- * dynamic font sizes.
33
- * @param size - The initial font size including the unit (i.e. px or pt)
34
- * @param unit (optional) - The unit to convert to. Use this if you want to
35
- * convert to a unit other than $baselineUnit.
36
- */
37
- /**
38
- * Convert a font size to a dynamic font size but impose
39
- * a maximum font size.
40
- * @param size - The initial font size including the unit (i.e. px or pt)
41
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
42
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
43
- * convert to a unit other than $baselineUnit.
44
- */
45
- /**
46
- * Convert a font size to a dynamic font size but impose
47
- * a minimum font size.
48
- * @param size - The initial font size including the unit (i.e. px or pt)
49
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
50
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
51
- * convert to a unit other than $baselineUnit.
52
- */
53
- /**
54
- * Convert a font size to a dynamic font size but impose
55
- * maximum and minimum font sizes.
56
- * @param size - The initial font size including the unit (i.e. px or pt)
57
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
58
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
59
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
60
- * convert to a unit other than $baselineUnit.
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
- /**
102
- * A heuristic that applies CSS to tablet
103
- * viewports.
104
- *
105
- * Usage:
106
- * @include tablet-viewport() {
107
- * :host {
108
- * background-color: green;
109
- * }
110
- * }
111
- */
112
- /**
113
- * A heuristic that applies CSS to mobile
114
- * viewports (i.e. phones, not tablets).
115
- *
116
- * Usage:
117
- * @include mobile-viewport() {
118
- * :host {
119
- * background-color: blue;
120
- * }
121
- * }
122
- */
123
- :host ion-list {
124
- margin-left: 0;
125
- margin-right: 0;
126
- margin-top: 0;
127
- margin-bottom: 0;
128
- }
129
-
130
- ion-list-header,
131
- ion-label {
132
- margin-left: 0;
133
- margin-right: 0;
134
- margin-top: 0;
135
- margin-bottom: 0;
136
- }
137
-
138
- /**
139
- * The main content inside of a popover has overflow: hidden
140
- * so that a descendant ion-content can be scrolled.
141
- * However, select-popover does not use ion-content so we need
142
- * to explicitly make this container scrollable.
143
- */
144
- :host {
145
- overflow-y: auto;
146
- }
147
-
148
- .select-option-label {
149
- display: flex;
150
- align-items: center;
151
- }
152
-
153
- .select-option-description {
154
- display: block;
155
- }
156
-
157
- /**
158
- * A heuristic that applies CSS to tablet
159
- * viewports.
160
- *
161
- * Usage:
162
- * @include tablet-viewport() {
163
- * :host {
164
- * background-color: green;
165
- * }
166
- * }
167
- */
168
- /**
169
- * A heuristic that applies CSS to mobile
170
- * viewports (i.e. phones, not tablets).
171
- *
172
- * Usage:
173
- * @include mobile-viewport() {
174
- * :host {
175
- * background-color: blue;
176
- * }
177
- * }
178
- */
179
- /**
180
- * Convert a font size to a dynamic font size.
181
- * Fonts that participate in Dynamic Type should use
182
- * dynamic font sizes.
183
- * @param size - The initial font size including the unit (i.e. px or pt)
184
- * @param unit (optional) - The unit to convert to. Use this if you want to
185
- * convert to a unit other than $baselineUnit.
186
- */
187
- /**
188
- * Convert a font size to a dynamic font size but impose
189
- * a maximum font size.
190
- * @param size - The initial font size including the unit (i.e. px or pt)
191
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
192
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
193
- * convert to a unit other than $baselineUnit.
194
- */
195
- /**
196
- * Convert a font size to a dynamic font size but impose
197
- * a minimum font size.
198
- * @param size - The initial font size including the unit (i.e. px or pt)
199
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
200
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
201
- * convert to a unit other than $baselineUnit.
202
- */
203
- /**
204
- * Convert a font size to a dynamic font size but impose
205
- * maximum and minimum font sizes.
206
- * @param size - The initial font size including the unit (i.e. px or pt)
207
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
208
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
209
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
210
- * convert to a unit other than $baselineUnit.
211
- */
212
- /**
213
- * Convert a pixels given value into rem
214
- *
215
- * @param pixels - Value in pixels to be converted (i.e. px)
216
- * @param context (optional) - Baseline value
217
- */
218
- /**
219
- * Convert a font size to a dynamic font size.
220
- * Fonts that participate in Dynamic Type should use
221
- * dynamic font sizes.
222
- * @param size - The initial font size including the unit (i.e. px or pt)
223
- * @param unit (optional) - The unit to convert to. Use this if you want to
224
- * convert to a unit other than $baselineUnit.
225
- */
226
- /**
227
- * Convert a font size to a dynamic font size but impose
228
- * a maximum font size.
229
- * @param size - The initial font size including the unit (i.e. px or pt)
230
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
231
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
232
- * convert to a unit other than $baselineUnit.
233
- */
234
- /**
235
- * Convert a font size to a dynamic font size but impose
236
- * a minimum font size.
237
- * @param size - The initial font size including the unit (i.e. px or pt)
238
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
239
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
240
- * convert to a unit other than $baselineUnit.
241
- */
242
- /**
243
- * Convert a font size to a dynamic font size but impose
244
- * maximum and minimum font sizes.
245
- * @param size - The initial font size including the unit (i.e. px or pt)
246
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
247
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
248
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
249
- * convert to a unit other than $baselineUnit.
250
- */
251
- /**
252
- * A heuristic that applies CSS to tablet
253
- * viewports.
254
- *
255
- * Usage:
256
- * @include tablet-viewport() {
257
- * :host {
258
- * background-color: green;
259
- * }
260
- * }
261
- */
262
- /**
263
- * A heuristic that applies CSS to mobile
264
- * viewports (i.e. phones, not tablets).
265
- *
266
- * Usage:
267
- * @include mobile-viewport() {
268
- * :host {
269
- * background-color: blue;
270
- * }
271
- * }
272
- */
273
- :host ion-list {
274
- margin-left: 0;
275
- margin-right: 0;
276
- margin-top: 0;
277
- margin-bottom: 0;
278
- }
279
-
280
- ion-list-header,
281
- ion-label {
282
- margin-left: 0;
283
- margin-right: 0;
284
- margin-top: 0;
285
- margin-bottom: 0;
286
- }
287
-
288
- /**
289
- * The main content inside of a popover has overflow: hidden
290
- * so that a descendant ion-content can be scrolled.
291
- * However, select-popover does not use ion-content so we need
292
- * to explicitly make this container scrollable.
293
- */
294
- :host {
295
- overflow-y: auto;
296
- }
297
-
298
- .select-option-label {
299
- display: flex;
300
- align-items: center;
301
- }
302
-
303
- .select-option-description {
304
- display: block;
305
- }
306
-
307
- .select-option-label {
308
- gap: 12px;
309
- }
310
-
311
- .select-option-description {
312
- padding-left: 0;
313
- padding-right: 0;
314
- padding-top: 5px;
315
- padding-bottom: 0;
316
- color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
317
- font-size: 0.75rem;
318
- }
319
-
320
- /**
321
- * Convert a pixels given value into rem
322
- *
323
- * @param pixels - Value in pixels to be converted (i.e. px)
324
- * @param context (optional) - Baseline value
325
- */
326
- /**
327
- * Convert a font size to a dynamic font size.
328
- * Fonts that participate in Dynamic Type should use
329
- * dynamic font sizes.
330
- * @param size - The initial font size including the unit (i.e. px or pt)
331
- * @param unit (optional) - The unit to convert to. Use this if you want to
332
- * convert to a unit other than $baselineUnit.
333
- */
334
- /**
335
- * Convert a font size to a dynamic font size but impose
336
- * a maximum font size.
337
- * @param size - The initial font size including the unit (i.e. px or pt)
338
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
339
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
340
- * convert to a unit other than $baselineUnit.
341
- */
342
- /**
343
- * Convert a font size to a dynamic font size but impose
344
- * a minimum font size.
345
- * @param size - The initial font size including the unit (i.e. px or pt)
346
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
347
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
348
- * convert to a unit other than $baselineUnit.
349
- */
350
- /**
351
- * Convert a font size to a dynamic font size but impose
352
- * maximum and minimum font sizes.
353
- * @param size - The initial font size including the unit (i.e. px or pt)
354
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
355
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
356
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
357
- * convert to a unit other than $baselineUnit.
358
- */
359
- /**
360
- * A heuristic that applies CSS to tablet
361
- * viewports.
362
- *
363
- * Usage:
364
- * @include tablet-viewport() {
365
- * :host {
366
- * background-color: green;
367
- * }
368
- * }
369
- */
370
- /**
371
- * A heuristic that applies CSS to mobile
372
- * viewports (i.e. phones, not tablets).
373
- *
374
- * Usage:
375
- * @include mobile-viewport() {
376
- * :host {
377
- * background-color: blue;
378
- * }
379
- * }
380
- */
381
- /**
382
- * Convert a pixels given value into rem
383
- *
384
- * @param pixels - Value in pixels to be converted (i.e. px)
385
- * @param context (optional) - Baseline value
386
- */
387
- /**
388
- * Convert a font size to a dynamic font size.
389
- * Fonts that participate in Dynamic Type should use
390
- * dynamic font sizes.
391
- * @param size - The initial font size including the unit (i.e. px or pt)
392
- * @param unit (optional) - The unit to convert to. Use this if you want to
393
- * convert to a unit other than $baselineUnit.
394
- */
395
- /**
396
- * Convert a font size to a dynamic font size but impose
397
- * a maximum font size.
398
- * @param size - The initial font size including the unit (i.e. px or pt)
399
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
400
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
401
- * convert to a unit other than $baselineUnit.
402
- */
403
- /**
404
- * Convert a font size to a dynamic font size but impose
405
- * a minimum font size.
406
- * @param size - The initial font size including the unit (i.e. px or pt)
407
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
408
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
409
- * convert to a unit other than $baselineUnit.
410
- */
411
- /**
412
- * Convert a font size to a dynamic font size but impose
413
- * maximum and minimum font sizes.
414
- * @param size - The initial font size including the unit (i.e. px or pt)
415
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
416
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
417
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
418
- * convert to a unit other than $baselineUnit.
419
- */
420
- /**
421
- * A heuristic that applies CSS to tablet
422
- * viewports.
423
- *
424
- * Usage:
425
- * @include tablet-viewport() {
426
- * :host {
427
- * background-color: green;
428
- * }
429
- * }
430
- */
431
- /**
432
- * A heuristic that applies CSS to mobile
433
- * viewports (i.e. phones, not tablets).
434
- *
435
- * Usage:
436
- * @include mobile-viewport() {
437
- * :host {
438
- * background-color: blue;
439
- * }
440
- * }
441
- */
442
- ion-list ion-radio::part(container) {
443
- display: none;
444
- }
445
-
446
- ion-list ion-radio::part(label) {
447
- margin-left: 0;
448
- margin-right: 0;
449
- margin-top: 0;
450
- margin-bottom: 0;
451
- }
452
-
453
- ion-item {
454
- --inner-border-width: 0;
455
- }
456
-
457
- .item-radio-checked {
458
- --background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);
459
- --background-focused: var(--ion-color-primary, #0054e9);
460
- --background-focused-opacity: 0.2;
461
- --background-hover: var(--ion-color-primary, #0054e9);
462
- --background-hover-opacity: 0.12;
463
- }
464
-
465
- .item-checkbox-checked {
466
- --background-activated: var(--ion-item-color, var(--ion-text-color, #000));
467
- --background-focused: var(--ion-item-color, var(--ion-text-color, #000));
468
- --background-hover: var(--ion-item-color, var(--ion-text-color, #000));
469
- --color: var(--ion-color-primary, #0054e9);
470
- }
471
-
472
- .select-option-label {
473
- gap: var(--token-space-300, var(--token-scale-300, 12px));
474
- }
475
-
476
- .select-option-description {
477
- font-size: var(--token-font-size-350, 0.875rem);
478
- font-weight: var(--token-font-weight-regular, 400);
479
- letter-spacing: var(--token-font-letter-spacing-0, 0%);
480
- line-height: var(--token-font-line-height-600, var(--token-scale-600, 24px));
481
- text-decoration: none;
482
- text-transform: none;
483
- padding-left: 0;
484
- padding-right: 0;
485
- padding-top: 0;
486
- padding-bottom: 0;
487
- color: var(--token-text-subtle, var(--token-primitives-neutral-1000, #3b3b3b));
488
- font-size: var(--token-font-size-350, 0.875rem);
489
- }
@@ -1,62 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import { h } from "@stencil/core";
5
- /**
6
- * Cache that maps rendered span elements to the source HTMLElement
7
- * they were cloned from. This prevents flickering when a user
8
- * selects an option that has rich content, as the content will only be
9
- * re-rendered if the source HTMLElement changes.
10
- */
11
- const contentCache = new WeakMap();
12
- /**
13
- * Renders cloned DOM content into a span element via a ref callback.
14
- * The content is only cloned when the source element changes,
15
- * preventing flicker caused by destroying and recreating web
16
- * components (e.g., ion-avatar) on every re-render cycle.
17
- *
18
- * Uses span elements because this content may render within buttons,
19
- * depending on the select interface. Buttons can only have phrasing
20
- * content to prevent accessibility issues.
21
- *
22
- * @param id - Unique identifier for generating stable virtual DOM keys.
23
- * @param content - The HTMLElement container whose child nodes will be cloned.
24
- * @param className - CSS class applied to the wrapper span.
25
- */
26
- const renderClonedContent = (id, content, className) => {
27
- return (h("span", { class: className, key: `${className}-${id}`, ref: (el) => {
28
- if (el) {
29
- const cached = contentCache.get(el);
30
- // Skip if this element already has clones from the same source
31
- if (cached === content) {
32
- return;
33
- }
34
- // Clear previous content and clone new nodes
35
- el.innerHTML = '';
36
- Array.from(content.childNodes).forEach((n) => el.appendChild(n.cloneNode(true)));
37
- contentCache.set(el, content);
38
- }
39
- } }));
40
- };
41
- /**
42
- * Renders the label content for a select option within an overlay
43
- * interface based on the presence of rich content.
44
- *
45
- * Uses span elements because this content may render within buttons,
46
- * depending on the select interface. Buttons can only have phrasing
47
- * content to prevent accessibility issues.
48
- *
49
- * @param option - The content option data containing label, slots,
50
- * and description.
51
- * @param className - The base CSS class for the label element.
52
- */
53
- export const renderOptionLabel = (option, className) => {
54
- const { id, label, startContent, endContent, description } = option;
55
- const hasRichContent = !!startContent || !!endContent || !!description;
56
- // Render the main label
57
- const labelEl = typeof label === 'string' || !label ? (h("span", { key: `${className}-label-${id}` }, label)) : (renderClonedContent(id, label, `${className}-text`));
58
- if (!hasRichContent) {
59
- return (h("span", { class: className, key: `${className}-${id}` }, labelEl));
60
- }
61
- return (h("span", { class: className, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start'), h("span", { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (h("span", { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end')));
62
- };
@@ -1,65 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import { h } from './index-Omi_TcwW.js';
5
-
6
- /**
7
- * Cache that maps rendered span elements to the source HTMLElement
8
- * they were cloned from. This prevents flickering when a user
9
- * selects an option that has rich content, as the content will only be
10
- * re-rendered if the source HTMLElement changes.
11
- */
12
- const contentCache = new WeakMap();
13
- /**
14
- * Renders cloned DOM content into a span element via a ref callback.
15
- * The content is only cloned when the source element changes,
16
- * preventing flicker caused by destroying and recreating web
17
- * components (e.g., ion-avatar) on every re-render cycle.
18
- *
19
- * Uses span elements because this content may render within buttons,
20
- * depending on the select interface. Buttons can only have phrasing
21
- * content to prevent accessibility issues.
22
- *
23
- * @param id - Unique identifier for generating stable virtual DOM keys.
24
- * @param content - The HTMLElement container whose child nodes will be cloned.
25
- * @param className - CSS class applied to the wrapper span.
26
- */
27
- const renderClonedContent = (id, content, className) => {
28
- return (h("span", { class: className, key: `${className}-${id}`, ref: (el) => {
29
- if (el) {
30
- const cached = contentCache.get(el);
31
- // Skip if this element already has clones from the same source
32
- if (cached === content) {
33
- return;
34
- }
35
- // Clear previous content and clone new nodes
36
- el.innerHTML = '';
37
- Array.from(content.childNodes).forEach((n) => el.appendChild(n.cloneNode(true)));
38
- contentCache.set(el, content);
39
- }
40
- } }));
41
- };
42
- /**
43
- * Renders the label content for a select option within an overlay
44
- * interface based on the presence of rich content.
45
- *
46
- * Uses span elements because this content may render within buttons,
47
- * depending on the select interface. Buttons can only have phrasing
48
- * content to prevent accessibility issues.
49
- *
50
- * @param option - The content option data containing label, slots,
51
- * and description.
52
- * @param className - The base CSS class for the label element.
53
- */
54
- const renderOptionLabel = (option, className) => {
55
- const { id, label, startContent, endContent, description } = option;
56
- const hasRichContent = !!startContent || !!endContent || !!description;
57
- // Render the main label
58
- const labelEl = typeof label === 'string' || !label ? (h("span", { key: `${className}-label-${id}` }, label)) : (renderClonedContent(id, label, `${className}-text`));
59
- if (!hasRichContent) {
60
- return (h("span", { class: className, key: `${className}-${id}` }, labelEl));
61
- }
62
- return (h("span", { class: className, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start'), h("span", { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (h("span", { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end')));
63
- };
64
-
65
- export { renderOptionLabel as r };