@tamagui/collapsible 1.15.14 → 1.15.16

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.
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collapsible.tsx"],
4
- "sourcesContent": ["export const Collapsible = {}\n\n// import { useComposedRefs } from '@tamagui/compose-refs'\n// import { Stack, StackProps, TamaguiElement, composeEventHandlers, useId } from '@tamagui/core'\n// import type { Scope } from '@tamagui/create-context'\n// import { createContextScope } from '@tamagui/create-context'\n// // import { Presence } from '@tamagui/react-presence'\n// import { useControllableState } from '@tamagui/use-controllable-state'\n// import * as React from 'react'\n\n// /* -------------------------------------------------------------------------------------------------\n// * Collapsible\n// * -----------------------------------------------------------------------------------------------*/\n\n// const COLLAPSIBLE_NAME = 'Collapsible'\n\n// type ScopedProps<P> = P & { __scopeCollapsible?: Scope }\n// const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\n// type CollapsibleContextValue = {\n// contentId: string\n// disabled?: boolean\n// open: boolean\n// onOpenToggle(): void\n// }\n\n// const [CollapsibleProvider, useCollapsibleContext] =\n// createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\n// type CollapsibleElement = TamaguiElement\n// interface CollapsibleProps extends StackProps {\n// defaultOpen?: boolean\n// open?: boolean\n// disabled?: boolean\n// onOpenChange?(open: boolean): void\n// }\n\n// const 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// ref={forwardedRef}\n// />\n// </CollapsibleProvider>\n// )\n// }\n// )\n\n// Collapsible.displayName = COLLAPSIBLE_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleTrigger\n// * -----------------------------------------------------------------------------------------------*/\n\n// const TRIGGER_NAME = 'CollapsibleTrigger'\n\n// type CollapsibleTriggerElement = TamaguiElement\n// interface CollapsibleTriggerProps extends StackProps {}\n\n// const 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// ref={forwardedRef}\n// //\n// // onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n// />\n// )\n// }\n// )\n\n// CollapsibleTrigger.displayName = TRIGGER_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleContent\n// * -----------------------------------------------------------------------------------------------*/\n\n// const CONTENT_NAME = 'CollapsibleContent'\n\n// type CollapsibleContentElement = CollapsibleContentImplElement\n// interface 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\n// const 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\n// CollapsibleContent.displayName = CONTENT_NAME\n\n// /* -----------------------------------------------------------------------------------------------*/\n\n// type CollapsibleContentImplElement = TamaguiElement\n// interface CollapsibleContentImplProps extends StackProps {\n// present: boolean\n// }\n\n// const 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\n// function getState(open?: boolean) {\n// return open ? 'open' : 'closed'\n// }\n\n// const Root = Collapsible\n// const Trigger = CollapsibleTrigger\n// const Content = CollapsibleContent\n\n// export {\n// createCollapsibleScope,\n// //\n// Collapsible,\n// CollapsibleTrigger,\n// CollapsibleContent,\n// //\n// Root,\n// Trigger,\n// Content,\n// }\n// export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
5
4
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAc,CAAC;",
6
5
  "names": []
7
6
  }
package/dist/cjs/index.js CHANGED
@@ -16,4 +16,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var src_exports = {};
17
17
  module.exports = __toCommonJS(src_exports);
18
18
  __reExport(src_exports, require("./Collapsible"), module.exports);
19
+ // Annotate the CommonJS export names for ESM import in node:
20
+ 0 && (module.exports = {
21
+ ...require("./Collapsible")
22
+ });
19
23
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Collapsible'\n"],
5
4
  "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,0BAAd;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collapsible.tsx"],
