@btndprojects/loam-ui-native 0.0.0-stage → 0.1.1
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/README.md +55 -2
- 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-423B7SPN.js +993 -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-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-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-FMYDDECK.js +1521 -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-HET4LLMX.js +129 -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-HZ6CNMAF.js +870 -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-JNY4ZHAR.js +634 -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-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-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-YTFKPRUK.js +845 -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
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { NODE_STATE_ICON } from './chunk-YLLCXTMC.js';
|
|
2
|
+
import { Icon } from './chunk-TKVFVF5D.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View, Animated, Text, Easing } from 'react-native';
|
|
5
|
+
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function toneSkin(theme, tone) {
|
|
9
|
+
switch (tone) {
|
|
10
|
+
case "accent":
|
|
11
|
+
return {
|
|
12
|
+
fill: theme.color.accentSoft,
|
|
13
|
+
edge: theme.focus.ringColor,
|
|
14
|
+
ink: theme.color.accentOnSoft
|
|
15
|
+
};
|
|
16
|
+
case "good":
|
|
17
|
+
return { fill: theme.color.goodSoft, edge: theme.color.good, ink: theme.color.goodOnSoft };
|
|
18
|
+
case "warn":
|
|
19
|
+
return { fill: theme.color.warnSoft, edge: theme.color.warn, ink: theme.color.warnOnSoft };
|
|
20
|
+
case "danger":
|
|
21
|
+
return {
|
|
22
|
+
fill: theme.color.dangerSoft,
|
|
23
|
+
edge: theme.color.danger,
|
|
24
|
+
ink: theme.color.dangerOnSoft
|
|
25
|
+
};
|
|
26
|
+
case "info":
|
|
27
|
+
return { fill: theme.color.infoSoft, edge: theme.color.info, ink: theme.color.infoOnSoft };
|
|
28
|
+
case "neutral":
|
|
29
|
+
default:
|
|
30
|
+
return {
|
|
31
|
+
fill: theme.color.surface3,
|
|
32
|
+
edge: theme.color.borderStrong,
|
|
33
|
+
ink: theme.color.text2
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var GEOMETRY = {
|
|
38
|
+
comfortable: { node: 24, dot: 12, icon: 14 },
|
|
39
|
+
compact: { node: 20, dot: 10, icon: 13 }
|
|
40
|
+
};
|
|
41
|
+
var TimelineContext = React.createContext({ density: "comfortable" });
|
|
42
|
+
function TimelineItem({
|
|
43
|
+
time,
|
|
44
|
+
title,
|
|
45
|
+
description,
|
|
46
|
+
state,
|
|
47
|
+
tone,
|
|
48
|
+
icon,
|
|
49
|
+
current = false,
|
|
50
|
+
testID,
|
|
51
|
+
style,
|
|
52
|
+
isLast = true,
|
|
53
|
+
animatedStyle
|
|
54
|
+
}) {
|
|
55
|
+
const { density } = React.useContext(TimelineContext);
|
|
56
|
+
const { styles } = useStyles(sheet, { density });
|
|
57
|
+
const theme = useLoamTheme();
|
|
58
|
+
const g = GEOMETRY[density];
|
|
59
|
+
const nodeIcon = icon ?? (state ? NODE_STATE_ICON[state] : void 0);
|
|
60
|
+
const skin = tone ? toneSkin(theme, tone) : state ? {
|
|
61
|
+
fill: theme.status[`${state}Soft`],
|
|
62
|
+
edge: theme.status[state],
|
|
63
|
+
ink: theme.status[`${state}OnSoft`]
|
|
64
|
+
} : null;
|
|
65
|
+
const currentAttr = current ? { "aria-current": "step" } : {};
|
|
66
|
+
const node = skin ? (
|
|
67
|
+
// Stateful / toned node: a tone-edged, soft-tinted icon container. The
|
|
68
|
+
// glyph is the non-colour channel that keeps nodes apart in greyscale /
|
|
69
|
+
// colour-blindness. A `state` brings one by default; a `tone` does not, so
|
|
70
|
+
// a toned ladder passes `icon` per rung.
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
View,
|
|
73
|
+
{
|
|
74
|
+
testID: state ? `timeline-node-${state}` : `timeline-node-tone-${tone}`,
|
|
75
|
+
style: {
|
|
76
|
+
width: g.node,
|
|
77
|
+
height: g.node,
|
|
78
|
+
borderRadius: theme.radius.full,
|
|
79
|
+
backgroundColor: skin.fill,
|
|
80
|
+
borderWidth: theme.borderWidth.base,
|
|
81
|
+
borderColor: skin.edge,
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
justifyContent: "center"
|
|
84
|
+
},
|
|
85
|
+
children: nodeIcon ? /* @__PURE__ */ jsx(Icon, { name: nodeIcon, size: g.icon, color: skin.ink }) : null
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
) : (
|
|
89
|
+
// Stateless, toneless node: a plain neutral dot — nothing to encode.
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
View,
|
|
92
|
+
{
|
|
93
|
+
testID: "timeline-node",
|
|
94
|
+
style: {
|
|
95
|
+
width: g.dot,
|
|
96
|
+
height: g.dot,
|
|
97
|
+
borderRadius: theme.radius.full,
|
|
98
|
+
backgroundColor: theme.color.borderStrong
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
return /* @__PURE__ */ jsxs(
|
|
104
|
+
Animated.View,
|
|
105
|
+
{
|
|
106
|
+
role: "listitem",
|
|
107
|
+
...currentAttr,
|
|
108
|
+
testID,
|
|
109
|
+
style: [
|
|
110
|
+
styles.item,
|
|
111
|
+
isLast ? styles.itemLast : null,
|
|
112
|
+
current ? styles.itemCurrent : null,
|
|
113
|
+
style,
|
|
114
|
+
animatedStyle
|
|
115
|
+
],
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ jsxs(View, { style: styles.rail, children: [
|
|
118
|
+
/* @__PURE__ */ jsx(View, { style: styles.lineBox, children: node }),
|
|
119
|
+
isLast ? null : /* @__PURE__ */ jsx(View, { style: styles.connector })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ jsxs(View, { style: styles.content, children: [
|
|
122
|
+
/* @__PURE__ */ jsxs(View, { style: styles.headerRow, children: [
|
|
123
|
+
/* @__PURE__ */ jsx(Text, { style: styles.title, children: title }),
|
|
124
|
+
time ? /* @__PURE__ */ jsx(Text, { style: styles.time, children: time }) : null
|
|
125
|
+
] }),
|
|
126
|
+
description ? /* @__PURE__ */ jsx(Text, { style: styles.description, children: description }) : null
|
|
127
|
+
] })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
function Timeline({
|
|
133
|
+
items,
|
|
134
|
+
density = "comfortable",
|
|
135
|
+
motion = "none",
|
|
136
|
+
label,
|
|
137
|
+
style,
|
|
138
|
+
children
|
|
139
|
+
}) {
|
|
140
|
+
const { styles } = useStyles(sheet, { density });
|
|
141
|
+
const theme = useLoamTheme();
|
|
142
|
+
const staggered = motion === "full" && !theme.reduceMotion;
|
|
143
|
+
const childArray = items ? null : React.Children.toArray(children).filter(React.isValidElement);
|
|
144
|
+
const count = items ? items.length : childArray?.length ?? 0;
|
|
145
|
+
const valuesRef = React.useRef([]);
|
|
146
|
+
if (valuesRef.current.length !== count) {
|
|
147
|
+
valuesRef.current = Array.from(
|
|
148
|
+
{ length: count },
|
|
149
|
+
(_, i) => valuesRef.current[i] ?? new Animated.Value(staggered ? 0 : 1)
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
const values = valuesRef.current;
|
|
153
|
+
const ctx = React.useMemo(() => ({ density }), [density]);
|
|
154
|
+
React.useEffect(() => {
|
|
155
|
+
if (!staggered) {
|
|
156
|
+
values.forEach((v) => v.setValue(1));
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const easing = Easing.bezier(...theme.motion.enter.easing);
|
|
160
|
+
const anim = Animated.stagger(
|
|
161
|
+
theme.timing.stagger,
|
|
162
|
+
values.map(
|
|
163
|
+
(v) => Animated.timing(v, {
|
|
164
|
+
toValue: 1,
|
|
165
|
+
duration: theme.motion.enter.duration,
|
|
166
|
+
easing,
|
|
167
|
+
useNativeDriver: true
|
|
168
|
+
})
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
anim.start();
|
|
172
|
+
return () => anim.stop();
|
|
173
|
+
}, [
|
|
174
|
+
staggered,
|
|
175
|
+
values,
|
|
176
|
+
theme.timing.stagger,
|
|
177
|
+
theme.motion.enter.duration,
|
|
178
|
+
theme.motion.enter.easing
|
|
179
|
+
]);
|
|
180
|
+
const animatedStyleFor = (i) => {
|
|
181
|
+
const v = values[i];
|
|
182
|
+
if (!staggered || !v) return null;
|
|
183
|
+
return {
|
|
184
|
+
opacity: v,
|
|
185
|
+
transform: [{ translateY: v.interpolate({ inputRange: [0, 1], outputRange: [8, 0] }) }]
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
let content;
|
|
189
|
+
if (items) {
|
|
190
|
+
content = items.map((entry, i) => /* @__PURE__ */ jsx(
|
|
191
|
+
TimelineItem,
|
|
192
|
+
{
|
|
193
|
+
time: entry.time,
|
|
194
|
+
title: entry.title,
|
|
195
|
+
description: entry.description,
|
|
196
|
+
state: entry.state,
|
|
197
|
+
tone: entry.tone,
|
|
198
|
+
icon: entry.icon,
|
|
199
|
+
current: entry.current,
|
|
200
|
+
testID: entry.testID,
|
|
201
|
+
isLast: i === count - 1,
|
|
202
|
+
animatedStyle: animatedStyleFor(i)
|
|
203
|
+
},
|
|
204
|
+
entry.id
|
|
205
|
+
));
|
|
206
|
+
} else {
|
|
207
|
+
content = (childArray ?? []).map(
|
|
208
|
+
(child, i) => React.cloneElement(child, {
|
|
209
|
+
isLast: i === count - 1,
|
|
210
|
+
animatedStyle: animatedStyleFor(i)
|
|
211
|
+
})
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
return /* @__PURE__ */ jsx(TimelineContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx(View, { role: "list", accessibilityLabel: label, style: [styles.list, style], children: content }) });
|
|
215
|
+
}
|
|
216
|
+
var sheet = createStyleSheet((theme) => ({
|
|
217
|
+
list: { alignSelf: "stretch" },
|
|
218
|
+
item: {
|
|
219
|
+
flexDirection: "row",
|
|
220
|
+
variants: {
|
|
221
|
+
density: {
|
|
222
|
+
comfortable: { gap: theme.space.s4, paddingBottom: theme.space.s6 },
|
|
223
|
+
compact: { gap: theme.space.s3, paddingBottom: theme.space.s4 }
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
// Applied to the last item to drop its trailing rhythm (no connector below it).
|
|
228
|
+
itemLast: { paddingBottom: 0 },
|
|
229
|
+
// The "you are here" band. The negative horizontal margin cancels its own
|
|
230
|
+
// inset so the band bleeds outward and the axis stays on the same vertical
|
|
231
|
+
// line as every other rung — a current rung that shifted sideways would bend
|
|
232
|
+
// the axis. The soft fill always carries its tone edge: high contrast drops
|
|
233
|
+
// the tint to the plain surface and the ring is what is left.
|
|
234
|
+
itemCurrent: {
|
|
235
|
+
borderRadius: theme.radius.md,
|
|
236
|
+
backgroundColor: theme.color.accentSoft,
|
|
237
|
+
borderWidth: theme.borderWidth.base,
|
|
238
|
+
borderColor: theme.edge.accent,
|
|
239
|
+
paddingHorizontal: theme.space.s2,
|
|
240
|
+
marginHorizontal: -theme.space.s2
|
|
241
|
+
},
|
|
242
|
+
rail: { alignItems: "center" },
|
|
243
|
+
// The node sits in a first-line-height box so it centres on the title line.
|
|
244
|
+
lineBox: {
|
|
245
|
+
alignItems: "center",
|
|
246
|
+
justifyContent: "center",
|
|
247
|
+
variants: {
|
|
248
|
+
density: {
|
|
249
|
+
comfortable: { height: theme.space[24] },
|
|
250
|
+
compact: { height: theme.space[22] }
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
// Connector: decorative, joins this node to the next. Never animates — it
|
|
255
|
+
// threads read data. `borderRadius: full` softens the 1px cap.
|
|
256
|
+
connector: {
|
|
257
|
+
width: theme.space[1],
|
|
258
|
+
flex: 1,
|
|
259
|
+
marginTop: theme.space.s1,
|
|
260
|
+
borderRadius: theme.radius.full,
|
|
261
|
+
backgroundColor: theme.color.border
|
|
262
|
+
},
|
|
263
|
+
content: { flex: 1, minWidth: 0 },
|
|
264
|
+
headerRow: {
|
|
265
|
+
flexDirection: "row",
|
|
266
|
+
flexWrap: "wrap",
|
|
267
|
+
alignItems: "baseline",
|
|
268
|
+
columnGap: theme.space.s2
|
|
269
|
+
},
|
|
270
|
+
title: {
|
|
271
|
+
fontFamily: theme.font.sans,
|
|
272
|
+
fontWeight: theme.fontWeight.medium,
|
|
273
|
+
color: theme.color.text,
|
|
274
|
+
fontSize: theme.type.body.fontSize,
|
|
275
|
+
lineHeight: theme.type.body.lineHeight,
|
|
276
|
+
letterSpacing: theme.type.body.letterSpacing
|
|
277
|
+
},
|
|
278
|
+
time: {
|
|
279
|
+
fontFamily: theme.font.sans,
|
|
280
|
+
color: theme.color.text3,
|
|
281
|
+
fontSize: theme.type.footnote.fontSize,
|
|
282
|
+
lineHeight: theme.type.footnote.lineHeight,
|
|
283
|
+
letterSpacing: theme.type.footnote.letterSpacing
|
|
284
|
+
},
|
|
285
|
+
description: {
|
|
286
|
+
fontFamily: theme.font.sans,
|
|
287
|
+
color: theme.color.text2,
|
|
288
|
+
marginTop: theme.space.s1,
|
|
289
|
+
fontSize: theme.type.footnote.fontSize,
|
|
290
|
+
lineHeight: theme.type.footnote.lineHeight,
|
|
291
|
+
letterSpacing: theme.type.footnote.letterSpacing
|
|
292
|
+
}
|
|
293
|
+
}));
|
|
294
|
+
|
|
295
|
+
export { Timeline, TimelineItem };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { haptics } from './chunk-NY2U3PBI.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { StyleSheet, Animated, Pressable, Easing } from 'react-native';
|
|
4
|
+
import { useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function Touchable({
|
|
8
|
+
children,
|
|
9
|
+
onPress,
|
|
10
|
+
scaleTo = 0.97,
|
|
11
|
+
ripple = true,
|
|
12
|
+
hapticOnPress = false,
|
|
13
|
+
disabled = false,
|
|
14
|
+
style,
|
|
15
|
+
accessibilityLabel
|
|
16
|
+
}) {
|
|
17
|
+
const theme = useLoamTheme();
|
|
18
|
+
const scale = React.useRef(new Animated.Value(1)).current;
|
|
19
|
+
const highlight = React.useRef(new Animated.Value(0)).current;
|
|
20
|
+
const overlayOpacity = highlight.interpolate({
|
|
21
|
+
inputRange: [0, 1],
|
|
22
|
+
outputRange: [0, 0.14]
|
|
23
|
+
});
|
|
24
|
+
const layerIn = theme.motion.hover;
|
|
25
|
+
const layerOut = theme.motion.exit;
|
|
26
|
+
const pressIn = () => {
|
|
27
|
+
Animated.spring(scale, {
|
|
28
|
+
toValue: scaleTo,
|
|
29
|
+
useNativeDriver: true,
|
|
30
|
+
speed: 40,
|
|
31
|
+
bounciness: 6
|
|
32
|
+
}).start();
|
|
33
|
+
if (ripple) {
|
|
34
|
+
Animated.timing(highlight, {
|
|
35
|
+
toValue: 1,
|
|
36
|
+
duration: layerIn.duration,
|
|
37
|
+
easing: Easing.bezier(...layerIn.easing),
|
|
38
|
+
useNativeDriver: true
|
|
39
|
+
}).start();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const pressOut = () => {
|
|
43
|
+
Animated.spring(scale, {
|
|
44
|
+
toValue: 1,
|
|
45
|
+
useNativeDriver: true,
|
|
46
|
+
speed: 40,
|
|
47
|
+
bounciness: 6
|
|
48
|
+
}).start();
|
|
49
|
+
if (ripple) {
|
|
50
|
+
Animated.timing(highlight, {
|
|
51
|
+
toValue: 0,
|
|
52
|
+
duration: layerOut.duration,
|
|
53
|
+
easing: Easing.bezier(...layerOut.easing),
|
|
54
|
+
useNativeDriver: true
|
|
55
|
+
}).start();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const handlePress = () => {
|
|
59
|
+
if (hapticOnPress) haptics.selection();
|
|
60
|
+
onPress?.();
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ jsx(
|
|
63
|
+
Pressable,
|
|
64
|
+
{
|
|
65
|
+
accessibilityRole: "button",
|
|
66
|
+
accessibilityLabel,
|
|
67
|
+
accessibilityState: { disabled },
|
|
68
|
+
disabled,
|
|
69
|
+
onPress: disabled ? void 0 : handlePress,
|
|
70
|
+
onPressIn: disabled ? void 0 : pressIn,
|
|
71
|
+
onPressOut: disabled ? void 0 : pressOut,
|
|
72
|
+
children: /* @__PURE__ */ jsxs(Animated.View, { style: [styles.base, style, { transform: [{ scale }] }], children: [
|
|
73
|
+
children,
|
|
74
|
+
ripple ? /* @__PURE__ */ jsx(
|
|
75
|
+
Animated.View,
|
|
76
|
+
{
|
|
77
|
+
style: [
|
|
78
|
+
StyleSheet.absoluteFillObject,
|
|
79
|
+
styles.highlight,
|
|
80
|
+
{
|
|
81
|
+
backgroundColor: theme.color.accent,
|
|
82
|
+
opacity: overlayOpacity,
|
|
83
|
+
pointerEvents: "none"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
) : null
|
|
88
|
+
] })
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
var styles = StyleSheet.create({
|
|
93
|
+
// Clips the highlight overlay to the container's own border radius.
|
|
94
|
+
base: { overflow: "hidden", position: "relative" },
|
|
95
|
+
// Kept subtle — the animated `opacity` tops out well below this ceiling.
|
|
96
|
+
highlight: { opacity: 0 }
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export { Touchable };
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { useColorTransition } from './chunk-ITTYJZWX.js';
|
|
2
|
+
import { useResolvedMotion } from './chunk-6N33LFQA.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View, Text, Easing, Animated, Pressable } from 'react-native';
|
|
5
|
+
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
6
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var RadioGroupContext = React.createContext(null);
|
|
9
|
+
function useRadioGroupContext() {
|
|
10
|
+
const ctx = React.useContext(RadioGroupContext);
|
|
11
|
+
if (!ctx) {
|
|
12
|
+
throw new Error("RadioGroupItem must be rendered inside a <RadioGroup>.");
|
|
13
|
+
}
|
|
14
|
+
return ctx;
|
|
15
|
+
}
|
|
16
|
+
function RadioGroup({
|
|
17
|
+
value,
|
|
18
|
+
defaultValue,
|
|
19
|
+
onValueChange,
|
|
20
|
+
size = "md",
|
|
21
|
+
motion = "full",
|
|
22
|
+
disabled = false,
|
|
23
|
+
label,
|
|
24
|
+
accessibilityLabel,
|
|
25
|
+
children
|
|
26
|
+
}) {
|
|
27
|
+
const isControlled = value !== void 0;
|
|
28
|
+
const [internal, setInternal] = React.useState(defaultValue);
|
|
29
|
+
const selected = isControlled ? value : internal;
|
|
30
|
+
const { styles } = useStyles(sheet, { size, disabled });
|
|
31
|
+
const theme = useLoamTheme();
|
|
32
|
+
const labelId = React.useId();
|
|
33
|
+
const itemsRef = React.useRef([]);
|
|
34
|
+
const [, bump] = React.useReducer((c) => c + 1, 0);
|
|
35
|
+
const register = React.useCallback((entry) => {
|
|
36
|
+
itemsRef.current = [...itemsRef.current, entry];
|
|
37
|
+
bump();
|
|
38
|
+
return () => {
|
|
39
|
+
itemsRef.current = itemsRef.current.filter((e) => e !== entry);
|
|
40
|
+
bump();
|
|
41
|
+
};
|
|
42
|
+
}, []);
|
|
43
|
+
const select = React.useCallback(
|
|
44
|
+
(next) => {
|
|
45
|
+
if (!isControlled) setInternal(next);
|
|
46
|
+
onValueChange?.(next);
|
|
47
|
+
},
|
|
48
|
+
[isControlled, onValueChange]
|
|
49
|
+
);
|
|
50
|
+
const firstEnabled = itemsRef.current.find((e) => !e.disabled)?.value;
|
|
51
|
+
const activeValue = disabled ? void 0 : selected ?? firstEnabled;
|
|
52
|
+
const onItemKeyDown = React.useCallback(
|
|
53
|
+
(currentValue, event) => {
|
|
54
|
+
const enabled = itemsRef.current.filter((e) => !e.disabled);
|
|
55
|
+
if (enabled.length === 0) return;
|
|
56
|
+
let target;
|
|
57
|
+
const { key } = event;
|
|
58
|
+
if (key === "Home") {
|
|
59
|
+
target = enabled[0];
|
|
60
|
+
} else if (key === "End") {
|
|
61
|
+
target = enabled[enabled.length - 1];
|
|
62
|
+
} else {
|
|
63
|
+
let dir = 0;
|
|
64
|
+
if (key === "ArrowDown") dir = 1;
|
|
65
|
+
else if (key === "ArrowUp") dir = -1;
|
|
66
|
+
else if (key === "ArrowRight") dir = theme.rtl ? -1 : 1;
|
|
67
|
+
else if (key === "ArrowLeft") dir = theme.rtl ? 1 : -1;
|
|
68
|
+
else return;
|
|
69
|
+
const current = enabled.findIndex((e) => e.value === currentValue);
|
|
70
|
+
const from = current === -1 ? 0 : current;
|
|
71
|
+
target = enabled[(from + dir + enabled.length) % enabled.length];
|
|
72
|
+
}
|
|
73
|
+
if (!target) return;
|
|
74
|
+
event.preventDefault?.();
|
|
75
|
+
select(target.value);
|
|
76
|
+
target.focus();
|
|
77
|
+
},
|
|
78
|
+
[select, theme.rtl]
|
|
79
|
+
);
|
|
80
|
+
const ctx = React.useMemo(
|
|
81
|
+
() => ({
|
|
82
|
+
value: selected,
|
|
83
|
+
select,
|
|
84
|
+
size,
|
|
85
|
+
motion,
|
|
86
|
+
disabled,
|
|
87
|
+
activeValue,
|
|
88
|
+
register,
|
|
89
|
+
onItemKeyDown
|
|
90
|
+
}),
|
|
91
|
+
[selected, select, size, motion, disabled, activeValue, register, onItemKeyDown]
|
|
92
|
+
);
|
|
93
|
+
return /* @__PURE__ */ jsx(RadioGroupContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
|
|
94
|
+
label ? /* @__PURE__ */ jsx(Text, { nativeID: labelId, style: styles.groupLabel, children: label }) : null,
|
|
95
|
+
/* @__PURE__ */ jsx(
|
|
96
|
+
View,
|
|
97
|
+
{
|
|
98
|
+
accessibilityRole: "radiogroup",
|
|
99
|
+
accessibilityLabel: label ? void 0 : accessibilityLabel,
|
|
100
|
+
...label ? { "aria-labelledby": labelId } : null,
|
|
101
|
+
style: styles.group,
|
|
102
|
+
children
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] }) });
|
|
106
|
+
}
|
|
107
|
+
function RadioGroupItem({
|
|
108
|
+
value,
|
|
109
|
+
label,
|
|
110
|
+
accessibilityLabel,
|
|
111
|
+
disabled = false
|
|
112
|
+
}) {
|
|
113
|
+
const ctx = useRadioGroupContext();
|
|
114
|
+
const theme = useLoamTheme();
|
|
115
|
+
const selected = ctx.value === value;
|
|
116
|
+
const isDisabled = ctx.disabled || disabled;
|
|
117
|
+
const { styles } = useStyles(sheet, { size: ctx.size, disabled: isDisabled });
|
|
118
|
+
const nodeRef = React.useRef(null);
|
|
119
|
+
const entryRef = React.useRef({ value, disabled: isDisabled, focus: () => {
|
|
120
|
+
} });
|
|
121
|
+
entryRef.current.value = value;
|
|
122
|
+
entryRef.current.disabled = isDisabled;
|
|
123
|
+
entryRef.current.focus = () => nodeRef.current?.focus?.();
|
|
124
|
+
const { register } = ctx;
|
|
125
|
+
React.useEffect(() => register(entryRef.current), [register]);
|
|
126
|
+
const resolvedMotion = useResolvedMotion(ctx.motion);
|
|
127
|
+
const animateEdge = resolvedMotion !== "none";
|
|
128
|
+
const animateDot = resolvedMotion === "full";
|
|
129
|
+
const easing = React.useMemo(() => Easing.bezier(...theme.easing.base), [theme.easing.base]);
|
|
130
|
+
const borderColor = useColorTransition(
|
|
131
|
+
selected ? theme.color.accent : theme.color.borderStrong,
|
|
132
|
+
theme.duration.fast,
|
|
133
|
+
easing,
|
|
134
|
+
animateEdge
|
|
135
|
+
);
|
|
136
|
+
const dotScale = React.useRef(new Animated.Value(selected ? 1 : 0)).current;
|
|
137
|
+
React.useEffect(() => {
|
|
138
|
+
if (!animateDot) {
|
|
139
|
+
dotScale.setValue(selected ? 1 : 0);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
Animated.timing(dotScale, {
|
|
143
|
+
toValue: selected ? 1 : 0,
|
|
144
|
+
duration: theme.duration.base,
|
|
145
|
+
easing: Easing.bezier(...theme.easing.spring),
|
|
146
|
+
useNativeDriver: true
|
|
147
|
+
}).start();
|
|
148
|
+
}, [selected, animateDot, dotScale, theme.duration.base, theme.easing.spring]);
|
|
149
|
+
const isTabStop = ctx.activeValue === value && !isDisabled;
|
|
150
|
+
const webProps = {
|
|
151
|
+
tabIndex: isTabStop ? 0 : -1,
|
|
152
|
+
onKeyDown: (event) => {
|
|
153
|
+
if (isDisabled) return;
|
|
154
|
+
ctx.onItemKeyDown(value, event);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return /* @__PURE__ */ jsxs(
|
|
158
|
+
Pressable,
|
|
159
|
+
{
|
|
160
|
+
ref: nodeRef,
|
|
161
|
+
accessibilityRole: "radio",
|
|
162
|
+
accessibilityLabel: accessibilityLabel ?? label,
|
|
163
|
+
accessibilityState: { checked: selected, disabled: isDisabled },
|
|
164
|
+
"aria-checked": selected,
|
|
165
|
+
disabled: isDisabled,
|
|
166
|
+
onPress: isDisabled ? void 0 : () => ctx.select(value),
|
|
167
|
+
style: styles.item,
|
|
168
|
+
...webProps,
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ jsx(Animated.View, { testID: "radio-indicator", style: [styles.indicator, { borderColor }], children: /* @__PURE__ */ jsx(Animated.View, { style: [styles.dot, { transform: [{ scale: dotScale }] }] }) }),
|
|
171
|
+
label ? /* @__PURE__ */ jsx(Text, { style: styles.label, children: label }) : null
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
var sheet = createStyleSheet((theme) => ({
|
|
177
|
+
// Stacks the optional group label above the radios.
|
|
178
|
+
root: { gap: theme.space.s2 },
|
|
179
|
+
group: { gap: theme.space.s3 },
|
|
180
|
+
groupLabel: {
|
|
181
|
+
fontFamily: theme.font.sans,
|
|
182
|
+
fontWeight: theme.fontWeight.semibold,
|
|
183
|
+
fontSize: theme.fontSize[14],
|
|
184
|
+
color: theme.color.text2
|
|
185
|
+
},
|
|
186
|
+
item: {
|
|
187
|
+
flexDirection: "row",
|
|
188
|
+
alignItems: "center",
|
|
189
|
+
gap: theme.space.s3,
|
|
190
|
+
variants: {
|
|
191
|
+
disabled: { true: { opacity: theme.state.disabledOpacity }, false: {} }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
// `borderColor` is supplied at the use site as an animated value so the edge
|
|
195
|
+
// can travel over `duration.fast`. The fill stays transparent — the reference
|
|
196
|
+
// gives the indicator a border and nothing else.
|
|
197
|
+
indicator: {
|
|
198
|
+
alignItems: "center",
|
|
199
|
+
justifyContent: "center",
|
|
200
|
+
// A `2px` ring is part of the drawing, so it uses the static `w3` weight.
|
|
201
|
+
borderWidth: theme.borderWidth.heavy,
|
|
202
|
+
backgroundColor: "transparent",
|
|
203
|
+
borderRadius: theme.radius.full,
|
|
204
|
+
variants: {
|
|
205
|
+
// The dot is always half the indicator (reference: 11px inside 22px).
|
|
206
|
+
size: {
|
|
207
|
+
sm: { width: theme.space[16], height: theme.space[16] },
|
|
208
|
+
md: { width: theme.space[22], height: theme.space[22] }
|
|
209
|
+
},
|
|
210
|
+
disabled: { true: {}, false: {} }
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
dot: {
|
|
214
|
+
borderRadius: theme.radius.full,
|
|
215
|
+
backgroundColor: theme.color.accent,
|
|
216
|
+
variants: {
|
|
217
|
+
size: {
|
|
218
|
+
sm: { width: theme.space[8], height: theme.space[8] },
|
|
219
|
+
md: { width: theme.space[11], height: theme.space[11] }
|
|
220
|
+
},
|
|
221
|
+
disabled: { true: {}, false: {} }
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
label: {
|
|
225
|
+
fontFamily: theme.font.sans,
|
|
226
|
+
color: theme.color.text,
|
|
227
|
+
variants: {
|
|
228
|
+
size: {
|
|
229
|
+
sm: { fontSize: theme.fontSize[14] },
|
|
230
|
+
md: { fontSize: theme.fontSize[16] }
|
|
231
|
+
},
|
|
232
|
+
disabled: { true: {}, false: {} }
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}));
|
|
236
|
+
|
|
237
|
+
export { RadioGroup, RadioGroupItem };
|