@propeller-commerce/propeller-v2-react-ui 0.11.3 → 0.11.4
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 +29 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4587,7 +4587,7 @@ function AddToCart(rawProps) {
|
|
|
4587
4587
|
"button",
|
|
4588
4588
|
{
|
|
4589
4589
|
type: "button",
|
|
4590
|
-
className: "propeller-add-to-cart__submit flex-1 basis-full md:basis-auto inline-flex justify-center items-center gap-2 h-10 px-6 border border-transparent text-sm font-medium rounded-control text-secondary-foreground bg-secondary hover:bg-secondary/
|
|
4590
|
+
className: "propeller-add-to-cart__submit flex-1 min-w-0 basis-full md:basis-auto inline-flex justify-center items-center gap-2 h-10 px-3 sm:px-6 border border-transparent text-sm font-medium rounded-control text-secondary-foreground bg-secondary hover:bg-secondary/80 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-secondary disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
4591
4591
|
onClick: () => handleAddToCart(),
|
|
4592
4592
|
disabled: loading,
|
|
4593
4593
|
children: [
|
|
@@ -4609,8 +4609,7 @@ function AddToCart(rawProps) {
|
|
|
4609
4609
|
]
|
|
4610
4610
|
}
|
|
4611
4611
|
),
|
|
4612
|
-
|
|
4613
|
-
!loading ? /* @__PURE__ */ jsx(Fragment, { children: getLabel(props.labels, "add", "Add") }) : null
|
|
4612
|
+
/* @__PURE__ */ jsx("span", { className: "propeller-add-to-cart__submit-label min-w-0 truncate", children: loading ? getLabel(props.labels, "adding", "Adding...") : getLabel(props.labels, "add", "Add") })
|
|
4614
4613
|
]
|
|
4615
4614
|
}
|
|
4616
4615
|
)
|
|
@@ -8363,8 +8362,8 @@ function ClusterCardViewClusterLink(props) {
|
|
|
8363
8362
|
{
|
|
8364
8363
|
href: derived.clusterUrl,
|
|
8365
8364
|
onClick: handleClusterClick,
|
|
8366
|
-
className: props.className ?? "propeller-cluster-card__cta-link flex w-full items-center justify-center rounded-control bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
8367
|
-
children: props.label ?? derived.viewClusterLabel
|
|
8365
|
+
className: props.className ?? "propeller-cluster-card__cta-link flex w-full min-w-0 items-center justify-center rounded-control bg-primary px-3 sm:px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/80 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
8366
|
+
children: /* @__PURE__ */ jsx("span", { className: "propeller-cluster-card__cta-label min-w-0 truncate", children: props.label ?? derived.viewClusterLabel })
|
|
8368
8367
|
}
|
|
8369
8368
|
);
|
|
8370
8369
|
}
|