@tamagui/toggle-group 1.113.1 → 1.113.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,92 +4,86 @@ import { ThemeableStack } from "@tamagui/stacks";
|
|
|
4
4
|
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
5
5
|
import { styled } from "@tamagui/web";
|
|
6
6
|
import * as React from "react";
|
|
7
|
-
var NAME = "Toggle",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
outlineStyle: "solid"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
active: {
|
|
39
|
-
true: {
|
|
40
|
-
zIndex: 1,
|
|
41
|
-
hoverStyle: {
|
|
42
|
-
backgroundColor: "$background"
|
|
43
|
-
},
|
|
44
|
-
focusStyle: {
|
|
45
|
-
borderColor: "$borderColor",
|
|
46
|
-
backgroundColor: "$background"
|
|
47
|
-
}
|
|
7
|
+
var NAME = "Toggle", ToggleFrame = styled(ThemeableStack, {
|
|
8
|
+
name: NAME,
|
|
9
|
+
tag: "button",
|
|
10
|
+
variants: {
|
|
11
|
+
unstyled: {
|
|
12
|
+
false: {
|
|
13
|
+
pressTheme: !0,
|
|
14
|
+
backgroundColor: "$background",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
display: "flex",
|
|
18
|
+
borderColor: "$borderColor",
|
|
19
|
+
borderWidth: 1,
|
|
20
|
+
margin: -1,
|
|
21
|
+
hoverStyle: {
|
|
22
|
+
backgroundColor: "$backgroundHover"
|
|
23
|
+
},
|
|
24
|
+
pressStyle: {
|
|
25
|
+
backgroundColor: "$backgroundPress"
|
|
26
|
+
},
|
|
27
|
+
focusStyle: {
|
|
28
|
+
borderColor: "$borderColorFocus"
|
|
29
|
+
},
|
|
30
|
+
focusVisibleStyle: {
|
|
31
|
+
outlineColor: "$outlineColor",
|
|
32
|
+
outlineWidth: 2,
|
|
33
|
+
outlineStyle: "solid"
|
|
48
34
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
active: {
|
|
38
|
+
true: {
|
|
39
|
+
zIndex: 1,
|
|
40
|
+
hoverStyle: {
|
|
41
|
+
backgroundColor: "$background"
|
|
54
42
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
43
|
+
focusStyle: {
|
|
44
|
+
borderColor: "$borderColor",
|
|
45
|
+
backgroundColor: "$background"
|
|
58
46
|
}
|
|
59
47
|
}
|
|
60
48
|
},
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
orientation: {
|
|
50
|
+
horizontal: {
|
|
51
|
+
flexDirection: "row",
|
|
52
|
+
spaceDirection: "horizontal"
|
|
53
|
+
},
|
|
54
|
+
vertical: {
|
|
55
|
+
flexDirection: "column",
|
|
56
|
+
spaceDirection: "vertical"
|
|
57
|
+
}
|
|
63
58
|
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ref: forwardedRef,
|
|
89
|
-
onPress: composeEventHandlers((_props_onPress = props.onPress) !== null && _props_onPress !== void 0 ? _props_onPress : void 0, function () {
|
|
90
|
-
props.disabled || setPressed(!pressed);
|
|
91
|
-
})
|
|
92
|
-
});
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
62
|
+
}
|
|
63
|
+
}), Toggle = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
64
|
+
var { pressed: pressedProp, defaultPressed = !1, onPressedChange, ...buttonProps } = props, [pressed = !1, setPressed] = useControllableState({
|
|
65
|
+
prop: pressedProp,
|
|
66
|
+
onChange: onPressedChange,
|
|
67
|
+
defaultProp: defaultPressed
|
|
68
|
+
}), _props_onPress;
|
|
69
|
+
return /* @__PURE__ */ _jsx(ToggleFrame, {
|
|
70
|
+
...!props.unstyled && {
|
|
71
|
+
theme: pressed ? "active" : null,
|
|
72
|
+
themeShallow: !0
|
|
73
|
+
},
|
|
74
|
+
active: props.unstyled ? void 0 : pressed,
|
|
75
|
+
"aria-pressed": pressed,
|
|
76
|
+
"data-state": pressed ? "on" : "off",
|
|
77
|
+
"data-disabled": props.disabled ? "" : void 0,
|
|
78
|
+
...buttonProps,
|
|
79
|
+
ref: forwardedRef,
|
|
80
|
+
onPress: composeEventHandlers((_props_onPress = props.onPress) !== null && _props_onPress !== void 0 ? _props_onPress : void 0, function() {
|
|
81
|
+
props.disabled || setPressed(!pressed);
|
|
82
|
+
})
|
|
93
83
|
});
|
|
94
|
-
|
|
95
|
-
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
Toggle,
|
|
87
|
+
ToggleFrame
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=Toggle.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/toggle-group/src/Toggle.tsx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AAU,OAAO;IAC7Bc,iBAAehB,MAAMiB,WAAW,KAAKJ;IACpC,GAAGP;IACJY,KAAKjB;IACLkB,SAAS5D,sBAAqByC,iBAAAA,MAAMmB,aAAO,QAAbnB,mBAAAA,SAAAA,iBAAiBa,QAAW,WAAA;AACxD,MAAKb,MAAMiB,YACTV,WAAW,CAACL,OAAAA;IAEhB,CAAA;;AAGN,CAAA;",
|
|
5
|
+
"names": ["composeEventHandlers", "ThemeableStack", "useControllableState", "styled", "React", "NAME", "ToggleFrame", "name", "tag", "variants", "unstyled", "false", "pressTheme", "backgroundColor", "alignItems", "justifyContent", "display", "borderColor", "borderWidth", "margin", "hoverStyle", "pressStyle", "focusStyle", "focusVisibleStyle", "outlineColor", "outlineWidth", "outlineStyle", "active", "true", "zIndex", "orientation", "horizontal", "flexDirection", "spaceDirection", "vertical", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "Toggle", "forwardRef", "props", "forwardedRef", "pressed", "pressedProp", "defaultPressed", "onPressedChange", "buttonProps", "setPressed", "prop", "onChange", "defaultProp", "theme", "themeShallow", "undefined", "aria-pressed", "data-state", "data-disabled", "disabled", "ref", "onPress"]
|
|
6
|
+
}
|
|
@@ -11,271 +11,214 @@ import { useControllableState } from "@tamagui/use-controllable-state";
|
|
|
11
11
|
import { useDirection } from "@tamagui/use-direction";
|
|
12
12
|
import { createStyledContext, getVariableValue, styled, useTheme } from "@tamagui/web";
|
|
13
13
|
import React from "react";
|
|
14
|
-
import { Toggle, ToggleFrame } from "./Toggle
|
|
15
|
-
var TOGGLE_GROUP_NAME = "ToggleGroup",
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
childrens = React.Children.toArray(props.children),
|
|
52
|
-
children = childrens.map(function (child) {
|
|
53
|
-
return props.disablePassStyles || ! /* @__PURE__ */React.isValidElement(child) ? child : getThemedIcon(child);
|
|
54
|
-
}),
|
|
55
|
-
commonProps = {
|
|
56
|
-
pressed,
|
|
57
|
-
disabled,
|
|
58
|
-
...sizeProps,
|
|
59
|
-
...rest,
|
|
60
|
-
children
|
|
61
|
-
},
|
|
62
|
-
inner = /* @__PURE__ */_jsx(ToggleGroupItemImpl, {
|
|
63
|
-
...commonProps,
|
|
64
|
-
ref: forwardedRef,
|
|
65
|
-
focusable: !disabled,
|
|
66
|
-
disabled,
|
|
67
|
-
...groupItemProps
|
|
68
|
-
});
|
|
69
|
-
return /* @__PURE__ */_jsx(ToggleGroupItemProvider, {
|
|
70
|
-
scope: props.__scopeToggleGroup,
|
|
71
|
-
children: context.rovingFocus ? /* @__PURE__ */_jsx(RovingFocusGroup.Item, {
|
|
72
|
-
asChild: "except-style",
|
|
73
|
-
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
74
|
-
focusable: !disabled,
|
|
75
|
-
active: pressed,
|
|
76
|
-
children: inner
|
|
77
|
-
}) : inner
|
|
78
|
-
});
|
|
79
|
-
}));
|
|
14
|
+
import { Toggle, ToggleFrame } from "./Toggle";
|
|
15
|
+
var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = createStyledContext(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = createStyledContext(), ToggleGroupItem = ToggleFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
16
|
+
var { disablePassStyles, ...rest } = props, valueContext = useToggleGroupValueContext(props.__scopeToggleGroup), context = useToggleGroupContext(props.__scopeToggleGroup), pressed = valueContext?.value.includes(props.value), disabled = context.disabled || props.disabled || !1, groupItemProps = useGroupItem({
|
|
17
|
+
disabled
|
|
18
|
+
}), _props_size, size = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : context.size, sizeProps = props.unstyled ? {} : {
|
|
19
|
+
width: void 0,
|
|
20
|
+
height: void 0,
|
|
21
|
+
padding: getVariableValue(size) * 0.6
|
|
22
|
+
}, iconSize = (typeof size == "number" ? size * 0.7 : getFontSize(size)) * 1.2, theme = useTheme(), getThemedIcon = useGetThemedIcon({
|
|
23
|
+
size: iconSize,
|
|
24
|
+
color: theme.color
|
|
25
|
+
}), childrens = React.Children.toArray(props.children), children = childrens.map(function(child) {
|
|
26
|
+
return props.disablePassStyles || !/* @__PURE__ */ React.isValidElement(child) ? child : getThemedIcon(child);
|
|
27
|
+
}), commonProps = {
|
|
28
|
+
pressed,
|
|
29
|
+
disabled,
|
|
30
|
+
...sizeProps,
|
|
31
|
+
...rest,
|
|
32
|
+
children
|
|
33
|
+
}, inner = /* @__PURE__ */ _jsx(ToggleGroupItemImpl, {
|
|
34
|
+
...commonProps,
|
|
35
|
+
ref: forwardedRef,
|
|
36
|
+
focusable: !disabled,
|
|
37
|
+
disabled,
|
|
38
|
+
...groupItemProps
|
|
39
|
+
});
|
|
40
|
+
return /* @__PURE__ */ _jsx(ToggleGroupItemProvider, {
|
|
41
|
+
scope: props.__scopeToggleGroup,
|
|
42
|
+
children: context.rovingFocus ? /* @__PURE__ */ _jsx(RovingFocusGroup.Item, {
|
|
43
|
+
asChild: "except-style",
|
|
44
|
+
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
45
|
+
focusable: !disabled,
|
|
46
|
+
active: pressed,
|
|
47
|
+
children: inner
|
|
48
|
+
}) : inner
|
|
49
|
+
});
|
|
50
|
+
}));
|
|
80
51
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
81
|
-
var ToggleGroupItemImpl = /* @__PURE__ */React.forwardRef(function
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}),
|
|
101
|
-
ToggleGroup = withStaticProperties(/* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
|
|
102
|
-
var {
|
|
103
|
-
type,
|
|
104
|
-
...toggleGroupProps
|
|
105
|
-
} = props;
|
|
106
|
-
if (isWeb || React.useEffect(function () {
|
|
107
|
-
if (props.id) return registerFocusable(props.id, {
|
|
52
|
+
var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
53
|
+
var { __scopeToggleGroup, value, ...itemProps } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
54
|
+
"aria-pressed": void 0
|
|
55
|
+
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
56
|
+
return /* @__PURE__ */ _jsx(Toggle, {
|
|
57
|
+
...typeProps,
|
|
58
|
+
...itemProps,
|
|
59
|
+
ref: forwardedRef,
|
|
60
|
+
onPressedChange: function(pressed) {
|
|
61
|
+
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}), ToggleGroup = withStaticProperties(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
65
|
+
var { type, ...toggleGroupProps } = props;
|
|
66
|
+
if (isWeb || React.useEffect(function() {
|
|
67
|
+
if (props.id)
|
|
68
|
+
return registerFocusable(props.id, {
|
|
108
69
|
// TODO: would be nice to focus on the first child later - could be done with reforest
|
|
109
70
|
// for now leaving it empty
|
|
110
|
-
focus: function
|
|
111
|
-
|
|
112
|
-
}, [props.id]), type === "single") {
|
|
113
|
-
var singleProps = toggleGroupProps;
|
|
114
|
-
return /* @__PURE__ */_jsx(ToggleGroupImplSingle, {
|
|
115
|
-
...singleProps,
|
|
116
|
-
ref: forwardedRef
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
if (type === "multiple") {
|
|
120
|
-
var multipleProps = toggleGroupProps;
|
|
121
|
-
return /* @__PURE__ */_jsx(ToggleGroupImplMultiple, {
|
|
122
|
-
...multipleProps,
|
|
123
|
-
ref: forwardedRef
|
|
71
|
+
focus: function() {
|
|
72
|
+
}
|
|
124
73
|
});
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
74
|
+
}, [
|
|
75
|
+
props.id
|
|
76
|
+
]), type === "single") {
|
|
77
|
+
var singleProps = toggleGroupProps;
|
|
78
|
+
return /* @__PURE__ */ _jsx(ToggleGroupImplSingle, {
|
|
79
|
+
...singleProps,
|
|
80
|
+
ref: forwardedRef
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
if (type === "multiple") {
|
|
84
|
+
var multipleProps = toggleGroupProps;
|
|
85
|
+
return /* @__PURE__ */ _jsx(ToggleGroupImplMultiple, {
|
|
86
|
+
...multipleProps,
|
|
87
|
+
ref: forwardedRef
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
throw new Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``);
|
|
91
|
+
}), {
|
|
92
|
+
Item: ToggleGroupItem
|
|
93
|
+
});
|
|
130
94
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
131
|
-
var {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
95
|
+
var { Provider: ToggleGroupValueProvider, useStyledContext: useToggleGroupValueContext } = createStyledContext(), ToggleGroupImplSingle = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
96
|
+
var { value: valueProp, defaultValue, onValueChange = function() {
|
|
97
|
+
}, disableDeactivation = !1, ...toggleGroupSingleProps } = props, [value, setValue] = useControllableState({
|
|
98
|
+
prop: valueProp,
|
|
99
|
+
defaultProp: defaultValue,
|
|
100
|
+
onChange: onValueChange
|
|
101
|
+
});
|
|
102
|
+
return /* @__PURE__ */ _jsx(ToggleGroupValueProvider, {
|
|
103
|
+
scope: props.__scopeToggleGroup,
|
|
104
|
+
type: "single",
|
|
105
|
+
value: value ? [
|
|
106
|
+
value
|
|
107
|
+
] : [],
|
|
108
|
+
defaultValue: value,
|
|
109
|
+
onItemActivate: setValue,
|
|
110
|
+
onItemDeactivate: React.useCallback(function() {
|
|
111
|
+
return disableDeactivation ? null : setValue("");
|
|
112
|
+
}, [
|
|
113
|
+
setValue,
|
|
114
|
+
disableDeactivation
|
|
115
|
+
]),
|
|
116
|
+
children: /* @__PURE__ */ _jsx(ToggleGroupImpl, {
|
|
117
|
+
...toggleGroupSingleProps,
|
|
118
|
+
ref: forwardedRef
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
}), ToggleGroupImplMultiple = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
122
|
+
var { value: valueProp, defaultValue, onValueChange = function() {
|
|
123
|
+
}, disableDeactivation, ...toggleGroupMultipleProps } = props, [value = [], setValue] = useControllableState({
|
|
124
|
+
prop: valueProp,
|
|
125
|
+
defaultProp: defaultValue,
|
|
126
|
+
onChange: onValueChange
|
|
127
|
+
}), handleButtonActivate = React.useCallback(function(itemValue) {
|
|
128
|
+
return setValue(function() {
|
|
129
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
130
|
+
return [
|
|
131
|
+
...prevValue,
|
|
132
|
+
itemValue
|
|
133
|
+
];
|
|
161
134
|
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} = props,
|
|
171
|
-
[value = [], setValue] = useControllableState({
|
|
172
|
-
prop: valueProp,
|
|
173
|
-
defaultProp: defaultValue,
|
|
174
|
-
onChange: onValueChange
|
|
175
|
-
}),
|
|
176
|
-
handleButtonActivate = React.useCallback(function (itemValue) {
|
|
177
|
-
return setValue(function () {
|
|
178
|
-
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
179
|
-
return [...prevValue, itemValue];
|
|
180
|
-
});
|
|
181
|
-
}, [setValue]),
|
|
182
|
-
handleButtonDeactivate = React.useCallback(function (itemValue) {
|
|
183
|
-
return setValue(function () {
|
|
184
|
-
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
185
|
-
return prevValue.filter(function (value2) {
|
|
186
|
-
return value2 !== itemValue;
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
}, [setValue]);
|
|
190
|
-
return /* @__PURE__ */_jsx(ToggleGroupValueProvider, {
|
|
191
|
-
scope: props.__scopeToggleGroup,
|
|
192
|
-
type: "multiple",
|
|
193
|
-
value,
|
|
194
|
-
defaultValue: value,
|
|
195
|
-
onItemActivate: handleButtonActivate,
|
|
196
|
-
onItemDeactivate: handleButtonDeactivate,
|
|
197
|
-
children: /* @__PURE__ */_jsx(ToggleGroupImpl, {
|
|
198
|
-
...toggleGroupMultipleProps,
|
|
199
|
-
ref: forwardedRef
|
|
200
|
-
})
|
|
135
|
+
}, [
|
|
136
|
+
setValue
|
|
137
|
+
]), handleButtonDeactivate = React.useCallback(function(itemValue) {
|
|
138
|
+
return setValue(function() {
|
|
139
|
+
var prevValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
140
|
+
return prevValue.filter(function(value2) {
|
|
141
|
+
return value2 !== itemValue;
|
|
142
|
+
});
|
|
201
143
|
});
|
|
144
|
+
}, [
|
|
145
|
+
setValue
|
|
146
|
+
]);
|
|
147
|
+
return /* @__PURE__ */ _jsx(ToggleGroupValueProvider, {
|
|
148
|
+
scope: props.__scopeToggleGroup,
|
|
149
|
+
type: "multiple",
|
|
150
|
+
value,
|
|
151
|
+
defaultValue: value,
|
|
152
|
+
onItemActivate: handleButtonActivate,
|
|
153
|
+
onItemDeactivate: handleButtonDeactivate,
|
|
154
|
+
children: /* @__PURE__ */ _jsx(ToggleGroupImpl, {
|
|
155
|
+
...toggleGroupMultipleProps,
|
|
156
|
+
ref: forwardedRef
|
|
157
|
+
})
|
|
202
158
|
});
|
|
159
|
+
});
|
|
203
160
|
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
204
161
|
var ToggleGroupImplElementFrame = styled(Group, {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
orientation: {
|
|
213
|
-
vertical: {
|
|
214
|
-
flexDirection: "column",
|
|
215
|
-
spaceDirection: "vertical"
|
|
216
|
-
},
|
|
217
|
-
horizontal: {
|
|
218
|
-
flexDirection: "row",
|
|
219
|
-
spaceDirection: "horizontal"
|
|
220
|
-
}
|
|
162
|
+
name: TOGGLE_GROUP_NAME,
|
|
163
|
+
variants: {
|
|
164
|
+
unstyled: {
|
|
165
|
+
false: {
|
|
166
|
+
backgroundColor: "$background"
|
|
221
167
|
}
|
|
222
168
|
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(/* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
|
|
228
|
-
var {
|
|
229
|
-
__scopeToggleGroup,
|
|
230
|
-
disabled = !1,
|
|
231
|
-
orientation = "horizontal",
|
|
232
|
-
dir,
|
|
233
|
-
rovingFocus = !0,
|
|
234
|
-
loop = !0,
|
|
235
|
-
unstyled = !1,
|
|
236
|
-
size: sizeProp = "$true",
|
|
237
|
-
sizeAdjust = 0,
|
|
238
|
-
...toggleGroupProps
|
|
239
|
-
} = props,
|
|
240
|
-
direction = useDirection(dir),
|
|
241
|
-
commonProps = {
|
|
242
|
-
role: "group",
|
|
243
|
-
dir: direction,
|
|
244
|
-
...toggleGroupProps
|
|
169
|
+
orientation: {
|
|
170
|
+
vertical: {
|
|
171
|
+
flexDirection: "column",
|
|
172
|
+
spaceDirection: "vertical"
|
|
245
173
|
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
174
|
+
horizontal: {
|
|
175
|
+
flexDirection: "row",
|
|
176
|
+
spaceDirection: "horizontal"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
defaultVariants: {
|
|
181
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
182
|
+
}
|
|
183
|
+
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
184
|
+
var { __scopeToggleGroup, disabled = !1, orientation = "horizontal", dir, rovingFocus = !0, loop = !0, unstyled = !1, size: sizeProp = "$true", sizeAdjust = 0, ...toggleGroupProps } = props, direction = useDirection(dir), commonProps = {
|
|
185
|
+
role: "group",
|
|
186
|
+
dir: direction,
|
|
187
|
+
...toggleGroupProps
|
|
188
|
+
}, adjustedSize = getVariableValue(getSize(sizeProp, {
|
|
189
|
+
shift: sizeAdjust
|
|
190
|
+
})), size = Math.round(adjustedSize * 0.45);
|
|
191
|
+
return /* @__PURE__ */ _jsx(ToggleGroupContext, {
|
|
192
|
+
scope: __scopeToggleGroup,
|
|
193
|
+
rovingFocus,
|
|
194
|
+
disabled,
|
|
195
|
+
size,
|
|
196
|
+
children: rovingFocus ? /* @__PURE__ */ _jsx(RovingFocusGroup, {
|
|
197
|
+
asChild: "except-style",
|
|
198
|
+
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
199
|
+
orientation,
|
|
200
|
+
dir: direction,
|
|
201
|
+
loop,
|
|
202
|
+
children: /* @__PURE__ */ _jsx(ToggleGroupImplElementFrame, {
|
|
271
203
|
"aria-orientation": orientation,
|
|
272
|
-
ref: forwardedRef,
|
|
273
204
|
orientation,
|
|
205
|
+
axis: orientation,
|
|
206
|
+
ref: forwardedRef,
|
|
274
207
|
"data-disabled": disabled ? "" : void 0,
|
|
275
208
|
unstyled,
|
|
276
209
|
...commonProps
|
|
277
210
|
})
|
|
278
|
-
})
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
211
|
+
}) : /* @__PURE__ */ _jsx(ToggleGroupImplElementFrame, {
|
|
212
|
+
"aria-orientation": orientation,
|
|
213
|
+
ref: forwardedRef,
|
|
214
|
+
orientation,
|
|
215
|
+
"data-disabled": disabled ? "" : void 0,
|
|
216
|
+
unstyled,
|
|
217
|
+
...commonProps
|
|
218
|
+
})
|
|
219
|
+
});
|
|
220
|
+
}));
|
|
221
|
+
export {
|
|
222
|
+
ToggleGroup
|
|
223
|
+
};
|
|
224
|
+
//# sourceMappingURL=ToggleGroup.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/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,eAIvB,EAAEC,UAAUC,yBAAyBC,kBAAkBC,0BAAyB,IACpFb,oBAAAA,GAEI,EAAEU,UAAUI,oBAAoBF,kBAAkBG,sBAAqB,IAC3Ef,oBAAAA,GAcIgB,kBAAkBV,YAAYW,YAClCb,sBAAMc,WACJ,SAACC,OAA0CC,cAAAA;AACzC,MAAM,EAAEC,mBAAmB,GAAGC,KAAAA,IAASH,OACjCI,eAAeC,2BAA2BL,MAAMM,kBAAkB,GAClEC,UAAUX,sBAAsBI,MAAMM,kBAAkB,GACxDE,UAAUJ,cAAcK,MAAMC,SAASV,MAAMS,KAAK,GAClDE,WAAWJ,QAAQI,YAAYX,MAAMW,YAAY,IACjDC,iBAAiBrC,aAAa;IAAEoC;EAAS,CAAA,GAClCX,aAAPa,QAAOb,cAAAA,MAAMa,UAAI,QAAVb,gBAAAA,SAAAA,cAAcO,QAAQM,MAE7BC,YAAiCd,MAAMe,WACzC,CAAC,IACD;IACEC,OAAOC;IACPC,QAAQD;IACRE,SAASrC,iB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C,IAAIC,qBAAqB;EAC7C;AACF,CAAA,GAUMpB,kBAAkBO,4BAA4B/E,YAClDb,sBAAMc,WACJ,SAACC,OAA0CC,cAAAA;AACzC,MAAM,EACJK,oBACAK,WAAW,IACXuE,cAAc,cACdS,KACAtD,cAAc,IACduD,OAAO,IACP7E,WAAW,IACXF,MAAMgF,WAAW,SACjBC,aAAa,GACb,GAAG3C,iBAAAA,IACDnD,OACE+F,YAAYnH,aAAa+G,GAAAA,GACzB5D,cAAoC;IACxCiE,MAAM;IACNL,KAAKI;IACL,GAAG5C;EACL,GACM8C,eAAenH,iBACnBT,QAAQwH,UAAU;IAChBK,OAAOJ;EACT,CAAA,CAAA,GAEIjF,OAAOsF,KAAKC,MAAMH,eAAe,IAAA;AAEvC,SACE,qBAACtG,oBAAAA;IACCyC,OAAO9B;IACP+B;IACA1B;IACAE;cAECwB,cACC,qBAAC3D,kBAAAA;MACC6D,SAAQ;MACRC,yBAAyBlC,sBAAsBhB;MAC/C4F;MACAS,KAAKI;MACLH;gBAEA,qBAACf,6BAAAA;QACCwB,oBAAkBnB;QAClBA;QACAoB,MAAMpB;QACNhD,KAAKjC;QACLsG,iBAAe5F,WAAW,KAAKM;QAC/BF;QACC,GAAGgB;;SAIR,qBAAC8C,6BAAAA;MACCwB,oBAAkBnB;MAClBhD,KAAKjC;MACLiF;MACAqB,iBAAe5F,WAAW,KAAKM;MAC/BF;MACC,GAAGgB;;;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", "Provider", "ToggleGroupItemProvider", "useStyledContext", "useToggleGroupItemContext", "ToggleGroupContext", "useToggleGroupContext", "ToggleGroupItem", "extractable", "forwardRef", "props", "forwardedRef", "disablePassStyles", "rest", "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", "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", "setValue", "prop", "defaultProp", "onChange", "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
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./ToggleGroup
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
export * from "./ToggleGroup";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toggle-group",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tamagui/constants": "1.113.
|
|
37
|
-
"@tamagui/create-context": "1.113.
|
|
38
|
-
"@tamagui/focusable": "1.113.
|
|
39
|
-
"@tamagui/font-size": "1.113.
|
|
40
|
-
"@tamagui/get-token": "1.113.
|
|
41
|
-
"@tamagui/group": "1.113.
|
|
42
|
-
"@tamagui/helpers": "1.113.
|
|
43
|
-
"@tamagui/helpers-tamagui": "1.113.
|
|
44
|
-
"@tamagui/roving-focus": "1.113.
|
|
45
|
-
"@tamagui/stacks": "1.113.
|
|
46
|
-
"@tamagui/use-controllable-state": "1.113.
|
|
47
|
-
"@tamagui/use-direction": "1.113.
|
|
48
|
-
"@tamagui/web": "1.113.
|
|
36
|
+
"@tamagui/constants": "1.113.2",
|
|
37
|
+
"@tamagui/create-context": "1.113.2",
|
|
38
|
+
"@tamagui/focusable": "1.113.2",
|
|
39
|
+
"@tamagui/font-size": "1.113.2",
|
|
40
|
+
"@tamagui/get-token": "1.113.2",
|
|
41
|
+
"@tamagui/group": "1.113.2",
|
|
42
|
+
"@tamagui/helpers": "1.113.2",
|
|
43
|
+
"@tamagui/helpers-tamagui": "1.113.2",
|
|
44
|
+
"@tamagui/roving-focus": "1.113.2",
|
|
45
|
+
"@tamagui/stacks": "1.113.2",
|
|
46
|
+
"@tamagui/use-controllable-state": "1.113.2",
|
|
47
|
+
"@tamagui/use-direction": "1.113.2",
|
|
48
|
+
"@tamagui/web": "1.113.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.113.
|
|
51
|
+
"@tamagui/build": "1.113.2",
|
|
52
52
|
"react": "^18.2.0 || ^19.0.0"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|