react-magma-dom 3.3.0 → 3.5.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.
@@ -1,5 +1,12 @@
1
1
  import * as React from 'react';
2
2
  export interface CharacterCounterProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Enables Character Counter by default.
5
+ * When set to false, the default HTML attribute of 'maxlength' will work.
6
+ * Note: This is a temporary prop and will be removed in future releases.
7
+ @default true
8
+ */
9
+ hasCharacterCounter?: boolean;
3
10
  /**
4
11
  * Identifier to associate Character Counter with Input.
5
12
  */
@@ -12,6 +19,11 @@ export interface CharacterCounterProps extends React.HTMLAttributes<HTMLDivEleme
12
19
  /**
13
20
  * Sets the maximum amount of characters allowed.
14
21
  */
22
+ maxCount: number;
23
+ /**
24
+ * Sets the maximum amount of characters allowed.
25
+ * @deprecated = true
26
+ */
15
27
  maxLength: number;
16
28
  /**
17
29
  * @internal
@@ -6,9 +6,11 @@ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("
6
6
  export declare const WithChildren: {
7
7
  (args: any): JSX.Element;
8
8
  args: {
9
+ hasCharacterCounter?: boolean;
9
10
  id?: string;
10
11
  inputLength?: number;
11
12
  isInverse?: boolean;
13
+ maxCount?: number;
12
14
  maxLength?: number;
13
15
  testId?: string;
14
16
  defaultChecked?: boolean;
@@ -272,9 +274,11 @@ export declare const WithChildren: {
272
274
  export declare const TextArea: {
273
275
  (args: any): JSX.Element;
274
276
  args: {
277
+ hasCharacterCounter?: boolean;
275
278
  id?: string;
276
279
  inputLength?: number;
277
280
  isInverse?: boolean;
281
+ maxCount?: number;
278
282
  maxLength?: number;
279
283
  testId?: string;
280
284
  defaultChecked?: boolean;
@@ -540,3 +544,15 @@ export declare const TextArea: {
540
544
  };
541
545
  };
542
546
  };
547
+ export declare const MaxCountAndMaxLength: {
548
+ (args: any): JSX.Element;
549
+ args: {
550
+ maxCount: number;
551
+ maxLength: number;
552
+ };
553
+ parameters: {
554
+ controls: {
555
+ exclude: string[];
556
+ };
557
+ };
558
+ };
@@ -24,6 +24,13 @@ export interface FormFieldContainerBaseProps {
24
24
  * ID of the form field. Also used in the descrption ID.
25
25
  */
26
26
  fieldId: string;
27
+ /**
28
+ * Enables Character Counter by default.
29
+ * When set to false, the default HTML attribute of 'maxlength' will work.
30
+ * Note: This is a temporary prop and will be removed in future releases.
31
+ @default true
32
+ */
33
+ hasCharacterCounter?: boolean;
27
34
  /**
28
35
  * Content of the helper message.
29
36
  */
@@ -68,6 +75,11 @@ export interface FormFieldContainerBaseProps {
68
75
  /**
69
76
  * Enables the Character Counter and sets the maximum amount of characters allowed within the Input.
70
77
  */
78
+ maxCount?: number;
79
+ /**
80
+ * Enables the Character Counter and sets the maximum amount of characters allowed within the Input.
81
+ * @deprecated = true
82
+ */
71
83
  maxLength?: number;
72
84
  /**
73
85
  * Style properties for the helper or error message
@@ -97,6 +97,12 @@ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
97
97
  * If you have grid items that you don’t explicitly place on the grid, the auto-placement algorithm kicks in to automatically place the items.
98
98
  */
99
99
  gridAutoFlow?: GridAutoFlow;
100
+ /**
101
+ * Semantic HTML tag to be used for the Grid
102
+ * Examples: `nav`, `footer`, `main`, `figure`, `aside`, etc.
103
+ * @default `div`
104
+ */
105
+ as?: string;
100
106
  }
101
107
  /**
102
108
  * @children required
@@ -122,6 +128,12 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
122
128
  * Aligns the grid item within the cell along the block (column) axis. Applies to a grid item inside a single cell.
123
129
  */
124
130
  gridItemAlignSelf?: GridItemAlignSelf;
131
+ /**
132
+ * Semantic HTML tag to be used for the GridItem
133
+ * Examples: `nav`, `footer`, `main`, `figure`, `aside`, etc.
134
+ * @default `div`
135
+ */
136
+ as?: string;
125
137
  }
