@stella-source/stellasource-dsl 0.0.29 → 0.0.30
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/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/styles.d.ts +1 -0
- package/dist/cjs/types/components/IconButton/styles.d.ts +1 -1
- package/dist/esm/index.esm.js +2 -1
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/types/components/Button/styles.d.ts +1 -0
- package/dist/esm/types/components/IconButton/styles.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -17637,6 +17637,7 @@ const ButtonComponent = dt.button.attrs({
|
|
|
17637
17637
|
height: 32px;
|
|
17638
17638
|
min-width: 60px;
|
|
17639
17639
|
padding: 10px;
|
|
17640
|
+
pointer-events: ${({ $isLoading }) => ($isLoading ? "none" : "auto")};
|
|
17640
17641
|
|
|
17641
17642
|
${({ $variant }) => variantSelector($variant)}
|
|
17642
17643
|
&:disabled {
|
|
@@ -17675,7 +17676,7 @@ const Button = ({ disabled, variant = "primary", label, startIcon, endIcon, isLo
|
|
|
17675
17676
|
const getIcon = (iconType, dataTestId) => {
|
|
17676
17677
|
return a$h.createElement(StellaIcon, { iconName: iconType, dataTestId: dataTestId, size: 14 });
|
|
17677
17678
|
};
|
|
17678
|
-
return (a$h.createElement(ButtonComponent, { "$variant": variant, disabled: disabled, className: className, id: id, onClick: () => {
|
|
17679
|
+
return (a$h.createElement(ButtonComponent, { "$variant": variant, "$isLoading": isLoading, disabled: disabled, className: className, id: id, onClick: () => {
|
|
17679
17680
|
onClick();
|
|
17680
17681
|
}, ...htmlProps },
|
|
17681
17682
|
startIcon && getIcon(startIcon, "start-icon"),
|