@ayseaistudio/ui-components 3.5.13 → 3.5.14

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.
@@ -8,11 +8,15 @@ export const TertiaryButton = ({ text, leftIcon, rightIcon, size, color, status,
8
8
  color: color || "black",
9
9
  status: status || "default",
10
10
  });
11
- return (_jsxs("div", { className: `tertiary-button ${state.size} ${state.color} ${state.status} ${className}`, onClick: onClick, onMouseLeave: () => {
12
- dispatch("mouse_leave");
13
- }, onMouseEnter: () => {
14
- dispatch("mouse_enter");
15
- }, children: [leftIcon && _jsx("span", { className: "icon left-icon", children: leftIcon }), text && _jsx("div", { className: "button", children: text }), rightIcon && _jsx("span", { className: "icon right-icon", children: rightIcon })] }));
11
+ return (_jsxs("div", { className: `tertiary-button ${state.size} ${state.color} ${state.status} ${className}`, onClick: state.status === "disabled" ? undefined : onClick, onMouseLeave: state.status === "disabled"
12
+ ? undefined
13
+ : () => {
14
+ dispatch("mouse_leave");
15
+ }, onMouseEnter: state.status === "disabled"
16
+ ? undefined
17
+ : () => {
18
+ dispatch("mouse_enter");
19
+ }, children: [leftIcon && _jsx("span", { className: "icon left-icon", children: leftIcon }), text && _jsx("div", { className: "button", children: text }), rightIcon && _jsx("span", { className: "icon right-icon", children: rightIcon })] }));
16
20
  };
17
21
  function reducer(state, action) {
18
22
  switch (action) {
@@ -127,6 +127,14 @@
127
127
  color: #b0b0b0;
128
128
  }
129
129
 
130
+ .tertiary-button.disabled {
131
+ cursor: default;
132
+ }
133
+
134
+ .tertiary-button.disabled .icon {
135
+ color: #b0b0b0;
136
+ }
137
+
130
138
  .tertiary-button.black .button {
131
139
  -webkit-box-orient: vertical;
132
140
  -webkit-line-clamp: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayseaistudio/ui-components",
3
- "version": "3.5.13",
3
+ "version": "3.5.14",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",