@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
|
@@ -26,141 +26,268 @@ __export(ToggleGroup_exports, {
|
|
|
26
26
|
ToggleGroup: () => ToggleGroup
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(ToggleGroup_exports);
|
|
29
|
-
var import_constants = require("@tamagui/constants"), import_focusable = require("@tamagui/focusable"), import_font_size = require("@tamagui/font-size"), import_get_token = require("@tamagui/get-token"), import_group = require("@tamagui/group"), import_helpers = require("@tamagui/helpers"), import_helpers_tamagui = require("@tamagui/helpers-tamagui"), import_roving_focus = require("@tamagui/roving-focus"), import_use_controllable_state = require("@tamagui/use-controllable-state"), import_use_direction = require("@tamagui/use-direction"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_Toggle = require("./Toggle")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
29
|
+
var import_constants = require("@tamagui/constants"), import_focusable = require("@tamagui/focusable"), import_font_size = require("@tamagui/font-size"), import_get_token = require("@tamagui/get-token"), import_group = require("@tamagui/group"), import_helpers = require("@tamagui/helpers"), import_helpers_tamagui = require("@tamagui/helpers-tamagui"), import_roving_focus = require("@tamagui/roving-focus"), import_use_controllable_state = require("@tamagui/use-controllable-state"), import_use_direction = require("@tamagui/use-direction"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_Toggle = require("./Toggle");
|
|
30
|
+
function _array_like_to_array(arr, len) {
|
|
31
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
32
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
33
|
+
arr2[i] = arr[i];
|
|
34
|
+
return arr2;
|
|
35
|
+
}
|
|
36
|
+
function _array_with_holes(arr) {
|
|
37
|
+
if (Array.isArray(arr))
|
|
38
|
+
return arr;
|
|
39
|
+
}
|
|
40
|
+
function _array_without_holes(arr) {
|
|
41
|
+
if (Array.isArray(arr))
|
|
42
|
+
return _array_like_to_array(arr);
|
|
43
|
+
}
|
|
44
|
+
function _define_property(obj, key, value) {
|
|
45
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
46
|
+
value,
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0,
|
|
49
|
+
writable: !0
|
|
50
|
+
}) : obj[key] = value, obj;
|
|
51
|
+
}
|
|
52
|
+
function _iterable_to_array(iter) {
|
|
53
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
54
|
+
return Array.from(iter);
|
|
55
|
+
}
|
|
56
|
+
function _iterable_to_array_limit(arr, i) {
|
|
57
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
58
|
+
if (_i != null) {
|
|
59
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
60
|
+
try {
|
|
61
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
62
|
+
;
|
|
63
|
+
} catch (err) {
|
|
64
|
+
_d = !0, _e = err;
|
|
65
|
+
} finally {
|
|
66
|
+
try {
|
|
67
|
+
!_n && _i.return != null && _i.return();
|
|
68
|
+
} finally {
|
|
69
|
+
if (_d)
|
|
70
|
+
throw _e;
|
|
71
|
+
}
|
|
57
72
|
}
|
|
58
|
-
|
|
59
|
-
|
|
73
|
+
return _arr;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function _non_iterable_rest() {
|
|
77
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
78
|
+
}
|
|
79
|
+
function _non_iterable_spread() {
|
|
80
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
81
|
+
}
|
|
82
|
+
function _object_spread(target) {
|
|
83
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
84
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
85
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
86
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
87
|
+
}))), ownKeys2.forEach(function(key) {
|
|
88
|
+
_define_property(target, key, source[key]);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return target;
|
|
92
|
+
}
|
|
93
|
+
function ownKeys(object, enumerableOnly) {
|
|
94
|
+
var keys = Object.keys(object);
|
|
95
|
+
if (Object.getOwnPropertySymbols) {
|
|
96
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
97
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
98
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
99
|
+
})), keys.push.apply(keys, symbols);
|
|
100
|
+
}
|
|
101
|
+
return keys;
|
|
102
|
+
}
|
|
103
|
+
function _object_spread_props(target, source) {
|
|
104
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
105
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
106
|
+
}), target;
|
|
107
|
+
}
|
|
108
|
+
function _object_without_properties(source, excluded) {
|
|
109
|
+
if (source == null)
|
|
110
|
+
return {};
|
|
111
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
112
|
+
if (Object.getOwnPropertySymbols) {
|
|
113
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
114
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
115
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
116
|
+
}
|
|
117
|
+
return target;
|
|
118
|
+
}
|
|
119
|
+
function _object_without_properties_loose(source, excluded) {
|
|
120
|
+
if (source == null)
|
|
121
|
+
return {};
|
|
122
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
123
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
124
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
125
|
+
return target;
|
|
126
|
+
}
|
|
127
|
+
function _sliced_to_array(arr, i) {
|
|
128
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
129
|
+
}
|
|
130
|
+
function _to_consumable_array(arr) {
|
|
131
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
132
|
+
}
|
|
133
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
134
|
+
if (o) {
|
|
135
|
+
if (typeof o == "string")
|
|
136
|
+
return _array_like_to_array(o, minLen);
|
|
137
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
138
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
139
|
+
return Array.from(n);
|
|
140
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
141
|
+
return _array_like_to_array(o, minLen);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", _createStyledContext = (0, import_web.createStyledContext)(), ToggleGroupItemProvider = _createStyledContext.Provider, useToggleGroupItemContext = _createStyledContext.useStyledContext, _createStyledContext1 = (0, import_web.createStyledContext)(), ToggleGroupContext = _createStyledContext1.Provider, useToggleGroupContext = _createStyledContext1.useStyledContext, ToggleGroupItem = import_Toggle.ToggleFrame.extractable(/* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
145
|
+
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 = (0, import_group.useGroupItem)({
|
|
146
|
+
disabled
|
|
147
|
+
}), _props_size, size = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
148
|
+
width: void 0,
|
|
149
|
+
height: void 0,
|
|
150
|
+
padding: (0, import_web.getVariableValue)(size) * 0.6
|
|
151
|
+
}, iconSize = (typeof size == "number" ? size * 0.7 : (0, import_font_size.getFontSize)(size)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
|
|
152
|
+
size: iconSize,
|
|
153
|
+
color: theme.color
|
|
154
|
+
}), childrens = import_react.default.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
155
|
+
return props.disablePassStyles || !/* @__PURE__ */ import_react.default.isValidElement(child) ? child : getThemedIcon(child);
|
|
156
|
+
}), commonProps = _object_spread_props(_object_spread({
|
|
157
|
+
pressed,
|
|
158
|
+
disabled
|
|
159
|
+
}, sizeProps, props), {
|
|
160
|
+
children
|
|
161
|
+
}), inner = /* @__PURE__ */ import_react.default.createElement(ToggleGroupItemImpl, _object_spread(_object_spread_props(_object_spread({}, commonProps), {
|
|
162
|
+
ref: forwardedRef,
|
|
163
|
+
focusable: !disabled,
|
|
164
|
+
disabled
|
|
165
|
+
}), groupItemProps));
|
|
166
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupItemProvider, {
|
|
167
|
+
scope: props.__scopeToggleGroup
|
|
168
|
+
}, context.rovingFocus ? /* @__PURE__ */ import_react.default.createElement(import_roving_focus.RovingFocusGroup.Item, {
|
|
169
|
+
asChild: "except-style",
|
|
170
|
+
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
171
|
+
focusable: !disabled,
|
|
172
|
+
active: pressed
|
|
173
|
+
}, inner) : inner);
|
|
174
|
+
}));
|
|
60
175
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
61
|
-
|
|
62
|
-
|
|
176
|
+
var ToggleGroupItemImpl = /* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
177
|
+
var __scopeToggleGroup = props.__scopeToggleGroup, value = props.value, itemProps = _object_without_properties(props, [
|
|
178
|
+
"__scopeToggleGroup",
|
|
179
|
+
"value"
|
|
180
|
+
]), valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
63
181
|
"aria-pressed": void 0
|
|
64
182
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
65
|
-
return /* @__PURE__ */ (
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
...itemProps,
|
|
70
|
-
ref: forwardedRef,
|
|
71
|
-
onPressedChange: (pressed) => {
|
|
72
|
-
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
}), ToggleGroup = (0, import_helpers.withStaticProperties)(
|
|
77
|
-
import_react.default.forwardRef(
|
|
78
|
-
(props, forwardedRef) => {
|
|
79
|
-
const { type, ...toggleGroupProps } = props;
|
|
80
|
-
if (import_constants.isWeb || import_react.default.useEffect(() => {
|
|
81
|
-
if (props.id)
|
|
82
|
-
return (0, import_focusable.registerFocusable)(props.id, {
|
|
83
|
-
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
84
|
-
// for now leaving it empty
|
|
85
|
-
focus: () => {
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}, [props.id]), type === "single")
|
|
89
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupImplSingle, { ...toggleGroupProps, ref: forwardedRef });
|
|
90
|
-
if (type === "multiple")
|
|
91
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupImplMultiple, { ...toggleGroupProps, ref: forwardedRef });
|
|
92
|
-
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
183
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Toggle.Toggle, _object_spread_props(_object_spread({}, typeProps, itemProps), {
|
|
184
|
+
ref: forwardedRef,
|
|
185
|
+
onPressedChange: function(pressed) {
|
|
186
|
+
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
93
187
|
}
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
|
|
188
|
+
}));
|
|
189
|
+
}), ToggleGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
190
|
+
var type = props.type, toggleGroupProps = _object_without_properties(props, [
|
|
191
|
+
"type"
|
|
192
|
+
]);
|
|
193
|
+
if (import_constants.isWeb || import_react.default.useEffect(function() {
|
|
194
|
+
if (props.id)
|
|
195
|
+
return (0, import_focusable.registerFocusable)(props.id, {
|
|
196
|
+
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
197
|
+
// for now leaving it empty
|
|
198
|
+
focus: function() {
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}, [
|
|
202
|
+
props.id
|
|
203
|
+
]), type === "single") {
|
|
204
|
+
var singleProps = toggleGroupProps;
|
|
205
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupImplSingle, _object_spread_props(_object_spread({}, singleProps), {
|
|
206
|
+
ref: forwardedRef
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
if (type === "multiple") {
|
|
210
|
+
var multipleProps = toggleGroupProps;
|
|
211
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupImplMultiple, _object_spread_props(_object_spread({}, multipleProps), {
|
|
212
|
+
ref: forwardedRef
|
|
213
|
+
}));
|
|
97
214
|
}
|
|
98
|
-
);
|
|
215
|
+
throw new Error("Missing prop `type` expected on `".concat(TOGGLE_GROUP_NAME, "`"));
|
|
216
|
+
}), {
|
|
217
|
+
Item: ToggleGroupItem
|
|
218
|
+
});
|
|
99
219
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
disableDeactivation = !1,
|
|
110
|
-
...toggleGroupSingleProps
|
|
111
|
-
} = props, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
220
|
+
var _createStyledContext2 = (0, import_web.createStyledContext)(), ToggleGroupValueProvider = _createStyledContext2.Provider, useToggleGroupValueContext = _createStyledContext2.useStyledContext, ToggleGroupImplSingle = /* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
221
|
+
var valueProp = props.value, defaultValue = props.defaultValue, _props_onValueChange = props.onValueChange, onValueChange = _props_onValueChange === void 0 ? function() {
|
|
222
|
+
} : _props_onValueChange, _props_disableDeactivation = props.disableDeactivation, disableDeactivation = _props_disableDeactivation === void 0 ? !1 : _props_disableDeactivation, toggleGroupSingleProps = _object_without_properties(props, [
|
|
223
|
+
"value",
|
|
224
|
+
"defaultValue",
|
|
225
|
+
"onValueChange",
|
|
226
|
+
"disableDeactivation"
|
|
227
|
+
]), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
112
228
|
prop: valueProp,
|
|
113
229
|
defaultProp: defaultValue,
|
|
114
230
|
onChange: onValueChange
|
|
115
|
-
});
|
|
116
|
-
return /* @__PURE__ */ (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
231
|
+
}), 2), value = _useControllableState[0], setValue = _useControllableState[1];
|
|
232
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupValueProvider, {
|
|
233
|
+
scope: props.__scopeToggleGroup,
|
|
234
|
+
type: "single",
|
|
235
|
+
value: value ? [
|
|
236
|
+
value
|
|
237
|
+
] : [],
|
|
238
|
+
defaultValue: value,
|
|
239
|
+
onItemActivate: setValue,
|
|
240
|
+
onItemDeactivate: import_react.default.useCallback(function() {
|
|
241
|
+
return disableDeactivation ? null : setValue("");
|
|
242
|
+
}, [
|
|
243
|
+
setValue,
|
|
244
|
+
disableDeactivation
|
|
245
|
+
])
|
|
246
|
+
}, /* @__PURE__ */ import_react.default.createElement(ToggleGroupImpl, _object_spread_props(_object_spread({}, toggleGroupSingleProps), {
|
|
247
|
+
ref: forwardedRef
|
|
248
|
+
})));
|
|
249
|
+
}), ToggleGroupImplMultiple = /* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
250
|
+
var valueProp = props.value, defaultValue = props.defaultValue, _props_onValueChange = props.onValueChange, onValueChange = _props_onValueChange === void 0 ? function() {
|
|
251
|
+
} : _props_onValueChange, toggleGroupMultipleProps = _object_without_properties(props, [
|
|
252
|
+
"value",
|
|
253
|
+
"defaultValue",
|
|
254
|
+
"onValueChange"
|
|
255
|
+
]), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
139
256
|
prop: valueProp,
|
|
140
257
|
defaultProp: defaultValue,
|
|
141
258
|
onChange: onValueChange
|
|
142
|
-
}), handleButtonActivate = import_react.default.useCallback(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
);
|
|
259
|
+
}), 2), tmp = _useControllableState[0], value = tmp === void 0 ? [] : tmp, setValue = _useControllableState[1], handleButtonActivate = import_react.default.useCallback(function(itemValue) {
|
|
260
|
+
return setValue(function() {
|
|
261
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
262
|
+
return _to_consumable_array(prevValue).concat([
|
|
263
|
+
itemValue
|
|
264
|
+
]);
|
|
265
|
+
});
|
|
266
|
+
}, [
|
|
267
|
+
setValue
|
|
268
|
+
]), handleButtonDeactivate = import_react.default.useCallback(function(itemValue) {
|
|
269
|
+
return setValue(function() {
|
|
270
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
271
|
+
return prevValue.filter(function(value2) {
|
|
272
|
+
return value2 !== itemValue;
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
}, [
|
|
276
|
+
setValue
|
|
277
|
+
]);
|
|
278
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupValueProvider, {
|
|
279
|
+
scope: props.__scopeToggleGroup,
|
|
280
|
+
type: "multiple",
|
|
281
|
+
value,
|
|
282
|
+
defaultValue: value,
|
|
283
|
+
onItemActivate: handleButtonActivate,
|
|
284
|
+
onItemDeactivate: handleButtonDeactivate
|
|
285
|
+
}, /* @__PURE__ */ import_react.default.createElement(ToggleGroupImpl, _object_spread_props(_object_spread({}, toggleGroupMultipleProps), {
|
|
286
|
+
ref: forwardedRef
|
|
287
|
+
})));
|
|
161
288
|
});
|
|
162
289
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
163
|
-
|
|
290
|
+
var ToggleGroupImplElementFrame = (0, import_web.styled)(import_group.Group, {
|
|
164
291
|
name: TOGGLE_GROUP_NAME,
|
|
165
292
|
variants: {
|
|
166
293
|
unstyled: {
|
|
@@ -182,73 +309,49 @@ const ToggleGroupImplElementFrame = (0, import_web.styled)(import_group.Group, {
|
|
|
182
309
|
defaultVariants: {
|
|
183
310
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
184
311
|
}
|
|
185
|
-
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
axis: orientation,
|
|
229
|
-
ref: forwardedRef,
|
|
230
|
-
"data-disabled": disabled ? "" : void 0,
|
|
231
|
-
unstyled,
|
|
232
|
-
...commonProps
|
|
233
|
-
}
|
|
234
|
-
)
|
|
235
|
-
}
|
|
236
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
237
|
-
ToggleGroupImplElementFrame,
|
|
238
|
-
{
|
|
239
|
-
"aria-orientation": orientation,
|
|
240
|
-
ref: forwardedRef,
|
|
241
|
-
orientation,
|
|
242
|
-
"data-disabled": disabled ? "" : void 0,
|
|
243
|
-
unstyled,
|
|
244
|
-
...commonProps
|
|
245
|
-
}
|
|
246
|
-
)
|
|
247
|
-
}
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
);
|
|
312
|
+
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(/* @__PURE__ */ import_react.default.forwardRef(function(props, forwardedRef) {
|
|
313
|
+
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, [
|
|
314
|
+
"__scopeToggleGroup",
|
|
315
|
+
"disabled",
|
|
316
|
+
"orientation",
|
|
317
|
+
"dir",
|
|
318
|
+
"rovingFocus",
|
|
319
|
+
"loop",
|
|
320
|
+
"unstyled",
|
|
321
|
+
"size",
|
|
322
|
+
"sizeAdjust"
|
|
323
|
+
]), direction = (0, import_use_direction.useDirection)(dir), commonProps = _object_spread({
|
|
324
|
+
role: "group",
|
|
325
|
+
dir: direction
|
|
326
|
+
}, toggleGroupProps), adjustedSize = (0, import_web.getVariableValue)((0, import_get_token.getSize)(sizeProp, {
|
|
327
|
+
shift: sizeAdjust
|
|
328
|
+
})), size = Math.round(adjustedSize * 0.45);
|
|
329
|
+
return /* @__PURE__ */ import_react.default.createElement(ToggleGroupContext, {
|
|
330
|
+
scope: __scopeToggleGroup,
|
|
331
|
+
rovingFocus,
|
|
332
|
+
disabled,
|
|
333
|
+
size
|
|
334
|
+
}, rovingFocus ? /* @__PURE__ */ import_react.default.createElement(import_roving_focus.RovingFocusGroup, {
|
|
335
|
+
asChild: "except-style",
|
|
336
|
+
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
337
|
+
orientation,
|
|
338
|
+
dir: direction,
|
|
339
|
+
loop
|
|
340
|
+
}, /* @__PURE__ */ import_react.default.createElement(ToggleGroupImplElementFrame, _object_spread({
|
|
341
|
+
"aria-orientation": orientation,
|
|
342
|
+
orientation,
|
|
343
|
+
axis: orientation,
|
|
344
|
+
ref: forwardedRef,
|
|
345
|
+
"data-disabled": disabled ? "" : void 0,
|
|
346
|
+
unstyled
|
|
347
|
+
}, commonProps))) : /* @__PURE__ */ import_react.default.createElement(ToggleGroupImplElementFrame, _object_spread({
|
|
348
|
+
"aria-orientation": orientation,
|
|
349
|
+
ref: forwardedRef,
|
|
350
|
+
orientation,
|
|
351
|
+
"data-disabled": disabled ? "" : void 0,
|
|
352
|
+
unstyled
|
|
353
|
+
}, commonProps)));
|
|
354
|
+
}));
|
|
252
355
|
// Annotate the CommonJS export names for ESM import in node:
|
|
253
356
|
0 && (module.exports = {
|
|
254
357
|
ToggleGroup
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/ToggleGroup.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["React", "value"]
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/toggle-group/src/ToggleGroup.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAsB,+BACtB,mBAAkC,+BAClC,mBAA4B,+BAC5B,mBAAwB,+BAExB,eAAoC,2BACpC,iBAAqC,6BACrC,yBAAiC,qCACjC,sBAAiC,kCACjC,gCAAqC,4CACrC,uBAA6B,mCAE7B,aAAwE,yBACxE,eAAkB,2BAGlB,gBAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,IAAMA,oBAAoB,eAMpBC,yBAAyB,mBAEzBC,uBAAuB,eAK3BC,2BAAAA,gCAAAA,GADgBC,0BAChBD,qBADME,UAAqDC,4BAC3DH,qBADyCI,kBAIzCJ,4BAAAA,gCAAAA,GADgBK,qBAChBL,sBADME,UAAgDI,wBACtDN,sBADoCI,kBAehCG,kBAAkBC,0BAAYC,YAClCC,6BAAAA,QAAMC,WACJ,SAACC,OAA0CC,cAAAA;AACzC,MAAMC,eAAeC,2BAA2BH,MAAMI,kBAAkB,GAClEC,UAAUX,sBAAsBM,MAAMI,kBAAkB,GACxDE,UAAUJ,gBAAAA,OAAAA,SAAAA,aAAcK,MAAMC,SAASR,MAAMO,KAAK,GAClDE,WAAWJ,QAAQ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C,QAAA,cAACyF,6BAAAA,eAAAA;IACC4B,oBAAkBrB;IAClBxD,KAAKrC;IACL6F;IACAuB,iBAAe5G,WAAW,KAAKO;IAC/BF;KACIqB,WAAAA,CAAAA,CAAAA;AAKd,CAAA,CAAA;",
|
|
5
|
+
"names": ["TOGGLE_GROUP_NAME", "TOGGLE_GROUP_ITEM_NAME", "TOGGLE_GROUP_CONTEXT", "createStyledContext", "ToggleGroupItemProvider", "Provider", "useToggleGroupItemContext", "useStyledContext", "ToggleGroupContext", "useToggleGroupContext", "ToggleGroupItem", "ToggleFrame", "extractable", "React", "forwardRef", "props", "forwardedRef", "valueContext", "useToggleGroupValueContext", "__scopeToggleGroup", "context", "pressed", "value", "includes", "disabled", "groupItemProps", "useGroupItem", "size", "sizeProps", "unstyled", "width", "undefined", "height", "padding", "getVariableValue", "iconSize", "getFontSize", "theme", "useTheme", "getThemedIcon", "useGetThemedIcon", "color", "childrens", "Children", "toArray", "children", "map", "child", "disablePassStyles", "isValidElement", "commonProps", "inner", "ToggleGroupItemImpl", "ref", "focusable", "scope", "rovingFocus", "RovingFocusGroup", "Item", "asChild", "__scopeRovingFocusGroup", "active", "displayName", "itemProps", "singleProps", "typeProps", "type", "Toggle", "onPressedChange", "onItemActivate", "onItemDeactivate", "ToggleGroup", "withStaticProperties", "toggleGroupProps", "isWeb", "useEffect", "id", "registerFocusable", "focus", "ToggleGroupImplSingle", "multipleProps", "ToggleGroupImplMultiple", "Error", "ToggleGroupValueProvider", "valueProp", "defaultValue", "onValueChange", "disableDeactivation", "toggleGroupSingleProps", "useControllableState", "prop", "defaultProp", "onChange", "setValue", "useCallback", "ToggleGroupImpl", "toggleGroupMultipleProps", "handleButtonActivate", "itemValue", "prevValue", "handleButtonDeactivate", "filter", "ToggleGroupImplElementFrame", "styled", "Group", "name", "variants", "false", "backgroundColor", "orientation", "vertical", "flexDirection", "spaceDirection", "horizontal", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "dir", "loop", "sizeProp", "sizeAdjust", "direction", "useDirection", "role", "adjustedSize", "getSize", "shift", "Math", "round", "aria-orientation", "axis", "data-disabled"]
|
|
6
6
|
}
|