@agimon-ai/po-native-components 0.0.0-alpha.21 → 0.0.0-alpha.210

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.
Files changed (195) hide show
  1. package/LICENSE +21 -149
  2. package/README.md +9 -51
  3. package/dist/components/AgentAvatar.d.mts +19 -0
  4. package/dist/components/AgentAvatar.d.mts.map +1 -0
  5. package/dist/components/AgentAvatar.mjs +88 -0
  6. package/dist/components/AgentAvatar.mjs.map +1 -0
  7. package/dist/components/AnnotationSurface.d.mts +69 -0
  8. package/dist/components/AnnotationSurface.d.mts.map +1 -0
  9. package/dist/components/AnnotationSurface.mjs +431 -0
  10. package/dist/components/AnnotationSurface.mjs.map +1 -0
  11. package/dist/components/Badge.d.mts +1 -1
  12. package/dist/components/Badge.mjs +1 -1
  13. package/dist/components/Button.mjs +3 -3
  14. package/dist/components/Button.mjs.map +1 -1
  15. package/dist/components/CodeBlock.d.mts +3 -1
  16. package/dist/components/CodeBlock.d.mts.map +1 -1
  17. package/dist/components/CodeBlock.mjs +42 -47
  18. package/dist/components/CodeBlock.mjs.map +1 -1
  19. package/dist/components/ComputerRow.d.mts +15 -0
  20. package/dist/components/ComputerRow.d.mts.map +1 -0
  21. package/dist/components/ComputerRow.mjs +107 -0
  22. package/dist/components/ComputerRow.mjs.map +1 -0
  23. package/dist/components/CopyButton.d.mts +13 -0
  24. package/dist/components/CopyButton.d.mts.map +1 -0
  25. package/dist/components/CopyButton.mjs +49 -0
  26. package/dist/components/CopyButton.mjs.map +1 -0
  27. package/dist/components/CountBadge.d.mts +15 -0
  28. package/dist/components/CountBadge.d.mts.map +1 -0
  29. package/dist/components/CountBadge.mjs +49 -0
  30. package/dist/components/CountBadge.mjs.map +1 -0
  31. package/dist/components/CtaCard.d.mts +19 -0
  32. package/dist/components/CtaCard.d.mts.map +1 -0
  33. package/dist/components/CtaCard.mjs +92 -0
  34. package/dist/components/CtaCard.mjs.map +1 -0
  35. package/dist/components/Dialog.d.mts +2 -2
  36. package/dist/components/Dialog.d.mts.map +1 -1
  37. package/dist/components/Dialog.mjs +16 -10
  38. package/dist/components/Dialog.mjs.map +1 -1
  39. package/dist/components/Dot.d.mts +1 -1
  40. package/dist/components/Dot.mjs +2 -2
  41. package/dist/components/DropdownMenu.d.mts +3 -1
  42. package/dist/components/DropdownMenu.d.mts.map +1 -1
  43. package/dist/components/DropdownMenu.mjs +21 -14
  44. package/dist/components/DropdownMenu.mjs.map +1 -1
  45. package/dist/components/EmptyState.d.mts +31 -3
  46. package/dist/components/EmptyState.d.mts.map +1 -1
  47. package/dist/components/EmptyState.mjs +303 -29
  48. package/dist/components/EmptyState.mjs.map +1 -1
  49. package/dist/components/FileList.d.mts +48 -0
  50. package/dist/components/FileList.d.mts.map +1 -0
  51. package/dist/components/FileList.mjs +737 -0
  52. package/dist/components/FileList.mjs.map +1 -0
  53. package/dist/components/FilePreview.d.mts +33 -0
  54. package/dist/components/FilePreview.d.mts.map +1 -0
  55. package/dist/components/FilePreview.mjs +102 -0
  56. package/dist/components/FilePreview.mjs.map +1 -0
  57. package/dist/components/FileViewer.d.mts +57 -0
  58. package/dist/components/FileViewer.d.mts.map +1 -0
  59. package/dist/components/FileViewer.mjs +345 -0
  60. package/dist/components/FileViewer.mjs.map +1 -0
  61. package/dist/components/HashlineLines.d.mts +13 -0
  62. package/dist/components/HashlineLines.d.mts.map +1 -0
  63. package/dist/components/HashlineLines.mjs +153 -0
  64. package/dist/components/HashlineLines.mjs.map +1 -0
  65. package/dist/components/HostFilter.d.mts +17 -0
  66. package/dist/components/HostFilter.d.mts.map +1 -0
  67. package/dist/components/HostFilter.mjs +68 -0
  68. package/dist/components/HostFilter.mjs.map +1 -0
  69. package/dist/components/HostTag.d.mts +7 -0
  70. package/dist/components/HostTag.d.mts.map +1 -0
  71. package/dist/components/HostTag.mjs +48 -0
  72. package/dist/components/HostTag.mjs.map +1 -0
  73. package/dist/components/InfoStrip.d.mts +9 -0
  74. package/dist/components/InfoStrip.d.mts.map +1 -0
  75. package/dist/components/InfoStrip.mjs +53 -0
  76. package/dist/components/InfoStrip.mjs.map +1 -0
  77. package/dist/components/Input.d.mts +3 -1
  78. package/dist/components/Input.d.mts.map +1 -1
  79. package/dist/components/Input.mjs +4 -3
  80. package/dist/components/Input.mjs.map +1 -1
  81. package/dist/components/Label.mjs +1 -1
  82. package/dist/components/LinkText.d.mts +13 -0
  83. package/dist/components/LinkText.d.mts.map +1 -0
  84. package/dist/components/LinkText.mjs +32 -0
  85. package/dist/components/LinkText.mjs.map +1 -0
  86. package/dist/components/List.d.mts.map +1 -1
  87. package/dist/components/List.mjs +50 -11
  88. package/dist/components/List.mjs.map +1 -1
  89. package/dist/components/LiveDuration.d.mts +30 -0
  90. package/dist/components/LiveDuration.d.mts.map +1 -0
  91. package/dist/components/LiveDuration.mjs +67 -0
  92. package/dist/components/LiveDuration.mjs.map +1 -0
  93. package/dist/components/LoadingState.d.mts +17 -0
  94. package/dist/components/LoadingState.d.mts.map +1 -0
  95. package/dist/components/LoadingState.mjs +90 -0
  96. package/dist/components/LoadingState.mjs.map +1 -0
  97. package/dist/components/Markdown.d.mts +24 -2
  98. package/dist/components/Markdown.d.mts.map +1 -1
  99. package/dist/components/Markdown.mjs +356 -27
  100. package/dist/components/Markdown.mjs.map +1 -1
  101. package/dist/components/MessageItem.d.mts +10 -15
  102. package/dist/components/MessageItem.d.mts.map +1 -1
  103. package/dist/components/MessageItem.mjs +94 -68
  104. package/dist/components/MessageItem.mjs.map +1 -1
  105. package/dist/components/NativeShellState.d.mts +30 -0
  106. package/dist/components/NativeShellState.d.mts.map +1 -0
  107. package/dist/components/NativeShellState.mjs +61 -0
  108. package/dist/components/NativeShellState.mjs.map +1 -0
  109. package/dist/components/RailItem.d.mts +13 -0
  110. package/dist/components/RailItem.d.mts.map +1 -0
  111. package/dist/components/RailItem.mjs +61 -0
  112. package/dist/components/RailItem.mjs.map +1 -0
  113. package/dist/components/ReferenceChip.d.mts +18 -0
  114. package/dist/components/ReferenceChip.d.mts.map +1 -0
  115. package/dist/components/ReferenceChip.mjs +38 -0
  116. package/dist/components/ReferenceChip.mjs.map +1 -0
  117. package/dist/components/SectionLabel.mjs +1 -1
  118. package/dist/components/SeekBar.d.mts +17 -0
  119. package/dist/components/SeekBar.d.mts.map +1 -0
  120. package/dist/components/SeekBar.mjs +97 -0
  121. package/dist/components/SeekBar.mjs.map +1 -0
  122. package/dist/components/Select.d.mts +39 -0
  123. package/dist/components/Select.d.mts.map +1 -0
  124. package/dist/components/Select.mjs +288 -0
  125. package/dist/components/Select.mjs.map +1 -0
  126. package/dist/components/Sheet.d.mts +17 -2
  127. package/dist/components/Sheet.d.mts.map +1 -1
  128. package/dist/components/Sheet.mjs +34 -11
  129. package/dist/components/Sheet.mjs.map +1 -1
  130. package/dist/components/SheetFrame.mjs +149 -28
  131. package/dist/components/SheetFrame.mjs.map +1 -1
  132. package/dist/components/SheetList.d.mts +14 -0
  133. package/dist/components/SheetList.d.mts.map +1 -0
  134. package/dist/components/SheetList.mjs +34 -0
  135. package/dist/components/SheetList.mjs.map +1 -0
  136. package/dist/components/ShowMore.d.mts +10 -0
  137. package/dist/components/ShowMore.d.mts.map +1 -0
  138. package/dist/components/ShowMore.mjs +44 -0
  139. package/dist/components/ShowMore.mjs.map +1 -0
  140. package/dist/components/Spinner.d.mts +1 -1
  141. package/dist/components/StatusBadge.d.mts +1 -1
  142. package/dist/components/Switch.d.mts +14 -0
  143. package/dist/components/Switch.d.mts.map +1 -0
  144. package/dist/components/Switch.mjs +37 -0
  145. package/dist/components/Switch.mjs.map +1 -0
  146. package/dist/components/SyntaxLine.d.mts +19 -0
  147. package/dist/components/SyntaxLine.d.mts.map +1 -0
  148. package/dist/components/SyntaxLine.mjs +134 -0
  149. package/dist/components/SyntaxLine.mjs.map +1 -0
  150. package/dist/components/Tabs.d.mts.map +1 -1
  151. package/dist/components/Tabs.mjs +8 -7
  152. package/dist/components/Tabs.mjs.map +1 -1
  153. package/dist/components/ToolPathLink.d.mts +10 -0
  154. package/dist/components/ToolPathLink.d.mts.map +1 -0
  155. package/dist/components/ToolPathLink.mjs +42 -0
  156. package/dist/components/ToolPathLink.mjs.map +1 -0
  157. package/dist/components/ToolResultImage.d.mts +21 -0
  158. package/dist/components/ToolResultImage.d.mts.map +1 -0
  159. package/dist/components/ToolResultImage.mjs +60 -0
  160. package/dist/components/ToolResultImage.mjs.map +1 -0
  161. package/dist/icons/IconColorContext.d.mts +2 -1
  162. package/dist/icons/IconColorContext.d.mts.map +1 -1
  163. package/dist/icons/IconColorContext.mjs.map +1 -1
  164. package/dist/icons/iconGlyphs.d.mts +132 -0
  165. package/dist/icons/iconGlyphs.d.mts.map +1 -1
  166. package/dist/icons/iconGlyphs.mjs +132 -0
  167. package/dist/icons/iconGlyphs.mjs.map +1 -1
  168. package/dist/icons/icons.d.mts +133 -1
  169. package/dist/icons/icons.d.mts.map +1 -1
  170. package/dist/icons/icons.mjs +35 -2
  171. package/dist/icons/icons.mjs.map +1 -1
  172. package/dist/index.d.mts +31 -7
  173. package/dist/index.mjs +36 -12
  174. package/dist/lib/fileKindLabel.mjs +17 -0
  175. package/dist/lib/fileKindLabel.mjs.map +1 -0
  176. package/dist/lib/fonts.d.mts +3 -1
  177. package/dist/lib/fonts.d.mts.map +1 -1
  178. package/dist/lib/fonts.mjs +4 -2
  179. package/dist/lib/fonts.mjs.map +1 -1
  180. package/dist/lib/insideSheet.d.mts +10 -0
  181. package/dist/lib/insideSheet.d.mts.map +1 -0
  182. package/dist/lib/markdown.mjs +310 -23
  183. package/dist/lib/markdown.mjs.map +1 -1
  184. package/dist/lib/reading.mjs +60 -0
  185. package/dist/lib/reading.mjs.map +1 -0
  186. package/dist/lib/useControllable.mjs +14 -6
  187. package/dist/lib/useControllable.mjs.map +1 -1
  188. package/dist/lib/useReadingPage.mjs +33 -0
  189. package/dist/lib/useReadingPage.mjs.map +1 -0
  190. package/dist/po-runtime-identity.json +1 -0
  191. package/dist/shell.d.mts +6 -0
  192. package/dist/shell.mjs +7 -0
  193. package/locales/vi.json +112 -0
  194. package/locales/zh-CN.json +112 -0
  195. package/package.json +43 -30
