@tooark/react 1.0.0

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 (84) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +12 -0
  3. package/README.md +163 -0
  4. package/README.pt-BR.md +163 -0
  5. package/dist/ark-alert.d.ts +12 -0
  6. package/dist/ark-alert.js +25 -0
  7. package/dist/ark-avatar.d.ts +10 -0
  8. package/dist/ark-avatar.js +13 -0
  9. package/dist/ark-badge.d.ts +6 -0
  10. package/dist/ark-badge.js +13 -0
  11. package/dist/ark-button.d.ts +9 -0
  12. package/dist/ark-button.js +19 -0
  13. package/dist/ark-calendar.d.ts +16 -0
  14. package/dist/ark-calendar.js +36 -0
  15. package/dist/ark-card.d.ts +8 -0
  16. package/dist/ark-card.js +13 -0
  17. package/dist/ark-carousel.d.ts +10 -0
  18. package/dist/ark-carousel.js +39 -0
  19. package/dist/ark-checkbox.d.ts +16 -0
  20. package/dist/ark-checkbox.js +26 -0
  21. package/dist/ark-clock.d.ts +11 -0
  22. package/dist/ark-clock.js +26 -0
  23. package/dist/ark-color-swatches.d.ts +17 -0
  24. package/dist/ark-color-swatches.js +25 -0
  25. package/dist/ark-command-palette.d.ts +40 -0
  26. package/dist/ark-command-palette.js +51 -0
  27. package/dist/ark-copy-button.d.ts +17 -0
  28. package/dist/ark-copy-button.js +31 -0
  29. package/dist/ark-datepicker.d.ts +15 -0
  30. package/dist/ark-datepicker.js +46 -0
  31. package/dist/ark-dialog.d.ts +22 -0
  32. package/dist/ark-dialog.js +36 -0
  33. package/dist/ark-drawer.d.ts +23 -0
  34. package/dist/ark-drawer.js +35 -0
  35. package/dist/ark-empty.d.ts +10 -0
  36. package/dist/ark-empty.js +13 -0
  37. package/dist/ark-file-input.d.ts +23 -0
  38. package/dist/ark-file-input.js +28 -0
  39. package/dist/ark-input.d.ts +34 -0
  40. package/dist/ark-input.js +46 -0
  41. package/dist/ark-kbd.d.ts +7 -0
  42. package/dist/ark-kbd.js +13 -0
  43. package/dist/ark-kv-editor.d.ts +30 -0
  44. package/dist/ark-kv-editor.js +46 -0
  45. package/dist/ark-mark.d.ts +8 -0
  46. package/dist/ark-mark.js +14 -0
  47. package/dist/ark-menu.d.ts +33 -0
  48. package/dist/ark-menu.js +48 -0
  49. package/dist/ark-progress.d.ts +16 -0
  50. package/dist/ark-progress.js +17 -0
  51. package/dist/ark-radio.d.ts +17 -0
  52. package/dist/ark-radio.js +25 -0
  53. package/dist/ark-scheduler.d.ts +24 -0
  54. package/dist/ark-scheduler.js +42 -0
  55. package/dist/ark-select.d.ts +20 -0
  56. package/dist/ark-select.js +33 -0
  57. package/dist/ark-shape-picker.d.ts +15 -0
  58. package/dist/ark-shape-picker.js +25 -0
  59. package/dist/ark-skeleton.d.ts +11 -0
  60. package/dist/ark-skeleton.js +15 -0
  61. package/dist/ark-spinner.d.ts +8 -0
  62. package/dist/ark-spinner.js +14 -0
  63. package/dist/ark-split-pane.d.ts +13 -0
  64. package/dist/ark-split-pane.js +25 -0
  65. package/dist/ark-status-dot.d.ts +8 -0
  66. package/dist/ark-status-dot.js +13 -0
  67. package/dist/ark-switch.d.ts +13 -0
  68. package/dist/ark-switch.js +29 -0
  69. package/dist/ark-tabs.d.ts +29 -0
  70. package/dist/ark-tabs.js +43 -0
  71. package/dist/ark-textarea.d.ts +32 -0
  72. package/dist/ark-textarea.js +44 -0
  73. package/dist/ark-toaster.d.ts +6 -0
  74. package/dist/ark-toaster.js +19 -0
  75. package/dist/ark-toggle.d.ts +20 -0
  76. package/dist/ark-toggle.js +48 -0
  77. package/dist/ark-tooltip.d.ts +10 -0
  78. package/dist/ark-tooltip.js +15 -0
  79. package/dist/index.d.ts +76 -0
  80. package/dist/index.js +38 -0
  81. package/dist/jsx-intrinsics.d.ts +538 -0
  82. package/dist/register.d.ts +1 -0
  83. package/dist/register.js +8 -0
  84. package/package.json +71 -0
