@dayoakin/vue-ui 0.0.0-stage → 0.1.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.
Files changed (55) hide show
  1. package/README.md +121 -2
  2. package/dist/components/AnimeHeight/index.vue.d.ts +28 -0
  3. package/dist/components/Badge/Badge.vue.d.ts +110 -0
  4. package/dist/components/Button/Button.vue.d.ts +231 -0
  5. package/dist/components/Button/ButtonGroup.vue.d.ts +41 -0
  6. package/dist/components/Button/SecondaryButton/index.vue.d.ts +231 -0
  7. package/dist/components/Card/Card.vue.d.ts +139 -0
  8. package/dist/components/CardSelect/CardSelect.vue.d.ts +178 -0
  9. package/dist/components/CodeBlock/index.vue.d.ts +291 -0
  10. package/dist/components/EmptyState/index.vue.d.ts +98 -0
  11. package/dist/components/Hr/index.vue.d.ts +3 -0
  12. package/dist/components/Input/AddressAutocomplete/index.vue.d.ts +218 -0
  13. package/dist/components/Input/CheckboxInput/index.vue.d.ts +115 -0
  14. package/dist/components/Input/CurrencyConverterInput/index.vue.d.ts +561 -0
  15. package/dist/components/Input/CurrencyInput/index.vue.d.ts +310 -0
  16. package/dist/components/Input/DateInput/index.vue.d.ts +276 -0
  17. package/dist/components/Input/DoubleRangeInput/index.vue.d.ts +206 -0
  18. package/dist/components/Input/Input.vue.d.ts +377 -0
  19. package/dist/components/Input/OtpInput/index.vue.d.ts +294 -0
  20. package/dist/components/Input/OtpInput/singleOtpInput.vue.d.ts +258 -0
  21. package/dist/components/Input/RadioInput/index.vue.d.ts +107 -0
  22. package/dist/components/Input/SearchInput/index.vue.d.ts +170 -0
  23. package/dist/components/Input/Select/index.vue.d.ts +250 -0
  24. package/dist/components/Input/TelInput/index.vue.d.ts +242 -0
  25. package/dist/components/Input/Upload/index.vue.d.ts +353 -0
  26. package/dist/components/Loaders/index.d.ts +8 -0
  27. package/dist/components/Loaders/index.vue.d.ts +104 -0
  28. package/dist/components/Loaders/loaderService.d.ts +18 -0
  29. package/dist/components/Modals/Modal.vue.d.ts +189 -0
  30. package/dist/components/Modals/RightSidebar.vue.d.ts +146 -0
  31. package/dist/components/Notification/AlertBox/AlertBox.vue.d.ts +103 -0
  32. package/dist/components/Notification/AlertBox/alertService.d.ts +21 -0
  33. package/dist/components/Notification/AlertBox/index.d.ts +8 -0
  34. package/dist/components/Notification/InlineToast/InlineToast.vue.d.ts +103 -0
  35. package/dist/components/Notification/Toast/index.d.ts +8 -0
  36. package/dist/components/Notification/Toast/index.vue.d.ts +76 -0
  37. package/dist/components/Notification/Toast/toastServices.d.ts +20 -0
  38. package/dist/components/Pagination/Pagination.vue.d.ts +238 -0
  39. package/dist/components/Skeleton/index.vue.d.ts +81 -0
  40. package/dist/components/Spinner/index.vue.d.ts +71 -0
  41. package/dist/components/Tab/Tab.vue.d.ts +149 -0
  42. package/dist/components/Table/index.vue.d.ts +551 -0
  43. package/dist/components/Tooltip/Tooltip.vue.d.ts +90 -0
  44. package/dist/components/index.d.ts +38 -0
  45. package/dist/components/ts/api.d.ts +4 -0
  46. package/dist/core/theme.d.ts +4 -0
  47. package/dist/core/ui.d.ts +88 -0
  48. package/dist/index-z9l8C72U-BM4uarLu.cjs +14 -0
  49. package/dist/index-z9l8C72U-CAfHR3NZ.js +3733 -0
  50. package/dist/index.cjs +7 -0
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +16257 -0
  53. package/dist/lib.d.ts +3 -0
  54. package/dist/style.css +1 -0
  55. package/package.json +53 -4
