shinkansen-gears 1.3.0 → 2.0.0
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/.prettierignore +4 -0
- package/package.json +52 -42
- package/src/sass/.stylelintrc +14 -0
- package/src/sass/_gears.scss +28 -0
- /package/src/{gears → js/gears}/forward/index.cjs +0 -0
- /package/src/{gears → js/gears}/forward/index.d.cts +0 -0
- /package/src/{gears → js/gears}/forward/index.d.mts +0 -0
- /package/src/{gears → js/gears}/forward/index.jsx +0 -0
- /package/src/{gears → js/gears}/index.cjs +0 -0
- /package/src/{gears → js/gears}/index.d.cts +0 -0
- /package/src/{gears → js/gears}/index.d.mts +0 -0
- /package/src/{gears → js/gears}/index.jsx +0 -0
- /package/src/{gears → js/gears}/reverse/index.cjs +0 -0
- /package/src/{gears → js/gears}/reverse/index.d.cts +0 -0
- /package/src/{gears → js/gears}/reverse/index.d.mts +0 -0
- /package/src/{gears → js/gears}/reverse/index.jsx +0 -0
- /package/src/{index.cjs → js/index.cjs} +0 -0
- /package/src/{index.d.cts → js/index.d.cts} +0 -0
- /package/src/{index.d.mts → js/index.d.mts} +0 -0
- /package/src/{index.mjs → js/index.mjs} +0 -0
- /package/src/{render → js/render}/forward/index.cjs +0 -0
- /package/src/{render → js/render}/forward/index.d.cts +0 -0
- /package/src/{render → js/render}/forward/index.d.mts +0 -0
- /package/src/{render → js/render}/forward/index.jsx +0 -0
- /package/src/{render → js/render}/index.cjs +0 -0
- /package/src/{render → js/render}/index.d.cts +0 -0
- /package/src/{render → js/render}/index.d.mts +0 -0
- /package/src/{render → js/render}/index.mjs +0 -0
- /package/src/{render → js/render}/reverse/index.cjs +0 -0
- /package/src/{render → js/render}/reverse/index.d.cts +0 -0
- /package/src/{render → js/render}/reverse/index.d.mts +0 -0
- /package/src/{render → js/render}/reverse/index.jsx +0 -0
package/.prettierignore
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-gears",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Shinkansen Gears",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"React",
|
|
12
12
|
"React Router"
|
|
13
13
|
],
|
|
14
|
-
"main": "./src/index.mjs",
|
|
14
|
+
"main": "./src/js/index.mjs",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"types": "./index.d.mts",
|
|
17
17
|
"author": {
|
|
@@ -28,22 +28,27 @@
|
|
|
28
28
|
"url": "git+ssh://git@github.com/modernpoacher/shinkansen-gears.git"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "cross-env DEBUG=shinkansen-gears* webpack",
|
|
31
|
+
"build": "cross-env DEBUG=shinkansen-gears* webpack -c .storybook/webpack.config.mjs",
|
|
32
32
|
"build-storybook": "storybook build",
|
|
33
|
-
"build:watch": "
|
|
34
|
-
"lint": "
|
|
35
|
-
"lint:fix": "npm run lint
|
|
33
|
+
"build:watch": "npm run build -- -w",
|
|
34
|
+
"lint": "npm run lint:js && npm run lint:sass",
|
|
35
|
+
"lint:fix": "npm run lint:js:fix && npm run lint:sass:fix",
|
|
36
|
+
"lint:js": "eslint",
|
|
37
|
+
"lint:js:fix": "npm run lint:js -- --fix",
|
|
38
|
+
"lint:sass": "stylelint src/sass .storybook/*.scss",
|
|
39
|
+
"lint:sass:fix": "npm run lint:sass -- --fix",
|
|
36
40
|
"nvm": "bash nvm.sh",
|
|
41
|
+
"prebuild": "npm run nvm",
|
|
37
42
|
"prelint": "npm run nvm",
|
|
38
43
|
"prepare": "husky",
|
|
39
|
-
"
|
|
40
|
-
"prestorybook": "npm run build && npm run transform",
|
|
44
|
+
"prestorybook": "npm run build && npm run prettier && npm run transform",
|
|
41
45
|
"pretest": "npm run nvm",
|
|
46
|
+
"prettier": "prettier src/sass .storybook --write",
|
|
42
47
|
"storybook": "storybook dev -p 6008",
|
|
43
48
|
"test": "npm run test:mocha && npm run test:jest",
|
|
44
49
|
"test:jest": "cross-env NODE_ENV=test jest",
|
|
45
50
|
"test:mocha": "cross-env NODE_ENV=test mocha test --recursive",
|
|
46
|
-
"transform": "cross-env DEBUG=shinkansen-gears*
|
|
51
|
+
"transform": "cross-env DEBUG=shinkansen-gears* .storybook/transform.sh"
|
|
47
52
|
},
|
|
48
53
|
"dependencies": {
|
|
49
54
|
"debug": "^4.4.0",
|
|
@@ -55,16 +60,19 @@
|
|
|
55
60
|
"@babel/preset-env": "^7.26.9",
|
|
56
61
|
"@babel/preset-react": "^7.26.3",
|
|
57
62
|
"@babel/register": "^7.25.9",
|
|
58
|
-
"@modernpoacher/design-system": "
|
|
59
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
60
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
61
|
-
"@storybook/addon-actions": "
|
|
62
|
-
"@storybook/addon-essentials": "
|
|
63
|
-
"@storybook/addon-links": "
|
|
64
|
-
"@storybook/
|
|
65
|
-
"@storybook/
|
|
63
|
+
"@modernpoacher/design-system": "2.0.0",
|
|
64
|
+
"@sequencemedia/eslint-config-standard": "^0.2.42",
|
|
65
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.58",
|
|
66
|
+
"@storybook/addon-actions": "^8.6.4",
|
|
67
|
+
"@storybook/addon-essentials": "^8.6.4",
|
|
68
|
+
"@storybook/addon-links": "^8.6.4",
|
|
69
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
70
|
+
"@storybook/manager-api": "^8.6.4",
|
|
71
|
+
"@storybook/react": "^8.6.4",
|
|
72
|
+
"@storybook/react-webpack5": "^8.6.4",
|
|
73
|
+
"@storybook/theming": "^8.6.4",
|
|
66
74
|
"@types/babel__register": "^7.17.3",
|
|
67
|
-
"@types/chai": "^5.0
|
|
75
|
+
"@types/chai": "^5.2.0",
|
|
68
76
|
"@types/debug": "^4.1.12",
|
|
69
77
|
"@types/jest": "^29.5.14",
|
|
70
78
|
"@types/mocha": "^10.0.10",
|
|
@@ -74,10 +82,9 @@
|
|
|
74
82
|
"@typescript-eslint/parser": "^8.26.0",
|
|
75
83
|
"autoprefixer": "^10.4.20",
|
|
76
84
|
"chai": "^5.2.0",
|
|
77
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
78
85
|
"core-js": "^3.41.0",
|
|
79
86
|
"cross-env": "^7.0.3",
|
|
80
|
-
"eslint": "^9.
|
|
87
|
+
"eslint": "^9.22.0",
|
|
81
88
|
"eslint-plugin-react": "^7.37.4",
|
|
82
89
|
"eslint-plugin-storybook": "^0.11.4",
|
|
83
90
|
"globals": "^16.0.0",
|
|
@@ -92,6 +99,7 @@
|
|
|
92
99
|
"postcss-import": "^16.1.0",
|
|
93
100
|
"postcss-loader": "^8.1.1",
|
|
94
101
|
"postcss-map": "^0.11.0",
|
|
102
|
+
"prettier": "^3.5.3",
|
|
95
103
|
"prop-types": "^15.8.1",
|
|
96
104
|
"react": "18.3.1",
|
|
97
105
|
"react-dom": "18.3.1",
|
|
@@ -101,7 +109,10 @@
|
|
|
101
109
|
"sass": "^1.85.1",
|
|
102
110
|
"sass-loader": "^16.0.5",
|
|
103
111
|
"shinkansen-rails": "1.1.0",
|
|
104
|
-
"storybook": "
|
|
112
|
+
"storybook": "^8.6.4",
|
|
113
|
+
"stylelint": "^16.15.0",
|
|
114
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
115
|
+
"stylelint-scss": "^6.11.1",
|
|
105
116
|
"webpack": "^5.98.0",
|
|
106
117
|
"webpack-cli": "^6.0.1"
|
|
107
118
|
},
|
|
@@ -109,36 +120,35 @@
|
|
|
109
120
|
"shinkansen-rails": "1.1.x"
|
|
110
121
|
},
|
|
111
122
|
"imports": {
|
|
112
|
-
"#build/paths": "./build/paths.mjs",
|
|
113
123
|
"#gears": {
|
|
114
|
-
"require": "./src/index.cjs",
|
|
115
|
-
"import": "./src/index.mjs"
|
|
124
|
+
"require": "./src/js/index.cjs",
|
|
125
|
+
"import": "./src/js/index.mjs"
|
|
116
126
|
},
|
|
117
|
-
"#gears/gears": "./src/gears/index.cjs",
|
|
118
|
-
"#gears/gears/*": "./src/gears/*/index.cjs",
|
|
119
|
-
"#gears/gears/forward": "./src/gears/forward/index.cjs",
|
|
120
|
-
"#gears/gears/reverse": "./src/gears/reverse/index.cjs",
|
|
127
|
+
"#gears/gears": "./src/js/gears/index.cjs",
|
|
128
|
+
"#gears/gears/*": "./src/js/gears/*/index.cjs",
|
|
129
|
+
"#gears/gears/forward": "./src/js/gears/forward/index.cjs",
|
|
130
|
+
"#gears/gears/reverse": "./src/js/gears/reverse/index.cjs",
|
|
121
131
|
"#gears/render": {
|
|
122
|
-
"require": "./src/render/index.cjs",
|
|
123
|
-
"import": "./src/render/index.mjs"
|
|
132
|
+
"require": "./src/js/render/index.cjs",
|
|
133
|
+
"import": "./src/js/render/index.mjs"
|
|
124
134
|
},
|
|
125
|
-
"#gears/render/forward": "./src/render/forward/index.cjs",
|
|
126
|
-
"#gears/render/reverse": "./src/render/reverse/index.cjs"
|
|
135
|
+
"#gears/render/forward": "./src/js/render/forward/index.cjs",
|
|
136
|
+
"#gears/render/reverse": "./src/js/render/reverse/index.cjs"
|
|
127
137
|
},
|
|
128
138
|
"exports": {
|
|
129
139
|
".": {
|
|
130
|
-
"require": "./src/index.cjs",
|
|
131
|
-
"import": "./src/index.mjs"
|
|
140
|
+
"require": "./src/js/index.cjs",
|
|
141
|
+
"import": "./src/js/index.mjs"
|
|
132
142
|
},
|
|
133
|
-
"./gears": "./src/gears/index.cjs",
|
|
134
|
-
"./gears/*": "./src/gears/*/index.cjs",
|
|
135
|
-
"./gears/forward": "./src/gears/forward/index.cjs",
|
|
136
|
-
"./gears/reverse": "./src/gears/reverse/index.cjs",
|
|
143
|
+
"./gears": "./src/js/gears/index.cjs",
|
|
144
|
+
"./gears/*": "./src/js/gears/*/index.cjs",
|
|
145
|
+
"./gears/forward": "./src/js/gears/forward/index.cjs",
|
|
146
|
+
"./gears/reverse": "./src/js/gears/reverse/index.cjs",
|
|
137
147
|
"./render": {
|
|
138
|
-
"require": "./src/render/index.cjs",
|
|
139
|
-
"import": "./src/render/index.mjs"
|
|
148
|
+
"require": "./src/js/render/index.cjs",
|
|
149
|
+
"import": "./src/js/render/index.mjs"
|
|
140
150
|
},
|
|
141
|
-
"./render/forward": "./src/render/forward/index.cjs",
|
|
142
|
-
"./render/reverse": "./src/render/reverse/index.cjs"
|
|
151
|
+
"./render/forward": "./src/js/render/forward/index.cjs",
|
|
152
|
+
"./render/reverse": "./src/js/render/reverse/index.cjs"
|
|
143
153
|
}
|
|
144
154
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use "design-system/typography/actions";
|
|
2
|
+
|
|
3
|
+
@mixin gears {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 2rem 0;
|
|
6
|
+
|
|
7
|
+
li {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
margin-right: 0.5rem;
|
|
10
|
+
|
|
11
|
+
a {
|
|
12
|
+
@include actions.anchor-secondary-action;
|
|
13
|
+
|
|
14
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
|
15
|
+
& {
|
|
16
|
+
outline-color: transparent;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:last-of-type {
|
|
21
|
+
margin-right: auto;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
%gears {
|
|
27
|
+
@include gears;
|
|
28
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|