@hzblj/kara-components 0.21.0 → 0.22.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @hzblj/kara-components
2
2
 
3
+ ## 0.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#70](https://github.com/hzblj/kara-ui/pull/70) [`877e43c`](https://github.com/hzblj/kara-ui/commit/877e43cc26be5029af3c3b7c2f4cb9059c14f202) Thanks [@hzblj](https://github.com/hzblj)! - `HeaderLargeTitleFade` (`@hzblj/kara-ui/header`) fades content under the header, like segments or chips, out and back with the large title while the header search is open, in step with UIKit's animation (iOS). `ScrollViewZPosition` is removed: a large title stays in the bar when the screen's first view is not a scroll view, so the empty anchor scroll view it kept visible is no longer needed.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`877e43c`](https://github.com/hzblj/kara-ui/commit/877e43cc26be5029af3c3b7c2f4cb9059c14f202)]:
12
+ - @hzblj/kara-native@0.22.0
13
+ - @hzblj/kara-sx@0.22.0
14
+ - @hzblj/kara-theme@0.22.0
15
+
3
16
  ## 0.21.0
4
17
 
5
18
  ### Minor Changes
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export const HeaderLargeTitleFade = ({
4
+ children
5
+ }) => children;
6
+ //# sourceMappingURL=header-large-title-fade.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HeaderLargeTitleFade","children"],"sourceRoot":"../../../../src","sources":["organisms/header/header-large-title-fade.android.tsx"],"mappings":";;AAEA,OAAO,MAAMA,oBAAmD,GAAGA,CAAC;EAACC;AAAmC,CAAC,KAAKA,QAAQ","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { LargeTitleFade } from '@hzblj/kara-native/swift-ui';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ /**
6
+ * Fades its content out and back with the large title when the header search opens and closes, in step with UIKit's
7
+ * own animation. Keep the content mounted while searching: a `HeaderInset` moves with the bar's animation, and content
8
+ * mounted into it mid-animation draws off its place until the animation ends.
9
+ */
10
+ export const HeaderLargeTitleFade = ({
11
+ children
12
+ }) => /*#__PURE__*/_jsx(LargeTitleFade, {
13
+ children: children
14
+ });
15
+ //# sourceMappingURL=header-large-title-fade.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LargeTitleFade","jsx","_jsx","HeaderLargeTitleFade","children"],"sourceRoot":"../../../../src","sources":["organisms/header/header-large-title-fade.ios.tsx"],"mappings":";;AAAA,SAAQA,cAAc,QAAO,6BAA6B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAI1D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAmD,GAAGA,CAAC;EAACC;AAAmC,CAAC,kBACvGF,IAAA,CAACF,cAAc;EAAAI,QAAA,EAAEA;AAAQ,CAAiB,CAC3C","ignoreList":[]}
@@ -2,6 +2,7 @@
2
2
 
3
3
  export * from "./header.types.js";
4
4
  export * from './header-inset';
5
+ export * from './header-large-title-fade';
5
6
  export { useIsTitleRevealed } from "./header-title.js";
6
7
  export * from './sheet-grabber';
7
8
  export * from "./use-header.js";
