@equinor/amplify-component-lib 9.15.3-beta.1 → 9.16.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.
Files changed (72) hide show
  1. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  2. package/dist/atoms/hooks/useSearchParameter.d.ts +12 -0
  3. package/dist/atoms/hooks/useSearchParameter.js +1 -0
  4. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  5. package/dist/atoms/index.d.ts +1 -0
  6. package/dist/atoms/index.js +1 -1
  7. package/dist/atoms/utils/date.d.ts +1 -1
  8. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  9. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  10. package/dist/index.d.ts +5 -1
  11. package/dist/index.js +1 -1
  12. package/dist/molecules/Chip/Chip.d.ts +2 -2
  13. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  14. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  15. package/dist/molecules/Dialog/Dialog.d.ts +2 -2
  16. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  17. package/dist/molecules/IconCell/IconCell.d.ts +54 -0
  18. package/dist/molecules/IconCell/IconCell.js +1 -0
  19. package/dist/molecules/IconCell/IconCell.styles.js +108 -0
  20. package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
  21. package/dist/molecules/IconCell/IconCell.types.js +1 -0
  22. package/dist/molecules/IconCell/IconCell.utils.js +8 -0
  23. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  24. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  25. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  26. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
  27. package/dist/molecules/RichTextEditor/index.d.ts +5 -5
  28. package/dist/molecules/Search/Search.d.ts +2 -2
  29. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  30. package/dist/molecules/Select/Select.styles.d.ts +4 -4
  31. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  32. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  33. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  34. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  35. package/dist/molecules/Sieve/Sieve.js +1 -1
  36. package/dist/molecules/Sieve/Sieve.types.d.ts +2 -0
  37. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  38. package/dist/molecules/Tabs/Tabs.types.d.ts +1 -1
  39. package/dist/molecules/index.d.ts +3 -0
  40. package/dist/molecules/index.js +1 -1
  41. package/dist/organisms/Faq/Category/Category.js +2 -2
  42. package/dist/organisms/Faq/Faq.js +1 -1
  43. package/dist/organisms/Faq/Header.js +2 -2
  44. package/dist/organisms/Filter/Filter.d.ts +2 -2
  45. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  46. package/dist/organisms/Filter/SortMenu.d.ts +2 -2
  47. package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
  48. package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -1
  49. package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +1 -1
  50. package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +1 -1
  51. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  52. package/dist/organisms/Status/Action.d.ts +2 -2
  53. package/dist/organisms/Status/Description.d.ts +2 -2
  54. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  55. package/dist/organisms/Status/Title.d.ts +2 -2
  56. package/dist/organisms/Status/collections/BadRequest.js +1 -1
  57. package/dist/organisms/Status/collections/GenericError.js +1 -1
  58. package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
  59. package/dist/organisms/Status/collections/PageNotFound.js +1 -1
  60. package/dist/organisms/Status/collections/ServerError.js +1 -1
  61. package/dist/organisms/TableOfContents/TableOfContents.styles.js +1 -1
  62. package/dist/organisms/Template/Template.d.ts +3 -3
  63. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  64. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  65. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  66. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  67. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
  68. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  69. package/dist/organisms/TopBar/TopBar.styles.js +1 -1
  70. package/dist/providers/StepperProvider.js +1 -1
  71. package/dist/providers/TableOfContentsProvider.js +1 -1
  72. package/package.json +8 -4
@@ -1,6 +1,6 @@
1
- import * as react120 from "react";
1
+ import * as react137 from "react";
2
2
 
3
3
  //#region src/atoms/hooks/useLocalStorage.d.ts
4
- declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react120.Dispatch<react120.SetStateAction<T>>, () => void];
4
+ declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react137.Dispatch<react137.SetStateAction<T>>, () => void];
5
5
  //#endregion
6
6
  export { useLocalStorage };
@@ -0,0 +1,12 @@
1
+ //#region src/atoms/hooks/useSearchParameter.d.ts
2
+ declare function useSearchParameter<T>({
3
+ key,
4
+ initialValue,
5
+ parser
6
+ }: {
7
+ key: string;
8
+ initialValue?: T;
9
+ parser?: (value: string) => T;
10
+ }): readonly [T | undefined, (action: ((value: T | undefined) => T) | T) => void];
11
+ //#endregion
12
+ export { useSearchParameter };
@@ -0,0 +1 @@
1
+ import{useRef as e}from"react";import{useSearchParams as t}from"react-router-dom";function n({key:n,initialValue:r,parser:i}){let[a,o]=t(),s=e(!1),c=a.get(n)??void 0,l=i&&c?i(c):c,u=!s.current&&l===void 0?r:l,d=e=>{if(s.current||=!0,e instanceof Function){let t=e(u);d(t)}else{let t=new URLSearchParams(a),r=typeof e==`string`?e:JSON.stringify(e);r===void 0||r===``||r===`null`||r===`[]`||r===`{}`?t.delete(n):t.set(n,r),o(t)}};return[u,d]}export{n as useSearchParameter};
@@ -1,6 +1,6 @@
1
1
  import { SelectOption, SelectOptionRequired } from "../../molecules/Select/Select.types.js";
2
2
  import { SelectComponentProps } from "../../molecules/Select/Select.js";
3
- import * as react118 from "react";
3
+ import * as react139 from "react";
4
4
  import { ChangeEvent, KeyboardEvent } from "react";
5
5
 
6
6
  //#region src/atoms/hooks/useSelect.d.ts
