@onewelcome/react-lib-components 0.1.0-alpha

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 (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +71 -0
  3. package/dist/BaseModal/BaseModal.d.ts +16 -0
  4. package/dist/BaseModal/BaseModalActions/BaseModalActions.d.ts +5 -0
  5. package/dist/BaseModal/BaseModalContent/BaseModalContent.d.ts +8 -0
  6. package/dist/BaseModal/BaseModalContext.d.ts +2 -0
  7. package/dist/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +8 -0
  8. package/dist/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  9. package/dist/Button/BaseButton.d.ts +8 -0
  10. package/dist/Button/Button.d.ts +10 -0
  11. package/dist/Button/IconButton.d.ts +10 -0
  12. package/dist/ContextMenu/ContextMenu.d.ts +18 -0
  13. package/dist/ContextMenu/ContextMenuItem.d.ts +6 -0
  14. package/dist/Dialog/Dialog.d.ts +18 -0
  15. package/dist/Dialog/DialogActions/DialogActions.d.ts +6 -0
  16. package/dist/Dialog/DialogTitle/DialogTitle.d.ts +6 -0
  17. package/dist/Form/Checkbox/Checkbox.d.ts +13 -0
  18. package/dist/Form/Fieldset/Fieldset.d.ts +13 -0
  19. package/dist/Form/Form.d.ts +5 -0
  20. package/dist/Form/FormControl/FormControl.d.ts +8 -0
  21. package/dist/Form/FormGroup/FormGroup.d.ts +18 -0
  22. package/dist/Form/FormHelperText/FormHelperText.d.ts +7 -0
  23. package/dist/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +18 -0
  24. package/dist/Form/Input/Input.d.ts +12 -0
  25. package/dist/Form/Label/Label.d.ts +6 -0
  26. package/dist/Form/Radio/Radio.d.ts +11 -0
  27. package/dist/Form/Select/Option.d.ts +12 -0
  28. package/dist/Form/Select/Select.d.ts +15 -0
  29. package/dist/Form/Textarea/Textarea.d.ts +7 -0
  30. package/dist/Form/Toggle/Toggle.d.ts +6 -0
  31. package/dist/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +8 -0
  32. package/dist/Form/Wrapper/InputWrapper/InputWrapper.d.ts +17 -0
  33. package/dist/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +10 -0
  34. package/dist/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +12 -0
  35. package/dist/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +14 -0
  36. package/dist/Form/Wrapper/Wrapper/Wrapper.d.ts +28 -0
  37. package/dist/Form/form.interfaces.d.ts +12 -0
  38. package/dist/Icon/Icon.d.ts +75 -0
  39. package/dist/Link/Link.d.ts +15 -0
  40. package/dist/Modal/Modal.d.ts +1 -0
  41. package/dist/Modal/ModalActions/ModalActions.d.ts +1 -0
  42. package/dist/Modal/ModalContent/ModalContent.d.ts +1 -0
  43. package/dist/Modal/ModalHeader/ModalHeader.d.ts +1 -0
  44. package/dist/Popover/Popover.d.ts +11 -0
  45. package/dist/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +12 -0
  46. package/dist/Snackbar/SnackbarItem/SnackbarItem.d.ts +13 -0
  47. package/dist/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +18 -0
  48. package/dist/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +14 -0
  49. package/dist/Snackbar/interfaces.d.ts +10 -0
  50. package/dist/Snackbar/useSnackbar.d.ts +1 -0
  51. package/dist/Tiles/Tile.d.ts +16 -0
  52. package/dist/Tiles/Tiles.d.ts +6 -0
  53. package/dist/Tooltip/Tooltip.d.ts +11 -0
  54. package/dist/Typography/Typography.d.ts +12 -0
  55. package/dist/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +13 -0
  56. package/dist/Wizard/Wizard.d.ts +12 -0
  57. package/dist/Wizard/WizardActions/WizardActions.d.ts +12 -0
  58. package/dist/Wizard/WizardStateProvider.d.ts +12 -0
  59. package/dist/Wizard/WizardSteps/WizardSteps.d.ts +5 -0
  60. package/dist/Wizard/wizardStateReducer.d.ts +26 -0
  61. package/dist/_BaseStyling_/BaseStyling.d.ts +47 -0
  62. package/dist/hooks/useAnimation.d.ts +6 -0
  63. package/dist/hooks/useBodyClick.d.ts +1 -0
  64. package/dist/hooks/useFormSelector.d.ts +13 -0
  65. package/dist/hooks/usePosition.d.ts +36 -0
  66. package/dist/hooks/useScroll.d.ts +2 -0
  67. package/dist/hooks/useSpacing.d.ts +18 -0
  68. package/dist/hooks/useWrapper.d.ts +11 -0
  69. package/dist/index.d.ts +43 -0
  70. package/dist/index.js +8 -0
  71. package/dist/interfaces.d.ts +13 -0
  72. package/dist/react-lib-components.cjs.development.js +3282 -0
  73. package/dist/react-lib-components.cjs.development.js.map +1 -0
  74. package/dist/react-lib-components.cjs.production.min.js +2 -0
  75. package/dist/react-lib-components.cjs.production.min.js.map +1 -0
  76. package/dist/react-lib-components.esm.js +3235 -0
  77. package/dist/react-lib-components.esm.js.map +1 -0
  78. package/dist/util/helper.d.ts +1 -0
  79. package/package.json +88 -0
  80. package/src/BaseModal/BaseModal.module.scss +58 -0
  81. package/src/BaseModal/BaseModal.test.tsx +59 -0
  82. package/src/BaseModal/BaseModal.tsx +113 -0
  83. package/src/BaseModal/BaseModalActions/BaseModalActions.module.scss +9 -0
  84. package/src/BaseModal/BaseModalActions/BaseModalActions.test.tsx +17 -0
  85. package/src/BaseModal/BaseModalActions/BaseModalActions.tsx +14 -0
  86. package/src/BaseModal/BaseModalContent/BaseModalContent.module.scss +6 -0
  87. package/src/BaseModal/BaseModalContent/BaseModalContent.test.tsx +29 -0
  88. package/src/BaseModal/BaseModalContent/BaseModalContent.tsx +35 -0
  89. package/src/BaseModal/BaseModalContext.ts +2 -0
  90. package/src/BaseModal/BaseModalHeader/BaseModalHeader.module.scss +17 -0
  91. package/src/BaseModal/BaseModalHeader/BaseModalHeader.test.tsx +30 -0
  92. package/src/BaseModal/BaseModalHeader/BaseModalHeader.tsx +28 -0
  93. package/src/Breadcrumbs/Breadcrumbs.module.scss +14 -0
  94. package/src/Breadcrumbs/Breadcrumbs.test.tsx +42 -0
  95. package/src/Breadcrumbs/Breadcrumbs.tsx +48 -0
  96. package/src/Button/BaseButton.module.scss +20 -0
  97. package/src/Button/BaseButton.test.tsx +59 -0
  98. package/src/Button/BaseButton.tsx +31 -0
  99. package/src/Button/Button.module.scss +336 -0
  100. package/src/Button/Button.test.tsx +76 -0
  101. package/src/Button/Button.tsx +44 -0
  102. package/src/Button/IconButton.module.scss +161 -0
  103. package/src/Button/IconButton.test.tsx +47 -0
  104. package/src/Button/IconButton.tsx +29 -0
  105. package/src/ContextMenu/ContextMenu.module.scss +20 -0
  106. package/src/ContextMenu/ContextMenu.test.tsx +93 -0
  107. package/src/ContextMenu/ContextMenu.tsx +91 -0
  108. package/src/ContextMenu/ContextMenuItem.module.scss +31 -0
  109. package/src/ContextMenu/ContextMenuItem.tsx +15 -0
  110. package/src/Dialog/Dialog.module.scss +16 -0
  111. package/src/Dialog/Dialog.test.tsx +79 -0
  112. package/src/Dialog/Dialog.tsx +96 -0
  113. package/src/Dialog/DialogActions/DialogActions.module.scss +11 -0
  114. package/src/Dialog/DialogActions/DialogActions.test.tsx +25 -0
  115. package/src/Dialog/DialogActions/DialogActions.tsx +21 -0
  116. package/src/Dialog/DialogTitle/DialogTitle.module.scss +7 -0
  117. package/src/Dialog/DialogTitle/DialogTitle.test.tsx +18 -0
  118. package/src/Dialog/DialogTitle/DialogTitle.tsx +18 -0
  119. package/src/Form/Checkbox/Checkbox.module.scss +65 -0
  120. package/src/Form/Checkbox/Checkbox.test.tsx +119 -0
  121. package/src/Form/Checkbox/Checkbox.tsx +145 -0
  122. package/src/Form/Fieldset/Fieldset.module.scss +19 -0
  123. package/src/Form/Fieldset/Fieldset.test.tsx +85 -0
  124. package/src/Form/Fieldset/Fieldset.tsx +55 -0
  125. package/src/Form/Form.module.scss +3 -0
  126. package/src/Form/Form.test.tsx +47 -0
  127. package/src/Form/Form.tsx +14 -0
  128. package/src/Form/FormControl/FormControl.module.scss +67 -0
  129. package/src/Form/FormControl/FormControl.test.tsx +56 -0
  130. package/src/Form/FormControl/FormControl.tsx +47 -0
  131. package/src/Form/FormGroup/FormGroup.module.scss +29 -0
  132. package/src/Form/FormGroup/FormGroup.test.tsx +61 -0
  133. package/src/Form/FormGroup/FormGroup.tsx +78 -0
  134. package/src/Form/FormHelperText/FormHelperText.module.scss +8 -0
  135. package/src/Form/FormHelperText/FormHelperText.test.tsx +42 -0
  136. package/src/Form/FormHelperText/FormHelperText.tsx +22 -0
  137. package/src/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +33 -0
  138. package/src/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +65 -0
  139. package/src/Form/Input/Input.module.scss +65 -0
  140. package/src/Form/Input/Input.test.tsx +135 -0
  141. package/src/Form/Input/Input.tsx +72 -0
  142. package/src/Form/Label/Label.module.scss +5 -0
  143. package/src/Form/Label/Label.test.tsx +26 -0
  144. package/src/Form/Label/Label.tsx +19 -0
  145. package/src/Form/Radio/Radio.module.scss +100 -0
  146. package/src/Form/Radio/Radio.test.tsx +88 -0
  147. package/src/Form/Radio/Radio.tsx +98 -0
  148. package/src/Form/Select/Option.test.tsx +15 -0
  149. package/src/Form/Select/Option.tsx +57 -0
  150. package/src/Form/Select/Select.module.scss +189 -0
  151. package/src/Form/Select/Select.test.tsx +96 -0
  152. package/src/Form/Select/Select.tsx +217 -0
  153. package/src/Form/Textarea/Textarea.module.scss +53 -0
  154. package/src/Form/Textarea/Textarea.test.tsx +76 -0
  155. package/src/Form/Textarea/Textarea.tsx +33 -0
  156. package/src/Form/Toggle/Toggle.module.scss +58 -0
  157. package/src/Form/Toggle/Toggle.test.tsx +29 -0
  158. package/src/Form/Toggle/Toggle.tsx +20 -0
  159. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +12 -0
  160. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.tsx +99 -0
  161. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +62 -0
  162. package/src/Form/Wrapper/InputWrapper/InputWrapper.module.scss +24 -0
  163. package/src/Form/Wrapper/InputWrapper/InputWrapper.test.tsx +93 -0
  164. package/src/Form/Wrapper/InputWrapper/InputWrapper.tsx +92 -0
  165. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +12 -0
  166. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.test.tsx +101 -0
  167. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +74 -0
  168. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss +14 -0
  169. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.test.tsx +101 -0
  170. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +59 -0
  171. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +65 -0
  172. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.tsx +125 -0
  173. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +105 -0
  174. package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +35 -0
  175. package/src/Form/Wrapper/Wrapper/Wrapper.test.tsx +17 -0
  176. package/src/Form/Wrapper/Wrapper/Wrapper.tsx +101 -0
  177. package/src/Form/form.interfaces.ts +14 -0
  178. package/src/Icon/Icon.module.scss +278 -0
  179. package/src/Icon/Icon.test.tsx +39 -0
  180. package/src/Icon/Icon.tsx +94 -0
  181. package/src/Link/Link.module.scss +46 -0
  182. package/src/Link/Link.test.tsx +122 -0
  183. package/src/Link/Link.tsx +80 -0
  184. package/src/Link/types.d.ts +9 -0
  185. package/src/Modal/Modal.test.tsx +16 -0
  186. package/src/Modal/Modal.tsx +1 -0
  187. package/src/Modal/ModalActions/ModalActions.tsx +4 -0
  188. package/src/Modal/ModalContent/ModalContent.tsx +4 -0
  189. package/src/Modal/ModalHeader/ModalHeader.tsx +4 -0
  190. package/src/Popover/Popover.module.scss +18 -0
  191. package/src/Popover/Popover.test.tsx +84 -0
  192. package/src/Popover/Popover.tsx +46 -0
  193. package/src/Snackbar/SnackbarContainer/SnackbarContainer.module.scss +35 -0
  194. package/src/Snackbar/SnackbarContainer/SnackbarContainer.test.tsx +37 -0
  195. package/src/Snackbar/SnackbarContainer/SnackbarContainer.tsx +28 -0
  196. package/src/Snackbar/SnackbarItem/SnackbarItem.module.scss +135 -0
  197. package/src/Snackbar/SnackbarItem/SnackbarItem.test.tsx +47 -0
  198. package/src/Snackbar/SnackbarItem/SnackbarItem.tsx +105 -0
  199. package/src/Snackbar/SnackbarProvider/SnackbarProvider.test.tsx +179 -0
  200. package/src/Snackbar/SnackbarProvider/SnackbarProvider.tsx +127 -0
  201. package/src/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +25 -0
  202. package/src/Snackbar/interfaces.ts +11 -0
  203. package/src/Snackbar/useSnackbar.ts +4 -0
  204. package/src/Tiles/Tile.module.scss +72 -0
  205. package/src/Tiles/Tile.test.tsx +129 -0
  206. package/src/Tiles/Tile.tsx +48 -0
  207. package/src/Tiles/Tiles.module.scss +11 -0
  208. package/src/Tiles/Tiles.test.tsx +118 -0
  209. package/src/Tiles/Tiles.tsx +48 -0
  210. package/src/Tooltip/Tooltip.module.scss +42 -0
  211. package/src/Tooltip/Tooltip.test.tsx +72 -0
  212. package/src/Tooltip/Tooltip.tsx +130 -0
  213. package/src/Typography/Typography.module.scss +46 -0
  214. package/src/Typography/Typography.test.tsx +114 -0
  215. package/src/Typography/Typography.tsx +84 -0
  216. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +192 -0
  217. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.test.tsx +75 -0
  218. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.tsx +86 -0
  219. package/src/Wizard/Wizard.test.tsx +198 -0
  220. package/src/Wizard/Wizard.tsx +49 -0
  221. package/src/Wizard/WizardActions/WizardActions.test.tsx +168 -0
  222. package/src/Wizard/WizardActions/WizardActions.tsx +100 -0
  223. package/src/Wizard/WizardStateProvider.tsx +26 -0
  224. package/src/Wizard/WizardSteps/WizardSteps.test.tsx +110 -0
  225. package/src/Wizard/WizardSteps/WizardSteps.tsx +30 -0
  226. package/src/Wizard/wizardStateReducer.ts +51 -0
  227. package/src/_BaseStyling_/BaseStyling.test.tsx +39 -0
  228. package/src/_BaseStyling_/BaseStyling.tsx +115 -0
  229. package/src/hooks/useAnimation.test.tsx +45 -0
  230. package/src/hooks/useAnimation.ts +20 -0
  231. package/src/hooks/useBodyClick.test.tsx +39 -0
  232. package/src/hooks/useBodyClick.ts +20 -0
  233. package/src/hooks/useFormSelector.test.ts +40 -0
  234. package/src/hooks/useFormSelector.ts +47 -0
  235. package/src/hooks/usePosition.test.tsx +494 -0
  236. package/src/hooks/usePosition.ts +347 -0
  237. package/src/hooks/useScroll.test.tsx +20 -0
  238. package/src/hooks/useScroll.ts +16 -0
  239. package/src/hooks/useSpacing.test.ts +70 -0
  240. package/src/hooks/useSpacing.ts +42 -0
  241. package/src/hooks/useWrapper.test.ts +49 -0
  242. package/src/hooks/useWrapper.ts +35 -0
  243. package/src/index.ts +52 -0
  244. package/src/interfaces.ts +15 -0
  245. package/src/readyclasses.module.scss +77 -0
  246. package/src/types.d.ts +4 -0
  247. package/src/util/helper.test.tsx +15 -0
  248. package/src/util/helper.tsx +80 -0
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { HTMLAttributes } from '../interfaces';
3
+ export declare enum Icons {
4
+ Bell = "bell",
5
+ BellAlt = "bell-alt",
6
+ Bookmark = "bookmark",
7
+ BookmarkAlt = "bookmark-alt",
8
+ Build = "build",
9
+ Calendar = "calendar",
10
+ Change = "change",
11
+ Checkmark = "checkmark",
12
+ CheckmarkCircle = "checkmark-circle",
13
+ CheckmarkCircleAlt = "checkmark-circle-alt",
14
+ CheckmarkCircleBreakout = "checkmark-circle-breakout",
15
+ CheckmarkSquare = "checkmark-square",
16
+ ChevronUp = "chevron-up",
17
+ ChevronDown = "chevron-down",
18
+ ChevronLeft = "chevron-left",
19
+ ChevronRight = "chevron-right",
20
+ Circle = "circle",
21
+ Clock = "clock",
22
+ Copy = "copy",
23
+ Edit = "edit",
24
+ Ellipsis = "ellipsis",
25
+ EllipsisAlt = "ellipsis-alt",
26
+ Equal = "equal",
27
+ Eye = "eye",
28
+ Filter = "filter",
29
+ FilterAlt = "filter-alt",
30
+ FilterAltArrow = "filter-alt-arrow",
31
+ FilterAltTimes = "filter-alt-times",
32
+ Forbidden = "forbidden",
33
+ Fullscreen = "fullscreen",
34
+ FullscreenExit = "fullscreen-exit",
35
+ Gearwheel = "gearwheel",
36
+ Grid = "grid",
37
+ Hamburger = "hamburger",
38
+ Heart = "heart",
39
+ Image = "image",
40
+ InfoBell = "info-bell",
41
+ InfoCircle = "info-circle",
42
+ Link = "link",
43
+ MinusSquare = "minus-square",
44
+ NavigationFirst = "navigation-first",
45
+ NavigationLast = "navigation-last",
46
+ Plus = "plus",
47
+ Radio = "radio",
48
+ Refresh = "refresh",
49
+ Search = "search",
50
+ Share = "share",
51
+ Square = "square",
52
+ Star = "star",
53
+ StarAlt = "star-alt",
54
+ Times = "times",
55
+ TimesCircle = "times-circle",
56
+ TimesCircleAlt = "times-circle-alt",
57
+ TimesThin = "times-thin",
58
+ Trash = "trash",
59
+ TriangleDown = "triangle-down",
60
+ TriangleDownCircle = "triangle-down-circle",
61
+ TriangleLeft = "triangle-left",
62
+ TriangleRight = "triangle-right",
63
+ TriangleUp = "triangle-up",
64
+ Undo = "undo",
65
+ Warning = "warning"
66
+ }
67
+ declare type Tag = 'span' | 'div' | 'i';
68
+ export interface Props extends Omit<HTMLAttributes<HTMLOrSVGElement>, 'size'> {
69
+ icon: Icons;
70
+ color?: string;
71
+ size?: string;
72
+ tag?: Tag;
73
+ }
74
+ export declare const Icon: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
75
+ export {};
@@ -0,0 +1,15 @@
1
+ import React, { ForwardRefExoticComponent, Ref, RefAttributes } from 'react';
2
+ import { HTMLProps } from '../interfaces';
3
+ import { LinkProps } from './types';
4
+ declare type AnchorType = 'external' | 'internal' | 'download';
5
+ export interface Props extends HTMLProps<HTMLAnchorElement> {
6
+ children?: string;
7
+ color?: 'primary' | 'secondary' | 'tertiary';
8
+ type?: AnchorType;
9
+ to: string;
10
+ disabled?: boolean;
11
+ component?: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
12
+ ref?: Ref<HTMLAnchorElement>;
13
+ }
14
+ export declare const Link: React.ForwardRefExoticComponent<Pick<Props, "download" | `data-${string}` | "children" | "color" | "type" | "to" | "disabled" | "component" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLAnchorElement>>;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { BaseModal as Modal, Props } from '../BaseModal/BaseModal';
@@ -0,0 +1 @@
1
+ export { BaseModalActions as ModalActions, Props, } from '../../BaseModal/BaseModalActions/BaseModalActions';
@@ -0,0 +1 @@
1
+ export { BaseModalContent as ModalContent, Props, } from '../../BaseModal/BaseModalContent/BaseModalContent';
@@ -0,0 +1 @@
1
+ export { BaseModalHeader as ModalHeader, Props, } from '../../BaseModal/BaseModalHeader/BaseModalHeader';
@@ -0,0 +1,11 @@
1
+ import React, { HTMLProps, ReactNode, RefObject } from 'react';
2
+ import { Offset, Placement } from '../hooks/usePosition';
3
+ export interface Props extends HTMLProps<HTMLDivElement> {
4
+ children?: ReactNode;
5
+ show?: boolean;
6
+ anchorEl?: RefObject<HTMLOrSVGElement>;
7
+ placement?: Placement;
8
+ offset?: Offset;
9
+ transformOrigin?: Placement;
10
+ }
11
+ export declare const Popover: React.ForwardRefExoticComponent<Pick<Props, "children" | "className" | "show" | "placement" | "offset" | "transformOrigin" | "anchorEl" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface Placement {
3
+ vertical: 'top' | 'bottom';
4
+ horizontal: 'start' | 'center' | 'end';
5
+ }
6
+ export interface Props {
7
+ placement: Placement;
8
+ children?: React.ReactNode;
9
+ zIndex?: number;
10
+ className?: string;
11
+ }
12
+ export declare const SnackbarContainer: ({ placement, children, zIndex, className, ...rest }: Props) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Variant, Actions } from '../interfaces';
3
+ export interface Props {
4
+ id: string;
5
+ title: string;
6
+ duration: number;
7
+ variant: Variant;
8
+ onClose: (key: string) => void;
9
+ closeButtonTitle: string;
10
+ content?: string;
11
+ actions?: Actions;
12
+ }
13
+ export declare const SnackbarItem: ({ id, title, duration, variant, content, actions, onClose, closeButtonTitle, }: Props) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { Placement } from '../SnackbarContainer/SnackbarContainer';
3
+ /** Short msg is when only title is provided. Long one when content or/and actions are provided (or type is error). */
4
+ interface Duration {
5
+ long: number;
6
+ short: number;
7
+ }
8
+ export interface Props {
9
+ closeButtonTitle: string;
10
+ children?: ReactNode | ReactNode[];
11
+ placement?: Placement;
12
+ stackSize?: number;
13
+ domRoot?: HTMLElement;
14
+ autoHideDuration?: Duration;
15
+ className?: string;
16
+ }
17
+ export declare const SnackbarProvider: ({ closeButtonTitle, placement, autoHideDuration, stackSize, domRoot, children, className, }?: Props) => JSX.Element;
18
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { SnackbarOptionsProps } from '../interfaces';
3
+ interface SnackbarContextProps {
4
+ enqueueSnackbar: (title: string, content?: string, options?: SnackbarOptionsProps) => void;
5
+ enqueueSuccessSnackbar: (title: string, content?: string, options?: SnackbarOptionsProps) => void;
6
+ enqueueErrorSnackbar: (title: string, content?: string, options?: SnackbarOptionsProps) => void;
7
+ }
8
+ declare const SnackbarContext: React.Context<SnackbarContextProps>;
9
+ interface Props {
10
+ initialState: SnackbarContextProps;
11
+ children?: React.ReactNode;
12
+ }
13
+ declare const SnackbarContextProvider: ({ children, initialState }: Props) => JSX.Element;
14
+ export { SnackbarContextProvider, SnackbarContext, SnackbarContextProps };
@@ -0,0 +1,10 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export declare type Variant = 'info' | 'success' | 'error';
3
+ export declare type Actions = (ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ label: string;
5
+ })[];
6
+ export interface SnackbarOptionsProps {
7
+ actions?: Actions;
8
+ variant?: Variant;
9
+ duration?: number;
10
+ }
@@ -0,0 +1 @@
1
+ export declare const useSnackbar: () => import("./SnackbarProvider/SnackbarStateProvider").SnackbarContextProps;
@@ -0,0 +1,16 @@
1
+ import { HTMLProps, ReactElement } from 'react';
2
+ import { Props as IconProps } from '../Icon/Icon';
3
+ import { Props as ContextMenuProps } from '../ContextMenu/ContextMenu';
4
+ interface ImageProps {
5
+ src: string;
6
+ alt: string;
7
+ }
8
+ export interface Props extends Omit<HTMLProps<HTMLDivElement>, 'contextMenu'> {
9
+ title: string;
10
+ imageProps?: ImageProps;
11
+ iconProps?: IconProps;
12
+ loading?: boolean;
13
+ menu?: ReactElement<ContextMenuProps>;
14
+ }
15
+ export declare const Tile: ({ title, imageProps, iconProps, className, loading, menu, ...rest }: Props) => JSX.Element;
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import { HTMLProps, ReactNode } from 'react';
2
+ export interface Props extends HTMLProps<HTMLDivElement> {
3
+ children: ReactNode;
4
+ loading?: boolean;
5
+ }
6
+ export declare const Tiles: ({ children, className, loading, ...rest }: Props) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { HTMLProps, ReactNode } from 'react';
2
+ import { Offset, Placement } from '../hooks/usePosition';
3
+ export interface Props extends Omit<HTMLProps<HTMLDivElement>, 'label'> {
4
+ label: string | ReactNode;
5
+ children: string;
6
+ placement?: Placement;
7
+ offset?: Offset;
8
+ transformOrigin?: Placement;
9
+ domRoot?: HTMLElement;
10
+ }
11
+ export declare const Tooltip: ({ children, className, placement, offset, transformOrigin, domRoot, label, ...rest }: Props) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { Spacing } from '../hooks/useSpacing';
3
+ declare const validVariants: readonly ["h1", "h2", "h3", "h4", "body", "body-bold", "sub-text", "code"];
4
+ export declare type Variant = typeof validVariants[number];
5
+ export interface Props extends HTMLAttributes<HTMLElement> {
6
+ children: ReactNode;
7
+ variant: Variant;
8
+ tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'div' | 'code' | 'span' | 'sup' | 'sub' | 'strong' | 'em' | 'small' | 'mark' | 'del' | 'ins' | 'blockquote';
9
+ spacing?: Spacing;
10
+ }
11
+ export declare const Typography: ({ children, variant, tag, style, spacing, className, ...rest }: Props) => JSX.Element;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface Step {
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface Props extends Omit<React.HTMLProps<HTMLDivElement>, 'onClick'> {
7
+ steps: Step[];
8
+ currentStepNo: number;
9
+ onClick?: (stepNo: number) => void;
10
+ futureStepsClickable?: boolean;
11
+ stepScreenReaderLabel: string;
12
+ }
13
+ export declare const BaseWizardSteps: ({ steps, currentStepNo, onClick, futureStepsClickable, stepScreenReaderLabel, ...restProps }: Props) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Step } from './BaseWizardSteps/BaseWizardSteps';
3
+ export declare type WizardMode = 'add' | 'edit';
4
+ export interface Props {
5
+ steps: Step[];
6
+ mode: WizardMode;
7
+ initialStepNo?: number;
8
+ onStepChange: (stepNo: number) => void;
9
+ stepScreenReaderLabel: string;
10
+ children: React.ReactNode;
11
+ }
12
+ export declare const Wizard: (props: Props) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface Props extends React.HTMLProps<HTMLDivElement> {
3
+ cancelButtonLabel: string;
4
+ previousButtonLabel: string;
5
+ nextButtonLabel: string;
6
+ saveAndCloseButtonLabel: string;
7
+ onCancel: () => void;
8
+ onNext: (currentStepNo: number) => boolean;
9
+ onPrevious?: () => void;
10
+ onSaveAndClose: (currentStepNo: number) => void;
11
+ }
12
+ export declare const WizardActions: ({ onCancel, onNext, onPrevious, onSaveAndClose, cancelButtonLabel, previousButtonLabel, nextButtonLabel, saveAndCloseButtonLabel, }: Props) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React, { Dispatch } from 'react';
2
+ import { WizardActions, WizardStateType } from './wizardStateReducer';
3
+ declare const WizardStateContext: React.Context<{
4
+ state: WizardStateType;
5
+ dispatch: Dispatch<WizardActions>;
6
+ }>;
7
+ export interface Props {
8
+ initialState: WizardStateType;
9
+ children?: React.ReactNode;
10
+ }
11
+ declare const WizardStateProvider: ({ children, initialState }: Props) => JSX.Element;
12
+ export { WizardStateProvider, WizardStateContext };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface Props extends Omit<React.HTMLProps<HTMLDivElement>, 'onClick'> {
3
+ onStepClick: (currentStepNo: number, selectedStepNo: number) => boolean;
4
+ }
5
+ export declare const WizardSteps: ({ onStepClick, ...restProps }: Props) => JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { Reducer } from 'react';
2
+ import { Step } from './BaseWizardSteps/BaseWizardSteps';
3
+ import { WizardMode } from './Wizard';
4
+ declare type WizardStateType = {
5
+ steps: Step[];
6
+ currentStepNo: number;
7
+ mode: WizardMode;
8
+ stepScreenReaderLabel: string;
9
+ };
10
+ interface SetWizardStateAction {
11
+ type: 'SET_STATE';
12
+ payload: {
13
+ steps: Step[];
14
+ mode: WizardMode;
15
+ stepScreenReaderLabel: string;
16
+ };
17
+ }
18
+ interface ChangeCurrentStepNoAction {
19
+ type: 'CHANGE_CURRENT_STEP_NO';
20
+ payload: number;
21
+ }
22
+ declare const setWizardState: (steps: Step[], mode: WizardMode, stepScreenReaderLabel: string) => SetWizardStateAction;
23
+ declare const changeCurrentStepNo: (currentStepNo: number) => ChangeCurrentStepNoAction;
24
+ declare type WizardActions = SetWizardStateAction | ChangeCurrentStepNoAction;
25
+ declare const reducer: Reducer<WizardStateType, WizardActions>;
26
+ export { setWizardState, changeCurrentStepNo, reducer, WizardActions, WizardStateType };
@@ -0,0 +1,47 @@
1
+ import { HTMLAttributes, ReactChild } from 'react';
2
+ interface CSSProperties {
3
+ colorPrimary?: string;
4
+ colorSecondary?: string;
5
+ colorTertiary?: string;
6
+ defaultLineHeight?: string;
7
+ buttonBorderRadius?: string;
8
+ buttonBorderWidth?: string;
9
+ buttonFontSize?: string;
10
+ buttonBorderStyle?: string;
11
+ buttonFillTextColor?: string;
12
+ buttonFillBackgroundColor?: string;
13
+ buttonOutlineHoverTextColor?: string;
14
+ inputBorderColor?: string;
15
+ inputBorderRadius?: string;
16
+ inputBorderWidth?: string;
17
+ inputBorderStyle?: string;
18
+ modalShadowColor?: string;
19
+ modalBackgroundColor?: string;
20
+ modalHeaderBackgroundColor?: string;
21
+ snackbarTextColor?: string;
22
+ snackbarInfoBackgroundColor?: string;
23
+ snackbarSuccessBackgroundColor?: string;
24
+ snackbarErrorBackgroundColor?: string;
25
+ snackbarBorderRadius?: string;
26
+ default?: string;
27
+ success?: string;
28
+ error?: string;
29
+ disabled?: string;
30
+ greyedOut?: string;
31
+ warning?: string;
32
+ fontFamily?: string;
33
+ fontFamilyCode?: string;
34
+ fontSize?: string;
35
+ fontSizeH1?: string;
36
+ fontSizeH2?: string;
37
+ fontSizeH3?: string;
38
+ fontSizeH4?: string;
39
+ fontSizeSub?: string;
40
+ fontSizeCode?: string;
41
+ }
42
+ export interface Props extends HTMLAttributes<HTMLDivElement> {
43
+ children?: ReactChild;
44
+ properties?: CSSProperties;
45
+ }
46
+ export declare const BaseStyling: ({ children, properties }: Props) => JSX.Element | null;
47
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const useAnimation: <RefElement extends HTMLElement>(callback: () => void) => {
3
+ ref: import("react").RefObject<RefElement>;
4
+ animationStarted: boolean;
5
+ startAnimation: () => void;
6
+ };
@@ -0,0 +1 @@
1
+ export declare const useBodyClick: (checkFunction: (event: MouseEvent) => boolean, callbackFunction: (...args: unknown[]) => unknown, dependingStateVariable: React.ComponentState | React.ComponentState[]) => void;
@@ -0,0 +1,13 @@
1
+ export interface ConfigObject {
2
+ name: string | undefined;
3
+ errorMessage?: string;
4
+ error?: boolean;
5
+ parentErrorId?: string;
6
+ helperText?: string;
7
+ parentHelperId?: string;
8
+ }
9
+ export declare const useFormSelector: (configObject: ConfigObject) => {
10
+ describedBy: string;
11
+ errorId: string;
12
+ identifier: string;
13
+ };
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ export interface ConfigObject {
3
+ relativeElement: RefElement;
4
+ elementToBePositioned: RefElement;
5
+ transformOrigin?: Placement;
6
+ placement?: Placement;
7
+ offset?: Offset;
8
+ }
9
+ export declare type HorizontalPlacment = 'left' | 'center' | 'centerh' | 'right';
10
+ export declare type VerticalPlacement = 'top' | 'center' | 'centerv' | 'bottom';
11
+ declare type RefElement = React.RefObject<HTMLOrSVGElement> | undefined;
12
+ export interface Placement {
13
+ horizontal: HorizontalPlacment;
14
+ vertical: VerticalPlacement;
15
+ }
16
+ export interface Offset {
17
+ top: number;
18
+ right: number;
19
+ bottom: number;
20
+ left: number;
21
+ }
22
+ export interface Position {
23
+ top: PositionType;
24
+ right: PositionType;
25
+ bottom: PositionType;
26
+ left: PositionType;
27
+ }
28
+ declare type PositionType = number | 'initial';
29
+ export declare const usePosition: (providedConfigObject?: ConfigObject) => {
30
+ top: PositionType;
31
+ bottom: PositionType;
32
+ left: PositionType;
33
+ right: PositionType;
34
+ calculatePosition: () => void;
35
+ };
36
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const useScroll: (callbackFunction: (event: Event) => unknown, dependingStateVariable?: React.ComponentState[]) => void;
@@ -0,0 +1,18 @@
1
+ import { CSSProperties } from 'react';
2
+ declare type SpacingMultiplier = 0 | 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
3
+ declare type SpacingMultiplierStringOrNumber = `${SpacingMultiplier}` | SpacingMultiplier;
4
+ declare type MultiValueSpacingMultiplier = `${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier}` | `${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier}` | `${SpacingMultiplier} ${SpacingMultiplier}` | SpacingMultiplierStringOrNumber;
5
+ export interface Spacing {
6
+ padding?: MultiValueSpacingMultiplier;
7
+ paddingTop?: SpacingMultiplierStringOrNumber;
8
+ paddingBottom?: SpacingMultiplierStringOrNumber;
9
+ paddingLeft?: SpacingMultiplierStringOrNumber;
10
+ paddingRight?: SpacingMultiplierStringOrNumber;
11
+ margin?: MultiValueSpacingMultiplier;
12
+ marginTop?: SpacingMultiplierStringOrNumber;
13
+ marginBottom?: SpacingMultiplierStringOrNumber;
14
+ marginLeft?: SpacingMultiplierStringOrNumber;
15
+ marginRight?: SpacingMultiplierStringOrNumber;
16
+ }
17
+ export declare const useSpacing: (spacingProps?: Spacing | undefined, style?: CSSProperties | undefined) => CSSProperties | undefined;
18
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Type as InputTypes } from '../Form/Input/Input';
3
+ export declare const useWrapper: (value?: string | undefined, placeholder?: string | undefined, type?: InputTypes | undefined) => {
4
+ helperId: string;
5
+ errorId: string;
6
+ labelId: string;
7
+ floatingLabelActive: boolean;
8
+ setFloatingLabelActive: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
+ hasFocus: boolean;
10
+ setHasFocus: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
+ };
@@ -0,0 +1,43 @@
1
+ /** Components */
2
+ export { BaseStyling } from './_BaseStyling_/BaseStyling';
3
+ export { Typography } from './Typography/Typography';
4
+ export { Button } from './Button/Button';
5
+ export { Link } from './Link/Link';
6
+ export { IconButton } from './Button/IconButton';
7
+ export { Icon, Icons } from './Icon/Icon';
8
+ export { Dialog } from './Dialog/Dialog';
9
+ export { Modal } from './Modal/Modal';
10
+ export { ModalActions } from './Modal/ModalActions/ModalActions';
11
+ export { ModalContent } from './Modal/ModalContent/ModalContent';
12
+ export { ModalHeader } from './Modal/ModalHeader/ModalHeader';
13
+ export { Tooltip } from './Tooltip/Tooltip';
14
+ export { Tiles } from './Tiles/Tiles';
15
+ export { Tile } from './Tiles/Tile';
16
+ export { ContextMenu } from './ContextMenu/ContextMenu';
17
+ export { ContextMenuItem } from './ContextMenu/ContextMenuItem';
18
+ export { Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
19
+ export { SnackbarProvider } from './Snackbar/SnackbarProvider/SnackbarProvider';
20
+ export { useSnackbar } from './Snackbar/useSnackbar';
21
+ /** Form components */
22
+ export { Form } from './Form/Form';
23
+ export { Fieldset } from './Form/Fieldset/Fieldset';
24
+ export { FormControl } from './Form/FormControl/FormControl';
25
+ export { FormGroup } from './Form/FormGroup/FormGroup';
26
+ export { FormHelperText } from './Form/FormHelperText/FormHelperText';
27
+ export { Label } from './Form/Label/Label';
28
+ export { Select } from './Form/Select/Select';
29
+ export { Option } from './Form/Select/Option';
30
+ export { Textarea } from './Form/Textarea/Textarea';
31
+ export { CheckboxWrapper } from './Form/Wrapper/CheckboxWrapper/CheckboxWrapper';
32
+ export { InputWrapper } from './Form/Wrapper/InputWrapper/InputWrapper';
33
+ export { RadioWrapper } from './Form/Wrapper/RadioWrapper/RadioWrapper';
34
+ export { SelectWrapper } from './Form/Wrapper/SelectWrapper/SelectWrapper';
35
+ export { TextareaWrapper } from './Form/Wrapper/TextareaWrapper/TextareaWrapper';
36
+ export { Input } from './Form/Input/Input';
37
+ export { Radio } from './Form/Radio/Radio';
38
+ export { Checkbox } from './Form/Checkbox/Checkbox';
39
+ /** Wizard */
40
+ export { BaseWizardSteps, Props as BaseWizardStepsProps, Step as WizardStep, } from './Wizard/BaseWizardSteps/BaseWizardSteps';
41
+ export { WizardActions } from './Wizard/WizardActions/WizardActions';
42
+ export { WizardSteps } from './Wizard/WizardSteps/WizardSteps';
43
+ export { Wizard, Props as WizardProps } from './Wizard/Wizard';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./react-lib-components.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./react-lib-components.cjs.development.js')
8
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ /**
3
+ * By default typescript does not allow data-* attributes on HTMLAttributes interface. We extend the default React.HTMLAttributes interface here and add the dataAttribute possibility into it.
4
+ * An example of this can be found in Checkbox.tsx. We assign wrapperProps to the HTMLAttributes interface below, and are now able to add a test-id inside of Checkbox.test.tsx on line 77.
5
+ */
6
+ declare type DataAttributeKey = `data-${string}`;
7
+ export interface HTMLProps<T> extends React.HTMLProps<T> {
8
+ [dataAttribute: DataAttributeKey]: any;
9
+ }
10
+ export interface HTMLAttributes<T> extends React.HTMLAttributes<T> {
11
+ [dataAttribute: DataAttributeKey]: any;
12
+ }
13
+ export {};