@vvedantb/native-ui 0.37.0 → 0.37.2
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/dist/AmbientBackground.jsx +16 -28
- package/dist/Avatar.jsx +2 -2
- package/dist/BottomSheetContainer.jsx +1 -1
- package/dist/BulkActionBar.jsx +1 -1
- package/dist/Card.jsx +4 -4
- package/dist/Chip.jsx +2 -2
- package/dist/DateTimeField.jsx +1 -1
- package/dist/Dialog.jsx +3 -3
- package/dist/DropdownMenu.jsx +310 -154
- package/dist/EmptyState.jsx +4 -4
- package/dist/FloatingTabBar.jsx +2 -2
- package/dist/LabeledSwitchRow.jsx +2 -2
- package/dist/ListRow.jsx +2 -2
- package/dist/PinnedBotTile.jsx +2 -2
- package/dist/StatGrid.jsx +1 -1
- package/dist/Stepper.jsx +2 -2
- package/dist/Toast.jsx +1 -1
- package/dist/ai/activity-question.jsx +2 -2
- package/dist/ai/card-button.jsx +2 -2
- package/dist/ai/choice-question.jsx +8 -8
- package/dist/ai/message-action-sheet.jsx +2 -2
- package/dist/ai/message-quote.jsx +2 -2
- package/dist/ai/message.jsx +2 -2
- package/dist/ai/reply-quote-chip.jsx +2 -2
- package/dist/ai/subagent-cards.jsx +6 -6
- package/dist/ai/tool-approval-card.jsx +1 -1
- package/dist/auth/AuthScreen.jsx +2 -2
- package/dist/examples/ParityGallery.jsx +2 -2
- package/dist/generative-ui/components.jsx +2 -2
- package/dist/marketing/UpgradeToProCard.jsx +2 -2
- package/dist/media/ImageGallery.jsx +2 -2
- package/dist/motion.js +3 -2
- package/dist/primitives/card.jsx +2 -2
- package/dist/primitives/text.jsx +13 -13
- package/dist/primitives/toast-drag-gesture.jsx +3 -2
- package/dist/settings/MoreFromProjectV.jsx +2 -2
- package/dist/settings/SettingsSection.jsx +1 -1
- package/dist/settings/ThemeModePicker.jsx +6 -6
- package/package.json +1 -1
- package/src/AmbientBackground.tsx +8 -26
- package/src/Avatar.tsx +2 -2
- package/src/BottomSheetContainer.tsx +1 -1
- package/src/BulkActionBar.tsx +2 -2
- package/src/Card.tsx +5 -5
- package/src/Chip.tsx +2 -2
- package/src/DateTimeField.tsx +2 -2
- package/src/Dialog.tsx +3 -3
- package/src/DropdownMenu.tsx +122 -25
- package/src/EmptyState.tsx +4 -4
- package/src/FloatingTabBar.tsx +2 -2
- package/src/LabeledSwitchRow.tsx +2 -2
- package/src/ListRow.tsx +2 -2
- package/src/PinnedBotTile.tsx +2 -2
- package/src/StatGrid.tsx +2 -2
- package/src/Stepper.tsx +2 -2
- package/src/Toast.tsx +2 -2
- package/src/ai/activity-question.tsx +1 -1
- package/src/ai/card-button.tsx +1 -1
- package/src/ai/choice-question.tsx +10 -10
- package/src/ai/message-action-sheet.tsx +2 -2
- package/src/ai/message-quote.tsx +2 -2
- package/src/ai/message.tsx +2 -2
- package/src/ai/reply-quote-chip.tsx +2 -2
- package/src/ai/subagent-cards.tsx +5 -5
- package/src/ai/tool-approval-card.tsx +4 -4
- package/src/auth/AuthScreen.tsx +2 -2
- package/src/examples/ParityGallery.tsx +2 -2
- package/src/generative-ui/components.tsx +3 -3
- package/src/marketing/UpgradeToProCard.tsx +2 -2
- package/src/media/ImageGallery.tsx +1 -1
- package/src/motion.ts +3 -2
- package/src/primitives/card.tsx +3 -3
- package/src/primitives/text.tsx +13 -13
- package/src/primitives/toast-drag-gesture.tsx +2 -2
- package/src/settings/MoreFromProjectV.tsx +2 -2
- package/src/settings/SettingsSection.tsx +3 -3
- package/src/settings/ThemeModePicker.tsx +9 -14
|
@@ -70,7 +70,7 @@ export function LabeledSwitchRow(t0) {
|
|
|
70
70
|
const t8 = disabled && "opacity-70";
|
|
71
71
|
let t9;
|
|
72
72
|
if ($[11] !== t7 || $[12] !== t8) {
|
|
73
|
-
t9 = cn("font-instrument-sans-
|
|
73
|
+
t9 = cn("font-instrument-sans-medium", t7, t8);
|
|
74
74
|
$[11] = t7;
|
|
75
75
|
$[12] = t8;
|
|
76
76
|
$[13] = t9;
|
|
@@ -87,7 +87,7 @@ export function LabeledSwitchRow(t0) {
|
|
|
87
87
|
}
|
|
88
88
|
let t11;
|
|
89
89
|
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
90
|
-
t11 = typeStyle("
|
|
90
|
+
t11 = typeStyle("medium");
|
|
91
91
|
$[16] = t11;
|
|
92
92
|
} else {
|
|
93
93
|
t11 = $[16];
|
package/dist/ListRow.jsx
CHANGED
|
@@ -39,7 +39,7 @@ export function ListRow(t0) {
|
|
|
39
39
|
const t4 = titleEnd != null && "min-w-0 flex-1";
|
|
40
40
|
let t5;
|
|
41
41
|
if ($[0] !== t3 || $[1] !== t4) {
|
|
42
|
-
t5 = cn("font-instrument-sans-
|
|
42
|
+
t5 = cn("font-instrument-sans-medium", t3, t4);
|
|
43
43
|
$[0] = t3;
|
|
44
44
|
$[1] = t4;
|
|
45
45
|
$[2] = t5;
|
|
@@ -56,7 +56,7 @@ export function ListRow(t0) {
|
|
|
56
56
|
}
|
|
57
57
|
let t7;
|
|
58
58
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59
|
-
t7 = typeStyle("
|
|
59
|
+
t7 = typeStyle("medium");
|
|
60
60
|
$[5] = t7;
|
|
61
61
|
} else {
|
|
62
62
|
t7 = $[5];
|
package/dist/PinnedBotTile.jsx
CHANGED
|
@@ -74,7 +74,7 @@ export function PinnedBotTile(t0) {
|
|
|
74
74
|
const t13 = largerText ? "text-lg" : "text-base";
|
|
75
75
|
let t14;
|
|
76
76
|
if ($[10] !== t13) {
|
|
77
|
-
t14 = cn("text-center font-instrument-sans-
|
|
77
|
+
t14 = cn("text-center font-instrument-sans-medium", t13);
|
|
78
78
|
$[10] = t13;
|
|
79
79
|
$[11] = t14;
|
|
80
80
|
} else {
|
|
@@ -90,7 +90,7 @@ export function PinnedBotTile(t0) {
|
|
|
90
90
|
}
|
|
91
91
|
let t16;
|
|
92
92
|
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
93
|
-
t16 = typeStyle("
|
|
93
|
+
t16 = typeStyle("medium");
|
|
94
94
|
$[14] = t16;
|
|
95
95
|
} else {
|
|
96
96
|
t16 = $[14];
|
package/dist/StatGrid.jsx
CHANGED
|
@@ -41,7 +41,7 @@ export function StatGrid(t0) {
|
|
|
41
41
|
if ($[0] !== columns || $[1] !== items || $[2] !== labelSize || $[3] !== scheme || $[4] !== valueSize) {
|
|
42
42
|
let t3;
|
|
43
43
|
if ($[6] !== labelSize || $[7] !== scheme || $[8] !== valueSize) {
|
|
44
|
-
t3 = (row, rowIndex) => <View key={rowIndex} className="flex-row gap-3">{row.map((item, index) => item ? <View key={index} testID={item.testID} accessible={true} accessibilityLabel={`${item.label}, ${item.value}`} className="min-w-0 flex-1 gap-1 p-4" style={cardStyle(scheme)}><Text className={cn("font-instrument-sans", labelSize)} style={[textStyle("muted", scheme), sizeStyle(labelSize)]}>{item.label}</Text><Text className={cn("font-instrument-sans-
|
|
44
|
+
t3 = (row, rowIndex) => <View key={rowIndex} className="flex-row gap-3">{row.map((item, index) => item ? <View key={index} testID={item.testID} accessible={true} accessibilityLabel={`${item.label}, ${item.value}`} className="min-w-0 flex-1 gap-1 p-4" style={cardStyle(scheme)}><Text className={cn("font-instrument-sans", labelSize)} style={[textStyle("muted", scheme), sizeStyle(labelSize)]}>{item.label}</Text><Text className={cn("font-instrument-sans-medium", valueSize)} style={[textStyle("foreground", scheme), sizeStyle(valueSize, "tight"), typeStyle("medium"), {
|
|
45
45
|
fontVariant: ["tabular-nums"]
|
|
46
46
|
}]}>{item.value}</Text></View> : <View key={index} className="flex-1" />)}</View>;
|
|
47
47
|
$[6] = labelSize;
|
package/dist/Stepper.jsx
CHANGED
|
@@ -64,7 +64,7 @@ export function Stepper(t0) {
|
|
|
64
64
|
const t7 = largerText ? "text-3xl" : "text-2xl";
|
|
65
65
|
let t8;
|
|
66
66
|
if ($[13] !== t7) {
|
|
67
|
-
t8 = cn("min-w-8 text-center font-instrument-sans-
|
|
67
|
+
t8 = cn("min-w-8 text-center font-instrument-sans-medium", t7);
|
|
68
68
|
$[13] = t7;
|
|
69
69
|
$[14] = t8;
|
|
70
70
|
} else {
|
|
@@ -80,7 +80,7 @@ export function Stepper(t0) {
|
|
|
80
80
|
}
|
|
81
81
|
let t10;
|
|
82
82
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
83
|
-
t10 = typeStyle("
|
|
83
|
+
t10 = typeStyle("medium");
|
|
84
84
|
$[17] = t10;
|
|
85
85
|
} else {
|
|
86
86
|
t10 = $[17];
|
package/dist/Toast.jsx
CHANGED
|
@@ -351,7 +351,7 @@ function ToastCard(t0) {
|
|
|
351
351
|
t20 = item.action ? <Pressable accessibilityRole="button" hitSlop={8} onPress={() => {
|
|
352
352
|
item.action?.onPress();
|
|
353
353
|
toast.dismiss(item.id);
|
|
354
|
-
}} className="rounded-full bg-secondary px-3 py-1.5 active:opacity-70"><Text className="font-instrument-sans-
|
|
354
|
+
}} className="rounded-full bg-secondary px-3 py-1.5 active:opacity-70"><Text className="font-instrument-sans-medium text-sm" style={[textStyle("foreground", scheme), typeStyle("medium")]}>{item.action.label}</Text></Pressable> : null;
|
|
355
355
|
$[38] = item.action;
|
|
356
356
|
$[39] = item.id;
|
|
357
357
|
$[40] = scheme;
|
|
@@ -179,10 +179,10 @@ function RecordRow(t0) {
|
|
|
179
179
|
}
|
|
180
180
|
let t12;
|
|
181
181
|
if ($[21] !== glyph || $[22] !== largerText || $[23] !== mark || $[24] !== markColor) {
|
|
182
|
-
t12 = mark === "check" ? <IconCheck size={glyph} strokeWidth={3} color={markColor} /> : mark === "other" ? <IconPencil size={glyph} strokeWidth={3} color={markColor} /> : <Text className="font-instrument-sans-
|
|
182
|
+
t12 = mark === "check" ? <IconCheck size={glyph} strokeWidth={3} color={markColor} /> : mark === "other" ? <IconPencil size={glyph} strokeWidth={3} color={markColor} /> : <Text className="font-instrument-sans-medium" style={[{
|
|
183
183
|
fontSize: largerText ? 13 : 10,
|
|
184
184
|
color: markColor
|
|
185
|
-
}, typeStyle("
|
|
185
|
+
}, typeStyle("medium")]}>{mark}</Text>;
|
|
186
186
|
$[21] = glyph;
|
|
187
187
|
$[22] = largerText;
|
|
188
188
|
$[23] = mark;
|
package/dist/ai/card-button.jsx
CHANGED
|
@@ -96,11 +96,11 @@ export function CardButton(t0) {
|
|
|
96
96
|
t14 = $[14];
|
|
97
97
|
}
|
|
98
98
|
const T1 = Text;
|
|
99
|
-
const t15 = cn(size, "font-instrument-sans-
|
|
99
|
+
const t15 = cn(size, "font-instrument-sans-medium");
|
|
100
100
|
const t16 = sizeStyle(size);
|
|
101
101
|
let t17;
|
|
102
102
|
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
103
|
-
t17 = typeStyle("
|
|
103
|
+
t17 = typeStyle("medium");
|
|
104
104
|
$[15] = t17;
|
|
105
105
|
} else {
|
|
106
106
|
t17 = $[15];
|
|
@@ -59,7 +59,7 @@ export function ChoiceQuestion(t0) {
|
|
|
59
59
|
const buttonText = largerText ? "text-xl" : "text-sm";
|
|
60
60
|
let t6;
|
|
61
61
|
if ($[0] !== buttonText || $[1] !== buttonWeight || $[2] !== scheme) {
|
|
62
|
-
t6 = (text, variant) => buttonWeight === "medium" ? text : <Text className={`${buttonText} font-instrument-sans-
|
|
62
|
+
t6 = (text, variant) => buttonWeight === "medium" ? text : <Text className={`${buttonText} font-instrument-sans-medium`} style={[sizeStyle(buttonText), typeStyle("medium"), {
|
|
63
63
|
color: buttonColors(variant, scheme)?.color
|
|
64
64
|
}]}>{text}</Text>;
|
|
65
65
|
$[0] = buttonText;
|
|
@@ -214,7 +214,7 @@ export function ChoiceQuestion(t0) {
|
|
|
214
214
|
}
|
|
215
215
|
let t20;
|
|
216
216
|
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
217
|
-
t20 = typeStyle("
|
|
217
|
+
t20 = typeStyle("medium");
|
|
218
218
|
$[38] = t20;
|
|
219
219
|
} else {
|
|
220
220
|
t20 = $[38];
|
|
@@ -230,7 +230,7 @@ export function ChoiceQuestion(t0) {
|
|
|
230
230
|
}
|
|
231
231
|
let t22;
|
|
232
232
|
if ($[42] !== question.question || $[43] !== t21) {
|
|
233
|
-
t22 = <Text className="flex-1 font-instrument-sans-
|
|
233
|
+
t22 = <Text className="flex-1 font-instrument-sans-medium" style={t21}>{question.question}</Text>;
|
|
234
234
|
$[42] = question.question;
|
|
235
235
|
$[43] = t21;
|
|
236
236
|
$[44] = t22;
|
|
@@ -512,7 +512,7 @@ export function ChoiceQuestion(t0) {
|
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* The question's topic, the web `Badge variant="secondary"` with Eva's
|
|
515
|
-
* `text-3xs font-
|
|
515
|
+
* `text-3xs font-medium` (10 / 14, 600) in a `px-2.5 py-0.5` pill. Drawn here
|
|
516
516
|
* because `Badge` sets its own size and weight.
|
|
517
517
|
*/
|
|
518
518
|
export function TopicBadge(t0) {
|
|
@@ -553,7 +553,7 @@ export function TopicBadge(t0) {
|
|
|
553
553
|
}
|
|
554
554
|
let t6;
|
|
555
555
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
556
|
-
t6 = typeStyle("
|
|
556
|
+
t6 = typeStyle("medium");
|
|
557
557
|
$[6] = t6;
|
|
558
558
|
} else {
|
|
559
559
|
t6 = $[6];
|
|
@@ -568,7 +568,7 @@ export function TopicBadge(t0) {
|
|
|
568
568
|
}
|
|
569
569
|
let t8;
|
|
570
570
|
if ($[9] !== children || $[10] !== t7) {
|
|
571
|
-
t8 = <Text numberOfLines={1} className="font-instrument-sans-
|
|
571
|
+
t8 = <Text numberOfLines={1} className="font-instrument-sans-medium" style={t7}>{children}</Text>;
|
|
572
572
|
$[9] = children;
|
|
573
573
|
$[10] = t7;
|
|
574
574
|
$[11] = t8;
|
|
@@ -778,11 +778,11 @@ function ChoiceRow(t0) {
|
|
|
778
778
|
}
|
|
779
779
|
let t27;
|
|
780
780
|
if ($[58] !== glyph || $[59] !== largerText || $[60] !== mark || $[61] !== markText || $[62] !== muted || $[63] !== scheme || $[64] !== selected) {
|
|
781
|
-
t27 = selected ? <IconCheck size={glyph} strokeWidth={3} color={palette.primaryForeground[scheme]} /> : mark === "other" ? <IconPencil size={glyph} color={muted} /> : <Text className="font-instrument-sans-
|
|
781
|
+
t27 = selected ? <IconCheck size={glyph} strokeWidth={3} color={palette.primaryForeground[scheme]} /> : mark === "other" ? <IconPencil size={glyph} color={muted} /> : <Text className="font-instrument-sans-medium" style={[{
|
|
782
782
|
fontSize: markText,
|
|
783
783
|
lineHeight: largerText ? 20 : 16,
|
|
784
784
|
color: muted
|
|
785
|
-
}, trackingStyle(markText, "wide"), typeStyle("
|
|
785
|
+
}, trackingStyle(markText, "wide"), typeStyle("medium")]}>{mark}</Text>;
|
|
786
786
|
$[58] = glyph;
|
|
787
787
|
$[59] = largerText;
|
|
788
788
|
$[60] = mark;
|
|
@@ -215,7 +215,7 @@ export function MessageActionSheet(t0) {
|
|
|
215
215
|
t14 = $[59];
|
|
216
216
|
}
|
|
217
217
|
T0 = Text;
|
|
218
|
-
t7 = cn(body, "font-instrument-sans-
|
|
218
|
+
t7 = cn(body, "font-instrument-sans-medium");
|
|
219
219
|
t6 = sizeStyle(body);
|
|
220
220
|
$[3] = actions;
|
|
221
221
|
$[4] = cancelLabel;
|
|
@@ -286,7 +286,7 @@ export function MessageActionSheet(t0) {
|
|
|
286
286
|
}
|
|
287
287
|
let t28;
|
|
288
288
|
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
289
|
-
t28 = typeStyle("
|
|
289
|
+
t28 = typeStyle("medium");
|
|
290
290
|
$[60] = t28;
|
|
291
291
|
} else {
|
|
292
292
|
t28 = $[60];
|
|
@@ -49,11 +49,11 @@ export function MessageQuote(t0) {
|
|
|
49
49
|
if ($[3] !== author || $[4] !== color || $[5] !== largerText) {
|
|
50
50
|
const caption = chatTextSize("caption", largerText);
|
|
51
51
|
const body = chatTextSize("small", largerText);
|
|
52
|
-
const t6 = cn(caption, "font-instrument-sans-
|
|
52
|
+
const t6 = cn(caption, "font-instrument-sans-medium");
|
|
53
53
|
const t7 = sizeStyle(caption);
|
|
54
54
|
let t8;
|
|
55
55
|
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
-
t8 = typeStyle("
|
|
56
|
+
t8 = typeStyle("medium");
|
|
57
57
|
$[11] = t8;
|
|
58
58
|
} else {
|
|
59
59
|
t8 = $[11];
|
package/dist/ai/message.jsx
CHANGED
|
@@ -406,7 +406,7 @@ export function MessageBotLabel(t0) {
|
|
|
406
406
|
t9 = avatar;
|
|
407
407
|
T0 = Text;
|
|
408
408
|
t3 = 1;
|
|
409
|
-
t4 = cn(size, "font-instrument-sans-
|
|
409
|
+
t4 = cn(size, "font-instrument-sans-medium");
|
|
410
410
|
t2 = sizeStyle(size);
|
|
411
411
|
$[0] = avatar;
|
|
412
412
|
$[1] = className;
|
|
@@ -437,7 +437,7 @@ export function MessageBotLabel(t0) {
|
|
|
437
437
|
}
|
|
438
438
|
let t10;
|
|
439
439
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
440
|
-
t10 = typeStyle("
|
|
440
|
+
t10 = typeStyle("medium");
|
|
441
441
|
$[17] = t10;
|
|
442
442
|
} else {
|
|
443
443
|
t10 = $[17];
|
|
@@ -99,11 +99,11 @@ export function ReplyQuoteChip(t0) {
|
|
|
99
99
|
}
|
|
100
100
|
T1 = View;
|
|
101
101
|
t5 = "min-w-0 flex-1 py-2";
|
|
102
|
-
const t18 = cn(caption, "font-instrument-sans-
|
|
102
|
+
const t18 = cn(caption, "font-instrument-sans-medium");
|
|
103
103
|
const t19 = sizeStyle(caption);
|
|
104
104
|
let t20;
|
|
105
105
|
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
106
|
-
t20 = typeStyle("
|
|
106
|
+
t20 = typeStyle("medium");
|
|
107
107
|
$[33] = t20;
|
|
108
108
|
} else {
|
|
109
109
|
t20 = $[33];
|
|
@@ -77,7 +77,7 @@ function StatusPill(t0) {
|
|
|
77
77
|
t7 = $[19];
|
|
78
78
|
}
|
|
79
79
|
T0 = Text;
|
|
80
|
-
t2 = cn(caption, "font-instrument-sans-
|
|
80
|
+
t2 = cn(caption, "font-instrument-sans-medium");
|
|
81
81
|
t1 = sizeStyle(caption);
|
|
82
82
|
$[0] = largerText;
|
|
83
83
|
$[1] = scheme;
|
|
@@ -107,7 +107,7 @@ function StatusPill(t0) {
|
|
|
107
107
|
}
|
|
108
108
|
let t8;
|
|
109
109
|
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
110
|
-
t8 = typeStyle("
|
|
110
|
+
t8 = typeStyle("medium");
|
|
111
111
|
$[20] = t8;
|
|
112
112
|
} else {
|
|
113
113
|
t8 = $[20];
|
|
@@ -227,11 +227,11 @@ export function SubagentRunCard(t0) {
|
|
|
227
227
|
} else {
|
|
228
228
|
t10 = $[29];
|
|
229
229
|
}
|
|
230
|
-
const t11 = cn(body, "min-w-0 flex-1 font-instrument-sans-
|
|
230
|
+
const t11 = cn(body, "min-w-0 flex-1 font-instrument-sans-medium");
|
|
231
231
|
const t12 = sizeStyle(body);
|
|
232
232
|
let t13;
|
|
233
233
|
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
234
|
-
t13 = typeStyle("
|
|
234
|
+
t13 = typeStyle("medium");
|
|
235
235
|
$[30] = t13;
|
|
236
236
|
} else {
|
|
237
237
|
t13 = $[30];
|
|
@@ -434,11 +434,11 @@ export function SubagentResultCard(t0) {
|
|
|
434
434
|
} else {
|
|
435
435
|
t9 = $[26];
|
|
436
436
|
}
|
|
437
|
-
const t13 = cn(body, "min-w-0 flex-1 font-instrument-sans-
|
|
437
|
+
const t13 = cn(body, "min-w-0 flex-1 font-instrument-sans-medium");
|
|
438
438
|
const t14 = sizeStyle(body);
|
|
439
439
|
let t15;
|
|
440
440
|
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
441
|
-
t15 = typeStyle("
|
|
441
|
+
t15 = typeStyle("medium");
|
|
442
442
|
$[27] = t15;
|
|
443
443
|
} else {
|
|
444
444
|
t15 = $[27];
|
|
@@ -291,7 +291,7 @@ function ToolCardBase(t0) {
|
|
|
291
291
|
} else {
|
|
292
292
|
t34 = $[59];
|
|
293
293
|
}
|
|
294
|
-
return <View testID={testID} accessible={false} accessibilityLabel={`${heading}: ${toolName}`} className={t16} style={t21}><View className="flex-row items-center gap-2">{t24}<Text className={cn(caption, "font-instrument-sans-
|
|
294
|
+
return <View testID={testID} accessible={false} accessibilityLabel={`${heading}: ${toolName}`} className={t16} style={t21}><View className="flex-row items-center gap-2">{t24}<Text className={cn(caption, "font-instrument-sans-medium")} style={[sizeStyle(caption), typeStyle("medium"), textStyle("muted", scheme)]}>{pending ? "Sending decision\u2026" : heading}</Text></View>{showMeta ? meta ?? <Text testID={`${testID}-meta`} className={caption} style={[sizeStyle(caption), textStyle("muted", scheme)]}>{metaText}</Text> : null}{chrome}<Text testID={`${testID}-name`} numberOfLines={2} className={cn(body, "font-instrument-sans-medium")} style={[sizeStyle(body), typeStyle("medium"), textStyle("foreground", scheme)]}>{toolName}</Text>{target ? <Text testID={`${testID}-target`} className={small} style={[sizeStyle(small), textStyle("muted", scheme)]}>{`Target: ${target}`}</Text> : null}{hasFields ? edits ? <View testID={`${testID}-editor`} className="gap-2">{fields.map(field_2 => <View key={field_2.key} className="gap-1"><Text className={caption} style={[sizeStyle(caption), textStyle("muted", scheme)]}>{DRAFT_ROLE_LABELS[field_2.role]}</Text>{field_2.role === "body" ? <Textarea testID={`${testID}-field-${field_2.key}`} value={edits[field_2.key] ?? ""} onChangeText={value => setEdits({
|
|
295
295
|
...edits,
|
|
296
296
|
[field_2.key]: value
|
|
297
297
|
})} numberOfLines={8} accessibilityLabel={DRAFT_ROLE_LABELS[field_2.role]} /> : <Input testID={`${testID}-field-${field_2.key}`} value={edits[field_2.key] ?? ""} onChangeText={value_0 => setEdits({
|
package/dist/auth/AuthScreen.jsx
CHANGED
|
@@ -99,7 +99,7 @@ export function AuthScreen(t0) {
|
|
|
99
99
|
}
|
|
100
100
|
let t7;
|
|
101
101
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
-
t7 = typeStyle("
|
|
102
|
+
t7 = typeStyle("medium");
|
|
103
103
|
$[10] = t7;
|
|
104
104
|
} else {
|
|
105
105
|
t7 = $[10];
|
|
@@ -114,7 +114,7 @@ export function AuthScreen(t0) {
|
|
|
114
114
|
}
|
|
115
115
|
let t9;
|
|
116
116
|
if ($[13] !== t8 || $[14] !== title) {
|
|
117
|
-
t9 = <Text accessibilityRole="header" className="font-instrument-sans-
|
|
117
|
+
t9 = <Text accessibilityRole="header" className="font-instrument-sans-medium text-2xl" style={t8}>{title}</Text>;
|
|
118
118
|
$[13] = t8;
|
|
119
119
|
$[14] = title;
|
|
120
120
|
$[15] = t9;
|
|
@@ -108,14 +108,14 @@ function Section(t0) {
|
|
|
108
108
|
} = t0;
|
|
109
109
|
let t1;
|
|
110
110
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
|
-
t1 = typeStyle("
|
|
111
|
+
t1 = typeStyle("medium");
|
|
112
112
|
$[0] = t1;
|
|
113
113
|
} else {
|
|
114
114
|
t1 = $[0];
|
|
115
115
|
}
|
|
116
116
|
let t2;
|
|
117
117
|
if ($[1] !== title) {
|
|
118
|
-
t2 = <GalleryText accessibilityRole="header" className="font-instrument-sans-
|
|
118
|
+
t2 = <GalleryText accessibilityRole="header" className="font-instrument-sans-medium text-lg" style={t1}>{title}</GalleryText>;
|
|
119
119
|
$[1] = title;
|
|
120
120
|
$[2] = t2;
|
|
121
121
|
} else {
|
|
@@ -29,7 +29,7 @@ const TEXT_2XS = {
|
|
|
29
29
|
const FONT_CLASS = {
|
|
30
30
|
regular: "font-instrument-sans",
|
|
31
31
|
medium: "font-instrument-sans-medium",
|
|
32
|
-
semibold: "font-instrument-sans-
|
|
32
|
+
semibold: "font-instrument-sans-medium"
|
|
33
33
|
};
|
|
34
34
|
function Line(t0) {
|
|
35
35
|
const $ = _c(18);
|
|
@@ -357,7 +357,7 @@ export function MetricElement(t0) {
|
|
|
357
357
|
let t6;
|
|
358
358
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
359
359
|
t4 = sizeStyle("text-lg", "tight");
|
|
360
|
-
t5 = typeStyle("
|
|
360
|
+
t5 = typeStyle("medium");
|
|
361
361
|
t6 = ["tabular-nums"];
|
|
362
362
|
$[3] = t4;
|
|
363
363
|
$[4] = t5;
|
|
@@ -92,7 +92,7 @@ export function UpgradeToProCard(t0) {
|
|
|
92
92
|
}
|
|
93
93
|
let t7;
|
|
94
94
|
if ($[16] !== titleSize) {
|
|
95
|
-
t7 = cn("min-w-0 flex-1 font-instrument-sans-
|
|
95
|
+
t7 = cn("min-w-0 flex-1 font-instrument-sans-medium", titleSize);
|
|
96
96
|
$[16] = titleSize;
|
|
97
97
|
$[17] = t7;
|
|
98
98
|
} else {
|
|
@@ -116,7 +116,7 @@ export function UpgradeToProCard(t0) {
|
|
|
116
116
|
}
|
|
117
117
|
let t10;
|
|
118
118
|
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
119
|
-
t10 = typeStyle("
|
|
119
|
+
t10 = typeStyle("medium");
|
|
120
120
|
$[22] = t10;
|
|
121
121
|
} else {
|
|
122
122
|
t10 = $[22];
|
|
@@ -238,9 +238,9 @@ function ImageGrid(t0) {
|
|
|
238
238
|
height: "100%"
|
|
239
239
|
}} />{tile_1.overflow > 0 ? <View className="absolute inset-0 items-center justify-center" style={{
|
|
240
240
|
backgroundColor: withAlpha(tokens.color.black, 0.6)
|
|
241
|
-
}}><Text className="font-instrument-sans-
|
|
241
|
+
}}><Text className="font-instrument-sans-medium text-xl" style={[{
|
|
242
242
|
color: tokens.color.white
|
|
243
|
-
}, typeStyle("
|
|
243
|
+
}, typeStyle("medium")]}>{`+${tile_1.overflow}`}</Text></View> : null}</Pressable>;
|
|
244
244
|
};
|
|
245
245
|
$[10] = images;
|
|
246
246
|
$[11] = onOpen;
|
package/dist/motion.js
CHANGED
|
@@ -15,10 +15,11 @@ export const SHEET_SPRING = {
|
|
|
15
15
|
reduceMotion: ReduceMotion.System
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
/** A dragged sheet that springs home:
|
|
18
|
+
/** A dragged sheet that springs home: critically damped, no bounce. Add the release `velocity`. */
|
|
19
19
|
export const SHEET_SNAP_SPRING = {
|
|
20
20
|
duration: 300,
|
|
21
|
-
dampingRatio:
|
|
21
|
+
dampingRatio: 1,
|
|
22
|
+
overshootClamping: true,
|
|
22
23
|
reduceMotion: ReduceMotion.System
|
|
23
24
|
};
|
|
24
25
|
|
package/dist/primitives/card.jsx
CHANGED
|
@@ -98,7 +98,7 @@ const CardTitle = React.forwardRef((t0, ref) => {
|
|
|
98
98
|
}
|
|
99
99
|
let t1;
|
|
100
100
|
if ($[4] !== className) {
|
|
101
|
-
t1 = cn("font-instrument-sans-
|
|
101
|
+
t1 = cn("font-instrument-sans-medium leading-none", className);
|
|
102
102
|
$[4] = className;
|
|
103
103
|
$[5] = t1;
|
|
104
104
|
} else {
|
|
@@ -106,7 +106,7 @@ const CardTitle = React.forwardRef((t0, ref) => {
|
|
|
106
106
|
}
|
|
107
107
|
let t2;
|
|
108
108
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
109
|
-
t2 = typeStyle("
|
|
109
|
+
t2 = typeStyle("medium");
|
|
110
110
|
$[6] = t2;
|
|
111
111
|
} else {
|
|
112
112
|
t2 = $[6];
|
package/dist/primitives/text.jsx
CHANGED
|
@@ -11,23 +11,23 @@ const textVariants = cva(cn("text-foreground text-base", Platform.select({
|
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
default: "",
|
|
14
|
-
h1: cn("text-4xl font-instrument-sans-
|
|
14
|
+
h1: cn("text-4xl font-instrument-sans-medium tracking-tight", Platform.select({
|
|
15
15
|
web: "scroll-m-20"
|
|
16
16
|
})),
|
|
17
|
-
h2: cn("text-3xl font-instrument-sans-
|
|
17
|
+
h2: cn("text-3xl font-instrument-sans-medium tracking-tight border-border border-b pb-2", Platform.select({
|
|
18
18
|
web: "scroll-m-20"
|
|
19
19
|
})),
|
|
20
|
-
h3: cn("text-2xl font-instrument-sans-
|
|
20
|
+
h3: cn("text-2xl font-instrument-sans-medium tracking-tight", Platform.select({
|
|
21
21
|
web: "scroll-m-20"
|
|
22
22
|
})),
|
|
23
|
-
h4: cn("text-xl font-instrument-sans-
|
|
23
|
+
h4: cn("text-xl font-instrument-sans-medium tracking-tight", Platform.select({
|
|
24
24
|
web: "scroll-m-20"
|
|
25
25
|
})),
|
|
26
26
|
p: "leading-7",
|
|
27
27
|
blockquote: "border-l-2 border-border pl-4 italic",
|
|
28
|
-
code: "bg-muted rounded px-[0.3rem] py-[0.2rem] text-sm font-instrument-sans-
|
|
28
|
+
code: "bg-muted rounded px-[0.3rem] py-[0.2rem] text-sm font-instrument-sans-medium",
|
|
29
29
|
lead: "text-xl text-muted-foreground",
|
|
30
|
-
large: "text-lg font-instrument-sans-
|
|
30
|
+
large: "text-lg font-instrument-sans-medium",
|
|
31
31
|
small: "text-sm font-instrument-sans-medium",
|
|
32
32
|
muted: "text-sm text-muted-foreground"
|
|
33
33
|
}
|
|
@@ -58,14 +58,14 @@ const ARIA_LEVEL = {
|
|
|
58
58
|
// The weight of each variant's `font-instrument-sans-*` class, set as a style
|
|
59
59
|
// beside it (`typeStyle`): where an app maps every one of those classes to one
|
|
60
60
|
// family, the class alone draws Regular. Headings are semibold, as the web
|
|
61
|
-
// titles; `h1` was `font-
|
|
61
|
+
// titles; `h1` was `font-medium` before 0.3.13.
|
|
62
62
|
const WEIGHT = {
|
|
63
|
-
h1: typeStyle("
|
|
64
|
-
h2: typeStyle("
|
|
65
|
-
h3: typeStyle("
|
|
66
|
-
h4: typeStyle("
|
|
67
|
-
code: typeStyle("
|
|
68
|
-
large: typeStyle("
|
|
63
|
+
h1: typeStyle("medium"),
|
|
64
|
+
h2: typeStyle("medium"),
|
|
65
|
+
h3: typeStyle("medium"),
|
|
66
|
+
h4: typeStyle("medium"),
|
|
67
|
+
code: typeStyle("medium"),
|
|
68
|
+
large: typeStyle("medium"),
|
|
69
69
|
small: typeStyle("medium")
|
|
70
70
|
};
|
|
71
71
|
const TextClassContext = React.createContext(undefined);
|
|
@@ -8,10 +8,11 @@ import { useWebClickGuard } from "./web-click-guard";
|
|
|
8
8
|
// The toast drag on Gesture Handler: the track phase and the release run as
|
|
9
9
|
// worklets on the UI thread. The rules are plain worklets in `toastDrag`.
|
|
10
10
|
|
|
11
|
-
/** Back home after a short drag:
|
|
11
|
+
/** Back home after a short drag: critically damped, no bounce. */
|
|
12
12
|
const HOME_SPRING = {
|
|
13
13
|
duration: 250,
|
|
14
|
-
dampingRatio:
|
|
14
|
+
dampingRatio: 1,
|
|
15
|
+
overshootClamping: true,
|
|
15
16
|
reduceMotion: ReduceMotion.System
|
|
16
17
|
};
|
|
17
18
|
/** Away up the screen: no overshoot back into view. */
|
|
@@ -73,14 +73,14 @@ export function FromProjectV(t0) {
|
|
|
73
73
|
}
|
|
74
74
|
let t6;
|
|
75
75
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
76
|
-
t6 = typeStyle("
|
|
76
|
+
t6 = typeStyle("medium");
|
|
77
77
|
$[10] = t6;
|
|
78
78
|
} else {
|
|
79
79
|
t6 = $[10];
|
|
80
80
|
}
|
|
81
81
|
let t7;
|
|
82
82
|
if ($[11] !== t5) {
|
|
83
|
-
t7 = <Text className="text-sm font-instrument-sans-
|
|
83
|
+
t7 = <Text className="text-sm font-instrument-sans-medium" style={[t5, t6]}>Project V</Text>;
|
|
84
84
|
$[11] = t5;
|
|
85
85
|
$[12] = t7;
|
|
86
86
|
} else {
|
|
@@ -30,7 +30,7 @@ export function SettingsSection(t0) {
|
|
|
30
30
|
}
|
|
31
31
|
let t3;
|
|
32
32
|
if ($[2] !== scheme || $[3] !== title) {
|
|
33
|
-
t3 = typeof title === "string" ? <Text accessibilityRole="header" className="text-sm font-instrument-sans-
|
|
33
|
+
t3 = typeof title === "string" ? <Text accessibilityRole="header" className="text-sm font-instrument-sans-medium" style={[textStyle("foreground", scheme), sizeStyle("text-sm"), typeStyle("medium")]}>{title}</Text> : title;
|
|
34
34
|
$[2] = scheme;
|
|
35
35
|
$[3] = title;
|
|
36
36
|
$[4] = t3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { IconCheck, IconCircleHalf, IconDeviceDesktop, IconMoon, IconSun } from "@tabler/icons-react-native";
|
|
3
3
|
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
4
|
-
import Svg, {
|
|
4
|
+
import Svg, { Path, Rect } from "react-native-svg";
|
|
5
5
|
import { cn } from "../cn";
|
|
6
6
|
import { sizeStyle, typeStyle } from "../controlStyles";
|
|
7
7
|
import { palette, withAlpha } from "../palette";
|
|
@@ -28,7 +28,7 @@ const ICONS = {
|
|
|
28
28
|
/** Web `bg-zinc-900`. */
|
|
29
29
|
const ZINC_900 = "#18181b";
|
|
30
30
|
// Swatches and icons show the theme itself, so they use the web's fixed colours, not tokens.
|
|
31
|
-
// System has no swatch colour (it is a
|
|
31
|
+
// System has no swatch colour (it is a hard split) and a muted icon.
|
|
32
32
|
const SWATCHES = {
|
|
33
33
|
light: "#ffffff",
|
|
34
34
|
neutral: "#3f3f46",
|
|
@@ -41,12 +41,12 @@ const ICON_COLOURS = {
|
|
|
41
41
|
dark: "#93c5fd",
|
|
42
42
|
system: null
|
|
43
43
|
};
|
|
44
|
-
/** The
|
|
45
|
-
function
|
|
44
|
+
/** The System swatch: white with a hard diagonal half in zinc-900, no gradient. */
|
|
45
|
+
function SplitSwatch() {
|
|
46
46
|
const $ = _c(1);
|
|
47
47
|
let t0;
|
|
48
48
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
|
-
t0 = <Svg width="100%" height="100%"
|
|
49
|
+
t0 = <Svg width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none" style={StyleSheet.absoluteFill}><Rect width="1" height="1" fill="#ffffff" /><Path d="M1 0 L1 1 L0 1 Z" fill={ZINC_900} /></Svg>;
|
|
50
50
|
$[0] = t0;
|
|
51
51
|
} else {
|
|
52
52
|
t0 = $[0];
|
|
@@ -96,7 +96,7 @@ export function ThemeModePicker(t0) {
|
|
|
96
96
|
backgroundColor: active ? withAlpha(palette.primary[scheme], 0.08) : withAlpha(tokens.color.surfaceSecondary[scheme], 0.4)
|
|
97
97
|
}}><View className="mx-2 h-12 items-center justify-center self-stretch overflow-hidden rounded-2xl" style={swatch ? {
|
|
98
98
|
backgroundColor: swatch
|
|
99
|
-
} : undefined}>{swatch ? null : <
|
|
99
|
+
} : undefined}>{swatch ? null : <SplitSwatch />}<View className="absolute inset-0 items-center justify-center"><Icon size={22} color={ICON_COLOURS[mode] ?? tokens.color.muted[scheme]} /></View></View>{active ? <View className="absolute right-2 top-2 h-4 w-4 items-center justify-center rounded-full" style={{
|
|
100
100
|
backgroundColor: palette.primary[scheme]
|
|
101
101
|
}}><IconCheck size={10} strokeWidth={3} color={palette.primaryForeground[scheme]} /></View> : null}<Text numberOfLines={1} adjustsFontSizeToFit={true} className={cn("font-instrument-sans-medium", labelSize)} style={[sizeStyle(labelSize), typeStyle("medium"), {
|
|
102
102
|
color: active ? palette.primary[scheme] : tokens.color.muted[scheme]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/native-ui",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React Native / Expo UI primitives. Floating surfaces, forms, overlays, toasts, settings chrome, tab bar, AI chat parts, the family app marks, a NativeWind preset, the Expo web root and Clerk + Convex auth screens.",
|
|
6
6
|
"type": "module",
|