cclkit4svelte 2.0.6 → 2.0.7

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 +257 -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 +9 -0
  75. package/dist/index.js +8 -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,139 +1,143 @@
1
- <script>import { CCLVividColor } from "./const/config";
2
- export let text;
3
- export let position = "top";
4
- export let disabled = false;
5
- export let backgroundColor = CCLVividColor.WRAP_GREY;
6
- const tooltipId = `tooltip-${Math.random().toString(36).substr(2, 9)}`;
1
+ <script lang="ts">
2
+ import { CCLVividColor } from './const/config';
3
+
4
+ export let text: string;
5
+ export let position: 'top' | 'bottom' | 'left' | 'right' = 'top';
6
+ export let disabled = false;
7
+ export let backgroundColor: string = CCLVividColor.WRAP_GREY;
8
+
9
+ // ユニークなIDを生成してaria-describedbyで使用
10
+ const tooltipId = `tooltip-${Math.random().toString(36).substr(2, 9)}`;
7
11
  </script>
8
12
 
9
13
  <div
10
- class="tooltip-trigger"
11
- data-testid="tooltip-trigger"
12
- tabindex="0"
13
- aria-describedby={!disabled ? tooltipId : undefined}
14
+ class="tooltip-trigger"
15
+ data-testid="tooltip-trigger"
16
+ tabindex="0"
17
+ aria-describedby={!disabled ? tooltipId : undefined}
14
18
  >
15
- <slot />
16
- <span
17
- {...{ id: tooltipId }}
18
- style:--tooltip-background-color={backgroundColor.startsWith('--')
19
- ? `var(${backgroundColor})`
20
- : backgroundColor}
21
- class="tooltip-content"
22
- data-testid="tooltip-content"
23
- class:disabled
24
- class:top={position === 'top'}
25
- class:bottom={position === 'bottom'}
26
- class:left={position === 'left'}
27
- class:right={position === 'right'}
28
- role="tooltip"
29
- >
30
- {text}
31
- </span>
19
+ <slot />
20
+ <span
21
+ {...{ id: tooltipId }}
22
+ style:--tooltip-background-color={backgroundColor.startsWith('--')
23
+ ? `var(${backgroundColor})`
24
+ : backgroundColor}
25
+ class="tooltip-content"
26
+ data-testid="tooltip-content"
27
+ class:disabled
28
+ class:top={position === 'top'}
29
+ class:bottom={position === 'bottom'}
30
+ class:left={position === 'left'}
31
+ class:right={position === 'right'}
32
+ role="tooltip"
33
+ >
34
+ {text}
35
+ </span>
32
36
  </div>
33
37
 
34
38
  <style>
35
- .tooltip-trigger {
36
- position: relative;
37
- display: inline-block;
38
- cursor: pointer;
39
- }
39
+ .tooltip-trigger {
40
+ position: relative;
41
+ display: inline-block;
42
+ cursor: pointer;
43
+ }
40
44
 
41
- .tooltip-content {
42
- position: absolute;
43
- z-index: 10;
44
- background-color: var(--tooltip-background-color);
45
- color: white;
46
- padding: 0.5em 1em;
47
- border-radius: 4px;
48
- font-size: 0.875rem;
49
- line-height: 1.4;
50
- white-space: nowrap;
51
- /* デフォルトは非表示 */
52
- visibility: hidden;
53
- opacity: 0;
54
- transition:
55
- opacity 0.2s,
56
- visibility 0.2s;
57
- }
45
+ .tooltip-content {
46
+ position: absolute;
47
+ z-index: 10;
48
+ background-color: var(--tooltip-background-color);
49
+ color: white;
50
+ padding: 0.5em 1em;
51
+ border-radius: 4px;
52
+ font-size: 0.875rem;
53
+ line-height: 1.4;
54
+ white-space: nowrap;
55
+ /* デフォルトは非表示 */
56
+ visibility: hidden;
57
+ opacity: 0;
58
+ transition:
59
+ opacity 0.2s,
60
+ visibility 0.2s;
61
+ }
58
62
 
