@rebnd/ui 0.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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/dist/index.d.ts +542 -0
  4. package/dist/src/App.vue.d.ts +2 -0
  5. package/dist/src/assets/constants/icons.d.ts +3 -0
  6. package/dist/src/components/RAccordion/RAccordion.d.ts +27 -0
  7. package/dist/src/components/RAccordion/utils/accordion.props.d.ts +14 -0
  8. package/dist/src/components/RAccordion/utils/accordion.style.d.ts +2 -0
  9. package/dist/src/components/RAvatar/RAvatar.d.ts +48 -0
  10. package/dist/src/components/RAvatar/utils/avatar.props.d.ts +24 -0
  11. package/dist/src/components/RAvatar/utils/avatar.style.d.ts +45 -0
  12. package/dist/src/components/RAvatarGroup/RAvatarGroup.d.ts +27 -0
  13. package/dist/src/components/RAvatarGroup/utils/avatar-group.props.d.ts +14 -0
  14. package/dist/src/components/RAvatarGroup/utils/avatar-group.style.d.ts +5 -0
  15. package/dist/src/components/RBadge/RBadge.d.ts +69 -0
  16. package/dist/src/components/RBadge/utils/badge.props.d.ts +33 -0
  17. package/dist/src/components/RBadge/utils/badge.style.d.ts +117 -0
  18. package/dist/src/components/RBreadcrumb/RBreadcrumb.d.ts +26 -0
  19. package/dist/src/components/RBreadcrumb/utils/breadcrumb.props.d.ts +13 -0
  20. package/dist/src/components/RBreadcrumb/utils/breadcrumb.style.d.ts +2 -0
  21. package/dist/src/components/RButton/RButton.d.ts +51 -0
  22. package/dist/src/components/RButton/utils/button.props.d.ts +25 -0
  23. package/dist/src/components/RButton/utils/button.style.d.ts +102 -0
  24. package/dist/src/components/RCard/RCard.d.ts +16 -0
  25. package/dist/src/components/RCard/utils/card.props.d.ts +8 -0
  26. package/dist/src/components/RCard/utils/card.style.d.ts +2 -0
  27. package/dist/src/components/RCombobox/RCombobox.d.ts +37 -0
  28. package/dist/src/components/RCombobox/utils/combobox.props.d.ts +15 -0
  29. package/dist/src/components/RCombobox/utils/combobox.style.d.ts +1 -0
  30. package/dist/src/components/RDropdown/RDropdown.d.ts +43 -0
  31. package/dist/src/components/RDropdown/utils/dropdown.props.d.ts +21 -0
  32. package/dist/src/components/RDropdown/utils/dropdown.style.d.ts +2 -0
  33. package/dist/src/components/RForm/RForm.d.ts +24 -0
  34. package/dist/src/components/RForm/utils/form.props.d.ts +13 -0
  35. package/dist/src/components/RForm/utils/form.style.d.ts +2 -0
  36. package/dist/src/components/RFormGroup/RFormGroup.d.ts +16 -0
  37. package/dist/src/components/RFormGroup/utils/form-group.props.d.ts +7 -0
  38. package/dist/src/components/RFormGroup/utils/form-group.style.d.ts +2 -0
  39. package/dist/src/components/RIcon/RIcon.d.ts +42 -0
  40. package/dist/src/components/RIcon/utils/icon.props.d.ts +21 -0
  41. package/dist/src/components/RIcon/utils/icon.style.d.ts +2 -0
  42. package/dist/src/components/RInput/RInput.d.ts +27 -0
  43. package/dist/src/components/RInput/utils/input.props.d.ts +11 -0
  44. package/dist/src/components/RInput/utils/input.style.d.ts +2 -0
  45. package/dist/src/components/RLink/RLink.d.ts +16 -0
  46. package/dist/src/components/RLink/utils/link.props.d.ts +9 -0
  47. package/dist/src/components/RLink/utils/link.style.d.ts +2 -0
  48. package/dist/src/components/RTab/RTab.d.ts +24 -0
  49. package/dist/src/components/RTab/utils/tab.props.d.ts +11 -0
  50. package/dist/src/components/RTab/utils/tab.style.d.ts +2 -0
  51. package/dist/src/components/RTabs/RTabs.d.ts +40 -0
  52. package/dist/src/components/RTabs/utils/tabs.props.d.ts +19 -0
  53. package/dist/src/components/RTabs/utils/tabs.style.d.ts +37 -0
  54. package/dist/src/components/RTextArea/RTextArea.d.ts +25 -0
  55. package/dist/src/components/RTextArea/utils/text-area.props.d.ts +11 -0
  56. package/dist/src/components/RTextArea/utils/text-area.style.d.ts +2 -0
  57. package/dist/src/main.d.ts +0 -0
  58. package/dist/src/theme/animations.d.ts +6 -0
  59. package/dist/src/theme/colors.d.ts +248 -0
  60. package/dist/src/theme/global-css.d.ts +2 -0
  61. package/dist/src/theme/index.d.ts +5 -0
  62. package/dist/src/theme/keyframes.d.ts +2 -0
  63. package/dist/src/theme/semantic-tokens.d.ts +133 -0
  64. package/dist/src/theme/shadows.d.ts +59 -0
  65. package/dist/src/theme/tokens.d.ts +313 -0
  66. package/dist/src/types/component.d.ts +26 -0
  67. package/dist/src/types/form.d.ts +8 -0
  68. package/dist/src/types/index.d.ts +3 -0
  69. package/dist/src/utils/components.d.ts +4 -0
  70. package/dist/src/utils/errorHandler.d.ts +4 -0
  71. package/dist/src/utils/object.d.ts +2 -0
  72. package/dist/src/utils/regex.d.ts +5 -0
  73. package/dist/src/utils/string.d.ts +4 -0
  74. package/dist/src/utils/test.d.ts +2 -0
  75. package/dist/styles.css +1886 -0
  76. package/dist/ui.js +2577 -0
  77. package/dist/ui.umd.cjs +3 -0
  78. package/package.json +69 -0
