@tamagui/tabs-headless 2.7.7 → 3.0.0-beta.643.1
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/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/useTabs.cjs +114 -280
- package/dist/cjs/useTabs.native.cjs +150 -0
- package/dist/cjs/useTabs.native.js +124 -292
- package/dist/cjs/useTabs.native.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/index.native.js +1 -2
- package/dist/esm/useTabs.mjs +95 -254
- package/dist/esm/useTabs.mjs.map +1 -1
- package/dist/esm/useTabs.native.js +104 -266
- package/dist/esm/useTabs.native.js.map +1 -1
- package/dist/jsx/index.js +1 -2
- package/dist/jsx/index.mjs +1 -2
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/useTabs.mjs +95 -254
- package/dist/jsx/useTabs.mjs.map +1 -1
- package/dist/jsx/useTabs.native.cjs +150 -0
- package/dist/jsx/useTabs.native.js +124 -292
- package/dist/jsx/useTabs.native.js.map +1 -1
- package/package.json +5 -5
- package/src/useTabs.tsx +112 -296
- package/types/useTabs.d.ts +54 -75
- package/types/useTabs.d.ts.map +1 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
package/dist/esm/useTabs.mjs
CHANGED
|
@@ -1,265 +1,106 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isWeb } from "@tamagui/constants";
|
|
2
2
|
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
3
3
|
import { useDirection } from "@tamagui/use-direction";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
function makeTriggerId(baseId, value) {
|
|
7
|
+
return `${baseId}-trigger-${value}`;
|
|
8
|
+
}
|
|
9
|
+
function makeContentId(baseId, value) {
|
|
10
|
+
return `${baseId}-content-${value}`;
|
|
11
|
+
}
|
|
6
12
|
function useTabs(props = {}) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
tabRefs.current.delete(tabValue);
|
|
31
|
-
setTabValues(prev => prev.filter(v => v !== tabValue));
|
|
32
|
-
}
|
|
33
|
-
}, []);
|
|
34
|
-
const focusTab = useCallback(tabValue => {
|
|
35
|
-
const element = tabRefs.current.get(tabValue);
|
|
36
|
-
element?.focus();
|
|
37
|
-
}, []);
|
|
38
|
-
const getNextTab = useCallback((currentValue, direction2) => {
|
|
39
|
-
const currentIndex = tabValues.indexOf(currentValue);
|
|
40
|
-
if (currentIndex === -1) return null;
|
|
41
|
-
let nextIndex = currentIndex + direction2;
|
|
42
|
-
if (loop) {
|
|
43
|
-
nextIndex = (nextIndex + tabValues.length) % tabValues.length;
|
|
44
|
-
} else {
|
|
45
|
-
if (nextIndex < 0 || nextIndex >= tabValues.length) return null;
|
|
46
|
-
}
|
|
47
|
-
return tabValues[nextIndex] ?? null;
|
|
48
|
-
}, [tabValues, loop]);
|
|
49
|
-
const handleKeyDown = useCallback(tabValue => event => {
|
|
50
|
-
const isHorizontal = orientation === "horizontal";
|
|
51
|
-
const isRtl = direction === "rtl";
|
|
52
|
-
let nextTab = null;
|
|
53
|
-
switch (event.key) {
|
|
54
|
-
case "ArrowRight":
|
|
55
|
-
if (isHorizontal) {
|
|
56
|
-
nextTab = getNextTab(tabValue, isRtl ? -1 : 1);
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
case "ArrowLeft":
|
|
60
|
-
if (isHorizontal) {
|
|
61
|
-
nextTab = getNextTab(tabValue, isRtl ? 1 : -1);
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
case "ArrowDown":
|
|
65
|
-
if (!isHorizontal) {
|
|
66
|
-
nextTab = getNextTab(tabValue, 1);
|
|
67
|
-
}
|
|
68
|
-
break;
|
|
69
|
-
case "ArrowUp":
|
|
70
|
-
if (!isHorizontal) {
|
|
71
|
-
nextTab = getNextTab(tabValue, -1);
|
|
72
|
-
}
|
|
73
|
-
break;
|
|
74
|
-
case "Home":
|
|
75
|
-
nextTab = tabValues[0] ?? null;
|
|
76
|
-
break;
|
|
77
|
-
case "End":
|
|
78
|
-
nextTab = tabValues[tabValues.length - 1] ?? null;
|
|
79
|
-
break;
|
|
80
|
-
case " ":
|
|
81
|
-
case "Enter":
|
|
82
|
-
if (activationMode === "manual") {
|
|
83
|
-
setValue(tabValue);
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
}
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (nextTab) {
|
|
89
|
-
event.preventDefault();
|
|
90
|
-
focusTab(nextTab);
|
|
91
|
-
if (activationMode === "automatic") {
|
|
92
|
-
setValue(nextTab);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, [orientation, direction, getNextTab, tabValues, activationMode, setValue, focusTab]);
|
|
96
|
-
const getTabProps = useCallback((tabValue, disabled) => {
|
|
97
|
-
const isSelected = value === tabValue;
|
|
98
|
-
const triggerId = makeTriggerId(baseId, tabValue);
|
|
99
|
-
const contentId = makeContentId(baseId, tabValue);
|
|
100
|
-
return {
|
|
101
|
-
role: "tab",
|
|
102
|
-
id: triggerId,
|
|
103
|
-
"aria-selected": isSelected,
|
|
104
|
-
"aria-controls": contentId,
|
|
105
|
-
"data-state": isSelected ? "active" : "inactive",
|
|
106
|
-
...(disabled && {
|
|
107
|
-
"data-disabled": ""
|
|
108
|
-
}),
|
|
109
|
-
disabled,
|
|
110
|
-
tabIndex: isSelected ? 0 : -1,
|
|
111
|
-
onKeyDown: disabled ? () => {} : handleKeyDown(tabValue),
|
|
112
|
-
onClick: event => {
|
|
113
|
-
if (!disabled && !isSelected) {
|
|
114
|
-
setValue(tabValue);
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
onFocus: event => {
|
|
118
|
-
registerTab(tabValue, event.currentTarget);
|
|
119
|
-
if (!disabled && !isSelected && activationMode === "automatic") {
|
|
120
|
-
setValue(tabValue);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}, [value, baseId, handleKeyDown, setValue, activationMode, registerTab]);
|
|
125
|
-
const getContentProps = useCallback(tabValue => {
|
|
126
|
-
const isSelected = value === tabValue;
|
|
127
|
-
const triggerId = makeTriggerId(baseId, tabValue);
|
|
128
|
-
const contentId = makeContentId(baseId, tabValue);
|
|
129
|
-
return {
|
|
130
|
-
role: "tabpanel",
|
|
131
|
-
id: contentId,
|
|
132
|
-
"aria-labelledby": triggerId,
|
|
133
|
-
"data-state": isSelected ? "active" : "inactive",
|
|
134
|
-
"data-orientation": orientation,
|
|
135
|
-
hidden: !isSelected,
|
|
136
|
-
tabIndex: 0
|
|
137
|
-
};
|
|
138
|
-
}, [value, baseId, orientation]);
|
|
139
|
-
const contextValue = {
|
|
140
|
-
baseId,
|
|
141
|
-
value,
|
|
142
|
-
setValue,
|
|
143
|
-
orientation,
|
|
144
|
-
direction,
|
|
145
|
-
activationMode,
|
|
146
|
-
loop
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
value,
|
|
150
|
-
setValue,
|
|
151
|
-
direction,
|
|
152
|
-
tabsProps: {
|
|
153
|
-
"data-orientation": orientation,
|
|
154
|
-
dir: direction
|
|
155
|
-
},
|
|
156
|
-
listProps: {
|
|
157
|
-
role: "tablist",
|
|
158
|
-
"aria-orientation": orientation
|
|
159
|
-
},
|
|
160
|
-
getTabProps,
|
|
161
|
-
getContentProps,
|
|
162
|
-
contextValue
|
|
163
|
-
};
|
|
13
|
+
const { value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic" } = props;
|
|
14
|
+
const direction = useDirection(dir);
|
|
15
|
+
const baseId = React.useId();
|
|
16
|
+
const [value, setValue] = useControllableState({
|
|
17
|
+
prop: valueProp,
|
|
18
|
+
onChange: onValueChange,
|
|
19
|
+
defaultProp: defaultValue ?? ""
|
|
20
|
+
});
|
|
21
|
+
const [triggersCount, setTriggersCount] = React.useState(0);
|
|
22
|
+
const registerTrigger = React.useCallback(() => setTriggersCount((count) => count + 1), []);
|
|
23
|
+
const unregisterTrigger = React.useCallback(() => setTriggersCount((count) => count - 1), []);
|
|
24
|
+
return {
|
|
25
|
+
value,
|
|
26
|
+
setValue,
|
|
27
|
+
baseId,
|
|
28
|
+
direction,
|
|
29
|
+
orientation,
|
|
30
|
+
activationMode,
|
|
31
|
+
triggersCount,
|
|
32
|
+
registerTrigger,
|
|
33
|
+
unregisterTrigger,
|
|
34
|
+
tabsProps: { "data-orientation": orientation }
|
|
35
|
+
};
|
|
164
36
|
}
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
37
|
+
function useTabsList(props) {
|
|
38
|
+
const { orientation = "horizontal", disabled = false } = props;
|
|
39
|
+
return { listProps: {
|
|
40
|
+
role: "tablist",
|
|
41
|
+
"aria-orientation": orientation,
|
|
42
|
+
"aria-disabled": disabled || void 0,
|
|
43
|
+
"data-orientation": orientation,
|
|
44
|
+
"data-disabled": disabled ? "" : void 0
|
|
45
|
+
} };
|
|
173
46
|
}
|
|
174
47
|
function useTab(props) {
|
|
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
|
-
if ([" ", "Enter"].includes(event.key)) {
|
|
213
|
-
setValue(tabValue);
|
|
214
|
-
event.preventDefault();
|
|
215
|
-
}
|
|
216
|
-
}),
|
|
217
|
-
onPress: composeEventHandlers(onPress, () => {
|
|
218
|
-
if (!disabled && !isSelected) {
|
|
219
|
-
setValue(tabValue);
|
|
220
|
-
}
|
|
221
|
-
}),
|
|
222
|
-
onFocus: composeEventHandlers(onFocus, () => {
|
|
223
|
-
if (!disabled && !isSelected && activationMode === "automatic") {
|
|
224
|
-
setValue(tabValue);
|
|
225
|
-
}
|
|
226
|
-
})
|
|
227
|
-
}
|
|
228
|
-
};
|
|
48
|
+
const { baseId, value, selectedValue, disabled = false, activationMode = "automatic", onChange } = props;
|
|
49
|
+
const isSelected = value === selectedValue;
|
|
50
|
+
const triggerId = makeTriggerId(baseId, value);
|
|
51
|
+
const contentId = makeContentId(baseId, value);
|
|
52
|
+
return {
|
|
53
|
+
isSelected,
|
|
54
|
+
triggerId,
|
|
55
|
+
contentId,
|
|
56
|
+
tabProps: {
|
|
57
|
+
role: "tab",
|
|
58
|
+
id: triggerId,
|
|
59
|
+
"aria-selected": isSelected,
|
|
60
|
+
"aria-controls": contentId,
|
|
61
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
62
|
+
"data-disabled": disabled ? "" : void 0,
|
|
63
|
+
disabled,
|
|
64
|
+
onPress: (event) => {
|
|
65
|
+
const isPrimaryPointer = !isWeb || event?.button === 0 && event?.ctrlKey === false;
|
|
66
|
+
if (!disabled && !isSelected && isPrimaryPointer) {
|
|
67
|
+
onChange(value);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
...isWeb && {
|
|
71
|
+
onKeyDown: (event) => {
|
|
72
|
+
if (!disabled && [" ", "Enter"].includes(event.key)) {
|
|
73
|
+
onChange(value);
|
|
74
|
+
event.preventDefault();
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
onFocus: () => {
|
|
78
|
+
if (!isSelected && !disabled && activationMode !== "manual") {
|
|
79
|
+
onChange(value);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
229
85
|
}
|
|
230
86
|
function useTabContent(props) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
contentProps: {
|
|
248
|
-
role: "tabpanel",
|
|
249
|
-
id: contentId,
|
|
250
|
-
"aria-labelledby": triggerId,
|
|
251
|
-
"data-state": isSelected ? "active" : "inactive",
|
|
252
|
-
"data-orientation": orientation,
|
|
253
|
-
hidden: !isSelected,
|
|
254
|
-
tabIndex: 0
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
function makeTriggerId(baseId, value) {
|
|
259
|
-
return `${baseId}-trigger-${value}`;
|
|
260
|
-
}
|
|
261
|
-
function makeContentId(baseId, value) {
|
|
262
|
-
return `${baseId}-content-${value}`;
|
|
87
|
+
const { baseId, value, selectedValue, orientation = "horizontal", forceMount } = props;
|
|
88
|
+
const isSelected = value === selectedValue;
|
|
89
|
+
const shouldMount = Boolean(forceMount) || isSelected;
|
|
90
|
+
return {
|
|
91
|
+
isSelected,
|
|
92
|
+
shouldMount,
|
|
93
|
+
contentProps: {
|
|
94
|
+
role: "tabpanel",
|
|
95
|
+
id: makeContentId(baseId, value),
|
|
96
|
+
"aria-labelledby": makeTriggerId(baseId, value),
|
|
97
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
98
|
+
"data-orientation": orientation,
|
|
99
|
+
hidden: !shouldMount,
|
|
100
|
+
tabIndex: 0
|
|
101
|
+
}
|
|
102
|
+
};
|
|
263
103
|
}
|
|
264
|
-
|
|
104
|
+
|
|
105
|
+
export { makeContentId, makeTriggerId, useTab, useTabContent, useTabs, useTabsList };
|
|
265
106
|
//# sourceMappingURL=useTabs.mjs.map
|
package/dist/esm/useTabs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useTabs.js","names":[],"sources":["esm/useTabs.js"],"sourcesContent":["import { isWeb } from \"@tamagui/constants\";\nimport { useControllableState } from \"@tamagui/use-controllable-state\";\nimport { useDirection } from \"@tamagui/use-direction\";\nimport * as React from \"react\";\nfunction makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nfunction useTabs(props = {}) {\n const {\n value: valueProp,\n onValueChange,\n defaultValue,\n orientation = \"horizontal\",\n dir,\n activationMode = \"automatic\"\n } = props;\n const direction = useDirection(dir);\n const baseId = React.useId();\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue ?? \"\"\n });\n const [triggersCount, setTriggersCount] = React.useState(0);\n const registerTrigger = React.useCallback(\n () => setTriggersCount((count) => count + 1),\n []\n );\n const unregisterTrigger = React.useCallback(\n () => setTriggersCount((count) => count - 1),\n []\n );\n return {\n value,\n setValue,\n baseId,\n direction,\n orientation,\n activationMode,\n triggersCount,\n registerTrigger,\n unregisterTrigger,\n tabsProps: {\n \"data-orientation\": orientation\n }\n };\n}\nfunction useTabsList(props) {\n const { orientation = \"horizontal\", disabled = false } = props;\n return {\n listProps: {\n role: \"tablist\",\n \"aria-orientation\": orientation,\n \"aria-disabled\": disabled || void 0,\n \"data-orientation\": orientation,\n \"data-disabled\": disabled ? \"\" : void 0\n }\n };\n}\nfunction useTab(props) {\n const {\n baseId,\n value,\n selectedValue,\n disabled = false,\n activationMode = \"automatic\",\n onChange\n } = props;\n const isSelected = value === selectedValue;\n const triggerId = makeTriggerId(baseId, value);\n const contentId = makeContentId(baseId, value);\n return {\n isSelected,\n triggerId,\n contentId,\n tabProps: {\n role: \"tab\",\n id: triggerId,\n \"aria-selected\": isSelected,\n \"aria-controls\": contentId,\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n onPress: (event) => {\n const isPrimaryPointer = !isWeb || event?.button === 0 && event?.ctrlKey === false;\n if (!disabled && !isSelected && isPrimaryPointer) {\n onChange(value);\n }\n },\n ...isWeb && {\n onKeyDown: (event) => {\n if (!disabled && [\" \", \"Enter\"].includes(event.key)) {\n onChange(value);\n event.preventDefault();\n }\n },\n onFocus: () => {\n if (!isSelected && !disabled && activationMode !== \"manual\") {\n onChange(value);\n }\n }\n }\n }\n };\n}\nfunction useTabContent(props) {\n const { baseId, value, selectedValue, orientation = \"horizontal\", forceMount } = props;\n const isSelected = value === selectedValue;\n const shouldMount = Boolean(forceMount) || isSelected;\n return {\n isSelected,\n shouldMount,\n contentProps: {\n role: \"tabpanel\",\n id: makeContentId(baseId, value),\n \"aria-labelledby\": makeTriggerId(baseId, value),\n \"data-state\": isSelected ? \"active\" : \"inactive\",\n \"data-orientation\": orientation,\n hidden: !shouldMount,\n tabIndex: 0\n }\n };\n}\nexport {\n makeContentId,\n makeTriggerId,\n useTab,\n useTabContent,\n useTabs,\n useTabsList\n};\n//# sourceMappingURL=useTabs.js.map\n"],"mappings":";;;;;;AAIA,SA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