@@ -16,8 +16,8 @@ declare const useSelect: <T extends SelectOptionRequired>(props: SelectComponent
16
16
  handleOnOpen: () => void;
17
17
  handleOnRemoveItem: (item: SelectOption<T>) => void;
18
18
  search: string;
19
- searchRef: react118.RefObject<HTMLInputElement | null>;
20
- itemRefs: react118.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react139.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react139.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -14,6 +14,7 @@ import { usePrevious } from "./hooks/usePrevious.js";
14
14
  import { useSelect } from "./hooks/useSelect.js";
15
15
  import { useOnScreenMultiple } from "./hooks/useOnScreenMultiple.js";
16
16
  import { useNotification } from "../organisms/TopBar/Notifications/NotificationProvider.js";
17
+ import { useSearchParameter } from "./hooks/useSearchParameter.js";
17
18
  import { usePrefetchRichTextImages } from "./hooks/usePrefetchRichTextImages.js";
18
19
  import { useFaqsInApplication } from "./hooks/useFaqsInApplication.js";
19
20
  import { animation } from "./style/animation.js";
@@ -1 +1 @@
1
- import{EnvironmentType as e}from"./enums/Environment.js";import{auth as ee,environment as t}from"./utils/auth_environment.js";import{animation as te}from"./style/animation.js";import{colors as n}from"./style/colors.js";import{spacings as r}from"./style/spacings.js";import{elevation as i,shape as a,style_exports as o,typography as s}from"./style/index.js";import{formatLatLng as c,formatUtm as l}from"./utils/coordinate.js";import{formatDate as u,formatDateTime as d,formatRelativeDateTime as f,isBetweenDates as p}from"./utils/date.js";import{exportComponent as m}from"./utils/export.js";import{setupIcons as h}from"./utils/favicon.js";import{convertLatLngToUtm as g,convertUtmToLatLng as _,degrees2radians as v,distanceLatLng as y,utmProjection as b}from"./utils/map.js";import{defaultQueryOptions as x}from"./utils/reactquery.js";import{IMG_WITH_ALT as S,IMG_WITH_SRC_AND_ALT as C,cleanRichTextValue as w,extractImageUrls as T,getFeatures as E,getImagesFromRichText as D,imageToB64 as O}from"./utils/richtext.js";import{formatBytes as k,formatDataSize as A,formatKiloBytes as j}from"./utils/size.js";import{sortByDate as M,sortByWellboreName as N}from"./utils/sort.js";import{Empty as P,capitalize as F}from"./utils/string.js";import{isValidUrl as I}from"./utils/url.js";import{getHighlightElementBoundingBox as L,highlightTutorialElementID as R}from"./utils/tutorials.js";import{getVariantIcon as z}from"./utils/forms.js";import{useAuth as B}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as V}from"../providers/SideBarProvider.js";import{useSnackbar as H}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as U}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as W}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as G}from"./hooks/useLocalStorage.js";import{useAmplifyKit as K}from"./hooks/useAmplifyKit.js";import{useDebounce as q}from"./hooks/useDebounce.js";import{useFakeProgress as J}from"./hooks/useFakeProgress.js";import{usePrevious as Y}from"./hooks/usePrevious.js";import{useSelect as X}from"./hooks/useSelect.js";import{useNotification as Z}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as Q}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as ie}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ae}from"./hooks/useFaqsInApplication.js";import{ErrorType as oe}from"./enums/Errors.js";import{SpacingsMode as se}from"./enums/SpacingsMode.js";import{amplify_failure as ce,amplify_lwd as le,amplify_success as ue,amplify_wellbore as de,amplify_wireline as fe,amplify_wireline_cased_hole as pe,amplify_wireline_open_hole as me}from"./icons/drilling.js";import{amplify_calculator as he,amplify_overlay as ge,amplify_sidebyside as _e}from"./icons/map.js";import{amplify_aml as ve,amplify_arrow_up_down as ye,amplify_branch as be,amplify_info_small as xe,amplify_merged as Se,amplify_overview as Ce,amplify_resources as we,amplify_sharepoint as Te,amplify_shield_person as Ee,amplify_small_portal as De,amplify_snail as Oe,amplify_sort_small as ke,amplify_tutorials as Ae}from"./icons/other.js";import{amplify_h1 as je,amplify_h2 as Me,amplify_h3 as Ne,amplify_h4 as Pe,amplify_table_add_column_left as Fe,amplify_table_add_column_right as Ie,amplify_table_add_row_above as Le,amplify_table_add_row_below as Re,amplify_table_column_heading as ze,amplify_table_merge_cells as Be,amplify_table_remove_column as Ve,amplify_table_remove_row as He,amplify_table_row_heading as Ue,amplify_table_split_cell as We}from"./icons/wysiwyg.js";import{useReleaseNotes as Ge}from"../providers/ReleaseNotesProvider.js";const $=o;export{$ as style};
1
+ import{EnvironmentType as e}from"./enums/Environment.js";import{auth as ee,environment as t}from"./utils/auth_environment.js";import{animation as te}from"./style/animation.js";import{colors as n}from"./style/colors.js";import{spacings as r}from"./style/spacings.js";import{elevation as i,shape as a,style_exports as o,typography as s}from"./style/index.js";import{formatLatLng as c,formatUtm as l}from"./utils/coordinate.js";import{formatDate as u,formatDateTime as d,formatRelativeDateTime as f,isBetweenDates as p}from"./utils/date.js";import{exportComponent as m}from"./utils/export.js";import{setupIcons as h}from"./utils/favicon.js";import{convertLatLngToUtm as g,convertUtmToLatLng as _,degrees2radians as v,distanceLatLng as y,utmProjection as b}from"./utils/map.js";import{defaultQueryOptions as x}from"./utils/reactquery.js";import{IMG_WITH_ALT as S,IMG_WITH_SRC_AND_ALT as C,cleanRichTextValue as w,extractImageUrls as T,getFeatures as E,getImagesFromRichText as D,imageToB64 as O}from"./utils/richtext.js";import{formatBytes as k,formatDataSize as A,formatKiloBytes as j}from"./utils/size.js";import{sortByDate as M,sortByWellboreName as N}from"./utils/sort.js";import{Empty as P,capitalize as F}from"./utils/string.js";import{isValidUrl as I}from"./utils/url.js";import{getHighlightElementBoundingBox as L,highlightTutorialElementID as R}from"./utils/tutorials.js";import{getVariantIcon as z}from"./utils/forms.js";import{useAuth as B}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as V}from"../providers/SideBarProvider.js";import{useSnackbar as H}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as U}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as W}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as G}from"./hooks/useLocalStorage.js";import{useAmplifyKit as K}from"./hooks/useAmplifyKit.js";import{useDebounce as q}from"./hooks/useDebounce.js";import{useFakeProgress as J}from"./hooks/useFakeProgress.js";import{usePrevious as Y}from"./hooks/usePrevious.js";import{useSelect as X}from"./hooks/useSelect.js";import{useNotification as Z}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as Q}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{useSearchParameter as ie}from"./hooks/useSearchParameter.js";import{usePrefetchRichTextImages as ae}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as oe}from"./hooks/useFaqsInApplication.js";import{ErrorType as se}from"./enums/Errors.js";import{SpacingsMode as ce}from"./enums/SpacingsMode.js";import{amplify_failure as le,amplify_lwd as ue,amplify_success as de,amplify_wellbore as fe,amplify_wireline as pe,amplify_wireline_cased_hole as me,amplify_wireline_open_hole as he}from"./icons/drilling.js";import{amplify_calculator as ge,amplify_overlay as _e,amplify_sidebyside as ve}from"./icons/map.js";import{amplify_aml as ye,amplify_arrow_up_down as be,amplify_branch as xe,amplify_info_small as Se,amplify_merged as Ce,amplify_overview as we,amplify_resources as Te,amplify_sharepoint as Ee,amplify_shield_person as De,amplify_small_portal as Oe,amplify_snail as ke,amplify_sort_small as Ae,amplify_tutorials as je}from"./icons/other.js";import{amplify_h1 as Me,amplify_h2 as Ne,amplify_h3 as Pe,amplify_h4 as Fe,amplify_table_add_column_left as Ie,amplify_table_add_column_right as Le,amplify_table_add_row_above as Re,amplify_table_add_row_below as ze,amplify_table_column_heading as Be,amplify_table_merge_cells as Ve,amplify_table_remove_column as He,amplify_table_remove_row as Ue,amplify_table_row_heading as We,amplify_table_split_cell as Ge}from"./icons/wysiwyg.js";import{useReleaseNotes as Ke}from"../providers/ReleaseNotesProvider.js";const $=o;export{$ as style};
@@ -13,7 +13,7 @@ declare const formatDate: (date: Date | string | null | undefined, options?: For
13
13
  useUTC?: boolean;
14
14
  }) => string | undefined;
15
15
  declare const formatDateTime: (date: Date | string | null | undefined, options?: {
16
- month?: "short" | "long";
16
+ month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
17
17
  hideYear?: boolean;
18
18
  isGMT?: boolean;
19
19
  }) => string | undefined;
@@ -1,4 +1,4 @@
1
- import * as react1 from "react";
1
+ import * as react0 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: react1.ForwardRefExoticComponent<ExpandingIconButtonProps & react1.RefAttributes<HTMLDivElement>>;
15
+ declare const ExpandingIconButton: react0.ForwardRefExoticComponent<ExpandingIconButtonProps & react0.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { ExpandingIconButton };
@@ -1,4 +1,4 @@
1
- import * as react0 from "react";
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: react0.ForwardRefExoticComponent<IconToggleButtonProps & react0.RefAttributes<HTMLButtonElement>>;
24
+ declare const IconToggleButton: react3.ForwardRefExoticComponent<IconToggleButtonProps & react3.RefAttributes<HTMLButtonElement>>;
25
25
  //#endregion
26
26
  export { IconToggleButton };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import { SelectOption, SelectOptionRequired } from "./molecules/Select/Select.ty
19
19
  import { useSelect } from "./atoms/hooks/useSelect.js";
20
20
  import { useOnScreenMultiple } from "./atoms/hooks/useOnScreenMultiple.js";
21
21
  import { useNotification } from "./organisms/TopBar/Notifications/NotificationProvider.js";
22
+ import { useSearchParameter } from "./atoms/hooks/useSearchParameter.js";
22
23
  import { usePrefetchRichTextImages } from "./atoms/hooks/usePrefetchRichTextImages.js";
23
24
  import { useFaqsInApplication } from "./atoms/hooks/useFaqsInApplication.js";
24
25
  import { animation } from "./atoms/style/animation.js";
@@ -67,6 +68,8 @@ import { FileProgressProps } from "./molecules/FileProgress/FileProgress.types.j
67
68
  import { FileProgress, FileProgressPropsExtension } from "./molecules/FileProgress/FileProgress.js";
68
69
  import { FileUploadArea, FileUploadAreaProps } from "./molecules/FileUploadArea/FileUploadArea.js";
