ics-ui-kit 0.1.0-alpha.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 (79) hide show
  1. package/dist/components/badge/Badge.d.ts +126 -0
  2. package/dist/components/badge/Badge.stories.d.ts +10 -0
  3. package/dist/components/button/Button.d.ts +227 -0
  4. package/dist/components/button/Button.stories.d.ts +16 -0
  5. package/dist/components/icon/Icon.d.ts +45 -0
  6. package/dist/components/icon/Icon.stories.d.ts +36 -0
  7. package/dist/components/input/input/Input.d.ts +8 -0
  8. package/dist/components/input/input/Input.stories.d.ts +29 -0
  9. package/dist/components/input/input/context/InputContext.d.ts +14 -0
  10. package/dist/components/input/secret-input/SecretInput.d.ts +3 -0
  11. package/dist/components/input/secret-input/SecretInput.stories.d.ts +29 -0
  12. package/dist/components/input/secret-input/components/ShowValueToggler.d.ts +4 -0
  13. package/dist/components/input/text-input/TextInput.d.ts +3 -0
  14. package/dist/components/input/text-input/TextInput.stories.d.ts +29 -0
  15. package/dist/components/input/text-input/components/CopyButton.d.ts +4 -0
  16. package/dist/components/label/Label.d.ts +4 -0
  17. package/dist/components/label/Label.stories.d.ts +15 -0
  18. package/dist/components/scheduler/Scheduler.d.ts +73 -0
  19. package/dist/components/scheduler/Scheduler.stories.d.ts +14 -0
  20. package/dist/components/scheduler/components/day/Day.d.ts +65 -0
  21. package/dist/components/scheduler/components/day/Day.stories.d.ts +6 -0
  22. package/dist/components/scheduler/components/day-column/DayColumn.d.ts +6 -0
  23. package/dist/components/scheduler/components/day-column/DayColumn.stories.d.ts +23 -0
  24. package/dist/components/scheduler/components/day-columns/DayColumns.d.ts +5 -0
  25. package/dist/components/scheduler/components/day-columns/DayColumns.stories.d.ts +22 -0
  26. package/dist/components/scheduler/components/hour-rows/HourRows.d.ts +1 -0
  27. package/dist/components/scheduler/components/hour-rows/HourRows.stories.d.ts +12 -0
  28. package/dist/components/scheduler/components/scheduled-event/ScheduledEvent.d.ts +9 -0
  29. package/dist/components/scheduler/components/scheduled-event/ScheduledEvent.stories.d.ts +7 -0
  30. package/dist/components/scheduler/components/scheduled-event/ScheduledEventResizeHandler.d.ts +2 -0
  31. package/dist/components/scheduler/components/time-ruler/CurrentTimeMarker.d.ts +5 -0
  32. package/dist/components/scheduler/components/time-ruler/TimeRuler.d.ts +5 -0
  33. package/dist/components/scheduler/components/time-ruler/TimeRuler.stories.d.ts +7 -0
  34. package/dist/components/scheduler/components/week-days/WeekDays.d.ts +1 -0
  35. package/dist/components/scheduler/components/week-days/WeekDays.stories.d.ts +15 -0
  36. package/dist/components/scheduler/context/SchedulerContext.d.ts +32 -0
  37. package/dist/components/scheduler/index.d.ts +1 -0
  38. package/dist/components/scheduler/story-utils/SchedulerContextDecorator.d.ts +1 -0
  39. package/dist/components/scheduler/story-utils/SchedulerStoriesData.d.ts +2 -0
  40. package/dist/components/scheduler/types.d.ts +7 -0
  41. package/dist/components/scheduler/utils/SchedulerUtils.d.ts +34 -0
  42. package/dist/components/scheduler.d.ts +2 -0
  43. package/dist/components/scheduler.js +8025 -0
  44. package/dist/components/scheduler.js.map +1 -0
  45. package/dist/components/separator/separator.d.ts +44 -0
  46. package/dist/components/separator/separator.stories.d.ts +6 -0
  47. package/dist/components/toast/Toast.d.ts +406 -0
  48. package/dist/components/toast/Toast.stories.d.ts +450 -0
  49. package/dist/components/toast/components/large-toast/LargeToast.d.ts +2 -0
  50. package/dist/components/toast/components/medium-toast/MediumToast.d.ts +2 -0
  51. package/dist/components/toast/components/small-toast/SmallToast.d.ts +2 -0
  52. package/dist/components/toast/components/toast-action/ToastAction.d.ts +2 -0
  53. package/dist/components/toast/components/toast-action/ToastAction.stories.d.ts +42 -0
  54. package/dist/components/toast/components/toast-close-action/ToastCloseButton.d.ts +4 -0
  55. package/dist/components/toast/components/toast-close-action/ToastCloseButton.stories.d.ts +41 -0
  56. package/dist/components/toast/components/toast-container/ToastContainer.d.ts +4 -0
  57. package/dist/components/toast/components/toast-icon/ToastIcon.d.ts +5 -0
  58. package/dist/components/toast/components/toast-icon/ToastIcon.stories.d.ts +41 -0
  59. package/dist/components/toast/context/ToastContext.d.ts +9 -0
  60. package/dist/components/toast/hooks/useToast.d.ts +6 -0
  61. package/dist/components/toast/hooks/useToastContainer.d.ts +9 -0
  62. package/dist/components/toast/hooks/useToastContext.d.ts +12 -0
  63. package/dist/components/toast/utils/ToastUtils.d.ts +5 -0
  64. package/dist/components/ui/tooltip.d.ts +7 -0
  65. package/dist/index-DBNvHuQo.js +266 -0
  66. package/dist/index-DBNvHuQo.js.map +1 -0
  67. package/dist/index.d.ts +4 -0
  68. package/dist/index.js +533 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/lib/utils/date/date.d.ts +1 -0
  71. package/dist/lib/utils/date/getFirstDayOfWeek.d.ts +7 -0
  72. package/dist/lib/utils/date/getFirstDayOfWeek.test.d.ts +1 -0
  73. package/dist/lib/utils/date/roundDateTime.d.ts +10 -0
  74. package/dist/lib/utils/date/roundDateTime.test.d.ts +1 -0
  75. package/dist/lib/utils/storybook.d.ts +2 -0
  76. package/dist/lib/utils.d.ts +2 -0
  77. package/dist/styles.css +1598 -0
  78. package/dist/types/css.d.ts +4 -0
  79. package/package.json +96 -0
