@openfin/ui-library 0.31.3-alpha.20251106164713 → 0.31.3

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.
Files changed (178) hide show
  1. package/README.md +2 -2
  2. package/dist/assets/fonts/Inter-Italic.woff2 +0 -0
  3. package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
  4. package/dist/assets/fonts/Inter-SemiBold.woff2 +0 -0
  5. package/dist/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  6. package/dist/assets/fonts/index.d.ts +2 -0
  7. package/dist/assets/index.d.ts +1 -0
  8. package/dist/components/controls/Button/button.d.ts +35 -0
  9. package/dist/components/controls/Button/button.variants.d.ts +64 -0
  10. package/dist/components/controls/Button/index.d.ts +2 -0
  11. package/dist/components/controls/ClickableNavigation/clickableNavigation.d.ts +11 -0
  12. package/dist/components/controls/ClickableNavigation/index.d.ts +1 -0
  13. package/dist/components/controls/CollapsibleCard/cardContainer.d.ts +6 -0
  14. package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +19 -0
  15. package/dist/components/controls/CollapsibleCard/index.d.ts +1 -0
  16. package/dist/components/controls/ExpandableButton/expandDirection.d.ts +4 -0
  17. package/dist/components/controls/ExpandableButton/expandableButton.d.ts +16 -0
  18. package/dist/components/controls/ExpandableButton/expandablePanel.d.ts +14 -0
  19. package/dist/components/controls/ExpandableButton/expandablePanel.setup.d.ts +2 -0
  20. package/dist/components/controls/ExpandableButton/index.d.ts +2 -0
  21. package/dist/components/controls/Menus/ContentMenu/ContentMenu.d.ts +52 -0
  22. package/dist/components/controls/Menus/ContentMenu/ContentMenuColumn/ContentMenuColumn.d.ts +17 -0
  23. package/dist/components/controls/Menus/ContentMenu/ContentMenuContext.d.ts +5 -0
  24. package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/ContentMenuItem.d.ts +56 -0
  25. package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/IconWithFallback.d.ts +7 -0
  26. package/dist/components/controls/Menus/ContentMenu/ContentMenuItem/useImageLoader.d.ts +8 -0
  27. package/dist/components/controls/Menus/ContentMenu/Tooltip/Tooltip.d.ts +7 -0
  28. package/dist/components/controls/Menus/ContentMenu/index.d.ts +1 -0
  29. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenu.d.ts +96 -0
  30. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/ColorLinkingContextMenuWidget.d.ts +10 -0
  31. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/CustomContextMenuItem.d.ts +11 -0
  32. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/NormalCustomContextMenuItem.d.ts +6 -0
  33. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/RootMenuHeader.d.ts +5 -0
  34. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SeparatorCustomContextMenuItem.d.ts +2 -0
  35. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/SubmenuHeaderCustomContextMenuItem.d.ts +8 -0
  36. package/dist/components/controls/Menus/CustomContextMenu/CustomContextMenuItems/WidgetCustomContextMenuItem.d.ts +5 -0
  37. package/dist/components/controls/Menus/CustomContextMenu/index.d.ts +1 -0
  38. package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.d.ts +17 -0
  39. package/dist/components/controls/Menus/CustomContextMenu/useContextMenuKeyboardNavigation.test.d.ts +1 -0
  40. package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.d.ts +25 -0
  41. package/dist/components/controls/Menus/CustomContextMenu/useContextMenuNavigation.test.d.ts +1 -0
  42. package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.d.ts +10 -0
  43. package/dist/components/controls/Menus/CustomContextMenu/useResizeContextMenu.test.d.ts +1 -0
  44. package/dist/components/controls/Menus/CustomContextMenu/utils.d.ts +3 -0
  45. package/dist/components/controls/Menus/common.d.ts +80 -0
  46. package/dist/components/controls/Toggle/index.d.ts +1 -0
  47. package/dist/components/controls/Toggle/toggle.d.ts +10 -0
  48. package/dist/components/elements/Badge/badge.d.ts +18 -0
  49. package/dist/components/elements/Badge/index.d.ts +1 -0
  50. package/dist/components/elements/Calendar/calendar.d.ts +8 -0
  51. package/dist/components/elements/Calendar/index.d.ts +1 -0
  52. package/dist/components/elements/DropdownMenu/dropdownButton.d.ts +15 -0
  53. package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +16 -0
  54. package/dist/components/elements/DropdownMenu/index.d.ts +3 -0
  55. package/dist/components/elements/DropdownMenu/menu.d.ts +67 -0
  56. package/dist/components/elements/DropdownMenu/optionTitle.d.ts +15 -0
  57. package/dist/components/elements/Icon/icon.d.ts +19 -0
  58. package/dist/components/elements/Icon/icon.variants.d.ts +28 -0
  59. package/dist/components/elements/Icon/index.d.ts +1 -0
  60. package/dist/components/elements/Icon/openfin/BellFilledIcon.d.ts +2 -0
  61. package/dist/components/elements/Icon/openfin/BellIcon.d.ts +6 -0
  62. package/dist/components/elements/Icon/openfin/BlockedIcon.d.ts +2 -0
  63. package/dist/components/elements/Icon/openfin/BookmarkFilled.d.ts +2 -0
  64. package/dist/components/elements/Icon/openfin/BookmarkOutlined.d.ts +2 -0
  65. package/dist/components/elements/Icon/openfin/BrokenLinkIcon.d.ts +2 -0
  66. package/dist/components/elements/Icon/openfin/ChevronDownIcon.d.ts +2 -0
  67. package/dist/components/elements/Icon/openfin/ChevronLeftIcon.d.ts +2 -0
  68. package/dist/components/elements/Icon/openfin/ChevronRightIcon.d.ts +2 -0
  69. package/dist/components/elements/Icon/openfin/ChevronUpIcon.d.ts +2 -0
  70. package/dist/components/elements/Icon/openfin/CollectionIcon.d.ts +2 -0
  71. package/dist/components/elements/Icon/openfin/ContentAppIcon.d.ts +2 -0
  72. package/dist/components/elements/Icon/openfin/EnterpriseGlobeIcon.d.ts +2 -0
  73. package/dist/components/elements/Icon/openfin/ExclamationCircledFilledIcon.d.ts +4 -0
  74. package/dist/components/elements/Icon/openfin/FallbackGlobeIcon.d.ts +2 -0
  75. package/dist/components/elements/Icon/openfin/FilledCircleIcon.d.ts +2 -0
  76. package/dist/components/elements/Icon/openfin/FilterIcon.d.ts +2 -0
  77. package/dist/components/elements/Icon/openfin/FloppyDiskIcon.d.ts +5 -0
  78. package/dist/components/elements/Icon/openfin/FragmentsIcon.d.ts +2 -0
  79. package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.d.ts +2 -0
  80. package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.d.ts +2 -0
  81. package/dist/components/elements/Icon/openfin/LockedClosedFilledIcon.d.ts +5 -0
  82. package/dist/components/elements/Icon/openfin/MinimizeIcon.d.ts +5 -0
  83. package/dist/components/elements/Icon/openfin/OpenFinIcon.d.ts +5 -0
  84. package/dist/components/elements/Icon/openfin/PageIcon.d.ts +5 -0
  85. package/dist/components/elements/Icon/openfin/RedDotIcon.d.ts +2 -0
  86. package/dist/components/elements/Icon/openfin/StackIcon.d.ts +2 -0
  87. package/dist/components/elements/Icon/openfin/StorefrontIcon.d.ts +2 -0
  88. package/dist/components/elements/Icon/openfin/SupertabIcon.d.ts +5 -0
  89. package/dist/components/elements/Icon/openfin/WorkspaceIcon.d.ts +5 -0
  90. package/dist/components/elements/Icon/openfin/index.d.ts +30 -0
  91. package/dist/components/elements/IconWithBadge/iconWithBadge.d.ts +5 -0
  92. package/dist/components/elements/IconWithBadge/index.d.ts +1 -0
  93. package/dist/components/elements/Label/label.d.ts +11 -0
  94. package/dist/components/elements/Loader/index.d.ts +2 -0
  95. package/dist/components/elements/Loader/loader.d.ts +4 -0
  96. package/dist/components/elements/Loader/openfinLoader.d.ts +4 -0
  97. package/dist/components/helper/ValidationError.d.ts +6 -0
  98. package/dist/components/input/BaseInput/baseInput.d.ts +29 -0
  99. package/dist/components/input/BaseInput/index.d.ts +1 -0
  100. package/dist/components/input/Checkbox/checkbox.d.ts +12 -0
  101. package/dist/components/input/Checkbox/checkbox.variants.d.ts +21 -0
  102. package/dist/components/input/Checkbox/index.d.ts +1 -0
  103. package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +15 -0
  104. package/dist/components/input/CheckboxGroup/index.d.ts +1 -0
  105. package/dist/components/input/DateInput/dateInput.d.ts +14 -0
  106. package/dist/components/input/DateInput/index.d.ts +1 -0
  107. package/dist/components/input/NumberInput/index.d.ts +1 -0
  108. package/dist/components/input/NumberInput/numberInput.d.ts +27 -0
  109. package/dist/components/input/RadioGroup/index.d.ts +1 -0
  110. package/dist/components/input/RadioGroup/radioGroup.d.ts +15 -0
  111. package/dist/components/input/RadioInput/index.d.ts +1 -0
  112. package/dist/components/input/RadioInput/radioInput.d.ts +14 -0
  113. package/dist/components/input/RawInput/index.d.ts +1 -0
  114. package/dist/components/input/RawInput/rawInput.d.ts +4 -0
  115. package/dist/components/input/TextArea/index.d.ts +1 -0
  116. package/dist/components/input/TextArea/textArea.d.ts +12 -0
  117. package/dist/components/input/TextInput/index.d.ts +1 -0
  118. package/dist/components/input/TextInput/textInput.d.ts +14 -0
  119. package/dist/components/layout/Box/box.d.ts +41 -0
  120. package/dist/components/layout/Box/index.d.ts +1 -0
  121. package/dist/components/layout/Box/types.d.ts +7 -0
  122. package/dist/components/layout/DefinitionList/definitionList.d.ts +10 -0
  123. package/dist/components/layout/DefinitionList/index.d.ts +1 -0
  124. package/dist/components/layout/HamburgerNavigation/hamburgerNavigation.d.ts +13 -0
  125. package/dist/components/layout/HamburgerNavigation/index.d.ts +2 -0
  126. package/dist/components/layout/HamburgerNavigation/sidebarMenu.d.ts +12 -0
  127. package/dist/components/layout/TabList/index.d.ts +1 -0
  128. package/dist/components/layout/TabList/tab.d.ts +8 -0
  129. package/dist/components/layout/TabList/tabList.d.ts +13 -0
  130. package/dist/components/system/GlobalStyles/globalStyles.d.ts +5 -0
  131. package/dist/components/system/GlobalStyles/globalStyles.spec.d.ts +1 -0
  132. package/dist/components/system/GlobalStyles/index.d.ts +1 -0
  133. package/dist/components/system/HOC/index.d.ts +4 -0
  134. package/dist/components/system/ThemeProvider/index.d.ts +2 -0
  135. package/dist/components/system/ThemeProvider/lib/colors.d.ts +4 -0
  136. package/dist/components/system/ThemeProvider/lib/constants.d.ts +214 -0
  137. package/dist/components/system/ThemeProvider/lib/createFontFaceCss.d.ts +11 -0
  138. package/dist/components/system/ThemeProvider/lib/createTheme.d.ts +9 -0
  139. package/dist/components/system/ThemeProvider/lib/helpers.d.ts +35 -0
  140. package/dist/components/system/ThemeProvider/lib/iconSet.d.ts +355 -0
  141. package/dist/components/system/ThemeProvider/lib/index.d.ts +10 -0
  142. package/dist/components/system/ThemeProvider/lib/interface.d.ts +23 -0
  143. package/dist/components/system/ThemeProvider/lib/mixins.d.ts +16 -0
  144. package/dist/components/system/ThemeProvider/lib/palette.d.ts +42 -0
  145. package/dist/components/system/ThemeProvider/lib/types.d.ts +42 -0
  146. package/dist/components/system/ThemeProvider/theme/index.d.ts +1 -0
  147. package/dist/components/system/ThemeProvider/theme/openfin.d.ts +9 -0
  148. package/dist/components/system/ThemeProvider/themeProvider.d.ts +20 -0
  149. package/dist/components/system/ThemeProvider/themeProvider.spec.d.ts +1 -0
  150. package/dist/components/system/index.d.ts +3 -0
  151. package/dist/components/templates/CascadingDropdownMenu/cascadingDropdownMenu.d.ts +1 -0
  152. package/dist/components/templates/ContactCard/ContactStatusIcon.d.ts +7 -0
  153. package/dist/components/templates/ContactCard/PresenceIcons.d.ts +4 -0
  154. package/dist/components/templates/ContactCard/contactCard.d.ts +30 -0
  155. package/dist/components/templates/ContactCard/index.d.ts +1 -0
  156. package/dist/components/templates/utils/name.d.ts +1 -0
  157. package/dist/components/typography/Heading/heading.d.ts +1668 -0
  158. package/dist/components/typography/Heading/index.d.ts +1 -0
  159. package/dist/components/typography/Text/index.d.ts +1 -0
  160. package/dist/components/typography/Text/text.d.ts +21 -0
  161. package/dist/hooks/useColorScheme.d.ts +19 -0
  162. package/dist/hooks/useDropdownKeyboardNavigation.d.ts +16 -0
  163. package/dist/hooks/useMediaQuery.d.ts +12 -0
  164. package/dist/hooks/usePrevious.d.ts +1 -0
  165. package/dist/hooks/useTheme.d.ts +8 -0
  166. package/dist/index.d.ts +36 -0
  167. package/dist/index.js +1565 -0
  168. package/dist/index.js.LICENSE.txt +19 -0
  169. package/dist/lib/color-generator.d.ts +7 -0
  170. package/dist/lib/color-generator.spec.d.ts +1 -0
  171. package/dist/lib/math.d.ts +13 -0
  172. package/dist/lib/whenFin.d.ts +6 -0
  173. package/dist/lib/whenFin.spec.d.ts +1 -0
  174. package/dist/storybookHelpers.d.ts +78 -0
  175. package/dist/theme.d.ts +3 -0
  176. package/dist/theme.js +1 -0
  177. package/dist/types/index.d.ts +3 -0
  178. package/package.json +46 -12
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Define all Checkbox Variants here in one place.
3
+ * Variants should match the variants in Figma
4
+ */
5
+ export declare const Variant: {
6
+ readonly variant: "variant";
7
+ };
8
+ /**
9
+ * Checkbox Variant -- Describes the "role" of a checkbox
10
+ */
11
+ export declare const CheckboxVariant: {
12
+ readonly default: "default";
13
+ readonly primary: "primary";
14
+ };
15
+ export type CheckboxVariantType = keyof typeof CheckboxVariant;
16
+ export declare const variants: {
17
+ readonly variant: {
18
+ readonly default: import("styled-components").FlattenSimpleInterpolation;
19
+ readonly primary: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
20
+ };
21
+ };
@@ -0,0 +1 @@
1
+ export * from './checkbox';
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { UnitPxType } from '../../system/ThemeProvider';
3
+ import { ReactNode } from 'react';
4
+ export type CheckboxGroupProps = {
5
+ gap?: UnitPxType;
6
+ message?: string;
7
+ validationErrorMessage?: string;
8
+ helperText?: string;
9
+ label?: string;
10
+ children?: ReactNode;
11
+ disabled?: boolean;
12
+ onChange?: (values: Array<string>) => void;
13
+ values?: string[];
14
+ };
15
+ export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
@@ -0,0 +1 @@
1
+ export * from './checkboxGroup';
@@ -0,0 +1,14 @@
1
+ import { ChangeEventHandler, MouseEventHandler } from 'react';
2
+ import { BaseInputProps } from '../BaseInput';
3
+ import { StatusType } from '../../system/HOC';
4
+ type DateTypeFormat = 'date' | 'time' | 'datetime-local';
5
+ interface DateInputProps extends Omit<BaseInputProps, 'value' | 'type' | 'status'> {
6
+ onChange?: ChangeEventHandler<HTMLInputElement>;
7
+ onExpand?: MouseEventHandler<HTMLDivElement>;
8
+ expanded?: boolean;
9
+ value?: string;
10
+ type?: DateTypeFormat;
11
+ status?: StatusType;
12
+ }
13
+ export declare const DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
14
+ export {};
@@ -0,0 +1 @@
1
+ export * from './dateInput';
@@ -0,0 +1 @@
1
+ export * from './numberInput';
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { BaseInputProps } from '../BaseInput';
3
+ import { IconType } from '../../system/ThemeProvider';
4
+ import { StatusType } from '../../system/HOC';
5
+ export declare enum Direction {
6
+ Up = 1,
7
+ Down = -1
8
+ }
9
+ interface NumberInputProps extends Omit<BaseInputProps, 'value' | 'status'> {
10
+ min?: number;
11
+ max?: number;
12
+ /**
13
+ * @default 1
14
+ */
15
+ step?: number;
16
+ value?: number;
17
+ status?: StatusType;
18
+ /**
19
+ * @default undefined
20
+ * Prepend an icon to the beginning of the input. Takes precedence over `prependString`.
21
+ * */
22
+ prependIcon?: IconType;
23
+ prependString?: string;
24
+ onTakeStep?: (direction: Direction, step: number) => void;
25
+ }
26
+ export declare const NumberInput: import("react").ForwardRefExoticComponent<NumberInputProps & import("react").RefAttributes<HTMLInputElement>>;
27
+ export {};
@@ -0,0 +1 @@
1
+ export * from './radioGroup';
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { UnitPxType } from '../../system/ThemeProvider';
3
+ import { RadioLabelSideType } from '../RadioInput/radioInput';
4
+ type RadioDirectionType = 'row' | 'column';
5
+ export type RadioGroupProps = React.InputHTMLAttributes<HTMLInputElement> & {
6
+ label?: string;
7
+ direction?: RadioDirectionType;
8
+ gap?: UnitPxType;
9
+ labelSide?: RadioLabelSideType;
10
+ message?: string;
11
+ validationErrorMessage?: string;
12
+ helperText?: string;
13
+ };
14
+ export declare const RadioGroup: React.FC<RadioGroupProps>;
15
+ export {};
@@ -0,0 +1 @@
1
+ export * from './radioInput';
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { LabelSideType } from '../../controls/Toggle';
3
+ import { IconType } from '../../system/ThemeProvider/lib/types';
4
+ export type RadioLabelSideType = LabelSideType | 'top' | 'bottom';
5
+ export type RadioProps = React.InputHTMLAttributes<HTMLInputElement> & {
6
+ label?: string;
7
+ labelSide?: RadioLabelSideType;
8
+ icon?: IconType;
9
+ };
10
+ export declare const RadioInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
11
+ label?: string | undefined;
12
+ labelSide?: RadioLabelSideType | undefined;
13
+ icon?: "ContentAppIcon" | "OpenFinIcon" | "BellIcon" | "WorkspaceIcon" | "LockedClosedFilledIcon" | "MinimizeIcon" | "LightBulbFilledIcon" | "LightBulbOutlinedIcon" | "FilterIcon" | "BrokenLinkIcon" | "FloppyDiskIcon" | "StackIcon" | "BellFilledIcon" | "StorefrontIcon" | "FragmentsIcon" | "ChevronRightIcon" | "ChevronLeftIcon" | "ChevronUpIcon" | "ChevronDownIcon" | "ExclamationCircledFilledIcon" | "FilledCircleIcon" | "PageIcon" | "RedDotIcon" | "BookmarkFilled" | "BookmarkOutlined" | "FallbackGlobeIcon" | "BlockedIcon" | "EnterpriseGlobeIcon" | "SupertabIcon" | "CollectionIcon" | "AccessibilityIcon" | "ActivityLogIcon" | "AlignBaselineIcon" | "AlignBottomIcon" | "AlignCenterHorizontallyIcon" | "AlignCenterVerticallyIcon" | "AlignLeftIcon" | "AlignRightIcon" | "AlignTopIcon" | "AllSidesIcon" | "AngleIcon" | "ArchiveIcon" | "ArrowBottomLeftIcon" | "ArrowBottomRightIcon" | "ArrowDownIcon" | "ArrowLeftIcon" | "ArrowRightIcon" | "ArrowTopLeftIcon" | "ArrowTopRightIcon" | "ArrowUpIcon" | "AspectRatioIcon" | "AvatarIcon" | "BackpackIcon" | "BadgeIcon" | "BarChartIcon" | "BlendingModeIcon" | "BookmarkIcon" | "BookmarkFilledIcon" | "BorderAllIcon" | "BorderBottomIcon" | "BorderDashedIcon" | "BorderDottedIcon" | "BorderLeftIcon" | "BorderNoneIcon" | "BorderRightIcon" | "BorderSolidIcon" | "BorderSplitIcon" | "BorderStyleIcon" | "BorderTopIcon" | "BorderWidthIcon" | "BoxIcon" | "BoxModelIcon" | "ButtonIcon" | "CalendarIcon" | "CameraIcon" | "CardStackIcon" | "CardStackMinusIcon" | "CardStackPlusIcon" | "CaretDownIcon" | "CaretLeftIcon" | "CaretRightIcon" | "CaretSortIcon" | "CaretUpIcon" | "ChatBubbleIcon" | "CheckIcon" | "CheckCircledIcon" | "CheckboxIcon" | "CircleIcon" | "CircleBackslashIcon" | "ClipboardIcon" | "ClipboardCopyIcon" | "ClockIcon" | "CodeIcon" | "CodeSandboxLogoIcon" | "ColorWheelIcon" | "ColumnSpacingIcon" | "ColumnsIcon" | "CommitIcon" | "Component1Icon" | "Component2Icon" | "ComponentBooleanIcon" | "ComponentInstanceIcon" | "ComponentNoneIcon" | "ComponentPlaceholderIcon" | "ContainerIcon" | "CookieIcon" | "CopyIcon" | "CornerBottomLeftIcon" | "CornerBottomRightIcon" | "CornerTopLeftIcon" | "CornerTopRightIcon" | "CornersIcon" | "CountdownTimerIcon" | "CounterClockwiseClockIcon" | "CropIcon" | "Cross1Icon" | "Cross2Icon" | "CrossCircledIcon" | "Crosshair1Icon" | "Crosshair2Icon" | "CrumpledPaperIcon" | "CubeIcon" | "CursorArrowIcon" | "CursorTextIcon" | "DashIcon" | "DashboardIcon" | "DesktopIcon" | "DimensionsIcon" | "DiscIcon" | "DiscordLogoIcon" | "DividerHorizontalIcon" | "DividerVerticalIcon" | "DotIcon" | "DotFilledIcon" | "DotsHorizontalIcon" | "DotsVerticalIcon" | "DoubleArrowDownIcon" | "DoubleArrowLeftIcon" | "DoubleArrowRightIcon" | "DoubleArrowUpIcon" | "DownloadIcon" | "DragHandleDots1Icon" | "DragHandleDots2Icon" | "DragHandleHorizontalIcon" | "DragHandleVerticalIcon" | "DrawingPinIcon" | "DrawingPinFilledIcon" | "DropdownMenuIcon" | "EnterIcon" | "EnterFullScreenIcon" | "EnvelopeClosedIcon" | "EnvelopeOpenIcon" | "EraserIcon" | "ExclamationTriangleIcon" | "ExitIcon" | "ExitFullScreenIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeNoneIcon" | "EyeOpenIcon" | "FaceIcon" | "FigmaLogoIcon" | "FileIcon" | "FileMinusIcon" | "FilePlusIcon" | "FileTextIcon" | "FontBoldIcon" | "FontFamilyIcon" | "FontItalicIcon" | "FontRomanIcon" | "FontSizeIcon" | "FontStyleIcon" | "FrameIcon" | "FramerLogoIcon" | "GearIcon" | "GitHubLogoIcon" | "GlobeIcon" | "GridIcon" | "GroupIcon" | "Half1Icon" | "Half2Icon" | "HamburgerMenuIcon" | "HandIcon" | "HeadingIcon" | "HeartIcon" | "HeartFilledIcon" | "HeightIcon" | "HobbyKnifeIcon" | "HomeIcon" | "IconJarLogoIcon" | "IdCardIcon" | "ImageIcon" | "InfoCircledIcon" | "InputIcon" | "InstagramLogoIcon" | "KeyboardIcon" | "LapTimerIcon" | "LaptopIcon" | "LayersIcon" | "LayoutIcon" | "LetterCaseCapitalizeIcon" | "LetterCaseLowercaseIcon" | "LetterCaseToggleIcon" | "LetterCaseUppercaseIcon" | "LetterSpacingIcon" | "LightningBoltIcon" | "LineHeightIcon" | "Link1Icon" | "Link2Icon" | "LinkBreak1Icon" | "LinkBreak2Icon" | "LinkNone1Icon" | "LinkNone2Icon" | "LinkedInLogoIcon" | "ListBulletIcon" | "LockClosedIcon" | "LockOpen1Icon" | "LockOpen2Icon" | "LoopIcon" | "MagicWandIcon" | "MagnifyingGlassIcon" | "MarginIcon" | "MaskOffIcon" | "MaskOnIcon" | "MinusIcon" | "MinusCircledIcon" | "MixIcon" | "MixerHorizontalIcon" | "MixerVerticalIcon" | "MobileIcon" | "ModulzLogoIcon" | "MoonIcon" | "MoveIcon" | "NotionLogoIcon" | "OpacityIcon" | "OpenInNewWindowIcon" | "OverlineIcon" | "PaddingIcon" | "PaperPlaneIcon" | "PauseIcon" | "Pencil1Icon" | "Pencil2Icon" | "PersonIcon" | "PieChartIcon" | "PilcrowIcon" | "PinBottomIcon" | "PinLeftIcon" | "PinRightIcon" | "PinTopIcon" | "PlayIcon" | "PlusIcon" | "PlusCircledIcon" | "QuestionMarkIcon" | "QuestionMarkCircledIcon" | "QuoteIcon" | "RadiobuttonIcon" | "ReaderIcon" | "ReloadIcon" | "ResetIcon" | "ResumeIcon" | "RocketIcon" | "RotateCounterClockwiseIcon" | "RowSpacingIcon" | "RowsIcon" | "RulerHorizontalIcon" | "RulerSquareIcon" | "ScissorsIcon" | "SectionIcon" | "SewingPinIcon" | "SewingPinFilledIcon" | "ShadowIcon" | "ShadowInnerIcon" | "ShadowNoneIcon" | "ShadowOuterIcon" | "Share1Icon" | "Share2Icon" | "ShuffleIcon" | "SizeIcon" | "SketchLogoIcon" | "SlashIcon" | "SliderIcon" | "SpaceBetweenHorizontallyIcon" | "SpaceBetweenVerticallyIcon" | "SpaceEvenlyHorizontallyIcon" | "SpaceEvenlyVerticallyIcon" | "SpeakerLoudIcon" | "SpeakerModerateIcon" | "SpeakerOffIcon" | "SpeakerQuietIcon" | "SquareIcon" | "StarIcon" | "StarFilledIcon" | "StitchesLogoIcon" | "StopIcon" | "StopwatchIcon" | "StretchHorizontallyIcon" | "StretchVerticallyIcon" | "StrikethroughIcon" | "SunIcon" | "SwitchIcon" | "SymbolIcon" | "TableIcon" | "TargetIcon" | "TextIcon" | "TextAlignBottomIcon" | "TextAlignCenterIcon" | "TextAlignJustifyIcon" | "TextAlignLeftIcon" | "TextAlignMiddleIcon" | "TextAlignRightIcon" | "TextAlignTopIcon" | "TextNoneIcon" | "ThickArrowDownIcon" | "ThickArrowLeftIcon" | "ThickArrowRightIcon" | "ThickArrowUpIcon" | "TimerIcon" | "TokensIcon" | "TrackNextIcon" | "TrackPreviousIcon" | "TransformIcon" | "TransparencyGridIcon" | "TrashIcon" | "TriangleDownIcon" | "TriangleLeftIcon" | "TriangleRightIcon" | "TriangleUpIcon" | "TwitterLogoIcon" | "UnderlineIcon" | "UpdateIcon" | "UploadIcon" | "ValueIcon" | "ValueNoneIcon" | "VercelLogoIcon" | "VideoIcon" | "ViewGridIcon" | "ViewHorizontalIcon" | "ViewNoneIcon" | "ViewVerticalIcon" | "WidthIcon" | "ZoomInIcon" | "ZoomOutIcon" | undefined;
14
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from './rawInput';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unstyled input extended by other components
3
+ */
4
+ export declare const RawInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from './textArea';
@@ -0,0 +1,12 @@
1
+ import React, { TextareaHTMLAttributes, ChangeEvent } from 'react';
2
+ import { WithStatusProps } from '../../system/HOC';
3
+ export type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
4
+ onChange?: (e?: ChangeEvent<HTMLTextAreaElement>) => void;
5
+ label?: string;
6
+ helperText?: string;
7
+ } & WithStatusProps;
8
+ export declare const TextArea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
9
+ onChange?: ((e?: ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
10
+ label?: string | undefined;
11
+ helperText?: string | undefined;
12
+ } & WithStatusProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1 @@
1
+ export * from './textInput';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { BaseInputProps } from '../BaseInput';
3
+ export type TextInputProps = BaseInputProps;
4
+ export declare const TextInput: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
5
+ message?: string | undefined;
6
+ label?: string | undefined;
7
+ type?: string | undefined;
8
+ renderInput?: ((props: import("react").InputHTMLAttributes<HTMLInputElement> & {
9
+ status?: string | undefined;
10
+ }) => JSX.Element) | undefined;
11
+ icon?: "ContentAppIcon" | "OpenFinIcon" | "BellIcon" | "WorkspaceIcon" | "LockedClosedFilledIcon" | "MinimizeIcon" | "LightBulbFilledIcon" | "LightBulbOutlinedIcon" | "FilterIcon" | "BrokenLinkIcon" | "FloppyDiskIcon" | "StackIcon" | "BellFilledIcon" | "StorefrontIcon" | "FragmentsIcon" | "ChevronRightIcon" | "ChevronLeftIcon" | "ChevronUpIcon" | "ChevronDownIcon" | "ExclamationCircledFilledIcon" | "FilledCircleIcon" | "PageIcon" | "RedDotIcon" | "BookmarkFilled" | "BookmarkOutlined" | "FallbackGlobeIcon" | "BlockedIcon" | "EnterpriseGlobeIcon" | "SupertabIcon" | "CollectionIcon" | "AccessibilityIcon" | "ActivityLogIcon" | "AlignBaselineIcon" | "AlignBottomIcon" | "AlignCenterHorizontallyIcon" | "AlignCenterVerticallyIcon" | "AlignLeftIcon" | "AlignRightIcon" | "AlignTopIcon" | "AllSidesIcon" | "AngleIcon" | "ArchiveIcon" | "ArrowBottomLeftIcon" | "ArrowBottomRightIcon" | "ArrowDownIcon" | "ArrowLeftIcon" | "ArrowRightIcon" | "ArrowTopLeftIcon" | "ArrowTopRightIcon" | "ArrowUpIcon" | "AspectRatioIcon" | "AvatarIcon" | "BackpackIcon" | "BadgeIcon" | "BarChartIcon" | "BlendingModeIcon" | "BookmarkIcon" | "BookmarkFilledIcon" | "BorderAllIcon" | "BorderBottomIcon" | "BorderDashedIcon" | "BorderDottedIcon" | "BorderLeftIcon" | "BorderNoneIcon" | "BorderRightIcon" | "BorderSolidIcon" | "BorderSplitIcon" | "BorderStyleIcon" | "BorderTopIcon" | "BorderWidthIcon" | "BoxIcon" | "BoxModelIcon" | "ButtonIcon" | "CalendarIcon" | "CameraIcon" | "CardStackIcon" | "CardStackMinusIcon" | "CardStackPlusIcon" | "CaretDownIcon" | "CaretLeftIcon" | "CaretRightIcon" | "CaretSortIcon" | "CaretUpIcon" | "ChatBubbleIcon" | "CheckIcon" | "CheckCircledIcon" | "CheckboxIcon" | "CircleIcon" | "CircleBackslashIcon" | "ClipboardIcon" | "ClipboardCopyIcon" | "ClockIcon" | "CodeIcon" | "CodeSandboxLogoIcon" | "ColorWheelIcon" | "ColumnSpacingIcon" | "ColumnsIcon" | "CommitIcon" | "Component1Icon" | "Component2Icon" | "ComponentBooleanIcon" | "ComponentInstanceIcon" | "ComponentNoneIcon" | "ComponentPlaceholderIcon" | "ContainerIcon" | "CookieIcon" | "CopyIcon" | "CornerBottomLeftIcon" | "CornerBottomRightIcon" | "CornerTopLeftIcon" | "CornerTopRightIcon" | "CornersIcon" | "CountdownTimerIcon" | "CounterClockwiseClockIcon" | "CropIcon" | "Cross1Icon" | "Cross2Icon" | "CrossCircledIcon" | "Crosshair1Icon" | "Crosshair2Icon" | "CrumpledPaperIcon" | "CubeIcon" | "CursorArrowIcon" | "CursorTextIcon" | "DashIcon" | "DashboardIcon" | "DesktopIcon" | "DimensionsIcon" | "DiscIcon" | "DiscordLogoIcon" | "DividerHorizontalIcon" | "DividerVerticalIcon" | "DotIcon" | "DotFilledIcon" | "DotsHorizontalIcon" | "DotsVerticalIcon" | "DoubleArrowDownIcon" | "DoubleArrowLeftIcon" | "DoubleArrowRightIcon" | "DoubleArrowUpIcon" | "DownloadIcon" | "DragHandleDots1Icon" | "DragHandleDots2Icon" | "DragHandleHorizontalIcon" | "DragHandleVerticalIcon" | "DrawingPinIcon" | "DrawingPinFilledIcon" | "DropdownMenuIcon" | "EnterIcon" | "EnterFullScreenIcon" | "EnvelopeClosedIcon" | "EnvelopeOpenIcon" | "EraserIcon" | "ExclamationTriangleIcon" | "ExitIcon" | "ExitFullScreenIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeNoneIcon" | "EyeOpenIcon" | "FaceIcon" | "FigmaLogoIcon" | "FileIcon" | "FileMinusIcon" | "FilePlusIcon" | "FileTextIcon" | "FontBoldIcon" | "FontFamilyIcon" | "FontItalicIcon" | "FontRomanIcon" | "FontSizeIcon" | "FontStyleIcon" | "FrameIcon" | "FramerLogoIcon" | "GearIcon" | "GitHubLogoIcon" | "GlobeIcon" | "GridIcon" | "GroupIcon" | "Half1Icon" | "Half2Icon" | "HamburgerMenuIcon" | "HandIcon" | "HeadingIcon" | "HeartIcon" | "HeartFilledIcon" | "HeightIcon" | "HobbyKnifeIcon" | "HomeIcon" | "IconJarLogoIcon" | "IdCardIcon" | "ImageIcon" | "InfoCircledIcon" | "InputIcon" | "InstagramLogoIcon" | "KeyboardIcon" | "LapTimerIcon" | "LaptopIcon" | "LayersIcon" | "LayoutIcon" | "LetterCaseCapitalizeIcon" | "LetterCaseLowercaseIcon" | "LetterCaseToggleIcon" | "LetterCaseUppercaseIcon" | "LetterSpacingIcon" | "LightningBoltIcon" | "LineHeightIcon" | "Link1Icon" | "Link2Icon" | "LinkBreak1Icon" | "LinkBreak2Icon" | "LinkNone1Icon" | "LinkNone2Icon" | "LinkedInLogoIcon" | "ListBulletIcon" | "LockClosedIcon" | "LockOpen1Icon" | "LockOpen2Icon" | "LoopIcon" | "MagicWandIcon" | "MagnifyingGlassIcon" | "MarginIcon" | "MaskOffIcon" | "MaskOnIcon" | "MinusIcon" | "MinusCircledIcon" | "MixIcon" | "MixerHorizontalIcon" | "MixerVerticalIcon" | "MobileIcon" | "ModulzLogoIcon" | "MoonIcon" | "MoveIcon" | "NotionLogoIcon" | "OpacityIcon" | "OpenInNewWindowIcon" | "OverlineIcon" | "PaddingIcon" | "PaperPlaneIcon" | "PauseIcon" | "Pencil1Icon" | "Pencil2Icon" | "PersonIcon" | "PieChartIcon" | "PilcrowIcon" | "PinBottomIcon" | "PinLeftIcon" | "PinRightIcon" | "PinTopIcon" | "PlayIcon" | "PlusIcon" | "PlusCircledIcon" | "QuestionMarkIcon" | "QuestionMarkCircledIcon" | "QuoteIcon" | "RadiobuttonIcon" | "ReaderIcon" | "ReloadIcon" | "ResetIcon" | "ResumeIcon" | "RocketIcon" | "RotateCounterClockwiseIcon" | "RowSpacingIcon" | "RowsIcon" | "RulerHorizontalIcon" | "RulerSquareIcon" | "ScissorsIcon" | "SectionIcon" | "SewingPinIcon" | "SewingPinFilledIcon" | "ShadowIcon" | "ShadowInnerIcon" | "ShadowNoneIcon" | "ShadowOuterIcon" | "Share1Icon" | "Share2Icon" | "ShuffleIcon" | "SizeIcon" | "SketchLogoIcon" | "SlashIcon" | "SliderIcon" | "SpaceBetweenHorizontallyIcon" | "SpaceBetweenVerticallyIcon" | "SpaceEvenlyHorizontallyIcon" | "SpaceEvenlyVerticallyIcon" | "SpeakerLoudIcon" | "SpeakerModerateIcon" | "SpeakerOffIcon" | "SpeakerQuietIcon" | "SquareIcon" | "StarIcon" | "StarFilledIcon" | "StitchesLogoIcon" | "StopIcon" | "StopwatchIcon" | "StretchHorizontallyIcon" | "StretchVerticallyIcon" | "StrikethroughIcon" | "SunIcon" | "SwitchIcon" | "SymbolIcon" | "TableIcon" | "TargetIcon" | "TextIcon" | "TextAlignBottomIcon" | "TextAlignCenterIcon" | "TextAlignJustifyIcon" | "TextAlignLeftIcon" | "TextAlignMiddleIcon" | "TextAlignRightIcon" | "TextAlignTopIcon" | "TextNoneIcon" | "ThickArrowDownIcon" | "ThickArrowLeftIcon" | "ThickArrowRightIcon" | "ThickArrowUpIcon" | "TimerIcon" | "TokensIcon" | "TrackNextIcon" | "TrackPreviousIcon" | "TransformIcon" | "TransparencyGridIcon" | "TrashIcon" | "TriangleDownIcon" | "TriangleLeftIcon" | "TriangleRightIcon" | "TriangleUpIcon" | "TwitterLogoIcon" | "UnderlineIcon" | "UpdateIcon" | "UploadIcon" | "ValueIcon" | "ValueNoneIcon" | "VercelLogoIcon" | "VideoIcon" | "ViewGridIcon" | "ViewHorizontalIcon" | "ViewNoneIcon" | "ViewVerticalIcon" | "WidthIcon" | "ZoomInIcon" | "ZoomOutIcon" | (() => JSX.Element) | undefined;
12
+ helperText?: string | undefined;
13
+ validationErrorMessage?: string | undefined;
14
+ } & import("../../system").WithStatusProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,41 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { UnitPxType } from '../../system/ThemeProvider/lib/types';
3
+ import * as BoxTypes from './types';
4
+ export type BoxProps = HTMLAttributes<HTMLDivElement> & {
5
+ alignItems?: BoxTypes.AlignItems;
6
+ display?: BoxTypes.Display;
7
+ flexDirection?: BoxTypes.FlexDirection;
8
+ flexWrap?: BoxTypes.FlexWrap;
9
+ justifyContent?: BoxTypes.JustifyContent;
10
+ gap?: UnitPxType;
11
+ alignSelf?: BoxTypes.AlignSelf;
12
+ flexBasis?: string;
13
+ flexGrow?: 1 | 0;
14
+ flexShrink?: 1 | 0;
15
+ order?: number;
16
+ background?: BoxTypes.BackgroundLevel;
17
+ padding?: UnitPxType;
18
+ };
19
+ /**
20
+ * ## Box
21
+ *
22
+ * Div with flexbox properties applied to their CSS default values.
23
+ *
24
+ * - Box can be both the flex parent and the flex child.
25
+ * - None of the child properties should be applied unless specified.
26
+ */
27
+ export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, HTMLAttributes<HTMLDivElement> & {
28
+ alignItems?: BoxTypes.AlignItems | undefined;
29
+ display?: BoxTypes.Display | undefined;
30
+ flexDirection?: BoxTypes.FlexDirection | undefined;
31
+ flexWrap?: BoxTypes.FlexWrap | undefined;
32
+ justifyContent?: BoxTypes.JustifyContent | undefined;
33
+ gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
34
+ alignSelf?: BoxTypes.AlignSelf | undefined;
35
+ flexBasis?: string | undefined;
36
+ flexGrow?: 0 | 1 | undefined;
37
+ flexShrink?: 0 | 1 | undefined;
38
+ order?: number | undefined;
39
+ background?: BoxTypes.BackgroundLevel | undefined;
40
+ padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
41
+ }, never>;
@@ -0,0 +1 @@
1
+ export * from './box';
@@ -0,0 +1,7 @@
1
+ export type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'first baseline' | 'last baseline' | 'start' | 'end' | 'self-start' | 'self-end';
2
+ export type Display = 'flex' | 'inline-flex';
3
+ export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
4
+ export type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
5
+ export type JustifyContent = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'start' | 'end' | 'left' | 'right';
6
+ export type AlignSelf = 'auto' | 'flex-start' | ' flex-end' | 'center' | 'baseline' | 'stretch';
7
+ export type BackgroundLevel = 1 | 2 | 3 | 4 | 5 | 6;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface DefinitionListProps extends React.HTMLAttributes<HTMLDListElement> {
3
+ /**
4
+ * A map of key-value pairs to be displayed in the list.
5
+ *
6
+ * Using a `Map` is deprecated and will be removed in a future release.
7
+ */
8
+ definitions: Map<string, string> | [string, string][];
9
+ }
10
+ export declare const DefinitionList: React.FC<DefinitionListProps>;
@@ -0,0 +1 @@
1
+ export * from './definitionList';
@@ -0,0 +1,13 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export type HamburgerNavigationProps = {
3
+ children: (closeFunction: () => void) => ReactNode;
4
+ document?: Document;
5
+ };
6
+ export type HamburgerIconProps = {
7
+ open?: boolean;
8
+ };
9
+ /**
10
+ * - Sidebar Menu opens and closes on Hamburger Icon click and when the user selects items from sidebar menu
11
+ */
12
+ export declare const HamburgerNavigation: FC<HamburgerNavigationProps>;
13
+ export declare const StyledHamburgerIcon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, HamburgerIconProps, never>;
@@ -0,0 +1,2 @@
1
+ export * from './hamburgerNavigation';
2
+ export * from './sidebarMenu';
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type SidebarMenuProps = {
3
+ open?: boolean;
4
+ children: ReactNode;
5
+ document?: Document;
6
+ };
7
+ export type SidebarMenuContainerProps = {
8
+ open?: boolean;
9
+ };
10
+ export declare const SidebarMenu: ({ open, children, document }: SidebarMenuProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const StyledSidebarMenuContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SidebarMenuContainerProps, never>;
12
+ export declare const StyledMenuItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from './tabList';
@@ -0,0 +1,8 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type TabProps = {
3
+ title: string;
4
+ icon?: string;
5
+ children?: ReactNode;
6
+ };
7
+ export declare const Tab: FC<TabProps>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { FC, ReactElement } from 'react';
2
+ type TabListProps = {
3
+ children: ReactElement[];
4
+ document?: Document;
5
+ };
6
+ type TabProps = {
7
+ title: string;
8
+ index: number;
9
+ setSelectedTab: (index: number) => void;
10
+ };
11
+ export declare const Tab: FC<TabProps>;
12
+ export declare const TabList: FC<TabListProps>;
13
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ImportFonts } from '../ThemeProvider/lib/createFontFaceCss';
2
+ export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
3
+ export declare const GlobalFonts: import("styled-components").GlobalStyleComponent<{
4
+ fonts: ImportFonts;
5
+ }, import("styled-components").DefaultTheme>;
@@ -0,0 +1 @@
1
+ export * from './globalStyles';
@@ -0,0 +1,4 @@
1
+ export type StatusType = 'success' | 'warning' | 'critical' | 'active';
2
+ export type WithStatusProps = {
3
+ status?: StatusType;
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ export * from './themeProvider';
@@ -0,0 +1,4 @@
1
+ import { ColorInputWithoutInstance as Color } from 'tinycolor2';
2
+ export declare const lightenColor: (color: Color, amount?: number) => string;
3
+ export declare const darkenColor: (color: Color, amount?: number) => string;
4
+ export declare const getMostReadable: (baseColor: Color, colors: Color[]) => string;
@@ -0,0 +1,214 @@
1
+ /**
2
+ * Color --
3
+ * Color maps names to values.
4
+ * This is the "raw" store of all OpenFin colors
5
+ * referenced by their Figma names.
6
+ *
7
+ * This is the only place Color values should be defined
8
+ */
9
+ export declare const Color: {
10
+ readonly white: "#FFFFFF";
11
+ readonly lightGray1: "#FAFBFE";
12
+ readonly lightGray2: "#F3F5F8";
13
+ readonly lightGray3: "#ECEEF1";
14
+ readonly lightGray4: "#DDDFE4";
15
+ readonly lightGray5: "#C9CBD2";
16
+ readonly neutralGray: "#7D808A";
17
+ readonly neutralGray80: "rgba(125,128,138,0.8)";
18
+ readonly silverGray: "#C0C1C2";
19
+ readonly darkGray1: "#53565F";
20
+ readonly darkGray2: "#383A40";
21
+ readonly darkGray3: "#2F3136";
22
+ readonly darkGray4: "#24262B";
23
+ readonly darkGray5: "#1E1F23";
24
+ readonly darkGray6: "#111214";
25
+ readonly openFinDarkest: "#3D39CD";
26
+ readonly openFinDarker: "#4642E0";
27
+ readonly openFin: "#504CFF";
28
+ readonly openFinLight: "#5254FB";
29
+ readonly openFinLighter: "#5C5EFE";
30
+ readonly openFinLightest: "#6864FF";
31
+ readonly functional1: "#207735";
32
+ readonly functional2: "#46C8F1";
33
+ readonly functional3: "#0A76D3";
34
+ readonly functional4: "#6CADE5";
35
+ readonly functional5: "#0A76D3";
36
+ readonly functional6: "#882BFE";
37
+ readonly functional7: "#F31818";
38
+ readonly functional8: "#C93400";
39
+ readonly functional9: "#FF5E60";
40
+ readonly functional10: "#F48F00";
41
+ readonly purple: "#8C61FF";
42
+ readonly lightblue: "#36C3FE";
43
+ readonly aqua: "#00CC88";
44
+ readonly yellow: "#FFEB00";
45
+ readonly salmon: "#FF8C4C";
46
+ readonly pink: "#FF5E60";
47
+ readonly lightpink: "#FF8FB8";
48
+ readonly white00: "rgba(255,255,255,0.0)";
49
+ readonly white10: "rgba(255,255,255,0.1)";
50
+ readonly white20: "rgba(255,255,255,0.2)";
51
+ readonly white30: "rgba(255,255,255,0.3)";
52
+ readonly white40: "rgba(255,255,255,0.4)";
53
+ readonly white50: "rgba(255,255,255,0.5)";
54
+ readonly white60: "rgba(255,255,255,0.6)";
55
+ readonly white70: "rgba(255,255,255,0.7)";
56
+ readonly white80: "rgba(255,255,255,0.8)";
57
+ readonly white90: "rgba(255,255,255,0.9)";
58
+ readonly black00: "rgba(0,0,0,0.0)";
59
+ readonly black10: "rgba(0,0,0,0.1)";
60
+ readonly black20: "rgba(0,0,0,0.2)";
61
+ readonly black30: "rgba(0,0,0,0.3)";
62
+ readonly black40: "rgba(0,0,0,0.4)";
63
+ readonly black50: "rgba(0,0,0,0.5)";
64
+ readonly black60: "rgba(0,0,0,0.6)";
65
+ readonly black70: "rgba(0,0,0,0.7)";
66
+ readonly black80: "rgba(0,0,0,0.8)";
67
+ readonly black90: "rgba(0,0,0,0.9)";
68
+ readonly transparent: "transparent";
69
+ readonly openFinActive: "#4642FF";
70
+ readonly openFinHover: "#6965FF";
71
+ readonly lightGray4Active: "#D7DADF";
72
+ readonly lightGray4Hover: "#EBECEF";
73
+ readonly darkGray2Active: "#33353B";
74
+ readonly darkGray2Hover: "#44464E";
75
+ };
76
+ /**
77
+ * Size --
78
+ * Common keys used to describe a range of values
79
+ * - Unit, UnitPx, Shadow, FontSize
80
+ */
81
+ export declare const Size: {
82
+ readonly xsmall: "xsmall";
83
+ readonly small: "small";
84
+ readonly base: "base";
85
+ readonly large: "large";
86
+ readonly xlarge: "xlarge";
87
+ readonly xxlarge: "xxlarge";
88
+ readonly xxxlarge: "xxxlarge";
89
+ readonly xxxxlarge: "xxxxlarge";
90
+ };
91
+ /**
92
+ * SizeName --
93
+ * Primarly a Storybook Helper for displaying human-friendly size names
94
+ * It's more intuitive to maintain this if it lives here
95
+ */
96
+ export declare const SizeName: {
97
+ readonly xsmall: "Extra Small";
98
+ readonly small: "Small";
99
+ readonly base: "Base";
100
+ readonly large: "Large";
101
+ readonly xlarge: "Extra Large";
102
+ readonly xxlarge: "2X Large";
103
+ readonly xxxlarge: "3X Large";
104
+ readonly xxxxlarge: "4X Large";
105
+ };
106
+ /**
107
+ * Unit --
108
+ * Design System works on a 4px Grid
109
+ * Units are represented as numbers here for convienence in Javascript, e.g. `Unit.base * 4`
110
+ */
111
+ export declare const Unit: {
112
+ readonly xsmall: 4;
113
+ readonly small: 8;
114
+ readonly base: 12;
115
+ readonly large: 16;
116
+ readonly xlarge: 20;
117
+ readonly xxlarge: 24;
118
+ readonly xxxlarge: 32;
119
+ readonly xxxxlarge: 48;
120
+ };
121
+ /**
122
+ * UnitPx / "px" --
123
+ * Design System works on a 4px Grid
124
+ * UnitPx includes the px suffix for convenience in Styled Components
125
+ */
126
+ export declare const UnitPx: {
127
+ readonly xsmall: "4px";
128
+ readonly small: "8px";
129
+ readonly base: "12px";
130
+ readonly large: "16px";
131
+ readonly xlarge: "20px";
132
+ readonly xxlarge: "24px";
133
+ readonly xxxlarge: "32px";
134
+ readonly xxxxlarge: "48px";
135
+ };
136
+ /**
137
+ * Radius --
138
+ * The border radius values supported in the design system
139
+ */
140
+ export declare const Radius: {
141
+ readonly xsmall: "2px";
142
+ readonly small: "4px";
143
+ readonly base: "8px";
144
+ readonly large: "24px";
145
+ readonly pill: "100vh";
146
+ readonly round: "50%";
147
+ readonly none: "0";
148
+ };
149
+ /**
150
+ * Shadow --
151
+ * Design System drop shadows
152
+ * Note: This does not include any `text-shadow`
153
+ */
154
+ export declare const Shadow: {
155
+ base: string;
156
+ };
157
+ /**
158
+ * Design System uses "Inter" and we include @font-face definitions to load a CDN hosted version of the font
159
+ * The rest of the stack includes reasonable fallbacks for contingency cases where the CDN asset fails to load
160
+ */
161
+ export declare const FontFamily: string;
162
+ /**
163
+ * FontSize --
164
+ * Design System font sizes using standard scale
165
+ */
166
+ export declare const FontSize: {
167
+ readonly xsmall: "8px";
168
+ readonly small: "10px";
169
+ readonly base: "12px";
170
+ readonly large: "14px";
171
+ readonly xlarge: "16px";
172
+ readonly xxlarge: "18px";
173
+ readonly xxxlarge: "20px";
174
+ readonly xxxxlarge: "40px";
175
+ };
176
+ /**
177
+ * FontWeight --
178
+ * Design System font weights (three)
179
+ */
180
+ export declare const FontWeight: {
181
+ readonly normal: 400;
182
+ readonly bold: 600;
183
+ };
184
+ /**
185
+ * LineHeight --
186
+ * Read about "unitless" line-height
187
+ * @link https://css-tricks.com/almanac/properties/l/line-height/#unitless-line-heights
188
+ */
189
+ export declare const LineHeight: {
190
+ readonly ui: 1;
191
+ readonly heading: 1.2;
192
+ readonly text: 1.5;
193
+ };
194
+ /**
195
+ * Transitions --
196
+ * Design System transition easings because UI motion feels better if everything moves the same way.
197
+ */
198
+ export declare const Transition: {
199
+ readonly base: "200ms cubic-bezier(0.16, 1, 0.3, 1)";
200
+ readonly none: "0ms";
201
+ };
202
+ /**
203
+ * IconSize --
204
+ * Design System standard set of icon sizes
205
+ */
206
+ export declare const IconSize: {
207
+ readonly xsmall: "8px";
208
+ readonly small: "12px";
209
+ readonly base: "15px";
210
+ readonly large: "20px";
211
+ readonly xlarge: "24px";
212
+ readonly xxlarge: "32px";
213
+ readonly xxxlarge: "48px";
214
+ };
@@ -0,0 +1,11 @@
1
+ import { FlattenSimpleInterpolation } from 'styled-components';
2
+ export interface ImportFonts {
3
+ regular: string;
4
+ italic: string;
5
+ semiBold: string;
6
+ semiBoldItalic: string;
7
+ }
8
+ /**
9
+ * Import global fonts using your own config.
10
+ */
11
+ export declare function createFontFaceCss(fonts: ImportFonts): FlattenSimpleInterpolation;
@@ -0,0 +1,9 @@
1
+ import { PaletteType } from '../lib/types';
2
+ import type { DefaultTheme } from 'styled-components';
3
+ /**
4
+ * Create a theme by accepting an incomplete theme object and deriving the remaining colors based on button colors.
5
+ *
6
+ * @param {Partial<PaletteType>} palettePartial The provided theme keys, whether we or the end user defined them.
7
+ * @returns {DefaultTheme}
8
+ */
9
+ export declare const createTheme: (palettePartial: Partial<PaletteType>) => DefaultTheme;