4
- "sourcesContent": ["export const Collapsible = {}\n\n// import { useComposedRefs } from '@tamagui/compose-refs'\n// import { Stack, StackProps, TamaguiElement, composeEventHandlers, useId } from '@tamagui/core'\n// import type { Scope } from '@tamagui/create-context'\n// import { createContextScope } from '@tamagui/create-context'\n// // import { Presence } from '@tamagui/react-presence'\n// import { useControllableState } from '@tamagui/use-controllable-state'\n// import * as React from 'react'\n\n// /* -------------------------------------------------------------------------------------------------\n// * Collapsible\n// * -----------------------------------------------------------------------------------------------*/\n\n// const COLLAPSIBLE_NAME = 'Collapsible'\n\n// type ScopedProps<P> = P & { __scopeCollapsible?: Scope }\n// const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\n// type CollapsibleContextValue = {\n// contentId: string\n// disabled?: boolean\n// open: boolean\n// onOpenToggle(): void\n// }\n\n// const [CollapsibleProvider, useCollapsibleContext] =\n// createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\n// type CollapsibleElement = TamaguiElement\n// interface CollapsibleProps extends StackProps {\n// defaultOpen?: boolean\n// open?: boolean\n// disabled?: boolean\n// onOpenChange?(open: boolean): void\n// }\n\n// const 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// ref={forwardedRef}\n// />\n// </CollapsibleProvider>\n// )\n// }\n// )\n\n// Collapsible.displayName = COLLAPSIBLE_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleTrigger\n// * -----------------------------------------------------------------------------------------------*/\n\n// const TRIGGER_NAME = 'CollapsibleTrigger'\n\n// type CollapsibleTriggerElement = TamaguiElement\n// interface CollapsibleTriggerProps extends StackProps {}\n\n// const 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// ref={forwardedRef}\n// //\n// // onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n// />\n// )\n// }\n// )\n\n// CollapsibleTrigger.displayName = TRIGGER_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleContent\n// * -----------------------------------------------------------------------------------------------*/\n\n// const CONTENT_NAME = 'CollapsibleContent'\n\n// type CollapsibleContentElement = CollapsibleContentImplElement\n// interface 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\n// const 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\n// CollapsibleContent.displayName = CONTENT_NAME\n\n// /* -----------------------------------------------------------------------------------------------*/\n\n// type CollapsibleContentImplElement = TamaguiElement\n// interface CollapsibleContentImplProps extends StackProps {\n// present: boolean\n// }\n\n// const 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\n// function getState(open?: boolean) {\n// return open ? 'open' : 'closed'\n// }\n\n// const Root = Collapsible\n// const Trigger = CollapsibleTrigger\n// const Content = CollapsibleContent\n\n// export {\n// createCollapsibleScope,\n// //\n// Collapsible,\n// CollapsibleTrigger,\n// CollapsibleContent,\n// //\n// Root,\n// Trigger,\n// Content,\n// }\n// export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
5
4
  "mappings": "AAAO,MAAM,cAAc,CAAC;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collapsible.tsx"],
4
- "sourcesContent": ["export const Collapsible = {}\n\n// import { useComposedRefs } from '@tamagui/compose-refs'\n// import { Stack, StackProps, TamaguiElement, composeEventHandlers, useId } from '@tamagui/core'\n// import type { Scope } from '@tamagui/create-context'\n// import { createContextScope } from '@tamagui/create-context'\n// // import { Presence } from '@tamagui/react-presence'\n// import { useControllableState } from '@tamagui/use-controllable-state'\n// import * as React from 'react'\n\n// /* -------------------------------------------------------------------------------------------------\n// * Collapsible\n// * -----------------------------------------------------------------------------------------------*/\n\n// const COLLAPSIBLE_NAME = 'Collapsible'\n\n// type ScopedProps<P> = P & { __scopeCollapsible?: Scope }\n// const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\n// type CollapsibleContextValue = {\n// contentId: string\n// disabled?: boolean\n// open: boolean\n// onOpenToggle(): void\n// }\n\n// const [CollapsibleProvider, useCollapsibleContext] =\n// createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\n// type CollapsibleElement = TamaguiElement\n// interface CollapsibleProps extends StackProps {\n// defaultOpen?: boolean\n// open?: boolean\n// disabled?: boolean\n// onOpenChange?(open: boolean): void\n// }\n\n// const 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// ref={forwardedRef}\n// />\n// </CollapsibleProvider>\n// )\n// }\n// )\n\n// Collapsible.displayName = COLLAPSIBLE_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleTrigger\n// * -----------------------------------------------------------------------------------------------*/\n\n// const TRIGGER_NAME = 'CollapsibleTrigger'\n\n// type CollapsibleTriggerElement = TamaguiElement\n// interface CollapsibleTriggerProps extends StackProps {}\n\n// const 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// ref={forwardedRef}\n// //\n// // onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n// />\n// )\n// }\n// )\n\n// CollapsibleTrigger.displayName = TRIGGER_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleContent\n// * -----------------------------------------------------------------------------------------------*/\n\n// const CONTENT_NAME = 'CollapsibleContent'\n\n// type CollapsibleContentElement = CollapsibleContentImplElement\n// interface 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\n// const 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\n// CollapsibleContent.displayName = CONTENT_NAME\n\n// /* -----------------------------------------------------------------------------------------------*/\n\n// type CollapsibleContentImplElement = TamaguiElement\n// interface CollapsibleContentImplProps extends StackProps {\n// present: boolean\n// }\n\n// const 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\n// function getState(open?: boolean) {\n// return open ? 'open' : 'closed'\n// }\n\n// const Root = Collapsible\n// const Trigger = CollapsibleTrigger\n// const Content = CollapsibleContent\n\n// export {\n// createCollapsibleScope,\n// //\n// Collapsible,\n// CollapsibleTrigger,\n// CollapsibleContent,\n// //\n// Root,\n// Trigger,\n// Content,\n// }\n// export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
5
4
  "mappings": "AAAO,MAAM,cAAc,CAAC;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Collapsible'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Collapsible'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collapsible.tsx"],