69
70
  import { FullPageSpinner, FullPageSpinnerProps } from "./molecules/FullPageSpinner/FullPageSpinner.js";
71
+ import { IconCellColors, IconCellStates, IconCellVariants } from "./molecules/IconCell/IconCell.types.js";
72
+ import { IconCell, IconCellProps } from "./molecules/IconCell/IconCell.js";
70
73
  import { InfoElement, InfoElementProps } from "./molecules/InfoElement/InfoElement.js";
71
74
  import { OptionalTooltip, OptionalTooltipProps } from "./molecules/OptionalTooltip/OptionalTooltip.js";
72
75
  import { ProfileAvatar, ProfileAvatarProps } from "./molecules/ProfileAvatar/ProfileAvatar.js";
@@ -74,6 +77,7 @@ import { RichTextDisplay, RichTextDisplayProps } from "./molecules/RichTextDispl
74
77
  import { AmplifyBar, EditorMenu, EditorText } from "./molecules/RichTextEditor/MenuBar/MenuBar.js";
75
78
  import { RichTextEditor, RichTextEditorProps } from "./molecules/RichTextEditor/RichTextEditor.js";
76
79
  import { RichText } from "./molecules/RichTextEditor/index.js";
80
+ import { Tab } from "./molecules/Tabs/Tabs.types.js";
77
81
  import { Tabs, TabsProps } from "./molecules/Tabs/Tabs.js";
78
82
  import { TableMenuBar, TextTable } from "./molecules/RichTextEditor/MenuBar/Table/TableBar.js";
79
83
  import { Search } from "./molecules/Search/Search.js";
@@ -121,4 +125,4 @@ import { Card, CardProps, DataGridProps } from "./organisms/index.js";
121
125
  import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
122
126
  import { IconToggleButton } from "./deprecated/IconToggleButton.js";
123
127
  import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
