cclkit4svelte 2.0.6 → 3.0.0

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.
Files changed (82) hide show
  1. package/dist/Accordion.svelte +40 -29
  2. package/dist/Accordion.svelte.d.ts +31 -22
  3. package/dist/AccordionItem.svelte +120 -87
  4. package/dist/AccordionItem.svelte.d.ts +43 -34
  5. package/dist/Alert.svelte +111 -82
  6. package/dist/Alert.svelte.d.ts +38 -36
  7. package/dist/Badge.svelte +84 -0
  8. package/dist/Badge.svelte.d.ts +34 -0
  9. package/dist/BookCard.svelte +127 -88
  10. package/dist/BookCard.svelte.d.ts +47 -45
  11. package/dist/Breadcrumb.svelte +91 -0
  12. package/dist/Breadcrumb.svelte.d.ts +37 -0
  13. package/dist/Button.svelte +72 -35
  14. package/dist/Button.svelte.d.ts +33 -31
  15. package/dist/Card.svelte +110 -75
  16. package/dist/Card.svelte.d.ts +38 -36
  17. package/dist/Carousel.svelte +91 -66
  18. package/dist/Carousel.svelte.d.ts +26 -24
  19. package/dist/ChangeHistory.svelte +188 -150
  20. package/dist/ChangeHistory.svelte.d.ts +29 -27
  21. package/dist/Checkbox.svelte +120 -89
  22. package/dist/Checkbox.svelte.d.ts +41 -39
  23. package/dist/CommonHeader.svelte +51 -24
  24. package/dist/CommonHeader.svelte.d.ts +38 -36
  25. package/dist/DatePicker.svelte +239 -188
  26. package/dist/DatePicker.svelte.d.ts +40 -38
  27. package/dist/Dialog.svelte +224 -0
  28. package/dist/Dialog.svelte.d.ts +50 -0
  29. package/dist/Drawer.svelte +158 -0
  30. package/dist/Drawer.svelte.d.ts +40 -0
  31. package/dist/Footer.svelte +32 -16
  32. package/dist/Footer.svelte.d.ts +21 -19
  33. package/dist/FormGroup.svelte +67 -43
  34. package/dist/FormGroup.svelte.d.ts +46 -37
  35. package/dist/Header.svelte +108 -98
  36. package/dist/Header.svelte.d.ts +25 -23
  37. package/dist/Input.svelte +154 -99
  38. package/dist/Input.svelte.d.ts +62 -60
  39. package/dist/Pagination.svelte +222 -0
  40. package/dist/Pagination.svelte.d.ts +35 -0
  41. package/dist/ProgressBar.svelte +49 -44
  42. package/dist/ProgressBar.svelte.d.ts +25 -23
  43. package/dist/RadioButton.svelte +92 -62
  44. package/dist/RadioButton.svelte.d.ts +40 -38
  45. package/dist/Select.svelte +94 -53
  46. package/dist/Select.svelte.d.ts +49 -47
  47. package/dist/ServiceCard.svelte +71 -64
  48. package/dist/ServiceCard.svelte.d.ts +27 -25
  49. package/dist/Skeleton.svelte +96 -0
  50. package/dist/Skeleton.svelte.d.ts +24 -0
  51. package/dist/SlideMenu.svelte +157 -0
  52. package/dist/SlideMenu.svelte.d.ts +42 -0
  53. package/dist/Spinner.svelte +25 -23
  54. package/dist/Spinner.svelte.d.ts +20 -18
  55. package/dist/TabPanel.svelte +42 -21
  56. package/dist/TabPanel.svelte.d.ts +40 -31
  57. package/dist/Table.svelte +114 -73
  58. package/dist/Table.svelte.d.ts +33 -31
  59. package/dist/Tabs.svelte +78 -72
  60. package/dist/Tabs.svelte.d.ts +18 -16
  61. package/dist/Textarea.svelte +101 -52
  62. package/dist/Textarea.svelte.d.ts +57 -55
  63. package/dist/Thumbnail.svelte +33 -15
  64. package/dist/Thumbnail.svelte.d.ts +34 -32
  65. package/dist/Toaster.svelte +144 -0
  66. package/dist/Toaster.svelte.d.ts +26 -0
  67. package/dist/Toggle.svelte +85 -61
  68. package/dist/Toggle.svelte.d.ts +36 -34
  69. package/dist/Tooltip.svelte +126 -122
  70. package/dist/Tooltip.svelte.d.ts +30 -21
  71. package/dist/const/colorMap.d.ts +5 -0
  72. package/dist/const/colorMap.js +21 -0
  73. package/dist/const/variables.css +21 -21
  74. package/dist/index.d.ts +10 -0
  75. package/dist/index.js +9 -0
  76. package/dist/toast.d.ts +29 -0
  77. package/dist/toast.js +66 -0
  78. package/dist/types/breadcrumb.d.ts +4 -0
  79. package/dist/types/breadcrumb.js +1 -0
  80. package/dist/types/slide-menu.d.ts +5 -0
  81. package/dist/types/slide-menu.js +1 -0
  82. package/package.json +87 -87
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  export interface Imgsrc {
3
2
  src: string;
4
3
  alt: string;
5
4
  }
