allaw-ui 4.5.8 → 4.6.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/dist/components/atoms/buttons/ActionButton.d.ts +1 -1
- package/dist/components/atoms/buttons/ActionButton.js +1 -1
- package/dist/components/atoms/buttons/ActionButton.module.css +10 -7
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +2 -2
- package/dist/components/atoms/buttons/ActionButton.stories.js +5 -5
- package/dist/components/atoms/selects/Select.module.css +1 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
10
10
|
fullWidth?: boolean;
|
|
11
11
|
type?: "button" | "submit" | "reset";
|
|
12
12
|
isLoading?: boolean;
|
|
13
|
-
variant?: "default" | "warning" | "
|
|
13
|
+
variant?: "default" | "warning" | "border";
|
|
14
14
|
size?: "medium" | "large";
|
|
15
15
|
dataTestId?: string;
|
|
16
16
|
}
|
|
@@ -107,7 +107,7 @@ var ActionButton = forwardRef(function (_a, ref) {
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}); };
|
|
110
|
-
return (React.createElement("button", __assign({ ref: buttonRef, "data-testid": props.dataTestId, className: "".concat(styles.actionButton, " ").concat(disabled ? styles.actionButtonDisabled : styles.actionButtonEnabled, " ").concat(fullWidth ? styles.actionButtonFullWidth : "", " ").concat(isButtonLoading ? styles.actionButtonLoading : "", " ").concat(variant === "warning" ? styles.actionButtonWarning : "", " ").concat(variant === "
|
|
110
|
+
return (React.createElement("button", __assign({ ref: buttonRef, "data-testid": props.dataTestId, className: "".concat(styles.actionButton, " ").concat(disabled ? styles.actionButtonDisabled : styles.actionButtonEnabled, " ").concat(fullWidth ? styles.actionButtonFullWidth : "", " ").concat(isButtonLoading ? styles.actionButtonLoading : "", " ").concat(variant === "warning" ? styles.actionButtonWarning : "", " ").concat(variant === "border" ? styles.actionButtonBorder : "", " ").concat(size === "large" ? styles.actionButtonLarge : ""), disabled: disabled, onClick: handleClick, type: type }, props),
|
|
111
111
|
startIcon && (React.createElement("span", { className: "".concat(styles.actionButtonIcon, " ").concat(startIconName) })),
|
|
112
112
|
React.createElement("span", { className: styles.actionButtonLabel }, label),
|
|
113
113
|
isButtonLoading ? (React.createElement("span", { className: styles.actionButtonLoadingDots }, loadingDots)) : (endIcon && (React.createElement("span", { className: "".concat(styles.actionButtonIcon, " ").concat(endIconName) })))));
|
|
@@ -90,17 +90,20 @@
|
|
|
90
90
|
background: rgba(225, 81, 81, 0.1);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
.
|
|
94
|
-
background:
|
|
95
|
-
color: var(--
|
|
93
|
+
.actionButtonBorder {
|
|
94
|
+
background: white;
|
|
95
|
+
color: var(--bleu-allaw, #25beeb);
|
|
96
|
+
border: 3px solid #25beeb;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
.
|
|
99
|
-
background:
|
|
99
|
+
.actionButtonBorder:hover {
|
|
100
|
+
background: white;
|
|
101
|
+
color: #1fa8d7;
|
|
102
|
+
border: 3px solid #1fa8d7;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
.
|
|
103
|
-
background: #
|
|
105
|
+
.actionButtonBorder:active {
|
|
106
|
+
background: #e9ecef;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
@keyframes pulseBackground {
|
|
@@ -105,6 +105,6 @@ export const WarningButton: any;
|
|
|
105
105
|
export const LargeButton: any;
|
|
106
106
|
export const LargeButtonWithIcons: any;
|
|
107
107
|
export const LargeWarningButton: any;
|
|
108
|
-
export const
|
|
109
|
-
export const
|
|
108
|
+
export const BorderButton: any;
|
|
109
|
+
export const LargeBorderButton: any;
|
|
110
110
|
import ActionButton from "./ActionButton";
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
variant: {
|
|
98
98
|
control: {
|
|
99
99
|
type: "select",
|
|
100
|
-
options: ["default", "warning", "
|
|
100
|
+
options: ["default", "warning", "border"],
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
size: {
|
|
@@ -165,7 +165,7 @@ export var LargeButtonWithIcons = Template.bind({});
|
|
|
165
165
|
LargeButtonWithIcons.args = __assign(__assign({}, Default.args), { label: "Grand Bouton avec Icônes", startIcon: true, endIcon: true, size: "large" });
|
|
166
166
|
export var LargeWarningButton = Template.bind({});
|
|
167
167
|
LargeWarningButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton d'Alerte", variant: "warning", size: "large" });
|
|
168
|
-
export var
|
|
169
|
-
|
|
170
|
-
export var
|
|
171
|
-
|
|
168
|
+
export var BorderButton = Template.bind({});
|
|
169
|
+
BorderButton.args = __assign(__assign({}, Default.args), { label: "Bouton Border", variant: "border" });
|
|
170
|
+
export var LargeBorderButton = Template.bind({});
|
|
171
|
+
LargeBorderButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton Border", variant: "border", size: "large" });
|