@hazelcast/ui 1.3.2-next.97 → 1.3.2-next.98

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/Button.d.ts CHANGED
@@ -4,7 +4,7 @@ import { TooltipProps } from './Tooltip';
4
4
  import { LinkRel, LinkTarget } from './Link';
5
5
  export type ButtonKind = 'primary' | 'secondary' | 'danger' | 'transparent';
6
6
  export type ButtonVariant = 'contained' | 'outlined' | 'text';
7
- export type ButtonColor = 'primary' | 'secondary' | 'warning' | 'brand' | 'authPrimary';
7
+ export type ButtonColor = 'primary' | 'secondary' | 'warning' | 'brand' | 'authPrimary' | 'authSecondary';
8
8
  export type ButtonSize = 'medium' | 'small';
9
9
  export type ButtonAccessibleIconLeftProps = {
10
10
  iconLeft: IconProps['icon'];
@@ -35,7 +35,7 @@ type ButtonNotDisabledProps = {
35
35
  disabledTooltipPlacement?: never;
36
36
  };
37
37
  export type ButtonDisabledProps = {
38
- disabledTooltip: string;
38
+ disabledTooltip?: string;
39
39
  disabled: boolean;
40
40
  disabledTooltipVisible?: boolean;
41
41
  disabledTooltipPlacement?: TooltipProps['placement'];
@@ -214,6 +214,37 @@
214
214
  @include disabledButtonColor;
215
215
  }
216
216
  }
217
+
218
+ &AuthSecondary {
219
+ @include buttonColor(c.$authSecondary);
220
+
221
+ border-color: c.$colorNeutralWhite;
222
+
223
+ &:hover,
224
+ &.hover,
225
+ &:focus-visible,
226
+ &.focus {
227
+ @include buttonColor(lighten(c.$authSecondary, 10%));
228
+ }
229
+
230
+ &:active,
231
+ &.active {
232
+ @include buttonColor(darken(c.$authSecondary, 10%));
233
+ }
234
+
235
+ &.variantContained {
236
+ color: c.$colorNeutralWhite;
237
+ }
238
+
239
+ &.variantOutlined {
240
+ border-color: c.$authSecondary;
241
+ }
242
+
243
+ &:disabled {
244
+ color: c.$colorText;
245
+ background-color: c.$colorNeutralWhite;
246
+ }
247
+ }
217
248
  }
218
249
 
219
250
  &.variant {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazelcast/ui",
3
- "version": "1.3.2-next.97+317d2d5",
3
+ "version": "1.3.2-next.98+2313522",
4
4
  "description": "Hazelcast design system components",
5
5
  "author": "",
6
6
  "homepage": "https://github.com/hazelcast/frontend-shared#readme",
@@ -115,5 +115,5 @@
115
115
  "react": "^17 || ^18",
116
116
  "react-dom": "^17 || ^18"
117
117
  },
118
- "gitHead": "317d2d5fd79014ed6d9b5001dbc571348b1340f4"
118
+ "gitHead": "231352240826a97c4384bf17753cc2fa8e03623b"
119
119
  }
@@ -27,3 +27,4 @@ $colorBrand: #00bac6 !default;
27
27
  $colorShadow: rgb(53 61 73 / 20%) !default;
28
28
  $colorMenuDark: #333 !default;
29
29
  $authPrimary: #c6ff3a !default;
30
+ $authSecondary: #0b2b39 !default;