6
- declare const __propDef: {
7
- props: {
8
- /**
9
- * Image data
10
- * Provide an array of objects containing image URL and alt text
11
- * @type Array<Imgsrc>
12
- */ src: Array<Imgsrc>;
13
- /**
14
- * Width of the carousel component
15
- * @type string
16
- */ csWidth: string;
5
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
7
+ $$bindings?: Bindings;
8
+ } & Exports;
9
+ (internal: unknown, props: Props & {
10
+ $$events?: Events;
11
+ $$slots?: Slots;
12
+ }): Exports & {
13
+ $set?: any;
14
+ $on?: any;
17
15
  };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- exports?: {} | undefined;
23
- bindings?: string | undefined;
24
- };
25
- export type CarouselProps = typeof __propDef.props;
26
- export type CarouselEvents = typeof __propDef.events;
27
- export type CarouselSlots = typeof __propDef.slots;
28
- export default class Carousel extends SvelteComponent<CarouselProps, CarouselEvents, CarouselSlots> {
16
+ z_$$bindings?: Bindings;
29
17
  }
30
- export {};
18
+ declare const Carousel: $$__sveltets_2_IsomorphicComponent<{
19
+ /**
20
+ * Image data
21
+ * Provide an array of objects containing image URL and alt text
22
+ * @type Array<Imgsrc>
23
+ */ src: Array<Imgsrc>;
24
+ /**
25
+ * Width of the carousel component
26
+ * @type string
27
+ */ csWidth: string;
28
+ }, {
29
+ [evt: string]: CustomEvent<any>;
30
+ }, {}, {}, string>;
31
+ type Carousel = InstanceType<typeof Carousel>;
32
+ export default Carousel;
@@ -1,157 +1,195 @@
1
- <script>import { CCLVividColor, CCLPastelColor } from "./const/config";
2
- export let historyItems = [];
3
- export let height = void 0;
4
- export let defaultColor = CCLVividColor.SODA_BLUE;
5
- const vividToPastelMap = {
6
- [CCLVividColor.STRAWBERRY_PINK]: CCLPastelColor.PEACH_PINK,
7
- [CCLVividColor.PINEAPPLE_YELLOW]: CCLPastelColor.LEMON_YELLOW,
8
- [CCLVividColor.SODA_BLUE]: CCLPastelColor.SUGAR_BLUE,
9
- [CCLVividColor.MELON_GREEN]: CCLPastelColor.MATCHA_GREEN,
10
- [CCLVividColor.GRAPE_PURPLE]: CCLPastelColor.AKEBI_PURPLE,
11
- [CCLVividColor.WRAP_GREY]: CCLPastelColor.CLOUD_GREY
12
- };
13
- $: defaultPastelColor = vividToPastelMap[defaultColor] || CCLPastelColor.SUGAR_BLUE;
1
+ <script lang="ts">
2
+ import { CCLVividColor, CCLPastelColor } from './const/config';
3
+
4
+ /**
5
+ * @typedef {object} HistoryItem
6
+ * @property {string} date - 更新日 (例: "2025/07")
7
+ * @property {string} title - 更新内容のタイトル
8
+ * @property {string} [tag] - カテゴリやバージョンなどのタグ (例: "イベント")。省略可能
9
+ * @property {string} [color] - アイテムのテーマカラー。`CCLVividColor`の値を指定します。省略可能
10
+ * @property {string} [version] - バージョン番号 (例: "v1.1.0")。省略可能
11
+ * @property {string[]} [details] - 更新内容の詳細なリスト。省略可能
12
+ */
13
+ export interface HistoryItem {
14
+ date: string;
15
+ title: string;
16
+ tag?: string;
17
+ color?: string;
18
+ version?: string;
19
+ details?: string[];
20
+ }
21
+
22
+ /**
23
+ * 表示する更新履歴の配列
24
+ * @type {HistoryItem[]}
25
+ */
26
+ export let historyItems: HistoryItem[] = [];
27
+
28
+ /**
29
+ * コンポーネントの高さ。'400px'や'50vh'のようにCSSの値を指定します。
30
+ * @type {string | undefined}
31
+ */
32
+ export let height: string | undefined = undefined;
33
+
34
+ /**
35
+ * アイテムに色が指定されていない場合のデフォルトカラー。`CCLVividColor`の値を指定します。
36
+ * @type {string}
37
+ */
38
+ export let defaultColor: string = CCLVividColor.SODA_BLUE;
39
+
40
+ // VividカラーをPastelカラー(タグ背景色)にマッピングします
41
+ const vividToPastelMap: Record<string, string> = {
42
+ [CCLVividColor.STRAWBERRY_PINK]: CCLPastelColor.PEACH_PINK,
43
+ [CCLVividColor.PINEAPPLE_YELLOW]: CCLPastelColor.LEMON_YELLOW,
44
+ [CCLVividColor.SODA_BLUE]: CCLPastelColor.SUGAR_BLUE,
45
+ [CCLVividColor.MELON_GREEN]: CCLPastelColor.MATCHA_GREEN,
46
+ [CCLVividColor.GRAPE_PURPLE]: CCLPastelColor.AKEBI_PURPLE,
47
+ [CCLVividColor.WRAP_GREY]: CCLPastelColor.CLOUD_GREY
48
+ };
49
+
50
+ // defaultColorプロパティの変更に追従して、対応するパステルカラーを算出します
51
+ $: defaultPastelColor = vividToPastelMap[defaultColor] || CCLPastelColor.SUGAR_BLUE;
14
52
  </script>
