@indico-data/design-system 2.45.4 → 2.45.6
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/lib/index.css +4 -4
- package/lib/index.esm.css +4 -4
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.stories.tsx +13 -2
- package/src/components/button/Button.tsx +16 -5
- package/src/components/button/__tests__/Button.test.tsx +38 -1
- package/src/components/button/styles/_variables.scss +4 -4
package/lib/index.css
CHANGED
|
@@ -471,7 +471,7 @@ a:hover,
|
|
|
471
471
|
--pf-button-outline-hover-color: var(--pf-primary-color-400);
|
|
472
472
|
--pf-button-outline-disabled-color: var(--pf-primary-color-300);
|
|
473
473
|
--pf-button-link-color: var(--pf-primary-color);
|
|
474
|
-
--pf-button-link-hover-color: var(--pf-primary-color-
|
|
474
|
+
--pf-button-link-hover-color: var(--pf-primary-color-400);
|
|
475
475
|
--pf-button-link-disabled-color: var(--pf-primary-color-300);
|
|
476
476
|
--pf-button-action-color: var(--pf-primary-color);
|
|
477
477
|
--pf-button-action-border-color: var(--pf-primary-color);
|
|
@@ -509,9 +509,9 @@ a:hover,
|
|
|
509
509
|
--pf-button-outline-border-color: var(--pf-secondary-color-300);
|
|
510
510
|
--pf-button-outline-hover-color: var(--pf-secondary-color-200);
|
|
511
511
|
--pf-button-outline-disabled-color: var(--pf-tertiary-color-450);
|
|
512
|
-
--pf-button-link-color: var(--pf-secondary-color-
|
|
513
|
-
--pf-button-link-hover-color: var(--pf-secondary-color-
|
|
514
|
-
--pf-button-link-disabled-color: var(--pf-
|
|
512
|
+
--pf-button-link-color: var(--pf-secondary-color-300);
|
|
513
|
+
--pf-button-link-hover-color: var(--pf-secondary-color-200);
|
|
514
|
+
--pf-button-link-disabled-color: var(--pf-tertiary-color-450);
|
|
515
515
|
--pf-button-action-color: var(--pf-secondary-color-300);
|
|
516
516
|
--pf-button-action-border-color: #42a7ee;
|
|
517
517
|
--pf-button-action-hover-background-color: var(--pf-tertiary-color-450);
|
package/lib/index.esm.css
CHANGED
|
@@ -471,7 +471,7 @@ a:hover,
|
|
|
471
471
|
--pf-button-outline-hover-color: var(--pf-primary-color-400);
|
|
472
472
|
--pf-button-outline-disabled-color: var(--pf-primary-color-300);
|
|
473
473
|
--pf-button-link-color: var(--pf-primary-color);
|
|
474
|
-
--pf-button-link-hover-color: var(--pf-primary-color-
|
|
474
|
+
--pf-button-link-hover-color: var(--pf-primary-color-400);
|
|
475
475
|
--pf-button-link-disabled-color: var(--pf-primary-color-300);
|
|
476
476
|
--pf-button-action-color: var(--pf-primary-color);
|
|
477
477
|
--pf-button-action-border-color: var(--pf-primary-color);
|
|
@@ -509,9 +509,9 @@ a:hover,
|
|
|
509
509
|
--pf-button-outline-border-color: var(--pf-secondary-color-300);
|
|
510
510
|
--pf-button-outline-hover-color: var(--pf-secondary-color-200);
|
|
511
511
|
--pf-button-outline-disabled-color: var(--pf-tertiary-color-450);
|
|
512
|
-
--pf-button-link-color: var(--pf-secondary-color-
|
|
513
|
-
--pf-button-link-hover-color: var(--pf-secondary-color-
|
|
514
|
-
--pf-button-link-disabled-color: var(--pf-
|
|
512
|
+
--pf-button-link-color: var(--pf-secondary-color-300);
|
|
513
|
+
--pf-button-link-hover-color: var(--pf-secondary-color-200);
|
|
514
|
+
--pf-button-link-disabled-color: var(--pf-tertiary-color-450);
|
|
515
515
|
--pf-button-action-color: var(--pf-secondary-color-300);
|
|
516
516
|
--pf-button-action-border-color: #42a7ee;
|
|
517
517
|
--pf-button-action-hover-background-color: var(--pf-tertiary-color-450);
|
package/lib/index.esm.js
CHANGED
|
@@ -6041,7 +6041,7 @@ const Button$1 = forwardRef((props, ref) => {
|
|
|
6041
6041
|
onClick(event);
|
|
6042
6042
|
}
|
|
6043
6043
|
};
|
|
6044
|
-
return (jsxs("button", Object.assign({ ref: ref, disabled: isLoading || isDisabled, className: buttonClasses, role: "button", onClick: handleOnClick, "aria-label": ariaLabel || 'button', "aria-disabled": isLoading || isDisabled, "aria-busy": isLoading, type: type, onMouseEnter: onMouseEnter, onMouseLeave: onMouseExit, onKeyDown: onKeyDown }, rest, { children: [isLoading && (jsx(Icon, { name: "indico-o", style: { animation: 'spin 1s linear infinite' }, className:
|
|
6044
|
+
return (jsxs("button", Object.assign({ ref: ref, disabled: isLoading || isDisabled, className: buttonClasses, role: "button", onClick: handleOnClick, "aria-label": ariaLabel || 'button', "aria-disabled": isLoading || isDisabled, "aria-busy": isLoading, type: type, onMouseEnter: onMouseEnter, onMouseLeave: onMouseExit, onKeyDown: onKeyDown }, rest, { children: [isLoading && !iconRight && (jsx(Icon, { name: "indico-o", style: { animation: 'spin 1s linear infinite' }, className: children ? 'mr-2' : '', ariaLabel: "Loading...", size: size })), iconLeft && !isLoading && (jsx(Icon, { name: iconLeft, className: children ? 'mr-2' : '', ariaLabel: `${iconLeft} Icon`, size: size })), children, iconRight && !isLoading && (jsx(Icon, { name: iconRight, className: children ? 'ml-2' : '', ariaLabel: `${iconRight} Icon`, size: size })), isLoading && iconRight && (jsx(Icon, { name: "indico-o", style: { animation: 'spin 1s linear infinite' }, className: children ? 'ml-2' : '', ariaLabel: "Loading...", size: size }))] })));
|
|
6045
6045
|
});
|
|
6046
6046
|
|
|
6047
6047
|
const StyledConfirmModal = n.div `
|