124
- export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ContentMenu, ContentMenuProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FilterValues, FullPageSpinner, FullPageSpinnerProps, GenericError, GroupedComboBoxProps, GroupedSingleSelectProps, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, ItemType, LinearProgress, LinearProgressProps, ListComboBoxProps, ListItem, ListItemProps, ListSingleSelectProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, Sieve, SieveFilterGroup, SieveOption, SieveProps, SieveValue, SingleFilterMenu, SingleFilterMenuProps, SingleSelect, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, ToggleGroup, TopBar, TutorialHighlight, TutorialHighlightingProvider, Typography, TypographyProps, Waves, amplify_aml, amplify_arrow_up_down, amplify_branch, amplify_calculator, amplify_failure, amplify_h1, amplify_h2, amplify_h3, amplify_h4, amplify_info_small, amplify_lwd, amplify_merged, amplify_overlay, amplify_overview, amplify_resources, amplify_sharepoint, amplify_shield_person, amplify_sidebyside, amplify_small_portal, amplify_snail, amplify_sort_small, amplify_success, amplify_table_add_column_left, amplify_table_add_column_right, amplify_table_add_row_above, amplify_table_add_row_below, amplify_table_column_heading, amplify_table_merge_cells, amplify_table_remove_column, amplify_table_remove_row, amplify_table_row_heading, amplify_table_split_cell, amplify_tutorials, amplify_wellbore, amplify_wireline, amplify_wireline_cased_hole, amplify_wireline_open_hole, animation, auth, capitalize, cleanRichTextValue, colors, convertLatLngToUtm, convertUtmToLatLng, defaultQueryOptions, degrees2radians, distanceLatLng, elevation, environment, exportComponent, extractImageUrls, formatBytes, formatDataSize, formatDate, formatDateTime, formatKiloBytes, formatLatLng, formatRelativeDateTime, formatUtm, getFeatures, getHighlightElementBoundingBox, getImagesFromRichText, getVariantIcon, highlightTutorialElementID, imageToB64, isBetweenDates, isValidUrl, setupIcons, shape, skeletonBaseloading, sortByDate, sortByWellboreName, spacings, style, typography, useAmplifyKit, useAuth, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStepper, useTableOfContents, useThemeProvider, utmProjection };
128
+ export { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApiResponseError, AppIconProps, ApplicationIcon, ApplicationIconProps, AuthProvider, BadRequest, Badge, BadgeProps, Banner, BannerProps, BaseChipProps, BasicSideBarMenuItem, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonProps, Card, CardProps, Checkbox, CheckboxProps, Chip, CircularProgress, CircularProgressProps, ComboBox, ComboBoxChip, ContentMenu, ContentMenuProps, ContentProps, DEFAULT_FEATURES, DataGrid, DataGridProps, DatePicker, DatePickerProps, DateRangePicker, DateRangePickerProps, Dialog, DialogAction, DialogProps, Divider, DividerProps, DotProgress, DotProgressProps, EDSDialog, EDSDialogProps, EditorMenu, EditorPanel, EditorText, ElementItem, Empty, EnvironmentType, EquinorLogo, EquinorLogoProps, ErrorContentType, ErrorType, ExpandingIconButton, Faq, FeaturesProps, FeedBackIcon, FeedBackIconProps, Field, FieldSelector, FieldSelectorProps, FileProgress, FileProgressProps, FileProgressPropsExtension, FileUploadArea, FileUploadAreaProps, Filter, FilterType, FilterValues, FullPageSpinner, FullPageSpinnerProps, GenericError, GroupedComboBoxProps, GroupedSingleSelectProps, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColors, IconCellProps, IconCellStates, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, ItemType, LinearProgress, LinearProgressProps, ListComboBoxProps, ListItem, ListItemProps, ListSingleSelectProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, Sieve, SieveFilterGroup, SieveOption, SieveProps, SieveValue, SingleFilterMenu, SingleFilterMenuProps, SingleSelect, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, Tab, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, ToggleGroup, TopBar, TutorialHighlight, TutorialHighlightingProvider, Typography, TypographyProps, Waves, amplify_aml, amplify_arrow_up_down, amplify_branch, amplify_calculator, amplify_failure, amplify_h1, amplify_h2, amplify_h3, amplify_h4, amplify_info_small, amplify_lwd, amplify_merged, amplify_overlay, amplify_overview, amplify_resources, amplify_sharepoint, amplify_shield_person, amplify_sidebyside, amplify_small_portal, amplify_snail, amplify_sort_small, amplify_success, amplify_table_add_column_left, amplify_table_add_column_right, amplify_table_add_row_above, amplify_table_add_row_below, amplify_table_column_heading, amplify_table_merge_cells, amplify_table_remove_column, amplify_table_remove_row, amplify_table_row_heading, amplify_table_split_cell, amplify_tutorials, amplify_wellbore, amplify_wireline, amplify_wireline_cased_hole, amplify_wireline_open_hole, animation, auth, capitalize, cleanRichTextValue, colors, convertLatLngToUtm, convertUtmToLatLng, defaultQueryOptions, degrees2radians, distanceLatLng, elevation, environment, exportComponent, extractImageUrls, formatBytes, formatDataSize, formatDate, formatDateTime, formatKiloBytes, formatLatLng, formatRelativeDateTime, formatUtm, getFeatures, getHighlightElementBoundingBox, getImagesFromRichText, getVariantIcon, highlightTutorialElementID, imageToB64, isBetweenDates, isValidUrl, setupIcons, shape, skeletonBaseloading, sortByDate, sortByWellboreName, spacings, style, typography, useAmplifyKit, useAuth, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSearchParameter, useSelect, useSideBar, useSnackbar, useStepper, useTableOfContents, useThemeProvider, utmProjection };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useNotification as ce}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as le,useStepper as ue}from"./providers/StepperProvider.js";import{Theme as de}from"./atoms/enums/Theme.js";import{ThemeProvider as fe,useThemeProvider as pe}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as me}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as he}from"./atoms/hooks/useFaqsInApplication.js";import{ErrorType as ge}from"./atoms/enums/Errors.js";import{SpacingsMode as _e}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as ve,amplify_lwd as ye,amplify_success as be,amplify_wellbore as xe,amplify_wireline as Se,amplify_wireline_cased_hole as Ce,amplify_wireline_open_hole as we}from"./atoms/icons/drilling.js";import{amplify_calculator as Te,amplify_overlay as Ee,amplify_sidebyside as De}from"./atoms/icons/map.js";import{amplify_aml as Oe,amplify_arrow_up_down as ke,amplify_branch as Ae,amplify_info_small as je,amplify_merged as Me,amplify_overview as Ne,amplify_resources as Pe,amplify_sharepoint as Fe,amplify_shield_person as Ie,amplify_small_portal as Le,amplify_snail as Re,amplify_sort_small as ze,amplify_tutorials as Be}from"./atoms/icons/other.js";import{amplify_h1 as Ve,amplify_h2 as He,amplify_h3 as Ue,amplify_h4 as We,amplify_table_add_column_left as Ge,amplify_table_add_column_right as Ke,amplify_table_add_row_above as qe,amplify_table_add_row_below as Je,amplify_table_column_heading as Ye,amplify_table_merge_cells as Xe,amplify_table_remove_column as Ze,amplify_table_remove_row as Qe,amplify_table_row_heading as $e,amplify_table_split_cell as et}from"./atoms/icons/wysiwyg.js";import{style as tt}from"./atoms/index.js";import{ReleaseNotesProvider as nt,useReleaseNotes as rt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as it}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as at}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as ot}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as st}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as ct}from"./molecules/Badge/Badge.js";import{Banner as lt}from"./molecules/Banner/Banner.js";import{Button as ut}from"./molecules/Button/Button.js";import{Chip as dt}from"./molecules/Chip/Chip.js";import{SkeletonBase as ft,skeletonBaseloading as pt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{ContentMenu as mt}from"./molecules/ContentMenu/ContentMenu.js";import{DatePicker as ht}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as gt}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as _t}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as vt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as yt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as bt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as xt}from"./molecules/FileUploadArea/FileUploadArea.js";import{InfoElement as St}from"./molecules/InfoElement/InfoElement.js";import{ProfileAvatar as Ct}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as wt}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as Tt,TextTable as Et}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as Dt,EditorMenu as Ot,EditorText as kt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as At}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as jt}from"./molecules/RichTextEditor/index.js";import{Tabs as Mt}from"./molecules/Tabs/Tabs.js";import{Search as Nt}from"./molecules/Search/Search.js";import{Sieve as Pt}from"./molecules/Sieve/Sieve.js";import{SingleFilterMenu as Ft}from"./molecules/SingleFilterMenu/SingleFilterMenu.js";import{SkeletonGradient as It}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as Lt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Rt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as zt}from"./molecules/Select/Select.styles.js";import{ComboBox as Bt}from"./molecules/Select/ComboBox/ComboBox.js";import{SingleSelect as Vt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as Ht}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as Ut}from"./molecules/ListItem/ListItem.js";import{Checkbox as Wt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as Gt}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Kt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as qt}from"./molecules/Waves/Waves.js";import{Accordion as Jt,Breadcrumbs as Yt,CircularProgress as Xt,Divider as Zt,DotProgress as Qt,EDSDialog as $t,Icon as en,LinearProgress as tn,Menu as nn,TextField as rn,Typography as an}from"./molecules/index.js";import{DataGrid as on}from"./organisms/DataGrid/DataGrid.js";import{Template as sn}from"./organisms/Template/Template.js";import{FieldSelector as cn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as ln}from"./organisms/Filter/index.js";import{SideBar as un}from"./organisms/SideBar/index.js";import{ReleaseNote as dn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as fn}from"./organisms/TopBar/index.js";import{BadRequest as pn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as mn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as hn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as gn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as _n}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as vn}from"./organisms/Status/collections/ApiResponseError.js";import{TableOfContents as yn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as bn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as xn}from"./organisms/ToggleGroup/index.js";import{Faq as Sn}from"./organisms/Faq/Faq.js";import{Card as Cn}from"./organisms/index.js";import{ExpandingIconButton as wn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Tn from"./deprecated/IconToggleButton.js";import{OldStepper as En}from"./deprecated/OldStepper/OldStepper.js";export{Jt as Accordion,Dt as AmplifyBar,ne as AmplifyKit,ot as AnimatedCheckmark,vn as ApiResponseError,st as ApplicationIcon,K as AuthProvider,pn as BadRequest,ct as Badge,lt as Banner,Yt as Breadcrumbs,ut as Button,Cn as Card,Wt as Checkbox,dt as Chip,Xt as CircularProgress,Bt as ComboBox,zt as ComboBoxChip,mt as ContentMenu,w as DEFAULT_FEATURES,on as DataGrid,ht as DatePicker,gt as DateRangePicker,vt as Dialog,Zt as Divider,Qt as DotProgress,$t as EDSDialog,Ot as EditorMenu,kt as EditorText,R as Empty,e as EnvironmentType,yt as EquinorLogo,ge as ErrorType,wn as ExpandingIconButton,Sn as Faq,Ht as FeedBackIcon,cn as FieldSelector,bt as FileProgress,xt as FileUploadArea,ln as Filter,l as FullPageSpinner,mn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,en as Icon,Tn as IconToggleButton,St as InfoElement,tn as LinearProgress,Ut as ListItem,at as LoadingProvider,nn as Menu,G as MissingAccessToApp,hn as MissingPermissions,En as OldStepper,Rt as OptionDrawer,_t as OptionalTooltip,gn as PageNotFound,bn as PageTitle,Ct as ProfileAvatar,Gt as Radio,dn as ReleaseNote,nt as ReleaseNotesProvider,jt as RichText,wt as RichTextDisplay,At as RichTextEditor,T as RichTextEditorFeatures,Nt as Search,_n as ServerError,un as SideBar,J as SideBarProvider,Pt as Sieve,Ft as SingleFilterMenu,Vt as SingleSelect,ft as SkeletonBase,It as SkeletonGradient,X as SnackbarProvider,_e as SpacingsMode,W as Status,Lt as Stepper,le as StepperProvider,Kt as Switch,Tt as TableMenuBar,yn as TableOfContents,$ as TableOfContentsProvider,Mt as Tabs,sn as Template,rn as TextField,Et as TextTable,de as Theme,fe as ThemeProvider,xn as ToggleGroup,fn as TopBar,it as TutorialHighlightingProvider,an as Typography,qt as Waves,Oe as amplify_aml,ke as amplify_arrow_up_down,Ae as amplify_branch,Te as amplify_calculator,ve as amplify_failure,Ve as amplify_h1,He as amplify_h2,Ue as amplify_h3,We as amplify_h4,je as amplify_info_small,ye as amplify_lwd,Me as amplify_merged,Ee as amplify_overlay,Ne as amplify_overview,Pe as amplify_resources,Fe as amplify_sharepoint,Ie as amplify_shield_person,De as amplify_sidebyside,Le as amplify_small_portal,Re as amplify_snail,ze as amplify_sort_small,be as amplify_success,Ge as amplify_table_add_column_left,Ke as amplify_table_add_column_right,qe as amplify_table_add_row_above,Je as amplify_table_add_row_below,Ye as amplify_table_column_heading,Xe as amplify_table_merge_cells,Ze as amplify_table_remove_column,Qe as amplify_table_remove_row,$e as amplify_table_row_heading,et as amplify_table_split_cell,Be as amplify_tutorials,xe as amplify_wellbore,Se as amplify_wireline,Ce as amplify_wireline_cased_hole,we as amplify_wireline_open_hole,r as animation,t as auth,z as capitalize,O as cleanRichTextValue,i as colors,v as convertLatLngToUtm,y as convertUtmToLatLng,C as defaultQueryOptions,b as degrees2radians,x as distanceLatLng,o as elevation,n as environment,g as exportComponent,k as extractImageUrls,N as formatBytes,P as formatDataSize,f as formatDate,p as formatDateTime,F as formatKiloBytes,u as formatLatLng,m as formatRelativeDateTime,d as formatUtm,A as getFeatures,V as getHighlightElementBoundingBox,j as getImagesFromRichText,U as getVariantIcon,H as highlightTutorialElementID,M as imageToB64,h as isBetweenDates,B as isValidUrl,_ as setupIcons,s as shape,pt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,tt as style,c as typography,re as useAmplifyKit,q as useAuth,ie as useDebounce,ae as useFakeProgress,he as useFaqsInApplication,te as useLocalStorage,ce as useNotification,Q as useOnScreenMultiple,me as usePrefetchRichTextImages,oe as usePrevious,rt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ue as useStepper,ee as useTableOfContents,pe as useThemeProvider,S as utmProjection};
1
+ import{EnvironmentType as e}from"./atoms/enums/Environment.js";import{auth as t,environment as n}from"./atoms/utils/auth_environment.js";import{animation as r}from"./atoms/style/animation.js";import{colors as i}from"./atoms/style/colors.js";import{spacings as a}from"./atoms/style/spacings.js";import{elevation as o,shape as s,typography as c}from"./atoms/style/index.js";import{FullPageSpinner as l}from"./molecules/FullPageSpinner/FullPageSpinner.js";import{formatLatLng as u,formatUtm as d}from"./atoms/utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./atoms/utils/date.js";import{exportComponent as g}from"./atoms/utils/export.js";import{setupIcons as _}from"./atoms/utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./atoms/utils/map.js";import{defaultQueryOptions as C}from"./atoms/utils/reactquery.js";import{DEFAULT_FEATURES as w,RichTextEditorFeatures as T}from"./molecules/RichTextEditor/RichTextEditor.types.js";import{IMG_WITH_ALT as E,IMG_WITH_SRC_AND_ALT as D,cleanRichTextValue as O,extractImageUrls as k,getFeatures as A,getImagesFromRichText as j,imageToB64 as M}from"./atoms/utils/richtext.js";import{formatBytes as N,formatDataSize as P,formatKiloBytes as F}from"./atoms/utils/size.js";import{sortByDate as I,sortByWellboreName as L}from"./atoms/utils/sort.js";import{Empty as R,capitalize as z}from"./atoms/utils/string.js";import{isValidUrl as B}from"./atoms/utils/url.js";import{getHighlightElementBoundingBox as V,highlightTutorialElementID as H}from"./atoms/utils/tutorials.js";import{getVariantIcon as U}from"./atoms/utils/forms.js";import{Status as W}from"./organisms/Status/index.js";import{MissingAccessToApp as G}from"./organisms/Status/collections/MissingAccessToApp.js";import{AuthProvider as K,useAuth as q}from"./providers/AuthProvider/AuthProvider.js";import{SideBarProvider as J,useSideBar as Y}from"./providers/SideBarProvider.js";import{SnackbarProvider as X,useSnackbar as Z}from"./providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as Q}from"./atoms/hooks/useOnScreenMultiple.js";import{TableOfContentsProvider as $,useTableOfContents as ee}from"./providers/TableOfContentsProvider.js";import{useLocalStorage as te}from"./atoms/hooks/useLocalStorage.js";import{AmplifyKit as ne}from"./molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import{useAmplifyKit as re}from"./atoms/hooks/useAmplifyKit.js";import{useDebounce as ie}from"./atoms/hooks/useDebounce.js";import{useFakeProgress as ae}from"./atoms/hooks/useFakeProgress.js";import{usePrevious as oe}from"./atoms/hooks/usePrevious.js";import{useSelect as se}from"./atoms/hooks/useSelect.js";import{useNotification as ce}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as le,useStepper as ue}from"./providers/StepperProvider.js";import{Theme as de}from"./atoms/enums/Theme.js";import{ThemeProvider as fe,useThemeProvider as pe}from"./providers/ThemeProvider/ThemeProvider.js";import{useSearchParameter as me}from"./atoms/hooks/useSearchParameter.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{ErrorType as _e}from"./atoms/enums/Errors.js";import{SpacingsMode as ve}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as ye,amplify_lwd as be,amplify_success as xe,amplify_wellbore as Se,amplify_wireline as Ce,amplify_wireline_cased_hole as we,amplify_wireline_open_hole as Te}from"./atoms/icons/drilling.js";import{amplify_calculator as Ee,amplify_overlay as De,amplify_sidebyside as Oe}from"./atoms/icons/map.js";import{amplify_aml as ke,amplify_arrow_up_down as Ae,amplify_branch as je,amplify_info_small as Me,amplify_merged as Ne,amplify_overview as Pe,amplify_resources as Fe,amplify_sharepoint as Ie,amplify_shield_person as Le,amplify_small_portal as Re,amplify_snail as ze,amplify_sort_small as Be,amplify_tutorials as Ve}from"./atoms/icons/other.js";import{amplify_h1 as He,amplify_h2 as Ue,amplify_h3 as We,amplify_h4 as Ge,amplify_table_add_column_left as Ke,amplify_table_add_column_right as qe,amplify_table_add_row_above as Je,amplify_table_add_row_below as Ye,amplify_table_column_heading as Xe,amplify_table_merge_cells as Ze,amplify_table_remove_column as Qe,amplify_table_remove_row as $e,amplify_table_row_heading as et,amplify_table_split_cell as tt}from"./atoms/icons/wysiwyg.js";import{style as nt}from"./atoms/index.js";import{ReleaseNotesProvider as rt,useReleaseNotes as it}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as at}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as ot}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as st}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ct}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as lt}from"./molecules/Badge/Badge.js";import{Banner as ut}from"./molecules/Banner/Banner.js";import{Button as dt}from"./molecules/Button/Button.js";import{Chip as ft}from"./molecules/Chip/Chip.js";import{SkeletonBase as pt,skeletonBaseloading as mt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{ContentMenu as ht}from"./molecules/ContentMenu/ContentMenu.js";import{DatePicker as gt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as _t}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as vt}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as yt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as bt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as xt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as St}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCell as Ct}from"./molecules/IconCell/IconCell.js";import{InfoElement as wt}from"./molecules/InfoElement/InfoElement.js";import{ProfileAvatar as Tt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Et}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as Dt,TextTable as Ot}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as kt,EditorMenu as At,EditorText as jt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Mt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Nt}from"./molecules/RichTextEditor/index.js";import{Tabs as Pt}from"./molecules/Tabs/Tabs.js";import{Search as Ft}from"./molecules/Search/Search.js";import{Sieve as It}from"./molecules/Sieve/Sieve.js";import{SingleFilterMenu as Lt}from"./molecules/SingleFilterMenu/SingleFilterMenu.js";import{SkeletonGradient as Rt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as zt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Bt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Vt}from"./molecules/Select/Select.styles.js";import{ComboBox as Ht}from"./molecules/Select/ComboBox/ComboBox.js";import{SingleSelect as Ut}from"./molecules/Select/SingleSelect/SingleSelect.js";import{FeedBackIcon as Wt}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as Gt}from"./molecules/ListItem/ListItem.js";import{Checkbox as Kt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as qt}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Jt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as Yt}from"./molecules/Waves/Waves.js";import{Accordion as Xt,Breadcrumbs as Zt,CircularProgress as Qt,Divider as $t,DotProgress as en,EDSDialog as tn,Icon as nn,LinearProgress as rn,Menu as an,TextField as on,Typography as sn}from"./molecules/index.js";import{DataGrid as cn}from"./organisms/DataGrid/DataGrid.js";import{Template as ln}from"./organisms/Template/Template.js";import{FieldSelector as un}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as dn}from"./organisms/Filter/index.js";import{SideBar as fn}from"./organisms/SideBar/index.js";import{ReleaseNote as pn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as mn}from"./organisms/TopBar/index.js";import{BadRequest as hn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as gn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as _n}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as vn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as yn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as bn}from"./organisms/Status/collections/ApiResponseError.js";import{TableOfContents as xn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Sn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Cn}from"./organisms/ToggleGroup/index.js";import{Faq as wn}from"./organisms/Faq/Faq.js";import{Card as Tn}from"./organisms/index.js";import{ExpandingIconButton as En}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Dn from"./deprecated/IconToggleButton.js";import{OldStepper as On}from"./deprecated/OldStepper/OldStepper.js";export{Xt as Accordion,kt as AmplifyBar,ne as AmplifyKit,st as AnimatedCheckmark,bn as ApiResponseError,ct as ApplicationIcon,K as AuthProvider,hn as BadRequest,lt as Badge,ut as Banner,Zt as Breadcrumbs,dt as Button,Tn as Card,Kt as Checkbox,ft as Chip,Qt as CircularProgress,Ht as ComboBox,Vt as ComboBoxChip,ht as ContentMenu,w as DEFAULT_FEATURES,cn as DataGrid,gt as DatePicker,_t as DateRangePicker,yt as Dialog,$t as Divider,en as DotProgress,tn as EDSDialog,At as EditorMenu,jt as EditorText,R as Empty,e as EnvironmentType,bt as EquinorLogo,_e as ErrorType,En as ExpandingIconButton,wn as Faq,Wt as FeedBackIcon,un as FieldSelector,xt as FileProgress,St as FileUploadArea,dn as Filter,l as FullPageSpinner,gn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,nn as Icon,Ct as IconCell,Dn as IconToggleButton,wt as InfoElement,rn as LinearProgress,Gt as ListItem,ot as LoadingProvider,an as Menu,G as MissingAccessToApp,_n as MissingPermissions,On as OldStepper,Bt as OptionDrawer,vt as OptionalTooltip,vn as PageNotFound,Sn as PageTitle,Tt as ProfileAvatar,qt as Radio,pn as ReleaseNote,rt as ReleaseNotesProvider,Nt as RichText,Et as RichTextDisplay,Mt as RichTextEditor,T as RichTextEditorFeatures,Ft as Search,yn as ServerError,fn as SideBar,J as SideBarProvider,It as Sieve,Lt as SingleFilterMenu,Ut as SingleSelect,pt as SkeletonBase,Rt as SkeletonGradient,X as SnackbarProvider,ve as SpacingsMode,W as Status,zt as Stepper,le as StepperProvider,Jt as Switch,Dt as TableMenuBar,xn as TableOfContents,$ as TableOfContentsProvider,Pt as Tabs,ln as Template,on as TextField,Ot as TextTable,de as Theme,fe as ThemeProvider,Cn as ToggleGroup,mn as TopBar,at as TutorialHighlightingProvider,sn as Typography,Yt as Waves,ke as amplify_aml,Ae as amplify_arrow_up_down,je as amplify_branch,Ee as amplify_calculator,ye as amplify_failure,He as amplify_h1,Ue as amplify_h2,We as amplify_h3,Ge as amplify_h4,Me as amplify_info_small,be as amplify_lwd,Ne as amplify_merged,De as amplify_overlay,Pe as amplify_overview,Fe as amplify_resources,Ie as amplify_sharepoint,Le as amplify_shield_person,Oe as amplify_sidebyside,Re as amplify_small_portal,ze as amplify_snail,Be as amplify_sort_small,xe as amplify_success,Ke as amplify_table_add_column_left,qe as amplify_table_add_column_right,Je as amplify_table_add_row_above,Ye as amplify_table_add_row_below,Xe as amplify_table_column_heading,Ze as amplify_table_merge_cells,Qe as amplify_table_remove_column,$e as amplify_table_remove_row,et as amplify_table_row_heading,tt as amplify_table_split_cell,Ve as amplify_tutorials,Se as amplify_wellbore,Ce as amplify_wireline,we as amplify_wireline_cased_hole,Te as amplify_wireline_open_hole,r as animation,t as auth,z as capitalize,O as cleanRichTextValue,i as colors,v as convertLatLngToUtm,y as convertUtmToLatLng,C as defaultQueryOptions,b as degrees2radians,x as distanceLatLng,o as elevation,n as environment,g as exportComponent,k as extractImageUrls,N as formatBytes,P as formatDataSize,f as formatDate,p as formatDateTime,F as formatKiloBytes,u as formatLatLng,m as formatRelativeDateTime,d as formatUtm,A as getFeatures,V as getHighlightElementBoundingBox,j as getImagesFromRichText,U as getVariantIcon,H as highlightTutorialElementID,M as imageToB64,h as isBetweenDates,B as isValidUrl,_ as setupIcons,s as shape,mt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,nt as style,c as typography,re as useAmplifyKit,q as useAuth,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,ce as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,it as useReleaseNotes,me as useSearchParameter,se as useSelect,Y as useSideBar,Z as useSnackbar,ue as useStepper,ee as useTableOfContents,pe as useThemeProvider,S as utmProjection};
@@ -1,4 +1,4 @@
1
- import * as react5 from "react";
1
+ import * as react15 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: react5.ForwardRefExoticComponent<ChipProps & react5.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
28
+ declare const Chip: react15.ForwardRefExoticComponent<ChipProps & react15.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 react11 from "react";
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
@@ -8,10 +8,10 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant'> & {
8
8
  meta?: string;
