@tamagui/group 1.14.0 → 1.14.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.
- package/dist/cjs/Group.js +261 -1
- package/dist/cjs/Group.js.map +2 -2
- package/dist/cjs/index.js +18 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/Group.js +234 -1
- package/dist/esm/Group.js.map +2 -2
- package/dist/esm/Group.mjs +234 -1
- package/dist/esm/Group.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/jsx/Group.js +220 -1
- package/dist/jsx/Group.js.map +2 -2
- package/dist/jsx/Group.mjs +220 -1
- package/dist/jsx/Group.mjs.map +2 -2
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/cjs/Group.js
CHANGED
|
@@ -1,2 +1,262 @@
|
|
|
1
|
-
"use strict";
|
|
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;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var Group_exports = {};
|
|
30
|
+
__export(Group_exports, {
|
|
31
|
+
Group: () => Group,
|
|
32
|
+
GroupFrame: () => GroupFrame,
|
|
33
|
+
XGroup: () => XGroup,
|
|
34
|
+
YGroup: () => YGroup,
|
|
35
|
+
useGroupItem: () => useGroupItem
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(Group_exports);
|
|
38
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
+
var import_core = require("@tamagui/core");
|
|
40
|
+
var import_create_context = require("@tamagui/create-context");
|
|
41
|
+
var import_stacks = require("@tamagui/stacks");
|
|
42
|
+
var import_use_controllable_state = require("@tamagui/use-controllable-state");
|
|
43
|
+
var import_react = __toESM(require("react"));
|
|
44
|
+
var import_react_native = require("react-native");
|
|
45
|
+
var import_reforest = require("reforest");
|
|
46
|
+
const GROUP_NAME = "Group";
|
|
47
|
+
const [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME);
|
|
48
|
+
const [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
49
|
+
const GroupFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
50
|
+
name: "GroupFrame",
|
|
51
|
+
variants: {
|
|
52
|
+
unstyled: {
|
|
53
|
+
false: {
|
|
54
|
+
size: "$true",
|
|
55
|
+
y: 0,
|
|
56
|
+
backgroundColor: "$background"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
size: (val, { tokens }) => {
|
|
60
|
+
const borderRadius = tokens.radius[val] ?? val ?? tokens.radius["$true"];
|
|
61
|
+
return {
|
|
62
|
+
borderRadius
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
defaultVariants: {
|
|
67
|
+
unstyled: false
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function createGroup(verticalDefault) {
|
|
71
|
+
return (0, import_core.withStaticProperties)(
|
|
72
|
+
(0, import_react.forwardRef)((props, ref) => {
|
|
73
|
+
const activeProps = (0, import_core.useMediaPropsActive)(props);
|
|
74
|
+
const {
|
|
75
|
+
__scopeGroup,
|
|
76
|
+
children: childrenProp,
|
|
77
|
+
space,
|
|
78
|
+
size = "$true",
|
|
79
|
+
spaceDirection,
|
|
80
|
+
separator,
|
|
81
|
+
scrollable,
|
|
82
|
+
axis = verticalDefault ? "vertical" : "horizontal",
|
|
83
|
+
orientation = axis,
|
|
84
|
+
disabled: disabledProp,
|
|
85
|
+
disablePassBorderRadius: disablePassBorderRadiusProp,
|
|
86
|
+
borderRadius,
|
|
87
|
+
forceUseItem,
|
|
88
|
+
...restProps
|
|
89
|
+
} = (0, import_core.getExpandedShorthands)(activeProps);
|
|
90
|
+
const vertical = orientation === "vertical";
|
|
91
|
+
const [itemChildrenCount, setItemChildrenCount] = (0, import_use_controllable_state.useControllableState)({
|
|
92
|
+
defaultProp: forceUseItem ? 1 : 0
|
|
93
|
+
});
|
|
94
|
+
const isUsingItems = true;
|
|
95
|
+
const radius = borderRadius ?? (size ? (0, import_core.getVariableValue)((0, import_core.getTokens)().radius[size]) - 1 : void 0);
|
|
96
|
+
const hasRadius = radius !== void 0;
|
|
97
|
+
const disablePassBorderRadius = disablePassBorderRadiusProp ?? !hasRadius;
|
|
98
|
+
if (!isUsingItems)
|
|
99
|
+
console.log("screw up!");
|
|
100
|
+
const childrenArray = import_react.Children.toArray(childrenProp);
|
|
101
|
+
const children = isUsingItems ? childrenProp : childrenArray.map((child, i) => {
|
|
102
|
+
if (!(0, import_react.isValidElement)(child)) {
|
|
103
|
+
return child;
|
|
104
|
+
}
|
|
105
|
+
const disabled = child.props.disabled ?? disabledProp;
|
|
106
|
+
const isFirst = i === 0;
|
|
107
|
+
const isLast = i === childrenArray.length - 1;
|
|
108
|
+
const radiusStyles = disablePassBorderRadius === true ? null : getBorderRadius({
|
|
109
|
+
isFirst,
|
|
110
|
+
isLast,
|
|
111
|
+
radius,
|
|
112
|
+
vertical,
|
|
113
|
+
disable: disablePassBorderRadius
|
|
114
|
+
});
|
|
115
|
+
const props2 = {
|
|
116
|
+
disabled,
|
|
117
|
+
...(0, import_core.isTamaguiElement)(child) ? radiusStyles : { style: radiusStyles }
|
|
118
|
+
};
|
|
119
|
+
return cloneElementWithPropOrder(child, props2);
|
|
120
|
+
});
|
|
121
|
+
const indexedChildren = (0, import_reforest.useIndexedChildren)(
|
|
122
|
+
(0, import_core.spacedChildren)({
|
|
123
|
+
direction: spaceDirection,
|
|
124
|
+
separator,
|
|
125
|
+
space,
|
|
126
|
+
children
|
|
127
|
+
})
|
|
128
|
+
);
|
|
129
|
+
const onItemMount = import_react.default.useCallback(
|
|
130
|
+
() => setItemChildrenCount((prev) => prev + 1),
|
|
131
|
+
[]
|
|
132
|
+
);
|
|
133
|
+
const onItemUnmount = import_react.default.useCallback(
|
|
134
|
+
() => setItemChildrenCount((prev) => prev - 1),
|
|
135
|
+
[]
|
|
136
|
+
);
|
|
137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
|
+
GroupProvider,
|
|
139
|
+
{
|
|
140
|
+
disablePassBorderRadius,
|
|
141
|
+
vertical: orientation === "vertical",
|
|
142
|
+
radius,
|
|
143
|
+
disabled: disabledProp,
|
|
144
|
+
onItemMount,
|
|
145
|
+
onItemUnmount,
|
|
146
|
+
scope: __scopeGroup,
|
|
147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
|
+
GroupFrame,
|
|
149
|
+
{
|
|
150
|
+
ref,
|
|
151
|
+
size,
|
|
152
|
+
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
153
|
+
borderRadius,
|
|
154
|
+
...restProps,
|
|
155
|
+
children: wrapScroll({ ...activeProps, orientation }, indexedChildren)
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}),
|
|
161
|
+
{
|
|
162
|
+
Item: GroupItem
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
const GroupItem = (props) => {
|
|
167
|
+
var _a;
|
|
168
|
+
const { __scopeGroup, children } = props;
|
|
169
|
+
const groupItemProps = useGroupItem(
|
|
170
|
+
{ disabled: (0, import_react.isValidElement)(children) ? children.props.disabled : void 0 },
|
|
171
|
+
__scopeGroup
|
|
172
|
+
);
|
|
173
|
+
if (!(0, import_react.isValidElement)(children)) {
|
|
174
|
+
return children;
|
|
175
|
+
}
|
|
176
|
+
if ((0, import_core.isTamaguiElement)(children)) {
|
|
177
|
+
return import_react.default.cloneElement(children, groupItemProps);
|
|
178
|
+
}
|
|
179
|
+
return import_react.default.cloneElement(children, {
|
|
180
|
+
style: {
|
|
181
|
+
...(_a = children.props) == null ? void 0 : _a["style"],
|
|
182
|
+
...groupItemProps
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
const useGroupItem = (childrenProps, __scopeGroup) => {
|
|
187
|
+
const treeIndex = (0, import_reforest.useIndex)();
|
|
188
|
+
const context = useGroupContext("GroupItem", __scopeGroup);
|
|
189
|
+
import_react.default.useEffect(() => {
|
|
190
|
+
context.onItemMount();
|
|
191
|
+
return () => {
|
|
192
|
+
context.onItemUnmount();
|
|
193
|
+
};
|
|
194
|
+
}, []);
|
|
195
|
+
if (!treeIndex) {
|
|
196
|
+
throw Error("<Group.Item/> should only be used within a <Group/>");
|
|
197
|
+
}
|
|
198
|
+
const isFirst = treeIndex.index === 0;
|
|
199
|
+
const isLast = treeIndex.index === treeIndex.maxIndex;
|
|
200
|
+
const disabled = childrenProps.disabled ?? context.disabled;
|
|
201
|
+
let propsToPass = {
|
|
202
|
+
disabled
|
|
203
|
+
};
|
|
204
|
+
if (context.disablePassBorderRadius !== true) {
|
|
205
|
+
const borderRadius = getBorderRadius({
|
|
206
|
+
radius: context.radius,
|
|
207
|
+
isFirst,
|
|
208
|
+
isLast,
|
|
209
|
+
vertical: context.vertical,
|
|
210
|
+
disable: context.disablePassBorderRadius
|
|
211
|
+
});
|
|
212
|
+
return { ...propsToPass, ...borderRadius };
|
|
213
|
+
}
|
|
214
|
+
return propsToPass;
|
|
215
|
+
};
|
|
216
|
+
const Group = createGroup(true);
|
|
217
|
+
const YGroup = Group;
|
|
218
|
+
const XGroup = createGroup(false);
|
|
219
|
+
const wrapScroll = ({ scrollable, orientation, showScrollIndicator = false }, children) => {
|
|
220
|
+
if (scrollable)
|
|
221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
222
|
+
import_react_native.ScrollView,
|
|
223
|
+
{
|
|
224
|
+
...orientation === "vertical" && {
|
|
225
|
+
showsVerticalScrollIndicator: showScrollIndicator
|
|
226
|
+
},
|
|
227
|
+
...orientation === "horizontal" && {
|
|
228
|
+
horizontal: true,
|
|
229
|
+
showsHorizontalScrollIndicator: showScrollIndicator
|
|
230
|
+
},
|
|
231
|
+
children
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
return children;
|
|
235
|
+
};
|
|
236
|
+
const getBorderRadius = ({
|
|
237
|
+
isFirst,
|
|
238
|
+
isLast,
|
|
239
|
+
radius,
|
|
240
|
+
vertical,
|
|
241
|
+
disable
|
|
242
|
+
}) => {
|
|
243
|
+
return {
|
|
244
|
+
borderTopLeftRadius: isFirst && disable !== "top" && disable !== "start" ? radius : 0,
|
|
245
|
+
borderTopRightRadius: disable !== "top" && disable !== "end" && (vertical && isFirst || !vertical && isLast) ? radius : 0,
|
|
246
|
+
borderBottomLeftRadius: disable !== "bottom" && disable !== "start" && (vertical && isLast || !vertical && isFirst) ? radius : 0,
|
|
247
|
+
borderBottomRightRadius: isLast && disable !== "bottom" && disable !== "end" ? radius : 0
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
const cloneElementWithPropOrder = (child, props) => {
|
|
251
|
+
const next = (0, import_core.mergeProps)(child.props, props, false, (0, import_core.getConfig)().shorthands)[0];
|
|
252
|
+
return import_react.default.cloneElement({ ...child, props: null }, next);
|
|
253
|
+
};
|
|
254
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
255
|
+
0 && (module.exports = {
|
|
256
|
+
Group,
|
|
257
|
+
GroupFrame,
|
|
258
|
+
XGroup,
|
|
259
|
+
YGroup,
|
|
260
|
+
useGroupItem
|
|
261
|
+
});
|
|
2
262
|
//# sourceMappingURL=Group.js.map
|
package/dist/cjs/Group.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Group.tsx"],
|
|
4
4
|
"sourcesContent": ["import {\n GetProps,\n TamaguiElement,\n UnionableString,\n Variable,\n getConfig,\n getExpandedShorthands,\n getTokens,\n getVariableValue,\n isTamaguiElement,\n mergeProps,\n spacedChildren,\n styled,\n useMediaPropsActive,\n withStaticProperties,\n} from '@tamagui/core'\nimport { Scope, createContextScope } from '@tamagui/create-context'\nimport { ThemeableStack } from '@tamagui/stacks'\nimport { useControllableState } from '@tamagui/use-controllable-state'\nimport React, { Children, forwardRef, isValidElement } from 'react'\nimport { ScrollView } from 'react-native'\nimport { useIndex, useIndexedChildren } from 'reforest'\n\ntype DisablePassBorderRadius = boolean | 'bottom' | 'top' | 'start' | 'end'\n\ninterface GroupContextValue {\n vertical: boolean\n disablePassBorderRadius: DisablePassBorderRadius\n onItemMount: () => void\n onItemUnmount: () => void\n radius?: number | UnionableString | Variable<any>\n disabled?: boolean\n}\n\nconst GROUP_NAME = 'Group'\n\ntype ScopedProps<P> = P & { __scopeGroup?: Scope }\nconst [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME)\nconst [GroupProvider, useGroupContext] = createGroupContext<GroupContextValue>(GROUP_NAME)\n\nexport const GroupFrame = styled(ThemeableStack, {\n name: 'GroupFrame',\n\n variants: {\n unstyled: {\n false: {\n size: '$true',\n y: 0,\n backgroundColor: '$background',\n },\n },\n\n size: (val, { tokens }) => {\n const borderRadius = tokens.radius[val] ?? val ?? tokens.radius['$true']\n return {\n borderRadius,\n }\n },\n } as const,\n\n defaultVariants: {\n unstyled: false,\n },\n})\n\nexport type GroupProps = GetProps<typeof GroupFrame> & {\n /**\n * @deprecated use `orientation` instead\n */\n axis?: 'horizontal' | 'vertical'\n orientation?: 'horizontal' | 'vertical'\n scrollable?: boolean\n /**\n * @default false\n */\n showScrollIndicator?: boolean\n disabled?: boolean\n disablePassBorderRadius?: DisablePassBorderRadius\n /**\n * forces the group to use the Group.Item API\n */\n forceUseItem?: boolean\n}\n\nfunction createGroup(verticalDefault: boolean) {\n return withStaticProperties(\n forwardRef<TamaguiElement, ScopedProps<GroupProps>>((props, ref) => {\n const activeProps = useMediaPropsActive(props)\n\n const {\n __scopeGroup,\n children: childrenProp,\n space,\n size = '$true',\n spaceDirection,\n separator,\n scrollable,\n axis = verticalDefault ? 'vertical' : 'horizontal',\n orientation = axis,\n disabled: disabledProp,\n disablePassBorderRadius: disablePassBorderRadiusProp,\n borderRadius,\n forceUseItem,\n ...restProps\n } = getExpandedShorthands(activeProps)\n\n const vertical = orientation === 'vertical'\n const [itemChildrenCount, setItemChildrenCount] = useControllableState({\n defaultProp: forceUseItem ? 1 : 0,\n })\n const isUsingItems = true // itemChildrenCount > 0\n\n // 1 off given border to adjust for border radius? This should be user controllable\n const radius =\n borderRadius ??\n (size ? getVariableValue(getTokens().radius[size]) - 1 : undefined)\n\n const hasRadius = radius !== undefined\n const disablePassBorderRadius = disablePassBorderRadiusProp ?? !hasRadius\n\n if (!isUsingItems) console.log('screw up!')\n const childrenArray = Children.toArray(childrenProp)\n const children = isUsingItems\n ? childrenProp\n : childrenArray.map((child, i) => {\n if (!isValidElement(child)) {\n return child\n }\n const disabled = child.props.disabled ?? disabledProp\n\n const isFirst = i === 0\n const isLast = i === childrenArray.length - 1\n\n const radiusStyles =\n disablePassBorderRadius === true\n ? null\n : getBorderRadius({\n isFirst,\n isLast,\n radius,\n vertical,\n disable: disablePassBorderRadius,\n })\n const props = {\n disabled,\n ...(isTamaguiElement(child) ? radiusStyles : { style: radiusStyles }),\n }\n\n return cloneElementWithPropOrder(child, props)\n })\n\n const indexedChildren = useIndexedChildren(\n spacedChildren({\n direction: spaceDirection,\n separator,\n space,\n children,\n })\n )\n\n const onItemMount = React.useCallback(\n () => setItemChildrenCount((prev) => prev + 1),\n []\n )\n const onItemUnmount = React.useCallback(\n () => setItemChildrenCount((prev) => prev - 1),\n []\n )\n\n return (\n <GroupProvider\n disablePassBorderRadius={disablePassBorderRadius}\n vertical={orientation === 'vertical'}\n radius={radius}\n disabled={disabledProp}\n onItemMount={onItemMount}\n onItemUnmount={onItemUnmount}\n scope={__scopeGroup}\n >\n <GroupFrame\n ref={ref}\n size={size}\n flexDirection={orientation === 'horizontal' ? 'row' : 'column'}\n borderRadius={borderRadius}\n {...restProps}\n >\n {wrapScroll({ ...activeProps, orientation }, indexedChildren)}\n </GroupFrame>\n </GroupProvider>\n )\n }),\n {\n Item: GroupItem,\n }\n )\n}\n\nconst GroupItem = (props: ScopedProps<{ children: React.ReactNode }>) => {\n const { __scopeGroup, children } = props\n const groupItemProps = useGroupItem(\n { disabled: isValidElement(children) ? children.props.disabled : undefined },\n __scopeGroup\n )\n\n if (!isValidElement(children)) {\n return children as any\n }\n\n if (isTamaguiElement(children)) {\n return React.cloneElement(children, groupItemProps)\n }\n\n return React.cloneElement(children, {\n style: {\n ...children.props?.['style'],\n ...groupItemProps,\n },\n } as any)\n}\n\nexport const useGroupItem = (\n childrenProps: { disabled: boolean },\n __scopeGroup?: Scope\n) => {\n const treeIndex = useIndex()\n const context = useGroupContext('GroupItem', __scopeGroup)\n\n React.useEffect(() => {\n context.onItemMount()\n return () => {\n context.onItemUnmount()\n }\n }, [])\n\n if (!treeIndex) {\n throw Error('<Group.Item/> should only be used within a <Group/>')\n }\n\n const isFirst = treeIndex.index === 0\n const isLast = treeIndex.index === treeIndex.maxIndex\n\n const disabled = childrenProps.disabled ?? context.disabled\n\n let propsToPass: Record<string, any> = {\n disabled,\n }\n\n if (context.disablePassBorderRadius !== true) {\n const borderRadius = getBorderRadius({\n radius: context.radius,\n isFirst,\n isLast,\n vertical: context.vertical,\n disable: context.disablePassBorderRadius,\n })\n return { ...propsToPass, ...borderRadius }\n }\n return propsToPass\n}\n\nexport const Group = createGroup(true)\nexport const YGroup = Group\nexport const XGroup = createGroup(false)\n\nconst wrapScroll = (\n { scrollable, orientation, showScrollIndicator = false }: GroupProps,\n children: any\n) => {\n if (scrollable)\n return (\n <ScrollView\n {...(orientation === 'vertical' && {\n showsVerticalScrollIndicator: showScrollIndicator,\n })}\n {...(orientation === 'horizontal' && {\n horizontal: true,\n showsHorizontalScrollIndicator: showScrollIndicator,\n })}\n >\n {children}\n </ScrollView>\n )\n return children\n}\n\nconst getBorderRadius = ({\n isFirst,\n isLast,\n radius,\n vertical,\n disable,\n}: {\n radius: any\n vertical: boolean\n isFirst: boolean\n isLast: boolean\n disable: DisablePassBorderRadius\n}) => {\n // TODO: RTL support would be nice here\n return {\n borderTopLeftRadius: isFirst && disable !== 'top' && disable !== 'start' ? radius : 0,\n borderTopRightRadius:\n disable !== 'top' &&\n disable !== 'end' &&\n ((vertical && isFirst) || (!vertical && isLast))\n ? radius\n : 0,\n borderBottomLeftRadius:\n disable !== 'bottom' &&\n disable !== 'start' &&\n ((vertical && isLast) || (!vertical && isFirst))\n ? radius\n : 0,\n borderBottomRightRadius:\n isLast && disable !== 'bottom' && disable !== 'end' ? radius : 0,\n }\n}\n\nconst cloneElementWithPropOrder = (child: any, props: Object) => {\n const next = mergeProps(child.props, props, false, getConfig().shorthands)[0]\n return React.cloneElement({ ...child, props: null }, next)\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmLU;AAnLV,kBAeO;AACP,4BAA0C;AAC1C,oBAA+B;AAC/B,oCAAqC;AACrC,mBAA4D;AAC5D,0BAA2B;AAC3B,sBAA6C;AAa7C,MAAM,aAAa;AAGnB,MAAM,CAAC,oBAAoB,gBAAgB,QAAI,0CAAmB,UAAU;AAC5E,MAAM,CAAC,eAAe,eAAe,IAAI,mBAAsC,UAAU;AAElF,MAAM,iBAAa,oBAAO,8BAAgB;AAAA,EAC/C,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,MAAM;AAAA,QACN,GAAG;AAAA,QACH,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IAEA,MAAM,CAAC,KAAK,EAAE,OAAO,MAAM;AACzB,YAAM,eAAe,OAAO,OAAO,GAAG,KAAK,OAAO,OAAO,OAAO,OAAO;AACvE,aAAO;AAAA,QACL;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU;AAAA,EACZ;AACF,CAAC;AAqBD,SAAS,YAAY,iBAA0B;AAC7C,aAAO;AAAA,QACL,yBAAoD,CAAC,OAAO,QAAQ;AAClE,YAAM,kBAAc,iCAAoB,KAAK;AAE7C,YAAM;AAAA,QACJ;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA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QAAQ,SAAS;AAAA,EACnE;AACF;AAEA,MAAM,4BAA4B,CAAC,OAAY,UAAkB;AAC/D,QAAM,WAAO,wBAAW,MAAM,OAAO,OAAO,WAAO,uBAAU,EAAE,UAAU,EAAE,CAAC;AAC5E,SAAO,aAAAA,QAAM,aAAa,EAAE,GAAG,OAAO,OAAO,KAAK,GAAG,IAAI;AAC3D;",
|
|
6
|
+
"names": ["props", "React"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./Group"), module.exports);
|
|
2
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './Group'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/Group.js
CHANGED
|
@@ -1,2 +1,235 @@
|
|
|
1
|
-
import{jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
getConfig,
|
|
4
|
+
getExpandedShorthands,
|
|
5
|
+
getTokens,
|
|
6
|
+
getVariableValue,
|
|
7
|
+
isTamaguiElement,
|
|
8
|
+
mergeProps,
|
|
9
|
+
spacedChildren,
|
|
10
|
+
styled,
|
|
11
|
+
useMediaPropsActive,
|
|
12
|
+
withStaticProperties
|
|
13
|
+
} from "@tamagui/core";
|
|
14
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
15
|
+
import { ThemeableStack } from "@tamagui/stacks";
|
|
16
|
+
import { useControllableState } from "@tamagui/use-controllable-state";
|
|
17
|
+
import React, { Children, forwardRef, isValidElement } from "react";
|
|
18
|
+
import { ScrollView } from "react-native";
|
|
19
|
+
import { useIndex, useIndexedChildren } from "reforest";
|
|
20
|
+
const GROUP_NAME = "Group";
|
|
21
|
+
const [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);
|
|
22
|
+
const [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
23
|
+
const GroupFrame = styled(ThemeableStack, {
|
|
24
|
+
name: "GroupFrame",
|
|
25
|
+
variants: {
|
|
26
|
+
unstyled: {
|
|
27
|
+
false: {
|
|
28
|
+
size: "$true",
|
|
29
|
+
y: 0,
|
|
30
|
+
backgroundColor: "$background"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
size: (val, { tokens }) => {
|
|
34
|
+
const borderRadius = tokens.radius[val] ?? val ?? tokens.radius["$true"];
|
|
35
|
+
return {
|
|
36
|
+
borderRadius
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
unstyled: false
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function createGroup(verticalDefault) {
|
|
45
|
+
return withStaticProperties(
|
|
46
|
+
forwardRef((props, ref) => {
|
|
47
|
+
const activeProps = useMediaPropsActive(props);
|
|
48
|
+
const {
|
|
49
|
+
__scopeGroup,
|
|
50
|
+
children: childrenProp,
|
|
51
|
+
space,
|
|
52
|
+
size = "$true",
|
|
53
|
+
spaceDirection,
|
|
54
|
+
separator,
|
|
55
|
+
scrollable,
|
|
56
|
+
axis = verticalDefault ? "vertical" : "horizontal",
|
|
57
|
+
orientation = axis,
|
|
58
|
+
disabled: disabledProp,
|
|
59
|
+
disablePassBorderRadius: disablePassBorderRadiusProp,
|
|
60
|
+
borderRadius,
|
|
61
|
+
forceUseItem,
|
|
62
|
+
...restProps
|
|
63
|
+
} = getExpandedShorthands(activeProps);
|
|
64
|
+
const vertical = orientation === "vertical";
|
|
65
|
+
const [itemChildrenCount, setItemChildrenCount] = useControllableState({
|
|
66
|
+
defaultProp: forceUseItem ? 1 : 0
|
|
67
|
+
});
|
|
68
|
+
const isUsingItems = true;
|
|
69
|
+
const radius = borderRadius ?? (size ? getVariableValue(getTokens().radius[size]) - 1 : void 0);
|
|
70
|
+
const hasRadius = radius !== void 0;
|
|
71
|
+
const disablePassBorderRadius = disablePassBorderRadiusProp ?? !hasRadius;
|
|
72
|
+
if (!isUsingItems)
|
|
73
|
+
console.log("screw up!");
|
|
74
|
+
const childrenArray = Children.toArray(childrenProp);
|
|
75
|
+
const children = isUsingItems ? childrenProp : childrenArray.map((child, i) => {
|
|
76
|
+
if (!isValidElement(child)) {
|
|
77
|
+
return child;
|
|
78
|
+
}
|
|
79
|
+
const disabled = child.props.disabled ?? disabledProp;
|
|
80
|
+
const isFirst = i === 0;
|
|
81
|
+
const isLast = i === childrenArray.length - 1;
|
|
82
|
+
const radiusStyles = disablePassBorderRadius === true ? null : getBorderRadius({
|
|
83
|
+
isFirst,
|
|
84
|
+
isLast,
|
|
85
|
+
radius,
|
|
86
|
+
vertical,
|
|
87
|
+
disable: disablePassBorderRadius
|
|
88
|
+
});
|
|
89
|
+
const props2 = {
|
|
90
|
+
disabled,
|
|
91
|
+
...isTamaguiElement(child) ? radiusStyles : { style: radiusStyles }
|
|
92
|
+
};
|
|
93
|
+
return cloneElementWithPropOrder(child, props2);
|
|
94
|
+
});
|
|
95
|
+
const indexedChildren = useIndexedChildren(
|
|
96
|
+
spacedChildren({
|
|
97
|
+
direction: spaceDirection,
|
|
98
|
+
separator,
|
|
99
|
+
space,
|
|
100
|
+
children
|
|
101
|
+
})
|
|
102
|
+
);
|
|
103
|
+
const onItemMount = React.useCallback(
|
|
104
|
+
() => setItemChildrenCount((prev) => prev + 1),
|
|
105
|
+
[]
|
|
106
|
+
);
|
|
107
|
+
const onItemUnmount = React.useCallback(
|
|
108
|
+
() => setItemChildrenCount((prev) => prev - 1),
|
|
109
|
+
[]
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ jsx(
|
|
112
|
+
GroupProvider,
|
|
113
|
+
{
|
|
114
|
+
disablePassBorderRadius,
|
|
115
|
+
vertical: orientation === "vertical",
|
|
116
|
+
radius,
|
|
117
|
+
disabled: disabledProp,
|
|
118
|
+
onItemMount,
|
|
119
|
+
onItemUnmount,
|
|
120
|
+
scope: __scopeGroup,
|
|
121
|
+
children: /* @__PURE__ */ jsx(
|
|
122
|
+
GroupFrame,
|
|
123
|
+
{
|
|
124
|
+
ref,
|
|
125
|
+
size,
|
|
126
|
+
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
127
|
+
borderRadius,
|
|
128
|
+
...restProps,
|
|
129
|
+
children: wrapScroll({ ...activeProps, orientation }, indexedChildren)
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}),
|
|
135
|
+
{
|
|
136
|
+
Item: GroupItem
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
const GroupItem = (props) => {
|
|
141
|
+
var _a;
|
|
142
|
+
const { __scopeGroup, children } = props;
|
|
143
|
+
const groupItemProps = useGroupItem(
|
|
144
|
+
{ disabled: isValidElement(children) ? children.props.disabled : void 0 },
|
|
145
|
+
__scopeGroup
|
|
146
|
+
);
|
|
147
|
+
if (!isValidElement(children)) {
|
|
148
|
+
return children;
|
|
149
|
+
}
|
|
150
|
+
if (isTamaguiElement(children)) {
|
|
151
|
+
return React.cloneElement(children, groupItemProps);
|
|
152
|
+
}
|
|
153
|
+
return React.cloneElement(children, {
|
|
154
|
+
style: {
|
|
155
|
+
...(_a = children.props) == null ? void 0 : _a["style"],
|
|
156
|
+
...groupItemProps
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
const useGroupItem = (childrenProps, __scopeGroup) => {
|
|
161
|
+
const treeIndex = useIndex();
|
|
162
|
+
const context = useGroupContext("GroupItem", __scopeGroup);
|
|
163
|
+
React.useEffect(() => {
|
|
164
|
+
context.onItemMount();
|
|
165
|
+
return () => {
|
|
166
|
+
context.onItemUnmount();
|
|
167
|
+
};
|
|
168
|
+
}, []);
|
|
169
|
+
if (!treeIndex) {
|
|
170
|
+
throw Error("<Group.Item/> should only be used within a <Group/>");
|
|
171
|
+
}
|
|
172
|
+
const isFirst = treeIndex.index === 0;
|
|
173
|
+
const isLast = treeIndex.index === treeIndex.maxIndex;
|
|
174
|
+
const disabled = childrenProps.disabled ?? context.disabled;
|
|
175
|
+
let propsToPass = {
|
|
176
|
+
disabled
|
|
177
|
+
};
|
|
178
|
+
if (context.disablePassBorderRadius !== true) {
|
|
179
|
+
const borderRadius = getBorderRadius({
|
|
180
|
+
radius: context.radius,
|
|
181
|
+
isFirst,
|
|
182
|
+
isLast,
|
|
183
|
+
vertical: context.vertical,
|
|
184
|
+
disable: context.disablePassBorderRadius
|
|
185
|
+
});
|
|
186
|
+
return { ...propsToPass, ...borderRadius };
|
|
187
|
+
}
|
|
188
|
+
return propsToPass;
|
|
189
|
+
};
|
|
190
|
+
const Group = createGroup(true);
|
|
191
|
+
const YGroup = Group;
|
|
192
|
+
const XGroup = createGroup(false);
|
|
193
|
+
const wrapScroll = ({ scrollable, orientation, showScrollIndicator = false }, children) => {
|
|
194
|
+
if (scrollable)
|
|
195
|
+
return /* @__PURE__ */ jsx(
|
|
196
|
+
ScrollView,
|
|
197
|
+
{
|
|
198
|
+
...orientation === "vertical" && {
|
|
199
|
+
showsVerticalScrollIndicator: showScrollIndicator
|
|
200
|
+
},
|
|
201
|
+
...orientation === "horizontal" && {
|
|
202
|
+
horizontal: true,
|
|
203
|
+
showsHorizontalScrollIndicator: showScrollIndicator
|
|
204
|
+
},
|
|
205
|
+
children
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
return children;
|
|
209
|
+
};
|
|
210
|
+
const getBorderRadius = ({
|
|
211
|
+
isFirst,
|
|
212
|
+
isLast,
|
|
213
|
+
radius,
|
|
214
|
+
vertical,
|
|
215
|
+
disable
|
|
216
|
+
}) => {
|
|
217
|
+
return {
|
|
218
|
+
borderTopLeftRadius: isFirst && disable !== "top" && disable !== "start" ? radius : 0,
|
|
219
|
+
borderTopRightRadius: disable !== "top" && disable !== "end" && (vertical && isFirst || !vertical && isLast) ? radius : 0,
|
|
220
|
+
borderBottomLeftRadius: disable !== "bottom" && disable !== "start" && (vertical && isLast || !vertical && isFirst) ? radius : 0,
|
|
221
|
+
borderBottomRightRadius: isLast && disable !== "bottom" && disable !== "end" ? radius : 0
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
const cloneElementWithPropOrder = (child, props) => {
|
|
225
|
+
const next = mergeProps(child.props, props, false, getConfig().shorthands)[0];
|
|
226
|
+
return React.cloneElement({ ...child, props: null }, next);
|
|
227
|
+
};
|
|
228
|
+
export {
|
|
229
|
+
Group,
|
|
230
|
+
GroupFrame,
|
|
231
|
+
XGroup,
|
|
232
|
+
YGroup,
|
|
233
|
+
useGroupItem
|
|
234
|
+
};
|
|
2
235
|
//# sourceMappingURL=Group.js.map
|