@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.
Files changed (93) hide show
  1. package/components/ion-avatar.js +1 -1
  2. package/components/ion-badge.js +1 -1
  3. package/components/ion-button.js +1 -1
  4. package/components/ion-chip.js +1 -1
  5. package/components/ion-datetime.js +1 -1
  6. package/components/ion-input-password-toggle.js +1 -1
  7. package/components/ion-item-option.js +1 -1
  8. package/components/ion-item-sliding.js +1 -1
  9. package/components/ion-item.js +1 -1
  10. package/components/ion-range.js +1 -1
  11. package/components/ion-segment-button.js +1 -1
  12. package/components/ion-select-modal.js +1 -1
  13. package/components/ion-select-popover.js +1 -1
  14. package/components/ion-select.js +1 -1
  15. package/components/ion-tab-button.js +1 -1
  16. package/components/ion-toggle.js +1 -1
  17. package/components/{p-DlcGfxmY.js → p-BAJR2rtd.js} +1 -1
  18. package/components/p-CnwZE7CW.js +4 -0
  19. package/{dist/ionic/p-9ffb291e.entry.js → components/p-DAeMHNER.js} +1 -1
  20. package/components/{p-Bnc6bYhk.js → p-DbmwH3zj.js} +1 -1
  21. package/css/ionic/bundle.ionic.css +1 -1
  22. package/css/ionic/bundle.ionic.css.map +1 -1
  23. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
  25. package/dist/cjs/ion-chip.cjs.entry.js +1 -1
  26. package/dist/cjs/ion-item-option_3.cjs.entry.js +219 -14
  27. package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
  28. package/dist/cjs/ion-range.cjs.entry.js +1 -1
  29. package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
  30. package/dist/cjs/ion-select_3.cjs.entry.js +9 -10
  31. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
  32. package/dist/cjs/ion-toggle.cjs.entry.js +8 -20
  33. package/dist/cjs/ionic.cjs.js +1 -1
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/collection/components/avatar/avatar.ionic.css +0 -24
  36. package/dist/collection/components/badge/badge.ionic.css +0 -12
  37. package/dist/collection/components/button/button.ionic.css +0 -13
  38. package/dist/collection/components/chip/chip.ionic.css +2 -4
  39. package/dist/collection/components/item/item.ionic.css +1 -2
  40. package/dist/collection/components/item-option/item-option.ionic.css +0 -12
  41. package/dist/collection/components/item-sliding/item-sliding.js +214 -13
  42. package/dist/collection/components/range/range.ionic.css +1 -2
  43. package/dist/collection/components/segment-button/segment-button.ionic.css +0 -4
  44. package/dist/collection/components/select/select.ionic.css +0 -2
  45. package/dist/collection/components/select/select.js +8 -9
  46. package/dist/collection/components/tab-button/tab-button.ionic.css +0 -4
  47. package/dist/collection/components/toggle/toggle.ionic.css +0 -2
  48. package/dist/collection/components/toggle/toggle.js +5 -17
  49. package/dist/docs.json +13 -5
  50. package/dist/esm/ion-avatar_3.entry.js +2 -2
  51. package/dist/esm/ion-button_2.entry.js +1 -1
  52. package/dist/esm/ion-chip.entry.js +1 -1
  53. package/dist/esm/ion-item-option_3.entry.js +219 -14
  54. package/dist/esm/ion-item_8.entry.js +1 -1
  55. package/dist/esm/ion-range.entry.js +1 -1
  56. package/dist/esm/ion-segment_2.entry.js +1 -1
  57. package/dist/esm/ion-select_3.entry.js +9 -10
  58. package/dist/esm/ion-tab-bar_2.entry.js +1 -1
  59. package/dist/esm/ion-toggle.entry.js +6 -18
  60. package/dist/esm/ionic.js +1 -1
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/ionic/ionic.esm.js +1 -1
  63. package/dist/ionic/p-07d3388f.entry.js +4 -0
  64. package/dist/ionic/p-092e92b0.entry.js +4 -0
  65. package/dist/ionic/p-139d02eb.entry.js +4 -0
  66. package/dist/ionic/{p-7d741511.entry.js → p-1855fcb6.entry.js} +1 -1
  67. package/dist/ionic/{p-e17b1f5c.entry.js → p-228b6a9c.entry.js} +1 -1
  68. package/dist/ionic/p-4610e447.entry.js +4 -0
  69. package/dist/ionic/p-7959826e.entry.js +4 -0
  70. package/dist/ionic/p-bc5713f7.entry.js +4 -0
  71. package/dist/ionic/p-d954cd19.entry.js +4 -0
  72. package/dist/ionic/p-f061fcb7.entry.js +4 -0
  73. package/dist/types/components/item-sliding/item-sliding.d.ts +17 -2
  74. package/hydrate/index.js +243 -20681
  75. package/hydrate/index.mjs +243 -20681
  76. package/package.json +2 -4
  77. package/components/p-BniBSDph.js +0 -4
  78. package/components/p-C9Vtk1ky.js +0 -4
  79. package/components/p-CPltryAp.js +0 -4
  80. package/css/fonts/Phosphor.woff +0 -0
  81. package/css/fonts/Phosphor.woff2 +0 -0
  82. package/dist/cjs/icon-DIgTx6sk.js +0 -20640
  83. package/dist/collection/utils/icon.js +0 -45
  84. package/dist/esm/icon-CUSZuv-W.js +0 -20638
  85. package/dist/ionic/p-0c84feb8.entry.js +0 -4
  86. package/dist/ionic/p-29791358.entry.js +0 -4
  87. package/dist/ionic/p-52c1797d.entry.js +0 -4
  88. package/dist/ionic/p-74437abe.entry.js +0 -4
  89. package/dist/ionic/p-79646994.entry.js +0 -4
  90. package/dist/ionic/p-DcGyUwGo.js +0 -4
  91. package/dist/ionic/p-b779bfb0.entry.js +0 -4
  92. package/dist/ionic/p-e6202363.entry.js +0 -4
  93. 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
- };