59
- /* disabledの場合は完全に非表示 */
60
- .tooltip-content.disabled {
61
- display: none;
62
- }
63
+ /* disabledの場合は完全に非表示 */
64
+ .tooltip-content.disabled {
65
+ display: none;
66
+ }
63
67
 
64
- /* ホバーまたはフォーカスで表示 */
65
- .tooltip-trigger:hover .tooltip-content,
66
- .tooltip-trigger:focus .tooltip-content {
67
- visibility: visible;
68
- opacity: 1;
69
- }
68
+ /* ホバーまたはフォーカスで表示 */
69
+ .tooltip-trigger:hover .tooltip-content,
70
+ .tooltip-trigger:focus .tooltip-content {
71
+ visibility: visible;
72
+ opacity: 1;
73
+ }
70
74
 
71
- /* 吹き出しの矢印 */
72
- .tooltip-content::after {
73
- content: '';
74
- position: absolute;
75
- border-style: solid;
76
- }
75
+ /* 吹き出しの矢印 */
76
+ .tooltip-content::after {
77
+ content: '';
78
+ position: absolute;
79
+ border-style: solid;
80
+ }
77
81
 
78
- /* --- ポジションごとのスタイル --- */
82
+ /* --- ポジションごとのスタイル --- */
79
83
 
80
- /* 上に表示 */
81
- .tooltip-content.top {
82
- bottom: 100%;
83
- left: 50%;
84
- transform: translateX(-50%);
85
- margin-bottom: 8px;
86
- }
87
- .tooltip-content.top::after {
88
- top: 100%;
89
- left: 50%;
90
- transform: translateX(-50%);
91
- border-width: 5px;
92
- border-color: var(--tooltip-background-color) transparent transparent transparent;
93
- }
84
+ /* 上に表示 */
85
+ .tooltip-content.top {
86
+ bottom: 100%;
87
+ left: 50%;
88
+ transform: translateX(-50%);
89
+ margin-bottom: 8px;
90
+ }
91
+ .tooltip-content.top::after {
92
+ top: 100%;
93
+ left: 50%;
94
+ transform: translateX(-50%);
95
+ border-width: 5px;
96
+ border-color: var(--tooltip-background-color) transparent transparent transparent;
97
+ }
94
98
 
95
- /* 下に表示 */
96
- .tooltip-content.bottom {
97
- top: 100%;
98
- left: 50%;
99
- transform: translateX(-50%);
100
- margin-top: 8px;
101
- }
102
- .tooltip-content.bottom::after {
103
- bottom: 100%;
104
- left: 50%;
105
- transform: translateX(-50%);
106
- border-width: 5px;
107
- border-color: transparent transparent var(--tooltip-background-color) transparent;
108
- }
99
+ /* 下に表示 */
100
+ .tooltip-content.bottom {
101
+ top: 100%;
102
+ left: 50%;
103
+ transform: translateX(-50%);
104
+ margin-top: 8px;
105
+ }
106
+ .tooltip-content.bottom::after {
107
+ bottom: 100%;
108
+ left: 50%;
109
+ transform: translateX(-50%);
110
+ border-width: 5px;
111
+ border-color: transparent transparent var(--tooltip-background-color) transparent;
112
+ }
109
113
 
110
- /* 左に表示 */
111
- .tooltip-content.left {
112
- right: 100%;
113
- top: 50%;
114
- transform: translateY(-50%);
115
- margin-right: 8px;
116
- }
117
- .tooltip-content.left::after {
118
- left: 100%;
119
- top: 50%;
120
- transform: translateY(-50%);
121
- border-width: 5px;
122
- border-color: transparent transparent transparent var(--tooltip-background-color);
123
- }
114
+ /* 左に表示 */
115
+ .tooltip-content.left {
116
+ right: 100%;
117
+ top: 50%;
118
+ transform: translateY(-50%);
119
+ margin-right: 8px;
120
+ }
121
+ .tooltip-content.left::after {
122
+ left: 100%;
123
+ top: 50%;
124
+ transform: translateY(-50%);
125
+ border-width: 5px;
126
+ border-color: transparent transparent transparent var(--tooltip-background-color);
127
+ }
124
128
 
