@tamagui/collapsible 2.0.0-rc.4 → 2.0.0-rc.40

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.
@@ -2,33 +2,35 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var Collapsible_exports = {};
33
35
  __export(Collapsible_exports, {
34
36
  Collapsible: () => Collapsible,
@@ -38,97 +40,97 @@ __export(Collapsible_exports, {
38
40
  CollapsibleTriggerFrame: () => CollapsibleTriggerFrame
39
41
  });
40
42
  module.exports = __toCommonJS(Collapsible_exports);
41
- var import_animate_presence = require("@tamagui/animate-presence"),
42
- import_helpers = require("@tamagui/helpers"),
43
- import_use_controllable_state = require("@tamagui/use-controllable-state"),
44
- import_web = require("@tamagui/web"),
45
- React = __toESM(require("react"), 1),
46
- import_jsx_runtime = require("react/jsx-runtime");
47
- const COLLAPSIBLE_NAME = "Collapsible",
48
- {
49
- Provider: CollapsibleProvider,
50
- useStyledContext: useCollapsibleContext
51
- } = (0, import_web.createStyledContext)(),
52
- _Collapsible = React.forwardRef((props, forwardedRef) => {
53
- const {
54
- __scopeCollapsible,
55
- open: openProp,
56
- defaultOpen,
57
- disabled,
58
- onOpenChange,
59
- ...collapsibleProps
60
- } = props,
61
- [open = !1, setOpen] = (0, import_use_controllable_state.useControllableState)({
62
- prop: openProp,
63
- defaultProp: defaultOpen,
64
- onChange: onOpenChange
65
- });
66
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleProvider, {
67
- scope: __scopeCollapsible,
68
- disabled,
69
- contentId: React.useId(),
70
- open,
71
- onOpenToggle: React.useCallback(() => setOpen(prevOpen => !prevOpen), [setOpen]),
72
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.View, {
73
- "data-state": getState(open),
74
- "data-disabled": disabled ? "" : void 0,
75
- ...collapsibleProps,
76
- ref: forwardedRef
77
- })
78
- });
43
+ var import_animate_presence = require("@tamagui/animate-presence");
44
+ var import_helpers = require("@tamagui/helpers");
45
+ var import_use_controllable_state = require("@tamagui/use-controllable-state");
46
+ var import_web = require("@tamagui/web");
47
+ var React = __toESM(require("react"), 1);
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ const COLLAPSIBLE_NAME = "Collapsible";
50
+ const {
51
+ Provider: CollapsibleProvider,
52
+ useStyledContext: useCollapsibleContext
53
+ } = (0, import_web.createStyledContext)();
54
+ const _Collapsible = React.forwardRef((props, forwardedRef) => {
55
+ const {
56
+ __scopeCollapsible,
57
+ open: openProp,
58
+ defaultOpen,
59
+ disabled,
60
+ onOpenChange,
61
+ ...collapsibleProps
62
+ } = props;
63
+ const [open = false, setOpen] = (0, import_use_controllable_state.useControllableState)({
64
+ prop: openProp,
65
+ defaultProp: defaultOpen,
66
+ onChange: onOpenChange
79
67
  });
68
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleProvider, {
69
+ scope: __scopeCollapsible,
70
+ disabled,
71
+ contentId: React.useId(),
72
+ open,
73
+ onOpenToggle: React.useCallback(() => setOpen(prevOpen => !prevOpen), [setOpen]),
74
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.View, {
75
+ "data-state": getState(open),
76
+ "data-disabled": disabled ? "" : void 0,
77
+ ...collapsibleProps,
78
+ ref: forwardedRef
79
+ })
80
+ });
81
+ });
80
82
  _Collapsible.displayName = COLLAPSIBLE_NAME;
