groovinads-ui 1.2.75 → 1.9.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 +628 -236
- package/dist/index.es.js +2 -15
- package/dist/index.js +2 -15
- package/index.d.ts +364 -0
- package/package.json +87 -79
- package/.babelrc +0 -3
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -32
- package/.prettierignore +0 -9
- package/.prettierrc +0 -7
- package/.storybook/main.js +0 -19
- package/.storybook/preview-head.html +0 -6
- package/.storybook/preview.js +0 -13
- package/.yarn/releases/yarn-4.1.1.cjs +0 -893
- package/.yarnrc.yml +0 -3
- package/rollup.config.mjs +0 -42
- package/src/components/Button/Button.jsx +0 -78
- package/src/components/Button/index.js +0 -3
- package/src/components/Dropdowns/DropdownComponent.jsx +0 -135
- package/src/components/Dropdowns/DropdownFilter.jsx +0 -304
- package/src/components/Dropdowns/DropdownMultiSelect.jsx +0 -304
- package/src/components/Dropdowns/DropdownSimpleDatePicker.jsx +0 -175
- package/src/components/Dropdowns/DropdownsDatePicker/DropdownDatePicker.jsx +0 -313
- package/src/components/Dropdowns/DropdownsDatePicker/PeriodAndDetailDropdowns.tsx +0 -351
- package/src/components/Dropdowns/DropdownsDatePicker/index.js +0 -3
- package/src/components/Dropdowns/index.js +0 -7
- package/src/components/Inputs/Checkbox.jsx +0 -55
- package/src/components/Inputs/Input.jsx +0 -155
- package/src/components/Inputs/InputChip.jsx +0 -168
- package/src/components/Inputs/InputEmail.jsx +0 -175
- package/src/components/Inputs/Radio.jsx +0 -57
- package/src/components/Inputs/Switch.jsx +0 -70
- package/src/components/Inputs/Textarea.jsx +0 -68
- package/src/components/Inputs/index.js +0 -9
- package/src/components/Labels/Alert.jsx +0 -62
- package/src/components/Labels/Icon.jsx +0 -76
- package/src/components/Labels/LoginSource.jsx +0 -19
- package/src/components/Labels/PillComponent.jsx +0 -47
- package/src/components/Labels/Spinner.jsx +0 -35
- package/src/components/Labels/StatusIcon.jsx +0 -66
- package/src/components/Labels/index.js +0 -8
- package/src/components/Navigation/Dropdowns/DeckDropdown.jsx +0 -210
- package/src/components/Navigation/Dropdowns/DropdownClient.jsx +0 -171
- package/src/components/Navigation/Dropdowns/UserDropdown.jsx +0 -69
- package/src/components/Navigation/Dropdowns/index.js +0 -5
- package/src/components/Navigation/Navbar.jsx +0 -81
- package/src/components/Navigation/Sidebar.jsx +0 -201
- package/src/components/Navigation/Stepper.jsx +0 -22
- package/src/components/Navigation/Tabnav.jsx +0 -73
- package/src/components/Navigation/index.js +0 -6
- package/src/components/Toasts/Toast/ToastCardComponent.jsx +0 -47
- package/src/components/Toasts/ToastComponent.jsx +0 -45
- package/src/components/Toasts/ToastProgress.jsx +0 -118
- package/src/components/Toasts/index.js +0 -4
- package/src/components/index.js +0 -50
- package/src/hooks/index.js +0 -4
- package/src/hooks/useGetBaseDomain.jsx +0 -9
- package/src/hooks/useTextFormatter.jsx +0 -48
- package/src/index.js +0 -51
- package/src/services/components.services.js +0 -29
- package/src/services/helpers.js +0 -32
- package/src/services/index.jsx +0 -10
- package/src/services/url.path.js +0 -29
- package/src/stories/Alert.stories.jsx +0 -11
- package/src/stories/Button.stories.jsx +0 -20
- package/src/stories/Checkbox.stories.jsx +0 -17
- package/src/stories/DropdownComponent.stories.jsx +0 -89
- package/src/stories/DropdownDatePicker.stories.jsx +0 -69
- package/src/stories/DropdownFilter.stories.jsx +0 -60
- package/src/stories/DropdownMultiSelect.stories.jsx +0 -72
- package/src/stories/DropdownSimpleDatePicker.stories.jsx +0 -64
- package/src/stories/Icon.stories.jsx +0 -11
- package/src/stories/Input.stories.jsx +0 -20
- package/src/stories/InputChip.stories.jsx +0 -44
- package/src/stories/InputEmail.stories.jsx +0 -27
- package/src/stories/Layout.stories.jsx +0 -73
- package/src/stories/LoginSource.stories.jsx +0 -11
- package/src/stories/Navbar.stories.jsx +0 -24
- package/src/stories/PillComponent.stories.jsx +0 -22
- package/src/stories/Radio.stories.jsx +0 -18
- package/src/stories/Sidebar.stories.jsx +0 -169
- package/src/stories/Spinner.stories.jsx +0 -11
- package/src/stories/StatusIcon.stories.jsx +0 -11
- package/src/stories/Stepper.stories.jsx +0 -16
- package/src/stories/Switch.stories.jsx +0 -17
- package/src/stories/Tabnav.stories.jsx +0 -55
- package/src/stories/Textarea.stories.jsx +0 -20
- package/src/stories/ToastComponent.stories.jsx +0 -62
- package/src/stories/ToastProgress.stories.jsx +0 -11
- package/version.js +0 -8
package/index.d.ts
ADDED
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { ReactNode, MouseEventHandler, ChangeEventHandler, CSSProperties, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// BUTTON COMPONENTS
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
export interface ButtonProps {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
endIcon?: string;
|
|
12
|
+
hideLabelOnMobile?: boolean;
|
|
13
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
14
|
+
processing?: boolean;
|
|
15
|
+
size?: 'xs' | 'md' | 'lg';
|
|
16
|
+
startIcon?: string;
|
|
17
|
+
style?: 'default' | 'success' | 'danger' | 'warning' | 'link';
|
|
18
|
+
variant?: 'primary' | 'secondary' | 'terciary' | 'outline';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Button: React.FC<ButtonProps>;
|
|
22
|
+
|
|
23
|
+
// ============================================================================
|
|
24
|
+
// DROPDOWN COMPONENTS
|
|
25
|
+
// ============================================================================
|
|
26
|
+
|
|
27
|
+
export interface DropdownComponentProps {
|
|
28
|
+
align?: 'start' | 'end';
|
|
29
|
+
autoClose?: boolean | 'inside' | 'outside';
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
className?: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
drop?: 'up' | 'down' | 'start' | 'end';
|
|
34
|
+
fullWidth?: boolean;
|
|
35
|
+
onToggle?: (show: boolean) => void;
|
|
36
|
+
overflow?: boolean;
|
|
37
|
+
setShow?: Dispatch<SetStateAction<boolean>>;
|
|
38
|
+
show?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const DropdownComponent: React.FC<DropdownComponentProps>;
|
|
42
|
+
|
|
43
|
+
export interface DropdownFilterProps {
|
|
44
|
+
align?: 'start' | 'end';
|
|
45
|
+
autoClose?: boolean | 'inside' | 'outside';
|
|
46
|
+
className?: string;
|
|
47
|
+
data: Array<{ id: string | number; name: string; [key: string]: any }>;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
dropDirection?: 'up' | 'down' | 'start' | 'end';
|
|
50
|
+
fullWidth?: boolean;
|
|
51
|
+
iconName?: string;
|
|
52
|
+
label: string;
|
|
53
|
+
maxHeight?: string;
|
|
54
|
+
onFilter: (selectedItems: any[]) => void;
|
|
55
|
+
search?: boolean;
|
|
56
|
+
selectedItems?: Array<{ id: string | number; name: string; [key: string]: any }>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const DropdownFilter: React.FC<DropdownFilterProps>;
|
|
60
|
+
|
|
61
|
+
export interface DropdownMultiSelectProps {
|
|
62
|
+
align?: 'start' | 'end';
|
|
63
|
+
autoClose?: boolean | 'inside' | 'outside';
|
|
64
|
+
className?: string;
|
|
65
|
+
data: Array<{ id: string | number; name: string; [key: string]: any }>;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
dropDirection?: 'up' | 'down' | 'start' | 'end';
|
|
68
|
+
fullWidth?: boolean;
|
|
69
|
+
iconName?: string;
|
|
70
|
+
label: string;
|
|
71
|
+
maxHeight?: string;
|
|
72
|
+
onChange: (selectedItems: any[]) => void;
|
|
73
|
+
search?: boolean;
|
|
74
|
+
selectedItems?: Array<{ id: string | number; name: string; [key: string]: any }>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const DropdownMultiSelect: React.FC<DropdownMultiSelectProps>;
|
|
78
|
+
|
|
79
|
+
export interface DropdownDatePickerProps {
|
|
80
|
+
align?: 'start' | 'end';
|
|
81
|
+
className?: string;
|
|
82
|
+
defaultSelected?: string;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
dropDirection?: 'up' | 'down' | 'start' | 'end';
|
|
85
|
+
fullWidth?: boolean;
|
|
86
|
+
iconName?: string;
|
|
87
|
+
label?: string;
|
|
88
|
+
maxDate?: Date;
|
|
89
|
+
minDate?: Date;
|
|
90
|
+
onDateChange: (date: Date | null) => void;
|
|
91
|
+
selectedDate?: Date | null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const DropdownDatePicker: React.FC<DropdownDatePickerProps>;
|
|
95
|
+
|
|
96
|
+
export interface DropdownSimpleDatePickerProps {
|
|
97
|
+
align?: 'start' | 'end';
|
|
98
|
+
className?: string;
|
|
99
|
+
dateFormat?: string;
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
dropDirection?: 'up' | 'down' | 'start' | 'end';
|
|
102
|
+
endDate?: Date | null;
|
|
103
|
+
fullWidth?: boolean;
|
|
104
|
+
iconName?: string;
|
|
105
|
+
label?: string;
|
|
106
|
+
maxDate?: Date;
|
|
107
|
+
minDate?: Date;
|
|
108
|
+
onChange: (dates: [Date | null, Date | null]) => void;
|
|
109
|
+
selectsRange?: boolean;
|
|
110
|
+
startDate?: Date | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const DropdownSimpleDatePicker: React.FC<DropdownSimpleDatePickerProps>;
|
|
114
|
+
|
|
115
|
+
// ============================================================================
|
|
116
|
+
// INPUT COMPONENTS
|
|
117
|
+
// ============================================================================
|
|
118
|
+
|
|
119
|
+
export interface CheckboxProps {
|
|
120
|
+
checked?: boolean;
|
|
121
|
+
className?: string;
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
id?: string;
|
|
124
|
+
label?: string;
|
|
125
|
+
name?: string;
|
|
126
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
127
|
+
required?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const Checkbox: React.FC<CheckboxProps>;
|
|
131
|
+
|
|
132
|
+
export interface InputProps {
|
|
133
|
+
autoFocus?: boolean;
|
|
134
|
+
className?: string;
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
focus?: boolean;
|
|
137
|
+
helpText?: string;
|
|
138
|
+
icon?: string;
|
|
139
|
+
label?: string;
|
|
140
|
+
max?: string | number;
|
|
141
|
+
maxLength?: number;
|
|
142
|
+
min?: string | number;
|
|
143
|
+
name?: string;
|
|
144
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
145
|
+
prefix?: string;
|
|
146
|
+
requiredText?: string;
|
|
147
|
+
setShowError?: Dispatch<SetStateAction<boolean>>;
|
|
148
|
+
showError?: boolean;
|
|
149
|
+
size?: 'xs' | 'md' | 'lg';
|
|
150
|
+
suffix?: string;
|
|
151
|
+
type?: 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'image' | 'month' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
152
|
+
value?: string | number;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export const Input: React.FC<InputProps>;
|
|
156
|
+
|
|
157
|
+
export interface RadioProps {
|
|
158
|
+
checked?: boolean;
|
|
159
|
+
className?: string;
|
|
160
|
+
disabled?: boolean;
|
|
161
|
+
id?: string;
|
|
162
|
+
label?: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
165
|
+
required?: boolean;
|
|
166
|
+
value?: string | number;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export const Radio: React.FC<RadioProps>;
|
|
170
|
+
|
|
171
|
+
export interface SwitchProps {
|
|
172
|
+
checked?: boolean;
|
|
173
|
+
className?: string;
|
|
174
|
+
disabled?: boolean;
|
|
175
|
+
id?: string;
|
|
176
|
+
label?: string;
|
|
177
|
+
name?: string;
|
|
178
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export const Switch: React.FC<SwitchProps>;
|
|
182
|
+
|
|
183
|
+
export interface TextareaProps {
|
|
184
|
+
autoFocus?: boolean;
|
|
185
|
+
className?: string;
|
|
186
|
+
disabled?: boolean;
|
|
187
|
+
helpText?: string;
|
|
188
|
+
label?: string;
|
|
189
|
+
maxLength?: number;
|
|
190
|
+
name?: string;
|
|
191
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
192
|
+
placeholder?: string;
|
|
193
|
+
requiredText?: string;
|
|
194
|
+
rows?: number;
|
|
195
|
+
showError?: boolean;
|
|
196
|
+
size?: 'xs' | 'md' | 'lg';
|
|
197
|
+
value?: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export const Textarea: React.FC<TextareaProps>;
|
|
201
|
+
|
|
202
|
+
export interface InputEmailProps {
|
|
203
|
+
className?: string;
|
|
204
|
+
disabled?: boolean;
|
|
205
|
+
helpText?: string;
|
|
206
|
+
label?: string;
|
|
207
|
+
name?: string;
|
|
208
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
209
|
+
required?: boolean;
|
|
210
|
+
size?: 'xs' | 'md' | 'lg';
|
|
211
|
+
value?: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export const InputEmail: React.FC<InputEmailProps>;
|
|
215
|
+
|
|
216
|
+
export interface InputChipProps {
|
|
217
|
+
chips?: string[];
|
|
218
|
+
className?: string;
|
|
219
|
+
disabled?: boolean;
|
|
220
|
+
helpText?: string;
|
|
221
|
+
label?: string;
|
|
222
|
+
maxChips?: number;
|
|
223
|
+
name?: string;
|
|
224
|
+
onChipsChange?: (chips: string[]) => void;
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
size?: 'xs' | 'md' | 'lg';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export const InputChip: React.FC<InputChipProps>;
|
|
230
|
+
|
|
231
|
+
// ============================================================================
|
|
232
|
+
// LABEL COMPONENTS
|
|
233
|
+
// ============================================================================
|
|
234
|
+
|
|
235
|
+
export interface AlertProps {
|
|
236
|
+
children?: ReactNode;
|
|
237
|
+
className?: string;
|
|
238
|
+
dismissible?: boolean;
|
|
239
|
+
icon?: string;
|
|
240
|
+
onClose?: () => void;
|
|
241
|
+
show?: boolean;
|
|
242
|
+
style?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export const Alert: React.FC<AlertProps>;
|
|
246
|
+
|
|
247
|
+
export interface IconProps {
|
|
248
|
+
className?: string;
|
|
249
|
+
iconName: string;
|
|
250
|
+
scale?: number;
|
|
251
|
+
style?: 'solid' | 'regular' | 'light' | 'thin' | 'duotone' | 'brands';
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export const Icon: React.FC<IconProps>;
|
|
255
|
+
|
|
256
|
+
export interface LoginSourceProps {
|
|
257
|
+
className?: string;
|
|
258
|
+
source: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export const LoginSource: React.FC<LoginSourceProps>;
|
|
262
|
+
|
|
263
|
+
export interface PillComponentProps {
|
|
264
|
+
className?: string;
|
|
265
|
+
icon?: string;
|
|
266
|
+
label: string;
|
|
267
|
+
variant?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export const PillComponent: React.FC<PillComponentProps>;
|
|
271
|
+
|
|
272
|
+
export interface SpinnerProps {
|
|
273
|
+
className?: string;
|
|
274
|
+
scale?: number;
|
|
275
|
+
variant?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export const Spinner: React.FC<SpinnerProps>;
|
|
279
|
+
|
|
280
|
+
export interface StatusIconProps {
|
|
281
|
+
className?: string;
|
|
282
|
+
icon?: string;
|
|
283
|
+
label?: string;
|
|
284
|
+
status: 'success' | 'warning' | 'danger' | 'info' | 'disabled';
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export const StatusIcon: React.FC<StatusIconProps>;
|
|
288
|
+
|
|
289
|
+
// ============================================================================
|
|
290
|
+
// TOAST COMPONENTS
|
|
291
|
+
// ============================================================================
|
|
292
|
+
|
|
293
|
+
export interface ToastComponentProps {
|
|
294
|
+
autohide?: boolean;
|
|
295
|
+
className?: string;
|
|
296
|
+
delay?: number;
|
|
297
|
+
icon?: string;
|
|
298
|
+
message: string;
|
|
299
|
+
onClose?: () => void;
|
|
300
|
+
show?: boolean;
|
|
301
|
+
style?: 'success' | 'danger' | 'warning' | 'info';
|
|
302
|
+
title?: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export const ToastComponent: React.FC<ToastComponentProps>;
|
|
306
|
+
|
|
307
|
+
export interface ToastProgressProps {
|
|
308
|
+
autohide?: boolean;
|
|
309
|
+
className?: string;
|
|
310
|
+
delay?: number;
|
|
311
|
+
icon?: string;
|
|
312
|
+
message: string;
|
|
313
|
+
onClose?: () => void;
|
|
314
|
+
progress?: number;
|
|
315
|
+
show?: boolean;
|
|
316
|
+
style?: 'success' | 'danger' | 'warning' | 'info';
|
|
317
|
+
title?: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export const ToastProgress: React.FC<ToastProgressProps>;
|
|
321
|
+
|
|
322
|
+
// ============================================================================
|
|
323
|
+
// NAVIGATION COMPONENTS
|
|
324
|
+
// ============================================================================
|
|
325
|
+
|
|
326
|
+
export interface NavbarProps {
|
|
327
|
+
children?: ReactNode;
|
|
328
|
+
logoUrl?: string;
|
|
329
|
+
logoUrlMobile?: string;
|
|
330
|
+
setShow?: Dispatch<SetStateAction<boolean>>;
|
|
331
|
+
show?: boolean;
|
|
332
|
+
showDeckMenu?: boolean;
|
|
333
|
+
showUserMenu?: boolean;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export const Navbar: React.FC<NavbarProps>;
|
|
337
|
+
|
|
338
|
+
export interface StepperProps {
|
|
339
|
+
activeStep?: number;
|
|
340
|
+
className?: string;
|
|
341
|
+
steps: Array<{ label: string; [key: string]: any }>;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export const Stepper: React.FC<StepperProps>;
|
|
345
|
+
|
|
346
|
+
export interface TabnavProps {
|
|
347
|
+
activeTab?: string | number;
|
|
348
|
+
className?: string;
|
|
349
|
+
onTabChange?: (tabId: string | number) => void;
|
|
350
|
+
tabs: Array<{ id: string | number; label: string; content?: ReactNode; [key: string]: any }>;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export const Tabnav: React.FC<TabnavProps>;
|
|
354
|
+
|
|
355
|
+
export interface SidebarProps {
|
|
356
|
+
children?: ReactNode;
|
|
357
|
+
className?: string;
|
|
358
|
+
header?: ReactNode;
|
|
359
|
+
setShow?: Dispatch<SetStateAction<boolean>>;
|
|
360
|
+
show?: boolean;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export const Sidebar: React.FC<SidebarProps>;
|
|
364
|
+
|
package/package.json
CHANGED
|
@@ -1,81 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
2
|
+
"name": "groovinads-ui",
|
|
3
|
+
"description": "Groovinads UI is a React component library designed exclusively for Groovinads applications. It provides ready-to-use UI elements styled according to Groovinads design guidelines to facilitate rapid development.",
|
|
4
|
+
"version": "1.9.01",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"css",
|
|
8
|
+
"sass",
|
|
9
|
+
"groovinads",
|
|
10
|
+
"responsive",
|
|
11
|
+
"front-end",
|
|
12
|
+
"components"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://www.groovinads.com/",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.es.js",
|
|
17
|
+
"types": "index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"index.d.ts",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"style": "https://ui.groovinads.com/2.0.0/styles.min.css",
|
|
24
|
+
"repository": "git@bitbucket.org:groovinads/react-components.git",
|
|
25
|
+
"author": "Pablo Piñero <pablo.piniero@groovinads.com>",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "^7.24.3",
|
|
29
|
+
"@babel/preset-react": "^7.24.1",
|
|
30
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
31
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
32
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
33
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
34
|
+
"@storybook/addon-docs": "^10.0.8",
|
|
35
|
+
"@storybook/addon-links": "^10.0.8",
|
|
36
|
+
"@storybook/addon-onboarding": "^10.0.8",
|
|
37
|
+
"@storybook/react-vite": "^10.0.8",
|
|
38
|
+
"axios": "^1.7.2",
|
|
39
|
+
"babel-loader": "^9.1.3",
|
|
40
|
+
"eslint": "^8.0.1",
|
|
41
|
+
"eslint-config-prettier": "^8.6.0",
|
|
42
|
+
"eslint-config-standard": "^17.0.0",
|
|
43
|
+
"eslint-plugin-import": "^2.25.2",
|
|
44
|
+
"eslint-plugin-n": "^15.0.0",
|
|
45
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
46
|
+
"eslint-plugin-react": "^7.31.11",
|
|
47
|
+
"eslint-plugin-storybook": "10.0.8",
|
|
48
|
+
"js-cookie": "^3.0.5",
|
|
49
|
+
"prettier": "^3.2.5",
|
|
50
|
+
"prop-types": "^15.8.1",
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-bootstrap": "^2.10.4",
|
|
53
|
+
"react-dom": "^18.2.0",
|
|
54
|
+
"react-router-dom": "^6.24.0",
|
|
55
|
+
"react-tabulator": "^0.21.0",
|
|
56
|
+
"remark-gfm": "^4.0.1",
|
|
57
|
+
"rollup": "^4.14.0",
|
|
58
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
59
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
60
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
61
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
62
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
63
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
64
|
+
"sass": "^1.72.0",
|
|
65
|
+
"storybook": "^10.0.8",
|
|
66
|
+
"typescript": "^5.4.4",
|
|
67
|
+
"vite": "^5.2.2"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"axios": "^1.7.2",
|
|
71
|
+
"babel-loader": "^9.1.3",
|
|
72
|
+
"js-cookie": "^3.0.5",
|
|
73
|
+
"react": "^18.2.0",
|
|
74
|
+
"react-bootstrap": "^2.10.4",
|
|
75
|
+
"react-dom": "^18.2.0"
|
|
76
|
+
},
|
|
77
|
+
"packageManager": "yarn@4.1.1",
|
|
78
|
+
"scripts": {
|
|
79
|
+
"sb": "storybook dev -p 6006",
|
|
80
|
+
"build-storybook": "storybook build",
|
|
81
|
+
"build-lib": "rollup -c"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"date-fns": "^4.1.0",
|
|
85
|
+
"react-datepicker": "^7.3.0",
|
|
86
|
+
"react-loading-skeleton": "^3.5.0",
|
|
87
|
+
"react-responsive": "^10.0.0"
|
|
88
|
+
}
|
|
81
89
|
}
|
package/.babelrc
DELETED
package/.eslintignore
DELETED
package/.eslintrc.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
settings: {
|
|
7
|
-
react: {
|
|
8
|
-
version: "detect",
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
extends: [
|
|
12
|
-
"plugin:react/recommended",
|
|
13
|
-
"plugin:react/jsx-runtime",
|
|
14
|
-
"standard",
|
|
15
|
-
"eslint-config-prettier",
|
|
16
|
-
],
|
|
17
|
-
overrides: [],
|
|
18
|
-
parserOptions: {
|
|
19
|
-
ecmaVersion: "latest",
|
|
20
|
-
sourceType: "module",
|
|
21
|
-
},
|
|
22
|
-
plugins: ["react"],
|
|
23
|
-
rules: {
|
|
24
|
-
// values : warn - off - error
|
|
25
|
-
// "react/react-in-jsx-scope": "off"
|
|
26
|
-
"no-unused-vars": "warn",
|
|
27
|
-
"camelcase": "off",
|
|
28
|
-
"react/prop-types": "off",
|
|
29
|
-
"no-unneeded-ternary": "off",
|
|
30
|
-
"react/no-children-prop": "off"
|
|
31
|
-
},
|
|
32
|
-
};
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
package/.storybook/main.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @type { import('@storybook/react-vite').StorybookConfig } */
|
|
2
|
-
const config = {
|
|
3
|
-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
4
|
-
addons: [
|
|
5
|
-
"@storybook/addon-onboarding",
|
|
6
|
-
"@storybook/addon-links",
|
|
7
|
-
"@storybook/addon-essentials",
|
|
8
|
-
"@chromatic-com/storybook",
|
|
9
|
-
"@storybook/addon-interactions",
|
|
10
|
-
],
|
|
11
|
-
framework: {
|
|
12
|
-
name: "@storybook/react-vite",
|
|
13
|
-
options: {},
|
|
14
|
-
},
|
|
15
|
-
docs: {
|
|
16
|
-
autodocs: "tag",
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export default config;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<!-- Bootstrap styles -->
|
|
2
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" />
|
|
3
|
-
<!-- Groovinads UI styles -->
|
|
4
|
-
<link rel="stylesheet" href="http://ui.groovinads.com/styles.min.css">
|
|
5
|
-
<!-- Fontawesome kit -->
|
|
6
|
-
<script src="https://kit.fontawesome.com/79f14073fb.js" crossorigin="anonymous"></script>
|
package/.storybook/preview.js
DELETED