125
- /* 右に表示 */
126
- .tooltip-content.right {
127
- left: 100%;
128
- top: 50%;
129
- transform: translateY(-50%);
130
- margin-left: 8px;
131
- }
132
- .tooltip-content.right::after {
133
- right: 100%;
134
- top: 50%;
135
- transform: translateY(-50%);
136
- border-width: 5px;
137
- border-color: transparent var(--tooltip-background-color) transparent transparent;
138
- }
129
+ /* 右に表示 */
130
+ .tooltip-content.right {
131
+ left: 100%;
132
+ top: 50%;
133
+ transform: translateY(-50%);
134
+ margin-left: 8px;
135
+ }
136
+ .tooltip-content.right::after {
137
+ right: 100%;
138
+ top: 50%;
139
+ transform: translateY(-50%);
140
+ border-width: 5px;
141
+ border-color: transparent var(--tooltip-background-color) transparent transparent;
142
+ }
139
143
  </style>
@@ -1,23 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- text: string;
5
- position?: "top" | "bottom" | "left" | "right";
6
- disabled?: boolean;
7
- backgroundColor?: 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;
8
11
  };
9
- events: {
10
- [evt: string]: CustomEvent<any>;
11
- };
12
- slots: {
13
- default: {};
14
- };
15
- exports?: {} | undefined;
16
- bindings?: string | undefined;
17
- };
18
- export type TooltipProps = typeof __propDef.props;
19
- export type TooltipEvents = typeof __propDef.events;
20
- export type TooltipSlots = typeof __propDef.slots;
21
- export default class Tooltip extends SvelteComponent<TooltipProps, TooltipEvents, TooltipSlots> {
12
+ z_$$bindings?: Bindings;
22
13
  }
23
- export {};
14
+ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
15
+ default: any;
16
+ } ? Props extends Record<string, never> ? any : {
17
+ children?: any;
18
+ } : {});
19
+ declare const Tooltip: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
20
+ text: string;
21
+ position?: "top" | "bottom" | "left" | "right";
22
+ disabled?: boolean;
23
+ backgroundColor?: string;
24
+ }, {
25
+ default: {};
26
+ }>, {
27
+ [evt: string]: CustomEvent<any>;
28
+ }, {
29
+ default: {};
30
+ }, {}, string>;
31
+ type Tooltip = InstanceType<typeof Tooltip>;
32
+ export default Tooltip;
@@ -0,0 +1,5 @@
1
+ export declare const pastelToVividMap: Record<string, string>;
2
+ /** Returns the vivid counterpart for a given color var if it's pastel; otherwise undefined. */
3
+ export declare function vividFor(colorVar: string | undefined): string | undefined;
4
+ /** Whether the provided CSS var corresponds to a known pastel color. */
5
+ export declare function isPastel(colorVar: string | undefined): boolean;
@@ -0,0 +1,21 @@
1
+ var _a;
2
+ import { CCLPastelColor, CCLVividColor } from './config';
3
+ // Pastel -> Vivid CSS variable mapping
4
+ export var pastelToVividMap = (_a = {},
5
+ _a[CCLPastelColor.PEACH_PINK] = CCLVividColor.STRAWBERRY_PINK,
6
+ _a[CCLPastelColor.LEMON_YELLOW] = CCLVividColor.PINEAPPLE_YELLOW,
7
+ _a[CCLPastelColor.SUGAR_BLUE] = CCLVividColor.SODA_BLUE,
8
+ _a[CCLPastelColor.MATCHA_GREEN] = CCLVividColor.MELON_GREEN,
9
+ _a[CCLPastelColor.AKEBI_PURPLE] = CCLVividColor.GRAPE_PURPLE,
10
+ _a[CCLPastelColor.CLOUD_GREY] = CCLVividColor.WRAP_GREY,
11
+ _a);
12
+ /** Returns the vivid counterpart for a given color var if it's pastel; otherwise undefined. */
13
+ export function vividFor(colorVar) {
14
+ if (!colorVar)
15
+ return undefined;
16
+ return pastelToVividMap[colorVar];
17
+ }
18
+ /** Whether the provided CSS var corresponds to a known pastel color. */
19
+ export function isPastel(colorVar) {
20
+ return !!colorVar && Object.prototype.hasOwnProperty.call(pastelToVividMap, colorVar);
21
+ }
@@ -1,24 +1,24 @@
1
1
  :root {
2
- --hd-color: var(--strawberry-pink);
3
- /*Vivid*/
4
- --strawberry-pink: #ed3b7d;
5
- --pineapple-yellow: #ed9126;
6
- --soda-blue: #2089ea;
7
- --melon-green: #70af0a;
8
- --grape-purple: #9707db;
9
- --wrap-grey: #5f5f60;
10
- /*Pastel*/
11
- --peach-pink: #ffb4c3;
12
- --lemon-yellow: #fff27a;
13
- --sugar-blue: #aee4ff;
14
- --matcha-green: #d8ff85;
15
- --akebi-purple: #ddb2ff;
16
- --cloud-grey: #a3a3a3;
2
+ --hd-color: var(--strawberry-pink);
3
+ /*Vivid*/
4
+ --strawberry-pink: #ed3b7d;
5
+ --pineapple-yellow: #ed9126;
6
+ --soda-blue: #2089ea;
7
+ --melon-green: #70af0a;
8
+ --grape-purple: #9707db;
9
+ --wrap-grey: #5f5f60;
10
+ /*Pastel*/
11
+ --peach-pink: #ffb4c3;
12
+ --lemon-yellow: #fff27a;
13
+ --sugar-blue: #aee4ff;
14
+ --matcha-green: #d8ff85;
15
+ --akebi-purple: #ddb2ff;
16
+ --cloud-grey: #a3a3a3;
17
17
 
18
- /* default header height */
19
- --hd-height: var(--hd-normal);
20
- /*header height*/
21
- --hd-wide: 130px;
22
- --hd-normal: 80px;
23
- --hd-nallow: 60px;
18
+ /* default header height */
19
+ --hd-height: var(--hd-normal);
20
+ /*header height*/
21
+ --hd-wide: 130px;
22
+ --hd-normal: 80px;
23
+ --hd-nallow: 60px;
24
24
  }