@@ -0,0 +1,38 @@
1
+ import { Text } from "react-native-unistyles/components/native/Text";
2
+ import { StyleSheet } from "react-native-unistyles";
3
+ import { jsxs } from "react/jsx-runtime";
4
+
5
+ //#region src/components/ReferenceChip.tsx
6
+ /** Keeps the tint off the label's edges; nested Text takes no padding. */
7
+ const PAD = "\xA0";
8
+ /**
9
+ * An `@scheme:value` reference drawn inline in prose: a short label on a tint that opens what it
10
+ * names. It is Text all the way down, so it wraps with the sentence it sits in; a View, Pressable or
11
+ * icon inside Text does not lay out reliably on both platforms. The full reference stays the
12
+ * accessible name, so a shortened label never hides which file or session it is.
13
+ * ponytail: inline, so its target is the line height rather than 44 points, like any inline link.
14
+ */
15
+ function ReferenceChip({ label, reference, onOpen, onLongPress }) {
16
+ return /* @__PURE__ */ jsxs(Text, {
17
+ accessibilityRole: "link",
18
+ accessibilityLabel: reference,
19
+ onPress: onOpen,
20
+ onLongPress,
21
+ style: styles.chip,
22
+ children: [
23
+ PAD,
24
+ label,
25
+ PAD
26
+ ]
27
+ });
28
+ }
29
+ const styles = StyleSheet.create((theme) => ({ chip: {
30
+ backgroundColor: theme.colors.panel,
31
+ color: theme.colors.hi,
32
+ fontWeight: theme.fontWeight.medium,
33
+ uni__dependencies: [0]
34
+ } }));
35
+
36
+ //#endregion
37
+ export { ReferenceChip };
38
+ //# sourceMappingURL=ReferenceChip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReferenceChip.mjs","names":["StyleSheet","PAD","ReferenceChip","label","reference","onOpen","onLongPress","styles","chip","create","theme","backgroundColor","colors","panel","color","hi","fontWeight","medium","uni__dependencies"],"sources":["../../src/components/ReferenceChip.tsx"],"sourcesContent":["import { Text } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\n/** Keeps the tint off the label's edges; nested Text takes no padding. */\nconst PAD = '\\u00A0';\n\n/**\n * An `@scheme:value` reference drawn inline in prose: a short label on a tint that opens what it\n * names. It is Text all the way down, so it wraps with the sentence it sits in; a View, Pressable or\n * icon inside Text does not lay out reliably on both platforms. The full reference stays the\n * accessible name, so a shortened label never hides which file or session it is.\n * ponytail: inline, so its target is the line height rather than 44 points, like any inline link.\n */\nexport function ReferenceChip({\n label,\n reference,\n onOpen,\n onLongPress,\n}: {\n label: string;\n /** The reference as written, with its `@`, for the accessible name. */\n reference: string;\n onOpen: () => void;\n /** The surrounding text's long press, so holding the chip still reaches it. */\n onLongPress?: () => void;\n}) {\n return (\n <Text\n accessibilityRole=\"link\"\n accessibilityLabel={reference}\n onPress={onOpen}\n onLongPress={onLongPress}\n style={styles.chip}\n >\n {PAD}\n {label}\n {PAD}\n </Text>\n );\n}\n\nconst styles = StyleSheet.create((theme) => ({\n chip: {\n backgroundColor: theme.colors.panel,\n color: theme.colors.hi,\n fontWeight: theme.fontWeight.medium,\n },\n}));\n"],"mappings":";;;;;;AAIA,MAAMC,MAAM;;;;;;;;AASZ,SAAgBC,cAAc,EAC5BC,OACAC,WACAC,QACAC,eAQC;CACD,OACE,qBAAC,MAAD;EACE,mBAAkB;EAClB,oBAAoBF;EACpB,SAASC;EACIC;EACb,OAAOC,OAAOC;YALhB;GAOGP;GACAE;GACAF;EACG;;AAEV;AAEA,MAAMM,SAASP,WAAWS,QAAQC,WAAW,EAC3CF,MAAM;CACJG,iBAAiBD,MAAME,OAAOC;CAC9BC,OAAOJ,MAAME,OAAOG;CACpBC,YAAYN,MAAMM,WAAWC;CAAMC,mBAAA,CAAA,CAAA;AACrC,EACF,EAAE"}
@@ -1,6 +1,6 @@
1
1
  import { fontOf } from "../lib/fonts.mjs";