4
- "sourcesContent": ["export const Collapsible = {}\n\n// import { useComposedRefs } from '@tamagui/compose-refs'\n// import { Stack, StackProps, TamaguiElement, composeEventHandlers, useId } from '@tamagui/core'\n// import type { Scope } from '@tamagui/create-context'\n// import { createContextScope } from '@tamagui/create-context'\n// // import { Presence } from '@tamagui/react-presence'\n// import { useControllableState } from '@tamagui/use-controllable-state'\n// import * as React from 'react'\n\n// /* -------------------------------------------------------------------------------------------------\n// * Collapsible\n// * -----------------------------------------------------------------------------------------------*/\n\n// const COLLAPSIBLE_NAME = 'Collapsible'\n\n// type ScopedProps<P> = P & { __scopeCollapsible?: Scope }\n// const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\n// type CollapsibleContextValue = {\n// contentId: string\n// disabled?: boolean\n// open: boolean\n// onOpenToggle(): void\n// }\n\n// const [CollapsibleProvider, useCollapsibleContext] =\n// createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\n// type CollapsibleElement = TamaguiElement\n// interface CollapsibleProps extends StackProps {\n// defaultOpen?: boolean\n// open?: boolean\n// disabled?: boolean\n// onOpenChange?(open: boolean): void\n// }\n\n// const 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// ref={forwardedRef}\n// />\n// </CollapsibleProvider>\n// )\n// }\n// )\n\n// Collapsible.displayName = COLLAPSIBLE_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleTrigger\n// * -----------------------------------------------------------------------------------------------*/\n\n// const TRIGGER_NAME = 'CollapsibleTrigger'\n\n// type CollapsibleTriggerElement = TamaguiElement\n// interface CollapsibleTriggerProps extends StackProps {}\n\n// const 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// ref={forwardedRef}\n// //\n// // onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n// />\n// )\n// }\n// )\n\n// CollapsibleTrigger.displayName = TRIGGER_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleContent\n// * -----------------------------------------------------------------------------------------------*/\n\n// const CONTENT_NAME = 'CollapsibleContent'\n\n// type CollapsibleContentElement = CollapsibleContentImplElement\n// interface 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\n// const 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\n// CollapsibleContent.displayName = CONTENT_NAME\n\n// /* -----------------------------------------------------------------------------------------------*/\n\n// type CollapsibleContentImplElement = TamaguiElement\n// interface CollapsibleContentImplProps extends StackProps {\n// present: boolean\n// }\n\n// const 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\n// function getState(open?: boolean) {\n// return open ? 'open' : 'closed'\n// }\n\n// const Root = Collapsible\n// const Trigger = CollapsibleTrigger\n// const Content = CollapsibleContent\n\n// export {\n// createCollapsibleScope,\n// //\n// Collapsible,\n// CollapsibleTrigger,\n// CollapsibleContent,\n// //\n// Root,\n// Trigger,\n// Content,\n// }\n// export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
5
4
  "mappings": "AAAO,MAAM,cAAc,CAAC;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Collapsible.tsx"],
