@equinor/echo-components 0.5.19-rc1 → 0.5.24

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 (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +62 -62
  3. package/dist/components/buttonWithPopover/ButtonWithPopover.d.ts +21 -21
  4. package/dist/components/contextMenu/ContextMenu.d.ts +35 -35
  5. package/dist/components/contextMenuPopover/DataInfoButton.d.ts +19 -19
  6. package/dist/components/contextMenuPopover/DataInfoPopover.d.ts +18 -18
  7. package/dist/components/datePicker/PopupHeader.d.ts +19 -19
  8. package/dist/components/datePicker/ReactDatePicker.d.ts +19 -19
  9. package/dist/components/dialogGenerator/DialogGenerator.d.ts +26 -26
  10. package/dist/components/dropdown/Dropdown.d.ts +37 -37
  11. package/dist/components/echoBottomBar/EchoBottomBar.d.ts +7 -7
  12. package/dist/components/echoCard/Body.d.ts +7 -7
  13. package/dist/components/echoCard/DateSection.d.ts +8 -8
  14. package/dist/components/echoCard/EchoCard.d.ts +7 -7
  15. package/dist/components/echoCard/LinkSection.d.ts +8 -8
  16. package/dist/components/echoCard/Title.d.ts +13 -13
  17. package/dist/components/echoCard/index.d.ts +14 -14
  18. package/dist/components/echoHeader/EchoHeader.d.ts +20 -20
  19. package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +10 -10
  20. package/dist/components/echoTooltip/Tooltip/useTooltip.d.ts +85 -51
  21. package/dist/components/echoTooltip/index.d.ts +10 -10
  22. package/dist/components/floatingActionButton/FloatingActionButton.d.ts +33 -33
  23. package/dist/components/floatingSearchBar/FloatingSearchBar.d.ts +31 -31
  24. package/dist/components/index.d.ts +22 -22
  25. package/dist/components/inlineTagIconLink/InlineTagIconLink.d.ts +12 -12
  26. package/dist/components/listItem/ListItem.d.ts +50 -50
  27. package/dist/components/listItem/index.d.ts +1 -1
  28. package/dist/components/listRow/ListRow.d.ts +29 -29
  29. package/dist/components/rightPanel/PanelStore.d.ts +9 -9
  30. package/dist/components/rightPanel/index.d.ts +6 -5
  31. package/dist/components/rightPanel/menuButton/MenuButton.d.ts +24 -24
  32. package/dist/components/rightPanel/panel/Panel.d.ts +25 -18
  33. package/dist/components/rightPanel/panelContent/PanelContent.d.ts +23 -23
  34. package/dist/components/rightPanel/panelContent/PanelContentWrapper.d.ts +16 -0
  35. package/dist/components/rightPanel/panelWrapper/PanelWrapper.d.ts +21 -21
  36. package/dist/components/sidebarButton/SidebarButton.d.ts +61 -61
  37. package/dist/components/sidesheet/enums.d.ts +5 -5
  38. package/dist/components/sidesheet/index.d.ts +11 -11
  39. package/dist/components/sidesheet/sheet/Sheet.d.ts +19 -19
  40. package/dist/components/sidesheet/sheet/index.d.ts +1 -1
  41. package/dist/components/sidesheet/sheet/utils.d.ts +2 -2
  42. package/dist/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +16 -16
  43. package/dist/components/sidesheet/sheetTopArea/index.d.ts +1 -1
  44. package/dist/components/splitView/SplitView.d.ts +14 -14
  45. package/dist/components/splitView/index.d.ts +8 -8
  46. package/dist/components/splitView/left/SplitViewLeft.d.ts +9 -9
  47. package/dist/components/tagContextMenu/TagContextMenu.d.ts +30 -30
  48. package/dist/components/timePicker/TimePicker.d.ts +12 -12
  49. package/dist/components/workOrderListItem/WorkOrderStatusLabel.d.ts +11 -11
  50. package/dist/components/workOrderListItem/WorkOrdertListItem.d.ts +10 -10
  51. package/dist/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +18 -18
  52. package/dist/elements/icon/Icon.d.ts +20 -20
  53. package/dist/elements/index.d.ts +8 -8
  54. package/dist/elements/radioButtonGroup/RadioButtonGroup.d.ts +20 -20
  55. package/dist/elements/roundIconButton/RoundIconButton.d.ts +13 -13
  56. package/dist/elements/sliderField/SliderField.d.ts +25 -25
  57. package/dist/elements/tagIcon/TagIcon.d.ts +16 -16
  58. package/dist/elements/tagIcon/TagIconShadow.d.ts +13 -13
  59. package/dist/elements/textIconButton/TextIconButton.d.ts +19 -19
  60. package/dist/helpers/classnames.d.ts +5 -5
  61. package/dist/helpers/getIcon.d.ts +2 -2
  62. package/dist/helpers/index.d.ts +3 -3
  63. package/dist/helpers/tagCategoryIcon.d.ts +38 -38
  64. package/dist/hooks/index.d.ts +3 -3
  65. package/dist/hooks/useEventListener.d.ts +3 -3
  66. package/dist/hooks/useIsMobile.d.ts +5 -5
  67. package/dist/hooks/useKeyboardNavigation.d.ts +21 -21
  68. package/dist/icons/echoAssets/external.d.ts +5 -5
  69. package/dist/icons/echoAssets/index.d.ts +4 -4
  70. package/dist/icons/echoAssets/notifications.d.ts +9 -9
  71. package/dist/icons/echoAssets/punches.d.ts +4 -4
  72. package/dist/icons/echoAssets/workOrders.d.ts +11 -11
  73. package/dist/icons/index.d.ts +3 -3
  74. package/dist/index.d.ts +9 -9
  75. package/dist/index.js +1762 -1504
  76. package/dist/index.js.map +1 -1
  77. package/dist/setupTests.d.ts +1 -1
  78. package/dist/structure/iconList/IconList.d.ts +32 -32
  79. package/dist/structure/iconList/createListRow.d.ts +14 -14
  80. package/dist/structure/index.d.ts +3 -3
  81. package/dist/structure/linkCard/LinkCard.d.ts +26 -26
  82. package/dist/structure/optionsList/OptionsList.d.ts +24 -24
  83. package/dist/theme/index.d.ts +1 -1
  84. package/dist/theme/themeConst.d.ts +66 -66
  85. package/dist/types/actionButton.d.ts +6 -6
  86. package/dist/types/dataInformation.d.ts +8 -8
  87. package/dist/types/draggableItem.d.ts +5 -5
  88. package/dist/types/expandableRowProps.d.ts +6 -6
  89. package/dist/types/iconItem.d.ts +4 -4
  90. package/dist/types/iconListItem.d.ts +6 -6
  91. package/dist/types/index.d.ts +11 -11
  92. package/dist/types/linkCardItem.d.ts +5 -5
  93. package/dist/types/menuItem.d.ts +11 -11
  94. package/dist/types/optionsItem.d.ts +6 -6
  95. package/dist/types/radioButtonItem.d.ts +4 -4
  96. package/dist/types/workOrderItem.d.ts +9 -9
  97. package/dist/utils/date.d.ts +1 -1
  98. package/dist/utils/index.d.ts +2 -2
  99. package/dist/utils/workorder.d.ts +3 -3
  100. package/package.json +125 -125
@@ -1,38 +1,38 @@
1
- import React from 'react';
2
- interface ViewTagIconProps {
3
- tagCategoryDescription: string;
4
- }
5
- export declare enum TagCategoryType {
6
- Electrical = "electrical",
7
- MainEquipment = "main equipment",
8
- Line = "line",
9
- ManualValve = "manual valve",
10
- CircuitAndStarter = "circuit",
11
- Instrument = "instrument",
12
- Cable = "cable",
13
- Function = "function",
14
- Signal = "signal",
15
- Telecom = "telecom",
16
- JunctionBox = "junction box",
17
- Administrative = "administrative"
18
- }
19
- /**
20
- * Method that returns the relevant Icon for the tagCategoryDescription provided
21
- * Tag icon is the default JSX.Element Icon returned
22
- * @export
23
- * @param {('electrical'
24
- * | 'main equipment'
25
- * | 'line'
26
- * | 'manual valve'
27
- * | 'circuit/starter'
28
- * | 'instrument'
29
- * | 'cable'
30
- * | 'function'
31
- * | 'signal'
32
- * | 'telecom'
33
- * | 'junction box'
34
- * | 'administrative'
35
- * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
36
- */
37
- export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
38
- export default TagCategoryIcon;
1
+ import React from 'react';
2
+ interface ViewTagIconProps {
3
+ tagCategoryDescription: string;
4
+ }
5
+ export declare enum TagCategoryType {
6
+ Electrical = "electrical",
7
+ MainEquipment = "main equipment",
8
+ Line = "line",
9
+ ManualValve = "manual valve",
10
+ CircuitAndStarter = "circuit",
11
+ Instrument = "instrument",
12
+ Cable = "cable",
13
+ Function = "function",
14
+ Signal = "signal",
15
+ Telecom = "telecom",
16
+ JunctionBox = "junction box",
17
+ Administrative = "administrative"
18
+ }
19
+ /**
20
+ * Method that returns the relevant Icon for the tagCategoryDescription provided
21
+ * Tag icon is the default JSX.Element Icon returned
22
+ * @export
23
+ * @param {('electrical'
24
+ * | 'main equipment'
25
+ * | 'line'
26
+ * | 'manual valve'
27
+ * | 'circuit/starter'
28
+ * | 'instrument'
29
+ * | 'cable'
30
+ * | 'function'
31
+ * | 'signal'
32
+ * | 'telecom'
33
+ * | 'junction box'
34
+ * | 'administrative'
35
+ * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
36
+ */
37
+ export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
38
+ export default TagCategoryIcon;
@@ -1,3 +1,3 @@
1
- export * from './useEventListener';
2
- export * from './useIsMobile';
3
- export * from './useKeyboardNavigation';
1
+ export * from './useEventListener';
2
+ export * from './useIsMobile';
3
+ export * from './useKeyboardNavigation';
@@ -1,3 +1,3 @@
1
- type EventListenerHook = (eventName: string, handler: (e: any) => void, options?: boolean | AddEventListenerOptions, element?: HTMLElement | Window | Document | null) => void;
2
- declare const useEventListener: EventListenerHook;
3
- export default useEventListener;
1
+ type EventListenerHook = (eventName: string, handler: (e: any) => void, options?: boolean | AddEventListenerOptions, element?: HTMLElement | Window | Document | null) => void;
2
+ declare const useEventListener: EventListenerHook;
3
+ export default useEventListener;
@@ -1,5 +1,5 @@
1
- /**
2
- * Hook for checking if page is loaded from mobile device.
3
- * @returns boolean true if on mobile.
4
- */
5
- export declare function useIsMobile(): boolean;
1
+ /**
2
+ * Hook for checking if page is loaded from mobile device.
3
+ * @returns boolean true if on mobile.
4
+ */
5
+ export declare function useIsMobile(): boolean;
@@ -1,21 +1,21 @@
1
- export type KeyboardEvents = {
2
- up?: Function;
3
- right?: Function;
4
- down?: Function;
5
- left?: Function;
6
- enter?: Function;
7
- escape?: Function;
8
- };
9
- declare const useListNavigator: (listLength: number, initialIndex?: number, keyboardEvents?: KeyboardEvents, listenerTarget?: Document | HTMLElement) => number;
10
- /**
11
- * 1. On open: focus should be undefined/inactive. (list should scroll/show selected item if any).
12
- * 2. user presses a key (usually down) - scroll list to focused element, which should be first item
13
- * in the first section. Also set focused section.
14
- * 3. Potentially jump to last in list if user goes up?
15
- */
16
- declare const useSectionNavigator: (sections: any[], initialSelected: number, keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => {
17
- focusedSection: number;
18
- focusedOption: number;
19
- };
20
- declare const useKeyboardNavigation: (keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => void;
21
- export { useListNavigator, useSectionNavigator, useKeyboardNavigation };
1
+ export type KeyboardEvents = {
2
+ up?: Function;
3
+ right?: Function;
4
+ down?: Function;
5
+ left?: Function;
6
+ enter?: Function;
7
+ escape?: Function;
8
+ };
9
+ declare const useListNavigator: (listLength: number, initialIndex?: number, keyboardEvents?: KeyboardEvents, listenerTarget?: Document | HTMLElement) => number;
10
+ /**
11
+ * 1. On open: focus should be undefined/inactive. (list should scroll/show selected item if any).
12
+ * 2. user presses a key (usually down) - scroll list to focused element, which should be first item
13
+ * in the first section. Also set focused section.
14
+ * 3. Potentially jump to last in list if user goes up?
15
+ */
16
+ declare const useSectionNavigator: (sections: any[], initialSelected: number, keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => {
17
+ focusedSection: number;
18
+ focusedOption: number;
19
+ };
20
+ declare const useKeyboardNavigation: (keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => void;
21
+ export { useListNavigator, useSectionNavigator, useKeyboardNavigation };
@@ -1,5 +1,5 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const robim_external_ald: IconData;
3
- export declare const robim_external_timp: IconData;
4
- export declare const robim_external_timp_text: IconData;
5
- export declare const robim_external_iwit: IconData;
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const robim_external_ald: IconData;
3
+ export declare const robim_external_timp: IconData;
4
+ export declare const robim_external_timp_text: IconData;
5
+ export declare const robim_external_iwit: IconData;
@@ -1,4 +1,4 @@
1
- export * from './external';
2
- export * from './notifications';
3
- export * from './punches';
4
- export * from './workOrders';
1
+ export * from './external';
2
+ export * from './notifications';
3
+ export * from './punches';
4
+ export * from './workOrders';
@@ -1,9 +1,9 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const notifications_main_group: IconData;
3
- export declare const notifications_m1: IconData;
4
- export declare const notifications_m2: IconData;
5
- export declare const notifications_m3: IconData;
6
- export declare const notifications_m4: IconData;
7
- export declare const notifications_m5: IconData;
8
- export declare const notifications_m6: IconData;
9
- export declare const notifications_m9: IconData;
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const notifications_main_group: IconData;
3
+ export declare const notifications_m1: IconData;
4
+ export declare const notifications_m2: IconData;
5
+ export declare const notifications_m3: IconData;
6
+ export declare const notifications_m4: IconData;
7
+ export declare const notifications_m5: IconData;
8
+ export declare const notifications_m6: IconData;
9
+ export declare const notifications_m9: IconData;
@@ -1,4 +1,4 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const punches_main_group: IconData;
3
- export declare const punches_pb: IconData;
4
- export declare const punches_pa: IconData;
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const punches_main_group: IconData;
3
+ export declare const punches_pb: IconData;
4
+ export declare const punches_pa: IconData;
@@ -1,11 +1,11 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const workorders_main_group: IconData;
3
- export declare const workorders_pm01: IconData;
4
- export declare const workorders_pm02: IconData;
5
- export declare const workorders_pm03: IconData;
6
- export declare const workorders_pm04: IconData;
7
- export declare const workorders_pm05: IconData;
8
- export declare const workorders_pm06: IconData;
9
- export declare const workorders_pm10: IconData;
10
- export declare const workorders_pm15: IconData;
11
- export declare const workorders_pm20: IconData;
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const workorders_main_group: IconData;
3
+ export declare const workorders_pm01: IconData;
4
+ export declare const workorders_pm02: IconData;
5
+ export declare const workorders_pm03: IconData;
6
+ export declare const workorders_pm04: IconData;
7
+ export declare const workorders_pm05: IconData;
8
+ export declare const workorders_pm06: IconData;
9
+ export declare const workorders_pm10: IconData;
10
+ export declare const workorders_pm15: IconData;
11
+ export declare const workorders_pm20: IconData;
@@ -1,3 +1,3 @@
1
- import * as echoIcons from './echoAssets';
2
- export * from './echoAssets';
3
- export { echoIcons };
1
+ import * as echoIcons from './echoAssets';
2
+ export * from './echoAssets';
3
+ export { echoIcons };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import './theme/theme.css';
2
- export * from './components';
3
- export * from './elements';
4
- export * from './helpers';
5
- export * from './icons';
6
- export * from './structure';
7
- export { themeConst } from './theme/themeConst';
8
- export * from './types';
9
- export * from './hooks';
1
+ import './theme/theme.css';
2
+ export * from './components';
3
+ export * from './elements';
4
+ export * from './helpers';
5
+ export * from './icons';
6
+ export * from './structure';
7
+ export { themeConst } from './theme/themeConst';
8
+ export * from './types';
9
+ export * from './hooks';