@indico-data/design-system 1.0.53 → 1.0.55
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/lib/components/Icon/Icon.d.ts +1 -0
- package/lib/components/Icon/Icon.stories.d.ts +2 -0
- package/lib/components/Toggle/Toggle.d.ts +12 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +21 -0
- package/lib/components/Toggle/Toggle.styles.d.ts +2 -0
- package/lib/components/Toggle/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +2 -0
- package/lib/index.d.ts +69 -55
- package/lib/index.esm.js +129 -11
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +129 -10
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Icon/Icon.tsx +2 -0
- package/src/components/Toggle/Toggle.stories.tsx +56 -0
- package/src/components/Toggle/Toggle.styles.ts +86 -0
- package/src/components/Toggle/Toggle.tsx +57 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.tsx +1 -0
- package/src/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +51 -9
- package/src/index.ts +1 -0
- package/lib/components/Navigation/Drawer/constants.d.ts +0 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StoryObj } from '@storybook/react';
|
|
2
3
|
import { Icon } from './Icon';
|
|
3
4
|
declare const meta: {
|
|
@@ -30,6 +31,7 @@ declare const meta: {
|
|
|
30
31
|
size?: [string | number] | [string | number, string | number] | undefined;
|
|
31
32
|
style?: any;
|
|
32
33
|
onClick?: (() => void) | undefined;
|
|
34
|
+
ref?: React.Ref<SVGSVGElement> | undefined;
|
|
33
35
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
34
36
|
};
|
|
35
37
|
export default meta;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PermafrostComponent, IconName } from '@/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
onChange: any;
|
|
5
|
+
value: boolean;
|
|
6
|
+
['aria-label']?: string;
|
|
7
|
+
iconSize?: number | string;
|
|
8
|
+
checkedIconName?: IconName;
|
|
9
|
+
notCheckedIconName?: IconName;
|
|
10
|
+
} & PermafrostComponent;
|
|
11
|
+
export declare const Toggle: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Toggle } from './Toggle';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: (props: {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onChange: any;
|
|
7
|
+
value: boolean;
|
|
8
|
+
"aria-label"?: string | undefined;
|
|
9
|
+
iconSize?: string | number | undefined;
|
|
10
|
+
checkedIconName?: "checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "reset" | "menu" | "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "calendar" | "check-circle" | "circle-help" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "document" | "date" | "draggable" | "droplet" | "edit" | "education" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list" | undefined;
|
|
11
|
+
notCheckedIconName?: "checkbox" | "ellipsis" | "help" | "pointer" | "text" | "zoom-in" | "zoom-out" | "reset" | "menu" | "search" | "split" | "indico-o-white" | "account" | "address" | "api-doc" | "arrow-dots" | "arrow-down" | "arrow-up-circle" | "arrows-cursor" | "bookmark" | "bookmarks" | "bookmark-saved" | "branch" | "calendar" | "check-circle" | "circle-help" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "classification-document" | "classification-image" | "classification-page" | "classify-and-unbundle" | "clipboard" | "coffee-1" | "coffee-2" | "coffee-fail" | "coffeecup" | "coffeesteam" | "cog" | "collection" | "compare" | "company-name" | "confidence-bar-1" | "confidence-bar-2" | "confidence-bar-3" | "confidence-bar-4" | "confidence-bars" | "configure" | "choose-library" | "crowdlabel" | "currency" | "dashboard" | "data-and-access" | "database" | "document" | "date" | "draggable" | "droplet" | "edit" | "education" | "elmos-fire" | "email" | "enterprise" | "exclamation-circle-stroke" | "extraction" | "eye" | "file" | "fileHappy" | "filter" | "filter-outline" | "folder" | "form" | "gallery" | "find-documents" | "graphiql" | "grid-view" | "happy" | "help-solid" | "highlight" | "highlight-outline" | "indico-logo-white" | "indico-o" | "info" | "kabob" | "key" | "label" | "layout-complex" | "layout-simple" | "list-view" | "libraries" | "location" | "logout" | "lock" | "model-import" | "model-starter" | "moon" | "moonbow" | "no-collections" | "no-libraries" | "no_results" | "no-format" | "object-detection" | "organizations" | "output" | "page-thumbnail" | "pay-as-you-go" | "person" | "phone" | "pin" | "plus" | "popup" | "price" | "preview-view" | "radio-button" | "recruiter" | "regex" | "reject" | "repair" | "research" | "retrain" | "sad" | "search-thin" | "shrug" | "signature" | "sort-down" | "step-forward" | "sun" | "surround" | "surround-outline" | "thumbs-down" | "thumbs-up" | "time" | "trash" | "unlock" | "upload" | "url" | "user" | "wand" | "warning" | "warning-stroke" | "workflows" | "x-close" | "fa-dot-circle" | "fa-file" | "fa-file-alt" | "fa-file-pdf" | "fa-file-word" | "fa-check-square" | "fa-square" | "fa-angle-double-left" | "fa-arrow-circle-right" | "fa-arrow-down" | "fa-arrow-left" | "fa-arrow-right" | "fa-arrow-up" | "fa-ban" | "fa-caret-down" | "fa-caret-up" | "fa-chart-bar" | "fa-check" | "fa-check-circle" | "fa-circle-notch" | "fa-clipboard" | "fa-clock" | "fa-clone" | "fa-cloud" | "fa-cog" | "fa-cogs" | "fa-coins" | "fa-cube" | "fa-cut" | "fa-download" | "fa-exclamation-circle" | "fa-exclamation-triangle" | "fa-external-link-alt" | "fa-eye-dropper" | "fa-file-download" | "fa-file-export" | "fa-file-upload" | "fa-filter" | "fa-ghost" | "fa-hat-wizard" | "fa-info-circle" | "fa-key" | "fa-keyboard" | "fa-layer-group" | "fa-pencil-alt" | "fa-plus" | "fa-plus-square" | "fa-question-circle" | "fa-robot" | "fa-search" | "fa-sign-out-alt" | "fa-sliders-h" | "fa-sync-alt" | "fa-tag" | "fa-times" | "fa-times-circle" | "fa-tint" | "fa-toggle-off" | "fa-toggle-on" | "fa-trash" | "fa-trash-alt" | "fa-undo" | "fa-user" | "fa-users" | "fa-mouse-pointer" | "fa-step-forward" | "fa-search-minus" | "fa-search-plus" | "fa-table" | "fa-image" | "fa-link" | "fa-list" | undefined;
|
|
12
|
+
} & import("../../types").PermafrostComponent) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
title: string;
|
|
14
|
+
argTypes: {};
|
|
15
|
+
args: {};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof Toggle>;
|
|
19
|
+
export declare const Normal: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
export declare const Icons: Story;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledToggle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toggle } from './Toggle';
|
|
@@ -14,3 +14,4 @@ export { Wizard, WizardCard, WizardSection, StyledWizard } from './Wizard';
|
|
|
14
14
|
export { WizardWithSidebar } from './WizardWithSidebar';
|
|
15
15
|
export { Drawer } from './Navigation/Drawer';
|
|
16
16
|
export { TextTruncate } from './text-truncate';
|
|
17
|
+
export { Toggle } from './Toggle';
|
|
@@ -9,11 +9,13 @@ type Props = PermafrostComponent & {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
onChange: (value: Date | DateRange | undefined) => void;
|
|
11
11
|
selected?: Date | undefined;
|
|
12
|
+
selectedRange?: DateRange | undefined;
|
|
12
13
|
value: Date | undefined;
|
|
13
14
|
triggerIcon: IconName;
|
|
14
15
|
triggerIconSize: [string | number];
|
|
15
16
|
isRangePicker?: boolean;
|
|
16
17
|
isOpen?: boolean;
|
|
18
|
+
clearOnClose?: boolean;
|
|
17
19
|
};
|
|
18
20
|
export declare const NoInputDatePicker: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -444,25 +444,25 @@ declare const allColors: {
|
|
|
444
444
|
readonly backgroundColor: "#182432";
|
|
445
445
|
};
|
|
446
446
|
|
|
447
|
-
type Props$
|
|
447
|
+
type Props$r = PermafrostComponent & {
|
|
448
448
|
content: React__default.ReactNode;
|
|
449
449
|
header?: React__default.ReactNode | string;
|
|
450
450
|
open?: boolean;
|
|
451
451
|
};
|
|
452
|
-
declare const Accordion: (props: Props$
|
|
452
|
+
declare const Accordion: (props: Props$r) => react_jsx_runtime.JSX.Element;
|
|
453
453
|
|
|
454
|
-
type Props$
|
|
454
|
+
type Props$q = PermafrostComponent & {
|
|
455
455
|
style?: object;
|
|
456
456
|
children: React__default.ReactNode;
|
|
457
457
|
};
|
|
458
|
-
declare const Section: (props: Props$
|
|
458
|
+
declare const Section: (props: Props$q) => react_jsx_runtime.JSX.Element;
|
|
459
459
|
|
|
460
|
-
type Props$
|
|
460
|
+
type Props$p = PermafrostComponent & {
|
|
461
461
|
title?: string;
|
|
462
462
|
style?: object;
|
|
463
463
|
children: React__default.ReactNode;
|
|
464
464
|
};
|
|
465
|
-
declare const SectionBlock: (props: Props$
|
|
465
|
+
declare const SectionBlock: (props: Props$p) => react_jsx_runtime.JSX.Element;
|
|
466
466
|
|
|
467
467
|
type SectionBodyProps = PermafrostComponent & {
|
|
468
468
|
style?: object;
|
|
@@ -470,12 +470,12 @@ type SectionBodyProps = PermafrostComponent & {
|
|
|
470
470
|
};
|
|
471
471
|
declare const SectionBody: (props: SectionBodyProps) => react_jsx_runtime.JSX.Element;
|
|
472
472
|
|
|
473
|
-
type Props$
|
|
473
|
+
type Props$o = PermafrostComponent & {
|
|
474
474
|
style?: object;
|
|
475
475
|
children?: React__default.ReactNode;
|
|
476
476
|
};
|
|
477
477
|
declare const SectionHeader: {
|
|
478
|
-
(props: Props$
|
|
478
|
+
(props: Props$o): react_jsx_runtime.JSX.Element;
|
|
479
479
|
defaultProps: {
|
|
480
480
|
className: string;
|
|
481
481
|
style: {};
|
|
@@ -507,7 +507,7 @@ declare function Button(props: ButtonProps): React__default.ReactElement;
|
|
|
507
507
|
type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'outline';
|
|
508
508
|
type ButtonSize = 'normal' | 'large';
|
|
509
509
|
|
|
510
|
-
type Props$
|
|
510
|
+
type Props$n = PermafrostComponent & {
|
|
511
511
|
/**
|
|
512
512
|
* Adjusts vertical alignment of the text label, in relation to the icon
|
|
513
513
|
*/
|
|
@@ -533,9 +533,9 @@ type Props$m = PermafrostComponent & {
|
|
|
533
533
|
*
|
|
534
534
|
* @see {@link https://react-spectrum.adobe.com/blog/building-a-button-part-1.html}
|
|
535
535
|
*/
|
|
536
|
-
declare function IconButton(props: Props$
|
|
536
|
+
declare function IconButton(props: Props$n): react_jsx_runtime.JSX.Element;
|
|
537
537
|
|
|
538
|
-
type Props$
|
|
538
|
+
type Props$m = PermafrostComponent & {
|
|
539
539
|
defaultValue?: string;
|
|
540
540
|
disabled?: boolean;
|
|
541
541
|
horizontal?: boolean;
|
|
@@ -550,7 +550,7 @@ type Props$l = PermafrostComponent & {
|
|
|
550
550
|
value?: string | number;
|
|
551
551
|
validationErrors?: string[];
|
|
552
552
|
};
|
|
553
|
-
declare const BorderSelect: (props: Props$
|
|
553
|
+
declare const BorderSelect: (props: Props$m) => react_jsx_runtime.JSX.Element;
|
|
554
554
|
|
|
555
555
|
type ComboboxProps = {
|
|
556
556
|
'aria-label'?: string;
|
|
@@ -598,7 +598,7 @@ type ComboboxOption = {
|
|
|
598
598
|
type ComboboxSize = 'small' | 'medium';
|
|
599
599
|
type ComboboxVariant = 'default' | 'light';
|
|
600
600
|
|
|
601
|
-
type Props$
|
|
601
|
+
type Props$l = PermafrostComponent & {
|
|
602
602
|
disabled?: boolean;
|
|
603
603
|
initialText?: string;
|
|
604
604
|
options: {
|
|
@@ -612,7 +612,7 @@ type Props$k = PermafrostComponent & {
|
|
|
612
612
|
onChange(e: React__default.ChangeEvent<HTMLSelectElement>): void;
|
|
613
613
|
onClick?(e: React__default.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
614
614
|
};
|
|
615
|
-
declare const Select: (props: Props$
|
|
615
|
+
declare const Select: (props: Props$l) => react_jsx_runtime.JSX.Element;
|
|
616
616
|
|
|
617
617
|
/**
|
|
618
618
|
* Multiselect combobox component. If selections are not bound to outside state
|
|
@@ -653,21 +653,22 @@ declare const SingleCombobox: React__default.ForwardRefExoticComponent<Permafros
|
|
|
653
653
|
onChange: (selectedOption: ComboboxOption) => void;
|
|
654
654
|
} & React__default.RefAttributes<unknown>>;
|
|
655
655
|
|
|
656
|
-
type Props$
|
|
656
|
+
type Props$k = PermafrostComponent & {
|
|
657
657
|
ariaLabel?: string;
|
|
658
658
|
fill?: string;
|
|
659
659
|
name: IconName;
|
|
660
660
|
size?: [string | number] | [string | number, string | number];
|
|
661
661
|
style?: any;
|
|
662
662
|
onClick?(): void;
|
|
663
|
+
ref?: React__default.Ref<SVGSVGElement>;
|
|
663
664
|
};
|
|
664
665
|
/**
|
|
665
666
|
* Generic icon component, hidden from Assistive Technology by default.
|
|
666
667
|
* If icon should be available to AT, pass the desired name into the `ariaLabel` prop.
|
|
667
668
|
*/
|
|
668
|
-
declare function Icon({ style, ...props }: Props$
|
|
669
|
+
declare function Icon({ style, ...props }: Props$k): React__default.ReactElement | null;
|
|
669
670
|
|
|
670
|
-
type Props$
|
|
671
|
+
type Props$j = PermafrostComponent & {
|
|
671
672
|
children: React__default.ReactNode | string;
|
|
672
673
|
minLength?: number;
|
|
673
674
|
onUpdate?(newValue: string): void;
|
|
@@ -676,9 +677,9 @@ type Props$i = PermafrostComponent & {
|
|
|
676
677
|
* Wrapper component which enables text editing in place directly on a child component,
|
|
677
678
|
* element, or plain text.
|
|
678
679
|
*/
|
|
679
|
-
declare function EditableInput(props: Props$
|
|
680
|
+
declare function EditableInput(props: Props$j): react_jsx_runtime.JSX.Element;
|
|
680
681
|
|
|
681
|
-
type Props$
|
|
682
|
+
type Props$i = PermafrostComponent & {
|
|
682
683
|
autoFocus?: boolean;
|
|
683
684
|
decrement?(): void;
|
|
684
685
|
disabled?: boolean;
|
|
@@ -698,9 +699,9 @@ type Props$h = PermafrostComponent & {
|
|
|
698
699
|
* Basic numeric input field. A label is required, but may be visually hidden
|
|
699
700
|
* using the `hiddenLabel` property.
|
|
700
701
|
*/
|
|
701
|
-
declare function NumberInput(props: Props$
|
|
702
|
+
declare function NumberInput(props: Props$i): React__default.ReactElement;
|
|
702
703
|
|
|
703
|
-
type Props$
|
|
704
|
+
type Props$h = PermafrostComponent & {
|
|
704
705
|
border?: boolean;
|
|
705
706
|
showClearInputIcon?: boolean;
|
|
706
707
|
showSearchIcon?: boolean;
|
|
@@ -714,13 +715,13 @@ type Props$g = PermafrostComponent & {
|
|
|
714
715
|
value?: string;
|
|
715
716
|
};
|
|
716
717
|
declare const SearchInput: {
|
|
717
|
-
(props: Props$
|
|
718
|
+
(props: Props$h): react_jsx_runtime.JSX.Element;
|
|
718
719
|
defaultProps: {
|
|
719
720
|
className: string;
|
|
720
721
|
};
|
|
721
722
|
};
|
|
722
723
|
|
|
723
|
-
type Props$
|
|
724
|
+
type Props$g = PermafrostComponent & {
|
|
724
725
|
autoComplete?: 'email' | 'current-password' | 'new-password' | string;
|
|
725
726
|
autoFocus?: boolean;
|
|
726
727
|
defaultValue?: string;
|
|
@@ -741,9 +742,9 @@ type Props$f = PermafrostComponent & {
|
|
|
741
742
|
value?: string;
|
|
742
743
|
readOnly?: boolean;
|
|
743
744
|
};
|
|
744
|
-
declare function TextInput(props: Props$
|
|
745
|
+
declare function TextInput(props: Props$g): React__default.ReactElement;
|
|
745
746
|
|
|
746
|
-
type Props$
|
|
747
|
+
type Props$f = {
|
|
747
748
|
['aria-label']: string;
|
|
748
749
|
children?: React__default.ReactNode;
|
|
749
750
|
hideFocusRing: boolean;
|
|
@@ -759,7 +760,7 @@ type Props$e = {
|
|
|
759
760
|
* A group label must be included: either pass a string or markup into the
|
|
760
761
|
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
761
762
|
*/
|
|
762
|
-
declare function RadioGroup$1({ children, ...props }: Props$
|
|
763
|
+
declare function RadioGroup$1({ children, ...props }: Props$f): react_jsx_runtime.JSX.Element;
|
|
763
764
|
/**
|
|
764
765
|
* A single radio button and its label.
|
|
765
766
|
*/
|
|
@@ -788,7 +789,7 @@ declare function Radio(props: AriaRadioProps & {
|
|
|
788
789
|
isVisuallySelected?: (selectedValue: string) => void;
|
|
789
790
|
}): react_jsx_runtime.JSX.Element;
|
|
790
791
|
|
|
791
|
-
type Props$
|
|
792
|
+
type Props$e = PermafrostComponent & {
|
|
792
793
|
ariaLabel?: string;
|
|
793
794
|
disableBeforeDate?: Date;
|
|
794
795
|
disableAfterDate?: Date;
|
|
@@ -800,9 +801,9 @@ type Props$d = PermafrostComponent & {
|
|
|
800
801
|
selected?: Date | undefined;
|
|
801
802
|
value: Date | undefined;
|
|
802
803
|
};
|
|
803
|
-
declare const DatePicker: (props: Props$
|
|
804
|
+
declare const DatePicker: (props: Props$e) => react_jsx_runtime.JSX.Element;
|
|
804
805
|
|
|
805
|
-
type Props$
|
|
806
|
+
type Props$d = PermafrostComponent & {
|
|
806
807
|
ariaLabel?: string;
|
|
807
808
|
disableBeforeDate?: Date;
|
|
808
809
|
disableAfterDate?: Date;
|
|
@@ -811,15 +812,17 @@ type Props$c = PermafrostComponent & {
|
|
|
811
812
|
label?: string;
|
|
812
813
|
onChange: (value: Date | DateRange | undefined) => void;
|
|
813
814
|
selected?: Date | undefined;
|
|
815
|
+
selectedRange?: DateRange | undefined;
|
|
814
816
|
value: Date | undefined;
|
|
815
817
|
triggerIcon: IconName;
|
|
816
818
|
triggerIconSize: [string | number];
|
|
817
819
|
isRangePicker?: boolean;
|
|
818
820
|
isOpen?: boolean;
|
|
821
|
+
clearOnClose?: boolean;
|
|
819
822
|
};
|
|
820
|
-
declare const NoInputDatePicker: (props: Props$
|
|
823
|
+
declare const NoInputDatePicker: (props: Props$d) => react_jsx_runtime.JSX.Element;
|
|
821
824
|
|
|
822
|
-
type Props$
|
|
825
|
+
type Props$c = PermafrostComponent & {
|
|
823
826
|
ariaLabel?: string;
|
|
824
827
|
size?: string;
|
|
825
828
|
style?: {
|
|
@@ -827,24 +830,24 @@ type Props$b = PermafrostComponent & {
|
|
|
827
830
|
};
|
|
828
831
|
fill?: string;
|
|
829
832
|
};
|
|
830
|
-
declare function CircleSpinner(props: Props$
|
|
833
|
+
declare function CircleSpinner(props: Props$c): React__default.ReactElement;
|
|
831
834
|
|
|
832
|
-
type Props$
|
|
835
|
+
type Props$b = PermafrostComponent & {
|
|
833
836
|
width?: string;
|
|
834
837
|
};
|
|
835
|
-
declare function BarSpinner(props: Props$
|
|
838
|
+
declare function BarSpinner(props: Props$b): React__default.ReactElement;
|
|
836
839
|
|
|
837
|
-
type Props$
|
|
840
|
+
type Props$a = PermafrostComponent & {
|
|
838
841
|
color?: string;
|
|
839
842
|
overallSize?: string | number;
|
|
840
843
|
rippleSize?: string | number;
|
|
841
844
|
showRandomMessage?: boolean;
|
|
842
845
|
};
|
|
843
|
-
declare function CirclePulse(props: Props$
|
|
846
|
+
declare function CirclePulse(props: Props$a): React__default.ReactElement;
|
|
844
847
|
|
|
845
848
|
declare const RandomLoadingMessage: () => react_jsx_runtime.JSX.Element;
|
|
846
849
|
|
|
847
|
-
type Props$
|
|
850
|
+
type Props$9 = PermafrostComponent & {
|
|
848
851
|
backgroundColor?: string;
|
|
849
852
|
foregroundColor?: string;
|
|
850
853
|
ringRadius?: number;
|
|
@@ -853,11 +856,11 @@ type Props$8 = PermafrostComponent & {
|
|
|
853
856
|
value: number;
|
|
854
857
|
valueFontSize?: number;
|
|
855
858
|
};
|
|
856
|
-
declare function PercentageRing(props: Props$
|
|
859
|
+
declare function PercentageRing(props: Props$9): react_jsx_runtime.JSX.Element;
|
|
857
860
|
|
|
858
861
|
declare const LoadingList: () => react_jsx_runtime.JSX.Element;
|
|
859
862
|
|
|
860
|
-
type Props$
|
|
863
|
+
type Props$8 = PermafrostComponent & {
|
|
861
864
|
accordion?: boolean;
|
|
862
865
|
accordionDefaultOpen?: boolean;
|
|
863
866
|
emptyListMessage?: string;
|
|
@@ -894,9 +897,9 @@ type Props$7 = PermafrostComponent & {
|
|
|
894
897
|
title: string;
|
|
895
898
|
totalCount?: number;
|
|
896
899
|
};
|
|
897
|
-
declare const ListTable: (props: Props$
|
|
900
|
+
declare const ListTable: (props: Props$8) => react_jsx_runtime.JSX.Element;
|
|
898
901
|
|
|
899
|
-
type Props$
|
|
902
|
+
type Props$7 = PermafrostComponent & {
|
|
900
903
|
currentPage: number;
|
|
901
904
|
limit: number;
|
|
902
905
|
pageInfo: {
|
|
@@ -911,9 +914,9 @@ type Props$6 = PermafrostComponent & {
|
|
|
911
914
|
getNextPage(cursor: number): void;
|
|
912
915
|
getPreviousPage(cursor: number): void;
|
|
913
916
|
};
|
|
914
|
-
declare function Pagination(props: Props$
|
|
917
|
+
declare function Pagination(props: Props$7): react_jsx_runtime.JSX.Element;
|
|
915
918
|
|
|
916
|
-
type Props$
|
|
919
|
+
type Props$6 = PermafrostComponent & {
|
|
917
920
|
actionLink?: string;
|
|
918
921
|
actionText?: string;
|
|
919
922
|
buttonAction?(): void;
|
|
@@ -923,7 +926,7 @@ type Props$5 = PermafrostComponent & {
|
|
|
923
926
|
'data-cy': string;
|
|
924
927
|
};
|
|
925
928
|
};
|
|
926
|
-
declare function Shrug(props: Props$
|
|
929
|
+
declare function Shrug(props: Props$6): React__default.ReactElement;
|
|
927
930
|
|
|
928
931
|
type ModalBaseProps = PermafrostComponent & {
|
|
929
932
|
children: React__default.ReactNode | React__default.ReactNode[];
|
|
@@ -951,7 +954,7 @@ type ModalBaseProps = PermafrostComponent & {
|
|
|
951
954
|
*/
|
|
952
955
|
declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
|
|
953
956
|
|
|
954
|
-
type Props$
|
|
957
|
+
type Props$5 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
|
|
955
958
|
describedBy?: string;
|
|
956
959
|
clickOutsideHandler(e?: React__default.SyntheticEvent): void;
|
|
957
960
|
confirmText?: string;
|
|
@@ -963,9 +966,9 @@ type Props$4 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
|
|
|
963
966
|
title?: string | React__default.ReactNode;
|
|
964
967
|
width?: number;
|
|
965
968
|
};
|
|
966
|
-
declare function ConfirmModal(props: Props$
|
|
969
|
+
declare function ConfirmModal(props: Props$5): react_jsx_runtime.JSX.Element;
|
|
967
970
|
|
|
968
|
-
type Props$
|
|
971
|
+
type Props$4 = {
|
|
969
972
|
children: React__default.ReactNode | React__default.ReactNode[];
|
|
970
973
|
className?: string;
|
|
971
974
|
isLoading?: boolean;
|
|
@@ -977,7 +980,7 @@ type Props$3 = {
|
|
|
977
980
|
*
|
|
978
981
|
* todo: this is an extremely simple version of this component; as I get more familiar with LoadingIndicator use cases, this will be refactored. - jm 9/1/2020
|
|
979
982
|
*/
|
|
980
|
-
declare function LoadingAwareContainer(props: Props$
|
|
983
|
+
declare function LoadingAwareContainer(props: Props$4): React__default.ReactElement;
|
|
981
984
|
|
|
982
985
|
type CancelText$1 = {
|
|
983
986
|
confirmText: string;
|
|
@@ -985,7 +988,7 @@ type CancelText$1 = {
|
|
|
985
988
|
rejectText: string;
|
|
986
989
|
title: string;
|
|
987
990
|
};
|
|
988
|
-
type Props$
|
|
991
|
+
type Props$3 = PermafrostComponent & {
|
|
989
992
|
children: React__default.ReactNode;
|
|
990
993
|
/**
|
|
991
994
|
* text for the cancel confirmation modal
|
|
@@ -1023,7 +1026,7 @@ type Props$2 = PermafrostComponent & {
|
|
|
1023
1026
|
'data-cy': string;
|
|
1024
1027
|
};
|
|
1025
1028
|
};
|
|
1026
|
-
declare function Wizard(props: Props$
|
|
1029
|
+
declare function Wizard(props: Props$3): react_jsx_runtime.JSX.Element;
|
|
1027
1030
|
|
|
1028
1031
|
declare const StyledWizard: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1029
1032
|
declare const WizardCard: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1035,7 +1038,7 @@ type CancelText = {
|
|
|
1035
1038
|
rejectText: string;
|
|
1036
1039
|
title: string;
|
|
1037
1040
|
};
|
|
1038
|
-
type Props$
|
|
1041
|
+
type Props$2 = PermafrostComponent & {
|
|
1039
1042
|
children: React__default.ReactNode;
|
|
1040
1043
|
/**
|
|
1041
1044
|
* text for the cancel confirmation modal
|
|
@@ -1083,7 +1086,7 @@ type Props$1 = PermafrostComponent & {
|
|
|
1083
1086
|
color?: string;
|
|
1084
1087
|
buttonColor?: string;
|
|
1085
1088
|
};
|
|
1086
|
-
declare function WizardWithSidebar(props: Props$
|
|
1089
|
+
declare function WizardWithSidebar(props: Props$2): react_jsx_runtime.JSX.Element;
|
|
1087
1090
|
|
|
1088
1091
|
type ListItem = {
|
|
1089
1092
|
id: string;
|
|
@@ -1092,7 +1095,7 @@ type ListItem = {
|
|
|
1092
1095
|
path: string;
|
|
1093
1096
|
};
|
|
1094
1097
|
|
|
1095
|
-
type Props = PermafrostComponent & {
|
|
1098
|
+
type Props$1 = PermafrostComponent & {
|
|
1096
1099
|
style?: React__default.CSSProperties;
|
|
1097
1100
|
logoText?: string;
|
|
1098
1101
|
logoIcon?: IconName;
|
|
@@ -1102,7 +1105,7 @@ type Props = PermafrostComponent & {
|
|
|
1102
1105
|
$expandedWidth?: string;
|
|
1103
1106
|
$collapsedWidth?: string;
|
|
1104
1107
|
};
|
|
1105
|
-
declare const Drawer: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
1108
|
+
declare const Drawer: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
1106
1109
|
|
|
1107
1110
|
interface TextTruncateProps {
|
|
1108
1111
|
string: string;
|
|
@@ -1111,4 +1114,15 @@ interface TextTruncateProps {
|
|
|
1111
1114
|
}
|
|
1112
1115
|
declare function TextTruncate({ string, maxChars, children }: TextTruncateProps): react_jsx_runtime.JSX.Element;
|
|
1113
1116
|
|
|
1114
|
-
|
|
1117
|
+
type Props = {
|
|
1118
|
+
disabled: boolean;
|
|
1119
|
+
onChange: any;
|
|
1120
|
+
value: boolean;
|
|
1121
|
+
['aria-label']?: string;
|
|
1122
|
+
iconSize?: number | string;
|
|
1123
|
+
checkedIconName?: IconName;
|
|
1124
|
+
notCheckedIconName?: IconName;
|
|
1125
|
+
} & PermafrostComponent;
|
|
1126
|
+
declare const Toggle: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
1127
|
+
|
|
1128
|
+
export { animation as ANIMATION, Radio as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, CirclePulse, CircleSpinner, ConfirmModal, DatePicker, Drawer, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, PercentageRing, Radio$1 as Radio, RadioGroup$1 as RadioGroup, RandomLoadingMessage, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, StyledWizard, typography as TYPOGRAPHY, TextInput, TextTruncate, Toggle, Wizard, WizardCard, WizardSection, WizardWithSidebar, faIcons, indicons };
|