@@ -0,0 +1,44 @@
1
+ import { FC } from 'react';
2
+ import { VariantProps, TVReturnType } from 'tailwind-variants';
3
+ import { TVConfig } from 'tailwind-variants/dist/config.js';
4
+ declare const separatorVariants: TVReturnType<{
5
+ orientation: {
6
+ horizontal: string;
7
+ vertical: string;
8
+ };
9
+ }, undefined, undefined, TVConfig<{
10
+ orientation: {
11
+ horizontal: string;
12
+ vertical: string;
13
+ };
14
+ }, {
15
+ orientation: {
16
+ horizontal: string;
17
+ vertical: string;
18
+ };
19
+ }>, {
20
+ orientation: {
21
+ horizontal: string;
22
+ vertical: string;
23
+ };
24
+ }, undefined, TVReturnType<{
25
+ orientation: {
26
+ horizontal: string;
27
+ vertical: string;
28
+ };
29
+ }, undefined, undefined, TVConfig<{
30
+ orientation: {
31
+ horizontal: string;
32
+ vertical: string;
33
+ };
34
+ }, {
35
+ orientation: {
36
+ horizontal: string;
37
+ vertical: string;
38
+ };
39
+ }>, unknown, unknown, undefined>>;
40
+ export type SeparatorProps = Required<VariantProps<typeof separatorVariants>> & {
41
+ className?: string;
42
+ };
43
+ export declare const Separator: FC<SeparatorProps>;
44
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Separator } from './separator';
3
+ declare const meta: Meta<typeof Separator>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Separator>;
6
+ export declare const Base: Story;
@@ -0,0 +1,406 @@
1
+ import { VariantProps, TVReturnType } from 'tailwind-variants';
2
+ import { ToastAction } from './components/toast-action/ToastAction';
3
+ import { TVConfig } from 'tailwind-variants/dist/config.js';
4
+ declare const toastStyles: TVReturnType<{
5
+ status: {
6
+ default: {
7
+ wrapper: string;
8
+ };
9
+ success: {
10
+ wrapper: string;
11
+ };
12
+ info: {
13
+ wrapper: string;
14
+ };
15
+ warning: {
16
+ wrapper: string;
17
+ };
18
+ error: {
19
+ wrapper: string;
20
+ };
21
+ };
22
+ focus: {
23
+ low: {
24
+ wrapper: string;
25
+ };
26
+ medium: {
27
+ wrapper: string;
28
+ };
29
+ high: {
30
+ titleText: string;
31
+ descriptionText: string;
32
+ separator: string;
33
+ };
34
+ };
35
+ size: {
36
+ sm: {
37
+ wrapper: string;
38
+ titleText: string;
39
+ contentWrapper: string;
40
+ };
41
+ md: {
42
+ wrapper: string;
43
+ contentWrapper: string;
44
+ };
45
+ lg: {
46
+ wrapper: string;
47
+ contentWrapper: string;
48
+ content: string;
49
+ actions: string;
50
+ close: string;
51
+ titleText: string;
52
+ };
53
+ };
54
+ }, {
55
+ wrapper: string;
56
+ text: string;
57
+ titleText: string;
58
+ descriptionText: string;
59
+ contentWrapper: string;
60
+ content: string;
61
+ actions: string;
62
+ close: string;
63
+ separator: string;
64
+ }, undefined, TVConfig<{
65
+ status: {
66
+ default: {
67
+ wrapper: string;
68
+ };
69
+ success: {
70
+ wrapper: string;
71
+ };
72
+ info: {
73
+ wrapper: string;
74
+ };
75
+ warning: {
76
+ wrapper: string;
77
+ };
78
+ error: {
79
+ wrapper: string;
80
+ };
81
+ };
82
+ focus: {
83
+ low: {
84
+ wrapper: string;
85
+ };
86
+ medium: {
87
+ wrapper: string;
88
+ };
89
+ high: {
90
+ titleText: string;
91
+ descriptionText: string;
92
+ separator: string;
93
+ };
94
+ };
95
+ size: {
96
+ sm: {
97
+ wrapper: string;
98
+ titleText: string;
99
+ contentWrapper: string;
100
+ };
101
+ md: {
102
+ wrapper: string;
103
+ contentWrapper: string;
104
+ };
105
+ lg: {
106
+ wrapper: string;
107
+ contentWrapper: string;
108
+ content: string;
109
+ actions: string;
110
+ close: string;
111
+ titleText: string;
112
+ };
113
+ };
114
+ }, {
115
+ status: {
116
+ default: {
117
+ wrapper: string;
118
+ };
119
+ success: {
120
+ wrapper: string;
121
+ };
122
+ info: {
123
+ wrapper: string;
124
+ };
125
+ warning: {
126
+ wrapper: string;
127
+ };
128
+ error: {
129
+ wrapper: string;
130
+ };
131
+ };
132
+ focus: {
133
+ low: {
134
+ wrapper: string;
135
+ };
136
+ medium: {
137
+ wrapper: string;
138
+ };
139
+ high: {
140
+ titleText: string;
141
+ descriptionText: string;
142
+ separator: string;
143
+ };
144
+ };
145
+ size: {
146
+ sm: {
147
+ wrapper: string;
148
+ titleText: string;
149
+ contentWrapper: string;
150
+ };
151
+ md: {
152
+ wrapper: string;
153
+ contentWrapper: string;
154
+ };
155
+ lg: {
156
+ wrapper: string;
157
+ contentWrapper: string;
158
+ content: string;
159
+ actions: string;
160
+ close: string;
161
+ titleText: string;
162
+ };
163
+ };
164
+ }>, {
165
+ status: {
166
+ default: {
167
+ wrapper: string;
168
+ };
169
+ success: {
170
+ wrapper: string;
171
+ };
172
+ info: {
173
+ wrapper: string;
174
+ };
175
+ warning: {
176
+ wrapper: string;
177
+ };
178
+ error: {
179
+ wrapper: string;
180
+ };
181
+ };
182
+ focus: {
183
+ low: {
184
+ wrapper: string;
185
+ };
186
+ medium: {
187
+ wrapper: string;
188
+ };
189
+ high: {
190
+ titleText: string;
191
+ descriptionText: string;
192
+ separator: string;
193
+ };
194
+ };
195
+ size: {
196
+ sm: {
197
+ wrapper: string;
198
+ titleText: string;
199
+ contentWrapper: string;
200
+ };
201
+ md: {
202
+ wrapper: string;
203
+ contentWrapper: string;
204
+ };
205
+ lg: {
206
+ wrapper: string;
207
+ contentWrapper: string;
208
+ content: string;
209
+ actions: string;
210
+ close: string;
211
+ titleText: string;
212
+ };
213
+ };
214
+ }, {
215
+ wrapper: string;
216
+ text: string;
217
+ titleText: string;
218
+ descriptionText: string;
219
+ contentWrapper: string;
220
+ content: string;
221
+ actions: string;
222
+ close: string;
223
+ separator: string;
224
+ }, TVReturnType<{
225
+ status: {
226
+ default: {
227
+ wrapper: string;
228
+ };
229
+ success: {
230
+ wrapper: string;
231
+ };
232
+ info: {
233
+ wrapper: string;
234
+ };
235
+ warning: {
236
+ wrapper: string;
237
+ };
238
+ error: {
239
+ wrapper: string;
240
+ };
241
+ };
242
+ focus: {
243
+ low: {
244
+ wrapper: string;
245
+ };
246
+ medium: {
247
+ wrapper: string;
248
+ };
249
+ high: {
250
+ titleText: string;
251
+ descriptionText: string;
252
+ separator: string;
253
+ };
254
+ };
255
+ size: {
256
+ sm: {
257
+ wrapper: string;
258
+ titleText: string;
259
+ contentWrapper: string;
260
+ };
261
+ md: {
262
+ wrapper: string;
263
+ contentWrapper: string;
264
+ };
265
+ lg: {
266
+ wrapper: string;
267
+ contentWrapper: string;
268
+ content: string;
269
+ actions: string;
270
+ close: string;
271
+ titleText: string;
272
+ };
273
+ };
274
+ }, {
275
+ wrapper: string;
276
+ text: string;
277
+ titleText: string;
278
+ descriptionText: string;
279
+ contentWrapper: string;
280
+ content: string;
281
+ actions: string;
282
+ close: string;
283
+ separator: string;
284
+ }, undefined, TVConfig<{
285
+ status: {
286
+ default: {
287
+ wrapper: string;
288
+ };
289
+ success: {
290
+ wrapper: string;
291
+ };
292
+ info: {
293
+ wrapper: string;
294
+ };
295
+ warning: {
296
+ wrapper: string;
297
+ };
298
+ error: {
299
+ wrapper: string;
300
+ };
301
+ };
302
+ focus: {
303
+ low: {
304
+ wrapper: string;
305
+ };
306
+ medium: {
307
+ wrapper: string;
308
+ };
309
+ high: {
310
+ titleText: string;
311
+ descriptionText: string;
312
+ separator: string;
313
+ };
314
+ };
315
+ size: {
316
+ sm: {
317
+ wrapper: string;
318
+ titleText: string;
319
+ contentWrapper: string;
320
+ };
321
+ md: {
322
+ wrapper: string;
323
+ contentWrapper: string;
324
+ };
325
+ lg: {
326
+ wrapper: string;
327
+ contentWrapper: string;
328
+ content: string;
329
+ actions: string;
330
+ close: string;
331
+ titleText: string;
332
+ };
333
+ };
334
+ }, {
335
+ status: {
336
+ default: {
337
+ wrapper: string;
338
+ };
339
+ success: {
340
+ wrapper: string;
341
+ };
342
+ info: {
343
+ wrapper: string;
344
+ };
345
+ warning: {
346
+ wrapper: string;
347
+ };
348
+ error: {
349
+ wrapper: string;
350
+ };
351
+ };
352
+ focus: {
353
+ low: {
354
+ wrapper: string;
355
+ };
356
+ medium: {
357
+ wrapper: string;
358
+ };
359
+ high: {
360
+ titleText: string;
361
+ descriptionText: string;
362
+ separator: string;
363
+ };
364
+ };
365
+ size: {
366
+ sm: {
367
+ wrapper: string;
368
+ titleText: string;
369
+ contentWrapper: string;
370
+ };
371
+ md: {
372
+ wrapper: string;
373
+ contentWrapper: string;
374
+ };
375
+ lg: {
376
+ wrapper: string;
377
+ contentWrapper: string;
378
+ content: string;
379
+ actions: string;
380
+ close: string;
381
+ titleText: string;
382
+ };
383
+ };
384
+ }>, unknown, unknown, undefined>>;
385
+ export type ToastProps = Required<VariantProps<typeof toastStyles>> & {
386
+ title: string;
387
+ description?: string;
388
+ icon?: React.ReactNode | false;
389
+ primaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;
390
+ secondaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;
391
+ closeAction?: boolean;
392
+ onClose?: () => void;
393
+ };
394
+ export type ToastSize = "sm" | "md" | "lg";
395
+ export declare const Toast: React.FC<ToastProps & {
396
+ id?: number;
397
+ }>;
398
+ export default Toast;
399
+ export interface ToastViewProps {
400
+ titleText: () => string;
401
+ descriptionText: () => string;
402
+ actions: () => string;
403
+ close: () => string;
404
+ separator: () => string;
405
+ titleIcon: JSX.Element | null;
406
+ }