@ionic/core 8.8.4-dev.11777335998.1378bc9b → 8.8.4-dev.11777393099.1a6ea277
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-avatar.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/{p-DlcGfxmY.js → p-BAJR2rtd.js} +1 -1
- package/components/p-CnwZE7CW.js +4 -0
- package/{dist/ionic/p-9ffb291e.entry.js → components/p-DAeMHNER.js} +1 -1
- package/components/{p-Bnc6bYhk.js → p-DbmwH3zj.js} +1 -1
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-chip.cjs.entry.js +1 -1
- package/dist/cjs/ion-item-option_3.cjs.entry.js +219 -14
- package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
- package/dist/cjs/ion-range.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +9 -10
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-toggle.cjs.entry.js +8 -20
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/avatar/avatar.ionic.css +0 -24
- package/dist/collection/components/badge/badge.ionic.css +0 -12
- package/dist/collection/components/button/button.ionic.css +0 -13
- package/dist/collection/components/chip/chip.ionic.css +2 -4
- package/dist/collection/components/item/item.ionic.css +1 -2
- package/dist/collection/components/item-option/item-option.ionic.css +0 -12
- package/dist/collection/components/item-sliding/item-sliding.js +214 -13
- package/dist/collection/components/range/range.ionic.css +1 -2
- package/dist/collection/components/segment-button/segment-button.ionic.css +0 -4
- package/dist/collection/components/select/select.ionic.css +0 -2
- package/dist/collection/components/select/select.js +8 -9
- package/dist/collection/components/tab-button/tab-button.ionic.css +0 -4
- package/dist/collection/components/toggle/toggle.ionic.css +0 -2
- package/dist/collection/components/toggle/toggle.js +5 -17
- package/dist/docs.json +13 -5
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-chip.entry.js +1 -1
- package/dist/esm/ion-item-option_3.entry.js +219 -14
- package/dist/esm/ion-item_8.entry.js +1 -1
- package/dist/esm/ion-range.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +9 -10
- package/dist/esm/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm/ion-toggle.entry.js +6 -18
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-07d3388f.entry.js +4 -0
- package/dist/ionic/p-092e92b0.entry.js +4 -0
- package/dist/ionic/p-139d02eb.entry.js +4 -0
- package/dist/ionic/{p-7d741511.entry.js → p-1855fcb6.entry.js} +1 -1
- package/dist/ionic/{p-e17b1f5c.entry.js → p-228b6a9c.entry.js} +1 -1
- package/dist/ionic/p-4610e447.entry.js +4 -0
- package/dist/ionic/p-7959826e.entry.js +4 -0
- package/dist/ionic/p-bc5713f7.entry.js +4 -0
- package/dist/ionic/p-d954cd19.entry.js +4 -0
- package/dist/ionic/p-f061fcb7.entry.js +4 -0
- package/dist/types/components/item-sliding/item-sliding.d.ts +17 -2
- package/hydrate/index.js +243 -20681
- package/hydrate/index.mjs +243 -20681
- package/package.json +2 -4
- package/components/p-BniBSDph.js +0 -4
- package/components/p-C9Vtk1ky.js +0 -4
- package/components/p-CPltryAp.js +0 -4
- package/css/fonts/Phosphor.woff +0 -0
- package/css/fonts/Phosphor.woff2 +0 -0
- package/dist/cjs/icon-DIgTx6sk.js +0 -20640
- package/dist/collection/utils/icon.js +0 -45
- package/dist/esm/icon-CUSZuv-W.js +0 -20638
- package/dist/ionic/p-0c84feb8.entry.js +0 -4
- package/dist/ionic/p-29791358.entry.js +0 -4
- package/dist/ionic/p-52c1797d.entry.js +0 -4
- package/dist/ionic/p-74437abe.entry.js +0 -4
- package/dist/ionic/p-79646994.entry.js +0 -4
- package/dist/ionic/p-DcGyUwGo.js +0 -4
- package/dist/ionic/p-b779bfb0.entry.js +0 -4
- package/dist/ionic/p-e6202363.entry.js +0 -4
- package/dist/types/utils/icon.d.ts +0 -26
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { icons } from "@phosphor-icons/core";
|
|
5
|
-
import { h } from "@stencil/core";
|
|
6
|
-
/**
|
|
7
|
-
* Returns the Unicode glyph character for a Phosphor icon class name.
|
|
8
|
-
* e.g. 'ph-caret-left' → the character at codepoint 0xe138
|
|
9
|
-
*
|
|
10
|
-
* @phosphor-icons/core exposes a stable `codepoint` field (since v2.1.0).
|
|
11
|
-
* Using String.fromCodePoint avoids CSS class selectors entirely, which means
|
|
12
|
-
* glyphs render correctly inside shadow DOM without needing to pierce it.
|
|
13
|
-
*/
|
|
14
|
-
const getPhosphorChar = (ionicIconClass) => {
|
|
15
|
-
const name = ionicIconClass.replace(/^ph-/, '');
|
|
16
|
-
const entry = icons.find((i) => i.name === name);
|
|
17
|
-
return entry ? String.fromCodePoint(entry.codepoint) : '';
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Renders a Phosphor icon font glyph for the ionic theme, or delegates to
|
|
21
|
-
* ion-icon (SVG) for ios/md themes.
|
|
22
|
-
*
|
|
23
|
-
* Passing `null` for `ionicIconClass` forces SVG for that specific icon regardless
|
|
24
|
-
* of the theme — use this when the caller has supplied a custom SVG that must not
|
|
25
|
-
* be replaced by a glyph.
|
|
26
|
-
*
|
|
27
|
-
* The ionic theme renders an <i> element with:
|
|
28
|
-
* - font-family: "Phosphor" as an inline style (works inside shadow DOM)
|
|
29
|
-
* - the glyph Unicode character as text content (no ::before CSS needed)
|
|
30
|
-
*
|
|
31
|
-
* Usage:
|
|
32
|
-
* renderIcon(theme, 'ph-caret-left', caretLeftSvg, { part: 'icon', flipRtl: true })
|
|
33
|
-
* renderIcon(theme, null, customSvg, { part: 'icon' }) // always SVG
|
|
34
|
-
*/
|
|
35
|
-
export const renderIcon = (theme,
|
|
36
|
-
/** Phosphor CSS class name e.g. 'ph-caret-left', or null to force SVG. */
|
|
37
|
-
ionicIconClass,
|
|
38
|
-
/** SVG src / ionicons icon object used when theme is not 'ionic'. */
|
|
39
|
-
svgIcon, props = {}) => {
|
|
40
|
-
const { part, class: cls, flipRtl = false, lazy = false } = props;
|
|
41
|
-
if (ionicIconClass !== null && theme === 'ionic') {
|
|
42
|
-
return (h("i", { style: { fontFamily: 'Phosphor', fontStyle: 'normal' }, class: Object.assign(Object.assign({}, (cls || {})), { 'flip-rtl': flipRtl }), part: part, "aria-hidden": "true" }, getPhosphorChar(ionicIconClass)));
|
|
43
|
-
}
|
|
44
|
-
return h("ion-icon", { icon: svgIcon, part: part, class: cls, "aria-hidden": "true", lazy: lazy, "flip-rtl": flipRtl });
|
|
45
|
-
};
|