@appfunnel-dev/sdk 0.7.0 → 0.9.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/README.md +2 -80
- package/dist/elements/index.cjs +49 -4
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +19 -1
- package/dist/elements/index.d.ts +19 -1
- package/dist/elements/index.js +49 -5
- package/dist/elements/index.js.map +1 -1
- package/dist/index.cjs +759 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +761 -59
- package/dist/index.js.map +1 -1
- package/dist/{internal-C7seLJBr.d.cts → internal-C9MOEdND.d.cts} +11 -12
- package/dist/{internal-C7seLJBr.d.ts → internal-C9MOEdND.d.ts} +11 -12
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/package.json +1 -1
|
@@ -599,4 +599,22 @@ interface MultiSelectProps<T> {
|
|
|
599
599
|
}
|
|
600
600
|
declare function MultiSelect<T>({ responseKey, options, keyExtractor, renderItem, min, max, className, }: MultiSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
601
601
|
|
|
602
|
-
|
|
602
|
+
interface LoadingProps {
|
|
603
|
+
/** Spinner color (default: currentColor, inherits from parent) */
|
|
604
|
+
color?: string;
|
|
605
|
+
/** Predefined size preset (default: 'md') */
|
|
606
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
607
|
+
/** Custom size in pixels — overrides the size preset */
|
|
608
|
+
customSize?: number;
|
|
609
|
+
/** Border width in pixels — overrides the size preset */
|
|
610
|
+
borderWidth?: number;
|
|
611
|
+
/** Animation speed in milliseconds (default: 800) */
|
|
612
|
+
speed?: number;
|
|
613
|
+
/** Additional CSS class name */
|
|
614
|
+
className?: string;
|
|
615
|
+
/** Additional inline styles */
|
|
616
|
+
style?: CSSProperties;
|
|
617
|
+
}
|
|
618
|
+
declare function Loading({ color, size, customSize, borderWidth, speed, className, style, }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
619
|
+
|
|
620
|
+
export { Carousel, type CarouselHandle, type CarouselProps, CountUp, type CountUpHandle, type CountUpProps, Dialog, type DialogHandle, type DialogProps, Drawer, type DrawerHandle, type DrawerProps, type EasingType, Loading, type LoadingProps, Marquee, type MarqueeHandle, type MarqueeProps, MultiSelect, type MultiSelectProps, ProgressBar, type ProgressBarCheckpoint, type ProgressBarHandle, type ProgressBarProps, ProgressCircle, type ProgressCircleCheckpoint, type ProgressCircleHandle, type ProgressCircleProps, SingleSelect, type SingleSelectProps, type SpinnerSegment, SpinnerWheel, type SpinnerWheelHandle, type SpinnerWheelProps };
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -599,4 +599,22 @@ interface MultiSelectProps<T> {
|
|
|
599
599
|
}
|
|
600
600
|
declare function MultiSelect<T>({ responseKey, options, keyExtractor, renderItem, min, max, className, }: MultiSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
601
601
|
|
|
602
|
-
|
|
602
|
+
interface LoadingProps {
|
|
603
|
+
/** Spinner color (default: currentColor, inherits from parent) */
|
|
604
|
+
color?: string;
|
|
605
|
+
/** Predefined size preset (default: 'md') */
|
|
606
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
607
|
+
/** Custom size in pixels — overrides the size preset */
|
|
608
|
+
customSize?: number;
|
|
609
|
+
/** Border width in pixels — overrides the size preset */
|
|
610
|
+
borderWidth?: number;
|
|
611
|
+
/** Animation speed in milliseconds (default: 800) */
|
|
612
|
+
speed?: number;
|
|
613
|
+
/** Additional CSS class name */
|
|
614
|
+
className?: string;
|
|
615
|
+
/** Additional inline styles */
|
|
616
|
+
style?: CSSProperties;
|
|
617
|
+
}
|
|
618
|
+
declare function Loading({ color, size, customSize, borderWidth, speed, className, style, }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
619
|
+
|
|
620
|
+
export { Carousel, type CarouselHandle, type CarouselProps, CountUp, type CountUpHandle, type CountUpProps, Dialog, type DialogHandle, type DialogProps, Drawer, type DrawerHandle, type DrawerProps, type EasingType, Loading, type LoadingProps, Marquee, type MarqueeHandle, type MarqueeProps, MultiSelect, type MultiSelectProps, ProgressBar, type ProgressBarCheckpoint, type ProgressBarHandle, type ProgressBarProps, ProgressCircle, type ProgressCircleCheckpoint, type ProgressCircleHandle, type ProgressCircleProps, SingleSelect, type SingleSelectProps, type SpinnerSegment, SpinnerWheel, type SpinnerWheelHandle, type SpinnerWheelProps };
|
package/dist/elements/index.js
CHANGED
|
@@ -11392,8 +11392,8 @@ var Dialog2 = forwardRef(function Dialog3({
|
|
|
11392
11392
|
overlayColor = "rgba(0, 0, 0, 0.5)",
|
|
11393
11393
|
backgroundColor = "#ffffff",
|
|
11394
11394
|
borderRadius = 16,
|
|
11395
|
-
maxWidth =
|
|
11396
|
-
padding =
|
|
11395
|
+
maxWidth = 600,
|
|
11396
|
+
padding = 16,
|
|
11397
11397
|
style,
|
|
11398
11398
|
className
|
|
11399
11399
|
}, ref) {
|
|
@@ -11480,8 +11480,7 @@ var Dialog2 = forwardRef(function Dialog3({
|
|
|
11480
11480
|
display: "flex",
|
|
11481
11481
|
flexDirection: "row",
|
|
11482
11482
|
alignItems: "center",
|
|
11483
|
-
justifyContent: "space-between"
|
|
11484
|
-
padding: "16px 16px"
|
|
11483
|
+
justifyContent: "space-between"
|
|
11485
11484
|
},
|
|
11486
11485
|
children: [
|
|
11487
11486
|
showClose ? /* @__PURE__ */ jsx(
|
|
@@ -12131,7 +12130,52 @@ function MultiSelect({
|
|
|
12131
12130
|
return /* @__PURE__ */ jsx("div", { onClick: () => handleToggle(key), style: { cursor: "pointer" }, children: renderItem({ item, index, active }) }, key);
|
|
12132
12131
|
}) });
|
|
12133
12132
|
}
|
|
12133
|
+
var SIZE = {
|
|
12134
|
+
xs: { size: 20, border: 2 },
|
|
12135
|
+
sm: { size: 30, border: 3 },
|
|
12136
|
+
md: { size: 40, border: 3 },
|
|
12137
|
+
lg: { size: 50, border: 4 },
|
|
12138
|
+
xl: { size: 60, border: 4 }
|
|
12139
|
+
};
|
|
12140
|
+
function Loading({
|
|
12141
|
+
color: color2,
|
|
12142
|
+
size = "md",
|
|
12143
|
+
customSize,
|
|
12144
|
+
borderWidth,
|
|
12145
|
+
speed = 800,
|
|
12146
|
+
className,
|
|
12147
|
+
style
|
|
12148
|
+
}) {
|
|
12149
|
+
const preset = SIZE[size];
|
|
12150
|
+
const finalSize = customSize ?? preset.size;
|
|
12151
|
+
const finalBorder = borderWidth ?? preset.border;
|
|
12152
|
+
const borderColor = color2 ? `color-mix(in srgb, ${color2} 30%, transparent)` : "color-mix(in srgb, currentColor 30%, transparent)";
|
|
12153
|
+
const topColor = color2 ?? "currentColor";
|
|
12154
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12155
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
12156
|
+
@keyframes appfunnel-loading-spin {
|
|
12157
|
+
to { transform: rotate(360deg); }
|
|
12158
|
+
}
|
|
12159
|
+
` }),
|
|
12160
|
+
/* @__PURE__ */ jsx(
|
|
12161
|
+
"div",
|
|
12162
|
+
{
|
|
12163
|
+
className,
|
|
12164
|
+
style: {
|
|
12165
|
+
display: "inline-block",
|
|
12166
|
+
width: finalSize,
|
|
12167
|
+
height: finalSize,
|
|
12168
|
+
border: `${finalBorder}px solid ${borderColor}`,
|
|
12169
|
+
borderRadius: "50%",
|
|
12170
|
+
borderTopColor: topColor,
|
|
12171
|
+
animation: `appfunnel-loading-spin ${speed}ms linear infinite`,
|
|
12172
|
+
...style
|
|
12173
|
+
}
|
|
12174
|
+
}
|
|
12175
|
+
)
|
|
12176
|
+
] });
|
|
12177
|
+
}
|
|
12134
12178
|
|
|
12135
|
-
export { Carousel, CountUp, Dialog2 as Dialog, Drawer, Marquee, MultiSelect, ProgressBar, ProgressCircle, SingleSelect, SpinnerWheel, motion };
|
|
12179
|
+
export { Carousel, CountUp, Dialog2 as Dialog, Drawer, Loading, Marquee, MultiSelect, ProgressBar, ProgressCircle, SingleSelect, SpinnerWheel, motion };
|
|
12136
12180
|
//# sourceMappingURL=index.js.map
|
|
12137
12181
|
//# sourceMappingURL=index.js.map
|