@indico-data/design-system 1.0.54 → 1.0.56

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.
@@ -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';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { PermafrostComponent } from '@/types';
3
+ type Props = PermafrostComponent & {
4
+ questionMark?: boolean;
5
+ for?: string | null;
6
+ place?: string;
7
+ clickToShow?: boolean;
8
+ delayShow?: number;
9
+ delayHide?: number;
10
+ questionMarkClassName?: string;
11
+ children: React.ReactNode;
12
+ block?: boolean;
13
+ };
14
+ export declare const Tooltip: (props: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Tooltip } from './Tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tooltip>;
6
+ export declare const Single: Story;
7
+ export declare const NoQuestionMark: Story;
8
+ export declare const Bottom: Story;
9
+ export declare const Right: Story;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTooltip: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -0,0 +1 @@
1
+ export { Tooltip } from './Tooltip';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { PermafrostComponent } from '@/types';
3
+ type Props = PermafrostComponent & {
4
+ questionMark?: boolean;
5
+ for?: string | null;
6
+ place?: string;
7
+ clickToShow?: boolean;
8
+ delayShow?: number;
9
+ delayHide?: number;
10
+ questionMarkClassName?: string;
11
+ children: React.ReactNode;
12
+ block?: boolean;
13
+ };
14
+ export declare const Tooltip: (props: Props) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Tooltip } from './Tooltip';
3
+ declare const meta: Meta<typeof Tooltip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tooltip>;
6
+ export declare const Single: Story;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTooltip: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -0,0 +1 @@
1
+ export { Tooltip } from './Tooltip';
@@ -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';
package/lib/index.d.ts CHANGED
@@ -301,12 +301,12 @@ declare const margin: {
301
301
  declare function decimalAdjust(type: any, value: any, exp: any): any;
302
302
  declare function round10(value: any, exp: any): any;
303
303
  declare function clamp(value: any, min: any, max: any): any;
304
- declare function numberWithCommas(x: any): any;
304
+ declare function numberWithCommas$1(x: any): any;
305
305
  declare namespace MATH {
306
306
  export { decimalAdjust };
307
307
  export { round10 };
308
308
  export { clamp };
309
- export { numberWithCommas };
309
+ export { numberWithCommas$1 as numberWithCommas };
310
310
  }
311
311
 
312
312
  declare const allColors: {
@@ -444,25 +444,25 @@ declare const allColors: {
444
444
  readonly backgroundColor: "#182432";
445
445
  };
446
446
 
447
- type Props$q = PermafrostComponent & {
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$q) => react_jsx_runtime.JSX.Element;
452
+ declare const Accordion: (props: Props$r) => react_jsx_runtime.JSX.Element;
453
453
 
454
- type Props$p = PermafrostComponent & {
454
+ type Props$q = PermafrostComponent & {
455
455
  style?: object;
456
456
  children: React__default.ReactNode;
457
457
  };
458
- declare const Section: (props: Props$p) => react_jsx_runtime.JSX.Element;
458
+ declare const Section: (props: Props$q) => react_jsx_runtime.JSX.Element;
459
459
 
460
- type Props$o = PermafrostComponent & {
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$o) => react_jsx_runtime.JSX.Element;
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$n = PermafrostComponent & {
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$n): react_jsx_runtime.JSX.Element;
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$m = PermafrostComponent & {
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$m): react_jsx_runtime.JSX.Element;
536
+ declare function IconButton(props: Props$n): react_jsx_runtime.JSX.Element;
537
537
 
538
- type Props$l = PermafrostComponent & {
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$l) => react_jsx_runtime.JSX.Element;
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$k = PermafrostComponent & {
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$k) => react_jsx_runtime.JSX.Element;
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,7 +653,7 @@ declare const SingleCombobox: React__default.ForwardRefExoticComponent<Permafros
653
653
  onChange: (selectedOption: ComboboxOption) => void;
654
654
  } & React__default.RefAttributes<unknown>>;
655
655
 
656
- type Props$j = PermafrostComponent & {
656
+ type Props$k = PermafrostComponent & {
657
657
  ariaLabel?: string;
658
658
  fill?: string;
659
659
  name: IconName;
@@ -666,9 +666,9 @@ type Props$j = PermafrostComponent & {
666
666
  * Generic icon component, hidden from Assistive Technology by default.
667
667
  * If icon should be available to AT, pass the desired name into the `ariaLabel` prop.
668
668
  */
669
- declare function Icon({ style, ...props }: Props$j): React__default.ReactElement | null;
669
+ declare function Icon({ style, ...props }: Props$k): React__default.ReactElement | null;
670
670
 
671
- type Props$i = PermafrostComponent & {
671
+ type Props$j = PermafrostComponent & {
672
672
  children: React__default.ReactNode | string;
673
673
  minLength?: number;
674
674
  onUpdate?(newValue: string): void;
@@ -677,9 +677,9 @@ type Props$i = PermafrostComponent & {
677
677
  * Wrapper component which enables text editing in place directly on a child component,
678
678
  * element, or plain text.
679
679
  */
680
- declare function EditableInput(props: Props$i): react_jsx_runtime.JSX.Element;
680
+ declare function EditableInput(props: Props$j): react_jsx_runtime.JSX.Element;
681
681
 
682
- type Props$h = PermafrostComponent & {
682
+ type Props$i = PermafrostComponent & {
683
683
  autoFocus?: boolean;
684
684
  decrement?(): void;
685
685
  disabled?: boolean;
@@ -699,9 +699,9 @@ type Props$h = PermafrostComponent & {
699
699
  * Basic numeric input field. A label is required, but may be visually hidden
700
700
  * using the `hiddenLabel` property.
701
701
  */
702
- declare function NumberInput(props: Props$h): React__default.ReactElement;
702
+ declare function NumberInput(props: Props$i): React__default.ReactElement;
703
703
 
704
- type Props$g = PermafrostComponent & {
704
+ type Props$h = PermafrostComponent & {
705
705
  border?: boolean;
706
706
  showClearInputIcon?: boolean;
707
707
  showSearchIcon?: boolean;
@@ -715,13 +715,13 @@ type Props$g = PermafrostComponent & {
715
715
  value?: string;
716
716
  };
717
717
  declare const SearchInput: {
718
- (props: Props$g): react_jsx_runtime.JSX.Element;
718
+ (props: Props$h): react_jsx_runtime.JSX.Element;
719
719
  defaultProps: {
720
720
  className: string;
721
721
  };
722
722
  };
723
723
 
724
- type Props$f = PermafrostComponent & {
724
+ type Props$g = PermafrostComponent & {
725
725
  autoComplete?: 'email' | 'current-password' | 'new-password' | string;
726
726
  autoFocus?: boolean;
727
727
  defaultValue?: string;
@@ -742,9 +742,9 @@ type Props$f = PermafrostComponent & {
742
742
  value?: string;
743
743
  readOnly?: boolean;
744
744
  };
745
- declare function TextInput(props: Props$f): React__default.ReactElement;
745
+ declare function TextInput(props: Props$g): React__default.ReactElement;
746
746
 
747
- type Props$e = {
747
+ type Props$f = {
748
748
  ['aria-label']: string;
749
749
  children?: React__default.ReactNode;
750
750
  hideFocusRing: boolean;
@@ -760,7 +760,7 @@ type Props$e = {
760
760
  * A group label must be included: either pass a string or markup into the
761
761
  * `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
762
762
  */
763
- declare function RadioGroup$1({ children, ...props }: Props$e): react_jsx_runtime.JSX.Element;
763
+ declare function RadioGroup$1({ children, ...props }: Props$f): react_jsx_runtime.JSX.Element;
764
764
  /**
765
765
  * A single radio button and its label.
766
766
  */
@@ -789,7 +789,7 @@ declare function Radio(props: AriaRadioProps & {
789
789
  isVisuallySelected?: (selectedValue: string) => void;
790
790
  }): react_jsx_runtime.JSX.Element;
791
791
 
792
- type Props$d = PermafrostComponent & {
792
+ type Props$e = PermafrostComponent & {
793
793
  ariaLabel?: string;
794
794
  disableBeforeDate?: Date;
795
795
  disableAfterDate?: Date;
@@ -801,9 +801,9 @@ type Props$d = PermafrostComponent & {
801
801
  selected?: Date | undefined;
802
802
  value: Date | undefined;
803
803
  };
804
- declare const DatePicker: (props: Props$d) => react_jsx_runtime.JSX.Element;
804
+ declare const DatePicker: (props: Props$e) => react_jsx_runtime.JSX.Element;
805
805
 
806
- type Props$c = PermafrostComponent & {
806
+ type Props$d = PermafrostComponent & {
807
807
  ariaLabel?: string;
808
808
  disableBeforeDate?: Date;
809
809
  disableAfterDate?: Date;
@@ -820,9 +820,9 @@ type Props$c = PermafrostComponent & {
820
820
  isOpen?: boolean;
821
821
  clearOnClose?: boolean;
822
822
  };
823
- declare const NoInputDatePicker: (props: Props$c) => react_jsx_runtime.JSX.Element;
823
+ declare const NoInputDatePicker: (props: Props$d) => react_jsx_runtime.JSX.Element;
824
824
 
825
- type Props$b = PermafrostComponent & {
825
+ type Props$c = PermafrostComponent & {
826
826
  ariaLabel?: string;
827
827
  size?: string;
828
828
  style?: {
@@ -830,24 +830,24 @@ type Props$b = PermafrostComponent & {
830
830
  };
831
831
  fill?: string;
832
832
  };
833
- declare function CircleSpinner(props: Props$b): React__default.ReactElement;
833
+ declare function CircleSpinner(props: Props$c): React__default.ReactElement;
834
834
 
835
- type Props$a = PermafrostComponent & {
835
+ type Props$b = PermafrostComponent & {
836
836
  width?: string;
837
837
  };
838
- declare function BarSpinner(props: Props$a): React__default.ReactElement;
838
+ declare function BarSpinner(props: Props$b): React__default.ReactElement;
839
839
 
840
- type Props$9 = PermafrostComponent & {
840
+ type Props$a = PermafrostComponent & {
841
841
  color?: string;
842
842
  overallSize?: string | number;
843
843
  rippleSize?: string | number;
844
844
  showRandomMessage?: boolean;
845
845
  };
846
- declare function CirclePulse(props: Props$9): React__default.ReactElement;
846
+ declare function CirclePulse(props: Props$a): React__default.ReactElement;
847
847
 
848
848
  declare const RandomLoadingMessage: () => react_jsx_runtime.JSX.Element;
849
849
 
850
- type Props$8 = PermafrostComponent & {
850
+ type Props$9 = PermafrostComponent & {
851
851
  backgroundColor?: string;
852
852
  foregroundColor?: string;
853
853
  ringRadius?: number;
@@ -856,11 +856,11 @@ type Props$8 = PermafrostComponent & {
856
856
  value: number;
857
857
  valueFontSize?: number;
858
858
  };
859
- declare function PercentageRing(props: Props$8): react_jsx_runtime.JSX.Element;
859
+ declare function PercentageRing(props: Props$9): react_jsx_runtime.JSX.Element;
860
860
 
861
861
  declare const LoadingList: () => react_jsx_runtime.JSX.Element;
862
862
 
863
- type Props$7 = PermafrostComponent & {
863
+ type Props$8 = PermafrostComponent & {
864
864
  accordion?: boolean;
865
865
  accordionDefaultOpen?: boolean;
866
866
  emptyListMessage?: string;
@@ -897,9 +897,9 @@ type Props$7 = PermafrostComponent & {
897
897
  title: string;
898
898
  totalCount?: number;
899
899
  };
900
- declare const ListTable: (props: Props$7) => react_jsx_runtime.JSX.Element;
900
+ declare const ListTable: (props: Props$8) => react_jsx_runtime.JSX.Element;
901
901
 
902
- type Props$6 = PermafrostComponent & {
902
+ type Props$7 = PermafrostComponent & {
903
903
  currentPage: number;
904
904
  limit: number;
905
905
  pageInfo: {
@@ -914,9 +914,9 @@ type Props$6 = PermafrostComponent & {
914
914
  getNextPage(cursor: number): void;
915
915
  getPreviousPage(cursor: number): void;
916
916
  };
917
- declare function Pagination(props: Props$6): react_jsx_runtime.JSX.Element;
917
+ declare function Pagination(props: Props$7): react_jsx_runtime.JSX.Element;
918
918
 
919
- type Props$5 = PermafrostComponent & {
919
+ type Props$6 = PermafrostComponent & {
920
920
  actionLink?: string;
921
921
  actionText?: string;
922
922
  buttonAction?(): void;
@@ -926,7 +926,7 @@ type Props$5 = PermafrostComponent & {
926
926
  'data-cy': string;
927
927
  };
928
928
  };
929
- declare function Shrug(props: Props$5): React__default.ReactElement;
929
+ declare function Shrug(props: Props$6): React__default.ReactElement;
930
930
 
931
931
  type ModalBaseProps = PermafrostComponent & {
932
932
  children: React__default.ReactNode | React__default.ReactNode[];
@@ -954,7 +954,7 @@ type ModalBaseProps = PermafrostComponent & {
954
954
  */
955
955
  declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
956
956
 
957
- type Props$4 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
957
+ type Props$5 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
958
958
  describedBy?: string;
959
959
  clickOutsideHandler(e?: React__default.SyntheticEvent): void;
960
960
  confirmText?: string;
@@ -966,9 +966,9 @@ type Props$4 = PermafrostComponent & Pick<ModalBaseProps, 'open'> & {
966
966
  title?: string | React__default.ReactNode;
967
967
  width?: number;
968
968
  };
969
- declare function ConfirmModal(props: Props$4): react_jsx_runtime.JSX.Element;
969
+ declare function ConfirmModal(props: Props$5): react_jsx_runtime.JSX.Element;
970
970
 
971
- type Props$3 = {
971
+ type Props$4 = {
972
972
  children: React__default.ReactNode | React__default.ReactNode[];
973
973
  className?: string;
974
974
  isLoading?: boolean;
@@ -980,7 +980,7 @@ type Props$3 = {
980
980
  *
981
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
982
982
  */
983
- declare function LoadingAwareContainer(props: Props$3): React__default.ReactElement;
983
+ declare function LoadingAwareContainer(props: Props$4): React__default.ReactElement;
984
984
 
985
985
  type CancelText$1 = {
986
986
  confirmText: string;
@@ -988,7 +988,7 @@ type CancelText$1 = {
988
988
  rejectText: string;
989
989
  title: string;
990
990
  };
991
- type Props$2 = PermafrostComponent & {
991
+ type Props$3 = PermafrostComponent & {
992
992
  children: React__default.ReactNode;
993
993
  /**
994
994
  * text for the cancel confirmation modal
@@ -1026,7 +1026,7 @@ type Props$2 = PermafrostComponent & {
1026
1026
  'data-cy': string;
1027
1027
  };
1028
1028
  };
1029
- declare function Wizard(props: Props$2): react_jsx_runtime.JSX.Element;
1029
+ declare function Wizard(props: Props$3): react_jsx_runtime.JSX.Element;
1030
1030
 
1031
1031
  declare const StyledWizard: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
1032
1032
  declare const WizardCard: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1038,7 +1038,7 @@ type CancelText = {
1038
1038
  rejectText: string;
1039
1039
  title: string;
1040
1040
  };
1041
- type Props$1 = PermafrostComponent & {
1041
+ type Props$2 = PermafrostComponent & {
1042
1042
  children: React__default.ReactNode;
1043
1043
  /**
1044
1044
  * text for the cancel confirmation modal
@@ -1086,7 +1086,7 @@ type Props$1 = PermafrostComponent & {
1086
1086
  color?: string;
1087
1087
  buttonColor?: string;
1088
1088
  };
1089
- declare function WizardWithSidebar(props: Props$1): react_jsx_runtime.JSX.Element;
1089
+ declare function WizardWithSidebar(props: Props$2): react_jsx_runtime.JSX.Element;
1090
1090
 
1091
1091
  type ListItem = {
1092
1092
  id: string;
@@ -1095,7 +1095,7 @@ type ListItem = {
1095
1095
  path: string;
1096
1096
  };
1097
1097
 
1098
- type Props = PermafrostComponent & {
1098
+ type Props$1 = PermafrostComponent & {
1099
1099
  style?: React__default.CSSProperties;
1100
1100
  logoText?: string;
1101
1101
  logoIcon?: IconName;
@@ -1105,7 +1105,7 @@ type Props = PermafrostComponent & {
1105
1105
  $expandedWidth?: string;
1106
1106
  $collapsedWidth?: string;
1107
1107
  };
1108
- declare const Drawer: (props: Props) => react_jsx_runtime.JSX.Element;
1108
+ declare const Drawer: (props: Props$1) => react_jsx_runtime.JSX.Element;
1109
1109
 
1110
1110
  interface TextTruncateProps {
1111
1111
  string: string;
@@ -1114,4 +1114,101 @@ interface TextTruncateProps {
1114
1114
  }
1115
1115
  declare function TextTruncate({ string, maxChars, children }: TextTruncateProps): react_jsx_runtime.JSX.Element;
1116
1116
 
1117
- 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, Wizard, WizardCard, WizardSection, WizardWithSidebar, faIcons, indicons };
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
+ declare const mix: (color_1: string, color_2: string, weight: number) => string;
1129
+ declare const shade: (color: string, percentage: number) => string;
1130
+ declare const tint: (color: string, percentage: number) => string;
1131
+ /**
1132
+ * Converts hex color values to rgb or rgba values if a opacity is supplied
1133
+ * @param hex
1134
+ * @returns {*}
1135
+ */
1136
+ declare const hexToRgb: (hex: string, opacity?: number) => string | undefined;
1137
+ /**
1138
+ * Takes a 3- or 6-character hex color value, and returns an object containing
1139
+ * its equivalent HSL values.
1140
+ *
1141
+ * @see {@link https://css-tricks.com/converting-color-spaces-in-javascript/}
1142
+ * @see {@link https://gist.github.com/mjackson/5311256}
1143
+ */
1144
+ declare function hexToHsl(hexColor: string): {
1145
+ hue: number;
1146
+ saturation: number;
1147
+ lightness: number;
1148
+ };
1149
+
1150
+ declare const color_d_hexToHsl: typeof hexToHsl;
1151
+ declare const color_d_hexToRgb: typeof hexToRgb;
1152
+ declare const color_d_mix: typeof mix;
1153
+ declare const color_d_shade: typeof shade;
1154
+ declare const color_d_tint: typeof tint;
1155
+ declare namespace color_d {
1156
+ export { color_d_hexToHsl as hexToHsl, color_d_hexToRgb as hexToRgb, color_d_mix as mix, color_d_shade as shade, color_d_tint as tint };
1157
+ }
1158
+
1159
+ declare const camelCaseToUpperUnderscore: (string: string) => string;
1160
+ declare const camelCaseToSpaceUpper: (string: string) => string;
1161
+ declare const underscoreToCapitalize: (string: string) => string;
1162
+ declare const snakeCaseToCamelCase: (string: string) => string;
1163
+ declare function capitalize(string: string): string;
1164
+ declare function capitalizeFirstOnly(string: string): string;
1165
+ /**
1166
+ * Generates a random string of English alphabet characters. Defaults to a length of 8.
1167
+ */
1168
+ declare function createRandomString(length?: number): string;
1169
+ declare const maxLengthWithEllipse: (string: string, maxLength: number) => string;
1170
+ declare const maxLengthWithMiddleEllipsis: (string: string, maxLength: number) => string;
1171
+
1172
+ declare const string_d_camelCaseToSpaceUpper: typeof camelCaseToSpaceUpper;
1173
+ declare const string_d_camelCaseToUpperUnderscore: typeof camelCaseToUpperUnderscore;
1174
+ declare const string_d_capitalize: typeof capitalize;
1175
+ declare const string_d_capitalizeFirstOnly: typeof capitalizeFirstOnly;
1176
+ declare const string_d_createRandomString: typeof createRandomString;
1177
+ declare const string_d_maxLengthWithEllipse: typeof maxLengthWithEllipse;
1178
+ declare const string_d_maxLengthWithMiddleEllipsis: typeof maxLengthWithMiddleEllipsis;
1179
+ declare const string_d_snakeCaseToCamelCase: typeof snakeCaseToCamelCase;
1180
+ declare const string_d_underscoreToCapitalize: typeof underscoreToCapitalize;
1181
+ declare namespace string_d {
1182
+ export { string_d_camelCaseToSpaceUpper as camelCaseToSpaceUpper, string_d_camelCaseToUpperUnderscore as camelCaseToUpperUnderscore, string_d_capitalize as capitalize, string_d_capitalizeFirstOnly as capitalizeFirstOnly, string_d_createRandomString as createRandomString, string_d_maxLengthWithEllipse as maxLengthWithEllipse, string_d_maxLengthWithMiddleEllipsis as maxLengthWithMiddleEllipsis, string_d_snakeCaseToCamelCase as snakeCaseToCamelCase, string_d_underscoreToCapitalize as underscoreToCapitalize };
1183
+ }
1184
+
1185
+ /**
1186
+ * Takes a number and formats it nicely.
1187
+ *
1188
+ * @example numberWithCommas(12345)
1189
+ * // returns 12,345
1190
+ */
1191
+ declare function numberWithCommas(value: number): string;
1192
+ /**
1193
+ * Takes a number and returns it, rounded up to the maximum decimal places specified.
1194
+ *
1195
+ * @example maxDecimalPlaces(0.1694915254237288, 2)
1196
+ * // returns 0.17
1197
+ *
1198
+ * @example maxDecimalPlaces(0.1694915254237288, 3)
1199
+ * // returns 0.169
1200
+ *
1201
+ * @example maxDecimalPlaces(12.902, 2)
1202
+ * // returns 12.9
1203
+ */
1204
+ declare function maxDecimalPlaces(value: number, decimalPlaces: number): number;
1205
+ declare function formatConfidence(confidence: number): number;
1206
+
1207
+ declare const number_d_formatConfidence: typeof formatConfidence;
1208
+ declare const number_d_maxDecimalPlaces: typeof maxDecimalPlaces;
1209
+ declare const number_d_numberWithCommas: typeof numberWithCommas;
1210
+ declare namespace number_d {
1211
+ export { number_d_formatConfidence as formatConfidence, number_d_maxDecimalPlaces as maxDecimalPlaces, number_d_numberWithCommas as numberWithCommas };
1212
+ }
1213
+
1214
+ 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, color_d as colorUtils, faIcons, indicons, number_d as numberUtils, string_d as stringUtils };