81
- const TRIGGER_NAME = "CollapsibleTrigger",
82
- CollapsibleTriggerFrame = (0, import_web.styled)(import_web.View, {
83
- name: TRIGGER_NAME,
84
- render: "button"
85
- }),
86
- CollapsibleTrigger = CollapsibleTriggerFrame.styleable((props, forwardedRef) => {
87
- const {
88
- __scopeCollapsible,
89
- children,
90
- ...triggerProps
91
- } = props,
92
- context = useCollapsibleContext(__scopeCollapsible);
93
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleTriggerFrame, {
94
- "aria-controls": context.contentId,
95
- "aria-expanded": context.open || !1,
96
- "data-state": getState(context.open),
97
- "data-disabled": context.disabled ? "" : void 0,
98
- disabled: context.disabled,
99
- ...triggerProps,
100
- ref: forwardedRef,
101
- onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle),
102
- children: typeof children == "function" ? children({
103
- open: context.open
104
- }) : children
105
- });
83
+ const TRIGGER_NAME = "CollapsibleTrigger";
84
+ const CollapsibleTriggerFrame = (0, import_web.styled)(import_web.View, {
85
+ name: TRIGGER_NAME,
86
+ render: "button"
87
+ });
88
+ const CollapsibleTrigger = CollapsibleTriggerFrame.styleable((props, forwardedRef) => {
89
+ const {
90
+ __scopeCollapsible,
91
+ children,
92
+ ...triggerProps
93
+ } = props;
94
+ const context = useCollapsibleContext(__scopeCollapsible);
95
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleTriggerFrame, {
96
+ "aria-controls": context.contentId,
97
+ "aria-expanded": context.open || false,
98
+ "data-state": getState(context.open),
99
+ "data-disabled": context.disabled ? "" : void 0,
100
+ disabled: context.disabled,
101
+ ...triggerProps,
102
+ ref: forwardedRef,
103
+ onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle),
104
+ children: typeof children === "function" ? children({
105
+ open: context.open
106
+ }) : children
106
107
  });
108
+ });
107
109
  CollapsibleTrigger.displayName = TRIGGER_NAME;
108
- const CONTENT_NAME = "CollapsibleContent",
109
- CollapsibleContentFrame = (0, import_web.styled)(import_web.View, {
110
- name: CONTENT_NAME
111
- }),
112
- CollapsibleContent = CollapsibleContentFrame.styleable((props, forwardedRef) => {
113
- const {
114
- forceMount,
115
- children,
116
- // @ts-expect-error
117
- __scopeCollapsible,
118
- ...contentProps
119
- } = props,
120
- context = useCollapsibleContext(__scopeCollapsible);
121
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
110
+ const CONTENT_NAME = "CollapsibleContent";
111
+ const CollapsibleContentFrame = (0, import_web.styled)(import_web.View, {
112
+ name: CONTENT_NAME
113
+ });
114
+ const CollapsibleContent = CollapsibleContentFrame.styleable((props, forwardedRef) => {
115
+ const {
116
+ forceMount,
117
+ children,
118
+ // @ts-expect-error
119
+ __scopeCollapsible,
120
+ ...contentProps
121
+ } = props;
122
+ const context = useCollapsibleContext(__scopeCollapsible);
123
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
124
+ ...contentProps,
125
+ children: forceMount || context.open ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleContentFrame, {
126
+ ref: forwardedRef,
122
127
  ...contentProps,
123
- children: forceMount || context.open ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleContentFrame, {
124
- ref: forwardedRef,
125
- ...contentProps,
126
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {
127
- children
128
- })
129
- }) : null
130
- });
128
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {
129
+ children
130
+ })
131
+ }) : null
131
132
  });
133
+ });
132
134
  CollapsibleContent.displayName = CONTENT_NAME;
