@openameba/spindle-ui 3.1.4 → 3.1.5
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 +12 -0
- package/Icon/Filter.js +1 -1
- package/Icon/Filter.js.map +1 -1
- package/Icon/Filter.mjs +1 -1
- package/LICENSE +21 -0
- package/README.md +6 -6
- package/package.json +56 -50
- package/vitest.config.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1775](https://github.com/openameba/spindle/pull/1775) [`bd22a93`](https://github.com/openameba/spindle/commit/bd22a93b464303ee22b23af699fbd25bfe247697) Thanks [@herablog](https://github.com/herablog)! - feat(spindle-icons): update filter icon
|
|
8
|
+
|
|
9
|
+
## 3.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1770](https://github.com/openameba/spindle/pull/1770) [`34bb047`](https://github.com/openameba/spindle/commit/34bb04789f6ed92dc33c8649feeccdd6afff75f5) Thanks [@github-actions](https://github.com/apps/github-actions)! - feat(spindle-icons): update filter icon
|
|
14
|
+
|
|
3
15
|
## 3.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/Icon/Filter.js
CHANGED
|
@@ -46,6 +46,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
47
|
var React = __importStar(require("react"));
|
|
48
48
|
var SvgFilter = function (props) { return (React.createElement("svg", __assign({ width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img" }, props),
|
|
49
|
-
React.createElement("path", { d: "
|
|
49
|
+
React.createElement("path", { d: "M8.5 15.5A1.5 1.5 0 0 1 10 17v.5h10a1 1 0 1 1 0 2H10v.5a1.5 1.5 0 0 1-1.5 1.5h-1A1.5 1.5 0 0 1 6 20v-.5H4a1 1 0 1 1 0-2h2V17a1.5 1.5 0 0 1 1.5-1.5zM16.5 9a1.5 1.5 0 0 1 1.5 1.5v.5h2a1 1 0 1 1 0 2h-2v.5a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5V13H4a1 1 0 1 1 0-2h10v-.5A1.5 1.5 0 0 1 15.5 9zM8.5 2.5A1.5 1.5 0 0 1 10 4v.5h10a1 1 0 1 1 0 2H10V7a1.5 1.5 0 0 1-1.5 1.5h-1A1.5 1.5 0 0 1 6 7v-.5H4a1 1 0 0 1 0-2h2V4a1.5 1.5 0 0 1 1.5-1.5z" }))); };
|
|
50
50
|
exports.default = SvgFilter;
|
|
51
51
|
//# sourceMappingURL=Filter.js.map
|
package/Icon/Filter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../src/Icon/Filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA+B;AAE/B,IAAM,SAAS,GAAG,UAAC,KAA8B,IAAK,OAAA,CACpD,sCACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,IACN,KAAK;IAET,8BAAM,CAAC,EAAC,
|
|
1
|
+
{"version":3,"file":"Filter.js","sourceRoot":"","sources":["../../src/Icon/Filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA+B;AAE/B,IAAM,SAAS,GAAG,UAAC,KAA8B,IAAK,OAAA,CACpD,sCACE,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,IACN,KAAK;IAET,8BAAM,CAAC,EAAC,wbAAwb,GAAG,CAC/b,CACP,EAXqD,CAWrD,CAAC;AACF,kBAAe,SAAS,CAAC"}
|
package/Icon/Filter.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
const SvgFilter = (props) => (React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "currentColor", role: "img", ...props },
|
|
3
|
-
React.createElement("path", { d: "
|
|
3
|
+
React.createElement("path", { d: "M8.5 15.5A1.5 1.5 0 0 1 10 17v.5h10a1 1 0 1 1 0 2H10v.5a1.5 1.5 0 0 1-1.5 1.5h-1A1.5 1.5 0 0 1 6 20v-.5H4a1 1 0 1 1 0-2h2V17a1.5 1.5 0 0 1 1.5-1.5zM16.5 9a1.5 1.5 0 0 1 1.5 1.5v.5h2a1 1 0 1 1 0 2h-2v.5a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5V13H4a1 1 0 1 1 0-2h10v-.5A1.5 1.5 0 0 1 15.5 9zM8.5 2.5A1.5 1.5 0 0 1 10 4v.5h10a1 1 0 1 1 0 2H10V7a1.5 1.5 0 0 1-1.5 1.5h-1A1.5 1.5 0 0 1 6 7v-.5H4a1 1 0 0 1 0-2h2V4a1.5 1.5 0 0 1 1.5-1.5z" })));
|
|
4
4
|
export default SvgFilter;
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 openameba
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Spindle UIは、Amebaのデザインシステム「Spindle」で定義された
|
|
|
16
16
|
npm install @openameba/spindle-ui
|
|
17
17
|
```
|
|
18
18
|
```
|
|
19
|
-
|
|
19
|
+
pnpm add @openameba/spindle-ui
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 利用方法
|
|
@@ -84,22 +84,22 @@ Spindle UIはGoogle Chrome最新版で動作確認しています。それ以外
|
|
|
84
84
|
## 開発方法
|
|
85
85
|
|
|
86
86
|
```
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
pnpm install --frozen-lockfile
|
|
88
|
+
pnpm dev # storybookが起動します
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
NOTE: 事前に [spindle-hooks](https://github.com/openameba/spindle/tree/main/packages/spindle-hooks) を以下のようにbuildしておく必要があります。
|
|
92
92
|
|
|
93
93
|
```
|
|
94
94
|
cd ../spindle-hooks
|
|
95
|
-
|
|
95
|
+
pnpm build
|
|
96
96
|
cd -
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
新規コンポーネントを作成する際にはgenerateコマンドが便利です。推奨されるフローは、まずDesign Docを作成しPull Requestします。レビューが終わったらマージし、コンポーネント実装を進めます。
|
|
100
100
|
|
|
101
101
|
```
|
|
102
|
-
|
|
102
|
+
pnpm generate
|
|
103
103
|
? Please select a document. (Use arrow keys)
|
|
104
104
|
❯ design doc
|
|
105
105
|
? Please select the output destination directory. (Use arrow keys or type to search)
|
|
@@ -112,7 +112,7 @@ yarn generate
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
```
|
|
115
|
-
|
|
115
|
+
pnpm generate
|
|
116
116
|
? Please select a document. (Use arrow keys)
|
|
117
117
|
❯ component
|
|
118
118
|
? Please select the output destination directory. (Use arrow keys or type to search)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openameba/spindle-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"module": "./index.mjs",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -8,36 +8,6 @@
|
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"generate": "scaffdog generate",
|
|
13
|
-
"test": "run-p size test:interaction",
|
|
14
|
-
"test:interaction": "jest",
|
|
15
|
-
"presize": "yarn build",
|
|
16
|
-
"size": "bundlewatch --config .bundlewatch.config.js",
|
|
17
|
-
"dev": "yarn storybook:start",
|
|
18
|
-
"storybook:start": "storybook dev -p 6006 -c .storybook",
|
|
19
|
-
"storybook:build": "storybook build -o public -c .storybook",
|
|
20
|
-
"storybook:deploy": "firebase deploy --only hosting",
|
|
21
|
-
"test:regression": "reg-suit run",
|
|
22
|
-
"serve": "firebase serve",
|
|
23
|
-
"clean": "npx rimraf dist",
|
|
24
|
-
"cp": "npx cpx 'dist/**/*' .",
|
|
25
|
-
"prebuild": "yarn clean",
|
|
26
|
-
"build": "run-p build:*",
|
|
27
|
-
"build:script": "run-s build:script:esm build:script:cjs",
|
|
28
|
-
"build:script:cjs": "tsc -p tsconfig.cjs.json",
|
|
29
|
-
"build:script:esm": "run-s build:script:esm:*",
|
|
30
|
-
"build:script:esm:js": "tsc -p tsconfig.esm.json",
|
|
31
|
-
"build:script:esm:rename": "npx renamer --find js --replace mjs 'dist/**'",
|
|
32
|
-
"build:script:esm:extensionReplace": "jscodeshift -t ../../bin/outputExtensionReplace.js dist/** --extensions=mjs",
|
|
33
|
-
"build:style": "postcss src/**/*.css src/*.css --base src -d dist/",
|
|
34
|
-
"preicon": "npx rimraf 'src/Icon/!(*.stories).tsx' && npx cpx '../spindle-icons/dist/svg/!(sprite).svg' icon-tmp",
|
|
35
|
-
"icon": "run-s icon:react icon:connect",
|
|
36
|
-
"posticon": "npx rimraf icon-tmp",
|
|
37
|
-
"icon:react": "svgr --out-dir src/Icon icon-tmp",
|
|
38
|
-
"icon:connect": "npx tsx scripts/figma-connect-icons.ts",
|
|
39
|
-
"prepublishOnly": "yarn build && yarn cp"
|
|
40
|
-
},
|
|
41
11
|
"license": "MIT",
|
|
42
12
|
"repository": {
|
|
43
13
|
"type": "git",
|
|
@@ -62,40 +32,76 @@
|
|
|
62
32
|
"use-callback-ref": "^1.3.3"
|
|
63
33
|
},
|
|
64
34
|
"devDependencies": {
|
|
65
|
-
"@figma/code-connect": "1.3.
|
|
66
|
-
"@storybook/addon-a11y": "10.
|
|
67
|
-
"@storybook/addon-docs": "10.
|
|
68
|
-
"@storybook/addon-webpack5-compiler-swc": "4.0.
|
|
69
|
-
"@storybook/react": "10.
|
|
70
|
-
"@storybook/react-webpack5": "10.
|
|
35
|
+
"@figma/code-connect": "1.3.12",
|
|
36
|
+
"@storybook/addon-a11y": "10.1.11",
|
|
37
|
+
"@storybook/addon-docs": "10.1.11",
|
|
38
|
+
"@storybook/addon-webpack5-compiler-swc": "4.0.2",
|
|
39
|
+
"@storybook/react": "10.1.11",
|
|
40
|
+
"@storybook/react-webpack5": "10.1.11",
|
|
71
41
|
"@svgr/cli": "8.1.0",
|
|
72
|
-
"@swc/core": "1.15.1",
|
|
73
|
-
"@swc/jest": "0.2.39",
|
|
74
42
|
"@testing-library/dom": "10.4.1",
|
|
75
43
|
"@testing-library/jest-dom": "6.9.1",
|
|
76
|
-
"@testing-library/react": "16.3.
|
|
44
|
+
"@testing-library/react": "16.3.2",
|
|
77
45
|
"@testing-library/user-event": "14.6.1",
|
|
78
|
-
"@types/
|
|
79
|
-
"@
|
|
80
|
-
"
|
|
46
|
+
"@types/react": "19.2.8",
|
|
47
|
+
"@vitest/ui": "4.0.17",
|
|
48
|
+
"@vscode/web-custom-data": "0.6.2",
|
|
49
|
+
"autoprefixer": "10.4.23",
|
|
81
50
|
"bundlewatch": "0.4.1",
|
|
82
51
|
"cssnano": "7.1.2",
|
|
83
52
|
"dialog-polyfill": "0.5.6",
|
|
84
53
|
"dotenv": "17.2.3",
|
|
85
54
|
"figma-api": "1.12.0",
|
|
86
|
-
"firebase-tools": "
|
|
87
|
-
"
|
|
88
|
-
"jest-environment-jsdom": "30.2.0",
|
|
55
|
+
"firebase-tools": "15.3.1",
|
|
56
|
+
"jsdom": "27.4.0",
|
|
89
57
|
"postcss": "8.5.6",
|
|
90
58
|
"postcss-cli": "11.0.1",
|
|
91
59
|
"postcss-import": "16.1.1",
|
|
92
|
-
"react": "19.2.
|
|
93
|
-
"react-dom": "19.2.
|
|
60
|
+
"react": "19.2.3",
|
|
61
|
+
"react-dom": "19.2.3",
|
|
94
62
|
"reg-keygen-git-hash-plugin": "0.14.5",
|
|
95
63
|
"reg-notify-github-plugin": "0.14.5",
|
|
96
64
|
"reg-publish-gcs-plugin": "0.14.4",
|
|
97
65
|
"reg-suit": "0.14.5",
|
|
98
66
|
"scaffdog": "4.1.0",
|
|
99
|
-
"storybook": "10.
|
|
67
|
+
"storybook": "10.1.11",
|
|
68
|
+
"stylelint": "16.26.1",
|
|
69
|
+
"stylelint-config-standard": "39.0.1",
|
|
70
|
+
"stylelint-order": "7.0.1",
|
|
71
|
+
"stylelint-selector-bem-pattern": "4.0.1",
|
|
72
|
+
"tsx": "4.21.0",
|
|
73
|
+
"vitest": "4.0.17"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"generate": "scaffdog generate",
|
|
77
|
+
"test": "run-p size lint test:interaction",
|
|
78
|
+
"lint": "pnpm lint:style",
|
|
79
|
+
"lint:style": "stylelint '**/*.css'",
|
|
80
|
+
"fix": "pnpm lint:style --fix",
|
|
81
|
+
"test:interaction": "vitest run",
|
|
82
|
+
"presize": "pnpm build",
|
|
83
|
+
"size": "bundlewatch --config .bundlewatch.config.js",
|
|
84
|
+
"dev": "pnpm storybook:start",
|
|
85
|
+
"storybook:start": "storybook dev -p 6006 -c .storybook",
|
|
86
|
+
"storybook:build": "storybook build -o public -c .storybook",
|
|
87
|
+
"storybook:deploy": "firebase deploy --only hosting",
|
|
88
|
+
"test:regression": "reg-suit run",
|
|
89
|
+
"serve": "firebase serve",
|
|
90
|
+
"clean": "rm -rf dist",
|
|
91
|
+
"cp": "npx cpx 'dist/**/*' .",
|
|
92
|
+
"prebuild": "pnpm clean",
|
|
93
|
+
"build": "run-p build:*",
|
|
94
|
+
"build:script": "run-s build:script:esm build:script:cjs",
|
|
95
|
+
"build:script:cjs": "tsc -p tsconfig.cjs.json",
|
|
96
|
+
"build:script:esm": "run-s build:script:esm:*",
|
|
97
|
+
"build:script:esm:js": "tsc -p tsconfig.esm.json",
|
|
98
|
+
"build:script:esm:rename": "npx renamer --find js --replace mjs 'dist/**'",
|
|
99
|
+
"build:script:esm:extensionReplace": "jscodeshift -t ../../bin/outputExtensionReplace.js dist/** --extensions=mjs",
|
|
100
|
+
"build:style": "postcss src/**/*.css src/*.css --base src -d dist/",
|
|
101
|
+
"preicon": "find src/Icon -type f -name '*.tsx' ! -name '*.stories.tsx' -delete && npx cpx '../spindle-icons/dist/svg/!(sprite).svg' icon-tmp",
|
|
102
|
+
"icon": "run-s icon:react icon:connect",
|
|
103
|
+
"posticon": "rm -rf icon-tmp",
|
|
104
|
+
"icon:react": "svgr --out-dir src/Icon icon-tmp",
|
|
105
|
+
"icon:connect": "tsx scripts/figma-connect-icons.ts"
|
|
100
106
|
}
|
|
101
|
-
}
|
|
107
|
+
}
|