@gravity-ui/page-constructor 1.20.0 → 1.20.2

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.
Files changed (24) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/cjs/blocks/Map/schema.d.ts +50 -54
  3. package/build/cjs/models/navigation.d.ts +3 -9
  4. package/build/cjs/models/navigation.js +0 -1
  5. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +1 -4
  6. package/build/cjs/schema/index.js +1 -0
  7. package/build/cjs/schema/validators/common.d.ts +25 -27
  8. package/build/cjs/schema/validators/common.js +1 -1
  9. package/build/esm/blocks/Map/schema.d.ts +50 -54
  10. package/build/esm/models/navigation.d.ts +3 -9
  11. package/build/esm/models/navigation.js +0 -1
  12. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -4
  13. package/build/esm/schema/index.js +1 -0
  14. package/build/esm/schema/validators/common.d.ts +25 -27
  15. package/build/esm/schema/validators/common.js +1 -1
  16. package/package.json +1 -2
  17. package/server/models/navigation.d.ts +3 -9
  18. package/server/models/navigation.js +0 -1
  19. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.css +0 -14
  20. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.d.ts +0 -5
  21. package/build/cjs/navigation/components/NavigationItem/components/GithubStars/GithubStars.js +0 -11
  22. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.css +0 -14
  23. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.d.ts +0 -6
  24. package/build/esm/navigation/components/NavigationItem/components/GithubStars/GithubStars.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.20.2](https://github.com/gravity-ui/page-constructor/compare/v1.20.1...v1.20.2) (2023-03-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix map block scheme ([#190](https://github.com/gravity-ui/page-constructor/issues/190)) ([c75ae30](https://github.com/gravity-ui/page-constructor/commit/c75ae30bc168fcd9e39c71f71501ec1b87446ef1))
9
+
10
+ ## [1.20.1](https://github.com/gravity-ui/page-constructor/compare/v1.20.0...v1.20.1) (2023-03-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * uninstall react-github-btn because is hot support cjs ([#188](https://github.com/gravity-ui/page-constructor/issues/188)) ([e32a51a](https://github.com/gravity-ui/page-constructor/commit/e32a51ae17a31dea8037a89a30f4b080e2aacb2e))
16
+
3
17
  ## [1.20.0](https://github.com/gravity-ui/page-constructor/compare/v1.19.1...v1.20.0) (2023-03-01)
4
18
 
5
19
 
@@ -21,36 +21,34 @@ export declare const Map: {
21
21
  markers: {
22
22
  type: string;
23
23
  items: {
24
- type: {
25
- type: string;
26
- additionalProperties: boolean;
27
- required: never[];
28
- properties: {
29
- coordinate: {
24
+ type: string;
25
+ additionalProperties: boolean;
26
+ required: never[];
27
+ properties: {
28
+ coordinate: {
29
+ type: string;
30
+ items: {
30
31
  type: string;
31
- items: {
32
+ };
33
+ };
34
+ address: {
35
+ type: string;
36
+ };
37
+ label: {
38
+ type: string;
39
+ required: never[];
40
+ properties: {
41
+ iconCaption: {
32
42
  type: string;
33
43
  };
34
- };
35
- address: {
36
- type: string;
37
- };
38
- label: {
39
- type: string;
40
- required: never[];
41
- properties: {
42
- iconCaption: {
43
- type: string;
44
- };
45
- iconContent: {
46
- type: string;
47
- };
48
- iconColor: {
49
- type: string;
50
- };
51
- preset: {
52
- type: string;
53
- };
44
+ iconContent: {
45
+ type: string;
46
+ };
47
+ iconColor: {
48
+ type: string;
49
+ };
50
+ preset: {
51
+ type: string;
54
52
  };
55
53
  };
56
54
  };
@@ -87,36 +85,34 @@ export declare const MapBlock: {
87
85
  markers: {
88
86
  type: string;
89
87
  items: {
90
- type: {
91
- type: string;
92
- additionalProperties: boolean;
93
- required: never[];
94
- properties: {
95
- coordinate: {
88
+ type: string;
89
+ additionalProperties: boolean;
90
+ required: never[];
91
+ properties: {
92
+ coordinate: {
93
+ type: string;
94
+ items: {
96
95
  type: string;
97
- items: {
96
+ };
97
+ };
98
+ address: {
99
+ type: string;
100
+ };
101
+ label: {
102
+ type: string;
103
+ required: never[];
104
+ properties: {
105
+ iconCaption: {
98
106
  type: string;
99
107
  };
100
- };
101
- address: {
102
- type: string;
103
- };
104
- label: {
105
- type: string;
106
- required: never[];
107
- properties: {
108
- iconCaption: {
109
- type: string;
110
- };
111
- iconContent: {
112
- type: string;
113
- };
114
- iconColor: {
115
- type: string;
116
- };
117
- preset: {
118
- type: string;
119
- };
108
+ iconContent: {
109
+ type: string;
110
+ };
111
+ iconColor: {
112
+ type: string;
113
+ };
114
+ preset: {
115
+ type: string;
120
116
  };
121
117
  };
122
118
  };
@@ -4,19 +4,13 @@ export declare enum NavigationItemType {
4
4
  Link = "link",
5
5
  Dropdown = "dropdown",
6
6
  Button = "button",
7
- Social = "social",
8
- GithubStars = "github-stars"
7
+ Social = "social"
9
8
  }
10
9
  export interface NavigationItemBase {
11
10
  text: string;
12
11
  icon?: ImageProps;
13
12
  url?: string;
14
13
  }
15
- export interface NavigationGithubButton extends Omit<NavigationItemBase, 'icon'> {
16
- type: NavigationItemType.GithubStars;
17
- url: string;
18
- label?: string;
19
- }
20
14
  export interface NavigationLinkItem extends Omit<NavigationItemBase, 'url'> {
21
15
  type: NavigationItemType.Link;
22
16
  url: string;
@@ -35,8 +29,8 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
35
29
  icon: ImageProps;
36
30
  url: string;
37
31
  }
38
- export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem | NavigationGithubButton;
39
- export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData | NavigationGithubButton;
32
+ export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
33
+ export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
40
34
  export type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
41
35
  export interface NavigationLogoData {
42
36
  icon: ImageProps;
@@ -7,5 +7,4 @@ var NavigationItemType;
7
7
  NavigationItemType["Dropdown"] = "dropdown";
8
8
  NavigationItemType["Button"] = "button";
9
9
  NavigationItemType["Social"] = "social";
10
- NavigationItemType["GithubStars"] = "github-stars";
11
10
  })(NavigationItemType = exports.NavigationItemType || (exports.NavigationItemType = {}));
@@ -8,7 +8,6 @@ const blockIdContext_1 = require("../../../context/blockIdContext");
8
8
  const NavigationButton_1 = require("./components/NavigationButton/NavigationButton");
9
9
  const NavigationDropdown_1 = require("./components/NavigationDropdown/NavigationDropdown");
10
10
  const NavigationLink_1 = require("./components/NavigationLink/NavigationLink");
11
- const GithubStars_1 = require("./components/GithubStars/GithubStars");
12
11
  const ANALYTICS_ID = 'navigation';
13
12
  //todo: add types support form component in map
14
13
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -17,7 +16,6 @@ const NavigationItemsMap = {
17
16
  [models_1.NavigationItemType.Social]: SocialIcon_1.default,
18
17
  [models_1.NavigationItemType.Dropdown]: NavigationDropdown_1.NavigationDropdown,
19
18
  [models_1.NavigationItemType.Link]: NavigationLink_1.NavigationLink,
20
- [models_1.NavigationItemType.GithubStars]: GithubStars_1.GithubStars,
21
19
  };
22
20
  const NavigationItem = (_a) => {
23
21
  var { data, className } = _a, props = tslib_1.__rest(_a, ["data", "className"]);
@@ -25,7 +23,6 @@ const NavigationItem = (_a) => {
25
23
  const Component = NavigationItemsMap[type];
26
24
  const componentProps = (0, react_1.useMemo)(() => (Object.assign(Object.assign({ className }, data), props)), [className, data, props]);
27
25
  return (react_1.default.createElement(blockIdContext_1.BlockIdContext.Provider, { value: ANALYTICS_ID },
28
- react_1.default.createElement(Component, Object.assign({}, componentProps)),
29
- ";"));
26
+ react_1.default.createElement(Component, Object.assign({}, componentProps))));
30
27
  };
31
28
  exports.default = NavigationItem;
@@ -29,6 +29,7 @@ function generateDefaultSchema(config) {
29
29
  'banner-block',
30
30
  'companies-block',
31
31
  'media-block',
32
+ 'map-block',
32
33
  'info-block',
33
34
  'security-block',
34
35
  'table-block',
@@ -1183,36 +1183,34 @@ export declare const MapProps: {
1183
1183
  markers: {
1184
1184
  type: string;
1185
1185
  items: {
1186
- type: {
1187
- type: string;
1188
- additionalProperties: boolean;
1189
- required: never[];
1190
- properties: {
1191
- coordinate: {
1186
+ type: string;
1187
+ additionalProperties: boolean;
1188
+ required: never[];
1189
+ properties: {
1190
+ coordinate: {
1191
+ type: string;
1192
+ items: {
1192
1193
  type: string;
1193
- items: {
1194
+ };
1195
+ };
1196
+ address: {
1197
+ type: string;
1198
+ };
1199
+ label: {
1200
+ type: string;
1201
+ required: never[];
1202
+ properties: {
1203
+ iconCaption: {
1194
1204
  type: string;
1195
1205
  };
1196
- };
1197
- address: {
1198
- type: string;
1199
- };
1200
- label: {
1201
- type: string;
1202
- required: never[];
1203
- properties: {
1204
- iconCaption: {
1205
- type: string;
1206
- };
1207
- iconContent: {
1208
- type: string;
1209
- };
1210
- iconColor: {
1211
- type: string;
1212
- };
1213
- preset: {
1214
- type: string;
1215
- };
1206
+ iconContent: {
1207
+ type: string;
1208
+ };
1209
+ iconColor: {
1210
+ type: string;
1211
+ };
1212
+ preset: {
1213
+ type: string;
1216
1214
  };
1217
1215
  };
1218
1216
  };
@@ -505,7 +505,7 @@ exports.MapProps = {
505
505
  },
506
506
  markers: {
507
507
  type: 'array',
508
- items: { type: exports.YMapMarker },
508
+ items: exports.YMapMarker,
509
509
  },
510
510
  };
511
511
  exports.CardBase = {
@@ -21,36 +21,34 @@ export declare const Map: {
21
21
  markers: {
22
22
  type: string;
23
23
  items: {
24
- type: {
25
- type: string;
26
- additionalProperties: boolean;
27
- required: never[];
28
- properties: {
29
- coordinate: {
24
+ type: string;
25
+ additionalProperties: boolean;
26
+ required: never[];
27
+ properties: {
28
+ coordinate: {
29
+ type: string;
30
+ items: {
30
31
  type: string;
31
- items: {
32
+ };
33
+ };
34
+ address: {
35
+ type: string;
36
+ };
37
+ label: {
38
+ type: string;
39
+ required: never[];
40
+ properties: {
41
+ iconCaption: {
32
42
  type: string;
33
43
  };
34
- };
35
- address: {
36
- type: string;
37
- };
38
- label: {
39
- type: string;
40
- required: never[];
41
- properties: {
42
- iconCaption: {
43
- type: string;
44
- };
45
- iconContent: {
46
- type: string;
47
- };
48
- iconColor: {
49
- type: string;
50
- };
51
- preset: {
52
- type: string;
53
- };
44
+ iconContent: {
45
+ type: string;
46
+ };
47
+ iconColor: {
48
+ type: string;
49
+ };
50
+ preset: {
51
+ type: string;
54
52
  };
55
53
  };
56
54
  };
@@ -87,36 +85,34 @@ export declare const MapBlock: {
87
85
  markers: {
88
86
  type: string;
89
87
  items: {
90
- type: {
91
- type: string;
92
- additionalProperties: boolean;
93
- required: never[];
94
- properties: {
95
- coordinate: {
88
+ type: string;
89
+ additionalProperties: boolean;
90
+ required: never[];
91
+ properties: {
92
+ coordinate: {
93
+ type: string;
94
+ items: {
96
95
  type: string;
97
- items: {
96
+ };
97
+ };
98
+ address: {
99
+ type: string;
100
+ };
101
+ label: {
102
+ type: string;
103
+ required: never[];
104
+ properties: {
105
+ iconCaption: {
98
106
  type: string;
99
107
  };
100
- };
101
- address: {
102
- type: string;
103
- };
104
- label: {
105
- type: string;
106
- required: never[];
107
- properties: {
108
- iconCaption: {
109
- type: string;
110
- };
111
- iconContent: {
112
- type: string;
113
- };
114
- iconColor: {
115
- type: string;
116
- };
117
- preset: {
118
- type: string;
119
- };
108
+ iconContent: {
109
+ type: string;
110
+ };
111
+ iconColor: {
112
+ type: string;
113
+ };
114
+ preset: {
115
+ type: string;
120
116
  };
121
117
  };
122
118
  };
@@ -4,19 +4,13 @@ export declare enum NavigationItemType {
4
4
  Link = "link",
5
5
  Dropdown = "dropdown",
6
6
  Button = "button",
7
- Social = "social",
8
- GithubStars = "github-stars"
7
+ Social = "social"
9
8
  }
10
9
  export interface NavigationItemBase {
11
10
  text: string;
12
11
  icon?: ImageProps;
13
12
  url?: string;
14
13
  }
15
- export interface NavigationGithubButton extends Omit<NavigationItemBase, 'icon'> {
16
- type: NavigationItemType.GithubStars;
17
- url: string;
18
- label?: string;
19
- }
20
14
  export interface NavigationLinkItem extends Omit<NavigationItemBase, 'url'> {
21
15
  type: NavigationItemType.Link;
22
16
  url: string;
@@ -35,8 +29,8 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
35
29
  icon: ImageProps;
36
30
  url: string;
37
31
  }
38
- export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem | NavigationGithubButton;
39
- export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData | NavigationGithubButton;
32
+ export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
33
+ export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
40
34
  export type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
41
35
  export interface NavigationLogoData {
42
36
  icon: ImageProps;
@@ -4,5 +4,4 @@ export var NavigationItemType;
4
4
  NavigationItemType["Dropdown"] = "dropdown";
5
5
  NavigationItemType["Button"] = "button";
6
6
  NavigationItemType["Social"] = "social";
7
- NavigationItemType["GithubStars"] = "github-stars";
8
7
  })(NavigationItemType || (NavigationItemType = {}));
@@ -6,7 +6,6 @@ import { BlockIdContext } from '../../../context/blockIdContext';
6
6
  import { NavigationButton } from './components/NavigationButton/NavigationButton';
7
7
  import { NavigationDropdown } from './components/NavigationDropdown/NavigationDropdown';
8
8
  import { NavigationLink } from './components/NavigationLink/NavigationLink';
9
- import { GithubStars } from './components/GithubStars/GithubStars';
10
9
  const ANALYTICS_ID = 'navigation';
11
10
  //todo: add types support form component in map
12
11
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -15,7 +14,6 @@ const NavigationItemsMap = {
15
14
  [NavigationItemType.Social]: SocialIcon,
16
15
  [NavigationItemType.Dropdown]: NavigationDropdown,
17
16
  [NavigationItemType.Link]: NavigationLink,
18
- [NavigationItemType.GithubStars]: GithubStars,
19
17
  };
20
18
  const NavigationItem = (_a) => {
21
19
  var { data, className } = _a, props = __rest(_a, ["data", "className"]);
@@ -23,7 +21,6 @@ const NavigationItem = (_a) => {
23
21
  const Component = NavigationItemsMap[type];
24
22
  const componentProps = useMemo(() => (Object.assign(Object.assign({ className }, data), props)), [className, data, props]);
25
23
  return (React.createElement(BlockIdContext.Provider, { value: ANALYTICS_ID },
26
- React.createElement(Component, Object.assign({}, componentProps)),
27
- ";"));
24
+ React.createElement(Component, Object.assign({}, componentProps))));
28
25
  };
29
26
  export default NavigationItem;
@@ -24,6 +24,7 @@ export function generateDefaultSchema(config) {
24
24
  'banner-block',
25
25
  'companies-block',
26
26
  'media-block',
27
+ 'map-block',
27
28
  'info-block',
28
29
  'security-block',
29
30
  'table-block',
@@ -1183,36 +1183,34 @@ export declare const MapProps: {
1183
1183
  markers: {
1184
1184
  type: string;
1185
1185
  items: {
1186
- type: {
1187
- type: string;
1188
- additionalProperties: boolean;
1189
- required: never[];
1190
- properties: {
1191
- coordinate: {
1186
+ type: string;
1187
+ additionalProperties: boolean;
1188
+ required: never[];
1189
+ properties: {
1190
+ coordinate: {
1191
+ type: string;
1192
+ items: {
1192
1193
  type: string;
1193
- items: {
1194
+ };
1195
+ };
1196
+ address: {
1197
+ type: string;
1198
+ };
1199
+ label: {
1200
+ type: string;
1201
+ required: never[];
1202
+ properties: {
1203
+ iconCaption: {
1194
1204
  type: string;
1195
1205
  };
1196
- };
1197
- address: {
1198
- type: string;
1199
- };
1200
- label: {
1201
- type: string;
1202
- required: never[];
1203
- properties: {
1204
- iconCaption: {
1205
- type: string;
1206
- };
1207
- iconContent: {
1208
- type: string;
1209
- };
1210
- iconColor: {
1211
- type: string;
1212
- };
1213
- preset: {
1214
- type: string;
1215
- };
1206
+ iconContent: {
1207
+ type: string;
1208
+ };
1209
+ iconColor: {
1210
+ type: string;
1211
+ };
1212
+ preset: {
1213
+ type: string;
1216
1214
  };
1217
1215
  };
1218
1216
  };
@@ -501,7 +501,7 @@ export const MapProps = {
501
501
  },
502
502
  markers: {
503
503
  type: 'array',
504
- items: { type: YMapMarker },
504
+ items: YMapMarker,
505
505
  },
506
506
  };
507
507
  export const CardBase = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "1.20.0",
3
+ "version": "1.20.2",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,6 @@
49
49
  "@gravity-ui/i18n": "^1.0.0",
50
50
  "bem-cn-lite": "^4.0.0",
51
51
  "lodash": "^4.17.21",
52
- "react-github-btn": "^1.4.0",
53
52
  "react-player": "^2.9.0",
54
53
  "react-slick": "^0.28.1",
55
54
  "react-spring": "^9.3.0",
@@ -4,19 +4,13 @@ export declare enum NavigationItemType {
4
4
  Link = "link",
5
5
  Dropdown = "dropdown",
6
6
  Button = "button",
7
- Social = "social",
8
- GithubStars = "github-stars"
7
+ Social = "social"
9
8
  }
10
9
  export interface NavigationItemBase {
11
10
  text: string;
12
11
  icon?: ImageProps;
13
12
  url?: string;
14
13
  }
15
- export interface NavigationGithubButton extends Omit<NavigationItemBase, 'icon'> {
16
- type: NavigationItemType.GithubStars;
17
- url: string;
18
- label?: string;
19
- }
20
14
  export interface NavigationLinkItem extends Omit<NavigationItemBase, 'url'> {
21
15
  type: NavigationItemType.Link;
22
16
  url: string;
@@ -35,8 +29,8 @@ export interface NavigationSocialItem extends Omit<NavigationItemBase, 'text'> {
35
29
  icon: ImageProps;
36
30
  url: string;
37
31
  }
38
- export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem | NavigationGithubButton;
39
- export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData | NavigationGithubButton;
32
+ export type NavigationItemModel = NavigationLinkItem | NavigationButtonItem | NavigationDropdownItem;
33
+ export type NavigationItemData = NavigationLinkItem | NavigationButtonItem | NavigationSocialItem | DropdownItemData;
40
34
  export type DropdownItemData = Omit<NavigationDropdownItem, 'items'>;
41
35
  export interface NavigationLogoData {
42
36
  icon: ImageProps;
@@ -7,5 +7,4 @@ var NavigationItemType;
7
7
  NavigationItemType["Dropdown"] = "dropdown";
8
8
  NavigationItemType["Button"] = "button";
9
9
  NavigationItemType["Social"] = "social";
10
- NavigationItemType["GithubStars"] = "github-stars";
11
10
  })(NavigationItemType = exports.NavigationItemType || (exports.NavigationItemType = {}));
@@ -1,14 +0,0 @@
1
- .pc-github-stars {
2
- position: relative;
3
- display: flex;
4
- align-items: center;
5
- white-space: nowrap;
6
- display: flex;
7
- align-items: center;
8
- height: 100%;
9
- }
10
- .pc-github-stars span {
11
- display: flex;
12
- flex-direction: column;
13
- justify-content: center;
14
- }
@@ -1,5 +0,0 @@
1
- import { NavigationItemProps } from '../../NavigationItem';
2
- import { NavigationGithubButton } from '../../../../../models';
3
- type NavigationGithubButtonProps = NavigationItemProps & NavigationGithubButton;
4
- export declare const GithubStars: ({ text, url, className, label }: NavigationGithubButtonProps) => JSX.Element;
5
- export {};
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GithubStars = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_github_btn_1 = tslib_1.__importDefault(require("react-github-btn"));
7
- const utils_1 = require("../../../../../utils");
8
- const b = (0, utils_1.block)('github-stars');
9
- const GithubStars = ({ text, url, className, label }) => (react_1.default.createElement("div", { className: b(null, className) },
10
- react_1.default.createElement(react_github_btn_1.default, { href: url, "data-show-count": "true", "aria-label": label || 'Stars on GitHub' }, text)));
11
- exports.GithubStars = GithubStars;
@@ -1,14 +0,0 @@
1
- .pc-github-stars {
2
- position: relative;
3
- display: flex;
4
- align-items: center;
5
- white-space: nowrap;
6
- display: flex;
7
- align-items: center;
8
- height: 100%;
9
- }
10
- .pc-github-stars span {
11
- display: flex;
12
- flex-direction: column;
13
- justify-content: center;
14
- }
@@ -1,6 +0,0 @@
1
- import { NavigationItemProps } from '../../NavigationItem';
2
- import { NavigationGithubButton } from '../../../../../models';
3
- import './GithubStars.css';
4
- type NavigationGithubButtonProps = NavigationItemProps & NavigationGithubButton;
5
- export declare const GithubStars: ({ text, url, className, label }: NavigationGithubButtonProps) => JSX.Element;
6
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import GitHubButton from 'react-github-btn';
3
- import { block } from '../../../../../utils';
4
- import './GithubStars.css';
5
- const b = block('github-stars');
6
- export const GithubStars = ({ text, url, className, label }) => (React.createElement("div", { className: b(null, className) },
7
- React.createElement(GitHubButton, { href: url, "data-show-count": "true", "aria-label": label || 'Stars on GitHub' }, text)));