@tamagui/group 3.0.17 → 3.1.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/Group.cjs +2 -1
- package/dist/cjs/Group.native.cjs +2 -1
- package/dist/cjs/Group.native.js +2 -1
- package/dist/cjs/Group.native.js.map +1 -1
- package/dist/esm/Group.mjs +2 -1
- package/dist/esm/Group.mjs.map +1 -1
- package/dist/esm/Group.native.js +2 -1
- package/dist/esm/Group.native.js.map +1 -1
- package/dist/jsx/Group.mjs +2 -1
- package/dist/jsx/Group.mjs.map +1 -1
- package/dist/jsx/Group.native.cjs +2 -1
- package/dist/jsx/Group.native.js +2 -1
- package/dist/jsx/Group.native.js.map +1 -1
- package/package.json +10 -10
- package/src/Group.tsx +2 -1
- package/types/Group.d.ts +10 -38
- package/types/Group.d.ts.map +1 -1
package/dist/cjs/Group.cjs
CHANGED
|
@@ -46,7 +46,8 @@ const [createGroupContext, createGroupScope] = (0, import_create_context.createC
|
|
|
46
46
|
const [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
47
47
|
const GroupFrame = (0, import_core.styled)(import_stacks.YStack, { displayName: "GroupFrame" });
|
|
48
48
|
function createGroup(verticalDefault) {
|
|
49
|
-
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, (
|
|
49
|
+
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, (propsIn, ref) => {
|
|
50
|
+
const props = propsIn;
|
|
50
51
|
const { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
51
52
|
const vertical = orientation === "vertical";
|
|
52
53
|
const indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));
|
|
@@ -48,7 +48,8 @@ var [createGroupContext, createGroupScope] = (0, import_create_context.createCon
|
|
|
48
48
|
var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
49
49
|
var GroupFrame = (0, import_core.styled)(import_stacks.YStack, { displayName: "GroupFrame" });
|
|
50
50
|
function createGroup(verticalDefault) {
|
|
51
|
-
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
51
|
+
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {
|
|
52
|
+
var props = propsIn;
|
|
52
53
|
var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
53
54
|
var vertical = orientation === "vertical";
|
|
54
55
|
var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));
|
package/dist/cjs/Group.native.js
CHANGED
|
@@ -48,7 +48,8 @@ var [createGroupContext, createGroupScope] = (0, import_create_context.createCon
|
|
|
48
48
|
var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
49
49
|
var GroupFrame = (0, import_core.styled)(import_stacks.YStack, { displayName: "GroupFrame" });
|
|
50
50
|
function createGroup(verticalDefault) {
|
|
51
|
-
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
51
|
+
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {
|
|
52
|
+
var props = propsIn;
|
|
52
53
|
var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
53
54
|
var vertical = orientation === "vertical";
|
|
54
55
|
var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.native.js","names":[],"sources":["cjs/Group.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Group_exports = {};\n__export(Group_exports, {\n Group: () => Group,\n GroupFrame: () => GroupFrame,\n XGroup: () => XGroup,\n YGroup: () => YGroup,\n createGroupScope: () => createGroupScope,\n useGroupItem: () => useGroupItem\n});\nmodule.exports = __toCommonJS(Group_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_useIndexedChildren = require(\"./useIndexedChildren\");\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = (0, import_core.styled)(import_stacks.YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
1
|
+
{"version":3,"file":"Group.native.js","names":[],"sources":["cjs/Group.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Group_exports = {};\n__export(Group_exports, {\n Group: () => Group,\n GroupFrame: () => GroupFrame,\n XGroup: () => XGroup,\n YGroup: () => YGroup,\n createGroupScope: () => createGroupScope,\n useGroupItem: () => useGroupItem\n});\nmodule.exports = __toCommonJS(Group_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_useIndexedChildren = require(\"./useIndexedChildren\");\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = (0, import_core.styled)(import_stacks.YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {\n var props = propsIn;\n var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? \"vertical\" : \"horizontal\", disabled, ...restProps } = props;\n var vertical = orientation === \"vertical\";\n var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupProvider, {\n vertical,\n disabled,\n scope: __scopeGroup,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupFrame, {\n ref,\n flexDirection: vertical ? \"column\" : \"row\",\n ...restProps,\n children: indexedChildren\n })\n });\n }), {\n Item: GroupItem\n });\n}\nfunction GroupItem(props) {\n var { __scopeGroup, children, forcePlacement, ...forwardedProps } = props;\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n var treeIndex = (0, import_useIndexedChildren.useIndex)();\n if (!treeIndex) {\n throw Error(\"<Group.Item/> should only be used within a <Group/>\");\n }\n if (!/* @__PURE__ */ import_react.default.isValidElement(children)) {\n return children;\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n var groupProps = {\n ...forwardedProps,\n ...radiusStyles\n };\n if (context.disabled != null) {\n var _children_props_disabled;\n groupProps.disabled = (_children_props_disabled = children.props.disabled) !== null && _children_props_disabled !== void 0 ? _children_props_disabled : context.disabled;\n }\n var mergedProps = (0, import_core.mergeSlotStyleProps)(groupProps, children.props);\n return /* @__PURE__ */ import_react.default.cloneElement(children, mergedProps);\n}\nvar useGroupItem = function useGroupItem2(childrenProps, forcePlacement, __scopeGroup) {\n var _childrenProps_disabled;\n var treeIndex = (0, import_useIndexedChildren.useIndex)();\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n if (!treeIndex) {\n throw Error(\"useGroupItem should only be used within a <Group/>\");\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n return {\n disabled: (_childrenProps_disabled = childrenProps.disabled) !== null && _childrenProps_disabled !== void 0 ? _childrenProps_disabled : context.disabled,\n ...radiusStyles\n };\n};\nvar Group = createGroup(true);\nvar YGroup = Group;\nvar XGroup = createGroup(false);\nfunction getZeroedRadius(isFirst, isLast, vertical) {\n if (vertical) {\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderTopWidth: 0\n },\n ...isLast ? null : {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n }\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderLeftWidth: 0\n },\n ...isLast ? null : {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n}\n//# sourceMappingURL=Group.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO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Ac,QAAQ,6BAA6B,KAAK,IAAI,2BAA2B,QAAQ;CAClK;CACA,IAAI,eAAe,GAAG,YAAY,oBAAmB,CAAE,YAAY,SAAS,KAAK;CACjF,OAAuB,6BAAa,QAAQ,aAAa,UAAU,WAAW;AAChF;AACA,IAAI,eAAe,SAAS,cAAc,eAAe,gBAAgB,cAAc;CACrF,IAAI;CACJ,IAAI,aAAa,GAAG,0BAA0B,SAAQ,CAAE;CACxD,IAAI,UAAU,gBAAgB,aAAa,YAAY;CACvD,IAAI,CAAC,WAAW;EACd,MAAM,MAAM,oDAAoD;CAClE;CACA,IAAI,UAAU,mBAAmB,WAAW,mBAAmB,UAAU,UAAU,UAAU;CAC7F,IAAI,SAAS,mBAAmB,UAAU,mBAAmB,WAAW,UAAU,UAAU,UAAU;CACtG,IAAI,eAAe,gBAAgB,SAAS,QAAQ,QAAQ,QAAQ;CACpE,OAAO;EACL,WAAW,0BAA0B,cAAc,cAAc,QAAQ,4BAA4B,KAAK,IAAI,0BAA0B,QAAQ;EAChJ,GAAG;CACL;AACF;AACA,IAAI,QAAQ,YAAY,IAAI;AAC5B,IAAI,SAAS;AACb,IAAI,SAAS,YAAY,KAAK;AAC9B,SAAS,gBAAgB,SAAS,QAAQ,UAAU;CAClD,IAAI,UAAU;EACZ,OAAO;GACL,GAAG,UAAU,OAAO;IAClB,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;GAClB;GACA,GAAG,SAAS,OAAO;IACjB,wBAAwB;IACxB,yBAAyB;GAC3B;EACF;CACF;CACA,OAAO;EACL,GAAG,UAAU,OAAO;GAClB,qBAAqB;GACrB,wBAAwB;GACxB,iBAAiB;EACnB;EACA,GAAG,SAAS,OAAO;GACjB,sBAAsB;GACtB,yBAAyB;EAC3B;CACF;AACF"}
|
package/dist/esm/Group.mjs
CHANGED
|
@@ -11,7 +11,8 @@ const [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);
|
|
|
11
11
|
const [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
12
12
|
const GroupFrame = styled(YStack, { displayName: "GroupFrame" });
|
|
13
13
|
function createGroup(verticalDefault) {
|
|
14
|
-
return withStaticProperties(createStyledHOC(GroupFrame, (
|
|
14
|
+
return withStaticProperties(createStyledHOC(GroupFrame, (propsIn, ref) => {
|
|
15
|
+
const props = propsIn;
|
|
15
16
|
const { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
16
17
|
const vertical = orientation === "vertical";
|
|
17
18
|
const indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));
|
package/dist/esm/Group.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.js","names":[],"sources":["esm/Group.js"],"sourcesContent":["import { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GROUP_NAME = \"Group\";\nconst [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nconst [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nconst GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(\n createStyledHOC(GroupFrame, (
|
|
1
|
+
{"version":3,"file":"Group.js","names":[],"sources":["esm/Group.js"],"sourcesContent":["import { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GROUP_NAME = \"Group\";\nconst [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nconst [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nconst GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(\n createStyledHOC(GroupFrame, (propsIn, ref) => {\n const props = propsIn;\n const {\n __scopeGroup,\n children: childrenProp,\n orientation = verticalDefault ? \"vertical\" : \"horizontal\",\n disabled,\n ...restProps\n } = props;\n const vertical = orientation === \"vertical\";\n const indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));\n return /* @__PURE__ */ jsx(GroupProvider, { vertical, disabled, scope: __scopeGroup, children: /* @__PURE__ */ jsx(\n GroupFrame,\n {\n ref,\n flexDirection: vertical ? \"column\" : \"row\",\n ...restProps,\n children: indexedChildren\n }\n ) });\n }),\n {\n Item: GroupItem\n }\n );\n}\nfunction GroupItem(props) {\n const { __scopeGroup, children, forcePlacement, ...forwardedProps } = props;\n const context = useGroupContext(\"GroupItem\", __scopeGroup);\n const treeIndex = useIndex();\n if (!treeIndex) {\n throw Error(\"<Group.Item/> should only be used within a <Group/>\");\n }\n if (!React.isValidElement(children)) {\n return children;\n }\n const isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n const isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n const radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n const groupProps = {\n ...forwardedProps,\n ...radiusStyles\n };\n if (context.disabled != null) {\n groupProps.disabled = children.props.disabled ?? context.disabled;\n }\n const mergedProps = mergeSlotStyleProps(groupProps, children.props);\n return React.cloneElement(children, mergedProps);\n}\nconst useGroupItem = (childrenProps, forcePlacement, __scopeGroup) => {\n const treeIndex = useIndex();\n const context = useGroupContext(\"GroupItem\", __scopeGroup);\n if (!treeIndex) {\n throw Error(\"useGroupItem should only be used within a <Group/>\");\n }\n const isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n const isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n const radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n return {\n disabled: childrenProps.disabled ?? context.disabled,\n ...radiusStyles\n };\n};\nconst Group = createGroup(true);\nconst YGroup = Group;\nconst XGroup = createGroup(false);\nfunction getZeroedRadius(isFirst, isLast, vertical) {\n if (vertical) {\n return {\n ...isFirst ? null : { borderTopLeftRadius: 0, borderTopRightRadius: 0, borderTopWidth: 0 },\n ...isLast ? null : { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }\n };\n }\n return {\n ...isFirst ? null : { borderTopLeftRadius: 0, borderBottomLeftRadius: 0, borderLeftWidth: 0 },\n ...isLast ? null : { borderTopRightRadius: 0, borderBottomRightRadius: 0 }\n };\n}\nexport {\n Group,\n GroupFrame,\n XGroup,\n YGroup,\n createGroupScope,\n useGroupItem\n};\n//# sourceMappingURL=Group.js.map\n"],"mappings":";;;;;;;;;AAOA,MAAM,aAAa;AACnB,MAAM,CAAC,oBAAoB,oBAAoB,mBAAmB,UAAU;AAC5E,MAAM,CAAC,eAAe,mBAAmB,mBAAmB,UAAU;AACtE,MAAM,aAAa,OAAO,QAAQ,EAChC,aAAa,aACf,CAAC;AACD,SAAS,YAAY,iBAAiB;CACpC,OAAO,qBACL,gBAAgB,aAAa,SAAS,QAAQ;EAC5C,MAAM,QAAQ;EACd,MAAM,EACJ,cACA,UAAU,cACV,cAAc,kBAAkB,aAAa,cAC7C,UACA,GAAG,cACD;EACJ,MAAM,WAAW,gBAAgB;EACjC,MAAM,kBAAkB,mBAAmB,MAAM,SAAS,QAAQ,YAAY,CAAC;EAC/E,OAAuB,oBAAI,eAAe;GAAE;GAAU;GAAU,OAAO;GAAc,UAA0B,oBAC7G,YACA;IACE;IACA,eAAe,WAAW,WAAW;IACrC,GAAG;IACH,UAAU;GACZ,CACF;EAAE,CAAC;CACL,CAAC,GACD,EACE,MAAM,UACR,CACF;AAC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AqB;IAAG,sBAAsB;IAAG,gBAAgB;GAAE;GACzF,GAAG,SAAS,OAAO;IAAE,wBAAwB;IAAG,yBAAyB;GAAE;EAC7E;CACF;CACA,OAAO;EACL,GAAG,UAAU,OAAO;GAAE,qBAAqB;GAAG,wBAAwB;GAAG,iBAAiB;EAAE;EAC5F,GAAG,SAAS,OAAO;GAAE,sBAAsB;GAAG,yBAAyB;EAAE;CAC3E;AACF"}
|
package/dist/esm/Group.native.js
CHANGED
|
@@ -11,7 +11,8 @@ var [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);
|
|
|
11
11
|
var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
12
12
|
var GroupFrame = styled(YStack, { displayName: "GroupFrame" });
|
|
13
13
|
function createGroup(verticalDefault) {
|
|
14
|
-
return withStaticProperties(createStyledHOC(GroupFrame, function(
|
|
14
|
+
return withStaticProperties(createStyledHOC(GroupFrame, function(propsIn, ref) {
|
|
15
|
+
var props = propsIn;
|
|
15
16
|
var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
16
17
|
var vertical = orientation === "vertical";
|
|
17
18
|
var indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.native.js","names":[],"sources":["esm/Group.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(createStyledHOC(GroupFrame, function(
|
|
1
|
+
{"version":3,"file":"Group.native.js","names":[],"sources":["esm/Group.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(createStyledHOC(GroupFrame, function(propsIn, ref) {\n var props = propsIn;\n var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? \"vertical\" : \"horizontal\", disabled, ...restProps } = props;\n var vertical = orientation === \"vertical\";\n var indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));\n return /* @__PURE__ */ _jsx(GroupProvider, {\n vertical,\n disabled,\n scope: __scopeGroup,\n children: /* @__PURE__ */ _jsx(GroupFrame, {\n ref,\n flexDirection: vertical ? \"column\" : \"row\",\n ...restProps,\n children: indexedChildren\n })\n });\n }), {\n Item: GroupItem\n });\n}\nfunction GroupItem(props) {\n var { __scopeGroup, children, forcePlacement, ...forwardedProps } = props;\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n var treeIndex = useIndex();\n if (!treeIndex) {\n throw Error(\"<Group.Item/> should only be used within a <Group/>\");\n }\n if (!/* @__PURE__ */ React.isValidElement(children)) {\n return children;\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n var groupProps = {\n ...forwardedProps,\n ...radiusStyles\n };\n if (context.disabled != null) {\n var _children_props_disabled;\n groupProps.disabled = (_children_props_disabled = children.props.disabled) !== null && _children_props_disabled !== void 0 ? _children_props_disabled : context.disabled;\n }\n var mergedProps = mergeSlotStyleProps(groupProps, children.props);\n return /* @__PURE__ */ React.cloneElement(children, mergedProps);\n}\nvar useGroupItem = function useGroupItem2(childrenProps, forcePlacement, __scopeGroup) {\n var _childrenProps_disabled;\n var treeIndex = useIndex();\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n if (!treeIndex) {\n throw Error(\"useGroupItem should only be used within a <Group/>\");\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n return {\n disabled: (_childrenProps_disabled = childrenProps.disabled) !== null && _childrenProps_disabled !== void 0 ? _childrenProps_disabled : context.disabled,\n ...radiusStyles\n };\n};\nvar Group = createGroup(true);\nvar YGroup = Group;\nvar XGroup = createGroup(false);\nfunction getZeroedRadius(isFirst, isLast, vertical) {\n if (vertical) {\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderTopWidth: 0\n },\n ...isLast ? null : {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n }\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderLeftWidth: 0\n },\n ...isLast ? null : {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n}\nexport {\n Group,\n GroupFrame,\n XGroup,\n YGroup,\n createGroupScope,\n useGroupItem\n};\n//# sourceMappingURL=Group.js.map\n"],"mappings":";;;;;;;;;AAOA,IAAI,aAAa;AACjB,IAAI,CAAC,oBAAoB,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SAAS,KAAK;CAChE,OAAuB,sBAAM,aAAa,UAAU,WAAW;AACjE;AACA,IAAI,eAAe,SAAS,cAAc,eAAe,gBAAgB,cAAc;CACrF,IAAI;CACJ,IAAI,YAAY,SAAS;CACzB,IAAI,UAAU,gBAAgB,aAAa,YAAY;CACvD,IAAI,CAAC,WAAW;EACd,MAAM,MAAM,oDAAoD;CAClE;CACA,IAAI,UAAU,mBAAmB,WAAW,mBAAmB,UAAU,UAAU,UAAU;CAC7F,IAAI,SAAS,mBAAmB,UAAU,mBAAmB,WAAW,UAAU,UAAU,UAAU;CACtG,IAAI,eAAe,gBAAgB,SAAS,QAAQ,QAAQ,QAAQ;CACpE,OAAO;EACL,WAAW,0BAA0B,cAAc,cAAc,QAAQ,4BAA4B,KAAK,IAAI,0BAA0B,QAAQ;EAChJ,GAAG;CACL;AACF;AACA,IAAI,QAAQ,YAAY,IAAI;AAC5B,IAAI,SAAS;AACb,IAAI,SAAS,YAAY,KAAK;AAC9B,SAAS,gBAAgB,SAAS,QAAQ,UAAU;CAClD,IAAI,UAAU;EACZ,OAAO;GACL,GAAG,UAAU,OAAO;IAClB,qBAAqB;IACrB,sBAAsB;IACtB,gBAAgB;GAClB;GACA,GAAG,SAAS,OAAO;IACjB,wBAAwB;IACxB,yBAAyB;GAC3B;EACF;CACF;CACA,OAAO;EACL,GAAG,UAAU,OAAO;GAClB,qBAAqB;GACrB,wBAAwB;GACxB,iBAAiB;EACnB;EACA,GAAG,SAAS,OAAO;GACjB,sBAAsB;GACtB,yBAAyB;EAC3B;CACF;AACF"}
|
package/dist/jsx/Group.mjs
CHANGED
|
@@ -11,7 +11,8 @@ const [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);
|
|
|
11
11
|
const [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
12
12
|
const GroupFrame = styled(YStack, { displayName: "GroupFrame" });
|
|
13
13
|
function createGroup(verticalDefault) {
|
|
14
|
-
return withStaticProperties(createStyledHOC(GroupFrame, (
|
|
14
|
+
return withStaticProperties(createStyledHOC(GroupFrame, (propsIn, ref) => {
|
|
15
|
+
const props = propsIn;
|
|
15
16
|
const { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
16
17
|
const vertical = orientation === "vertical";
|
|
17
18
|
const indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));
|
package/dist/jsx/Group.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.js","names":[],"sources":["jsx/Group.js"],"sourcesContent":["import { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GROUP_NAME = \"Group\";\nconst [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nconst [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nconst GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(\n createStyledHOC(GroupFrame, (
|
|
1
|
+
{"version":3,"file":"Group.js","names":[],"sources":["jsx/Group.js"],"sourcesContent":["import { createStyledHOC, mergeSlotStyleProps, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport React from \"react\";\nimport { useIndex, useIndexedChildren } from \"./useIndexedChildren\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GROUP_NAME = \"Group\";\nconst [createGroupContext, createGroupScope] = createContextScope(GROUP_NAME);\nconst [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nconst GroupFrame = styled(YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return withStaticProperties(\n createStyledHOC(GroupFrame, (propsIn, ref) => {\n const props = propsIn;\n const {\n __scopeGroup,\n children: childrenProp,\n orientation = verticalDefault ? \"vertical\" : \"horizontal\",\n disabled,\n ...restProps\n } = props;\n const vertical = orientation === \"vertical\";\n const indexedChildren = useIndexedChildren(React.Children.toArray(childrenProp));\n return /* @__PURE__ */ jsx(GroupProvider, { vertical, disabled, scope: __scopeGroup, children: /* @__PURE__ */ jsx(\n GroupFrame,\n {\n ref,\n flexDirection: vertical ? \"column\" : \"row\",\n ...restProps,\n children: indexedChildren\n }\n ) });\n }),\n {\n Item: GroupItem\n }\n );\n}\nfunction GroupItem(props) {\n const { __scopeGroup, children, forcePlacement, ...forwardedProps } = props;\n const context = useGroupContext(\"GroupItem\", __scopeGroup);\n const treeIndex = useIndex();\n if (!treeIndex) {\n throw Error(\"<Group.Item/> should only be used within a <Group/>\");\n }\n if (!React.isValidElement(children)) {\n return children;\n }\n const isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n const isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n const radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n const groupProps = {\n ...forwardedProps,\n ...radiusStyles\n };\n if (context.disabled != null) {\n groupProps.disabled = children.props.disabled ?? context.disabled;\n }\n const mergedProps = mergeSlotStyleProps(groupProps, children.props);\n return React.cloneElement(children, mergedProps);\n}\nconst useGroupItem = (childrenProps, forcePlacement, __scopeGroup) => {\n const treeIndex = useIndex();\n const context = useGroupContext(\"GroupItem\", __scopeGroup);\n if (!treeIndex) {\n throw Error(\"useGroupItem should only be used within a <Group/>\");\n }\n const isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n const isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n const radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n return {\n disabled: childrenProps.disabled ?? context.disabled,\n ...radiusStyles\n };\n};\nconst Group = createGroup(true);\nconst YGroup = Group;\nconst XGroup = createGroup(false);\nfunction getZeroedRadius(isFirst, isLast, vertical) {\n if (vertical) {\n return {\n ...isFirst ? null : { borderTopLeftRadius: 0, borderTopRightRadius: 0, borderTopWidth: 0 },\n ...isLast ? null : { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }\n };\n }\n return {\n ...isFirst ? null : { borderTopLeftRadius: 0, borderBottomLeftRadius: 0, borderLeftWidth: 0 },\n ...isLast ? null : { borderTopRightRadius: 0, borderBottomRightRadius: 0 }\n };\n}\nexport {\n Group,\n GroupFrame,\n XGroup,\n YGroup,\n createGroupScope,\n useGroupItem\n};\n//# sourceMappingURL=Group.js.map\n"],"mappings":";;;;;;;;;AAOA,MAAM,aAAa;AACnB,MAAM,CAAC,oBAAoB,oBAAoB,mBAAmB,UAAU;AAC5E,MAAM,CAAC,eAAe,mBAAmB,mBAAmB,UAAU;AACtE,MAAM,aAAa,OAAO,QAAQ,EAChC,aAAa,aACf,CAAC;AACD,SAAS,YAAY,iBAAiB;CACpC,OAAO,qBACL,gBAAgB,aAAa,SAAS,QAAQ;EAC5C,MAAM,QAAQ;EACd,MAAM,EACJ,cACA,UAAU,cACV,cAAc,kBAAkB,aAAa,cAC7C,UACA,GAAG,cACD;EACJ,MAAM,WAAW,gBAAgB;EACjC,MAAM,kBAAkB,mBAAmB,MAAM,SAAS,QAAQ,YAAY,CAAC;EAC/E,OAAuB,oBAAI,eAAe;GAAE;GAAU;GAAU,OAAO;GAAc,UAA0B,oBAC7G,YACA;IACE;IACA,eAAe,WAAW,WAAW;IACrC,GAAG;IACH,UAAU;GACZ,CACF;EAAE,CAAC;CACL,CAAC,GACD,EACE,MAAM,UACR,CACF;AACF;AACA,SAAS,UAAU,OAAO;CACxB,MAAM,EAAE,cAAc,UAAU,gBAAgB,GAAG,mBAAmB;CACtE,MAAM,UAAU,gBAAgB,aAAa,YAAY;CACzD,MAA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GAAG,UAAU,OAAO;GAAE,qBAAqB;GAAG,wBAAwB;GAAG,iBAAiB;EAAE;EAC5F,GAAG,SAAS,OAAO;GAAE,sBAAsB;GAAG,yBAAyB;EAAE;CAC3E;AACF"}
|
|
@@ -48,7 +48,8 @@ var [createGroupContext, createGroupScope] = (0, import_create_context.createCon
|
|
|
48
48
|
var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
49
49
|
var GroupFrame = (0, import_core.styled)(import_stacks.YStack, { displayName: "GroupFrame" });
|
|
50
50
|
function createGroup(verticalDefault) {
|
|
51
|
-
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
51
|
+
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {
|
|
52
|
+
var props = propsIn;
|
|
52
53
|
var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
53
54
|
var vertical = orientation === "vertical";
|
|
54
55
|
var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));
|
package/dist/jsx/Group.native.js
CHANGED
|
@@ -48,7 +48,8 @@ var [createGroupContext, createGroupScope] = (0, import_create_context.createCon
|
|
|
48
48
|
var [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);
|
|
49
49
|
var GroupFrame = (0, import_core.styled)(import_stacks.YStack, { displayName: "GroupFrame" });
|
|
50
50
|
function createGroup(verticalDefault) {
|
|
51
|
-
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
51
|
+
return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {
|
|
52
|
+
var props = propsIn;
|
|
52
53
|
var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? "vertical" : "horizontal", disabled, ...restProps } = props;
|
|
53
54
|
var vertical = orientation === "vertical";
|
|
54
55
|
var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.native.js","names":[],"sources":["jsx/Group.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Group_exports = {};\n__export(Group_exports, {\n Group: () => Group,\n GroupFrame: () => GroupFrame,\n XGroup: () => XGroup,\n YGroup: () => YGroup,\n createGroupScope: () => createGroupScope,\n useGroupItem: () => useGroupItem\n});\nmodule.exports = __toCommonJS(Group_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_useIndexedChildren = require(\"./useIndexedChildren\");\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = (0, import_core.styled)(import_stacks.YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(
|
|
1
|
+
{"version":3,"file":"Group.native.js","names":[],"sources":["jsx/Group.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Group_exports = {};\n__export(Group_exports, {\n Group: () => Group,\n GroupFrame: () => GroupFrame,\n XGroup: () => XGroup,\n YGroup: () => YGroup,\n createGroupScope: () => createGroupScope,\n useGroupItem: () => useGroupItem\n});\nmodule.exports = __toCommonJS(Group_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_useIndexedChildren = require(\"./useIndexedChildren\");\nvar GROUP_NAME = \"Group\";\nvar [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME);\nvar [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME);\nvar GroupFrame = (0, import_core.styled)(import_stacks.YStack, {\n displayName: \"GroupFrame\"\n});\nfunction createGroup(verticalDefault) {\n return (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(GroupFrame, function(propsIn, ref) {\n var props = propsIn;\n var { __scopeGroup, children: childrenProp, orientation = verticalDefault ? \"vertical\" : \"horizontal\", disabled, ...restProps } = props;\n var vertical = orientation === \"vertical\";\n var indexedChildren = (0, import_useIndexedChildren.useIndexedChildren)(import_react.default.Children.toArray(childrenProp));\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupProvider, {\n vertical,\n disabled,\n scope: __scopeGroup,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupFrame, {\n ref,\n flexDirection: vertical ? \"column\" : \"row\",\n ...restProps,\n children: indexedChildren\n })\n });\n }), {\n Item: GroupItem\n });\n}\nfunction GroupItem(props) {\n var { __scopeGroup, children, forcePlacement, ...forwardedProps } = props;\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n var treeIndex = (0, import_useIndexedChildren.useIndex)();\n if (!treeIndex) {\n throw Error(\"<Group.Item/> should only be used within a <Group/>\");\n }\n if (!/* @__PURE__ */ import_react.default.isValidElement(children)) {\n return children;\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n var groupProps = {\n ...forwardedProps,\n ...radiusStyles\n };\n if (context.disabled != null) {\n var _children_props_disabled;\n groupProps.disabled = (_children_props_disabled = children.props.disabled) !== null && _children_props_disabled !== void 0 ? _children_props_disabled : context.disabled;\n }\n var mergedProps = (0, import_core.mergeSlotStyleProps)(groupProps, children.props);\n return /* @__PURE__ */ import_react.default.cloneElement(children, mergedProps);\n}\nvar useGroupItem = function useGroupItem2(childrenProps, forcePlacement, __scopeGroup) {\n var _childrenProps_disabled;\n var treeIndex = (0, import_useIndexedChildren.useIndex)();\n var context = useGroupContext(\"GroupItem\", __scopeGroup);\n if (!treeIndex) {\n throw Error(\"useGroupItem should only be used within a <Group/>\");\n }\n var isFirst = forcePlacement === \"first\" || forcePlacement !== \"last\" && treeIndex.index === 0;\n var isLast = forcePlacement === \"last\" || forcePlacement !== \"first\" && treeIndex.index === treeIndex.maxIndex;\n var radiusStyles = getZeroedRadius(isFirst, isLast, context.vertical);\n return {\n disabled: (_childrenProps_disabled = childrenProps.disabled) !== null && _childrenProps_disabled !== void 0 ? _childrenProps_disabled : context.disabled,\n ...radiusStyles\n };\n};\nvar Group = createGroup(true);\nvar YGroup = Group;\nvar XGroup = createGroup(false);\nfunction getZeroedRadius(isFirst, isLast, vertical) {\n if (vertical) {\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderTopWidth: 0\n },\n ...isLast ? null : {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n }\n return {\n ...isFirst ? null : {\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n borderLeftWidth: 0\n },\n ...isLast ? null : {\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0\n }\n };\n}\n//# sourceMappingURL=Group.js.map\n"],"mappings":";;;AACA,IAAI,WAAW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qBAAqB;GACrB,wBAAwB;GACxB,iBAAiB;EACnB;EACA,GAAG,SAAS,OAAO;GACjB,sBAAsB;GACtB,yBAAyB;EAC3B;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/group",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"clean:build": "tamagui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@tamagui/core": "3.0
|
|
40
|
-
"@tamagui/create-context": "3.0
|
|
41
|
-
"@tamagui/helpers": "3.0
|
|
42
|
-
"@tamagui/stacks": "3.0
|
|
43
|
-
"@tamagui/use-controllable-state": "3.0
|
|
39
|
+
"@tamagui/core": "3.1.0",
|
|
40
|
+
"@tamagui/create-context": "3.1.0",
|
|
41
|
+
"@tamagui/helpers": "3.1.0",
|
|
42
|
+
"@tamagui/stacks": "3.1.0",
|
|
43
|
+
"@tamagui/use-controllable-state": "3.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@tamagui/build": "3.0
|
|
47
|
-
"react": "19.
|
|
48
|
-
"react-native": "0.
|
|
46
|
+
"@tamagui/build": "3.1.0",
|
|
47
|
+
"react": "19.3.0",
|
|
48
|
+
"react-native": "0.88.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=19"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
57
57
|
"directory": "code/ui/group"
|
|
58
58
|
},
|
|
59
|
-
"releaseSourceCommit": "
|
|
59
|
+
"releaseSourceCommit": "690ee7d9f451e684f0f197d160c261cdf37dd79f"
|
|
60
60
|
}
|
package/src/Group.tsx
CHANGED
|
@@ -31,7 +31,8 @@ export type GroupProps = GetProps<typeof GroupFrame> & GroupExtraProps
|
|
|
31
31
|
|
|
32
32
|
function createGroup(verticalDefault: boolean) {
|
|
33
33
|
return withStaticProperties(
|
|
34
|
-
createStyledHOC(GroupFrame, (
|
|
34
|
+
createStyledHOC(GroupFrame, (propsIn: ScopedProps<GroupExtraProps>, ref) => {
|
|
35
|
+
const props: ScopedProps<GroupProps> = propsIn
|
|
35
36
|
const {
|
|
36
37
|
__scopeGroup,
|
|
37
38
|
children: childrenProp,
|