@passui/react 0.1.23 → 0.1.25

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.
@@ -10,8 +10,8 @@ type HeadingProps = {
10
10
  size?: keyof typeof titleSizes;
11
11
  };
12
12
  declare const titleSizes: {
13
- readonly default: "text-3xl md:text-4xl";
14
- readonly compact: "text-[1.75rem] font-semibold tracking-tight";
13
+ readonly default: "text-large-title leading-large-title";
14
+ readonly compact: "text-title leading-title font-semibold tracking-tight";
15
15
  };
16
16
  export declare function ViewController({ heading, className, children }: ViewControllerProps): import("react").JSX.Element;
17
17
  export declare namespace ViewController {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@passui/react",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Passui: native React controls, design tokens, presentation and appearance.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -97,7 +97,7 @@ export function TabBar<Tab extends TabBarTab>({
97
97
  // Switching tabs is silent, as on Apple and Android: no haptic.
98
98
  onClick: () => {},
99
99
  className: cn(
100
- "relative isolate flex h-11 min-w-0 flex-col items-center justify-center gap-0.5 rounded-full font-semibold text-[10px] tracking-[0.01em] no-underline transition-[color,transform] duration-fast active:scale-[0.94]",
100
+ "relative isolate flex h-11 min-w-0 flex-col items-center justify-center gap-0.5 rounded-full font-semibold text-caption2 tracking-[0.01em] no-underline transition-[color,transform] duration-fast active:scale-[0.94]",
101
101
  minimized ? "w-11" : "flex-1 px-1",
102
102
  current ? "text-accent-text" : "text-label-secondary"
103
103
  ),
@@ -96,7 +96,7 @@ export function TabView<Value extends string>({
96
96
  }
97
97
  }}
98
98
  className={cn(
99
- "relative inline-flex h-[calc(100%-1px)] shrink-0 items-center justify-center border border-transparent p-0 text-sm font-medium whitespace-nowrap",
99
+ "relative inline-flex h-[calc(100%-1px)] shrink-0 items-center justify-center border border-transparent p-0 text-subheadline font-medium whitespace-nowrap",
100
100
  "focus-visible:outline-2 focus-visible:outline-offset-2",
101
101
  "after:absolute after:inset-x-0 after:bottom-[-5px] after:h-0.5 after:bg-current",
102
102
  option.value === value
@@ -14,9 +14,9 @@ type HeadingProps = {
14
14
  }
15
15
 
16
16
  const titleSizes = {
17
- default: "text-3xl md:text-4xl",
17
+ default: "text-large-title leading-large-title",
18
18
  // sign in style screens: centered, tighter, like a system sheet
19
- compact: "text-[1.75rem] font-semibold tracking-tight",
19
+ compact: "text-title leading-title font-semibold tracking-tight",
20
20
  } as const
21
21
 
22
22
  export function ViewController({ heading, className, children }: ViewControllerProps) {
@@ -24,12 +24,12 @@ export function ViewController({ heading, className, children }: ViewControllerP
24
24
  <article
25
25
  className={cn(
26
26
  "container mx-auto flex flex-col",
27
- "w-full gap-5 py-20 md:max-w-3xl",
27
+ "w-full gap-0 py-12 md:max-w-3xl",
28
28
  className
29
29
  )}
30
30
  >
31
- <section>{heading}</section>
32
- {children}
31
+ {heading}
32
+ <div className="mt-8 flex flex-col gap-6">{children}</div>
33
33
  </article>
34
34
  )
35
35
  }
@@ -50,8 +50,8 @@ function Heading({ title, description, action, size = "default" }: HeadingProps)
50
50
  {description && (
51
51
  <p
52
52
  className={cn(
53
- "mt-2 max-w-prose text-subheadline leading-relaxed text-label-secondary",
54
- centered && "mt-1 text-center text-[15px]"
53
+ "mt-0 max-w-prose text-subheadline leading-relaxed text-label-secondary",
54
+ centered && "text-center"
55
55
  )}
56
56
  >
57
57
  {description}