@equinor/echo-cli 0.9.0-rc-0 → 0.9.0-rc-1

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 (140) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/lib/test1/.env +0 -0
  4. package/lib/test1/.gitattributes +0 -3
  5. package/lib/test1/.yalc/@equinor/echo-components/README.md +0 -7
  6. package/lib/test1/.yalc/@equinor/echo-components/index.esm.d.ts +0 -1
  7. package/lib/test1/.yalc/@equinor/echo-components/index.esm.js +0 -7433
  8. package/lib/test1/.yalc/@equinor/echo-components/package.json +0 -26
  9. package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/svgrMock.d.ts +0 -3
  10. package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/workOrderItem.d.ts +0 -4
  11. package/lib/test1/.yalc/@equinor/echo-components/src/components/blackLink/BlackLink.d.ts +0 -11
  12. package/lib/test1/.yalc/@equinor/echo-components/src/components/buttonWithPopover/ButtonWithPopover.d.ts +0 -21
  13. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/index.d.ts +0 -1
  14. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/LineChart.d.ts +0 -22
  15. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/lineChartConfig.d.ts +0 -16
  16. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/rawData.d.ts +0 -26
  17. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/utils.d.ts +0 -10
  18. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenu/ContextMenu.d.ts +0 -35
  19. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoButton.d.ts +0 -19
  20. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoPopover.d.ts +0 -18
  21. package/lib/test1/.yalc/@equinor/echo-components/src/components/copyToClipboard/CopyToClipboard.d.ts +0 -9
  22. package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/PopupHeader.d.ts +0 -19
  23. package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/ReactDatePicker.d.ts +0 -19
  24. package/lib/test1/.yalc/@equinor/echo-components/src/components/dialogGenerator/DialogGenerator.d.ts +0 -26
  25. package/lib/test1/.yalc/@equinor/echo-components/src/components/dropdown/Dropdown.d.ts +0 -37
  26. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoBottomBar/EchoBottomBar.d.ts +0 -7
  27. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Body.d.ts +0 -7
  28. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/DateSection.d.ts +0 -8
  29. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/EchoCard.d.ts +0 -7
  30. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/LinkSection.d.ts +0 -8
  31. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Title.d.ts +0 -13
  32. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/index.d.ts +0 -14
  33. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoHeader/EchoHeader.d.ts +0 -20
  34. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/Tooltip.d.ts +0 -10
  35. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/useTooltip.d.ts +0 -22
  36. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/index.d.ts +0 -10
  37. package/lib/test1/.yalc/@equinor/echo-components/src/components/floatingActionButton/FloatingActionButton.d.ts +0 -33
  38. package/lib/test1/.yalc/@equinor/echo-components/src/components/index.d.ts +0 -27
  39. package/lib/test1/.yalc/@equinor/echo-components/src/components/inlineTagIconLink/InlineTagIconLink.d.ts +0 -12
  40. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/MainLegend.d.ts +0 -22
  41. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/index.d.ts +0 -2
  42. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/LayerLegend.d.ts +0 -33
  43. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/index.d.ts +0 -1
  44. package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/ListItem.d.ts +0 -52
  45. package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/index.d.ts +0 -1
  46. package/lib/test1/.yalc/@equinor/echo-components/src/components/listRow/ListRow.d.ts +0 -29
  47. package/lib/test1/.yalc/@equinor/echo-components/src/components/pcMatrix/PCMatrix.d.ts +0 -8
  48. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/PanelStore.d.ts +0 -10
  49. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/index.d.ts +0 -6
  50. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/menuButton/MenuButton.d.ts +0 -24
  51. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panel/Panel.d.ts +0 -25
  52. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContent.d.ts +0 -23
  53. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContentWrapper.d.ts +0 -16
  54. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelWrapper/PanelWrapper.d.ts +0 -21
  55. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SearchSuggestions.d.ts +0 -3
  56. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SuggestionGroup.d.ts +0 -3
  57. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/types.d.ts +0 -26
  58. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/floatingSearchBar/FloatingSearchBar.d.ts +0 -28
  59. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/index.d.ts +0 -3
  60. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/responsiveSearchBar/ResponsiveSearchBar.d.ts +0 -28
  61. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidebarButton/SidebarButton.d.ts +0 -70
  62. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/enums.d.ts +0 -5
  63. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/index.d.ts +0 -11
  64. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/Sheet.d.ts +0 -19
  65. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/index.d.ts +0 -1
  66. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/utils.d.ts +0 -2
  67. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +0 -16
  68. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/index.d.ts +0 -1
  69. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/SplitView.d.ts +0 -14
  70. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/index.d.ts +0 -8
  71. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/left/SplitViewLeft.d.ts +0 -10
  72. package/lib/test1/.yalc/@equinor/echo-components/src/components/tagContextMenu/TagContextMenu.d.ts +0 -30
  73. package/lib/test1/.yalc/@equinor/echo-components/src/components/timePicker/TimePicker.d.ts +0 -12
  74. package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderListItem.d.ts +0 -10
  75. package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderStatusLabel.d.ts +0 -5
  76. package/lib/test1/.yalc/@equinor/echo-components/src/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +0 -18
  77. package/lib/test1/.yalc/@equinor/echo-components/src/elements/icon/Icon.d.ts +0 -20
  78. package/lib/test1/.yalc/@equinor/echo-components/src/elements/index.d.ts +0 -8
  79. package/lib/test1/.yalc/@equinor/echo-components/src/elements/radioButtonGroup/RadioButtonGroup.d.ts +0 -20
  80. package/lib/test1/.yalc/@equinor/echo-components/src/elements/roundIconButton/RoundIconButton.d.ts +0 -13
  81. package/lib/test1/.yalc/@equinor/echo-components/src/elements/sliderField/SliderField.d.ts +0 -25
  82. package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIcon.d.ts +0 -16
  83. package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIconShadow.d.ts +0 -13
  84. package/lib/test1/.yalc/@equinor/echo-components/src/elements/textIconButton/TextIconButton.d.ts +0 -19
  85. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/classnames.d.ts +0 -5
  86. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/getIcon.d.ts +0 -2
  87. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/index.d.ts +0 -3
  88. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/tagCategoryIcon.d.ts +0 -38
  89. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/index.d.ts +0 -3
  90. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useEventListener.d.ts +0 -3
  91. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useIsMobile.d.ts +0 -5
  92. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useKeyboardNavigation.d.ts +0 -18
  93. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/external.d.ts +0 -7
  94. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/general.d.ts +0 -2
  95. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/index.d.ts +0 -7
  96. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/maps.d.ts +0 -6
  97. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/misc.d.ts +0 -2
  98. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/notifications.d.ts +0 -9
  99. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/punches.d.ts +0 -4
  100. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/workOrders.d.ts +0 -11
  101. package/lib/test1/.yalc/@equinor/echo-components/src/icons/index.d.ts +0 -3
  102. package/lib/test1/.yalc/@equinor/echo-components/src/index.d.ts +0 -10
  103. package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/IconList.d.ts +0 -32
  104. package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/createListRow.d.ts +0 -14
  105. package/lib/test1/.yalc/@equinor/echo-components/src/structure/index.d.ts +0 -3
  106. package/lib/test1/.yalc/@equinor/echo-components/src/structure/linkCard/LinkCard.d.ts +0 -26
  107. package/lib/test1/.yalc/@equinor/echo-components/src/structure/optionsList/OptionsList.d.ts +0 -24
  108. package/lib/test1/.yalc/@equinor/echo-components/src/theme/index.d.ts +0 -1
  109. package/lib/test1/.yalc/@equinor/echo-components/src/theme/themeConst.d.ts +0 -66
  110. package/lib/test1/.yalc/@equinor/echo-components/src/types/actionButton.d.ts +0 -6
  111. package/lib/test1/.yalc/@equinor/echo-components/src/types/charts.d.ts +0 -77
  112. package/lib/test1/.yalc/@equinor/echo-components/src/types/dataInformation.d.ts +0 -8
  113. package/lib/test1/.yalc/@equinor/echo-components/src/types/draggableItem.d.ts +0 -5
  114. package/lib/test1/.yalc/@equinor/echo-components/src/types/expandableRowProps.d.ts +0 -6
  115. package/lib/test1/.yalc/@equinor/echo-components/src/types/iconItem.d.ts +0 -4
  116. package/lib/test1/.yalc/@equinor/echo-components/src/types/iconListItem.d.ts +0 -6
  117. package/lib/test1/.yalc/@equinor/echo-components/src/types/index.d.ts +0 -12
  118. package/lib/test1/.yalc/@equinor/echo-components/src/types/legend.d.ts +0 -4
  119. package/lib/test1/.yalc/@equinor/echo-components/src/types/linkCardItem.d.ts +0 -5
  120. package/lib/test1/.yalc/@equinor/echo-components/src/types/menuItem.d.ts +0 -11
  121. package/lib/test1/.yalc/@equinor/echo-components/src/types/optionsItem.d.ts +0 -6
  122. package/lib/test1/.yalc/@equinor/echo-components/src/types/radioButtonItem.d.ts +0 -4
  123. package/lib/test1/.yalc/@equinor/echo-components/src/types/workOrderItem.d.ts +0 -16
  124. package/lib/test1/.yalc/@equinor/echo-components/src/utils/date.d.ts +0 -1
  125. package/lib/test1/.yalc/@equinor/echo-components/src/utils/index.d.ts +0 -2
  126. package/lib/test1/.yalc/@equinor/echo-components/src/utils/workorder.d.ts +0 -4
  127. package/lib/test1/.yalc/@equinor/echo-components/yalc.sig +0 -1
  128. package/lib/test1/build/echoModuleManifest.json +0 -12
  129. package/lib/test1/build/index.js +0 -144
  130. package/lib/test1/build/index.js.map +0 -1
  131. package/lib/test1/echoModule.config.json +0 -22
  132. package/lib/test1/echoModuleId.json +0 -3
  133. package/lib/test1/env.sh +0 -54
  134. package/lib/test1/package.json +0 -40
  135. package/lib/test1/readme.md +0 -47
  136. package/lib/test1/src/app.module.css +0 -5
  137. package/lib/test1/src/app.tsx +0 -36
  138. package/lib/test1/src/index.ts +0 -6
  139. package/lib/test1/tsconfig.json +0 -25
  140. package/lib/test1/yalc.lock +0 -10
