@team-monolith/cds 0.4.6 → 0.5.1

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,70 @@
1
+ import "@emotion/react";
2
+
3
+ interface CodleColors {
4
+ background: {
5
+ neutralBase: string;
6
+ neutralAlt: string;
7
+ neutralAltActive: string;
8
+ neutralAltDisabled: string;
9
+ primary: string;
10
+ primaryActive: string;
11
+ primaryDisabled: string;
12
+ secondary: string;
13
+ secondaryActive: string;
14
+ secondaryDisabled: string;
15
+ danger: string;
16
+ dangerActive: string;
17
+ dangerDisabled: string;
18
+ success: string;
19
+ successActive: string;
20
+ successDisabled: string;
21
+ info: string;
22
+ infoActive: string;
23
+ infoDisabled: string;
24
+ warning: string;
25
+ warningActive: string;
26
+ warningDisabled: string;
27
+ };
28
+ foreground: {
29
+ neutralBase: string;
30
+ neutralBaseDisabled: string;
31
+ neutralAlt: string;
32
+ neutralAltDisabled: string;
33
+ primary: string;
34
+ primaryDisabled: string;
35
+ secondary: string;
36
+ secondaryDisabled: string;
37
+ danger: string;
38
+ dangerDisabled: string;
39
+ success: string;
40
+ successDisabled: string;
41
+ info: string;
42
+ infoDisabled: string;
43
+ warning: string;
44
+ warningDisabled: string;
45
+ };
46
+ container: {
47
+ primaryContainer: string;
48
+ primaryOnContainer: string;
49
+ secondaryContainer: string;
50
+ secondaryOnContainer: string;
51
+ dangerContainer: string;
52
+ dangerOnContainer: string;
53
+ successContainer: string;
54
+ successOnContainer: string;
55
+ infoContainer: string;
56
+ infoOnContainer: string;
57
+ warningContainer: string;
58
+ warningOnContainer: string;
59
+ obsidianContainer: string;
60
+ obsidianOnContainer: string;
61
+ marbleContainer: string;
62
+ marbleOnContainer: string;
63
+ };
64
+ }
65
+
66
+ declare module "@emotion/react" {
67
+ export interface Theme {
68
+ color: CodleColors;
69
+ }
70
+ }
@@ -0,0 +1,3 @@
1
+ import { CSSInterpolation } from "@emotion/serialize";
2
+ export declare const TABLET: (style: CSSInterpolation) => import("@emotion/utils").SerializedStyles;
3
+ export declare const MOBILE: (style: CSSInterpolation) => import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,8 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { css } from "@emotion/react";
6
+ export var TABLET = function (style) { return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media (max-width: 1279px) {\n ", "\n }\n"], ["\n @media (max-width: 1279px) {\n ", "\n }\n"])), style); };
7
+ export var MOBILE = function (style) { return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media (max-width: 719px) {\n ", "\n }\n"], ["\n @media (max-width: 719px) {\n ", "\n }\n"])), style); };
8
+ var templateObject_1, templateObject_2;
@@ -1,2 +1,7 @@
1
- export { default as playList2FillSvg } from "remixicon/icons/Media/play-list-2-fill.svg";
2
- export { ReactComponent as PlayList2FillIcon } from "remixicon/icons/Media/play-list-2-fill.svg";
1
+ /// <reference types="react" />
2
+ export declare const PlayList2Fill: {
3
+ svg: string;
4
+ icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
5
+ title?: string | undefined;
6
+ }>;
7
+ };
@@ -1,2 +1,3 @@
1
- export { default as playList2FillSvg } from "remixicon/icons/Media/play-list-2-fill.svg";
2
- export { ReactComponent as PlayList2FillIcon } from "remixicon/icons/Media/play-list-2-fill.svg";
1
+ import playList2FillSvg from "remixicon/icons/Media/play-list-2-fill.svg";
2
+ import { ReactComponent as PlayList2FillIcon } from "remixicon/icons/Media/play-list-2-fill.svg";
3
+ export var PlayList2Fill = { svg: playList2FillSvg, icon: PlayList2FillIcon };
@@ -1,2 +1,7 @@
1
- export { default as refreshLineSvg } from "remixicon/icons/System/refresh-line.svg";
2
- export { ReactComponent as RefreshLineIcon } from "remixicon/icons/System/refresh-line.svg";
1
+ /// <reference types="react" />
2
+ export declare const RefreshLine: {
3
+ svg: string;
4
+ icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
5
+ title?: string | undefined;
6
+ }>;
7
+ };
@@ -1,2 +1,3 @@
1
- export { default as refreshLineSvg } from "remixicon/icons/System/refresh-line.svg";
2
- export { ReactComponent as RefreshLineIcon } from "remixicon/icons/System/refresh-line.svg";
1
+ import refreshLineSvg from "remixicon/icons/System/refresh-line.svg";
2
+ import { ReactComponent as RefreshLineIcon } from "remixicon/icons/System/refresh-line.svg";
3
+ export var RefreshLine = { svg: refreshLineSvg, icon: RefreshLineIcon };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../@types/emotion.d.ts" />
1
2
  export * from "./components/AlertDialog";