133
135
  function getState(open) {
134
136
  return open ? "open" : "closed";
@@ -4,33 +4,35 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var Collapsible_exports = {};
35
37
  __export(Collapsible_exports, {
36
38
  Collapsible: () => Collapsible,
@@ -40,101 +42,101 @@ __export(Collapsible_exports, {
40
42
  CollapsibleTriggerFrame: () => CollapsibleTriggerFrame
41
43
  });
42
44
  module.exports = __toCommonJS(Collapsible_exports);
43
- var import_jsx_runtime = require("react/jsx-runtime"),
44
- import_animate_presence = require("@tamagui/animate-presence"),
45
- import_helpers = require("@tamagui/helpers"),
46
- import_use_controllable_state = require("@tamagui/use-controllable-state"),
47
- import_web = require("@tamagui/web"),
48
- React = __toESM(require("react"), 1),
49
- COLLAPSIBLE_NAME = "Collapsible",
50
- {
51
- Provider: CollapsibleProvider,
52
- useStyledContext: useCollapsibleContext
53
- } = (0, import_web.createStyledContext)(),
54
- _Collapsible = /* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
55
- var {
56
- __scopeCollapsible,
57
- open: openProp,
58
- defaultOpen,
59
- disabled,
60
- onOpenChange,
61
- ...collapsibleProps
62
- } = props,
63
- [open = !1, setOpen] = (0, import_use_controllable_state.useControllableState)({
64
- prop: openProp,
65
- defaultProp: defaultOpen,
66
- onChange: onOpenChange
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
+ var import_animate_presence = require("@tamagui/animate-presence");
47
+ var import_helpers = require("@tamagui/helpers");
48
+ var import_use_controllable_state = require("@tamagui/use-controllable-state");
49
+ var import_web = require("@tamagui/web");
50
+ var React = __toESM(require("react"), 1);
51
+ var COLLAPSIBLE_NAME = "Collapsible";
52
+ var {
53
+ Provider: CollapsibleProvider,
54
+ useStyledContext: useCollapsibleContext
55
+ } = (0, import_web.createStyledContext)();
56
+ var _Collapsible = /* @__PURE__ */React.forwardRef(function (props, forwardedRef) {
57
+ var {
58
+ __scopeCollapsible,
59
+ open: openProp,
60
+ defaultOpen,
61
+ disabled,
62
+ onOpenChange,
63
+ ...collapsibleProps
64
+ } = props;
65
+ var [open = false, setOpen] = (0, import_use_controllable_state.useControllableState)({
66
+ prop: openProp,
67
+ defaultProp: defaultOpen,
68
+ onChange: onOpenChange
69
+ });
70
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleProvider, {
71
+ scope: __scopeCollapsible,
72
+ disabled,
73
+ contentId: React.useId(),
74
+ open,
75
+ onOpenToggle: React.useCallback(function () {
76
+ return setOpen(function (prevOpen) {
77
+ return !prevOpen;
67
78
  });
68
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleProvider, {
69
- scope: __scopeCollapsible,
70
- disabled,
71
- contentId: React.useId(),
72
- open,
73
- onOpenToggle: React.useCallback(function () {
74
- return setOpen(function (prevOpen) {
75
- return !prevOpen;
76
- });
77
- }, [setOpen]),
78
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.View, {
79
- "data-state": getState(open),
80
- "data-disabled": disabled ? "" : void 0,
81
- ...collapsibleProps,
82
- ref: forwardedRef
83
- })
84
- });
79
+ }, [setOpen]),
80
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.View, {
81
+ "data-state": getState(open),
82
+ "data-disabled": disabled ? "" : void 0,
83
+ ...collapsibleProps,
84
+ ref: forwardedRef
85
+ })
85
86
  });
87
+ });
86
88
  _Collapsible.displayName = COLLAPSIBLE_NAME;
