@btndprojects/loam-ui-native 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/dist/accordion/index.js +3 -0
- package/dist/adaptive/index.js +2 -0
- package/dist/alert/index.js +3 -0
- package/dist/analyzer/index.js +6 -0
- package/dist/announcement/index.js +6 -0
- package/dist/audio-player/index.js +3 -0
- package/dist/avatar/index.js +3 -0
- package/dist/avatar-group/index.js +3 -0
- package/dist/badge/index.js +5 -0
- package/dist/banner/index.js +2 -0
- package/dist/board/index.js +7 -0
- package/dist/button/index.js +5 -0
- package/dist/camera-permission/index.js +13 -0
- package/dist/capture-result/index.js +18 -0
- package/dist/card/index.js +4 -0
- package/dist/card-form/index.js +10 -0
- package/dist/carousel/index.js +2 -0
- package/dist/chart/index.js +6 -0
- package/dist/charts/index.js +7 -0
- package/dist/checkbox/index.js +7 -0
- package/dist/checklist/index.js +10 -0
- package/dist/checkout/index.js +13 -0
- package/dist/chip/index.js +7 -0
- package/dist/chunk-223Q2T2Q.js +229 -0
- package/dist/chunk-2A5NIQAK.js +254 -0
- package/dist/chunk-2GK6PHGE.js +363 -0
- package/dist/chunk-2WUTXHMU.js +1 -0
- package/dist/chunk-2ZZ7TDJ4.js +324 -0
- package/dist/chunk-35OFI3JG.js +499 -0
- package/dist/chunk-3ARE4TES.js +195 -0
- package/dist/chunk-3ECPOSKO.js +1 -0
- package/dist/chunk-3ENTMPQY.js +229 -0
- package/dist/chunk-3HJH6FF4.js +98 -0
- package/dist/chunk-3NMD74ZU.js +4 -0
- package/dist/chunk-3WPW4KUN.js +182 -0
- package/dist/chunk-47FWHGUN.js +394 -0
- package/dist/chunk-4BXMXBJO.js +141 -0
- package/dist/chunk-4DS5ZWVC.js +83 -0
- package/dist/chunk-4GBOGOTV.js +295 -0
- package/dist/chunk-4SZYY6AN.js +99 -0
- package/dist/chunk-4YIP3CWS.js +237 -0
- package/dist/chunk-4YQOR7JM.js +204 -0
- package/dist/chunk-4ZAHCY44.js +177 -0
- package/dist/chunk-52X2VYTD.js +228 -0
- package/dist/chunk-5P26LBDL.js +1 -0
- package/dist/chunk-5XLRYDAX.js +1 -0
- package/dist/chunk-5YNTNN5A.js +177 -0
- package/dist/chunk-66SG2H23.js +129 -0
- package/dist/chunk-6HT2LP62.js +504 -0
- package/dist/chunk-6N33LFQA.js +35 -0
- package/dist/chunk-6X6PQ443.js +432 -0
- package/dist/chunk-7CFF4HXS.js +126 -0
- package/dist/chunk-7O2FMUPT.js +755 -0
- package/dist/chunk-AI4DWZCD.js +162 -0
- package/dist/chunk-AWJOCGFZ.js +213 -0
- package/dist/chunk-AZRX6SAC.js +285 -0
- package/dist/chunk-B54QE2FN.js +1 -0
- package/dist/chunk-BC475SJH.js +1 -0
- package/dist/chunk-BEDBFJND.js +202 -0
- package/dist/chunk-BTTFCMKG.js +166 -0
- package/dist/chunk-BV3B2HYZ.js +1635 -0
- package/dist/chunk-C2NTXVWM.js +98 -0
- package/dist/chunk-CDRZHT42.js +424 -0
- package/dist/chunk-CJ5EOYZE.js +62 -0
- package/dist/chunk-CUMUNPXY.js +128 -0
- package/dist/chunk-CUS3ZSCU.js +1 -0
- package/dist/chunk-CYRBHQQZ.js +411 -0
- package/dist/chunk-DHWADYZX.js +144 -0
- package/dist/chunk-DKCSPATL.js +1 -0
- package/dist/chunk-DM5QUKKO.js +326 -0
- package/dist/chunk-DSJBXLUG.js +845 -0
- package/dist/chunk-DYBH2I6W.js +1 -0
- package/dist/chunk-DZ255O2F.js +1 -0
- package/dist/chunk-E35BPSGW.js +1 -0
- package/dist/chunk-EJBDRVIH.js +166 -0
- package/dist/chunk-F43NP42L.js +1 -0
- package/dist/chunk-F5XNPWS7.js +1024 -0
- package/dist/chunk-FIF2M24N.js +1521 -0
- package/dist/chunk-FOKG57CR.js +993 -0
- package/dist/chunk-G3HOYSF7.js +1 -0
- package/dist/chunk-GDKZTW34.js +395 -0
- package/dist/chunk-GL7B2DOW.js +134 -0
- package/dist/chunk-GNNJ4GCC.js +471 -0
- package/dist/chunk-GNZ56EUI.js +1 -0
- package/dist/chunk-H6NIOQHK.js +346 -0
- package/dist/chunk-H6PC7RDA.js +1 -0
- package/dist/chunk-HPPW424V.js +334 -0
- package/dist/chunk-HQOQIBJI.js +1 -0
- package/dist/chunk-HU2EQNRZ.js +44 -0
- package/dist/chunk-IIQTAY3J.js +715 -0
- package/dist/chunk-ITTYJZWX.js +271 -0
- package/dist/chunk-IVNRBPGC.js +1018 -0
- package/dist/chunk-J4KLDGI4.js +1 -0
- package/dist/chunk-J7Q7VCVC.js +254 -0
- package/dist/chunk-JDEOITQ2.js +1 -0
- package/dist/chunk-JNH2TYIN.js +96 -0
- package/dist/chunk-JRLTGLN4.js +1 -0
- package/dist/chunk-JTRJJLKL.js +1 -0
- package/dist/chunk-JUAMLEHX.js +379 -0
- package/dist/chunk-JXJB2X6M.js +131 -0
- package/dist/chunk-KMI5ML5I.js +262 -0
- package/dist/chunk-KTAC4MGE.js +4 -0
- package/dist/chunk-LAECSR4H.js +178 -0
- package/dist/chunk-LK4BCSGX.js +1 -0
- package/dist/chunk-LOE5YNN3.js +470 -0
- package/dist/chunk-LRJNDEIA.js +302 -0
- package/dist/chunk-LSS54GLJ.js +116 -0
- package/dist/chunk-LZLHELAG.js +137 -0
- package/dist/chunk-M2LUXGKZ.js +1 -0
- package/dist/chunk-MOUJOP55.js +425 -0
- package/dist/chunk-N32RGOA5.js +159 -0
- package/dist/chunk-N5ZNE2YE.js +1 -0
- package/dist/chunk-NBNCBML6.js +1 -0
- package/dist/chunk-NKB7BZYK.js +167 -0
- package/dist/chunk-NQYBUO3K.js +1795 -0
- package/dist/chunk-NY2U3PBI.js +59 -0
- package/dist/chunk-O4AEHWII.js +464 -0
- package/dist/chunk-O7AE6DAF.js +146 -0
- package/dist/chunk-OETCUXQP.js +134 -0
- package/dist/chunk-OOPPQH27.js +179 -0
- package/dist/chunk-OPXFZ4Y5.js +204 -0
- package/dist/chunk-P23EQNRQ.js +338 -0
- package/dist/chunk-PJXUJYS6.js +248 -0
- package/dist/chunk-PNWUWOBF.js +1 -0
- package/dist/chunk-PUPM2YGF.js +376 -0
- package/dist/chunk-PZXZJBMP.js +620 -0
- package/dist/chunk-Q72LJOVE.js +169 -0
- package/dist/chunk-QCDXZBC5.js +247 -0
- package/dist/chunk-QDYDBCFP.js +197 -0
- package/dist/chunk-QJJ6MADV.js +274 -0
- package/dist/chunk-QKXCPTFS.js +349 -0
- package/dist/chunk-QWCMU5B2.js +860 -0
- package/dist/chunk-RGQWWKLA.js +634 -0
- package/dist/chunk-RIBDXGUG.js +108 -0
- package/dist/chunk-RJQOOHT2.js +214 -0
- package/dist/chunk-RNGLIHFA.js +191 -0
- package/dist/chunk-RQ3HASCC.js +6 -0
- package/dist/chunk-RSOJT5YW.js +124 -0
- package/dist/chunk-RTIKSY6A.js +1 -0
- package/dist/chunk-RUZHTGKB.js +237 -0
- package/dist/chunk-RW6ZL2FQ.js +284 -0
- package/dist/chunk-S7F6XLTK.js +540 -0
- package/dist/chunk-SBMNWWBV.js +155 -0
- package/dist/chunk-SDTQPRRB.js +1 -0
- package/dist/chunk-SYNOJOQO.js +377 -0
- package/dist/chunk-T753XT36.js +1 -0
- package/dist/chunk-TKQYWZ5V.js +196 -0
- package/dist/chunk-TKVFVF5D.js +95 -0
- package/dist/chunk-TOXAGRDQ.js +144 -0
- package/dist/chunk-TUTI5HOZ.js +112 -0
- package/dist/chunk-U7TFM2JA.js +140 -0
- package/dist/chunk-UC2WGUP3.js +627 -0
- package/dist/chunk-UWFLYMAR.js +1126 -0
- package/dist/chunk-UWSZB7BJ.js +1 -0
- package/dist/chunk-UYG5L34B.js +87 -0
- package/dist/chunk-VBOXAEPI.js +336 -0
- package/dist/chunk-VCDBXW5H.js +188 -0
- package/dist/chunk-VCXPHHDS.js +1 -0
- package/dist/chunk-VEAYTRPX.js +414 -0
- package/dist/chunk-VFCUIDRT.js +1 -0
- package/dist/chunk-VQHPQEUH.js +273 -0
- package/dist/chunk-VXDZFJGP.js +874 -0
- package/dist/chunk-WS56BL3D.js +1 -0
- package/dist/chunk-WSW6ZFAQ.js +98 -0
- package/dist/chunk-WVKKJA6U.js +870 -0
- package/dist/chunk-XNUVB5OL.js +375 -0
- package/dist/chunk-XOSCY2CW.js +242 -0
- package/dist/chunk-XXXEFXY5.js +99 -0
- package/dist/chunk-Y5CSSPV4.js +1 -0
- package/dist/chunk-Y6DU4J47.js +1 -0
- package/dist/chunk-YC6WORFL.js +535 -0
- package/dist/chunk-YDGVJETP.js +60 -0
- package/dist/chunk-YF4NSSMT.js +366 -0
- package/dist/chunk-YG3ZJHGU.js +223 -0
- package/dist/chunk-YIJ55TBC.js +1 -0
- package/dist/chunk-YKZ4RZZF.js +1 -0
- package/dist/chunk-YLLCXTMC.js +37 -0
- package/dist/chunk-YTA74UZR.js +1 -0
- package/dist/chunk-Z7H7VSFZ.js +323 -0
- package/dist/chunk-ZK2H4O5P.js +1 -0
- package/dist/chunk-ZVFE5QGU.js +524 -0
- package/dist/coachmark/index.js +4 -0
- package/dist/code-block/index.js +4 -0
- package/dist/color-field/index.js +7 -0
- package/dist/commerce/index.js +20 -0
- package/dist/connectivity/index.js +2 -0
- package/dist/context-menu/index.js +5 -0
- package/dist/copy-button/index.js +3 -0
- package/dist/data-grid/index.js +24 -0
- package/dist/date-range-picker/index.js +13 -0
- package/dist/description-list/index.js +2 -0
- package/dist/dialog/index.js +3 -0
- package/dist/empty-state/index.js +3 -0
- package/dist/error-summary/index.js +3 -0
- package/dist/fab/index.js +2 -0
- package/dist/file-upload/index.js +9 -0
- package/dist/filter-bar/index.js +8 -0
- package/dist/flow-run/index.js +14 -0
- package/dist/form/index.js +3 -0
- package/dist/gallery/index.js +2 -0
- package/dist/header/index.js +5 -0
- package/dist/hold-to-confirm/index.js +4 -0
- package/dist/index.d.ts +22883 -0
- package/dist/index.js +158 -0
- package/dist/infinite-list/index.js +2 -0
- package/dist/inline-edit/index.js +5 -0
- package/dist/input/index.js +5 -0
- package/dist/interactions/index.js +2 -0
- package/dist/invoice/index.js +10 -0
- package/dist/kbd/index.js +1 -0
- package/dist/keyboard/index.js +3 -0
- package/dist/list-row/index.js +7 -0
- package/dist/log-viewer/index.js +2 -0
- package/dist/map-view/index.js +3 -0
- package/dist/markdown/index.js +6 -0
- package/dist/metric/index.js +4 -0
- package/dist/money/index.js +3 -0
- package/dist/nav-drawer/index.js +2 -0
- package/dist/navigation/index.js +2 -0
- package/dist/notification-center/index.js +16 -0
- package/dist/number-roll/index.js +3 -0
- package/dist/one-handed/index.js +5 -0
- package/dist/os-surfaces/index.js +3 -0
- package/dist/otp/index.js +7 -0
- package/dist/page-header/index.js +1 -0
- package/dist/payment-method/index.js +12 -0
- package/dist/payment-status/index.js +16 -0
- package/dist/permission/index.js +2 -0
- package/dist/picker/index.js +7 -0
- package/dist/progress/index.js +5 -0
- package/dist/pull-to-refresh/index.js +4 -0
- package/dist/radio-group/index.js +6 -0
- package/dist/rating/index.js +2 -0
- package/dist/receivables/index.js +20 -0
- package/dist/refund/index.js +16 -0
- package/dist/save-status/index.js +3 -0
- package/dist/scroll-area/index.js +1 -0
- package/dist/search-bar/index.js +5 -0
- package/dist/segmented-control/index.js +5 -0
- package/dist/sheet/index.js +4 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/slider/index.js +5 -0
- package/dist/spinner/index.js +2 -0
- package/dist/split-button/index.js +7 -0
- package/dist/spotlight/index.js +2 -0
- package/dist/stage-timeline/index.js +4 -0
- package/dist/status-dot/index.js +2 -0
- package/dist/stepper/index.js +6 -0
- package/dist/streaming-text/index.js +3 -0
- package/dist/survey/index.js +19 -0
- package/dist/switch/index.js +5 -0
- package/dist/system-state/index.js +4 -0
- package/dist/tab-bar/index.js +2 -0
- package/dist/tabs/index.js +2 -0
- package/dist/textarea/index.js +6 -0
- package/dist/thinking/index.js +2 -0
- package/dist/timeline/index.js +4 -0
- package/dist/toast/index.js +2 -0
- package/dist/toolbar/index.js +2 -0
- package/dist/tour/index.js +11 -0
- package/dist/truncation-notice/index.js +2 -0
- package/dist/update-notice/index.js +11 -0
- package/dist/video-player/index.js +2 -0
- package/dist/viewfinder/index.js +5 -0
- package/dist/widget/index.js +4 -0
- package/dist/wizard/index.js +6 -0
- package/package.json +76 -3
- package/README.md +0 -3
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { PhaseAnnouncement, NoteBlock } from './chunk-N32RGOA5.js';
|
|
2
|
+
import { Card, CardHeader, CardTitle, CardContent, CardFooter } from './chunk-KMI5ML5I.js';
|
|
3
|
+
import { decorativeProps, camInk } from './chunk-RW6ZL2FQ.js';
|
|
4
|
+
import { Button } from './chunk-3ARE4TES.js';
|
|
5
|
+
import { Icon } from './chunk-TKVFVF5D.js';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { View, Text, Platform, findNodeHandle, AccessibilityInfo } from 'react-native';
|
|
8
|
+
import { createStyleSheet, useLoamTheme, useStyles } from '@btndprojects/loam-theme-native';
|
|
9
|
+
import { DONE_LABEL, permissionScreen, PERMISSION } from '@btndprojects/loam-analyzer';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
var STATE_ICON = {
|
|
13
|
+
undetermined: "camera",
|
|
14
|
+
prompting: "camera",
|
|
15
|
+
granted: "camera",
|
|
16
|
+
denied: "lock",
|
|
17
|
+
unavailable: "monitor"
|
|
18
|
+
};
|
|
19
|
+
function ScreenShell({
|
|
20
|
+
state,
|
|
21
|
+
icon,
|
|
22
|
+
onPrimary,
|
|
23
|
+
onSecondary,
|
|
24
|
+
inert = false,
|
|
25
|
+
announce = true,
|
|
26
|
+
autoFocus = false,
|
|
27
|
+
body
|
|
28
|
+
}) {
|
|
29
|
+
const theme = useLoamTheme();
|
|
30
|
+
const { styles } = useStyles(permissionSheet, { inert });
|
|
31
|
+
const screen = permissionScreen(state);
|
|
32
|
+
const copy = body ?? screen.body;
|
|
33
|
+
const heading = React.useRef(null);
|
|
34
|
+
React.useLayoutEffect(() => {
|
|
35
|
+
if (!autoFocus) return;
|
|
36
|
+
const node = heading.current;
|
|
37
|
+
if (!node || Platform.OS === "web") return;
|
|
38
|
+
const tag = findNodeHandle(node);
|
|
39
|
+
if (tag !== null) AccessibilityInfo.setAccessibilityFocus(tag);
|
|
40
|
+
}, [autoFocus]);
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
View,
|
|
43
|
+
{
|
|
44
|
+
testID: `loam-permission-${state}`,
|
|
45
|
+
style: styles.shell,
|
|
46
|
+
children: /* @__PURE__ */ jsxs(Card, { variant: "elevated", style: styles.card, children: [
|
|
47
|
+
/* @__PURE__ */ jsx(PhaseAnnouncement, { message: announce ? `${screen.heading}. ${copy}` : null }),
|
|
48
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(View, { accessible: false, style: styles.glyph, ...decorativeProps(), children: /* @__PURE__ */ jsx(
|
|
50
|
+
Icon,
|
|
51
|
+
{
|
|
52
|
+
name: icon ?? STATE_ICON[state],
|
|
53
|
+
size: theme.icon.lg,
|
|
54
|
+
color: theme.color.infoOnSoft
|
|
55
|
+
}
|
|
56
|
+
) }),
|
|
57
|
+
/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx(Text, { ref: heading, accessibilityRole: "header", style: styles.heading, children: screen.heading }) }),
|
|
58
|
+
/* @__PURE__ */ jsx(Text, { style: styles.body, children: copy })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(NoteBlock, { title: PERMISSION[state].label, description: screen.note }) }),
|
|
61
|
+
/* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsxs(View, { style: styles.actions, children: [
|
|
62
|
+
screen.secondary ? /* @__PURE__ */ jsx(View, { style: styles.actionSlot, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "lg", fullWidth: true, disabled: inert, onPress: onSecondary, children: screen.secondary }) }) : null,
|
|
63
|
+
/* @__PURE__ */ jsx(View, { style: styles.actionSlot, children: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", fullWidth: true, disabled: inert, onPress: onPrimary, children: screen.primary }) })
|
|
64
|
+
] }) })
|
|
65
|
+
] })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function PermissionPrimer({
|
|
70
|
+
privacyStatement,
|
|
71
|
+
prompting = false,
|
|
72
|
+
onContinue,
|
|
73
|
+
onUpload,
|
|
74
|
+
autoFocus,
|
|
75
|
+
announce
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
78
|
+
ScreenShell,
|
|
79
|
+
{
|
|
80
|
+
state: prompting ? "prompting" : "undetermined",
|
|
81
|
+
inert: prompting,
|
|
82
|
+
body: privacyStatement,
|
|
83
|
+
onPrimary: onContinue,
|
|
84
|
+
onSecondary: onUpload,
|
|
85
|
+
autoFocus,
|
|
86
|
+
announce
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function CameraDenied({
|
|
91
|
+
onOpenSettings,
|
|
92
|
+
onUpload,
|
|
93
|
+
autoFocus,
|
|
94
|
+
announce
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ jsx(
|
|
97
|
+
ScreenShell,
|
|
98
|
+
{
|
|
99
|
+
state: "denied",
|
|
100
|
+
onPrimary: onOpenSettings,
|
|
101
|
+
onSecondary: onUpload,
|
|
102
|
+
autoFocus,
|
|
103
|
+
announce
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function CameraUnavailable({
|
|
108
|
+
onUpload,
|
|
109
|
+
autoFocus,
|
|
110
|
+
announce
|
|
111
|
+
}) {
|
|
112
|
+
return /* @__PURE__ */ jsx(
|
|
113
|
+
ScreenShell,
|
|
114
|
+
{
|
|
115
|
+
state: "unavailable",
|
|
116
|
+
onPrimary: onUpload,
|
|
117
|
+
autoFocus,
|
|
118
|
+
announce
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function CameraPermissionScreen({
|
|
123
|
+
state,
|
|
124
|
+
onRequestPermission,
|
|
125
|
+
onOpenSettings,
|
|
126
|
+
onUpload,
|
|
127
|
+
privacyStatement,
|
|
128
|
+
autoFocus,
|
|
129
|
+
announce
|
|
130
|
+
}) {
|
|
131
|
+
if (state === "granted") return null;
|
|
132
|
+
if (state === "denied") {
|
|
133
|
+
return /* @__PURE__ */ jsx(
|
|
134
|
+
CameraDenied,
|
|
135
|
+
{
|
|
136
|
+
onOpenSettings,
|
|
137
|
+
onUpload,
|
|
138
|
+
autoFocus,
|
|
139
|
+
announce
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
if (state === "unavailable") {
|
|
144
|
+
return /* @__PURE__ */ jsx(CameraUnavailable, { onUpload, autoFocus, announce });
|
|
145
|
+
}
|
|
146
|
+
return /* @__PURE__ */ jsx(
|
|
147
|
+
PermissionPrimer,
|
|
148
|
+
{
|
|
149
|
+
prompting: state === "prompting",
|
|
150
|
+
privacyStatement,
|
|
151
|
+
onContinue: onRequestPermission,
|
|
152
|
+
onUpload,
|
|
153
|
+
autoFocus,
|
|
154
|
+
announce
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
function CaptureDone({
|
|
159
|
+
label = DONE_LABEL,
|
|
160
|
+
actionLabel = "Take another",
|
|
161
|
+
onTakeAnother,
|
|
162
|
+
announce = true
|
|
163
|
+
}) {
|
|
164
|
+
const theme = useLoamTheme();
|
|
165
|
+
const { styles } = useStyles(permissionSheet);
|
|
166
|
+
return /* @__PURE__ */ jsxs(View, { testID: "loam-capture-done", style: styles.done, children: [
|
|
167
|
+
/* @__PURE__ */ jsx(PhaseAnnouncement, { message: announce ? label : null }),
|
|
168
|
+
/* @__PURE__ */ jsx(View, { accessible: false, style: styles.doneMark, ...decorativeProps(), children: /* @__PURE__ */ jsx(Icon, { name: "check", size: theme.icon.lg, color: theme.color.goodInk }) }),
|
|
169
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.doneLabel, { color: camInk(theme) }], children: label }),
|
|
170
|
+
/* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", fullWidth: true, onPress: onTakeAnother, children: actionLabel })
|
|
171
|
+
] });
|
|
172
|
+
}
|
|
173
|
+
var permissionSheet = createStyleSheet((theme) => ({
|
|
174
|
+
shell: {
|
|
175
|
+
width: "100%",
|
|
176
|
+
alignItems: "center",
|
|
177
|
+
variants: {
|
|
178
|
+
// The OS owns the dialog that is up. We draw nothing over it, and we do
|
|
179
|
+
// not leave live controls under it either.
|
|
180
|
+
inert: {
|
|
181
|
+
true: { opacity: theme.state.disabledOpacity, pointerEvents: "none" },
|
|
182
|
+
false: { pointerEvents: "auto" }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
card: {
|
|
187
|
+
width: "100%",
|
|
188
|
+
maxWidth: theme.panel.lg
|
|
189
|
+
},
|
|
190
|
+
glyph: {
|
|
191
|
+
width: theme.ctl.lg,
|
|
192
|
+
height: theme.ctl.lg,
|
|
193
|
+
alignItems: "center",
|
|
194
|
+
justifyContent: "center",
|
|
195
|
+
borderRadius: theme.radius.full,
|
|
196
|
+
backgroundColor: theme.color.infoSoft,
|
|
197
|
+
borderWidth: theme.borderWidth.base,
|
|
198
|
+
borderColor: theme.edge.info
|
|
199
|
+
},
|
|
200
|
+
heading: {
|
|
201
|
+
fontFamily: theme.font.sans,
|
|
202
|
+
fontSize: theme.type.title3.fontSize,
|
|
203
|
+
fontWeight: theme.fontWeight.semibold,
|
|
204
|
+
color: theme.color.text
|
|
205
|
+
},
|
|
206
|
+
body: {
|
|
207
|
+
fontFamily: theme.font.sans,
|
|
208
|
+
fontSize: theme.fontSize[15],
|
|
209
|
+
lineHeight: theme.fontSize[15] * theme.lineHeight.relaxed,
|
|
210
|
+
color: theme.color.text2
|
|
211
|
+
},
|
|
212
|
+
// The slots share one row when both labels fit on a line and each takes the
|
|
213
|
+
// full width when they do not. Equal zero-basis slots split a 360pt card
|
|
214
|
+
// into two ~135pt halves, and "Upload instead" at `lg` wrapped onto two lines
|
|
215
|
+
// inside its button.
|
|
216
|
+
actions: {
|
|
217
|
+
width: "100%",
|
|
218
|
+
flexDirection: "row",
|
|
219
|
+
flexWrap: "wrap",
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
gap: theme.space[8]
|
|
222
|
+
},
|
|
223
|
+
actionSlot: {
|
|
224
|
+
flexGrow: 1,
|
|
225
|
+
flexShrink: 0,
|
|
226
|
+
flexBasis: "auto"
|
|
227
|
+
},
|
|
228
|
+
done: {
|
|
229
|
+
width: "100%",
|
|
230
|
+
maxWidth: theme.panel.sm,
|
|
231
|
+
alignSelf: "center",
|
|
232
|
+
alignItems: "center",
|
|
233
|
+
gap: theme.space[12],
|
|
234
|
+
padding: theme.space[16],
|
|
235
|
+
borderRadius: theme.radius.xl,
|
|
236
|
+
backgroundColor: theme.black.a12,
|
|
237
|
+
borderWidth: theme.borderWidth.base,
|
|
238
|
+
borderColor: theme.white.a5
|
|
239
|
+
},
|
|
240
|
+
doneMark: {
|
|
241
|
+
width: theme.ctl.lg,
|
|
242
|
+
height: theme.ctl.lg,
|
|
243
|
+
alignItems: "center",
|
|
244
|
+
justifyContent: "center",
|
|
245
|
+
borderRadius: theme.radius.full,
|
|
246
|
+
backgroundColor: theme.color.good
|
|
247
|
+
},
|
|
248
|
+
doneLabel: {
|
|
249
|
+
fontFamily: theme.font.sans,
|
|
250
|
+
fontSize: theme.fontSize[15]
|
|
251
|
+
}
|
|
252
|
+
}));
|
|
253
|
+
|
|
254
|
+
export { CameraDenied, CameraPermissionScreen, CameraUnavailable, CaptureDone, PermissionPrimer };
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { useResolvedMotion } from './chunk-6N33LFQA.js';
|
|
2
|
+
import { Icon } from './chunk-TKVFVF5D.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View, Pressable, Text, Animated, Easing } from 'react-native';
|
|
5
|
+
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function formatTime(seconds) {
|
|
9
|
+
const s = Number.isFinite(seconds) && seconds > 0 ? Math.floor(seconds) : 0;
|
|
10
|
+
return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`;
|
|
11
|
+
}
|
|
12
|
+
function AudioMiniBar({
|
|
13
|
+
title,
|
|
14
|
+
meta,
|
|
15
|
+
playing = false,
|
|
16
|
+
progress,
|
|
17
|
+
onPress,
|
|
18
|
+
onTogglePlay
|
|
19
|
+
}) {
|
|
20
|
+
const { styles } = useStyles(sheet);
|
|
21
|
+
const theme = useLoamTheme();
|
|
22
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.mini, children: [
|
|
23
|
+
/* @__PURE__ */ jsxs(
|
|
24
|
+
Pressable,
|
|
25
|
+
{
|
|
26
|
+
accessibilityRole: "button",
|
|
27
|
+
accessibilityLabel: `${title}${meta ? `, ${meta}` : ""}. Expand player`,
|
|
28
|
+
onPress,
|
|
29
|
+
style: styles.miniBody,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(View, { style: styles.miniArt }),
|
|
32
|
+
/* @__PURE__ */ jsxs(View, { style: styles.miniText, children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Text, { style: styles.miniTitle, numberOfLines: 1, children: title }),
|
|
34
|
+
meta ? /* @__PURE__ */ jsx(Text, { style: styles.miniMeta, numberOfLines: 1, children: meta }) : null
|
|
35
|
+
] })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsx(
|
|
40
|
+
Pressable,
|
|
41
|
+
{
|
|
42
|
+
accessibilityRole: "button",
|
|
43
|
+
accessibilityLabel: playing ? "Pause" : "Play",
|
|
44
|
+
onPress: onTogglePlay,
|
|
45
|
+
hitSlop: Math.max(0, (theme.tapMin - theme.ctl.iconBtn) / 2),
|
|
46
|
+
style: styles.miniTransport,
|
|
47
|
+
children: /* @__PURE__ */ jsx(Icon, { name: playing ? "pause" : "play", size: 16, color: theme.color.accentInk })
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
progress != null ? /* @__PURE__ */ jsx(
|
|
51
|
+
View,
|
|
52
|
+
{
|
|
53
|
+
style: [styles.miniProgress, { width: `${Math.max(0, Math.min(1, progress)) * 100}%` }]
|
|
54
|
+
}
|
|
55
|
+
) : null
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
function AudioSheet({
|
|
59
|
+
title,
|
|
60
|
+
meta,
|
|
61
|
+
playing = false,
|
|
62
|
+
position = 0,
|
|
63
|
+
duration = 0,
|
|
64
|
+
onTogglePlay,
|
|
65
|
+
onSkipBack,
|
|
66
|
+
onSkipForward,
|
|
67
|
+
onCollapse
|
|
68
|
+
}) {
|
|
69
|
+
const { styles } = useStyles(sheet);
|
|
70
|
+
const theme = useLoamTheme();
|
|
71
|
+
const pct = duration > 0 ? Math.min(1, Math.max(0, position / duration)) : 0;
|
|
72
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.sheetBody, children: [
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
Pressable,
|
|
75
|
+
{
|
|
76
|
+
accessibilityRole: "button",
|
|
77
|
+
accessibilityLabel: "Collapse player",
|
|
78
|
+
onPress: onCollapse,
|
|
79
|
+
style: styles.grabberHit,
|
|
80
|
+
children: /* @__PURE__ */ jsx(View, { style: styles.grabber })
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ jsx(View, { style: styles.artwork, children: /* @__PURE__ */ jsx(Text, { style: styles.artworkLabel, children: "Artwork 1:1" }) }),
|
|
84
|
+
/* @__PURE__ */ jsxs(View, { style: styles.sheetText, children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Text, { style: styles.sheetTitle, children: title }),
|
|
86
|
+
meta ? /* @__PURE__ */ jsx(Text, { style: styles.sheetMeta, children: meta }) : null
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ jsxs(View, { style: styles.progressWrap, children: [
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
View,
|
|
91
|
+
{
|
|
92
|
+
accessibilityRole: "progressbar",
|
|
93
|
+
accessibilityLabel: "Playback position",
|
|
94
|
+
"aria-valuemin": 0,
|
|
95
|
+
"aria-valuemax": Math.round(duration),
|
|
96
|
+
"aria-valuenow": Math.round(position),
|
|
97
|
+
style: styles.progressTrack,
|
|
98
|
+
children: /* @__PURE__ */ jsx(View, { style: [styles.progressFill, { width: `${pct * 100}%` }] })
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ jsxs(View, { style: styles.timeRow, children: [
|
|
102
|
+
/* @__PURE__ */ jsx(Text, { style: styles.time, children: formatTime(position) }),
|
|
103
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.time, children: [
|
|
104
|
+
"-",
|
|
105
|
+
formatTime(Math.max(0, duration - position))
|
|
106
|
+
] })
|
|
107
|
+
] })
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ jsxs(View, { style: styles.transportRow, children: [
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
Pressable,
|
|
112
|
+
{
|
|
113
|
+
accessibilityRole: "button",
|
|
114
|
+
accessibilityLabel: "Skip back",
|
|
115
|
+
onPress: onSkipBack,
|
|
116
|
+
style: styles.transportSecondary,
|
|
117
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "skip-back", size: 22, color: theme.color.text2 })
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
Pressable,
|
|
122
|
+
{
|
|
123
|
+
accessibilityRole: "button",
|
|
124
|
+
accessibilityLabel: playing ? "Pause" : "Play",
|
|
125
|
+
onPress: onTogglePlay,
|
|
126
|
+
style: styles.transportPrimary,
|
|
127
|
+
children: /* @__PURE__ */ jsx(Icon, { name: playing ? "pause" : "play", size: 26, color: theme.color.accentInk })
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
131
|
+
Pressable,
|
|
132
|
+
{
|
|
133
|
+
accessibilityRole: "button",
|
|
134
|
+
accessibilityLabel: "Skip forward",
|
|
135
|
+
onPress: onSkipForward,
|
|
136
|
+
style: styles.transportSecondary,
|
|
137
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "skip-forward", size: 22, color: theme.color.text2 })
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] })
|
|
141
|
+
] });
|
|
142
|
+
}
|
|
143
|
+
function AudioPlayerCollapsible({
|
|
144
|
+
expanded,
|
|
145
|
+
onExpandedChange,
|
|
146
|
+
sheetHeight = 420,
|
|
147
|
+
motion = "full",
|
|
148
|
+
...rest
|
|
149
|
+
}) {
|
|
150
|
+
const { styles } = useStyles(sheet);
|
|
151
|
+
const theme = useLoamTheme();
|
|
152
|
+
const resolvedMotion = useResolvedMotion(motion);
|
|
153
|
+
const [ownExpanded, setOwnExpanded] = React.useState(false);
|
|
154
|
+
const isExpanded = expanded ?? ownExpanded;
|
|
155
|
+
const fade = React.useRef(new Animated.Value(isExpanded ? 1 : 0)).current;
|
|
156
|
+
const expand = React.useRef(new Animated.Value(isExpanded ? 1 : 0)).current;
|
|
157
|
+
React.useEffect(() => {
|
|
158
|
+
const to = isExpanded ? 1 : 0;
|
|
159
|
+
if (resolvedMotion === "none") {
|
|
160
|
+
fade.setValue(to);
|
|
161
|
+
expand.setValue(to);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
Animated.timing(fade, {
|
|
165
|
+
toValue: to,
|
|
166
|
+
duration: theme.duration.slow,
|
|
167
|
+
easing: Easing.bezier(...theme.easing.spring),
|
|
168
|
+
useNativeDriver: false
|
|
169
|
+
}).start();
|
|
170
|
+
if (resolvedMotion === "full") {
|
|
171
|
+
Animated.timing(expand, {
|
|
172
|
+
toValue: to,
|
|
173
|
+
duration: theme.duration.slow,
|
|
174
|
+
easing: Easing.bezier(...theme.easing.spring),
|
|
175
|
+
useNativeDriver: false
|
|
176
|
+
}).start();
|
|
177
|
+
} else {
|
|
178
|
+
expand.setValue(to);
|
|
179
|
+
}
|
|
180
|
+
}, [isExpanded, resolvedMotion, fade, expand, theme.duration.slow, theme.easing.spring]);
|
|
181
|
+
const setExpanded = (next) => {
|
|
182
|
+
if (expanded == null) setOwnExpanded(next);
|
|
183
|
+
onExpandedChange?.(next);
|
|
184
|
+
};
|
|
185
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.collapsible, children: [
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
Animated.View,
|
|
188
|
+
{
|
|
189
|
+
style: { opacity: fade.interpolate({ inputRange: [0, 1], outputRange: [1, 0] }) },
|
|
190
|
+
children: /* @__PURE__ */ jsx(AudioMiniBar, { ...rest, onPress: () => setExpanded(true) })
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx(
|
|
194
|
+
Animated.View,
|
|
195
|
+
{
|
|
196
|
+
style: [
|
|
197
|
+
styles.sheet,
|
|
198
|
+
{
|
|
199
|
+
height: expand.interpolate({ inputRange: [0, 1], outputRange: [0, sheetHeight] }),
|
|
200
|
+
opacity: fade
|
|
201
|
+
},
|
|
202
|
+
{ pointerEvents: isExpanded ? "auto" : "none" }
|
|
203
|
+
],
|
|
204
|
+
children: /* @__PURE__ */ jsx(AudioSheet, { ...rest, onCollapse: () => setExpanded(false) })
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
] });
|
|
208
|
+
}
|
|
209
|
+
var sheet = createStyleSheet((theme) => ({
|
|
210
|
+
collapsible: { position: "relative" },
|
|
211
|
+
// ---- mini bar ----
|
|
212
|
+
mini: {
|
|
213
|
+
position: "relative",
|
|
214
|
+
flexDirection: "row",
|
|
215
|
+
alignItems: "center",
|
|
216
|
+
gap: theme.space[11],
|
|
217
|
+
paddingVertical: theme.space[9],
|
|
218
|
+
paddingHorizontal: theme.space[11],
|
|
219
|
+
borderRadius: theme.radius.lg,
|
|
220
|
+
borderWidth: theme.borderWidth.base,
|
|
221
|
+
borderColor: theme.color.border,
|
|
222
|
+
backgroundColor: theme.color.surface,
|
|
223
|
+
overflow: "hidden",
|
|
224
|
+
...theme.shadow.md
|
|
225
|
+
},
|
|
226
|
+
miniBody: { flexDirection: "row", alignItems: "center", gap: theme.space.s3, flex: 1 },
|
|
227
|
+
miniArt: {
|
|
228
|
+
width: theme.space[34],
|
|
229
|
+
height: theme.space[34],
|
|
230
|
+
borderRadius: theme.radius.sm,
|
|
231
|
+
backgroundColor: theme.color.surface3
|
|
232
|
+
},
|
|
233
|
+
miniText: { flex: 1, minWidth: 0 },
|
|
234
|
+
miniTitle: {
|
|
235
|
+
fontFamily: theme.font.sans,
|
|
236
|
+
fontWeight: theme.fontWeight.semibold,
|
|
237
|
+
fontSize: theme.type.footnote.fontSize,
|
|
238
|
+
color: theme.color.text
|
|
239
|
+
},
|
|
240
|
+
miniMeta: {
|
|
241
|
+
fontFamily: theme.font.sans,
|
|
242
|
+
fontSize: theme.type.caption2.fontSize,
|
|
243
|
+
color: theme.color.text3
|
|
244
|
+
},
|
|
245
|
+
miniTransport: {
|
|
246
|
+
// Square icon button on the control-size ramp (icon-button tier = 36).
|
|
247
|
+
width: theme.ctl.iconBtn,
|
|
248
|
+
height: theme.ctl.iconBtn,
|
|
249
|
+
borderRadius: theme.radius.full,
|
|
250
|
+
backgroundColor: theme.color.accent,
|
|
251
|
+
alignItems: "center",
|
|
252
|
+
justifyContent: "center"
|
|
253
|
+
},
|
|
254
|
+
miniProgress: {
|
|
255
|
+
position: "absolute",
|
|
256
|
+
left: 0,
|
|
257
|
+
bottom: 0,
|
|
258
|
+
height: theme.space[2],
|
|
259
|
+
backgroundColor: theme.color.accent
|
|
260
|
+
},
|
|
261
|
+
// ---- expanded sheet ----
|
|
262
|
+
sheet: {
|
|
263
|
+
position: "absolute",
|
|
264
|
+
left: 0,
|
|
265
|
+
right: 0,
|
|
266
|
+
bottom: 0,
|
|
267
|
+
overflow: "hidden",
|
|
268
|
+
borderTopLeftRadius: theme.radius.xl,
|
|
269
|
+
borderTopRightRadius: theme.radius.xl,
|
|
270
|
+
backgroundColor: theme.color.surface,
|
|
271
|
+
// The sheet sits directly on the content with no scrim of its own, so its
|
|
272
|
+
// top edge is the entire boundary — and `shadow.lg` zeroes out under high
|
|
273
|
+
// contrast, where `surface` on `bg` is a ~1.06 ratio. `edge.neutral` is the
|
|
274
|
+
// rule that still says where the sheet starts, and it is `transparent`
|
|
275
|
+
// until the preference flips, so the resting sheet is untouched.
|
|
276
|
+
borderTopWidth: theme.borderWidth.base,
|
|
277
|
+
borderTopColor: theme.edge.neutral,
|
|
278
|
+
...theme.shadow.lg
|
|
279
|
+
},
|
|
280
|
+
sheetBody: {
|
|
281
|
+
paddingTop: theme.space[14],
|
|
282
|
+
paddingHorizontal: theme.space[20],
|
|
283
|
+
paddingBottom: theme.space[20],
|
|
284
|
+
gap: theme.space.s4,
|
|
285
|
+
flex: 1
|
|
286
|
+
},
|
|
287
|
+
grabberHit: { alignSelf: "center", minHeight: theme.tapMin, justifyContent: "center" },
|
|
288
|
+
grabber: {
|
|
289
|
+
width: theme.space[38],
|
|
290
|
+
height: theme.space[4],
|
|
291
|
+
borderRadius: theme.radius.full,
|
|
292
|
+
backgroundColor: theme.color.surface3
|
|
293
|
+
},
|
|
294
|
+
artwork: {
|
|
295
|
+
height: theme.space[152],
|
|
296
|
+
borderRadius: theme.radius.lg,
|
|
297
|
+
backgroundColor: theme.color.surface3,
|
|
298
|
+
alignItems: "center",
|
|
299
|
+
justifyContent: "center"
|
|
300
|
+
},
|
|
301
|
+
artworkLabel: {
|
|
302
|
+
fontFamily: theme.font.mono,
|
|
303
|
+
fontSize: theme.type.caption2.fontSize,
|
|
304
|
+
// Uppercase wants the caps tracking step, which is a ratio — multiply it by
|
|
305
|
+
// the size rather than restating the product as a bare 1.2.
|
|
306
|
+
letterSpacing: theme.type.caption2.fontSize * theme.tracking.caps,
|
|
307
|
+
textTransform: "uppercase",
|
|
308
|
+
// On the `surface3` artwork placeholder, `text3` is 4.16:1 (WCAG fail);
|
|
309
|
+
// primary `text` clears 4.5:1.
|
|
310
|
+
color: theme.color.text
|
|
311
|
+
},
|
|
312
|
+
sheetText: { gap: theme.space[3] },
|
|
313
|
+
sheetTitle: {
|
|
314
|
+
fontFamily: theme.font.display,
|
|
315
|
+
fontWeight: theme.font.displayWeight,
|
|
316
|
+
fontSize: theme.type.title3.fontSize,
|
|
317
|
+
color: theme.color.text
|
|
318
|
+
},
|
|
319
|
+
sheetMeta: {
|
|
320
|
+
fontFamily: theme.font.sans,
|
|
321
|
+
fontSize: theme.type.footnote.fontSize,
|
|
322
|
+
color: theme.color.text3
|
|
323
|
+
},
|
|
324
|
+
progressWrap: { gap: theme.space[6] },
|
|
325
|
+
progressTrack: {
|
|
326
|
+
height: theme.space[4],
|
|
327
|
+
borderRadius: theme.radius.full,
|
|
328
|
+
backgroundColor: theme.color.surface3
|
|
329
|
+
},
|
|
330
|
+
progressFill: {
|
|
331
|
+
height: theme.space[4],
|
|
332
|
+
borderRadius: theme.radius.full,
|
|
333
|
+
backgroundColor: theme.color.accent
|
|
334
|
+
},
|
|
335
|
+
timeRow: { flexDirection: "row", justifyContent: "space-between" },
|
|
336
|
+
time: {
|
|
337
|
+
fontFamily: theme.font.mono,
|
|
338
|
+
fontSize: theme.fontSize[10],
|
|
339
|
+
color: theme.color.text3
|
|
340
|
+
},
|
|
341
|
+
transportRow: {
|
|
342
|
+
flexDirection: "row",
|
|
343
|
+
alignItems: "center",
|
|
344
|
+
justifyContent: "center",
|
|
345
|
+
gap: theme.space[22]
|
|
346
|
+
},
|
|
347
|
+
transportSecondary: {
|
|
348
|
+
width: theme.tapMin,
|
|
349
|
+
height: theme.tapMin,
|
|
350
|
+
alignItems: "center",
|
|
351
|
+
justifyContent: "center"
|
|
352
|
+
},
|
|
353
|
+
transportPrimary: {
|
|
354
|
+
width: theme.space[58],
|
|
355
|
+
height: theme.space[58],
|
|
356
|
+
borderRadius: theme.radius.full,
|
|
357
|
+
backgroundColor: theme.color.accent,
|
|
358
|
+
alignItems: "center",
|
|
359
|
+
justifyContent: "center"
|
|
360
|
+
}
|
|
361
|
+
}));
|
|
362
|
+
|
|
363
|
+
export { AudioMiniBar, AudioPlayerCollapsible, AudioSheet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|