shinkansen-gears 1.1.441 → 1.1.443
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/package.json +8 -3
- package/src/gears/forward/index.d.mts +6 -1
- package/src/gears/index.d.mts +6 -1
- package/src/gears/reverse/index.d.mts +6 -1
- package/src/index.d.mts +5 -1
- package/transform.sh +0 -4
- package/tsconfig.json +0 -11
- package/webpack.config.mjs +0 -129
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-gears",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.443",
|
|
4
4
|
"description": "Shinkansen Gears",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/preset-env": "^7.26.0",
|
|
54
54
|
"@babel/preset-react": "^7.25.9",
|
|
55
55
|
"@babel/register": "^7.25.9",
|
|
56
|
-
"@modernpoacher/design-system": "1.1.
|
|
56
|
+
"@modernpoacher/design-system": "1.1.17",
|
|
57
57
|
"@storybook/addon-actions": "7.6.20",
|
|
58
58
|
"@storybook/addon-essentials": "7.6.20",
|
|
59
59
|
"@storybook/addon-links": "7.6.20",
|
|
@@ -100,7 +100,12 @@
|
|
|
100
100
|
"shinkansen-rails": "1.0.x"
|
|
101
101
|
},
|
|
102
102
|
"imports": {
|
|
103
|
-
"#build/paths": "./build/paths.mjs"
|
|
103
|
+
"#build/paths": "./build/paths.mjs",
|
|
104
|
+
"#gears": "./src/index.mjs",
|
|
105
|
+
"#gears/gears": "./src/gears/index.jsx",
|
|
106
|
+
"#gears/gears/*": "./src/gears/*/index.jsx",
|
|
107
|
+
"#gears/gears/forward": "./src/gears/forward/index.jsx",
|
|
108
|
+
"#gears/gears/reverse": "./src/gears/reverse/index.jsx"
|
|
104
109
|
},
|
|
105
110
|
"exports": {
|
|
106
111
|
".": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '
|
|
1
|
+
declare module '#gears/gears/forward' {
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
4
|
export interface ForwardProps {
|
|
@@ -7,3 +7,8 @@ declare module 'shinkansen-gears/gears/forward' {
|
|
|
7
7
|
|
|
8
8
|
export default function Forward (props: ForwardProps): React.JSX.Element
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
declare module 'shinkansen-gears/gears/forward' {
|
|
12
|
+
export { default } from '#gears/gears/forward'
|
|
13
|
+
export * from '#gears/gears/forward'
|
|
14
|
+
}
|
package/src/gears/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '
|
|
1
|
+
declare module '#gears/gears' {
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
export interface GearsProps {
|
|
@@ -16,3 +16,8 @@ declare module 'shinkansen-gears/gears' {
|
|
|
16
16
|
export function renderForward (forward: Record<string, unknown>, pattern?: string): React.JSX.Element | null
|
|
17
17
|
export default class Gears extends React.Component<GearsProps, GearsState> {}
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
declare module 'shinkansen-gears/gears' {
|
|
21
|
+
export { default } from '#gears/gears'
|
|
22
|
+
export * from '#gears/gears'
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '
|
|
1
|
+
declare module '#gears/gears/reverse' {
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
4
|
export interface ReverseProps {
|
|
@@ -7,3 +7,8 @@ declare module 'shinkansen-gears/gears/reverse' {
|
|
|
7
7
|
|
|
8
8
|
export default function Reverse (props: ReverseProps): React.JSX.Element
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
declare module 'shinkansen-gears/gears/reverse' {
|
|
12
|
+
export { default } from '#gears/gears/reverse'
|
|
13
|
+
export * from '#gears/gears/reverse'
|
|
14
|
+
}
|
package/src/index.d.mts
CHANGED
package/transform.sh
DELETED
package/tsconfig.json
DELETED
package/webpack.config.mjs
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
join
|
|
3
|
-
} from 'node:path'
|
|
4
|
-
|
|
5
|
-
import Webpack from 'webpack'
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
CleanWebpackPlugin as CleanPlugin
|
|
9
|
-
} from 'clean-webpack-plugin'
|
|
10
|
-
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
|
|
11
|
-
import RemoveFilesPlugin from 'remove-files-webpack-plugin'
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
storybookPath as STORYBOOK_PATH,
|
|
15
|
-
modulePath as MODULE_PATH
|
|
16
|
-
} from '#build/paths'
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
EnvironmentPlugin,
|
|
20
|
-
SourceMapDevToolPlugin
|
|
21
|
-
} = Webpack
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
mode: 'production',
|
|
25
|
-
entry: {
|
|
26
|
-
'preview-head': join(STORYBOOK_PATH, 'sass/preview-head.scss')
|
|
27
|
-
},
|
|
28
|
-
output: {
|
|
29
|
-
path: join(STORYBOOK_PATH, 'css')
|
|
30
|
-
},
|
|
31
|
-
stats: {
|
|
32
|
-
colors: true
|
|
33
|
-
},
|
|
34
|
-
module: {
|
|
35
|
-
rules: [
|
|
36
|
-
{
|
|
37
|
-
test: /\.scss$/i,
|
|
38
|
-
use: [
|
|
39
|
-
MiniCssExtractPlugin.loader,
|
|
40
|
-
{
|
|
41
|
-
loader: 'css-loader',
|
|
42
|
-
options: {
|
|
43
|
-
importLoaders: 1,
|
|
44
|
-
sourceMap: false,
|
|
45
|
-
url: false
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
loader: 'postcss-loader',
|
|
50
|
-
options: {
|
|
51
|
-
sourceMap: false,
|
|
52
|
-
postcssOptions: {
|
|
53
|
-
config: false,
|
|
54
|
-
plugins: [
|
|
55
|
-
'postcss-import',
|
|
56
|
-
'postcss-discard-comments',
|
|
57
|
-
'postcss-discard-empty',
|
|
58
|
-
[
|
|
59
|
-
'postcss-map', {
|
|
60
|
-
maps: [
|
|
61
|
-
join(MODULE_PATH, '@modernpoacher/design-system/src/tokens/palette.json')
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
[
|
|
66
|
-
'autoprefixer', {
|
|
67
|
-
remove: false
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
'perfectionist', {
|
|
72
|
-
trimLeadingZero: false,
|
|
73
|
-
sourcemap: true,
|
|
74
|
-
indentSize: 2,
|
|
75
|
-
format: 'expanded',
|
|
76
|
-
syntax: 'scss'
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
loader: 'sass-loader',
|
|
85
|
-
options: {
|
|
86
|
-
sourceMap: false,
|
|
87
|
-
sassOptions: {
|
|
88
|
-
loadPaths: [
|
|
89
|
-
join(MODULE_PATH, '@modernpoacher/design-system/src/sass')
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
plugins: [
|
|
99
|
-
new CleanPlugin({
|
|
100
|
-
verbose: false,
|
|
101
|
-
cleanOnceBeforeBuildPatterns: [
|
|
102
|
-
join(STORYBOOK_PATH, 'css/*.css'),
|
|
103
|
-
join(STORYBOOK_PATH, 'css/*.css.map')
|
|
104
|
-
]
|
|
105
|
-
}),
|
|
106
|
-
new EnvironmentPlugin({
|
|
107
|
-
NODE_ENV: 'production'
|
|
108
|
-
}),
|
|
109
|
-
new SourceMapDevToolPlugin({
|
|
110
|
-
test: /\.css$/i,
|
|
111
|
-
filename: '[name].css.map'
|
|
112
|
-
}),
|
|
113
|
-
new MiniCssExtractPlugin({
|
|
114
|
-
filename: '[name].css'
|
|
115
|
-
}),
|
|
116
|
-
new RemoveFilesPlugin({
|
|
117
|
-
after: {
|
|
118
|
-
test: [
|
|
119
|
-
{
|
|
120
|
-
folder: join(STORYBOOK_PATH, 'css'),
|
|
121
|
-
method (filePath) {
|
|
122
|
-
return /\.js$/m.test(filePath)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
}
|