2
- import { StyleSheet } from "react-native-unistyles";
3
2
  import { Text } from "react-native-unistyles/components/native/Text";
3
+ import { StyleSheet } from "react-native-unistyles";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/SectionLabel.tsx
@@ -0,0 +1,17 @@
1
+ import { StyleProp, ViewStyle } from "react-native";
2
+ //#region src/components/SeekBar.d.ts
3
+ export interface SeekBarProps {
4
+ value: number;
5
+ max: number;
6
+ /** Called once, on release, with the chosen value. Dragging only moves the thumb. */
7
+ onSeek: (value: number) => void;
8
+ accessibilityLabel: string;
9
+ /** What screen readers announce for the current value, such as a clock time. */
10
+ valueText?: string;
11
+ disabled?: boolean;
12
+ style?: StyleProp<ViewStyle>;
13
+ }
14
+ /** A horizontal scrubber: tap or drag anywhere on the 44pt track to choose a position. */
15
+ export declare function SeekBar({ value, max, onSeek, accessibilityLabel, valueText, disabled, style }: SeekBarProps): import("react").JSX.Element;
16
+ //#endregion
17
+ //# sourceMappingURL=SeekBar.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeekBar.d.mts","names":[],"sources":["../../src/components/SeekBar.tsx"],"mappings":";;iBAQiB;EACf;EACA;;EAEA,SAAS;EACT;;EAEA;EACA;EACA,QAAQ,UAAU;;;wBAMJ,UAAU,OAAO,KAAK,QAAQ,oBAAoB,WAAW,UAAU,SAAS,+BAAY,IAAA"}
@@ -0,0 +1,97 @@
1
+ import { View } from "react-native-unistyles/components/native/View";
2
+ import { StyleSheet } from "react-native-unistyles";
3
+ import { useRef, useState } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+
6
+ //#region src/components/SeekBar.tsx
7
+ const MIN_TAP_TARGET = 44;
8
+ /** VoiceOver and TalkBack adjust by one twentieth of the range per swipe. */
9
+ const ACCESSIBILITY_STEPS = 20;
10
+ const clamp = (fraction) => Number.isFinite(fraction) ? Math.min(1, Math.max(0, fraction)) : 0;
11
+ /** A horizontal scrubber: tap or drag anywhere on the 44pt track to choose a position. */
12
+ function SeekBar({ value, max, onSeek, accessibilityLabel, valueText, disabled, style }) {
13
+ const width = useRef(0);
14
+ const origin = useRef(0);
15
+ const [dragging, setDragging] = useState();
16
+ const enabled = !disabled && Number.isFinite(max) && max > 0;
17
+ const fraction = dragging ?? (max > 0 ? clamp(value / max) : 0);
18
+ const at = (event) => width.current > 0 ? clamp((event.nativeEvent.pageX - origin.current) / width.current) : 0;
19
+ return /* @__PURE__ */ jsxs(View, {
20
+ accessible: true,
21
+ accessibilityRole: "adjustable",
22
+ accessibilityLabel,
23
+ accessibilityState: { disabled: !enabled },
24
+ accessibilityValue: enabled ? {
25
+ min: 0,
26
+ max,
27
+ now: value,
28
+ ...valueText ? { text: valueText } : {}
29
+ } : void 0,
30
+ accessibilityActions: enabled ? [{ name: "increment" }, { name: "decrement" }] : void 0,
31
+ onAccessibilityAction: ({ nativeEvent }) => {
32
+ const step = (nativeEvent.actionName === "increment" ? 1 : -1) * (max / ACCESSIBILITY_STEPS);
33
+ if (enabled) onSeek(Math.min(max, Math.max(0, value + step)));
34
+ },
35
+ style: [
36
+ styles.root,
37
+ !enabled && styles.disabled,
38
+ style
39
+ ],
40
+ onLayout: (event) => {
41
+ width.current = event.nativeEvent.layout.width;
42
+ },
43
+ onStartShouldSetResponder: () => enabled,
44
+ onMoveShouldSetResponder: () => enabled,
45
+ onResponderTerminationRequest: () => false,
46
+ onResponderGrant: (event) => {
47
+ origin.current = event.nativeEvent.pageX - event.nativeEvent.locationX;
48
+ setDragging(at(event));
49
+ },
50
+ onResponderMove: (event) => setDragging(at(event)),
51
+ onResponderRelease: (event) => {
52
+ setDragging(void 0);
53
+ onSeek(at(event) * max);
54
+ },
55
+ onResponderTerminate: () => setDragging(void 0),
56
+ children: [/* @__PURE__ */ jsx(View, {
57
+ pointerEvents: "none",
58
+ style: styles.track,
59
+ children: /* @__PURE__ */ jsx(View, { style: [styles.fill, { width: `${fraction * 100}%` }] })
60
+ }), /* @__PURE__ */ jsx(View, {
61
+ pointerEvents: "none",
62
+ style: [styles.thumb, { left: `${fraction * 100}%` }]
63
+ })]
64
+ });
65
+ }
66
+ const styles = StyleSheet.create((theme) => ({
67
+ root: {
68
+ height: MIN_TAP_TARGET,
69
+ justifyContent: "center"
70
+ },
71
+ disabled: { opacity: .4 },
72
+ track: {
73
+ height: 4,
74
+ borderRadius: theme.borderRadius.full,
75
+ backgroundColor: theme.colors.border,
76
+ overflow: "hidden",
77
+ uni__dependencies: [0]
78
+ },
79
+ fill: {
80
+ height: "100%",
81
+ backgroundColor: theme.colors.green,
82
+ uni__dependencies: [0]
83
+ },
84
+ thumb: {
85
+ position: "absolute",
86
+ width: 16,
87
+ height: 16,
88
+ marginLeft: -8,
89
+ borderRadius: theme.borderRadius.full,
90
+ backgroundColor: theme.colors.hi,
91
+ uni__dependencies: [0]
92
+ }
93
+ }));
94
+
95
+ //#endregion
96
+ export { SeekBar };
97
+ //# sourceMappingURL=SeekBar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeekBar.mjs","names":["useRef","useState","GestureResponderEvent","StyleProp","ViewStyle","StyleSheet","MIN_TAP_TARGET","ACCESSIBILITY_STEPS","SeekBarProps","value","max","onSeek","accessibilityLabel","valueText","disabled","style","clamp","fraction","Number","isFinite","Math","min","SeekBar","width","origin","dragging","setDragging","enabled","at","event","current","nativeEvent","pageX","now","text","undefined","name","step","actionName","styles","root","layout","locationX","track","fill","thumb","left","create","theme","height","justifyContent","opacity","borderRadius","full","backgroundColor","colors","border","overflow","uni__dependencies","green","position","marginLeft","hi"],"sources":["../../src/components/SeekBar.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport { type GestureResponderEvent, type StyleProp, View, type ViewStyle } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nconst MIN_TAP_TARGET = 44;\n/** VoiceOver and TalkBack adjust by one twentieth of the range per swipe. */\nconst ACCESSIBILITY_STEPS = 20;\n\nexport interface SeekBarProps {\n value: number;\n max: number;\n /** Called once, on release, with the chosen value. Dragging only moves the thumb. */\n onSeek: (value: number) => void;\n accessibilityLabel: string;\n /** What screen readers announce for the current value, such as a clock time. */\n valueText?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n}\n\nconst clamp = (fraction: number) => (Number.isFinite(fraction) ? Math.min(1, Math.max(0, fraction)) : 0);\n\n/** A horizontal scrubber: tap or drag anywhere on the 44pt track to choose a position. */\nexport function SeekBar({ value, max, onSeek, accessibilityLabel, valueText, disabled, style }: SeekBarProps) {\n const width = useRef(0);\n const origin = useRef(0);\n const [dragging, setDragging] = useState<number>();\n const enabled = !disabled && Number.isFinite(max) && max > 0;\n const fraction = dragging ?? (max > 0 ? clamp(value / max) : 0);\n // Children ignore touches, so pageX minus the grant's offset stays relative to this view as the finger moves.\n const at = (event: GestureResponderEvent) =>\n width.current > 0 ? clamp((event.nativeEvent.pageX - origin.current) / width.current) : 0;\n return (\n <View\n accessible\n accessibilityRole=\"adjustable\"\n accessibilityLabel={accessibilityLabel}\n accessibilityState={{ disabled: !enabled }}\n accessibilityValue={enabled ? { min: 0, max, now: value, ...(valueText ? { text: valueText } : {}) } : undefined}\n accessibilityActions={enabled ? [{ name: 'increment' }, { name: 'decrement' }] : undefined}\n onAccessibilityAction={({ nativeEvent }) => {\n const step = (nativeEvent.actionName === 'increment' ? 1 : -1) * (max / ACCESSIBILITY_STEPS);\n if (enabled) onSeek(Math.min(max, Math.max(0, value + step)));\n }}\n style={[styles.root, !enabled && styles.disabled, style]}\n onLayout={(event) => {\n width.current = event.nativeEvent.layout.width;\n }}\n onStartShouldSetResponder={() => enabled}\n onMoveShouldSetResponder={() => enabled}\n // Keep the drag when a parent scroll view or annotation surface asks for it.\n onResponderTerminationRequest={() => false}\n onResponderGrant={(event) => {\n origin.current = event.nativeEvent.pageX - event.nativeEvent.locationX;\n setDragging(at(event));\n }}\n onResponderMove={(event) => setDragging(at(event))}\n onResponderRelease={(event) => {\n setDragging(undefined);\n onSeek(at(event) * max);\n }}\n onResponderTerminate={() => setDragging(undefined)}\n >\n <View pointerEvents=\"none\" style={styles.track}>\n <View style={[styles.fill, { width: `${fraction * 100}%` }]} />\n </View>\n <View pointerEvents=\"none\" style={[styles.thumb, { left: `${fraction * 100}%` }]} />\n </View>\n );\n}\n\nconst styles = StyleSheet.create((theme) => ({\n root: { height: MIN_TAP_TARGET, justifyContent: 'center' },\n disabled: { opacity: 0.4 },\n track: { height: 4, borderRadius: theme.borderRadius.full, backgroundColor: theme.colors.border, overflow: 'hidden' },\n fill: { height: '100%', backgroundColor: theme.colors.green },\n thumb: {\n position: 'absolute',\n width: 16,\n height: 16,\n marginLeft: -8,\n borderRadius: theme.borderRadius.full,\n backgroundColor: theme.colors.hi,\n },\n}));\n"],"mappings":";;;;;;AAIA,MAAMM,iBAAiB;;AAEvB,MAAMC,sBAAsB;AAc5B,MAAMS,SAASC,aAAsBC,OAAOC,SAASF,QAAQ,IAAIG,KAAKC,IAAI,GAAGD,KAAKV,IAAI,GAAGO,QAAQ,CAAC,IAAI;;AAGtG,SAAgBK,QAAQ,EAAEb,OAAOC,KAAKC,QAAQC,oBAAoBC,WAAWC,UAAUC,SAAuB;CAC5G,MAAMQ,QAAQvB,OAAO,CAAC;CACtB,MAAMwB,SAASxB,OAAO,CAAC;CACvB,MAAM,CAACyB,UAAUC,eAAezB,SAAiB;CACjD,MAAM0B,UAAU,CAACb,YAAYI,OAAOC,SAAST,GAAG,KAAKA,MAAM;CAC3D,MAAMO,WAAWQ,aAAaf,MAAM,IAAIM,MAAMP,QAAQC,GAAG,IAAI;CAE7D,MAAMkB,MAAMC,UACVN,MAAMO,UAAU,IAAId,OAAOa,MAAME,YAAYC,QAAQR,OAAOM,WAAWP,MAAMO,OAAO,IAAI;CAC1F,OACE,qBAAC,MAAD;EACE;EACA,mBAAkB;EACElB;EACpB,oBAAoB,EAAEE,UAAU,CAACa,QAAQ;EACzC,oBAAoBA,UAAU;GAAEN,KAAK;GAAGX;GAAKuB,KAAKxB;GAAO,GAAII,YAAY,EAAEqB,MAAMrB,UAAU,IAAI,CAAC;EAAG,IAAIsB;EACvG,sBAAsBR,UAAU,CAAC,EAAES,MAAM,YAAY,GAAG,EAAEA,MAAM,YAAY,CAAC,IAAID;EACjF,wBAAwB,EAAEJ,kBAAkB;GA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AQK,iBAAiBN,MAAMO,OAAOI;EAAKD,mBAAA,CAAA,CAAA;CAAC;CAC5Db,OAAO;EACLe,UAAU;EACVrC,OAAO;EACP0B,QAAQ;EACRY,YAAY;EACZT,cAAcJ,MAAMI,aAAaC;EACjCC,iBAAiBN,MAAMO,OAAOO;EAAEJ,mBAAA,CAAA,CAAA;CAClC;AACF,EAAE"}
@@ -0,0 +1,39 @@
1
+ import { StyleProp, ViewStyle } from "react-native";
2
+ //#region src/components/Select.d.ts
3
+ export interface SelectOption {
4
+ value: string;
5
+ label: string;
6
+ /** Options sharing a group sit under one heading, in the order the groups first appear. */
7
+ group?: string;
8
+ /** A quieter line under the label. */
9
+ detail?: string;
10
+ }
11
+ export interface SelectProps {
12
+ options: readonly SelectOption[];
13
+ /** The chosen value; unset or unknown shows the placeholder. */
14
+ value?: string;
15
+ onValueChange: (value: string) => void;
16
+ /** The sheet's heading and the trigger's accessible name, such as "Narration engine". */
17
+ title: string;
18
+ placeholder?: string;
19
+ /** Offer a way back to no value, such as "Use the default". Shown only with onClear. */
20
+ clearLabel?: string;
21
+ onClear?: () => void;
22
+ disabled?: boolean;
23
+ /** Shows a search field over a long list, such as "Search profiles". */
24
+ searchPlaceholder?: string;
25
+ /** Each option leads with initials, as people and agents do. */
26
+ avatars?: boolean;
27
+ /** A reload button in the sheet's header, for options read from elsewhere. */
28
+ onRefresh?: () => void;
29
+ /** Start with the sheet up, as a story shows it. */
30
+ defaultOpen?: boolean;
31
+ style?: StyleProp<ViewStyle>;
32
+ }
33
+ /**
34
+ * The web Select as a phone picker: the current value and a chevron, which open a bottom sheet of
35
+ * the options, grouped, with a tick on the chosen one. Choosing ticks once and closes the sheet.
36
+ */
37
+ export declare function Select({ options, value, onValueChange, title, placeholder: placeholderProp, clearLabel, onClear, disabled, searchPlaceholder, avatars, onRefresh, defaultOpen, style }: SelectProps): import("react").JSX.Element;
38
+ //#endregion
39
+ //# sourceMappingURL=Select.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.mts","names":[],"sources":["../../src/components/Select.tsx"],"mappings":";;iBAkBiB;EACf;EACA;;EAEA;;EAEA;;iBAGe;EACf,kBAAkB;;EAElB;EACA,gBAAgB;;EAEhB;EACA;;EAEA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,QAAQ,UAAU;;;;;;wBAOJ,SACd,SACA,OACA,eACA,OACA,aAAa,iBACb,YACA,SACA,UACA,mBACA,SACA,WACA,aACA,SACC,8BAAW,IAAA"}
@@ -0,0 +1,288 @@
1
+ import { fontOf } from "../lib/fonts.mjs";
2
+ import { AgentAvatar } from "./AgentAvatar.mjs";
3
+ import { selectionTick } from "../lib/haptics.mjs";
4
+ import { Button } from "./Button.mjs";
5
+ import { CheckIcon, ChevronDownIcon, RefreshIcon, SearchIcon } from "../icons/icons.mjs";
6
+ import { SheetFrame } from "./SheetFrame.mjs";
7
+ import { Input } from "./Input.mjs";
8
+ import { View } from "react-native-unistyles/components/native/View";
9
+ import { Text } from "react-native-unistyles/components/native/Text";
10
+ import { StyleSheet } from "react-native-unistyles";
11
+ import { useState } from "react";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
+ import { Pressable } from "react-native-unistyles/components/native/Pressable";
14
+ import { useT } from "@agimon-ai/po-core/native";
15
+
16
+ //#region src/components/Select.tsx
17
+ const MIN_ROW_HEIGHT = 44;
18
+ const DISABLED_OPACITY = .4;
19
+ /** A long value gives way to the row's title rather than pushing it off screen. */
20
+ const MAX_VALUE_WIDTH = 180;
21
+ /**
22
+ * The web Select as a phone picker: the current value and a chevron, which open a bottom sheet of
23
+ * the options, grouped, with a tick on the chosen one. Choosing ticks once and closes the sheet.
24
+ */
25
+ function Select({ options, value, onValueChange, title, placeholder: placeholderProp, clearLabel, onClear, disabled = false, searchPlaceholder, avatars = false, onRefresh, defaultOpen = false, style }) {
26
+ const t = useT();
27
+ const placeholder = placeholderProp ?? t("nativeComponents.select.placeholder", "Choose");
28
+ const [open, setOpen] = useState(defaultOpen);
29
+ const [query, setQuery] = useState("");
30
+ const close = () => {
31
+ setOpen(false);
32
+ setQuery("");
33
+ };
34
+ const chosen = options.find((option) => option.value === value);
35
+ const needle = query.trim().toLowerCase();
36
+ const shown = needle ? options.filter((option) => `${option.label} ${option.detail ?? ""}`.toLowerCase().includes(needle)) : options;
37
+ const groups = [...new Set(shown.map((option) => option.group))];
38
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Pressable, {
39
+ accessibilityRole: "button",
40
+ accessibilityLabel: title,
41
+ accessibilityValue: { text: chosen?.label ?? placeholder },
42
+ accessibilityState: {
43
+ disabled,
44
+ expanded: open
45
+ },
46
+ disabled,
47
+ hitSlop: 8,
48
+ onPress: () => setOpen(true),
49
+ style: ({ pressed }) => [
50
+ styles.trigger,
51
+ pressed && styles.pressed,
52
+ disabled && styles.disabled,
53
+ style
54
+ ],
55
+ children: [/* @__PURE__ */ jsx(Text, {
56
+ numberOfLines: 1,
57
+ style: chosen ? styles.value : styles.placeholder,
58
+ children: chosen?.label ?? placeholder
59
+ }), /* @__PURE__ */ jsx(ChevronDownIcon, {
60
+ size: 14,
61
+ color: "faint"
62
+ })]
63
+ }), /* @__PURE__ */ jsx(SheetFrame, {
64
+ open,
65
+ onClose: close,
66
+ children: /* @__PURE__ */ jsxs(View, {
67
+ style: styles.sheet,
68
+ children: [
69
+ /* @__PURE__ */ jsxs(View, {
70
+ style: styles.head,
71
+ children: [/* @__PURE__ */ jsx(Text, {
72
+ accessibilityRole: "header",
73
+ style: styles.title,
74
+ children: title
75
+ }), onRefresh === void 0 ? null : /* @__PURE__ */ jsx(Button, {
76
+ variant: "ghost",
77
+ size: "icon-md",
78
+ accessibilityLabel: t("nativeComponents.select.reload", "Reload {title}", { title }),
79
+ onPress: onRefresh,
80
+ children: /* @__PURE__ */ jsx(RefreshIcon, { size: 18 })
81
+ })]
82
+ }),
83
+ searchPlaceholder === void 0 ? null : /* @__PURE__ */ jsxs(View, { children: [/* @__PURE__ */ jsx(Input, {
84
+ value: query,
85
+ onChangeText: setQuery,
86
+ placeholder: searchPlaceholder,
87
+ accessibilityLabel: searchPlaceholder,
88
+ autoCapitalize: "none",
89
+ returnKeyType: "search",
90
+ style: styles.search
91
+ }), /* @__PURE__ */ jsx(View, {
92
+ pointerEvents: "none",
93
+ style: styles.searchIcon,
94
+ children: /* @__PURE__ */ jsx(SearchIcon, {
95
+ size: 16,
96
+ color: "faint"
97
+ })
98
+ })] }),
99
+ needle && shown.length === 0 ? /* @__PURE__ */ jsx(Text, {
100
+ style: styles.detail,
101
+ children: t("nativeComponents.select.noMatches", "No matches.")
102
+ }) : null,
103
+ groups.map((group) => /* @__PURE__ */ jsxs(View, {
104
+ accessibilityRole: "radiogroup",
105
+ style: styles.group,
106
+ children: [group === void 0 ? null : /* @__PURE__ */ jsx(Text, {
107
+ style: styles.groupLabel,
108
+ children: group
109
+ }), /* @__PURE__ */ jsx(View, {
110
+ style: styles.card,
111
+ children: shown.filter((option) => option.group === group).map((option, index, rows) => {
112
+ const selected = option.value === value;
113
+ return /* @__PURE__ */ jsxs(Pressable, {
114
+ accessibilityRole: "radio",
115
+ accessibilityState: { checked: selected },
116
+ onPress: () => {
117
+ selectionTick();
118
+ close();
119
+ if (!selected) onValueChange(option.value);
120
+ },
121
+ style: ({ pressed }) => [
122
+ styles.option,
123
+ index < rows.length - 1 && styles.divider,
124
+ pressed && styles.pressed
125
+ ],
126
+ children: [
127
+ avatars ? /* @__PURE__ */ jsx(AgentAvatar, {
128
+ name: option.label,
129
+ seed: option.value
130
+ }) : null,
131
+ /* @__PURE__ */ jsxs(View, {
132
+ style: styles.optionText,
133
+ children: [/* @__PURE__ */ jsx(Text, {
134
+ style: [styles.optionLabel, selected && styles.selected],
135
+ children: option.label
136
+ }), option.detail ? /* @__PURE__ */ jsx(Text, {
137
+ style: styles.detail,
138
+ children: option.detail
139
+ }) : null]
140
+ }),
141
+ /* @__PURE__ */ jsx(View, {
142
+ style: styles.tick,
143
+ children: selected ? /* @__PURE__ */ jsx(CheckIcon, {
144
+ size: 18,
145
+ color: "green"
146
+ }) : null
147
+ })
148
+ ]
149
+ }, option.value);
150
+ })
151
+ })]
152
+ }, group ?? "")),
153
+ onClear === void 0 ? null : /* @__PURE__ */ jsx(Button, {
154
+ variant: "ghost",
155
+ size: "md",
156
+ onPress: () => {
157
+ close();
158
+ onClear();
159
+ },
160
+ children: clearLabel ?? t("nativeComponents.select.clear", "Clear")
161
+ })
162
+ ]
163
+ })
164
+ })] });
165
+ }
166
+ const styles = StyleSheet.create((theme) => {
167
+ const text = (size) => ({
168
+ fontFamily: fontOf(theme.fontFamily.sans),
169
+ fontSize: theme.fontSize[size],
170
+ lineHeight: theme.lineHeight[size]
171
+ });
172
+ return {
173
+ trigger: {
174
+ flexDirection: "row",
175
+ alignItems: "center",
176
+ gap: theme.spacing(1.5),
177
+ minHeight: MIN_ROW_HEIGHT,
178
+ borderRadius: theme.borderRadius.md,
179
+ uni__dependencies: [0]
180
+ },
181
+ pressed: { opacity: .6 },
182
+ disabled: { opacity: DISABLED_OPACITY },
183
+ value: {
184
+ ...text("sm"),
185
+ color: theme.colors.text,
186
+ maxWidth: MAX_VALUE_WIDTH,
187
+ uni__dependencies: [0]
188
+ },
189
+ placeholder: {
190
+ ...text("sm"),
191
+ color: theme.colors.faint,
192
+ maxWidth: MAX_VALUE_WIDTH,
193
+ uni__dependencies: [0]
194
+ },
195
+ sheet: {
196
+ gap: theme.spacing(4),
197
+ paddingHorizontal: theme.spacing(5),
198
+ paddingTop: theme.spacing(1),
199
+ paddingBottom: theme.spacing(4),
200
+ uni__dependencies: [0]
201
+ },
202
+ head: {
203
+ flexDirection: "row",
204
+ alignItems: "center",
205
+ justifyContent: "space-between",
206
+ minHeight: MIN_ROW_HEIGHT
207
+ },
208
+ title: {
209
+ ...text("lg"),
210
+ color: theme.colors.hi,
211
+ fontWeight: theme.fontWeight.semibold,
212
+ uni__dependencies: [0]
213
+ },
214
+ search: {
215
+ paddingLeft: theme.spacing(9),
216
+ uni__dependencies: [0]
217
+ },
218
+ searchIcon: {
219
+ position: "absolute",
220
+ left: theme.spacing(3),
221
+ top: 0,
222
+ bottom: 0,
223
+ justifyContent: "center",
224
+ uni__dependencies: [0]
225
+ },
226
+ group: {
227
+ gap: theme.spacing(2),
228
+ uni__dependencies: [0]
229
+ },
230
+ groupLabel: {
231
+ ...text("sm"),
232
+ color: theme.colors.dim,
233
+ fontWeight: theme.fontWeight.semibold,
234
+ uni__dependencies: [0]
235
+ },
236
+ card: {
237
+ overflow: "hidden",
238
+ borderRadius: theme.borderRadius.lg,
239
+ borderWidth: StyleSheet.hairlineWidth,
240
+ borderColor: theme.colors.border,
241
+ backgroundColor: theme.colors.panel,
242
+ uni__dependencies: [0]
243
+ },
244
+ option: {
245
+ flexDirection: "row",
246
+ alignItems: "flex-start",
247
+ gap: theme.spacing(3),
248
+ minHeight: MIN_ROW_HEIGHT,
249
+ paddingHorizontal: theme.spacing(4),
250
+ paddingVertical: theme.spacing(3),
251
+ uni__dependencies: [0]
252
+ },
253
+ divider: {
254
+ borderBottomWidth: StyleSheet.hairlineWidth,
255
+ borderBottomColor: theme.colors["border-soft"],
256
+ uni__dependencies: [0]
257
+ },
258
+ optionText: {
259
+ flex: 1,
260
+ minWidth: 0,
261
+ gap: 2
262
+ },
263
+ optionLabel: {
264
+ ...text("base"),
265
+ color: theme.colors.hi,
266
+ fontWeight: theme.fontWeight.medium,
267
+ uni__dependencies: [0]
268
+ },
269
+ selected: {
270
+ color: theme.colors.green,
271
+ uni__dependencies: [0]
272
+ },
273
+ detail: {
274
+ ...text("sm"),
275
+ color: theme.colors.dim,
276
+ lineHeight: theme.lineHeightRelaxed.sm,
277
+ uni__dependencies: [0]
278
+ },
279
+ tick: {
280
+ width: 18,
281
+ paddingTop: 2
282
+ }
283
+ };
284
+ });
285
+
286
+ //#endregion
287
+ export { Select };
288
+ //# sourceMappingURL=Select.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.mjs","names":["useT","useState","StyleProp","ViewStyle","StyleSheet","CheckIcon","ChevronDownIcon","RefreshIcon","SearchIcon","fontOf","selectionTick","AgentAvatar","Button","Input","SheetFrame","MIN_ROW_HEIGHT","DISABLED_OPACITY","MAX_VALUE_WIDTH","SelectOption","value","label","group","detail","SelectProps","options","onValueChange","title","placeholder","clearLabel","onClear","disabled","searchPlaceholder","avatars","onRefresh","defaultOpen","style","Select","placeholderProp","t","open","setOpen","query","setQuery","close","chosen","find","option","needle","trim","toLowerCase","shown","filter","includes","groups","Set","map","text","expanded","pressed","styles","trigger","sheet","head","undefined","search","searchIcon","length","groupLabel","card","index","rows","selected","checked","divider","optionText","optionLabel","tick","create","theme","size","fontFamily","sans","fontSize","lineHeight","flexDirection","alignItems","gap","spacing","minHeight","borderRadius","md","uni__dependencies","opacity","color","colors","maxWidth","faint","paddingHorizontal","paddingTop","paddingBottom","justifyContent","hi","fontWeight","semibold","paddingLeft","position","left","top","bottom","dim","overflow","lg","borderWidth","hairlineWidth","borderColor","border","backgroundColor","panel","paddingVertical","borderBottomWidth","borderBottomColor","flex","minWidth","medium","green","lineHeightRelaxed","sm","width"],"sources":["../../src/components/Select.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/native';\nimport { useState } from 'react';\nimport { Pressable, type StyleProp, Text, View, type ViewStyle } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { CheckIcon, ChevronDownIcon, RefreshIcon, SearchIcon } from '../icons/icons';\nimport { fontOf } from '../lib/fonts';\nimport { selectionTick } from '../lib/haptics';\nimport { AgentAvatar } from './AgentAvatar';\nimport { Button } from './Button';\nimport { Input } from './Input';\nimport { SheetFrame } from './SheetFrame';\n\nconst MIN_ROW_HEIGHT = 44;\nconst DISABLED_OPACITY = 0.4;\n/** A long value gives way to the row's title rather than pushing it off screen. */\nconst MAX_VALUE_WIDTH = 180;\n\nexport interface SelectOption {\n value: string;\n label: string;\n /** Options sharing a group sit under one heading, in the order the groups first appear. */\n group?: string;\n /** A quieter line under the label. */\n detail?: string;\n}\n\nexport interface SelectProps {\n options: readonly SelectOption[];\n /** The chosen value; unset or unknown shows the placeholder. */\n value?: string;\n onValueChange: (value: string) => void;\n /** The sheet's heading and the trigger's accessible name, such as \"Narration engine\". */\n title: string;\n placeholder?: string;\n /** Offer a way back to no value, such as \"Use the default\". Shown only with onClear. */\n clearLabel?: string;\n onClear?: () => void;\n disabled?: boolean;\n /** Shows a search field over a long list, such as \"Search profiles\". */\n searchPlaceholder?: string;\n /** Each option leads with initials, as people and agents do. */\n avatars?: boolean;\n /** A reload button in the sheet's header, for options read from elsewhere. */\n onRefresh?: () => void;\n /** Start with the sheet up, as a story shows it. */\n defaultOpen?: boolean;\n style?: StyleProp<ViewStyle>;\n}\n\n/**\n * The web Select as a phone picker: the current value and a chevron, which open a bottom sheet of\n * the options, grouped, with a tick on the chosen one. Choosing ticks once and closes the sheet.\n */\nexport function Select({\n options,\n value,\n onValueChange,\n title,\n placeholder: placeholderProp,\n clearLabel,\n onClear,\n disabled = false,\n searchPlaceholder,\n avatars = false,\n onRefresh,\n defaultOpen = false,\n style,\n}: SelectProps) {\n const t = useT();\n const placeholder = placeholderProp ?? t('nativeComponents.select.placeholder', 'Choose');\n const [open, setOpen] = useState(defaultOpen);\n const [query, setQuery] = useState('');\n const close = () => {\n setOpen(false);\n setQuery('');\n };\n const chosen = options.find((option) => option.value === value);\n const needle = query.trim().toLowerCase();\n const shown = needle\n ? options.filter((option) => `${option.label} ${option.detail ?? ''}`.toLowerCase().includes(needle))\n : options;\n const groups = [...new Set(shown.map((option) => option.group))];\n return (\n <>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={title}\n accessibilityValue={{ text: chosen?.label ?? placeholder }}\n accessibilityState={{ disabled, expanded: open }}\n disabled={disabled}\n hitSlop={8}\n onPress={() => setOpen(true)}\n style={({ pressed }) => [styles.trigger, pressed && styles.pressed, disabled && styles.disabled, style]}\n >\n <Text numberOfLines={1} style={chosen ? styles.value : styles.placeholder}>\n {chosen?.label ?? placeholder}\n </Text>\n <ChevronDownIcon size={14} color=\"faint\" />\n </Pressable>\n <SheetFrame open={open} onClose={close}>\n <View style={styles.sheet}>\n <View style={styles.head}>\n <Text accessibilityRole=\"header\" style={styles.title}>\n {title}\n </Text>\n {onRefresh === undefined ? null : (\n <Button\n variant=\"ghost\"\n size=\"icon-md\"\n accessibilityLabel={t('nativeComponents.select.reload', 'Reload {title}', { title })}\n onPress={onRefresh}\n >\n <RefreshIcon size={18} />\n </Button>\n )}\n </View>\n {searchPlaceholder === undefined ? null : (\n <View>\n <Input\n value={query}\n onChangeText={setQuery}\n placeholder={searchPlaceholder}\n accessibilityLabel={searchPlaceholder}\n autoCapitalize=\"none\"\n returnKeyType=\"search\"\n style={styles.search}\n />\n <View pointerEvents=\"none\" style={styles.searchIcon}>\n <SearchIcon size={16} color=\"faint\" />\n </View>\n </View>\n )}\n {needle && shown.length === 0 ? (\n <Text style={styles.detail}>{t('nativeComponents.select.noMatches', 'No matches.')}</Text>\n ) : null}\n {groups.map((group) => (\n <View key={group ?? ''} accessibilityRole=\"radiogroup\" style={styles.group}>\n {group === undefined ? null : <Text style={styles.groupLabel}>{group}</Text>}\n <View style={styles.card}>\n {shown\n .filter((option) => option.group === group)\n .map((option, index, rows) => {\n const selected = option.value === value;\n return (\n <Pressable\n key={option.value}\n accessibilityRole=\"radio\"\n accessibilityState={{ checked: selected }}\n onPress={() => {\n selectionTick();\n close();\n if (!selected) onValueChange(option.value);\n }}\n style={({ pressed }) => [\n styles.option,\n index < rows.length - 1 && styles.divider,\n pressed && styles.pressed,\n ]}\n >\n {avatars ? <AgentAvatar name={option.label} seed={option.value} /> : null}\n <View style={styles.optionText}>\n <Text style={[styles.optionLabel, selected && styles.selected]}>{option.label}</Text>\n {option.detail ? <Text style={styles.detail}>{option.detail}</Text> : null}\n </View>\n <View style={styles.tick}>{selected ? <CheckIcon size={18} color=\"green\" /> : null}</View>\n </Pressable>\n );\n })}\n </View>\n </View>\n ))}\n {onClear === undefined ? null : (\n <Button\n variant=\"ghost\"\n size=\"md\"\n onPress={() => {\n close();\n onClear();\n }}\n >\n {clearLabel ?? t('nativeComponents.select.clear', 'Clear')}\n </Button>\n )}\n </View>\n </SheetFrame>\n </>\n );\n}\n\nconst styles = StyleSheet.create((theme) => {\n const text = (size: 'sm' | 'base' | 'lg') => ({\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize[size],\n lineHeight: theme.lineHeight[size],\n });\n return {\n trigger: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.spacing(1.5),\n minHeight: MIN_ROW_HEIGHT,\n borderRadius: theme.borderRadius.md,\n },\n pressed: { opacity: 0.6 },\n disabled: { opacity: DISABLED_OPACITY },\n value: { ...text('sm'), color: theme.colors.text, maxWidth: MAX_VALUE_WIDTH },\n placeholder: { ...text('sm'), color: theme.colors.faint, maxWidth: MAX_VALUE_WIDTH },\n sheet: {\n gap: theme.spacing(4),\n paddingHorizontal: theme.spacing(5),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(4),\n },\n head: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', minHeight: MIN_ROW_HEIGHT },\n title: { ...text('lg'), color: theme.colors.hi, fontWeight: theme.fontWeight.semibold },\n search: { paddingLeft: theme.spacing(9) },\n searchIcon: { position: 'absolute', left: theme.spacing(3), top: 0, bottom: 0, justifyContent: 'center' },\n group: { gap: theme.spacing(2) },\n groupLabel: { ...text('sm'), color: theme.colors.dim, fontWeight: theme.fontWeight.semibold },\n card: {\n overflow: 'hidden',\n borderRadius: theme.borderRadius.lg,\n borderWidth: StyleSheet.hairlineWidth,\n borderColor: theme.colors.border,\n backgroundColor: theme.colors.panel,\n },\n option: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n gap: theme.spacing(3),\n minHeight: MIN_ROW_HEIGHT,\n paddingHorizontal: theme.spacing(4),\n paddingVertical: theme.spacing(3),\n },\n divider: { borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: theme.colors['border-soft'] },\n optionText: { flex: 1, minWidth: 0, gap: 2 },\n optionLabel: { ...text('base'), color: theme.colors.hi, fontWeight: theme.fontWeight.medium },\n selected: { color: theme.colors.green },\n detail: { ...text('sm'), color: theme.colors.dim, lineHeight: theme.lineHeightRelaxed.sm },\n tick: { width: 18, paddingTop: 2 },\n };\n});\n"],"mappings":";;;;;;;;;;;;;;;;AAaA,MAAMe,iBAAiB;AACvB,MAAMC,mBAAmB;;AAEzB,MAAMC,kBAAkB;;;;;AAsCxB,SAAgBmB,OAAO,EACrBZ,SACAL,OACAM,eACAC,OACAC,aAAaU,iBACbT,YACAC,SACAC,WAAW,OACXC,mBACAC,UAAU,OACVC,WACAC,cAAc,OACdC,SACc;CACd,MAAMG,IAAItC,KAAK;CACf,MAAM2B,cAAcU,mBAAmBC,EAAE,uCAAuC,QAAQ;CACxF,MAAM,CAACC,MAAMC,WAAWvC,SAASiC,WAAW;CAC5C,MAAM,CAACO,OAAOC,YAAYzC,SAAS,EAAE;CACrC,MAAM0C,cAAc;EAClBH,QAAQ,KAAK;EACbE,SAAS,EAAE;CACb;CACA,MAAME,SAASpB,QAAQqB,MAAMC,WAAWA,OAAO3B,UAAUA,KAAK;CAC9D,MAAM4B,SAASN,MAAMO,KAAK,CAAC,CAACC,YAAY;CACxC,MAAMC,QAAQH,SACVvB,QAAQ2B,QAAQL,WAAW,GAAGA,OAAO1B,MAAK,GAAI0B,OAAOxB,UAAU,KAAK2B,YAAY,CAAC,CAACG,SAASL,MAAM,CAAC,IAClGvB;CACJ,MAAM6B,SAAS,CAAC,GAAG,IAAIC,IAAIJ,MAAMK,KAAKT,WAAWA,OAAOzB,KAAK,CAAC,CAAC;CAC/D,OACE,8CACE,qBAAC,WAAD;EACE,mBAAkB;EAClB,oBAAoBK;EACpB,oBAAoB,EAAE8B,MAAMZ,QAAQxB,SAASO,YAAY;EACzD,oBAAoB;GAAEG;GA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5 +1,6 @@
1
1
  import { ButtonProps } from "./Button.mjs";
