shinkansen-gears 1.3.1 → 2.0.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.
- package/.prettierignore +4 -0
- package/package.json +45 -38
- 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.1",
|
|
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,9 +60,9 @@
|
|
|
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.
|
|
63
|
+
"@modernpoacher/design-system": "2.0.0",
|
|
64
|
+
"@sequencemedia/eslint-config-standard": "^0.2.42",
|
|
65
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.59",
|
|
61
66
|
"@storybook/addon-actions": "^8.6.4",
|
|
62
67
|
"@storybook/addon-essentials": "^8.6.4",
|
|
63
68
|
"@storybook/addon-links": "^8.6.4",
|
|
@@ -67,7 +72,7 @@
|
|
|
67
72
|
"@storybook/react-webpack5": "^8.6.4",
|
|
68
73
|
"@storybook/theming": "^8.6.4",
|
|
69
74
|
"@types/babel__register": "^7.17.3",
|
|
70
|
-
"@types/chai": "^5.0
|
|
75
|
+
"@types/chai": "^5.2.0",
|
|
71
76
|
"@types/debug": "^4.1.12",
|
|
72
77
|
"@types/jest": "^29.5.14",
|
|
73
78
|
"@types/mocha": "^10.0.10",
|
|
@@ -75,12 +80,11 @@
|
|
|
75
80
|
"@types/react-test-renderer": "^19.0.0",
|
|
76
81
|
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
77
82
|
"@typescript-eslint/parser": "^8.26.0",
|
|
78
|
-
"autoprefixer": "^10.4.
|
|
83
|
+
"autoprefixer": "^10.4.21",
|
|
79
84
|
"chai": "^5.2.0",
|
|
80
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
81
85
|
"core-js": "^3.41.0",
|
|
82
86
|
"cross-env": "^7.0.3",
|
|
83
|
-
"eslint": "^9.
|
|
87
|
+
"eslint": "^9.22.0",
|
|
84
88
|
"eslint-plugin-react": "^7.37.4",
|
|
85
89
|
"eslint-plugin-storybook": "^0.11.4",
|
|
86
90
|
"globals": "^16.0.0",
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
"postcss-import": "^16.1.0",
|
|
96
100
|
"postcss-loader": "^8.1.1",
|
|
97
101
|
"postcss-map": "^0.11.0",
|
|
102
|
+
"prettier": "^3.5.3",
|
|
98
103
|
"prop-types": "^15.8.1",
|
|
99
104
|
"react": "18.3.1",
|
|
100
105
|
"react-dom": "18.3.1",
|
|
@@ -103,8 +108,11 @@
|
|
|
103
108
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
104
109
|
"sass": "^1.85.1",
|
|
105
110
|
"sass-loader": "^16.0.5",
|
|
106
|
-
"shinkansen-rails": "1.1.
|
|
111
|
+
"shinkansen-rails": "1.1.2",
|
|
107
112
|
"storybook": "^8.6.4",
|
|
113
|
+
"stylelint": "^16.15.0",
|
|
114
|
+
"stylelint-config-recommended-scss": "^14.1.0",
|
|
115
|
+
"stylelint-scss": "^6.11.1",
|
|
108
116
|
"webpack": "^5.98.0",
|
|
109
117
|
"webpack-cli": "^6.0.1"
|
|
110
118
|
},
|
|
@@ -112,36 +120,35 @@
|
|
|
112
120
|
"shinkansen-rails": "1.1.x"
|
|
113
121
|
},
|
|
114
122
|
"imports": {
|
|
115
|
-
"#build/paths": "./build/paths.mjs",
|
|
116
123
|
"#gears": {
|
|
117
|
-
"require": "./src/index.cjs",
|
|
118
|
-
"import": "./src/index.mjs"
|
|
124
|
+
"require": "./src/js/index.cjs",
|
|
125
|
+
"import": "./src/js/index.mjs"
|
|
119
126
|
},
|
|
120
|
-
"#gears/gears": "./src/gears/index.cjs",
|
|
121
|
-
"#gears/gears/*": "./src/gears/*/index.cjs",
|
|
122
|
-
"#gears/gears/forward": "./src/gears/forward/index.cjs",
|
|
123
|
-
"#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",
|
|
124
131
|
"#gears/render": {
|
|
125
|
-
"require": "./src/render/index.cjs",
|
|
126
|
-
"import": "./src/render/index.mjs"
|
|
132
|
+
"require": "./src/js/render/index.cjs",
|
|
133
|
+
"import": "./src/js/render/index.mjs"
|
|
127
134
|
},
|
|
128
|
-
"#gears/render/forward": "./src/render/forward/index.cjs",
|
|
129
|
-
"#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"
|
|
130
137
|
},
|
|
131
138
|
"exports": {
|
|
132
139
|
".": {
|
|
133
|
-
"require": "./src/index.cjs",
|
|
134
|
-
"import": "./src/index.mjs"
|
|
140
|
+
"require": "./src/js/index.cjs",
|
|
141
|
+
"import": "./src/js/index.mjs"
|
|
135
142
|
},
|
|
136
|
-
"./gears": "./src/gears/index.cjs",
|
|
137
|
-
"./gears/*": "./src/gears/*/index.cjs",
|
|
138
|
-
"./gears/forward": "./src/gears/forward/index.cjs",
|
|
139
|
-
"./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",
|
|
140
147
|
"./render": {
|
|
141
|
-
"require": "./src/render/index.cjs",
|
|
142
|
-
"import": "./src/render/index.mjs"
|
|
148
|
+
"require": "./src/js/render/index.cjs",
|
|
149
|
+
"import": "./src/js/render/index.mjs"
|
|
143
150
|
},
|
|
144
|
-
"./render/forward": "./src/render/forward/index.cjs",
|
|
145
|
-
"./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"
|
|
146
153
|
}
|
|
147
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
|