@equinor/amplify-component-lib 14.0.0 → 14.1.0
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.
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/molecules/Chip/Chip.d.ts +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/RichTextEditor.d.ts +6 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.d.ts +1 -0
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +45 -25
- package/dist/molecules/RichTextEditor/index.d.ts +7 -7
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.styles.d.ts +4 -4
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Tabs/Tabs.d.ts +2 -2
- package/dist/molecules/index.d.ts +2 -2
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/Comments/AddComment.js +13 -0
- package/dist/organisms/Comments/Comment.d.ts +40 -0
- package/dist/organisms/Comments/Comment.js +32 -0
- package/dist/organisms/Comments/Comments.d.ts +33 -0
- package/dist/organisms/Comments/Comments.js +15 -0
- package/dist/organisms/Comments/DeleteConfirmation.js +1 -0
- package/dist/organisms/Comments/VerticalDivider.js +16 -0
- package/dist/organisms/Comments/mentions/MentionList.js +1 -0
- package/dist/organisms/Comments/mentions/MentionList.styles.js +22 -0
- package/dist/organisms/Comments/mentions/suggestions.js +1 -0
- package/dist/organisms/Comments/mentions/utils.js +1 -0
- package/dist/organisms/Comments/utils.js +1 -0
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideSheet/SideSheet.types.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
- package/dist/organisms/Template/Template.d.ts +3 -3
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +3 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +23 -9
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/TopBar.d.ts +1 -0
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/index.d.ts +1 -0
- package/dist/organisms/index.js +1 -1
- package/package.json +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";const
|
|
1
|
+
import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r,{css as i}from"styled-components";const a=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
|
|
@@ -17,14 +17,14 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
17
17
|
box-shadow: inset 0 -2px 0 0 ${e.interactive.primary__resting.rgba};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,o=r(n)`
|
|
21
21
|
margin: 0 auto ${t.medium};
|
|
22
|
-
`,
|
|
22
|
+
`,s=r.div`
|
|
23
23
|
max-height: 25vh;
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
overflow-y: auto;
|
|
27
|
-
`,
|
|
27
|
+
`,c=r.div`
|
|
28
28
|
&:hover {
|
|
29
29
|
background: ${e.interactive.primary__selected_hover.rgba};
|
|
30
30
|
cursor: pointer;
|
|
@@ -33,7 +33,7 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
33
33
|
border-top: 1px solid ${e.ui.background__light.rgba};
|
|
34
34
|
outline: none !important;
|
|
35
35
|
padding: ${t.medium} ${t.large};
|
|
36
|
-
`,
|
|
36
|
+
`,l=r.div`
|
|
37
37
|
${t=>t.$active&&`background: ${e.interactive.primary__selected_highlight.rgba};
|
|
38
38
|
`};
|
|
39
39
|
|
|
@@ -44,9 +44,23 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
44
44
|
width: 100%;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.clear-icon {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
&:hover {
|
|
48
52
|
background: ${e.interactive.primary__selected_hover.rgba};
|
|
49
53
|
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
${e=>e.$clearable&&i`
|
|
56
|
+
.check-icon {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.clear-icon {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
`}
|
|
50
64
|
}
|
|
51
65
|
|
|
52
66
|
border-top: 1px solid ${e.ui.background__light.rgba};
|
|
@@ -56,7 +70,7 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
56
70
|
svg {
|
|
57
71
|
align-self: center;
|
|
58
72
|
}
|
|
59
|
-
`,
|
|
73
|
+
`,u=r.div`
|
|
60
74
|
border-bottom: 1px solid ${e.ui.background__light.rgba};
|
|
61
75
|
display: flex;
|
|
62
76
|
flex-direction: column;
|
|
@@ -65,15 +79,15 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
65
79
|
margin-left: ${t.large};
|
|
66
80
|
margin-bottom: ${t.small};
|
|
67
81
|
}
|
|
68
|
-
`,
|
|
82
|
+
`,d=r.div`
|
|
69
83
|
padding-top: ${t.small};
|
|
70
84
|
display: flex;
|
|
71
85
|
align-items: center;
|
|
72
86
|
padding-bottom: ${t.xxx_large};
|
|
73
|
-
`,
|
|
87
|
+
`,f=r.div`
|
|
74
88
|
display: flex;
|
|
75
89
|
flex-direction: column;
|
|
76
90
|
> h6 {
|
|
77
91
|
text-transform: capitalize;
|
|
78
92
|
}
|
|
79
|
-
`;export{
|
|
93
|
+
`;export{s as ListContainer,l as MenuFixedItem,c as MenuItem,u as MenuSection,o as NoFieldsText,d as NoSearchResultsContainer,a as SearchContainer,f as TextContainer};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as react250 from "react";
|
|
2
|
+
import * as styled_components82 from "styled-components";
|
|
3
|
+
import * as styled_components_dist_types55 from "styled-components/dist/types";
|
|
4
4
|
|
|
5
5
|
//#region src/organisms/TopBar/Guidelines/Colorbox.d.ts
|
|
6
6
|
interface ColorboxProps {
|
|
7
7
|
$color: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Colorbox:
|
|
9
|
+
declare const Colorbox: styled_components_dist_types55.IStyledComponentBase<"web", styled_components82.FastOmit<styled_components82.FastOmit<react250.DetailedHTMLProps<react250.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color"> & ColorboxProps, never> & Partial<Pick<styled_components82.FastOmit<react250.DetailedHTMLProps<react250.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$color"> & ColorboxProps, never>>> & string;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Colorbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react249 from "react";
|
|
2
2
|
import { Dispatch, FC, ReactNode, SetStateAction } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Notifications/NotificationProvider.d.ts
|
|
@@ -6,7 +6,7 @@ interface NotificationContext {
|
|
|
6
6
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const NotificationContext:
|
|
9
|
+
declare const NotificationContext: react249.Context<NotificationContext | undefined>;
|
|
10
10
|
declare const useNotification: () => NotificationContext;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { useNotification };
|
|
@@ -15,6 +15,7 @@ declare const TopBar: React.ForwardRefExoticComponent<{
|
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
availableFields?: Field[];
|
|
17
17
|
onSelectField?: (selectedField: Field) => void;
|
|
18
|
+
onClearField?: () => void;
|
|
18
19
|
currentField?: Field;
|
|
19
20
|
showAccessITLink?: boolean;
|
|
20
21
|
itemNameSingular?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../atoms/enums/Environment.js";import{ApplicationIcon as e}from"../../molecules/ApplicationIcon/ApplicationIcon.js";import{AppAndFieldContainer as t,AppIdentifier as n,AppName as r,Bar as i,CircularProgress as a,EnvironmentTag as o}from"./TopBar.styles.js";import{TopBarInternalContextProvider as s}from"./TopBarInternalContextProvider.js";import{FieldMenu as c}from"./FieldMenu/FieldMenu.js";import{forwardRef as l}from"react";import{Typography as u}from"@equinor/eds-core-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=l(({id:l,children:p,headerLink:m,applicationIcon:h,applicationName:g,environment:_,isFetching:v=!1,capitalize:y=!1,availableFields:b,onSelectField:x,currentField:S,
|
|
1
|
+
import"../../atoms/enums/Environment.js";import{ApplicationIcon as e}from"../../molecules/ApplicationIcon/ApplicationIcon.js";import{AppAndFieldContainer as t,AppIdentifier as n,AppName as r,Bar as i,CircularProgress as a,EnvironmentTag as o}from"./TopBar.styles.js";import{TopBarInternalContextProvider as s}from"./TopBarInternalContextProvider.js";import{FieldMenu as c}from"./FieldMenu/FieldMenu.js";import{forwardRef as l}from"react";import{Typography as u}from"@equinor/eds-core-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=l(({id:l,children:p,headerLink:m,applicationIcon:h,applicationName:g,environment:_,isFetching:v=!1,capitalize:y=!1,availableFields:b,onSelectField:x,currentField:S,onClearField:C,showAccessITLink:w,itemNameSingular:T},E)=>d(s,{selectedField:S,children:f(i,{ref:E,children:[f(t,{id:l,children:[f(n,{tabIndex:0,to:m||`/`,children:[d(e,{name:h,size:32,withHover:!0}),d(r,{group:`navigation`,variant:`menu_title`,$capitalize:y,children:y?g.toLowerCase():g})]}),b&&x&&d(c,{availableFields:b,onSelect:x,showAccessITLink:w,itemNameSingular:T,onClear:C}),v&&d(a,{size:16})]}),(_===`development`||_===`staging`||_===`localhost`)&&d(o,{$environmentType:_,children:d(u,{group:`heading`,variant:`h5`,children:_})}),p]})}));p.displayName=`TopBar`;export{p as TopBar};
|
|
@@ -22,6 +22,7 @@ import { ReleaseNote, ReleaseNoteProps } from "./ReleaseNote/ReleaseNote.js";
|
|
|
22
22
|
import { ToggleGroup } from "./ToggleGroup/index.js";
|
|
23
23
|
import { Faq } from "./Faq/Faq.js";
|
|
24
24
|
import { ReleaseNotesPage } from "./ReleaseNotesPage/ReleaseNotesPage.js";
|
|
25
|
+
import { Comments, CommentsProps } from "./Comments/Comments.js";
|
|
25
26
|
import { Card as Card$1, CardProps } from "@equinor/eds-core-react";
|
|
26
27
|
import { EdsDataGridProps as DataGridProps } from "@equinor/eds-data-grid-react";
|
|
27
28
|
export { Card$1 as Card, type CardProps, type DataGridProps };
|
package/dist/organisms/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./Status/index.js";import"./Status/collections/MissingAccessToApp.js";import"./DataGrid/DataGrid.js";import"./Template/Template.js";import"./FieldSelector/FieldSelector.js";import"./Filter/index.js";import"./SideBar/index.js";import"./ReleaseNote/ReleaseNote.js";import"./TopBar/index.js";import"./Status/collections/BadRequest.js";import"./Status/collections/GenericError.js";import"./Status/collections/MissingPermissions.js";import"./Status/collections/PageNotFound.js";import"./Status/collections/ServerError.js";import"./Status/collections/ApiResponseError.js";import"./SideSheet/SideSheet.js";import"./TableOfContents/TableOfContents.js";import"./PageTitle/PageTitle.js";import"./ToggleGroup/index.js";import"./Faq/Faq.js";import"./ReleaseNotesPage/ReleaseNotesPage.js";import{Card as e}from"@equinor/eds-core-react";export{e as Card};
|
|
1
|
+
import"./Status/index.js";import"./Status/collections/MissingAccessToApp.js";import"./DataGrid/DataGrid.js";import"./Template/Template.js";import"./FieldSelector/FieldSelector.js";import"./Filter/index.js";import"./SideBar/index.js";import"./ReleaseNote/ReleaseNote.js";import"./TopBar/index.js";import"./Status/collections/BadRequest.js";import"./Status/collections/GenericError.js";import"./Status/collections/MissingPermissions.js";import"./Status/collections/PageNotFound.js";import"./Status/collections/ServerError.js";import"./Status/collections/ApiResponseError.js";import"./SideSheet/SideSheet.js";import"./TableOfContents/TableOfContents.js";import"./PageTitle/PageTitle.js";import"./ToggleGroup/index.js";import"./Faq/Faq.js";import"./ReleaseNotesPage/ReleaseNotesPage.js";import"./Comments/Comments.js";import{Card as e}from"@equinor/eds-core-react";export{e as Card};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/amplify-component-lib",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Frontend Typescript components for the Amplify team",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -139,6 +139,8 @@
|
|
|
139
139
|
"@tiptap/extension-text-align": "^3.1.0",
|
|
140
140
|
"@tiptap/extension-text-style": "^3.1.0",
|
|
141
141
|
"@tiptap/extension-typography": "^3.1.0",
|
|
142
|
+
"@tiptap/extension-mention": "^3.1.0",
|
|
143
|
+
"@tiptap/suggestion": "^3.1.0",
|
|
142
144
|
"@tiptap/extensions": "^3.1.0",
|
|
143
145
|
"@tiptap/pm": "^3.1.0",
|
|
144
146
|
"@tiptap/react": "^3.1.0",
|