2
3
  export { default as Banner } from "./components/Banner";
3
4
  export * from "./components/Banner";
@@ -23,6 +24,7 @@ export { default as Tooltip } from "./components/Tooltip";
23
24
  export * from "./components/Tooltip";
24
25
  export { default as color } from "./foundation/color";
25
26
  export { default as shadows } from "./foundation/shadows";
27
+ export * from "./foundation/breakpoints";
26
28
  export * from "./icons/brand";
27
29
  export * from "./icons/map";
28
30
  export * from "./icons/system";
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/emotion.d.ts" />
1
2
  export * from "./components/AlertDialog";
2
3
  export { default as Banner } from "./components/Banner";
3
4
  export * from "./components/Banner";
@@ -23,6 +24,7 @@ export { default as Tooltip } from "./components/Tooltip";
23
24
  export * from "./components/Tooltip";
24
25
  export { default as color } from "./foundation/color";
25
26
  export { default as shadows } from "./foundation/shadows";
27
+ export * from "./foundation/breakpoints";
26
28
  export * from "./icons/brand";
27
29
  export * from "./icons/map";
28
30
  export * from "./icons/system";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.4.6",
3
+ "version": "0.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -16,17 +16,21 @@
16
16
  "typescript": "^4.5.5"
17
17
  },
18
18
  "files": [
19
- "dist/**/*"
19
+ "dist/**/*",
20
+ "@types/**/*"
20
21
  ],
21
22
  "scripts": {
22
23
  "clean": "rimraf dist",
23
24
  "compile": "npm run clean && mkdir dist && tsc && npm run postbundle",
24
- "postbundle": "copyfiles -u 2 src/cds/**/*.{svg,jpg,png} dist/"
25
+ "postbundle": "copyfiles -u 2 src/cds/**/*.{svg,jpg,png} dist/",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build"
25
28
  },
26
29
  "eslintConfig": {
27
30
  "extends": [
28
31
  "react-app",
29
- "react-app/jest"
32
+ "react-app/jest",
33
+ "plugin:storybook/recommended"
30
34
  ]
31
35
  },
32
36
  "browserslist": {
@@ -42,7 +46,21 @@
42
46
  ]
43
47
  },
44
48
  "devDependencies": {
49
+ "@babel/preset-env": "^7.22.7",
50
+ "@babel/preset-react": "^7.22.5",
51
+ "@babel/preset-typescript": "^7.22.5",
52
+ "@storybook/addon-essentials": "^7.0.26",
53
+ "@storybook/addon-interactions": "^7.0.26",
54
+ "@storybook/addon-links": "^7.0.26",
55
+ "@storybook/blocks": "^7.0.26",
56
+ "@storybook/react": "^7.0.26",
57
+ "@storybook/react-webpack5": "^7.0.26",
58
+ "@storybook/testing-library": "^0.0.14-next.2",
59
+ "@types/webpack-env": "^1.18.1",
45
60
  "copyfiles": "^2.4.1",
46
- "rimraf": "^5.0.1"
61
+ "eslint-plugin-storybook": "^0.6.12",
62
+ "prop-types": "^15.8.1",
63
+ "rimraf": "^5.0.1",
64
+ "storybook": "^7.0.26"
47
65
  }
48
66
  }