@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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkECWTUTEJ_cjs = require('../chunk-ECWTUTEJ.cjs');
4
- var chunk5E6WNNU4_cjs = require('../chunk-5E6WNNU4.cjs');
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(chunk5E6WNNU4_cjs.__require("@emotion/is-prop-valid").default);
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] = chunkECWTUTEJ_cjs.useResponse(responseKey);
12090
- const { goToNextPage } = chunkECWTUTEJ_cjs.useNavigation();
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("div", { onClick: () => handleSelect(key), style: { cursor: "pointer" }, children: renderItem({ item, index, active }) }, key);
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] = chunkECWTUTEJ_cjs.useResponse(responseKey);
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("div", { onClick: () => handleToggle(key), style: { cursor: "pointer" }, children: renderItem({ item, index, active }) }, key);
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 = {