react-native-terra-ui 0.13.0 → 0.13.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/CHANGELOG.md +6 -0
- package/lib/module/components/header/parts/HeaderBar.js +32 -3
- package/lib/module/components/header/parts/HeaderBar.js.map +1 -1
- package/lib/module/components/header/variants/TitleHeader/index.js +2 -0
- package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -1
- package/lib/module/theme/tokens/primitives.js +2 -2
- package/lib/typescript/src/components/header/parts/HeaderBar.d.ts +2 -1
- package/lib/typescript/src/components/header/parts/HeaderBar.d.ts.map +1 -1
- package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +3 -1
- package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/header/parts/HeaderBar.tsx +29 -0
- package/src/components/header/variants/TitleHeader/index.tsx +4 -0
- package/src/theme/tokens/primitives.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.13.1](https://github.com/earthlin9/react-native-terra-ui/compare/v0.13.0...v0.13.1) (2026-09-26)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **ui:** [header] minor UI update to header ([b8e60da](https://github.com/earthlin9/react-native-terra-ui/commit/b8e60da94ce17a5af2eb525c0bfb8f4b8f08255a))
|
|
8
|
+
|
|
3
9
|
## [0.13.0](https://github.com/earthlin9/react-native-terra-ui/compare/v0.12.1...v0.13.0) (2026-09-26)
|
|
4
10
|
|
|
5
11
|
### ⚠ BREAKING CHANGES
|
|
@@ -17,6 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
/** Shared compact bar. Only the title and background animate; actions stay interactive. */
|
|
18
18
|
export function HeaderBar({
|
|
19
19
|
title,
|
|
20
|
+
subtitle,
|
|
20
21
|
leading,
|
|
21
22
|
trailing,
|
|
22
23
|
titleAlignment,
|
|
@@ -77,15 +78,20 @@ export function HeaderBar({
|
|
|
77
78
|
}), hasLeading && /*#__PURE__*/_jsxs(Toolbar, {
|
|
78
79
|
onLayout: onLeadingLayout,
|
|
79
80
|
children: [dismissAction === "back" && dismiss, leading]
|
|
80
|
-
}), /*#__PURE__*/
|
|
81
|
+
}), /*#__PURE__*/_jsxs(Animated.View, {
|
|
81
82
|
style: [styles.titleContainer, styles.titleInsets(windowInsets.left, windowInsets.right, hasLeading ? leadingWidth : 0, hasTrailing ? trailingWidth : 0, titleAlignment), titleStyle],
|
|
82
83
|
pointerEvents: isCustomTitle(title) ? "box-none" : "none",
|
|
83
|
-
children: isTextTitle(title) ? String(title).trim().length > 0 && /*#__PURE__*/_jsx(Text, {
|
|
84
|
+
children: [isTextTitle(title) ? String(title).trim().length > 0 && /*#__PURE__*/_jsx(Text, {
|
|
84
85
|
style: styles.title,
|
|
85
86
|
numberOfLines: 1,
|
|
86
87
|
maxFontSizeMultiplier: theme.typography.variants["title-md"].maxFontSizeMultiplier,
|
|
87
88
|
children: title
|
|
88
|
-
}) : title
|
|
89
|
+
}) : title, !!subtitle && /*#__PURE__*/_jsx(Text, {
|
|
90
|
+
style: styles.subtitle,
|
|
91
|
+
numberOfLines: 1,
|
|
92
|
+
maxFontSizeMultiplier: theme.typography.variants["label-sm"].maxFontSizeMultiplier,
|
|
93
|
+
children: subtitle
|
|
94
|
+
})]
|
|
89
95
|
}), hasTrailing && /*#__PURE__*/_jsxs(Toolbar, {
|
|
90
96
|
style: styles.trailing,
|
|
91
97
|
onLayout: onTrailingLayout,
|
|
@@ -102,6 +108,9 @@ const styles = StyleSheet.create((theme, runtime) => {
|
|
|
102
108
|
const titleWeight = theme.typography.variants["title-md"].fontWeight;
|
|
103
109
|
const titleFont = theme.typography.fonts[titleWeight];
|
|
104
110
|
const isSystemTitleFont = titleFont === SYSTEM_FONT;
|
|
111
|
+
const subtitleWeight = theme.typography.variants["label-sm"].fontWeight;
|
|
112
|
+
const subtitleFont = theme.typography.fonts[subtitleWeight];
|
|
113
|
+
const isSystemSubtitleFont = subtitleFont === SYSTEM_FONT;
|
|
105
114
|
return {
|
|
106
115
|
windowInsets: (left, right) => ({
|
|
107
116
|
paddingLeft: Math.max(resolveScreenPadding(theme, runtime.breakpoint).x, left),
|
|
@@ -189,6 +198,26 @@ const styles = StyleSheet.create((theme, runtime) => {
|
|
|
189
198
|
}
|
|
190
199
|
},
|
|
191
200
|
uni__dependencies: [0, 4]
|
|
201
|
+
},
|
|
202
|
+
subtitle: {
|
|
203
|
+
fontSize: theme.typography.variants["label-sm"].fontSize,
|
|
204
|
+
lineHeight: theme.typography.variants["label-sm"].lineHeight,
|
|
205
|
+
letterSpacing: theme.typography.variants["label-sm"].letterSpacing,
|
|
206
|
+
fontFamily: isSystemSubtitleFont ? undefined : subtitleFont,
|
|
207
|
+
fontWeight: isSystemSubtitleFont ? FONT_WEIGHT_VALUE[subtitleWeight] : undefined,
|
|
208
|
+
includeFontPadding: false,
|
|
209
|
+
color: theme.color["text.tertiary"] ?? "",
|
|
210
|
+
variants: {
|
|
211
|
+
titleAlignment: {
|
|
212
|
+
center: {
|
|
213
|
+
textAlign: "center"
|
|
214
|
+
},
|
|
215
|
+
left: {
|
|
216
|
+
textAlign: "left"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
uni__dependencies: [0, 4]
|
|
192
221
|
}
|
|
193
222
|
};
|
|
194
223
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","Animated","ScrollToTopGuard","StyleSheet","useUnistyles","FONT_WEIGHT_VALUE","SYSTEM_FONT","resolveScreenPadding","Toolbar","HeaderDismissButton","isCustomTitle","isTextTitle","HeaderSurface","HeaderWindowInsets","jsx","_jsx","jsxs","_jsxs","HeaderBar","title","leading","trailing","titleAlignment","color","surfaceStyle","titleStyle","dismissAction","navigation","onDismiss","theme","windowInsets","setWindowInsets","left","right","leadingWidth","setLeadingWidth","trailingWidth","setTrailingWidth","onLeadingLayout","event","nativeEvent","layout","width","onTrailingLayout","hasLeading","hasTrailing","_styles","styles","useVariants","dismiss","children","View","style","bar","animatedStyle","onInsetsChange","onLayout","titleContainer","titleInsets","pointerEvents","String","trim","length","Text","numberOfLines","maxFontSizeMultiplier","typography","variants","create","runtime","titleWeight","fontWeight","titleFont","fonts","isSystemTitleFont","paddingLeft","Math","max","breakpoint","x","paddingRight","uni__dependencies","alignment","padding","gap","spacing","reachLeft","reachRight","inset","height","header","flexDirection","alignItems","paddingHorizontal","screen","justifyContent","center","marginLeft","position","flex","fontSize","lineHeight","letterSpacing","fontFamily","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../../../src","sources":["components/header/parts/HeaderBar.tsx"],"mappings":";;;;AAAA,SAA8CA,QAAQ,QAAQ,OAAO;AAGrE,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,gBAAgB,QAAQ,mCAAmC;AACpE,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,iBAAiB,EAAEC,WAAW;AACvC,SAASC,oBAAoB;AAC7B,SAASC,OAAO;AAChB,SAASC,mBAAmB;AAC5B,SAASC,aAAa,EAAEC,WAAW;AACnC,SAASC,aAAa;AACtB,SAASC,kBAAkB;AAA+B,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["useState","Animated","ScrollToTopGuard","StyleSheet","useUnistyles","FONT_WEIGHT_VALUE","SYSTEM_FONT","resolveScreenPadding","Toolbar","HeaderDismissButton","isCustomTitle","isTextTitle","HeaderSurface","HeaderWindowInsets","jsx","_jsx","jsxs","_jsxs","HeaderBar","title","subtitle","leading","trailing","titleAlignment","color","surfaceStyle","titleStyle","dismissAction","navigation","onDismiss","theme","windowInsets","setWindowInsets","left","right","leadingWidth","setLeadingWidth","trailingWidth","setTrailingWidth","onLeadingLayout","event","nativeEvent","layout","width","onTrailingLayout","hasLeading","hasTrailing","_styles","styles","useVariants","dismiss","children","View","style","bar","animatedStyle","onInsetsChange","onLayout","titleContainer","titleInsets","pointerEvents","String","trim","length","Text","numberOfLines","maxFontSizeMultiplier","typography","variants","create","runtime","titleWeight","fontWeight","titleFont","fonts","isSystemTitleFont","subtitleWeight","subtitleFont","isSystemSubtitleFont","paddingLeft","Math","max","breakpoint","x","paddingRight","uni__dependencies","alignment","padding","gap","spacing","reachLeft","reachRight","inset","height","header","flexDirection","alignItems","paddingHorizontal","screen","justifyContent","center","marginLeft","position","flex","fontSize","lineHeight","letterSpacing","fontFamily","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../../../src","sources":["components/header/parts/HeaderBar.tsx"],"mappings":";;;;AAAA,SAA8CA,QAAQ,QAAQ,OAAO;AAGrE,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,gBAAgB,QAAQ,mCAAmC;AACpE,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,iBAAiB,EAAEC,WAAW;AACvC,SAASC,oBAAoB;AAC7B,SAASC,OAAO;AAChB,SAASC,mBAAmB;AAC5B,SAASC,aAAa,EAAEC,WAAW;AACnC,SAASC,aAAa;AACtB,SAASC,kBAAkB;AAA+B,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa1D;AACA,OAAO,SAASC,SAASA,CAAC;EACxBC,KAAK;EACLC,QAAQ;EACRC,OAAO;EACPC,QAAQ;EACRC,cAAc;EACdC,KAAK;EACLC,YAAY;EACZC,UAAU;EACVC,aAAa,GAAG,MAAM;EACtBC,UAAU;EACVC;AACc,CAAC,EAAE;EACjB,MAAM;IAAEC;EAAM,CAAC,GAAG1B,YAAY,CAAC,CAAC;EAChC,MAAM,CAAC2B,YAAY,EAAEC,eAAe,CAAC,GAAGhC,QAAQ,CAAC;IAAEiC,IAAI,EAAE,CAAC;IAAEC,K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AAE5E,KAAK,CAACqC,UAAU,CAACC,QAAQ,CAAC,UAAU,CAAC,CAACsC,aAAa;MAClEC,UAAU,EAAE7B,oBAAoB,GAAG8B,SAAS,GAAG/B,YAAY;MAC3DL,UAAU,EAAEM,oBAAoB,GAAGzE,iBAAiB,CAACuE,cAAc,CAAC,GAAGgC,SAAS;MAChFC,kBAAkB,EAAE,KAAK;MACzBrF,KAAK,EAAGM,KAAK,CAACN,KAAK,CAAmD,eAAe,CAAC,IAAI,EAAE;MAC5F4C,QAAQ,EAAE;QACR7C,cAAc,EAAE;UACd6E,MAAM,EAAE;YAAEU,SAAS,EAAE;UAAS,CAAC;UAC/B7E,IAAI,EAAE;YAAE6E,SAAS,EAAE;UAAO;QAC5B;MACF,CAAC;MAAAzB,iBAAA;IACH;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
/** Compact header. Screen owns the safe area when present; standalone headers reserve it here. */
|
|
13
13
|
export function TitleHeader({
|
|
14
14
|
title,
|
|
15
|
+
subtitle,
|
|
15
16
|
leadingActions,
|
|
16
17
|
trailingActions,
|
|
17
18
|
LeftToolbar,
|
|
@@ -33,6 +34,7 @@ export function TitleHeader({
|
|
|
33
34
|
}), /*#__PURE__*/_jsx(HeaderBar, {
|
|
34
35
|
...dismissProps,
|
|
35
36
|
title: title,
|
|
37
|
+
subtitle: subtitle,
|
|
36
38
|
titleAlignment: titleAlignment,
|
|
37
39
|
color: color,
|
|
38
40
|
leading: leadingActions !== undefined ? leadingActions : LeftToolbar,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","StyleSheet","useHeaderBackground","ScreenContext","useHeaderColor","HeaderAccessory","HeaderBar","jsx","_jsx","jsxs","_jsxs","TitleHeader","title","leadingActions","trailingActions","LeftToolbar","RightToolbar","accessory","accessoryPadding","titleAlignment","background","bg","dismissProps","screen","color","View","style","styles","container","children","safeArea","leading","undefined","trailing","padding","onHeightChange","setHeaderAccessoryHeight","create","_","runtime","position","top","left","right","zIndex","withinScreen","height","insets","backgroundColor","uni__dependencies"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/TitleHeader/index.tsx"],"mappings":";;;AAAA,SAAyBA,UAAU,QAAQ,OAAO;AAGlD,SAASC,UAAU,QAAQ,wBAAwB;AAGnD,SAASC,mBAAmB;AAC5B,SAASC,aAAa;AAEtB,SAASC,cAAc;AACvB,SAASC,eAAe;AACxB,SAASC,SAAS;AAAgC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["useContext","StyleSheet","useHeaderBackground","ScreenContext","useHeaderColor","HeaderAccessory","HeaderBar","jsx","_jsx","jsxs","_jsxs","TitleHeader","title","subtitle","leadingActions","trailingActions","LeftToolbar","RightToolbar","accessory","accessoryPadding","titleAlignment","background","bg","dismissProps","screen","color","View","style","styles","container","children","safeArea","leading","undefined","trailing","padding","onHeightChange","setHeaderAccessoryHeight","create","_","runtime","position","top","left","right","zIndex","withinScreen","height","insets","backgroundColor","uni__dependencies"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/TitleHeader/index.tsx"],"mappings":";;;AAAA,SAAyBA,UAAU,QAAQ,OAAO;AAGlD,SAASC,UAAU,QAAQ,wBAAwB;AAGnD,SAASC,mBAAmB;AAC5B,SAASC,aAAa;AAEtB,SAASC,cAAc;AACvB,SAASC,eAAe;AACxB,SAASC,SAAS;AAAgC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8ClD;AACA,OAAO,SAASC,WAAWA,CAAC;EAC1BC,KAAK;EACLC,QAAQ;EACRC,cAAc;EACdC,eAAe;EACfC,WAAW;EACXC,YAAY;EACZC,SAAS;EACTC,gBAAgB,GAAG,GAAG;EACtBC,cAAc,GAAG,QAAQ;EACzBC,UAAU;EACVC,EAAE;EACF,GAAGC;AACa,CA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AAO,CAACQ,MAAM,CAACN,GAAG;IAC7CO,eAAe,EAAExB,KAAK;IAAAyB,iBAAA;EACxB,CAAC;AACH,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -467,8 +467,8 @@ export const primitives = {
|
|
|
467
467
|
// ── screen-level layout ───────────────────────────────────────────────────
|
|
468
468
|
// `padding.x`/`padding.y` both scale up with the viewport breakpoint (see
|
|
469
469
|
// `theme/breakpoints.ts`).
|
|
470
|
-
"layout.screen.padding.x.xs":
|
|
471
|
-
"layout.screen.padding.x.sm":
|
|
470
|
+
"layout.screen.padding.x.xs": 20,
|
|
471
|
+
"layout.screen.padding.x.sm": 20,
|
|
472
472
|
"layout.screen.padding.x.md": 24,
|
|
473
473
|
"layout.screen.padding.x.lg": 32,
|
|
474
474
|
"layout.screen.padding.x.xl": 48,
|
|
@@ -4,6 +4,7 @@ import { type HeaderDismissProps } from "../header-buttons.js";
|
|
|
4
4
|
import { type HeaderSurfaceProps } from "./HeaderSurface.js";
|
|
5
5
|
interface HeaderBarProps extends HeaderDismissProps {
|
|
6
6
|
title?: ReactNode;
|
|
7
|
+
subtitle?: string;
|
|
7
8
|
leading?: ReactNode;
|
|
8
9
|
trailing?: ReactNode;
|
|
9
10
|
titleAlignment: "center" | "left";
|
|
@@ -12,6 +13,6 @@ interface HeaderBarProps extends HeaderDismissProps {
|
|
|
12
13
|
titleStyle?: ComponentProps<typeof Animated.View>["style"];
|
|
13
14
|
}
|
|
14
15
|
/** Shared compact bar. Only the title and background animate; actions stay interactive. */
|
|
15
|
-
export declare function HeaderBar({ title, leading, trailing, titleAlignment, color, surfaceStyle, titleStyle, dismissAction, navigation, onDismiss, }: HeaderBarProps): import("react").JSX.Element;
|
|
16
|
+
export declare function HeaderBar({ title, subtitle, leading, trailing, titleAlignment, color, surfaceStyle, titleStyle, dismissAction, navigation, onDismiss, }: HeaderBarProps): import("react").JSX.Element;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=HeaderBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/parts/HeaderBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGtE,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,sBAAmB,CAAC;AAEjF,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,oBAAiB,CAAC;AAGzE,UAAU,cAAe,SAAQ,kBAAkB;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,QAAQ,GAAG,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,cAAc,EACd,KAAK,EACL,YAAY,EACZ,UAAU,EACV,aAAsB,EACtB,UAAU,EACV,SAAS,GACV,EAAE,cAAc,+
|
|
1
|
+
{"version":3,"file":"HeaderBar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/parts/HeaderBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGtE,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAO/C,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,sBAAmB,CAAC;AAEjF,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,oBAAiB,CAAC;AAGzE,UAAU,cAAe,SAAQ,kBAAkB;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,QAAQ,GAAG,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,cAAc,EACd,KAAK,EACL,YAAY,EACZ,UAAU,EACV,aAAsB,EACtB,UAAU,EACV,SAAS,GACV,EAAE,cAAc,+BAoFhB"}
|
|
@@ -9,6 +9,8 @@ export interface TitleHeaderProps extends HeaderDismissProps {
|
|
|
9
9
|
* the header only places it according to `titleAlignment`.
|
|
10
10
|
*/
|
|
11
11
|
title?: ReactNode;
|
|
12
|
+
/** Optional secondary line shown under the title, in the `label-sm` style. */
|
|
13
|
+
subtitle?: string;
|
|
12
14
|
/**
|
|
13
15
|
* Leading-side actions, wrapped in a `Toolbar` row. Pass `Toolbar.Group` /
|
|
14
16
|
* `Toolbar.Button` children directly — no `Toolbar` of your own.
|
|
@@ -43,5 +45,5 @@ export interface TitleHeaderProps extends HeaderDismissProps {
|
|
|
43
45
|
bg?: ColorToken;
|
|
44
46
|
}
|
|
45
47
|
/** Compact header. Screen owns the safe area when present; standalone headers reserve it here. */
|
|
46
|
-
export declare function TitleHeader({ title, leadingActions, trailingActions, LeftToolbar, RightToolbar, accessory, accessoryPadding, titleAlignment, background, bg, ...dismissProps }: TitleHeaderProps): import("react").JSX.Element;
|
|
48
|
+
export declare function TitleHeader({ title, subtitle, leadingActions, trailingActions, LeftToolbar, RightToolbar, accessory, accessoryPadding, titleAlignment, background, bg, ...dismissProps }: TitleHeaderProps): import("react").JSX.Element;
|
|
47
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/TitleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAI/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAa,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,sCAAsC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,uCAAuC;IACvC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,8DAA8D;IAC9D,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,mGAAmG;IACnG,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kCAAkC;IAClC,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB;AAED,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,SAAS,EACT,gBAAsB,EACtB,cAAyB,EACzB,UAAU,EACV,EAAE,EACF,GAAG,YAAY,EAChB,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/TitleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAI/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAa,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,sCAAsC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,uCAAuC;IACvC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,8DAA8D;IAC9D,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,mGAAmG;IACnG,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kCAAkC;IAClC,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB;AAED,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,SAAS,EACT,gBAAsB,EACtB,cAAyB,EACzB,UAAU,EACV,EAAE,EACF,GAAG,YAAY,EAChB,EAAE,gBAAgB,+BA2BlB"}
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ import { HeaderWindowInsets } from "./HeaderWindowInsets";
|
|
|
15
15
|
|
|
16
16
|
interface HeaderBarProps extends HeaderDismissProps {
|
|
17
17
|
title?: ReactNode;
|
|
18
|
+
subtitle?: string;
|
|
18
19
|
leading?: ReactNode;
|
|
19
20
|
trailing?: ReactNode;
|
|
20
21
|
titleAlignment: "center" | "left";
|
|
@@ -26,6 +27,7 @@ interface HeaderBarProps extends HeaderDismissProps {
|
|
|
26
27
|
/** Shared compact bar. Only the title and background animate; actions stay interactive. */
|
|
27
28
|
export function HeaderBar({
|
|
28
29
|
title,
|
|
30
|
+
subtitle,
|
|
29
31
|
leading,
|
|
30
32
|
trailing,
|
|
31
33
|
titleAlignment,
|
|
@@ -100,6 +102,15 @@ export function HeaderBar({
|
|
|
100
102
|
</Text>
|
|
101
103
|
)
|
|
102
104
|
: title}
|
|
105
|
+
{!!subtitle && (
|
|
106
|
+
<Text
|
|
107
|
+
style={styles.subtitle}
|
|
108
|
+
numberOfLines={1}
|
|
109
|
+
maxFontSizeMultiplier={theme.typography.variants["label-sm"].maxFontSizeMultiplier}
|
|
110
|
+
>
|
|
111
|
+
{subtitle}
|
|
112
|
+
</Text>
|
|
113
|
+
)}
|
|
103
114
|
</Animated.View>
|
|
104
115
|
{hasTrailing && (
|
|
105
116
|
<Toolbar style={styles.trailing} onLayout={onTrailingLayout}>
|
|
@@ -118,6 +129,9 @@ const styles = StyleSheet.create((theme, runtime) => {
|
|
|
118
129
|
const titleWeight = theme.typography.variants["title-md"].fontWeight;
|
|
119
130
|
const titleFont = theme.typography.fonts[titleWeight];
|
|
120
131
|
const isSystemTitleFont = titleFont === SYSTEM_FONT;
|
|
132
|
+
const subtitleWeight = theme.typography.variants["label-sm"].fontWeight;
|
|
133
|
+
const subtitleFont = theme.typography.fonts[subtitleWeight];
|
|
134
|
+
const isSystemSubtitleFont = subtitleFont === SYSTEM_FONT;
|
|
121
135
|
|
|
122
136
|
return {
|
|
123
137
|
windowInsets: (left: number, right: number) => ({
|
|
@@ -196,5 +210,20 @@ const styles = StyleSheet.create((theme, runtime) => {
|
|
|
196
210
|
},
|
|
197
211
|
},
|
|
198
212
|
},
|
|
213
|
+
subtitle: {
|
|
214
|
+
fontSize: theme.typography.variants["label-sm"].fontSize,
|
|
215
|
+
lineHeight: theme.typography.variants["label-sm"].lineHeight,
|
|
216
|
+
letterSpacing: theme.typography.variants["label-sm"].letterSpacing,
|
|
217
|
+
fontFamily: isSystemSubtitleFont ? undefined : subtitleFont,
|
|
218
|
+
fontWeight: isSystemSubtitleFont ? FONT_WEIGHT_VALUE[subtitleWeight] : undefined,
|
|
219
|
+
includeFontPadding: false,
|
|
220
|
+
color: (theme.color as unknown as Record<string, string | undefined>)["text.tertiary"] ?? "",
|
|
221
|
+
variants: {
|
|
222
|
+
titleAlignment: {
|
|
223
|
+
center: { textAlign: "center" },
|
|
224
|
+
left: { textAlign: "left" },
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
199
228
|
};
|
|
200
229
|
});
|
|
@@ -19,6 +19,8 @@ export interface TitleHeaderProps extends HeaderDismissProps {
|
|
|
19
19
|
* the header only places it according to `titleAlignment`.
|
|
20
20
|
*/
|
|
21
21
|
title?: ReactNode;
|
|
22
|
+
/** Optional secondary line shown under the title, in the `label-sm` style. */
|
|
23
|
+
subtitle?: string;
|
|
22
24
|
/**
|
|
23
25
|
* Leading-side actions, wrapped in a `Toolbar` row. Pass `Toolbar.Group` /
|
|
24
26
|
* `Toolbar.Button` children directly — no `Toolbar` of your own.
|
|
@@ -56,6 +58,7 @@ export interface TitleHeaderProps extends HeaderDismissProps {
|
|
|
56
58
|
/** Compact header. Screen owns the safe area when present; standalone headers reserve it here. */
|
|
57
59
|
export function TitleHeader({
|
|
58
60
|
title,
|
|
61
|
+
subtitle,
|
|
59
62
|
leadingActions,
|
|
60
63
|
trailingActions,
|
|
61
64
|
LeftToolbar,
|
|
@@ -76,6 +79,7 @@ export function TitleHeader({
|
|
|
76
79
|
<HeaderBar
|
|
77
80
|
{...dismissProps}
|
|
78
81
|
title={title}
|
|
82
|
+
subtitle={subtitle}
|
|
79
83
|
titleAlignment={titleAlignment}
|
|
80
84
|
color={color}
|
|
81
85
|
leading={leadingActions !== undefined ? leadingActions : LeftToolbar}
|
|
@@ -479,8 +479,8 @@ export const primitives = {
|
|
|
479
479
|
// ── screen-level layout ───────────────────────────────────────────────────
|
|
480
480
|
// `padding.x`/`padding.y` both scale up with the viewport breakpoint (see
|
|
481
481
|
// `theme/breakpoints.ts`).
|
|
482
|
-
"layout.screen.padding.x.xs":
|
|
483
|
-
"layout.screen.padding.x.sm":
|
|
482
|
+
"layout.screen.padding.x.xs": 20,
|
|
483
|
+
"layout.screen.padding.x.sm": 20,
|
|
484
484
|
"layout.screen.padding.x.md": 24,
|
|
485
485
|
"layout.screen.padding.x.lg": 32,
|
|
486
486
|
"layout.screen.padding.x.xl": 48,
|