9
9
  loading?: boolean;
10
10
  };
11
- declare const DatePicker$1: react11.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
11
+ declare const DatePicker$1: react7.ForwardRefExoticComponent<Omit<DatePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react11.RefAttributes<HTMLDivElement>>;
15
+ } & react7.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  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 react13 from "react";
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: react13.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
11
+ declare const DateRangePicker$1: react9.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react13.RefAttributes<HTMLDivElement>>;
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 react9 from "react";
1
+ import * as react11 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: react9.ForwardRefExoticComponent<DialogProps$1 & react9.RefAttributes<HTMLDivElement>>;
54
+ declare const Dialog$1: react11.ForwardRefExoticComponent<DialogProps$1 & react11.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 react7 from "react";
2
+ import * as react5 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: react7.ForwardRefExoticComponent<EquinorLogoProps & react7.RefAttributes<SVGSVGElement>>;
9
+ declare const EquinorLogo: react5.ForwardRefExoticComponent<EquinorLogoProps & react5.RefAttributes<SVGSVGElement>>;
10
10
  //#endregion
11
11
  export { EquinorLogo, EquinorLogoProps };
@@ -0,0 +1,54 @@
1
+ import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
2
+ import * as react13 from "react";
3
+ import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
4
+ import { IconData } from "@equinor/eds-icons";
5
+
6
+ //#region src/molecules/IconCell/IconCell.d.ts
7
+ type ScribbledOutType = typeof IconCellVariants.SCRIBBLED_OUT;
8
+ type SharedProps = {
9
+ onClick?: MouseEventHandler<HTMLButtonElement>;
10
+ disabled?: boolean;
11
+ selected?: boolean;
12
+ className?: string;
13
+ color?: IconCellColor;
14
+ state?: IconCellState;
15
+ label?: string;
16
+ helperIcon?: ReactNode | IconData;
17
+ noBottomBorder?: boolean;
18
+ as?: 'td' | 'div';
19
+ } & HTMLAttributes<HTMLButtonElement>;
20
+ type ScribbledOutProps = {
21
+ variant: ScribbledOutType;
22
+ icon?: never;
23
+ } & SharedProps;
24
+ type RegularIconCellProps = {
25
+ variant?: Exclude<IconCellVariant, ScribbledOutType>;
26
+ icon: ReactNode | IconData;
27
+ } & SharedProps;
28
+ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
29
+ /**
30
+ * IconCell component renders a styled button-like cell with an icon, optional label,
31
+ * and optional helper icon. It supports various visual states and interaction handlers.
32
+ *
33
+ * ### Special case
34
+ * When `variant` is `IconCellVariants.SCRIBBLED_OUT`, this component renders a scribbled-out cell and so the icon becomes optional.
35
+ *
36
+ * @param {IconCellProps} props - Component props.
37
+ * @param {React.ReactNode | IconData} [props.icon] - Main icon displayed in the center of the cell.
38
+ * @param {MouseEventHandler<HTMLButtonElement>} [props.onClick] - Callback fired when the cell is clicked.
39
+ * @param {boolean} [props.disabled=false] - Whether the cell is disabled.
40
+ * @param {boolean} [props.selected=false] - Whether the cell is in a selected state.
41
+ * @param {string} [props.className] - Optional CSS class for custom styling.
42
+ * @param {IconCellColor} [props.color=IconCellColors.DEFAULT] - Color theme of the cell.
43
+ * @param {IconCellState} [props.state=IconCellStates.DEFAULT] - Visual state of the cell: default, danger, or warning.
44
+ * @param {string} [props.label] - Optional label text displayed inside the cell.
45
+ * @param {IconCellVariant} [props.variant=IconCellVariants.DEFAULT] - Variant of the cell: `transparent`, `coloured`, or the special `scribbled-out`.
46
+ * @param {React.ReactNode | IconData} [props.helperIcon] - Optional secondary icon displayed in the corner.
47
+ * @param {boolean} [props.noBottomBorder=false] - Whether to render the cell without the default bottom border.
48
+ * @param {'td' | 'div'} [props.as='td'] - Element type to render the outer container as.
49
+ * @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
50
+ * @returns {JSX.Element} The rendered IconCell.
51
+ */
52
+ declare const IconCell: react13.ForwardRefExoticComponent<IconCellProps & react13.RefAttributes<HTMLButtonElement>>;
53
+ //#endregion
54
+ export { IconCell, IconCellProps };
@@ -0,0 +1 @@
1
+ import{Theme as e}from"../../atoms/enums/Theme.js";import{ThemeProviderContext as t}from"../../providers/ThemeProvider/ThemeProvider.js";import{IconCellColors as n,IconCellStates as r,IconCellVariants as i}from"./IconCell.types.js";import{getIconCellColor as a,renderContent as o}from"./IconCell.utils.js";import{Button as s,Container as c,HelperIconContainer as l,IconContainer as u,Label as d}from"./IconCell.styles.js";import{forwardRef as f,useContext as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g=f(function(f,g){let _=p(t);if(f.variant===i.SCRIBBLED_OUT){let{className:e,as:t=`td`,noBottomBorder:n=!1}=f;return m(c,{className:e,as:t,children:m(s,{ref:g,$variant:i.SCRIBBLED_OUT,$noBottomBorder:n,$clickable:!1})})}let{icon:v,onClick:y,className:b,disabled:x=!1,selected:S=!1,color:C=n.DEFAULT,state:w=r.DEFAULT,label:T,variant:E=i.DEFAULT,helperIcon:D,noBottomBorder:O=!1,as:k=`td`,...A}=f,{backgroundColor:j,iconColor:M}=a(C,_?.theme??e.LIGHT);return m(c,{className:b,as:k,children:h(s,{ref:g,...A,$selected:S,disabled:x,onClick:y,$backgroundColor:j,$state:w,$variant:E,$noBottomBorder:O,$clickable:!!y&&!x,children:[m(u,{children:o(v,M)}),m(d,{children:m(`span`,{children:T})}),m(l,{children:D&&o(D,M)})]})})});g.displayName=`IconCell`;export{g as IconCell};
@@ -0,0 +1,108 @@
1
+ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}from"../../atoms/style/colors.js";import{spacings as n}from"../../atoms/style/spacings.js";import{IconCellStates as r,IconCellVariants as i}from"./IconCell.types.js";import{getBackground as a,getBorderBottom as o,getSelectedBorder as s,stateBGColor as c}from"./IconCell.utils.js";import l from"styled-components";const u=(e=`rgba(0, 0, 0, 0.1)`)=>`
2
+ content: '';
3
+ position: absolute;
4
+ inset: 0;
5
+ background-color: ${e};
6
+ opacity: 0.7;
7
+ pointer-events: none;
8
+ `,d=l.div`
9
+ min-width: 48px;
10
+ padding: 0;
11
+ `,f=l.div`
12
+ display: flex;
13
+ position: absolute;
14
+ bottom: ${n.small};
15
+ left: ${n.small};
16
+ padding-right: ${n.xx_small};
17
+
18
+ span {
19
+ font-size: 10px;
20
+ font-weight: 500;
21
+ position: relative;
22
+ color: ${t.text.static_icons__default.rgba};
23
+ }
24
+ `,p=l.div`
25
+ display: flex;
26
+ align-items: center;
27
+ `,m=l.div`
28
+ display: flex;
29
+ position: absolute;
30
+ top: ${n.small};
31
+ right: ${n.small};
32
+
33
+ svg {
34
+ width: 16px;
35
+ height: 16px;
36
+ position: relative;
37
+ }
38
+ `,h=l.button`
39
+ display: flex;
40
+ width: 100%;
41
+ height: 100%;
42
+ min-height: 52px;
43
+ position: relative;
44
+ justify-content: center;
45
+ overflow: hidden;
46
+ padding: ${n.small};
47
+ background: ${a};
48
+ transition: background ${e.transitionMS};
49
+ border: none;
50
+ border-bottom: ${o};
51
+ cursor: ${({$clickable:e})=>e?`pinter`:`default`};
52
+
53
+ // Scribbled-out hides content
54
+ ${({$variant:e})=>e===i.SCRIBBLED_OUT&&`
55
+ ${f}, ${m}, ${p} {
56
+ display: none;
57
+ }
58
+ `}
59
+
60
+ // Selected state
61
+ ${({$selected:e,$state:t})=>e&&`
62
+ border: 1px solid ${s(t)};
63
+ `}
64
+
65
+ // Overlay for Label & HelperIconContainer
66
+ ${({$backgroundColor:e,$variant:n,$state:a})=>{let o=n===i.COLOURED?a===r.DANGER?c[r.DANGER]:a===r.WARNING?c[r.WARNING]:e:t.ui.background__default.rgba;return`
67
+ ${f}::before,
68
+ ${m}::before {
69
+ ${u(o)}
70
+ }
71
+ `}}
72
+
73
+ // Disabled state
74
+ &:disabled {
75
+ cursor: not-allowed;
76
+ background: ${({$variant:e})=>e===i.COLOURED?t.ui.background__light.rgba:`transparent`};
77
+
78
+ ${f} span {
79
+ color: ${t.interactive.disabled__text.rgba};
80
+ }
81
+
82
+ ${p},${m} {
83
+ opacity: 0.3;
84
+ filter: grayscale(100%);
85
+ }
86
+
87
+ ${({$selected:e})=>e&&`
88
+ border: 1px solid ${t.ui.background__light.rgba};
89
+ `}
90
+
91
+ border-bottom: 1px solid ${t.ui.background__medium.rgba};
92
+
93
+ ${({$variant:e})=>`
94
+ ${f}::before,
95
+ ${m}::before {
96
+ background-color: ${e===i.COLOURED?t.ui.background__light.rgba:t.ui.background__default.rgba};
97
+ }
98
+ `}
99
+ }
100
+
101
+ // Hover effect (only if clickable)
102
+ ${({$clickable:t})=>t&&`
103
+ &:hover:not(:disabled)::after {
104
+ ${u()}
105
+ animation: ${e.transitionMS} ease-in-out;
106
+ }
107
+ `}
108
+ `;export{h as Button,d as Container,m as HelperIconContainer,p as IconContainer,f as Label};
@@ -0,0 +1,33 @@
1
+ //#region src/molecules/IconCell/IconCell.types.d.ts
2
+ declare const IconCellColors: {
3
+ readonly GREEN: "green";
4
+ readonly RED: "red";
5
+ readonly ORANGE: "orange";
6
+ readonly BLUE: "blue";
7
+ readonly GREY: "grey";
8
+ readonly LIGHTGREY: "lightgrey";
9
+ readonly PINK: "pink";
10
+ readonly YELLOW: "yellow";
11
+ readonly PURPLE: "purple";
12
+ readonly SUCCESS: "success";
13
+ readonly WARNING: "warning";
14
+ readonly ERROR: "error";
15
+ readonly INFO: "info";
16
+ readonly DANGER: "danger";
17
+ readonly DEFAULT: "default";
18
+ };
19
+ type IconCellColor = (typeof IconCellColors)[keyof typeof IconCellColors];
20
+ declare const IconCellVariants: {
21
+ readonly DEFAULT: "default";
22
+ readonly COLOURED: "colored";
23
+ readonly SCRIBBLED_OUT: "scribbled-out";
24
+ };
25
+ type IconCellVariant = (typeof IconCellVariants)[keyof typeof IconCellVariants];
26
+ declare const IconCellStates: {
27
+ readonly DEFAULT: "default";
28
+ readonly WARNING: "warning";
29
+ readonly DANGER: "danger";
30
+ };
31
+ type IconCellState = (typeof IconCellStates)[keyof typeof IconCellStates];
32
+ //#endregion
33
+ export { IconCellColor, IconCellColors, IconCellState, IconCellStates, IconCellVariant, IconCellVariants };
@@ -0,0 +1 @@
1
+ const e={GREEN:`green`,RED:`red`,ORANGE:`orange`,BLUE:`blue`,GREY:`grey`,LIGHTGREY:`lightgrey`,PINK:`pink`,YELLOW:`yellow`,PURPLE:`purple`,SUCCESS:`success`,WARNING:`warning`,ERROR:`error`,INFO:`info`,DANGER:`danger`,DEFAULT:`default`},t={DEFAULT:`default`,COLOURED:`colored`,SCRIBBLED_OUT:`scribbled-out`},n={DEFAULT:`default`,WARNING:`warning`,DANGER:`danger`};export{e as IconCellColors,n as IconCellStates,t as IconCellVariants};
@@ -0,0 +1,8 @@
1
+ import{colors as e}from"../../atoms/style/colors.js";import{Theme as t}from"../../atoms/enums/Theme.js";import{IconCellColors as n,IconCellStates as r,IconCellVariants as i}from"./IconCell.types.js";import{Icon as a}from"@equinor/eds-core-react";import{jsx as o}from"react/jsx-runtime";const s=(e,t)=>e&&typeof e==`object`&&`prefix`in e?o(a,{data:e,color:t}):e,c=(r,i)=>{switch(r){case n.GREEN:case n.SUCCESS:return i===t.LIGHT?{backgroundColor:e.interactive.success__highlight.rgba,iconColor:e.dataviz.darkgreen.default}:{backgroundColor:e.dataviz.darkgreen.default,iconColor:e.dataviz.lightgreen.lighter};case n.RED:case n.ERROR:case n.DANGER:return i===t.LIGHT?{backgroundColor:e.interactive.danger__highlight.rgba,iconColor:e.interactive.danger__text.rgba}:{backgroundColor:e.ui.background__danger.rgba,iconColor:e.text.static_icons__default.rgba};case n.ORANGE:case n.WARNING:return i===t.LIGHT?{backgroundColor:e.interactive.warning__highlight.rgba,iconColor:e.dataviz.darkyellow.darker}:{backgroundColor:e.ui.background__warning.rgba,iconColor:e.text.static_icons__default.rgba};case n.BLUE:case n.INFO:return i===t.LIGHT?{backgroundColor:e.dataviz.lightblue.lighter,iconColor:e.dataviz.primary.darker}:{backgroundColor:e.dataviz.darkblue.default,iconColor:e.dataviz.lightblue.lighter};case n.LIGHTGREY:return i===t.LIGHT?{backgroundColor:e.ui.background__light.rgba,iconColor:e.dataviz.lightgray.darker}:{backgroundColor:e.ui.background__heavy.rgba,iconColor:e.text.static_icons__secondary.rgba};case n.PINK:return i===t.LIGHT?{backgroundColor:e.dataviz.darkpink.lighter,iconColor:e.dataviz.darkpink.darker}:{backgroundColor:e.dataviz.darkpink.darker,iconColor:e.dataviz.darkpink.lighter};case n.YELLOW:return i===t.LIGHT?{backgroundColor:e.dataviz.lightyellow.lighter,iconColor:e.dataviz.darkyellow.darker}:{backgroundColor:e.dataviz.darkyellow.darker,iconColor:e.dataviz.lightyellow.lighter};case n.PURPLE:return i===t.LIGHT?{backgroundColor:e.dataviz.lightpurple.lighter,iconColor:e.dataviz.darkpurple.darker}:{backgroundColor:e.dataviz.darkpurple.darker,iconColor:e.dataviz.lightpurple.lighter};case n.GREY:default:return i===t.LIGHT?{backgroundColor:e.ui.background__medium.rgba,iconColor:e.text.static_icons__default.rgba}:{backgroundColor:e.ui.background__light.rgba,iconColor:e.text.static_icons__default.rgba}}},l={[r.DANGER]:e.interactive.danger__resting.rgba,[r.WARNING]:e.interactive.warning__resting.rgba},u={[r.DANGER]:e.ui.background__danger.rgba,[r.WARNING]:e.ui.background__warning.rgba},d=(e,t)=>{let n=t?l[t]:void 0;return n??e},f=({$noBottomBorder:t,$state:n,$backgroundColor:r})=>{let i=t?r:d(e.ui.background__medium.rgba,n);return`1px solid ${i}`},p=t=>d(e.text.static_icons__default.rgba,t),m=({$variant:t,$state:n,$backgroundColor:a=e.ui.background__default.rgba})=>t===i.SCRIBBLED_OUT?`repeating-linear-gradient(
2
+ 20deg,
3
+ ${e.ui.background__light_medium.rgba} 0px,
4
+ ${e.ui.background__default.rgba} 1px,
5
+ ${e.ui.background__default.rgba} 10px,
6
+ ${e.ui.background__light_medium.rgba} 11px,
7
+ ${e.ui.background__light_medium.rgba} 12px
8
+ )`:t===i.COLOURED?n===r.DANGER?u[r.DANGER]:n===r.WARNING?u[r.WARNING]:a:`transparent`;export{m as getBackground,f as getBorderBottom,c as getIconCellColor,p as getSelectedBorder,s as renderContent,u as stateBGColor};
@@ -1,4 +1,4 @@
1
- import * as react91 from "react";
1
+ import * as react93 from "react";
2
2
  import { FocusEventHandler, HTMLAttributes, MouseEventHandler, ReactNode } from "react";
