@ionic/core 8.8.4-dev.11776178970.14763043 → 8.8.4-dev.11776184632.103b8351
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.
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/{p-C-_EGKki.js → p-B0orUoaV.js} +1 -1
- package/components/p-BDwab5EM.js +4 -0
- package/components/p-BjV_nNDy.js +4 -0
- package/components/p-C8Dne7pI.js +4 -0
- package/components/p-C9d4LXRu.js +4 -0
- package/components/p-CvoKp7OI.js +4 -0
- package/components/{p-CoarhFWH.js → p-ZRp3l6Dk.js} +1 -1
- package/components/{p-C2cZvGcF.js → p-qhBzWoOF.js} +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +16 -8
- package/dist/cjs/ion-alert.cjs.entry.js +30 -8
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +1 -1
- package/dist/cjs/ion-select-modal.cjs.entry.js +45 -26
- package/dist/cjs/ion-select_3.cjs.entry.js +176 -47
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/select-option-render-qQf4xz8P.js +67 -0
- package/dist/collection/components/action-sheet/action-sheet.ionic.css +834 -0
- package/dist/collection/components/action-sheet/action-sheet.ios.css +84 -0
- package/dist/collection/components/action-sheet/action-sheet.js +14 -6
- package/dist/collection/components/action-sheet/action-sheet.md.css +84 -0
- package/dist/collection/components/alert/alert.ionic.css +1165 -0
- package/dist/collection/components/alert/alert.ios.css +83 -0
- package/dist/collection/components/alert/alert.js +28 -6
- package/dist/collection/components/alert/alert.md.css +83 -0
- package/dist/collection/components/range/range.ionic.css +6 -9
- package/dist/collection/components/select/select.ionic.css +31 -0
- package/dist/collection/components/select/select.ios.css +31 -0
- package/dist/collection/components/select/select.js +125 -14
- package/dist/collection/components/select/select.md.css +31 -0
- package/dist/collection/components/select-modal/select-modal.ionic.css +24 -0
- package/dist/collection/components/select-modal/select-modal.ios.css +77 -0
- package/dist/collection/components/select-modal/select-modal.js +42 -23
- package/dist/collection/components/select-modal/select-modal.md.css +80 -1
- package/dist/collection/components/select-option/select-option.js +21 -2
- package/dist/collection/components/select-popover/select-popover.ionic.css +489 -0
- package/dist/collection/components/select-popover/select-popover.ios.css +77 -0
- package/dist/collection/components/select-popover/select-popover.js +45 -26
- package/dist/collection/components/select-popover/select-popover.md.css +77 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/utils/select-option-render.js +62 -0
- package/dist/docs.json +139 -5
- package/dist/esm/ion-action-sheet.entry.js +16 -8
- package/dist/esm/ion-alert.entry.js +30 -8
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +1 -1
- package/dist/esm/ion-select-modal.entry.js +45 -26
- package/dist/esm/ion-select_3.entry.js +177 -48
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +3 -3
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/select-option-render-BQUT9Aqa.js +65 -0
- package/dist/html.html-data.json +4 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-3bf01c2c.entry.js → p-26595044.entry.js} +1 -1
- package/dist/ionic/p-27edb91a.entry.js +4 -0
- package/dist/ionic/{p-e9d6ce67.entry.js → p-37f895a8.entry.js} +1 -1
- package/dist/ionic/p-38897781.entry.js +4 -0
- package/dist/ionic/p-63e09af5.entry.js +4 -0
- package/dist/ionic/{p-2bf931ae.entry.js → p-69033ad6.entry.js} +1 -1
- package/dist/ionic/p-6e0ce081.entry.js +4 -0
- package/dist/ionic/{p-cdfbe4cc.entry.js → p-71f28573.entry.js} +1 -1
- package/dist/ionic/{p-9b9b1450.entry.js → p-96ec9a10.entry.js} +1 -1
- package/dist/ionic/{p-49799a34.entry.js → p-9e71982e.entry.js} +1 -1
- package/dist/ionic/p-Dr3N4o63.js +4 -0
- package/dist/ionic/{p-bc5713f7.entry.js → p-a1c8ba8c.entry.js} +1 -1
- package/dist/ionic/p-a64ae62e.entry.js +4 -0
- package/dist/ionic/{p-91e242e4.entry.js → p-a94016be.entry.js} +1 -1
- package/dist/ionic/{p-6c8c37c2.entry.js → p-aa8c1e64.entry.js} +1 -1
- package/dist/ionic/{p-2193e875.entry.js → p-d2fe6791.entry.js} +1 -1
- package/dist/ionic/p-d45b911b.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +4 -1
- package/dist/types/components/alert/alert-interface.d.ts +4 -1
- package/dist/types/components/select/select.d.ts +7 -0
- package/dist/types/components/select-modal/select-modal-interface.d.ts +4 -1
- package/dist/types/components/select-option/select-option.d.ts +4 -0
- package/dist/types/components/select-popover/select-popover-interface.d.ts +4 -1
- package/dist/types/components.d.ts +9 -0
- package/dist/types/utils/select-option-render.d.ts +26 -0
- package/hydrate/index.js +349 -116
- package/hydrate/index.mjs +349 -116
- package/package.json +1 -1
- package/components/p-BGHaEUgp.js +0 -4
- package/components/p-BR9Yxas9.js +0 -4
- package/components/p-Ch9P0ikq.js +0 -4
- package/components/p-iwGbwewM.js +0 -4
- package/dist/ionic/p-227744b8.entry.js +0 -4
- package/dist/ionic/p-4b0f5ffd.entry.js +0 -4
- package/dist/ionic/p-64341e32.entry.js +0 -4
- package/dist/ionic/p-6be2b2d3.entry.js +0 -4
- package/dist/ionic/p-9acd3fd3.entry.js +0 -4
- package/dist/ionic/p-a283aa4d.entry.js +0 -4
|
@@ -1,3 +1,58 @@
|
|
|
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 font size to a dynamic font size.
|
|
25
|
+
* Fonts that participate in Dynamic Type should use
|
|
26
|
+
* dynamic font sizes.
|
|
27
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
28
|
+
* @param unit (optional) - The unit to convert 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
|
+
* a maximum font size.
|
|
34
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
35
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
36
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
37
|
+
* convert to a unit other than $baselineUnit.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Convert a font size to a dynamic font size but impose
|
|
41
|
+
* a minimum font size.
|
|
42
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
43
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
44
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
45
|
+
* convert to a unit other than $baselineUnit.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Convert a font size to a dynamic font size but impose
|
|
49
|
+
* maximum and minimum font sizes.
|
|
50
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
51
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
52
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
53
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
54
|
+
* convert to a unit other than $baselineUnit.
|
|
55
|
+
*/
|
|
1
56
|
/**
|
|
2
57
|
* Convert a pixels given value into rem
|
|
3
58
|
*
|
|
@@ -222,6 +277,7 @@
|
|
|
222
277
|
.action-sheet-selected {
|
|
223
278
|
color: var(--button-color-selected);
|
|
224
279
|
}
|
|
280
|
+
|
|
225
281
|
.action-sheet-selected::after {
|
|
226
282
|
background: var(--button-background-selected);
|
|
227
283
|
opacity: var(--button-background-selected-opacity);
|
|
@@ -230,6 +286,7 @@
|
|
|
230
286
|
.action-sheet-button.ion-activated {
|
|
231
287
|
color: var(--button-color-activated);
|
|
232
288
|
}
|
|
289
|
+
|
|
233
290
|
.action-sheet-button.ion-activated::after {
|
|
234
291
|
background: var(--button-background-activated);
|
|
235
292
|
opacity: var(--button-background-activated-opacity);
|
|
@@ -238,6 +295,7 @@
|
|
|
238
295
|
.action-sheet-button.ion-focused {
|
|
239
296
|
color: var(--button-color-focused);
|
|
240
297
|
}
|
|
298
|
+
|
|
241
299
|
.action-sheet-button.ion-focused::after {
|
|
242
300
|
background: var(--button-background-focused);
|
|
243
301
|
opacity: var(--button-background-focused-opacity);
|
|
@@ -252,6 +310,32 @@
|
|
|
252
310
|
opacity: var(--button-background-hover-opacity);
|
|
253
311
|
}
|
|
254
312
|
}
|
|
313
|
+
.action-sheet-button-label {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.select-option-content {
|
|
319
|
+
flex: 1;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.select-option-description {
|
|
323
|
+
display: block;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.action-sheet-button-label {
|
|
327
|
+
gap: 12px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.select-option-description {
|
|
331
|
+
padding-left: 0;
|
|
332
|
+
padding-right: 0;
|
|
333
|
+
padding-top: 5px;
|
|
334
|
+
padding-bottom: 0;
|
|
335
|
+
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
336
|
+
font-size: 0.75rem;
|
|
337
|
+
}
|
|
338
|
+
|
|
255
339
|
/**
|
|
256
340
|
* Convert a pixels given value into rem
|
|
257
341
|
*
|
|
@@ -6,6 +6,7 @@ import { createButtonActiveGesture } from "../../utils/gesture/button-active";
|
|
|
6
6
|
import { raf } from "../../utils/helpers";
|
|
7
7
|
import { createLockController } from "../../utils/lock-controller";
|
|
8
8
|
import { BACKDROP, createDelegateController, createTriggerController, dismiss, eventMethod, isCancel, prepareOverlay, present, safeCall, setOverlayId, } from "../../utils/overlays";
|
|
9
|
+
import { renderOptionLabel } from "../../utils/select-option-render";
|
|
9
10
|
import { getClassMap } from "../../utils/theme";
|
|
10
11
|
import { getIonMode, getIonTheme } from "../../global/ionic-global";
|
|
11
12
|
import { iosEnterAnimation } from "./animations/ios.enter";
|
|
@@ -374,12 +375,19 @@ export class ActionSheet {
|
|
|
374
375
|
if (isRadio) {
|
|
375
376
|
htmlAttrs['aria-checked'] = isActiveRadio ? 'true' : 'false';
|
|
376
377
|
}
|
|
378
|
+
const optionLabelOptions = {
|
|
379
|
+
id: buttonId,
|
|
380
|
+
label: b.text,
|
|
381
|
+
startContent: b.startContent,
|
|
382
|
+
endContent: b.endContent,
|
|
383
|
+
description: b.description,
|
|
384
|
+
};
|
|
377
385
|
return (h("button", Object.assign({}, htmlAttrs, { role: isRadio ? 'radio' : undefined, type: "button", id: buttonId, class: Object.assign(Object.assign({}, buttonClass(b)), { 'action-sheet-selected': isActiveRadio }), onClick: () => {
|
|
378
386
|
if (isRadio) {
|
|
379
387
|
this.selectRadioButton(b);
|
|
380
388
|
}
|
|
381
389
|
this.buttonClick(b);
|
|
382
|
-
}, disabled: b.disabled, tabIndex: tabIndex }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }),
|
|
390
|
+
}, disabled: b.disabled, tabIndex: tabIndex }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), renderOptionLabel(optionLabelOptions, 'action-sheet-button-label')), theme === 'md' && h("ion-ripple-effect", null)));
|
|
383
391
|
});
|
|
384
392
|
}
|
|
385
393
|
render() {
|
|
@@ -389,12 +397,12 @@ export class ActionSheet {
|
|
|
389
397
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
390
398
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
391
399
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
392
|
-
return (h(Host, Object.assign({ key: '
|
|
400
|
+
return (h(Host, Object.assign({ key: '32d662676784385bf348708be6560929ca1599f8', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
393
401
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
394
|
-
}, class: Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '
|
|
402
|
+
}, class: Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '8b84d7292ffcf68138fff9cd0ec6455c91c9cd25', tappable: this.backdropDismiss }), h("div", { key: '2a733b2adef42786bec7ce9c29a29d0935952430', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '1846b99afa26e30b6344e5a860300254e61f3692', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: 'c6a5a986304767935a6de7e01b5ca3feddc2c0d0', class: "action-sheet-container" }, h("div", { key: '467fdb1c8468ca25e733606e0b427ad3888885e3', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined }, header !== undefined && (h("div", { key: 'e06690113e9c4da1089bd3495c819f72d7505574', id: headerID, class: {
|
|
395
403
|
'action-sheet-title': true,
|
|
396
404
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
397
|
-
} }, header, this.subHeader && h("div", { key: '
|
|
405
|
+
} }, header, this.subHeader && h("div", { key: 'b607fe7d470703d7b4f123413cf27487a5bb1bfe', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (h("div", { key: '35c91756085c12ab97239366350b800110381142', class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({ key: '803428a3d1a389b2dc4930cc46884dc2e2b137b0' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { key: '38e86d26fa8fcd32d0ab13640b2701e458854542', class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { key: 'bec1f332fcfa4b906d09dabae6c01bba1ef88460', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), theme === 'md' && h("ion-ripple-effect", { key: 'b7cfbaa5a5e5aab0f2317e7bb019802ac4ed3481' })))))), h("div", { key: 'c2527fc1383b7d9388ffbf6ab56461daf986a52d', tabindex: "0", "aria-hidden": "true" })));
|
|
398
406
|
}
|
|
399
407
|
static get is() { return "ion-action-sheet"; }
|
|
400
408
|
static get encapsulation() { return "scoped"; }
|
|
@@ -402,14 +410,14 @@ export class ActionSheet {
|
|
|
402
410
|
return {
|
|
403
411
|
"ios": ["action-sheet.ios.scss"],
|
|
404
412
|
"md": ["action-sheet.md.scss"],
|
|
405
|
-
"ionic": ["action-sheet.
|
|
413
|
+
"ionic": ["action-sheet.ionic.scss"]
|
|
406
414
|
};
|
|
407
415
|
}
|
|
408
416
|
static get styleUrls() {
|
|
409
417
|
return {
|
|
410
418
|
"ios": ["action-sheet.ios.css"],
|
|
411
419
|
"md": ["action-sheet.md.css"],
|
|
412
|
-
"ionic": ["action-sheet.
|
|
420
|
+
"ionic": ["action-sheet.ionic.css"]
|
|
413
421
|
};
|
|
414
422
|
}
|
|
415
423
|
static get properties() {
|
|
@@ -1,3 +1,58 @@
|
|
|
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 font size to a dynamic font size.
|
|
25
|
+
* Fonts that participate in Dynamic Type should use
|
|
26
|
+
* dynamic font sizes.
|
|
27
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
28
|
+
* @param unit (optional) - The unit to convert 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
|
+
* a maximum font size.
|
|
34
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
35
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
36
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
37
|
+
* convert to a unit other than $baselineUnit.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Convert a font size to a dynamic font size but impose
|
|
41
|
+
* a minimum font size.
|
|
42
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
43
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
44
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
45
|
+
* convert to a unit other than $baselineUnit.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Convert a font size to a dynamic font size but impose
|
|
49
|
+
* maximum and minimum font sizes.
|
|
50
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
51
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
52
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
53
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
54
|
+
* convert to a unit other than $baselineUnit.
|
|
55
|
+
*/
|
|
1
56
|
/**
|
|
2
57
|
* Convert a pixels given value into rem
|
|
3
58
|
*
|
|
@@ -222,6 +277,7 @@
|
|
|
222
277
|
.action-sheet-selected {
|
|
223
278
|
color: var(--button-color-selected);
|
|
224
279
|
}
|
|
280
|
+
|
|
225
281
|
.action-sheet-selected::after {
|
|
226
282
|
background: var(--button-background-selected);
|
|
227
283
|
opacity: var(--button-background-selected-opacity);
|
|
@@ -230,6 +286,7 @@
|
|
|
230
286
|
.action-sheet-button.ion-activated {
|
|
231
287
|
color: var(--button-color-activated);
|
|
232
288
|
}
|
|
289
|
+
|
|
233
290
|
.action-sheet-button.ion-activated::after {
|
|
234
291
|
background: var(--button-background-activated);
|
|
235
292
|
opacity: var(--button-background-activated-opacity);
|
|
@@ -238,6 +295,7 @@
|
|
|
238
295
|
.action-sheet-button.ion-focused {
|
|
239
296
|
color: var(--button-color-focused);
|
|
240
297
|
}
|
|
298
|
+
|
|
241
299
|
.action-sheet-button.ion-focused::after {
|
|
242
300
|
background: var(--button-background-focused);
|
|
243
301
|
opacity: var(--button-background-focused-opacity);
|
|
@@ -252,6 +310,32 @@
|
|
|
252
310
|
opacity: var(--button-background-hover-opacity);
|
|
253
311
|
}
|
|
254
312
|
}
|
|
313
|
+
.action-sheet-button-label {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.select-option-content {
|
|
319
|
+
flex: 1;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.select-option-description {
|
|
323
|
+
display: block;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.action-sheet-button-label {
|
|
327
|
+
gap: 12px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.select-option-description {
|
|
331
|
+
padding-left: 0;
|
|
332
|
+
padding-right: 0;
|
|
333
|
+
padding-top: 5px;
|
|
334
|
+
padding-bottom: 0;
|
|
335
|
+
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
336
|
+
font-size: 0.75rem;
|
|
337
|
+
}
|
|
338
|
+
|
|
255
339
|
/**
|
|
256
340
|
* Convert a pixels given value into rem
|
|
257
341
|
*
|