@appfunnel-dev/sdk 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GZKA33W2.js → chunk-CMVB7RQE.js} +3 -3
- package/dist/{chunk-GZKA33W2.js.map → chunk-CMVB7RQE.js.map} +1 -1
- package/dist/{chunk-DAHMOQ63.js → chunk-EB5VWGR4.js} +163 -4
- package/dist/chunk-EB5VWGR4.js.map +1 -0
- package/dist/{chunk-5E6WNNU4.cjs → chunk-KEFKKBBP.cjs} +162 -3
- package/dist/chunk-KEFKKBBP.cjs.map +1 -0
- package/dist/{chunk-ECWTUTEJ.cjs → chunk-QG6CE7L7.cjs} +6 -6
- package/dist/{chunk-ECWTUTEJ.cjs.map → chunk-QG6CE7L7.cjs.map} +1 -1
- package/dist/elements/index.cjs +28 -8
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +6 -2
- package/dist/elements/index.d.ts +6 -2
- package/dist/elements/index.js +24 -4
- package/dist/elements/index.js.map +1 -1
- package/dist/index.cjs +30 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -18
- package/dist/index.d.ts +34 -18
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/{internal-BuotLNwa.d.cts → internal-twwb8xjX.d.cts} +8 -0
- package/dist/{internal-BuotLNwa.d.ts → internal-twwb8xjX.d.ts} +8 -0
- package/dist/internal.cjs +2 -2
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5E6WNNU4.cjs.map +0 -1
- package/dist/chunk-DAHMOQ63.js.map +0 -1
package/dist/elements/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQG6CE7L7_cjs = require('../chunk-QG6CE7L7.cjs');
|
|
4
|
+
var chunkKEFKKBBP_cjs = require('../chunk-KEFKKBBP.cjs');
|
|
5
5
|
var React27 = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var ReactDOM = require('react-dom');
|
|
@@ -7297,7 +7297,7 @@ function loadExternalIsValidProp(isValidProp) {
|
|
|
7297
7297
|
shouldForward = (key) => key.startsWith("on") ? !isValidMotionProp(key) : isValidProp(key);
|
|
7298
7298
|
}
|
|
7299
7299
|
try {
|
|
7300
|
-
loadExternalIsValidProp(
|
|
7300
|
+
loadExternalIsValidProp(chunkKEFKKBBP_cjs.__require("@emotion/is-prop-valid").default);
|
|
7301
7301
|
} catch {
|
|
7302
7302
|
}
|
|
7303
7303
|
function filterProps(props, isDom, forwardMotionProps) {
|
|
@@ -12084,10 +12084,11 @@ function SingleSelect({
|
|
|
12084
12084
|
renderItem,
|
|
12085
12085
|
autoAdvance = true,
|
|
12086
12086
|
autoAdvanceDelay = 200,
|
|
12087
|
+
clickAnimation = "none",
|
|
12087
12088
|
className
|
|
12088
12089
|
}) {
|
|
12089
|
-
const [selected, setSelected] =
|
|
12090
|
-
const { goToNextPage } =
|
|
12090
|
+
const [selected, setSelected] = chunkQG6CE7L7_cjs.useResponse(responseKey);
|
|
12091
|
+
const { goToNextPage } = chunkQG6CE7L7_cjs.useNavigation();
|
|
12091
12092
|
const getKey = React27.useCallback(
|
|
12092
12093
|
(item, index) => {
|
|
12093
12094
|
if (keyExtractor) return keyExtractor(item, index);
|
|
@@ -12110,7 +12111,16 @@ function SingleSelect({
|
|
|
12110
12111
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: options.map((item, index) => {
|
|
12111
12112
|
const key = getKey(item, index);
|
|
12112
12113
|
const active = selected === key;
|
|
12113
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12114
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12115
|
+
motion.div,
|
|
12116
|
+
{
|
|
12117
|
+
onClick: () => handleSelect(key),
|
|
12118
|
+
style: { cursor: "pointer" },
|
|
12119
|
+
...clickAnimation !== "none" ? { whileTap: { scale: clickAnimation === "shrink" ? 0.95 : 1.05 }, transition: { duration: 0.15 } } : {},
|
|
12120
|
+
children: renderItem({ item, index, active })
|
|
12121
|
+
},
|
|
12122
|
+
key
|
|
12123
|
+
);
|
|
12114
12124
|
}) });
|
|
12115
12125
|
}
|
|
12116
12126
|
function MultiSelect({
|
|
@@ -12120,9 +12130,10 @@ function MultiSelect({
|
|
|
12120
12130
|
renderItem,
|
|
12121
12131
|
min = 0,
|
|
12122
12132
|
max,
|
|
12133
|
+
clickAnimation = "none",
|
|
12123
12134
|
className
|
|
12124
12135
|
}) {
|
|
12125
|
-
const [selected, setSelected] =
|
|
12136
|
+
const [selected, setSelected] = chunkQG6CE7L7_cjs.useResponse(responseKey);
|
|
12126
12137
|
const currentSelection = selected ?? [];
|
|
12127
12138
|
const getKey = React27.useCallback(
|
|
12128
12139
|
(item, index) => {
|
|
@@ -12152,7 +12163,16 @@ function MultiSelect({
|
|
|
12152
12163
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: options.map((item, index) => {
|
|
12153
12164
|
const key = getKey(item, index);
|
|
12154
12165
|
const active = currentSelection.includes(key);
|
|
12155
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12166
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12167
|
+
motion.div,
|
|
12168
|
+
{
|
|
12169
|
+
onClick: () => handleToggle(key),
|
|
12170
|
+
style: { cursor: "pointer" },
|
|
12171
|
+
...clickAnimation !== "none" ? { whileTap: { scale: clickAnimation === "shrink" ? 0.95 : 1.05 }, transition: { duration: 0.15 } } : {},
|
|
12172
|
+
children: renderItem({ item, index, active })
|
|
12173
|
+
},
|
|
12174
|
+
key
|
|
12175
|
+
);
|
|
12156
12176
|
}) });
|
|
12157
12177
|
}
|
|
12158
12178
|
var SIZE = {
|