@citygross/components 0.7.138 → 0.7.139

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.
@@ -3,7 +3,8 @@ import * as styles from './Button.styles';
3
3
  export declare enum ButtonSize {
4
4
  'small' = 0,
5
5
  'medium' = 1,
6
- 'large' = 2
6
+ 'large' = 2,
7
+ 'header' = 3
7
8
  }
8
9
  export declare enum ButtonColor {
9
10
  'primary' = 0,
@@ -41,7 +41,7 @@ export declare const BaseButton: import("styled-components").StyledComponent<"bu
41
41
  export declare const BasePrimaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, TButton & {
42
42
  color: string;
43
43
  size: TButtonSize;
44
- xsSize?: "small" | "medium" | "large" | undefined;
44
+ xsSize?: "small" | "medium" | "large" | "header" | undefined;
45
45
  }, never>;
46
46
  export declare const ButtonChildContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TButtonChildContainer, never>;
47
47
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -15,6 +15,7 @@ exports.ButtonSize = void 0;
15
15
  ButtonSize[ButtonSize["small"] = 0] = "small";
16
16
  ButtonSize[ButtonSize["medium"] = 1] = "medium";
17
17
  ButtonSize[ButtonSize["large"] = 2] = "large";
18
+ ButtonSize[ButtonSize["header"] = 3] = "header";
18
19
  })(exports.ButtonSize || (exports.ButtonSize = {}));
19
20
  exports.ButtonColor = void 0;
20
21
  (function (ButtonColor) {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -32,6 +32,8 @@ var ButtonShadow = function (size) {
32
32
  };
33
33
  var ButtonPadding = function (theme, icon, flexReverse) {
34
34
  switch (theme) {
35
+ case 'header':
36
+ return icon ? '12px 14px' : '14px';
35
37
  case 'small':
36
38
  return icon ? '4px 8px' : '4px 12px';
37
39
  case 'medium':
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,6 +7,7 @@ var ButtonSize;
7
7
  ButtonSize[ButtonSize["small"] = 0] = "small";
8
8
  ButtonSize[ButtonSize["medium"] = 1] = "medium";
9
9
  ButtonSize[ButtonSize["large"] = 2] = "large";
10
+ ButtonSize[ButtonSize["header"] = 3] = "header";
10
11
  })(ButtonSize || (ButtonSize = {}));
11
12
  var ButtonColor;
12
13
  (function (ButtonColor) {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -24,6 +24,8 @@ var ButtonShadow = function (size) {
24
24
  };
25
25
  var ButtonPadding = function (theme, icon, flexReverse) {
26
26
  switch (theme) {
27
+ case 'header':
28
+ return icon ? '12px 14px' : '14px';
27
29
  case 'small':
28
30
  return icon ? '4px 8px' : '4px 12px';
29
31
  case 'medium':
@@ -1 +1 @@
1
- {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.138",
3
+ "version": "0.7.139",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -62,14 +62,14 @@
62
62
  "styled-components": "^5.2.1"
63
63
  },
64
64
  "dependencies": {
65
- "@citygross/design-tokens": "^0.2.37",
65
+ "@citygross/design-tokens": "^0.2.38",
66
66
  "@citygross/icons": "^0.1.8",
67
67
  "@citygross/react-use-bg-wizard": "^0.0.8",
68
- "@citygross/typography": "^0.0.67",
68
+ "@citygross/typography": "^0.0.68",
69
69
  "@citygross/utils": "^0.0.22",
70
70
  "framer-motion": "^4.1.17",
71
71
  "moment": "^2.29.1",
72
72
  "react-loading-skeleton": "^2.2.0"
73
73
  },
74
- "gitHead": "b085539f3468392e9b389733b9fa0c25aba4bc83"
74
+ "gitHead": "5fb22a11db2dced7a77fe77e30f8492cdfa97335"
75
75
  }