@buoy-gg/time-machine 7.0.41 → 7.0.42
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/lib/commonjs/components/HeaderActions.js +1 -91
- package/lib/commonjs/components/HeaderReloadButton.js +1 -58
- package/lib/commonjs/components/TimeMachineBody.js +1 -282
- package/lib/commonjs/components/TimeMachineModal.js +1 -74
- package/lib/commonjs/components/confirm.js +2 -38
- package/lib/commonjs/components/floating/NamePromptModal.js +1 -193
- package/lib/commonjs/components/floating/TimeMachineFloatingTool.js +1 -715
- package/lib/commonjs/components/floating/armedPoint.js +1 -92
- package/lib/commonjs/components/floating/barSettings.js +1 -66
- package/lib/commonjs/components/format.js +1 -24
- package/lib/commonjs/components/list/CaptureBar.js +1 -97
- package/lib/commonjs/components/list/RestoreOutcomeCard.js +1 -175
- package/lib/commonjs/components/list/SnapshotRow.js +1 -170
- package/lib/commonjs/components/list/SourcesStrip.js +1 -172
- package/lib/commonjs/components/list/UndoDeleteBar.js +1 -85
- package/lib/commonjs/components/list/WipeAllRow.js +1 -46
- package/lib/commonjs/components/preview/ItemDiffPanel.js +1 -79
- package/lib/commonjs/components/preview/PreviewFlow.js +1 -51
- package/lib/commonjs/components/preview/RestorePointNameRow.js +1 -83
- package/lib/commonjs/components/preview/RestorePreviewScreen.js +1 -1010
- package/lib/commonjs/components/preview/verdictMeta.js +1 -58
- package/lib/commonjs/components/sources.js +1 -83
- package/lib/commonjs/hooks/useTimeMachine.js +1 -24
- package/lib/commonjs/index.js +1 -161
- package/lib/commonjs/preset.js +1 -56
- package/lib/commonjs/store/routeRestore.js +1 -188
- package/lib/commonjs/store/snapshotVault.js +1 -186
- package/lib/commonjs/store/sourceIds.js +1 -9
- package/lib/commonjs/store/sourceSettings.js +1 -79
- package/lib/commonjs/store/timeMachineStore.js +1 -848
- package/lib/commonjs/sync/timeMachineSyncAdapter.js +1 -258
- package/lib/commonjs/ui/SwipeActionsRow.js +1 -178
- package/lib/commonjs/ui/primitives.js +1 -172
- package/lib/commonjs/ui/tmTheme.js +1 -118
- package/lib/module/components/HeaderActions.js +1 -85
- package/lib/module/components/HeaderReloadButton.js +1 -53
- package/lib/module/components/TimeMachineBody.js +1 -277
- package/lib/module/components/TimeMachineModal.js +1 -68
- package/lib/module/components/confirm.js +2 -33
- package/lib/module/components/floating/NamePromptModal.js +1 -188
- package/lib/module/components/floating/TimeMachineFloatingTool.js +1 -708
- package/lib/module/components/floating/armedPoint.js +1 -82
- package/lib/module/components/floating/barSettings.js +1 -57
- package/lib/module/components/format.js +1 -19
- package/lib/module/components/list/CaptureBar.js +1 -92
- package/lib/module/components/list/RestoreOutcomeCard.js +1 -169
- package/lib/module/components/list/SnapshotRow.js +1 -167
- package/lib/module/components/list/SourcesStrip.js +1 -169
- package/lib/module/components/list/UndoDeleteBar.js +1 -82
- package/lib/module/components/list/WipeAllRow.js +1 -41
- package/lib/module/components/preview/ItemDiffPanel.js +1 -74
- package/lib/module/components/preview/PreviewFlow.js +1 -46
- package/lib/module/components/preview/RestorePointNameRow.js +1 -78
- package/lib/module/components/preview/RestorePreviewScreen.js +1 -1005
- package/lib/module/components/preview/verdictMeta.js +1 -54
- package/lib/module/components/sources.js +1 -73
- package/lib/module/hooks/useTimeMachine.js +1 -19
- package/lib/module/index.js +1 -46
- package/lib/module/preset.js +1 -51
- package/lib/module/store/routeRestore.js +1 -176
- package/lib/module/store/snapshotVault.js +1 -170
- package/lib/module/store/sourceIds.js +1 -5
- package/lib/module/store/sourceSettings.js +1 -69
- package/lib/module/store/timeMachineStore.js +1 -839
- package/lib/module/sync/timeMachineSyncAdapter.js +1 -253
- package/lib/module/ui/SwipeActionsRow.js +1 -173
- package/lib/module/ui/primitives.js +1 -164
- package/lib/module/ui/tmTheme.js +1 -114
- package/lib/web/index.mjs +2 -3
- package/package.json +7 -7
- package/lib/commonjs/components/HeaderActions.js.map +0 -1
- package/lib/commonjs/components/HeaderReloadButton.js.map +0 -1
- package/lib/commonjs/components/TimeMachineBody.js.map +0 -1
- package/lib/commonjs/components/TimeMachineModal.js.map +0 -1
- package/lib/commonjs/components/confirm.js.map +0 -1
- package/lib/commonjs/components/floating/NamePromptModal.js.map +0 -1
- package/lib/commonjs/components/floating/TimeMachineFloatingTool.js.map +0 -1
- package/lib/commonjs/components/floating/armedPoint.js.map +0 -1
- package/lib/commonjs/components/floating/barSettings.js.map +0 -1
- package/lib/commonjs/components/format.js.map +0 -1
- package/lib/commonjs/components/list/CaptureBar.js.map +0 -1
- package/lib/commonjs/components/list/RestoreOutcomeCard.js.map +0 -1
- package/lib/commonjs/components/list/SnapshotRow.js.map +0 -1
- package/lib/commonjs/components/list/SourcesStrip.js.map +0 -1
- package/lib/commonjs/components/list/UndoDeleteBar.js.map +0 -1
- package/lib/commonjs/components/list/WipeAllRow.js.map +0 -1
- package/lib/commonjs/components/preview/ItemDiffPanel.js.map +0 -1
- package/lib/commonjs/components/preview/PreviewFlow.js.map +0 -1
- package/lib/commonjs/components/preview/RestorePointNameRow.js.map +0 -1
- package/lib/commonjs/components/preview/RestorePreviewScreen.js.map +0 -1
- package/lib/commonjs/components/preview/verdictMeta.js.map +0 -1
- package/lib/commonjs/components/sources.js.map +0 -1
- package/lib/commonjs/hooks/useTimeMachine.js.map +0 -1
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/preset.js.map +0 -1
- package/lib/commonjs/store/routeRestore.js.map +0 -1
- package/lib/commonjs/store/snapshotVault.js.map +0 -1
- package/lib/commonjs/store/sourceIds.js.map +0 -1
- package/lib/commonjs/store/sourceSettings.js.map +0 -1
- package/lib/commonjs/store/timeMachineStore.js.map +0 -1
- package/lib/commonjs/sync/timeMachineSyncAdapter.js.map +0 -1
- package/lib/commonjs/ui/SwipeActionsRow.js.map +0 -1
- package/lib/commonjs/ui/primitives.js.map +0 -1
- package/lib/commonjs/ui/tmTheme.js.map +0 -1
- package/lib/module/components/HeaderActions.js.map +0 -1
- package/lib/module/components/HeaderReloadButton.js.map +0 -1
- package/lib/module/components/TimeMachineBody.js.map +0 -1
- package/lib/module/components/TimeMachineModal.js.map +0 -1
- package/lib/module/components/confirm.js.map +0 -1
- package/lib/module/components/floating/NamePromptModal.js.map +0 -1
- package/lib/module/components/floating/TimeMachineFloatingTool.js.map +0 -1
- package/lib/module/components/floating/armedPoint.js.map +0 -1
- package/lib/module/components/floating/barSettings.js.map +0 -1
- package/lib/module/components/format.js.map +0 -1
- package/lib/module/components/list/CaptureBar.js.map +0 -1
- package/lib/module/components/list/RestoreOutcomeCard.js.map +0 -1
- package/lib/module/components/list/SnapshotRow.js.map +0 -1
- package/lib/module/components/list/SourcesStrip.js.map +0 -1
- package/lib/module/components/list/UndoDeleteBar.js.map +0 -1
- package/lib/module/components/list/WipeAllRow.js.map +0 -1
- package/lib/module/components/preview/ItemDiffPanel.js.map +0 -1
- package/lib/module/components/preview/PreviewFlow.js.map +0 -1
- package/lib/module/components/preview/RestorePointNameRow.js.map +0 -1
- package/lib/module/components/preview/RestorePreviewScreen.js.map +0 -1
- package/lib/module/components/preview/verdictMeta.js.map +0 -1
- package/lib/module/components/sources.js.map +0 -1
- package/lib/module/hooks/useTimeMachine.js.map +0 -1
- package/lib/module/index.js.map +0 -1
- package/lib/module/preset.js.map +0 -1
- package/lib/module/store/routeRestore.js.map +0 -1
- package/lib/module/store/snapshotVault.js.map +0 -1
- package/lib/module/store/sourceIds.js.map +0 -1
- package/lib/module/store/sourceSettings.js.map +0 -1
- package/lib/module/store/timeMachineStore.js.map +0 -1
- package/lib/module/sync/timeMachineSyncAdapter.js.map +0 -1
- package/lib/module/ui/SwipeActionsRow.js.map +0 -1
- package/lib/module/ui/primitives.js.map +0 -1
- package/lib/module/ui/tmTheme.js.map +0 -1
- package/lib/typescript/components/HeaderActions.d.ts.map +0 -1
- package/lib/typescript/components/HeaderReloadButton.d.ts.map +0 -1
- package/lib/typescript/components/TimeMachineBody.d.ts.map +0 -1
- package/lib/typescript/components/TimeMachineModal.d.ts.map +0 -1
- package/lib/typescript/components/confirm.d.ts.map +0 -1
- package/lib/typescript/components/floating/NamePromptModal.d.ts.map +0 -1
- package/lib/typescript/components/floating/TimeMachineFloatingTool.d.ts.map +0 -1
- package/lib/typescript/components/floating/armedPoint.d.ts.map +0 -1
- package/lib/typescript/components/floating/barSettings.d.ts.map +0 -1
- package/lib/typescript/components/format.d.ts.map +0 -1
- package/lib/typescript/components/list/CaptureBar.d.ts.map +0 -1
- package/lib/typescript/components/list/RestoreOutcomeCard.d.ts.map +0 -1
- package/lib/typescript/components/list/SnapshotRow.d.ts.map +0 -1
- package/lib/typescript/components/list/SourcesStrip.d.ts.map +0 -1
- package/lib/typescript/components/list/UndoDeleteBar.d.ts.map +0 -1
- package/lib/typescript/components/list/WipeAllRow.d.ts.map +0 -1
- package/lib/typescript/components/preview/ItemDiffPanel.d.ts.map +0 -1
- package/lib/typescript/components/preview/PreviewFlow.d.ts.map +0 -1
- package/lib/typescript/components/preview/RestorePointNameRow.d.ts.map +0 -1
- package/lib/typescript/components/preview/RestorePreviewScreen.d.ts.map +0 -1
- package/lib/typescript/components/preview/verdictMeta.d.ts.map +0 -1
- package/lib/typescript/components/sources.d.ts.map +0 -1
- package/lib/typescript/hooks/useTimeMachine.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/preset.d.ts.map +0 -1
- package/lib/typescript/store/routeRestore.d.ts.map +0 -1
- package/lib/typescript/store/snapshotVault.d.ts.map +0 -1
- package/lib/typescript/store/sourceIds.d.ts.map +0 -1
- package/lib/typescript/store/sourceSettings.d.ts.map +0 -1
- package/lib/typescript/store/timeMachineStore.d.ts.map +0 -1
- package/lib/typescript/sync/timeMachineSyncAdapter.d.ts.map +0 -1
- package/lib/typescript/ui/SwipeActionsRow.d.ts.map +0 -1
- package/lib/typescript/ui/primitives.d.ts.map +0 -1
- package/lib/typescript/ui/tmTheme.d.ts.map +0 -1
|
@@ -1,193 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NamePromptModal = NamePromptModal;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
/**
|
|
12
|
-
* "Name this restore point": the dialog `+` on the restore bar opens.
|
|
13
|
-
*
|
|
14
|
-
* A real Modal rather than a panel under the strip, so it sits centered over
|
|
15
|
-
* the app, above the keyboard, wherever the strip happens to be. An empty
|
|
16
|
-
* name is allowed: the store then names the point after the screen and the
|
|
17
|
-
* time, the same default the tool's capture bar uses.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
function NamePromptModal({
|
|
21
|
-
visible,
|
|
22
|
-
summary,
|
|
23
|
-
onCapture,
|
|
24
|
-
onCancel
|
|
25
|
-
}) {
|
|
26
|
-
const [name, setName] = (0, _react.useState)("");
|
|
27
|
-
// Every opening starts blank, so a cancelled name never comes back.
|
|
28
|
-
(0, _react.useEffect)(() => {
|
|
29
|
-
if (visible) setName("");
|
|
30
|
-
}, [visible]);
|
|
31
|
-
const submit = () => onCapture(name.trim());
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
33
|
-
visible: visible,
|
|
34
|
-
transparent: true,
|
|
35
|
-
animationType: "fade",
|
|
36
|
-
onRequestClose: onCancel,
|
|
37
|
-
statusBarTranslucent: true,
|
|
38
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.KeyboardAvoidingView, {
|
|
39
|
-
behavior: _reactNative.Platform.OS === "ios" ? "padding" : undefined,
|
|
40
|
-
style: styles.fill,
|
|
41
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
42
|
-
style: styles.backdrop,
|
|
43
|
-
onPress: onCancel,
|
|
44
|
-
accessibilityLabel: "Cancel",
|
|
45
|
-
testID: "time-machine-bar-name-backdrop",
|
|
46
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
47
|
-
style: styles.card,
|
|
48
|
-
onPress: event => event.stopPropagation(),
|
|
49
|
-
testID: "time-machine-bar-name-panel"
|
|
50
|
-
// A Pressable is one accessibility element by default, which
|
|
51
|
-
// hid the field and both buttons from VoiceOver and from tests.
|
|
52
|
-
,
|
|
53
|
-
accessible: false,
|
|
54
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
55
|
-
style: styles.title,
|
|
56
|
-
children: "Name this restore point"
|
|
57
|
-
}), summary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
58
|
-
style: styles.summary,
|
|
59
|
-
testID: "time-machine-bar-name-summary",
|
|
60
|
-
children: summary
|
|
61
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
62
|
-
testID: "time-machine-bar-name-input",
|
|
63
|
-
accessibilityLabel: "Restore point name",
|
|
64
|
-
value: name,
|
|
65
|
-
onChangeText: setName,
|
|
66
|
-
onSubmitEditing: submit,
|
|
67
|
-
placeholder: "Screen and time, if left empty",
|
|
68
|
-
placeholderTextColor: _sharedUi.night.color.placeholder,
|
|
69
|
-
autoFocus: true,
|
|
70
|
-
autoCorrect: false
|
|
71
|
-
// Names are labels, not sentences: "bag" should stay "bag".
|
|
72
|
-
,
|
|
73
|
-
autoCapitalize: "none",
|
|
74
|
-
returnKeyType: "done",
|
|
75
|
-
style: styles.input
|
|
76
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
77
|
-
style: styles.hint,
|
|
78
|
-
children: "Captures the state the app is in right now and arms it on the bar."
|
|
79
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
80
|
-
style: styles.actions,
|
|
81
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
82
|
-
testID: "time-machine-bar-name-cancel",
|
|
83
|
-
accessibilityRole: "button",
|
|
84
|
-
onPress: onCancel,
|
|
85
|
-
style: styles.secondary,
|
|
86
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
87
|
-
style: styles.secondaryText,
|
|
88
|
-
children: "Cancel"
|
|
89
|
-
})
|
|
90
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
91
|
-
testID: "time-machine-bar-name-capture",
|
|
92
|
-
accessibilityRole: "button",
|
|
93
|
-
accessibilityLabel: "Capture and arm this restore point",
|
|
94
|
-
onPress: submit,
|
|
95
|
-
style: styles.primary,
|
|
96
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
97
|
-
style: styles.primaryText,
|
|
98
|
-
children: "Capture"
|
|
99
|
-
})
|
|
100
|
-
})]
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
const styles = _reactNative.StyleSheet.create({
|
|
108
|
-
fill: {
|
|
109
|
-
flex: 1
|
|
110
|
-
},
|
|
111
|
-
backdrop: {
|
|
112
|
-
flex: 1,
|
|
113
|
-
backgroundColor: "rgba(0, 0, 0, 0.55)",
|
|
114
|
-
alignItems: "center",
|
|
115
|
-
justifyContent: "center",
|
|
116
|
-
padding: 24
|
|
117
|
-
},
|
|
118
|
-
card: {
|
|
119
|
-
width: "100%",
|
|
120
|
-
maxWidth: 360,
|
|
121
|
-
borderRadius: _sharedUi.night.radius.sheet,
|
|
122
|
-
borderWidth: 1,
|
|
123
|
-
borderColor: _sharedUi.night.color.separator,
|
|
124
|
-
backgroundColor: _sharedUi.night.color.surface,
|
|
125
|
-
padding: 18,
|
|
126
|
-
gap: 12,
|
|
127
|
-
shadowColor: "#000",
|
|
128
|
-
shadowOffset: {
|
|
129
|
-
width: 0,
|
|
130
|
-
height: 12
|
|
131
|
-
},
|
|
132
|
-
shadowOpacity: 0.4,
|
|
133
|
-
shadowRadius: 24,
|
|
134
|
-
elevation: 12
|
|
135
|
-
},
|
|
136
|
-
title: {
|
|
137
|
-
color: _sharedUi.night.color.text,
|
|
138
|
-
fontSize: _sharedUi.night.font.title,
|
|
139
|
-
fontWeight: "600"
|
|
140
|
-
},
|
|
141
|
-
input: {
|
|
142
|
-
minHeight: 44,
|
|
143
|
-
borderRadius: _sharedUi.night.radius.input,
|
|
144
|
-
borderWidth: 1,
|
|
145
|
-
borderColor: _sharedUi.night.color.accentBorder,
|
|
146
|
-
backgroundColor: _sharedUi.night.color.surfaceElevated,
|
|
147
|
-
color: _sharedUi.night.color.text,
|
|
148
|
-
fontSize: _sharedUi.night.font.row,
|
|
149
|
-
paddingHorizontal: 12
|
|
150
|
-
},
|
|
151
|
-
summary: {
|
|
152
|
-
color: _sharedUi.night.color.textTertiary,
|
|
153
|
-
fontSize: _sharedUi.night.font.caption,
|
|
154
|
-
marginTop: -6
|
|
155
|
-
},
|
|
156
|
-
hint: {
|
|
157
|
-
color: _sharedUi.night.color.textSecondary,
|
|
158
|
-
fontSize: _sharedUi.night.font.caption,
|
|
159
|
-
lineHeight: 18
|
|
160
|
-
},
|
|
161
|
-
actions: {
|
|
162
|
-
flexDirection: "row",
|
|
163
|
-
justifyContent: "flex-end",
|
|
164
|
-
gap: 10,
|
|
165
|
-
marginTop: 4
|
|
166
|
-
},
|
|
167
|
-
secondary: {
|
|
168
|
-
minHeight: 40,
|
|
169
|
-
paddingHorizontal: 14,
|
|
170
|
-
borderRadius: _sharedUi.night.radius.input,
|
|
171
|
-
alignItems: "center",
|
|
172
|
-
justifyContent: "center"
|
|
173
|
-
},
|
|
174
|
-
secondaryText: {
|
|
175
|
-
color: _sharedUi.night.color.textSecondary,
|
|
176
|
-
fontSize: 14,
|
|
177
|
-
fontWeight: "600"
|
|
178
|
-
},
|
|
179
|
-
primary: {
|
|
180
|
-
minHeight: 40,
|
|
181
|
-
paddingHorizontal: 18,
|
|
182
|
-
borderRadius: _sharedUi.night.radius.input,
|
|
183
|
-
backgroundColor: _sharedUi.night.color.accent,
|
|
184
|
-
alignItems: "center",
|
|
185
|
-
justifyContent: "center"
|
|
186
|
-
},
|
|
187
|
-
primaryText: {
|
|
188
|
-
color: _sharedUi.night.color.onAccent,
|
|
189
|
-
fontSize: 14,
|
|
190
|
-
fontWeight: "700"
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
//# sourceMappingURL=NamePromptModal.js.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.NamePromptModal=NamePromptModal;var _react=require("react");var _reactNative=require("react-native");var _sharedUi=require("@buoy-gg/shared-ui");var _jsxRuntime=require("react/jsx-runtime");function NamePromptModal({visible:e,summary:r,onCapture:a,onCancel:t}){const[i,n]=(0,_react.useState)("");(0,_react.useEffect)(()=>{if(e)n("")},[e]);const o=()=>a(i.trim());return(0,_jsxRuntime.jsx)(_reactNative.Modal,{visible:e,transparent:true,animationType:"fade",onRequestClose:t,statusBarTranslucent:true,children:(0,_jsxRuntime.jsx)(_reactNative.KeyboardAvoidingView,{behavior:_reactNative.Platform.OS==="ios"?"padding":void 0,style:styles.fill,children:(0,_jsxRuntime.jsx)(_reactNative.Pressable,{style:styles.backdrop,onPress:t,accessibilityLabel:"Cancel",testID:"time-machine-bar-name-backdrop",children:(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{style:styles.card,onPress:s=>s.stopPropagation(),testID:"time-machine-bar-name-panel",accessible:false,children:[(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.title,children:"Name this restore point"}),r?(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.summary,testID:"time-machine-bar-name-summary",children:r}):null,(0,_jsxRuntime.jsx)(_reactNative.TextInput,{testID:"time-machine-bar-name-input",accessibilityLabel:"Restore point name",value:i,onChangeText:n,onSubmitEditing:o,placeholder:"Screen and time, if left empty",placeholderTextColor:_sharedUi.night.color.placeholder,autoFocus:true,autoCorrect:false,autoCapitalize:"none",returnKeyType:"done",style:styles.input}),(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.hint,children:"Captures the state the app is in right now and arms it on the bar."}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.actions,children:[(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{testID:"time-machine-bar-name-cancel",accessibilityRole:"button",onPress:t,style:styles.secondary,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.secondaryText,children:"Cancel"})}),(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{testID:"time-machine-bar-name-capture",accessibilityRole:"button",accessibilityLabel:"Capture and arm this restore point",onPress:o,style:styles.primary,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.primaryText,children:"Capture"})})]})]})})})})}const styles=_reactNative.StyleSheet.create({fill:{flex:1},backdrop:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.55)",alignItems:"center",justifyContent:"center",padding:24},card:{width:"100%",maxWidth:360,borderRadius:_sharedUi.night.radius.sheet,borderWidth:1,borderColor:_sharedUi.night.color.separator,backgroundColor:_sharedUi.night.color.surface,padding:18,gap:12,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.4,shadowRadius:24,elevation:12},title:{color:_sharedUi.night.color.text,fontSize:_sharedUi.night.font.title,fontWeight:"600"},input:{minHeight:44,borderRadius:_sharedUi.night.radius.input,borderWidth:1,borderColor:_sharedUi.night.color.accentBorder,backgroundColor:_sharedUi.night.color.surfaceElevated,color:_sharedUi.night.color.text,fontSize:_sharedUi.night.font.row,paddingHorizontal:12},summary:{color:_sharedUi.night.color.textTertiary,fontSize:_sharedUi.night.font.caption,marginTop:-6},hint:{color:_sharedUi.night.color.textSecondary,fontSize:_sharedUi.night.font.caption,lineHeight:18},actions:{flexDirection:"row",justifyContent:"flex-end",gap:10,marginTop:4},secondary:{minHeight:40,paddingHorizontal:14,borderRadius:_sharedUi.night.radius.input,alignItems:"center",justifyContent:"center"},secondaryText:{color:_sharedUi.night.color.textSecondary,fontSize:14,fontWeight:"600"},primary:{minHeight:40,paddingHorizontal:18,borderRadius:_sharedUi.night.radius.input,backgroundColor:_sharedUi.night.color.accent,alignItems:"center",justifyContent:"center"},primaryText:{color:_sharedUi.night.color.onAccent,fontSize:14,fontWeight:"700"}});
|