@ionic/core 8.8.4-dev.11776868066.169e5ee1 → 8.8.4-dev.11777064748.1e6da1cd
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-toggle.js +1 -1
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/dist/cjs/ion-toggle.cjs.entry.js +20648 -5
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/toggle/toggle.js +17 -5
- package/dist/collection/utils/icon.js +45 -0
- package/dist/docs.json +3 -9
- package/dist/esm/ion-toggle.entry.js +20649 -6
- 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-d54a76c6.entry.js +4 -0
- package/dist/types/utils/icon.d.ts +26 -0
- package/hydrate/index.js +20648 -5
- package/hydrate/index.mjs +20648 -5
- package/package.json +2 -1
- package/dist/ionic/p-f061fcb7.entry.js +0 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a Phosphor icon font glyph for the ionic theme, or delegates to
|
|
3
|
+
* ion-icon (SVG) for ios/md themes.
|
|
4
|
+
*
|
|
5
|
+
* Passing `null` for `ionicIconClass` forces SVG for that specific icon regardless
|
|
6
|
+
* of the theme — use this when the caller has supplied a custom SVG that must not
|
|
7
|
+
* be replaced by a glyph.
|
|
8
|
+
*
|
|
9
|
+
* The ionic theme renders an <i> element with:
|
|
10
|
+
* - font-family: "Phosphor" as an inline style (works inside shadow DOM)
|
|
11
|
+
* - the glyph Unicode character as text content (no ::before CSS needed)
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* renderIcon(theme, 'ph-caret-left', caretLeftSvg, { part: 'icon', flipRtl: true })
|
|
15
|
+
* renderIcon(theme, null, customSvg, { part: 'icon' }) // always SVG
|
|
16
|
+
*/
|
|
17
|
+
export declare const renderIcon: (theme: string,
|
|
18
|
+
/** Phosphor CSS class name e.g. 'ph-caret-left', or null to force SVG. */
|
|
19
|
+
ionicIconClass: string | null,
|
|
20
|
+
/** SVG src / ionicons icon object used when theme is not 'ionic'. */
|
|
21
|
+
svgIcon: string, props?: {
|
|
22
|
+
part?: string;
|
|
23
|
+
class?: Record<string, boolean>;
|
|
24
|
+
flipRtl?: boolean;
|
|
25
|
+
lazy?: boolean;
|
|
26
|
+
}) => any;
|