graphen 2.0.3 → 2.0.5

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/src/index.ts CHANGED
@@ -4,8 +4,8 @@ import Button from "src/components/Button";
4
4
  import Card from "src/components/Card";
5
5
  import Dialog from "src/components/Dialog";
6
6
  import Icon from "src/components/Icon";
7
+ import * as Icons from "src/components/Icons";
7
8
  import Input from "src/components/Input";
8
- import Image from "src/components/Image";
9
9
  import Joystick from "src/components/Joystick";
10
10
  import Link from "src/components/Link";
11
11
  import Loader from "src/components/Loader";
@@ -23,6 +23,9 @@ import PanelFooter from "src/components/PanelFooter";
23
23
  import PanelTitle from "src/components/PanelTitle";
24
24
  import Switch from "src/components/Switch";
25
25
  import Skeleton from "src/components/Skeleton";
26
+ import CoverEmpty from "src/components/CoverEmpty";
27
+ import SegmentedControl from "src/components/SegmentedControl";
28
+ import Stat from "src/components/Stat";
26
29
  import * as constants from "src/variables/constants";
27
30
 
28
31
  export {
@@ -32,6 +35,7 @@ export {
32
35
  Card,
33
36
  Dialog,
34
37
  Icon,
38
+ Icons,
35
39
  Input,
36
40
  Joystick,
37
41
  Link,
@@ -41,7 +45,6 @@ export {
41
45
  Tooltip,
42
46
  Validation,
43
47
  Logo,
44
- Image,
45
48
  Dropdown,
46
49
  Flex,
47
50
  FlexItem,
@@ -51,5 +54,11 @@ export {
51
54
  PanelTitle,
52
55
  Switch,
53
56
  Skeleton,
57
+ CoverEmpty,
58
+ SegmentedControl,
59
+ Stat,
54
60
  constants,
55
61
  };
62
+
63
+ export type { SegmentedControlOption } from "src/components/SegmentedControl";
64
+ export type { StatModifier } from "src/components/Stat";
package/src/style.scss CHANGED
@@ -20,7 +20,6 @@
20
20
  @import "components/Flex/styles/styles";
21
21
  @import "components/FlexItem/styles/styles";
22
22
  @import "components/Input/styles/styles";
23
- @import "components/Image/styles/styles";
24
23
  @import "components/Joystick/styles/styles";
25
24
  @import "components/Led/styles/mixins";
26
25
  @import "components/Led/styles/styles";
@@ -47,3 +46,6 @@
47
46
  @import "components/Badge/styles/styles";
48
47
  @import "components/Dropdown/styles/styles";
49
48
  @import "components/Skeleton/styles/styles";
49
+ @import "components/CoverEmpty/styles/styles";
50
+ @import "components/SegmentedControl/styles/styles";
51
+ @import "components/Stat/styles/styles";
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- import classNames from "classnames";
3
-
4
- type Props = {
5
- src: string;
6
- className?: string;
7
- height?: number;
8
- width?: number;
9
- };
10
-
11
- function Image({ className = "", height = 200, width = 200, src }: Props) {
12
- const classes = classNames("gc-image", className);
13
-
14
- return (
15
- <object
16
- className={classes}
17
- data={src}
18
- type="image/jpg"
19
- style={{ height, width }}
20
- >
21
- <div className="gc-image__fallback" />
22
- </object>
23
- );
24
- }
25
-
26
- export default Image;
@@ -1,20 +0,0 @@
1
- .gc-image {
2
- position: relative;
3
- display: inline-block;
4
- border: 1px solid $gb-color-component-dark;
5
- padding: $radius-medium;
6
- vertical-align: middle;
7
-
8
- &__fallback {
9
- background-color: $gb-color-component-light;
10
- display: flex;
11
- justify-content: center;
12
- flex-direction: column;
13
- height: 100%;
14
-
15
- &::before {
16
- content: "No image loaded";
17
- text-align: center;
18
- }
19
- }
20
- }