@tamagui/tabs 2.0.0-rc.8 → 2.0.0
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/StyledContext.cjs +12 -10
- package/dist/cjs/StyledContext.native.js +17 -15
- package/dist/cjs/StyledContext.native.js.map +1 -1
- package/dist/cjs/Tabs.cjs +63 -61
- package/dist/cjs/Tabs.native.js +63 -61
- package/dist/cjs/Tabs.native.js.map +1 -1
- package/dist/cjs/createTabs.cjs +247 -216
- package/dist/cjs/createTabs.native.js +259 -231
- package/dist/cjs/createTabs.native.js.map +1 -1
- package/dist/cjs/index.cjs +15 -13
- package/dist/cjs/index.native.js +15 -13
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Tabs.mjs +48 -48
- package/dist/esm/Tabs.mjs.map +1 -1
- package/dist/esm/Tabs.native.js +48 -48
- package/dist/esm/Tabs.native.js.map +1 -1
- package/dist/esm/createTabs.mjs +210 -181
- package/dist/esm/createTabs.mjs.map +1 -1
- package/dist/esm/createTabs.native.js +222 -196
- package/dist/esm/createTabs.native.js.map +1 -1
- package/dist/esm/index.js +5 -7
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/StyledContext.native.js +17 -15
- package/dist/jsx/Tabs.mjs +48 -48
- package/dist/jsx/Tabs.mjs.map +1 -1
- package/dist/jsx/Tabs.native.js +63 -61
- package/dist/jsx/Tabs.native.js.map +1 -1
- package/dist/jsx/createTabs.mjs +210 -181
- package/dist/jsx/createTabs.mjs.map +1 -1
- package/dist/jsx/createTabs.native.js +259 -231
- package/dist/jsx/createTabs.native.js.map +1 -1
- package/dist/jsx/index.js +5 -7
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +15 -13
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +21 -25
- package/src/createTabs.tsx +6 -1
- package/types/createTabs.d.ts +4 -4
- package/types/createTabs.d.ts.map +1 -1
- package/types/index.d.ts +4 -4
- package/dist/cjs/StyledContext.js +0 -23
- package/dist/cjs/StyledContext.js.map +0 -6
- package/dist/cjs/Tabs.js +0 -73
- package/dist/cjs/Tabs.js.map +0 -6
- package/dist/cjs/createTabs.js +0 -229
- package/dist/cjs/createTabs.js.map +0 -6
- package/dist/cjs/index.js +0 -28
- package/dist/cjs/index.js.map +0 -6
- package/dist/esm/StyledContext.js +0 -7
- package/dist/esm/StyledContext.js.map +0 -6
- package/dist/esm/Tabs.js +0 -59
- package/dist/esm/Tabs.js.map +0 -6
- package/dist/esm/createTabs.js +0 -217
- package/dist/esm/createTabs.js.map +0 -6
- package/dist/jsx/StyledContext.js +0 -7
- package/dist/jsx/StyledContext.js.map +0 -6
- package/dist/jsx/Tabs.js +0 -59
- package/dist/jsx/Tabs.js.map +0 -6
- package/dist/jsx/createTabs.js +0 -217
- package/dist/jsx/createTabs.js.map +0 -6
package/dist/cjs/createTabs.cjs
CHANGED
|
@@ -2,248 +2,279 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
6
|
-
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: true
|
|
33
|
+
}), mod);
|
|
32
34
|
var createTabs_exports = {};
|
|
33
35
|
__export(createTabs_exports, {
|
|
34
36
|
createTabs: () => createTabs
|
|
35
37
|
});
|
|
36
38
|
module.exports = __toCommonJS(createTabs_exports);
|
|
37
|
-
var import_compose_refs = require("@tamagui/compose-refs")
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
var import_compose_refs = require("@tamagui/compose-refs");
|
|
40
|
+
var import_constants = require("@tamagui/constants");
|
|
41
|
+
var import_group = require("@tamagui/group");
|
|
42
|
+
var import_helpers = require("@tamagui/helpers");
|
|
43
|
+
var import_roving_focus = require("@tamagui/roving-focus");
|
|
44
|
+
var import_sizable_context = require("@tamagui/sizable-context");
|
|
45
|
+
var import_use_controllable_state = require("@tamagui/use-controllable-state");
|
|
46
|
+
var import_use_direction = require("@tamagui/use-direction");
|
|
47
|
+
var import_web = require("@tamagui/web");
|
|
48
|
+
var React = __toESM(require("react"), 1);
|
|
49
|
+
var import_StyledContext = require("./StyledContext.cjs");
|
|
50
|
+
var import_Tabs = require("./Tabs.cjs");
|
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
52
|
function createTabs(createProps) {
|
|
51
53
|
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
54
|
+
ContentFrame = import_Tabs.DefaultTabsContentFrame,
|
|
55
|
+
TabFrame = import_Tabs.DefaultTabsTabFrame,
|
|
56
|
+
TabsFrame = import_Tabs.DefaultTabsFrame
|
|
57
|
+
} = createProps;
|
|
58
|
+
const TABS_CONTEXT = "TabsContext";
|
|
59
|
+
const TAB_LIST_NAME = "TabsList";
|
|
60
|
+
const TabsList = React.forwardRef((props, forwardedRef) => {
|
|
61
|
+
const {
|
|
62
|
+
__scopeTabs,
|
|
63
|
+
loop = true,
|
|
64
|
+
children,
|
|
65
|
+
...listProps
|
|
66
|
+
} = props;
|
|
67
|
+
const context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
68
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
69
|
+
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
70
|
+
orientation: context.orientation,
|
|
71
|
+
dir: context.dir,
|
|
72
|
+
loop,
|
|
73
|
+
asChild: true,
|
|
74
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_group.Group, {
|
|
75
|
+
role: "tablist",
|
|
76
|
+
componentName: TAB_LIST_NAME,
|
|
77
|
+
"aria-orientation": context.orientation,
|
|
78
|
+
ref: forwardedRef,
|
|
68
79
|
orientation: context.orientation,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_group.Group, {
|
|
73
|
-
role: "tablist",
|
|
74
|
-
componentName: TAB_LIST_NAME,
|
|
75
|
-
"aria-orientation": context.orientation,
|
|
76
|
-
ref: forwardedRef,
|
|
77
|
-
orientation: context.orientation,
|
|
78
|
-
...listProps,
|
|
79
|
-
children
|
|
80
|
-
})
|
|
81
|
-
});
|
|
80
|
+
...listProps,
|
|
81
|
+
children
|
|
82
|
+
})
|
|
82
83
|
});
|
|
84
|
+
});
|
|
83
85
|
TabsList.displayName = TAB_LIST_NAME;
|
|
84
|
-
const TRIGGER_NAME = "TabsTrigger"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
86
|
+
const TRIGGER_NAME = "TabsTrigger";
|
|
87
|
+
const TabsTrigger = TabFrame.styleable((props, forwardedRef) => {
|
|
88
|
+
const {
|
|
89
|
+
__scopeTabs,
|
|
90
|
+
value,
|
|
91
|
+
disabled = false,
|
|
92
|
+
onInteraction,
|
|
93
|
+
activeStyle,
|
|
94
|
+
activeTheme,
|
|
95
|
+
unstyled = false,
|
|
96
|
+
...triggerProps
|
|
97
|
+
} = props;
|
|
98
|
+
const context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
99
|
+
const triggerId = makeTriggerId(context.baseId, value);
|
|
100
|
+
const contentId = makeContentId(context.baseId, value);
|
|
101
|
+
const isSelected = value === context.value;
|
|
102
|
+
const [layout, setLayout] = React.useState(null);
|
|
103
|
+
const triggerRef = React.useRef(null);
|
|
104
|
+
const groupItemProps = (0, import_group.useGroupItem)({
|
|
105
|
+
disabled: !!disabled
|
|
106
|
+
});
|
|
107
|
+
React.useEffect(() => {
|
|
108
|
+
context.registerTrigger();
|
|
109
|
+
return () => context.unregisterTrigger();
|
|
110
|
+
}, []);
|
|
111
|
+
React.useEffect(() => {
|
|
112
|
+
if (!triggerRef.current || !import_constants.isWeb) return;
|
|
113
|
+
const el = triggerRef.current;
|
|
114
|
+
function getTriggerSize() {
|
|
115
|
+
if (!el) return;
|
|
116
|
+
setLayout({
|
|
117
|
+
width: el.offsetWidth,
|
|
118
|
+
height: el.offsetHeight,
|
|
119
|
+
x: el.offsetLeft,
|
|
120
|
+
y: el.offsetTop
|
|
104
121
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
122
|
+
}
|
|
123
|
+
getTriggerSize();
|
|
124
|
+
const observer = new ResizeObserver(getTriggerSize);
|
|
125
|
+
observer.observe(el);
|
|
126
|
+
return () => {
|
|
127
|
+
observer.disconnect();
|
|
128
|
+
};
|
|
129
|
+
}, [context.triggersCount]);
|
|
130
|
+
React.useEffect(() => {
|
|
131
|
+
if (isSelected && layout) {
|
|
132
|
+
onInteraction?.("select", layout);
|
|
133
|
+
}
|
|
134
|
+
}, [isSelected, value, layout]);
|
|
135
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup.Item, {
|
|
136
|
+
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
137
|
+
asChild: true,
|
|
138
|
+
focusable: !disabled,
|
|
139
|
+
active: isSelected,
|
|
140
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabFrame, {
|
|
141
|
+
...(!import_constants.isWeb && {
|
|
142
|
+
onLayout: event => {
|
|
143
|
+
setLayout(event.nativeEvent.layout);
|
|
144
|
+
}
|
|
145
|
+
}),
|
|
146
|
+
onMouseEnter: (0, import_helpers.composeEventHandlers)(props.onMouseEnter, () => {
|
|
147
|
+
if (layout) {
|
|
148
|
+
onInteraction?.("hover", layout);
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
onMouseLeave: (0, import_helpers.composeEventHandlers)(props.onMouseLeave, () => {
|
|
152
|
+
onInteraction?.("hover", null);
|
|
153
|
+
}),
|
|
154
|
+
role: "tab",
|
|
155
|
+
"aria-selected": isSelected,
|
|
156
|
+
"aria-controls": contentId,
|
|
157
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
158
|
+
"data-disabled": disabled ? "" : void 0,
|
|
159
|
+
id: triggerId,
|
|
160
|
+
theme: activeTheme ?? null,
|
|
161
|
+
unstyled,
|
|
162
|
+
...(!unstyled && {
|
|
163
|
+
size: context.size
|
|
164
|
+
}),
|
|
165
|
+
...(isSelected && {
|
|
166
|
+
...(!unstyled && !activeStyle && {
|
|
167
|
+
backgroundColor: "$backgroundActive"
|
|
145
168
|
}),
|
|
146
|
-
...
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
169
|
+
...activeStyle
|
|
170
|
+
}),
|
|
171
|
+
...groupItemProps,
|
|
172
|
+
disabled: disabled ?? groupItemProps.disabled,
|
|
173
|
+
...triggerProps,
|
|
174
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, triggerRef),
|
|
175
|
+
onPress: (0, import_helpers.composeEventHandlers)(props.onPress ?? void 0, event => {
|
|
176
|
+
const webChecks = !import_constants.isWeb || event.button === 0 && event.ctrlKey === false;
|
|
177
|
+
if (!disabled && !isSelected && webChecks) {
|
|
178
|
+
context.onChange(value);
|
|
179
|
+
}
|
|
180
|
+
}),
|
|
181
|
+
...(import_constants.isWeb && {
|
|
182
|
+
onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, event => {
|
|
183
|
+
if ([" ", "Enter"].includes(event.key)) {
|
|
184
|
+
context.onChange(value);
|
|
185
|
+
event.preventDefault();
|
|
186
|
+
}
|
|
151
187
|
}),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
188
|
+
onFocus: (0, import_helpers.composeEventHandlers)(props.onFocus, event => {
|
|
189
|
+
if (layout) {
|
|
190
|
+
onInteraction?.("focus", layout);
|
|
191
|
+
}
|
|
192
|
+
const isAutomaticActivation = context.activationMode !== "manual";
|
|
193
|
+
if (!isSelected && !disabled && isAutomaticActivation) {
|
|
194
|
+
context.onChange(value);
|
|
195
|
+
}
|
|
159
196
|
}),
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
[" ", "Enter"].includes(event.key) && (context.onChange(value), event.preventDefault());
|
|
163
|
-
}),
|
|
164
|
-
onFocus: (0, import_helpers.composeEventHandlers)(props.onFocus, event => {
|
|
165
|
-
layout && onInteraction?.("focus", layout);
|
|
166
|
-
const isAutomaticActivation = context.activationMode !== "manual";
|
|
167
|
-
!isSelected && !disabled && isAutomaticActivation && context.onChange(value);
|
|
168
|
-
}),
|
|
169
|
-
onBlur: (0, import_helpers.composeEventHandlers)(props.onBlur, () => {
|
|
170
|
-
onInteraction?.("focus", null);
|
|
171
|
-
})
|
|
197
|
+
onBlur: (0, import_helpers.composeEventHandlers)(props.onBlur, () => {
|
|
198
|
+
onInteraction?.("focus", null);
|
|
172
199
|
})
|
|
173
200
|
})
|
|
174
|
-
})
|
|
201
|
+
})
|
|
175
202
|
});
|
|
203
|
+
});
|
|
176
204
|
TabsTrigger.displayName = TRIGGER_NAME;
|
|
177
|
-
const TabsContent = ContentFrame.styleable(function (props, forwardedRef) {
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
205
|
+
const TabsContent = ContentFrame.styleable(function TabsContent2(props, forwardedRef) {
|
|
206
|
+
const {
|
|
207
|
+
__scopeTabs,
|
|
208
|
+
value,
|
|
209
|
+
forceMount,
|
|
210
|
+
children,
|
|
211
|
+
...contentProps
|
|
212
|
+
} = props;
|
|
213
|
+
const context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
214
|
+
const isSelected = value === context.value;
|
|
215
|
+
const show = forceMount || isSelected;
|
|
216
|
+
const triggerId = makeTriggerId(context.baseId, value);
|
|
217
|
+
const contentId = makeContentId(context.baseId, value);
|
|
218
|
+
if (!show) {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ContentFrame, {
|
|
222
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
223
|
+
"data-orientation": context.orientation,
|
|
224
|
+
role: "tabpanel",
|
|
225
|
+
"aria-labelledby": triggerId,
|
|
226
|
+
hidden: !show,
|
|
227
|
+
id: contentId,
|
|
228
|
+
tabIndex: 0,
|
|
229
|
+
...contentProps,
|
|
230
|
+
ref: forwardedRef,
|
|
231
|
+
children
|
|
232
|
+
}, value);
|
|
233
|
+
});
|
|
234
|
+
const TabsComponent = TabsFrame.styleable(function Tabs(props, forwardedRef) {
|
|
235
|
+
const {
|
|
236
|
+
__scopeTabs,
|
|
237
|
+
value: valueProp,
|
|
238
|
+
onValueChange,
|
|
239
|
+
defaultValue,
|
|
240
|
+
orientation = "horizontal",
|
|
241
|
+
dir,
|
|
242
|
+
activationMode = "manual",
|
|
243
|
+
size = "$true",
|
|
244
|
+
...tabsProps
|
|
245
|
+
} = props;
|
|
246
|
+
const direction = (0, import_use_direction.useDirection)(dir);
|
|
247
|
+
const [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
248
|
+
prop: valueProp,
|
|
249
|
+
onChange: onValueChange,
|
|
250
|
+
defaultProp: defaultValue ?? ""
|
|
251
|
+
});
|
|
252
|
+
const [triggersCount, setTriggersCount] = React.useState(0);
|
|
253
|
+
const registerTrigger = (0, import_web.useEvent)(() => setTriggersCount(v => v + 1));
|
|
254
|
+
const unregisterTrigger = (0, import_web.useEvent)(() => setTriggersCount(v => v - 1));
|
|
255
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_sizable_context.SizableContext.Provider, {
|
|
256
|
+
size,
|
|
257
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_StyledContext.TabsProvider, {
|
|
258
|
+
scope: __scopeTabs,
|
|
259
|
+
baseId: React.useId(),
|
|
260
|
+
value,
|
|
261
|
+
onChange: setValue,
|
|
262
|
+
orientation,
|
|
263
|
+
dir: direction,
|
|
264
|
+
activationMode,
|
|
225
265
|
size,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
orientation,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
size,
|
|
235
|
-
registerTrigger,
|
|
236
|
-
triggersCount,
|
|
237
|
-
unregisterTrigger,
|
|
238
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsFrame, {
|
|
239
|
-
direction,
|
|
240
|
-
"data-orientation": orientation,
|
|
241
|
-
...tabsProps,
|
|
242
|
-
ref: forwardedRef
|
|
243
|
-
})
|
|
266
|
+
registerTrigger,
|
|
267
|
+
triggersCount,
|
|
268
|
+
unregisterTrigger,
|
|
269
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(TabsFrame, {
|
|
270
|
+
direction,
|
|
271
|
+
"data-orientation": orientation,
|
|
272
|
+
...tabsProps,
|
|
273
|
+
ref: forwardedRef
|
|
244
274
|
})
|
|
245
|
-
})
|
|
275
|
+
})
|
|
246
276
|
});
|
|
277
|
+
});
|
|
247
278
|
return (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
248
279
|
List: TabsList,
|
|
249
280
|
/**
|