2
2
  import { StyleProp, TextProps, ViewProps, ViewStyle } from "react-native";
3
+ import { NativeColorToken } from "@agimon-ai/po-web-components/nativeTheme";
3
4
  import { ReactNode } from "react";
4
5
  //#region src/components/Sheet.d.ts
5
6
  export interface SheetProps {
@@ -16,9 +17,23 @@ export declare function SheetTrigger({ onPress, ...props }: ButtonProps): import
16
17
  export declare function SheetClose({ onPress, ...props }: ButtonProps): import("react").JSX.Element;
17
18
  export interface SheetContentProps {
18
19
  children?: ReactNode;
20
+ /** Pinned actions outside the scrolling body. The footer carries the bottom safe area. */
21
+ footer?: ReactNode;
22
+ /** False when an embedded SheetList owns vertical scrolling. */
23
+ scrollable?: boolean;
24
+ /** The sheet holds unsaved work: a prompt arriving in the conversation leaves it open with a note. */
25
+ keep?: boolean;
26
+ /** Runs after the native modal is dismissed, including a caller-initiated close. */
27
+ onDismiss?: () => void;
28
+ /** Fixed heights such as `['58%']`; given, the sheet stops sizing itself to its content. */
29
+ snapPoints?: (string | number)[];
30
+ /** The dimmed overlay that closes the sheet on tap. Off leaves what is behind visible and usable. */
31
+ backdrop?: boolean;
32
+ /** The sheet and footer surface colour. */
33
+ background?: NativeColorToken;
19
34
  }
20
35
  /** The sheet surface. Fields inside it switch to the sheet's own input so the keyboard lifts the sheet. */
21
- export declare function SheetContent({ children }: SheetContentProps): import("react").JSX.Element;
36
+ export declare function SheetContent({ children, scrollable, footer, keep, onDismiss, snapPoints, backdrop, background }: SheetContentProps): import("react").JSX.Element;
22
37
  export interface SheetPartProps extends Omit<ViewProps, 'children' | 'style'> {
23
38
  children?: ReactNode;
24
39
  style?: StyleProp<ViewStyle>;
@@ -29,7 +44,7 @@ export interface SheetHeaderProps extends SheetPartProps {
29
44
  /** What the close control announces. */
30
45
  closeLabel?: string;
31
46
  }
32
- export declare function SheetHeader({ dismissible, closeLabel, style, children, ...props }: SheetHeaderProps): import("react").JSX.Element;
47
+ export declare function SheetHeader({ dismissible, closeLabel: closeLabelProp, style, children, ...props }: SheetHeaderProps): import("react").JSX.Element;
33
48
  export declare function SheetTitle({ style, ...props }: TextProps): import("react").JSX.Element;
34
49
  export declare function SheetDescription({ style, ...props }: TextProps): import("react").JSX.Element;
35
50
  /** The scrolling middle; the sheet itself scrolls, so this only spaces its children. */
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.d.mts","names":[],"sources":["../../src/components/Sheet.tsx"],"mappings":";;;;iBAwBiB;;EAEf;EACA;EACA,gBAAgB;EAChB,WAAW;;wBAGG,QAAQ,MAAM,aAAqB,cAAc,YAAY,6BAAU,IAAA;;wBAMvE,eAAe,YAAY,SAAS,8BAAW,IAAA;;wBAc/C,aAAa,YAAY,SAAS,8BAAW,IAAA;iBAa5C;EACf,WAAW;;;wBAIG,eAAe,YAAY,oCAAiB,IAAA;iBAS3C,uBAAuB,KAAK;EAC3C,WAAW;EACX,QAAQ,UAAU;;iBAGH,yBAAyB;;EAExC;;EAEA;;wBAGc,cAAc,aAAoB,YAAsB,OAAO,aAAa,SAAS,mCAAgB,IAAA;wBAoBrG,aAAa,UAAU,SAAS,4BAAS,IAAA;wBAIzC,mBAAmB,UAAU,SAAS,4BAAS,IAAA;;wBAK/C,YAAY,OAAO,aAAa,SAAS,iCAAc,IAAA;wBAQvD,cAAc,OAAO,aAAa,SAAS,iCAAc,IAAA"}
1
+ {"version":3,"file":"Sheet.d.mts","names":[],"sources":["../../src/components/Sheet.tsx"],"mappings":";;;;;iBA0BiB;;EAEf;EACA;EACA,gBAAgB;EAChB,WAAW;;wBAGG,QAAQ,MAAM,aAAqB,cAAc,YAAY,6BAAU,IAAA;;wBAOvE,eAAe,YAAY,SAAS,8BAAW,IAAA;;wBAc/C,aAAa,YAAY,SAAS,8BAAW,IAAA;iBAa5C;EACf,WAAW;;EAEX,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,aAAa;;;wBAIC,eACd,UACA,YACA,QACA,MACA,WACA,YACA,UACA,cAC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