87
- var TRIGGER_NAME = "CollapsibleTrigger",
88
- CollapsibleTriggerFrame = (0, import_web.styled)(import_web.View, {
89
- name: TRIGGER_NAME,
90
- render: "button"
91
- }),
92
- CollapsibleTrigger = CollapsibleTriggerFrame.styleable(function (props, forwardedRef) {
93
- var {
94
- __scopeCollapsible,
95
- children,
96
- ...triggerProps
97
- } = props,
98
- context = useCollapsibleContext(__scopeCollapsible);
99
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleTriggerFrame, {
100
- "aria-controls": context.contentId,
101
- "aria-expanded": context.open || !1,
102
- "data-state": getState(context.open),
103
- "data-disabled": context.disabled ? "" : void 0,
104
- disabled: context.disabled,
105
- ...triggerProps,
106
- ref: forwardedRef,
107
- onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle),
108
- children: typeof children == "function" ? children({
109
- open: context.open
110
- }) : children
111
- });
89
+ var TRIGGER_NAME = "CollapsibleTrigger";
90
+ var CollapsibleTriggerFrame = (0, import_web.styled)(import_web.View, {
91
+ name: TRIGGER_NAME,
92
+ render: "button"
93
+ });
94
+ var CollapsibleTrigger = CollapsibleTriggerFrame.styleable(function (props, forwardedRef) {
95
+ var {
96
+ __scopeCollapsible,
97
+ children,
98
+ ...triggerProps
99
+ } = props;
100
+ var context = useCollapsibleContext(__scopeCollapsible);
101
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleTriggerFrame, {
102
+ "aria-controls": context.contentId,
103
+ "aria-expanded": context.open || false,
104
+ "data-state": getState(context.open),
105
+ "data-disabled": context.disabled ? "" : void 0,
106
+ disabled: context.disabled,
107
+ ...triggerProps,
108
+ ref: forwardedRef,
109
+ onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle),
110
+ children: typeof children === "function" ? children({
111
+ open: context.open
112
+ }) : children
112
113
  });
114
+ });
113
115
  CollapsibleTrigger.displayName = TRIGGER_NAME;
114
- var CONTENT_NAME = "CollapsibleContent",
115
- CollapsibleContentFrame = (0, import_web.styled)(import_web.View, {
116
- name: CONTENT_NAME
117
- }),
118
- CollapsibleContent = CollapsibleContentFrame.styleable(function (props, forwardedRef) {
119
- var {
120
- forceMount,
121
- children,
122
- // @ts-expect-error
123
- __scopeCollapsible,
124
- ...contentProps
125
- } = props,
126
- context = useCollapsibleContext(__scopeCollapsible);
127
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
116
+ var CONTENT_NAME = "CollapsibleContent";
117
+ var CollapsibleContentFrame = (0, import_web.styled)(import_web.View, {
118
+ name: CONTENT_NAME
119
+ });
120
+ var CollapsibleContent = CollapsibleContentFrame.styleable(function (props, forwardedRef) {
121
+ var {
122
+ forceMount,
123
+ children,
124
+ // @ts-expect-error
125
+ __scopeCollapsible,
126
+ ...contentProps
127
+ } = props;
128
+ var context = useCollapsibleContext(__scopeCollapsible);
129
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.AnimatePresence, {
130
+ ...contentProps,
131
+ children: forceMount || context.open ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleContentFrame, {
132
+ ref: forwardedRef,
128
133
  ...contentProps,
129
- children: forceMount || context.open ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(CollapsibleContentFrame, {
130
- ref: forwardedRef,
131
- ...contentProps,
132
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {
133
- children
134
- })
135
- }) : null
136
- });
134
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {
135
+ children
136
+ })
137
+ }) : null
137
138
  });
139
+ });
138
140
  CollapsibleContent.displayName = CONTENT_NAME;
