@mirohq/design-system-base-input 0.1.0-forms.1 → 0.1.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.
package/dist/types.d.ts CHANGED
@@ -1,580 +1,138 @@
1
1
  import * as react from 'react';
2
- import { InputHTMLAttributes } from 'react';
3
- import { Booleanish } from '@mirohq/design-system-types';
4
- import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
2
+ import react__default, { ComponentPropsWithRef, InputHTMLAttributes } from 'react';
5
3
  import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
6
- import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
4
+ import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
5
+ import { SafeProps, CSS } from '@mirohq/design-system-stitches';
7
6
  import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
7
+ import { FormElementProps } from '@mirohq/design-system-base-form';
8
+ import * as packages_components_internal_base_button_src_base_button from 'packages/components/internal/base-button/src/base-button';
9
+ import * as _mirohq_design_system_hooks_use_press from '@mirohq/design-system-hooks/use-press';
10
+ import * as _mirohq_design_system_components_primitive from '@mirohq/design-system-components/primitive';
8
11
 
9
- declare const styles: {
10
- variants: {
11
- idle: {
12
- background: string;
13
- border: string;
14
- borderRadius: string;
15
- fontSize: string;
16
- lineHeight: string;
17
- };
18
- focused: {
19
- boxShadow: string;
20
- borderColor: string;
21
- };
22
- hovered: {
23
- borderColor: string;
24
- };
25
- readOnly: {
26
- background: string;
27
- color: string;
28
- };
29
- disabled: {
30
- background: string;
31
- };
32
- invalid: {
33
- idle: {
34
- borderColor: string;
35
- };
36
- focused: {
37
- borderColor: string;
38
- boxShadow: string;
39
- };
40
- hovered: {
41
- borderColor: string;
42
- };
43
- };
44
- valid: {
45
- idle: {
46
- borderColor: string;
47
- };
48
- focused: {
49
- borderColor: string;
50
- boxShadow: string;
51
- };
52
- hovered: {
53
- borderColor: string;
54
- };
55
- };
56
- };
57
- base: {
58
- placeholder: {
59
- color: string;
60
- };
61
- disabled: {
62
- caretColor: string;
63
- '&, &::placeholder': {
64
- color: string;
65
- '-webkit-text-fill-color': string;
66
- };
67
- '&:selection': {
68
- background: string;
69
- };
70
- };
71
- };
72
- };
73
-
74
- declare const useAriaDisabled: <T extends HTMLElement>(props: InputHTMLAttributes<T>, ariaDisabled?: Booleanish) => InputHTMLAttributes<T>;
75
-
76
- declare const FloatingLabel: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"label">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
77
- 'border-widths': {
78
- readonly none: 0;
79
- readonly sm: "1px";
80
- readonly md: "2px";
81
- readonly lg: "4px";
82
- };
83
- colors: {
84
- readonly black: any;
85
- readonly 'blue-100': any;
86
- readonly 'blue-200': any;
87
- readonly 'blue-300': any;
88
- readonly 'blue-400': any;
89
- readonly 'blue-500': any;
90
- readonly 'blue-600': any;
91
- readonly 'blue-700': any;
92
- readonly 'blue-800': any;
93
- readonly 'blue-900': any;
94
- readonly 'blue-1000': any;
95
- readonly 'gray-100': any;
96
- readonly 'gray-200': any;
97
- readonly 'gray-300': any;
98
- readonly 'gray-400': any;
99
- readonly 'gray-500': any;
100
- readonly 'gray-600': any;
101
- readonly 'gray-700': any;
102
- readonly 'gray-800': any;
103
- readonly 'gray-900': any;
104
- readonly 'green-100': any;
105
- readonly 'green-200': any;
106
- readonly 'green-300': any;
107
- readonly 'green-400': any;
108
- readonly 'green-500': any;
109
- readonly 'green-600': any;
110
- readonly 'green-700': any;
111
- readonly 'green-800': any;
112
- readonly 'green-900': any;
113
- readonly 'indigo-100': any;
114
- readonly 'indigo-200': any;
115
- readonly 'indigo-300': any;
116
- readonly 'indigo-400': any;
117
- readonly 'indigo-500': any;
118
- readonly 'indigo-600': any;
119
- readonly 'indigo-700': any;
120
- readonly 'indigo-800': any;
121
- readonly 'indigo-900': any;
122
- readonly 'red-100': any;
123
- readonly 'red-200': any;
124
- readonly 'red-300': any;
125
- readonly 'red-400': any;
126
- readonly 'red-500': any;
127
- readonly 'red-600': any;
128
- readonly 'red-700': any;
129
- readonly 'red-800': any;
130
- readonly 'red-900': any;
131
- readonly transparent: any;
132
- readonly white: any;
133
- readonly 'yellow-100': any;
134
- readonly 'yellow-200': any;
135
- readonly 'yellow-300': any;
136
- readonly 'yellow-400': any;
137
- readonly 'yellow-500': any;
138
- readonly 'yellow-600': any;
139
- readonly 'yellow-700': any;
140
- readonly 'yellow-800': any;
141
- readonly 'yellow-900': any;
142
- "background-alpha-active"?: any;
143
- "background-alpha-hover"?: any;
144
- "background-danger-prominent"?: any;
145
- "background-danger-prominent-active"?: any;
146
- "background-danger-prominent-hover"?: any;
147
- "background-danger-subtle"?: any;
148
- "background-danger-subtle-active"?: any;
149
- "background-danger-subtle-hover"?: any;
150
- "background-neutrals"?: any;
151
- "background-neutrals-active"?: any;
152
- "background-neutrals-container"?: any;
153
- "background-neutrals-controls-disabled"?: any;
154
- "background-neutrals-disabled"?: any;
155
- "background-neutrals-hover"?: any;
156
- "background-neutrals-inactive"?: any;
157
- "background-neutrals-inactive-hover"?: any;
158
- "background-neutrals-inverted"?: any;
159
- "background-neutrals-inverted-subtle"?: any;
160
- "background-neutrals-page"?: any;
161
- "background-neutrals-page-subtle"?: any;
162
- "background-neutrals-scrolls"?: any;
163
- "background-neutrals-scrolls-expanded"?: any;
164
- "background-neutrals-scrolls-hover"?: any;
165
- "background-neutrals-scrolls-pressed"?: any;
166
- "background-neutrals-scrolls-pressed-hover"?: any;
167
- "background-neutrals-subtle"?: any;
168
- "background-neutrals-subtle-active"?: any;
169
- "background-neutrals-subtle-hover"?: any;
170
- "background-primary-prominent"?: any;
171
- "background-primary-prominent-active"?: any;
172
- "background-primary-prominent-expanded"?: any;
173
- "background-primary-prominent-hover"?: any;
174
- "background-primary-prominent-pressed"?: any;
175
- "background-primary-prominent-pressed-hover"?: any;
176
- "background-primary-prominent-selected"?: any;
177
- "background-primary-subtle"?: any;
178
- "background-primary-subtle-active"?: any;
179
- "background-primary-subtle-expanded"?: any;
180
- "background-primary-subtle-hover"?: any;
181
- "background-primary-subtle-pressed"?: any;
182
- "background-primary-subtle-pressed-hover"?: any;
183
- "background-primary-subtle-selected"?: any;
184
- "background-success"?: any;
185
- "background-success-prominent"?: any;
186
- "background-success-prominent-active"?: any;
187
- "background-success-prominent-hover"?: any;
188
- "background-warning-prominent"?: any;
189
- "background-warning-subtle"?: any;
190
- "border-danger"?: any;
191
- "border-danger-active"?: any;
192
- "border-danger-hover"?: any;
193
- "border-focus-inner"?: any;
194
- "border-focus-middle"?: any;
195
- "border-focus-outer"?: any;
196
- "border-neutrals"?: any;
197
- "border-neutrals-active"?: any;
198
- "border-neutrals-controls"?: any;
199
- "border-neutrals-controls-disabled"?: any;
200
- "border-neutrals-disabled"?: any;
201
- "border-neutrals-hover"?: any;
202
- "border-neutrals-inverted"?: any;
203
- "border-neutrals-subtle"?: any;
204
- "border-neutrals-text"?: any;
205
- "border-neutrals-text-active"?: any;
206
- "border-neutrals-text-hover"?: any;
207
- "border-neutrals-text-subtle"?: any;
208
- "border-neutrals-text-subtle-active"?: any;
209
- "border-neutrals-text-subtle-hover"?: any;
210
- "border-neutrals-transparent"?: any;
211
- "border-primary"?: any;
212
- "border-primary-active"?: any;
213
- "border-primary-hover"?: any;
214
- "border-primary-inverted"?: any;
215
- "border-success"?: any;
216
- "border-success-active"?: any;
217
- "border-success-hover"?: any;
218
- "border-warning"?: any;
219
- "icon-danger"?: any;
220
- "icon-danger-active"?: any;
221
- "icon-danger-hover"?: any;
222
- "icon-danger-inverted"?: any;
223
- "icon-neutrals"?: any;
224
- "icon-neutrals-disabled"?: any;
225
- "icon-neutrals-inactive"?: any;
226
- "icon-neutrals-inactive-hover"?: any;
227
- "icon-neutrals-inverted"?: any;
228
- "icon-neutrals-search"?: any;
229
- "icon-neutrals-subtle"?: any;
230
- "icon-neutrals-text"?: any;
231
- "icon-primary"?: any;
232
- "icon-primary-active"?: any;
233
- "icon-primary-hover"?: any;
234
- "icon-primary-inverted"?: any;
235
- "icon-primary-selected"?: any;
236
- "icon-success"?: any;
237
- "icon-success-active"?: any;
238
- "icon-success-hover"?: any;
239
- "icon-success-inverted"?: any;
240
- "icon-warning"?: any;
241
- "icon-warning-prominent"?: any;
242
- "icon-warning-subtle"?: any;
243
- "text-danger"?: any;
244
- "text-danger-active"?: any;
245
- "text-danger-hover"?: any;
246
- "text-danger-inverted"?: any;
247
- "text-neutrals"?: any;
248
- "text-neutrals-active"?: any;
249
- "text-neutrals-disabled"?: any;
250
- "text-neutrals-hover"?: any;
251
- "text-neutrals-inverted"?: any;
252
- "text-neutrals-placeholder"?: any;
253
- "text-neutrals-placeholder-only"?: any;
254
- "text-neutrals-subtle"?: any;
255
- "text-neutrals-subtle-active"?: any;
256
- "text-neutrals-subtle-hover"?: any;
257
- "text-primary"?: any;
258
- "text-primary-active"?: any;
259
- "text-primary-hover"?: any;
260
- "text-primary-inverted"?: any;
261
- "text-primary-inverted-subtle"?: any;
262
- "text-primary-selected"?: any;
263
- "text-success"?: any;
264
- "text-success-active"?: any;
265
- "text-success-hover"?: any;
266
- "text-success-inverted"?: any;
267
- "text-warning"?: any;
268
- "text-warning-subtle"?: any;
269
- };
270
- 'font-sizes': {
271
- readonly 150: "0.75rem";
272
- readonly 175: "0.875rem";
273
- readonly 200: "1rem";
274
- readonly 225: "1.125rem";
275
- readonly 250: "1.25rem";
276
- readonly 300: "1.5rem";
277
- readonly 400: "2rem";
278
- readonly 500: "2.5rem";
279
- readonly 600: "3rem";
280
- readonly 800: "4rem";
281
- readonly 900: "4.5rem";
282
- };
283
- fonts: {
284
- readonly heading: "Roobert, sans-serif";
285
- readonly body: "Open Sans, sans-serif";
286
- };
287
- radii: {
288
- readonly none: 0;
289
- readonly half: "999em";
290
- readonly 25: "2px";
291
- readonly 50: "4px";
292
- readonly 75: "6px";
293
- readonly 100: "8px";
294
- readonly 200: "16px";
295
- };
296
- shadows: {
297
- readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
298
- readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
299
- readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
300
- readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
301
- readonly 'focus-controls-error': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-danger, 0 0 0 5px $colors$background-danger-subtle-hover";
302
- readonly 'focus-controls-success': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$background-success-prominent, 0 0 0 5px $colors$background-success";
303
- };
304
- sizes: {
305
- readonly number: string;
306
- readonly 'icon-200': "16px";
307
- readonly 'icon-300': "24px";
308
- readonly 'icon-400': "32px";
309
- };
310
- space: {
311
- readonly 0: "0px";
312
- readonly 25: "2px";
313
- readonly 50: "4px";
314
- readonly 100: "8px";
315
- readonly 150: "12px";
316
- readonly 200: "16px";
317
- readonly 300: "24px";
318
- readonly 400: "32px";
319
- readonly 500: "40px";
320
- readonly 600: "48px";
321
- readonly 700: "56px";
322
- readonly 800: "64px";
323
- readonly 1200: "96px";
324
- readonly 1600: "128px";
325
- };
326
- 'space-gap': {
327
- readonly 0: any;
328
- readonly 50: any;
329
- readonly 100: any;
330
- readonly 200: any;
331
- readonly 300: any;
332
- };
333
- 'space-inset': {
334
- readonly 0: any;
335
- readonly 50: any;
336
- readonly 100: any;
337
- readonly 150: any;
338
- readonly 200: any;
339
- readonly 300: any;
340
- readonly 400: any;
341
- readonly 500: any;
342
- readonly 600: any;
343
- readonly 700: any;
344
- readonly 800: any;
345
- readonly 1200: any;
346
- readonly 1600: any;
347
- };
348
- 'space-offset': {
349
- readonly 0: any;
350
- readonly 50: any;
351
- readonly 100: any;
352
- readonly 150: any;
353
- readonly 200: any;
354
- readonly 300: any;
355
- readonly 400: any;
356
- readonly 600: any;
357
- readonly 800: any;
358
- readonly 1200: any;
359
- readonly 1600: any;
360
- readonly 'stacking-0': any;
361
- readonly 'stacking-100': any;
362
- readonly 'stacking-200': any;
363
- readonly 'stacking-300': any;
364
- readonly 'stacking-400': any;
365
- readonly 'stacking-500': any;
366
- readonly 'stacking-800': any;
367
- };
368
- 'stroke-width': {
369
- readonly thin: "1.5px";
370
- readonly normal: "2px";
371
- readonly bold: "4px";
372
- };
373
- 'z-indices': {
374
- readonly dropdownMenu: 100;
375
- readonly select: 200;
376
- readonly popover: 300;
377
- readonly tooltip: 400;
378
- };
379
- }, {
380
- readonly background: "colors";
381
- readonly backgroundColor: "colors";
382
- readonly backgroundImage: "colors";
383
- readonly blockSize: "sizes";
384
- readonly border: "colors";
385
- readonly borderBlock: "colors";
386
- readonly borderBlockEnd: "colors";
387
- readonly borderBlockStart: "colors";
388
- readonly borderBottom: "colors";
389
- readonly borderBottomColor: "colors";
390
- readonly borderBottomLeftRadius: "radii";
391
- readonly borderBottomRightRadius: "radii";
392
- readonly borderBottomStyle: "border-styles";
393
- readonly borderBottomWidth: "border-widths";
394
- readonly borderColor: "colors";
395
- readonly borderImage: "colors";
396
- readonly borderInline: "colors";
397
- readonly borderInlineEnd: "colors";
398
- readonly borderInlineStart: "colors";
399
- readonly borderLeft: "colors";
400
- readonly borderLeftColor: "colors";
401
- readonly borderLeftStyle: "border-styles";
402
- readonly borderLeftWidth: "border-widths";
403
- readonly borderRadius: "radii";
404
- readonly borderRight: "colors";
405
- readonly borderRightColor: "colors";
406
- readonly borderRightStyle: "border-styles";
407
- readonly borderRightWidth: "border-widths";
408
- readonly borderSpacing: "space-offset";
409
- readonly borderStyle: "border-styles";
410
- readonly borderTop: "colors";
411
- readonly borderTopColor: "colors";
412
- readonly borderTopLeftRadius: "radii";
413
- readonly borderTopRightRadius: "radii";
414
- readonly borderTopStyle: "border-styles";
415
- readonly borderTopWidth: "border-widths";
416
- readonly borderWidth: "border-widths";
417
- readonly bottom: "space";
418
- readonly boxShadow: "shadows";
419
- readonly caretColor: "colors";
420
- readonly color: "colors";
421
- readonly columnGap: "space-gap";
422
- readonly columnRuleColor: "colors";
423
- readonly fill: "colors";
424
- readonly flexBasis: "sizes";
425
- readonly fontFamily: "fonts";
426
- readonly fontSize: "font-sizes";
427
- readonly fontWeight: "font-weights";
428
- readonly gap: "space-gap";
429
- readonly gridColumnGap: "space-gap";
430
- readonly gridGap: "space-gap";
431
- readonly gridRowGap: "space-gap";
432
- readonly gridTemplateColumns: "sizes";
433
- readonly gridTemplateRows: "sizes";
434
- readonly height: "sizes";
435
- readonly inlineSize: "sizes";
436
- readonly inset: "space-inset";
437
- readonly insetBlock: "space-inset";
438
- readonly insetBlockEnd: "space-inset";
439
- readonly insetBlockStart: "space-inset";
440
- readonly insetInline: "space-inset";
441
- readonly insetInlineEnd: "space-inset";
442
- readonly insetInlineStart: "space-inset";
443
- readonly left: "space";
444
- readonly letterSpacing: "letter-spacings";
445
- readonly lineHeight: "line-heights";
446
- readonly margin: "space-offset";
447
- readonly marginBlock: "space-offset";
448
- readonly marginBlockEnd: "space-offset";
449
- readonly marginBlockStart: "space-offset";
450
- readonly marginBottom: "space-offset";
451
- readonly marginInline: "space-offset";
452
- readonly marginInlineEnd: "space-offset";
453
- readonly marginInlineStart: "space-offset";
454
- readonly marginLeft: "space-offset";
455
- readonly marginRight: "space-offset";
456
- readonly marginTop: "space-offset";
457
- readonly maxBlockSize: "sizes";
458
- readonly maxHeight: "sizes";
459
- readonly maxInlineSize: "sizes";
460
- readonly maxWidth: "sizes";
461
- readonly minBlockSize: "sizes";
462
- readonly minHeight: "sizes";
463
- readonly minInlineSize: "sizes";
464
- readonly minWidth: "sizes";
465
- readonly outline: "colors";
466
- readonly outlineColor: "colors";
467
- readonly padding: "space-inset";
468
- readonly paddingBlock: "space-inset";
469
- readonly paddingBlockEnd: "space-inset";
470
- readonly paddingBlockStart: "space-inset";
471
- readonly paddingBottom: "space-inset";
472
- readonly paddingInline: "space-inset";
473
- readonly paddingInlineEnd: "space-inset";
474
- readonly paddingInlineStart: "space-inset";
475
- readonly paddingLeft: "space-inset";
476
- readonly paddingRight: "space-inset";
477
- readonly paddingTop: "space-inset";
478
- readonly right: "space";
479
- readonly rowGap: "space-gap";
480
- readonly scrollMargin: "space-offset";
481
- readonly scrollMarginBlock: "space-offset";
482
- readonly scrollMarginBlockEnd: "space-offset";
483
- readonly scrollMarginBlockStart: "space-offset";
484
- readonly scrollMarginBottom: "space-offset";
485
- readonly scrollMarginInline: "space-offset";
486
- readonly scrollMarginInlineEnd: "space-offset";
487
- readonly scrollMarginInlineStart: "space-offset";
488
- readonly scrollMarginLeft: "space-offset";
489
- readonly scrollMarginRight: "space-offset";
490
- readonly scrollMarginTop: "space-offset";
491
- readonly scrollPadding: "space-inset";
492
- readonly scrollPaddingBlock: "space-inset";
493
- readonly scrollPaddingBlockEnd: "space-inset";
494
- readonly scrollPaddingBlockStart: "space-inset";
495
- readonly scrollPaddingBottom: "space-inset";
496
- readonly scrollPaddingInline: "space-inset";
497
- readonly scrollPaddingInlineEnd: "space-inset";
498
- readonly scrollPaddingInlineStart: "space-inset";
499
- readonly scrollPaddingLeft: "space-inset";
500
- readonly scrollPaddingRight: "space-inset";
501
- readonly scrollPaddingTop: "space-inset";
502
- readonly stroke: "colors";
503
- readonly strokeWidth: "stroke-width";
504
- readonly textDecorationColor: "colors";
505
- readonly textShadow: "shadows";
506
- readonly top: "space";
507
- readonly transition: "transitions";
508
- readonly width: "sizes";
509
- readonly zIndex: "z-indices";
510
- }, {
511
- paddingX: (value: {
512
- readonly [$$PropertyValue]: "padding";
513
- }) => {
514
- paddingLeft: {
515
- readonly [$$PropertyValue]: "padding";
516
- };
517
- paddingRight: {
518
- readonly [$$PropertyValue]: "padding";
519
- };
520
- };
521
- paddingY: (value: {
522
- readonly [$$PropertyValue]: "padding";
523
- }) => {
524
- paddingTop: {
525
- readonly [$$PropertyValue]: "padding";
526
- };
527
- paddingBottom: {
528
- readonly [$$PropertyValue]: "padding";
529
- };
530
- };
531
- marginX: (value: {
532
- readonly [$$PropertyValue]: "margin";
533
- }) => {
534
- marginLeft: {
535
- readonly [$$PropertyValue]: "margin";
536
- };
537
- marginRight: {
538
- readonly [$$PropertyValue]: "margin";
539
- };
540
- };
541
- marginY: (value: {
542
- readonly [$$PropertyValue]: "margin";
543
- }) => {
544
- marginTop: {
545
- readonly [$$PropertyValue]: "margin";
546
- };
547
- marginBottom: {
548
- readonly [$$PropertyValue]: "margin";
549
- };
550
- };
551
- square: (value: {
552
- readonly [$$PropertyValue]: "width";
553
- }) => {
554
- width: {
555
- readonly [$$PropertyValue]: "width";
556
- };
557
- height: {
558
- readonly [$$PropertyValue]: "width";
559
- };
560
- };
561
- _hover: (css: _stitches_react_types_css_util.CSSProperties) => {
562
- '&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
563
- };
564
- }>>>, "size" | "floating"> & _stitches_react_types_styled_component.TransformProps<{
565
- floating?: boolean | "false" | "true" | undefined;
12
+ declare const StyledBaseInput: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<"div">, "size" | "disabled" | "readOnly" | "ariaDisabled" | "hovered" | "focused" | "valid"> & _stitches_react_types_styled_component.TransformProps<{
13
+ hovered?: boolean | "false" | "true" | undefined;
14
+ focused?: boolean | "false" | "true" | undefined;
15
+ valid?: boolean | "false" | "true" | undefined;
16
+ readOnly?: boolean | "false" | "true" | undefined;
17
+ disabled?: boolean | "false" | "true" | undefined;
18
+ ariaDisabled?: boolean | "false" | "true" | undefined;
566
19
  size?: "large" | "x-large" | undefined;
567
- }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLLabelElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"label">>, {
568
- floating?: boolean | "false" | "true" | undefined;
20
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<"div", {
21
+ hovered?: boolean | "false" | "true" | undefined;
22
+ focused?: boolean | "false" | "true" | undefined;
23
+ valid?: boolean | "false" | "true" | undefined;
24
+ readOnly?: boolean | "false" | "true" | undefined;
25
+ disabled?: boolean | "false" | "true" | undefined;
26
+ ariaDisabled?: boolean | "false" | "true" | undefined;
569
27
  size?: "large" | "x-large" | undefined;
570
28
  }, {}>;
29
+ declare type StyledBaseInputProps = ComponentPropsWithRef<typeof StyledBaseInput>;
30
+
31
+ declare const StyledInput: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"input">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLInputElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"input">>, {}, {}>;
32
+ declare type StyledInputProps = ComponentPropsWithRef<typeof StyledInput>;
33
+
34
+ declare type InputProps$2 = Omit<StyledInputProps, 'aria-disabled' | 'disabled' | 'readOnly' | 'required' | 'onChange'>;
35
+ declare const Input: react__default.ForwardRefExoticComponent<Omit<InputProps$2, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
36
+
37
+ interface InputProps$1 extends FormElementProps {
38
+ onChange?: react__default.ChangeEventHandler<HTMLInputElement>;
39
+ }
40
+ interface InputContextProps extends InputProps$1 {
41
+ focused: boolean;
42
+ setFocused: react__default.Dispatch<react__default.SetStateAction<boolean>>;
43
+ hovered: boolean;
44
+ setHovered: react__default.Dispatch<react__default.SetStateAction<boolean>>;
45
+ hasIconSlot: boolean;
46
+ setHasIconSlot: react__default.Dispatch<react__default.SetStateAction<boolean>>;
47
+ actionButtonRef: react__default.RefObject<HTMLAnchorElement | HTMLButtonElement>;
48
+ inputRef: react__default.RefObject<HTMLInputElement>;
49
+ editable: boolean;
50
+ }
51
+ declare type InputProviderProps = InputProps$1;
52
+ declare const useInputContext: () => InputContextProps;
571
53
 
572
- declare const inputSymbol: unique symbol;
573
- declare type InputReactElement = React.ReactElement & {
574
- [inputSymbol]?: boolean;
54
+ declare const StyledActionButton: react.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, _mirohq_design_system_stitches.ForbiddenProps> & {
55
+ children?: react.ReactNode;
56
+ }, "readOnlyAppearance" | "disableAppearance"> & _stitches_react_types_styled_component.TransformProps<{
57
+ readOnlyAppearance?: boolean | "true" | undefined;
58
+ disableAppearance?: boolean | "true" | undefined;
59
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & react.AnchorHTMLAttributes<"a"> & {
60
+ href: string;
61
+ }, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, _mirohq_design_system_stitches.ForbiddenProps> & {
62
+ children?: react.ReactNode;
63
+ }, "readOnlyAppearance" | "disableAppearance"> & _stitches_react_types_styled_component.TransformProps<{
64
+ readOnlyAppearance?: boolean | "true" | undefined;
65
+ disableAppearance?: boolean | "true" | undefined;
66
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<(Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> | Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & react.AnchorHTMLAttributes<"a"> & {
67
+ href: string;
68
+ }, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, {
69
+ readOnlyAppearance?: boolean | "true" | undefined;
70
+ disableAppearance?: boolean | "true" | undefined;
71
+ }, {}>;
72
+ declare type StyledActionButtonProps = ComponentPropsWithRef<typeof StyledActionButton>;
73
+
74
+ declare type ActionButtonProps = StyledActionButtonProps & {
75
+ label: string;
575
76
  };
576
- declare const isInputComponent: <T>(inputComponent: T & {
577
- [inputSymbol]?: boolean | undefined;
578
- }) => boolean;
77
+ declare const ActionButton: react__default.ForwardRefExoticComponent<(Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents, "ref"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, _mirohq_design_system_stitches.ForbiddenProps> & {
78
+ children?: react__default.ReactNode;
79
+ }, "readOnlyAppearance" | "disableAppearance"> & _stitches_react_types_styled_component.TransformProps<{
80
+ readOnlyAppearance?: boolean | "true" | undefined;
81
+ disableAppearance?: boolean | "true" | undefined;
82
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
83
+ label: string;
84
+ }, "ref"> | Omit<Omit<Omit<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"button">>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLButtonElement> & _mirohq_design_system_hooks_use_press.PressProps & packages_components_internal_base_button_src_base_button.HoverEvents & react__default.AnchorHTMLAttributes<"a"> & {
85
+ href: string;
86
+ }, "ref"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>, _mirohq_design_system_stitches.ForbiddenProps> & {
87
+ children?: react__default.ReactNode;
88
+ }, "readOnlyAppearance" | "disableAppearance"> & _stitches_react_types_styled_component.TransformProps<{
89
+ readOnlyAppearance?: boolean | "true" | undefined;
90
+ disableAppearance?: boolean | "true" | undefined;
91
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
92
+ label: string;
93
+ }, "ref">) & react__default.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
94
+
95
+ declare const StyledIconSlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>>, "disabled"> & _stitches_react_types_styled_component.TransformProps<{
96
+ disabled?: boolean | "true" | undefined;
97
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {
98
+ disabled?: boolean | "true" | undefined;
99
+ }, {}>;
100
+ declare type StyledIconSlotProps = ComponentPropsWithRef<typeof StyledIconSlot>;
101
+
102
+ interface IconSlotProps extends StyledIconSlotProps {
103
+ }
104
+ declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>>, "disabled"> & _stitches_react_types_styled_component.TransformProps<{
105
+ disabled?: boolean | "true" | undefined;
106
+ }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLDivElement>, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
107
+
108
+ declare type BaseInputRootProps = Omit<StyledBaseInputProps, 'hovered' | 'focused' | 'valid' | 'readOnly' | 'disabled' | 'ariaDisabled' | 'value' | 'defaultValue' | 'placeholder'>;
109
+ declare type BaseInputProps = BaseInputRootProps & InputProviderProps;
110
+ declare const BaseInput: react__default.ForwardRefExoticComponent<BaseInputProps> & Partials;
111
+ interface Partials {
112
+ Input: typeof Input;
113
+ ActionButton: typeof ActionButton;
114
+ IconSlot: typeof IconSlot;
115
+ }
116
+
117
+ declare type InputProps = InputHTMLAttributes<HTMLInputElement>;
118
+ declare type BaseInputStyledProps = SafeProps<InputProps & {
119
+ css?: CSS;
120
+ }>;
121
+ interface BaseInputSharedProps extends FormElementProps, Omit<BaseInputStyledProps, 'size'> {
122
+ /** The input's state is indicated by both an icon and border color. A
123
+ * green check mark signifies valid input, while a red warning icon denotes
124
+ * invalid input. In both cases, the border color mirrors the icon: green for
125
+ * valid, red for invalid.
126
+ * */
127
+ valid?: BaseInputProps['valid'];
128
+ /**
129
+ * The size of the input.
130
+ */
131
+ size?: BaseInputProps['size'];
132
+ /**
133
+ * Input's content.
134
+ */
135
+ children?: React.ReactNode;
136
+ }
579
137
 
580
- export { FloatingLabel, InputReactElement, inputSymbol, isInputComponent, styles, useAriaDisabled };
138
+ export { BaseInput, ActionButtonProps as BaseInputActionButtonProps, IconSlotProps as BaseInputIconSlotProps, InputProps$2 as BaseInputInputProps, BaseInputProps, BaseInputSharedProps, BaseInputStyledProps, InputProviderProps, useInputContext };