4
- "sourcesContent": ["export const Collapsible = {}\n\n// import { useComposedRefs } from '@tamagui/compose-refs'\n// import { Stack, StackProps, TamaguiElement, composeEventHandlers, useId } from '@tamagui/core'\n// import type { Scope } from '@tamagui/create-context'\n// import { createContextScope } from '@tamagui/create-context'\n// // import { Presence } from '@tamagui/react-presence'\n// import { useControllableState } from '@tamagui/use-controllable-state'\n// import * as React from 'react'\n\n// /* -------------------------------------------------------------------------------------------------\n// * Collapsible\n// * -----------------------------------------------------------------------------------------------*/\n\n// const COLLAPSIBLE_NAME = 'Collapsible'\n\n// type ScopedProps<P> = P & { __scopeCollapsible?: Scope }\n// const [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME)\n\n// type CollapsibleContextValue = {\n// contentId: string\n// disabled?: boolean\n// open: boolean\n// onOpenToggle(): void\n// }\n\n// const [CollapsibleProvider, useCollapsibleContext] =\n// createCollapsibleContext<CollapsibleContextValue>(COLLAPSIBLE_NAME)\n\n// type CollapsibleElement = TamaguiElement\n// interface CollapsibleProps extends StackProps {\n// defaultOpen?: boolean\n// open?: boolean\n// disabled?: boolean\n// onOpenChange?(open: boolean): void\n// }\n\n// const 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// ref={forwardedRef}\n// />\n// </CollapsibleProvider>\n// )\n// }\n// )\n\n// Collapsible.displayName = COLLAPSIBLE_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleTrigger\n// * -----------------------------------------------------------------------------------------------*/\n\n// const TRIGGER_NAME = 'CollapsibleTrigger'\n\n// type CollapsibleTriggerElement = TamaguiElement\n// interface CollapsibleTriggerProps extends StackProps {}\n\n// const 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// ref={forwardedRef}\n// //\n// // onPress={composeEventHandlers(props.onPress, context.onOpenToggle)}\n// />\n// )\n// }\n// )\n\n// CollapsibleTrigger.displayName = TRIGGER_NAME\n\n// /* -------------------------------------------------------------------------------------------------\n// * CollapsibleContent\n// * -----------------------------------------------------------------------------------------------*/\n\n// const CONTENT_NAME = 'CollapsibleContent'\n\n// type CollapsibleContentElement = CollapsibleContentImplElement\n// interface 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\n// const 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\n// CollapsibleContent.displayName = CONTENT_NAME\n\n// /* -----------------------------------------------------------------------------------------------*/\n\n// type CollapsibleContentImplElement = TamaguiElement\n// interface CollapsibleContentImplProps extends StackProps {\n// present: boolean\n// }\n\n// const 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\n// function getState(open?: boolean) {\n// return open ? 'open' : 'closed'\n// }\n\n// const Root = Collapsible\n// const Trigger = CollapsibleTrigger\n// const Content = CollapsibleContent\n\n// export {\n// createCollapsibleScope,\n// //\n// Collapsible,\n// CollapsibleTrigger,\n// CollapsibleContent,\n// //\n// Root,\n// Trigger,\n// Content,\n// }\n// export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleContentProps }\n"],
5
4
  "mappings": "AAAO,MAAM,cAAc,CAAC;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Collapsible'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './Collapsible'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/collapsible",
3
- "version": "1.15.14",
3
+ "version": "1.15.16",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -17,18 +17,18 @@
17
17
  "watch": "tamagui-build --watch"
18
18
  },
19
19
  "dependencies": {
20
- "@tamagui/compose-refs": "1.15.14",
21
- "@tamagui/core": "1.15.14",
22
- "@tamagui/create-context": "1.15.14",
23
- "@tamagui/polyfill-dev": "1.15.14",
24
- "@tamagui/stacks": "1.15.14",
25
- "@tamagui/use-controllable-state": "1.15.14"
20
+ "@tamagui/compose-refs": "1.15.16",
21
+ "@tamagui/core": "1.15.16",
22
+ "@tamagui/create-context": "1.15.16",
23
+ "@tamagui/polyfill-dev": "1.15.16",
24
+ "@tamagui/stacks": "1.15.16",
25
+ "@tamagui/use-controllable-state": "1.15.16"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "1.15.14",
31
+ "@tamagui/build": "1.15.16",
32
32
  "react": "^18.2.0"
33
33
  },
34
34
  "publishConfig": {