@skedulo/sked-ui 0.0.0-preview-react-18

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 (203) hide show
  1. package/README.md +107 -0
  2. package/dist/components/IntersectionObserverWrapper/IntersectionObserverWrapper.d.ts +39 -0
  3. package/dist/components/IntersectionObserverWrapper/IntersectionObserverWrapper.stories.d.ts +1 -0
  4. package/dist/components/avatar/Avatar.d.ts +46 -0
  5. package/dist/components/avatar/Avatar.stories.d.ts +1 -0
  6. package/dist/components/avatar/AvatarDetail.d.ts +18 -0
  7. package/dist/components/avatar/AvatarGroup.d.ts +27 -0
  8. package/dist/components/avatar/Slot.d.ts +42 -0
  9. package/dist/components/avatar/__tests__/Avatar.spec.d.ts +1 -0
  10. package/dist/components/avatar/__tests__/AvatarDetail.spec.d.ts +1 -0
  11. package/dist/components/avatar/__tests__/GroupAvatars.spec.d.ts +1 -0
  12. package/dist/components/avatar/__tests__/Slot.spec.d.ts +1 -0
  13. package/dist/components/badge/Badge.d.ts +18 -0
  14. package/dist/components/badge/Badge.stories.d.ts +17 -0
  15. package/dist/components/badge/__tests__/Badge.spec.d.ts +1 -0
  16. package/dist/components/button-group/ButtonGroup.d.ts +6 -0
  17. package/dist/components/button-group/ButtonGroup.stories.d.ts +1 -0
  18. package/dist/components/button-group/__tests__/ButtonGroup.spec.d.ts +1 -0
  19. package/dist/components/buttons/Buttons.stories.d.ts +1 -0
  20. package/dist/components/buttons/button/Button.d.ts +60 -0
  21. package/dist/components/buttons/button/__tests__/Button.spec.d.ts +1 -0
  22. package/dist/components/buttons/button-dropdown/ButtonDropdown.d.ts +14 -0
  23. package/dist/components/buttons/button-dropdown/__tests__/ButtonDropdown.spec.d.ts +1 -0
  24. package/dist/components/buttons/icon-button/IconButton.d.ts +13 -0
  25. package/dist/components/buttons/icon-button/__tests__/IconButton.spec.d.ts +1 -0
  26. package/dist/components/buttons/icon-button-dropdown/IconButtonDropdown.d.ts +5 -0
  27. package/dist/components/buttons/icon-button-dropdown/__tests__/IconButtonDropdown.spec.d.ts +1 -0
  28. package/dist/components/buttons/interfaces.d.ts +10 -0
  29. package/dist/components/calendar-controls/CalendarControls-utils.d.ts +7 -0
  30. package/dist/components/calendar-controls/CalendarControls.d.ts +30 -0
  31. package/dist/components/calendar-controls/CalendarControls.stories.d.ts +1 -0
  32. package/dist/components/calendar-controls/elements/DateSelector.d.ts +47 -0
  33. package/dist/components/calendar-controls/elements/NavigationButtons.d.ts +6 -0
  34. package/dist/components/calendar-controls/elements/RangePicker.d.ts +21 -0
  35. package/dist/components/calendar-controls/elements/TodayButton.d.ts +5 -0
  36. package/dist/components/datepicker/DateTime.d.ts +51 -0
  37. package/dist/components/datepicker/DateTime.stories.d.ts +1 -0
  38. package/dist/components/datepicker/Datepicker.d.ts +125 -0
  39. package/dist/components/datepicker/Datepicker.stories.d.ts +1 -0
  40. package/dist/components/datepicker/Time.d.ts +43 -0
  41. package/dist/components/datepicker/Time.stories.d.ts +1 -0
  42. package/dist/components/datepicker/__tests__/DateTime.spec.d.ts +1 -0
  43. package/dist/components/datepicker/__tests__/Datepicker.spec.d.ts +1 -0
  44. package/dist/components/datepicker/__tests__/Time.spec.d.ts +1 -0
  45. package/dist/components/dynamic-table/DynamicTable-utils.d.ts +45 -0
  46. package/dist/components/dynamic-table/DynamicTable.d.ts +79 -0
  47. package/dist/components/dynamic-table/DynamicTable.stories.d.ts +1 -0
  48. package/dist/components/dynamic-table/__tests__/DynamicTable-renders.spec.d.ts +1 -0
  49. package/dist/components/dynamic-table/__tests__/DynamicTable-test-utils.d.ts +3 -0
  50. package/dist/components/dynamic-table/__tests__/DynamicTable-utils.spec.d.ts +1 -0
  51. package/dist/components/dynamic-table/__tests__/DynamicTable.spec.d.ts +1 -0
  52. package/dist/components/dynamic-table/__tests__/__mocks__/table-data.d.ts +16 -0
  53. package/dist/components/dynamic-table/interfaces.d.ts +52 -0
  54. package/dist/components/emptystate/EmptyState.d.ts +9 -0
  55. package/dist/components/emptystate/EmptyState.spec.d.ts +1 -0
  56. package/dist/components/emptystate/EmptyState.stories.d.ts +1 -0
  57. package/dist/components/filter-bar/FilterBar.d.ts +54 -0
  58. package/dist/components/filter-bar/FilterBar.stories.d.ts +1 -0
  59. package/dist/components/filter-bar/__tests__/FilterBar.spec.d.ts +1 -0
  60. package/dist/components/filter-bar/filter-list/FilterList.d.ts +10 -0
  61. package/dist/components/filter-bar/filter-list/FilterListWithApply.d.ts +24 -0
  62. package/dist/components/filter-bar/filter-list/FilterSearch.d.ts +21 -0
  63. package/dist/components/filter-bar/filter-list/RemoteSearch.d.ts +25 -0
  64. package/dist/components/filter-bar/filter-list/__tests__/FilterList.spec.d.ts +1 -0
  65. package/dist/components/filter-bar/filter-list/__tests__/FilterListWithApply.spec.d.ts +1 -0
  66. package/dist/components/filter-bar/filter-list/__tests__/FilterSearch.spec.d.ts +1 -0
  67. package/dist/components/filter-bar/filter-list/__tests__/RemoteSearch.spec.d.ts +1 -0
  68. package/dist/components/filter-bar/filter-pill/FilterPill.d.ts +23 -0
  69. package/dist/components/filter-bar/filter-pill/__tests__/FilterPill.spec.d.ts +1 -0
  70. package/dist/components/filter-bar/interfaces.d.ts +43 -0
  71. package/dist/components/forms/Forms.stories.d.ts +1 -0
  72. package/dist/components/forms/ReadOnly.d.ts +11 -0
  73. package/dist/components/forms/SkedFormValidation.d.ts +98 -0
  74. package/dist/components/forms/SkedFormValidation.spec.d.ts +1 -0
  75. package/dist/components/forms/__tests__/ReadOnly.spec.d.ts +1 -0
  76. package/dist/components/forms/elements/AsyncMultiSearchSelect.d.ts +3 -0
  77. package/dist/components/forms/elements/AsyncSearchSelect.d.ts +6 -0
  78. package/dist/components/forms/elements/AsyncSelectSearch.stories.d.ts +1 -0
  79. package/dist/components/forms/elements/FormElements.d.ts +54 -0
  80. package/dist/components/forms/elements/MultiSearchSelect.d.ts +3 -0
  81. package/dist/components/forms/elements/MultiSearchSelect.stories.d.ts +1 -0
  82. package/dist/components/forms/elements/NumberInput.d.ts +17 -0
  83. package/dist/components/forms/elements/PlainAsyncMultiSearchSelect.d.ts +8 -0
  84. package/dist/components/forms/elements/PlainAsyncMultiSearchSelect.stories.d.ts +1 -0
  85. package/dist/components/forms/elements/PlainMultiSearchSelect.d.ts +24 -0
  86. package/dist/components/forms/elements/PlainMultiSearchSelect.stories.d.ts +1 -0
  87. package/dist/components/forms/elements/SearchSelect.d.ts +6 -0
  88. package/dist/components/forms/elements/SearchSelect.stories.d.ts +1 -0
  89. package/dist/components/forms/elements/TextArea.d.ts +25 -0
  90. package/dist/components/forms/elements/TextArea.spec.d.ts +1 -0
  91. package/dist/components/forms/elements/__tests__/AsyncMultiSearchSelect.spec.d.ts +1 -0
  92. package/dist/components/forms/elements/__tests__/AsyncSearchSelect.spec.d.ts +1 -0
  93. package/dist/components/forms/elements/__tests__/FormElements.spec.d.ts +1 -0
  94. package/dist/components/forms/elements/__tests__/MultiSearchSelect.spec.d.ts +1 -0
  95. package/dist/components/forms/elements/__tests__/NumberInput.spec.d.ts +1 -0
  96. package/dist/components/forms/elements/__tests__/PlainAsyncMultiSearchSelect.spec.d.ts +1 -0
  97. package/dist/components/forms/elements/__tests__/PlainMultiSearchSelect.spec.d.ts +1 -0
  98. package/dist/components/forms/elements/__tests__/SearchSelect-renders.spec.d.ts +1 -0
  99. package/dist/components/forms/elements/__tests__/SearchSelect.spec.d.ts +1 -0
  100. package/dist/components/forms/elements/__tests__/__mocks__/searchData.d.ts +11 -0
  101. package/dist/components/forms/elements/interfaces.d.ts +105 -0
  102. package/dist/components/forms/elements/select-components.d.ts +38 -0
  103. package/dist/components/forms/elements/select-hooks.d.ts +38 -0
  104. package/dist/components/forms/elements/select-utils.d.ts +22 -0
  105. package/dist/components/icon/Icon.d.ts +26 -0
  106. package/dist/components/icon/Icon.spec.d.ts +1 -0
  107. package/dist/components/icon/Icon.stories.d.ts +1 -0
  108. package/dist/components/icon/iconPaths.d.ts +131 -0
  109. package/dist/components/info-card/InfoCard.d.ts +5 -0
  110. package/dist/components/info-card/InfoCard.stories.d.ts +1 -0
  111. package/dist/components/info-card/InfoCardBody.d.ts +13 -0
  112. package/dist/components/info-card/InfoCardFooter.d.ts +2 -0
  113. package/dist/components/info-card/InfoCardHeader.d.ts +11 -0
  114. package/dist/components/info-card/index.d.ts +4 -0
  115. package/dist/components/inline-banner/InlineBanner.d.ts +9 -0
  116. package/dist/components/inline-banner/InlineBanner.spec.d.ts +1 -0
  117. package/dist/components/inline-banner/InlineBanner.stories.d.ts +1 -0
  118. package/dist/components/link/Link.d.ts +5 -0
  119. package/dist/components/link/Link.spec.d.ts +1 -0
  120. package/dist/components/link/Link.stories.d.ts +17 -0
  121. package/dist/components/loader/Loading.d.ts +16 -0
  122. package/dist/components/loader/Loading.stories.d.ts +1 -0
  123. package/dist/components/loader/__tests__/Loading.spec.d.ts +1 -0
  124. package/dist/components/loader/spinner/LoadingSpinner.d.ts +21 -0
  125. package/dist/components/lozenge/CustomLozenge.d.ts +21 -0
  126. package/dist/components/lozenge/Lozenge.d.ts +22 -0
  127. package/dist/components/lozenge/Lozenge.stories.d.ts +1 -0
  128. package/dist/components/lozenge/__tests__/Lozenge.spec.d.ts +1 -0
  129. package/dist/components/menus/Menus.stories.d.ts +1 -0
  130. package/dist/components/menus/actionmenu/ActionMenu.d.ts +13 -0
  131. package/dist/components/menus/cardactionmenu/CardActionMenu.d.ts +10 -0
  132. package/dist/components/menus/index.d.ts +2 -0
  133. package/dist/components/menus/menu/Menu.d.ts +18 -0
  134. package/dist/components/modals/Modal.spec.d.ts +1 -0
  135. package/dist/components/modals/Modal.stories.d.ts +1 -0
  136. package/dist/components/modals/Modals.d.ts +33 -0
  137. package/dist/components/pagination/Pagination-utils.d.ts +1 -0
  138. package/dist/components/pagination/Pagination-utils.spec.d.ts +1 -0
  139. package/dist/components/pagination/Pagination.d.ts +3 -0
  140. package/dist/components/pagination/Pagination.spec.d.ts +1 -0
  141. package/dist/components/pagination/Pagination.stories.d.ts +1 -0
  142. package/dist/components/pagination/PaginationCount/PaginationCount.d.ts +3 -0
  143. package/dist/components/pagination/PaginationCount/PaginationCount.spec.d.ts +1 -0
  144. package/dist/components/pagination/PaginationPages/PaginationPages.d.ts +14 -0
  145. package/dist/components/pagination/PaginationPages/PaginationPages.spec.d.ts +1 -0
  146. package/dist/components/pagination/interfaces.d.ts +18 -0
  147. package/dist/components/pill/Pill.d.ts +25 -0
  148. package/dist/components/pill/Pill.spec.d.ts +1 -0
  149. package/dist/components/pill/Pill.stories.d.ts +1 -0
  150. package/dist/components/popout/PopOut.d.ts +61 -0
  151. package/dist/components/popout/PopOut.stories.d.ts +1 -0
  152. package/dist/components/popout/PopOutBase.d.ts +39 -0
  153. package/dist/components/popout/useClickAway.d.ts +2 -0
  154. package/dist/components/popout/usePopOut.d.ts +9 -0
  155. package/dist/components/popups/info-window/InfoWindow.d.ts +45 -0
  156. package/dist/components/popups/info-window/InfoWindow.spec.d.ts +1 -0
  157. package/dist/components/popups/info-window/InfoWindow.stories.d.ts +1 -0
  158. package/dist/components/popups/info-window/InfoWindowOld.d.ts +160 -0
  159. package/dist/components/popups/info-window/InfoWindowPopOut.d.ts +84 -0
  160. package/dist/components/popups/info-window/LegacyInfoWindow.d.ts +159 -0
  161. package/dist/components/popups/info-window/PortalWrapper.d.ts +6 -0
  162. package/dist/components/popups/info-window/info-window-utils.d.ts +43 -0
  163. package/dist/components/popups/info-window/info-window-utils.spec.d.ts +1 -0
  164. package/dist/components/popups/info-window/useClickAway.d.ts +25 -0
  165. package/dist/components/popups/info-window/useInfoWindowModifiers.d.ts +2 -0
  166. package/dist/components/popups/overflow-tooltip/OverflowTooltip.d.ts +30 -0
  167. package/dist/components/popups/tooltip/LegacyInfoWindow.d.ts +154 -0
  168. package/dist/components/popups/tooltip/Tooltip.d.ts +21 -0
  169. package/dist/components/popups/tooltip/Tooltip.spec.d.ts +1 -0
  170. package/dist/components/popups/tooltip/Tooltip.stories.d.ts +1 -0
  171. package/dist/components/popups/tooltip/info-window-utils.d.ts +43 -0
  172. package/dist/components/popups/tooltip/info-window-utils.spec.d.ts +1 -0
  173. package/dist/components/portal/Portal.d.ts +22 -0
  174. package/dist/components/search-box/SearchBox.d.ts +9 -0
  175. package/dist/components/search-box/SearchBox.spec.d.ts +1 -0
  176. package/dist/components/status-icon/StatusIcon.d.ts +11 -0
  177. package/dist/components/status-icon/StatusIcon.spec.d.ts +1 -0
  178. package/dist/components/status-icon/StatusIcon.stories.d.ts +1 -0
  179. package/dist/components/table/Table.d.ts +16 -0
  180. package/dist/components/table/Table.spec.d.ts +1 -0
  181. package/dist/components/table/Table.stories.d.ts +1 -0
  182. package/dist/components/tabs/Tabs/Tabs.d.ts +36 -0
  183. package/dist/components/tabs/Tabs/TabsMenuItem.d.ts +22 -0
  184. package/dist/components/tabs/Tabs/TabsRoutingUtils.d.ts +28 -0
  185. package/dist/components/tabs/Tabs/__tests__/Tabs.spec.d.ts +1 -0
  186. package/dist/components/tabs/Tabs/__tests__/TabsMenuItem.spec.d.ts +1 -0
  187. package/dist/components/tabs/Tabs/__tests__/TabsRoutingUtils.spec.d.ts +1 -0
  188. package/dist/components/tabs/Tabs/interfaces.d.ts +64 -0
  189. package/dist/components/tabs/Tabs.stories.d.ts +1 -0
  190. package/dist/components/text/MultilineContent.d.ts +6 -0
  191. package/dist/components/text/MultilineContent.spec.d.ts +1 -0
  192. package/dist/hooks/useDebounce.d.ts +1 -0
  193. package/dist/index.d.ts +59 -0
  194. package/dist/index.js +66690 -0
  195. package/dist/utils/Option.d.ts +58 -0
  196. package/dist/utils/Option.spec.d.ts +1 -0
  197. package/dist/utils/Route.d.ts +4 -0
  198. package/dist/utils/Strings.d.ts +1 -0
  199. package/dist/utils/Types.d.ts +6 -0
  200. package/dist/utils/__tests__/Route.spec.d.ts +1 -0
  201. package/dist/utils/testing-utils.d.ts +7 -0
  202. package/package.json +179 -0
  203. package/yarn.lock +17865 -0
