@codeandfunction/callaloo 1.8.1 → 1.9.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/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
+ Lg = "rounded-lg",
26
+ Md = "rounded-md",
27
+ None = "rounded-none",
28
+ Sm = "rounded-sm",
29
+ Xl = "rounded-xl",
30
+ Xxl = "rounded-2xl",
31
+ Xxxl = "rounded-3xl",
32
+ Xs = "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
- byline?: string;
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,7 @@ export declare enum IconNames {
128
143
  BrandWhatsApp = "tabler:brand-whatsapp",
129
144
  BrandX = "tabler:brand-x",
130
145
  BrandYouTube = "tabler:brand-youtube-filled",
146
+ Calendar = "tabler:calendar",
131
147
  CaretDown = "tabler:caret-down",
132
148
  CaretLeft = "tabler:caret-left",
133
149
  CaretRight = "tabler:caret-right",
@@ -142,6 +158,8 @@ export declare enum IconNames {
142
158
  Click = "tabler:click",
143
159
  ClipboardCopy = "tabler:clipboard-copy",
144
160
  ClipboardText = "tabler:clipboard-text",
161
+ Clock = "tabler:clock",
162
+ Clock2 = "tabler:clock-2",
145
163
  Code = "tabler:code",
146
164
  Columns1 = "tabler:columns-1",
147
165
  Columns2 = "tabler:columns-2",
@@ -252,6 +270,9 @@ export declare enum IconNames {
252
270
  TrashCan = "tabler:trash",
253
271
  Typography = "tabler:typography",
254
272
  Upload = "tabler:upload",
273
+ User = "tabler:user",
274
+ UserCircle = "tabler:user-circle",
275
+ UserSquareRounded = "tabler:user-square-rounded",
255
276
  Video = "tabler:video",
256
277
  WindowMaximize = "tabler:window-maximize",
257
278
  WindowMinimize = "tabler:window-minimize"
@@ -303,6 +324,7 @@ export type PillThemes = Exclude<Themes, Themes.Transparent>;
303
324
  export interface InputProps {
304
325
  ariaLabel?: string;
305
326
  autoComplete?: boolean;
327
+ borderRadius?: BorderRadius;
306
328
  busy?: boolean;
307
329
  checked?: boolean;
308
330
  disabled?: boolean;
@@ -408,15 +430,16 @@ export declare enum Themes {
408
430
  Dark = "dark"
409
431
  }
410
432
  export interface ToastProps {
411
- title?: string;
412
- message?: string;
413
- width?: string;
414
- rounded?: boolean;
415
433
  actionLabel?: string;
416
- icon?: IconNames;
417
- iconSize?: Sizes;
434
+ borderRadius?: BorderRadius;
418
435
  /** Time in seconds e.g 5 = 5 seconds */
419
436
  dismissTimer?: number;
437
+ icon?: IconNames;
438
+ iconSize?: Sizes;
439
+ message?: string;
420
440
  onAction?: (event?: Event) => void;
421
441
  onDismiss: () => void;
442
+ rounded?: boolean;
443
+ title?: string;
444
+ width?: string;
422
445
  }
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.1",
8
+ "version": "1.9.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.6",
38
+ "@iconify-json/tabler": "^1.2.7",
39
39
  "@iconify/types": "^2.0.0",
40
- "@storybook/addon-a11y": "^8.3.6",
41
- "@storybook/addon-essentials": "^8.3.6",
42
- "@storybook/addon-interactions": "^8.3.6",
43
- "@storybook/cli": "^8.3.6",
44
- "@storybook/core-server": "^8.3.6",
45
- "@storybook/test": "^8.3.6",
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.3.6",
48
- "@storybook/vue3-vite": "^8.3.6",
49
- "@types/node": "20.17.1",
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.29.1",
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.4",
65
- "storybook": "^8.3.6",
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",