@rdlabo/ionic-theme-ios26 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -62,45 +62,61 @@ And import the theme in your project's main CSS file (e.g., `src/styles.scss`).
62
62
  Next, configure the animations for iOS 26. Add the following to your Ionic configuration options.
63
63
 
64
64
  ```ts
65
+ import { isPlatform } from '@ionic/core'; // or @ionic/angular/standalone, @ionic/react, @ionic/vue
65
66
  import { iosTransitionAnimation, popoverEnterAnimation, popoverLeaveAnimation } from '@rdlabo/ionic-theme-ios26';
66
67
 
67
68
  // Angular
68
69
  provideIonicAngular({
69
70
  ...
70
- navAnimation: iosTransitionAnimation,
71
- popoverEnter: popoverEnterAnimation,
72
- popoverLeave: popoverLeaveAnimation,
71
+ navAnimation: isPlatform('ios') ? iosTransitionAnimation: undefined,
72
+ popoverEnter: isPlatform('ios') ? popoverEnterAnimation: undefined,
73
+ popoverLeave: isPlatform('ios') ? popoverLeaveAnimation: undefined,
73
74
  });
74
75
 
75
76
  // React
76
77
  setupIonicReact({
77
78
  ...
78
- navAnimation: iosTransitionAnimation,
79
- popoverEnter: popoverEnterAnimation,
80
- popoverLeave: popoverLeaveAnimation,
79
+ navAnimation: isPlatform('ios') ? iosTransitionAnimation: undefined,
80
+ popoverEnter: isPlatform('ios') ? popoverEnterAnimation: undefined,
81
+ popoverLeave: isPlatform('ios') ? popoverLeaveAnimation: undefined,
81
82
  });
82
83
 
83
84
  // Vue
84
85
  createApp(App)
85
86
  .use(IonicVue, {
86
87
  ...
87
- navAnimation: iosTransitionAnimation,
88
- popoverEnter: popoverEnterAnimation,
89
- popoverLeave: popoverLeaveAnimation,
88
+ navAnimation: isPlatform('ios') ? iosTransitionAnimation: undefined,
89
+ popoverEnter: isPlatform('ios') ? popoverEnterAnimation: undefined,
90
+ popoverLeave: isPlatform('ios') ? popoverLeaveAnimation: undefined,
90
91
  })
91
92
  ```
92
93
 
94
+ ## Important Notes
93
95
 
94
- ## Customization
96
+ ### Using `ion-item-group`
95
97
 
96
- ### CSS Variables
98
+ Under specific conditions, you need to use `ion-item-group`.
97
99
 
98
- To customize the library's default styles to match your design, several CSS variables are provided. See this file for details:
99
- https://github.com/rdlabo-team/ionic-theme-ios26/blob/main/src/styles/default-variables.scss
100
+ ```diff
101
+ <ion-list inset=true>
102
+ <ion-list-header><ion-label>Label</ion-label></ion-list-header>
103
+ + <ion-item-group>
104
+ <ion-item>...</ion-item>
105
+ <ion-item>...</ion-item>
106
+ + </ion-item-group>
107
+ </ion-list>
108
+ ```
109
+
110
+ For details, please refer to [USING_ION_ITEM_GROUP.md](./USING_ION_ITEM_GROUP.md).
100
111
 
101
112
 
102
113
  ## Features
103
114
 
115
+ ### CSS Variables
116
+
117
+ To customize the library's default styles to match your design, several CSS variables are provided. See this file for details:
118
+ https://github.com/rdlabo-team/ionic-theme-ios26/blob/main/src/styles/default-variables.scss
119
+
104
120
  ### `.ios26-disabled` Class
105
121
 
106
122
  Add the `.ios26-disabled` class to disable the iOS26 theme on specific components.
@@ -132,7 +148,7 @@ To achieve higher fidelity to iOS26 design, you can implement additional design
132
148
  https://ionic-theme-ios26.netlify.app/main/docs
133
149
 
134
150
 
135
- ## Experimental: Animation
151
+ ## Experimental Animation
136
152
 
137
153
  __This feature is experimental. The library can be used without this feature.__
138
154
 
@@ -212,24 +228,6 @@ const dismiss = (event: Event) => {
212
228
  }
213
229
  ```
214
230
 
215
- ## Important Notes
216
-
217
- ### Using `ion-item-group`
218
-
219
- Under specific conditions, you need to use `ion-item-group`.
220
-
221
- ```diff
222
- <ion-list inset=true>
223
- <ion-list-header><ion-label>Label</ion-label></ion-list-header>
224
- + <ion-item-group>
225
- <ion-item>...</ion-item>
226
- <ion-item>...</ion-item>
227
- + </ion-item-group>
228
- </ion-list>
229
- ```
230
-
231
- For details, please refer to [USING_ION_ITEM_GROUP.md](./USING_ION_ITEM_GROUP.md).
232
-
233
231
 
234
232
  ## Additional Information
235
233
 
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './sheets-of-glass/interfaces';
3
3
  export { iosEnterAnimation as popoverEnterAnimation } from './popover/animations/ios.enter';
4
4
  export { iosLeaveAnimation as popoverLeaveAnimation } from './popover/animations/ios.leave';
5
5
  export * from './tab-bar-searchable';
6
+ export * from './transition/ios.transition';
6
7
  export declare const registerTabBarEffect: (targetElement: HTMLElement) => registeredEffect | undefined;
7
8
  export declare const registerSegmentEffect: (targetElement: HTMLElement) => registeredEffect | undefined;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,cAAc,sBAAsB,CAAC;AAErC,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW,KAAG,gBAAgB,GAAG,SAOpF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,eAAe,WAAW,KAAG,gBAAgB,GAAG,SAerF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAE5C,eAAO,MAAM,oBAAoB,GAAI,eAAe,WAAW,KAAG,gBAAgB,GAAG,SAOpF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,eAAe,WAAW,KAAG,gBAAgB,GAAG,SAerF,CAAC"}
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './sheets-of-glass/interfaces';
3
3
  export { iosEnterAnimation as popoverEnterAnimation } from './popover/animations/ios.enter';
4
4
  export { iosLeaveAnimation as popoverLeaveAnimation } from './popover/animations/ios.leave';
5
5
  export * from './tab-bar-searchable';
6
+ export * from './transition/ios.transition';
6
7
  export const registerTabBarEffect = (targetElement) => {
7
8
  return registerEffect(targetElement, 'ion-tab-button', 'tab-selected', {
8
9
  small: 'scale(1.1, 1)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-theme-ios26",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "iOS26 Theme for Ionic Framework",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './sheets-of-glass/interfaces';
4
4
  export { iosEnterAnimation as popoverEnterAnimation } from './popover/animations/ios.enter';
5
5
  export { iosLeaveAnimation as popoverLeaveAnimation } from './popover/animations/ios.leave';
6
6
  export * from './tab-bar-searchable';
7
+ export * from './transition/ios.transition';
7
8
 
8
9
  export const registerTabBarEffect = (targetElement: HTMLElement): registeredEffect | undefined => {
9
10
  return registerEffect(targetElement, 'ion-tab-button', 'tab-selected', {