@codeandfunction/callaloo 1.8.1 → 1.10.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.
- package/dist/assets/index.css +1 -1
- package/dist/components/Buttons/Button.vue.d.ts +7 -1
- package/dist/components/Containers/Disclosure.vue.d.ts +2 -1
- package/dist/components/Indicators/Badge.vue.d.ts +3 -2
- package/dist/components/Loading/Skeleton.vue.d.ts +8 -5
- package/dist/components/Popups/DropdownMenu.vue.d.ts +3 -1
- package/dist/components/Table/Table.vue.d.ts +9 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +190 -127
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +43 -14
- package/package.json +15 -15
package/dist/types.d.ts
CHANGED
|
@@ -3,15 +3,9 @@ export declare enum Align {
|
|
|
3
3
|
Center = "center",
|
|
4
4
|
Right = "right"
|
|
5
5
|
}
|
|
6
|
-
export type BadgeThemes = Exclude<Themes, Themes.Transparent>;
|
|
7
|
-
export declare enum ButtonTypes {
|
|
8
|
-
Button = "button",
|
|
9
|
-
Submit = "submit"
|
|
10
|
-
}
|
|
11
|
-
export type BannerThemes = Exclude<Themes, Themes.Transparent>;
|
|
12
|
-
export type BlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
|
|
13
6
|
export interface BannerProps {
|
|
14
7
|
ariaLabel?: string;
|
|
8
|
+
borderRadius?: BorderRadius;
|
|
15
9
|
busy?: boolean;
|
|
16
10
|
title?: string;
|
|
17
11
|
message?: string;
|
|
@@ -23,6 +17,24 @@ export interface BannerProps {
|
|
|
23
17
|
onDismiss?: (event?: Event) => void;
|
|
24
18
|
onClick?: (event?: Event) => void;
|
|
25
19
|
}
|
|
20
|
+
export type BadgeThemes = Exclude<Themes, Themes.Transparent>;
|
|
21
|
+
export type BannerThemes = Exclude<Themes, Themes.Transparent>;
|
|
22
|
+
export type BlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
|
|
23
|
+
export declare enum BorderRadius {
|
|
24
|
+
Full = "rounded-full",
|
|
25
|
+
Large = "rounded-lg",
|
|
26
|
+
Medium = "rounded-md",
|
|
27
|
+
None = "rounded-none",
|
|
28
|
+
Small = "rounded-sm",
|
|
29
|
+
XLarge = "rounded-xl",
|
|
30
|
+
XXLarge = "rounded-2xl",
|
|
31
|
+
XXXLarge = "rounded-3xl",
|
|
32
|
+
XSmall = "rounded-xs"
|
|
33
|
+
}
|
|
34
|
+
export declare enum ButtonTypes {
|
|
35
|
+
Button = "button",
|
|
36
|
+
Submit = "submit"
|
|
37
|
+
}
|
|
26
38
|
export declare enum CardTypes {
|
|
27
39
|
Tiny = "tiny",
|
|
28
40
|
Compact = "compact",
|
|
@@ -34,8 +46,9 @@ export declare enum CardTypes {
|
|
|
34
46
|
export interface CardProps {
|
|
35
47
|
active?: boolean;
|
|
36
48
|
align?: Align;
|
|
37
|
-
|
|
49
|
+
borderRadius?: BorderRadius;
|
|
38
50
|
busy?: boolean;
|
|
51
|
+
byline?: string;
|
|
39
52
|
elevated?: boolean;
|
|
40
53
|
forwardRef?: (elem: HTMLDivElement) => void;
|
|
41
54
|
height?: string;
|
|
@@ -79,7 +92,9 @@ export declare enum HeadingTypes {
|
|
|
79
92
|
SubSection = "subsection"
|
|
80
93
|
}
|
|
81
94
|
export declare enum IconNames {
|
|
95
|
+
Activity = "tabler:activity",
|
|
82
96
|
Ai = "tabler:ai",
|
|
97
|
+
Alarm = "tabler:alarm",
|
|
83
98
|
Apps = "tabler:apps",
|
|
84
99
|
Archive = "tabler:archive",
|
|
85
100
|
ArrowBackUp = "tabler:arrow-back-up",
|
|
@@ -128,6 +143,8 @@ export declare enum IconNames {
|
|
|
128
143
|
BrandWhatsApp = "tabler:brand-whatsapp",
|
|
129
144
|
BrandX = "tabler:brand-x",
|
|
130
145
|
BrandYouTube = "tabler:brand-youtube-filled",
|
|
146
|
+
Broadcast = "tabler:broadcast",
|
|
147
|
+
Calendar = "tabler:calendar",
|
|
131
148
|
CaretDown = "tabler:caret-down",
|
|
132
149
|
CaretLeft = "tabler:caret-left",
|
|
133
150
|
CaretRight = "tabler:caret-right",
|
|
@@ -142,6 +159,8 @@ export declare enum IconNames {
|
|
|
142
159
|
Click = "tabler:click",
|
|
143
160
|
ClipboardCopy = "tabler:clipboard-copy",
|
|
144
161
|
ClipboardText = "tabler:clipboard-text",
|
|
162
|
+
Clock = "tabler:clock",
|
|
163
|
+
Clock2 = "tabler:clock-2",
|
|
145
164
|
Code = "tabler:code",
|
|
146
165
|
Columns1 = "tabler:columns-1",
|
|
147
166
|
Columns2 = "tabler:columns-2",
|
|
@@ -156,6 +175,7 @@ export declare enum IconNames {
|
|
|
156
175
|
Delete = "tabler:x",
|
|
157
176
|
Devices = "tabler:devices",
|
|
158
177
|
DeviceDesktop = "tabler:device-desktop",
|
|
178
|
+
DeviceGamepad = "tabler:device-gamepad",
|
|
159
179
|
DeviceMobile = "tabler:device-mobile",
|
|
160
180
|
DeviceTablet = "tabler:device-tablet",
|
|
161
181
|
DeviceTv = "tabler:device-tv",
|
|
@@ -180,6 +200,7 @@ export declare enum IconNames {
|
|
|
180
200
|
FileTypeVue = "tabler:file-type-vue",
|
|
181
201
|
Folder = "tabler:folder",
|
|
182
202
|
Forms = "tabler:forms",
|
|
203
|
+
Hanger = "tabler:hanger",
|
|
183
204
|
Heading = "tabler:heading",
|
|
184
205
|
Help = "tabler:help",
|
|
185
206
|
HelpCircle = "tabler:help-circle",
|
|
@@ -205,6 +226,7 @@ export declare enum IconNames {
|
|
|
205
226
|
ListTree = "tabler:list-tree",
|
|
206
227
|
LogIn = "tabler:login",
|
|
207
228
|
LogOut = "tabler:logout",
|
|
229
|
+
Music = "tabler:music",
|
|
208
230
|
Palette = "tabler:palette",
|
|
209
231
|
Paint = "tabler:paint",
|
|
210
232
|
Marquee = "tabler:marquee",
|
|
@@ -230,6 +252,7 @@ export declare enum IconNames {
|
|
|
230
252
|
Plus = "tabler:plus",
|
|
231
253
|
Rectangle = "tabler:rectangle",
|
|
232
254
|
Refresh = "tabler:refresh",
|
|
255
|
+
Rss = "tabler:rss",
|
|
233
256
|
ShoppingCart = "tabler:shopping-cart",
|
|
234
257
|
Search = "tabler:search",
|
|
235
258
|
Section = "tabler:section",
|
|
@@ -246,12 +269,16 @@ export declare enum IconNames {
|
|
|
246
269
|
Stack2 = "tabler:stack-2",
|
|
247
270
|
Stack3 = "tabler:stack-3",
|
|
248
271
|
Sun = "tabler:sun",
|
|
272
|
+
Ticket = "tabler:ticket",
|
|
249
273
|
Terminal = "tabler:terminal",
|
|
250
274
|
Terminal2 = "tabler:terminal-2",
|
|
251
275
|
TextSize = "tabler:text-size",
|
|
252
276
|
TrashCan = "tabler:trash",
|
|
253
277
|
Typography = "tabler:typography",
|
|
254
278
|
Upload = "tabler:upload",
|
|
279
|
+
User = "tabler:user",
|
|
280
|
+
UserCircle = "tabler:user-circle",
|
|
281
|
+
UserSquareRounded = "tabler:user-square-rounded",
|
|
255
282
|
Video = "tabler:video",
|
|
256
283
|
WindowMaximize = "tabler:window-maximize",
|
|
257
284
|
WindowMinimize = "tabler:window-minimize"
|
|
@@ -303,6 +330,7 @@ export type PillThemes = Exclude<Themes, Themes.Transparent>;
|
|
|
303
330
|
export interface InputProps {
|
|
304
331
|
ariaLabel?: string;
|
|
305
332
|
autoComplete?: boolean;
|
|
333
|
+
borderRadius?: BorderRadius;
|
|
306
334
|
busy?: boolean;
|
|
307
335
|
checked?: boolean;
|
|
308
336
|
disabled?: boolean;
|
|
@@ -408,15 +436,16 @@ export declare enum Themes {
|
|
|
408
436
|
Dark = "dark"
|
|
409
437
|
}
|
|
410
438
|
export interface ToastProps {
|
|
411
|
-
title?: string;
|
|
412
|
-
message?: string;
|
|
413
|
-
width?: string;
|
|
414
|
-
rounded?: boolean;
|
|
415
439
|
actionLabel?: string;
|
|
416
|
-
|
|
417
|
-
iconSize?: Sizes;
|
|
440
|
+
borderRadius?: BorderRadius;
|
|
418
441
|
/** Time in seconds e.g 5 = 5 seconds */
|
|
419
442
|
dismissTimer?: number;
|
|
443
|
+
icon?: IconNames;
|
|
444
|
+
iconSize?: Sizes;
|
|
445
|
+
message?: string;
|
|
420
446
|
onAction?: (event?: Event) => void;
|
|
421
447
|
onDismiss: () => void;
|
|
448
|
+
rounded?: boolean;
|
|
449
|
+
title?: string;
|
|
450
|
+
width?: string;
|
|
422
451
|
}
|
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"name": "Anthony Cholmondeley",
|
|
6
6
|
"url": "https://callaloo.codeandfunction.com"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.10.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"start": "yarn export:icons && storybook dev -p 4400 --no-open",
|
|
13
13
|
"build:lib": "yarn export:icons && vite build && npm pack",
|
|
14
14
|
"build:watch": "vite build --watch",
|
|
15
|
-
"build:web": "yarn storybook build",
|
|
15
|
+
"build:web": "yarn export:icons && yarn storybook build",
|
|
16
16
|
"test-storybook": "test-storybook --url http://127.0.0.1:4400",
|
|
17
17
|
"export:icons": "npx tsx export-icons.ts"
|
|
18
18
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@chromatic-com/storybook": "^2.0.2",
|
|
37
37
|
"@floating-ui/vue": "^1.1.5",
|
|
38
|
-
"@iconify-json/tabler": "^1.2.
|
|
38
|
+
"@iconify-json/tabler": "^1.2.7",
|
|
39
39
|
"@iconify/types": "^2.0.0",
|
|
40
|
-
"@storybook/addon-a11y": "^8.
|
|
41
|
-
"@storybook/addon-essentials": "^8.
|
|
42
|
-
"@storybook/addon-interactions": "^8.
|
|
43
|
-
"@storybook/cli": "^8.
|
|
44
|
-
"@storybook/core-server": "^8.
|
|
45
|
-
"@storybook/test": "^8.
|
|
40
|
+
"@storybook/addon-a11y": "^8.4.1",
|
|
41
|
+
"@storybook/addon-essentials": "^8.4.1",
|
|
42
|
+
"@storybook/addon-interactions": "^8.4.1",
|
|
43
|
+
"@storybook/cli": "^8.4.1",
|
|
44
|
+
"@storybook/core-server": "^8.4.1",
|
|
45
|
+
"@storybook/test": "^8.4.1",
|
|
46
46
|
"@storybook/test-runner": "^0.19.1",
|
|
47
|
-
"@storybook/vue3": "^8.
|
|
48
|
-
"@storybook/vue3-vite": "^8.
|
|
49
|
-
"@types/node": "20.17.
|
|
47
|
+
"@storybook/vue3": "^8.4.1",
|
|
48
|
+
"@storybook/vue3-vite": "^8.4.1",
|
|
49
|
+
"@types/node": "20.17.5",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
51
51
|
"@typescript-eslint/parser": "7.18.0",
|
|
52
52
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@vue/tsconfig": "^0.5.1",
|
|
58
58
|
"eslint": "8.57.1",
|
|
59
59
|
"eslint-config-prettier": "9.1.0",
|
|
60
|
-
"eslint-plugin-vue": "^9.
|
|
60
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
61
61
|
"glob": "^11.0.0",
|
|
62
62
|
"playwright": "^1.48.2",
|
|
63
63
|
"prettier": "^3.3.3",
|
|
64
|
-
"sass": "^1.80.
|
|
65
|
-
"storybook": "^8.
|
|
64
|
+
"sass": "^1.80.6",
|
|
65
|
+
"storybook": "^8.4.1",
|
|
66
66
|
"typescript": "^5.6.3",
|
|
67
67
|
"vite": "5.4.10",
|
|
68
68
|
"vite-plugin-dts": "^3.9.1",
|