@@ -0,0 +1,131 @@
1
+ declare const _default: {
2
+ actions: any;
3
+ activity: any;
4
+ archive: any;
5
+ arrowLeft: any;
6
+ arrowUp: any;
7
+ arrowDown: any;
8
+ attachmentMessaging: any;
9
+ attachments: any;
10
+ attribute: any;
11
+ attributeFilled: any;
12
+ availability: any;
13
+ bell: any;
14
+ bellAlert: any;
15
+ bookingGrid: any;
16
+ bookmark: any;
17
+ calendar: any;
18
+ calendarNavLeft: any;
19
+ calendarNavRight: any;
20
+ cancel: any;
21
+ cardSize: any;
22
+ close: any;
23
+ chat: any;
24
+ chatFilled: any;
25
+ chevronUp: any;
26
+ chevronDown: any;
27
+ chevronDownFilled: any;
28
+ chevronLeft: any;
29
+ chevronRight: any;
30
+ columns: any;
31
+ contact: any;
32
+ content: any;
33
+ copy: any;
34
+ critical: any;
35
+ dashboard: any;
36
+ dateRange: any;
37
+ details: any;
38
+ dispatch: any;
39
+ edit: any;
40
+ ellipsisVertical: any;
41
+ emoji: any;
42
+ exclamation: any;
43
+ exclamationFill: any;
44
+ filter: any;
45
+ filterFunnel: any;
46
+ filterNew: any;
47
+ glasses: any;
48
+ globe: any;
49
+ grid: any;
50
+ grip: any;
51
+ hash: any;
52
+ help: any;
53
+ helpFilled: any;
54
+ hide: any;
55
+ info: any;
56
+ infoFill: any;
57
+ infoOutline: any;
58
+ jobDependency: any;
59
+ jobFields: any;
60
+ jobFill: any;
61
+ jobs: any;
62
+ location: any;
63
+ locked: any;
64
+ logout: any;
65
+ map: any;
66
+ mapResource: any;
67
+ megaphone: any;
68
+ mention: any;
69
+ minus: any;
70
+ normal: any;
71
+ notes: any;
72
+ notify: any;
73
+ openLink: any;
74
+ optimise: any;
75
+ optimiseFill: any;
76
+ outOfFilter: any;
77
+ paperFold: any;
78
+ phone: any;
79
+ pin: any;
80
+ planeLanding: any;
81
+ planeLandingGround: any;
82
+ planeTakeoff: any;
83
+ plus: any;
84
+ processing: any;
85
+ push: any;
86
+ recurring: any;
87
+ reload: any;
88
+ remove: any;
89
+ reorder: any;
90
+ resource: any;
91
+ resourceAbove: any;
92
+ resourceAdd: any;
93
+ resourceBelow: any;
94
+ resourceRemove: any;
95
+ restore: any;
96
+ salesforce: any;
97
+ scheduling: any;
98
+ search: any;
99
+ settings: any;
100
+ send: any;
101
+ shift: any;
102
+ shiftOvernight: any;
103
+ skedulo: any;
104
+ skeduloText: any;
105
+ sms: any;
106
+ sortAscending: any;
107
+ sortDescending: any;
108
+ suggest: any;
109
+ swimlane: any;
110
+ swimlaneVertical: any;
111
+ tag: any;
112
+ tasks: any;
113
+ tick: any;
114
+ tickCircle: any;
115
+ time: any;
116
+ timeConstraint: any;
117
+ today: any;
118
+ thread: any;
119
+ trash: any;
120
+ unlocked: any;
121
+ unschedule: any;
122
+ upDown: any;
123
+ upload: any;
124
+ urgent: any;
125
+ view: any;
126
+ warning: any;
127
+ warningFill: any;
128
+ zoomIn: any;
129
+ zoomOut: any;
130
+ };
131
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * This is a wrapper for the other InfoCard components to sit in
4
+ */
5
+ export declare const InfoCard: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ interface IInfoCardBody {
3
+ description: React.ReactNode;
4
+ contact?: React.ReactNode;
5
+ address?: React.ReactNode;
6
+ tags?: React.ReactNode;
7
+ /**
8
+ * This will be wrapped in an InlineBanner
9
+ */
10
+ exception?: React.ReactNode;
11
+ }
12
+ export declare const InfoCardBody: React.FC<IInfoCardBody & React.HTMLAttributes<HTMLDivElement>>;
13
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const InfoCardFooter: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { ICardActionMenu } from '../menus/cardactionmenu/CardActionMenu';
3
+ interface IInfoCardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ heading: JSX.Element | React.ReactNode;
5
+ subHeading?: JSX.Element | React.ReactNode;
6
+ onClose?: ICardActionMenu['onClose'];
7
+ onView?: ICardActionMenu['onView'];
8
+ actions?: ICardActionMenu['menuItems'];
9
+ }
10
+ export declare const InfoCardHeader: React.FC<IInfoCardHeaderProps>;
11
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './InfoCard';
2
+ export * from './InfoCardHeader';
3
+ export * from './InfoCardBody';
4
+ export * from './InfoCardFooter';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { IStatusIconProps } from '../status-icon/StatusIcon';
3
+ export interface IInlineBannerProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ type: IStatusIconProps['status'];
5
+ }
6
+ /**
7
+ * Displays a inline banner with various styling depending on the type.
8
+ */
9
+ export declare const InlineBanner: React.SFC<IInlineBannerProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface ILinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ type?: 'primary' | 'secondary';
4
+ }
5
+ export declare const Link: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ import { ILinkProps } from './Link';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
7
+ argTypes: {
8
+ type: {
9
+ options: string[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Basic: ComponentStory<({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element>;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ interface IProps {
3
+ /**
4
+ * className applied to the containing div
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Alignment of the component
9
+ */
10
+ align?: 'left' | 'center' | 'right';
11
+ }
12
+ /**
13
+ * Loading indicator for lists
14
+ */
15
+ export declare const Loading: React.FunctionComponent<IProps>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ interface ILoadingSpinnerProps {
3
+ /**
4
+ * Additional class names
5
+ */
6
+ className?: string;
7
+ /**
8
+ * The size of the loader. If no prop is passed the default size is 24px.
9
+ */
10
+ size?: number;
11
+ /**
12
+ * The color of the loader. If no prop is passed, it uses the color of parent container.
13
+ */
14
+ color?: string;
15
+ }
16
+ /**
17
+ * Loading Spinner inherits the color used in the parent element.
18
+ * It accepts a size prop which defines the size of the spinner in px.
19
+ */
20
+ export declare const LoadingSpinner: React.SFC<ILoadingSpinnerProps>;
21
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { IconNames } from '../icon/Icon';
3
+ import { ITooltipPosition } from '../popups/tooltip/Tooltip';
4
+ export declare type CustomColor = 'yellow-900' | 'yellow-800' | 'yellow-700' | 'yellow-600' | 'yellow-300' | 'yellow-200' | 'yellow-100' | 'orange-900' | 'orange-800' | 'orange-700' | 'orange-600' | 'orange-300' | 'orange-200' | 'orange-100' | 'red-900' | 'red-800' | 'red-700' | 'red-600' | 'red-300' | 'red-200' | 'red-100' | 'pink-900' | 'pink-800' | 'pink-700' | 'pink-600' | 'pink-300' | 'pink-200' | 'pink-100' | 'rose-900' | 'rose-800' | 'rose-700' | 'rose-600' | 'rose-300' | 'rose-200' | 'rose-100' | 'maroon-900' | 'maroon-800' | 'maroon-700' | 'maroon-600' | 'maroon-300' | 'maroon-200' | 'maroon-100' | 'green-900' | 'green-800' | 'green-700' | 'green-600' | 'green-300' | 'green-200' | 'green-100' | 'lime-900' | 'lime-800' | 'lime-700' | 'lime-600' | 'lime-300' | 'lime-200' | 'lime-100' | 'teal-900' | 'teal-800' | 'teal-700' | 'teal-600' | 'teal-300' | 'teal-200' | 'teal-100' | 'cyan-900' | 'cyan-800' | 'cyan-700' | 'cyan-600' | 'cyan-300' | 'cyan-200' | 'cyan-100' | 'sapphire-900' | 'sapphire-800' | 'sapphire-700' | 'sapphire-600' | 'sapphire-300' | 'sapphire-200' | 'sapphire-100' | 'purple-900' | 'purple-800' | 'purple-700' | 'purple-600' | 'purple-300' | 'purple-200' | 'purple-100' | 'indigo-900' | 'indigo-800' | 'indigo-700' | 'indigo-600' | 'indigo-300' | 'indigo-200' | 'indigo-100' | 'neutral-900' | 'neutral-850' | 'neutral-800' | 'neutral-750' | 'neutral-700' | 'neutral-650' | 'neutral-300' | 'neutral-200' | 'white';
5
+ export declare type CustomBorderColor = CustomColor | 'transparent';
6
+ interface ICustomLozenge {
7
+ label: string;
8
+ bg: CustomColor;
9
+ text: CustomColor;
10
+ border: CustomBorderColor;
11
+ bgHover?: CustomColor;
12
+ /**
13
+ * @default small
14
+ */
15
+ size?: 'small' | 'medium' | 'large';
16
+ icon?: IconNames;
17
+ tooltipPosition?: ITooltipPosition;
18
+ }
19
+ declare type LozengeProps = ICustomLozenge & React.HTMLAttributes<HTMLDivElement>;
20
+ export declare const CustomLozenge: React.FC<LozengeProps>;
21
+ export {};
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { IconNames } from '../icon/Icon';
3
+ import { ITooltipPosition } from '../popups/tooltip/Tooltip';
4
+ export declare type LozengeColors = 'neutral-light' | 'neutral' | 'orange' | 'green' | 'cyan' | 'red' | 'sapphire' | 'purple' | 'purple-dark' | 'purple-darker';
5
+ export declare type LozengeTheme = 'transparent' | 'pale' | 'solid';
6
+ interface ILozenge {
7
+ label: string;
8
+ color: LozengeColors;
9
+ /**
10
+ * @default pale
11
+ */
12
+ theme?: LozengeTheme;
13
+ /**
14
+ * @default small
15
+ */
16
+ size?: 'small' | 'medium' | 'large';
17
+ icon?: IconNames;
18
+ tooltipPosition?: ITooltipPosition;
19
+ }
20
+ declare type LozengeProps = ILozenge & React.HTMLAttributes<HTMLDivElement>;
21
+ export declare const Lozenge: React.FC<LozengeProps>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { IconButtonDropdown } from '../../buttons/icon-button-dropdown/IconButtonDropdown';
3
+ export interface IActionMenu extends Omit<IconButtonDropdown, 'icon' | 'tooltipContent'> {
4
+ menuItems: {
5
+ label: string;
6
+ onClick: () => void;
7
+ disabled?: boolean;
8
+ }[];
9
+ }
10
+ /**
11
+ * ActionMenu is a utility component for generating a menu triggered from an ellipse icon
12
+ */
13
+ export declare const ActionMenu: React.FC<IActionMenu>;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { IActionMenu } from '../actionmenu/ActionMenu';
3
+ export interface ICardActionMenu extends Partial<Pick<IActionMenu, 'menuItems'>> {
4
+ onView?: () => void;
5
+ onClose?: () => void;
6
+ }
7
+ /**
8
+ * CardActionMenu is used for InfoCards
9
+ */
10
+ export declare const CardActionMenu: React.FC<ICardActionMenu>;
@@ -0,0 +1,2 @@
1
+ export * from './menu/Menu';
2
+ export * from './actionmenu/ActionMenu';
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ export interface IMenuProps extends React.HTMLAttributes<HTMLUListElement> {
3
+ className?: string;
4
+ }
5
+ export interface IMenuItemProps extends React.HTMLAttributes<HTMLLIElement> {
6
+ className?: string;
7
+ /**
8
+ * Disabled list item
9
+ */
10
+ disabled?: boolean;
11
+ isHighlighted?: boolean;
12
+ }
13
+ /**
14
+ * The Menu component is used as a wrapper for list items when needed to display a menu. Pass in as many list items as you need by wrapping each in a MenuItem wrapper.
15
+ * An example component that makes use of the Menu is the ButtonDropdown component. You can disable individual list items by passing in a disabled prop.
16
+ */
17
+ export declare const Menu: React.ForwardRefExoticComponent<IMenuProps & React.RefAttributes<HTMLUListElement>>;
18
+ export declare const MenuItem: React.ForwardRefExoticComponent<IMenuItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ declare type ModalContentProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'datatype'>;
3
+ interface IDynamicModal {
4
+ header?: JSX.Element;
5
+ footer?: JSX.Element;
6
+ loading?: boolean;
7
+ scrollableContentClassNames?: string;
8
+ }
9
+ export declare const BaseModal: React.FC<Omit<ModalContentProps, 'className'>>;
10
+ /**
11
+ * Use DynamicModal when you have long content in your modal and you want it restricted to the viewport.
12
+ * It accepts a header and footer which will remain static with the child content being placed in the
13
+ * scrollable section.
14
+ */
15
+ export declare const DynamicModal: React.FC<IDynamicModal & ModalContentProps>;
16
+ export interface IConfirmationModalProps {
17
+ onConfirm: (event?: React.MouseEvent<HTMLButtonElement>) => void;
18
+ onCancel: (event?: React.MouseEvent<HTMLButtonElement>) => void;
19
+ confirmButtonText?: string;
20
+ /**
21
+ * Used to indicate the current onConfirm action is in progress.
22
+ */
23
+ useWorkingStateOnConfirm?: boolean;
24
+ }
25
+ export interface IConfirmationModalState {
26
+ confirmActionLoading: boolean;
27
+ }
28
+ export declare class ConfirmationModal extends React.PureComponent<IConfirmationModalProps, IConfirmationModalState> {
29
+ constructor(props: IConfirmationModalProps);
30
+ handleConfirmButtonClick: () => void;
31
+ render(): JSX.Element;
32
+ }
33
+ export {};
@@ -0,0 +1 @@
1
+ export declare function paginate(totalPages: number, currentPage?: number, noOfSiblings?: number): number[];
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IPagination } from './interfaces';
3
+ export declare const Pagination: React.FC<IPagination>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { IPagination } from '../interfaces';
3
+ export declare const PaginationCount: React.SFC<IPagination>;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { IPagination } from '../interfaces';
3
+ export declare const Arrow: React.FC<{
4
+ direction: 'left' | 'right';
5
+ disable: boolean;
6
+ onClick: (event: React.MouseEvent) => void;
7
+ }>;
8
+ export declare const Ellipsis: React.FC;
9
+ export declare const Page: React.FC<{
10
+ pageNo: number;
11
+ isCurrent: boolean;
12
+ onClick?: (event: React.MouseEvent) => void;
13
+ }>;
14
+ export declare const PaginationPages: React.SFC<IPagination>;
@@ -0,0 +1,18 @@
1
+ export interface IPagination {
2
+ /**
3
+ * Total number of items
4
+ */
5
+ itemsTotal: NonNullable<number>;
6
+ /**
7
+ * Number of items per page
8
+ */
9
+ itemsPerPage: NonNullable<number>;
10
+ currentPage: NonNullable<number>;
11
+ /**
12
+ * Optional value for number of pages displayed before/after current page item @default 1
13
+ * This will control the viewable range of pages so that there is always an even amount of page/ellipse elements
14
+ */
15
+ currentPageSiblings?: NonNullable<number>;
16
+ onPageChange?: (pageNumber: number) => void;
17
+ className?: string;
18
+ }
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { IconNames } from '../icon/Icon';
3
+ import { ITooltipPosition } from '../popups/tooltip/Tooltip';
4
+ export interface IPillProps {
5
+ text: string;
6
+ /**
7
+ * Default position is right
8
+ */
9
+ tooltipPosition?: ITooltipPosition;
10
+ /**
11
+ * Default is dark
12
+ */
13
+ theme?: 'dark' | 'light';
14
+ iconName?: IconNames;
15
+ disabled?: boolean;
16
+ className?: string;
17
+ onClose?: (e: React.MouseEvent) => void;
18
+ }
19
+ /**
20
+ * Creates a Pill. Text will be truncated at 190px and a Tooltip will be enabled
21
+ * If you supply an onClose function, a close icon will appear and call that function on click
22
+ * @requires OverflowTooltip
23
+ * @requires Icon
24
+ */
25
+ export declare const Pill: React.ForwardRefExoticComponent<IPillProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,61 @@
1
+ import * as React from 'react';
2
+ import { IPopOutBase } from './PopOutBase';
3
+ declare type IPopOutBaseSubset = Omit<IPopOutBase, 'visible' | 'trigger'>;
4
+ export interface IPopOutProps extends IPopOutBaseSubset {
5
+ /**
6
+ * The element you are rendering the content from
7
+ */
8
+ trigger: (isOpen?: IPopOutState['isOpen']) => IPopOutBase['trigger'];
9
+ /**
10
+ * The content to pop out
11
+ */
12
+ children: (closePopOut: () => void) => JSX.Element | React.ReactNode;
13
+ /**
14
+ * Close on clicking in the content area. Defaults to false
15
+ */
16
+ closeOnFirstClick?: boolean;
17
+ /**
18
+ * Close content on clicking outside the content area. Defaults to false
19
+ */
20
+ closeOnOuterClick?: boolean;
21
+ /**
22
+ * Close content on document scroll
23
+ * Defaults to false
24
+ */
25
+ closeOnScroll?: boolean;
26
+ /**
27
+ * Delay the render of the pop out after the trigger event has been fired
28
+ */
29
+ delayShow?: number;
30
+ /**
31
+ * Open the popout container on mount, ignoring any trigger.
32
+ */
33
+ openOnMount?: boolean;
34
+ /**
35
+ * When the popout hides, fire this callback.
36
+ */
37
+ onClose?: () => void;
38
+ /**
39
+ * Event to fire on mouse leave of reference content
40
+ */
41
+ onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
42
+ /**
43
+ * Event to fire on mouse over of reference content
44
+ */
45
+ onMouseOver?: React.MouseEventHandler<HTMLSpanElement>;
46
+ /**
47
+ * Prevent the display of the info window regardless of the trigger event
48
+ */
49
+ preventShow?: boolean;
50
+ }
51
+ export interface IPopOutState {
52
+ isOpen: boolean;
53
+ }
54
+ /**
55
+ * The PopOut component displays/hides its children when either the supplied trigger is clicked or if the openOnMount prop is supplied.
56
+ * Default placement is bottom-start
57
+ *
58
+ * @requires PopOutBase
59
+ */
60
+ export declare const PopOut: (props: IPopOutProps) => JSX.Element;
61
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import * as React from 'react';
2
+ import * as PopperJS from '@popperjs/core';
3
+ import { StrictModifier } from 'react-popper';
4
+ export interface IPopOutBase {
5
+ /**
6
+ * The element you are rendering the content from
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Whether to add inline-block to the reference element
11
+ */
12
+ displayInline?: boolean;
13
+ trigger: JSX.Element;
14
+ triggerClassName?: string;
15
+ visible?: boolean;
16
+ /**
17
+ * Placement options supported by PopperJS
18
+ */
19
+ placement?: PopperJS.Options['placement'];
20
+ /**
21
+ * Modifiers supported by PopperJS if overriding defaults
22
+ */
23
+ modifiers?: PopperJS.Options['modifiers'];
24
+ /**
25
+ * Optional PopOut container to override Portal component if needed
26
+ */
27
+ popOutContainer?: (PopperWrappedContent: JSX.Element) => JSX.Element;
28
+ children?: React.ReactNode;
29
+ showArrow?: boolean;
30
+ }
31
+ export declare const DEFAULT_MODIFIERS: StrictModifier[];
32
+ /**
33
+ * PopOutBase uses react-popper/popperjs under the hood and is a wrapper that sets up the Popperjs Manager, Reference and Popper.
34
+ * It will place any content next to the trigger based on whether it fits and what placement you specify.
35
+ * If you need click show/hide functionality, use @PopOut
36
+ *
37
+ * @requires react-popper
38
+ */
39
+ export declare const PopOutBase: React.FC<IPopOutBase>;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const useClickAway: (ref: React.RefObject<HTMLElement | null>, onClickAway: (event: Event) => void, events?: string[]) => void;
@@ -0,0 +1,9 @@
1
+ import { IPopOutProps } from './PopOut';
2
+ declare type UsePopOutProps = Pick<IPopOutProps, 'delayShow' | 'preventShow' | 'onClose' | 'openOnMount'>;
3
+ export declare const usePopOut: ({ delayShow, preventShow, onClose, openOnMount }: UsePopOutProps) => {
4
+ visible: boolean;
5
+ openPopOut: () => void;
6
+ closePopOut: () => void;
7
+ togglePopOut: () => void;
8
+ };
9
+ export {};