@@ -0,0 +1,313 @@
1
+ declare const _default: {
2
+ animations: {
3
+ shake: {
4
+ value: string;
5
+ };
6
+ };
7
+ colors: {
8
+ blue: {
9
+ 50: {
10
+ value: string;
11
+ };
12
+ 100: {
13
+ value: string;
14
+ };
15
+ 200: {
16
+ value: string;
17
+ };
18
+ 300: {
19
+ value: string;
20
+ };
21
+ 400: {
22
+ value: string;
23
+ };
24
+ 500: {
25
+ value: string;
26
+ };
27
+ 600: {
28
+ value: string;
29
+ };
30
+ 700: {
31
+ value: string;
32
+ };
33
+ 800: {
34
+ value: string;
35
+ };
36
+ 900: {
37
+ value: string;
38
+ };
39
+ 950: {
40
+ value: string;
41
+ };
42
+ };
43
+ dash: {
44
+ 50: {
45
+ value: string;
46
+ };
47
+ 100: {
48
+ value: string;
49
+ };
50
+ 200: {
51
+ value: string;
52
+ };
53
+ 300: {
54
+ value: string;
55
+ };
56
+ 400: {
57
+ value: string;
58
+ };
59
+ 500: {
60
+ value: string;
61
+ };
62
+ 600: {
63
+ value: string;
64
+ };
65
+ 700: {
66
+ value: string;
67
+ };
68
+ 800: {
69
+ value: string;
70
+ };
71
+ 900: {
72
+ value: string;
73
+ };
74
+ 950: {
75
+ value: string;
76
+ };
77
+ };
78
+ gray: {
79
+ 50: {
80
+ value: string;
81
+ };
82
+ 100: {
83
+ value: string;
84
+ };
85
+ 200: {
86
+ value: string;
87
+ };
88
+ 300: {
89
+ value: string;
90
+ };
91
+ 400: {
92
+ value: string;
93
+ };
94
+ 500: {
95
+ value: string;
96
+ };
97
+ 600: {
98
+ value: string;
99
+ };
100
+ 700: {
101
+ value: string;
102
+ };
103
+ 800: {
104
+ value: string;
105
+ };
106
+ 900: {
107
+ value: string;
108
+ };
109
+ 950: {
110
+ value: string;
111
+ };
112
+ };
113
+ green: {
114
+ 50: {
115
+ value: string;
116
+ };
117
+ 100: {
118
+ value: string;
119
+ };
120
+ 200: {
121
+ value: string;
122
+ };
123
+ 300: {
124
+ value: string;
125
+ };
126
+ 400: {
127
+ value: string;
128
+ };
129
+ 500: {
130
+ value: string;
131
+ };
132
+ 600: {
133
+ value: string;
134
+ };
135
+ 700: {
136
+ value: string;
137
+ };
138
+ 800: {
139
+ value: string;
140
+ };
141
+ 900: {
142
+ value: string;
143
+ };
144
+ 950: {
145
+ value: string;
146
+ };
147
+ };
148
+ neutrals: {
149
+ 50: {
150
+ value: string;
151
+ };
152
+ 100: {
153
+ value: string;
154
+ };
155
+ 200: {
156
+ value: string;
157
+ };
158
+ 300: {
159
+ value: string;
160
+ };
161
+ 400: {
162
+ value: string;
163
+ };
164
+ 500: {
165
+ value: string;
166
+ };
167
+ 600: {
168
+ value: string;
169
+ };
170
+ 700: {
171
+ value: string;
172
+ };
173
+ 800: {
174
+ value: string;
175
+ };
176
+ 900: {
177
+ value: string;
178
+ };
179
+ 950: {
180
+ value: string;
181
+ };
182
+ };
183
+ red: {
184
+ 50: {
185
+ value: string;
186
+ };
187
+ 100: {
188
+ value: string;
189
+ };
190
+ 200: {
191
+ value: string;
192
+ };
193
+ 300: {
194
+ value: string;
195
+ };
196
+ 400: {
197
+ value: string;
198
+ };
199
+ 500: {
200
+ value: string;
201
+ };
202
+ 600: {
203
+ value: string;
204
+ };
205
+ 700: {
206
+ value: string;
207
+ };
208
+ 800: {
209
+ value: string;
210
+ };
211
+ 900: {
212
+ value: string;
213
+ };
214
+ 950: {
215
+ value: string;
216
+ };
217
+ };
218
+ yellow: {
219
+ 50: {
220
+ value: string;
221
+ };
222
+ 100: {
223
+ value: string;
224
+ };
225
+ 200: {
226
+ value: string;
227
+ };
228
+ 300: {
229
+ value: string;
230
+ };
231
+ 400: {
232
+ value: string;
233
+ };
234
+ 500: {
235
+ value: string;
236
+ };
237
+ 600: {
238
+ value: string;
239
+ };
240
+ 700: {
241
+ value: string;
242
+ };
243
+ 800: {
244
+ value: string;
245
+ };
246
+ 900: {
247
+ value: string;
248
+ };
249
+ 950: {
250
+ value: string;
251
+ };
252
+ };
253
+ };
254
+ shadows: {
255
+ inset: {
256
+ base: {
257
+ value: string;
258
+ };
259
+ dark: {
260
+ value: string;
261
+ };
262
+ };
263
+ elevation1: {
264
+ base: {
265
+ value: string[];
266
+ };
267
+ dark: {
268
+ value: string[];
269
+ };
270
+ };
271
+ elevation2: {
272
+ base: {
273
+ value: string[];
274
+ };
275
+ dark: {
276
+ value: string[];
277
+ };
278
+ };
279
+ elevation3: {
280
+ base: {
281
+ value: string[];
282
+ };
283
+ dark: {
284
+ value: string[];
285
+ };
286
+ };
287
+ elevation4: {
288
+ base: {
289
+ value: string[];
290
+ };
291
+ dark: {
292
+ value: string[];
293
+ };
294
+ };
295
+ elevation5: {
296
+ base: {
297
+ value: string[];
298
+ };
299
+ dark: {
300
+ value: string[];
301
+ };
302
+ };
303
+ elevation6: {
304
+ base: {
305
+ value: string[];
306
+ };
307
+ dark: {
308
+ value: string[];
309
+ };
310
+ };
311
+ };
312
+ };
313
+ export default _default;
@@ -0,0 +1,26 @@
1
+ type AccordionDisclosure = {
2
+ id: string;
3
+ title: string;
4
+ icon?: string;
5
+ defaultOpen?: boolean;
6
+ content: string;
7
+ };
8
+ type Alignment = 'start' | 'end' | 'center';
9
+ type AnchorPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
10
+ type ButtonType = 'button' | 'reset' | 'submit';
11
+ type Color = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
12
+ type ComponentName = 'RebndAccordion' | 'RebndAvatar' | 'RebndAvatarGroup' | 'RebndBadge' | 'RebndBreadcrumb' | 'RebndButton' | 'RebndCard' | 'RebndCombobox' | 'RebndDropdown' | 'RebndForm' | 'RebndFormGroup' | 'RebndIcon' | 'RebndTabs';
13
+ type DropdownAction = (fn: () => void) => void;
14
+ type Icon = {
15
+ id: IconName;
16
+ template: string;
17
+ };
18
+ type IconName = 'arrow' | 'bar' | 'chevron-up-down' | 'dash' | 'dot' | 'external' | 'horizontal-dots' | 'not-found' | 'search' | 'slash' | 'underscore';
19
+ type LinkRel = 'author' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'noopener noreferrer' | 'nofollow noopener noreferrer';
20
+ type LinkTarget = '_self' | '_blank' | '_parent' | '_top';
21
+ type LinkType = 'a' | 'RouterLink' | 'NuxtLink';
22
+ type Position = 'top' | 'bottom' | 'left' | 'right';
23
+ type Rounded = 'none' | Size | 'full';
24
+ type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
25
+ type Variant = 'solid' | 'ghost' | 'outlined';
26
+ export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant, };
@@ -0,0 +1,8 @@
1
+ interface FormError<T extends string = string> {
2
+ path: T;
3
+ message: string;
4
+ }
5
+ type FormSubmitEvent<T> = SubmitEvent & {
6
+ state: T;
7
+ };
8
+ export type { FormError, FormSubmitEvent };
@@ -0,0 +1,3 @@
1
+ import { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant } from './component';
2
+ import { FormError, FormSubmitEvent } from './form';
3
+ export type { AccordionDisclosure, Alignment, AnchorPosition, ButtonType, Color, ComponentName, DropdownAction, FormError, FormSubmitEvent, Icon, IconName, LinkRel, LinkTarget, LinkType, Position, Rounded, Size, Variant, };
@@ -0,0 +1,4 @@
1
+ import { VNode } from 'vue';
2
+ declare function extractChildNodes(slot: VNode[]): VNode[];
3
+ declare function extractText(node: VNode): string;
4
+ export { extractChildNodes, extractText };
@@ -0,0 +1,4 @@
1
+ import { ComponentName } from '../types';
2
+ export declare class SlotError extends Error {
3
+ constructor(componentName: ComponentName);
4
+ }
@@ -0,0 +1,2 @@
1
+ declare function deepFreeze<T>(obj: T): T;
2
+ export { deepFreeze };
@@ -0,0 +1,5 @@
1
+ declare const authorizedColor: RegExp;
2
+ declare const authorizedSize: RegExp;
3
+ declare const authorizedVariant: RegExp;
4
+ declare const urlOrPathRegex: RegExp;
5
+ export { authorizedColor, authorizedSize, authorizedVariant, urlOrPathRegex };
@@ -0,0 +1,4 @@
1
+ declare function fuzzyMatch(text: string, query: string): boolean;
2
+ declare function getInitials(name: string): string;
3
+ declare function kebabify(str: string): string;
4
+ export { fuzzyMatch, getInitials, kebabify };
@@ -0,0 +1,2 @@
1
+ import { DOMWrapper } from '@vue/test-utils';
2
+ export declare function expectClasses(element: DOMWrapper<Element>, classes: string[]): void;