package/dist/index.d.ts CHANGED
@@ -29,3 +29,12 @@ export { default as Tabs } from './Tabs.svelte';
29
29
  export { default as TabPanel } from './TabPanel.svelte';
30
30
  export { default as Accordion } from './Accordion.svelte';
31
31
  export { default as AccordionItem } from './AccordionItem.svelte';
32
+ export { default as Dialog } from './Dialog.svelte';
33
+ export { default as Badge } from './Badge.svelte';
34
+ export { default as SlideMenu } from './SlideMenu.svelte';
35
+ export type { MenuItem } from './types/slide-menu';
36
+ export { default as Toaster } from './Toaster.svelte';
37
+ export { toast, toasts, type ToastItem, type ToastVariant } from './toast';
38
+ export { default as Skeleton } from './Skeleton.svelte';
39
+ export { default as Breadcrumb } from './Breadcrumb.svelte';
40
+ export type { BreadcrumbItem } from './types/breadcrumb';
package/dist/index.js CHANGED
@@ -30,3 +30,11 @@ export { default as Tabs } from './Tabs.svelte';
30
30
  export { default as TabPanel } from './TabPanel.svelte';
31
31
  export { default as Accordion } from './Accordion.svelte';
32
32
  export { default as AccordionItem } from './AccordionItem.svelte';