126
138
  export declare const Grid: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GridProps, import("../..").ThemeInterface>;
127
139
  export declare const GridItem: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GridItemProps, import("../..").ThemeInterface>;
@@ -18,6 +18,7 @@ export declare const IconPositions: {
18
18
  containerStyle?: React.CSSProperties;
19
19
  actionable?: boolean;
20
20
  errorMessage?: React.ReactNode;
21
+ hasCharacterCounter?: boolean;
21
22
  inputLength?: number;
22
23
  inputSize?: InputSize;
23
24
  isLabelVisuallyHidden?: boolean;
@@ -25,6 +26,7 @@ export declare const IconPositions: {
25
26
  labelStyle?: React.CSSProperties;
26
27
  labelText?: React.ReactNode;
27
28
  labelWidth?: number;
29
+ maxCount?: number;
28
30
  maxLength?: number;
29
31
  messageStyle?: React.CSSProperties;
30
32
  hasError?: boolean;
@@ -337,6 +339,325 @@ export declare const ClickableIcon: import("@storybook/csf").AnnotatedStoryFn<im
337
339
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, InputProps>;
338
340
  export declare const WithChildren: {
339
341
  (args: any): JSX.Element;
342
+ args: {
343
+ iconPosition: InputIconPosition;
344
+ isInverse?: boolean;
345
+ testId?: string;
346
+ containerStyle?: React.CSSProperties;
347
+ actionable?: boolean;
348
+ errorMessage?: React.ReactNode;
349
+ hasCharacterCounter?: boolean;
350
+ helperMessage?: React.ReactNode;
351
+ inputLength?: number;
352
+ inputSize?: InputSize;
353
+ isLabelVisuallyHidden?: boolean;
354
+ labelPosition?: LabelPosition;
355
+ labelStyle?: React.CSSProperties;
356
+ labelText?: React.ReactNode;
357
+ labelWidth?: number;
358
+ maxCount?: number;
359
+ maxLength?: number;
360
+ messageStyle?: React.CSSProperties;
361
+ hasError?: boolean;
362
+ icon?: React.ReactElement<import("react-magma-icons").IconProps, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)>;
363
+ iconAriaLabel?: string;
364
+ iconRef?: React.Ref<HTMLButtonElement>;
365
+ inputStyle?: React.CSSProperties;
366
+ isClearable?: boolean;
367
+ onClear?: () => void;
368
+ isPredictive?: boolean;
369
+ onIconClick?: () => void;
370
+ onIconKeyDown?: (event: any) => void;
371
+ theme?: any;
372
+ type?: InputType;
373
+ isPasswordInput?: boolean;
374
+ width?: string;
375
+ accept?: string;
376
+ alt?: string;
377
+ autoComplete?: string;
378
+ autoFocus?: boolean;
379
+ capture?: string | boolean;
380
+ checked?: boolean;
381
+ crossOrigin?: string;
382
+ disabled?: boolean;
383
+ form?: string;
384
+ formAction?: string;
385
+ formEncType?: string;
386
+ formMethod?: string;
387
+ formNoValidate?: boolean;
388
+ formTarget?: string;
389
+ height?: React.ReactText;
390
+ list?: string;
391
+ max?: React.ReactText;
392
+ min?: React.ReactText;
393
+ minLength?: number;
394
+ multiple?: boolean;
395
+ name?: string;
396
+ pattern?: string;
397
+ placeholder?: string;
398
+ readOnly?: boolean;
399
+ required?: boolean;
400
+ size?: number;
401
+ src?: string;
402
+ step?: React.ReactText;
403
+ value?: string | number | readonly string[];
404
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
405
+ defaultChecked?: boolean;
406
+ defaultValue?: string | number | readonly string[];
407
+ suppressContentEditableWarning?: boolean;
408
+ suppressHydrationWarning?: boolean;
409
+ accessKey?: string;
410
+ className?: string;
411
+ contentEditable?: boolean | "inherit" | "true" | "false";
412
+ contextMenu?: string;
413
+ dir?: string;
414
+ draggable?: boolean | "true" | "false";
415
+ hidden?: boolean;
416
+ id?: string;
417
+ lang?: string;
418
+ slot?: string;
419
+ spellCheck?: boolean | "true" | "false";
420
+ style?: React.CSSProperties;
421
+ tabIndex?: number;
422
+ title?: string;
423
+ translate?: "yes" | "no";
424
+ radioGroup?: string;
425
+ role?: React.AriaRole;
426
+ about?: string;
427
+ datatype?: string;
428
+ inlist?: any;
429
+ prefix?: string;
430
+ property?: string;
431
+ resource?: string;
432
+ typeof?: string;
433
+ vocab?: string;
434
+ autoCapitalize?: string;
435
+ autoCorrect?: string;
436
+ autoSave?: string;
437
+ color?: string;
438
+ itemProp?: string;
439
+ itemScope?: boolean;
440
+ itemType?: string;
441
+ itemID?: string;
442
+ itemRef?: string;
443
+ results?: number;
444
+ security?: string;
445
+ unselectable?: "on" | "off";
446
+ inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
447
+ is?: string;
448
+ 'aria-activedescendant'?: string;
449
+ 'aria-atomic'?: boolean | "true" | "false";
450
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both";
451
+ 'aria-busy'?: boolean | "true" | "false";
452
+ 'aria-checked'?: boolean | "true" | "false" | "mixed";
453
+ 'aria-colcount'?: number;
454
+ 'aria-colindex'?: number;
455
+ 'aria-colspan'?: number;
456
+ 'aria-controls'?: string;
457
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
458
+ 'aria-describedby'?: string;
459
+ 'aria-details'?: string;
460
+ 'aria-disabled'?: boolean | "true" | "false";
461
+ 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup";
462
+ 'aria-errormessage'?: string;
463
+ 'aria-expanded'?: boolean | "true" | "false";
464
+ 'aria-flowto'?: string;
465
+ 'aria-grabbed'?: boolean | "true" | "false";
466
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
467
+ 'aria-hidden'?: boolean | "true" | "false";
468
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
469
+ 'aria-keyshortcuts'?: string;
470
+ 'aria-label'?: string;
471
+ 'aria-labelledby'?: string;
472
+ 'aria-level'?: number;
473
+ 'aria-live'?: "off" | "assertive" | "polite";
474
+ 'aria-modal'?: boolean | "true" | "false";
475
+ 'aria-multiline'?: boolean | "true" | "false";
476
+ 'aria-multiselectable'?: boolean | "true" | "false";
477
+ 'aria-orientation'?: "horizontal" | "vertical";
478
+ 'aria-owns'?: string;
479
+ 'aria-placeholder'?: string;
480
+ 'aria-posinset'?: number;
481
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed";
482
+ 'aria-readonly'?: boolean | "true" | "false";
483
+ 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
484
+ 'aria-required'?: boolean | "true" | "false";
485
+ 'aria-roledescription'?: string;
486
+ 'aria-rowcount'?: number;
487
+ 'aria-rowindex'?: number;
488
+ 'aria-rowspan'?: number;
489
+ 'aria-selected'?: boolean | "true" | "false";
490
+ 'aria-setsize'?: number;
491
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
492
+ 'aria-valuemax'?: number;
493
+ 'aria-valuemin'?: number;
494
+ 'aria-valuenow'?: number;
495
+ 'aria-valuetext'?: string;
496
+ children?: React.ReactNode;
497
+ dangerouslySetInnerHTML?: {
498
+ __html: string;
499
+ };
500
+ onCopy?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
501
+ onCopyCapture?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
502
+ onCut?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
503
+ onCutCapture?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
504
+ onPaste?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
505
+ onPasteCapture?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
506
+ onCompositionEnd?: (event: React.CompositionEvent<HTMLInputElement>) => void;
507
+ onCompositionEndCapture?: (event: React.CompositionEvent<HTMLInputElement>) => void;
508
+ onCompositionStart?: (event: React.CompositionEvent<HTMLInputElement>) => void;
509
+ onCompositionStartCapture?: (event: React.CompositionEvent<HTMLInputElement>) => void;
510
+ onCompositionUpdate?: (event: React.CompositionEvent<HTMLInputElement>) => void;
511
+ onCompositionUpdateCapture?: (event: React.CompositionEvent<HTMLInputElement>) => void;
512
+ onFocus?: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
513
+ onFocusCapture?: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
514
+ onBlur?: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
515
+ onBlurCapture?: (event: React.FocusEvent<HTMLInputElement, Element>) => void;
516
+ onChangeCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
517
+ onBeforeInput?: (event: React.FormEvent<HTMLInputElement>) => void;
518
+ onBeforeInputCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
519
+ onInput?: (event: React.FormEvent<HTMLInputElement>) => void;
520
+ onInputCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
521
+ onReset?: (event: React.FormEvent<HTMLInputElement>) => void;
522
+ onResetCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
523
+ onSubmit?: (event: React.FormEvent<HTMLInputElement>) => void;
524
+ onSubmitCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
525
+ onInvalid?: (event: React.FormEvent<HTMLInputElement>) => void;
526
+ onInvalidCapture?: (event: React.FormEvent<HTMLInputElement>) => void;
527
+ onLoad?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
528
+ onLoadCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
529
+ onError?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
530
+ onErrorCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
531
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
532
+ onKeyDownCapture?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
533
+ onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
534
+ onKeyPressCapture?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
535
+ onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
536
+ onKeyUpCapture?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
537
+ onAbort?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
538
+ onAbortCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
539
+ onCanPlay?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
540
+ onCanPlayCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
541
+ onCanPlayThrough?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
542
+ onCanPlayThroughCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
543
+ onDurationChange?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
544
+ onDurationChangeCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
545
+ onEmptied?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
546
+ onEmptiedCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
547
+ onEncrypted?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
548
+ onEncryptedCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
549
+ onEnded?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
550
+ onEndedCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
551
+ onLoadedData?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
552
+ onLoadedDataCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
553
+ onLoadedMetadata?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
554
+ onLoadedMetadataCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
555
+ onLoadStart?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
556
+ onLoadStartCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
557
+ onPause?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
558
+ onPauseCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
559
+ onPlay?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
560
+ onPlayCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
561
+ onPlaying?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
562
+ onPlayingCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
563
+ onProgress?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
564
+ onProgressCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
565
+ onRateChange?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
566
+ onRateChangeCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
567
+ onSeeked?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
568
+ onSeekedCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
569
+ onSeeking?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
570
+ onSeekingCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
571
+ onStalled?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
572
+ onStalledCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
573
+ onSuspend?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
574
+ onSuspendCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
575
+ onTimeUpdate?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
576
+ onTimeUpdateCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
577
+ onVolumeChange?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
578
+ onVolumeChangeCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
579
+ onWaiting?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
580
+ onWaitingCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
581
+ onAuxClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
582
+ onAuxClickCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
583
+ onClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
584
+ onClickCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
585
+ onContextMenu?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
586
+ onContextMenuCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
587
+ onDoubleClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
588
+ onDoubleClickCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
589
+ onDrag?: (event: React.DragEvent<HTMLInputElement>) => void;
590
+ onDragCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
591
+ onDragEnd?: (event: React.DragEvent<HTMLInputElement>) => void;
592
+ onDragEndCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
593
+ onDragEnter?: (event: React.DragEvent<HTMLInputElement>) => void;
594
+ onDragEnterCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
595
+ onDragExit?: (event: React.DragEvent<HTMLInputElement>) => void;
596
+ onDragExitCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
597
+ onDragLeave?: (event: React.DragEvent<HTMLInputElement>) => void;
598
+ onDragLeaveCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
599
+ onDragOver?: (event: React.DragEvent<HTMLInputElement>) => void;
600
+ onDragOverCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
601
+ onDragStart?: (event: React.DragEvent<HTMLInputElement>) => void;
602
+ onDragStartCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
603
+ onDrop?: (event: React.DragEvent<HTMLInputElement>) => void;
604
+ onDropCapture?: (event: React.DragEvent<HTMLInputElement>) => void;
605
+ onMouseDown?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
606
+ onMouseDownCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
607
+ onMouseEnter?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
608
+ onMouseLeave?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
609
+ onMouseMove?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
610
+ onMouseMoveCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
611
+ onMouseOut?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
612
+ onMouseOutCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
613
+ onMouseOver?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
614
+ onMouseOverCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
615
+ onMouseUp?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
616
+ onMouseUpCapture?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
617
+ onSelect?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
618
+ onSelectCapture?: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
619
+ onTouchCancel?: (event: React.TouchEvent<HTMLInputElement>) => void;
620
+ onTouchCancelCapture?: (event: React.TouchEvent<HTMLInputElement>) => void;
621
+ onTouchEnd?: (event: React.TouchEvent<HTMLInputElement>) => void;
622
+ onTouchEndCapture?: (event: React.TouchEvent<HTMLInputElement>) => void;
623
+ onTouchMove?: (event: React.TouchEvent<HTMLInputElement>) => void;
624
+ onTouchMoveCapture?: (event: React.TouchEvent<HTMLInputElement>) => void;
625
+ onTouchStart?: (event: React.TouchEvent<HTMLInputElement>) => void;
626
+ onTouchStartCapture?: (event: React.TouchEvent<HTMLInputElement>) => void;
627
+ onPointerDown?: (event: React.PointerEvent<HTMLInputElement>) => void;
628
+ onPointerDownCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
629
+ onPointerMove?: (event: React.PointerEvent<HTMLInputElement>) => void;
630
+ onPointerMoveCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
631
+ onPointerUp?: (event: React.PointerEvent<HTMLInputElement>) => void;
632
+ onPointerUpCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
633
+ onPointerCancel?: (event: React.PointerEvent<HTMLInputElement>) => void;
634
+ onPointerCancelCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
635
+ onPointerEnter?: (event: React.PointerEvent<HTMLInputElement>) => void;
636
+ onPointerEnterCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
637
+ onPointerLeave?: (event: React.PointerEvent<HTMLInputElement>) => void;
638
+ onPointerLeaveCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
639
+ onPointerOver?: (event: React.PointerEvent<HTMLInputElement>) => void;
640
+ onPointerOverCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
641
+ onPointerOut?: (event: React.PointerEvent<HTMLInputElement>) => void;
642
+ onPointerOutCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
643
+ onGotPointerCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
644
+ onGotPointerCaptureCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
645
+ onLostPointerCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
646
+ onLostPointerCaptureCapture?: (event: React.PointerEvent<HTMLInputElement>) => void;
647
+ onScroll?: (event: React.UIEvent<HTMLInputElement, UIEvent>) => void;
648
+ onScrollCapture?: (event: React.UIEvent<HTMLInputElement, UIEvent>) => void;
649
+ onWheel?: (event: React.WheelEvent<HTMLInputElement>) => void;
650
+ onWheelCapture?: (event: React.WheelEvent<HTMLInputElement>) => void;
651
+ onAnimationStart?: (event: React.AnimationEvent<HTMLInputElement>) => void;
652
+ onAnimationStartCapture?: (event: React.AnimationEvent<HTMLInputElement>) => void;
653
+ onAnimationEnd?: (event: React.AnimationEvent<HTMLInputElement>) => void;
654
+ onAnimationEndCapture?: (event: React.AnimationEvent<HTMLInputElement>) => void;
655
+ onAnimationIteration?: (event: React.AnimationEvent<HTMLInputElement>) => void;
656
+ onAnimationIterationCapture?: (event: React.AnimationEvent<HTMLInputElement>) => void;
657
+ onTransitionEnd?: (event: React.TransitionEvent<HTMLInputElement>) => void;
658
+ onTransitionEndCapture?: (event: React.TransitionEvent<HTMLInputElement>) => void;
659
+ css?: import("@emotion/core").InterpolationWithTheme<any>;
660
+ };
340
661
  parameters: {
341
662
  controls: {
342
663
  exclude: string[];
@@ -8,6 +8,6 @@ export interface InputMessageProps extends React.HTMLAttributes<HTMLDivElement>
8
8
  */
9
9
  inputSize?: InputSize;
10
10
  isInverse?: boolean;
11
- maxLength?: number;
11
+ maxCount?: number;
12
12
  }
13
13
  export declare const InputMessage: React.FunctionComponent<InputMessageProps>;
@@ -23,6 +23,13 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
23
23
  * Style properties for the component container element
24
24
  */
25
25
  containerStyle?: React.CSSProperties;
26
+ /**
27
+ * Enables Character Counter by default.
28
+ * When set to false, the default HTML attribute of 'maxlength' will work.
29
+ * Note: This is a temporary prop and will be removed in future releases.
30
+ @default true
31
+ */
32
+ hasCharacterCounter?: boolean;
26
33
  /**
27
34
  * @internal
28
35
  */
@@ -74,6 +81,11 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
74
81
  /**
75
82
  * A number value which gives Character Counter the maximum length of allowable characters in an Input.
76
83
  */
84
+ maxCount?: number;
85
+ /**
86
+ * A number value which gives Character Counter the maximum length of allowable characters in an Input.
87
+ * @deprecated = true
88
+ */
77
89
  maxLength?: number;
78
90
  /**
79
91
  * Action that will fire when icon is clicked
@@ -118,6 +130,7 @@ export interface InputWrapperStylesProps {
118
130
  }
119
131
  export declare const inputWrapperStyles: (props: InputWrapperStylesProps) => import("@emotion/utils").SerializedStyles;
120
132
  export interface InputBaseStylesProps {
133
+ hasCharacterCounter?: boolean;
121
134
  isInverse?: boolean;
122
135
  iconPosition?: InputIconPosition;
123
136
  inputSize?: InputSize;
@@ -55,11 +55,20 @@ export interface BasePaginationProps extends React.HTMLAttributes<HTMLDivElement
55
55
  * @default false
56
56
  */
57
57
  showLastButton?: boolean;
58
+ /**
59
+ * Enum which changes Pagination into a dropdown when using 'simple'.
60
+ * @default PaginationType.classic
61
+ */
62
+ type?: PaginationType;
63
+ }
64
+ export declare enum PaginationType {
65
+ classic = "classic",
66
+ simple = "simple"
58
67
  }
59
68
  export interface ControlledPaginationProps extends BasePaginationProps {
60
69
  defaultPage: never;
61
70
  /**
62
- * Current page number
71
+ * Current page number when used with onPageChange.
63
72
  */
64
73
  page?: number;
65
74
  }
@@ -68,6 +77,9 @@ export interface UncontrolledPaginationProps extends BasePaginationProps {
68
77
  * Page selected by default when the component is uncontrolled
69
78
  */
70
79
  defaultPage?: number;
80
+ /**
81
+ * Current page number when used with onPageChange.
82
+ */
71
83
  page: number;
72
84
  }
73
85
  export declare type PaginationProps = ControlledPaginationProps | UncontrolledPaginationProps;
@@ -75,4 +87,8 @@ export declare enum PageButtonSize {
75
87
  medium = "medium",
76
88
  large = "large"
77
89
  }
90
+ export declare const NavButton: import("@emotion/styled-base").StyledComponent<({} & import("../IconButton").IconTextButtonProps & React.RefAttributes<HTMLButtonElement>) | ({
91
+ children?: never;
92
+ iconPosition?: never;
93
+ } & import("../IconButton").IconOnlyButtonProps & React.RefAttributes<HTMLButtonElement>), any, import("../..").ThemeInterface>;
78
94
  export declare const Pagination: React.ForwardRefExoticComponent<(ControlledPaginationProps & React.RefAttributes<HTMLDivElement>) | (UncontrolledPaginationProps & React.RefAttributes<HTMLDivElement>)>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationProps } from './Pagination';
2
3
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
4
  export default _default;
@@ -6,4 +7,5 @@ export declare const DefaultSelected: import("@storybook/csf").AnnotatedStoryFn<
6
7
  export declare const AdjacentPages: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PaginationProps>;
7
8
  export declare const EdgePages: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PaginationProps>;
8
9
  export declare const Size: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PaginationProps>;
9
- export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PaginationProps>;
10
+ export declare const SimplePagination: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, PaginationProps>;
11
+ export declare const SimplePaginationOnPageChange: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const SimplePagination: React.ForwardRefExoticComponent<(import("./Pagination").ControlledPaginationProps & React.RefAttributes<HTMLDivElement>) | (import("./Pagination").UncontrolledPaginationProps & React.RefAttributes<HTMLDivElement>)>;
@@ -17,5 +17,6 @@ export declare const StyledItem: import("@emotion/styled-base").StyledComponent<
17
17
  export declare const SelectedItemsWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "slot" | "style" | "title" | "color" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, import("../..").ThemeInterface>;
18
18
  export declare const SelectedItemButton: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
19
19
  isInverse?: boolean;
20
+ disabled?: boolean;
20
21
  }, import("../..").ThemeInterface>;
21
22
  export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "slot" | "style" | "title" | "color" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, import("../..").ThemeInterface>;
@@ -287,6 +287,15 @@ export declare const ControlledPagination: {
287
287
  };
288
288
  };
289
289
  export declare const UncontrolledPagination: (args: any) => JSX.Element;
290
+ export declare const PaginationWithSquareCorners: {
291
+ (args: any): JSX.Element;
292
+ args: {
293
+ hasSquareCorners: boolean;
294
+ hasHoverStyles: boolean;
295
+ hasVerticalBorders: boolean;
296
+ hasZebraStripes: boolean;
297
+ };
298
+ };
290
299
  export declare const PaginationInverse: {
291
300
  (args: any): JSX.Element;
292
301
  args: {
@@ -29,6 +29,11 @@ export interface BaseTablePaginationProps extends React.HTMLAttributes<HTMLDivEl
29
29
  * @internal
30
30
  */
31
31
  testId?: string;
32
+ /**
33
+ * If true, the table paginator will have square edges
34
+ * @default true
35
+ */
36
+ hasSquareCorners?: boolean;
32
37
  }
33
38
  export interface ControlledPageProps {
34
39
  /**