@@ -0,0 +1,538 @@
1
+ import type {
2
+ ArkAlertLive,
3
+ ArkAlertVariant,
4
+ ArkAvatarShape,
5
+ ArkBadgeSize,
6
+ ArkBadgeVariant,
7
+ ArkButtonStatus,
8
+ ArkButtonType,
9
+ ArkButtonVariant,
10
+ ArkCardPadding,
11
+ ArkCarouselSnap,
12
+ ArkDatepickerLang,
13
+ ArkDialogSize,
14
+ ArkDrawerMode,
15
+ ArkDrawerSide,
16
+ ArkIntent,
17
+ ArkLang,
18
+ ArkMarkShape,
19
+ ArkMenuAlign,
20
+ ArkMenuDirection,
21
+ ArkRounded,
22
+ ArkSize,
23
+ ArkTabsFill,
24
+ ArkTabsVariant,
25
+ ArkTextareaResize,
26
+ ArkTheme,
27
+ ArkToastPosition,
28
+ ArkTooltipSide
29
+ } from "@tooark/core";
30
+ import React from "react";
31
+
32
+ declare global {
33
+ namespace JSX {
34
+ interface IntrinsicElements {
35
+ "ark-alert": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
36
+ testid?: string;
37
+ intent?: ArkIntent;
38
+ variant?: ArkAlertVariant;
39
+ heading?: string;
40
+ dismissible?: boolean;
41
+ live?: ArkAlertLive;
42
+ theme?: ArkTheme;
43
+ lang?: ArkLang;
44
+ "locale-json"?: string;
45
+ };
46
+ "ark-avatar": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
47
+ testid?: string;
48
+ name?: string;
49
+ src?: string;
50
+ size?: ArkSize;
51
+ shape?: ArkAvatarShape;
52
+ color?: string;
53
+ theme?: ArkTheme;
54
+ };
55
+ "ark-badge": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
56
+ testid?: string;
57
+ intent?: ArkIntent;
58
+ variant?: ArkBadgeVariant;
59
+ size?: ArkBadgeSize;
60
+ rounded?: ArkRounded;
61
+ color?: string;
62
+ theme?: ArkTheme;
63
+ };
64
+ "ark-button": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
65
+ testid?: string;
66
+ type?: ArkButtonType;
67
+ disabled?: boolean;
68
+ variant?: ArkButtonVariant;
69
+ intent?: ArkIntent;
70
+ theme?: ArkTheme;
71
+ size?: ArkSize;
72
+ rounded?: ArkRounded;
73
+ loading?: boolean;
74
+ status?: ArkButtonStatus;
75
+ "status-label"?: string;
76
+ "icon-only"?: boolean;
77
+ "full-width"?: boolean;
78
+ href?: string;
79
+ target?: string;
80
+ color?: string;
81
+ "text-color"?: string;
82
+ };
83
+ "ark-checkbox": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
84
+ testid?: string;
85
+ checked?: boolean;
86
+ indeterminate?: boolean;
87
+ disabled?: boolean;
88
+ intent?: ArkIntent;
89
+ theme?: ArkTheme;
90
+ size?: ArkSize;
91
+ name?: string;
92
+ value?: string;
93
+ label?: string;
94
+ };
95
+ "ark-progress": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
96
+ testid?: string;
97
+ value?: number | string;
98
+ max?: number | string;
99
+ indeterminate?: boolean;
100
+ label?: string;
101
+ "show-value"?: boolean;
102
+ intent?: ArkIntent;
103
+ size?: ArkSize;
104
+ theme?: ArkTheme;
105
+ };
106
+ "ark-radio": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
107
+ testid?: string;
108
+ checked?: boolean;
109
+ disabled?: boolean;
110
+ intent?: ArkIntent;
111
+ theme?: ArkTheme;
112
+ size?: ArkSize;
113
+ name?: string;
114
+ value?: string;
115
+ label?: string;
116
+ };
117
+ "ark-spinner": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
118
+ testid?: string;
119
+ size?: ArkSize;
120
+ intent?: ArkIntent;
121
+ label?: string;
122
+ theme?: ArkTheme;
123
+ lang?: ArkLang;
124
+ "locale-json"?: string;
125
+ };
126
+ "ark-split-pane": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
127
+ testid?: string;
128
+ direction?: "horizontal" | "vertical";
129
+ sizes?: string;
130
+ theme?: ArkTheme;
131
+ lang?: ArkLang;
132
+ "locale-json"?: string;
133
+ };
134
+ "ark-status-dot": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
135
+ testid?: string;
136
+ intent?: ArkIntent;
137
+ label?: string;
138
+ size?: ArkSize;
139
+ theme?: ArkTheme;
140
+ };
141
+ "ark-switch": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
142
+ testid?: string;
143
+ checked?: boolean;
144
+ disabled?: boolean;
145
+ intent?: ArkIntent;
146
+ theme?: ArkTheme;
147
+ size?: ArkSize;
148
+ labels?: boolean;
149
+ "label-on"?: string;
150
+ "label-off"?: string;
151
+ icons?: boolean;
152
+ color?: string;
153
+ name?: string;
154
+ value?: string;
155
+ label?: string;
156
+ };
157
+ "ark-toggle": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
158
+ testid?: string;
159
+ pressed?: boolean;
160
+ disabled?: boolean;
161
+ intent?: ArkIntent;
162
+ theme?: ArkTheme;
163
+ size?: ArkSize;
164
+ value?: string;
165
+ };
166
+ "ark-toggle-group": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
167
+ testid?: string;
168
+ value?: string;
169
+ multiple?: boolean;
170
+ disabled?: boolean;
171
+ intent?: ArkIntent;
172
+ theme?: ArkTheme;
173
+ size?: ArkSize;
174
+ };
175
+ "ark-calendar": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
176
+ testid?: string;
177
+ lang?: ArkDatepickerLang;
178
+ theme?: ArkTheme;
179
+ intent?: ArkIntent;
180
+ "accent-color"?: string;
181
+ "locale-json"?: string;
182
+ value?: string;
183
+ min?: string;
184
+ max?: string;
185
+ events?: string;
186
+ "event-display"?: "dots" | "count" | "list";
187
+ };
188
+ "ark-clock": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
189
+ testid?: string;
190
+ lang?: ArkDatepickerLang;
191
+ theme?: ArkTheme;
192
+ intent?: ArkIntent;
193
+ value?: string;
194
+ seconds?: boolean;
195
+ "step-minutes"?: number;
196
+ "hours-format"?: "24" | "12";
197
+ };
198
+ "ark-color-swatches": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
199
+ testid?: string;
200
+ value?: string;
201
+ colors?: string;
202
+ label?: string;
203
+ disabled?: boolean;
204
+ size?: ArkSize;
205
+ theme?: ArkTheme;
206
+ };
207
+ "ark-command-palette": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
208
+ testid?: string;
209
+ open?: boolean;
210
+ placeholder?: string;
211
+ hotkey?: string;
212
+ filter?: boolean;
213
+ "no-scroll-lock"?: boolean;
214
+ "query-delay"?: number | string;
215
+ label?: string;
216
+ theme?: ArkTheme;
217
+ lang?: ArkLang;
218
+ "locale-json"?: string;
219
+ };
220
+ "ark-command-item": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
221
+ testid?: string;
222
+ value?: string;
223
+ group?: string;
224
+ label?: string;
225
+ disabled?: boolean;
226
+ };
227
+ "ark-copy-button": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
228
+ testid?: string;
229
+ value?: string;
230
+ for?: string;
231
+ "feedback-ms"?: number | string;
232
+ variant?: ArkButtonVariant;
233
+ intent?: ArkIntent;
234
+ theme?: ArkTheme;
235
+ size?: ArkSize;
236
+ rounded?: ArkRounded;
237
+ loading?: boolean;
238
+ disabled?: boolean;
239
+ "icon-only"?: boolean;
240
+ "full-width"?: boolean;
241
+ color?: string;
242
+ "text-color"?: string;
243
+ lang?: ArkLang;
244
+ "locale-json"?: string;
245
+ };
246
+ "ark-datepicker": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
247
+ testid?: string;
248
+ lang?: ArkDatepickerLang;
249
+ theme?: ArkTheme;
250
+ intent?: ArkIntent;
251
+ "accent-color"?: string;
252
+ "locale-json"?: string;
253
+ value?: string;
254
+ min?: string;
255
+ max?: string;
256
+ mode?: "datetime" | "date" | "time";
257
+ input?: boolean;
258
+ placeholder?: string;
259
+ name?: string;
260
+ format?: string;
261
+ seconds?: boolean;
262
+ disabled?: boolean;
263
+ events?: string;
264
+ "event-display"?: "dots" | "count" | "list";
265
+ "step-minutes"?: number;
266
+ "hours-format"?: "24" | "12";
267
+ };
268
+ "ark-dialog": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
269
+ testid?: string;
270
+ open?: boolean;
271
+ size?: ArkDialogSize;
272
+ width?: string | number;
273
+ height?: string | number;
274
+ label?: string;
275
+ "no-close-button"?: boolean;
276
+ persistent?: boolean;
277
+ "no-scroll-lock"?: boolean;
278
+ theme?: ArkTheme;
279
+ lang?: ArkLang;
280
+ "locale-json"?: string;
281
+ };
282
+ "ark-kbd": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
283
+ testid?: string;
284
+ size?: ArkSize;
285
+ theme?: ArkTheme;
286
+ };
287
+ "ark-kv-editor": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
288
+ testid?: string;
289
+ rows?: string;
290
+ bulk?: boolean;
291
+ "bulk-format"?: "lines" | "json";
292
+ types?: string;
293
+ description?: boolean;
294
+ secret?: boolean;
295
+ "key-placeholder"?: string;
296
+ "value-placeholder"?: string;
297
+ "description-placeholder"?: string;
298
+ readonly?: boolean;
299
+ size?: ArkSize;
300
+ theme?: ArkTheme;
301
+ lang?: ArkLang;
302
+ "locale-json"?: string;
303
+ };
304
+ "ark-mark": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
305
+ testid?: string;
306
+ shape?: ArkMarkShape;
307
+ color?: string;
308
+ size?: number | string;
309
+ label?: string;
310
+ theme?: ArkTheme;
311
+ };
312
+ "ark-menu": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
313
+ testid?: string;
314
+ for?: string;
315
+ open?: boolean;
316
+ align?: ArkMenuAlign;
317
+ direction?: ArkMenuDirection;
318
+ size?: ArkSize;
319
+ theme?: ArkTheme;
320
+ };
321
+ "ark-menu-item": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
322
+ testid?: string;
323
+ value?: string;
324
+ disabled?: boolean;
325
+ intent?: ArkIntent;
326
+ checked?: boolean | "false";
327
+ divider?: boolean;
328
+ static?: boolean;
329
+ };
330
+ "ark-tooltip": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
331
+ testid?: string;
332
+ content?: string;
333
+ side?: ArkTooltipSide;
334
+ delay?: number | string;
335
+ open?: boolean;
336
+ theme?: ArkTheme;
337
+ };
338
+ "ark-card": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
339
+ testid?: string;
340
+ heading?: string;
341
+ padding?: ArkCardPadding;
342
+ rounded?: ArkRounded;
343
+ theme?: ArkTheme;
344
+ };
345
+ "ark-drawer": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
346
+ testid?: string;
347
+ open?: boolean;
348
+ side?: ArkDrawerSide;
349
+ mode?: ArkDrawerMode;
350
+ size?: string | number;
351
+ label?: string;
352
+ "no-close-button"?: boolean;
353
+ persistent?: boolean;
354
+ "no-scroll-lock"?: boolean;
355
+ theme?: ArkTheme;
356
+ lang?: ArkLang;
357
+ "locale-json"?: string;
358
+ };
359
+ "ark-empty": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
360
+ testid?: string;
361
+ heading?: string;
362
+ description?: string;
363
+ theme?: ArkTheme;
364
+ };
365
+ "ark-shape-picker": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
366
+ testid?: string;
367
+ value?: ArkMarkShape;
368
+ color?: string;
369
+ label?: string;
370
+ disabled?: boolean;
371
+ size?: ArkSize;
372
+ theme?: ArkTheme;
373
+ lang?: ArkLang;
374
+ "locale-json"?: string;
375
+ };
376
+ "ark-skeleton": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
377
+ testid?: string;
378
+ rows?: number | string;
379
+ animated?: boolean;
380
+ rounded?: ArkRounded;
381
+ color?: string;
382
+ ratio?: string;
383
+ theme?: ArkTheme;
384
+ };
385
+ "ark-scheduler": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
386
+ testid?: string;
387
+ view?: "week" | "day" | "month" | "agenda";
388
+ date?: string;
389
+ events?: string;
390
+ lang?: ArkDatepickerLang;
391
+ theme?: ArkTheme;
392
+ intent?: ArkIntent;
393
+ views?: string;
394
+ "hour-start"?: number;
395
+ "hour-end"?: number;
396
+ "slot-minutes"?: number;
397
+ "hours-format"?: "24" | "12";
398
+ };
399
+ "ark-select": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
400
+ testid?: string;
401
+ label?: string;
402
+ placeholder?: string;
403
+ options?: string;
404
+ value?: string;
405
+ name?: string;
406
+ size?: ArkSize;
407
+ intent?: ArkIntent;
408
+ theme?: ArkTheme;
409
+ rounded?: ArkRounded;
410
+ helper?: string;
411
+ error?: boolean;
412
+ "error-message"?: string;
413
+ disabled?: boolean;
414
+ required?: boolean;
415
+ };
416
+ "ark-file-input": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
417
+ testid?: string;
418
+ accept?: string;
419
+ multiple?: boolean;
420
+ label?: string;
421
+ helper?: string;
422
+ "error-message"?: string;
423
+ disabled?: boolean;
424
+ required?: boolean;
425
+ name?: string;
426
+ intent?: ArkIntent;
427
+ size?: ArkSize;
428
+ rounded?: ArkRounded;
429
+ theme?: ArkTheme;
430
+ lang?: ArkLang;
431
+ "locale-json"?: string;
432
+ };
433
+ "ark-input": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
434
+ testid?: string;
435
+ type?: string;
436
+ label?: string;
437
+ placeholder?: string;
438
+ value?: string;
439
+ name?: string;
440
+ size?: ArkSize;
441
+ intent?: ArkIntent;
442
+ theme?: ArkTheme;
443
+ rounded?: ArkRounded;
444
+ helper?: string;
445
+ error?: boolean;
446
+ "error-message"?: string;
447
+ disabled?: boolean;
448
+ required?: boolean;
449
+ readonly?: boolean;
450
+ reveal?: boolean;
451
+ lang?: ArkLang;
452
+ "locale-json"?: string;
453
+ autocomplete?: string;
454
+ autofocus?: boolean;
455
+ inputmode?: string;
456
+ maxlength?: number | string;
457
+ minlength?: number | string;
458
+ pattern?: string;
459
+ min?: number | string;
460
+ max?: number | string;
461
+ step?: number | string;
462
+ spellcheck?: boolean | "true" | "false";
463
+ };
464
+ "ark-tabs": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
465
+ testid?: string;
466
+ value?: string;
467
+ variant?: ArkTabsVariant;
468
+ size?: ArkSize;
469
+ intent?: ArkIntent;
470
+ rounded?: ArkRounded;
471
+ fill?: ArkTabsFill;
472
+ theme?: ArkTheme;
473
+ label?: string;
474
+ lang?: ArkLang;
475
+ "locale-json"?: string;
476
+ };
477
+ "ark-tab": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
478
+ testid?: string;
479
+ value?: string;
480
+ disabled?: boolean;
481
+ controls?: string;
482
+ closable?: boolean;
483
+ dirty?: boolean;
484
+ };
485
+ "ark-textarea": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
486
+ testid?: string;
487
+ label?: string;
488
+ placeholder?: string;
489
+ value?: string;
490
+ name?: string;
491
+ rows?: number | string;
492
+ autosize?: boolean;
493
+ monospace?: boolean;
494
+ resize?: ArkTextareaResize;
495
+ size?: ArkSize;
496
+ intent?: ArkIntent;
497
+ theme?: ArkTheme;
498
+ rounded?: ArkRounded;
499
+ helper?: string;
500
+ error?: boolean;
501
+ "error-message"?: string;
502
+ disabled?: boolean;
503
+ required?: boolean;
504
+ readonly?: boolean;
505
+ autocomplete?: string;
506
+ autofocus?: boolean;
507
+ maxlength?: number | string;
508
+ minlength?: number | string;
509
+ spellcheck?: boolean | "true" | "false";
510
+ };
511
+ "ark-carousel": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
512
+ testid?: string;
513
+ theme?: ArkTheme;
514
+ intent?: ArkIntent;
515
+ "accent-color"?: string;
516
+ "slides-per-view"?: number;
517
+ gap?: number;
518
+ "start-index"?: number;
519
+ loop?: boolean;
520
+ autoplay?: boolean;
521
+ "autoplay-delay"?: number;
522
+ "show-dots"?: boolean | "false";
523
+ "show-arrows"?: boolean | "false";
524
+ "drag-free"?: boolean;
525
+ snap?: ArkCarouselSnap;
526
+ };
527
+ "ark-toaster": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
528
+ testid?: string;
529
+ theme?: ArkTheme;
530
+ position?: ArkToastPosition;
531
+ "rich-colors"?: boolean;
532
+ "close-button"?: boolean | "false";
533
+ "max-visible"?: number;
534
+ duration?: number;
535
+ };
536
+ }
537
+ }
538
+ }
@@ -0,0 +1 @@
1
+ export declare function ensureTooarkComponentsRegistered(): void;
@@ -0,0 +1,8 @@
1
+ import { registerTooarkComponents } from "@tooark/web-components";
2
+ let isRegistered = false;
3
+ export function ensureTooarkComponentsRegistered() {
4
+ if (isRegistered)
5
+ return;
6
+ registerTooarkComponents();
7
+ isRegistered = true;
8
+ }
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@tooark/react",
3
+ "version": "1.0.0",
4
+ "description": "Tooark React — typed wrappers for ark-* components for React 18 and 19",
5
+ "keywords": [
6
+ "tooark",
7
+ "web-components",
8
+ "custom-elements",
9
+ "design-system",
10
+ "tailwindcss",
11
+ "react",
12
+ "react-components",
13
+ "wrappers"
14
+ ],
15
+ "license": "Apache-2.0",
16
+ "author": {
17
+ "name": "Paulo Sergio de Freitas Junior",
18
+ "email": "paulo.freitas@tooark.com",
19
+ "url": "https://paulofreitas.tooark.com"
20
+ },
21
+ "homepage": "https://github.com/Tooark/web-components#readme",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/Tooark/web-components.git",
25
+ "directory": "packages/react"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/Tooark/web-components/issues"
29
+ },
30
+ "funding": [
31
+ {
32
+ "type": "github",
33
+ "url": "https://github.com/sponsors/paulosfjunior"
34
+ },
35
+ {
36
+ "type": "ko-fi",
37
+ "url": "https://ko-fi.com/paulosfjunior"
38
+ }
39
+ ],
40
+ "type": "module",
41
+ "main": "./dist/index.js",
42
+ "types": "./dist/index.d.ts",
43
+ "exports": {
44
+ ".": {
45
+ "types": "./dist/index.d.ts",
46
+ "default": "./dist/index.js"
47
+ },
48
+ "./package.json": "./package.json"
49
+ },
50
+ "files": [
51
+ "NOTICE",
52
+ "README.pt-BR.md",
53
+ "dist"
54
+ ],
55
+ "publishConfig": {
56
+ "access": "public",
57
+ "registry": "https://registry.npmjs.org/"
58
+ },
59
+ "peerDependencies": {
60
+ "react": ">=18",
61
+ "react-dom": ">=18"
62
+ },
63
+ "dependencies": {
64
+ "@tooark/core": "^1.0.0",
65
+ "@tooark/web-components": "^1.0.0"
66
+ },
67
+ "scripts": {
68
+ "build": "tsc -p tsconfig.json && node postbuild.mjs",
69
+ "clean": "rimraf dist"
70
+ }
71
+ }