@shoplflow/base 0.0.1 → 0.0.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @shoplflow/base
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9](https://github.com/shopl/shoplflow/pull/9) [`92540fd`](https://github.com/shopl/shoplflow/commit/92540fd2141eff181e63ed81d6e13462a7bae0c6) Thanks [@Jason-Jeong-Dev](https://github.com/Jason-Jeong-Dev)! - base publish test
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // src/emotion.d.ts
4
+ var import_react = require("@emotion/react");
5
+ //# sourceMappingURL=emotion.d.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport React from 'react';\nimport { hadaTheme } from './styles';\n\ntype ShoplflowTheme = typeof hadaTheme;\n\ndeclare module '@emotion/react' {\n export interface Theme extends ShoplflowTheme {}\n}\n\ndeclare module '*.svg' {\n export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n}\n"],"mappings":";;;AAAA,mBAAO;","names":[]}
@@ -0,0 +1,110 @@
1
+ import React from 'react';
2
+ import * as _emotion_utils from '@emotion/utils';
3
+
4
+ declare const hadaTheme: {
5
+ borderRadius: {
6
+ borderRadius04: string;
7
+ borderRadius06: string;
8
+ borderRadius08: string;
9
+ borderRadius12: string;
10
+ borderRadius16: string;
11
+ };
12
+ fontWeights: {
13
+ regular: string;
14
+ medium: string;
15
+ bold: string;
16
+ };
17
+ colors: {
18
+ coolgray300: string;
19
+ coolgray200: string;
20
+ coolgray100: string;
21
+ coolgray50: string;
22
+ navy400: string;
23
+ navy300: string;
24
+ neutral0: string;
25
+ neutral100: string;
26
+ neutral150: string;
27
+ neutral200: string;
28
+ neutral300: string;
29
+ neutral350: string;
30
+ neutral400: string;
31
+ neutral500: string;
32
+ neutral600: string;
33
+ neutral700: string;
34
+ neutral400_5: string;
35
+ red300: string;
36
+ red200: string;
37
+ red100: string;
38
+ ocean300: string;
39
+ ocean200: string;
40
+ ocean100: string;
41
+ purple400: string;
42
+ purple300: string;
43
+ purple100: string;
44
+ yellow300: string;
45
+ yellow200: string;
46
+ yellow100: string;
47
+ green300: string;
48
+ green200: string;
49
+ green100: string;
50
+ shopl400: string;
51
+ shopl300: string;
52
+ shopl200: string;
53
+ shopl150: string;
54
+ shopl100: string;
55
+ hada400: string;
56
+ hada300: string;
57
+ hada200: string;
58
+ hada150: string;
59
+ hada100: string;
60
+ background: string;
61
+ primary100: string;
62
+ primary150: string;
63
+ primary200: string;
64
+ primary300: string;
65
+ primary400: string;
66
+ };
67
+ typographies: {
68
+ heading1_700: _emotion_utils.SerializedStyles;
69
+ heading1_400: _emotion_utils.SerializedStyles;
70
+ heading2_700: _emotion_utils.SerializedStyles;
71
+ heading2_400: _emotion_utils.SerializedStyles;
72
+ heading3_700: _emotion_utils.SerializedStyles;
73
+ heading3_400: _emotion_utils.SerializedStyles;
74
+ title1_700: _emotion_utils.SerializedStyles;
75
+ title1_400: _emotion_utils.SerializedStyles;
76
+ title2_700: _emotion_utils.SerializedStyles;
77
+ title2_500: _emotion_utils.SerializedStyles;
78
+ title2_400: _emotion_utils.SerializedStyles;
79
+ body1_700: _emotion_utils.SerializedStyles;
80
+ body1_500: _emotion_utils.SerializedStyles;
81
+ body1_400: _emotion_utils.SerializedStyles;
82
+ body2_700: _emotion_utils.SerializedStyles;
83
+ body2_500: _emotion_utils.SerializedStyles;
84
+ body2_400: _emotion_utils.SerializedStyles;
85
+ body3_400: _emotion_utils.SerializedStyles;
86
+ caption_400: _emotion_utils.SerializedStyles;
87
+ };
88
+ spacings: {
89
+ spacing04: string;
90
+ spacing06: string;
91
+ spacing08: string;
92
+ spacing12: string;
93
+ spacing16: string;
94
+ spacing20: string;
95
+ spacing24: string;
96
+ spacing30: string;
97
+ spacing32: string;
98
+ spacing40: string;
99
+ };
100
+ };
101
+
102
+ type ShoplflowTheme = typeof hadaTheme;
103
+
104
+ declare module '@emotion/react' {
105
+ export interface Theme extends ShoplflowTheme {}
106
+ }
107
+
108
+ declare module '*.svg' {
109
+ export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
110
+ }
@@ -0,0 +1,110 @@
1
+ import React from 'react';
2
+ import * as _emotion_utils from '@emotion/utils';
3
+
4
+ declare const hadaTheme: {
5
+ borderRadius: {
6
+ borderRadius04: string;
7
+ borderRadius06: string;
8
+ borderRadius08: string;
9
+ borderRadius12: string;
10
+ borderRadius16: string;
11
+ };
12
+ fontWeights: {
13
+ regular: string;
14
+ medium: string;
15
+ bold: string;
16
+ };
17
+ colors: {
18
+ coolgray300: string;
19
+ coolgray200: string;
20
+ coolgray100: string;
21
+ coolgray50: string;
22
+ navy400: string;
23
+ navy300: string;
24
+ neutral0: string;
25
+ neutral100: string;
26
+ neutral150: string;
27
+ neutral200: string;
28
+ neutral300: string;
29
+ neutral350: string;
30
+ neutral400: string;
31
+ neutral500: string;
32
+ neutral600: string;
33
+ neutral700: string;
34
+ neutral400_5: string;
35
+ red300: string;
36
+ red200: string;
37
+ red100: string;
38
+ ocean300: string;
39
+ ocean200: string;
40
+ ocean100: string;
41
+ purple400: string;
42
+ purple300: string;
43
+ purple100: string;
44
+ yellow300: string;
45
+ yellow200: string;
46
+ yellow100: string;
47
+ green300: string;
48
+ green200: string;
49
+ green100: string;
50
+ shopl400: string;
51
+ shopl300: string;
52
+ shopl200: string;
53
+ shopl150: string;
54
+ shopl100: string;
55
+ hada400: string;
56
+ hada300: string;
57
+ hada200: string;
58
+ hada150: string;
59
+ hada100: string;
60
+ background: string;
61
+ primary100: string;
62
+ primary150: string;
63
+ primary200: string;
64
+ primary300: string;
65
+ primary400: string;
66
+ };
67
+ typographies: {
68
+ heading1_700: _emotion_utils.SerializedStyles;
69
+ heading1_400: _emotion_utils.SerializedStyles;
70
+ heading2_700: _emotion_utils.SerializedStyles;
71
+ heading2_400: _emotion_utils.SerializedStyles;
72
+ heading3_700: _emotion_utils.SerializedStyles;
73
+ heading3_400: _emotion_utils.SerializedStyles;
74
+ title1_700: _emotion_utils.SerializedStyles;
75
+ title1_400: _emotion_utils.SerializedStyles;
76
+ title2_700: _emotion_utils.SerializedStyles;
77
+ title2_500: _emotion_utils.SerializedStyles;
78
+ title2_400: _emotion_utils.SerializedStyles;
79
+ body1_700: _emotion_utils.SerializedStyles;
80
+ body1_500: _emotion_utils.SerializedStyles;
81
+ body1_400: _emotion_utils.SerializedStyles;
82
+ body2_700: _emotion_utils.SerializedStyles;
83
+ body2_500: _emotion_utils.SerializedStyles;
84
+ body2_400: _emotion_utils.SerializedStyles;
85
+ body3_400: _emotion_utils.SerializedStyles;
86
+ caption_400: _emotion_utils.SerializedStyles;
87
+ };
88
+ spacings: {
89
+ spacing04: string;
90
+ spacing06: string;
91
+ spacing08: string;
92
+ spacing12: string;
93
+ spacing16: string;
94
+ spacing20: string;
95
+ spacing24: string;
96
+ spacing30: string;
97
+ spacing32: string;
98
+ spacing40: string;
99
+ };
100
+ };
101
+
102
+ type ShoplflowTheme = typeof hadaTheme;
103
+
104
+ declare module '@emotion/react' {
105
+ export interface Theme extends ShoplflowTheme {}
106
+ }
107
+
108
+ declare module '*.svg' {
109
+ export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
110
+ }
@@ -0,0 +1,3 @@
1
+ // src/emotion.d.ts
2
+ import "@emotion/react";
3
+ //# sourceMappingURL=emotion.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport React from 'react';\nimport { hadaTheme } from './styles';\n\ntype ShoplflowTheme = typeof hadaTheme;\n\ndeclare module '@emotion/react' {\n export interface Theme extends ShoplflowTheme {}\n}\n\ndeclare module '*.svg' {\n export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n}\n"],"mappings":";AAAA,OAAO;","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.tsx
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ Button: () => Button_default
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // src/components/Button.tsx
28
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
29
+ var Button = () => {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Button" });
31
+ };
32
+ var Button_default = Button;
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ Button
36
+ });
37
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.tsx","../src/components/Button.tsx"],"sourcesContent":["export { default as Button } from './components/Button';\n","const Button = () => {\n return <div>Button</div>;\n};\n\nexport default Button;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCS;AADT,IAAM,SAAS,MAAM;AACnB,SAAO,4CAAC,SAAI,oBAAM;AACpB;AAEA,IAAO,iBAAQ;","names":[]}
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const Button: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { Button };
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const Button: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { Button };
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ // src/components/Button.tsx
2
+ import { jsx } from "@emotion/react/jsx-runtime";
3
+ var Button = () => {
4
+ return /* @__PURE__ */ jsx("div", { children: "Button" });
5
+ };
6
+ var Button_default = Button;
7
+ export {
8
+ Button_default as Button
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["const Button = () => {\n return <div>Button</div>;\n};\n\nexport default Button;\n"],"mappings":";AACS;AADT,IAAM,SAAS,MAAM;AACnB,SAAO,oBAAC,SAAI,oBAAM;AACpB;AAEA,IAAO,iBAAQ;","names":[]}
package/package.json CHANGED
@@ -1,20 +1,27 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
- "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
7
- "test": "jest",
8
- "build": "node build.cjs",
9
- "develop": "yarn build --watch",
10
- "publish": "npm publish --access public"
6
+ "test": "jest --onlyChanged",
7
+ "build:tokens": "node scripts/generate-tokens.cjs",
8
+ "type-check": "tsc --noEmit",
9
+ "build": "tsup --format esm,cjs --dts --external react",
10
+ "develop": "tsup --format esm,cjs --watch --dts --external react"
11
11
  },