package/README.md CHANGED
@@ -1,3 +1,122 @@
1
- # Temporary Holding Version
1
+ # Dayoakin Vue UI
2
+
3
+ A reusable Vue 3 component library designed to help developers build interfaces faster with ready-made components, flexible styling and theme support.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @davidakin18/vue-ui remixicon
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ In your application's `main.ts`:
14
+
15
+ ```ts
16
+ import { createApp } from "vue";
17
+ import App from "./App.vue";
18
+
19
+ import "remixicon/fonts/remixicon.css";
20
+ import "@davidakin18/vue-ui/style.css";
21
+
22
+ createApp(App).mount("#app");
23
+ ```
24
+
25
+ Remixicon is a peer dependency. Install and import it separately to use the library's Remixicon-based icons.
26
+
27
+ ## Using components
28
+
29
+ Import the components you need:
30
+
31
+ ```vue
32
+ <script setup lang="ts">
33
+ import {
34
+ Button,
35
+ Card,
36
+ Input,
37
+ Badge,
38
+ SearchInput,
39
+ Pagination,
40
+ Modal,
41
+ Table
42
+ } from "@davidakin18/vue-ui";
43
+ </script>
44
+
45
+ <template>
46
+ <Card>
47
+ <Badge>New</Badge>
48
+
49
+ <Input placeholder="Enter your name" />
50
+
51
+ <SearchInput placeholder="Search..." />
52
+
53
+ <Button>Get Started</Button>
54
+ </Card>
55
+ </template>
56
+ ```
57
+
58
+ ## Available components
59
+
60
+ - Buttons: Button, SecondaryButton, ButtonGroup
61
+ - Layout: Card, CardSelect, EmptyState, Hr, AnimeHeight
62
+ - Inputs: Input, SearchInput, CurrencyInput, CurrencyConverterInput, Select, Upload, OtpInput, SingleOtp, TelInput, DateInput, RadioInput, CheckboxInput, DoubleRangeInput, GoogleAutocomplete
63
+ - Feedback: Badge, Toast, AlertBox, inlineToast
64
+ - Navigation: Tab, Pagination, RightSidebar
65
+ - Data display: Table, Skeleton, Tooltip, CodeBlock
66
+ - Overlays: Modal
67
+ - Loading: Loader
68
+
69
+ ## Theming
70
+
71
+ Dayoakin Vue UI supports colour tokens through CSS variables.
72
+
73
+ ```css
74
+ :root {
75
+ --primary: #6D28D9;
76
+ --primary-hover: #5B21B6;
77
+ --primary-light: #EDE9FE;
78
+ --primary-tint: #F5F3FF;
79
+ --primary-soft: #C4B5FD;
80
+ }
81
+ ```
82
+
83
+ Use tokens in component props:
84
+
85
+ ```vue
86
+ <Button bgColor="primary" />
87
+ <Card bgColor="primary-tint" />
88
+ ```
89
+
90
+ ## Tailwind CSS
91
+
92
+ You can pass Tailwind utility classes through the component's `class` attribute.
93
+
94
+ ```vue
95
+ <Button class="bg-rose-600 rounded-full px-8 hover:bg-rose-700">
96
+ Continue
97
+ </Button>
98
+
99
+ <Card class="bg-slate-900 text-white p-8 rounded-none">
100
+ Content
101
+ </Card>
102
+ ```
103
+
104
+ Responsive and state variants such as `md:`, `hover:` and `focus:` can also be used.
105
+
106
+ ## Custom styling
107
+
108
+ You can also use ordinary CSS classes and inline styles.
109
+
110
+ ```vue
111
+ <Button class="my-custom-button" />
112
+ ```
113
+
114
+ ## Requirements
115
+
116
+ - Vue 3.4+
117
+ - Remixicon 4.8+ (for Remixicon-based icons)
118
+
119
+ ## Package
120
+
121
+ [@davidakin18/vue-ui on npm](https://www.npmjs.com/package/@davidakin18/vue-ui)
2
122
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
@@ -0,0 +1,28 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ duration: {
5
+ type: NumberConstructor;
6
+ default: number;
7
+ };
8
+ easing: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }>, {}, {}, {}, {
13
+ enter(el: Element): void;
14
+ afterEnter(el: Element): void;
15
+ leave(el: Element): void;
16
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ duration: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ easing: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ duration: number;
27
+ easing: string;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,110 @@
1
+ type Position = "top-right" | "top-left" | "bottom-right" | "bottom-left";
2
+ type Size = "sm" | "md" | "lg";
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ count: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ max: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ dot: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ hidden: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ showZero: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ size: {
27
+ type: () => Size;
28
+ default: string;
29
+ };
30
+ position: {
31
+ type: () => Position;
32
+ default: string;
33
+ };
34
+ bgColor: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ textColor: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ borderColor: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ }>, {
47
+ visible: import('vue').ComputedRef<boolean>;
48
+ displayCount: import('vue').ComputedRef<string>;
49
+ positionClass: import('vue').ComputedRef<string>;
50
+ badgeStyle: import('vue').ComputedRef<{
51
+ minWidth: string;
52
+ height: string;
53
+ background: string;
54
+ color: string;
55
+ fontSize: string;
56
+ border: string;
57
+ }>;
58
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ count: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ max: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ };
67
+ dot: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ hidden: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ showZero: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ size: {
80
+ type: () => Size;
81
+ default: string;
82
+ };
83
+ position: {
84
+ type: () => Position;
85
+ default: string;
86
+ };
87
+ bgColor: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ textColor: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ borderColor: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ }>> & Readonly<{}>, {
100
+ hidden: boolean;
101
+ borderColor: string;
102
+ bgColor: string;
103
+ size: Size;
104
+ textColor: string;
105
+ position: Position;
106
+ dot: boolean;
107
+ max: number;
108
+ count: number;
109
+ showZero: boolean;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,231 @@
1
+ import { uiAttrs } from '../../core/ui';
2
+ type Variant = "primary" | "outline" | "ghost";
3
+ type Size = "sm" | "md" | "lg";
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ text: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ type: {
12
+ type: () => "button" | "submit" | "reset";
13
+ default: string;
14
+ };
15
+ variant: {
16
+ type: () => Variant;
17
+ default: string;
18
+ };
19
+ size: {
20
+ type: () => Size;
21
+ default: string;
22
+ };
23
+ loading: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ disabled: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ bgColor: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ textColor: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ borderColor: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ spinnerColor: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ p: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ r: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ shadow: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ hoverBgColor: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ hoverTextColor: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ hoverBorderColor: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ hover: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ overlay: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ icon: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ preIcon: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ iconOnly: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ }>, {
92
+ uiAttrs: typeof uiAttrs;
93
+ hoverState: import('vue').ComputedRef<{
94
+ bgColor: string;
95
+ hoverBgColor: string;
96
+ hoverTextColor: string;
97
+ hoverBorderColor: string;
98
+ hover: boolean;
99
+ }>;
100
+ isDisabled: import('vue').ComputedRef<boolean>;
101
+ variantClass: import('vue').ComputedRef<"btn-outline" | "btn-ghost" | "btn-primary">;
102
+ sizeClass: import('vue').ComputedRef<"btn-sm" | "btn-lg" | "btn-md">;
103
+ shadowClass: import('vue').ComputedRef<"" | "btn-shadow">;
104
+ iconOnlyClass: import('vue').ComputedRef<"" | "icon-only">;
105
+ buttonStyle: import('vue').ComputedRef<{
106
+ background: string;
107
+ color: string;
108
+ border: string;
109
+ padding: string | undefined;
110
+ borderRadius: string;
111
+ position: "relative";
112
+ overflow: "hidden";
113
+ }>;
114
+ overlayStyle: import('vue').ComputedRef<{
115
+ background: string;
116
+ position: "absolute";
117
+ inset: string;
118
+ display: string;
119
+ justifyContent: string;
120
+ alignItems: string;
121
+ zIndex: number;
122
+ }>;
123
+ handleClick: (e: Event) => void;
124
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
125
+ text: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ type: {
130
+ type: () => "button" | "submit" | "reset";
131
+ default: string;
132
+ };
133
+ variant: {
134
+ type: () => Variant;
135
+ default: string;
136
+ };
137
+ size: {
138
+ type: () => Size;
139
+ default: string;
140
+ };
141
+ loading: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ disabled: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ bgColor: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ textColor: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ borderColor: {
158
+ type: StringConstructor;
159
+ default: string;
160
+ };
161
+ spinnerColor: {
162
+ type: StringConstructor;
163
+ default: string;
164
+ };
165
+ p: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ r: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ shadow: {
174
+ type: BooleanConstructor;
175
+ default: boolean;
176
+ };
177
+ hoverBgColor: {
178
+ type: StringConstructor;
179
+ default: string;
180
+ };
181
+ hoverTextColor: {
182
+ type: StringConstructor;
183
+ default: string;
184
+ };
185
+ hoverBorderColor: {
186
+ type: StringConstructor;
187
+ default: string;
188
+ };
189
+ hover: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ overlay: {
194
+ type: StringConstructor;
195
+ default: string;
196
+ };
197
+ icon: {
198
+ type: StringConstructor;
199
+ default: string;
200
+ };
201
+ preIcon: {
202
+ type: StringConstructor;
203
+ default: string;
204
+ };
205
+ iconOnly: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ }>> & Readonly<{}>, {
210
+ r: string;
211
+ p: string;
212
+ borderColor: string;
213
+ shadow: boolean;
214
+ bgColor: string;
215
+ hoverBgColor: string;
216
+ hoverTextColor: string;
217
+ hoverBorderColor: string;
218
+ hover: boolean;
219
+ icon: string;
220
+ size: Size;
221
+ type: "button" | "submit" | "reset";
222
+ textColor: string;
223
+ text: string;
224
+ spinnerColor: string;
225
+ variant: Variant;
226
+ loading: boolean;
227
+ disabled: boolean;
228
+ overlay: string;
229
+ preIcon: string;
230
+ iconOnly: boolean;
231
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,41 @@
1
+ import { uiAttrs } from '../../core/ui';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ direction: {
6
+ type: () => "row" | "col";
7
+ default: string;
8
+ };
9
+ gap: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ r: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ }>, {
18
+ uiAttrs: typeof uiAttrs;
19
+ directionClass: import('vue').ComputedRef<"flex-col" | "flex-row">;
20
+ groupStyle: import('vue').ComputedRef<{
21
+ gap: string;
22
+ "--group-radius": string;
23
+ }>;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ direction: {
26
+ type: () => "row" | "col";
27
+ default: string;
28
+ };
29
+ gap: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ r: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ r: number;
39
+ gap: number;
40
+ direction: "col" | "row";
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;