15
53
 
16
54
  <div class="change-history-container" style={height ? `height: ${height};` : ''}>
17
- <ul class="timeline">
18
- {#each historyItems as item (item.date + item.title)}
19
- <li
20
- class="timeline-item"
21
- style:--marker-color="var({item.color || defaultColor})"
22
- style:--tag-color="var({item.color || defaultColor})"
23
- style:--tag-bg-color="var({vividToPastelMap[item.color || defaultColor] ||
24
- defaultPastelColor})"
25
- >
26
- <div class="timeline-marker"></div>
27
- <div class="timeline-content">
28
- <div class="header">
29
- <time class="date" datetime={item.date}>{item.date}</time>
30
- {#if item.tag}
31
- <span class="tag">{item.tag}</span>
32
- {/if}
33
- {#if item.version}
34
- <span class="version">{item.version}</span>
35
- {/if}
36
- </div>
37
- <h3 class="title">{item.title}</h3>
38
- {#if item.details && item.details.length > 0}
39
- <ul class="details">
40
- {#each item.details as detail}
41
- <li>{detail}</li>
42
- {/each}
43
- </ul>
44
- {/if}
45
- </div>
46
- </li>
47
- {/each}
48
- </ul>
55
+ <ul class="timeline">
56
+ {#each historyItems as item (item.date + item.title)}
57
+ <li
58
+ class="timeline-item"
59
+ style:--marker-color="var({item.color || defaultColor})"
60
+ style:--tag-color="var({item.color || defaultColor})"
61
+ style:--tag-bg-color="var({vividToPastelMap[item.color || defaultColor] ||
62
+ defaultPastelColor})"
63
+ >
64
+ <div class="timeline-marker"></div>
65
+ <div class="timeline-content">
66
+ <div class="header">
67
+ <time class="date" datetime={item.date}>{item.date}</time>
68
+ {#if item.tag}
69
+ <span class="tag">{item.tag}</span>
70
+ {/if}
71
+ {#if item.version}
72
+ <span class="version">{item.version}</span>
73
+ {/if}
74
+ </div>
75
+ <h3 class="title">{item.title}</h3>
76
+ {#if item.details && item.details.length > 0}
77
+ <ul class="details">
78
+ {#each item.details as detail}
79
+ <li>{detail}</li>
80
+ {/each}
81
+ </ul>
82
+ {/if}
83
+ </div>
84
+ </li>
85
+ {/each}
86
+ </ul>
49
87
  </div>
50
88
 
51
89
  <style>
52
- .change-history-container {
53
- font-family: sans-serif;
54
- max-width: 800px;
55
- margin: 0 auto;
56
- padding: 20px;
57
- overflow-y: auto;
58
- }
59
-
60
- .timeline {
61
- list-style-type: none;
62
- padding-left: 20px;
63
- position: relative;
64
- }
65
-
66
- /* タイムラインの縦線 */
67
- .timeline::before {
68
- content: '';
69
- position: absolute;
70
- top: 5px;
71
- left: 5px;
72
- height: calc(100% - 5px);
73
- width: 2px;
74
- background-color: #dee2e6;
75
- }
76
-
77
- .timeline-item {
78
- position: relative;
79
- margin-bottom: 30px;
80
- padding-left: 35px;
81
- }
82
-
83
- .timeline-item:last-child {
84
- margin-bottom: 0;
85
- }
86
-
87
- .timeline-marker {
88
- position: absolute;
89
- top: 5px;
90
- left: -2px;
91
- width: 16px;
92
- height: 16px;
93
- border-radius: 50%;
94
- background-color: var(--marker-color);
95
- border: 3px solid #fff;
96
- z-index: 1;
97
- }
98
-
99
- .timeline-content {
100
- background-color: #ffffff;
101
- padding: 15px 20px;
102
- border-radius: 6px;
103
- border: 1px solid #dee2e6;
104
- }
105
-
106
- .header {
107
- display: flex;
108
- align-items: center;
109
- gap: 12px;
110
- margin-bottom: 8px;
111
- }
112
-
113
- .date {
114
- font-weight: bold;
115
- color: #343a40;
116
- }
117
-
118
- .tag {
119
- background-color: var(--tag-bg-color);
120
- color: var(--tag-color);
121
- padding: 3px 10px;
122
- border-radius: 12px;
123
- font-size: 0.85em;
124
- font-weight: 600;
125
- }
126
-
127
- .version {
128
- background-color: #f1f3f5; /* ニュートラルなグレー */
129
- color: #495057;
130
- padding: 3px 10px;
131
- border-radius: 12px;
132
- font-size: 0.85em;
133
- font-weight: 600;
134
- }
135
-
136
- .title {
137
- margin: 0 0 12px 0;
138
- font-size: 1.15em;
139
- font-weight: 600;
140
- color: #212529;
141
- }
142
-
143
- .details {
144
- list-style-type: disc;
145
- padding-left: 20px;
146
- margin: 0;
147
- color: #495057;
148
- line-height: 1.6;
149
- }
150
-
151
- .details li {
152
- margin-bottom: 5px;
153
- }
154
- .details li:last-child {
155
- margin-bottom: 0;
156
- }
90
+ .change-history-container {
91
+ font-family: sans-serif;
92
+ max-width: 800px;
93
+ margin: 0 auto;
94
+ padding: 20px;
95
+ overflow-y: auto;
96
+ }
97
+
98
+ .timeline {
99
+ list-style-type: none;
100
+ padding-left: 20px;
101
+ position: relative;
102
+ }
103
+
104
+ /* タイムラインの縦線 */
105
+ .timeline::before {
106
+ content: '';
107
+ position: absolute;
108
+ top: 5px;
109
+ left: 5px;
110
+ height: calc(100% - 5px);
111
+ width: 2px;
112
+ background-color: #dee2e6;
113
+ }
114
+
115
+ .timeline-item {
116
+ position: relative;
117
+ margin-bottom: 30px;
118
+ padding-left: 35px;
119
+ }
120
+
121
+ .timeline-item:last-child {
122
+ margin-bottom: 0;
123
+ }
124
+
125
+ .timeline-marker {
126
+ position: absolute;
127
+ top: 5px;
128
+ left: -2px;
129
+ width: 16px;
130
+ height: 16px;
131
+ border-radius: 50%;
132
+ background-color: var(--marker-color);
133
+ border: 3px solid #fff;
134
+ z-index: 1;
135
+ }
136
+
137
+ .timeline-content {
138
+ background-color: #ffffff;
139
+ padding: 15px 20px;
140
+ border-radius: 6px;
141
+ border: 1px solid #dee2e6;
142
+ }
143
+
144
+ .header {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 12px;
148
+ margin-bottom: 8px;
149
+ }
150
+
151
+ .date {
152
+ font-weight: bold;
153
+ color: #343a40;
154
+ }
155
+
156
+ .tag {
157
+ background-color: var(--tag-bg-color);
158
+ color: var(--tag-color);
159
+ padding: 3px 10px;
160
+ border-radius: 12px;
161
+ font-size: 0.85em;
162
+ font-weight: 600;
163
+ }
164
+
165
+ .version {
166
+ background-color: #f1f3f5; /* ニュートラルなグレー */
167
+ color: #495057;
168
+ padding: 3px 10px;
169
+ border-radius: 12px;
170
+ font-size: 0.85em;
171
+ font-weight: 600;
172
+ }
173
+
174
+ .title {
175
+ margin: 0 0 12px 0;
176
+ font-size: 1.15em;
177
+ font-weight: 600;
178
+ color: #212529;
179
+ }
180
+
181
+ .details {
182
+ list-style-type: disc;
183
+ padding-left: 20px;
184
+ margin: 0;
185
+ color: #495057;
186
+ line-height: 1.6;
187
+ }
188
+
189
+ .details li {
190
+ margin-bottom: 5px;
191
+ }
192
+ .details li:last-child {
193
+ margin-bottom: 0;
194
+ }
157
195
  </style>
@@ -1,29 +1,31 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- /**
5
- * 表示する更新履歴の配列
6
- * @type {HistoryItem[]}
7
- */ historyItems?: HistoryItem[];
8
- /**
9
- * コンポーネントの高さ。'400px'や'50vh'のようにCSSの値を指定します。
10
- * @type {string | undefined}
11
- */ height?: string | undefined;
12
- /**
13
- * アイテムに色が指定されていない場合のデフォルトカラー。`CCLVividColor`の値を指定します。
14
- * @type {string}
15
- */ defaultColor?: string;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
16
11
  };
17
- events: {
18
- [evt: string]: CustomEvent<any>;
19
- };
20
- slots: {};
21
- exports?: {} | undefined;
22
- bindings?: string | undefined;
23
- };
24
- export type ChangeHistoryProps = typeof __propDef.props;
25
- export type ChangeHistoryEvents = typeof __propDef.events;
26
- export type ChangeHistorySlots = typeof __propDef.slots;
27
- export default class ChangeHistory extends SvelteComponent<ChangeHistoryProps, ChangeHistoryEvents, ChangeHistorySlots> {
12
+ z_$$bindings?: Bindings;
28
13
  }
29
- export {};
14
+ declare const ChangeHistory: $$__sveltets_2_IsomorphicComponent<{
15
+ /**
16
+ * 表示する更新履歴の配列
17
+ * @type {HistoryItem[]}
18
+ */ historyItems?: HistoryItem[];
19
+ /**
20
+ * コンポーネントの高さ。'400px'や'50vh'のようにCSSの値を指定します。
21
+ * @type {string | undefined}
22
+ */ height?: string | undefined;
23
+ /**
24
+ * アイテムに色が指定されていない場合のデフォルトカラー。`CCLVividColor`の値を指定します。
25
+ * @type {string}
26
+ */ defaultColor?: string;
27
+ }, {
28
+ [evt: string]: CustomEvent<any>;
29
+ }, {}, {}, string>;
30
+ type ChangeHistory = InstanceType<typeof ChangeHistory>;
31
+ export default ChangeHistory;