@codacy/ui-components 0.62.8 → 0.62.10

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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { PanelProps } from './Panel.types';
3
+ /**
4
+ * Description for Panel
5
+ */
6
+ export declare const Panel: React.FC<PanelProps>;
@@ -0,0 +1,16 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
+ var _excluded = ["children"];
3
+ import React from 'react';
4
+ import { StyledPanel } from './Panel.styles';
5
+ /**
6
+ * Description for Panel
7
+ */
8
+
9
+ export var Panel = function Panel(_ref) {
10
+ var children = _ref.children,
11
+ props = _objectWithoutProperties(_ref, _excluded);
12
+
13
+ return /*#__PURE__*/React.createElement(StyledPanel, Object.assign({
14
+ p: 5
15
+ }, props), children);
16
+ };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CodacyTheme } from '../theme';
3
3
  import { BoxProps } from '../Flexbox';
4
- declare const Panel: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
4
+ export declare const StyledPanel: import("@emotion/styled-base").StyledComponent<Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Pick<import("..").ColorProps & import("..").LayoutProps & import("..").SpaceProps & import("..").BorderProps & import("..").PositionProps & import("..").ShadowProps & import("..").TextAlignProps & Omit<import("..").TypographyProps, "fontWeight"> & import("../Flexbox").As & {
5
5
  fontWeight?: import("styled-system").ResponsiveValue<number | import("../theme").FontWeights, CodacyTheme> | undefined;
6
6
  }, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps> & {
7
7
  theme?: object | undefined;
@@ -10,4 +10,3 @@ declare const Panel: import("@emotion/styled-base").StyledComponent<Pick<import(
10
10
  } & Pick<BoxProps, "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "as" | keyof import("..").ColorProps | keyof import("..").LayoutProps | keyof import("..").SpaceProps | keyof import("..").BorderProps | keyof import("..").PositionProps | keyof import("..").ShadowProps | keyof import("..").FlexboxProps | keyof import("..").GridboxProps> & {
11
11
  theme?: object | undefined;
12
12
  }, BoxProps, CodacyTheme>;
