@equinor/amplify-component-lib 10.5.0 → 10.5.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.
- package/dist/atoms/style/darkTokens.js +4 -13
- package/dist/atoms/style/lightTokens.js +31 -3
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/Dialog/Dialog.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/IconCell/IconCell.d.ts +2 -2
- 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/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
- package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +2 -4
- package/package.json +1 -1
|
@@ -191,10 +191,7 @@ import{css as e}from"styled-components";const t=e`
|
|
|
191
191
|
--eds_navigation__button_color: var(--eds_text_static_icons__default);
|
|
192
192
|
--eds_input__label_color: var(--eds_text_static_icons__default);
|
|
193
193
|
--eds_input__text_color: var(--eds_text_static_icons__default);
|
|
194
|
-
|
|
195
|
-
--eds_paragraph__body_long_link_color: var(
|
|
196
|
-
--eds_text_static_icons__default
|
|
197
|
-
);
|
|
194
|
+
|
|
198
195
|
--eds_table__cell_header_color: var(--eds_text_static_icons__default);
|
|
199
196
|
--eds_table__cell_text_color: var(--eds_text_static_icons__default);
|
|
200
197
|
--eds_table__cell_text_bold_color: var(--eds_text_static_icons__default);
|
|
@@ -211,20 +208,14 @@ import{css as e}from"styled-components";const t=e`
|
|
|
211
208
|
--eds_paragraph__body_short_color: var(--eds_text_static_icons__default);
|
|
212
209
|
--eds_paragraph__body_long_color: var(--eds_text_static_icons__default);
|
|
213
210
|
--eds_paragraph__meta_color: var(--eds_text_static_icons__default);
|
|
211
|
+
--eds_paragraph__body_long_link_color: var(
|
|
212
|
+
--eds_text_static_icons__default
|
|
213
|
+
);
|
|
214
214
|
|
|
215
215
|
--eds_interactive__icon_on_interactive_colors: var(
|
|
216
216
|
--eds_text_static_icons__default
|
|
217
217
|
);
|
|
218
218
|
|
|
219
219
|
--eds_ui__chip__badge_color: var(--eds_text_static_icons__default);
|
|
220
|
-
|
|
221
|
-
/* Override table typography variables */
|
|
222
|
-
--eds_table__cell_header_color: var(--eds_text__static_icons__default);
|
|
223
|
-
--eds_table__cell_text_color: var(--eds_text__static_icons__default);
|
|
224
|
-
--eds_table__cell_text_bold_color: var(--eds_text__static_icons__default);
|
|
225
|
-
--eds_table__cell_text_link_color: var(--eds_text__static_icons__default);
|
|
226
|
-
--eds_table__cell_numeric_monospaced_color: var(
|
|
227
|
-
--eds_text__static_icons__default
|
|
228
|
-
);
|
|
229
220
|
}
|
|
230
221
|
`;export{t as darkTokens};
|
|
@@ -142,18 +142,46 @@ import{css as e}from"styled-components";const t=e`
|
|
|
142
142
|
--eds_interactive__disabled__border: rgba(220, 220, 220, 1);
|
|
143
143
|
--eds_interactive__disabled__fill: rgba(234, 234, 234, 1);
|
|
144
144
|
--eds_interactive__link_on_interactive_colors: rgba(255, 255, 255, 1);
|
|
145
|
-
--eds_interactive__icon_on_interactive_colors: rgba(255, 255, 255, 1);
|
|
146
145
|
--eds_interactive__link_in_snackbars: rgba(151, 202, 206, 1);
|
|
147
146
|
--eds_interactive__pressed_overlay_dark: rgba(0, 0, 0, 0.2);
|
|
148
147
|
--eds_interactive__pressed_overlay_light: rgba(255, 255, 255, 0.2);
|
|
149
148
|
|
|
150
|
-
|
|
149
|
+
--eds_heading__h1_color: var(--eds_text__static_icons__default);
|
|
150
|
+
--eds_heading__h2_color: var(--eds_text__static_icons__default);
|
|
151
|
+
--eds_heading__h3_color: var(--eds_text__static_icons__default);
|
|
152
|
+
--eds_heading__h4_color: var(--eds_text__static_icons__default);
|
|
153
|
+
--eds_heading__h5_color: var(--eds_text__static_icons__default);
|
|
154
|
+
--eds_heading__h6_color: var(--eds_text__static_icons__default);
|
|
155
|
+
|
|
156
|
+
--eds_navigation__label_color: var(--eds_text__static_icons__default);
|
|
157
|
+
--eds_navigation__button_color: var(--eds_text__static_icons__default);
|
|
158
|
+
--eds_input__label_color: var(--eds_text__static_icons__default);
|
|
159
|
+
--eds_input__text_color: var(--eds_text__static_icons__default);
|
|
160
|
+
|
|
151
161
|
--eds_table__cell_header_color: var(--eds_text__static_icons__default);
|
|
152
162
|
--eds_table__cell_text_color: var(--eds_text__static_icons__default);
|
|
153
163
|
--eds_table__cell_text_bold_color: var(--eds_text__static_icons__default);
|
|
154
|
-
--eds_table__cell_text_link_color: var(--eds_text__static_icons__default);
|
|
155
164
|
--eds_table__cell_numeric_monospaced_color: var(
|
|
156
165
|
--eds_text__static_icons__default
|
|
157
166
|
);
|
|
167
|
+
|
|
168
|
+
--eds_navigation__menu_title_color: var(--eds_text__static_icons__default);
|
|
169
|
+
--eds_navigation__menu_tabs_color: var(--eds_text__static_icons__default);
|
|
170
|
+
--eds_ui__accordion_header_color: var(--eds_text__static_icons__default);
|
|
171
|
+
|
|
172
|
+
--eds_paragraph__overline_color: var(--eds_text__static_icons__default);
|
|
173
|
+
--eds_paragraph__caption_color: var(--eds_text__static_icons__default);
|
|
174
|
+
--eds_paragraph__body_short_color: var(--eds_text__static_icons__default);
|
|
175
|
+
--eds_paragraph__body_long_color: var(--eds_text__static_icons__default);
|
|
176
|
+
--eds_paragraph__meta_color: var(--eds_text__static_icons__default);
|
|
177
|
+
--eds_paragraph__body_long_link_color: var(
|
|
178
|
+
--eds_text__static_icons__default
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
--eds_interactive__icon_on_interactive_colors: var(
|
|
182
|
+
--eds_text__static_icons__default
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
--eds_ui__chip__badge_color: var(--eds_text__static_icons__default);
|
|
158
186
|
}
|
|
159
187
|
`;export{t as lightTokens};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1 from "react";
|
|
2
2
|
import { IconData } from "@equinor/eds-icons";
|
|
3
3
|
|
|
4
4
|
//#region src/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts
|
|
@@ -12,6 +12,6 @@ interface ExpandingIconButtonProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
|
|
14
14
|
*/
|
|
15
|
-
declare const ExpandingIconButton:
|
|
15
|
+
declare const ExpandingIconButton: react1.ForwardRefExoticComponent<ExpandingIconButtonProps & react1.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ExpandingIconButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react3 from "react";
|
|
2
2
|
import { IconData } from "@equinor/eds-icons";
|
|
3
3
|
|
|
4
4
|
//#region src/deprecated/IconToggleButton.d.ts
|
|
@@ -21,6 +21,6 @@ interface IconToggleButtonProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
|
|
23
23
|
*/
|
|
24
|
-
declare const IconToggleButton:
|
|
24
|
+
declare const IconToggleButton: react3.ForwardRefExoticComponent<IconToggleButtonProps & react3.RefAttributes<HTMLButtonElement>>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { IconToggleButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react5 from "react";
|
|
2
2
|
import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from "react";
|
|
3
3
|
import { IconData } from "@equinor/eds-icons";
|
|
4
4
|
|
|
@@ -25,6 +25,6 @@ type DeletableChipProps = BaseChipProps & InteractiveChipBase & {
|
|
|
25
25
|
onDelete: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
26
26
|
};
|
|
27
27
|
type ChipProps = Omit<HTMLAttributes<HTMLDivElement | HTMLButtonElement>, 'onClick'> & (ReadOnlyChipProps | ClickableChipProps | DeletableChipProps);
|
|
28
|
-
declare const Chip:
|
|
28
|
+
declare const Chip: react5.ForwardRefExoticComponent<ChipProps & react5.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
3
|
import { DatePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DatePicker/DatePicker.d.ts
|
|
@@ -9,11 +9,11 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant' | 'defaultValue'> & {
|
|
|
9
9
|
meta?: string;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const DatePicker$1:
|
|
12
|
+
declare const DatePicker$1: react7.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
|
|
13
13
|
variant?: Variants;
|
|
14
14
|
defaultValue?: Date | undefined;
|
|
15
15
|
meta?: string;
|
|
16
16
|
loading?: boolean;
|
|
17
|
-
} &
|
|
17
|
+
} & react7.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Variants } from "../../atoms/types/variants.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react9 from "react";
|
|
3
3
|
import { DateRangePickerProps } from "@equinor/eds-core-react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/DateRangePicker/DateRangePicker.d.ts
|
|
@@ -8,10 +8,10 @@ type DateRangePickerProps$1 = Omit<DateRangePickerProps, 'variant'> & {
|
|
|
8
8
|
meta?: string;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare const DateRangePicker$1:
|
|
11
|
+
declare const DateRangePicker$1: react9.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
|
|
12
12
|
variant?: Variants;
|
|
13
13
|
meta?: string;
|
|
14
14
|
loading?: boolean;
|
|
15
|
-
} &
|
|
15
|
+
} & react9.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react13 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
|
|
4
4
|
import { IconData } from "@equinor/eds-icons";
|
|
@@ -51,6 +51,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
|
|
|
51
51
|
* @param additionalInfo - Defaults to empty, and won't show the additional info button
|
|
52
52
|
* Also inherits props from EDS dialog
|
|
53
53
|
*/
|
|
54
|
-
declare const Dialog$1:
|
|
54
|
+
declare const Dialog$1: react13.ForwardRefExoticComponent<DialogProps$1 & react13.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SizeIconProps } from "../../atoms/types/Icon.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react11 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/molecules/EquinorLogo/EquinorLogo.d.ts
|
|
5
5
|
interface EquinorLogoProps extends Partial<SizeIconProps> {
|
|
6
6
|
large?: boolean;
|
|
7
7
|
color?: 'red' | 'white' | 'black';
|
|
8
8
|
}
|
|
9
|
-
declare const EquinorLogo:
|
|
9
|
+
declare const EquinorLogo: react11.ForwardRefExoticComponent<EquinorLogoProps & react11.RefAttributes<SVGSVGElement>>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { EquinorLogo, EquinorLogoProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react15 from "react";
|
|
3
3
|
import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
4
4
|
import { IconData } from "@equinor/eds-icons";
|
|
5
5
|
|
|
@@ -49,6 +49,6 @@ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
|
|
|
49
49
|
* @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
|
|
50
50
|
* @returns {JSX.Element} The rendered IconCell.
|
|
51
51
|
*/
|
|
52
|
-
declare const IconCell:
|
|
52
|
+
declare const IconCell: react15.ForwardRefExoticComponent<IconCellProps & react15.RefAttributes<HTMLButtonElement>>;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { IconCell, IconCellProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterProps } from "./Filter.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/Filter/Filter.d.ts
|
|
5
5
|
|
|
@@ -32,6 +32,6 @@ declare function Filter<T extends string>({
|
|
|
32
32
|
id,
|
|
33
33
|
openOnFocus,
|
|
34
34
|
...rest
|
|
35
|
-
}: FilterProps<T>):
|
|
35
|
+
}: FilterProps<T>): react_jsx_runtime7.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Filter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectOptionRequired } from "../../molecules/Select/Select.types.js";
|
|
2
2
|
import { FilterProps } from "./Filter.types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/organisms/Filter/QuickFilter.d.ts
|
|
6
6
|
interface QuickFilterProps<T extends string> {
|
|
@@ -14,6 +14,6 @@ declare function QuickFilter<T extends string>({
|
|
|
14
14
|
items,
|
|
15
15
|
onQuickFilter,
|
|
16
16
|
label
|
|
17
|
-
}: QuickFilterProps<T>):
|
|
17
|
+
}: QuickFilterProps<T>): react_jsx_runtime6.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { QuickFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Filter/SortMenu.d.ts
|
|
4
4
|
interface SortMenuProps<S> {
|
|
@@ -13,6 +13,6 @@ declare function SortMenu<S>({
|
|
|
13
13
|
value,
|
|
14
14
|
onChange,
|
|
15
15
|
items
|
|
16
|
-
}: SortMenuProps<S>):
|
|
16
|
+
}: SortMenuProps<S>): react_jsx_runtime5.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SortMenu };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react127 from "react";
|
|
2
2
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/SideBar/SideBar.d.ts
|
|
@@ -16,6 +16,6 @@ interface SideBarWithCreate extends SideBarProps {
|
|
|
16
16
|
createDisabled?: boolean;
|
|
17
17
|
createActive?: boolean;
|
|
18
18
|
}
|
|
19
|
-
declare const SideBar:
|
|
19
|
+
declare const SideBar: react127.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react127.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SideBar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react131 from "react";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Actions.d.ts
|
|
5
|
-
declare const Actions:
|
|
5
|
+
declare const Actions: react131.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react131.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Actions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from "../../../atoms/types/Field.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react129 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/FieldMenu/FieldMenu.d.ts
|
|
5
5
|
interface FieldMenuProps {
|
|
@@ -8,6 +8,6 @@ interface FieldMenuProps {
|
|
|
8
8
|
itemNameSingular?: string;
|
|
9
9
|
showAccessITLink?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const FieldMenu:
|
|
11
|
+
declare const FieldMenu: react129.ForwardRefExoticComponent<FieldMenuProps & react129.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FieldMenu };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{TutorialItem as n}from"./TutorialItem.js";import{Container as r,TutorialList as i}from"./Tutorials.styles.js";import{useRef as a,useState as o}from"react";import{
|
|
1
|
+
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{TutorialItem as n}from"./TutorialItem.js";import{Container as r,TutorialList as i}from"./Tutorials.styles.js";import{useRef as a,useState as o}from"react";import{Icon as s,Typography as c}from"@equinor/eds-core-react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{youtube_alt as f}from"@equinor/eds-icons";import{useTutorials as p}from"@equinor/subsurface-app-management";const m=({filterTutorials:m,onTutorialStart:h,...g})=>{let{tutorialsOnThisPage:_}=p(),[v,y]=o(!1),b=a(null),x=m?_.filter(m):_,S=()=>y(e=>!e);return d(l,{children:[u(t,{variant:`ghost_icon`,ref:b,onClick:S,...g,children:u(s,{data:f})}),v&&u(e,{open:!0,onClose:S,anchorEl:b.current,children:d(r,{children:[d(c,{variant:`h4`,children:[`Available Tutorials (`,x.length,`)`]}),x.length>0&&d(i,{children:[u(c,{variant:`caption`,children:`For current page`}),x.map(e=>u(n,{onTutorialStart:h,onClose:S,...e},e.id))]})]})})]})};export{m as Tutorials};
|
|
@@ -3,10 +3,8 @@ import{spacings as e}from"../../../atoms/style/spacings.js";import t from"styled
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: ${e.large};
|
|
5
5
|
width: 520px;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
> hr {
|
|
6
|
+
height: 100%;
|
|
7
|
+
> h4:not(:last-child) {
|
|
10
8
|
margin-bottom: ${e.x_large};
|
|
11
9
|
}
|
|
12
10
|
`,r=t.section`
|