@wistia/vhs 5.0.4-beta.53dcd1f7.d2de9cf → 5.0.4-beta.556de665.bdb4ad7
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/index.d.ts +1194 -1297
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +505 -603
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _$styled_components0 from "styled-components";
|
|
|
3
3
|
import { DefaultTheme, css } from "styled-components";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as _$react from "react";
|
|
6
|
-
import { ChangeEvent, ComponentClass, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, ComponentType,
|
|
6
|
+
import { ChangeEvent, ComponentClass, ComponentProps, ComponentPropsWithRef, ComponentPropsWithoutRef, ComponentType, ElementType, FocusEvent, HTMLInputTypeAttribute, JSX, KeyboardEvent, MouseEvent, PropsWithChildren, ReactElement, ReactNode, Ref, RefObject } from "react";
|
|
7
7
|
import { Field, FormikErrors, FormikHelpers, FormikProps, useFormikContext } from "formik";
|
|
8
8
|
import { ReactEditor } from "slate-react";
|
|
9
9
|
import { BaseEditor, Descendant, Editor } from "slate";
|
|
@@ -225,11 +225,11 @@ interface VHSTheme {
|
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region src/helpers/copyToClipboard/copyToClipboard.d.ts
|
|
228
|
-
/**
|
|
229
|
-
* Copies a string to user's clipboard for easy pasting in another location
|
|
230
|
-
*
|
|
231
|
-
* @param {string} textToCopy - the string that will be copied to users clipboard
|
|
232
|
-
* @returns {Promise} - Promise object that represents the copied string
|
|
228
|
+
/**
|
|
229
|
+
* Copies a string to user's clipboard for easy pasting in another location
|
|
230
|
+
*
|
|
231
|
+
* @param {string} textToCopy - the string that will be copied to users clipboard
|
|
232
|
+
* @returns {Promise} - Promise object that represents the copied string
|
|
233
233
|
*/
|
|
234
234
|
declare const copyToClipboard: (textToCopy: string) => Promise<void>;
|
|
235
235
|
//#endregion
|
|
@@ -355,20 +355,20 @@ declare const gradients: {
|
|
|
355
355
|
};
|
|
356
356
|
type GradientNameType = keyof typeof gradients;
|
|
357
357
|
type GetBackgroundGradientType = GradientNameType | undefined;
|
|
358
|
-
/**
|
|
359
|
-
* Retrieves the CSS background gradient corresponding to the given gradient name.
|
|
360
|
-
* If the specified gradient name is not found, the default gradient ('defaultDarkOne') is returned.
|
|
361
|
-
* @param {GradientName} gradientName - The name of the gradient to retrieve.
|
|
362
|
-
* @returns {FlattenSimpleInterpolation} The CSS string representing the specified gradient.
|
|
358
|
+
/**
|
|
359
|
+
* Retrieves the CSS background gradient corresponding to the given gradient name.
|
|
360
|
+
* If the specified gradient name is not found, the default gradient ('defaultDarkOne') is returned.
|
|
361
|
+
* @param {GradientName} gradientName - The name of the gradient to retrieve.
|
|
362
|
+
* @returns {FlattenSimpleInterpolation} The CSS string representing the specified gradient.
|
|
363
363
|
*/
|
|
364
364
|
declare const getBackgroundGradient: (gradientName?: GetBackgroundGradientType) => ReturnType<typeof css>;
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/helpers/getBackgroundGradient/getSemiRandomBackgroundGradient.d.ts
|
|
367
|
-
/**
|
|
368
|
-
* Retrieves a semi-random background gradient based on the given id.
|
|
369
|
-
*
|
|
370
|
-
* @param {string} id - The id to use to generate the semi-random background gradient.
|
|
371
|
-
* @returns {GradientName} gradientName
|
|
367
|
+
/**
|
|
368
|
+
* Retrieves a semi-random background gradient based on the given id.
|
|
369
|
+
*
|
|
370
|
+
* @param {string} id - The id to use to generate the semi-random background gradient.
|
|
371
|
+
* @returns {GradientName} gradientName
|
|
372
372
|
*/
|
|
373
373
|
declare const getSemiRandomBackgroundGradient: (id: string) => GradientNameType | undefined;
|
|
374
374
|
//#endregion
|
|
@@ -462,108 +462,108 @@ type DefaultLinkWrapperProps = {
|
|
|
462
462
|
children: ReactNode;
|
|
463
463
|
};
|
|
464
464
|
type LinkProps = ComponentPropsWithoutRef<'a'> & {
|
|
465
|
-
/**
|
|
466
|
-
* A Promise to invoke before navigating to location.
|
|
467
|
-
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
465
|
+
/**
|
|
466
|
+
* A Promise to invoke before navigating to location.
|
|
467
|
+
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
468
468
|
*/
|
|
469
469
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
470
|
-
/**
|
|
471
|
-
* The content that will be rendered inside the link
|
|
470
|
+
/**
|
|
471
|
+
* The content that will be rendered inside the link
|
|
472
472
|
*/
|
|
473
473
|
children: ReactNode;
|
|
474
|
-
/**
|
|
475
|
-
* Disables Link
|
|
474
|
+
/**
|
|
475
|
+
* Disables Link
|
|
476
476
|
*/
|
|
477
477
|
disabled?: boolean;
|
|
478
|
-
/**
|
|
479
|
-
* @ignore
|
|
480
|
-
* Force a Link into a particular css state (for debugging)
|
|
478
|
+
/**
|
|
479
|
+
* @ignore
|
|
480
|
+
* Force a Link into a particular css state (for debugging)
|
|
481
481
|
*/
|
|
482
482
|
forceState?: 'active' | 'focus' | 'hover';
|
|
483
|
-
/**
|
|
484
|
-
* The entity to link to (url, email address, telephone number)
|
|
483
|
+
/**
|
|
484
|
+
* The entity to link to (url, email address, telephone number)
|
|
485
485
|
*/
|
|
486
486
|
href: string;
|
|
487
|
-
/**
|
|
488
|
-
* Use this if your link is "nested" inside another link
|
|
487
|
+
/**
|
|
488
|
+
* Use this if your link is "nested" inside another link
|
|
489
489
|
*/
|
|
490
490
|
nested?: boolean;
|
|
491
|
-
/**
|
|
492
|
-
* An object that will be converted into a search parameter string and appended to
|
|
493
|
-
* the `to` prop value
|
|
491
|
+
/**
|
|
492
|
+
* An object that will be converted into a search parameter string and appended to
|
|
493
|
+
* the `to` prop value
|
|
494
494
|
*/
|
|
495
495
|
params?: LinkURLParameters;
|
|
496
|
-
/**
|
|
497
|
-
* Type of link to display
|
|
498
|
-
*
|
|
499
|
-
* * `email` creates a mailto
|
|
500
|
-
* * `phone` creates a telephone number
|
|
501
|
-
* * `external` will open links in a new window
|
|
496
|
+
/**
|
|
497
|
+
* Type of link to display
|
|
498
|
+
*
|
|
499
|
+
* * `email` creates a mailto
|
|
500
|
+
* * `phone` creates a telephone number
|
|
501
|
+
* * `external` will open links in a new window
|
|
502
502
|
*/
|
|
503
503
|
type?: LinkTypes;
|
|
504
|
-
/**
|
|
505
|
-
* Will only display an underline when the Link is in a hover state
|
|
504
|
+
/**
|
|
505
|
+
* Will only display an underline when the Link is in a hover state
|
|
506
506
|
*/
|
|
507
507
|
underlineOnHover?: boolean;
|
|
508
|
-
/**
|
|
509
|
-
* Renders a link without any of the default styling applied
|
|
508
|
+
/**
|
|
509
|
+
* Renders a link without any of the default styling applied
|
|
510
510
|
*/
|
|
511
511
|
unstyled?: boolean;
|
|
512
|
-
/**
|
|
513
|
-
* The visual type of Link to display
|
|
512
|
+
/**
|
|
513
|
+
* The visual type of Link to display
|
|
514
514
|
*/
|
|
515
515
|
variant?: 'dangerous' | 'primary' | 'secondary';
|
|
516
516
|
};
|
|
517
517
|
declare const Link$1: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTMLProps<_$react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
518
|
-
/**
|
|
519
|
-
* A Promise to invoke before navigating to location.
|
|
520
|
-
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
518
|
+
/**
|
|
519
|
+
* A Promise to invoke before navigating to location.
|
|
520
|
+
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
521
521
|
*/
|
|
522
522
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
523
|
-
/**
|
|
524
|
-
* The content that will be rendered inside the link
|
|
523
|
+
/**
|
|
524
|
+
* The content that will be rendered inside the link
|
|
525
525
|
*/
|
|
526
526
|
children: ReactNode;
|
|
527
|
-
/**
|
|
528
|
-
* Disables Link
|
|
527
|
+
/**
|
|
528
|
+
* Disables Link
|
|
529
529
|
*/
|
|
530
530
|
disabled?: boolean;
|
|
531
|
-
/**
|
|
532
|
-
* @ignore
|
|
533
|
-
* Force a Link into a particular css state (for debugging)
|
|
531
|
+
/**
|
|
532
|
+
* @ignore
|
|
533
|
+
* Force a Link into a particular css state (for debugging)
|
|
534
534
|
*/
|
|
535
535
|
forceState?: "active" | "focus" | "hover";
|
|
536
|
-
/**
|
|
537
|
-
* The entity to link to (url, email address, telephone number)
|
|
536
|
+
/**
|
|
537
|
+
* The entity to link to (url, email address, telephone number)
|
|
538
538
|
*/
|
|
539
539
|
href: string;
|
|
540
|
-
/**
|
|
541
|
-
* Use this if your link is "nested" inside another link
|
|
540
|
+
/**
|
|
541
|
+
* Use this if your link is "nested" inside another link
|
|
542
542
|
*/
|
|
543
543
|
nested?: boolean;
|
|
544
|
-
/**
|
|
545
|
-
* An object that will be converted into a search parameter string and appended to
|
|
546
|
-
* the `to` prop value
|
|
544
|
+
/**
|
|
545
|
+
* An object that will be converted into a search parameter string and appended to
|
|
546
|
+
* the `to` prop value
|
|
547
547
|
*/
|
|
548
548
|
params?: LinkURLParameters;
|
|
549
|
-
/**
|
|
550
|
-
* Type of link to display
|
|
551
|
-
*
|
|
552
|
-
* * `email` creates a mailto
|
|
553
|
-
* * `phone` creates a telephone number
|
|
554
|
-
* * `external` will open links in a new window
|
|
549
|
+
/**
|
|
550
|
+
* Type of link to display
|
|
551
|
+
*
|
|
552
|
+
* * `email` creates a mailto
|
|
553
|
+
* * `phone` creates a telephone number
|
|
554
|
+
* * `external` will open links in a new window
|
|
555
555
|
*/
|
|
556
556
|
type?: LinkTypes;
|
|
557
|
-
/**
|
|
558
|
-
* Will only display an underline when the Link is in a hover state
|
|
557
|
+
/**
|
|
558
|
+
* Will only display an underline when the Link is in a hover state
|
|
559
559
|
*/
|
|
560
560
|
underlineOnHover?: boolean;
|
|
561
|
-
/**
|
|
562
|
-
* Renders a link without any of the default styling applied
|
|
561
|
+
/**
|
|
562
|
+
* Renders a link without any of the default styling applied
|
|
563
563
|
*/
|
|
564
564
|
unstyled?: boolean;
|
|
565
|
-
/**
|
|
566
|
-
* The visual type of Link to display
|
|
565
|
+
/**
|
|
566
|
+
* The visual type of Link to display
|
|
567
567
|
*/
|
|
568
568
|
variant?: "dangerous" | "primary" | "secondary";
|
|
569
569
|
} & _$react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -587,103 +587,6 @@ declare const VHSProvider: ({
|
|
|
587
587
|
Link
|
|
588
588
|
}: VHSProviderProps) => _$react_jsx_runtime0.JSX.Element;
|
|
589
589
|
//#endregion
|
|
590
|
-
//#region src/hooks/useBoolean/useBoolean.d.ts
|
|
591
|
-
type UseBooleanReturn = [boolean, () => void, () => void, () => void, Dispatch<SetStateAction<boolean>>];
|
|
592
|
-
declare const useBoolean: (initialValue?: boolean) => UseBooleanReturn;
|
|
593
|
-
//#endregion
|
|
594
|
-
//#region src/hooks/useClipboard/useClipboard.d.ts
|
|
595
|
-
declare const useClipboard: (textToCopy: string, timeout?: number) => [() => Promise<void>, boolean, boolean];
|
|
596
|
-
//#endregion
|
|
597
|
-
//#region src/hooks/useElementObserver/useElementObserver.d.ts
|
|
598
|
-
type Rect = {
|
|
599
|
-
width: number;
|
|
600
|
-
height: number;
|
|
601
|
-
top: number;
|
|
602
|
-
left: number;
|
|
603
|
-
bottom: number;
|
|
604
|
-
right: number;
|
|
605
|
-
x: number;
|
|
606
|
-
y: number;
|
|
607
|
-
};
|
|
608
|
-
declare const useElementObserver: <T extends HTMLElement>() => [RefObject<T | null>, Rect];
|
|
609
|
-
//#endregion
|
|
610
|
-
//#region src/hooks/useEvent/useEvent.d.ts
|
|
611
|
-
type AddEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
|
|
612
|
-
type RemoveEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
|
|
613
|
-
declare const useEvent: <T extends Event>(eventName: Parameters<AddEventListenerType>[0], eventHandler: (event: T) => unknown, eventTarget?: unknown, eventOptions?: Parameters<RemoveEventListenerType>[2]) => void;
|
|
614
|
-
//#endregion
|
|
615
|
-
//#region src/hooks/useFocusTrap/useFocusTrap.d.ts
|
|
616
|
-
type UseFocusTrapOptions = {
|
|
617
|
-
disableAriaHider?: boolean;
|
|
618
|
-
focusSelector?: HTMLElement | RefObject<HTMLElement | null> | string | null | undefined;
|
|
619
|
-
};
|
|
620
|
-
declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
|
|
621
|
-
//#endregion
|
|
622
|
-
//#region src/hooks/useForceUpdate/useForceUpdate.d.ts
|
|
623
|
-
declare const useForceUpdate: () => (() => void);
|
|
624
|
-
//#endregion
|
|
625
|
-
//#region src/hooks/useIsHovered/useIsHovered.d.ts
|
|
626
|
-
type HoverProps = {
|
|
627
|
-
onFocus: () => void;
|
|
628
|
-
onMouseEnter: () => void;
|
|
629
|
-
onBlur: () => void;
|
|
630
|
-
onMouseLeave: () => void;
|
|
631
|
-
onMouseMove?: () => void;
|
|
632
|
-
};
|
|
633
|
-
declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
|
|
634
|
-
//#endregion
|
|
635
|
-
//#region src/hooks/useKey/useKey.d.ts
|
|
636
|
-
type KeyFilterPredicate = (evt: KeyboardEvent) => boolean;
|
|
637
|
-
type KeyFilter = KeyFilterPredicate | boolean | string | null | undefined;
|
|
638
|
-
type EventHandler = (event: KeyboardEvent) => unknown;
|
|
639
|
-
type UseKeyOptions = {
|
|
640
|
-
eventName?: string;
|
|
641
|
-
eventTarget?: Parameters<typeof useEvent>[2];
|
|
642
|
-
eventOptions?: Parameters<typeof useEvent>[3];
|
|
643
|
-
};
|
|
644
|
-
declare const useKey: (key: KeyFilter, eventHandler: EventHandler, options?: UseKeyOptions, dependencies?: unknown[]) => void;
|
|
645
|
-
//#endregion
|
|
646
|
-
//#region src/hooks/useKeyPress/useKeyPress.d.ts
|
|
647
|
-
type KeyPressState = [boolean, KeyboardEvent | null];
|
|
648
|
-
declare const useKeyPress: (keyFilter: Parameters<typeof useKey>[0]) => KeyPressState;
|
|
649
|
-
//#endregion
|
|
650
|
-
//#region src/hooks/useKeyPressOnce/useKeyPressOnce.d.ts
|
|
651
|
-
type KeyEventHandler = (keyboardEvent: KeyboardEvent) => unknown;
|
|
652
|
-
declare const useKeyPressOnce: (key: Parameters<typeof useKeyPress>[0], keydownHandler?: KeyEventHandler | null, keyupHandler?: KeyEventHandler | null) => void;
|
|
653
|
-
//#endregion
|
|
654
|
-
//#region src/hooks/useLocalStorage/useLocalStorage.d.ts
|
|
655
|
-
type SetItemType = Storage['setItem'];
|
|
656
|
-
declare const useLocalStorage: <T, _>(key: Parameters<SetItemType>[0], initialValue: T, storage?: Storage) => [T | undefined, (newValue: T) => void, () => void];
|
|
657
|
-
//#endregion
|
|
658
|
-
//#region src/hooks/useMergedRefs/useMergedRefs.d.ts
|
|
659
|
-
type AcceptedElementTypes = HTMLElement | JSX.Element | ReactNode;
|
|
660
|
-
type AcceptedRefs = MutableRefObject<unknown> | ((element: AcceptedElementTypes) => unknown) | null | undefined;
|
|
661
|
-
declare const useMergedRefs: (refs: AcceptedRefs[]) => (element: AcceptedElementTypes) => void;
|
|
662
|
-
//#endregion
|
|
663
|
-
//#region src/hooks/useMq/useMq.d.ts
|
|
664
|
-
type MediaQueryBooleans = {
|
|
665
|
-
isXsAndUp: boolean;
|
|
666
|
-
isSmAndUp: boolean;
|
|
667
|
-
isMdAndUp: boolean;
|
|
668
|
-
isLgAndUp: boolean;
|
|
669
|
-
isXlAndUp: boolean;
|
|
670
|
-
isXsAndDown: boolean;
|
|
671
|
-
isSmAndDown: boolean;
|
|
672
|
-
isMdAndDown: boolean;
|
|
673
|
-
isLgAndDown: boolean;
|
|
674
|
-
isXlAndDown: boolean;
|
|
675
|
-
};
|
|
676
|
-
declare const useMq: () => MediaQueryBooleans;
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region src/hooks/useOnClickOutside/useOnClickOutside.d.ts
|
|
679
|
-
declare const useOnClickOutside: (ref: RefObject<HTMLElement | null | undefined>, handler: (event: Event) => unknown) => void;
|
|
680
|
-
//#endregion
|
|
681
|
-
//#region src/hooks/usePreventScroll/usePreventScroll.d.ts
|
|
682
|
-
declare const usePreventScroll: (locked: boolean) => void;
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region src/hooks/usePreviousValue/usePreviousValue.d.ts
|
|
685
|
-
declare const usePreviousValue: <T>(value: T) => T | undefined;
|
|
686
|
-
//#endregion
|
|
687
590
|
//#region src/hooks/useTheme/useTheme.d.ts
|
|
688
591
|
declare const useTheme: <T extends DefaultTheme = DefaultTheme>() => T;
|
|
689
592
|
//#endregion
|
|
@@ -696,49 +599,43 @@ type UseThemeColor = {
|
|
|
696
599
|
};
|
|
697
600
|
declare const useThemeColor: UseThemeColor;
|
|
698
601
|
//#endregion
|
|
699
|
-
//#region src/hooks/useWindowSize/useWindowSize.d.ts
|
|
700
|
-
declare const useWindowSize: (interval?: number) => {
|
|
701
|
-
width: number;
|
|
702
|
-
height: number;
|
|
703
|
-
};
|
|
704
|
-
//#endregion
|
|
705
602
|
//#region src/components/ModalBase/ModalBase.d.ts
|
|
706
603
|
type OnBeforeHideInterface = {
|
|
707
604
|
shouldShowMessage: boolean;
|
|
708
605
|
message: string;
|
|
709
606
|
};
|
|
710
607
|
type ModalBaseContentProps = {
|
|
711
|
-
/**
|
|
712
|
-
* Class name applied to the modal root
|
|
608
|
+
/**
|
|
609
|
+
* Class name applied to the modal root
|
|
713
610
|
*/
|
|
714
611
|
className?: string | undefined;
|
|
715
|
-
/**
|
|
716
|
-
* Render the modal initially in shown state
|
|
612
|
+
/**
|
|
613
|
+
* Render the modal initially in shown state
|
|
717
614
|
*/
|
|
718
615
|
initialShownState?: boolean;
|
|
719
|
-
/**
|
|
720
|
-
* The modal can be dismissed via esc button
|
|
616
|
+
/**
|
|
617
|
+
* The modal can be dismissed via esc button
|
|
721
618
|
*/
|
|
722
619
|
isDismissible?: boolean;
|
|
723
|
-
/**
|
|
724
|
-
* Callback invoked before the modal is hidden
|
|
620
|
+
/**
|
|
621
|
+
* Callback invoked before the modal is hidden
|
|
725
622
|
*/
|
|
726
623
|
onBeforeHide?: (() => OnBeforeHideInterface) | undefined;
|
|
727
|
-
/**
|
|
728
|
-
* Callback invoked when the modal is dismissed
|
|
624
|
+
/**
|
|
625
|
+
* Callback invoked when the modal is dismissed
|
|
729
626
|
*/
|
|
730
627
|
onHide?: ((...args: unknown[]) => unknown) | undefined;
|
|
731
|
-
/**
|
|
732
|
-
* Callback invoked when the modal is shown
|
|
628
|
+
/**
|
|
629
|
+
* Callback invoked when the modal is shown
|
|
733
630
|
*/
|
|
734
631
|
onShow?: ((...args: unknown[]) => unknown) | undefined;
|
|
735
|
-
/**
|
|
736
|
-
* Optional function that exposes the `hide` function at the call site allowing
|
|
737
|
-
* the option to call the `hide` function from outside of this component
|
|
632
|
+
/**
|
|
633
|
+
* Optional function that exposes the `hide` function at the call site allowing
|
|
634
|
+
* the option to call the `hide` function from outside of this component
|
|
738
635
|
*/
|
|
739
636
|
render?: (attemptHide: () => unknown) => ReactNode;
|
|
740
|
-
/**
|
|
741
|
-
* function(show, ref) that returns a node to open the modal
|
|
637
|
+
/**
|
|
638
|
+
* function(show, ref) that returns a node to open the modal
|
|
742
639
|
*/
|
|
743
640
|
toggle?: ((show: () => unknown, toggleButtonRef?: RefObject<HTMLElement | null | undefined>) => ReactNode) | undefined;
|
|
744
641
|
};
|
|
@@ -749,96 +646,96 @@ declare const ModalBase: {
|
|
|
749
646
|
//#endregion
|
|
750
647
|
//#region src/components/ActionModal/ActionModal.d.ts
|
|
751
648
|
type ActionModalProps = ComponentPropsWithoutRef<'div'> & {
|
|
752
|
-
/**
|
|
753
|
-
* Horizontally align modal to the left, center, or right of the container
|
|
649
|
+
/**
|
|
650
|
+
* Horizontally align modal to the left, center, or right of the container
|
|
754
651
|
*/
|
|
755
652
|
alignHorizontal?: 'center' | 'left' | 'normal' | 'right';
|
|
756
|
-
/**
|
|
757
|
-
* Vertically align modal to the top, center, or bottom of the container
|
|
653
|
+
/**
|
|
654
|
+
* Vertically align modal to the top, center, or bottom of the container
|
|
758
655
|
*/
|
|
759
656
|
alignVertical?: 'bottom' | 'center' | 'normal' | 'top';
|
|
760
|
-
/**
|
|
761
|
-
* Buttons to be shown at the bottom of the modal
|
|
657
|
+
/**
|
|
658
|
+
* Buttons to be shown at the bottom of the modal
|
|
762
659
|
*/
|
|
763
660
|
buttons?: ReactNode | ((hide: () => void) => ReactNode);
|
|
764
|
-
/**
|
|
765
|
-
* Contents of the modal
|
|
661
|
+
/**
|
|
662
|
+
* Contents of the modal
|
|
766
663
|
*/
|
|
767
664
|
children?: ReactNode;
|
|
768
|
-
/**
|
|
769
|
-
* Class to be applied to the base element of the modal
|
|
665
|
+
/**
|
|
666
|
+
* Class to be applied to the base element of the modal
|
|
770
667
|
*/
|
|
771
668
|
className?: string;
|
|
772
|
-
/**
|
|
773
|
-
* A prop that determines whether the modal will span the entirety of the screen vertically
|
|
669
|
+
/**
|
|
670
|
+
* A prop that determines whether the modal will span the entirety of the screen vertically
|
|
774
671
|
*/
|
|
775
672
|
fullHeight?: boolean;
|
|
776
|
-
/**
|
|
777
|
-
* Allows user to override default icon color
|
|
673
|
+
/**
|
|
674
|
+
* Allows user to override default icon color
|
|
778
675
|
*/
|
|
779
676
|
closeIconColorOverride?: string;
|
|
780
|
-
/**
|
|
781
|
-
* Increase the zIndex of the Modal, this should be used when calling ActionModal from a Menu
|
|
782
|
-
* this will prevent the Menu from staying above the ActionModal
|
|
677
|
+
/**
|
|
678
|
+
* Increase the zIndex of the Modal, this should be used when calling ActionModal from a Menu
|
|
679
|
+
* this will prevent the Menu from staying above the ActionModal
|
|
783
680
|
*/
|
|
784
681
|
elevated?: boolean;
|
|
785
|
-
/**
|
|
786
|
-
* Optional illustration to display alongside the modal
|
|
682
|
+
/**
|
|
683
|
+
* Optional illustration to display alongside the modal
|
|
787
684
|
*/
|
|
788
685
|
illustration?: ReactNode;
|
|
789
|
-
/**
|
|
790
|
-
* Background color that appears behind the optional illustration
|
|
791
|
-
* Can be any css background color or "blue", "brandBlue", "green",
|
|
792
|
-
* "pink", "purple", or "yellow" for theme colors
|
|
686
|
+
/**
|
|
687
|
+
* Background color that appears behind the optional illustration
|
|
688
|
+
* Can be any css background color or "blue", "brandBlue", "green",
|
|
689
|
+
* "pink", "purple", or "yellow" for theme colors
|
|
793
690
|
*/
|
|
794
691
|
illustrationBackgroundColor?: string;
|
|
795
|
-
/**
|
|
796
|
-
* Render the modal initially in shown state
|
|
692
|
+
/**
|
|
693
|
+
* Render the modal initially in shown state
|
|
797
694
|
*/
|
|
798
695
|
initialShownState?: boolean;
|
|
799
|
-
/**
|
|
800
|
-
* Allow the user to close the modal via x button or backdrop click
|
|
696
|
+
/**
|
|
697
|
+
* Allow the user to close the modal via x button or backdrop click
|
|
801
698
|
*/
|
|
802
699
|
isDismissible?: boolean;
|
|
803
|
-
/**
|
|
804
|
-
* Callback invoked before the modal is hidden
|
|
700
|
+
/**
|
|
701
|
+
* Callback invoked before the modal is hidden
|
|
805
702
|
*/
|
|
806
703
|
onBeforeHide?: () => OnBeforeHideInterface;
|
|
807
|
-
/**
|
|
808
|
-
* Callback invoked when the modal is dismissed
|
|
704
|
+
/**
|
|
705
|
+
* Callback invoked when the modal is dismissed
|
|
809
706
|
*/
|
|
810
707
|
onHide?: () => void;
|
|
811
|
-
/**
|
|
812
|
-
* Callback invoked when the modal is shown
|
|
708
|
+
/**
|
|
709
|
+
* Callback invoked when the modal is shown
|
|
813
710
|
*/
|
|
814
711
|
onShow?: () => void;
|
|
815
|
-
/**
|
|
816
|
-
* Optional function that exposes the `hide` function at the call site allowing
|
|
817
|
-
* the option to call the `hide` function from outside of this component
|
|
712
|
+
/**
|
|
713
|
+
* Optional function that exposes the `hide` function at the call site allowing
|
|
714
|
+
* the option to call the `hide` function from outside of this component
|
|
818
715
|
*/
|
|
819
716
|
render?: (hide: (event?: MouseEvent) => void) => ReactNode;
|
|
820
|
-
/**
|
|
821
|
-
* Title to display in the modal
|
|
717
|
+
/**
|
|
718
|
+
* Title to display in the modal
|
|
822
719
|
*/
|
|
823
720
|
title: string;
|
|
824
|
-
/**
|
|
825
|
-
* function(show, ref) that returns a node to open the modal
|
|
721
|
+
/**
|
|
722
|
+
* function(show, ref) that returns a node to open the modal
|
|
826
723
|
*/
|
|
827
724
|
toggle?: (show: () => unknown, toggleButtonRef?: RefObject<HTMLElement | null | undefined>) => ReactNode;
|
|
828
|
-
/**
|
|
829
|
-
* The css width property of the modal. Ex - 'max-content', '532px', '100%', etc
|
|
725
|
+
/**
|
|
726
|
+
* The css width property of the modal. Ex - 'max-content', '532px', '100%', etc
|
|
830
727
|
*/
|
|
831
728
|
width?: string;
|
|
832
729
|
};
|
|
833
|
-
/**
|
|
834
|
-
* @deprecated Please use Modal component, see [documentation](?path=/docs/components-modal--docs).
|
|
835
|
-
*
|
|
836
|
-
* #### Why ActionModal is being deprecated
|
|
837
|
-
* ActionModal's API tightly couples the modal itself with the button or element that toggles it. This makes it difficult to
|
|
838
|
-
* implement in several scenarios (such as within a Menu) or if it needs to be programatically opened by an external action.
|
|
839
|
-
*
|
|
840
|
-
* [Modal](?path=/docs/components-modal--docs) allows for a separate state control to toggle its visibility and is also more composable
|
|
841
|
-
* allowing for more variation.
|
|
730
|
+
/**
|
|
731
|
+
* @deprecated Please use Modal component, see [documentation](?path=/docs/components-modal--docs).
|
|
732
|
+
*
|
|
733
|
+
* #### Why ActionModal is being deprecated
|
|
734
|
+
* ActionModal's API tightly couples the modal itself with the button or element that toggles it. This makes it difficult to
|
|
735
|
+
* implement in several scenarios (such as within a Menu) or if it needs to be programatically opened by an external action.
|
|
736
|
+
*
|
|
737
|
+
* [Modal](?path=/docs/components-modal--docs) allows for a separate state control to toggle its visibility and is also more composable
|
|
738
|
+
* allowing for more variation.
|
|
842
739
|
*/
|
|
843
740
|
declare const ActionModal: {
|
|
844
741
|
({
|
|
@@ -869,26 +766,26 @@ declare const ActionModal: {
|
|
|
869
766
|
//#region src/components/Avatar/Avatar.d.ts
|
|
870
767
|
type AvatarInstanceType = 'image' | 'initials';
|
|
871
768
|
type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
872
|
-
/**
|
|
873
|
-
* The height and width of the avatar
|
|
769
|
+
/**
|
|
770
|
+
* The height and width of the avatar
|
|
874
771
|
*/
|
|
875
772
|
heightAndWidth?: number;
|
|
876
|
-
/**
|
|
877
|
-
* The URL of the image to display
|
|
773
|
+
/**
|
|
774
|
+
* The URL of the image to display
|
|
878
775
|
*/
|
|
879
776
|
imageUrl?: string | null;
|
|
880
|
-
/**
|
|
881
|
-
* Initials to display if no image is provided
|
|
882
|
-
*
|
|
883
|
-
* _note: only first initial shown regardless of characters provided_
|
|
777
|
+
/**
|
|
778
|
+
* Initials to display if no image is provided
|
|
779
|
+
*
|
|
780
|
+
* _note: only first initial shown regardless of characters provided_
|
|
884
781
|
*/
|
|
885
782
|
initials?: string | null;
|
|
886
|
-
/**
|
|
887
|
-
* A string that will deterministicly set the background color of the avatar
|
|
783
|
+
/**
|
|
784
|
+
* A string that will deterministicly set the background color of the avatar
|
|
888
785
|
*/
|
|
889
786
|
name?: string | null;
|
|
890
|
-
/**
|
|
891
|
-
* A callback that is invoked after the image has loaded or failed to load
|
|
787
|
+
/**
|
|
788
|
+
* A callback that is invoked after the image has loaded or failed to load
|
|
892
789
|
*/
|
|
893
790
|
onImageLoad?: (avatarType: AvatarInstanceType) => void;
|
|
894
791
|
};
|
|
@@ -918,24 +815,24 @@ declare const alignHorizontalMap: {
|
|
|
918
815
|
right: string;
|
|
919
816
|
};
|
|
920
817
|
type BackdropProps = ComponentPropsWithoutRef<'div'> & {
|
|
921
|
-
/**
|
|
922
|
-
* Optional prop to align the child content along the horizontal axis
|
|
818
|
+
/**
|
|
819
|
+
* Optional prop to align the child content along the horizontal axis
|
|
923
820
|
*/
|
|
924
821
|
alignHorizontal?: keyof typeof alignHorizontalMap;
|
|
925
|
-
/**
|
|
926
|
-
* Optional prop to align the child content along the vertical axis
|
|
822
|
+
/**
|
|
823
|
+
* Optional prop to align the child content along the vertical axis
|
|
927
824
|
*/
|
|
928
825
|
alignVertical?: keyof typeof alignVerticalMap;
|
|
929
|
-
/**
|
|
930
|
-
* Color of the backdrop
|
|
826
|
+
/**
|
|
827
|
+
* Color of the backdrop
|
|
931
828
|
*/
|
|
932
829
|
backgroundColor?: string;
|
|
933
|
-
/**
|
|
934
|
-
* Pass an arbitrary child node
|
|
830
|
+
/**
|
|
831
|
+
* Pass an arbitrary child node
|
|
935
832
|
*/
|
|
936
833
|
children?: ReactNode;
|
|
937
|
-
/**
|
|
938
|
-
* increase the z-index (workaround for ActionModals called within Menu)
|
|
834
|
+
/**
|
|
835
|
+
* increase the z-index (workaround for ActionModals called within Menu)
|
|
939
836
|
*/
|
|
940
837
|
elevated?: boolean;
|
|
941
838
|
};
|
|
@@ -957,61 +854,61 @@ type OverflowObject = {
|
|
|
957
854
|
vertical: string;
|
|
958
855
|
};
|
|
959
856
|
type BackgroundImageProps = Omit<ComponentPropsWithoutRef<'img'>, 'src'> & {
|
|
960
|
-
/**
|
|
961
|
-
* The content that will be rendered inside
|
|
857
|
+
/**
|
|
858
|
+
* The content that will be rendered inside
|
|
962
859
|
*/
|
|
963
860
|
children?: ReactNode;
|
|
964
|
-
/**
|
|
965
|
-
* Sets whether a background image's position is fixed within the viewport,
|
|
966
|
-
* or scrolls with its containing block. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment).
|
|
861
|
+
/**
|
|
862
|
+
* Sets whether a background image's position is fixed within the viewport,
|
|
863
|
+
* or scrolls with its containing block. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment).
|
|
967
864
|
*/
|
|
968
865
|
attachment?: string;
|
|
969
|
-
/**
|
|
970
|
-
* Sets whether an element's background extends underneath its border box,
|
|
971
|
-
* padding box, or content box. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip).
|
|
866
|
+
/**
|
|
867
|
+
* Sets whether an element's background extends underneath its border box,
|
|
868
|
+
* padding box, or content box. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip).
|
|
972
869
|
*/
|
|
973
870
|
clip?: string;
|
|
974
|
-
/**
|
|
975
|
-
* Color (as hex) of the component
|
|
871
|
+
/**
|
|
872
|
+
* Color (as hex) of the component
|
|
976
873
|
*/
|
|
977
874
|
color?: string | undefined;
|
|
978
|
-
/**
|
|
979
|
-
* Height of the component
|
|
875
|
+
/**
|
|
876
|
+
* Height of the component
|
|
980
877
|
*/
|
|
981
878
|
height?: string;
|
|
982
|
-
/**
|
|
983
|
-
* Sets the background's origin: from the border start, inside the border, or inside the padding.
|
|
984
|
-
* _Note: origin is ignored when attachment is `fixed`._
|
|
985
|
-
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin).
|
|
879
|
+
/**
|
|
880
|
+
* Sets the background's origin: from the border start, inside the border, or inside the padding.
|
|
881
|
+
* _Note: origin is ignored when attachment is `fixed`._
|
|
882
|
+
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin).
|
|
986
883
|
*/
|
|
987
884
|
origin?: string;
|
|
988
|
-
/**
|
|
989
|
-
* Sets the desired behavior for an element's overflow (i.e. when an element's content is
|
|
990
|
-
* too big to fit in its block formatting context).
|
|
991
|
-
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow).
|
|
885
|
+
/**
|
|
886
|
+
* Sets the desired behavior for an element's overflow (i.e. when an element's content is
|
|
887
|
+
* too big to fit in its block formatting context).
|
|
888
|
+
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow).
|
|
992
889
|
*/
|
|
993
890
|
overflow?: OverflowObject | string;
|
|
994
|
-
/**
|
|
995
|
-
* Sets the initial position for each image; relative to the position layer
|
|
996
|
-
* set by origin. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position).
|
|
891
|
+
/**
|
|
892
|
+
* Sets the initial position for each image; relative to the position layer
|
|
893
|
+
* set by origin. [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position).
|
|
997
894
|
*/
|
|
998
895
|
position?: string;
|
|
999
|
-
/**
|
|
1000
|
-
* Sets how background images are repeated.
|
|
1001
|
-
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat).
|
|
896
|
+
/**
|
|
897
|
+
* Sets how background images are repeated.
|
|
898
|
+
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat).
|
|
1002
899
|
*/
|
|
1003
900
|
repeat?: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* Sets the size of the element's background image.
|
|
1006
|
-
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size).
|
|
901
|
+
/**
|
|
902
|
+
* Sets the size of the element's background image.
|
|
903
|
+
* [Read more](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size).
|
|
1007
904
|
*/
|
|
1008
905
|
size?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* URL(s) to image file
|
|
906
|
+
/**
|
|
907
|
+
* URL(s) to image file
|
|
1011
908
|
*/
|
|
1012
909
|
src?: string[] | string;
|
|
1013
|
-
/**
|
|
1014
|
-
* Width of the component
|
|
910
|
+
/**
|
|
911
|
+
* Width of the component
|
|
1015
912
|
*/
|
|
1016
913
|
width?: string;
|
|
1017
914
|
};
|
|
@@ -1156,16 +1053,16 @@ type IconNameType = keyof typeof iconMap;
|
|
|
1156
1053
|
//#region src/components/Badge/Badge.d.ts
|
|
1157
1054
|
type BadgeColorScheme = 'brandBlue' | 'error' | 'green' | 'grey' | 'orange' | 'pink' | 'purple' | 'red' | 'success' | 'warning' | 'yellow';
|
|
1158
1055
|
type BadgeProps = ComponentPropsWithoutRef<'div'> & {
|
|
1159
|
-
/**
|
|
1160
|
-
* The color scheme to use for the badge
|
|
1056
|
+
/**
|
|
1057
|
+
* The color scheme to use for the badge
|
|
1161
1058
|
*/
|
|
1162
1059
|
colorScheme?: BadgeColorScheme;
|
|
1163
|
-
/**
|
|
1164
|
-
* The icon to display in the badge
|
|
1060
|
+
/**
|
|
1061
|
+
* The icon to display in the badge
|
|
1165
1062
|
*/
|
|
1166
1063
|
icon?: IconNameType;
|
|
1167
|
-
/**
|
|
1168
|
-
* The text to display in the badge
|
|
1064
|
+
/**
|
|
1065
|
+
* The text to display in the badge
|
|
1169
1066
|
*/
|
|
1170
1067
|
label: string;
|
|
1171
1068
|
};
|
|
@@ -1181,16 +1078,16 @@ declare const Badge: {
|
|
|
1181
1078
|
//#endregion
|
|
1182
1079
|
//#region src/components/Banner/Banner.d.ts
|
|
1183
1080
|
type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
1184
|
-
/**
|
|
1185
|
-
* color string
|
|
1081
|
+
/**
|
|
1082
|
+
* color string
|
|
1186
1083
|
*/
|
|
1187
1084
|
backgroundColor?: string;
|
|
1188
|
-
/**
|
|
1189
|
-
* Pass an arbitrary child node
|
|
1085
|
+
/**
|
|
1086
|
+
* Pass an arbitrary child node
|
|
1190
1087
|
*/
|
|
1191
1088
|
children?: ReactNode;
|
|
1192
|
-
/**
|
|
1193
|
-
* icon name from the icon library to be displayed on left side of banner
|
|
1089
|
+
/**
|
|
1090
|
+
* icon name from the icon library to be displayed on left side of banner
|
|
1194
1091
|
*/
|
|
1195
1092
|
icon?: ReactNode;
|
|
1196
1093
|
};
|
|
@@ -1227,178 +1124,178 @@ type Gap = {
|
|
|
1227
1124
|
row: number | string;
|
|
1228
1125
|
};
|
|
1229
1126
|
type BoxProps = ComponentPropsWithoutRef<'div'> & {
|
|
1230
|
-
/**
|
|
1231
|
-
* Specifies how the browser distributes space between and around
|
|
1232
|
-
* items along the cross-axis of their container; has no effect on
|
|
1233
|
-
* single line flexible boxes
|
|
1127
|
+
/**
|
|
1128
|
+
* Specifies how the browser distributes space between and around
|
|
1129
|
+
* items along the cross-axis of their container; has no effect on
|
|
1130
|
+
* single line flexible boxes
|
|
1234
1131
|
*/
|
|
1235
1132
|
alignContent?: 'around' | 'between' | 'center' | 'end' | 'start' | 'stretch';
|
|
1236
|
-
/**
|
|
1237
|
-
* Specifies how the browser distributes space between and around
|
|
1238
|
-
* items along the cross-axis of their container; the difference
|
|
1239
|
-
* to the alignContent prop is that alignItems specifies the
|
|
1240
|
-
* alignment of the items within the current container's line,
|
|
1241
|
-
* whereas alignContent specifies the alignment of the lines themselves
|
|
1133
|
+
/**
|
|
1134
|
+
* Specifies how the browser distributes space between and around
|
|
1135
|
+
* items along the cross-axis of their container; the difference
|
|
1136
|
+
* to the alignContent prop is that alignItems specifies the
|
|
1137
|
+
* alignment of the items within the current container's line,
|
|
1138
|
+
* whereas alignContent specifies the alignment of the lines themselves
|
|
1242
1139
|
*/
|
|
1243
1140
|
alignItems?: 'baseline' | 'center' | 'end' | 'start' | 'stretch';
|
|
1244
|
-
/**
|
|
1245
|
-
* Specifies how the browser aligns items of the current line, overriding the
|
|
1246
|
-
* alignItems value of parent; if any of the item's cross-axis margin is set to auto,
|
|
1247
|
-
* then alignSelf is ignored
|
|
1248
|
-
*
|
|
1249
|
-
* *Note: only works for nested `<Box />`*
|
|
1141
|
+
/**
|
|
1142
|
+
* Specifies how the browser aligns items of the current line, overriding the
|
|
1143
|
+
* alignItems value of parent; if any of the item's cross-axis margin is set to auto,
|
|
1144
|
+
* then alignSelf is ignored
|
|
1145
|
+
*
|
|
1146
|
+
* *Note: only works for nested `<Box />`*
|
|
1250
1147
|
*/
|
|
1251
1148
|
alignSelf?: 'auto' | 'baseline' | 'center' | 'end' | 'start' | 'stretch';
|
|
1252
|
-
/**
|
|
1253
|
-
* Specifies the initial main size of an item
|
|
1254
|
-
*
|
|
1255
|
-
* *Note: only works for nested `<Box />`*
|
|
1149
|
+
/**
|
|
1150
|
+
* Specifies the initial main size of an item
|
|
1151
|
+
*
|
|
1152
|
+
* *Note: only works for nested `<Box />`*
|
|
1256
1153
|
*/
|
|
1257
1154
|
basis?: number | string;
|
|
1258
|
-
/**
|
|
1259
|
-
* Pass an arbitrary child node
|
|
1155
|
+
/**
|
|
1156
|
+
* Pass an arbitrary child node
|
|
1260
1157
|
*/
|
|
1261
1158
|
children?: ReactNode;
|
|
1262
|
-
/**
|
|
1263
|
-
* Specifies the main axis of the container
|
|
1159
|
+
/**
|
|
1160
|
+
* Specifies the main axis of the container
|
|
1264
1161
|
*/
|
|
1265
1162
|
direction?: 'column-reverse' | 'column' | 'row-reverse' | 'row';
|
|
1266
|
-
/**
|
|
1267
|
-
* Specifies whether the width and/or height should fill the container
|
|
1163
|
+
/**
|
|
1164
|
+
* Specifies whether the width and/or height should fill the container
|
|
1268
1165
|
*/
|
|
1269
1166
|
fill?: boolean | 'horizontal' | 'vertical';
|
|
1270
|
-
/**
|
|
1271
|
-
* Specifies whether the width and/or height should fill the viewport
|
|
1167
|
+
/**
|
|
1168
|
+
* Specifies whether the width and/or height should fill the viewport
|
|
1272
1169
|
*/
|
|
1273
1170
|
fillViewport?: boolean | 'horizontal' | 'vertical';
|
|
1274
|
-
/**
|
|
1275
|
-
* Specifies the gaps (gutters) between rows and columns
|
|
1171
|
+
/**
|
|
1172
|
+
* Specifies the gaps (gutters) between rows and columns
|
|
1276
1173
|
*/
|
|
1277
1174
|
gap?: Gap | number | string;
|
|
1278
|
-
/**
|
|
1279
|
-
* Specifies what amount of space inside the flex container the item should take up
|
|
1280
|
-
*
|
|
1281
|
-
* *Note: only works for nested `<Box />`*
|
|
1175
|
+
/**
|
|
1176
|
+
* Specifies what amount of space inside the flex container the item should take up
|
|
1177
|
+
*
|
|
1178
|
+
* *Note: only works for nested `<Box />`*
|
|
1282
1179
|
*/
|
|
1283
1180
|
grow?: number;
|
|
1284
|
-
/**
|
|
1285
|
-
* Make Layout behave like an inline element but still lay out its content according to flexbox model
|
|
1181
|
+
/**
|
|
1182
|
+
* Make Layout behave like an inline element but still lay out its content according to flexbox model
|
|
1286
1183
|
*/
|
|
1287
1184
|
inline?: boolean;
|
|
1288
|
-
/**
|
|
1289
|
-
* Specifies how the browser distributes space between and around
|
|
1290
|
-
* items along the main axis of their container
|
|
1185
|
+
/**
|
|
1186
|
+
* Specifies how the browser distributes space between and around
|
|
1187
|
+
* items along the main axis of their container
|
|
1291
1188
|
*/
|
|
1292
1189
|
justifyContent?: 'around' | 'between' | 'center' | 'end' | 'evenly' | 'start';
|
|
1293
|
-
/**
|
|
1294
|
-
* Specifies the order used to lay out an item in its container. Items within the same
|
|
1295
|
-
* container are rendered in ascending order according to their order values.
|
|
1296
|
-
* Elements with the _same_ order value are rendered in the order in which they appear in code
|
|
1297
|
-
*
|
|
1298
|
-
* *Note: only works for nested `<Box />`*
|
|
1190
|
+
/**
|
|
1191
|
+
* Specifies the order used to lay out an item in its container. Items within the same
|
|
1192
|
+
* container are rendered in ascending order according to their order values.
|
|
1193
|
+
* Elements with the _same_ order value are rendered in the order in which they appear in code
|
|
1194
|
+
*
|
|
1195
|
+
* *Note: only works for nested `<Box />`*
|
|
1299
1196
|
*/
|
|
1300
1197
|
order?: number | 'inherit' | 'initial' | 'unset';
|
|
1301
|
-
/**
|
|
1302
|
-
* The DOM tag to use for the element
|
|
1198
|
+
/**
|
|
1199
|
+
* The DOM tag to use for the element
|
|
1303
1200
|
*/
|
|
1304
1201
|
renderAs?: keyof JSX.IntrinsicElements;
|
|
1305
|
-
/**
|
|
1306
|
-
* Specifies how items will shrink inside the container when the default size of
|
|
1307
|
-
* items is larger than their container
|
|
1308
|
-
*
|
|
1309
|
-
* *Note: only works for nested `<Box />`*
|
|
1202
|
+
/**
|
|
1203
|
+
* Specifies how items will shrink inside the container when the default size of
|
|
1204
|
+
* items is larger than their container
|
|
1205
|
+
*
|
|
1206
|
+
* *Note: only works for nested `<Box />`*
|
|
1310
1207
|
*/
|
|
1311
1208
|
shrink?: number;
|
|
1312
|
-
/**
|
|
1313
|
-
* Specifies whether items are forced into a single line or can be wrapped onto multiple lines
|
|
1209
|
+
/**
|
|
1210
|
+
* Specifies whether items are forced into a single line or can be wrapped onto multiple lines
|
|
1314
1211
|
*/
|
|
1315
1212
|
wrapItems?: boolean;
|
|
1316
1213
|
};
|
|
1317
1214
|
declare const Box: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
1318
|
-
/**
|
|
1319
|
-
* Specifies how the browser distributes space between and around
|
|
1320
|
-
* items along the cross-axis of their container; has no effect on
|
|
1321
|
-
* single line flexible boxes
|
|
1215
|
+
/**
|
|
1216
|
+
* Specifies how the browser distributes space between and around
|
|
1217
|
+
* items along the cross-axis of their container; has no effect on
|
|
1218
|
+
* single line flexible boxes
|
|
1322
1219
|
*/
|
|
1323
1220
|
alignContent?: "around" | "between" | "center" | "end" | "start" | "stretch";
|
|
1324
|
-
/**
|
|
1325
|
-
* Specifies how the browser distributes space between and around
|
|
1326
|
-
* items along the cross-axis of their container; the difference
|
|
1327
|
-
* to the alignContent prop is that alignItems specifies the
|
|
1328
|
-
* alignment of the items within the current container's line,
|
|
1329
|
-
* whereas alignContent specifies the alignment of the lines themselves
|
|
1221
|
+
/**
|
|
1222
|
+
* Specifies how the browser distributes space between and around
|
|
1223
|
+
* items along the cross-axis of their container; the difference
|
|
1224
|
+
* to the alignContent prop is that alignItems specifies the
|
|
1225
|
+
* alignment of the items within the current container's line,
|
|
1226
|
+
* whereas alignContent specifies the alignment of the lines themselves
|
|
1330
1227
|
*/
|
|
1331
1228
|
alignItems?: "baseline" | "center" | "end" | "start" | "stretch";
|
|
1332
|
-
/**
|
|
1333
|
-
* Specifies how the browser aligns items of the current line, overriding the
|
|
1334
|
-
* alignItems value of parent; if any of the item's cross-axis margin is set to auto,
|
|
1335
|
-
* then alignSelf is ignored
|
|
1336
|
-
*
|
|
1337
|
-
* *Note: only works for nested `<Box />`*
|
|
1229
|
+
/**
|
|
1230
|
+
* Specifies how the browser aligns items of the current line, overriding the
|
|
1231
|
+
* alignItems value of parent; if any of the item's cross-axis margin is set to auto,
|
|
1232
|
+
* then alignSelf is ignored
|
|
1233
|
+
*
|
|
1234
|
+
* *Note: only works for nested `<Box />`*
|
|
1338
1235
|
*/
|
|
1339
1236
|
alignSelf?: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
|
|
1340
|
-
/**
|
|
1341
|
-
* Specifies the initial main size of an item
|
|
1342
|
-
*
|
|
1343
|
-
* *Note: only works for nested `<Box />`*
|
|
1237
|
+
/**
|
|
1238
|
+
* Specifies the initial main size of an item
|
|
1239
|
+
*
|
|
1240
|
+
* *Note: only works for nested `<Box />`*
|
|
1344
1241
|
*/
|
|
1345
1242
|
basis?: number | string;
|
|
1346
|
-
/**
|
|
1347
|
-
* Pass an arbitrary child node
|
|
1243
|
+
/**
|
|
1244
|
+
* Pass an arbitrary child node
|
|
1348
1245
|
*/
|
|
1349
1246
|
children?: ReactNode;
|
|
1350
|
-
/**
|
|
1351
|
-
* Specifies the main axis of the container
|
|
1247
|
+
/**
|
|
1248
|
+
* Specifies the main axis of the container
|
|
1352
1249
|
*/
|
|
1353
1250
|
direction?: "column-reverse" | "column" | "row-reverse" | "row";
|
|
1354
|
-
/**
|
|
1355
|
-
* Specifies whether the width and/or height should fill the container
|
|
1251
|
+
/**
|
|
1252
|
+
* Specifies whether the width and/or height should fill the container
|
|
1356
1253
|
*/
|
|
1357
1254
|
fill?: boolean | "horizontal" | "vertical";
|
|
1358
|
-
/**
|
|
1359
|
-
* Specifies whether the width and/or height should fill the viewport
|
|
1255
|
+
/**
|
|
1256
|
+
* Specifies whether the width and/or height should fill the viewport
|
|
1360
1257
|
*/
|
|
1361
1258
|
fillViewport?: boolean | "horizontal" | "vertical";
|
|
1362
|
-
/**
|
|
1363
|
-
* Specifies the gaps (gutters) between rows and columns
|
|
1259
|
+
/**
|
|
1260
|
+
* Specifies the gaps (gutters) between rows and columns
|
|
1364
1261
|
*/
|
|
1365
1262
|
gap?: Gap | number | string;
|
|
1366
|
-
/**
|
|
1367
|
-
* Specifies what amount of space inside the flex container the item should take up
|
|
1368
|
-
*
|
|
1369
|
-
* *Note: only works for nested `<Box />`*
|
|
1263
|
+
/**
|
|
1264
|
+
* Specifies what amount of space inside the flex container the item should take up
|
|
1265
|
+
*
|
|
1266
|
+
* *Note: only works for nested `<Box />`*
|
|
1370
1267
|
*/
|
|
1371
1268
|
grow?: number;
|
|
1372
|
-
/**
|
|
1373
|
-
* Make Layout behave like an inline element but still lay out its content according to flexbox model
|
|
1269
|
+
/**
|
|
1270
|
+
* Make Layout behave like an inline element but still lay out its content according to flexbox model
|
|
1374
1271
|
*/
|
|
1375
1272
|
inline?: boolean;
|
|
1376
|
-
/**
|
|
1377
|
-
* Specifies how the browser distributes space between and around
|
|
1378
|
-
* items along the main axis of their container
|
|
1273
|
+
/**
|
|
1274
|
+
* Specifies how the browser distributes space between and around
|
|
1275
|
+
* items along the main axis of their container
|
|
1379
1276
|
*/
|
|
1380
1277
|
justifyContent?: "around" | "between" | "center" | "end" | "evenly" | "start";
|
|
1381
|
-
/**
|
|
1382
|
-
* Specifies the order used to lay out an item in its container. Items within the same
|
|
1383
|
-
* container are rendered in ascending order according to their order values.
|
|
1384
|
-
* Elements with the _same_ order value are rendered in the order in which they appear in code
|
|
1385
|
-
*
|
|
1386
|
-
* *Note: only works for nested `<Box />`*
|
|
1278
|
+
/**
|
|
1279
|
+
* Specifies the order used to lay out an item in its container. Items within the same
|
|
1280
|
+
* container are rendered in ascending order according to their order values.
|
|
1281
|
+
* Elements with the _same_ order value are rendered in the order in which they appear in code
|
|
1282
|
+
*
|
|
1283
|
+
* *Note: only works for nested `<Box />`*
|
|
1387
1284
|
*/
|
|
1388
1285
|
order?: number | "inherit" | "initial" | "unset";
|
|
1389
|
-
/**
|
|
1390
|
-
* The DOM tag to use for the element
|
|
1286
|
+
/**
|
|
1287
|
+
* The DOM tag to use for the element
|
|
1391
1288
|
*/
|
|
1392
1289
|
renderAs?: keyof JSX.IntrinsicElements;
|
|
1393
|
-
/**
|
|
1394
|
-
* Specifies how items will shrink inside the container when the default size of
|
|
1395
|
-
* items is larger than their container
|
|
1396
|
-
*
|
|
1397
|
-
* *Note: only works for nested `<Box />`*
|
|
1290
|
+
/**
|
|
1291
|
+
* Specifies how items will shrink inside the container when the default size of
|
|
1292
|
+
* items is larger than their container
|
|
1293
|
+
*
|
|
1294
|
+
* *Note: only works for nested `<Box />`*
|
|
1398
1295
|
*/
|
|
1399
1296
|
shrink?: number;
|
|
1400
|
-
/**
|
|
1401
|
-
* Specifies whether items are forced into a single line or can be wrapped onto multiple lines
|
|
1297
|
+
/**
|
|
1298
|
+
* Specifies whether items are forced into a single line or can be wrapped onto multiple lines
|
|
1402
1299
|
*/
|
|
1403
1300
|
wrapItems?: boolean;
|
|
1404
1301
|
} & _$react.RefAttributes<HTMLDivElement>>;
|
|
@@ -1406,78 +1303,78 @@ declare const Box: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTMLPr
|
|
|
1406
1303
|
//#region src/components/Button/Button.d.ts
|
|
1407
1304
|
type TextAlignValues = 'center' | 'left' | 'right';
|
|
1408
1305
|
type ButtonProps = ComponentPropsWithRef<'button'> & {
|
|
1409
|
-
/**
|
|
1410
|
-
* Text that appears inside of the button *THIS WILL OVERRIDE THE LABEL PROP*
|
|
1306
|
+
/**
|
|
1307
|
+
* Text that appears inside of the button *THIS WILL OVERRIDE THE LABEL PROP*
|
|
1411
1308
|
*/
|
|
1412
1309
|
children?: ReactNode;
|
|
1413
|
-
/**
|
|
1414
|
-
* Allows user to override default button colors
|
|
1310
|
+
/**
|
|
1311
|
+
* Allows user to override default button colors
|
|
1415
1312
|
*/
|
|
1416
1313
|
colorOverride?: string;
|
|
1417
|
-
/**
|
|
1418
|
-
* Disables button
|
|
1314
|
+
/**
|
|
1315
|
+
* Disables button
|
|
1419
1316
|
*/
|
|
1420
1317
|
disabled?: boolean;
|
|
1421
|
-
/**
|
|
1422
|
-
* @ignore
|
|
1423
|
-
* Force a button into a particular css state (for debugging)
|
|
1318
|
+
/**
|
|
1319
|
+
* @ignore
|
|
1320
|
+
* Force a button into a particular css state (for debugging)
|
|
1424
1321
|
*/
|
|
1425
1322
|
forceState?: 'active' | 'focus' | 'hover' | undefined;
|
|
1426
|
-
/**
|
|
1427
|
-
* Is the button full-width?
|
|
1323
|
+
/**
|
|
1324
|
+
* Is the button full-width?
|
|
1428
1325
|
*/
|
|
1429
1326
|
fullWidth?: boolean;
|
|
1430
|
-
/**
|
|
1431
|
-
* An SVG component
|
|
1327
|
+
/**
|
|
1328
|
+
* An SVG component
|
|
1432
1329
|
*/
|
|
1433
1330
|
icon?: ReactNode;
|
|
1434
|
-
/**
|
|
1435
|
-
* The "type" name of a VHS icon. *THIS WILL OVERRIDE ANY ICON PROP PASSED*
|
|
1331
|
+
/**
|
|
1332
|
+
* The "type" name of a VHS icon. *THIS WILL OVERRIDE ANY ICON PROP PASSED*
|
|
1436
1333
|
*/
|
|
1437
1334
|
iconName?: keyof typeof iconMap;
|
|
1438
|
-
/**
|
|
1439
|
-
* Should the icon appear at the start of the button or the end?
|
|
1335
|
+
/**
|
|
1336
|
+
* Should the icon appear at the start of the button or the end?
|
|
1440
1337
|
*/
|
|
1441
1338
|
iconPosition?: 'end' | 'start';
|
|
1442
|
-
/**
|
|
1443
|
-
* Show a spinner when the button is in a loading state
|
|
1339
|
+
/**
|
|
1340
|
+
* Show a spinner when the button is in a loading state
|
|
1444
1341
|
*/
|
|
1445
1342
|
isLoading?: boolean;
|
|
1446
|
-
/**
|
|
1447
|
-
* Text that appears inside the button
|
|
1343
|
+
/**
|
|
1344
|
+
* Text that appears inside the button
|
|
1448
1345
|
*/
|
|
1449
1346
|
label?: string;
|
|
1450
|
-
/**
|
|
1451
|
-
* Should the label wrap if the button container is too narrow to fit the label text on one line
|
|
1452
|
-
* @deprecated Apply white-space styling as needed
|
|
1347
|
+
/**
|
|
1348
|
+
* Should the label wrap if the button container is too narrow to fit the label text on one line
|
|
1349
|
+
* @deprecated Apply white-space styling as needed
|
|
1453
1350
|
*/
|
|
1454
1351
|
labelWrap?: boolean;
|
|
1455
|
-
/**
|
|
1456
|
-
* Provides a button without any styling (useful for wrapping another element)
|
|
1352
|
+
/**
|
|
1353
|
+
* Provides a button without any styling (useful for wrapping another element)
|
|
1457
1354
|
*/
|
|
1458
1355
|
noStyle?: boolean;
|
|
1459
|
-
/**
|
|
1460
|
-
* Callback function invoked when the button is clicked
|
|
1356
|
+
/**
|
|
1357
|
+
* Callback function invoked when the button is clicked
|
|
1461
1358
|
*/
|
|
1462
1359
|
onClick?: ((event: MouseEvent) => ReactNode) | ((event: MouseEvent) => void) | undefined;
|
|
1463
|
-
/**
|
|
1464
|
-
* The size of button to display
|
|
1360
|
+
/**
|
|
1361
|
+
* The size of button to display
|
|
1465
1362
|
*/
|
|
1466
1363
|
size?: 'lg' | 'md' | 'sm';
|
|
1467
|
-
/**
|
|
1468
|
-
* If true then rounded corners will be squared
|
|
1364
|
+
/**
|
|
1365
|
+
* If true then rounded corners will be squared
|
|
1469
1366
|
*/
|
|
1470
1367
|
square?: boolean;
|
|
1471
|
-
/**
|
|
1472
|
-
* Alignment of the button label
|
|
1368
|
+
/**
|
|
1369
|
+
* Alignment of the button label
|
|
1473
1370
|
*/
|
|
1474
1371
|
textAlign?: TextAlignValues;
|
|
1475
|
-
/**
|
|
1476
|
-
* The type of button element that should be rendered
|
|
1372
|
+
/**
|
|
1373
|
+
* The type of button element that should be rendered
|
|
1477
1374
|
*/
|
|
1478
1375
|
type?: 'button' | 'reset' | 'submit';
|
|
1479
|
-
/**
|
|
1480
|
-
* The visual type of button to display
|
|
1376
|
+
/**
|
|
1377
|
+
* The visual type of button to display
|
|
1481
1378
|
*/
|
|
1482
1379
|
variant?: 'dangerous' | 'primary' | 'secondary' | 'tertiary';
|
|
1483
1380
|
};
|
|
@@ -1485,16 +1382,16 @@ declare const Button: _$react.ForwardRefExoticComponent<Omit<ButtonProps, "ref">
|
|
|
1485
1382
|
//#endregion
|
|
1486
1383
|
//#region src/components/ButtonGroup/ButtonGroup.d.ts
|
|
1487
1384
|
type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
1488
|
-
/**
|
|
1489
|
-
* Align buttons to the left or right of their container
|
|
1385
|
+
/**
|
|
1386
|
+
* Align buttons to the left or right of their container
|
|
1490
1387
|
*/
|
|
1491
1388
|
align?: 'center' | 'left' | 'right';
|
|
1492
|
-
/**
|
|
1493
|
-
* Buttons that will be rendered in grouping
|
|
1389
|
+
/**
|
|
1390
|
+
* Buttons that will be rendered in grouping
|
|
1494
1391
|
*/
|
|
1495
1392
|
children?: ReactNode;
|
|
1496
|
-
/**
|
|
1497
|
-
* Force ButtonGroup to fill the width of it's container
|
|
1393
|
+
/**
|
|
1394
|
+
* Force ButtonGroup to fill the width of it's container
|
|
1498
1395
|
*/
|
|
1499
1396
|
fullWidth?: boolean;
|
|
1500
1397
|
};
|
|
@@ -1510,148 +1407,148 @@ declare const ButtonGroup: {
|
|
|
1510
1407
|
//#endregion
|
|
1511
1408
|
//#region src/components/ButtonLink/ButtonLink.d.ts
|
|
1512
1409
|
type ButtonLinkProps = ComponentPropsWithRef<'a'> & {
|
|
1513
|
-
/**
|
|
1514
|
-
* A Promise to invoke before navigating to location.
|
|
1515
|
-
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
1410
|
+
/**
|
|
1411
|
+
* A Promise to invoke before navigating to location.
|
|
1412
|
+
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
1516
1413
|
*/
|
|
1517
1414
|
beforeAction?: (() => Promise<void>) | (() => void);
|
|
1518
|
-
/**
|
|
1519
|
-
* The content that will be rendered inside the button
|
|
1415
|
+
/**
|
|
1416
|
+
* The content that will be rendered inside the button
|
|
1520
1417
|
*/
|
|
1521
1418
|
children?: ReactNode;
|
|
1522
|
-
/**
|
|
1523
|
-
* Option CSS color string
|
|
1419
|
+
/**
|
|
1420
|
+
* Option CSS color string
|
|
1524
1421
|
*/
|
|
1525
1422
|
colorOverride?: string;
|
|
1526
|
-
/**
|
|
1527
|
-
* Disables Link
|
|
1423
|
+
/**
|
|
1424
|
+
* Disables Link
|
|
1528
1425
|
*/
|
|
1529
1426
|
disabled?: boolean;
|
|
1530
|
-
/**
|
|
1531
|
-
* @ignore
|
|
1532
|
-
* Force a Link into a particular css state (for debugging)
|
|
1427
|
+
/**
|
|
1428
|
+
* @ignore
|
|
1429
|
+
* Force a Link into a particular css state (for debugging)
|
|
1533
1430
|
*/
|
|
1534
1431
|
forceState?: 'active' | 'focus' | 'hover';
|
|
1535
|
-
/**
|
|
1536
|
-
* Is the button full-width?
|
|
1432
|
+
/**
|
|
1433
|
+
* Is the button full-width?
|
|
1537
1434
|
*/
|
|
1538
1435
|
fullWidth?: boolean;
|
|
1539
|
-
/**
|
|
1540
|
-
* The entity to link to (url, email address, telephone number)
|
|
1436
|
+
/**
|
|
1437
|
+
* The entity to link to (url, email address, telephone number)
|
|
1541
1438
|
*/
|
|
1542
1439
|
href: string;
|
|
1543
|
-
/**
|
|
1544
|
-
* An SVG component
|
|
1440
|
+
/**
|
|
1441
|
+
* An SVG component
|
|
1545
1442
|
*/
|
|
1546
1443
|
icon?: ReactNode;
|
|
1547
|
-
/**
|
|
1548
|
-
* The "type" name of a VHS icon. *THIS WILL OVERRIDE ANY ICON PROP PASSED*
|
|
1444
|
+
/**
|
|
1445
|
+
* The "type" name of a VHS icon. *THIS WILL OVERRIDE ANY ICON PROP PASSED*
|
|
1549
1446
|
*/
|
|
1550
1447
|
iconName?: keyof typeof iconMap;
|
|
1551
|
-
/**
|
|
1552
|
-
* Should the icon appear at the start of the button or the end?
|
|
1448
|
+
/**
|
|
1449
|
+
* Should the icon appear at the start of the button or the end?
|
|
1553
1450
|
*/
|
|
1554
1451
|
iconPosition?: 'end' | 'start';
|
|
1555
|
-
/**
|
|
1556
|
-
* Text that appears inside the button
|
|
1452
|
+
/**
|
|
1453
|
+
* Text that appears inside the button
|
|
1557
1454
|
*/
|
|
1558
1455
|
label?: string;
|
|
1559
|
-
/**
|
|
1560
|
-
* Should the label wrap if the button container is too narrow to fit the label text on one line
|
|
1456
|
+
/**
|
|
1457
|
+
* Should the label wrap if the button container is too narrow to fit the label text on one line
|
|
1561
1458
|
*/
|
|
1562
1459
|
labelWrap?: boolean;
|
|
1563
|
-
/**
|
|
1564
|
-
* An object that will be converted into a search parameter string and appended to
|
|
1565
|
-
* the `to` prop value
|
|
1460
|
+
/**
|
|
1461
|
+
* An object that will be converted into a search parameter string and appended to
|
|
1462
|
+
* the `to` prop value
|
|
1566
1463
|
*/
|
|
1567
1464
|
params?: Record<string, string>;
|
|
1568
|
-
/**
|
|
1569
|
-
* The size of button to display
|
|
1465
|
+
/**
|
|
1466
|
+
* The size of button to display
|
|
1570
1467
|
*/
|
|
1571
1468
|
size?: 'lg' | 'md' | 'sm';
|
|
1572
|
-
/**
|
|
1573
|
-
* If true, rounded corners are disabled
|
|
1469
|
+
/**
|
|
1470
|
+
* If true, rounded corners are disabled
|
|
1574
1471
|
*/
|
|
1575
1472
|
square?: boolean;
|
|
1576
|
-
/**
|
|
1577
|
-
* Alignment of the button label
|
|
1473
|
+
/**
|
|
1474
|
+
* Alignment of the button label
|
|
1578
1475
|
*/
|
|
1579
1476
|
textAlign?: TextAlignValues;
|
|
1580
|
-
/**
|
|
1581
|
-
* Type of link to display
|
|
1582
|
-
*
|
|
1583
|
-
* * `email` creates a mailto
|
|
1584
|
-
* * `phone` creates a telephone number
|
|
1585
|
-
* * `external` will open links in a new window
|
|
1477
|
+
/**
|
|
1478
|
+
* Type of link to display
|
|
1479
|
+
*
|
|
1480
|
+
* * `email` creates a mailto
|
|
1481
|
+
* * `phone` creates a telephone number
|
|
1482
|
+
* * `external` will open links in a new window
|
|
1586
1483
|
*/
|
|
1587
1484
|
type?: 'default' | 'email' | 'external' | 'phone';
|
|
1588
|
-
/**
|
|
1589
|
-
* The visual type of button to display
|
|
1485
|
+
/**
|
|
1486
|
+
* The visual type of button to display
|
|
1590
1487
|
*/
|
|
1591
1488
|
variant?: 'dangerous' | 'primary' | 'secondary' | 'tertiary';
|
|
1592
1489
|
};
|
|
1593
|
-
/**
|
|
1594
|
-
* The `ButtonLink` component is useful for getting the functionality of a
|
|
1595
|
-
* `Link` with the styling of a `Button`.
|
|
1596
|
-
*
|
|
1597
|
-
* A useful heuristic for using this component: Do you have an `href`? Some of the advantages are having a right-click
|
|
1598
|
-
* context menu available opening a new tab, and copying the URL.
|
|
1599
|
-
*
|
|
1600
|
-
* **Note:** the props table below is incomplete; please
|
|
1601
|
-
* refer to [Link](?path=/docs/link--link-stories) for additional props.
|
|
1490
|
+
/**
|
|
1491
|
+
* The `ButtonLink` component is useful for getting the functionality of a
|
|
1492
|
+
* `Link` with the styling of a `Button`.
|
|
1493
|
+
*
|
|
1494
|
+
* A useful heuristic for using this component: Do you have an `href`? Some of the advantages are having a right-click
|
|
1495
|
+
* context menu available opening a new tab, and copying the URL.
|
|
1496
|
+
*
|
|
1497
|
+
* **Note:** the props table below is incomplete; please
|
|
1498
|
+
* refer to [Link](?path=/docs/link--link-stories) for additional props.
|
|
1602
1499
|
*/
|
|
1603
1500
|
declare const ButtonLink: _$react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & _$react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
1604
1501
|
//#endregion
|
|
1605
1502
|
//#region src/components/Checkbox/Checkbox.d.ts
|
|
1606
1503
|
type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
1607
|
-
/**
|
|
1608
|
-
* Indicates the state of the checkbox
|
|
1504
|
+
/**
|
|
1505
|
+
* Indicates the state of the checkbox
|
|
1609
1506
|
*/
|
|
1610
1507
|
checked?: boolean;
|
|
1611
|
-
/**
|
|
1612
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
1508
|
+
/**
|
|
1509
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
1613
1510
|
*/
|
|
1614
1511
|
direction?: 'column' | 'row';
|
|
1615
|
-
/**
|
|
1616
|
-
* Disables checkbox
|
|
1512
|
+
/**
|
|
1513
|
+
* Disables checkbox
|
|
1617
1514
|
*/
|
|
1618
1515
|
disabled?: boolean;
|
|
1619
|
-
/**
|
|
1620
|
-
* @ignore
|
|
1621
|
-
* Force a Checkbox into a particular css state (for debugging)
|
|
1516
|
+
/**
|
|
1517
|
+
* @ignore
|
|
1518
|
+
* Force a Checkbox into a particular css state (for debugging)
|
|
1622
1519
|
*/
|
|
1623
1520
|
forceState?: 'focus' | 'hover';
|
|
1624
|
-
/**
|
|
1625
|
-
* Indicates that there is an error with the input
|
|
1521
|
+
/**
|
|
1522
|
+
* Indicates that there is an error with the input
|
|
1626
1523
|
*/
|
|
1627
1524
|
hasError?: boolean;
|
|
1628
|
-
/**
|
|
1629
|
-
* Provides an ID for the checkbox
|
|
1525
|
+
/**
|
|
1526
|
+
* Provides an ID for the checkbox
|
|
1630
1527
|
*/
|
|
1631
1528
|
id?: string;
|
|
1632
|
-
/**
|
|
1633
|
-
* The label for the checkbox
|
|
1529
|
+
/**
|
|
1530
|
+
* The label for the checkbox
|
|
1634
1531
|
*/
|
|
1635
1532
|
label?: JSX.Element | string | undefined;
|
|
1636
|
-
/**
|
|
1637
|
-
* The description for the checkbox
|
|
1533
|
+
/**
|
|
1534
|
+
* The description for the checkbox
|
|
1638
1535
|
*/
|
|
1639
1536
|
labelDescription?: JSX.Element | string | undefined;
|
|
1640
|
-
/**
|
|
1641
|
-
* Should match the ID attribute of the checkbox.
|
|
1642
|
-
* Can be used to group together multiple checkboxes
|
|
1537
|
+
/**
|
|
1538
|
+
* Should match the ID attribute of the checkbox.
|
|
1539
|
+
* Can be used to group together multiple checkboxes
|
|
1643
1540
|
*/
|
|
1644
1541
|
name?: string;
|
|
1645
|
-
/**
|
|
1646
|
-
* Callback function invoked when the checkbox value changes
|
|
1542
|
+
/**
|
|
1543
|
+
* Callback function invoked when the checkbox value changes
|
|
1647
1544
|
*/
|
|
1648
1545
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1649
|
-
/**
|
|
1650
|
-
* Make Input a required element
|
|
1546
|
+
/**
|
|
1547
|
+
* Make Input a required element
|
|
1651
1548
|
*/
|
|
1652
1549
|
required?: boolean;
|
|
1653
|
-
/**
|
|
1654
|
-
* The value attribute of the checkbox
|
|
1550
|
+
/**
|
|
1551
|
+
* The value attribute of the checkbox
|
|
1655
1552
|
*/
|
|
1656
1553
|
value?: string;
|
|
1657
1554
|
};
|
|
@@ -1662,47 +1559,47 @@ type CheckboxPropsWithName = Omit<CheckboxProps, 'name'> & {
|
|
|
1662
1559
|
name: string;
|
|
1663
1560
|
};
|
|
1664
1561
|
type CheckboxGroupProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
1665
|
-
/**
|
|
1666
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
1562
|
+
/**
|
|
1563
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
1667
1564
|
*/
|
|
1668
1565
|
direction?: 'column' | 'row';
|
|
1669
|
-
/**
|
|
1670
|
-
* Whether CheckboxGroup is disabled
|
|
1566
|
+
/**
|
|
1567
|
+
* Whether CheckboxGroup is disabled
|
|
1671
1568
|
*/
|
|
1672
1569
|
disabled?: boolean;
|
|
1673
|
-
/**
|
|
1674
|
-
* Error message to be displayed
|
|
1570
|
+
/**
|
|
1571
|
+
* Error message to be displayed
|
|
1675
1572
|
*/
|
|
1676
1573
|
error?: string | undefined;
|
|
1677
|
-
/**
|
|
1678
|
-
* The label for the form field
|
|
1574
|
+
/**
|
|
1575
|
+
* The label for the form field
|
|
1679
1576
|
*/
|
|
1680
1577
|
label?: JSX.Element | string | undefined;
|
|
1681
|
-
/**
|
|
1682
|
-
* The hint/helper text under the label
|
|
1578
|
+
/**
|
|
1579
|
+
* The hint/helper text under the label
|
|
1683
1580
|
*/
|
|
1684
1581
|
labelDescription?: JSX.Element | string | undefined;
|
|
1685
|
-
/**
|
|
1686
|
-
* Props that are passed through to the underlying `<Label>` component
|
|
1582
|
+
/**
|
|
1583
|
+
* Props that are passed through to the underlying `<Label>` component
|
|
1687
1584
|
*/
|
|
1688
1585
|
labelProps?: {
|
|
1689
1586
|
disabled?: boolean;
|
|
1690
1587
|
screenReaderOnly?: boolean;
|
|
1691
1588
|
};
|
|
1692
|
-
/**
|
|
1693
|
-
* Name of the form element
|
|
1589
|
+
/**
|
|
1590
|
+
* Name of the form element
|
|
1694
1591
|
*/
|
|
1695
1592
|
name: string;
|
|
1696
|
-
/**
|
|
1697
|
-
* Callback function invoked when the value changes
|
|
1593
|
+
/**
|
|
1594
|
+
* Callback function invoked when the value changes
|
|
1698
1595
|
*/
|
|
1699
1596
|
onChange?: (event: ChangeEvent<HTMLInputElement>, name: string) => unknown;
|
|
1700
|
-
/**
|
|
1701
|
-
* Array of checkbox attributes
|
|
1597
|
+
/**
|
|
1598
|
+
* Array of checkbox attributes
|
|
1702
1599
|
*/
|
|
1703
1600
|
options: CheckboxPropsWithName[];
|
|
1704
|
-
/**
|
|
1705
|
-
* Currently selected checkbox value
|
|
1601
|
+
/**
|
|
1602
|
+
* Currently selected checkbox value
|
|
1706
1603
|
*/
|
|
1707
1604
|
value?: string[] | boolean | undefined;
|
|
1708
1605
|
};
|
|
@@ -1725,43 +1622,43 @@ declare const CheckboxGroup: {
|
|
|
1725
1622
|
//#endregion
|
|
1726
1623
|
//#region src/components/ClickArea/ClickArea.d.ts
|
|
1727
1624
|
type ClickAreaProps = ComponentPropsWithRef<'div'> & {
|
|
1728
|
-
/**
|
|
1729
|
-
* Supply an element or Component to render as the root compoennt (default is div)
|
|
1625
|
+
/**
|
|
1626
|
+
* Supply an element or Component to render as the root compoennt (default is div)
|
|
1730
1627
|
*/
|
|
1731
1628
|
renderAs?: ElementType;
|
|
1732
|
-
/**
|
|
1733
|
-
* The content within the clickarea
|
|
1629
|
+
/**
|
|
1630
|
+
* The content within the clickarea
|
|
1734
1631
|
*/
|
|
1735
1632
|
children: ReactNode;
|
|
1736
|
-
/**
|
|
1737
|
-
* If provided, this click event happens instead of the target ref's click event
|
|
1633
|
+
/**
|
|
1634
|
+
* If provided, this click event happens instead of the target ref's click event
|
|
1738
1635
|
*/
|
|
1739
1636
|
onClick?: (event: Event) => void;
|
|
1740
|
-
/**
|
|
1741
|
-
* A ref to the element within chldren that will be used as the target of the click event
|
|
1742
|
-
* Should typically be a button or link
|
|
1637
|
+
/**
|
|
1638
|
+
* A ref to the element within chldren that will be used as the target of the click event
|
|
1639
|
+
* Should typically be a button or link
|
|
1743
1640
|
*/
|
|
1744
1641
|
targetRef: RefObject<HTMLElement | null>;
|
|
1745
1642
|
};
|
|
1746
|
-
/**
|
|
1747
|
-
* ClickArea is useful when you want an entire element to be clickable, such as a card or an item in a list. Making the
|
|
1748
|
-
* entire element clickable provides a better click target for users, especially on mobile devices. The problem with this is
|
|
1749
|
-
* clickable divs are not accessible or tabbable. Using a `button` or `a` tag causes both styling and screenreader problems.
|
|
1750
|
-
*
|
|
1751
|
-
* To solve these issues, `ClickArea` maps a click event on the container element to a click event on a button or link within
|
|
1752
|
-
* it, via a ref. Assistive devices can utilize the target element and ignore the container element's click property.
|
|
1753
|
-
*
|
|
1754
|
-
* ClickArea also makes having interactive elements within the clickable container easier. For example, if you have a card element
|
|
1755
|
-
* that is clickable but with a "close" button in the top right, include `event.preventDefault()` in the close button's click handler
|
|
1756
|
-
* to prevent the container's click handler from firing.
|
|
1757
|
-
*
|
|
1643
|
+
/**
|
|
1644
|
+
* ClickArea is useful when you want an entire element to be clickable, such as a card or an item in a list. Making the
|
|
1645
|
+
* entire element clickable provides a better click target for users, especially on mobile devices. The problem with this is
|
|
1646
|
+
* clickable divs are not accessible or tabbable. Using a `button` or `a` tag causes both styling and screenreader problems.
|
|
1647
|
+
*
|
|
1648
|
+
* To solve these issues, `ClickArea` maps a click event on the container element to a click event on a button or link within
|
|
1649
|
+
* it, via a ref. Assistive devices can utilize the target element and ignore the container element's click property.
|
|
1650
|
+
*
|
|
1651
|
+
* ClickArea also makes having interactive elements within the clickable container easier. For example, if you have a card element
|
|
1652
|
+
* that is clickable but with a "close" button in the top right, include `event.preventDefault()` in the close button's click handler
|
|
1653
|
+
* to prevent the container's click handler from firing.
|
|
1654
|
+
*
|
|
1758
1655
|
*/
|
|
1759
1656
|
declare const ClickArea: _$react.ForwardRefExoticComponent<Omit<ClickAreaProps, "ref"> & _$react.RefAttributes<HTMLElement>>;
|
|
1760
1657
|
//#endregion
|
|
1761
1658
|
//#region src/components/CloseButton/CloseButton.d.ts
|
|
1762
1659
|
type CloseButtonProps = ComponentPropsWithoutRef<'button'> & {
|
|
1763
|
-
/**
|
|
1764
|
-
* Callback function invoked when the button is clicked
|
|
1660
|
+
/**
|
|
1661
|
+
* Callback function invoked when the button is clicked
|
|
1765
1662
|
*/
|
|
1766
1663
|
onClick?: () => void;
|
|
1767
1664
|
};
|
|
@@ -1780,43 +1677,43 @@ declare const CARET_DIRECTION_DOWN = "down";
|
|
|
1780
1677
|
declare const CARET_DIRECTION_LEFT = "left";
|
|
1781
1678
|
declare const CARET_DIRECTION_RIGHT = "right";
|
|
1782
1679
|
type CollapsibleGroupProps = {
|
|
1783
|
-
/**
|
|
1784
|
-
* Slot for adjacent options
|
|
1680
|
+
/**
|
|
1681
|
+
* Slot for adjacent options
|
|
1785
1682
|
*/
|
|
1786
1683
|
actions?: ReactNode;
|
|
1787
|
-
/**
|
|
1788
|
-
* Custom background color
|
|
1684
|
+
/**
|
|
1685
|
+
* Custom background color
|
|
1789
1686
|
*/
|
|
1790
1687
|
backgroundColor?: string;
|
|
1791
|
-
/**
|
|
1792
|
-
* Custom direction of the caret when open or closed
|
|
1688
|
+
/**
|
|
1689
|
+
* Custom direction of the caret when open or closed
|
|
1793
1690
|
*/
|
|
1794
1691
|
caretDirection?: {
|
|
1795
1692
|
closed: typeof CARET_DIRECTION_DOWN | typeof CARET_DIRECTION_LEFT | typeof CARET_DIRECTION_RIGHT | typeof CARET_DIRECTION_UP;
|
|
1796
1693
|
open: typeof CARET_DIRECTION_DOWN | typeof CARET_DIRECTION_LEFT | typeof CARET_DIRECTION_RIGHT | typeof CARET_DIRECTION_UP;
|
|
1797
1694
|
};
|
|
1798
|
-
/**
|
|
1799
|
-
* Toggleable contents
|
|
1695
|
+
/**
|
|
1696
|
+
* Toggleable contents
|
|
1800
1697
|
*/
|
|
1801
1698
|
children?: ReactNode;
|
|
1802
|
-
/**
|
|
1803
|
-
* Optional CSS padding to be applied to the content container
|
|
1699
|
+
/**
|
|
1700
|
+
* Optional CSS padding to be applied to the content container
|
|
1804
1701
|
*/
|
|
1805
1702
|
contentPadding?: string | null;
|
|
1806
|
-
/**
|
|
1807
|
-
* The control has a caret by default. Set this to true to suppress the caret
|
|
1703
|
+
/**
|
|
1704
|
+
* The control has a caret by default. Set this to true to suppress the caret
|
|
1808
1705
|
*/
|
|
1809
1706
|
hideCaret?: boolean;
|
|
1810
|
-
/**
|
|
1811
|
-
* Optional ID attribute
|
|
1707
|
+
/**
|
|
1708
|
+
* Optional ID attribute
|
|
1812
1709
|
*/
|
|
1813
1710
|
id?: string;
|
|
1814
|
-
/**
|
|
1815
|
-
* Control the initial open state. If not provided, the default is to start closed.
|
|
1711
|
+
/**
|
|
1712
|
+
* Control the initial open state. If not provided, the default is to start closed.
|
|
1816
1713
|
*/
|
|
1817
1714
|
isOpen?: boolean;
|
|
1818
|
-
/**
|
|
1819
|
-
* Clickable text label for the control, or perhaps an inline editable
|
|
1715
|
+
/**
|
|
1716
|
+
* Clickable text label for the control, or perhaps an inline editable
|
|
1820
1717
|
* control? Whatever suits you */
|
|
1821
1718
|
label?: ReactNode | (({
|
|
1822
1719
|
open,
|
|
@@ -1825,29 +1722,29 @@ type CollapsibleGroupProps = {
|
|
|
1825
1722
|
open: boolean;
|
|
1826
1723
|
caret: JSX.Element;
|
|
1827
1724
|
}) => ReactNode);
|
|
1828
|
-
/**
|
|
1829
|
-
* Choose on which side the caret shows
|
|
1725
|
+
/**
|
|
1726
|
+
* Choose on which side the caret shows
|
|
1830
1727
|
*/
|
|
1831
1728
|
layout?: 'leading' | 'trailing';
|
|
1832
|
-
/**
|
|
1833
|
-
* Callback function invoked when the button is clicked
|
|
1729
|
+
/**
|
|
1730
|
+
* Callback function invoked when the button is clicked
|
|
1834
1731
|
*/
|
|
1835
1732
|
onClick?: () => unknown;
|
|
1836
|
-
/**
|
|
1837
|
-
* Callback function invoked when the open state changes
|
|
1733
|
+
/**
|
|
1734
|
+
* Callback function invoked when the open state changes
|
|
1838
1735
|
*/
|
|
1839
1736
|
onOpenChange?: (newOpen: boolean) => unknown;
|
|
1840
|
-
/**
|
|
1841
|
-
* Extra actions are hidden by default and shown on hover. Set this to false
|
|
1842
|
-
* to make always visible
|
|
1737
|
+
/**
|
|
1738
|
+
* Extra actions are hidden by default and shown on hover. Set this to false
|
|
1739
|
+
* to make always visible
|
|
1843
1740
|
*/
|
|
1844
1741
|
showActionsOnHover?: boolean;
|
|
1845
|
-
/**
|
|
1846
|
-
* Display the open / close transition animation
|
|
1742
|
+
/**
|
|
1743
|
+
* Display the open / close transition animation
|
|
1847
1744
|
*/
|
|
1848
1745
|
showTransition?: boolean;
|
|
1849
|
-
/**
|
|
1850
|
-
* Changes the styling of the collapsible group banner when active
|
|
1746
|
+
/**
|
|
1747
|
+
* Changes the styling of the collapsible group banner when active
|
|
1851
1748
|
*/
|
|
1852
1749
|
variant?: typeof VARIANT_BRAND_BLUE;
|
|
1853
1750
|
};
|
|
@@ -1874,16 +1771,16 @@ declare const CollapsibleGroup: {
|
|
|
1874
1771
|
//#endregion
|
|
1875
1772
|
//#region src/components/Divider/Divider.d.ts
|
|
1876
1773
|
type DividerProps = ComponentPropsWithoutRef<'hr'> & {
|
|
1877
|
-
/**
|
|
1878
|
-
* Allows user to override default divider color
|
|
1774
|
+
/**
|
|
1775
|
+
* Allows user to override default divider color
|
|
1879
1776
|
*/
|
|
1880
1777
|
colorOverride?: string;
|
|
1881
|
-
/**
|
|
1882
|
-
* Height (in pixels) of divider
|
|
1778
|
+
/**
|
|
1779
|
+
* Height (in pixels) of divider
|
|
1883
1780
|
*/
|
|
1884
1781
|
height?: number;
|
|
1885
|
-
/**
|
|
1886
|
-
* The visual type of divider to display
|
|
1782
|
+
/**
|
|
1783
|
+
* The visual type of divider to display
|
|
1887
1784
|
*/
|
|
1888
1785
|
variant?: 'dashed' | 'solid';
|
|
1889
1786
|
};
|
|
@@ -1901,12 +1798,12 @@ declare const Divider: {
|
|
|
1901
1798
|
declare const ellipsisStyle: _$styled_components0.RuleSet<object>;
|
|
1902
1799
|
declare const ellipsisFlexParentStyle: _$styled_components0.RuleSet<object>;
|
|
1903
1800
|
type EllipsisProps = ComponentPropsWithoutRef<'div'> & {
|
|
1904
|
-
/**
|
|
1905
|
-
* The text that will be truncated with an ellipsis
|
|
1801
|
+
/**
|
|
1802
|
+
* The text that will be truncated with an ellipsis
|
|
1906
1803
|
*/
|
|
1907
1804
|
children?: ReactNode;
|
|
1908
|
-
/**
|
|
1909
|
-
* The number that will be truncated with an ellipsis
|
|
1805
|
+
/**
|
|
1806
|
+
* The number that will be truncated with an ellipsis
|
|
1910
1807
|
*/
|
|
1911
1808
|
lines?: number;
|
|
1912
1809
|
};
|
|
@@ -1921,45 +1818,45 @@ declare const Ellipsis: {
|
|
|
1921
1818
|
//#endregion
|
|
1922
1819
|
//#region src/components/FileSelect/FileSelect.d.ts
|
|
1923
1820
|
type FileSelectProps = {
|
|
1924
|
-
/**
|
|
1925
|
-
* Allowlist of file types that the server will accept
|
|
1926
|
-
* (see: <a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-accept">file input docs</a>)
|
|
1821
|
+
/**
|
|
1822
|
+
* Allowlist of file types that the server will accept
|
|
1823
|
+
* (see: <a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-accept">file input docs</a>)
|
|
1927
1824
|
*/
|
|
1928
1825
|
accept: string;
|
|
1929
|
-
/**
|
|
1930
|
-
* Pass an arbitrary child node
|
|
1826
|
+
/**
|
|
1827
|
+
* Pass an arbitrary child node
|
|
1931
1828
|
*/
|
|
1932
1829
|
children: ReactNode;
|
|
1933
|
-
/**
|
|
1934
|
-
* Disable the input. <em>Note: Does not "disable" the child component, only the hidden input</em>
|
|
1830
|
+
/**
|
|
1831
|
+
* Disable the input. <em>Note: Does not "disable" the child component, only the hidden input</em>
|
|
1935
1832
|
*/
|
|
1936
1833
|
disabled?: boolean;
|
|
1937
|
-
/**
|
|
1938
|
-
* ID of the input
|
|
1834
|
+
/**
|
|
1835
|
+
* ID of the input
|
|
1939
1836
|
*/
|
|
1940
1837
|
id: string;
|
|
1941
|
-
/**
|
|
1942
|
-
* File size limit specified in MB
|
|
1838
|
+
/**
|
|
1839
|
+
* File size limit specified in MB
|
|
1943
1840
|
*/
|
|
1944
1841
|
maxSize?: number;
|
|
1945
|
-
/**
|
|
1946
|
-
* Allow multiple files to be selected
|
|
1842
|
+
/**
|
|
1843
|
+
* Allow multiple files to be selected
|
|
1947
1844
|
*/
|
|
1948
1845
|
multiple?: boolean;
|
|
1949
|
-
/**
|
|
1950
|
-
* Name of the input
|
|
1846
|
+
/**
|
|
1847
|
+
* Name of the input
|
|
1951
1848
|
*/
|
|
1952
1849
|
name?: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* Callback invoked when file has been selected
|
|
1850
|
+
/**
|
|
1851
|
+
* Callback invoked when file has been selected
|
|
1955
1852
|
*/
|
|
1956
1853
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
1957
|
-
/**
|
|
1958
|
-
* Callback invoked when the file input is clicked (before the file has been selected)
|
|
1854
|
+
/**
|
|
1855
|
+
* Callback invoked when the file input is clicked (before the file has been selected)
|
|
1959
1856
|
*/
|
|
1960
1857
|
onClick?: (...args: unknown[]) => unknown;
|
|
1961
|
-
/**
|
|
1962
|
-
* Callback invoked when there is an error selecting file(s)
|
|
1858
|
+
/**
|
|
1859
|
+
* Callback invoked when there is an error selecting file(s)
|
|
1963
1860
|
*/
|
|
1964
1861
|
onError?: (error: Error) => void;
|
|
1965
1862
|
};
|
|
@@ -1970,68 +1867,68 @@ type ValuesType = Record<string, unknown>;
|
|
|
1970
1867
|
type Values = Record<string, unknown>;
|
|
1971
1868
|
type FormState = FormikProps<Values>;
|
|
1972
1869
|
type FormProps = {
|
|
1973
|
-
/**
|
|
1974
|
-
* Pass an arbitrary child node
|
|
1870
|
+
/**
|
|
1871
|
+
* Pass an arbitrary child node
|
|
1975
1872
|
*/
|
|
1976
1873
|
children?: ReactNode;
|
|
1977
|
-
/**
|
|
1978
|
-
* Class(es) to be applied to formik container
|
|
1874
|
+
/**
|
|
1875
|
+
* Class(es) to be applied to formik container
|
|
1979
1876
|
*/
|
|
1980
1877
|
className?: string;
|
|
1981
|
-
/**
|
|
1982
|
-
* Unique ID for Form, used for React Testing Library
|
|
1878
|
+
/**
|
|
1879
|
+
* Unique ID for Form, used for React Testing Library
|
|
1983
1880
|
*/
|
|
1984
1881
|
formId: string;
|
|
1985
|
-
/**
|
|
1986
|
-
* Ref required to be ref of FormGlobalError. Simply assign `const globalErrorRef = useRef(null)`. Either a function or the instance of a DOM native element.
|
|
1882
|
+
/**
|
|
1883
|
+
* Ref required to be ref of FormGlobalError. Simply assign `const globalErrorRef = useRef(null)`. Either a function or the instance of a DOM native element.
|
|
1987
1884
|
*/
|
|
1988
1885
|
globalErrorRef: RefObject<HTMLElement | null | undefined>;
|
|
1989
|
-
/**
|
|
1990
|
-
* Form input values on initial load, often populated from server
|
|
1886
|
+
/**
|
|
1887
|
+
* Form input values on initial load, often populated from server
|
|
1991
1888
|
*/
|
|
1992
1889
|
initialValues: ValuesType;
|
|
1993
|
-
/**
|
|
1994
|
-
* Ref to access the form's state and API
|
|
1890
|
+
/**
|
|
1891
|
+
* Ref to access the form's state and API
|
|
1995
1892
|
*/
|
|
1996
1893
|
innerRef?: Ref<FormState>;
|
|
1997
|
-
/**
|
|
1998
|
-
* On-submit callback
|
|
1894
|
+
/**
|
|
1895
|
+
* On-submit callback
|
|
1999
1896
|
*/
|
|
2000
1897
|
onSubmit: (values: Record<string, unknown>, ref: FormikHelpers<Values>) => unknown;
|
|
2001
|
-
/**
|
|
2002
|
-
* On form submission with errors (isValid=false), scroll to GlobalError section
|
|
1898
|
+
/**
|
|
1899
|
+
* On form submission with errors (isValid=false), scroll to GlobalError section
|
|
2003
1900
|
*/
|
|
2004
1901
|
scrollToFormErrorsOnSubmit?: boolean;
|
|
2005
|
-
/**
|
|
2006
|
-
* On-validate callback, params include values, and the rest of the form state params available in [Formik](https://jaredpalmer.com/formik/docs/api/formik#props-1)
|
|
1902
|
+
/**
|
|
1903
|
+
* On-validate callback, params include values, and the rest of the form state params available in [Formik](https://jaredpalmer.com/formik/docs/api/formik#props-1)
|
|
2007
1904
|
*/
|
|
2008
1905
|
shareFormContext?: (props: FormikProps<Values>) => unknown;
|
|
2009
|
-
/**
|
|
2010
|
-
* Show a top-level rundown of all the errors in the form
|
|
1906
|
+
/**
|
|
1907
|
+
* Show a top-level rundown of all the errors in the form
|
|
2011
1908
|
*/
|
|
2012
1909
|
showGlobalError?: boolean;
|
|
2013
|
-
/**
|
|
2014
|
-
* Style object applied to Form component
|
|
1910
|
+
/**
|
|
1911
|
+
* Style object applied to Form component
|
|
2015
1912
|
*/
|
|
2016
1913
|
style?: Record<string, string>;
|
|
2017
|
-
/**
|
|
2018
|
-
* Should form submit when an input's onChange is invoked?
|
|
1914
|
+
/**
|
|
1915
|
+
* Should form submit when an input's onChange is invoked?
|
|
2019
1916
|
*/
|
|
2020
1917
|
submitOnChange?: boolean;
|
|
2021
|
-
/**
|
|
2022
|
-
* Validate function passed to formik
|
|
1918
|
+
/**
|
|
1919
|
+
* Validate function passed to formik
|
|
2023
1920
|
*/
|
|
2024
1921
|
validate?: (values: Values) => Promise<FormikErrors<Values>> | object | void;
|
|
2025
|
-
/**
|
|
2026
|
-
* Should form run validate function on form blur?
|
|
1922
|
+
/**
|
|
1923
|
+
* Should form run validate function on form blur?
|
|
2027
1924
|
*/
|
|
2028
1925
|
validateOnBlur?: boolean;
|
|
2029
|
-
/**
|
|
2030
|
-
* Should form run validate function on form change?
|
|
1926
|
+
/**
|
|
1927
|
+
* Should form run validate function on form change?
|
|
2031
1928
|
*/
|
|
2032
1929
|
validateOnChange?: boolean;
|
|
2033
|
-
/**
|
|
2034
|
-
* __[`yup` schema](https://github.com/jquense/yup#yup)__
|
|
1930
|
+
/**
|
|
1931
|
+
* __[`yup` schema](https://github.com/jquense/yup#yup)__
|
|
2035
1932
|
*/
|
|
2036
1933
|
validationSchema?: ValidationSchemaType;
|
|
2037
1934
|
};
|
|
@@ -2067,12 +1964,12 @@ type ButtonsType = {
|
|
|
2067
1964
|
type?: 'button' | 'reset' | 'submit' | undefined;
|
|
2068
1965
|
};
|
|
2069
1966
|
type FormButtonsProps = {
|
|
2070
|
-
/**
|
|
2071
|
-
* Align button left (typically on a page) or right (typically on a modal).
|
|
1967
|
+
/**
|
|
1968
|
+
* Align button left (typically on a page) or right (typically on a modal).
|
|
2072
1969
|
*/
|
|
2073
1970
|
align?: 'left' | 'right';
|
|
2074
|
-
/**
|
|
2075
|
-
* Each button object must have a name, but can also be passed any props that apply to a Button component.
|
|
1971
|
+
/**
|
|
1972
|
+
* Each button object must have a name, but can also be passed any props that apply to a Button component.
|
|
2076
1973
|
*/
|
|
2077
1974
|
buttons: ButtonsType[];
|
|
2078
1975
|
};
|
|
@@ -2145,59 +2042,59 @@ declare const rteFormatTypes: Readonly<{
|
|
|
2145
2042
|
//#endregion
|
|
2146
2043
|
//#region src/components/FormField/FormField.d.ts
|
|
2147
2044
|
type FormFieldProps = Omit<ComponentPropsWithRef<'input'>, 'placeholder'> & {
|
|
2148
|
-
/**
|
|
2149
|
-
* A custom component that acts as a field and that needs access to Formik fields
|
|
2045
|
+
/**
|
|
2046
|
+
* A custom component that acts as a field and that needs access to Formik fields
|
|
2150
2047
|
*/
|
|
2151
2048
|
customComponent?: ComponentClass<CustomComponentClass> | ((arg?: ComponentProps<typeof Field>) => ReactNode) | ((arg?: Record<string, unknown>) => ReactNode) | undefined;
|
|
2152
|
-
/**
|
|
2153
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
2049
|
+
/**
|
|
2050
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
2154
2051
|
*/
|
|
2155
2052
|
direction?: 'column' | 'row';
|
|
2156
|
-
/**
|
|
2157
|
-
* Disables form field
|
|
2053
|
+
/**
|
|
2054
|
+
* Disables form field
|
|
2158
2055
|
*/
|
|
2159
2056
|
disabled?: boolean;
|
|
2160
|
-
/**
|
|
2161
|
-
* Only takes effect if type is richTextEditor. An array of formats that should be enabled in the toolbar.
|
|
2057
|
+
/**
|
|
2058
|
+
* Only takes effect if type is richTextEditor. An array of formats that should be enabled in the toolbar.
|
|
2162
2059
|
*/
|
|
2163
2060
|
enabledFormats?: (keyof typeof rteFormatTypes)[];
|
|
2164
|
-
/**
|
|
2165
|
-
* Visual label above the input
|
|
2061
|
+
/**
|
|
2062
|
+
* Visual label above the input
|
|
2166
2063
|
*/
|
|
2167
2064
|
label?: JSX.Element | string | undefined;
|
|
2168
|
-
/**
|
|
2169
|
-
* The hint/helper text under the label
|
|
2065
|
+
/**
|
|
2066
|
+
* The hint/helper text under the label
|
|
2170
2067
|
*/
|
|
2171
2068
|
labelDescription?: ReactNode;
|
|
2172
|
-
/**
|
|
2173
|
-
* Props that are passed through to the underlying `<Label>` component
|
|
2069
|
+
/**
|
|
2070
|
+
* Props that are passed through to the underlying `<Label>` component
|
|
2174
2071
|
*/
|
|
2175
2072
|
labelProps?: {
|
|
2176
2073
|
disabled?: boolean;
|
|
2177
2074
|
screenReaderOnly?: boolean;
|
|
2178
2075
|
};
|
|
2179
|
-
/**
|
|
2180
|
-
* HTML "name" attribute. Also needs to be unique in the form
|
|
2076
|
+
/**
|
|
2077
|
+
* HTML "name" attribute. Also needs to be unique in the form
|
|
2181
2078
|
*/
|
|
2182
2079
|
name?: string;
|
|
2183
|
-
/**
|
|
2184
|
-
* Custom onChange callback add-on. args: "value"
|
|
2080
|
+
/**
|
|
2081
|
+
* Custom onChange callback add-on. args: "value"
|
|
2185
2082
|
*/
|
|
2186
2083
|
onChangeCustom?: (value: string) => unknown;
|
|
2187
|
-
/**
|
|
2188
|
-
* Options passed down to the `<Field>` component
|
|
2084
|
+
/**
|
|
2085
|
+
* Options passed down to the `<Field>` component
|
|
2189
2086
|
*/
|
|
2190
2087
|
options?: Record<string, unknown>[];
|
|
2191
|
-
/**
|
|
2192
|
-
* Input's visual placeholder text
|
|
2088
|
+
/**
|
|
2089
|
+
* Input's visual placeholder text
|
|
2193
2090
|
*/
|
|
2194
2091
|
placeholder?: string | null | undefined;
|
|
2195
|
-
/**
|
|
2196
|
-
* Allows user to vertically or horizontally resize the form field, or to disable resizing altogether
|
|
2092
|
+
/**
|
|
2093
|
+
* Allows user to vertically or horizontally resize the form field, or to disable resizing altogether
|
|
2197
2094
|
*/
|
|
2198
2095
|
resize?: 'horizontal' | 'none' | 'vertical';
|
|
2199
|
-
/**
|
|
2200
|
-
* The type of the field sets the type of input or select, texarea, radio, checkbox, etc.
|
|
2096
|
+
/**
|
|
2097
|
+
* The type of the field sets the type of input or select, texarea, radio, checkbox, etc.
|
|
2201
2098
|
*/
|
|
2202
2099
|
type: 'checkbox' | 'custom' | 'email' | 'hidden' | 'multiline' | 'number' | 'password' | 'radio' | 'richTextEditor' | 'select' | 'text' | 'url';
|
|
2203
2100
|
};
|
|
@@ -2220,28 +2117,28 @@ declare const FormGlobalError: _$react.ForwardRefExoticComponent<_$react.RefAttr
|
|
|
2220
2117
|
//#endregion
|
|
2221
2118
|
//#region src/components/FullScreenModal/FullScreenModal.d.ts
|
|
2222
2119
|
type FullScreenModalProps = {
|
|
2223
|
-
/**
|
|
2224
|
-
* Color of the modal background
|
|
2120
|
+
/**
|
|
2121
|
+
* Color of the modal background
|
|
2225
2122
|
*/
|
|
2226
2123
|
backgroundColor?: string;
|
|
2227
|
-
/**
|
|
2228
|
-
* Contents of the modal
|
|
2124
|
+
/**
|
|
2125
|
+
* Contents of the modal
|
|
2229
2126
|
*/
|
|
2230
2127
|
content: (hide: () => unknown) => ReactNode;
|
|
2231
|
-
/**
|
|
2232
|
-
* Render the modal initially in shown state
|
|
2128
|
+
/**
|
|
2129
|
+
* Render the modal initially in shown state
|
|
2233
2130
|
*/
|
|
2234
2131
|
initialShownState?: boolean;
|
|
2235
|
-
/**
|
|
2236
|
-
* Callback invoked before the modal is hidden
|
|
2132
|
+
/**
|
|
2133
|
+
* Callback invoked before the modal is hidden
|
|
2237
2134
|
*/
|
|
2238
2135
|
onBeforeHide?: (() => OnBeforeHideInterface) | undefined;
|
|
2239
|
-
/**
|
|
2240
|
-
* Callback invoked when the modal is shown
|
|
2136
|
+
/**
|
|
2137
|
+
* Callback invoked when the modal is shown
|
|
2241
2138
|
*/
|
|
2242
2139
|
onHide?: () => unknown;
|
|
2243
|
-
/**
|
|
2244
|
-
* function(show, ref) that returns a node to open the modal
|
|
2140
|
+
/**
|
|
2141
|
+
* function(show, ref) that returns a node to open the modal
|
|
2245
2142
|
*/
|
|
2246
2143
|
toggle?: ((show: () => unknown, toggleButtonRef?: RefObject<HTMLElement | null | undefined>) => ReactNode) | undefined;
|
|
2247
2144
|
};
|
|
@@ -2266,20 +2163,20 @@ declare const iconSizeMap: {
|
|
|
2266
2163
|
xxl: string;
|
|
2267
2164
|
};
|
|
2268
2165
|
type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
2269
|
-
/**
|
|
2270
|
-
* Color (as hex) of the Icon
|
|
2166
|
+
/**
|
|
2167
|
+
* Color (as hex) of the Icon
|
|
2271
2168
|
*/
|
|
2272
2169
|
color?: string;
|
|
2273
|
-
/**
|
|
2274
|
-
* The size of the icon to display
|
|
2170
|
+
/**
|
|
2171
|
+
* The size of the icon to display
|
|
2275
2172
|
*/
|
|
2276
2173
|
size?: keyof typeof iconSizeMap;
|
|
2277
|
-
/**
|
|
2278
|
-
* @ignore
|
|
2174
|
+
/**
|
|
2175
|
+
* @ignore
|
|
2279
2176
|
*/
|
|
2280
2177
|
style?: Record<string, unknown>;
|
|
2281
|
-
/**
|
|
2282
|
-
* Determines which icon to display
|
|
2178
|
+
/**
|
|
2179
|
+
* Determines which icon to display
|
|
2283
2180
|
*/
|
|
2284
2181
|
type: IconNameType;
|
|
2285
2182
|
};
|
|
@@ -2307,40 +2204,40 @@ declare const componentStyleMap: {
|
|
|
2307
2204
|
type sizeType = keyof typeof sizeMap;
|
|
2308
2205
|
type componentStyleType = keyof typeof componentStyleMap;
|
|
2309
2206
|
type IconButtonProps = ComponentPropsWithRef<'button'> & {
|
|
2310
|
-
/**
|
|
2311
|
-
* Allows user to override default button colors
|
|
2207
|
+
/**
|
|
2208
|
+
* Allows user to override default button colors
|
|
2312
2209
|
*/
|
|
2313
2210
|
colorOverride?: string | undefined;
|
|
2314
|
-
/**
|
|
2315
|
-
* Choose light styles if this component appears on a dark background
|
|
2211
|
+
/**
|
|
2212
|
+
* Choose light styles if this component appears on a dark background
|
|
2316
2213
|
*/
|
|
2317
2214
|
componentStyle?: componentStyleType;
|
|
2318
|
-
/**
|
|
2319
|
-
* Disables button
|
|
2215
|
+
/**
|
|
2216
|
+
* Disables button
|
|
2320
2217
|
*/
|
|
2321
2218
|
disabled?: boolean;
|
|
2322
|
-
/**
|
|
2323
|
-
* An SVG component
|
|
2219
|
+
/**
|
|
2220
|
+
* An SVG component
|
|
2324
2221
|
*/
|
|
2325
2222
|
icon?: ReactNode;
|
|
2326
|
-
/**
|
|
2327
|
-
* Text that appears as a tooltip when the user hovers over the button
|
|
2223
|
+
/**
|
|
2224
|
+
* Text that appears as a tooltip when the user hovers over the button
|
|
2328
2225
|
*/
|
|
2329
2226
|
label?: string;
|
|
2330
|
-
/**
|
|
2331
|
-
* Callback function invoked when the button is clicked
|
|
2227
|
+
/**
|
|
2228
|
+
* Callback function invoked when the button is clicked
|
|
2332
2229
|
*/
|
|
2333
2230
|
onClick?: ((event: MouseEvent) => void) | undefined;
|
|
2334
|
-
/**
|
|
2335
|
-
* Prevent a Tooltip from appearing on hover
|
|
2231
|
+
/**
|
|
2232
|
+
* Prevent a Tooltip from appearing on hover
|
|
2336
2233
|
*/
|
|
2337
2234
|
preventTooltip?: boolean;
|
|
2338
|
-
/**
|
|
2339
|
-
* The size of the button
|
|
2235
|
+
/**
|
|
2236
|
+
* The size of the button
|
|
2340
2237
|
*/
|
|
2341
2238
|
size?: sizeType;
|
|
2342
|
-
/**
|
|
2343
|
-
* The direction of the tooltip
|
|
2239
|
+
/**
|
|
2240
|
+
* The direction of the tooltip
|
|
2344
2241
|
*/
|
|
2345
2242
|
tooltipDirection?: 'bottom' | 'left' | 'right' | 'top';
|
|
2346
2243
|
};
|
|
@@ -2348,33 +2245,33 @@ declare const IconButton: _$react.ForwardRefExoticComponent<Omit<IconButtonProps
|
|
|
2348
2245
|
//#endregion
|
|
2349
2246
|
//#region src/components/Image/Image.d.ts
|
|
2350
2247
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
2351
|
-
/**
|
|
2352
|
-
* Accessible text to apply to the image
|
|
2248
|
+
/**
|
|
2249
|
+
* Accessible text to apply to the image
|
|
2353
2250
|
*/
|
|
2354
2251
|
alt: string;
|
|
2355
|
-
/**
|
|
2356
|
-
* Specifies whether the width and/or height should fill the container
|
|
2357
|
-
*
|
|
2358
|
-
* *Note: this will override height/width attributes*
|
|
2252
|
+
/**
|
|
2253
|
+
* Specifies whether the width and/or height should fill the container
|
|
2254
|
+
*
|
|
2255
|
+
* *Note: this will override height/width attributes*
|
|
2359
2256
|
*/
|
|
2360
2257
|
fill?: boolean | 'horizontal' | 'vertical';
|
|
2361
|
-
/**
|
|
2362
|
-
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
2363
|
-
* be adjusted to fit within its container
|
|
2258
|
+
/**
|
|
2259
|
+
* Specifies how the image's intrinsic size (ie. its natural size) should
|
|
2260
|
+
* be adjusted to fit within its container
|
|
2364
2261
|
*/
|
|
2365
2262
|
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
2366
|
-
/**
|
|
2367
|
-
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
2368
|
-
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
2369
|
-
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
2263
|
+
/**
|
|
2264
|
+
* Indicates how the browser should load the image; `eager`loads the image immediately,
|
|
2265
|
+
* `lazy` defers loading the image until it reaches a calculated distance from the viewport.
|
|
2266
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading
|
|
2370
2267
|
*/
|
|
2371
2268
|
loading?: 'eager' | 'lazy';
|
|
2372
|
-
/**
|
|
2373
|
-
* Specifies how the image will align itself in its container
|
|
2269
|
+
/**
|
|
2270
|
+
* Specifies how the image will align itself in its container
|
|
2374
2271
|
*/
|
|
2375
2272
|
position?: string;
|
|
2376
|
-
/**
|
|
2377
|
-
* URL to image file
|
|
2273
|
+
/**
|
|
2274
|
+
* URL to image file
|
|
2378
2275
|
*/
|
|
2379
2276
|
src: string;
|
|
2380
2277
|
};
|
|
@@ -2395,85 +2292,85 @@ declare const Image: {
|
|
|
2395
2292
|
type IconPositionStrings = 'end' | 'start';
|
|
2396
2293
|
type ForcedStateStrings = 'active' | 'focus' | 'hover';
|
|
2397
2294
|
type InputProps = ComponentPropsWithRef<'input'> & {
|
|
2398
|
-
/**
|
|
2399
|
-
* Copy-to-clipboard-on-click of input's value with copy icon
|
|
2295
|
+
/**
|
|
2296
|
+
* Copy-to-clipboard-on-click of input's value with copy icon
|
|
2400
2297
|
*/
|
|
2401
2298
|
clickToCopy?: boolean;
|
|
2402
|
-
/**
|
|
2403
|
-
* Disables Input
|
|
2299
|
+
/**
|
|
2300
|
+
* Disables Input
|
|
2404
2301
|
*/
|
|
2405
2302
|
disabled?: boolean | undefined;
|
|
2406
|
-
/**
|
|
2407
|
-
* @ignore
|
|
2408
|
-
* Force an Input into a particular css state (for debugging)
|
|
2303
|
+
/**
|
|
2304
|
+
* @ignore
|
|
2305
|
+
* Force an Input into a particular css state (for debugging)
|
|
2409
2306
|
*/
|
|
2410
2307
|
forceState?: ForcedStateStrings;
|
|
2411
|
-
/**
|
|
2412
|
-
* Should Input occupy 100% of available space
|
|
2308
|
+
/**
|
|
2309
|
+
* Should Input occupy 100% of available space
|
|
2413
2310
|
*/
|
|
2414
2311
|
fullWidth?: boolean;
|
|
2415
|
-
/**
|
|
2416
|
-
* Indicates that there is an error with the input
|
|
2312
|
+
/**
|
|
2313
|
+
* Indicates that there is an error with the input
|
|
2417
2314
|
*/
|
|
2418
2315
|
hasError?: boolean;
|
|
2419
|
-
/**
|
|
2420
|
-
* An SVG component that will appear on the right-hand side of the input
|
|
2421
|
-
* _Note:_ some input types will apply a icon by default
|
|
2316
|
+
/**
|
|
2317
|
+
* An SVG component that will appear on the right-hand side of the input
|
|
2318
|
+
* _Note:_ some input types will apply a icon by default
|
|
2422
2319
|
*/
|
|
2423
2320
|
icon?: ReactNode;
|
|
2424
|
-
/**
|
|
2425
|
-
* Indicates on which side of the input the icon should render. Will default to `end` unless the `type` prop is `search`.
|
|
2321
|
+
/**
|
|
2322
|
+
* Indicates on which side of the input the icon should render. Will default to `end` unless the `type` prop is `search`.
|
|
2426
2323
|
*/
|
|
2427
2324
|
iconPosition?: IconPositionStrings;
|
|
2428
|
-
/**
|
|
2429
|
-
* @ignore
|
|
2430
|
-
* This is a prop that is here for use by FormField. Otherwise,
|
|
2431
|
-
* the ref prop should just be used
|
|
2325
|
+
/**
|
|
2326
|
+
* @ignore
|
|
2327
|
+
* This is a prop that is here for use by FormField. Otherwise,
|
|
2328
|
+
* the ref prop should just be used
|
|
2432
2329
|
*/
|
|
2433
2330
|
innerRef?: RefObject<HTMLInputElement | null>;
|
|
2434
|
-
/**
|
|
2435
|
-
* Displays text in monospace font
|
|
2331
|
+
/**
|
|
2332
|
+
* Displays text in monospace font
|
|
2436
2333
|
*/
|
|
2437
2334
|
monospace?: boolean;
|
|
2438
|
-
/**
|
|
2439
|
-
* Callback function invoked when the input focus blurs
|
|
2335
|
+
/**
|
|
2336
|
+
* Callback function invoked when the input focus blurs
|
|
2440
2337
|
*/
|
|
2441
2338
|
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
2442
|
-
/**
|
|
2443
|
-
* Callback function invoked when the input value changes
|
|
2339
|
+
/**
|
|
2340
|
+
* Callback function invoked when the input value changes
|
|
2444
2341
|
*/
|
|
2445
2342
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
2446
|
-
/**
|
|
2447
|
-
* Callback function invoked when the input value is copied
|
|
2343
|
+
/**
|
|
2344
|
+
* Callback function invoked when the input value is copied
|
|
2448
2345
|
*/
|
|
2449
2346
|
onClickToCopy?: () => void;
|
|
2450
|
-
/**
|
|
2451
|
-
* Callback function invoked when the input is focused
|
|
2347
|
+
/**
|
|
2348
|
+
* Callback function invoked when the input is focused
|
|
2452
2349
|
*/
|
|
2453
2350
|
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
2454
|
-
/**
|
|
2455
|
-
* Callback function that will select input text when input is focused;
|
|
2456
|
-
* receives event object but if that is not needed just pass a no-op function
|
|
2351
|
+
/**
|
|
2352
|
+
* Callback function that will select input text when input is focused;
|
|
2353
|
+
* receives event object but if that is not needed just pass a no-op function
|
|
2457
2354
|
*/
|
|
2458
2355
|
onFocusToSelect?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
2459
|
-
/**
|
|
2460
|
-
* A short hint for the user about what value the Input expects
|
|
2356
|
+
/**
|
|
2357
|
+
* A short hint for the user about what value the Input expects
|
|
2461
2358
|
*/
|
|
2462
2359
|
placeholder?: string | undefined;
|
|
2463
|
-
/**
|
|
2464
|
-
* Prevent the Input from being writable (different styling from disabled)
|
|
2360
|
+
/**
|
|
2361
|
+
* Prevent the Input from being writable (different styling from disabled)
|
|
2465
2362
|
*/
|
|
2466
2363
|
readOnly?: boolean;
|
|
2467
|
-
/**
|
|
2468
|
-
* Make Input a required element
|
|
2364
|
+
/**
|
|
2365
|
+
* Make Input a required element
|
|
2469
2366
|
*/
|
|
2470
2367
|
required?: boolean;
|
|
2471
|
-
/**
|
|
2472
|
-
* The type of Input to render
|
|
2368
|
+
/**
|
|
2369
|
+
* The type of Input to render
|
|
2473
2370
|
*/
|
|
2474
2371
|
type?: HTMLInputTypeAttribute;
|
|
2475
|
-
/**
|
|
2476
|
-
* The content of Input
|
|
2372
|
+
/**
|
|
2373
|
+
* The content of Input
|
|
2477
2374
|
*/
|
|
2478
2375
|
value?: number | string | undefined;
|
|
2479
2376
|
};
|
|
@@ -2488,20 +2385,20 @@ type KeyboardKeys = AlphanumericKeyboardKeys | ArrowKeys | ModifierKeys | Whites
|
|
|
2488
2385
|
//#endregion
|
|
2489
2386
|
//#region src/components/KeyboardShortcut/KeyboardShortcut.d.ts
|
|
2490
2387
|
type KeyboardShortcutProps = ComponentPropsWithoutRef<'div'> & {
|
|
2491
|
-
/**
|
|
2492
|
-
* @description The visual style of the keyboard shortcut. Choose light if the background is dark and dark if the background is light.
|
|
2388
|
+
/**
|
|
2389
|
+
* @description The visual style of the keyboard shortcut. Choose light if the background is dark and dark if the background is light.
|
|
2493
2390
|
*/
|
|
2494
2391
|
componentStyle?: 'dark' | 'light';
|
|
2495
|
-
/**
|
|
2496
|
-
* @description If set to true, the keyboard shortcut will stretch the full width of its container.
|
|
2392
|
+
/**
|
|
2393
|
+
* @description If set to true, the keyboard shortcut will stretch the full width of its container.
|
|
2497
2394
|
*/
|
|
2498
2395
|
fullWidth?: boolean;
|
|
2499
|
-
/**
|
|
2500
|
-
* @description The keys displayed.
|
|
2396
|
+
/**
|
|
2397
|
+
* @description The keys displayed.
|
|
2501
2398
|
*/
|
|
2502
2399
|
keyboardKeys: KeyboardKeys | KeyboardKeys[];
|
|
2503
|
-
/**
|
|
2504
|
-
* @description A visual label for the keyboard shortcut.
|
|
2400
|
+
/**
|
|
2401
|
+
* @description A visual label for the keyboard shortcut.
|
|
2505
2402
|
*/
|
|
2506
2403
|
label?: string;
|
|
2507
2404
|
};
|
|
@@ -2518,29 +2415,29 @@ declare const KeyboardShortcut: {
|
|
|
2518
2415
|
//#endregion
|
|
2519
2416
|
//#region src/components/Label/Label.d.ts
|
|
2520
2417
|
type LabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
2521
|
-
/**
|
|
2522
|
-
* Pass an arbitrary child node
|
|
2418
|
+
/**
|
|
2419
|
+
* Pass an arbitrary child node
|
|
2523
2420
|
*/
|
|
2524
2421
|
children?: ReactNode;
|
|
2525
|
-
/**
|
|
2526
|
-
* To indicate that the label is for a disabled form component
|
|
2422
|
+
/**
|
|
2423
|
+
* To indicate that the label is for a disabled form component
|
|
2527
2424
|
*/
|
|
2528
2425
|
disabled?: boolean;
|
|
2529
|
-
/**
|
|
2530
|
-
* ID of the form component that the label should be associated with
|
|
2426
|
+
/**
|
|
2427
|
+
* ID of the form component that the label should be associated with
|
|
2531
2428
|
*/
|
|
2532
2429
|
htmlFor?: string | undefined;
|
|
2533
|
-
/**
|
|
2534
|
-
* To use 'legend', 'p', 'span', or other instead of 'label'
|
|
2430
|
+
/**
|
|
2431
|
+
* To use 'legend', 'p', 'span', or other instead of 'label'
|
|
2535
2432
|
*/
|
|
2536
2433
|
renderAs?: 'div' | 'label' | 'legend' | 'p' | 'span' | undefined;
|
|
2537
|
-
/**
|
|
2538
|
-
* Use if label describes a required form component
|
|
2434
|
+
/**
|
|
2435
|
+
* Use if label describes a required form component
|
|
2539
2436
|
*/
|
|
2540
2437
|
required?: boolean;
|
|
2541
|
-
/**
|
|
2542
|
-
* For label text that needs to be available to assistive technology (e.g. screen readers)
|
|
2543
|
-
* but otherwise hidden on screen.
|
|
2438
|
+
/**
|
|
2439
|
+
* For label text that needs to be available to assistive technology (e.g. screen readers)
|
|
2440
|
+
* but otherwise hidden on screen.
|
|
2544
2441
|
*/
|
|
2545
2442
|
screenReaderOnly?: boolean;
|
|
2546
2443
|
};
|
|
@@ -2573,72 +2470,72 @@ declare const LabelDescription: {
|
|
|
2573
2470
|
//#endregion
|
|
2574
2471
|
//#region src/components/LinkButton/LinkButton.d.ts
|
|
2575
2472
|
type LinkButtonProps = ComponentPropsWithoutRef<'button'> & {
|
|
2576
|
-
/**
|
|
2577
|
-
* Pass an arbitrary child node
|
|
2473
|
+
/**
|
|
2474
|
+
* Pass an arbitrary child node
|
|
2578
2475
|
*/
|
|
2579
2476
|
children?: ReactNode;
|
|
2580
|
-
/**
|
|
2581
|
-
* Disables Button
|
|
2477
|
+
/**
|
|
2478
|
+
* Disables Button
|
|
2582
2479
|
*/
|
|
2583
2480
|
disabled?: boolean;
|
|
2584
|
-
/**
|
|
2585
|
-
* @ignore
|
|
2586
|
-
* Force a Button into a particular css state (for debugging)
|
|
2481
|
+
/**
|
|
2482
|
+
* @ignore
|
|
2483
|
+
* Force a Button into a particular css state (for debugging)
|
|
2587
2484
|
*/
|
|
2588
2485
|
forceState?: 'active' | 'focus' | 'hover';
|
|
2589
|
-
/**
|
|
2590
|
-
* Text that appears inside the button
|
|
2486
|
+
/**
|
|
2487
|
+
* Text that appears inside the button
|
|
2591
2488
|
*/
|
|
2592
2489
|
label?: string;
|
|
2593
|
-
/**
|
|
2594
|
-
* Provides a button without any styling (useful for wrapping another element)
|
|
2490
|
+
/**
|
|
2491
|
+
* Provides a button without any styling (useful for wrapping another element)
|
|
2595
2492
|
*/
|
|
2596
2493
|
noStyle?: boolean;
|
|
2597
|
-
/**
|
|
2598
|
-
* Callback function invoked when the button is clicked
|
|
2494
|
+
/**
|
|
2495
|
+
* Callback function invoked when the button is clicked
|
|
2599
2496
|
*/
|
|
2600
|
-
onClick?: (event: KeyboardEvent
|
|
2601
|
-
/**
|
|
2602
|
-
* Will only display an underline when the Link is in a hover state
|
|
2497
|
+
onClick?: (event: KeyboardEvent | MouseEvent) => void;
|
|
2498
|
+
/**
|
|
2499
|
+
* Will only display an underline when the Link is in a hover state
|
|
2603
2500
|
*/
|
|
2604
2501
|
underlineOnHover?: boolean;
|
|
2605
|
-
/**
|
|
2606
|
-
* The visual type of Button to display
|
|
2502
|
+
/**
|
|
2503
|
+
* The visual type of Button to display
|
|
2607
2504
|
*/
|
|
2608
2505
|
variant?: 'primary' | 'secondary';
|
|
2609
2506
|
};
|
|
2610
2507
|
declare const LinkButton: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTMLProps<_$react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2611
|
-
/**
|
|
2612
|
-
* Pass an arbitrary child node
|
|
2508
|
+
/**
|
|
2509
|
+
* Pass an arbitrary child node
|
|
2613
2510
|
*/
|
|
2614
2511
|
children?: ReactNode;
|
|
2615
|
-
/**
|
|
2616
|
-
* Disables Button
|
|
2512
|
+
/**
|
|
2513
|
+
* Disables Button
|
|
2617
2514
|
*/
|
|
2618
2515
|
disabled?: boolean;
|
|
2619
|
-
/**
|
|
2620
|
-
* @ignore
|
|
2621
|
-
* Force a Button into a particular css state (for debugging)
|
|
2516
|
+
/**
|
|
2517
|
+
* @ignore
|
|
2518
|
+
* Force a Button into a particular css state (for debugging)
|
|
2622
2519
|
*/
|
|
2623
2520
|
forceState?: "active" | "focus" | "hover";
|
|
2624
|
-
/**
|
|
2625
|
-
* Text that appears inside the button
|
|
2521
|
+
/**
|
|
2522
|
+
* Text that appears inside the button
|
|
2626
2523
|
*/
|
|
2627
2524
|
label?: string;
|
|
2628
|
-
/**
|
|
2629
|
-
* Provides a button without any styling (useful for wrapping another element)
|
|
2525
|
+
/**
|
|
2526
|
+
* Provides a button without any styling (useful for wrapping another element)
|
|
2630
2527
|
*/
|
|
2631
2528
|
noStyle?: boolean;
|
|
2632
|
-
/**
|
|
2633
|
-
* Callback function invoked when the button is clicked
|
|
2529
|
+
/**
|
|
2530
|
+
* Callback function invoked when the button is clicked
|
|
2634
2531
|
*/
|
|
2635
|
-
onClick?: (event: KeyboardEvent
|
|
2636
|
-
/**
|
|
2637
|
-
* Will only display an underline when the Link is in a hover state
|
|
2532
|
+
onClick?: (event: KeyboardEvent | MouseEvent) => void;
|
|
2533
|
+
/**
|
|
2534
|
+
* Will only display an underline when the Link is in a hover state
|
|
2638
2535
|
*/
|
|
2639
2536
|
underlineOnHover?: boolean;
|
|
2640
|
-
/**
|
|
2641
|
-
* The visual type of Button to display
|
|
2537
|
+
/**
|
|
2538
|
+
* The visual type of Button to display
|
|
2642
2539
|
*/
|
|
2643
2540
|
variant?: "primary" | "secondary";
|
|
2644
2541
|
} & _$react.RefAttributes<HTMLSpanElement>>;
|
|
@@ -2647,17 +2544,17 @@ declare const LinkButton: _$react.ForwardRefExoticComponent<Omit<_$react.Detaile
|
|
|
2647
2544
|
type VariantType = 'breadcrumbs' | 'bullets' | 'commas' | 'ordered' | 'slashes' | 'spaces' | 'unbulleted';
|
|
2648
2545
|
type ItemType = ItemType[] | string[] | string;
|
|
2649
2546
|
type ListProps = ComponentPropsWithoutRef<'ul'> & {
|
|
2650
|
-
/**
|
|
2651
|
-
* Children should be wrapped in `<ListItem>`
|
|
2547
|
+
/**
|
|
2548
|
+
* Children should be wrapped in `<ListItem>`
|
|
2652
2549
|
*/
|
|
2653
2550
|
children?: ReactNode;
|
|
2654
|
-
/**
|
|
2655
|
-
* As an alternative to passing children you can supply an array of strings that
|
|
2656
|
-
* will be rendered as child `<ListItems>`s. Note that all items will be of the same variant.
|
|
2551
|
+
/**
|
|
2552
|
+
* As an alternative to passing children you can supply an array of strings that
|
|
2553
|
+
* will be rendered as child `<ListItems>`s. Note that all items will be of the same variant.
|
|
2657
2554
|
*/
|
|
2658
2555
|
items?: ItemType[];
|
|
2659
|
-
/**
|
|
2660
|
-
* The kind of list to render
|
|
2556
|
+
/**
|
|
2557
|
+
* The kind of list to render
|
|
2661
2558
|
*/
|
|
2662
2559
|
variant?: VariantType;
|
|
2663
2560
|
};
|
|
@@ -2673,8 +2570,8 @@ declare const List: {
|
|
|
2673
2570
|
//#endregion
|
|
2674
2571
|
//#region src/components/List/ListItem.d.ts
|
|
2675
2572
|
type ListItemProps = {
|
|
2676
|
-
/**
|
|
2677
|
-
* Pass an arbitrary child node
|
|
2573
|
+
/**
|
|
2574
|
+
* Pass an arbitrary child node
|
|
2678
2575
|
*/
|
|
2679
2576
|
children?: ReactNode;
|
|
2680
2577
|
};
|
|
@@ -2688,8 +2585,8 @@ declare const ListItem: {
|
|
|
2688
2585
|
//#region src/components/Menu/Menu.d.ts
|
|
2689
2586
|
type ControlledMenuProps = {
|
|
2690
2587
|
/** Is the menu open. Must be used with `onOpenChange`. */isOpen: boolean;
|
|
2691
|
-
/** When an attempt to toggle the menu is triggered,
|
|
2692
|
-
* must be used with `isOpen`.
|
|
2588
|
+
/** When an attempt to toggle the menu is triggered,
|
|
2589
|
+
* must be used with `isOpen`.
|
|
2693
2590
|
*/
|
|
2694
2591
|
onOpenChange: (isOpen: boolean) => void;
|
|
2695
2592
|
};
|
|
@@ -2812,60 +2709,60 @@ declare const SubMenu: ({
|
|
|
2812
2709
|
//#endregion
|
|
2813
2710
|
//#region src/components/MenuButton/MenuButton.d.ts
|
|
2814
2711
|
type MenuButtonProps = ButtonProps & {
|
|
2815
|
-
/**
|
|
2816
|
-
* Disables button
|
|
2712
|
+
/**
|
|
2713
|
+
* Disables button
|
|
2817
2714
|
*/
|
|
2818
2715
|
disabled?: boolean;
|
|
2819
|
-
/**
|
|
2820
|
-
* Use this prop to pass an IconButton as the "trigger" instead of a standard Button
|
|
2716
|
+
/**
|
|
2717
|
+
* Use this prop to pass an IconButton as the "trigger" instead of a standard Button
|
|
2821
2718
|
*/
|
|
2822
2719
|
iconButtonComponent?: JSX.Element | ReactElement;
|
|
2823
|
-
/**
|
|
2824
|
-
* Text that appears inside the button
|
|
2720
|
+
/**
|
|
2721
|
+
* Text that appears inside the button
|
|
2825
2722
|
*/
|
|
2826
2723
|
label: string;
|
|
2827
|
-
/**
|
|
2828
|
-
* Which side of the button should the menu be aligned
|
|
2724
|
+
/**
|
|
2725
|
+
* Which side of the button should the menu be aligned
|
|
2829
2726
|
*/
|
|
2830
2727
|
menuAlignment?: 'left' | 'right';
|
|
2831
|
-
/**
|
|
2832
|
-
* An array of Button/Link components
|
|
2728
|
+
/**
|
|
2729
|
+
* An array of Button/Link components
|
|
2833
2730
|
*/
|
|
2834
2731
|
menuItems?: JSX.Element[];
|
|
2835
|
-
/**
|
|
2836
|
-
* Where should the menu appear relative to the button
|
|
2732
|
+
/**
|
|
2733
|
+
* Where should the menu appear relative to the button
|
|
2837
2734
|
*/
|
|
2838
2735
|
menuPosition?: 'above' | 'below';
|
|
2839
|
-
/**
|
|
2840
|
-
* Can be a CSS width value string, 'fullWidth' or 'maxItem' (sized to the largest item width)
|
|
2736
|
+
/**
|
|
2737
|
+
* Can be a CSS width value string, 'fullWidth' or 'maxItem' (sized to the largest item width)
|
|
2841
2738
|
*/
|
|
2842
2739
|
menuWidth?: string;
|
|
2843
|
-
/**
|
|
2844
|
-
* Function that is called after the menu is closed
|
|
2740
|
+
/**
|
|
2741
|
+
* Function that is called after the menu is closed
|
|
2845
2742
|
*/
|
|
2846
2743
|
onMenuClosed?: ((event: MouseEvent) => ReactNode) | ((event: MouseEvent) => void) | undefined;
|
|
2847
|
-
/**
|
|
2848
|
-
* Function that is called when the menu button is clicked
|
|
2744
|
+
/**
|
|
2745
|
+
* Function that is called when the menu button is clicked
|
|
2849
2746
|
*/
|
|
2850
2747
|
onMenuClick?: ((event: MouseEvent) => ReactNode) | ((event: MouseEvent) => void) | undefined;
|
|
2851
|
-
/**
|
|
2852
|
-
* A custom node to be displayed in the menu on extra small screens.
|
|
2748
|
+
/**
|
|
2749
|
+
* A custom node to be displayed in the menu on extra small screens.
|
|
2853
2750
|
*/
|
|
2854
2751
|
overrideMenuHeader?: ReactNode;
|
|
2855
|
-
/**
|
|
2856
|
-
* The size of button to display
|
|
2752
|
+
/**
|
|
2753
|
+
* The size of button to display
|
|
2857
2754
|
*/
|
|
2858
2755
|
size?: 'lg' | 'md' | 'sm';
|
|
2859
2756
|
};
|
|
2860
|
-
/**
|
|
2861
|
-
* @deprecated Please use Menu with a Button trigger, see [documentation](https://wistia.github.io/vhs/?path=/docs-components-menu--docs).
|
|
2862
|
-
*
|
|
2863
|
-
* #### Why MenuButton is being deprecated
|
|
2864
|
-
*
|
|
2865
|
-
* The [Menu](https://wistia.github.io/vhs/?path=/docs-components-menu--docs) component is preferred over MenuButton for several reasons:
|
|
2866
|
-
* 1. Menu has better alignment and collision detection.
|
|
2867
|
-
* 2. Menu supports submenus.
|
|
2868
|
-
* 3. Menu is properly portalled.
|
|
2757
|
+
/**
|
|
2758
|
+
* @deprecated Please use Menu with a Button trigger, see [documentation](https://wistia.github.io/vhs/?path=/docs-components-menu--docs).
|
|
2759
|
+
*
|
|
2760
|
+
* #### Why MenuButton is being deprecated
|
|
2761
|
+
*
|
|
2762
|
+
* The [Menu](https://wistia.github.io/vhs/?path=/docs-components-menu--docs) component is preferred over MenuButton for several reasons:
|
|
2763
|
+
* 1. Menu has better alignment and collision detection.
|
|
2764
|
+
* 2. Menu supports submenus.
|
|
2765
|
+
* 3. Menu is properly portalled.
|
|
2869
2766
|
*/
|
|
2870
2767
|
declare const MenuButton: {
|
|
2871
2768
|
({
|
|
@@ -2887,59 +2784,59 @@ declare const MenuButton: {
|
|
|
2887
2784
|
//#endregion
|
|
2888
2785
|
//#region src/components/Modal/Modal.d.ts
|
|
2889
2786
|
type ModalProps = ComponentPropsWithoutRef<'div'> & {
|
|
2890
|
-
/**
|
|
2891
|
-
* Horizontally align modal to the left, center, or right of the container
|
|
2787
|
+
/**
|
|
2788
|
+
* Horizontally align modal to the left, center, or right of the container
|
|
2892
2789
|
*/
|
|
2893
2790
|
alignHorizontal?: 'center' | 'left' | 'normal' | 'right';
|
|
2894
|
-
/**
|
|
2895
|
-
* Vertically align modal to the top, center, or bottom of the container
|
|
2791
|
+
/**
|
|
2792
|
+
* Vertically align modal to the top, center, or bottom of the container
|
|
2896
2793
|
*/
|
|
2897
2794
|
alignVertical?: 'bottom' | 'center' | 'normal' | 'top';
|
|
2898
|
-
/**
|
|
2899
|
-
* Whether or not the modal should be allowed to exceed the viewport bounds.
|
|
2900
|
-
* If it exceeds the bounds, the entire backdrop will be scrollable.
|
|
2795
|
+
/**
|
|
2796
|
+
* Whether or not the modal should be allowed to exceed the viewport bounds.
|
|
2797
|
+
* If it exceeds the bounds, the entire backdrop will be scrollable.
|
|
2901
2798
|
*/
|
|
2902
2799
|
allowModalToExceedViewportBounds?: boolean;
|
|
2903
|
-
/**
|
|
2904
|
-
* Contents of the modal
|
|
2800
|
+
/**
|
|
2801
|
+
* Contents of the modal
|
|
2905
2802
|
*/
|
|
2906
2803
|
children?: ReactNode;
|
|
2907
|
-
/**
|
|
2908
|
-
* Class to be applied to the base element of the modal
|
|
2804
|
+
/**
|
|
2805
|
+
* Class to be applied to the base element of the modal
|
|
2909
2806
|
*/
|
|
2910
2807
|
className?: string;
|
|
2911
|
-
/**
|
|
2912
|
-
* Whether or not the modal should take up the full height of the viewport
|
|
2808
|
+
/**
|
|
2809
|
+
* Whether or not the modal should take up the full height of the viewport
|
|
2913
2810
|
*/
|
|
2914
2811
|
fullHeight?: boolean;
|
|
2915
|
-
/**
|
|
2916
|
-
* Ref to the element that should receive focus when the modal opens
|
|
2812
|
+
/**
|
|
2813
|
+
* Ref to the element that should receive focus when the modal opens
|
|
2917
2814
|
*/
|
|
2918
2815
|
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
2919
|
-
/**
|
|
2920
|
-
* Whether or not the modal is open, and should be rendered
|
|
2816
|
+
/**
|
|
2817
|
+
* Whether or not the modal is open, and should be rendered
|
|
2921
2818
|
*/
|
|
2922
2819
|
isOpen: boolean;
|
|
2923
|
-
/**
|
|
2924
|
-
* When the Modal is dismissed, this function will be called. You'll typically want to set the
|
|
2925
|
-
* state of `isOpen` to false here
|
|
2926
|
-
* @returns
|
|
2820
|
+
/**
|
|
2821
|
+
* When the Modal is dismissed, this function will be called. You'll typically want to set the
|
|
2822
|
+
* state of `isOpen` to false here
|
|
2823
|
+
* @returns
|
|
2927
2824
|
*/
|
|
2928
2825
|
onRequestClose?: () => void;
|
|
2929
|
-
/**
|
|
2930
|
-
* Whether or not the modal should be closed when the user clicks outside of it
|
|
2931
|
-
* @default true
|
|
2826
|
+
/**
|
|
2827
|
+
* Whether or not the modal should be closed when the user clicks outside of it
|
|
2828
|
+
* @default true
|
|
2932
2829
|
*/
|
|
2933
2830
|
shouldCloseOnClickOutside?: boolean;
|
|
2934
|
-
/**
|
|
2935
|
-
* Whether or not the modal should trap focus within itself
|
|
2936
|
-
*
|
|
2831
|
+
/**
|
|
2832
|
+
* Whether or not the modal should trap focus within itself
|
|
2833
|
+
*
|
|
2937
2834
|
*/
|
|
2938
2835
|
shouldTrapFocus?: boolean; /** The base width to apply to the Modal */
|
|
2939
2836
|
width?: string;
|
|
2940
|
-
/**
|
|
2941
|
-
* The overflow behavior to apply to the modal
|
|
2942
|
-
* @default 'auto'
|
|
2837
|
+
/**
|
|
2838
|
+
* The overflow behavior to apply to the modal
|
|
2839
|
+
* @default 'auto'
|
|
2943
2840
|
*/
|
|
2944
2841
|
overflow?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
2945
2842
|
};
|
|
@@ -2953,8 +2850,8 @@ declare const ModalHeader: _$styled_components_dist_types0.IStyledComponentBase<
|
|
|
2953
2850
|
declare const ModalBody: _$styled_components_dist_types0.IStyledComponentBase<"web", _$styled_components0.FastOmit<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2954
2851
|
declare const ModalFooter: _$styled_components_dist_types0.IStyledComponentBase<"web", _$styled_components0.FastOmit<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2955
2852
|
type ModalCloseButtonProps = {
|
|
2956
|
-
/**
|
|
2957
|
-
* Callback invoked when the button is clicked
|
|
2853
|
+
/**
|
|
2854
|
+
* Callback invoked when the button is clicked
|
|
2958
2855
|
*/
|
|
2959
2856
|
onClick?: (event: MouseEvent) => void;
|
|
2960
2857
|
};
|
|
@@ -2965,12 +2862,12 @@ declare const ModalCloseButton: ({
|
|
|
2965
2862
|
//#endregion
|
|
2966
2863
|
//#region src/components/Paper/Paper.d.ts
|
|
2967
2864
|
type PaperProps = ComponentPropsWithoutRef<'div'> & {
|
|
2968
|
-
/**
|
|
2969
|
-
* The content within Paper component
|
|
2865
|
+
/**
|
|
2866
|
+
* The content within Paper component
|
|
2970
2867
|
*/
|
|
2971
2868
|
children: ReactNode;
|
|
2972
|
-
/**
|
|
2973
|
-
* The "elevation" level of the Paper component
|
|
2869
|
+
/**
|
|
2870
|
+
* The "elevation" level of the Paper component
|
|
2974
2871
|
*/
|
|
2975
2872
|
elevation?: 0 | 1 | 2 | undefined;
|
|
2976
2873
|
};
|
|
@@ -2985,24 +2882,24 @@ declare const Paper: {
|
|
|
2985
2882
|
//#endregion
|
|
2986
2883
|
//#region src/components/ProgressBar/ProgressBar.d.ts
|
|
2987
2884
|
type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
2988
|
-
/**
|
|
2989
|
-
* Whether the progress bar has a label
|
|
2885
|
+
/**
|
|
2886
|
+
* Whether the progress bar has a label
|
|
2990
2887
|
*/
|
|
2991
2888
|
hasLabel?: boolean;
|
|
2992
|
-
/**
|
|
2993
|
-
* Current numeric level of the progress (0 -> 1)
|
|
2889
|
+
/**
|
|
2890
|
+
* Current numeric level of the progress (0 -> 1)
|
|
2994
2891
|
*/
|
|
2995
2892
|
progress?: number;
|
|
2996
|
-
/**
|
|
2997
|
-
* Allows user to override default progress bar label colors
|
|
2893
|
+
/**
|
|
2894
|
+
* Allows user to override default progress bar label colors
|
|
2998
2895
|
*/
|
|
2999
2896
|
labelColorOverride?: string;
|
|
3000
|
-
/**
|
|
3001
|
-
* Allows user to override default progress bar meter background colors
|
|
2897
|
+
/**
|
|
2898
|
+
* Allows user to override default progress bar meter background colors
|
|
3002
2899
|
*/
|
|
3003
2900
|
meterBgColorOverride?: string;
|
|
3004
|
-
/**
|
|
3005
|
-
* Allows user to override default colors
|
|
2901
|
+
/**
|
|
2902
|
+
* Allows user to override default colors
|
|
3006
2903
|
*/
|
|
3007
2904
|
colorOverride?: string;
|
|
3008
2905
|
};
|
|
@@ -3020,145 +2917,145 @@ declare const ProgressBar: {
|
|
|
3020
2917
|
//#endregion
|
|
3021
2918
|
//#region src/components/Radio/Radio.d.ts
|
|
3022
2919
|
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'value'> & {
|
|
3023
|
-
/**
|
|
3024
|
-
* Indicates the state of the radio
|
|
2920
|
+
/**
|
|
2921
|
+
* Indicates the state of the radio
|
|
3025
2922
|
*/
|
|
3026
2923
|
checked?: boolean;
|
|
3027
|
-
/**
|
|
3028
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
2924
|
+
/**
|
|
2925
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
3029
2926
|
*/
|
|
3030
2927
|
direction?: 'column' | 'row';
|
|
3031
|
-
/**
|
|
3032
|
-
* Disables input
|
|
2928
|
+
/**
|
|
2929
|
+
* Disables input
|
|
3033
2930
|
*/
|
|
3034
2931
|
disabled?: boolean;
|
|
3035
|
-
/**
|
|
3036
|
-
* @ignore // I don't know what to do with this
|
|
3037
|
-
* Force a Radio into a particular css state (for debugging)
|
|
2932
|
+
/**
|
|
2933
|
+
* @ignore // I don't know what to do with this
|
|
2934
|
+
* Force a Radio into a particular css state (for debugging)
|
|
3038
2935
|
*/
|
|
3039
2936
|
forceState?: 'focus' | 'hover';
|
|
3040
|
-
/**
|
|
3041
|
-
* Indicates that there is an error with the input
|
|
2937
|
+
/**
|
|
2938
|
+
* Indicates that there is an error with the input
|
|
3042
2939
|
*/
|
|
3043
2940
|
hasError?: boolean;
|
|
3044
|
-
/**
|
|
3045
|
-
* Provides an ID for the input
|
|
2941
|
+
/**
|
|
2942
|
+
* Provides an ID for the input
|
|
3046
2943
|
*/
|
|
3047
2944
|
id?: string;
|
|
3048
|
-
/**
|
|
3049
|
-
* The label for the input
|
|
2945
|
+
/**
|
|
2946
|
+
* The label for the input
|
|
3050
2947
|
*/
|
|
3051
2948
|
label: JSX.Element | string;
|
|
3052
|
-
/**
|
|
3053
|
-
* The description for the input
|
|
2949
|
+
/**
|
|
2950
|
+
* The description for the input
|
|
3054
2951
|
*/
|
|
3055
2952
|
labelDescription?: JSX.Element | string | undefined;
|
|
3056
|
-
/**
|
|
3057
|
-
* Should match the ID attribute of the radio.
|
|
3058
|
-
* Can be used to group together multiple radios
|
|
2953
|
+
/**
|
|
2954
|
+
* Should match the ID attribute of the radio.
|
|
2955
|
+
* Can be used to group together multiple radios
|
|
3059
2956
|
*/
|
|
3060
2957
|
name?: string;
|
|
3061
|
-
/**
|
|
3062
|
-
* Callback function invoked when the value changes
|
|
2958
|
+
/**
|
|
2959
|
+
* Callback function invoked when the value changes
|
|
3063
2960
|
*/
|
|
3064
2961
|
onChange?: (event: ChangeEvent) => unknown;
|
|
3065
|
-
/**
|
|
3066
|
-
* The value attribute of the input
|
|
2962
|
+
/**
|
|
2963
|
+
* The value attribute of the input
|
|
3067
2964
|
*/
|
|
3068
2965
|
value?: string;
|
|
3069
2966
|
};
|
|
3070
2967
|
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value"> & {
|
|
3071
|
-
/**
|
|
3072
|
-
* Indicates the state of the radio
|
|
2968
|
+
/**
|
|
2969
|
+
* Indicates the state of the radio
|
|
3073
2970
|
*/
|
|
3074
2971
|
checked?: boolean;
|
|
3075
|
-
/**
|
|
3076
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
2972
|
+
/**
|
|
2973
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
3077
2974
|
*/
|
|
3078
2975
|
direction?: "column" | "row";
|
|
3079
|
-
/**
|
|
3080
|
-
* Disables input
|
|
2976
|
+
/**
|
|
2977
|
+
* Disables input
|
|
3081
2978
|
*/
|
|
3082
2979
|
disabled?: boolean;
|
|
3083
|
-
/**
|
|
3084
|
-
* @ignore // I don't know what to do with this
|
|
3085
|
-
* Force a Radio into a particular css state (for debugging)
|
|
2980
|
+
/**
|
|
2981
|
+
* @ignore // I don't know what to do with this
|
|
2982
|
+
* Force a Radio into a particular css state (for debugging)
|
|
3086
2983
|
*/
|
|
3087
2984
|
forceState?: "focus" | "hover";
|
|
3088
|
-
/**
|
|
3089
|
-
* Indicates that there is an error with the input
|
|
2985
|
+
/**
|
|
2986
|
+
* Indicates that there is an error with the input
|
|
3090
2987
|
*/
|
|
3091
2988
|
hasError?: boolean;
|
|
3092
|
-
/**
|
|
3093
|
-
* Provides an ID for the input
|
|
2989
|
+
/**
|
|
2990
|
+
* Provides an ID for the input
|
|
3094
2991
|
*/
|
|
3095
2992
|
id?: string;
|
|
3096
|
-
/**
|
|
3097
|
-
* The label for the input
|
|
2993
|
+
/**
|
|
2994
|
+
* The label for the input
|
|
3098
2995
|
*/
|
|
3099
2996
|
label: JSX.Element | string;
|
|
3100
|
-
/**
|
|
3101
|
-
* The description for the input
|
|
2997
|
+
/**
|
|
2998
|
+
* The description for the input
|
|
3102
2999
|
*/
|
|
3103
3000
|
labelDescription?: JSX.Element | string | undefined;
|
|
3104
|
-
/**
|
|
3105
|
-
* Should match the ID attribute of the radio.
|
|
3106
|
-
* Can be used to group together multiple radios
|
|
3001
|
+
/**
|
|
3002
|
+
* Should match the ID attribute of the radio.
|
|
3003
|
+
* Can be used to group together multiple radios
|
|
3107
3004
|
*/
|
|
3108
3005
|
name?: string;
|
|
3109
|
-
/**
|
|
3110
|
-
* Callback function invoked when the value changes
|
|
3006
|
+
/**
|
|
3007
|
+
* Callback function invoked when the value changes
|
|
3111
3008
|
*/
|
|
3112
3009
|
onChange?: (event: ChangeEvent) => unknown;
|
|
3113
|
-
/**
|
|
3114
|
-
* The value attribute of the input
|
|
3010
|
+
/**
|
|
3011
|
+
* The value attribute of the input
|
|
3115
3012
|
*/
|
|
3116
3013
|
value?: string;
|
|
3117
3014
|
} & _$react.RefAttributes<HTMLLabelElement>>;
|
|
3118
3015
|
//#endregion
|
|
3119
3016
|
//#region src/components/RadioGroup/RadioGroup.d.ts
|
|
3120
3017
|
type RadioGroupProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
3121
|
-
/**
|
|
3122
|
-
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
3018
|
+
/**
|
|
3019
|
+
* Should the radio buttons be displayed vertically as a column or horizontally as a row
|
|
3123
3020
|
*/
|
|
3124
3021
|
direction?: 'column' | 'row';
|
|
3125
|
-
/**
|
|
3126
|
-
* Whether RadioGroup is disabled
|
|
3022
|
+
/**
|
|
3023
|
+
* Whether RadioGroup is disabled
|
|
3127
3024
|
*/
|
|
3128
3025
|
disabled?: boolean;
|
|
3129
|
-
/**
|
|
3130
|
-
* Error message to be displayed
|
|
3026
|
+
/**
|
|
3027
|
+
* Error message to be displayed
|
|
3131
3028
|
*/
|
|
3132
3029
|
error?: string | undefined;
|
|
3133
|
-
/**
|
|
3134
|
-
* The label for the form field
|
|
3030
|
+
/**
|
|
3031
|
+
* The label for the form field
|
|
3135
3032
|
*/
|
|
3136
3033
|
label?: JSX.Element | string | null | undefined;
|
|
3137
|
-
/**
|
|
3138
|
-
* The hint/helper text under the label
|
|
3034
|
+
/**
|
|
3035
|
+
* The hint/helper text under the label
|
|
3139
3036
|
*/
|
|
3140
3037
|
labelDescription?: JSX.Element | string | undefined;
|
|
3141
|
-
/**
|
|
3142
|
-
* Props that are passed through to the underlying `<Label>` component
|
|
3038
|
+
/**
|
|
3039
|
+
* Props that are passed through to the underlying `<Label>` component
|
|
3143
3040
|
*/
|
|
3144
3041
|
labelProps?: {
|
|
3145
3042
|
disabled?: boolean;
|
|
3146
3043
|
screenReaderOnly?: boolean;
|
|
3147
3044
|
};
|
|
3148
|
-
/**
|
|
3149
|
-
* Should match the ID attribute of the radio. Can be used to group together multiple radios
|
|
3045
|
+
/**
|
|
3046
|
+
* Should match the ID attribute of the radio. Can be used to group together multiple radios
|
|
3150
3047
|
*/
|
|
3151
3048
|
name: string;
|
|
3152
|
-
/**
|
|
3153
|
-
* Fires on checking or unchecking radios in group
|
|
3049
|
+
/**
|
|
3050
|
+
* Fires on checking or unchecking radios in group
|
|
3154
3051
|
*/
|
|
3155
3052
|
onChange?: (event: ChangeEvent, value: RadioProps['value']) => unknown;
|
|
3156
|
-
/**
|
|
3157
|
-
* Array of radios attributes
|
|
3053
|
+
/**
|
|
3054
|
+
* Array of radios attributes
|
|
3158
3055
|
*/
|
|
3159
3056
|
options: Pick<RadioProps, 'disabled' | 'label' | 'labelDescription' | 'value'>[];
|
|
3160
|
-
/**
|
|
3161
|
-
* Currently selected radio value
|
|
3057
|
+
/**
|
|
3058
|
+
* Currently selected radio value
|
|
3162
3059
|
*/
|
|
3163
3060
|
value?: string | undefined;
|
|
3164
3061
|
};
|
|
@@ -3195,55 +3092,55 @@ type Preset = {
|
|
|
3195
3092
|
tooltipText?: string;
|
|
3196
3093
|
};
|
|
3197
3094
|
type RangeSelectorProps = {
|
|
3198
|
-
/**
|
|
3199
|
-
* Align the popup to the left or the right of the tigger button
|
|
3095
|
+
/**
|
|
3096
|
+
* Align the popup to the left or the right of the tigger button
|
|
3200
3097
|
*/
|
|
3201
3098
|
align?: 'left' | 'right';
|
|
3202
|
-
/**
|
|
3203
|
-
* The variant to be passed to the button component
|
|
3099
|
+
/**
|
|
3100
|
+
* The variant to be passed to the button component
|
|
3204
3101
|
*/
|
|
3205
3102
|
buttonVariant?: 'input' | 'primary' | 'secondary' | 'tertiary';
|
|
3206
|
-
/**
|
|
3207
|
-
* The earliest selectable date
|
|
3103
|
+
/**
|
|
3104
|
+
* The earliest selectable date
|
|
3208
3105
|
*/
|
|
3209
3106
|
earliestDate?: Date;
|
|
3210
|
-
/**
|
|
3211
|
-
* The latest selectable date
|
|
3107
|
+
/**
|
|
3108
|
+
* The latest selectable date
|
|
3212
3109
|
*/
|
|
3213
3110
|
latestDate?: Date;
|
|
3214
|
-
/**
|
|
3215
|
-
* Text to display in the footer
|
|
3111
|
+
/**
|
|
3112
|
+
* Text to display in the footer
|
|
3216
3113
|
*/
|
|
3217
3114
|
footerText?: JSX.Element | string;
|
|
3218
|
-
/**
|
|
3219
|
-
* A function that receives a date range object and returns a string to be rendered in the
|
|
3220
|
-
* trigger button
|
|
3115
|
+
/**
|
|
3116
|
+
* A function that receives a date range object and returns a string to be rendered in the
|
|
3117
|
+
* trigger button
|
|
3221
3118
|
*/
|
|
3222
3119
|
format?: (dataRange: DateRangeType) => JSX.Element | string;
|
|
3223
|
-
/**
|
|
3224
|
-
* Callback fired when the date range changes
|
|
3120
|
+
/**
|
|
3121
|
+
* Callback fired when the date range changes
|
|
3225
3122
|
*/
|
|
3226
3123
|
onChange?: (dateRange: DateRangeType) => unknown;
|
|
3227
3124
|
presets?: Preset[];
|
|
3228
|
-
/**
|
|
3229
|
-
* The date range to be displayed in the picker
|
|
3125
|
+
/**
|
|
3126
|
+
* The date range to be displayed in the picker
|
|
3230
3127
|
*/
|
|
3231
3128
|
range?: DateRangeType;
|
|
3232
|
-
/**
|
|
3233
|
-
* Prevent dates in the future from being selected
|
|
3129
|
+
/**
|
|
3130
|
+
* Prevent dates in the future from being selected
|
|
3234
3131
|
*/
|
|
3235
3132
|
shouldPreventFuture?: boolean;
|
|
3236
|
-
/**
|
|
3237
|
-
* If true, the button will take up the full width of its container
|
|
3133
|
+
/**
|
|
3134
|
+
* If true, the button will take up the full width of its container
|
|
3238
3135
|
*/
|
|
3239
3136
|
fullWidth?: boolean;
|
|
3240
|
-
/**
|
|
3241
|
-
* A custom width for the RangeSelector component (in px, %, or other CSS units)
|
|
3137
|
+
/**
|
|
3138
|
+
* A custom width for the RangeSelector component (in px, %, or other CSS units)
|
|
3242
3139
|
*/
|
|
3243
3140
|
width?: number | string;
|
|
3244
|
-
/**
|
|
3245
|
-
* A custom React component to use as the trigger button. The component should accept onClick,
|
|
3246
|
-
* children, and other standard button props.
|
|
3141
|
+
/**
|
|
3142
|
+
* A custom React component to use as the trigger button. The component should accept onClick,
|
|
3143
|
+
* children, and other standard button props.
|
|
3247
3144
|
*/
|
|
3248
3145
|
customTriggerComponent?: ComponentType<Record<string, any>>;
|
|
3249
3146
|
};
|
|
@@ -3269,44 +3166,44 @@ declare const RangeSelector: {
|
|
|
3269
3166
|
//#endregion
|
|
3270
3167
|
//#region src/components/RichTextEditor/RichTextEditor.d.ts
|
|
3271
3168
|
type RichTextEditorProps = {
|
|
3272
|
-
/**
|
|
3273
|
-
* Optional id to set aria-labelledby
|
|
3169
|
+
/**
|
|
3170
|
+
* Optional id to set aria-labelledby
|
|
3274
3171
|
*/
|
|
3275
3172
|
ariaLabelledBy?: string | undefined;
|
|
3276
|
-
/**
|
|
3277
|
-
* @ignore
|
|
3173
|
+
/**
|
|
3174
|
+
* @ignore
|
|
3278
3175
|
*/
|
|
3279
3176
|
'data-testid'?: string;
|
|
3280
|
-
/**
|
|
3281
|
-
* Determines whether editor is clickable/read-only
|
|
3177
|
+
/**
|
|
3178
|
+
* Determines whether editor is clickable/read-only
|
|
3282
3179
|
*/
|
|
3283
3180
|
disabled?: boolean;
|
|
3284
|
-
/**
|
|
3285
|
-
* Formats to enable in editor, restricted to rteFormatTypes
|
|
3181
|
+
/**
|
|
3182
|
+
* Formats to enable in editor, restricted to rteFormatTypes
|
|
3286
3183
|
*/
|
|
3287
3184
|
enabledFormats?: (keyof typeof rteFormatTypes)[];
|
|
3288
|
-
/**
|
|
3289
|
-
* Function to be called after editor state update
|
|
3185
|
+
/**
|
|
3186
|
+
* Function to be called after editor state update
|
|
3290
3187
|
*/
|
|
3291
3188
|
onChange?: ((value: NodeElementObject[]) => void) | undefined;
|
|
3292
|
-
/**
|
|
3293
|
-
* Function to be called when editor loses focus
|
|
3189
|
+
/**
|
|
3190
|
+
* Function to be called when editor loses focus
|
|
3294
3191
|
*/
|
|
3295
3192
|
onBlur?: ((value: NodeElementObject[]) => void) | undefined;
|
|
3296
|
-
/**
|
|
3297
|
-
* Placeholder text
|
|
3193
|
+
/**
|
|
3194
|
+
* Placeholder text
|
|
3298
3195
|
*/
|
|
3299
3196
|
placeholder?: string;
|
|
3300
|
-
/**
|
|
3301
|
-
* Value of editor based on controlled input
|
|
3197
|
+
/**
|
|
3198
|
+
* Value of editor based on controlled input
|
|
3302
3199
|
*/
|
|
3303
3200
|
value?: Descendant[];
|
|
3304
|
-
/**
|
|
3305
|
-
* Whether to update the editor when the value prop changes
|
|
3201
|
+
/**
|
|
3202
|
+
* Whether to update the editor when the value prop changes
|
|
3306
3203
|
*/
|
|
3307
3204
|
useExternalValue: boolean;
|
|
3308
|
-
/**
|
|
3309
|
-
* Custom height of editor
|
|
3205
|
+
/**
|
|
3206
|
+
* Custom height of editor
|
|
3310
3207
|
*/
|
|
3311
3208
|
height?: string | undefined;
|
|
3312
3209
|
};
|
|
@@ -3334,17 +3231,17 @@ declare const rteDeserializeHTML: (htmlString: string) => (Descendant | string |
|
|
|
3334
3231
|
//#region src/components/ScreenReaderOnly/ScreenReaderOnly.d.ts
|
|
3335
3232
|
declare const screenReaderOnlyStyle: _$styled_components0.RuleSet<object>;
|
|
3336
3233
|
type ScreenReaderOnlyProps = ComponentPropsWithoutRef<'div'> & {
|
|
3337
|
-
/**
|
|
3338
|
-
* Pass an arbitrary child node
|
|
3234
|
+
/**
|
|
3235
|
+
* Pass an arbitrary child node
|
|
3339
3236
|
*/
|
|
3340
3237
|
children?: ReactNode;
|
|
3341
|
-
/**
|
|
3342
|
-
* Display content _only_ when it's focused.
|
|
3238
|
+
/**
|
|
3239
|
+
* Display content _only_ when it's focused.
|
|
3343
3240
|
*/
|
|
3344
3241
|
focusable?: boolean;
|
|
3345
|
-
/**
|
|
3346
|
-
* The text that will appear to screenreaders but not be displayed on screen
|
|
3347
|
-
* (alternatively you can pass children)
|
|
3242
|
+
/**
|
|
3243
|
+
* The text that will appear to screenreaders but not be displayed on screen
|
|
3244
|
+
* (alternatively you can pass children)
|
|
3348
3245
|
*/
|
|
3349
3246
|
text?: ReactNode;
|
|
3350
3247
|
};
|
|
@@ -3371,54 +3268,54 @@ type OptionType = {
|
|
|
3371
3268
|
};
|
|
3372
3269
|
type OptionsType = GroupOptionType[] | OptionType[];
|
|
3373
3270
|
type SelectProps = Omit<ComponentPropsWithRef<'select'>, 'placeholder'> & {
|
|
3374
|
-
/**
|
|
3375
|
-
* Optional accessible label for when there is no accompanying <label> element
|
|
3271
|
+
/**
|
|
3272
|
+
* Optional accessible label for when there is no accompanying <label> element
|
|
3376
3273
|
*/
|
|
3377
3274
|
ariaLabel?: string;
|
|
3378
|
-
/**
|
|
3379
|
-
* Disables Select
|
|
3275
|
+
/**
|
|
3276
|
+
* Disables Select
|
|
3380
3277
|
*/
|
|
3381
3278
|
disabled?: boolean;
|
|
3382
|
-
/**
|
|
3383
|
-
* @ignore
|
|
3384
|
-
* Force a Select into a particular css state (for debugging)
|
|
3279
|
+
/**
|
|
3280
|
+
* @ignore
|
|
3281
|
+
* Force a Select into a particular css state (for debugging)
|
|
3385
3282
|
*/
|
|
3386
3283
|
forceState?: 'active' | 'focus' | 'hover';
|
|
3387
|
-
/**
|
|
3388
|
-
* Should Select occupy 100% of available space
|
|
3284
|
+
/**
|
|
3285
|
+
* Should Select occupy 100% of available space
|
|
3389
3286
|
*/
|
|
3390
3287
|
fullWidth?: boolean;
|
|
3391
|
-
/**
|
|
3392
|
-
* Indicates that there is an error with the Select
|
|
3288
|
+
/**
|
|
3289
|
+
* Indicates that there is an error with the Select
|
|
3393
3290
|
*/
|
|
3394
3291
|
hasError?: boolean;
|
|
3395
|
-
/**
|
|
3396
|
-
* Change option's label name from "label"
|
|
3292
|
+
/**
|
|
3293
|
+
* Change option's label name from "label"
|
|
3397
3294
|
*/
|
|
3398
3295
|
labelName?: string;
|
|
3399
|
-
/**
|
|
3400
|
-
* Allow multiple options in the list to be selected at the same time
|
|
3296
|
+
/**
|
|
3297
|
+
* Allow multiple options in the list to be selected at the same time
|
|
3401
3298
|
*/
|
|
3402
3299
|
multiple?: boolean;
|
|
3403
|
-
/**
|
|
3404
|
-
* Data structure to populate option labels & values. (`{ label, value, disabled }`)
|
|
3405
|
-
* Additionally this can be used to render option groupings. (`{ groupLabel, groupOptions, disabled }`)
|
|
3300
|
+
/**
|
|
3301
|
+
* Data structure to populate option labels & values. (`{ label, value, disabled }`)
|
|
3302
|
+
* Additionally this can be used to render option groupings. (`{ groupLabel, groupOptions, disabled }`)
|
|
3406
3303
|
*/
|
|
3407
3304
|
options: OptionsType;
|
|
3408
|
-
/**
|
|
3409
|
-
* Value of text to appear by default as first option in Select, use `null` for none
|
|
3305
|
+
/**
|
|
3306
|
+
* Value of text to appear by default as first option in Select, use `null` for none
|
|
3410
3307
|
*/
|
|
3411
3308
|
placeholder?: string | null | undefined;
|
|
3412
|
-
/**
|
|
3413
|
-
* Prevent the placeholder value from being selected
|
|
3309
|
+
/**
|
|
3310
|
+
* Prevent the placeholder value from being selected
|
|
3414
3311
|
*/
|
|
3415
3312
|
preventPlaceholderSelection?: boolean;
|
|
3416
|
-
/**
|
|
3417
|
-
* Make Select a required element
|
|
3313
|
+
/**
|
|
3314
|
+
* Make Select a required element
|
|
3418
3315
|
*/
|
|
3419
3316
|
required?: boolean;
|
|
3420
|
-
/**
|
|
3421
|
-
* Change option's value name from "value"
|
|
3317
|
+
/**
|
|
3318
|
+
* Change option's value name from "value"
|
|
3422
3319
|
*/
|
|
3423
3320
|
valueName?: string;
|
|
3424
3321
|
};
|
|
@@ -3427,59 +3324,59 @@ declare const Select: _$react.ForwardRefExoticComponent<Omit<SelectProps, "ref">
|
|
|
3427
3324
|
//#region src/components/Slider/Slider.d.ts
|
|
3428
3325
|
type ComponentPropsWithoutRefWithoutOnChange = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'>;
|
|
3429
3326
|
type SliderProps = ComponentPropsWithoutRefWithoutOnChange & {
|
|
3430
|
-
/**
|
|
3431
|
-
* aria-label for screen-readers to apply to the thumbs. Use an array for more than one thumb.
|
|
3432
|
-
* The length of the array must match the number of thumbs in the value array.
|
|
3327
|
+
/**
|
|
3328
|
+
* aria-label for screen-readers to apply to the thumbs. Use an array for more than one thumb.
|
|
3329
|
+
* The length of the array must match the number of thumbs in the value array.
|
|
3433
3330
|
*/
|
|
3434
3331
|
ariaLabel?: string[] | string | undefined;
|
|
3435
|
-
/**
|
|
3436
|
-
* aria-labelledby for screen-readers to apply to the thumbs. Used when slider rendered with separate label.
|
|
3437
|
-
* Use an array for more than one thumb. The length of the array must match the number of thumbs in the value array.
|
|
3332
|
+
/**
|
|
3333
|
+
* aria-labelledby for screen-readers to apply to the thumbs. Used when slider rendered with separate label.
|
|
3334
|
+
* Use an array for more than one thumb. The length of the array must match the number of thumbs in the value array.
|
|
3438
3335
|
*/
|
|
3439
3336
|
ariaLabelledby?: string[] | string | undefined;
|
|
3440
|
-
/**
|
|
3441
|
-
*
|
|
3337
|
+
/**
|
|
3338
|
+
*
|
|
3442
3339
|
*/
|
|
3443
3340
|
ariaValuetext?: string | ((state: Record<string, unknown>) => unknown);
|
|
3444
|
-
/**
|
|
3445
|
-
* @ignore
|
|
3341
|
+
/**
|
|
3342
|
+
* @ignore
|
|
3446
3343
|
*/
|
|
3447
3344
|
'data-testid'?: string;
|
|
3448
|
-
/**
|
|
3449
|
-
* Determines the initial position(s) of the thumb(s) and the number of thumbs.
|
|
3450
|
-
*
|
|
3451
|
-
* If a number is passed a slider with one thumb will be rendered.
|
|
3452
|
-
* If an array is passed each value will determine the position of one thumb.
|
|
3453
|
-
* The values in the array must be sorted.
|
|
3454
|
-
*
|
|
3455
|
-
* Don't pass a default value if the slider is controlled (i.e. if you already
|
|
3456
|
-
* use the `value` prop).
|
|
3345
|
+
/**
|
|
3346
|
+
* Determines the initial position(s) of the thumb(s) and the number of thumbs.
|
|
3347
|
+
*
|
|
3348
|
+
* If a number is passed a slider with one thumb will be rendered.
|
|
3349
|
+
* If an array is passed each value will determine the position of one thumb.
|
|
3350
|
+
* The values in the array must be sorted.
|
|
3351
|
+
*
|
|
3352
|
+
* Don't pass a default value if the slider is controlled (i.e. if you already
|
|
3353
|
+
* use the `value` prop).
|
|
3457
3354
|
*/
|
|
3458
3355
|
initialValue?: number[] | number | undefined;
|
|
3459
|
-
/**
|
|
3460
|
-
* If `true` the thumbs can't be moved.
|
|
3356
|
+
/**
|
|
3357
|
+
* If `true` the thumbs can't be moved.
|
|
3461
3358
|
*/
|
|
3462
3359
|
disabled?: boolean;
|
|
3463
|
-
/**
|
|
3464
|
-
* The maximum value of the slider.
|
|
3360
|
+
/**
|
|
3361
|
+
* The maximum value of the slider.
|
|
3465
3362
|
*/
|
|
3466
3363
|
max?: number;
|
|
3467
|
-
/**
|
|
3468
|
-
* The minimum value of the slider.
|
|
3364
|
+
/**
|
|
3365
|
+
* The minimum value of the slider.
|
|
3469
3366
|
*/
|
|
3470
3367
|
min?: number;
|
|
3471
|
-
/**
|
|
3472
|
-
* Callback called on every value change. The function will be called with two arguments,
|
|
3473
|
-
* the first being the new value(s) the second being thumb index. **It does not return an event.**
|
|
3368
|
+
/**
|
|
3369
|
+
* Callback called on every value change. The function will be called with two arguments,
|
|
3370
|
+
* the first being the new value(s) the second being thumb index. **It does not return an event.**
|
|
3474
3371
|
*/
|
|
3475
3372
|
onChange?: (value: number, index?: number) => unknown;
|
|
3476
|
-
/**
|
|
3477
|
-
* Value to be added or subtracted on each step the slider makes. Must be greater than zero.
|
|
3478
|
-
* max - min should be evenly divisible by the step value.
|
|
3373
|
+
/**
|
|
3374
|
+
* Value to be added or subtracted on each step the slider makes. Must be greater than zero.
|
|
3375
|
+
* max - min should be evenly divisible by the step value.
|
|
3479
3376
|
*/
|
|
3480
3377
|
step?: number;
|
|
3481
|
-
/**
|
|
3482
|
-
* Like 'initialValue' but for controlled components.
|
|
3378
|
+
/**
|
|
3379
|
+
* Like 'initialValue' but for controlled components.
|
|
3483
3380
|
*/
|
|
3484
3381
|
value?: number[] | number;
|
|
3485
3382
|
};
|
|
@@ -3503,17 +3400,17 @@ declare const Slider: {
|
|
|
3503
3400
|
//#endregion
|
|
3504
3401
|
//#region src/components/Stack/Stack.d.ts
|
|
3505
3402
|
type StackProps<T extends ElementType> = ComponentPropsWithoutRef<T> & PropsWithChildren & {
|
|
3506
|
-
/**
|
|
3507
|
-
* The gap between each item in the stack. Should be one of the spacing values from the theme
|
|
3403
|
+
/**
|
|
3404
|
+
* The gap between each item in the stack. Should be one of the spacing values from the theme
|
|
3508
3405
|
*/
|
|
3509
3406
|
gap?: keyof DefaultTheme['spacing'];
|
|
3510
|
-
/**
|
|
3511
|
-
* Vertical is equivalent to `flex-direction: column;`, horizontal is equivalent to `flex-direction: row;`.
|
|
3512
|
-
* The default behavior is `vertical`.
|
|
3407
|
+
/**
|
|
3408
|
+
* Vertical is equivalent to `flex-direction: column;`, horizontal is equivalent to `flex-direction: row;`.
|
|
3409
|
+
* The default behavior is `vertical`.
|
|
3513
3410
|
*/
|
|
3514
3411
|
direction?: 'horizontal' | 'vertical';
|
|
3515
|
-
/**
|
|
3516
|
-
* The element (e.g. div, span, p) or component to render as the root element.
|
|
3412
|
+
/**
|
|
3413
|
+
* The element (e.g. div, span, p) or component to render as the root element.
|
|
3517
3414
|
*/
|
|
3518
3415
|
renderAs?: T | 'div';
|
|
3519
3416
|
};
|
|
@@ -3521,24 +3418,24 @@ declare const Stack: _$react.ForwardRefExoticComponent<Omit<StackProps<ElementTy
|
|
|
3521
3418
|
//#endregion
|
|
3522
3419
|
//#region src/components/Switch/Switch.d.ts
|
|
3523
3420
|
type SwitchProps = Omit<ComponentPropsWithoutRef<'button'>, 'onChange'> & {
|
|
3524
|
-
/**
|
|
3525
|
-
* Allows user to override default "on" color
|
|
3421
|
+
/**
|
|
3422
|
+
* Allows user to override default "on" color
|
|
3526
3423
|
*/
|
|
3527
3424
|
colorOverride?: string;
|
|
3528
|
-
/**
|
|
3529
|
-
* Controls the `aria-disabled` property of the Switch
|
|
3425
|
+
/**
|
|
3426
|
+
* Controls the `aria-disabled` property of the Switch
|
|
3530
3427
|
*/
|
|
3531
3428
|
disabled?: boolean;
|
|
3532
|
-
/**
|
|
3533
|
-
* Determines if switch is checked
|
|
3429
|
+
/**
|
|
3430
|
+
* Determines if switch is checked
|
|
3534
3431
|
*/
|
|
3535
3432
|
isChecked?: boolean;
|
|
3536
|
-
/**
|
|
3537
|
-
* Callback function invoked when the switch checked state changes
|
|
3433
|
+
/**
|
|
3434
|
+
* Callback function invoked when the switch checked state changes
|
|
3538
3435
|
*/
|
|
3539
3436
|
onChange?: (isChecked: boolean) => unknown;
|
|
3540
|
-
/**
|
|
3541
|
-
* Controls wether or not the ON / OFF text is shown
|
|
3437
|
+
/**
|
|
3438
|
+
* Controls wether or not the ON / OFF text is shown
|
|
3542
3439
|
*/
|
|
3543
3440
|
hideText?: boolean;
|
|
3544
3441
|
};
|
|
@@ -3587,158 +3484,158 @@ declare const variantStyleMap: {
|
|
|
3587
3484
|
monospace: _$styled_components0.RuleSet<object>;
|
|
3588
3485
|
};
|
|
3589
3486
|
type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
3590
|
-
/**
|
|
3591
|
-
* The horizontal alignment
|
|
3592
|
-
* <br />
|
|
3593
|
-
* _Note: this only affects block elements_
|
|
3487
|
+
/**
|
|
3488
|
+
* The horizontal alignment
|
|
3489
|
+
* <br />
|
|
3490
|
+
* _Note: this only affects block elements_
|
|
3594
3491
|
*/
|
|
3595
3492
|
align?: keyof typeof alignMap;
|
|
3596
|
-
/**
|
|
3597
|
-
* Displays text as bold type
|
|
3493
|
+
/**
|
|
3494
|
+
* Displays text as bold type
|
|
3598
3495
|
*/
|
|
3599
3496
|
bold?: boolean;
|
|
3600
|
-
/**
|
|
3601
|
-
* Pass an arbitrary child node
|
|
3497
|
+
/**
|
|
3498
|
+
* Pass an arbitrary child node
|
|
3602
3499
|
*/
|
|
3603
3500
|
children?: ReactNode | undefined;
|
|
3604
|
-
/**
|
|
3605
|
-
* Allows user to override default button colors
|
|
3501
|
+
/**
|
|
3502
|
+
* Allows user to override default button colors
|
|
3606
3503
|
*/
|
|
3607
3504
|
colorOverride?: string;
|
|
3608
|
-
/**
|
|
3609
|
-
* Used to indicate text is part of a "disabled" UI
|
|
3505
|
+
/**
|
|
3506
|
+
* Used to indicate text is part of a "disabled" UI
|
|
3610
3507
|
*/
|
|
3611
3508
|
disabled?: boolean;
|
|
3612
|
-
/**
|
|
3613
|
-
* Attempt to keep the text to a single line by truncating with an ellipsis
|
|
3614
|
-
* <br />
|
|
3615
|
-
* _Note: this only affects block elements_
|
|
3509
|
+
/**
|
|
3510
|
+
* Attempt to keep the text to a single line by truncating with an ellipsis
|
|
3511
|
+
* <br />
|
|
3512
|
+
* _Note: this only affects block elements_
|
|
3616
3513
|
*/
|
|
3617
3514
|
ellipsis?: boolean;
|
|
3618
|
-
/**
|
|
3619
|
-
* Display the text as inline content
|
|
3515
|
+
/**
|
|
3516
|
+
* Display the text as inline content
|
|
3620
3517
|
*/
|
|
3621
3518
|
inline?: boolean;
|
|
3622
|
-
/**
|
|
3623
|
-
* Displays text as italic type
|
|
3519
|
+
/**
|
|
3520
|
+
* Displays text as italic type
|
|
3624
3521
|
*/
|
|
3625
3522
|
italic?: boolean;
|
|
3626
|
-
/**
|
|
3627
|
-
* Prevents text from being highlighted and copied
|
|
3523
|
+
/**
|
|
3524
|
+
* Prevents text from being highlighted and copied
|
|
3628
3525
|
*/
|
|
3629
3526
|
preventUserSelect?: boolean;
|
|
3630
|
-
/**
|
|
3631
|
-
* The type of html element to render as
|
|
3527
|
+
/**
|
|
3528
|
+
* The type of html element to render as
|
|
3632
3529
|
*/
|
|
3633
3530
|
renderAs?: keyof typeof renderMap;
|
|
3634
|
-
/**
|
|
3635
|
-
* The text style to display
|
|
3531
|
+
/**
|
|
3532
|
+
* The text style to display
|
|
3636
3533
|
*/
|
|
3637
3534
|
variant?: keyof typeof variantStyleMap;
|
|
3638
3535
|
};
|
|
3639
3536
|
declare const Text: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTMLProps<_$react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3640
|
-
/**
|
|
3641
|
-
* The horizontal alignment
|
|
3642
|
-
* <br />
|
|
3643
|
-
* _Note: this only affects block elements_
|
|
3537
|
+
/**
|
|
3538
|
+
* The horizontal alignment
|
|
3539
|
+
* <br />
|
|
3540
|
+
* _Note: this only affects block elements_
|
|
3644
3541
|
*/
|
|
3645
3542
|
align?: keyof typeof alignMap;
|
|
3646
|
-
/**
|
|
3647
|
-
* Displays text as bold type
|
|
3543
|
+
/**
|
|
3544
|
+
* Displays text as bold type
|
|
3648
3545
|
*/
|
|
3649
3546
|
bold?: boolean;
|
|
3650
|
-
/**
|
|
3651
|
-
* Pass an arbitrary child node
|
|
3547
|
+
/**
|
|
3548
|
+
* Pass an arbitrary child node
|
|
3652
3549
|
*/
|
|
3653
3550
|
children?: ReactNode | undefined;
|
|
3654
|
-
/**
|
|
3655
|
-
* Allows user to override default button colors
|
|
3551
|
+
/**
|
|
3552
|
+
* Allows user to override default button colors
|
|
3656
3553
|
*/
|
|
3657
3554
|
colorOverride?: string;
|
|
3658
|
-
/**
|
|
3659
|
-
* Used to indicate text is part of a "disabled" UI
|
|
3555
|
+
/**
|
|
3556
|
+
* Used to indicate text is part of a "disabled" UI
|
|
3660
3557
|
*/
|
|
3661
3558
|
disabled?: boolean;
|
|
3662
|
-
/**
|
|
3663
|
-
* Attempt to keep the text to a single line by truncating with an ellipsis
|
|
3664
|
-
* <br />
|
|
3665
|
-
* _Note: this only affects block elements_
|
|
3559
|
+
/**
|
|
3560
|
+
* Attempt to keep the text to a single line by truncating with an ellipsis
|
|
3561
|
+
* <br />
|
|
3562
|
+
* _Note: this only affects block elements_
|
|
3666
3563
|
*/
|
|
3667
3564
|
ellipsis?: boolean;
|
|
3668
|
-
/**
|
|
3669
|
-
* Display the text as inline content
|
|
3565
|
+
/**
|
|
3566
|
+
* Display the text as inline content
|
|
3670
3567
|
*/
|
|
3671
3568
|
inline?: boolean;
|
|
3672
|
-
/**
|
|
3673
|
-
* Displays text as italic type
|
|
3569
|
+
/**
|
|
3570
|
+
* Displays text as italic type
|
|
3674
3571
|
*/
|
|
3675
3572
|
italic?: boolean;
|
|
3676
|
-
/**
|
|
3677
|
-
* Prevents text from being highlighted and copied
|
|
3573
|
+
/**
|
|
3574
|
+
* Prevents text from being highlighted and copied
|
|
3678
3575
|
*/
|
|
3679
3576
|
preventUserSelect?: boolean;
|
|
3680
|
-
/**
|
|
3681
|
-
* The type of html element to render as
|
|
3577
|
+
/**
|
|
3578
|
+
* The type of html element to render as
|
|
3682
3579
|
*/
|
|
3683
3580
|
renderAs?: keyof typeof renderMap;
|
|
3684
|
-
/**
|
|
3685
|
-
* The text style to display
|
|
3581
|
+
/**
|
|
3582
|
+
* The text style to display
|
|
3686
3583
|
*/
|
|
3687
3584
|
variant?: keyof typeof variantStyleMap;
|
|
3688
3585
|
} & _$react.RefAttributes<HTMLElement>>;
|
|
3689
3586
|
//#endregion
|
|
3690
3587
|
//#region src/components/Thumbnail/Thumbnail.d.ts
|
|
3691
3588
|
type IconThumbnailProps = {
|
|
3692
|
-
/**
|
|
3693
|
-
* The desired display of the thumbnail, either wide or square
|
|
3589
|
+
/**
|
|
3590
|
+
* The desired display of the thumbnail, either wide or square
|
|
3694
3591
|
*/
|
|
3695
3592
|
thumbnailImageType?: never;
|
|
3696
|
-
/**
|
|
3697
|
-
* The URL of the thumbnail image to display
|
|
3593
|
+
/**
|
|
3594
|
+
* The URL of the thumbnail image to display
|
|
3698
3595
|
*/
|
|
3699
3596
|
thumbnailUrl?: never;
|
|
3700
|
-
/**
|
|
3701
|
-
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
|
|
3597
|
+
/**
|
|
3598
|
+
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
|
|
3702
3599
|
*/
|
|
3703
3600
|
icon: IconNameType;
|
|
3704
|
-
/**
|
|
3705
|
-
* The color of the icon
|
|
3601
|
+
/**
|
|
3602
|
+
* The color of the icon
|
|
3706
3603
|
*/
|
|
3707
3604
|
iconColor?: string;
|
|
3708
3605
|
};
|
|
3709
3606
|
type ImageThumbnailProps = {
|
|
3710
|
-
/**
|
|
3711
|
-
* The desired display of the thumbnail, either wide or square
|
|
3607
|
+
/**
|
|
3608
|
+
* The desired display of the thumbnail, either wide or square
|
|
3712
3609
|
*/
|
|
3713
3610
|
thumbnailImageType?: 'square' | 'wide' | undefined;
|
|
3714
|
-
/**
|
|
3715
|
-
* The URL of the thumbnail image to display
|
|
3611
|
+
/**
|
|
3612
|
+
* The URL of the thumbnail image to display
|
|
3716
3613
|
*/
|
|
3717
3614
|
thumbnailUrl: string[] | string | null;
|
|
3718
|
-
/**
|
|
3719
|
-
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
|
|
3615
|
+
/**
|
|
3616
|
+
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
|
|
3720
3617
|
*/
|
|
3721
3618
|
icon?: never;
|
|
3722
|
-
/**
|
|
3723
|
-
* The color of the icon
|
|
3619
|
+
/**
|
|
3620
|
+
* The color of the icon
|
|
3724
3621
|
*/
|
|
3725
3622
|
iconColor?: never;
|
|
3726
3623
|
};
|
|
3727
3624
|
type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
|
|
3728
|
-
/**
|
|
3729
|
-
* Text that displays in the bottom right hand corner of the thumbnail, usually the media duration
|
|
3625
|
+
/**
|
|
3626
|
+
* Text that displays in the bottom right hand corner of the thumbnail, usually the media duration
|
|
3730
3627
|
*/
|
|
3731
3628
|
bottomRightText?: string;
|
|
3732
|
-
/**
|
|
3733
|
-
* Icon to display in bottom right corner of the thumbnail
|
|
3629
|
+
/**
|
|
3630
|
+
* Icon to display in bottom right corner of the thumbnail
|
|
3734
3631
|
*/
|
|
3735
3632
|
bottomRightIcon?: IconNameType;
|
|
3736
|
-
/**
|
|
3737
|
-
* The type of gradient to show either behind the icon or when there is no thumbnail image
|
|
3633
|
+
/**
|
|
3634
|
+
* The type of gradient to show either behind the icon or when there is no thumbnail image
|
|
3738
3635
|
*/
|
|
3739
3636
|
gradientBackground?: GradientNameType;
|
|
3740
|
-
/**
|
|
3741
|
-
* Width of the thumbnail. By default, the thumbnail will grow to fit its container.
|
|
3637
|
+
/**
|
|
3638
|
+
* Width of the thumbnail. By default, the thumbnail will grow to fit its container.
|
|
3742
3639
|
*/
|
|
3743
3640
|
width?: string;
|
|
3744
3641
|
} & (IconThumbnailProps | ImageThumbnailProps);
|
|
@@ -3759,12 +3656,12 @@ declare const Thumbnail: {
|
|
|
3759
3656
|
//#endregion
|
|
3760
3657
|
//#region src/components/ThumbnailCollage/ThumbnailCollage.d.ts
|
|
3761
3658
|
type ThumbnailCollageProps = {
|
|
3762
|
-
/**
|
|
3763
|
-
* An array of image urls to show in the thumbnail. Supports up to 3 images
|
|
3659
|
+
/**
|
|
3660
|
+
* An array of image urls to show in the thumbnail. Supports up to 3 images
|
|
3764
3661
|
*/
|
|
3765
3662
|
thumbnailUrls: string[];
|
|
3766
|
-
/**
|
|
3767
|
-
* The type of gradient to show when there are no thumbnail urls
|
|
3663
|
+
/**
|
|
3664
|
+
* The type of gradient to show when there are no thumbnail urls
|
|
3768
3665
|
*/
|
|
3769
3666
|
gradientBackground?: GradientNameType;
|
|
3770
3667
|
};
|
|
@@ -3777,41 +3674,41 @@ declare const ThumbnailCollage: ({
|
|
|
3777
3674
|
//#region src/components/Toast/Toast.d.ts
|
|
3778
3675
|
type ToastVariants = 'dangerous' | 'error' | 'success' | 'warning';
|
|
3779
3676
|
type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
3780
|
-
/**
|
|
3781
|
-
* A function that will be invoked when the action button is clicked instead of the internal handler
|
|
3677
|
+
/**
|
|
3678
|
+
* A function that will be invoked when the action button is clicked instead of the internal handler
|
|
3782
3679
|
*/
|
|
3783
3680
|
actionInterceptor?: (() => void) | undefined;
|
|
3784
|
-
/**
|
|
3785
|
-
* The text of the "action" button on the right
|
|
3681
|
+
/**
|
|
3682
|
+
* The text of the "action" button on the right
|
|
3786
3683
|
*/
|
|
3787
3684
|
actionLabel?: string | undefined;
|
|
3788
|
-
/**
|
|
3789
|
-
* A hex value that will override the color values defined by `variant`
|
|
3685
|
+
/**
|
|
3686
|
+
* A hex value that will override the color values defined by `variant`
|
|
3790
3687
|
*/
|
|
3791
3688
|
colorOverride?: string | undefined;
|
|
3792
|
-
/**
|
|
3793
|
-
* @ignore
|
|
3794
|
-
* Avoids animation and positions Toast in normal flow for documentation/testing purposes
|
|
3689
|
+
/**
|
|
3690
|
+
* @ignore
|
|
3691
|
+
* Avoids animation and positions Toast in normal flow for documentation/testing purposes
|
|
3795
3692
|
*/
|
|
3796
3693
|
renderInPlace?: boolean;
|
|
3797
|
-
/**
|
|
3798
|
-
* Determines whether Toast is displayed
|
|
3694
|
+
/**
|
|
3695
|
+
* Determines whether Toast is displayed
|
|
3799
3696
|
*/
|
|
3800
3697
|
isOpen?: boolean;
|
|
3801
|
-
/**
|
|
3802
|
-
* The message displayed in the toast
|
|
3698
|
+
/**
|
|
3699
|
+
* The message displayed in the toast
|
|
3803
3700
|
*/
|
|
3804
3701
|
message: string;
|
|
3805
|
-
/**
|
|
3806
|
-
* Callback that is invoked when toasts closes (via timeout or close button)
|
|
3702
|
+
/**
|
|
3703
|
+
* Callback that is invoked when toasts closes (via timeout or close button)
|
|
3807
3704
|
*/
|
|
3808
3705
|
onClose: () => void;
|
|
3809
|
-
/**
|
|
3810
|
-
* The time in ms before the Toast calls the onClose function
|
|
3706
|
+
/**
|
|
3707
|
+
* The time in ms before the Toast calls the onClose function
|
|
3811
3708
|
*/
|
|
3812
3709
|
timeout?: number | undefined;
|
|
3813
|
-
/**
|
|
3814
|
-
* The kind of Toast to display
|
|
3710
|
+
/**
|
|
3711
|
+
* The kind of Toast to display
|
|
3815
3712
|
*/
|
|
3816
3713
|
variant?: ToastVariants | undefined;
|
|
3817
3714
|
};
|
|
@@ -3851,49 +3748,49 @@ declare const ToastProvider: ({
|
|
|
3851
3748
|
//#endregion
|
|
3852
3749
|
//#region src/components/Tooltip/Tooltip.d.ts
|
|
3853
3750
|
type TooltipProps = Omit<ComponentPropsWithoutRef<'div'>, 'id'> & {
|
|
3854
|
-
/**
|
|
3855
|
-
* The node that will be wrapped by the Tooltip
|
|
3751
|
+
/**
|
|
3752
|
+
* The node that will be wrapped by the Tooltip
|
|
3856
3753
|
*/
|
|
3857
3754
|
children: ReactNode;
|
|
3858
|
-
/**
|
|
3859
|
-
* Where the tooltip should appear in relation to wrapped component
|
|
3755
|
+
/**
|
|
3756
|
+
* Where the tooltip should appear in relation to wrapped component
|
|
3860
3757
|
*/
|
|
3861
3758
|
direction?: 'bottom' | 'left' | 'right' | 'top';
|
|
3862
|
-
/**
|
|
3863
|
-
* Length of time to wait before dismissing Tooltip for click eventType
|
|
3759
|
+
/**
|
|
3760
|
+
* Length of time to wait before dismissing Tooltip for click eventType
|
|
3864
3761
|
*/
|
|
3865
3762
|
duration?: boolean | number | string;
|
|
3866
|
-
/**
|
|
3867
|
-
* The type of event that triggers display of Tooltip
|
|
3763
|
+
/**
|
|
3764
|
+
* The type of event that triggers display of Tooltip
|
|
3868
3765
|
*/
|
|
3869
3766
|
eventType?: 'click' | 'hover';
|
|
3870
|
-
/**
|
|
3871
|
-
* @ignore
|
|
3872
|
-
* Force a Tooltip to display it's content without user interaction (for debugging)
|
|
3767
|
+
/**
|
|
3768
|
+
* @ignore
|
|
3769
|
+
* Force a Tooltip to display it's content without user interaction (for debugging)
|
|
3873
3770
|
*/
|
|
3874
3771
|
forceState?: 'open' | undefined;
|
|
3875
|
-
/**
|
|
3876
|
-
* ID for tooltip (automatically created if omitted)
|
|
3772
|
+
/**
|
|
3773
|
+
* ID for tooltip (automatically created if omitted)
|
|
3877
3774
|
*/
|
|
3878
3775
|
id?: string | null | undefined;
|
|
3879
|
-
/**
|
|
3880
|
-
* The content that will appear in the Tooltip popup
|
|
3776
|
+
/**
|
|
3777
|
+
* The content that will appear in the Tooltip popup
|
|
3881
3778
|
*/
|
|
3882
3779
|
label: ReactNode;
|
|
3883
|
-
/**
|
|
3884
|
-
* The maximum number of characters to display inside the Tooltip
|
|
3780
|
+
/**
|
|
3781
|
+
* The maximum number of characters to display inside the Tooltip
|
|
3885
3782
|
*/
|
|
3886
3783
|
maxChars?: number | null;
|
|
3887
|
-
/**
|
|
3888
|
-
* Whether content within the label should wrap
|
|
3784
|
+
/**
|
|
3785
|
+
* Whether content within the label should wrap
|
|
3889
3786
|
*/
|
|
3890
3787
|
shouldWrap?: boolean;
|
|
3891
|
-
/**
|
|
3892
|
-
* Color to override background of the tooltip.
|
|
3788
|
+
/**
|
|
3789
|
+
* Color to override background of the tooltip.
|
|
3893
3790
|
*/
|
|
3894
3791
|
backgroundColorOverride?: string;
|
|
3895
|
-
/**
|
|
3896
|
-
* Color to override font color of the tooltip.
|
|
3792
|
+
/**
|
|
3793
|
+
* Color to override font color of the tooltip.
|
|
3897
3794
|
*/
|
|
3898
3795
|
fontColorOverride?: string;
|
|
3899
3796
|
};
|
|
@@ -3917,20 +3814,20 @@ declare const Tooltip: {
|
|
|
3917
3814
|
//#endregion
|
|
3918
3815
|
//#region src/components/Truncate/Truncate.d.ts
|
|
3919
3816
|
type TruncateProps = {
|
|
3920
|
-
/**
|
|
3921
|
-
* Prevent ellipsis from truncating mid-word
|
|
3817
|
+
/**
|
|
3818
|
+
* Prevent ellipsis from truncating mid-word
|
|
3922
3819
|
*/
|
|
3923
3820
|
breakOnWords?: boolean;
|
|
3924
|
-
/**
|
|
3925
|
-
* The string to be truncated
|
|
3821
|
+
/**
|
|
3822
|
+
* The string to be truncated
|
|
3926
3823
|
*/
|
|
3927
3824
|
children: string | null | undefined;
|
|
3928
|
-
/**
|
|
3929
|
-
* The maximum number of characters to display inside the Tooltip
|
|
3825
|
+
/**
|
|
3826
|
+
* The maximum number of characters to display inside the Tooltip
|
|
3930
3827
|
*/
|
|
3931
3828
|
maxChars: number;
|
|
3932
|
-
/**
|
|
3933
|
-
* A string to append to the truncated string
|
|
3829
|
+
/**
|
|
3830
|
+
* A string to append to the truncated string
|
|
3934
3831
|
*/
|
|
3935
3832
|
terminator?: string;
|
|
3936
3833
|
};
|
|
@@ -3946,35 +3843,35 @@ declare const Truncate: {
|
|
|
3946
3843
|
//#endregion
|
|
3947
3844
|
//#region src/components/WistiaLogo/WistiaLogo.d.ts
|
|
3948
3845
|
type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
3949
|
-
/**
|
|
3950
|
-
* An optional accessible description for the logo
|
|
3846
|
+
/**
|
|
3847
|
+
* An optional accessible description for the logo
|
|
3951
3848
|
*/
|
|
3952
3849
|
description?: string;
|
|
3953
|
-
/**
|
|
3954
|
-
* Height, in pixels, of the logo
|
|
3850
|
+
/**
|
|
3851
|
+
* Height, in pixels, of the logo
|
|
3955
3852
|
*/
|
|
3956
3853
|
height?: number;
|
|
3957
|
-
/**
|
|
3958
|
-
* @ignore
|
|
3959
|
-
* Change the color when hovering over the logo
|
|
3854
|
+
/**
|
|
3855
|
+
* @ignore
|
|
3856
|
+
* Change the color when hovering over the logo
|
|
3960
3857
|
*/
|
|
3961
3858
|
hoverColor?: string;
|
|
3962
|
-
/**
|
|
3963
|
-
* Display just the icon portion of the logo (ie. hide `Wistia` text)
|
|
3964
|
-
* note: there is no analogue to this because by brand guidelines, the
|
|
3965
|
-
* `Wistia` text must not be displayed without the "flags" iconography
|
|
3859
|
+
/**
|
|
3860
|
+
* Display just the icon portion of the logo (ie. hide `Wistia` text)
|
|
3861
|
+
* note: there is no analogue to this because by brand guidelines, the
|
|
3862
|
+
* `Wistia` text must not be displayed without the "flags" iconography
|
|
3966
3863
|
*/
|
|
3967
3864
|
iconOnly?: boolean;
|
|
3968
|
-
/**
|
|
3969
|
-
* If provided, will wrap the logo in a link
|
|
3865
|
+
/**
|
|
3866
|
+
* If provided, will wrap the logo in a link
|
|
3970
3867
|
*/
|
|
3971
3868
|
href?: string;
|
|
3972
|
-
/**
|
|
3973
|
-
* An accessible title for the logo (defaults to "Wistia Logo")
|
|
3869
|
+
/**
|
|
3870
|
+
* An accessible title for the logo (defaults to "Wistia Logo")
|
|
3974
3871
|
*/
|
|
3975
3872
|
title?: string;
|
|
3976
|
-
/**
|
|
3977
|
-
* Style of the logo
|
|
3873
|
+
/**
|
|
3874
|
+
* Style of the logo
|
|
3978
3875
|
*/
|
|
3979
3876
|
variant?: 'dark' | 'light' | 'standard';
|
|
3980
3877
|
};
|
|
@@ -3992,5 +3889,5 @@ declare const WistiaLogo: {
|
|
|
3992
3889
|
displayName: string;
|
|
3993
3890
|
};
|
|
3994
3891
|
//#endregion
|
|
3995
|
-
export { ActionModal, type ActionModalProps, Avatar, type AvatarInstanceType, type AvatarProps, Backdrop, type BackdropProps, BackgroundImage, type BackgroundImageProps, Badge, type BadgeColorScheme, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, CheckboxMenuItem, type CheckboxMenuItemProps, type CheckboxProps, ClickArea, type ClickAreaProps, CloseButton, type CloseButtonProps, CollapsibleGroup, type CollapsibleGroupProps, Divider, type DividerProps, Ellipsis, type EllipsisProps, FileSelect, type FileSelectProps, Form, FormButtons, type FormButtonsProps, FormField, FormFieldError, type FormFieldErrorProps, type FormFieldProps, FormGlobalError, type FormProps, type FormState, FullScreenModal, type FullScreenModalProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, LabelDescription, type LabelDescriptionProps, type LabelProps, Link$1 as Link, LinkButton, type LinkButtonProps, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Menu, MenuButton, type MenuButtonProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuRadioGroup, Modal, ModalBase, type ModalBaseContentProps, ModalBody, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, ModalHeader, type ModalProps, type NodeElementObject, type OnBeforeHideInterface, type OptionsType, Paper, type PaperProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, type RadioGroupProps, RadioMenuItem, type RadioMenuItemProps, type RadioProps, RangeSelector, type RangeSelectorProps, RichTextEditor, type RichTextEditorProps, ScreenReaderOnly, type ScreenReaderOnlyProps, Select, type SelectProps, Slider, type SliderProps, Stack, type StackProps, SubMenu, Switch, type SwitchProps, Text, type TextProps, Thumbnail, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Toast, type ToastProps, ToastProvider, type ToastVariants, Tooltip, type TooltipProps, Truncate, type TruncateProps, VHSProvider, VHSProviderProps, type VHSTheme, WistiaLogo, type WistiaLogoProps, type WrapperProviderLinkType, copyToClipboard, datetimeHelpers, ellipsisFlexParentStyle, ellipsisStyle, getBackgroundGradient, getSemiRandomBackgroundGradient, iconSizeMap, mq, objectHelpers, rteDeserializeHTML, rteFormatTypes, rteSerializeToHTML, screenReaderOnlyStyle, stringHelpers,
|
|
3892
|
+
export { ActionModal, type ActionModalProps, Avatar, type AvatarInstanceType, type AvatarProps, Backdrop, type BackdropProps, BackgroundImage, type BackgroundImageProps, Badge, type BadgeColorScheme, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, CheckboxMenuItem, type CheckboxMenuItemProps, type CheckboxProps, ClickArea, type ClickAreaProps, CloseButton, type CloseButtonProps, CollapsibleGroup, type CollapsibleGroupProps, Divider, type DividerProps, Ellipsis, type EllipsisProps, FileSelect, type FileSelectProps, Form, FormButtons, type FormButtonsProps, FormField, FormFieldError, type FormFieldErrorProps, type FormFieldProps, FormGlobalError, type FormProps, type FormState, FullScreenModal, type FullScreenModalProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, LabelDescription, type LabelDescriptionProps, type LabelProps, Link$1 as Link, LinkButton, type LinkButtonProps, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Menu, MenuButton, type MenuButtonProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuRadioGroup, Modal, ModalBase, type ModalBaseContentProps, ModalBody, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, ModalHeader, type ModalProps, type NodeElementObject, type OnBeforeHideInterface, type OptionsType, Paper, type PaperProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, type RadioGroupProps, RadioMenuItem, type RadioMenuItemProps, type RadioProps, RangeSelector, type RangeSelectorProps, RichTextEditor, type RichTextEditorProps, ScreenReaderOnly, type ScreenReaderOnlyProps, Select, type SelectProps, Slider, type SliderProps, Stack, type StackProps, SubMenu, Switch, type SwitchProps, Text, type TextProps, Thumbnail, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Toast, type ToastProps, ToastProvider, type ToastVariants, Tooltip, type TooltipProps, Truncate, type TruncateProps, VHSProvider, VHSProviderProps, type VHSTheme, WistiaLogo, type WistiaLogoProps, type WrapperProviderLinkType, copyToClipboard, datetimeHelpers, ellipsisFlexParentStyle, ellipsisStyle, getBackgroundGradient, getSemiRandomBackgroundGradient, iconSizeMap, mq, objectHelpers, rteDeserializeHTML, rteFormatTypes, rteSerializeToHTML, screenReaderOnlyStyle, stringHelpers, useFormikContext, useTheme, useThemeColor, useToast };
|
|
3996
3893
|
//# sourceMappingURL=index.d.ts.map
|