@codeandfunction/callaloo 1.0.1
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/README.md +15 -0
- package/dist/components/A11yButton.vue.d.ts +38 -0
- package/dist/components/Badge.vue.d.ts +32 -0
- package/dist/components/Banner.vue.d.ts +42 -0
- package/dist/components/Button.vue.d.ts +74 -0
- package/dist/components/Card.vue.d.ts +69 -0
- package/dist/components/Carousel.vue.d.ts +45 -0
- package/dist/components/Checkbox.vue.d.ts +33 -0
- package/dist/components/Disclosure.vue.d.ts +65 -0
- package/dist/components/Heading.vue.d.ts +47 -0
- package/dist/components/Icon.vue.d.ts +31 -0
- package/dist/components/Input.vue.d.ts +42 -0
- package/dist/components/InputMessages.vue.d.ts +18 -0
- package/dist/components/Link.vue.d.ts +45 -0
- package/dist/components/NavLink.vue.d.ts +42 -0
- package/dist/components/NavSection.vue.d.ts +16 -0
- package/dist/components/Pill.vue.d.ts +33 -0
- package/dist/components/RadioButton.vue.d.ts +33 -0
- package/dist/components/Select.vue.d.ts +39 -0
- package/dist/components/Skeleton.vue.d.ts +36 -0
- package/dist/components/Spinner.vue.d.ts +42 -0
- package/dist/components/Table.vue.d.ts +55 -0
- package/dist/components/TableBody.vue.d.ts +11 -0
- package/dist/components/TableCell.vue.d.ts +54 -0
- package/dist/components/TableFooter.vue.d.ts +11 -0
- package/dist/components/TableHeader.vue.d.ts +11 -0
- package/dist/components/TableNestedCell.vue.d.ts +23 -0
- package/dist/components/TableRow.vue.d.ts +23 -0
- package/dist/components/Text.vue.d.ts +47 -0
- package/dist/components/TextArea.vue.d.ts +42 -0
- package/dist/components/Toast.vue.d.ts +36 -0
- package/dist/favicon.ico +0 -0
- package/dist/helper.d.ts +8 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +3203 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/types.d.ts +240 -0
- package/package.json +67 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
export declare enum Align {
|
|
2
|
+
Left = "left",
|
|
3
|
+
Center = "center",
|
|
4
|
+
Right = "right"
|
|
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 interface BannerProps {
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
theme?: BannerThemes;
|
|
18
|
+
width?: string;
|
|
19
|
+
height?: string;
|
|
20
|
+
rounded?: boolean;
|
|
21
|
+
align?: Align;
|
|
22
|
+
onDismiss?: (event?: Event) => void;
|
|
23
|
+
onClick?: (event?: Event) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare enum CardTypes {
|
|
26
|
+
Compact = "compact",
|
|
27
|
+
Small = "small",
|
|
28
|
+
Medium = "medium",
|
|
29
|
+
Large = "large",
|
|
30
|
+
XLarge = "xlarge"
|
|
31
|
+
}
|
|
32
|
+
export interface CardProps {
|
|
33
|
+
busy?: boolean;
|
|
34
|
+
type?: CardTypes;
|
|
35
|
+
image?: string;
|
|
36
|
+
imageRight?: boolean;
|
|
37
|
+
imageWidth?: string;
|
|
38
|
+
imageHeight?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
titleType?: HeadingTypes;
|
|
41
|
+
byline?: string;
|
|
42
|
+
theme?: Themes;
|
|
43
|
+
active?: boolean;
|
|
44
|
+
width?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
rounded?: boolean;
|
|
47
|
+
align?: Align;
|
|
48
|
+
onClick?: (event?: Event) => void;
|
|
49
|
+
}
|
|
50
|
+
export type CheckboxThemes = Exclude<Themes, Themes.Transparent | Themes.Outline | Themes.OutlineDanger | Themes.OutlineInfo | Themes.OutlinePrimary | Themes.OutlineSecondary | Themes.OutlineSuccess | Themes.OutlineWarning>;
|
|
51
|
+
export declare enum DarkMode {
|
|
52
|
+
On = "dark",
|
|
53
|
+
Off = "light",
|
|
54
|
+
System = "system"
|
|
55
|
+
}
|
|
56
|
+
export type HeadingThemes = Extract<Themes, Themes.Light | Themes.Dark>;
|
|
57
|
+
export declare enum HeadingTypes {
|
|
58
|
+
Title = "title",
|
|
59
|
+
PageTitle = "pagetitle",
|
|
60
|
+
Section = "section",
|
|
61
|
+
SubSection = "subsection"
|
|
62
|
+
}
|
|
63
|
+
export declare enum IconNames {
|
|
64
|
+
Archive = "tabler:archive",
|
|
65
|
+
AtSign = "tabler:at",
|
|
66
|
+
Book = "tabler:book",
|
|
67
|
+
Check = "tabler:check",
|
|
68
|
+
ChevronLeft = "tabler:chevron-left",
|
|
69
|
+
ChevronRight = "tabler:chevron-right",
|
|
70
|
+
ChevronUp = "tabler:chevron-up",
|
|
71
|
+
ChevronDown = "tabler:chevron-down",
|
|
72
|
+
Database = "tabler:database",
|
|
73
|
+
Delete = "tabler:x",
|
|
74
|
+
EditItem = "tabler:edit-circle",
|
|
75
|
+
EditPencil = "tabler:edit",
|
|
76
|
+
Email = "tabler:mail",
|
|
77
|
+
ExternalLink = "tabler:external-link",
|
|
78
|
+
Facebook = "tabler:brand-facebook-filled",
|
|
79
|
+
FileText = "tabler:file-text",
|
|
80
|
+
Grid = "tabler:grid",
|
|
81
|
+
Google = "tabler:brand-google-filled",
|
|
82
|
+
HelpCircle = "tabler:help-circle",
|
|
83
|
+
Image = "tabler:photo",
|
|
84
|
+
Instagram = "tabler:brand-instagram",
|
|
85
|
+
Layout = "tabler:layout",
|
|
86
|
+
LinkedIn = "tabler:brand-linkedin",
|
|
87
|
+
LogIn = "tabler:login",
|
|
88
|
+
LogOut = "tabler:logout",
|
|
89
|
+
Plus = "tabler:plus",
|
|
90
|
+
PlusCircle = "tabler:circle-plus",
|
|
91
|
+
Mail = "tabler:mail",
|
|
92
|
+
Menu = "tabler:menu-2",
|
|
93
|
+
MoreHorizontal = "tabler:dots",
|
|
94
|
+
MoreVertical = "tabler:dots-vertical",
|
|
95
|
+
Search = "tabler:search",
|
|
96
|
+
Settings = "tabler:settings",
|
|
97
|
+
Sliders = "tabler:adjustments",
|
|
98
|
+
TikTok = "tabler:brand-tiktok",
|
|
99
|
+
TrashCan = "tabler:trash",
|
|
100
|
+
Twitter = "tabler:brand-twitter-filled",
|
|
101
|
+
WhatsApp = "tabler:brand-whatsapp",
|
|
102
|
+
X = "tabler:brand-x",
|
|
103
|
+
YouTube = "tabler:brand-youtube-filled"
|
|
104
|
+
}
|
|
105
|
+
export declare enum InputTypes {
|
|
106
|
+
Date = "date",
|
|
107
|
+
DateTimeLocal = "datetime-local",
|
|
108
|
+
Decimal = "decimal",
|
|
109
|
+
Email = "email",
|
|
110
|
+
Hidden = "hidden",
|
|
111
|
+
File = "file",
|
|
112
|
+
None = "none",
|
|
113
|
+
Number = "number",
|
|
114
|
+
Password = "password",
|
|
115
|
+
Search = "search",
|
|
116
|
+
Tel = "tel",
|
|
117
|
+
Text = "text",
|
|
118
|
+
Time = "time",
|
|
119
|
+
Url = "url"
|
|
120
|
+
}
|
|
121
|
+
export declare enum LinkTarget {
|
|
122
|
+
Blank = "_blank",
|
|
123
|
+
Self = "_self"
|
|
124
|
+
}
|
|
125
|
+
export declare enum MessageType {
|
|
126
|
+
Default = "default",
|
|
127
|
+
Danger = "danger",
|
|
128
|
+
Success = "success",
|
|
129
|
+
Warning = "warning"
|
|
130
|
+
}
|
|
131
|
+
export interface NavItem {
|
|
132
|
+
id: string;
|
|
133
|
+
href?: string;
|
|
134
|
+
onClick?: (event?: Event) => void;
|
|
135
|
+
label: string;
|
|
136
|
+
target?: LinkTarget;
|
|
137
|
+
external?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface Option {
|
|
140
|
+
label: string;
|
|
141
|
+
value: string | number | null;
|
|
142
|
+
}
|
|
143
|
+
export type PillThemes = Exclude<Themes, Themes.Transparent>;
|
|
144
|
+
export interface InputProps {
|
|
145
|
+
ariaLabel?: string;
|
|
146
|
+
autoComplete?: boolean;
|
|
147
|
+
busy?: boolean;
|
|
148
|
+
checked?: boolean;
|
|
149
|
+
disabled?: boolean;
|
|
150
|
+
floatingLabel?: boolean;
|
|
151
|
+
fluid?: boolean;
|
|
152
|
+
form?: string;
|
|
153
|
+
grouped?: boolean;
|
|
154
|
+
id?: string;
|
|
155
|
+
label?: string;
|
|
156
|
+
maxLength?: number;
|
|
157
|
+
minLength?: number;
|
|
158
|
+
messages?: string[];
|
|
159
|
+
messageType?: MessageType;
|
|
160
|
+
name: string;
|
|
161
|
+
options?: Option[];
|
|
162
|
+
pattern?: string;
|
|
163
|
+
pill?: string;
|
|
164
|
+
placeholder?: string;
|
|
165
|
+
prefix?: string | IconNames;
|
|
166
|
+
readonly?: boolean;
|
|
167
|
+
required?: boolean;
|
|
168
|
+
resizable?: boolean;
|
|
169
|
+
rounded?: boolean;
|
|
170
|
+
rows?: number;
|
|
171
|
+
size?: Sizes;
|
|
172
|
+
spellCheck?: boolean;
|
|
173
|
+
suffix?: string | IconNames;
|
|
174
|
+
type?: InputTypes;
|
|
175
|
+
theme?: Themes;
|
|
176
|
+
value?: string | number;
|
|
177
|
+
width?: string;
|
|
178
|
+
onInput?: (event: Event) => void;
|
|
179
|
+
onBlur?: (event: FocusEvent) => void;
|
|
180
|
+
onFocus?: (event: FocusEvent) => void;
|
|
181
|
+
onChange?: (event: Event) => void;
|
|
182
|
+
}
|
|
183
|
+
export declare enum Position {
|
|
184
|
+
Absolute = "absolute",
|
|
185
|
+
Relative = "relative"
|
|
186
|
+
}
|
|
187
|
+
export declare enum Sizes {
|
|
188
|
+
Tiny = "tiny",
|
|
189
|
+
Small = "small",
|
|
190
|
+
Medium = "medium",
|
|
191
|
+
Large = "large",
|
|
192
|
+
XLarge = "xlarge"
|
|
193
|
+
}
|
|
194
|
+
export type SpinnerThemes = Exclude<Themes, Themes.Transparent | Themes.Outline | Themes.OutlineDanger | Themes.OutlineInfo | Themes.OutlinePrimary | Themes.OutlineSecondary | Themes.OutlineSuccess | Themes.OutlineWarning>;
|
|
195
|
+
export declare enum TableTypes {
|
|
196
|
+
Condensed = "condensed",
|
|
197
|
+
Default = "default",
|
|
198
|
+
Plain = "plain"
|
|
199
|
+
}
|
|
200
|
+
export type TextThemes = Extract<Themes, Themes.Light | Themes.Dark>;
|
|
201
|
+
export declare enum TextTypes {
|
|
202
|
+
Body = "body",
|
|
203
|
+
Summary = "summary",
|
|
204
|
+
Tiny = "tiny",
|
|
205
|
+
Small = "small",
|
|
206
|
+
Medium = "medium",
|
|
207
|
+
Large = "large"
|
|
208
|
+
}
|
|
209
|
+
export declare enum Themes {
|
|
210
|
+
Default = "default",
|
|
211
|
+
Primary = "primary",
|
|
212
|
+
Secondary = "secondary",
|
|
213
|
+
Transparent = "transparent",
|
|
214
|
+
Outline = "outline",
|
|
215
|
+
OutlinePrimary = "outline-primary",
|
|
216
|
+
OutlineSecondary = "outline-secondary",
|
|
217
|
+
OutlineDanger = "outline-danger",
|
|
218
|
+
OutlineWarning = "outline-warning",
|
|
219
|
+
OutlineSuccess = "outline-success",
|
|
220
|
+
OutlineInfo = "outline-info",
|
|
221
|
+
Danger = "danger",
|
|
222
|
+
Warning = "warning",
|
|
223
|
+
Success = "success",
|
|
224
|
+
Info = "info",
|
|
225
|
+
Light = "light",
|
|
226
|
+
Dark = "dark"
|
|
227
|
+
}
|
|
228
|
+
export interface ToastProps {
|
|
229
|
+
title?: string;
|
|
230
|
+
message?: string;
|
|
231
|
+
width?: string;
|
|
232
|
+
rounded?: boolean;
|
|
233
|
+
actionLabel?: string;
|
|
234
|
+
icon?: IconNames;
|
|
235
|
+
iconSize?: Sizes;
|
|
236
|
+
/** Time in seconds e.g 5 = 5 seconds */
|
|
237
|
+
dismissTimer?: number;
|
|
238
|
+
onAction?: (event?: Event) => void;
|
|
239
|
+
onDismiss: () => void;
|
|
240
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codeandfunction/callaloo",
|
|
3
|
+
"description": "a simple vue component library",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Anthony Cholmondeley",
|
|
6
|
+
"url": "https://callaloo.dev/"
|
|
7
|
+
},
|
|
8
|
+
"version": "1.0.1",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"start": "storybook dev -p 4400 --no-open",
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"build:watch": "vite build --watch"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"main": "./dist/index.umd.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"typings": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.umd.cjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
30
|
+
"@iconify-icons/tabler": "^1.2.95",
|
|
31
|
+
"@iconify/types": "^2.0.0",
|
|
32
|
+
"@iconify/vue": "^4.1.2",
|
|
33
|
+
"@storybook/addon-a11y": "^8.2.9",
|
|
34
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
35
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
36
|
+
"@storybook/core-server": "^8.2.9",
|
|
37
|
+
"@storybook/test": "^8.2.9",
|
|
38
|
+
"@storybook/test-runner": "^0.19.1",
|
|
39
|
+
"@storybook/vue3": "^8.2.9",
|
|
40
|
+
"@storybook/vue3-vite": "^8.2.9",
|
|
41
|
+
"@types/node": "20.14.15",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
43
|
+
"@typescript-eslint/parser": "7.18.0",
|
|
44
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
45
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
46
|
+
"@vitest/coverage-c8": "~0.33.0",
|
|
47
|
+
"@vitest/coverage-v8": "1.6.0",
|
|
48
|
+
"@vitest/ui": "1.6.0",
|
|
49
|
+
"@vue/tsconfig": "^0.5.1",
|
|
50
|
+
"eslint": "8.57.0",
|
|
51
|
+
"eslint-config-prettier": "9.1.0",
|
|
52
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
53
|
+
"prettier": "^3.3.3",
|
|
54
|
+
"sass": "^1.77.8",
|
|
55
|
+
"storybook": "^8.2.9",
|
|
56
|
+
"typescript": "^5.5.4",
|
|
57
|
+
"vite": "5.4.0",
|
|
58
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
59
|
+
"vite-plugin-dts": "^3.9.1",
|
|
60
|
+
"vite-tsconfig-paths": "^4.3.2",
|
|
61
|
+
"vitest": "1.6.0",
|
|
62
|
+
"vue": "^3.4.38",
|
|
63
|
+
"vue-router": "^4.4.3",
|
|
64
|
+
"vue-tsc": "^1.8.27"
|
|
65
|
+
},
|
|
66
|
+
"packageManager": "yarn@4.3.1"
|
|
67
|
+
}
|