cclkit4svelte 0.1.4 → 0.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/README.md +8 -6
- package/dist/Button.svelte +2 -1
- package/dist/Footer.svelte +3 -1
- package/dist/Header.svelte +3 -1
- package/dist/Thumbnail.svelte +23 -0
- package/dist/Thumbnail.svelte.d.ts +32 -0
- package/dist/const/variables.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -35
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# ccl-component-kit4svelte
|
|
2
|
+
[](https://github.com/reiji1020/ccl-component-kit4svelte/actions/workflows/storybook-release.yaml)
|
|
3
|
+
[](https://github.com/reiji1020/ccl-component-kit4svelte/actions/workflows/publish-package.yaml)
|
|
2
4
|
|
|
3
5
|
CANDY CHUPS Labのサイトで使うコンポーネントのキットです。
|
|
4
6
|
元々Reactコンポーネントで開発していたのをSvelteに移行しました。
|
|
@@ -7,7 +9,7 @@ CANDY CHUPS Labのサイトで使うコンポーネントのキットです。
|
|
|
7
9
|
|
|
8
10
|
## Figma
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
https://www.figma.com/files/project/71337935/CCL_Component?fuid=1036675751093311196>
|
|
11
13
|
|
|
12
14
|
## 利用用途
|
|
13
15
|
|
|
@@ -29,14 +31,14 @@ or
|
|
|
29
31
|
|
|
30
32
|
## 本ライブラリの開発について
|
|
31
33
|
|
|
32
|
-
コンポーネントライブラリの開発には、Node.jsの
|
|
34
|
+
コンポーネントライブラリの開発には、Node.jsのVersion20以降の環境が必要です。パッケージマネージャにはnpmを使用します。詳細なバージョンについては`package.json`に記載をしていますのでご確認ください。
|
|
33
35
|
|
|
34
36
|
Node.jsのバージョン切り替えには[Volta](https://volta.sh/)をおすすめします。
|
|
35
37
|
|
|
36
38
|
```zsh
|
|
37
39
|
volta install node
|
|
38
40
|
# or
|
|
39
|
-
volta install node@
|
|
41
|
+
volta install node@20
|
|
40
42
|
|
|
41
43
|
node -v
|
|
42
44
|
#任意のNodeのバージョンが表示されればOK
|
|
@@ -65,7 +67,7 @@ Everything you need to build a Svelte project, powered by [`create-svelte`](http
|
|
|
65
67
|
|
|
66
68
|
## Figma
|
|
67
69
|
|
|
68
|
-
|
|
70
|
+
https://www.figma.com/files/project/71337935/CCL_Component?fuid=1036675751093311196>
|
|
69
71
|
|
|
70
72
|
## Usage
|
|
71
73
|
|
|
@@ -87,14 +89,14 @@ or
|
|
|
87
89
|
|
|
88
90
|
## About the development of this library
|
|
89
91
|
|
|
90
|
-
The development of component libraries requires a Node.js environment with Version
|
|
92
|
+
The development of component libraries requires a Node.js environment with Version 20 or higher. Use npm as the package manager. Please check the `package.json` for detailed version information.
|
|
91
93
|
|
|
92
94
|
We recommend [Volta](https://volta.sh/) for switching Node.js versions.
|
|
93
95
|
|
|
94
96
|
```zsh
|
|
95
97
|
volta install node
|
|
96
98
|
# or
|
|
97
|
-
volta install node@
|
|
99
|
+
volta install node@20
|
|
98
100
|
|
|
99
101
|
node -v
|
|
100
102
|
#Once the desired Node version is displayed, it is OK.
|
package/dist/Button.svelte
CHANGED
|
@@ -3,7 +3,7 @@ export let label;
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<!--汎用ボタン-->
|
|
6
|
-
<button class="buttonWrapper" style="
|
|
6
|
+
<button class="buttonWrapper" style="--bgColor: var({bgColor})"><span class="btLabel">{label}</span></button>
|
|
7
7
|
|
|
8
8
|
<style>
|
|
9
9
|
.buttonWrapper {
|
|
@@ -11,6 +11,7 @@ export let label;
|
|
|
11
11
|
border-radius: 50px;
|
|
12
12
|
border: none;
|
|
13
13
|
padding: 15px 45px;
|
|
14
|
+
background: var(--bgColor);
|
|
14
15
|
}
|
|
15
16
|
.btLabel {
|
|
16
17
|
flex-direction: column;
|
package/dist/Footer.svelte
CHANGED
|
@@ -5,18 +5,20 @@ const year = date.getFullYear();
|
|
|
5
5
|
|
|
6
6
|
<!--汎用フッター-->
|
|
7
7
|
<footer>
|
|
8
|
-
<div class="wrapper" style="
|
|
8
|
+
<div class="wrapper" style="--bgColor: var({bgColor});">
|
|
9
9
|
<span class="copy">Copyright © 2015-{year} CANDY CHUPS Lab. All Rights Reserved.</span>
|
|
10
10
|
</div>
|
|
11
11
|
</footer>
|
|
12
12
|
|
|
13
13
|
<style>
|
|
14
|
+
|
|
14
15
|
.wrapper {
|
|
15
16
|
display: flex;
|
|
16
17
|
padding: 0 298px;
|
|
17
18
|
height: 30px;
|
|
18
19
|
justify-content: center;
|
|
19
20
|
align-items: center;
|
|
21
|
+
background: var(--bgColor);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.copy {
|
package/dist/Header.svelte
CHANGED
|
@@ -4,7 +4,7 @@ export let height;
|
|
|
4
4
|
|
|
5
5
|
<!--汎用ヘッダー-->
|
|
6
6
|
<header>
|
|
7
|
-
<div class="wrapper" style="
|
|
7
|
+
<div class="wrapper" style="--bgColor: var({bgColor}); --height: var({height})">
|
|
8
8
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1366 768">
|
|
9
9
|
<title>CANDY CHUPS Lab.</title>
|
|
10
10
|
<path class="a"
|
|
@@ -45,6 +45,8 @@ export let height;
|
|
|
45
45
|
padding: 0 298px;
|
|
46
46
|
justify-content: center;
|
|
47
47
|
align-items: center;
|
|
48
|
+
background: var(--bgColor);
|
|
49
|
+
height: var(--height);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
svg {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script>export let imageSize;
|
|
2
|
+
export let borderColor;
|
|
3
|
+
export let src;
|
|
4
|
+
export let altText;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class="ThumbnailWrapper" style="--imageSize: {imageSize}">
|
|
8
|
+
<img src={src} alt={altText} class="Thumbnail" style="--borderColor: var({borderColor})" />
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<style>
|
|
12
|
+
.ThumbnailWrapper {
|
|
13
|
+
height: var(--imageSize);
|
|
14
|
+
width: var(--imageSize);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.Thumbnail {
|
|
18
|
+
height: var(--imageSize);
|
|
19
|
+
width: var(--imageSize);
|
|
20
|
+
border-radius: 320px;
|
|
21
|
+
border: 5px solid var(--borderColor);
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
/**
|
|
5
|
+
* サムネイル画像の大きさ
|
|
6
|
+
* @type number
|
|
7
|
+
*/ imageSize: string;
|
|
8
|
+
/**
|
|
9
|
+
* 枠線の色
|
|
10
|
+
* @default --strawberry-pink
|
|
11
|
+
* @type string
|
|
12
|
+
*/ borderColor: string;
|
|
13
|
+
/**
|
|
14
|
+
* 画像ソース
|
|
15
|
+
* @type string
|
|
16
|
+
*/ src: string;
|
|
17
|
+
/**
|
|
18
|
+
* alt属性に指定する値
|
|
19
|
+
* @type string
|
|
20
|
+
*/ altText: string;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
};
|
|
27
|
+
export type ThumbnailProps = typeof __propDef.props;
|
|
28
|
+
export type ThumbnailEvents = typeof __propDef.events;
|
|
29
|
+
export type ThumbnailSlots = typeof __propDef.slots;
|
|
30
|
+
export default class Thumbnail extends SvelteComponentTyped<ThumbnailProps, ThumbnailEvents, ThumbnailSlots> {
|
|
31
|
+
}
|
|
32
|
+
export {};
|
package/dist/const/variables.css
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cclkit4svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"author": "reiji1020 <sk@reiji1020.info>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,38 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/reiji1020/ccl-component-kit4svelte#readme",
|
|
16
16
|
"description": "Component kit for CANDY CHUPS Lab.",
|
|
17
|
-
"release": {
|
|
18
|
-
"plugins": [
|
|
19
|
-
"@semantic-release/commit-analyzer",
|
|
20
|
-
"@semantic-release/release-notes-generator",
|
|
21
|
-
[
|
|
22
|
-
"@semantic-release/changelog",
|
|
23
|
-
{
|
|
24
|
-
"changelogFile": "docs/CHANGELOG.md"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"@semantic-release/npm",
|
|
28
|
-
[
|
|
29
|
-
"@semantic-release/git",
|
|
30
|
-
{
|
|
31
|
-
"assets": ["docs/CHANGELOG.md"]
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
],
|
|
35
|
-
"main": [
|
|
36
|
-
"main"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"commitlint": {
|
|
40
|
-
"extends": [
|
|
41
|
-
"@commitlint/config-conventional"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"husky": {
|
|
45
|
-
"hooks": {
|
|
46
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
17
|
"scripts": {
|
|
50
18
|
"preinstall": "npx only-allow pnpm",
|
|
51
19
|
"dev": "vite dev",
|
|
@@ -66,8 +34,8 @@
|
|
|
66
34
|
}
|
|
67
35
|
},
|
|
68
36
|
"devDependencies": {
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
37
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
38
|
+
"@semantic-release/git": "^10.0.1",
|
|
71
39
|
"@storybook/addon-actions": "^7.6.10",
|
|
72
40
|
"@storybook/addon-essentials": "^7.6.3",
|
|
73
41
|
"@storybook/addon-interactions": "^7.6.3",
|