@appquality/unguess-design-system 2.12.59 → 2.12.60

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v2.12.60 (Wed Jan 25 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Change icon button backgrounds, improve types [#186](https://github.com/AppQuality/unguess-design-system/pull/186) ([@cannarocks](https://github.com/cannarocks) [@d-beezee](https://github.com/d-beezee) [@marcbon](https://github.com/marcbon))
6
+ - feat(countermulti): Allow string as id in counter multiselect [#185](https://github.com/AppQuality/unguess-design-system/pull/185) ([@d-beezee](https://github.com/d-beezee))
7
+ - feat(icon-button): add white background to default iconbutton [#182](https://github.com/AppQuality/unguess-design-system/pull/182) ([@cannarocks](https://github.com/cannarocks))
8
+
9
+ #### Authors: 3
10
+
11
+ - [@d-beezee](https://github.com/d-beezee)
12
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
13
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
14
+
15
+ ---
16
+
1
17
  # v2.12.59 (Thu Jan 19 2023)
2
18
 
3
19
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -302,6 +302,15 @@ const components = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.co
302
302
  : {})), { "&:hover": {
303
303
  backgroundColor: palette.kale[100],
304
304
  } });
305
+ }, "buttons.icon_button": ({ isDanger, isPrimary, isHovered, isNeutral, }) => {
306
+ if (isDanger || isPrimary || isNeutral)
307
+ return {};
308
+ return {
309
+ backgroundColor: palette.white,
310
+ "&:hover": {
311
+ backgroundColor: palette.kale[100],
312
+ },
313
+ };
305
314
  } });
306
315
 
307
316
  const theme = Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME), { breakpoints: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors, palette: palette, fonts: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: fontWeights, gradients: gradients, borderRadii: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), lineHeights: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.lineHeights), { xs: "16px" }), components: components, shadows: Object.assign(Object.assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }), levels: {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface CounterMultiselectArgs {
3
3
  options: {
4
- id: number;
4
+ id: number | string;
5
5
  label: string;
6
6
  selected?: boolean;
7
7
  }[];
@@ -28,4 +28,18 @@ export declare const components: {
28
28
  color?: string | undefined;
29
29
  cursor?: string | undefined;
30
30
  };
31
+ "buttons.icon_button": ({ isDanger, isPrimary, isHovered, isNeutral, }: {
32
+ isDanger: boolean;
33
+ isPrimary: boolean;
34
+ isHovered: boolean;
35
+ isNeutral: boolean;
36
+ }) => {
37
+ backgroundColor?: undefined;
38
+ "&:hover"?: undefined;
39
+ } | {
40
+ backgroundColor: string;
41
+ "&:hover": {
42
+ backgroundColor: string;
43
+ };
44
+ };
31
45
  };
@@ -233,6 +233,20 @@ declare const theme: {
233
233
  color?: string | undefined;
234
234
  cursor?: string | undefined;
235
235
  };
236
+ "buttons.icon_button": ({ isDanger, isPrimary, isHovered, isNeutral, }: {
237
+ isDanger: boolean;
238
+ isPrimary: boolean;
239
+ isHovered: boolean;
240
+ isNeutral: boolean;
241
+ }) => {
242
+ backgroundColor?: undefined;
243
+ "&:hover"?: undefined;
244
+ } | {
245
+ backgroundColor: string;
246
+ "&:hover": {
247
+ backgroundColor: string;
248
+ };
249
+ };
236
250
  };
237
251
  shadows: {
238
252
  boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.59",
3
+ "version": "2.12.60",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",