@@ -1,52 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- interface VisualComponent {
3
- icon?: never;
4
- visual?: React.ReactNode;
5
- }
6
- interface IconOptions {
7
- icon?: {
8
- name: string;
9
- color?: string;
10
- backgroundColor?: string;
11
- };
12
- visual?: never;
13
- }
14
- /**
15
- * Make property "icon" and "visual" mutually exclusive
16
- */
17
- type WithVisualOrIconOptions = VisualComponent | IconOptions;
18
- interface ListItemBaseProps {
19
- /**
20
- * Add List Action Area
21
- */
22
- listAction?: React.ReactNode;
23
- /**
24
- * Main content Area
25
- */
26
- primary: string | React.ReactNode;
27
- secondary?: string | React.ReactNode;
28
- tertiary?: string | React.ReactNode;
29
- /**
30
- * Caption Area
31
- */
32
- caption?: string | React.ReactNode;
33
- /**
34
- * Add Item Action Area
35
- */
36
- itemAction?: React.ReactNode;
37
- /**
38
- * Change container element. Default is "li"
39
- */
40
- as?: React.ElementType;
41
- onCardClick?: () => void;
42
- /** A url. The presence of this prop will automatically make the enclosing element an a-element. */
43
- href?: string;
44
- /**
45
- * Style Modification
46
- */
47
- className?: string;
48
- style?: CSSProperties;
49
- }
50
- export type ListItemProps = ListItemBaseProps & WithVisualOrIconOptions;
51
- declare function ListItem(props: ListItemProps): import("react/jsx-runtime").JSX.Element;
52
- export { ListItem };
@@ -1 +0,0 @@
1
- export * from './ListItem';
@@ -1,29 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { ExpandableRowProps, IconListItem } from '../../types';
3
- export interface ListRowProps {
4
- isDraggable: boolean;
5
- item: IconListItem;
6
- expandable?: ExpandableRowProps;
7
- rowIndex: number;
8
- style?: CSSProperties;
9
- }
10
- /**
11
- * Component that renders one row in a list. The row can be marked as draggable and expandable
12
- *
13
- * @param {ListRowProps} {
14
- * isDraggable: flag to indicate that the row can be rearranged in a list
15
- * item: { The item to be rendered in the row
16
- * title: the title of the item in the row
17
- * subtitle: the subtitle of the item in the row
18
- * icons: the icons that will be displayed on the same row, and their respective actions
19
- * }
20
- * expandable: { object with properties to handle if the row is expandable. If undefined the row cannot be expanded
21
- * iconItems: the items that will be displayed if row is expanded, and their respective actions
22
- * expanded: flag to indicate if the row is expanded or not
23
- * setExpanded: method that updates the expanded flag
24
- * }
25
- * style: style element to override wrapper style
26
- * }
27
- * @return {*} {JSX.Element} a row element to be used in a list
28
- */
29
- export declare const ListRow: React.FC<ListRowProps>;
@@ -1,8 +0,0 @@
1
- type RiskLevel = 'low' | 'medium' | 'high';
2
- interface PCMatrixProps {
3
- className?: string;
4
- consequence: RiskLevel;
5
- probability: RiskLevel;
6
- }
7
- export declare const PCMatrix: ({ consequence, probability, className }: PCMatrixProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,10 +0,0 @@
1
- import * as zustand from 'zustand';
2
- import { PanelSize } from '../../types/menuItem';
3
- export interface PanelState {
4
- activePanel: string | undefined;
5
- panelSize: PanelSize;
6
- overflowMenuOpen: boolean;
7
- updateActivePanel: (newActivePanel: string | undefined) => void;
8
- updatePanelSize: (newPanelSize: PanelSize) => void;
9
- }
10
- export declare const usePanelStore: zustand.UseBoundStore<zustand.StoreApi<PanelState>>;
@@ -1,6 +0,0 @@
1
- export * from './menuButton/MenuButton';
2
- export * from './panel/Panel';
3
- export * from './panelContent/PanelContent';
4
- export * from './panelContent/PanelContentWrapper';
5
- export * from './PanelStore';
6
- export * from './panelWrapper/PanelWrapper';
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- interface MenuButtonInterfaceProps {
3
- text: string;
4
- active: boolean;
5
- onClick: (event?: React.MouseEvent<HTMLButtonElement>) => void;
6
- children: React.ReactNode;
7
- id?: string;
8
- }
9
- /**
10
- * The menu bottom items
11
- * On desktop it will have an active border on the left,
12
- * and on mobile the active border will be on the bottom
13
- * Contains an icon and a descriptive text
14
- * @param {*} {
15
- * text, the text below the icon, also displayed on hover
16
- * active, boolean describing the buttons active state
17
- * children, the icon to be displayed
18
- * onClick, the on click event
19
- * id: the id of the button in case its needed
20
- * }
21
- * @return {*} {JSX.Element}
22
- */
23
- export declare const MenuButton: React.ForwardRefExoticComponent<MenuButtonInterfaceProps & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement | null>>;
24
- export default MenuButton;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { MenuItem } from '../../../types/menuItem';
3
- interface PanelProps {
4
- menuItems: MenuItem[];
5
- header: string | React.ReactNode;
6
- }
7
- /**
8
- * The actual right side panel. This component wraps the panel with a panel state
9
- *
10
- * @param {PanelProps} {
11
- * menuItems: the items to be displayed in the menu and its belonging panels
12
- * labelId: the id of the menuItems
13
- * label: the buttons label visible ot the user. Truncated if too long
14
- * icon: the icon displayed for the button
15
- * skipPanelContent: if true you have to provide your own menuButton and panel content
16
- * isBottomItem: places the menuButton for this item at the bottom of the menu (desktop), has no effect on mobile.
17
- * panelSize: decides the size of the panel. Narrow is 320 and wide is 480. Wide is default
18
- * component: The panel component to display when panel is actibe
19
- * header, the header that will be displayed on mobile.
20
- * If its a string then it will only display a header text. But it can also be a component with self defined html
21
- * }
22
- * @return {*} {JSX.Element}
23
- */
24
- export declare const Panel: React.FC<PanelProps>;
25
- export default Panel;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- interface PanelContentProps {
3
- header: string;
4
- children: React.ReactNode;
5
- backToMainPanel?: () => void;
6
- footer?: React.ReactNode;
7
- }
8
- /**
9
- * The component that wraps the panel drawer content
10
- * This components displays a header with close and possible back button
11
- * It also displays the content wrapped with some css
12
- *
13
- * @param {PanelContentProps} {
14
- * header, the header text to display
15
- * children, the panels content
16
- * backToMainPanel: optional parameter that controls whether the panel should have a back button or not
17
- * to be used in cases where there are panels within panels,
18
- * footer: optional param, if used a footer will be shown in the panel content
19
- * }
20
- * @return {*} {JSX.Element}
21
- */
22
- export declare const PanelContent: React.FC<PanelContentProps>;
23
- export default PanelContent;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- interface PanelContentWrapperProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * Component that can be used to wrap content within a panel
7
- * This will give the whole content a scrollbar
8
- * Has padding of 16px
9
- *
10
- * @param {PanelContentWrapperProps} {
11
- * children, the panels content
12
- * }
13
- * @return {*} {JSX.Element}
14
- */
15
- export declare const PanelContentWrapper: React.FC<PanelContentWrapperProps>;
16
- export default PanelContentWrapper;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { MenuItem } from '../../../types/menuItem';
3
- interface PanelWrapperProps {
4
- menuItems: MenuItem[];
5
- header: string | React.ReactNode;
6
- }
7
- /**
8
- * Component that display's the buttons in a panel. It will automatically try to calculate how many buttons to display
9
- * and how many buttons to hide behind the more menu.
10
- * It controls which panel to display when a button is clicked
11
- * On desktop this component will render on the right side, and on the top in mobile view
12
- *
13
- * @param {*} {
14
- * menuItems, the items to be displayed in the menu and its belonging panels
15
- * header, the header that will be displayed on mobile.
16
- * If its a string then it will only display a header text. But it can also be a component with self defined html
17
- * }
18
- * @return {*} {JSX.Element}
19
- */
20
- export declare const PanelWrapper: React.FC<PanelWrapperProps>;
21
- export default PanelWrapper;
@@ -1,3 +0,0 @@
1
- import { SearchSuggestionsProps } from './types';
2
- declare function SearchSuggestions({ suggestionGroups, containerRef, onClick, styles }: SearchSuggestionsProps): import("react/jsx-runtime").JSX.Element;
3
- export { SearchSuggestions };
@@ -1,3 +0,0 @@
1
- import { SuggestionGroupProps } from './types';
2
- declare function SuggestionGroup({ suggestionGroup, onClick, focusedOption, styles }: SuggestionGroupProps): import("react/jsx-runtime").JSX.Element;
3
- export { SuggestionGroup };
@@ -1,26 +0,0 @@
1
- export interface Suggestion {
2
- label: string;
3
- id: string;
4
- iconName: string;
5
- }
6
- export interface SuggestionGroup {
7
- title?: string;
8
- id: string;
9
- options: Suggestion[];
10
- }
11
- export interface SearchSuggestionsProps {
12
- suggestionGroups: SuggestionGroup[];
13
- containerRef: HTMLFormElement | null;
14
- onClick: (suggestion: Suggestion) => void;
15
- styles: {
16
- readonly [key: string]: string;
17
- };
18
- }
19
- export interface SuggestionGroupProps {
20
- suggestionGroup: SuggestionGroup;
21
- onClick: (suggestion: Suggestion) => void;
22
- focusedOption: number;
23
- styles: {
24
- readonly [key: string]: string;
25
- };
26
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { Suggestion, SuggestionGroup } from '../common/types';
3
- export interface FloatingSearchBarProps {
4
- ariaLabel?: string;
5
- /**
6
- * Placeholder text
7
- */
8
- placeholder?: string;
9
- /**
10
- * Callback for when the search query changes
11
- */
12
- onSearchQueryChange: (value: string) => void;
13
- /**
14
- * Suggestions that matches the search query by groups
15
- */
16
- suggestionGroups?: SuggestionGroup[];
17
- onSuggestionClick: (suggestion: Suggestion) => void;
18
- isLoading: boolean;
19
- }
20
- /**
21
- * Floating search bar
22
- *
23
- * @param {FloatingSearchBarProps} {
24
- * }
25
- * @return {*} {React.JSX.Element}
26
- */
27
- declare const FloatingSearchBar: ({ ariaLabel, placeholder, onSearchQueryChange, suggestionGroups, onSuggestionClick, isLoading }: FloatingSearchBarProps) => React.JSX.Element;
28
- export { FloatingSearchBar };
@@ -1,3 +0,0 @@
1
- export * from './common/types';
2
- export * from './floatingSearchBar/FloatingSearchBar';
3
- export * from './responsiveSearchBar/ResponsiveSearchBar';
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { Suggestion, SuggestionGroup } from '../common/types';
3
- export interface Props extends React.HTMLProps<HTMLFormElement> {
4
- ariaLabel?: string;
5
- /**
6
- * Placeholder text
7
- */
8
- placeholder?: string;
9
- /**
10
- * Callback for when the search query changes
11
- */
12
- onSearchQueryChange: (value: string) => void;
13
- /**
14
- * Suggestions that matches the search query by groups
15
- */
16
- suggestionGroups?: SuggestionGroup[];
17
- onSuggestionClick: (suggestion: Suggestion) => void;
18
- isLoading: boolean;
19
- }
20
- /**
21
- * Floating search bar
22
- *
23
- * @param {Props} {
24
- * }
25
- * @return {*} {JSX.Element}
26
- */
27
- declare const ResponsiveSearchBar: ({ ariaLabel, placeholder, onSearchQueryChange, suggestionGroups, onSuggestionClick, isLoading, ...props }: Props) => React.JSX.Element;
28
- export { ResponsiveSearchBar };
@@ -1,70 +0,0 @@
1
- import React from 'react';
2
- export type ButtonPosition = 'right' | 'bottom' | 'left' | 'tab';
3
- export interface SidebarButtonProps {
4
- /**
5
- * The text below the icon.
6
- */
7
- text: string;
8
- /**
9
- * Boolean describing the button's active state.
10
- */
11
- active: boolean;
12
- /**
13
- * The onClick event.
14
- */
15
- onClick: (event?: React.MouseEvent<HTMLButtonElement>) => void;
16
- /**
17
- * Will display a count on the button, and must be bigger than 0.
18
- */
19
- count?: number;
20
- /**
21
- * Decides the active border. Could be set to 'right'/'bottom'/'left', depending if the button is placed in the right bar/left bar/bottom bar, or could be set to 'tab' if it's a tab button.
22
- */
23
- buttonPosition: ButtonPosition;
24
- /**
25
- * A reference value, in case it's needed.
26
- */
27
- refValue?: React.RefObject<HTMLButtonElement>;
28
- /**
29
- * The id of the button, in case it's needed.
30
- */
31
- id?: string;
32
- /**
33
- * The icon to be displayed.
34
- */
35
- children: React.ReactNode;
36
- }
37
- /**
38
- * The reusable button component that is used in the sidebars/bottom bar.
39
- *
40
- * On desktop it will have an active border on the left/right/top,
41
- * depending if the ButtonPosition is set to: "right"/"left"/"bottom".
42
- * The active border will be on the right if it's a tab button and ButtonPosition is set to: "tab".
43
- *
44
- * On mobile with the right sidebar, the active border will be on the bottom.
45
- * In landscape mode with the bottom bar, the active border will be on the right.
46
- *
47
- * The button contains an icon and a descriptive text.
48
- * @param {*} {
49
- * text: the text below the icon.
50
- * active: boolean describing the button's active state.
51
- * onClick: the onClick event.
52
- * count: will display a count on the button.
53
- * buttonPosition: decides the active border, depending if the button is placed in the right bar/left bar/bottom bar.
54
- * refValue: a reference value, in case it's needed.
55
- * id: the id of the button, in case it's needed.
56
- * children: the icon to be displayed.
57
- * }
58
- * @return {*} {JSX.Element}
59
- */
60
- export declare const SidebarButton: {
61
- ({ text, active, onClick, count, buttonPosition, refValue, id, children }: SidebarButtonProps): React.JSX.Element;
62
- defaultProps: {
63
- text: string;
64
- children: import("react/jsx-runtime").JSX.Element;
65
- refValue: undefined;
66
- id: string;
67
- buttonPosition: string;
68
- };
69
- };
70
- export default SidebarButton;
@@ -1,5 +0,0 @@
1
- export declare enum SideSheetOrientation {
2
- Vertical = "vertical",
3
- Horizontal = "horizontal",
4
- Fullscreen = "fullscreen"
5
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { SideSheetOrientation } from './enums';
3
- import { SheetProps } from './sheet';
4
- import { SheetTopAreaProps } from './sheetTopArea';
5
- interface SideSheetProps extends SheetProps, SheetTopAreaProps {
6
- open: boolean;
7
- children: React.ReactNode;
8
- }
9
- declare function SideSheet({ open, side, orientation, floating, children, className, style, ...topBarProps }: SideSheetProps): JSX.Element | null;
10
- export type { SideSheetProps };
11
- export { SideSheet, SideSheetOrientation };
@@ -1,19 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { SideSheetOrientation } from '../enums';
3
- interface Style {
4
- style?: CSSProperties;
5
- className?: string;
6
- }
7
- interface SheetProps extends Style {
8
- children: React.ReactNode;
9
- side?: 'left' | 'right';
10
- orientation?: SideSheetOrientation;
11
- /**
12
- * Default true. Use this to make Sheet push content to the side.
13
- * Only affects "vertical" orientation.
14
- */
15
- floating?: boolean;
16
- }
17
- declare function Sheet({ side, orientation, floating, children, className, style }: SheetProps): import("react/jsx-runtime").JSX.Element;
18
- export type { SheetProps };
19
- export { Sheet };
@@ -1,2 +0,0 @@
1
- import { SideSheetOrientation } from '../enums';
2
- export declare function GetSheetContainerClass(side?: 'left' | 'right', orientation?: SideSheetOrientation, floating?: boolean, isMobile?: boolean): string;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { SideSheetOrientation } from '../enums';
3
- interface SheetTopAreaProps extends Partial<SheetOrientationActionsProps> {
4
- closeSheet?: () => void;
5
- previous?: React.ReactNode;
6
- }
7
- declare function SheetTopArea({ orientation, onOrientationChange, closeSheet, previous }: SheetTopAreaProps): JSX.Element | null;
8
- interface SheetOrientationActionsProps {
9
- orientation: SideSheetOrientation;
10
- /**
11
- * Providing this function allows the developer to control sheet orientation.
12
- */
13
- onOrientationChange: (orientationTarget: SideSheetOrientation) => void;
14
- }
15
- export { SheetTopArea };
16
- export type { SheetTopAreaProps };
@@ -1,14 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- interface BaseProps {
3
- className?: string;
4
- style?: CSSProperties;
5
- }
6
- interface SplitViewProps extends BaseProps {
7
- children: [React.ReactChild, React.ReactChild | undefined];
8
- }
9
- declare function SplitView({ className, style, children }: SplitViewProps): import("react/jsx-runtime").JSX.Element;
10
- interface RightProps extends BaseProps {
11
- children: React.ReactChild;
12
- }
13
- declare function Right({ className, style, children }: RightProps): import("react/jsx-runtime").JSX.Element;
14
- export { Right, SplitView };
@@ -1,8 +0,0 @@
1
- import { Left } from './left/SplitViewLeft';
2
- import { Right, SplitView as BaseSplitView } from './SplitView';
3
- type SplitViewCompoundProps = typeof BaseSplitView & {
4
- Left: typeof Left;
5
- Right: typeof Right;
6
- };
7
- declare const SplitView: SplitViewCompoundProps;
8
- export { SplitView };
@@ -1,10 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- interface LeftProps {
3
- className?: string;
4
- style?: CSSProperties;
5
- children: React.ReactChild;
6
- isMinimizable?: boolean;
7
- defaultMinimized?: boolean;
8
- }
9
- declare function Left({ className, style, isMinimizable, defaultMinimized, children }: LeftProps): import("react/jsx-runtime").JSX.Element;
10
- export { Left };
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- interface TagContextMenuProps {
3
- expanded: boolean;
4
- setExpanded: (expanded: boolean) => void;
5
- tagNo: string;
6
- description: string;
7
- openTagInformation: () => void;
8
- selected: boolean;
9
- selectedClassName?: string;
10
- children: React.ReactNode;
11
- }
12
- /**
13
- * Component that renders a tag context menu that can be expanded and closed upon click
14
- * The condensed variant will only display the the relevant tag icon
15
- * The expanded variant will display relevant tag icon, tag number and tag description
16
- *
17
- * @param {TagContextMenuProps} {
18
- * expanded: flag that state if the context menu should be expanded or not
19
- * setExpanded: method to update the expanded flag
20
- * tagNo: the tag no to display
21
- * description: the tag description
22
- * openTagInformation: method called when expanded context menu is called
23
- * selected: Flag to handle if there are multiple context menu's on a page, and a selected style should be applied
24
- * selectedClassName: styling used to handle multiple tag visible on the page at the same time, class will be added to tagIcon when context menu is not expanded
25
- * children: Meant to be used to pass TagIcon component to this component
26
- * }
27
- * @return {*} {JSX.Element} a tag context menu for the provided properties
28
- */
29
- export declare const TagContextMenu: React.FC<TagContextMenuProps>;
30
- export default TagContextMenu;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface TimePickerProps {
3
- id: string;
4
- value?: string;
5
- label: string;
6
- onValueChanged?: (time: string) => void;
7
- className?: string;
8
- readOnly?: boolean;
9
- timeRange?: string[];
10
- }
11
- export declare const TimePicker: ({ id, label, value, onValueChanged, readOnly, timeRange }: TimePickerProps) => React.JSX.Element;
12
- export default TimePicker;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { WorkOrderItem } from '../../types';
3
- export interface WorkOrderListItemProps {
4
- workOrder: WorkOrderItem;
5
- onCardClick?: () => void;
6
- itemAction?: React.ReactNode;
7
- isHeader?: boolean;
8
- }
9
- declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
10
- export { WorkOrderListItem };
@@ -1,5 +0,0 @@
1
- interface WorkOrderStatusLabelProps {
2
- isActive: boolean;
3
- }
4
- export declare function WorkOrderStatusLabel({ isActive }: WorkOrderStatusLabelProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,18 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { DraggableItem } from '../../types/draggableItem';
3
- export interface DraggableItemsWrapperProps {
4
- style?: CSSProperties;
5
- onChange: (newDragItems: DraggableItem[], oldIndex: number | undefined, newIndex: number | undefined) => void;
6
- children: React.ReactNode[];
7
- }
8
- /**
9
- * Component that renders a wrapper for items that are draggable
10
- *
11
- * @param {DraggableItemsWrapperProps} {
12
- * style: style element to override wrapper style
13
- * onChange: method that will be called when elements have be reordered inside the wrapper
14
- * children: list of elements that can be reordered
15
- * }
16
- * @return {*} {JSX.Element}
17
- */
18
- export declare const DraggableItemsWrapper: React.FC<DraggableItemsWrapperProps>;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- export interface IconProps {
3
- name: string;
4
- color: string;
5
- title?: string;
6
- className?: string;
7
- size?: 16 | 24 | 32 | 40 | 48;
8
- }
9
- /**
10
- * Component that work's as a eds icon wrapper, it imports all eds possible icons
11
- *
12
- * @param {IconProps} {
13
- * name: The name of the icon to be displayed
14
- * title: The html title to use
15
- * color:The color to icon should have
16
- * size: The wanted size of the icon. Possible values are 16, 24, 32, 40 and 48
17
- * }
18
- * @return {*} {JSX.Element} A icon for the provided information
19
- */
20
- export declare const Icon: React.FC<IconProps>;
@@ -1,8 +0,0 @@
1
- export * from './draggableItemsWrapper/DraggableItemsWrapper';
2
- export { Icon } from './icon/Icon';
3
- export { RadioButtonGroup } from './radioButtonGroup/RadioButtonGroup';
4
- export * from './roundIconButton/RoundIconButton';
5
- export { SliderField } from './sliderField/SliderField';
6
- export { TagIcon } from './tagIcon/TagIcon';
7
- export { TagIconShadowWrapper } from './tagIcon/TagIconShadow';
8
- export * from './textIconButton/TextIconButton';
@@ -1,20 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { RadioButtonItem } from '../../types/radioButtonItem';
3
- export interface RadioButtonGroupProps {
4
- title: string;
5
- options: RadioButtonItem[];
6
- style?: CSSProperties;
7
- onSelected: (index: number) => void;
8
- }
9
- /**
10
- * Component that renders a Radio Button Group with a set of options to choose from
11
- *
12
- * @param {RadioButtonGroupProps} {
13
- * title: The title of the radio button group,
14
- * options: List of items to be displayed as options,
15
- * style: Style element to override wrapper style,
16
- * onSelected: Method to be called when the selected value is changed
17
- * }
18
- * @return {*} {JSX.Element}
19
- */
20
- export declare const RadioButtonGroup: React.FC<RadioButtonGroupProps>;