@@ -1 +1 @@
1
- {"version":3,"names":["useIsTitleRevealed"],"sourceRoot":"../../../../src","sources":["organisms/header/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,SAAQA,kBAAkB,QAAO,mBAAgB;AACjD,cAAc,iBAAiB;AAE/B,cAAc,iBAAc;AAC5B,cAAc,wBAAwB;AACtC,cAAc,+BAA4B;AAC1C,cAAc,wBAAqB;AACnC,cAAc,sBAAmB;AACjC,cAAc,+BAA4B","ignoreList":[]}
1
+ {"version":3,"names":["useIsTitleRevealed"],"sourceRoot":"../../../../src","sources":["organisms/header/index.ts"],"mappings":";;AAAA,cAAc,mBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,2BAA2B;AACzC,SAAQA,kBAAkB,QAAO,mBAAgB;AACjD,cAAc,iBAAiB;AAE/B,cAAc,iBAAc;AAC5B,cAAc,wBAAwB;AACtC,cAAc,+BAA4B;AAC1C,cAAc,wBAAqB;AACnC,cAAc,sBAAmB;AACjC,cAAc,+BAA4B","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export * from './header-large-title-fade.ios';
@@ -0,0 +1,7 @@
1
+ import type { HeaderLargeTitleFadeComponent } from './header.types';
2
+ /**
3
+ * Fades its content out and back with the large title when the header search opens and closes, in step with UIKit's
4
+ * own animation. Keep the content mounted while searching: a `HeaderInset` moves with the bar's animation, and content
5
+ * mounted into it mid-animation draws off its place until the animation ends.
6
+ */
7
+ export declare const HeaderLargeTitleFade: HeaderLargeTitleFadeComponent;
@@ -437,4 +437,9 @@ export type HeaderInsetProps = {
437
437
  children?: ReactNode;
438
438
  };
439
439
  export type HeaderInsetComponent = (props: HeaderInsetProps) => ReactNode;
440
+ export type HeaderLargeTitleFadeProps = {
441
+ /** Content under the header (segments, chips) that leaves with the large title while the header search is open. */
442
+ children?: ReactNode;
443
+ };
444
+ export type HeaderLargeTitleFadeComponent = (props: HeaderLargeTitleFadeProps) => ReactNode;
440
445
  export {};
@@ -1,5 +1,6 @@
1
1
  export * from './header.types';
2
2
  export * from './header-inset';
3
+ export * from './header-large-title-fade';
3
4
  export { useIsTitleRevealed } from './header-title';
4
5
  export * from './sheet-grabber';
5
6
  export type { SheetGrabberProps } from './sheet-grabber.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzblj/kara-components",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "The atoms, molecules, organisms and templates of @hzblj/kara-ui — real SwiftUI and Jetpack Compose views through @expo/ui.",
5
5
  "author": "Jan Blazej",
6
6
  "license": "MIT",
@@ -66,9 +66,9 @@
66
66
  "dependencies": {
67
67
  "@hzblj/expo-native-icons": "^0.1.0",
68
68
  "@hzblj/expo-rich-haptics": "^0.1.0",
69
- "@hzblj/kara-native": "^0.21.0",
70
- "@hzblj/kara-sx": "^0.21.0",
71
- "@hzblj/kara-theme": "^0.21.0",
69
+ "@hzblj/kara-native": "^0.22.0",
70
+ "@hzblj/kara-sx": "^0.22.0",
71
+ "@hzblj/kara-theme": "^0.22.0",
72
72
  "sf-symbols-typescript": "^2.2.0"
73
73
  },
74
74
  "peerDependencies": {
@@ -0,0 +1,3 @@
1
+ import type {HeaderLargeTitleFadeComponent, HeaderLargeTitleFadeProps} from './header.types'
2
+
3
+ export const HeaderLargeTitleFade: HeaderLargeTitleFadeComponent = ({children}: HeaderLargeTitleFadeProps) => children
@@ -0,0 +1,12 @@
1
+ import {LargeTitleFade} from '@hzblj/kara-native/swift-ui'
2
+
3
+ import type {HeaderLargeTitleFadeComponent, HeaderLargeTitleFadeProps} from './header.types'
4
+
5
+ /**
6
+ * Fades its content out and back with the large title when the header search opens and closes, in step with UIKit's
7
+ * own animation. Keep the content mounted while searching: a `HeaderInset` moves with the bar's animation, and content
8
+ * mounted into it mid-animation draws off its place until the animation ends.
9
+ */
10
+ export const HeaderLargeTitleFade: HeaderLargeTitleFadeComponent = ({children}: HeaderLargeTitleFadeProps) => (
11
+ <LargeTitleFade>{children}</LargeTitleFade>
12
+ )
@@ -414,3 +414,10 @@ export type HeaderInsetProps = {
414
414
  }
415
415
 
416
416
  export type HeaderInsetComponent = (props: HeaderInsetProps) => ReactNode
417
+
418
+ export type HeaderLargeTitleFadeProps = {
419
+ /** Content under the header (segments, chips) that leaves with the large title while the header search is open. */
420
+ children?: ReactNode
421
+ }
422
+
423
+ export type HeaderLargeTitleFadeComponent = (props: HeaderLargeTitleFadeProps) => ReactNode
@@ -1,5 +1,6 @@
1
1
  export * from './header.types'
2
2
  export * from './header-inset'
3
+ export * from './header-large-title-fade'
3
4
  export {useIsTitleRevealed} from './header-title'
4
5
  export * from './sheet-grabber'
5
6
  export type {SheetGrabberProps} from './sheet-grabber.types'