33
+ export { default as Dialog } from './Dialog.svelte';
34
+ export { default as Badge } from './Badge.svelte';
35
+ // Drawer is now an internal primitive; use SlideMenu for public API
36
+ export { default as SlideMenu } from './SlideMenu.svelte';
37
+ export { default as Toaster } from './Toaster.svelte';
38
+ export { toast, toasts } from './toast';
39
+ export { default as Skeleton } from './Skeleton.svelte';
40
+ export { default as Breadcrumb } from './Breadcrumb.svelte';
@@ -0,0 +1,29 @@
1
+ import { type Writable } from 'svelte/store';
2
+ export type ToastVariant = 'success' | 'error' | 'warning' | 'info';
3
+ export type ToastItem = {
4
+ id: string;
5
+ title?: string;
6
+ message: string;
7
+ variant: ToastVariant;
8
+ duration: number;
9
+ };
10
+ export type ShowOptions = {
11
+ title?: string;
12
+ message: string;
13
+ variant?: ToastVariant;
14
+ duration?: number;
15
+ };
16
+ export declare const toasts: Writable<ToastItem[]>;
17
+ export declare function show(opts: ShowOptions): string;
18
+ export declare function dismiss(id: string): void;
19
+ export declare function clear(): void;
20
+ export declare const toast: {
21
+ show: typeof show;
22
+ success(message: string, title?: string, duration?: number): string;
23
+ error(message: string, title?: string, duration?: number): string;
24
+ warning(message: string, title?: string, duration?: number): string;
25
+ info(message: string, title?: string, duration?: number): string;
26
+ dismiss: typeof dismiss;
27
+ clear: typeof clear;
28
+ };
29
+ export declare const variantColor: Record<ToastVariant, string>;
package/dist/toast.js ADDED
@@ -0,0 +1,66 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
10
+ import { writable } from 'svelte/store';
11
+ import { CCLVividColor } from './const/config';
12
+ export var toasts = writable([]);
13
+ function genId() {
14
+ return Math.random().toString(36).slice(2) + Date.now().toString(36);
15
+ }
16
+ // Default auto-dismiss duration held internally
17
+ var DEFAULT_DURATION = 3000;
18
+ export function show(opts) {
19
+ var _a, _b;
20
+ var id = genId();
21
+ var item = {
22
+ id: id,
23
+ title: opts.title,
24
+ message: opts.message,
25
+ variant: (_a = opts.variant) !== null && _a !== void 0 ? _a : 'info',
26
+ duration: (_b = opts.duration) !== null && _b !== void 0 ? _b : DEFAULT_DURATION
27
+ };
28
+ toasts.update(function (list) { return __spreadArray([item], list, true).slice(0, 50); });
29
+ if (typeof window !== 'undefined' && item.duration > 0) {
30
+ window.setTimeout(function () { return dismiss(id); }, item.duration);
31
+ }
32
+ return id;
33
+ }
34
+ export function dismiss(id) {
35
+ toasts.update(function (list) { return list.filter(function (t) { return t.id !== id; }); });
36
+ }
37
+ export function clear() {
38
+ toasts.set([]);
39
+ }
40
+ export var toast = {
41
+ show: show,
42
+ success: function (message, title, duration) {
43
+ if (title === void 0) { title = 'Success'; }
44
+ return show({ message: message, title: title, variant: 'success', duration: duration });
45
+ },
46
+ error: function (message, title, duration) {
47
+ if (title === void 0) { title = 'Error'; }
48
+ return show({ message: message, title: title, variant: 'error', duration: duration });
49
+ },
50
+ warning: function (message, title, duration) {
51
+ if (title === void 0) { title = 'Warning'; }
52
+ return show({ message: message, title: title, variant: 'warning', duration: duration });
53
+ },
54
+ info: function (message, title, duration) {
55
+ if (title === void 0) { title = 'Info'; }
56
+ return show({ message: message, title: title, variant: 'info', duration: duration });
57
+ },
58
+ dismiss: dismiss,
59
+ clear: clear
60
+ };
61
+ export var variantColor = {
62
+ success: CCLVividColor.MELON_GREEN,
63
+ error: CCLVividColor.STRAWBERRY_PINK,
64
+ warning: CCLVividColor.PINEAPPLE_YELLOW,
65
+ info: CCLVividColor.SODA_BLUE
66
+ };
@@ -0,0 +1,4 @@
1
+ export type BreadcrumbItem = {
2
+ label: string;
3
+ href?: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type MenuItem = {
2
+ id: string;
3
+ label: string;
4
+ href?: string;
5
+ };
@@ -0,0 +1 @@
1
+ export {};