@tamagui/radio-group 1.113.1 → 1.113.2
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/dist/esm/RadioGroup.native.js +92 -97
- package/dist/esm/RadioGroup.native.js.map +6 -1
- package/dist/esm/RadioGroupStyledContext.native.js +4 -2
- package/dist/esm/RadioGroupStyledContext.native.js.map +6 -1
- package/dist/esm/createRadioGroup.native.js +69 -104
- package/dist/esm/createRadioGroup.native.js.map +6 -1
- package/dist/esm/index.native.js +9 -7
- package/dist/esm/index.native.js.map +6 -1
- package/package.json +15 -15
|
@@ -1,109 +1,104 @@
|
|
|
1
1
|
import { getVariableValue, styled } from "@tamagui/core";
|
|
2
2
|
import { getSize } from "@tamagui/get-token";
|
|
3
3
|
import { ThemeableStack } from "@tamagui/stacks";
|
|
4
|
-
var RADIO_GROUP_ITEM_NAME = "RadioGroupItem",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
backgroundColor: "$backgroundFocus"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
disabled: {
|
|
39
|
-
true: {
|
|
40
|
-
pointerEvents: "none",
|
|
41
|
-
userSelect: "none",
|
|
42
|
-
cursor: "not-allowed",
|
|
43
|
-
hoverStyle: {
|
|
44
|
-
borderColor: "$borderColor",
|
|
45
|
-
backgroundColor: "$background"
|
|
46
|
-
},
|
|
47
|
-
pressStyle: {
|
|
48
|
-
borderColor: "$borderColor",
|
|
49
|
-
backgroundColor: "$backgroundColor"
|
|
50
|
-
},
|
|
51
|
-
focusVisibleStyle: {
|
|
52
|
-
outlineWidth: 0
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
size: {
|
|
57
|
-
"...size": function (value, param) {
|
|
58
|
-
var {
|
|
59
|
-
props
|
|
60
|
-
} = param,
|
|
61
|
-
_props_scaleSize,
|
|
62
|
-
size = Math.floor(getVariableValue(getSize(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
|
|
63
|
-
return {
|
|
64
|
-
width: size,
|
|
65
|
-
height: size
|
|
66
|
-
};
|
|
4
|
+
var RADIO_GROUP_ITEM_NAME = "RadioGroupItem", RadioGroupItemFrame = styled(ThemeableStack, {
|
|
5
|
+
name: RADIO_GROUP_ITEM_NAME,
|
|
6
|
+
tag: "button",
|
|
7
|
+
variants: {
|
|
8
|
+
unstyled: {
|
|
9
|
+
false: {
|
|
10
|
+
size: "$true",
|
|
11
|
+
borderRadius: 1e3,
|
|
12
|
+
backgroundColor: "$background",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
borderWidth: 1,
|
|
16
|
+
borderColor: "$borderColor",
|
|
17
|
+
padding: 0,
|
|
18
|
+
hoverStyle: {
|
|
19
|
+
borderColor: "$borderColorHover",
|
|
20
|
+
backgroundColor: "$backgroundHover"
|
|
21
|
+
},
|
|
22
|
+
focusStyle: {
|
|
23
|
+
borderColor: "$borderColorHover",
|
|
24
|
+
backgroundColor: "$backgroundHover"
|
|
25
|
+
},
|
|
26
|
+
focusVisibleStyle: {
|
|
27
|
+
outlineStyle: "solid",
|
|
28
|
+
outlineWidth: 2,
|
|
29
|
+
outlineColor: "$outlineColor"
|
|
30
|
+
},
|
|
31
|
+
pressStyle: {
|
|
32
|
+
borderColor: "$borderColorFocus",
|
|
33
|
+
backgroundColor: "$backgroundFocus"
|
|
67
34
|
}
|
|
68
35
|
}
|
|
69
36
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
37
|
+
disabled: {
|
|
38
|
+
true: {
|
|
39
|
+
pointerEvents: "none",
|
|
40
|
+
userSelect: "none",
|
|
41
|
+
cursor: "not-allowed",
|
|
42
|
+
hoverStyle: {
|
|
43
|
+
borderColor: "$borderColor",
|
|
44
|
+
backgroundColor: "$background"
|
|
45
|
+
},
|
|
46
|
+
pressStyle: {
|
|
47
|
+
borderColor: "$borderColor",
|
|
48
|
+
backgroundColor: "$backgroundColor"
|
|
49
|
+
},
|
|
50
|
+
focusVisibleStyle: {
|
|
51
|
+
outlineWidth: 0
|
|
85
52
|
}
|
|
86
53
|
}
|
|
87
54
|
},
|
|
88
|
-
|
|
89
|
-
|
|
55
|
+
size: {
|
|
56
|
+
"...size": function(value, param) {
|
|
57
|
+
var { props } = param, _props_scaleSize, size = Math.floor(getVariableValue(getSize(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
|
|
58
|
+
return {
|
|
59
|
+
width: size,
|
|
60
|
+
height: size
|
|
61
|
+
};
|
|
62
|
+
}
|
|
90
63
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
67
|
+
}
|
|
68
|
+
}), RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioGroupIndicatorFrame = styled(ThemeableStack, {
|
|
69
|
+
name: RADIO_GROUP_INDICATOR_NAME,
|
|
70
|
+
variants: {
|
|
71
|
+
unstyled: {
|
|
72
|
+
false: {
|
|
73
|
+
width: "33%",
|
|
74
|
+
height: "33%",
|
|
75
|
+
borderRadius: 1e3,
|
|
76
|
+
backgroundColor: "$color",
|
|
77
|
+
pressTheme: !0
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
defaultVariants: {
|
|
82
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
83
|
+
}
|
|
84
|
+
}), RADIO_GROUP_NAME = "RadioGroup", RadioGroupFrame = styled(ThemeableStack, {
|
|
85
|
+
name: RADIO_GROUP_NAME,
|
|
86
|
+
variants: {
|
|
87
|
+
orientation: {
|
|
88
|
+
horizontal: {
|
|
89
|
+
flexDirection: "row",
|
|
90
|
+
spaceDirection: "horizontal"
|
|
91
|
+
},
|
|
92
|
+
vertical: {
|
|
93
|
+
flexDirection: "column",
|
|
94
|
+
spaceDirection: "vertical"
|
|
105
95
|
}
|
|
106
96
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
RadioGroupFrame,
|
|
101
|
+
RadioGroupIndicatorFrame,
|
|
102
|
+
RadioGroupItemFrame
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/radio-group/src/RadioGroup.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAASA,kBAAkBC,cAAc;AACzC,SAASC,eAAe;AACxB,SAASC,sBAAsB;AAE/B,IAAMC,wBAAwB,kBAEjBC,sBAAsBJ,OAAOE,gBAAgB;EACxDG,MAAMF;EACNG,KAAK;EAELC,UAAU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sC,aAAa;MACXC,YAAY;QACVC,eAAe;QACfC,gBAAgB;MAClB;MACAC,UAAU;QACRF,eAAe;QACfC,gBAAgB;MAClB;IACF;EACF;AACF,CAAA;",
|
|
5
|
+
"names": ["getVariableValue", "styled", "getSize", "ThemeableStack", "RADIO_GROUP_ITEM_NAME", "RadioGroupItemFrame", "name", "tag", "variants", "unstyled", "false", "size", "borderRadius", "backgroundColor", "alignItems", "justifyContent", "borderWidth", "borderColor", "padding", "hoverStyle", "focusStyle", "focusVisibleStyle", "outlineStyle", "outlineWidth", "outlineColor", "pressStyle", "disabled", "true", "pointerEvents", "userSelect", "cursor", "value", "props", "Math", "floor", "width", "height", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "RADIO_GROUP_INDICATOR_NAME", "RadioGroupIndicatorFrame", "pressTheme", "RADIO_GROUP_NAME", "RadioGroupFrame", "orientation", "horizontal", "flexDirection", "spaceDirection", "vertical"]
|
|
6
|
+
}
|
|
@@ -3,5 +3,7 @@ var RadioGroupStyledContext = createStyledContext({
|
|
|
3
3
|
size: "$true",
|
|
4
4
|
scaleIcon: 1
|
|
5
5
|
});
|
|
6
|
-
export {
|
|
7
|
-
|
|
6
|
+
export {
|
|
7
|
+
RadioGroupStyledContext
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=RadioGroupStyledContext.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/radio-group/src/RadioGroupStyledContext.tsx"],
|
|
4
|
+
"mappings": "AACA,SAASA,2BAA2B;AAE7B,IAAMC,0BAA0BD,oBAAoB;EACzDE,MAAM;EACNC,WAAW;AACb,CAAA;",
|
|
5
|
+
"names": ["createStyledContext", "RadioGroupStyledContext", "size", "scaleIcon"]
|
|
6
|
+
}
|
|
@@ -1,121 +1,84 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { isWeb, withStaticProperties } from "@tamagui/core";
|
|
4
|
-
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup
|
|
4
|
+
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup";
|
|
5
5
|
import { useRadioGroup, useRadioGroupItem, useRadioGroupItemIndicator } from "@tamagui/radio-headless";
|
|
6
6
|
import { RovingFocusGroup } from "@tamagui/roving-focus";
|
|
7
|
-
var ensureContext = function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
disabled: !1
|
|
14
|
-
});
|
|
7
|
+
var ensureContext = function(x) {
|
|
8
|
+
x.context || (x.context = RadioGroupContext);
|
|
9
|
+
}, RadioGroupContext = /* @__PURE__ */ React.createContext({}), RadioGroupItemContext = /* @__PURE__ */ React.createContext({
|
|
10
|
+
checked: !1,
|
|
11
|
+
disabled: !1
|
|
12
|
+
});
|
|
15
13
|
function createRadioGroup(createProps) {
|
|
16
|
-
var {
|
|
17
|
-
disableActiveTheme,
|
|
18
|
-
Frame = RadioGroupFrame,
|
|
19
|
-
Indicator = RadioGroupIndicatorFrame,
|
|
20
|
-
Item = RadioGroupItemFrame
|
|
21
|
-
} = createProps;
|
|
14
|
+
var { disableActiveTheme, Frame = RadioGroupFrame, Indicator = RadioGroupIndicatorFrame, Item = RadioGroupItemFrame } = createProps;
|
|
22
15
|
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
23
|
-
var RadioGroupImp = Frame.styleable(function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
var RadioGroupImp = Frame.styleable(function(props, ref) {
|
|
17
|
+
var { value, defaultValue, onValueChange, required = !1, disabled = !1, name, native, accentColor, orientation = "vertical", ...rest } = props, { providerValue, frameAttrs, rovingFocusGroupAttrs } = useRadioGroup({
|
|
18
|
+
orientation,
|
|
19
|
+
name,
|
|
20
|
+
defaultValue,
|
|
21
|
+
value,
|
|
22
|
+
onValueChange,
|
|
23
|
+
required,
|
|
24
|
+
disabled,
|
|
25
|
+
native,
|
|
26
|
+
accentColor
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ _jsx(RadioGroupContext.Provider, {
|
|
29
|
+
value: providerValue,
|
|
30
|
+
children: /* @__PURE__ */ _jsx(RovingFocusGroup, {
|
|
31
|
+
...rovingFocusGroupAttrs,
|
|
32
|
+
children: /* @__PURE__ */ _jsx(RadioGroupFrame, {
|
|
33
|
+
...frameAttrs,
|
|
34
|
+
ref,
|
|
34
35
|
...rest
|
|
35
|
-
} = props,
|
|
36
|
-
{
|
|
37
|
-
providerValue,
|
|
38
|
-
frameAttrs,
|
|
39
|
-
rovingFocusGroupAttrs
|
|
40
|
-
} = useRadioGroup({
|
|
41
|
-
orientation,
|
|
42
|
-
name,
|
|
43
|
-
defaultValue,
|
|
44
|
-
value,
|
|
45
|
-
onValueChange,
|
|
46
|
-
required,
|
|
47
|
-
disabled,
|
|
48
|
-
native,
|
|
49
|
-
accentColor
|
|
50
|
-
});
|
|
51
|
-
return /* @__PURE__ */_jsx(RadioGroupContext.Provider, {
|
|
52
|
-
value: providerValue,
|
|
53
|
-
children: /* @__PURE__ */_jsx(RovingFocusGroup, {
|
|
54
|
-
...rovingFocusGroupAttrs,
|
|
55
|
-
children: /* @__PURE__ */_jsx(RadioGroupFrame, {
|
|
56
|
-
...frameAttrs,
|
|
57
|
-
ref,
|
|
58
|
-
...rest
|
|
59
|
-
})
|
|
60
36
|
})
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
onPress,
|
|
88
|
-
onKeyDown
|
|
89
|
-
});
|
|
90
|
-
return /* @__PURE__ */_jsx(RadioGroupItemContext.Provider, {
|
|
91
|
-
value: providerValue,
|
|
92
|
-
children: isWeb && native ? bubbleInput : /* @__PURE__ */_jsxs(_Fragment, {
|
|
93
|
-
children: [/* @__PURE__ */_jsx(RovingFocusGroup.Item, {
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}), RadioGroupItemImp = Item.styleable(function(props, ref) {
|
|
40
|
+
var {
|
|
41
|
+
value,
|
|
42
|
+
labelledBy,
|
|
43
|
+
onPress,
|
|
44
|
+
//@ts-expect-error
|
|
45
|
+
onKeyDown,
|
|
46
|
+
disabled,
|
|
47
|
+
id,
|
|
48
|
+
...rest
|
|
49
|
+
} = props, { providerValue, bubbleInput, rovingFocusGroupAttrs, frameAttrs, isFormControl, native } = useRadioGroupItem({
|
|
50
|
+
radioGroupContext: RadioGroupContext,
|
|
51
|
+
value,
|
|
52
|
+
id,
|
|
53
|
+
labelledBy,
|
|
54
|
+
disabled,
|
|
55
|
+
onPress,
|
|
56
|
+
onKeyDown
|
|
57
|
+
});
|
|
58
|
+
return /* @__PURE__ */ _jsx(RadioGroupItemContext.Provider, {
|
|
59
|
+
value: providerValue,
|
|
60
|
+
children: isWeb && native ? bubbleInput : /* @__PURE__ */ _jsxs(_Fragment, {
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ _jsx(RovingFocusGroup.Item, {
|
|
94
63
|
...rovingFocusGroupAttrs,
|
|
95
|
-
children: /* @__PURE__ */_jsx(RadioGroupItemFrame, {
|
|
64
|
+
children: /* @__PURE__ */ _jsx(RadioGroupItemFrame, {
|
|
96
65
|
...frameAttrs,
|
|
97
66
|
ref,
|
|
98
67
|
...rest
|
|
99
68
|
})
|
|
100
|
-
}),
|
|
101
|
-
|
|
102
|
-
|
|
69
|
+
}),
|
|
70
|
+
isFormControl && bubbleInput
|
|
71
|
+
]
|
|
72
|
+
})
|
|
103
73
|
});
|
|
74
|
+
});
|
|
104
75
|
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
105
|
-
var RadioIndicator = Indicator.styleable(function
|
|
106
|
-
var {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
{
|
|
112
|
-
checked,
|
|
113
|
-
...useIndicatorRest
|
|
114
|
-
} = useRadioGroupItemIndicator({
|
|
115
|
-
radioGroupItemContext: RadioGroupItemContext,
|
|
116
|
-
disabled
|
|
117
|
-
});
|
|
118
|
-
return forceMount || checked ? /* @__PURE__ */_jsx(Indicator, {
|
|
76
|
+
var RadioIndicator = Indicator.styleable(function(props, forwardedRef) {
|
|
77
|
+
var { forceMount, disabled, ...indicatorProps } = props, { checked, ...useIndicatorRest } = useRadioGroupItemIndicator({
|
|
78
|
+
radioGroupItemContext: RadioGroupItemContext,
|
|
79
|
+
disabled
|
|
80
|
+
});
|
|
81
|
+
return forceMount || checked ? /* @__PURE__ */ _jsx(Indicator, {
|
|
119
82
|
...useIndicatorRest,
|
|
120
83
|
ref: forwardedRef,
|
|
121
84
|
...indicatorProps
|
|
@@ -128,5 +91,7 @@ function createRadioGroup(createProps) {
|
|
|
128
91
|
});
|
|
129
92
|
return RadioGroup.displayName = "RadioGroup", RadioGroup;
|
|
130
93
|
}
|
|
131
|
-
export {
|
|
132
|
-
|
|
94
|
+
export {
|
|
95
|
+
createRadioGroup
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=createRadioGroup.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/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nBe;MACAiB;MACAH;MACAzB;MACA0B;MACAC;IACF,CAAA;AAEA,WACE,qBAAC7B,sBAAsByB,UAAQ;MAACZ,OAAOS;gBACpCpC,SAASgC,SACRa,cAEA,sBAAA,WAAA;;UACE,qBAACrC,iBAAiBc,MAAI;YAAE,GAAGgB;sBACzB,qBAAClC,qBAAAA;cAAqB,GAAGiC;cAAYX;cAAW,GAAGS;;;UAEpDW,iBAAiBD;;;;EAK5B,CAAA;AAEAL,oBAAkBQ,cAAc;AAEhC,MAAMC,iBAAiB5B,UAAUG,UAC/B,SAACC,OAA4ByB,cAAAA;AAC3B,QAAM,EAAEC,YAAYnC,UAAU,GAAGoC,eAAAA,IAAmB3B,OAC9C,EAAEV,SAAS,GAAGsC,iBAAAA,IAAqB9C,2BAA2B;MAClE+C,uBAAuBxC;MACvBE;IACF,CAAA;AAEA,WAAImC,cAAcpC,UACT,qBAACM,WAAAA;MAAW,GAAGgC;MAAkB3B,KAAKwB;MAAe,GAAGE;SAG1D;EACT,CAAA;AAGFH,iBAAeD,cAAc;AAE7B,MAAMO,aAAatD,qBAAqBsB,eAAe;IACrDD,MAAMkB;IACNnB,WAAW4B;EACb,CAAA;AACAM,oBAAWP,cAAc,cAElBO;AACT;",
|
|
5
|
+
"names": ["React", "isWeb", "withStaticProperties", "RadioGroupFrame", "RadioGroupIndicatorFrame", "RadioGroupItemFrame", "useRadioGroup", "useRadioGroupItem", "useRadioGroupItemIndicator", "RovingFocusGroup", "ensureContext", "x", "context", "RadioGroupContext", "createContext", "RadioGroupItemContext", "checked", "disabled", "createRadioGroup", "createProps", "disableActiveTheme", "Frame", "Indicator", "Item", "RadioGroupImp", "styleable", "props", "ref", "value", "defaultValue", "onValueChange", "required", "name", "native", "accentColor", "orientation", "rest", "providerValue", "frameAttrs", "rovingFocusGroupAttrs", "Provider", "RadioGroupItemImp", "labelledBy", "onPress", "onKeyDown", "id", "bubbleInput", "isFormControl", "radioGroupContext", "displayName", "RadioIndicator", "forwardedRef", "forceMount", "indicatorProps", "useIndicatorRest", "radioGroupItemContext", "RadioGroup"]
|
|
6
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup
|
|
2
|
-
import { createRadioGroup } from "./createRadioGroup
|
|
3
|
-
export * from "./createRadioGroup
|
|
4
|
-
export * from "./RadioGroup
|
|
5
|
-
export * from "./RadioGroupStyledContext
|
|
1
|
+
import { RadioGroupFrame, RadioGroupIndicatorFrame, RadioGroupItemFrame } from "./RadioGroup";
|
|
2
|
+
import { createRadioGroup } from "./createRadioGroup";
|
|
3
|
+
export * from "./createRadioGroup";
|
|
4
|
+
export * from "./RadioGroup";
|
|
5
|
+
export * from "./RadioGroupStyledContext";
|
|
6
6
|
var RadioGroup = createRadioGroup({
|
|
7
7
|
Frame: RadioGroupFrame,
|
|
8
8
|
Indicator: RadioGroupIndicatorFrame,
|
|
9
9
|
Item: RadioGroupItemFrame
|
|
10
10
|
});
|
|
11
|
-
export {
|
|
12
|
-
|
|
11
|
+
export {
|
|
12
|
+
RadioGroup
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/radio-group/src/index.ts"],
|
|
4
|
+
"mappings": "AAAA,SACEA,iBACAC,0BACAC,2BACK;AACP,SAASC,wBAAwB;AAEjC,cAAc;AACd,cAAc;AACd,cAAc;AAEP,IAAMC,aAAaD,iBAAiB;EACzCE,OAAOL;EACPM,WAAWL;EACXM,MAAML;AACR,CAAA;",
|
|
5
|
+
"names": ["RadioGroupFrame", "RadioGroupIndicatorFrame", "RadioGroupItemFrame", "createRadioGroup", "RadioGroup", "Frame", "Indicator", "Item"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/radio-group",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"removeSideEffects": true,
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/compose-refs": "1.113.
|
|
38
|
-
"@tamagui/constants": "1.113.
|
|
39
|
-
"@tamagui/core": "1.113.
|
|
40
|
-
"@tamagui/create-context": "1.113.
|
|
41
|
-
"@tamagui/focusable": "1.113.
|
|
42
|
-
"@tamagui/get-token": "1.113.
|
|
43
|
-
"@tamagui/helpers": "1.113.
|
|
44
|
-
"@tamagui/label": "1.113.
|
|
45
|
-
"@tamagui/radio-headless": "1.113.
|
|
46
|
-
"@tamagui/roving-focus": "1.113.
|
|
47
|
-
"@tamagui/stacks": "1.113.
|
|
48
|
-
"@tamagui/use-controllable-state": "1.113.
|
|
49
|
-
"@tamagui/use-previous": "1.113.
|
|
37
|
+
"@tamagui/compose-refs": "1.113.2",
|
|
38
|
+
"@tamagui/constants": "1.113.2",
|
|
39
|
+
"@tamagui/core": "1.113.2",
|
|
40
|
+
"@tamagui/create-context": "1.113.2",
|
|
41
|
+
"@tamagui/focusable": "1.113.2",
|
|
42
|
+
"@tamagui/get-token": "1.113.2",
|
|
43
|
+
"@tamagui/helpers": "1.113.2",
|
|
44
|
+
"@tamagui/label": "1.113.2",
|
|
45
|
+
"@tamagui/radio-headless": "1.113.2",
|
|
46
|
+
"@tamagui/roving-focus": "1.113.2",
|
|
47
|
+
"@tamagui/stacks": "1.113.2",
|
|
48
|
+
"@tamagui/use-controllable-state": "1.113.2",
|
|
49
|
+
"@tamagui/use-previous": "1.113.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tamagui/build": "1.113.
|
|
52
|
+
"@tamagui/build": "1.113.2",
|
|
53
53
|
"react": "^18.2.0 || ^19.0.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|