13
- export { Panel };
@@ -0,0 +1,15 @@
1
+ import _styled from "@emotion/styled-base";
2
+ import { Box } from '../Flexbox';
3
+ export var StyledPanel = /*#__PURE__*/_styled(Box, {
4
+ target: "epfbb5r0"
5
+ })("background:", function (_ref) {
6
+ var theme = _ref.theme,
7
+ backgroundColor = _ref.backgroundColor;
8
+ return theme.colors[backgroundColor || 'background-primary'];
9
+ }, ";border:1px solid ", function (_ref2) {
10
+ var theme = _ref2.theme;
11
+ return theme.colors['ui-border'];
12
+ }, ";border-radius:", function (_ref3) {
13
+ var theme = _ref3.theme;
14
+ return theme.radii[1];
15
+ }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9QYW5lbC9QYW5lbC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSTZEIiwiZmlsZSI6Ii4uLy4uL3NyYy9QYW5lbC9QYW5lbC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IENvZGFjeVRoZW1lLCBDb2xvciB9IGZyb20gJy4uL3RoZW1lJ1xuaW1wb3J0IHsgQm94LCBCb3hQcm9wcyB9IGZyb20gJy4uL0ZsZXhib3gnXG5cbmV4cG9ydCBjb25zdCBTdHlsZWRQYW5lbCA9IHN0eWxlZChCb3gpPEJveFByb3BzLCBDb2RhY3lUaGVtZT5gXG4gIGJhY2tncm91bmQ6ICR7KHsgdGhlbWUsIGJhY2tncm91bmRDb2xvciB9KSA9PiB0aGVtZS5jb2xvcnNbKGJhY2tncm91bmRDb2xvciB8fCAnYmFja2dyb3VuZC1wcmltYXJ5JykgYXMgQ29sb3JdfTtcbiAgYm9yZGVyOiAxcHggc29saWQgJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5jb2xvcnNbJ3VpLWJvcmRlciddfTtcbiAgYm9yZGVyLXJhZGl1czogJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5yYWRpaVsxXX07XG5gXG4iXX0= */"));
@@ -0,0 +1,4 @@
1
+ import { BoxProps } from '../Flexbox';
2
+ import { ContainerComponentProps } from '../types';
3
+ export interface PanelProps extends BoxProps, ContainerComponentProps {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
- export * from './styles';
1
+ export * from './Panel';
2
+ export * from './Panel.types';
@@ -1 +1,2 @@
1
- export * from './styles';
1
+ export * from './Panel';
2
+ export * from './Panel.types';
@@ -29,6 +29,17 @@ export declare const baseColors: {
29
29
  'purple-700': string;
30
30
  'purple-800': string;
31
31
  'purple-900': string;
32
+ 'magenta-99': string;
33
+ 'magenta-95': string;
34
+ 'magenta-90': string;
35
+ 'magenta-80': string;
36
+ 'magenta-70': string;
37
+ 'magenta-60': string;
38
+ 'magenta-50': string;
39
+ 'magenta-40': string;
40
+ 'magenta-30': string;
41
+ 'magenta-20': string;
42
+ 'magenta-10': string;
32
43
  'turquoise-700': string;
33
44
  'turquoise-600': string;
34
45
  'turquoise-500': string;
@@ -82,6 +93,17 @@ export declare const functionalColorsFx: (colors: {
82
93
  "purple-700": string;
83
94
  "purple-800": string;
84
95
  "purple-900": string;
96
+ "magenta-99": string;
97
+ "magenta-95": string;
98
+ "magenta-90": string;
99
+ "magenta-80": string;
100
+ "magenta-70": string;
101
+ "magenta-60": string;
102
+ "magenta-50": string;
103
+ "magenta-40": string;
104
+ "magenta-30": string;
105
+ "magenta-20": string;
106
+ "magenta-10": string;
85
107
  "turquoise-700": string;
86
108
  "turquoise-600": string;
87
109
  "turquoise-500": string;
@@ -34,6 +34,18 @@ export var baseColors = {
34
34
  'purple-700': '#5A239E',
35
35
  'purple-800': '#421A75',
36
36
  'purple-900': '#2A114B',
37
+ // MAGENTA
38
+ 'magenta-99': '#fef2fc',
39
+ 'magenta-95': '#fcc8e9',
40
+ 'magenta-90': '#f99dd7',
41
+ 'magenta-80': '#ed4aa5',
42
+ 'magenta-70': '#d5348e',
43
+ 'magenta-60': '#b72974',
44
+ 'magenta-50': '#97215b',
45
+ 'magenta-40': '#731b46',
46
+ 'magenta-30': '#4e122e',
47
+ 'magenta-20': '#2a0b19',
48
+ 'magenta-10': '#17060d',
37
49
  // TURQUOISE
38
50
  'turquoise-700': '#176267',
39
51
  'turquoise-600': '#2E7D82',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/ui-components",
3
- "version": "0.62.8",
3
+ "version": "0.62.10",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -1,21 +0,0 @@
1
- import _styled from "@emotion/styled-base";
2
- import { Box } from '../Flexbox';
3
-
4
- var Panel = /*#__PURE__*/_styled(Box, {
5
- target: "en1xqt80"
6
- })("background:", function (_ref) {
7
- var theme = _ref.theme,
8
- backgroundColor = _ref.backgroundColor;
9
- return theme.colors[backgroundColor || 'background-primary'];
10
- }, ";border:1px solid ", function (_ref2) {
11
- var theme = _ref2.theme;
12
- return theme.colors['ui-border'];
13
- }, ";border-radius:", function (_ref3) {
14
- var theme = _ref3.theme;
15
- return theme.radii[1];
16
- }, ";padding:", function (_ref4) {
17
- var theme = _ref4.theme;
18
- return theme.space[5];
19
- }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9QYW5lbC9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSWdEIiwiZmlsZSI6Ii4uLy4uL3NyYy9QYW5lbC9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IENvZGFjeVRoZW1lLCBDb2xvciB9IGZyb20gJy4uL3RoZW1lJ1xuaW1wb3J0IHsgQm94LCBCb3hQcm9wcyB9IGZyb20gJy4uL0ZsZXhib3gnXG5cbmNvbnN0IFBhbmVsID0gc3R5bGVkKEJveCk8Qm94UHJvcHMsIENvZGFjeVRoZW1lPmBcbiAgYmFja2dyb3VuZDogJHsoeyB0aGVtZSwgYmFja2dyb3VuZENvbG9yIH0pID0+IHRoZW1lLmNvbG9yc1soYmFja2dyb3VuZENvbG9yIHx8ICdiYWNrZ3JvdW5kLXByaW1hcnknKSBhcyBDb2xvcl19O1xuICBib3JkZXI6IDFweCBzb2xpZCAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLmNvbG9yc1sndWktYm9yZGVyJ119O1xuICBib3JkZXItcmFkaXVzOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnJhZGlpWzFdfTtcbiAgcGFkZGluZzogJHsoeyB0aGVtZSB9KSA9PiB0aGVtZS5zcGFjZVs1XX07XG5gXG5cbmV4cG9ydCB7IFBhbmVsIH1cbiJdfQ== */"));
20
-
21
- export { Panel };