12
- "main": "dist/index.esm.js",
13
- "module": "dist/index.cjs.js",
12
+ "main": "dist/index.js",
13
+ "module": "dist/index.mjs",
14
14
  "types": "dist/index.d.ts",
15
15
  "files": [
16
- "dist"
16
+ "/dist"
17
17
  ],
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "peerDependencies": {
22
+ "@emotion/react": "*",
23
+ "@emotion/styled": "*"
24
+ },
18
25
  "dependencies": {
19
26
  "react": "^18.2.0",
20
27
  "react-dom": "^18.2.0"
@@ -23,19 +30,20 @@
23
30
  "@babel/core": "^7.22.5",
24
31
  "@babel/preset-env": "^7.22.5",
25
32
  "@babel/preset-typescript": "^7.22.5",
33
+ "@emotion/react": "^11",
34
+ "@emotion/styled": "^11",
26
35
  "@jest/globals": "^29.5.0",
27
36
  "@types/jest": "^29.5.2",
37
+ "@types/node": "20.4.9",
28
38
  "@types/react": "^18.0.37",
29
39
  "@types/react-dom": "^18.0.11",
30
- "babel-jest": "^29.5.0",
31
- "esbuild": "^0.18.11",
40
+ "eslint": "^8.44.0",
32
41
  "jest": "^29.5.0",
33
42
  "jest-junit": "^16.0.0",
34
43
  "jest-pnp-resolver": "^1.2.3",
35
- "npm-dts": "^1.3.12",
36
- "prop-types": "^15.8.1",
37
44
  "ts-jest": "^29.1.0",
38
45
  "ts-node": "^10.9.1",
46
+ "tsup": "7.2.0",
39
47
  "typescript": "^5.0.2"
40
48
  }
41
- }
49
+ }
package/dist/index.esm.js DELETED
@@ -1 +0,0 @@
1
- var t=()=>{console.log("testFunc")};export{t as testFunc};