@akropolys/kiku 1.0.0 → 1.0.2
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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3502 -3474
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -80,8 +80,9 @@ interface SparkleProps {
|
|
|
80
80
|
item?: string;
|
|
81
81
|
};
|
|
82
82
|
product?: Product;
|
|
83
|
+
children?: React.ReactNode;
|
|
83
84
|
}
|
|
84
|
-
declare function Sparkle({ productName, limit, onResult, backdropColor, backdropBlur, className, onNavigate, theme, classNames, product, }: SparkleProps): React.JSX.Element;
|
|
85
|
+
declare function Sparkle({ productName, limit, onResult, backdropColor, backdropBlur, className, onNavigate, theme, classNames, product, children, }: SparkleProps): React.JSX.Element;
|
|
85
86
|
|
|
86
87
|
declare function CartBadge({ className }: {
|
|
87
88
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -80,8 +80,9 @@ interface SparkleProps {
|
|
|
80
80
|
item?: string;
|
|
81
81
|
};
|
|
82
82
|
product?: Product;
|
|
83
|
+
children?: React.ReactNode;
|
|
83
84
|
}
|
|
84
|
-
declare function Sparkle({ productName, limit, onResult, backdropColor, backdropBlur, className, onNavigate, theme, classNames, product, }: SparkleProps): React.JSX.Element;
|
|
85
|
+
declare function Sparkle({ productName, limit, onResult, backdropColor, backdropBlur, className, onNavigate, theme, classNames, product, children, }: SparkleProps): React.JSX.Element;
|
|
85
86
|
|
|
86
87
|
declare function CartBadge({ className }: {
|
|
87
88
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -2023,7 +2023,8 @@ function Sparkle({
|
|
|
2023
2023
|
onNavigate,
|
|
2024
2024
|
theme,
|
|
2025
2025
|
classNames = {},
|
|
2026
|
-
product
|
|
2026
|
+
product,
|
|
2027
|
+
children
|
|
2027
2028
|
}) {
|
|
2028
2029
|
const [open, setOpen] = (0, import_react4.useState)(false);
|
|
2029
2030
|
const [mounted, setMounted] = (0, import_react4.useState)(false);
|
|
@@ -2046,7 +2047,7 @@ function Sparkle({
|
|
|
2046
2047
|
style: customStyles,
|
|
2047
2048
|
title: "Find similar products",
|
|
2048
2049
|
"aria-label": "Find similar products",
|
|
2049
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SparkleIcon3, {})
|
|
2050
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SparkleIcon3, {})
|
|
2050
2051
|
}
|
|
2051
2052
|
),
|
|
2052
2053
|
open && mounted && (0, import_react_dom2.createPortal)(
|