3
3
  import { IconData } from "@equinor/eds-icons";
4
4
 
@@ -15,6 +15,6 @@ interface ListItemProps extends HTMLAttributes<HTMLButtonElement> {
15
15
  isChild?: boolean;
16
16
  borderBottom?: boolean;
17
17
  }
18
- declare const ListItem: react91.ForwardRefExoticComponent<ListItemProps & react91.RefAttributes<HTMLButtonElement>>;
18
+ declare const ListItem: react93.ForwardRefExoticComponent<ListItemProps & react93.RefAttributes<HTMLButtonElement>>;
19
19
  //#endregion
20
20
  export { ListItem, ListItemProps };
@@ -1,4 +1,4 @@
1
- import * as react26 from "react";
1
+ import * as react17 from "react";
2
2
  import { TooltipProps } from "@equinor/eds-core-react";
3
3
  import * as _floating_ui_utils0 from "@floating-ui/utils";
4
4
 
@@ -6,14 +6,14 @@ import * as _floating_ui_utils0 from "@floating-ui/utils";
6
6
  type OptionalTooltipProps = {
7
7
  textTransform?: string;
8
8
  } & TooltipProps;
9
- declare const OptionalTooltip: react26.ForwardRefExoticComponent<{
9
+ declare const OptionalTooltip: react17.ForwardRefExoticComponent<{
10
10
  textTransform?: string;
11
11
  } & {
12
12
  placement?: _floating_ui_utils0.Placement;
13
- title?: react26.ReactNode;
13
+ title?: react17.ReactNode;
14
14
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
15
15
  enterDelay?: number;
16
16
  portalContainer?: HTMLElement;
17
- } & Omit<react26.HTMLAttributes<HTMLDivElement>, "title"> & react26.RefAttributes<HTMLDivElement>>;
17
+ } & Omit<react17.HTMLAttributes<HTMLDivElement>, "title"> & react17.RefAttributes<HTMLDivElement>>;
18
18
  //#endregion
19
19
  export { OptionalTooltip, OptionalTooltipProps };
@@ -1,4 +1,4 @@
1
- import * as react24 from "react";
1
+ import * as react38 from "react";
2
2
 
3
3
  //#region src/molecules/ProfileAvatar/ProfileAvatar.d.ts
4
4
  interface ProfileAvatarProps {
@@ -7,6 +7,6 @@ interface ProfileAvatarProps {
7
7
  size?: 'small' | 'small-medium' | 'medium' | 'large' | 'x-large' | number;
8
8
  disabled?: boolean;
9
9
  }
10
- declare const ProfileAvatar: react24.ForwardRefExoticComponent<ProfileAvatarProps & react24.RefAttributes<HTMLDivElement>>;
10
+ declare const ProfileAvatar: react38.ForwardRefExoticComponent<ProfileAvatarProps & react38.RefAttributes<HTMLDivElement>>;
11
11
  //#endregion
12
12
  export { ProfileAvatar, ProfileAvatarProps };