@tamagui/toggle-group 1.88.1 → 1.88.3
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.js +0 -5
- package/dist/cjs/ToggleGroup.js +1 -5
- package/dist/cjs/ToggleGroup.js.map +1 -1
- package/dist/cjs/index.js +0 -4
- package/dist/esm/Toggle.native.js +37 -12
- package/dist/esm/Toggle.native.js.map +1 -1
- package/dist/esm/ToggleGroup.native.js +69 -58
- package/dist/esm/ToggleGroup.native.js.map +2 -2
- package/dist/esm/index.native.js +19 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/jsx/Toggle.js +19 -15
- package/dist/jsx/Toggle.js.map +1 -1
- package/dist/jsx/Toggle.native.js +53 -24
- package/dist/jsx/Toggle.native.js.map +1 -1
- package/dist/jsx/ToggleGroup.js +104 -75
- package/dist/jsx/ToggleGroup.js.map +1 -1
- package/dist/jsx/ToggleGroup.native.js +155 -115
- package/dist/jsx/ToggleGroup.native.js.map +2 -2
- package/dist/jsx/index.native.js +19 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +15 -15
|
@@ -1,77 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var ToggleGroup_exports = {};
|
|
25
|
+
__export(ToggleGroup_exports, {
|
|
26
|
+
ToggleGroup: () => ToggleGroup
|
|
27
|
+
});
|
|
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"), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
const TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = (0, import_web.createStyledContext)(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = (0, import_web.createStyledContext)(), ToggleGroupItem = import_Toggle.ToggleFrame.extractable(
|
|
31
|
+
import_react.default.forwardRef(
|
|
21
32
|
(props, forwardedRef) => {
|
|
22
|
-
const 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({ disabled }), size = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
|
|
33
|
+
const 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)({ disabled }), size = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
|
|
23
34
|
width: void 0,
|
|
24
35
|
height: void 0,
|
|
25
|
-
padding: getVariableValue(size) * 0.6
|
|
26
|
-
}, iconSize = (typeof size == "number" ? size * 0.7 : getFontSize(size)) * 1.2, theme = useTheme(), getThemedIcon = useGetThemedIcon({ size: iconSize, color: theme.color }), children =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
padding: (0, import_web.getVariableValue)(size) * 0.6
|
|
37
|
+
}, 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)({ size: iconSize, color: theme.color }), children = import_react.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = { pressed, disabled, ...sizeProps, ...props, children }, inner = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
+
ToggleGroupItemImpl,
|
|
39
|
+
{
|
|
40
|
+
...commonProps,
|
|
41
|
+
ref: forwardedRef,
|
|
42
|
+
focusable: !disabled,
|
|
43
|
+
disabled,
|
|
44
|
+
...groupItemProps
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupItemProvider, { scope: props.__scopeToggleGroup, children: context.rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
|
+
import_roving_focus.RovingFocusGroup.Item,
|
|
49
|
+
{
|
|
50
|
+
asChild: "except-style",
|
|
51
|
+
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
52
|
+
focusable: !disabled,
|
|
53
|
+
active: pressed,
|
|
54
|
+
children: inner
|
|
55
|
+
}
|
|
56
|
+
) : inner });
|
|
39
57
|
}
|
|
40
58
|
)
|
|
41
59
|
);
|
|
42
60
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
43
|
-
const ToggleGroupItemImpl =
|
|
61
|
+
const ToggleGroupItemImpl = import_react.default.forwardRef((props, forwardedRef) => {
|
|
44
62
|
const { __scopeToggleGroup, value, ...itemProps } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
45
63
|
"aria-pressed": void 0
|
|
46
64
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
65
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
+
import_Toggle.Toggle,
|
|
67
|
+
{
|
|
68
|
+
...typeProps,
|
|
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(
|
|
57
78
|
(props, forwardedRef) => {
|
|
58
79
|
const { type, ...toggleGroupProps } = props;
|
|
59
|
-
if (isWeb ||
|
|
80
|
+
if (import_constants.isWeb || import_react.default.useEffect(() => {
|
|
60
81
|
if (props.id)
|
|
61
|
-
return registerFocusable(props.id, {
|
|
82
|
+
return (0, import_focusable.registerFocusable)(props.id, {
|
|
62
83
|
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
63
84
|
// for now leaving it empty
|
|
64
85
|
focus: () => {
|
|
65
86
|
}
|
|
66
87
|
});
|
|
67
|
-
}, [props.id]), type === "single")
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (type === "multiple") {
|
|
72
|
-
const multipleProps = toggleGroupProps;
|
|
73
|
-
return <ToggleGroupImplMultiple {...multipleProps} ref={forwardedRef} />;
|
|
74
|
-
}
|
|
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 });
|
|
75
92
|
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
76
93
|
}
|
|
77
94
|
),
|
|
@@ -83,7 +100,7 @@ ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
|
83
100
|
const {
|
|
84
101
|
Provider: ToggleGroupValueProvider,
|
|
85
102
|
useStyledContext: useToggleGroupValueContext
|
|
86
|
-
} = createStyledContext(), ToggleGroupImplSingle =
|
|
103
|
+
} = (0, import_web.createStyledContext)(), ToggleGroupImplSingle = import_react.default.forwardRef((props, forwardedRef) => {
|
|
87
104
|
const {
|
|
88
105
|
value: valueProp,
|
|
89
106
|
defaultValue,
|
|
@@ -91,51 +108,59 @@ const {
|
|
|
91
108
|
},
|
|
92
109
|
disableDeactivation = !1,
|
|
93
110
|
...toggleGroupSingleProps
|
|
94
|
-
} = props, [value, setValue] = useControllableState({
|
|
111
|
+
} = props, [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
95
112
|
prop: valueProp,
|
|
96
113
|
defaultProp: defaultValue,
|
|
97
114
|
onChange: onValueChange
|
|
98
115
|
});
|
|
99
|
-
return
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
|
+
ToggleGroupValueProvider,
|
|
118
|
+
{
|
|
119
|
+
scope: props.__scopeToggleGroup,
|
|
120
|
+
type: "single",
|
|
121
|
+
value: value ? [value] : [],
|
|
122
|
+
defaultValue: value,
|
|
123
|
+
onItemActivate: setValue,
|
|
124
|
+
onItemDeactivate: import_react.default.useCallback(
|
|
125
|
+
() => disableDeactivation ? null : setValue(""),
|
|
126
|
+
[setValue, disableDeactivation]
|
|
127
|
+
),
|
|
128
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}), ToggleGroupImplMultiple = import_react.default.forwardRef((props, forwardedRef) => {
|
|
111
132
|
const {
|
|
112
133
|
value: valueProp,
|
|
113
134
|
defaultValue,
|
|
114
135
|
onValueChange = () => {
|
|
115
136
|
},
|
|
116
137
|
...toggleGroupMultipleProps
|
|
117
|
-
} = props, [value = [], setValue] = useControllableState({
|
|
138
|
+
} = props, [value = [], setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
118
139
|
prop: valueProp,
|
|
119
140
|
defaultProp: defaultValue,
|
|
120
141
|
onChange: onValueChange
|
|
121
|
-
}), handleButtonActivate =
|
|
142
|
+
}), handleButtonActivate = import_react.default.useCallback(
|
|
122
143
|
(itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
|
|
123
144
|
[setValue]
|
|
124
|
-
), handleButtonDeactivate =
|
|
145
|
+
), handleButtonDeactivate = import_react.default.useCallback(
|
|
125
146
|
(itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
|
|
126
147
|
[setValue]
|
|
127
148
|
);
|
|
128
|
-
return
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
150
|
+
ToggleGroupValueProvider,
|
|
151
|
+
{
|
|
152
|
+
scope: props.__scopeToggleGroup,
|
|
153
|
+
type: "multiple",
|
|
154
|
+
value,
|
|
155
|
+
defaultValue: value,
|
|
156
|
+
onItemActivate: handleButtonActivate,
|
|
157
|
+
onItemDeactivate: handleButtonDeactivate,
|
|
158
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupImpl, { ...toggleGroupMultipleProps, ref: forwardedRef })
|
|
159
|
+
}
|
|
160
|
+
);
|
|
136
161
|
});
|
|
137
162
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
138
|
-
const ToggleGroupImplElementFrame = styled(Group, {
|
|
163
|
+
const ToggleGroupImplElementFrame = (0, import_web.styled)(import_group.Group, {
|
|
139
164
|
name: TOGGLE_GROUP_NAME,
|
|
140
165
|
variants: {
|
|
141
166
|
unstyled: {
|
|
@@ -158,7 +183,7 @@ const ToggleGroupImplElementFrame = styled(Group, {
|
|
|
158
183
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
159
184
|
}
|
|
160
185
|
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
|
|
161
|
-
|
|
186
|
+
import_react.default.forwardRef(
|
|
162
187
|
(props, forwardedRef) => {
|
|
163
188
|
const {
|
|
164
189
|
__scopeToggleGroup,
|
|
@@ -171,46 +196,61 @@ const ToggleGroupImplElementFrame = styled(Group, {
|
|
|
171
196
|
size: sizeProp = "$true",
|
|
172
197
|
sizeAdjust = 0,
|
|
173
198
|
...toggleGroupProps
|
|
174
|
-
} = props, direction = useDirection(dir), commonProps = {
|
|
199
|
+
} = props, direction = (0, import_use_direction.useDirection)(dir), commonProps = {
|
|
175
200
|
role: "group",
|
|
176
201
|
dir: direction,
|
|
177
202
|
...toggleGroupProps
|
|
178
|
-
}, adjustedSize = getVariableValue(
|
|
179
|
-
getSize(sizeProp, {
|
|
203
|
+
}, adjustedSize = (0, import_web.getVariableValue)(
|
|
204
|
+
(0, import_get_token.getSize)(sizeProp, {
|
|
180
205
|
shift: sizeAdjust
|
|
181
206
|
})
|
|
182
207
|
), size = Math.round(adjustedSize * 0.45);
|
|
183
|
-
return
|
|
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
|
-
|
|
208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
209
|
+
ToggleGroupContext,
|
|
210
|
+
{
|
|
211
|
+
scope: __scopeToggleGroup,
|
|
212
|
+
rovingFocus,
|
|
213
|
+
disabled,
|
|
214
|
+
size,
|
|
215
|
+
children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
216
|
+
import_roving_focus.RovingFocusGroup,
|
|
217
|
+
{
|
|
218
|
+
asChild: "except-style",
|
|
219
|
+
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
220
|
+
orientation,
|
|
221
|
+
dir: direction,
|
|
222
|
+
loop,
|
|
223
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
224
|
+
ToggleGroupImplElementFrame,
|
|
225
|
+
{
|
|
226
|
+
"aria-orientation": orientation,
|
|
227
|
+
orientation,
|
|
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
|
+
);
|
|
210
249
|
}
|
|
211
250
|
)
|
|
212
251
|
);
|
|
213
|
-
export
|
|
252
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
253
|
+
0 && (module.exports = {
|
|
214
254
|
ToggleGroup
|
|
215
|
-
};
|
|
255
|
+
});
|
|
216
256
|
//# sourceMappingURL=ToggleGroup.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
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A,QACd;AAAA,QACA,cAAc;AAAA,QACd,OAAO;AAAA,QACP,WAAW;AAAA,QACX,MAAM,WAAW;AAAA,QACjB,aAAa;AAAA,QACb,GAAG;AAAA,MACL,IAAI,OACE,gBAAY,mCAAa,GAAG,GAC5B,cAAoC;AAAA,QACxC,MAAM;AAAA,QACN,KAAK;AAAA,QACL,GAAG;AAAA,MACL,GACM,mBAAe;AAAA,YACnB,0BAAQ,UAAU;AAAA,UAChB,OAAO;AAAA,QACT,CAAC;AAAA,MACH,GACM,OAAO,KAAK,MAAM,eAAe,IAAI;AAE3C,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA;AAAA,UAEC,wBACC;AAAA,YAAC;AAAA;AAAA,cACC,SAAQ;AAAA,cACR,yBAAyB,sBAAsB;AAAA,cAC/C;AAAA,cACA,KAAK;AAAA,cACL;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACC,oBAAkB;AAAA,kBAClB;AAAA,kBACA,MAAM;AAAA,kBACN,KAAK;AAAA,kBACL,iBAAe,WAAW,KAAK;AAAA,kBAC/B;AAAA,kBACC,GAAG;AAAA;AAAA,cACN;AAAA;AAAA,UACF,IAEA;AAAA,YAAC;AAAA;AAAA,cACC,oBAAkB;AAAA,cAClB,KAAK;AAAA,cACL;AAAA,cACA,iBAAe,WAAW,KAAK;AAAA,cAC/B;AAAA,cACC,GAAG;AAAA;AAAA,UACN;AAAA;AAAA,MAEJ;AAAA,IAEJ;AAAA,EACF;AACF;",
|
|
5
|
+
"names": ["React", "value"]
|
|
6
6
|
}
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./ToggleGroup"), module.exports);
|
|
16
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
17
|
+
0 && (module.exports = {
|
|
18
|
+
...require("./ToggleGroup")
|
|
19
|
+
});
|
|
2
20
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toggle-group",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.3",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/constants": "1.88.
|
|
36
|
-
"@tamagui/create-context": "1.88.
|
|
37
|
-
"@tamagui/focusable": "1.88.
|
|
38
|
-
"@tamagui/font-size": "1.88.
|
|
39
|
-
"@tamagui/get-token": "1.88.
|
|
40
|
-
"@tamagui/group": "1.88.
|
|
41
|
-
"@tamagui/helpers": "1.88.
|
|
42
|
-
"@tamagui/helpers-tamagui": "1.88.
|
|
43
|
-
"@tamagui/roving-focus": "1.88.
|
|
44
|
-
"@tamagui/stacks": "1.88.
|
|
45
|
-
"@tamagui/use-controllable-state": "1.88.
|
|
46
|
-
"@tamagui/use-direction": "1.88.
|
|
47
|
-
"@tamagui/web": "1.88.
|
|
35
|
+
"@tamagui/constants": "1.88.3",
|
|
36
|
+
"@tamagui/create-context": "1.88.3",
|
|
37
|
+
"@tamagui/focusable": "1.88.3",
|
|
38
|
+
"@tamagui/font-size": "1.88.3",
|
|
39
|
+
"@tamagui/get-token": "1.88.3",
|
|
40
|
+
"@tamagui/group": "1.88.3",
|
|
41
|
+
"@tamagui/helpers": "1.88.3",
|
|
42
|
+
"@tamagui/helpers-tamagui": "1.88.3",
|
|
43
|
+
"@tamagui/roving-focus": "1.88.3",
|
|
44
|
+
"@tamagui/stacks": "1.88.3",
|
|
45
|
+
"@tamagui/use-controllable-state": "1.88.3",
|
|
46
|
+
"@tamagui/use-direction": "1.88.3",
|
|
47
|
+
"@tamagui/web": "1.88.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "*"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@tamagui/build": "1.88.
|
|
53
|
+
"@tamagui/build": "1.88.3",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|