@tamagui/toggle-group 1.89.25 → 1.89.27-1708112217600
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/Toggle.native.js +127 -34
- package/dist/cjs/Toggle.native.js.map +3 -3
- package/dist/cjs/ToggleGroup.native.js +290 -187
- package/dist/cjs/ToggleGroup.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/Toggle.native.js +126 -34
- package/dist/esm/Toggle.native.js.map +3 -3
- package/dist/esm/ToggleGroup.native.js +289 -187
- package/dist/esm/ToggleGroup.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/jsx/Toggle.native.js +126 -34
- package/dist/jsx/Toggle.native.js.map +3 -3
- package/dist/jsx/ToggleGroup.native.js +289 -187
- package/dist/jsx/ToggleGroup.native.js.map +3 -3
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +15 -15
|
@@ -11,141 +11,267 @@ import { useDirection } from "@tamagui/use-direction";
|
|
|
11
11
|
import { createStyledContext, getVariableValue, styled, useTheme } from "@tamagui/web";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { Toggle, ToggleFrame } from "./Toggle";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
function _array_like_to_array(arr, len) {
|
|
15
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
16
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
17
|
+
arr2[i] = arr[i];
|
|
18
|
+
return arr2;
|
|
19
|
+
}
|
|
20
|
+
function _array_with_holes(arr) {
|
|
21
|
+
if (Array.isArray(arr))
|
|
22
|
+
return arr;
|
|
23
|
+
}
|
|
24
|
+
function _array_without_holes(arr) {
|
|
25
|
+
if (Array.isArray(arr))
|
|
26
|
+
return _array_like_to_array(arr);
|
|
27
|
+
}
|
|
28
|
+
function _define_property(obj, key, value) {
|
|
29
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
30
|
+
value,
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
configurable: !0,
|
|
33
|
+
writable: !0
|
|
34
|
+
}) : obj[key] = value, obj;
|
|
35
|
+
}
|
|
36
|
+
function _iterable_to_array(iter) {
|
|
37
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
38
|
+
return Array.from(iter);
|
|
39
|
+
}
|
|
40
|
+
function _iterable_to_array_limit(arr, i) {
|
|
41
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42
|
+
if (_i != null) {
|
|
43
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
44
|
+
try {
|
|
45
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
46
|
+
;
|
|
47
|
+
} catch (err) {
|
|
48
|
+
_d = !0, _e = err;
|
|
49
|
+
} finally {
|
|
50
|
+
try {
|
|
51
|
+
!_n && _i.return != null && _i.return();
|
|
52
|
+
} finally {
|
|
53
|
+
if (_d)
|
|
54
|
+
throw _e;
|
|
55
|
+
}
|
|
42
56
|
}
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
return _arr;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function _non_iterable_rest() {
|
|
61
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
62
|
+
}
|
|
63
|
+
function _non_iterable_spread() {
|
|
64
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
|
+
}
|
|
66
|
+
function _object_spread(target) {
|
|
67
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
68
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
69
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
70
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
71
|
+
}))), ownKeys2.forEach(function(key) {
|
|
72
|
+
_define_property(target, key, source[key]);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return target;
|
|
76
|
+
}
|
|
77
|
+
function ownKeys(object, enumerableOnly) {
|
|
78
|
+
var keys = Object.keys(object);
|
|
79
|
+
if (Object.getOwnPropertySymbols) {
|
|
80
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
81
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
82
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
83
|
+
})), keys.push.apply(keys, symbols);
|
|
84
|
+
}
|
|
85
|
+
return keys;
|
|
86
|
+
}
|
|
87
|
+
function _object_spread_props(target, source) {
|
|
88
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
89
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
90
|
+
}), target;
|
|
91
|
+
}
|
|
92
|
+
function _object_without_properties(source, excluded) {
|
|
93
|
+
if (source == null)
|
|
94
|
+
return {};
|
|
95
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
96
|
+
if (Object.getOwnPropertySymbols) {
|
|
97
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
98
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
99
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
100
|
+
}
|
|
101
|
+
return target;
|
|
102
|
+
}
|
|
103
|
+
function _object_without_properties_loose(source, excluded) {
|
|
104
|
+
if (source == null)
|
|
105
|
+
return {};
|
|
106
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
107
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
108
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
109
|
+
return target;
|
|
110
|
+
}
|
|
111
|
+
function _sliced_to_array(arr, i) {
|
|
112
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
113
|
+
}
|
|
114
|
+
function _to_consumable_array(arr) {
|
|
115
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
116
|
+
}
|
|
117
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
118
|
+
if (o) {
|
|
119
|
+
if (typeof o == "string")
|
|
120
|
+
return _array_like_to_array(o, minLen);
|
|
121
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
122
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
123
|
+
return Array.from(n);
|
|
124
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
125
|
+
return _array_like_to_array(o, minLen);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", _createStyledContext = createStyledContext(), ToggleGroupItemProvider = _createStyledContext.Provider, useToggleGroupItemContext = _createStyledContext.useStyledContext, _createStyledContext1 = createStyledContext(), ToggleGroupContext = _createStyledContext1.Provider, useToggleGroupContext = _createStyledContext1.useStyledContext, ToggleGroupItem = ToggleFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
129
|
+
var valueContext = useToggleGroupValueContext(props.__scopeToggleGroup), context = useToggleGroupContext(props.__scopeToggleGroup), pressed = valueContext == null ? void 0 : valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, groupItemProps = useGroupItem({
|
|
130
|
+
disabled
|
|
131
|
+
}), _props_size, size = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
132
|
+
width: void 0,
|
|
133
|
+
height: void 0,
|
|
134
|
+
padding: getVariableValue(size) * 0.6
|
|
135
|
+
}, iconSize = (typeof size == "number" ? size * 0.7 : getFontSize(size)) * 1.2, theme = useTheme(), getThemedIcon = useGetThemedIcon({
|
|
136
|
+
size: iconSize,
|
|
137
|
+
color: theme.color
|
|
138
|
+
}), childrens = React.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
139
|
+
return props.disablePassStyles || !/* @__PURE__ */ React.isValidElement(child) ? child : getThemedIcon(child);
|
|
140
|
+
}), commonProps = _object_spread_props(_object_spread({
|
|
141
|
+
pressed,
|
|
142
|
+
disabled
|
|
143
|
+
}, sizeProps, props), {
|
|
144
|
+
children
|
|
145
|
+
}), inner = /* @__PURE__ */ React.createElement(ToggleGroupItemImpl, _object_spread(_object_spread_props(_object_spread({}, commonProps), {
|
|
146
|
+
ref: forwardedRef,
|
|
147
|
+
focusable: !disabled,
|
|
148
|
+
disabled
|
|
149
|
+
}), groupItemProps));
|
|
150
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupItemProvider, {
|
|
151
|
+
scope: props.__scopeToggleGroup
|
|
152
|
+
}, context.rovingFocus ? /* @__PURE__ */ React.createElement(RovingFocusGroup.Item, {
|
|
153
|
+
asChild: "except-style",
|
|
154
|
+
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
155
|
+
focusable: !disabled,
|
|
156
|
+
active: pressed
|
|
157
|
+
}, inner) : inner);
|
|
158
|
+
}));
|
|
45
159
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
46
|
-
|
|
47
|
-
|
|
160
|
+
var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
161
|
+
var __scopeToggleGroup = props.__scopeToggleGroup, value = props.value, itemProps = _object_without_properties(props, [
|
|
162
|
+
"__scopeToggleGroup",
|
|
163
|
+
"value"
|
|
164
|
+
]), valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
48
165
|
"aria-pressed": void 0
|
|
49
166
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
...itemProps,
|
|
55
|
-
ref: forwardedRef,
|
|
56
|
-
onPressedChange: (pressed) => {
|
|
57
|
-
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}), ToggleGroup = withStaticProperties(
|
|
62
|
-
React.forwardRef(
|
|
63
|
-
(props, forwardedRef) => {
|
|
64
|
-
const { type, ...toggleGroupProps } = props;
|
|
65
|
-
if (isWeb || React.useEffect(() => {
|
|
66
|
-
if (props.id)
|
|
67
|
-
return registerFocusable(props.id, {
|
|
68
|
-
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
69
|
-
// for now leaving it empty
|
|
70
|
-
focus: () => {
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}, [props.id]), type === "single")
|
|
74
|
-
return /* @__PURE__ */ jsx(ToggleGroupImplSingle, { ...toggleGroupProps, ref: forwardedRef });
|
|
75
|
-
if (type === "multiple")
|
|
76
|
-
return /* @__PURE__ */ jsx(ToggleGroupImplMultiple, { ...toggleGroupProps, ref: forwardedRef });
|
|
77
|
-
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
167
|
+
return /* @__PURE__ */ React.createElement(Toggle, _object_spread_props(_object_spread({}, typeProps, itemProps), {
|
|
168
|
+
ref: forwardedRef,
|
|
169
|
+
onPressedChange: function(pressed) {
|
|
170
|
+
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
78
171
|
}
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
|
|
172
|
+
}));
|
|
173
|
+
}), ToggleGroup = withStaticProperties(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
174
|
+
var type = props.type, toggleGroupProps = _object_without_properties(props, [
|
|
175
|
+
"type"
|
|
176
|
+
]);
|
|
177
|
+
if (isWeb || React.useEffect(function() {
|
|
178
|
+
if (props.id)
|
|
179
|
+
return registerFocusable(props.id, {
|
|
180
|
+
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
181
|
+
// for now leaving it empty
|
|
182
|
+
focus: function() {
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}, [
|
|
186
|
+
props.id
|
|
187
|
+
]), type === "single") {
|
|
188
|
+
var singleProps = toggleGroupProps;
|
|
189
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupImplSingle, _object_spread_props(_object_spread({}, singleProps), {
|
|
190
|
+
ref: forwardedRef
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
if (type === "multiple") {
|
|
194
|
+
var multipleProps = toggleGroupProps;
|
|
195
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupImplMultiple, _object_spread_props(_object_spread({}, multipleProps), {
|
|
196
|
+
ref: forwardedRef
|
|
197
|
+
}));
|
|
82
198
|
}
|
|
83
|
-
);
|
|
199
|
+
throw new Error("Missing prop `type` expected on `".concat(TOGGLE_GROUP_NAME, "`"));
|
|
200
|
+
}), {
|
|
201
|
+
Item: ToggleGroupItem
|
|
202
|
+
});
|
|
84
203
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
disableDeactivation = !1,
|
|
95
|
-
...toggleGroupSingleProps
|
|
96
|
-
} = props, [value, setValue] = useControllableState({
|
|
204
|
+
var _createStyledContext2 = createStyledContext(), ToggleGroupValueProvider = _createStyledContext2.Provider, useToggleGroupValueContext = _createStyledContext2.useStyledContext, ToggleGroupImplSingle = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
205
|
+
var valueProp = props.value, defaultValue = props.defaultValue, _props_onValueChange = props.onValueChange, onValueChange = _props_onValueChange === void 0 ? function() {
|
|
206
|
+
} : _props_onValueChange, _props_disableDeactivation = props.disableDeactivation, disableDeactivation = _props_disableDeactivation === void 0 ? !1 : _props_disableDeactivation, toggleGroupSingleProps = _object_without_properties(props, [
|
|
207
|
+
"value",
|
|
208
|
+
"defaultValue",
|
|
209
|
+
"onValueChange",
|
|
210
|
+
"disableDeactivation"
|
|
211
|
+
]), _useControllableState = _sliced_to_array(useControllableState({
|
|
97
212
|
prop: valueProp,
|
|
98
213
|
defaultProp: defaultValue,
|
|
99
214
|
onChange: onValueChange
|
|
100
|
-
});
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
215
|
+
}), 2), value = _useControllableState[0], setValue = _useControllableState[1];
|
|
216
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupValueProvider, {
|
|
217
|
+
scope: props.__scopeToggleGroup,
|
|
218
|
+
type: "single",
|
|
219
|
+
value: value ? [
|
|
220
|
+
value
|
|
221
|
+
] : [],
|
|
222
|
+
defaultValue: value,
|
|
223
|
+
onItemActivate: setValue,
|
|
224
|
+
onItemDeactivate: React.useCallback(function() {
|
|
225
|
+
return disableDeactivation ? null : setValue("");
|
|
226
|
+
}, [
|
|
227
|
+
setValue,
|
|
228
|
+
disableDeactivation
|
|
229
|
+
])
|
|
230
|
+
}, /* @__PURE__ */ React.createElement(ToggleGroupImpl, _object_spread_props(_object_spread({}, toggleGroupSingleProps), {
|
|
231
|
+
ref: forwardedRef
|
|
232
|
+
})));
|
|
233
|
+
}), ToggleGroupImplMultiple = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
234
|
+
var valueProp = props.value, defaultValue = props.defaultValue, _props_onValueChange = props.onValueChange, onValueChange = _props_onValueChange === void 0 ? function() {
|
|
235
|
+
} : _props_onValueChange, toggleGroupMultipleProps = _object_without_properties(props, [
|
|
236
|
+
"value",
|
|
237
|
+
"defaultValue",
|
|
238
|
+
"onValueChange"
|
|
239
|
+
]), _useControllableState = _sliced_to_array(useControllableState({
|
|
124
240
|
prop: valueProp,
|
|
125
241
|
defaultProp: defaultValue,
|
|
126
242
|
onChange: onValueChange
|
|
127
|
-
}), handleButtonActivate = React.useCallback(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
);
|
|
243
|
+
}), 2), tmp = _useControllableState[0], value = tmp === void 0 ? [] : tmp, setValue = _useControllableState[1], handleButtonActivate = React.useCallback(function(itemValue) {
|
|
244
|
+
return setValue(function() {
|
|
245
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
246
|
+
return _to_consumable_array(prevValue).concat([
|
|
247
|
+
itemValue
|
|
248
|
+
]);
|
|
249
|
+
});
|
|
250
|
+
}, [
|
|
251
|
+
setValue
|
|
252
|
+
]), handleButtonDeactivate = React.useCallback(function(itemValue) {
|
|
253
|
+
return setValue(function() {
|
|
254
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
255
|
+
return prevValue.filter(function(value2) {
|
|
256
|
+
return value2 !== itemValue;
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
}, [
|
|
260
|
+
setValue
|
|
261
|
+
]);
|
|
262
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupValueProvider, {
|
|
263
|
+
scope: props.__scopeToggleGroup,
|
|
264
|
+
type: "multiple",
|
|
265
|
+
value,
|
|
266
|
+
defaultValue: value,
|
|
267
|
+
onItemActivate: handleButtonActivate,
|
|
268
|
+
onItemDeactivate: handleButtonDeactivate
|
|
269
|
+
}, /* @__PURE__ */ React.createElement(ToggleGroupImpl, _object_spread_props(_object_spread({}, toggleGroupMultipleProps), {
|
|
270
|
+
ref: forwardedRef
|
|
271
|
+
})));
|
|
146
272
|
});
|
|
147
273
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
148
|
-
|
|
274
|
+
var ToggleGroupImplElementFrame = styled(Group, {
|
|
149
275
|
name: TOGGLE_GROUP_NAME,
|
|
150
276
|
variants: {
|
|
151
277
|
unstyled: {
|
|
@@ -167,73 +293,49 @@ const ToggleGroupImplElementFrame = styled(Group, {
|
|
|
167
293
|
defaultVariants: {
|
|
168
294
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
169
295
|
}
|
|
170
|
-
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
axis: orientation,
|
|
214
|
-
ref: forwardedRef,
|
|
215
|
-
"data-disabled": disabled ? "" : void 0,
|
|
216
|
-
unstyled,
|
|
217
|
-
...commonProps
|
|
218
|
-
}
|
|
219
|
-
)
|
|
220
|
-
}
|
|
221
|
-
) : /* @__PURE__ */ jsx(
|
|
222
|
-
ToggleGroupImplElementFrame,
|
|
223
|
-
{
|
|
224
|
-
"aria-orientation": orientation,
|
|
225
|
-
ref: forwardedRef,
|
|
226
|
-
orientation,
|
|
227
|
-
"data-disabled": disabled ? "" : void 0,
|
|
228
|
-
unstyled,
|
|
229
|
-
...commonProps
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
}
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
)
|
|
236
|
-
);
|
|
296
|
+
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
297
|
+
var __scopeToggleGroup = props.__scopeToggleGroup, _props_disabled = props.disabled, disabled = _props_disabled === void 0 ? !1 : _props_disabled, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "horizontal" : _props_orientation, dir = props.dir, _props_rovingFocus = props.rovingFocus, rovingFocus = _props_rovingFocus === void 0 ? !0 : _props_rovingFocus, _props_loop = props.loop, loop = _props_loop === void 0 ? !0 : _props_loop, _props_unstyled = props.unstyled, unstyled = _props_unstyled === void 0 ? !1 : _props_unstyled, tmp = props.size, sizeProp = tmp === void 0 ? "$true" : tmp, _props_sizeAdjust = props.sizeAdjust, sizeAdjust = _props_sizeAdjust === void 0 ? 0 : _props_sizeAdjust, toggleGroupProps = _object_without_properties(props, [
|
|
298
|
+
"__scopeToggleGroup",
|
|
299
|
+
"disabled",
|
|
300
|
+
"orientation",
|
|
301
|
+
"dir",
|
|
302
|
+
"rovingFocus",
|
|
303
|
+
"loop",
|
|
304
|
+
"unstyled",
|
|
305
|
+
"size",
|
|
306
|
+
"sizeAdjust"
|
|
307
|
+
]), direction = useDirection(dir), commonProps = _object_spread({
|
|
308
|
+
role: "group",
|
|
309
|
+
dir: direction
|
|
310
|
+
}, toggleGroupProps), adjustedSize = getVariableValue(getSize(sizeProp, {
|
|
311
|
+
shift: sizeAdjust
|
|
312
|
+
})), size = Math.round(adjustedSize * 0.45);
|
|
313
|
+
return /* @__PURE__ */ React.createElement(ToggleGroupContext, {
|
|
314
|
+
scope: __scopeToggleGroup,
|
|
315
|
+
rovingFocus,
|
|
316
|
+
disabled,
|
|
317
|
+
size
|
|
318
|
+
}, rovingFocus ? /* @__PURE__ */ React.createElement(RovingFocusGroup, {
|
|
319
|
+
asChild: "except-style",
|
|
320
|
+
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
321
|
+
orientation,
|
|
322
|
+
dir: direction,
|
|
323
|
+
loop
|
|
324
|
+
}, /* @__PURE__ */ React.createElement(ToggleGroupImplElementFrame, _object_spread({
|
|
325
|
+
"aria-orientation": orientation,
|
|
326
|
+
orientation,
|
|
327
|
+
axis: orientation,
|
|
328
|
+
ref: forwardedRef,
|
|
329
|
+
"data-disabled": disabled ? "" : void 0,
|
|
330
|
+
unstyled
|
|
331
|
+
}, commonProps))) : /* @__PURE__ */ React.createElement(ToggleGroupImplElementFrame, _object_spread({
|
|
332
|
+
"aria-orientation": orientation,
|
|
333
|
+
ref: forwardedRef,
|
|
334
|
+
orientation,
|
|
335
|
+
"data-disabled": disabled ? "" : void 0,
|
|
336
|
+
unstyled
|
|
337
|
+
}, commonProps)));
|
|
338
|
+
}));
|
|
237
339
|
export {
|
|
238
340
|
ToggleGroup
|
|
239
341
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/ToggleGroup.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": ["value"]
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/toggle-group/src/ToggleGroup.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAASA,aAAa;AACtB,SAASC,yBAAyB;AAClC,SAASC,mBAAmB;AAC5B,SAASC,eAAe;AAExB,SAASC,OAAOC,oBAAoB;AACpC,SAASC,4BAA4B;AACrC,SAASC,wBAAwB;AACjC,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,oBAAoB;AAE7B,SAASC,qBAAqBC,kBAAkBC,QAAQC,gBAAgB;AACxE,OAAOC,WAAW;AAGlB,SAASC,QAAQC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,IAAMC,oBAAoB,eAMpBC,yBAAyB,mBAEzBC,uBAAuB,eAK3BT,uBAAAA,oBAAAA,GADgBU,0BAChBV,qBADMW,UAAqDC,4BAC3DZ,qBADyCa,kBAIzCb,wBAAAA,oBAAAA,GADgBc,qBAChBd,sBADMW,UAAgDI,wBACtDf,sBADoCa,kBAehCG,kBAAkBV,YAAYW,YAClCb,sBAAMc,WACJ,SAACC,OAA0CC,cAA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AAAA,eAAAA;IACCwB,oBAAkBnB;IAClBhD,KAAKhC;IACLgF;IACAqB,iBAAe7F,WAAW,KAAKM;IAC/BF;KACIiB,WAAAA,CAAAA,CAAAA;AAKd,CAAA,CAAA;",
|
|
5
|
+
"names": ["isWeb", "registerFocusable", "getFontSize", "getSize", "Group", "useGroupItem", "withStaticProperties", "useGetThemedIcon", "RovingFocusGroup", "useControllableState", "useDirection", "createStyledContext", "getVariableValue", "styled", "useTheme", "React", "Toggle", "ToggleFrame", "TOGGLE_GROUP_NAME", "TOGGLE_GROUP_ITEM_NAME", "TOGGLE_GROUP_CONTEXT", "ToggleGroupItemProvider", "Provider", "useToggleGroupItemContext", "useStyledContext", "ToggleGroupContext", "useToggleGroupContext", "ToggleGroupItem", "extractable", "forwardRef", "props", "forwardedRef", "valueContext", "useToggleGroupValueContext", "__scopeToggleGroup", "context", "pressed", "value", "includes", "disabled", "groupItemProps", "size", "sizeProps", "unstyled", "width", "undefined", "height", "padding", "iconSize", "theme", "getThemedIcon", "color", "childrens", "Children", "toArray", "children", "map", "child", "disablePassStyles", "isValidElement", "commonProps", "inner", "ToggleGroupItemImpl", "ref", "focusable", "scope", "rovingFocus", "Item", "asChild", "__scopeRovingFocusGroup", "active", "displayName", "itemProps", "singleProps", "typeProps", "type", "onPressedChange", "onItemActivate", "onItemDeactivate", "ToggleGroup", "toggleGroupProps", "useEffect", "id", "focus", "ToggleGroupImplSingle", "multipleProps", "ToggleGroupImplMultiple", "Error", "ToggleGroupValueProvider", "valueProp", "defaultValue", "onValueChange", "disableDeactivation", "toggleGroupSingleProps", "prop", "defaultProp", "onChange", "setValue", "useCallback", "ToggleGroupImpl", "toggleGroupMultipleProps", "handleButtonActivate", "itemValue", "prevValue", "handleButtonDeactivate", "filter", "ToggleGroupImplElementFrame", "name", "variants", "false", "backgroundColor", "orientation", "vertical", "flexDirection", "spaceDirection", "horizontal", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "dir", "loop", "sizeProp", "sizeAdjust", "direction", "role", "adjustedSize", "shift", "Math", "round", "aria-orientation", "axis", "data-disabled"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toggle-group",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.27-1708112217600",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/constants": "1.89.
|
|
36
|
-
"@tamagui/create-context": "1.89.
|
|
37
|
-
"@tamagui/focusable": "1.89.
|
|
38
|
-
"@tamagui/font-size": "1.89.
|
|
39
|
-
"@tamagui/get-token": "1.89.
|
|
40
|
-
"@tamagui/group": "1.89.
|
|
41
|
-
"@tamagui/helpers": "1.89.
|
|
42
|
-
"@tamagui/helpers-tamagui": "1.89.
|
|
43
|
-
"@tamagui/roving-focus": "1.89.
|
|
44
|
-
"@tamagui/stacks": "1.89.
|
|
45
|
-
"@tamagui/use-controllable-state": "1.89.
|
|
46
|
-
"@tamagui/use-direction": "1.89.
|
|
47
|
-
"@tamagui/web": "1.89.
|
|
35
|
+
"@tamagui/constants": "1.89.27-1708112217600",
|
|
36
|
+
"@tamagui/create-context": "1.89.27-1708112217600",
|
|
37
|
+
"@tamagui/focusable": "1.89.27-1708112217600",
|
|
38
|
+
"@tamagui/font-size": "1.89.27-1708112217600",
|
|
39
|
+
"@tamagui/get-token": "1.89.27-1708112217600",
|
|
40
|
+
"@tamagui/group": "1.89.27-1708112217600",
|
|
41
|
+
"@tamagui/helpers": "1.89.27-1708112217600",
|
|
42
|
+
"@tamagui/helpers-tamagui": "1.89.27-1708112217600",
|
|
43
|
+
"@tamagui/roving-focus": "1.89.27-1708112217600",
|
|
44
|
+
"@tamagui/stacks": "1.89.27-1708112217600",
|
|
45
|
+
"@tamagui/use-controllable-state": "1.89.27-1708112217600",
|
|
46
|
+
"@tamagui/use-direction": "1.89.27-1708112217600",
|
|
47
|
+
"@tamagui/web": "1.89.27-1708112217600"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "*"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@tamagui/build": "1.89.
|
|
53
|
+
"@tamagui/build": "1.89.27-1708112217600",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|