cclkit4svelte 0.1.2-a → 0.1.3

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.
@@ -0,0 +1,26 @@
1
+ <script>export let bgColor;
2
+ const date = /* @__PURE__ */ new Date();
3
+ const year = date.getFullYear();
4
+ </script>
5
+
6
+ <!--汎用フッター-->
7
+ <footer>
8
+ <div class="wrapper" style="background: var({bgColor});">
9
+ <span class="copy">Copyright © 2015-{year} CANDY CHUPS Lab. All Rights Reserved.</span>
10
+ </div>
11
+ </footer>
12
+
13
+ <style>
14
+ .wrapper {
15
+ display: flex;
16
+ padding: 0 298px;
17
+ height: 30px;
18
+ justify-content: center;
19
+ align-items: center;
20
+ }
21
+
22
+ .copy {
23
+ color: #fff;
24
+ font-size: 12px;
25
+ }
26
+ </style>
@@ -0,0 +1,21 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * フッター背景色
6
+ * CCLVividColorの中から指定する
7
+ * @default --strawberry-pink
8
+ * @type string
9
+ */ bgColor: string;
10
+ };
11
+ events: {
12
+ [evt: string]: CustomEvent<any>;
13
+ };
14
+ slots: {};
15
+ };
16
+ export type FooterProps = typeof __propDef.props;
17
+ export type FooterEvents = typeof __propDef.events;
18
+ export type FooterSlots = typeof __propDef.slots;
19
+ export default class Footer extends SvelteComponentTyped<FooterProps, FooterEvents, FooterSlots> {
20
+ }
21
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import './const/variables.css';
2
2
  export { default as Header } from './Header.svelte';
3
3
  export { default as Button } from './Button.svelte';
4
+ export { default as Footer } from './Footer.svelte';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // place files you want to import through the `$lib` alias in this folder.
2
2
  import './const/variables.css'; // カスタムプロパティ読み込み用
3
- import { CCLVividColor, CCLPastelColor, HeaderHeight } from './const/config'; // 定数読み込み用
4
3
  export { default as Header } from './Header.svelte';
5
4
  export { default as Button } from './Button.svelte';
5
+ export { default as Footer } from './Footer.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclkit4svelte",
3
- "version": "0.1.2-a",
3
+ "version": "0.1.3",
4
4
  "author": "reiji1020 <sk@reiji1020.info>",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,6 +14,38 @@
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
+ },
17
49
  "scripts": {
18
50
  "preinstall": "npx only-allow pnpm",
19
51
  "dev": "vite dev",
@@ -34,6 +66,8 @@
34
66
  }
35
67
  },
36
68
  "devDependencies": {
69
+ "@commitlint/cli": "^18.6.0",
70
+ "@commitlint/config-conventional": "^18.6.0",
37
71
  "@storybook/addon-actions": "^7.6.10",
38
72
  "@storybook/addon-essentials": "^7.6.3",
39
73
  "@storybook/addon-interactions": "^7.6.3",
@@ -55,6 +89,7 @@
55
89
  "prettier-plugin-svelte": "^3.0.0",
56
90
  "react": "^18.2.0",
57
91
  "react-dom": "^18.2.0",
92
+ "semantic-release": "^23.0.0",
58
93
  "storybook": "^7.6.3",
59
94
  "svelte": "^4.2.7",
60
95
  "svelte-check": "^3.6.0",