@tamagui/collapsible 1.0.1-beta.75 → 1.0.1-beta.76
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/esm/Collapsible.js +57 -22
- package/dist/esm/Collapsible.js.map +1 -1
- package/package.json +8 -8
package/dist/esm/Collapsible.js
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
1
32
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
2
33
|
import {
|
|
3
34
|
Stack,
|
|
@@ -11,14 +42,19 @@ const COLLAPSIBLE_NAME = "Collapsible";
|
|
|
11
42
|
const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
12
43
|
const [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
13
44
|
const Collapsible = React.forwardRef((props, forwardedRef) => {
|
|
14
|
-
const {
|
|
45
|
+
const _a = props, {
|
|
15
46
|
__scopeCollapsible,
|
|
16
47
|
open: openProp,
|
|
17
48
|
defaultOpen,
|
|
18
49
|
disabled,
|
|
19
|
-
onOpenChange
|
|
20
|
-
|
|
21
|
-
|
|
50
|
+
onOpenChange
|
|
51
|
+
} = _a, collapsibleProps = __objRest(_a, [
|
|
52
|
+
"__scopeCollapsible",
|
|
53
|
+
"open",
|
|
54
|
+
"defaultOpen",
|
|
55
|
+
"disabled",
|
|
56
|
+
"onOpenChange"
|
|
57
|
+
]);
|
|
22
58
|
const [open, setOpen] = useControllableState({
|
|
23
59
|
prop: openProp,
|
|
24
60
|
defaultProp: defaultOpen || false,
|
|
@@ -30,44 +66,43 @@ const Collapsible = React.forwardRef((props, forwardedRef) => {
|
|
|
30
66
|
contentId: useId() || "",
|
|
31
67
|
open,
|
|
32
68
|
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])
|
|
33
|
-
}, /* @__PURE__ */ React.createElement(Stack, {
|
|
69
|
+
}, /* @__PURE__ */ React.createElement(Stack, __spreadProps(__spreadValues({
|
|
34
70
|
"data-state": getState(open),
|
|
35
|
-
"data-disabled": disabled ? "" : void 0
|
|
36
|
-
|
|
71
|
+
"data-disabled": disabled ? "" : void 0
|
|
72
|
+
}, collapsibleProps), {
|
|
37
73
|
ref: forwardedRef
|
|
38
|
-
}));
|
|
74
|
+
})));
|
|
39
75
|
});
|
|
40
76
|
Collapsible.displayName = COLLAPSIBLE_NAME;
|
|
41
77
|
const TRIGGER_NAME = "CollapsibleTrigger";
|
|
42
78
|
const CollapsibleTrigger = React.forwardRef((props, forwardedRef) => {
|
|
43
|
-
const { __scopeCollapsible,
|
|
79
|
+
const _a = props, { __scopeCollapsible } = _a, triggerProps = __objRest(_a, ["__scopeCollapsible"]);
|
|
44
80
|
const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
|
|
45
|
-
return /* @__PURE__ */ React.createElement(Stack, {
|
|
81
|
+
return /* @__PURE__ */ React.createElement(Stack, __spreadProps(__spreadValues({
|
|
46
82
|
type: "button",
|
|
47
83
|
"aria-controls": context.contentId,
|
|
48
84
|
"aria-expanded": context.open || false,
|
|
49
85
|
"data-state": getState(context.open),
|
|
50
86
|
"data-disabled": context.disabled ? "" : void 0,
|
|
51
|
-
disabled: context.disabled
|
|
52
|
-
|
|
87
|
+
disabled: context.disabled
|
|
88
|
+
}, triggerProps), {
|
|
53
89
|
ref: forwardedRef,
|
|
54
90
|
onPress: composeEventHandlers(props.onPress, context.onOpenToggle)
|
|
55
|
-
});
|
|
91
|
+
}));
|
|
56
92
|
});
|
|
57
93
|
CollapsibleTrigger.displayName = TRIGGER_NAME;
|
|
58
94
|
const CONTENT_NAME = "CollapsibleContent";
|
|
59
95
|
const CollapsibleContent = React.forwardRef((props, forwardedRef) => {
|
|
60
|
-
const { forceMount,
|
|
96
|
+
const _a = props, { forceMount } = _a, contentProps = __objRest(_a, ["forceMount"]);
|
|
61
97
|
const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
|
|
62
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, ({ present }) => /* @__PURE__ */ React.createElement(CollapsibleContentImpl, {
|
|
63
|
-
...contentProps,
|
|
98
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, ({ present }) => /* @__PURE__ */ React.createElement(CollapsibleContentImpl, __spreadProps(__spreadValues({}, contentProps), {
|
|
64
99
|
ref: forwardedRef,
|
|
65
100
|
present
|
|
66
|
-
}));
|
|
101
|
+
})));
|
|
67
102
|
});
|
|
68
103
|
CollapsibleContent.displayName = CONTENT_NAME;
|
|
69
104
|
const CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
|
|
70
|
-
const { __scopeCollapsible, present, children,
|
|
105
|
+
const _a = props, { __scopeCollapsible, present, children } = _a, contentProps = __objRest(_a, ["__scopeCollapsible", "present", "children"]);
|
|
71
106
|
const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
|
|
72
107
|
const [isPresent, setIsPresent] = React.useState(present);
|
|
73
108
|
const ref = React.useRef(null);
|
|
@@ -83,14 +118,14 @@ const CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
83
118
|
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
84
119
|
return () => cancelAnimationFrame(rAF);
|
|
85
120
|
}, []);
|
|
86
|
-
return /* @__PURE__ */ React.createElement(Stack, {
|
|
121
|
+
return /* @__PURE__ */ React.createElement(Stack, __spreadProps(__spreadValues({
|
|
87
122
|
"data-state": getState(context.open),
|
|
88
123
|
"data-disabled": context.disabled ? "" : void 0,
|
|
89
124
|
id: context.contentId,
|
|
90
|
-
hidden: !isOpen
|
|
91
|
-
|
|
125
|
+
hidden: !isOpen
|
|
126
|
+
}, contentProps), {
|
|
92
127
|
ref: composedRefs
|
|
93
|
-
}, isOpen && children);
|
|
128
|
+
}), isOpen && children);
|
|
94
129
|
});
|
|
95
130
|
function getState(open) {
|
|
96
131
|
return open ? "open" : "closed";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Collapsible.tsx"],
|
|
4
4
|
"sourcesContent": ["import { useComposedRefs } from '@tamagui/compose-refs'\nimport {\n Stack,\n StackProps,\n TamaguiElement,\n composeEventHandlers,\n useIsomorphicLayoutEffect,\n} from '@tamagui/core'\nimport { useId } from '@tamagui/core'\nimport { createContextScope } from '@tamagui/create-context'\nimport type { Scope } from '@tamagui/create-context'\n// import { Presence } from '@tamagui/react-presence'\nimport { useControllableState } from '@tamagui/use-controllable-state'\nimport * as React from 'react'\n\n/* -------------------------------------------------------------------------------------------------\n * Collapsible\n * -----------------------------------------------------------------------------------------------*/\n\nconst COLLAPSIBLE_NAME = 'Collapsible'\n\ntype ScopedProps<P> = P & { __scopeCollapsible?: Scope }\nconst [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\ntype CollapsibleContextValue = {\n contentId: string\n disabled?: boolean\n open: boolean\n onOpenToggle(): void\n}\n\nconst [CollapsibleProvider, useCollapsibleContext] =\n createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\ntype CollapsibleElement = TamaguiElement\ninterface CollapsibleProps extends StackProps {\n defaultOpen?: boolean\n open?: boolean\n disabled?: boolean\n onOpenChange?(open: boolean): void\n}\n\nconst Collapsible = React.forwardRef<CollapsibleElement, CollapsibleProps>(\n (props: ScopedProps<CollapsibleProps>, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props\n\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen || false,\n onChange: onOpenChange,\n })\n\n return (\n <CollapsibleProvider\n scope={__scopeCollapsible}\n disabled={disabled}\n contentId={useId() || ''}\n open={open}\n onOpenToggle={React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])}\n >\n <Stack\n data-state={getState(open)}\n data-disabled={disabled ? '' : undefined}\n {...collapsibleProps}\n // @ts-expect-error\n ref={forwardedRef}\n />\n </CollapsibleProvider>\n )\n }\n)\n\nCollapsible.displayName = COLLAPSIBLE_NAME\n\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'CollapsibleTrigger'\n\ntype CollapsibleTriggerElement = TamaguiElement\ninterface CollapsibleTriggerProps extends StackProps {}\n\nconst CollapsibleTrigger = React.forwardRef<CollapsibleTriggerElement, CollapsibleTriggerProps>(\n (props: ScopedProps<CollapsibleTriggerProps>, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible)\n return (\n <Stack\n type=\"button\"\n aria-controls={context.contentId}\n aria-expanded={context.open || false}\n data-state={getState(context.open)}\n data-disabled={context.disabled ? '' : undefined}\n disabled={context.disabled}\n {...triggerProps}\n // @ts-expect-error\n ref={forwardedRef}\n onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n />\n )\n }\n)\n\nCollapsibleTrigger.displayName = TRIGGER_NAME\n\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'CollapsibleContent'\n\ntype CollapsibleContentElement = CollapsibleContentImplElement\ninterface CollapsibleContentProps extends Omit<CollapsibleContentImplProps, 'present'> {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true\n}\n\nconst CollapsibleContent = React.forwardRef<CollapsibleContentElement, CollapsibleContentProps>(\n (props: ScopedProps<CollapsibleContentProps>, forwardedRef) => {\n const { forceMount, ...contentProps } = props\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible)\n return (\n // <Presence present={forceMount || context.open}>\n <>\n {({ present }) => (\n <CollapsibleContentImpl {...contentProps} ref={forwardedRef} present={present} />\n )}\n </>\n // </Presence>\n )\n }\n)\n\nCollapsibleContent.displayName = CONTENT_NAME\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype CollapsibleContentImplElement = TamaguiElement\ninterface CollapsibleContentImplProps extends StackProps {\n present: boolean\n}\n\nconst CollapsibleContentImpl = React.forwardRef<\n CollapsibleContentImplElement,\n CollapsibleContentImplProps\n>((props: ScopedProps<CollapsibleContentImplProps>, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible)\n const [isPresent, setIsPresent] = React.useState(present)\n const ref = React.useRef<CollapsibleContentImplElement>(null)\n const composedRefs = useComposedRefs(forwardedRef, ref)\n const heightRef = React.useRef<number | undefined>(0)\n const height = heightRef.current\n const widthRef = React.useRef<number | undefined>(0)\n const width = widthRef.current\n // when opening we want it to immediately open to retrieve dimensions\n // when closing we delay `present` to retrieve dimensions before closing\n const isOpen = context.open || isPresent\n const isMountAnimationPreventedRef = React.useRef(isOpen)\n const originalStylesRef = React.useRef<Record<string, string>>()\n\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => (isMountAnimationPreventedRef.current = false))\n return () => cancelAnimationFrame(rAF)\n }, [])\n\n // useIsomorphicLayoutEffect(() => {\n // const node = ref.current\n // if (node) {\n // originalStylesRef.current = originalStylesRef.current || {\n // transitionDuration: node.style.transitionDuration,\n // animationDuration: node.style.animationDuration,\n // animationFillMode: node.style.animationFillMode,\n // }\n // // block any animations/transitions so the element renders at its full dimensions\n // node.style.transitionDuration = '0s'\n // node.style.animationDuration = '0s'\n // node.style.animationFillMode = 'none'\n\n // // get width and height from full dimensions\n // const rect = node.getBoundingClientRect()\n // heightRef.current = rect.height\n // widthRef.current = rect.width\n\n // // kick off any animations/transitions that were originally set up if it isn't the initial mount\n // if (!isMountAnimationPreventedRef.current) {\n // node.style.transitionDuration = originalStylesRef.current.transitionDuration\n // node.style.animationDuration = originalStylesRef.current.animationDuration\n // node.style.animationFillMode = originalStylesRef.current.animationFillMode\n // }\n\n // setIsPresent(present)\n // }\n // /**\n // * depends on `context.open` because it will change to `false`\n // * when a close is triggered but `present` will be `false` on\n // * animation end (so when close finishes). This allows us to\n // * retrieve the dimensions *before* closing.\n // */\n // }, [context.open, present])\n\n return (\n <Stack\n data-state={getState(context.open)}\n data-disabled={context.disabled ? '' : undefined}\n id={context.contentId}\n hidden={!isOpen}\n {...contentProps}\n // @ts-expect-error\n ref={composedRefs}\n // style={{\n // [`--radix-collapsible-content-height` as any]: height ? `${height}px` : undefined,\n // [`--radix-collapsible-content-width` as any]: width ? `${width}px` : undefined,\n // ...props.style,\n // }}\n >\n {isOpen && children}\n </Stack>\n )\n})\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open?: boolean) {\n return open ? 'open' : 'closed'\n}\n\nconst Root = Collapsible\nconst Trigger = CollapsibleTrigger\nconst Content = CollapsibleContent\n\nexport {\n createCollapsibleScope,\n //\n Collapsible,\n CollapsibleTrigger,\n CollapsibleContent,\n //\n Root,\n Trigger,\n Content,\n}\nexport type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
|
|
5
|
-
"mappings": "AAAA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAGA;AACA;AAMA,MAAM,mBAAmB;AAGzB,MAAM,CAAC,0BAA0B,0BAA0B,mBAAmB,gBAAgB;AAS9F,MAAM,CAAC,qBAAqB,yBAC1B,yBAAkD,gBAAgB;AAUpE,MAAM,cAAc,MAAM,WACxB,CAAC,OAAsC,iBAAiB;AACtD,
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAGA;AACA;AAMA,MAAM,mBAAmB;AAGzB,MAAM,CAAC,0BAA0B,0BAA0B,mBAAmB,gBAAgB;AAS9F,MAAM,CAAC,qBAAqB,yBAC1B,yBAAkD,gBAAgB;AAUpE,MAAM,cAAc,MAAM,WACxB,CAAC,OAAsC,iBAAiB;AACtD,QAOI,YANF;AAAA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,MAEE,IADC,6BACD,IADC;AAAA,IALH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAIF,QAAM,CAAC,MAAM,W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
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@gorhom/bottom-sheet": "^4.3.1",
|
|
21
|
-
"@tamagui/compose-refs": "^1.0.1-beta.
|
|
22
|
-
"@tamagui/core": "^1.0.1-beta.
|
|
23
|
-
"@tamagui/create-context": "^1.0.1-beta.
|
|
24
|
-
"@tamagui/polyfill-dev": "^1.0.1-beta.
|
|
25
|
-
"@tamagui/stacks": "^1.0.1-beta.
|
|
26
|
-
"@tamagui/use-controllable-state": "^1.0.1-beta.
|
|
21
|
+
"@tamagui/compose-refs": "^1.0.1-beta.76",
|
|
22
|
+
"@tamagui/core": "^1.0.1-beta.76",
|
|
23
|
+
"@tamagui/create-context": "^1.0.1-beta.76",
|
|
24
|
+
"@tamagui/polyfill-dev": "^1.0.1-beta.76",
|
|
25
|
+
"@tamagui/stacks": "^1.0.1-beta.76",
|
|
26
|
+
"@tamagui/use-controllable-state": "^1.0.1-beta.76",
|
|
27
27
|
"react-native-reanimated": "~2.8.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-native-gesture-handler": "*"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
35
|
+
"@tamagui/build": "^1.0.1-beta.76",
|
|
36
36
|
"react": "*",
|
|
37
37
|
"react-dom": "*",
|
|
38
38
|
"react-native-gesture-handler": "*"
|