@tamagui/radio-group 1.96.0 → 1.97.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/dist/cjs/RadioGroup.js +23 -248
- package/dist/cjs/RadioGroup.js.map +1 -1
- package/dist/cjs/RadioGroup.native.js +25 -336
- package/dist/cjs/RadioGroup.native.js.map +2 -2
- package/dist/cjs/RadioGroupStyledContext.js +25 -0
- package/dist/cjs/RadioGroupStyledContext.js.map +6 -0
- package/dist/cjs/RadioGroupStyledContext.native.js +29 -0
- package/dist/cjs/RadioGroupStyledContext.native.js.map +6 -0
- package/dist/cjs/createRadioGroup.js +107 -0
- package/dist/cjs/createRadioGroup.js.map +6 -0
- package/dist/cjs/createRadioGroup.native.js +171 -0
- package/dist/cjs/createRadioGroup.native.js.map +6 -0
- package/dist/cjs/index.js +15 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +19 -2
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/RadioGroup.js +20 -248
- package/dist/esm/RadioGroup.js.map +1 -1
- package/dist/esm/RadioGroup.mjs +19 -240
- package/dist/esm/RadioGroup.native.js +20 -334
- package/dist/esm/RadioGroup.native.js.map +2 -2
- package/dist/esm/RadioGroupStyledContext.js +9 -0
- package/dist/esm/RadioGroupStyledContext.js.map +6 -0
- package/dist/esm/RadioGroupStyledContext.mjs +6 -0
- package/dist/esm/RadioGroupStyledContext.native.js +9 -0
- package/dist/esm/RadioGroupStyledContext.native.js.map +6 -0
- package/dist/esm/createRadioGroup.js +104 -0
- package/dist/esm/createRadioGroup.js.map +6 -0
- package/dist/esm/createRadioGroup.mjs +131 -0
- package/dist/esm/createRadioGroup.native.js +155 -0
- package/dist/esm/createRadioGroup.native.js.map +6 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +11 -1
- package/dist/esm/index.native.js +12 -0
- package/dist/esm/index.native.js.map +2 -2
- package/dist/jsx/RadioGroup.js +20 -248
- package/dist/jsx/RadioGroup.js.map +1 -1
- package/dist/jsx/RadioGroup.mjs +19 -240
- package/dist/jsx/RadioGroup.native.js +20 -334
- package/dist/jsx/RadioGroup.native.js.map +2 -2
- package/dist/jsx/RadioGroupStyledContext.js +9 -0
- package/dist/jsx/RadioGroupStyledContext.js.map +6 -0
- package/dist/jsx/RadioGroupStyledContext.mjs +6 -0
- package/dist/jsx/RadioGroupStyledContext.native.js +9 -0
- package/dist/jsx/RadioGroupStyledContext.native.js.map +6 -0
- package/dist/jsx/createRadioGroup.js +104 -0
- package/dist/jsx/createRadioGroup.js.map +6 -0
- package/dist/jsx/createRadioGroup.mjs +131 -0
- package/dist/jsx/createRadioGroup.native.js +155 -0
- package/dist/jsx/createRadioGroup.native.js.map +6 -0
- package/dist/jsx/index.js +16 -0
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +11 -1
- package/dist/jsx/index.native.js +12 -0
- package/dist/jsx/index.native.js.map +2 -2
- package/package.json +14 -14
- package/src/RadioGroup.tsx +22 -432
- package/src/RadioGroupStyledContext.tsx +7 -0
- package/src/createRadioGroup.tsx +201 -0
- package/src/index.ts +15 -0
- package/types/RadioGroup.d.ts +7 -224
- package/types/RadioGroup.d.ts.map +1 -1
- package/types/RadioGroupStyledContext.d.ts +6 -0
- package/types/RadioGroupStyledContext.d.ts.map +1 -0
- package/types/createRadioGroup.d.ts +979 -0
- package/types/createRadioGroup.d.ts.map +1 -0
- package/types/index.d.ts +949 -0
- package/types/index.d.ts.map +1 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var createRadioGroup_exports = {};
|
|
17
|
+
__export(createRadioGroup_exports, {
|
|
18
|
+
createRadioGroup: () => createRadioGroup
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(createRadioGroup_exports);
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_core = require("@tamagui/core"), import_RadioGroup = require("./RadioGroup"), import_radio_headless = require("@tamagui/radio-headless"), import_roving_focus = require("@tamagui/roving-focus"), import_react = require("react");
|
|
22
|
+
function _define_property(obj, key, value) {
|
|
23
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
+
value,
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
configurable: !0,
|
|
27
|
+
writable: !0
|
|
28
|
+
}) : obj[key] = value, obj;
|
|
29
|
+
}
|
|
30
|
+
function _object_spread(target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
33
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
+
}))), ownKeys2.forEach(function(key) {
|
|
36
|
+
_define_property(target, key, source[key]);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
41
|
+
function ownKeys(object, enumerableOnly) {
|
|
42
|
+
var keys = Object.keys(object);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
45
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
47
|
+
})), keys.push.apply(keys, symbols);
|
|
48
|
+
}
|
|
49
|
+
return keys;
|
|
50
|
+
}
|
|
51
|
+
function _object_spread_props(target, source) {
|
|
52
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
53
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
54
|
+
}), target;
|
|
55
|
+
}
|
|
56
|
+
function _object_without_properties(source, excluded) {
|
|
57
|
+
if (source == null)
|
|
58
|
+
return {};
|
|
59
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
60
|
+
if (Object.getOwnPropertySymbols) {
|
|
61
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
62
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
63
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
64
|
+
}
|
|
65
|
+
return target;
|
|
66
|
+
}
|
|
67
|
+
function _object_without_properties_loose(source, excluded) {
|
|
68
|
+
if (source == null)
|
|
69
|
+
return {};
|
|
70
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
71
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
72
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
73
|
+
return target;
|
|
74
|
+
}
|
|
75
|
+
var ensureContext = function(x) {
|
|
76
|
+
x.context || (x.context = RadioGroupContext);
|
|
77
|
+
}, RadioGroupContext = /* @__PURE__ */ (0, import_react.createContext)({}), RadioGroupItemContext = /* @__PURE__ */ (0, import_react.createContext)({
|
|
78
|
+
checked: !1,
|
|
79
|
+
disabled: !1
|
|
80
|
+
});
|
|
81
|
+
function createRadioGroup(createProps) {
|
|
82
|
+
var disableActiveTheme = createProps.disableActiveTheme, _createProps_Frame = createProps.Frame, Frame = _createProps_Frame === void 0 ? import_RadioGroup.RadioGroupFrame : _createProps_Frame, _createProps_Indicator = createProps.Indicator, Indicator = _createProps_Indicator === void 0 ? import_RadioGroup.RadioGroupIndicatorFrame : _createProps_Indicator, _createProps_Item = createProps.Item, Item = _createProps_Item === void 0 ? import_RadioGroup.RadioGroupItemFrame : _createProps_Item;
|
|
83
|
+
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
84
|
+
var RadioGroupImp = Frame.styleable(function(props, ref) {
|
|
85
|
+
var value = props.value, defaultValue = props.defaultValue, onValueChange = props.onValueChange, _props_required = props.required, required = _props_required === void 0 ? !1 : _props_required, _props_disabled = props.disabled, disabled = _props_disabled === void 0 ? !1 : _props_disabled, name = props.name, native = props.native, accentColor = props.accentColor, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "vertical" : _props_orientation, rest = _object_without_properties(props, [
|
|
86
|
+
"value",
|
|
87
|
+
"defaultValue",
|
|
88
|
+
"onValueChange",
|
|
89
|
+
"required",
|
|
90
|
+
"disabled",
|
|
91
|
+
"name",
|
|
92
|
+
"native",
|
|
93
|
+
"accentColor",
|
|
94
|
+
"orientation"
|
|
95
|
+
]), _useRadioGroup = (0, import_radio_headless.useRadioGroup)({
|
|
96
|
+
orientation,
|
|
97
|
+
name,
|
|
98
|
+
defaultValue,
|
|
99
|
+
value,
|
|
100
|
+
onValueChange,
|
|
101
|
+
required,
|
|
102
|
+
disabled,
|
|
103
|
+
native,
|
|
104
|
+
accentColor
|
|
105
|
+
}), providerValue = _useRadioGroup.providerValue, frameAttrs = _useRadioGroup.frameAttrs, rovingFocusGroupAttrs = _useRadioGroup.rovingFocusGroupAttrs;
|
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadioGroupContext.Provider, {
|
|
107
|
+
value: providerValue,
|
|
108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup, _object_spread_props(_object_spread({}, rovingFocusGroupAttrs), {
|
|
109
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupFrame, _object_spread(_object_spread_props(_object_spread({}, frameAttrs), {
|
|
110
|
+
ref
|
|
111
|
+
}), rest))
|
|
112
|
+
}))
|
|
113
|
+
});
|
|
114
|
+
}), RadioGroupItemImp = Item.styleable(function(props, ref) {
|
|
115
|
+
var value = props.value, labelledBy = props.labelledBy, onPress = props.onPress, onKeyDown = props.onKeyDown, disabled = props.disabled, id = props.id, rest = _object_without_properties(props, [
|
|
116
|
+
"value",
|
|
117
|
+
"labelledBy",
|
|
118
|
+
"onPress",
|
|
119
|
+
"onKeyDown",
|
|
120
|
+
"disabled",
|
|
121
|
+
"id"
|
|
122
|
+
]), _useRadioGroupItem = (0, import_radio_headless.useRadioGroupItem)({
|
|
123
|
+
radioGroupContext: RadioGroupContext,
|
|
124
|
+
value,
|
|
125
|
+
id,
|
|
126
|
+
labelledBy,
|
|
127
|
+
disabled,
|
|
128
|
+
onPress,
|
|
129
|
+
onKeyDown
|
|
130
|
+
}), providerValue = _useRadioGroupItem.providerValue, bubbleInput = _useRadioGroupItem.bubbleInput, rovingFocusGroupAttrs = _useRadioGroupItem.rovingFocusGroupAttrs, frameAttrs = _useRadioGroupItem.frameAttrs, isFormControl = _useRadioGroupItem.isFormControl, native = _useRadioGroupItem.native;
|
|
131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadioGroupItemContext.Provider, {
|
|
132
|
+
value: providerValue,
|
|
133
|
+
children: import_core.isWeb && native ? bubbleInput : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup.Item, _object_spread_props(_object_spread({}, rovingFocusGroupAttrs), {
|
|
136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupItemFrame, _object_spread(_object_spread_props(_object_spread({}, frameAttrs), {
|
|
137
|
+
ref
|
|
138
|
+
}), rest))
|
|
139
|
+
})),
|
|
140
|
+
isFormControl && bubbleInput
|
|
141
|
+
]
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
146
|
+
var RadioIndicator = Indicator.styleable(function(props, forwardedRef) {
|
|
147
|
+
var forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties(props, [
|
|
148
|
+
"forceMount",
|
|
149
|
+
"disabled"
|
|
150
|
+
]), _useRadioGroupItemIndicator = (0, import_radio_headless.useRadioGroupItemIndicator)({
|
|
151
|
+
radioGroupItemContext: RadioGroupItemContext,
|
|
152
|
+
disabled
|
|
153
|
+
}), checked = _useRadioGroupItemIndicator.checked, useIndicatorRest = _object_without_properties(_useRadioGroupItemIndicator, [
|
|
154
|
+
"checked"
|
|
155
|
+
]);
|
|
156
|
+
return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Indicator, _object_spread(_object_spread_props(_object_spread({}, useIndicatorRest), {
|
|
157
|
+
ref: forwardedRef
|
|
158
|
+
}), indicatorProps)) : null;
|
|
159
|
+
});
|
|
160
|
+
RadioIndicator.displayName = "RadioIndicator";
|
|
161
|
+
var RadioGroup = (0, import_core.withStaticProperties)(RadioGroupImp, {
|
|
162
|
+
Item: RadioGroupItemImp,
|
|
163
|
+
Indicator: RadioIndicator
|
|
164
|
+
});
|
|
165
|
+
return RadioGroup.displayName = "RadioGroup", RadioGroup;
|
|
166
|
+
}
|
|
167
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
168
|
+
0 && (module.exports = {
|
|
169
|
+
createRadioGroup
|
|
170
|
+
});
|
|
171
|
+
//# sourceMappingURL=createRadioGroup.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/radio-group/src/createRadioGroup.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDAKA,cAA4C,0BAE5C,oBAIO,yBAaP,wBAIO,oCACP,sBAAiC,kCACjC,eAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjB9B,IAAMA,gBAAgB,SAACC,GAAAA;AACrB,EAAKA,EAAEC,YACLD,EAAEC,UAAUC;AAEhB,GAcMA,oBAAoBC,gDAAsC,CAAC,CAAA,GAC3DC,wBAAwBD,gDAA0C;EACtEE,SAAS;EACTC,UAAU;AACZ,CAAA;AA0BO,SAASC,iBAIdC,aAAiF;AACjF,MACEC,qBAIED,YAJFC,oBAAAA,qBAIED,YAHFE,OAAAA,QAAAA,uBAAAA,SAAQC,oCAAAA,oBAAAA,yBAGNH,YAFFI,WAAAA,YAAAA,2BAAAA,SAAYC,6CAAAA,wBAAAA,oBAEVL,YADFM,MAAAA,OAAAA,sBAAAA,SAAOC,wCAAAA;AAQThB,gBAAcW,KAAAA,GACdX,cAAca,SAAAA,GACdb,cAAce,IAAAA;AAad,MAAME,gBAAgBN,MAAMO,UAA2B,SAACC,OAAOC,KAAAA;AAC7D,QACEC,QAUEF,MAVFE,OACAC,eASEH,MATFG,cACAC,gBAQEJ,MARFI,eAAAA,kBAQEJ,MAPFK,UAAAA,WAAAA,oBAAAA,SAAW,KAAA,iBAAA,kBAOTL,MANFZ,UAAAA,WAAAA,oBAAAA,SAAW,KAAA,iBACXkB,OAKEN,MALFM,MACAC,SAIEP,MAJFO,QACAC,cAGER,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I,qBAAA,eAAA,CAAA,GAAKkB,qBAAAA,GAAAA;sBACzB,uCAAAC,KAAClB,uCAAAA,eAAAA,qBAAAA,eAAAA,CAAAA,GAAwBgB,UAAAA,GAAAA;cAAYZ;gBAAcS,IAAAA,CAAAA;;UAEpDgB,iBAAiBD;;;;EAK5B,CAAA;AAEAP,oBAAkBY,cAAc;AAEhC,MAAMC,iBAAiBrC,UAAUK,UAC/B,SAACC,OAA4BgC,cAAAA;AAC3B,QAAQC,aAA4CjC,MAA5CiC,YAAY7C,WAAgCY,MAAhCZ,UAAa8C,iBAAAA,2BAAmBlC,OAAAA;MAA5CiC;MAAY7C;QACqB+C,kCAAAA,kDAA2B;MAClEC,uBAAuBlD;MACvBE;IACF,CAAA,GAHQD,UAAiCgD,4BAAjChD,SAAYkD,mBAAAA,2BAAqBF,6BAAAA;MAAjChD;;AAKR,WAAI8C,cAAc9C,UACT,uCAAA4B,KAACrB,WAAAA,eAAAA,qBAAAA,eAAAA,CAAAA,GAAc2C,gBAAAA,GAAAA;MAAkBpC,KAAK+B;QAAkBE,cAAAA,CAAAA,IAG1D;EACT,CAAA;AAGFH,iBAAeD,cAAc;AAE7B,MAAMQ,iBAAaC,kCAAqBzC,eAAe;IACrDF,MAAMsB;IACNxB,WAAWqC;EACb,CAAA;AACAO,oBAAWR,cAAc,cAElBQ;AACT;",
|
|
5
|
+
"names": ["ensureContext", "x", "context", "RadioGroupContext", "createContext", "RadioGroupItemContext", "checked", "disabled", "createRadioGroup", "createProps", "disableActiveTheme", "Frame", "RadioGroupFrame", "Indicator", "RadioGroupIndicatorFrame", "Item", "RadioGroupItemFrame", "RadioGroupImp", "styleable", "props", "ref", "value", "defaultValue", "onValueChange", "required", "name", "native", "accentColor", "orientation", "rest", "useRadioGroup", "providerValue", "frameAttrs", "rovingFocusGroupAttrs", "_jsx", "Provider", "RovingFocusGroup", "RadioGroupItemImp", "labelledBy", "onPress", "onKeyDown", "id", "useRadioGroupItem", "radioGroupContext", "bubbleInput", "isFormControl", "isWeb", "_jsxs", "_Fragment", "displayName", "RadioIndicator", "forwardedRef", "forceMount", "indicatorProps", "useRadioGroupItemIndicator", "radioGroupItemContext", "useIndicatorRest", "RadioGroup", "withStaticProperties"]
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,7 +2,10 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
6
9
|
if (from && typeof from == "object" || typeof from == "function")
|
|
7
10
|
for (let key of __getOwnPropNames(from))
|
|
8
11
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
@@ -10,6 +13,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
10
13
|
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
15
|
var src_exports = {};
|
|
16
|
+
__export(src_exports, {
|
|
17
|
+
RadioGroup: () => RadioGroup
|
|
18
|
+
});
|
|
13
19
|
module.exports = __toCommonJS(src_exports);
|
|
20
|
+
var import_RadioGroup = require("./RadioGroup"), import_createRadioGroup = require("./createRadioGroup");
|
|
21
|
+
__reExport(src_exports, require("./createRadioGroup"), module.exports);
|
|
14
22
|
__reExport(src_exports, require("./RadioGroup"), module.exports);
|
|
23
|
+
__reExport(src_exports, require("./RadioGroupStyledContext"), module.exports);
|
|
24
|
+
const RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
25
|
+
Frame: import_RadioGroup.RadioGroupFrame,
|
|
26
|
+
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
27
|
+
Item: import_RadioGroup.RadioGroupItemFrame
|
|
28
|
+
});
|
|
15
29
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAIO,yBACP,0BAAiC;AAEjC,wBAAc,+BAPd;AAQA,wBAAc,yBARd;AASA,wBAAc,sCATd;AAWO,MAAM,iBAAa,0CAAiB;AAAA,EACzC,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AACR,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -3,7 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
7
10
|
if (from && typeof from == "object" || typeof from == "function")
|
|
8
11
|
for (let key of __getOwnPropNames(from))
|
|
9
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
@@ -11,10 +14,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
14
|
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
16
|
var src_exports = {};
|
|
17
|
+
__export(src_exports, {
|
|
18
|
+
RadioGroup: () => RadioGroup
|
|
19
|
+
});
|
|
14
20
|
module.exports = __toCommonJS(src_exports);
|
|
21
|
+
var import_RadioGroup = require("./RadioGroup"), import_createRadioGroup = require("./createRadioGroup");
|
|
22
|
+
__reExport(src_exports, require("./createRadioGroup"), module.exports);
|
|
15
23
|
__reExport(src_exports, require("./RadioGroup"), module.exports);
|
|
24
|
+
__reExport(src_exports, require("./RadioGroupStyledContext"), module.exports);
|
|
25
|
+
var RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
26
|
+
Frame: import_RadioGroup.RadioGroupFrame,
|
|
27
|
+
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
28
|
+
Item: import_RadioGroup.RadioGroupItemFrame
|
|
29
|
+
});
|
|
16
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
17
31
|
0 && (module.exports = {
|
|
18
|
-
|
|
32
|
+
RadioGroup,
|
|
33
|
+
...require("./createRadioGroup"),
|
|
34
|
+
...require("./RadioGroup"),
|
|
35
|
+
...require("./RadioGroupStyledContext")
|
|
19
36
|
});
|
|
20
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/radio-group/src/index.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;wBAIO,yBACP,0BAAiC;AAEjC,wBAAc,+BAPd;AAQA,wBAAc,yBARd;AASA,wBAAc,sCATd;AAWO,IAAMA,iBAAaC,0CAAiB;EACzCC,OAAOC;EACPC,WAAWC;EACXC,MAAMC;AACR,CAAA;",
|
|
5
|
+
"names": ["RadioGroup", "createRadioGroup", "Frame", "RadioGroupFrame", "Indicator", "RadioGroupIndicatorFrame", "Item", "RadioGroupItemFrame"]
|
|
6
6
|
}
|
package/dist/esm/RadioGroup.js
CHANGED
|
@@ -1,54 +1,7 @@
|
|
|
1
|
-
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
|
-
import { isWeb } from "@tamagui/constants";
|
|
3
1
|
import { getVariableValue, styled } from "@tamagui/core";
|
|
4
|
-
import { createContextScope } from "@tamagui/create-context";
|
|
5
|
-
|
|
6
2
|
import { getSize } from "@tamagui/get-token";
|
|
7
|
-
import { composeEventHandlers, withStaticProperties } from "@tamagui/helpers";
|
|
8
|
-
import { useLabelContext } from "@tamagui/label";
|
|
9
|
-
import { RovingFocusGroup } from "@tamagui/roving-focus";
|
|
10
3
|
import { ThemeableStack } from "@tamagui/stacks";
|
|
11
|
-
|
|
12
|
-
import { usePrevious } from "@tamagui/use-previous";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
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, {
|
|
16
|
-
name: RADIO_GROUP_INDICATOR_NAME,
|
|
17
|
-
variants: {
|
|
18
|
-
unstyled: {
|
|
19
|
-
false: {
|
|
20
|
-
width: "33%",
|
|
21
|
-
height: "33%",
|
|
22
|
-
borderRadius: 1e3,
|
|
23
|
-
backgroundColor: "$color",
|
|
24
|
-
pressTheme: !0
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
defaultVariants: {
|
|
29
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
30
|
-
}
|
|
31
|
-
}), RadioIndicator = RadioIndicatorFrame.extractable(
|
|
32
|
-
React.forwardRef(
|
|
33
|
-
(props, forwardedRef) => {
|
|
34
|
-
const { __scopeRadioGroupItem, forceMount, disabled, ...indicatorProps } = props, { checked } = useRadioGroupItemContext(
|
|
35
|
-
RADIO_GROUP_INDICATOR_NAME,
|
|
36
|
-
__scopeRadioGroupItem
|
|
37
|
-
);
|
|
38
|
-
return forceMount || checked ? /* @__PURE__ */ jsx(
|
|
39
|
-
RadioIndicatorFrame,
|
|
40
|
-
{
|
|
41
|
-
"data-state": getState(checked),
|
|
42
|
-
"data-disabled": disabled ? "" : void 0,
|
|
43
|
-
...indicatorProps,
|
|
44
|
-
ref: forwardedRef
|
|
45
|
-
}
|
|
46
|
-
) : null;
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
);
|
|
50
|
-
RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
|
|
51
|
-
const RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadioGroupItemContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroupItemFrame = styled(ThemeableStack, {
|
|
4
|
+
const RADIO_GROUP_ITEM_NAME = "RadioGroupItem", RadioGroupItemFrame = styled(ThemeableStack, {
|
|
52
5
|
name: RADIO_GROUP_ITEM_NAME,
|
|
53
6
|
tag: "button",
|
|
54
7
|
variants: {
|
|
@@ -114,144 +67,23 @@ const RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadi
|
|
|
114
67
|
defaultVariants: {
|
|
115
68
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
116
69
|
}
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
value: groupValue,
|
|
128
|
-
disabled,
|
|
129
|
-
required,
|
|
130
|
-
onChange,
|
|
131
|
-
name,
|
|
132
|
-
native,
|
|
133
|
-
accentColor
|
|
134
|
-
} = 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;
|
|
135
|
-
React.useEffect(() => {
|
|
136
|
-
if (isWeb) {
|
|
137
|
-
const handleKeyDown = (event) => {
|
|
138
|
-
ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
|
|
139
|
-
}, handleKeyUp = () => {
|
|
140
|
-
isArrowKeyPressedRef.current = !1;
|
|
141
|
-
};
|
|
142
|
-
return document.addEventListener("keydown", handleKeyDown), document.addEventListener("keyup", handleKeyUp), () => {
|
|
143
|
-
document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}, []);
|
|
147
|
-
const isDisabled = disabled || itemDisabled;
|
|
148
|
-
return /* @__PURE__ */ jsx(RadioGroupItemProvider, { checked, scope: __scopeRadioGroup, children: isWeb && native ? /* @__PURE__ */ jsx(
|
|
149
|
-
BubbleInput,
|
|
150
|
-
{
|
|
151
|
-
control: button,
|
|
152
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
153
|
-
name,
|
|
154
|
-
value,
|
|
155
|
-
checked,
|
|
156
|
-
required,
|
|
157
|
-
disabled: isDisabled,
|
|
158
|
-
id: props.id,
|
|
159
|
-
accentColor
|
|
160
|
-
}
|
|
161
|
-
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
162
|
-
/* @__PURE__ */ jsx(
|
|
163
|
-
RovingFocusGroup.Item,
|
|
164
|
-
{
|
|
165
|
-
__scopeRovingFocusGroup: RADIO_GROUP_NAME,
|
|
166
|
-
asChild: "except-style",
|
|
167
|
-
focusable: !isDisabled,
|
|
168
|
-
active: checked,
|
|
169
|
-
children: /* @__PURE__ */ jsx(
|
|
170
|
-
RadioGroupItemFrame,
|
|
171
|
-
{
|
|
172
|
-
"data-state": getState(checked),
|
|
173
|
-
"data-disabled": isDisabled ? "" : void 0,
|
|
174
|
-
role: "radio",
|
|
175
|
-
"aria-labelledby": labelledBy,
|
|
176
|
-
"aria-checked": checked,
|
|
177
|
-
"aria-required": required,
|
|
178
|
-
disabled: isDisabled,
|
|
179
|
-
ref: composedRefs,
|
|
180
|
-
...isWeb && {
|
|
181
|
-
type: "button",
|
|
182
|
-
value
|
|
183
|
-
},
|
|
184
|
-
...itemProps,
|
|
185
|
-
onPress: composeEventHandlers(props.onPress, (event) => {
|
|
186
|
-
checked || onChange?.(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
187
|
-
}),
|
|
188
|
-
...isWeb && {
|
|
189
|
-
onKeyDown: composeEventHandlers(
|
|
190
|
-
props.onKeyDown,
|
|
191
|
-
(event) => {
|
|
192
|
-
event.key === "Enter" && event.preventDefault();
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
onFocus: composeEventHandlers(itemProps.onFocus, () => {
|
|
196
|
-
isArrowKeyPressedRef.current && ref.current?.click();
|
|
197
|
-
})
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
}
|
|
202
|
-
),
|
|
203
|
-
isFormControl && /* @__PURE__ */ jsx(
|
|
204
|
-
BubbleInput,
|
|
205
|
-
{
|
|
206
|
-
isHidden: !0,
|
|
207
|
-
control: button,
|
|
208
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
209
|
-
name,
|
|
210
|
-
value,
|
|
211
|
-
checked,
|
|
212
|
-
required,
|
|
213
|
-
disabled: isDisabled
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
] }) });
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
), BubbleInput = (props) => {
|
|
220
|
-
const { checked, bubbles = !0, control, isHidden, accentColor, ...inputProps } = props, ref = React.useRef(null), prevChecked = usePrevious(checked);
|
|
221
|
-
return React.useEffect(() => {
|
|
222
|
-
const input = ref.current, inputProto = window.HTMLInputElement.prototype, setChecked = Object.getOwnPropertyDescriptor(
|
|
223
|
-
inputProto,
|
|
224
|
-
"checked"
|
|
225
|
-
).set;
|
|
226
|
-
if (prevChecked !== checked && setChecked) {
|
|
227
|
-
const event = new Event("click", { bubbles });
|
|
228
|
-
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
229
|
-
}
|
|
230
|
-
}, [prevChecked, checked, bubbles]), /* @__PURE__ */ jsx(
|
|
231
|
-
"input",
|
|
232
|
-
{
|
|
233
|
-
type: "radio",
|
|
234
|
-
defaultChecked: checked,
|
|
235
|
-
...inputProps,
|
|
236
|
-
tabIndex: -1,
|
|
237
|
-
ref,
|
|
238
|
-
"aria-hidden": isHidden,
|
|
239
|
-
style: {
|
|
240
|
-
...isHidden ? {
|
|
241
|
-
// ...controlSize,
|
|
242
|
-
position: "absolute",
|
|
243
|
-
pointerEvents: "none",
|
|
244
|
-
opacity: 0,
|
|
245
|
-
margin: 0
|
|
246
|
-
} : {
|
|
247
|
-
appearance: "auto",
|
|
248
|
-
accentColor
|
|
249
|
-
},
|
|
250
|
-
...props.style
|
|
70
|
+
}), RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioGroupIndicatorFrame = styled(ThemeableStack, {
|
|
71
|
+
name: RADIO_GROUP_INDICATOR_NAME,
|
|
72
|
+
variants: {
|
|
73
|
+
unstyled: {
|
|
74
|
+
false: {
|
|
75
|
+
width: "33%",
|
|
76
|
+
height: "33%",
|
|
77
|
+
borderRadius: 1e3,
|
|
78
|
+
backgroundColor: "$color",
|
|
79
|
+
pressTheme: !0
|
|
251
80
|
}
|
|
252
81
|
}
|
|
253
|
-
|
|
254
|
-
|
|
82
|
+
},
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
85
|
+
}
|
|
86
|
+
}), RADIO_GROUP_NAME = "RadioGroup", RadioGroupFrame = styled(ThemeableStack, {
|
|
255
87
|
name: RADIO_GROUP_NAME,
|
|
256
88
|
variants: {
|
|
257
89
|
orientation: {
|
|
@@ -265,70 +97,10 @@ const RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadi
|
|
|
265
97
|
}
|
|
266
98
|
}
|
|
267
99
|
}
|
|
268
|
-
})
|
|
269
|
-
RadioGroupFrame.extractable(
|
|
270
|
-
React.forwardRef(
|
|
271
|
-
(props, forwardedRef) => {
|
|
272
|
-
const {
|
|
273
|
-
__scopeRadioGroup,
|
|
274
|
-
value: valueProp,
|
|
275
|
-
defaultValue,
|
|
276
|
-
onValueChange,
|
|
277
|
-
disabled = !1,
|
|
278
|
-
required = !1,
|
|
279
|
-
name,
|
|
280
|
-
orientation,
|
|
281
|
-
native,
|
|
282
|
-
accentColor,
|
|
283
|
-
...radioGroupProps
|
|
284
|
-
} = props, [value, setValue] = useControllableState({
|
|
285
|
-
prop: valueProp,
|
|
286
|
-
defaultProp: defaultValue,
|
|
287
|
-
onChange: onValueChange
|
|
288
|
-
});
|
|
289
|
-
return /* @__PURE__ */ jsx(
|
|
290
|
-
RadioGroupProvider,
|
|
291
|
-
{
|
|
292
|
-
scope: __scopeRadioGroup,
|
|
293
|
-
value,
|
|
294
|
-
required,
|
|
295
|
-
onChange: setValue,
|
|
296
|
-
disabled,
|
|
297
|
-
name,
|
|
298
|
-
native,
|
|
299
|
-
accentColor,
|
|
300
|
-
children: /* @__PURE__ */ jsx(
|
|
301
|
-
RovingFocusGroup,
|
|
302
|
-
{
|
|
303
|
-
__scopeRovingFocusGroup: RADIO_GROUP_NAME,
|
|
304
|
-
orientation,
|
|
305
|
-
loop: !0,
|
|
306
|
-
children: /* @__PURE__ */ jsx(
|
|
307
|
-
RadioGroupFrame,
|
|
308
|
-
{
|
|
309
|
-
role: "radiogroup",
|
|
310
|
-
"aria-orientation": orientation,
|
|
311
|
-
ref: forwardedRef,
|
|
312
|
-
orientation,
|
|
313
|
-
"data-disabled": disabled ? "" : void 0,
|
|
314
|
-
...radioGroupProps
|
|
315
|
-
}
|
|
316
|
-
)
|
|
317
|
-
}
|
|
318
|
-
)
|
|
319
|
-
}
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
)
|
|
323
|
-
),
|
|
324
|
-
{
|
|
325
|
-
Indicator: RadioIndicator,
|
|
326
|
-
Item: RadioGroupItem
|
|
327
|
-
}
|
|
328
|
-
);
|
|
329
|
-
RadioGroup.displayName = RADIO_GROUP_NAME;
|
|
100
|
+
});
|
|
330
101
|
export {
|
|
331
|
-
|
|
332
|
-
|
|
102
|
+
RadioGroupFrame,
|
|
103
|
+
RadioGroupIndicatorFrame,
|
|
104
|
+
RadioGroupItemFrame
|
|
333
105
|
};
|
|
334
106
|
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/RadioGroup.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,kBAAkB,cAAc;AACzC,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAE/B,MAAM,wBAAwB,kBAEjB,sBAAsB,OAAO,gBAAgB;AAAA,EACxD,MAAM;AAAA,EACN,KAAK;AAAA,EAEL,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,QACN,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,YAAY;AAAA,QACZ,gBAA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