@snacky/ui 0.7.3 → 0.8.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/CHANGELOG.md +52 -0
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +19 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ var Button = forwardRef(function Button2({ variant = "primary", danger = false,
|
|
|
53
53
|
`snacky-btn--${variant}`,
|
|
54
54
|
size === "small" && "snacky-btn--small",
|
|
55
55
|
danger && "snacky-btn--danger",
|
|
56
|
+
icon3 != null && "snacky-btn--with-icon",
|
|
56
57
|
className
|
|
57
58
|
),
|
|
58
59
|
...rest,
|
|
@@ -784,9 +785,13 @@ function DiscountTag({ label, className }) {
|
|
|
784
785
|
function SoldOutBadge({ className }) {
|
|
785
786
|
return /* @__PURE__ */ jsx21("span", { className: cx("snacky-soldout-badge", className), children: "Sold Out" });
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
-
return /* @__PURE__ */
|
|
788
|
+
function InfoBadge({ label, icon: icon3, className }) {
|
|
789
|
+
return /* @__PURE__ */ jsxs14("span", { className: cx("snacky-info-badge", className), children: [
|
|
790
|
+
icon3 && /* @__PURE__ */ jsx21("span", { className: "snacky-info-badge__icon", children: icon3 }),
|
|
791
|
+
label
|
|
792
|
+
] });
|
|
789
793
|
}
|
|
794
|
+
var VariantBadge = InfoBadge;
|
|
790
795
|
|
|
791
796
|
// src/components/Callout/Callout.tsx
|
|
792
797
|
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -1251,6 +1256,7 @@ export {
|
|
|
1251
1256
|
IconButton,
|
|
1252
1257
|
Illustration,
|
|
1253
1258
|
ImagePlaceholder,
|
|
1259
|
+
InfoBadge,
|
|
1254
1260
|
NavBar,
|
|
1255
1261
|
NotificationBadge,
|
|
1256
1262
|
NotificationListItem,
|