139
141
  function getState(open) {
140
142
  return open ? "open" : "closed";
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Collapsible_exports","__export","Collapsible","CollapsibleContent","CollapsibleContentFrame","CollapsibleTrigger","CollapsibleTriggerFrame","module","exports","import_jsx_runtime","require","import_animate_presence","import_helpers","import_use_controllable_state","import_web","React","__toESM","COLLAPSIBLE_NAME","Provider","CollapsibleProvider","useStyledContext","useCollapsibleContext","createStyledContext","_Collapsible","forwardRef","props","forwardedRef","__scopeCollapsible","open","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","children","View","getState","ref","displayName","TRIGGER_NAME","styled","name","render","styleable","triggerProps","context","onPress","composeEventHandlers","CONTENT_NAME","forceMount","contentProps","AnimatePresence","ResetPresence","withStaticProperties","Trigger","Content"],"sources":["../../src/Collapsible.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,kBAAA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vC;QAAkB;QACbnB,kBACA;QAAA,GAAAmC;MACmE,IAAArC,KAEvE;MAAAgC,OAAA,GAAApC,qBAAoB,CAAAM,kBAAwB;IAAwB,0BAAAlB,kBAAA,CAAA8B,GAAA,EAAA5B,uBAAA,CAAAoD,eAAA;MACvE,GAAAD,YAAA;MAEJhB,QAAA,EAAAe,UAAA,IAAAJ,OAAA,CAAA7B,IAAA,sBAAAnB,kBAAA,CAAA8B,GAAA,EAAAnC,uBAAA;QACF6C,GAAA,EAAAvB,YAAA;QAEA,GAAAoC,YAAmB;QAgBbhB,QAAA,iBAAe,IAAArC,kBAEf,CAAA8B,GAAA,EAAA5B,uBAA0B,CAAAqD,aAAO;UAC/BlB;QAGF;MAED;IACC;EAAM;AACJ3C,kBACA,CAAA+C,WAAA,GAAAU,YAAA;AAAA,SAAAZ,SAAApB,IAAA;EAAA,OAEAA,IAAA;AAAA;AACG,IACL1B,WACM,OAAAU,cAAU,CAAAqD,oBAAsB,EAAA1C,YAAkB;EAExD2C,OAAA,EACE7D,kBAAA;EAQJ8D,OAAA,EAAAhE;AACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Collapsible_exports","__export","Collapsible","CollapsibleContent","CollapsibleContentFrame","CollapsibleTrigger","CollapsibleTriggerFrame","module","exports","import_jsx_runtime","require","import_animate_presence","import_helpers","import_use_controllable_state","import_web","React","__toESM","COLLAPSIBLE_NAME","Provider","CollapsibleProvider","useStyledContext","useCollapsibleContext","createStyledContext","_Collapsible","forwardRef","props","forwardedRef","__scopeCollapsible","open","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","children","View","getState","ref","displayName","TRIGGER_NAME","styled","name","render","styleable","triggerProps","context","onPress","composeEventHandlers","CONTENT_NAME","forceMount","contentProps","AnimatePresence","ResetPresence","withStaticProperties","Trigger","Content"],"sources":["../../src/Collapsible.t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AAiB,kBAAAA,QAAA;MAC7DlB,IAAM,EAAE6B,OAAA,CAAA7B;IACR,KAAAkB;EAEA;AACE;AAACzC,kBAAA,CAAA6C,WAAA,GAAAC,YAAA;AAAA,IAAAS,YACC,uBAAuB;AAAA,IAAAxD,uBACR,OAAQU,UAAQ,CAAAsC,MAAA,EAAAtC,UAAA,CAAAiC,IAAA;EAAAM,IAAA,EAC/BO;AAAiC;AACM,IAAAzD,kBAC7B,GAAAC,uBAAQ,CAAAmD,SAAA,WAAA9B,KAAA,EAAAC,YAAA;EAAA;IACbmC,UACA;IAAAf,QACL;IAAwE;IAEHnB,kBAAA;IACvE,GAAAmC;EAEJ,IAAArC,KAAA;EACF,IAAAgC,OAAA,GAAApC,qBAAA,CAAAM,kBAAA;EAEA,sBAAmB,IAAAlB,kBAAc,CAAA8B,GAAA,EAAA5B,uBAAA,CAAAoD,eAAA;IAgBjC,GAAMD,YAAA;IAENhB,QAAM,EAAAe,UAAA,IAAAJ,OAAA,CAA0B7B,IAAA,kBAAO,IAAAnB,kBAAM,CAAA8B,GAAA,EAAAnC,uBAAA;MAC3C6C,GAAM,EAAAvB,YAAA;MACP,GAAAoC,YAAA;MAEKhB,QAAA,iBACJ,IAAArC,kBAAwB,CAAA8B,GAAA,EAAA5B,uBAAA,CAAAqD,aAAA;QACrBlB;MACC;IAAM,EACJ;EAAA;AACA;AAAA3C,kBAEA,CAAA+C,WAAA,GAAAU,YAAA;AAAA,SACGZ,SAAApB,IAAA;EAAA,OACDA,IAAA;AACJ;AAEA,IAAA1B,WACE,OAAAU,cAAA,CAAAqD,oBAAC,EAAA1C,YAAA;EAQL2C,OAAA,EAAA7D,kBAAA;EACF8D,OAAA,EAAAhE;AAEF","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}