@tamagui/radio-group 1.74.3 → 1.74.5
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.
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import {
|
|
2
|
+
composeEventHandlers,
|
|
3
|
+
getVariableValue,
|
|
4
|
+
isWeb,
|
|
5
|
+
styled,
|
|
6
|
+
useComposedRefs,
|
|
7
|
+
withStaticProperties
|
|
8
|
+
} from "@tamagui/core";
|
|
9
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
10
|
+
import { registerFocusable } from "@tamagui/focusable";
|
|
11
|
+
import { getSize } from "@tamagui/get-token";
|
|
12
|
+
import { useLabelContext } from "@tamagui/label";
|
|
13
|
+
import { ThemeableStack } from "@tamagui/stacks";
|
|
14
|
+
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
15
|
+
import { usePrevious } from "@tamagui/use-previous";
|
|
16
|
+
import * as React from "react";
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
const RADIO_GROUP_NAME = "RadioGroup", ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME), [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME), getState = (checked) => checked ? "checked" : "unchecked", RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioIndicatorFrame = styled(ThemeableStack, {
|
|
19
|
+
name: RADIO_GROUP_INDICATOR_NAME,
|
|
20
|
+
variants: {
|
|
21
|
+
unstyled: {
|
|
22
|
+
false: {
|
|
23
|
+
width: "33%",
|
|
24
|
+
height: "33%",
|
|
25
|
+
borderRadius: 1e3,
|
|
26
|
+
backgroundColor: "$color",
|
|
27
|
+
pressTheme: !0
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
unstyled: !1
|
|
33
|
+
}
|
|
34
|
+
}), RadioIndicator = RadioIndicatorFrame.extractable(
|
|
35
|
+
React.forwardRef(
|
|
36
|
+
(props, forwardedRef) => {
|
|
37
|
+
const { __scopeRadioGroupItem, forceMount, disabled, ...indicatorProps } = props, { checked } = useRadioGroupItemContext(
|
|
38
|
+
RADIO_GROUP_INDICATOR_NAME,
|
|
39
|
+
__scopeRadioGroupItem
|
|
40
|
+
);
|
|
41
|
+
return forceMount || checked ? /* @__PURE__ */ jsx(
|
|
42
|
+
RadioIndicatorFrame,
|
|
43
|
+
{
|
|
44
|
+
"data-state": getState(checked),
|
|
45
|
+
"data-disabled": disabled ? "" : void 0,
|
|
46
|
+
...indicatorProps,
|
|
47
|
+
ref: forwardedRef
|
|
48
|
+
}
|
|
49
|
+
) : null;
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
);
|
|
53
|
+
RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
|
|
54
|
+
const RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadioGroupItemContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroupItemFrame = styled(ThemeableStack, {
|
|
55
|
+
name: RADIO_GROUP_ITEM_NAME,
|
|
56
|
+
tag: "button",
|
|
57
|
+
variants: {
|
|
58
|
+
unstyled: {
|
|
59
|
+
false: {
|
|
60
|
+
size: "$true",
|
|
61
|
+
borderRadius: 1e3,
|
|
62
|
+
backgroundColor: "$background",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyContent: "center",
|
|
65
|
+
borderWidth: 1,
|
|
66
|
+
borderColor: "$borderColor",
|
|
67
|
+
padding: 0,
|
|
68
|
+
hoverStyle: {
|
|
69
|
+
borderColor: "$borderColorHover",
|
|
70
|
+
backgroundColor: "$backgroundHover"
|
|
71
|
+
},
|
|
72
|
+
focusStyle: {
|
|
73
|
+
borderColor: "$borderColorHover",
|
|
74
|
+
backgroundColor: "$backgroundHover",
|
|
75
|
+
outlineStyle: "solid",
|
|
76
|
+
outlineWidth: 2,
|
|
77
|
+
outlineColor: "$borderColorFocus"
|
|
78
|
+
},
|
|
79
|
+
pressStyle: {
|
|
80
|
+
borderColor: "$borderColorFocus",
|
|
81
|
+
backgroundColor: "$backgroundFocus"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
disabled: {
|
|
86
|
+
true: {
|
|
87
|
+
pointerEvents: "none",
|
|
88
|
+
userSelect: "none",
|
|
89
|
+
cursor: "not-allowed",
|
|
90
|
+
hoverStyle: {
|
|
91
|
+
borderColor: "$borderColor",
|
|
92
|
+
backgroundColor: "$background"
|
|
93
|
+
},
|
|
94
|
+
pressStyle: {
|
|
95
|
+
borderColor: "$borderColor",
|
|
96
|
+
backgroundColor: "$backgroundColor"
|
|
97
|
+
},
|
|
98
|
+
focusStyle: {
|
|
99
|
+
outlineWidth: 0
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
size: {
|
|
104
|
+
"...size": (value, { props }) => {
|
|
105
|
+
const size = Math.floor(
|
|
106
|
+
getVariableValue(getSize(value)) * (props.scaleSize ?? 0.5)
|
|
107
|
+
);
|
|
108
|
+
return {
|
|
109
|
+
width: size,
|
|
110
|
+
height: size
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
defaultVariants: {
|
|
116
|
+
unstyled: !1
|
|
117
|
+
}
|
|
118
|
+
}), RadioGroupItem = RadioGroupItemFrame.extractable(
|
|
119
|
+
React.forwardRef(
|
|
120
|
+
(props, forwardedRef) => {
|
|
121
|
+
const {
|
|
122
|
+
__scopeRadioGroup,
|
|
123
|
+
value,
|
|
124
|
+
labelledBy: ariaLabelledby,
|
|
125
|
+
disabled: itemDisabled,
|
|
126
|
+
...itemProps
|
|
127
|
+
} = props, {
|
|
128
|
+
value: groupValue,
|
|
129
|
+
disabled,
|
|
130
|
+
required,
|
|
131
|
+
onChange,
|
|
132
|
+
name,
|
|
133
|
+
native,
|
|
134
|
+
accentColor
|
|
135
|
+
} = useRadioGroupContext(RADIO_GROUP_ITEM_NAME, __scopeRadioGroup), [button, setButton] = React.useState(null), hasConsumerStoppedPropagationRef = React.useRef(!1), ref = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node), ref), isArrowKeyPressedRef = React.useRef(!1), isFormControl = isWeb ? button ? !!button.closest("form") : !0 : !1, checked = groupValue === value, labelId = useLabelContext(button), labelledBy = ariaLabelledby || labelId;
|
|
136
|
+
React.useEffect(() => {
|
|
137
|
+
if (isWeb) {
|
|
138
|
+
const handleKeyDown = (event) => {
|
|
139
|
+
ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
|
|
140
|
+
}, handleKeyUp = () => {
|
|
141
|
+
isArrowKeyPressedRef.current = !1;
|
|
142
|
+
};
|
|
143
|
+
return document.addEventListener("keydown", handleKeyDown), document.addEventListener("keyup", handleKeyUp), () => {
|
|
144
|
+
document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}, []), React.useEffect(() => {
|
|
148
|
+
if (props.id && !disabled)
|
|
149
|
+
return registerFocusable(props.id, {
|
|
150
|
+
focusAndSelect: () => {
|
|
151
|
+
onChange?.(value);
|
|
152
|
+
},
|
|
153
|
+
focus: () => {
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}, [props.id, value, disabled]);
|
|
157
|
+
const isDisabled = disabled || itemDisabled;
|
|
158
|
+
return /* @__PURE__ */ jsx(RadioGroupItemProvider, { checked, scope: __scopeRadioGroup, children: isWeb && native ? /* @__PURE__ */ jsx(
|
|
159
|
+
BubbleInput,
|
|
160
|
+
{
|
|
161
|
+
control: button,
|
|
162
|
+
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
163
|
+
name,
|
|
164
|
+
value,
|
|
165
|
+
checked,
|
|
166
|
+
required,
|
|
167
|
+
disabled: isDisabled,
|
|
168
|
+
id: props.id,
|
|
169
|
+
accentColor
|
|
170
|
+
}
|
|
171
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
172
|
+
/* @__PURE__ */ jsx(
|
|
173
|
+
RadioGroupItemFrame,
|
|
174
|
+
{
|
|
175
|
+
"data-state": getState(checked),
|
|
176
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
177
|
+
role: "radio",
|
|
178
|
+
"aria-labelledby": labelledBy,
|
|
179
|
+
"aria-checked": checked,
|
|
180
|
+
"aria-required": required,
|
|
181
|
+
disabled: isDisabled,
|
|
182
|
+
ref: composedRefs,
|
|
183
|
+
...isWeb && {
|
|
184
|
+
type: "button",
|
|
185
|
+
value
|
|
186
|
+
},
|
|
187
|
+
...itemProps,
|
|
188
|
+
onPress: composeEventHandlers(props.onPress, (event) => {
|
|
189
|
+
checked || onChange?.(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
190
|
+
}),
|
|
191
|
+
...isWeb && {
|
|
192
|
+
onKeyDown: composeEventHandlers(
|
|
193
|
+
props.onKeyDown,
|
|
194
|
+
(event) => {
|
|
195
|
+
event.key === "Enter" && event.preventDefault();
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
onFocus: composeEventHandlers(itemProps.onFocus, () => {
|
|
199
|
+
isArrowKeyPressedRef.current && ref.current?.click();
|
|
200
|
+
})
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
),
|
|
204
|
+
isFormControl && /* @__PURE__ */ jsx(
|
|
205
|
+
BubbleInput,
|
|
206
|
+
{
|
|
207
|
+
isHidden: !0,
|
|
208
|
+
control: button,
|
|
209
|
+
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
210
|
+
name,
|
|
211
|
+
value,
|
|
212
|
+
checked,
|
|
213
|
+
required,
|
|
214
|
+
disabled: isDisabled
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
] }) });
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
), BubbleInput = (props) => {
|
|
221
|
+
const { checked, bubbles = !0, control, isHidden, accentColor, ...inputProps } = props, ref = React.useRef(null), prevChecked = usePrevious(checked);
|
|
222
|
+
return React.useEffect(() => {
|
|
223
|
+
const input = ref.current, inputProto = window.HTMLInputElement.prototype, setChecked = Object.getOwnPropertyDescriptor(
|
|
224
|
+
inputProto,
|
|
225
|
+
"checked"
|
|
226
|
+
).set;
|
|
227
|
+
if (prevChecked !== checked && setChecked) {
|
|
228
|
+
const event = new Event("click", { bubbles });
|
|
229
|
+
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
230
|
+
}
|
|
231
|
+
}, [prevChecked, checked, bubbles]), /* @__PURE__ */ jsx(
|
|
232
|
+
"input",
|
|
233
|
+
{
|
|
234
|
+
type: "radio",
|
|
235
|
+
defaultChecked: checked,
|
|
236
|
+
...inputProps,
|
|
237
|
+
tabIndex: -1,
|
|
238
|
+
ref,
|
|
239
|
+
"aria-hidden": isHidden,
|
|
240
|
+
style: {
|
|
241
|
+
...isHidden ? {
|
|
242
|
+
// ...controlSize,
|
|
243
|
+
position: "absolute",
|
|
244
|
+
pointerEvents: "none",
|
|
245
|
+
opacity: 0,
|
|
246
|
+
margin: 0
|
|
247
|
+
} : {
|
|
248
|
+
appearance: "auto",
|
|
249
|
+
accentColor
|
|
250
|
+
},
|
|
251
|
+
...props.style
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}, RadioGroupFrame = styled(ThemeableStack, {
|
|
256
|
+
name: RADIO_GROUP_NAME,
|
|
257
|
+
variants: {
|
|
258
|
+
orientation: {
|
|
259
|
+
horizontal: {
|
|
260
|
+
flexDirection: "row",
|
|
261
|
+
spaceDirection: "horizontal"
|
|
262
|
+
},
|
|
263
|
+
vertical: {
|
|
264
|
+
flexDirection: "column",
|
|
265
|
+
spaceDirection: "vertical"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}), RadioGroup = withStaticProperties(
|
|
270
|
+
RadioGroupFrame.extractable(
|
|
271
|
+
React.forwardRef(
|
|
272
|
+
(props, forwardedRef) => {
|
|
273
|
+
const {
|
|
274
|
+
__scopeRadioGroup,
|
|
275
|
+
value: valueProp,
|
|
276
|
+
defaultValue,
|
|
277
|
+
onValueChange,
|
|
278
|
+
disabled = !1,
|
|
279
|
+
required = !1,
|
|
280
|
+
name,
|
|
281
|
+
orientation,
|
|
282
|
+
native,
|
|
283
|
+
accentColor,
|
|
284
|
+
...radioGroupProps
|
|
285
|
+
} = props, [value, setValue] = useControllableState({
|
|
286
|
+
prop: valueProp,
|
|
287
|
+
defaultProp: defaultValue,
|
|
288
|
+
onChange: onValueChange
|
|
289
|
+
});
|
|
290
|
+
return /* @__PURE__ */ jsx(
|
|
291
|
+
RadioGroupProvider,
|
|
292
|
+
{
|
|
293
|
+
scope: __scopeRadioGroup,
|
|
294
|
+
value,
|
|
295
|
+
required,
|
|
296
|
+
onChange: setValue,
|
|
297
|
+
disabled,
|
|
298
|
+
name,
|
|
299
|
+
native,
|
|
300
|
+
accentColor,
|
|
301
|
+
children: /* @__PURE__ */ jsx(
|
|
302
|
+
RadioGroupFrame,
|
|
303
|
+
{
|
|
304
|
+
"aria-valuetext": value,
|
|
305
|
+
role: "radiogroup",
|
|
306
|
+
"aria-orientation": orientation,
|
|
307
|
+
ref: forwardedRef,
|
|
308
|
+
orientation,
|
|
309
|
+
"data-disabled": disabled ? "" : void 0,
|
|
310
|
+
...radioGroupProps
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
),
|
|
318
|
+
{
|
|
319
|
+
Indicator: RadioIndicator,
|
|
320
|
+
Item: RadioGroupItem
|
|
321
|
+
}
|
|
322
|
+
);
|
|
323
|
+
RadioGroup.displayName = RADIO_GROUP_NAME;
|
|
324
|
+
export {
|
|
325
|
+
RadioGroup,
|
|
326
|
+
createRadioGroupScope
|
|
327
|
+
};
|
|
328
|
+
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/RadioGroup.tsx"],
|
|
4
|
+
"mappings": "AAGA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,0BAA0B;AAC1C,SAAS,yBAAyB;AAClC,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,YAAY,WAAW;AAqEb,SA8ME,UA9MF,KA8ME,YA9MF;AAlEV,MAAM,mBAAmB,cAEnB,aAAa,CAAC,WAAW,aAAa,aAAa,YAAY,GAE/D,CAAC,yBAAyB,qBAAqB,IACnD,mBAAmB,gBAAgB,GAU/B,CAAC,oBAAoB,oBAAoB,IAC7C,wBAAgD,gBAAgB,GAE5D,WAAW,CAAC,YACT,UAAU,YAAY,aAOzB,6BAA6B,uBAE7B,sBAAsB,OAAO,gBAAgB;AAAA,EACjD,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC,GASK,iBAAiB,oBAAoB;AAAA,EACzC,MAAM;AAAA,IACJ,CAAC,OAAuD,iBAAiB;AACvE,YAAM,EAAE,uBAAuB,YAAY,UAAU,GAAG,eAAe,IAAI,OACrE,EAAE,QAAQ,IAAI;AAAA,QAClB;AAAA,QACA;AAAA,MACF;AAEA,aAAI,c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ACf,gBAAgB;AAAA,MAClB;AAAA,MACA,UAAU;AAAA,QACR,eAAe;AAAA,QACf,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AACF,CAAC,GAaK,aAAa;AAAA,EACjB,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,CAAC,OAAqC,iBAAiB;AACrD,cAAM;AAAA,UACJ;AAAA,UACA,OAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,WAAW;AAAA,UACX,WAAW;AAAA,UACX;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,GAAG;AAAA,QACL,IAAI,OACE,CAAC,OAAO,QAAQ,IAAI,qBAAqB;AAAA,UAC7C,MAAM;AAAA,UACN,aAAa;AAAA,UACb,UAAU;AAAA,QACZ,CAAC;AAED,eACE;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP;AAAA,YACA;AAAA,YACA,UAAU;AAAA,YACV;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YAEA;AAAA,cAAC;AAAA;AAAA,gBACC,kBAAgB;AAAA,gBAChB,MAAK;AAAA,gBACL,oBAAkB;AAAA,gBAClB,KAAK;AAAA,gBACL;AAAA,gBACA,iBAAe,WAAW,KAAK;AAAA,gBAC9B,GAAG;AAAA;AAAA,YACN;AAAA;AAAA,QACF;AAAA,MAEJ;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,WAAW;AAAA,IACX,MAAM;AAAA,EACR;AACF;AAEA,WAAW,cAAc;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/radio-group",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.5",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/compose-refs": "1.74.
|
|
35
|
-
"@tamagui/core": "1.74.
|
|
36
|
-
"@tamagui/create-context": "1.74.
|
|
37
|
-
"@tamagui/focusable": "1.74.
|
|
38
|
-
"@tamagui/get-token": "1.74.
|
|
39
|
-
"@tamagui/label": "1.74.
|
|
40
|
-
"@tamagui/stacks": "1.74.
|
|
41
|
-
"@tamagui/use-controllable-state": "1.74.
|
|
42
|
-
"@tamagui/use-previous": "1.74.
|
|
34
|
+
"@tamagui/compose-refs": "1.74.5",
|
|
35
|
+
"@tamagui/core": "1.74.5",
|
|
36
|
+
"@tamagui/create-context": "1.74.5",
|
|
37
|
+
"@tamagui/focusable": "1.74.5",
|
|
38
|
+
"@tamagui/get-token": "1.74.5",
|
|
39
|
+
"@tamagui/label": "1.74.5",
|
|
40
|
+
"@tamagui/stacks": "1.74.5",
|
|
41
|
+
"@tamagui/use-controllable-state": "1.74.5",
|
|
42
|
+
"@tamagui/use-previous": "1.74.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "*"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@tamagui/build": "1.74.
|
|
48
|
+
"@tamagui/build": "1.74.5",
|
|
49
49
|
"react": "^18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|