@equinor/amplify-component-lib 11.0.4 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  2. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  3. package/dist/deprecated/IconToggleButton.d.ts +2 -2
  4. package/dist/index.d.ts +3 -1
  5. package/dist/index.js +1 -1
  6. package/dist/molecules/Chip/Chip.d.ts +1 -1
  7. package/dist/molecules/Confetti/Confetti.js +1 -1
  8. package/dist/molecules/Confetti/utils/getDefaultColors.js +1 -0
  9. package/dist/molecules/Confetti/utils/seasonalColors.js +1 -1
  10. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  11. package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
  12. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  13. package/dist/molecules/Select/SearchBar.js +1 -1
  14. package/dist/molecules/Select/Select.styles.d.ts +3 -3
  15. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  16. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  17. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  18. package/dist/organisms/Filter/Filter.d.ts +2 -2
  19. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  20. package/dist/organisms/SideSheet/SideSheet.d.ts +17 -0
  21. package/dist/organisms/SideSheet/SideSheet.js +1 -0
  22. package/dist/organisms/SideSheet/SideSheet.styles.js +39 -0
  23. package/dist/organisms/SideSheet/SideSheet.types.d.ts +23 -0
  24. package/dist/organisms/Status/Description.d.ts +2 -2
  25. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  26. package/dist/organisms/Status/Title.d.ts +2 -2
  27. package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
  28. package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
  29. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  30. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  31. package/dist/organisms/index.d.ts +2 -0
  32. package/dist/organisms/index.js +1 -1
  33. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import * as react129 from "react";
1
+ import * as react115 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, react129.Dispatch<react129.SetStateAction<T>>, () => void];
4
+ declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react115.Dispatch<react115.SetStateAction<T>>, () => void];
5
5
  //#endregion
6
6
  export { useLocalStorage };
@@ -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 react131 from "react";
3
+ import * as react117 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: react131.RefObject<HTMLInputElement | null>;
20
- itemRefs: react131.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react117.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react117.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -1,4 +1,4 @@
1
- import * as react3 from "react";
1
+ import * as react0 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: react3.ForwardRefExoticComponent<IconToggleButtonProps & react3.RefAttributes<HTMLButtonElement>>;
24
+ declare const IconToggleButton: react0.ForwardRefExoticComponent<IconToggleButtonProps & react0.RefAttributes<HTMLButtonElement>>;
25
25
  //#endregion
26
26
  export { IconToggleButton };
package/dist/index.d.ts CHANGED
@@ -120,6 +120,8 @@ import { MissingPermissions } from "./organisms/Status/collections/MissingPermis
120
120
  import { PageNotFound } from "./organisms/Status/collections/PageNotFound.js";
121
121
  import { ServerError } from "./organisms/Status/collections/ServerError.js";
122
122
  import { ApiResponseError } from "./organisms/Status/collections/ApiResponseError.js";
123
+ import { SideSheetProps } from "./organisms/SideSheet/SideSheet.types.js";
124
+ import { SideSheet } from "./organisms/SideSheet/SideSheet.js";
123
125
  import { TableOfContents, TableOfContentsProps } from "./organisms/TableOfContents/TableOfContents.js";
124
126
  import { ContentProps, Template, TemplateType } from "./organisms/Template/Template.js";
125
127
  import { PageTitle } from "./organisms/PageTitle/PageTitle.js";
@@ -131,4 +133,4 @@ import { Card, CardProps, DataGridProps } from "./organisms/index.js";
131
133
  import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
132
134
  import { IconToggleButton } from "./deprecated/IconToggleButton.js";
133
135
  import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
134
- 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, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, 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, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, PersistentComboBox, PersistentComboBoxProps, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SingleSelect, SingleSelectProps, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, Tab, TableHeader, TableHeaderProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Tag, TagProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, Toast, ToastProps, ToastProvider, 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, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, utmProjection };
136
+ 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, ComboBoxProps, Confetti, ConfettiBoomProps, ConfettiProps, ConfettiProvider, ConfettiShowerProps, 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, FullPageSpinner, FullPageSpinnerProps, GenericError, GuidelineItem, GuidelineSections, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, Icon, IconCell, IconCellColor, IconCellColorObject, IconCellColors, IconCellProps, IconCellState, IconCellStates, IconCellVariant, IconCellVariants, IconItem, IconProps, IconToggleButton, ImageExtensionFnProps, InfoElement, InfoElementProps, InformationalNotice, InformationalNoticeProps, ItemType, LinearProgress, LinearProgressProps, ListItem, ListItemProps, LoadingProvider, Menu, MenuProps, MissingAccessToApp, MissingPermissions, OldStepper, OptionDrawer, OptionDrawerProps, OptionDrawerSelectItem, OptionalTooltip, OptionalTooltipProps, PageNotFound, PageTitle, PersistentComboBox, PersistentComboBoxProps, ProfileAvatar, ProfileAvatarProps, Radio, RadioProps, ReleaseNote, ReleaseNoteProps, ReleaseNotesPage, ReleaseNotesProvider, RichText, RichTextDisplay, RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, RichTextEditorProps, Search, SearchProps, SelectOption, SelectOptionRequired, ServerError, SettingsSection, SideBar, SideBarMenuItem, SideBarMenuItemWithItems, SideBarProvider, SideSheet, SideSheetProps, SingleSelect, SingleSelectProps, SizeIconProps, SkeletonBase, SkeletonBaseProps, SkeletonGradient, SkeletonGradientProps, SnackbarProvider, SpacingsMode, Status, Stepper, StepperProps, StepperProvider, Switch, SwitchProps, Tab, TableHeader, TableHeaderProps, TableMenuBar, TableOfContents, TableOfContentsItemType, TableOfContentsProps, TableOfContentsProvider, Tabs, TabsProps, Tag, TagProps, Template, TemplateType, TextField, TextFieldProps, TextTable, Theme, ThemeProvider, Toast, ToastProps, ToastProvider, 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, useConfetti, useDebounce, useFakeProgress, useFaqsInApplication, useLocalStorage, useNotification, useOnScreenMultiple, usePrefetchRichTextImages, usePrevious, useReleaseNotes, useSelect, useSideBar, useSnackbar, useStatusNavigation, useStepper, useTableOfContents, useThemeProvider, useToasts, 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{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{Button as _e}from"./molecules/Button/Button.js";import{Toast as ve}from"./molecules/Toast/Toast.js";import{ToastProvider as ye,useToasts as be}from"./providers/ToastProvider/ToastProvider.js";import{Confetti as xe}from"./molecules/Confetti/Confetti.js";import{ConfettiProvider as Se,useConfetti as Ce}from"./providers/ConfettiProvider/ConfettiProvider.js";import{ErrorType as we}from"./atoms/enums/Errors.js";import{SpacingsMode as Te}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as Ee,amplify_lwd as De,amplify_success as Oe,amplify_wellbore as ke,amplify_wireline as Ae,amplify_wireline_cased_hole as je,amplify_wireline_open_hole as Me}from"./atoms/icons/drilling.js";import{amplify_calculator as Ne,amplify_overlay as Pe,amplify_sidebyside as Fe}from"./atoms/icons/map.js";import{amplify_aml as Ie,amplify_arrow_up_down as Le,amplify_branch as Re,amplify_info_small as ze,amplify_merged as Be,amplify_overview as Ve,amplify_resources as He,amplify_sharepoint as Ue,amplify_shield_person as We,amplify_small_portal as Ge,amplify_snail as Ke,amplify_sort_small as qe,amplify_tutorials as Je}from"./atoms/icons/other.js";import{amplify_h1 as Ye,amplify_h2 as Xe,amplify_h3 as Ze,amplify_h4 as Qe,amplify_table_add_column_left as $e,amplify_table_add_column_right as et,amplify_table_add_row_above as tt,amplify_table_add_row_below as nt,amplify_table_column_heading as rt,amplify_table_merge_cells as it,amplify_table_remove_column as at,amplify_table_remove_row as ot,amplify_table_row_heading as st,amplify_table_split_cell as ct}from"./atoms/icons/wysiwyg.js";import{style as lt}from"./atoms/index.js";import{ReleaseNotesProvider as ut,useReleaseNotes as dt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as ft}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as pt}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as mt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ht}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as gt}from"./molecules/Badge/Badge.js";import{Banner as _t}from"./molecules/Banner/Banner.js";import{Chip as vt}from"./molecules/Chip/Chip.js";import{SkeletonBase as yt,skeletonBaseloading as bt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as xt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as St}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as Ct}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as wt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as Tt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as Et}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as Dt}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Ot,IconCellStates as kt,IconCellVariants as At}from"./molecules/IconCell/IconCell.types.js";import{IconCell as jt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Mt}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Nt}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as Pt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Ft}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as It,TextTable as Lt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as Rt}from"./molecules/TextField/TextField.js";import{AmplifyBar as zt,EditorMenu as Bt,EditorText as Vt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Ht}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Ut}from"./molecules/RichTextEditor/index.js";import{Tabs as Wt}from"./molecules/Tabs/Tabs.js";import{Search as Gt}from"./molecules/Search/Search.js";import{SkeletonGradient as Kt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as qt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Jt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Yt}from"./molecules/Select/Select.styles.js";import{ComboBox as Xt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as Zt}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as Qt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as $t}from"./molecules/Tag/Tag.js";import{TableHeader as en}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as tn}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as nn}from"./molecules/ListItem/ListItem.js";import{Checkbox as rn}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as an}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as on}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as sn}from"./molecules/Waves/Waves.js";import{Accordion as cn,Breadcrumbs as ln,CircularProgress as un,Divider as dn,DotProgress as fn,EDSDialog as pn,Icon as mn,LinearProgress as hn,Menu as gn,Typography as _n}from"./molecules/index.js";import{DataGrid as vn}from"./organisms/DataGrid/DataGrid.js";import{Template as yn}from"./organisms/Template/Template.js";import{FieldSelector as bn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as xn}from"./organisms/Filter/index.js";import{SideBar as Sn}from"./organisms/SideBar/index.js";import{ReleaseNote as Cn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as wn}from"./organisms/TopBar/index.js";import{BadRequest as Tn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as En}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as Dn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as On}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as kn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as An}from"./organisms/Status/collections/ApiResponseError.js";import{TableOfContents as jn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Mn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Nn}from"./organisms/ToggleGroup/index.js";import{Faq as Pn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as Fn}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as In}from"./organisms/index.js";import{ExpandingIconButton as Ln}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Rn from"./deprecated/IconToggleButton.js";import{OldStepper as zn}from"./deprecated/OldStepper/OldStepper.js";export{cn as Accordion,zt as AmplifyBar,ne as AmplifyKit,mt as AnimatedCheckmark,An as ApiResponseError,ht as ApplicationIcon,K as AuthProvider,Tn as BadRequest,gt as Badge,_t as Banner,ln as Breadcrumbs,_e as Button,In as Card,rn as Checkbox,vt as Chip,un as CircularProgress,Xt as ComboBox,Yt as ComboBoxChip,xe as Confetti,Se as ConfettiProvider,w as DEFAULT_FEATURES,vn as DataGrid,xt as DatePicker,St as DateRangePicker,wt as Dialog,dn as Divider,fn as DotProgress,pn as EDSDialog,Bt as EditorMenu,Vt as EditorText,R as Empty,e as EnvironmentType,Tt as EquinorLogo,we as ErrorType,Ln as ExpandingIconButton,Pn as Faq,tn as FeedBackIcon,bn as FieldSelector,Et as FileProgress,Dt as FileUploadArea,xn as Filter,l as FullPageSpinner,En as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,mn as Icon,jt as IconCell,Ot as IconCellColors,kt as IconCellStates,At as IconCellVariants,Rn as IconToggleButton,Mt as InfoElement,Nt as InformationalNotice,hn as LinearProgress,nn as ListItem,pt as LoadingProvider,gn as Menu,G as MissingAccessToApp,Dn as MissingPermissions,zn as OldStepper,Jt as OptionDrawer,Ct as OptionalTooltip,On as PageNotFound,Mn as PageTitle,Zt as PersistentComboBox,Pt as ProfileAvatar,an as Radio,Cn as ReleaseNote,Fn as ReleaseNotesPage,ut as ReleaseNotesProvider,Ut as RichText,Ft as RichTextDisplay,Ht as RichTextEditor,T as RichTextEditorFeatures,Gt as Search,kn as ServerError,Sn as SideBar,J as SideBarProvider,Qt as SingleSelect,yt as SkeletonBase,Kt as SkeletonGradient,X as SnackbarProvider,Te as SpacingsMode,W as Status,qt as Stepper,ue as StepperProvider,on as Switch,en as TableHeader,It as TableMenuBar,jn as TableOfContents,$ as TableOfContentsProvider,Wt as Tabs,$t as Tag,yn as Template,Rt as TextField,Lt as TextTable,fe as Theme,pe as ThemeProvider,ve as Toast,ye as ToastProvider,Nn as ToggleGroup,wn as TopBar,ft as TutorialHighlightingProvider,_n as Typography,sn as Waves,Ie as amplify_aml,Le as amplify_arrow_up_down,Re as amplify_branch,Ne as amplify_calculator,Ee as amplify_failure,Ye as amplify_h1,Xe as amplify_h2,Ze as amplify_h3,Qe as amplify_h4,ze as amplify_info_small,De as amplify_lwd,Be as amplify_merged,Pe as amplify_overlay,Ve as amplify_overview,He as amplify_resources,Ue as amplify_sharepoint,We as amplify_shield_person,Fe as amplify_sidebyside,Ge as amplify_small_portal,Ke as amplify_snail,qe as amplify_sort_small,Oe as amplify_success,$e as amplify_table_add_column_left,et as amplify_table_add_column_right,tt as amplify_table_add_row_above,nt as amplify_table_add_row_below,rt as amplify_table_column_heading,it as amplify_table_merge_cells,at as amplify_table_remove_column,ot as amplify_table_remove_row,st as amplify_table_row_heading,ct as amplify_table_split_cell,Je as amplify_tutorials,ke as amplify_wellbore,Ae as amplify_wireline,je as amplify_wireline_cased_hole,Me 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,bt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,lt as style,c as typography,re as useAmplifyKit,q as useAuth,Ce as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,dt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,be as useToasts,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{useStatusNavigation as ce}from"./atoms/hooks/useStatusNavigation.js";import{useNotification as le}from"./organisms/TopBar/Notifications/NotificationProvider.js";import{StepperProvider as ue,useStepper as de}from"./providers/StepperProvider.js";import{Theme as fe}from"./atoms/enums/Theme.js";import{ThemeProvider as pe,useThemeProvider as me}from"./providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as he}from"./atoms/hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ge}from"./atoms/hooks/useFaqsInApplication.js";import{Button as _e}from"./molecules/Button/Button.js";import{Toast as ve}from"./molecules/Toast/Toast.js";import{ToastProvider as ye,useToasts as be}from"./providers/ToastProvider/ToastProvider.js";import{Confetti as xe}from"./molecules/Confetti/Confetti.js";import{ConfettiProvider as Se,useConfetti as Ce}from"./providers/ConfettiProvider/ConfettiProvider.js";import{ErrorType as we}from"./atoms/enums/Errors.js";import{SpacingsMode as Te}from"./atoms/enums/SpacingsMode.js";import{amplify_failure as Ee,amplify_lwd as De,amplify_success as Oe,amplify_wellbore as ke,amplify_wireline as Ae,amplify_wireline_cased_hole as je,amplify_wireline_open_hole as Me}from"./atoms/icons/drilling.js";import{amplify_calculator as Ne,amplify_overlay as Pe,amplify_sidebyside as Fe}from"./atoms/icons/map.js";import{amplify_aml as Ie,amplify_arrow_up_down as Le,amplify_branch as Re,amplify_info_small as ze,amplify_merged as Be,amplify_overview as Ve,amplify_resources as He,amplify_sharepoint as Ue,amplify_shield_person as We,amplify_small_portal as Ge,amplify_snail as Ke,amplify_sort_small as qe,amplify_tutorials as Je}from"./atoms/icons/other.js";import{amplify_h1 as Ye,amplify_h2 as Xe,amplify_h3 as Ze,amplify_h4 as Qe,amplify_table_add_column_left as $e,amplify_table_add_column_right as et,amplify_table_add_row_above as tt,amplify_table_add_row_below as nt,amplify_table_column_heading as rt,amplify_table_merge_cells as it,amplify_table_remove_column as at,amplify_table_remove_row as ot,amplify_table_row_heading as st,amplify_table_split_cell as ct}from"./atoms/icons/wysiwyg.js";import{style as lt}from"./atoms/index.js";import{ReleaseNotesProvider as ut,useReleaseNotes as dt}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as ft}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as pt}from"./providers/LoadingProvider.js";import{AnimatedCheckmark as mt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ht}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as gt}from"./molecules/Badge/Badge.js";import{Banner as _t}from"./molecules/Banner/Banner.js";import{Chip as vt}from"./molecules/Chip/Chip.js";import{SkeletonBase as yt,skeletonBaseloading as bt}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as xt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as St}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as Ct}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as wt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as Tt}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as Et}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as Dt}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Ot,IconCellStates as kt,IconCellVariants as At}from"./molecules/IconCell/IconCell.types.js";import{IconCell as jt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Mt}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Nt}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as Pt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Ft}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as It,TextTable as Lt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as Rt}from"./molecules/TextField/TextField.js";import{AmplifyBar as zt,EditorMenu as Bt,EditorText as Vt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Ht}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Ut}from"./molecules/RichTextEditor/index.js";import{Tabs as Wt}from"./molecules/Tabs/Tabs.js";import{Search as Gt}from"./molecules/Search/Search.js";import{SkeletonGradient as Kt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as qt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Jt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Yt}from"./molecules/Select/Select.styles.js";import{ComboBox as Xt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as Zt}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as Qt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as $t}from"./molecules/Tag/Tag.js";import{TableHeader as en}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as tn}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as nn}from"./molecules/ListItem/ListItem.js";import{Checkbox as rn}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as an}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as on}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as sn}from"./molecules/Waves/Waves.js";import{Accordion as cn,Breadcrumbs as ln,CircularProgress as un,Divider as dn,DotProgress as fn,EDSDialog as pn,Icon as mn,LinearProgress as hn,Menu as gn,Typography as _n}from"./molecules/index.js";import{DataGrid as vn}from"./organisms/DataGrid/DataGrid.js";import{Template as yn}from"./organisms/Template/Template.js";import{FieldSelector as bn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as xn}from"./organisms/Filter/index.js";import{SideBar as Sn}from"./organisms/SideBar/index.js";import{ReleaseNote as Cn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as wn}from"./organisms/TopBar/index.js";import{BadRequest as Tn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as En}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as Dn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as On}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as kn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as An}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as jn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Mn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Nn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Pn}from"./organisms/ToggleGroup/index.js";import{Faq as Fn}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as In}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Ln}from"./organisms/index.js";import{ExpandingIconButton as Rn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import zn from"./deprecated/IconToggleButton.js";import{OldStepper as Bn}from"./deprecated/OldStepper/OldStepper.js";export{cn as Accordion,zt as AmplifyBar,ne as AmplifyKit,mt as AnimatedCheckmark,An as ApiResponseError,ht as ApplicationIcon,K as AuthProvider,Tn as BadRequest,gt as Badge,_t as Banner,ln as Breadcrumbs,_e as Button,Ln as Card,rn as Checkbox,vt as Chip,un as CircularProgress,Xt as ComboBox,Yt as ComboBoxChip,xe as Confetti,Se as ConfettiProvider,w as DEFAULT_FEATURES,vn as DataGrid,xt as DatePicker,St as DateRangePicker,wt as Dialog,dn as Divider,fn as DotProgress,pn as EDSDialog,Bt as EditorMenu,Vt as EditorText,R as Empty,e as EnvironmentType,Tt as EquinorLogo,we as ErrorType,Rn as ExpandingIconButton,Fn as Faq,tn as FeedBackIcon,bn as FieldSelector,Et as FileProgress,Dt as FileUploadArea,xn as Filter,l as FullPageSpinner,En as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,mn as Icon,jt as IconCell,Ot as IconCellColors,kt as IconCellStates,At as IconCellVariants,zn as IconToggleButton,Mt as InfoElement,Nt as InformationalNotice,hn as LinearProgress,nn as ListItem,pt as LoadingProvider,gn as Menu,G as MissingAccessToApp,Dn as MissingPermissions,Bn as OldStepper,Jt as OptionDrawer,Ct as OptionalTooltip,On as PageNotFound,Nn as PageTitle,Zt as PersistentComboBox,Pt as ProfileAvatar,an as Radio,Cn as ReleaseNote,In as ReleaseNotesPage,ut as ReleaseNotesProvider,Ut as RichText,Ft as RichTextDisplay,Ht as RichTextEditor,T as RichTextEditorFeatures,Gt as Search,kn as ServerError,Sn as SideBar,J as SideBarProvider,jn as SideSheet,Qt as SingleSelect,yt as SkeletonBase,Kt as SkeletonGradient,X as SnackbarProvider,Te as SpacingsMode,W as Status,qt as Stepper,ue as StepperProvider,on as Switch,en as TableHeader,It as TableMenuBar,Mn as TableOfContents,$ as TableOfContentsProvider,Wt as Tabs,$t as Tag,yn as Template,Rt as TextField,Lt as TextTable,fe as Theme,pe as ThemeProvider,ve as Toast,ye as ToastProvider,Pn as ToggleGroup,wn as TopBar,ft as TutorialHighlightingProvider,_n as Typography,sn as Waves,Ie as amplify_aml,Le as amplify_arrow_up_down,Re as amplify_branch,Ne as amplify_calculator,Ee as amplify_failure,Ye as amplify_h1,Xe as amplify_h2,Ze as amplify_h3,Qe as amplify_h4,ze as amplify_info_small,De as amplify_lwd,Be as amplify_merged,Pe as amplify_overlay,Ve as amplify_overview,He as amplify_resources,Ue as amplify_sharepoint,We as amplify_shield_person,Fe as amplify_sidebyside,Ge as amplify_small_portal,Ke as amplify_snail,qe as amplify_sort_small,Oe as amplify_success,$e as amplify_table_add_column_left,et as amplify_table_add_column_right,tt as amplify_table_add_row_above,nt as amplify_table_add_row_below,rt as amplify_table_column_heading,it as amplify_table_merge_cells,at as amplify_table_remove_column,ot as amplify_table_remove_row,st as amplify_table_row_heading,ct as amplify_table_split_cell,Je as amplify_tutorials,ke as amplify_wellbore,Ae as amplify_wireline,je as amplify_wireline_cased_hole,Me 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,bt as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,lt as style,c as typography,re as useAmplifyKit,q as useAuth,Ce as useConfetti,ie as useDebounce,ae as useFakeProgress,ge as useFaqsInApplication,te as useLocalStorage,le as useNotification,Q as useOnScreenMultiple,he as usePrefetchRichTextImages,oe as usePrevious,dt as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,be as useToasts,S as utmProjection};
@@ -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<HTMLDivElement | HTMLButtonElement>>;
28
+ declare const Chip: react5.ForwardRefExoticComponent<ChipProps & react5.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
29
29
  //#endregion
30
30
  export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
@@ -1 +1 @@
1
- import{CONFETTI_DEFAULT_COLORS as e,CONFETTI_DEFAULT_SHAPES as t}from"./Confetti.constants.js";import{createConfetti as n}from"./utils/createConfetti.js";import{getSeasonalColors as r}from"./utils/seasonalColors.js";import{Canvas as i}from"./Confetti.styles.js";import{useCallback as a,useEffect as o,useRef as s}from"react";import{jsx as c}from"react/jsx-runtime";const l=l=>{let{mode:u=`boom`,shapeSize:d=12,className:f,style:p,onComplete:m}=l,h=l.colors&&l.colors.length?l.colors:r()||e,g=l.shapes&&l.shapes.length?l.shapes:t,_=s(Date.now()),v=l.mode===`shower`?l.duration??1/0:0;if(u===`shower`&&(v<=0||isNaN(v)))throw Error(`Duration must be a non-negative number`);let{effectCount:y=1/0}=l.mode===`boom`||l.mode===void 0?l:{effectCount:1/0};if(y<1)throw Error(`Effect count must be at least 1`);let b=l.mode===`boom`||l.mode===void 0?3e3:1,x=s(null),S=s(null),C=s([]),w=s(0),T=s(0),E=s(0),D=a(()=>{let e=x.current,t=e?.getContext(`2d`);!e||!t||(e.width=window.innerWidth,e.height=window.innerHeight,S.current=t)},[]),O=a(e=>{let t=S.current,r=x.current;if(!t||!r)return;w.current=requestAnimationFrame(O),t.clearRect(0,0,r.width,r.height);let i=Date.now()-_.current,a=u===`shower`?i<v:!0;a&&e-E.current>=b&&T.current<y&&(n({particles:C.current,mode:u,colors:h,shapeSize:d,shapes:g}),E.current=e,T.current+=1);let o=C.current;for(let e=o.length-1;e>=0;--e){let n=o[e];n.update(),n.draw(t),(n.opacity<=0||n.y>r.height)&&o.splice(e,1)}(T.current>=y||!a)&&o.length===0&&(cancelAnimationFrame(w.current),m&&m())},[h,y,b,u,d,g,v,m]);return o(()=>(D(),window.addEventListener(`resize`,D),w.current=requestAnimationFrame(e=>{E.current=e-b,O(e)}),()=>{cancelAnimationFrame(w.current),window.removeEventListener(`resize`,D)}),[O,D,b]),o(()=>{T.current=0},[y]),c(i,{"data-testid":`canvas-confetti`,ref:x,className:f,style:p})};l.displayName=`Confetti`;export{l as Confetti};
1
+ import{CONFETTI_DEFAULT_SHAPES as e}from"./Confetti.constants.js";import{createConfetti as t}from"./utils/createConfetti.js";import{Canvas as n}from"./Confetti.styles.js";import{getDefaultColors as r}from"./utils/getDefaultColors.js";import{useCallback as i,useEffect as a,useRef as o}from"react";import{jsx as s}from"react/jsx-runtime";const c=c=>{let{mode:l=`boom`,shapeSize:u=12,className:d,style:f,onComplete:p}=c,m=c.colors&&c.colors.length?c.colors:r(),h=c.shapes&&c.shapes.length?c.shapes:e,g=o(Date.now()),_=c.mode===`shower`?c.duration??1/0:0;if(l===`shower`&&(_<=0||isNaN(_)))throw Error(`Duration must be a non-negative number`);let{effectCount:v=1/0}=c.mode===`boom`||c.mode===void 0?c:{effectCount:1/0};if(v<1)throw Error(`Effect count must be at least 1`);let y=c.mode===`boom`||c.mode===void 0?3e3:1,b=o(null),x=o(null),S=o([]),C=o(0),w=o(0),T=o(0),E=i(()=>{let e=b.current,t=e?.getContext(`2d`);!e||!t||(e.width=window.innerWidth,e.height=window.innerHeight,x.current=t)},[]),D=i(e=>{let n=x.current,r=b.current;if(!n||!r)return;C.current=requestAnimationFrame(D),n.clearRect(0,0,r.width,r.height);let i=Date.now()-g.current,a=l===`shower`?i<_:!0;a&&e-T.current>=y&&w.current<v&&(t({particles:S.current,mode:l,colors:m,shapeSize:u,shapes:h}),T.current=e,w.current+=1);let o=S.current;for(let e=o.length-1;e>=0;--e){let t=o[e];t.update(),t.draw(n),(t.opacity<=0||t.y>r.height)&&o.splice(e,1)}(w.current>=v||!a)&&o.length===0&&(cancelAnimationFrame(C.current),p&&p())},[m,v,y,l,u,h,_,p]);return a(()=>(E(),window.addEventListener(`resize`,E),C.current=requestAnimationFrame(e=>{T.current=e-y,D(e)}),()=>{cancelAnimationFrame(C.current),window.removeEventListener(`resize`,E)}),[D,E,y]),a(()=>{w.current=0},[v]),s(n,{"data-testid":`canvas-confetti`,ref:b,className:d,style:f})};c.displayName=`Confetti`;export{c as Confetti};
@@ -0,0 +1 @@
1
+ import{CONFETTI_DEFAULT_COLORS as e}from"../Confetti.constants.js";import{getSeasonalColors as t}from"./seasonalColors.js";function n(n=new Date){return t(n)||e}export{n as getDefaultColors};
@@ -1 +1 @@
1
- import{getSeasonalEvent as e}from"./getSeasonalEvent.js";const t={christmas:{name:`Christmas`,colors:[`#C62828`,`#2E7D32`,`#FFFFFF`,`#FFD700`]},newYears:{name:`New Years`,colors:[`#000000`,`#FFFFFF`,`#FFD700`,`#C0C0C0`]},valentinesDay:{name:`Valentine's Day`,colors:[`#E91E63`,`#F44336`,`#FFFFFF`,`#FFCDD2`]},womensDay:{name:`International Women's Day`,colors:[`#7B1FA2`,`#BA68C8`,`#F8BBD0`,`#FFFFFF`]},easter:{name:`Easter`,colors:[`#FFEB3B`,`#A5D6A7`,`#90CAF9`,`#F48FB1`,`#CE93D8`]},norwegianConstitutionDay:{name:`Norwegian Constitution Day (17. mai)`,colors:[`#BA0C2F`,`#FFFFFF`,`#00205B`]},halloween:{name:`Halloween`,colors:[`#FF6F00`,`#000000`,`#6A1B9A`]},pride:{name:`Pride`,colors:[`#E40303`,`#FF8C00`,`#FFED00`,`#008026`,`#004DFF`,`#750787`]}};function n(n=new Date){let r=e(n);return r?t[r].colors:null}export{n as getSeasonalColors};
1
+ import{getSeasonalEvent as e}from"./getSeasonalEvent.js";const t={christmas:{name:`Christmas`,colors:[`#C62828`,`#2E7D32`,`#FFFFFF`,`#FFD700`]},newYears:{name:`New Years`,colors:[`#000000`,`#FFFFFF`,`#FFD700`,`#C0C0C0`]},valentinesDay:{name:`Valentine's Day`,colors:[`#E91E63`,`#F44336`,`#FFFFFF`,`#FFCDD2`]},womensDay:{name:`International Women's Day`,colors:[`#7B1FA2`,`#BA68C8`,`#F8BBD0`,`#FFFFFF`]},easter:{name:`Easter`,colors:[`#FFEB3B`,`#A5D6A7`,`#90CAF9`,`#F48FB1`,`#CE93D8`]},norwegianConstitutionDay:{name:`Norwegian Constitution Day (17. mai)`,colors:[`#BA0C2F`,`#FFFFFF`,`#00205B`]},halloween:{name:`Halloween`,colors:[`#FF6F00`,`#000000`,`#6A1B9A`]},pride:{name:`Pride`,colors:[`#E40303`,`#FF8C00`,`#FFED00`,`#008026`,`#004DFF`,`#750787`]}};function n(n){let r=e(n);return r?t[r].colors:null}export{n as getSeasonalColors};
@@ -1,4 +1,4 @@
1
- import * as react102 from "react";
1
+ import * as react104 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: react102.ForwardRefExoticComponent<ListItemProps & react102.RefAttributes<HTMLButtonElement>>;
18
+ declare const ListItem: react104.ForwardRefExoticComponent<ListItemProps & react104.RefAttributes<HTMLButtonElement>>;
19
19
  //#endregion
20
20
  export { ListItem, ListItemProps };
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, MouseEvent } from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/molecules/OptionDrawer/OptionDrawer.d.ts
5
5
  interface ToggleEventProps<T> {
@@ -43,7 +43,7 @@ declare const OptionDrawer: {
43
43
  openAll,
44
44
  showIntermediateParent,
45
45
  parentHasNestedItems
46
- }: OptionDrawerProps<T>): react_jsx_runtime0.JSX.Element;
46
+ }: OptionDrawerProps<T>): react_jsx_runtime1.JSX.Element;
47
47
  displayName: string;
48
48
  };
49
49
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, MultiSelectCommon, SelectOptionRequired } from "../Select.types.js";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/molecules/Select/ComboBox/ComboBox.d.ts
5
5
  type ComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & MultiSelectCommon<T> & (ListSelectProps<T> | GroupedSelectProps<T>);
@@ -17,6 +17,6 @@ type ComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & Mult
17
17
  * @param showSelectedAsText - If values should be shown as "5/10 Selected", defaults to false
18
18
  * @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
19
19
  */
20
- declare function ComboBox<T extends SelectOptionRequired>(props: ComboBoxProps<T>): react_jsx_runtime1.JSX.Element;
20
+ declare function ComboBox<T extends SelectOptionRequired>(props: ComboBoxProps<T>): react_jsx_runtime0.JSX.Element;
21
21
  //#endregion
22
22
  export { ComboBox, ComboBoxProps };
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{getVariantIcon as t}from"../../atoms/utils/forms.js";import{SkeletonField as n}from"../Skeleton/SkeletonField.js";import{ClearButton as r,ComboBoxChip as i,Container as a,HelperWrapper as o,PlaceholderText as s,Section as c,ValueText as l,Wrapper as u}from"./Select.styles.js";import{Icon as d}from"../index.js";import{useMemo as f,useRef as p}from"react";import{Label as m}from"@equinor/eds-core-react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{arrow_drop_down as _,arrow_drop_up as v,clear as y}from"@equinor/eds-icons";const b=({props:b,anchorRef:x,handleOnClear:S,handleOnSearchChange:C,handleOnSearchKeyDown:w,handleToggleOpen:T,search:E,selectedValues:D,handleOnOpen:O,handleOnRemoveItem:k,open:A,searchRef:j,tryingToRemoveItem:M})=>{let{clearable:N=!0,loading:P=!1,disabled:F=!1,lightBackground:I=!1,placeholder:L=`Select...`,label:R,helperText:z,showHelperIcon:B=!0,id:V=`amplify-combobox-${R}`,variant:H,"data-testid":U,mode:W=`menu`}=b,G=p(`${Math.max(40,Math.random()*80)}%`),K=f(()=>!!z,[z]),q=f(()=>{if(B)return t(H)},[B,H]),J=f(()=>{if(`value`in b&&b.value&&`customValueComponent`in b&&b.customValueComponent)return h(b.customValueComponent,{item:b.value});if(`value`in b&&b.value)return h(l,{children:b.value.label});if(`showSelectedAsText`in b&&b.showSelectedAsText){let e=b.items?b.items.length:b.groups.flatMap(e=>e.items).length;return h(l,{children:typeof b.showSelectedAsText==`function`?b.showSelectedAsText({selectedAmount:D.length,totalAmount:e}):`${D.length}/${e} Selected`})}else return D.map(e=>`customValueComponent`in b&&b.customValueComponent?h(b.customValueComponent,{item:e,onDelete:()=>k(e),tryingToRemove:M!==void 0&&M.value===e.value},e.value):h(i,{"data-testid":`amplify-combobox-chip`,className:`amplify-combo-box-chip`,onDelete:()=>k(e),$tryingToRemove:M?.value===e.value,$lightBackground:I,children:e.label},e.value))},[D,M,I,b,k]);return g(u,{$showBackgroundColor:W===`persistent`,children:[g(a,{"data-testid":U||`combobox-container`,ref:x,onClick:O,"aria-expanded":A,$variant:H,$loading:P,$lightBackground:I,children:[g(c,{children:[!P&&E===``&&D.length===0&&h(s,{children:L}),(E===``&&`value`in b||`values`in b&&D.length>0&&(!b.showSelectedAsText||b.showSelectedAsText&&E===``))&&!P&&J,h(`input`,{id:V,disabled:F||P,ref:j,type:`search`,role:`combobox`,value:E,autoComplete:`off`,onChange:C,onKeyDownCapture:w}),P&&h(n,{role:`progressbar`,style:{width:G.current,left:0,top:`50%`,transform:`translateY(-50%)`},"data-testid":`select-loading-skeleton`})]}),W===`menu`&&h(d,{onClick:T,data:A?v:_,color:P?e.interactive.disabled__fill.rgba:e.interactive.primary__resting.rgba}),N&&D.length>0&&!P&&h(r,{id:`clear`,variant:`ghost_icon`,onClick:S,"data-testid":`clearBtn`,$rightPadding:W===`menu`,disabled:F,children:h(d,{data:y,size:18})})]}),K&&g(o,{$borderBottom:W===`persistent`,$variant:F?`disabled`:H,children:[q&&h(d,{data:q,size:16}),h(m,{label:z,htmlFor:V})]})]})};export{b as SearchBar};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{getVariantIcon as t}from"../../atoms/utils/forms.js";import{SkeletonField as n}from"../Skeleton/SkeletonField.js";import{ClearButton as r,ComboBoxChip as i,Container as a,HelperWrapper as o,PlaceholderText as s,Section as c,ValueText as l,Wrapper as u}from"./Select.styles.js";import{Icon as d}from"../index.js";import{useMemo as f,useRef as p}from"react";import{Label as m}from"@equinor/eds-core-react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{arrow_drop_down as _,arrow_drop_up as v,clear as y}from"@equinor/eds-icons";const b=({props:b,anchorRef:x,handleOnClear:S,handleOnSearchChange:C,handleOnSearchKeyDown:w,handleToggleOpen:T,search:E,selectedValues:D,handleOnOpen:O,handleOnRemoveItem:k,open:A,searchRef:j,tryingToRemoveItem:M})=>{let{clearable:N=!0,loading:P=!1,disabled:F=!1,lightBackground:I=!1,placeholder:L=`Select...`,label:R,helperText:z,showHelperIcon:B=!0,id:V=`amplify-combobox-${R}`,variant:H,"data-testid":U,mode:W=`menu`}=b,G=p(`${Math.max(40,Math.random()*80)}%`),K=f(()=>!!z,[z]),q=f(()=>{if(B)return t(H)},[B,H]),J=f(()=>{if(`value`in b&&b.value&&`customValueComponent`in b&&b.customValueComponent)return h(b.customValueComponent,{item:b.value});if(`value`in b&&b.value)return h(l,{children:b.value.label});if(`showSelectedAsText`in b&&b.showSelectedAsText){let e=b.items?b.items.length:b.groups.flatMap(e=>e.items).length;return h(l,{children:typeof b.showSelectedAsText==`function`?b.showSelectedAsText({selectedAmount:D.length,totalAmount:e}):`${D.length}/${e} Selected`})}else return D.map(e=>`customValueComponent`in b&&b.customValueComponent?h(b.customValueComponent,{item:e,onDelete:()=>k(e),tryingToRemove:M!==void 0&&M.value===e.value},e.value):h(i,{"data-testid":`amplify-combobox-chip`,className:`amplify-combo-box-chip`,onDelete:()=>k(e),$tryingToRemove:M?.value===e.value,$lightBackground:I,children:e.label},e.value))},[D,M,I,b,k]);return g(u,{$showBackgroundColor:W===`persistent`,children:[g(a,{"data-testid":U||`combobox-container`,ref:x,onClick:O,"aria-expanded":A,$variant:H,$loading:P,$lightBackground:I,children:[g(c,{children:[!P&&E===``&&D.length===0&&h(s,{children:L}),(E===``&&`value`in b||`values`in b&&D.length>0&&(!b.showSelectedAsText||b.showSelectedAsText&&E===``))&&!P&&J,h(`input`,{id:V,disabled:F||P,ref:j,type:`search`,role:`combobox`,value:E,autoComplete:`off`,onChange:C,onKeyDownCapture:w,"aria-invalid":H===`error`?!0:void 0}),P&&h(n,{role:`progressbar`,style:{width:G.current,left:0,top:`50%`,transform:`translateY(-50%)`},"data-testid":`select-loading-skeleton`})]}),W===`menu`&&h(d,{onClick:T,data:A?v:_,color:P?e.interactive.disabled__fill.rgba:e.interactive.primary__resting.rgba}),N&&D.length>0&&!P&&h(r,{id:`clear`,variant:`ghost_icon`,onClick:S,"data-testid":`clearBtn`,$rightPadding:W===`menu`,disabled:F,children:h(d,{data:y,size:18})})]}),K&&g(o,{$borderBottom:W===`persistent`,$variant:F?`disabled`:H,children:[q&&h(d,{data:q,size:16}),h(m,{label:z,htmlFor:V})]})]})};export{b as SearchBar};
@@ -11,12 +11,12 @@ interface ComboBoxChipProps {
11
11
  $lightBackground?: boolean;
12
12
  className: string;
13
13
  }
14
- declare const ComboBoxChip: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<((Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
14
+ declare const ComboBoxChip: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<((Omit<react43.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
15
15
  onClick?: undefined;
16
16
  onDelete?: undefined;
17
- }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types8.BaseObject, ComboBoxChipProps>> & string & Omit<react43.ForwardRefExoticComponent<(Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
17
+ }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types8.BaseObject, ComboBoxChipProps>> & string & Omit<react43.ForwardRefExoticComponent<(Omit<react43.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
18
18
  onClick?: undefined;
19
19
  onDelete?: undefined;
20
- }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react43.Component<any, {}, any>>;
20
+ }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLButtonElement | HTMLDivElement>>, keyof react43.Component<any, {}, any>>;
21
21
  //#endregion
22
22
  export { ComboBoxChip };
@@ -1,4 +1,4 @@
1
- import * as react104 from "react";
1
+ import * as react102 from "react";
2
2
  import { CheckboxProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Checkbox/Checkbox.d.ts
@@ -7,6 +7,6 @@ interface CheckboxProps$1 extends CheckboxProps {
7
7
  outlined?: boolean;
8
8
  error?: boolean;
9
9
  }
10
- declare const Checkbox$1: react104.ForwardRefExoticComponent<CheckboxProps$1 & react104.RefAttributes<HTMLInputElement>>;
10
+ declare const Checkbox$1: react102.ForwardRefExoticComponent<CheckboxProps$1 & react102.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
@@ -1,4 +1,4 @@
1
- import * as react106 from "react";
1
+ import * as react108 from "react";
2
2
  import { RadioProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Radio/Radio.d.ts
@@ -7,6 +7,6 @@ interface RadioProps$1 extends RadioProps {
7
7
  outlined?: boolean;
8
8
  error?: boolean;
9
9
  }
10
- declare const Radio$1: react106.ForwardRefExoticComponent<RadioProps$1 & react106.RefAttributes<HTMLInputElement>>;
10
+ declare const Radio$1: react108.ForwardRefExoticComponent<RadioProps$1 & react108.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Radio$1 as Radio, RadioProps$1 as RadioProps };
@@ -1,10 +1,10 @@
1
- import * as react108 from "react";
1
+ import * as react106 from "react";
2
2
  import { SwitchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Switch/Switch.d.ts
5
5
  interface SwitchProps$1 extends SwitchProps {
6
6
  outlined?: boolean;
7
7
  }
8
- declare const Switch$1: react108.ForwardRefExoticComponent<SwitchProps$1 & react108.RefAttributes<HTMLInputElement>>;
8
+ declare const Switch$1: react106.ForwardRefExoticComponent<SwitchProps$1 & react106.RefAttributes<HTMLInputElement>>;
9
9
  //#endregion
10
10
  export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
@@ -1,5 +1,5 @@
1
1
  import { FilterProps } from "./Filter.types.js";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
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>): react_jsx_runtime6.JSX.Element;
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 react_jsx_runtime7 from "react/jsx-runtime";
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>): react_jsx_runtime7.JSX.Element;
17
+ }: QuickFilterProps<T>): react_jsx_runtime6.JSX.Element;
18
18
  //#endregion
19
19
  export { QuickFilter };
@@ -0,0 +1,17 @@
1
+ import { SideSheetProps } from "./SideSheet.types.js";
2
+ import { FC } from "react";
3
+
4
+ //#region src/organisms/SideSheet/SideSheet.d.ts
5
+
6
+ /**
7
+ * @description Side Sheet - Assumes you have a TopBar and that it is being used inside Template.Content
8
+ * @param open - If the side sheet should be open
9
+ * @param onClose - Called when clicking 'x' in the side sheet header
10
+ * @param title - Title to display in the header
11
+ * @param type - How the side sheet should be position, default is standard
12
+ * @param headerElements - Optional spot to put elements in the header, for example more action buttons
13
+ * @param children - Content in the side sheet
14
+ */
15
+ declare const SideSheet: FC<SideSheetProps>;
16
+ //#endregion
17
+ export { SideSheet };
@@ -0,0 +1 @@
1
+ import{Button as e}from"../../molecules/Button/Button.js";import{Header as t,ScrimWrapper as n,Sheet as r,Wrapper as i}from"./SideSheet.styles.js";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{close as l}from"@equinor/eds-icons";import{AnimatePresence as u}from"motion/react";const d=({open:e,onClose:t,title:r,type:i=`standard`,headerElements:a,children:o,...c})=>`withScrim`in c&&c.withScrim?s(n,{"data-testid":`side-sheet-scrim`,onClick:e?t:void 0,initial:{display:`none`,background:`rgba(111,111,111,0)`},animate:{background:e?`rgba(111,111,111,0.35)`:`rgba(111,111,111,0)`,display:e?`block`:`none`},children:s(f,{open:e,onClose:t,title:r,type:`modal`,headerElements:a,withScrim:!0,children:o})}):s(f,{open:e,onClose:t,title:r,type:i,headerElements:a,children:o});function f({open:n,onClose:d,title:f,type:p=`standard`,headerElements:m,children:h,...g}){return s(u,{children:n&&s(i,{$type:p,$withShadow:!(`withScrim`in g&&g.withScrim),initial:{x:p===`standard`?void 0:`110%`,width:p===`standard`?0:void 0},animate:{x:p===`standard`?void 0:0,width:p===`standard`?`auto`:void 0},exit:{x:p===`standard`?void 0:`110%`,width:p===`standard`?0:void 0},transition:{bounce:.25},children:c(r,{$type:p,children:[c(t,{children:[s(o,{variant:`h2`,children:f}),m&&s(`section`,{children:m}),s(e,{"aria-label":`close side sheet`,variant:`ghost_icon`,onClick:d,style:{gridColumn:3},children:s(a,{data:l})})]}),h]})})})}export{d as SideSheet};
@@ -0,0 +1,39 @@
1
+ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{elevation as n,shape as r}from"../../atoms/style/index.js";import{css as i,styled as a}from"styled-components";import{motion as o}from"motion/react";const s=a(o.div)`
2
+ overflow: hidden;
3
+ ${({$type:e,$withShadow:a})=>e===`standard`?``:e===`floating`?i`
4
+ position: fixed;
5
+ top: calc(64px + ${t.medium});
6
+ right: ${t.medium};
7
+ box-shadow: ${n.sticky};
8
+ border-radius: ${r.corners.borderRadius};
9
+ `:i`
10
+ position: fixed;
11
+ top: 64px;
12
+ right: 0;
13
+ box-shadow: ${a?n.above_scrim:`none`};
14
+ `}
15
+ `,c=a.div`
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: 500px;
19
+ background: ${e.ui.background__default.rgba};
20
+ ${({$type:t})=>{if(t===`standard`)return i`
21
+ background: none;
22
+ border-left: 2px solid ${e.ui.background__heavy.rgba};
23
+ `;if(t===`modal`)return i`
24
+ height: calc(100vh - 64px);
25
+ `}}
26
+ `,l=a.div`
27
+ display: grid;
28
+ grid-template-columns: auto 1fr auto;
29
+ align-items: center;
30
+ padding: ${t.medium} ${t.large};
31
+ `,u=a(o.div)`
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ overflow: hidden;
37
+ height: calc(100vh - 64px);
38
+ z-index: 10000;
39
+ `;export{l as Header,u as ScrimWrapper,c as Sheet,s as Wrapper};
@@ -0,0 +1,23 @@
1
+ import { ReactElement } from "react";
2
+
3
+ //#region src/organisms/SideSheet/SideSheet.types.d.ts
4
+ interface BaseSideSheetProps {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ title: string;
8
+ headerElements?: ReactElement | ReactElement[];
9
+ children: ReactElement | ReactElement[];
10
+ }
11
+ interface StandardSideSheetProps extends BaseSideSheetProps {
12
+ type?: 'standard' | undefined;
13
+ }
14
+ interface ModalSideSheetProps extends BaseSideSheetProps {
15
+ type: 'modal';
16
+ withScrim?: boolean;
17
+ }
18
+ interface FloatingSideSheetProps extends BaseSideSheetProps {
19
+ type: 'floating';
20
+ }
21
+ type SideSheetProps = StandardSideSheetProps | ModalSideSheetProps | FloatingSideSheetProps;
22
+ //#endregion
23
+ export { SideSheetProps };
@@ -1,9 +1,9 @@
1
- import * as react144 from "react";
1
+ import * as react140 from "react";
2
2
 
3
3
  //#region src/organisms/Status/Description.d.ts
4
4
  interface DescriptionProps {
5
5
  text?: string;
6
6
  }
7
- declare const Description: react144.ForwardRefExoticComponent<DescriptionProps & react144.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Description: react140.ForwardRefExoticComponent<DescriptionProps & react140.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Description };
@@ -1,4 +1,4 @@
1
- import * as react146 from "react";
1
+ import * as react144 from "react";
2
2
 
3
3
  //#region src/organisms/Status/MissingAccesses.d.ts
4
4
  interface AccessType {
@@ -9,6 +9,6 @@ interface MissingAccessesProps {
9
9
  accesses?: AccessType[];
10
10
  text?: string;
11
11
  }
12
- declare const MissingAccesses: react146.ForwardRefExoticComponent<MissingAccessesProps & react146.RefAttributes<HTMLDivElement>>;
12
+ declare const MissingAccesses: react144.ForwardRefExoticComponent<MissingAccessesProps & react144.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { MissingAccesses };
@@ -1,9 +1,9 @@
1
- import * as react140 from "react";
1
+ import * as react146 from "react";
2
2
 
3
3
  //#region src/organisms/Status/Title.d.ts
4
4
  interface TitleProps {
5
5
  title?: string;
6
6
  }
7
- declare const Title: react140.ForwardRefExoticComponent<TitleProps & react140.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Title: react146.ForwardRefExoticComponent<TitleProps & react146.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Title };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/organisms/Status/collections/GenericError.d.ts
4
4
  interface GenericErrorProps {
@@ -14,6 +14,6 @@ declare const GenericError: ({
14
14
  redirectFallbackUrl,
15
15
  onBackClick,
16
16
  hideBackButton
17
- }: GenericErrorProps) => react_jsx_runtime9.JSX.Element;
17
+ }: GenericErrorProps) => react_jsx_runtime12.JSX.Element;
18
18
  //#endregion
19
19
  export { GenericError };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/organisms/Status/collections/PageNotFound.d.ts
4
4
  interface PageNotFoundProps {
@@ -12,6 +12,6 @@ declare const PageNotFound: ({
12
12
  redirectFallbackUrl,
13
13
  onBackClick,
14
14
  hideBackButton
15
- }: PageNotFoundProps) => react_jsx_runtime11.JSX.Element;
15
+ }: PageNotFoundProps) => react_jsx_runtime9.JSX.Element;
16
16
  //#endregion
17
17
  export { PageNotFound };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/organisms/Status/collections/ServerError.d.ts
4
4
  interface ServerErrorProps {
@@ -12,6 +12,6 @@ declare const ServerError: ({
12
12
  redirectFallbackUrl,
13
13
  onBackClick,
14
14
  hideBackButton
15
- }: ServerErrorProps) => react_jsx_runtime12.JSX.Element;
15
+ }: ServerErrorProps) => react_jsx_runtime11.JSX.Element;
16
16
  //#endregion
17
17
  export { ServerError };
@@ -1,4 +1,4 @@
1
- import * as react133 from "react";
1
+ import * as react119 from "react";
2
2
  import { Dispatch, FC, ReactNode, SetStateAction } from "react";
3
3
 
4
4
  //#region src/organisms/TopBar/Notifications/NotificationProvider.d.ts
@@ -6,7 +6,7 @@ interface NotificationContext {
6
6
  setIsOpen: Dispatch<SetStateAction<boolean>>;
7
7
  isOpen: boolean;
8
8
  }
9
- declare const NotificationContext: react133.Context<NotificationContext | undefined>;
9
+ declare const NotificationContext: react119.Context<NotificationContext | undefined>;
10
10
  declare const useNotification: () => NotificationContext;
11
11
  //#endregion
12
12
  export { useNotification };
@@ -13,6 +13,8 @@ import { MissingPermissions } from "./Status/collections/MissingPermissions.js";
13
13
  import { PageNotFound } from "./Status/collections/PageNotFound.js";
14
14
  import { ServerError } from "./Status/collections/ServerError.js";
15
15
  import { ApiResponseError } from "./Status/collections/ApiResponseError.js";
16
+ import { SideSheetProps } from "./SideSheet/SideSheet.types.js";
17
+ import { SideSheet } from "./SideSheet/SideSheet.js";
16
18
  import { TableOfContents, TableOfContentsProps } from "./TableOfContents/TableOfContents.js";
17
19
  import { ContentProps, Template, TemplateType } from "./Template/Template.js";
18
20
  import { PageTitle } from "./PageTitle/PageTitle.js";
@@ -1 +1 @@
1
- import{Status as e}from"./Status/index.js";import{MissingAccessToApp as t}from"./Status/collections/MissingAccessToApp.js";import{DataGrid as n}from"./DataGrid/DataGrid.js";import{Template as r}from"./Template/Template.js";import{FieldSelector as i}from"./FieldSelector/FieldSelector.js";import{Filter as a}from"./Filter/index.js";import{SideBar as o}from"./SideBar/index.js";import{ReleaseNote as s}from"./ReleaseNote/ReleaseNote.js";import{TopBar as c}from"./TopBar/index.js";import{BadRequest as l}from"./Status/collections/BadRequest.js";import{GenericError as u}from"./Status/collections/GenericError.js";import{MissingPermissions as d}from"./Status/collections/MissingPermissions.js";import{PageNotFound as f}from"./Status/collections/PageNotFound.js";import{ServerError as p}from"./Status/collections/ServerError.js";import{ApiResponseError as m}from"./Status/collections/ApiResponseError.js";import{TableOfContents as h}from"./TableOfContents/TableOfContents.js";import{PageTitle as g}from"./PageTitle/PageTitle.js";import{ToggleGroup as _}from"./ToggleGroup/index.js";import{Faq as v}from"./Faq/Faq.js";import{ReleaseNotesPage as y}from"./ReleaseNotesPage/ReleaseNotesPage.js";import{Card as b}from"@equinor/eds-core-react";export{b as Card};
1
+ import{Status as e}from"./Status/index.js";import{MissingAccessToApp as t}from"./Status/collections/MissingAccessToApp.js";import{DataGrid as n}from"./DataGrid/DataGrid.js";import{Template as r}from"./Template/Template.js";import{FieldSelector as i}from"./FieldSelector/FieldSelector.js";import{Filter as a}from"./Filter/index.js";import{SideBar as o}from"./SideBar/index.js";import{ReleaseNote as s}from"./ReleaseNote/ReleaseNote.js";import{TopBar as c}from"./TopBar/index.js";import{BadRequest as l}from"./Status/collections/BadRequest.js";import{GenericError as u}from"./Status/collections/GenericError.js";import{MissingPermissions as d}from"./Status/collections/MissingPermissions.js";import{PageNotFound as f}from"./Status/collections/PageNotFound.js";import{ServerError as p}from"./Status/collections/ServerError.js";import{ApiResponseError as m}from"./Status/collections/ApiResponseError.js";import{SideSheet as h}from"./SideSheet/SideSheet.js";import{TableOfContents as g}from"./TableOfContents/TableOfContents.js";import{PageTitle as _}from"./PageTitle/PageTitle.js";import{ToggleGroup as v}from"./ToggleGroup/index.js";import{Faq as y}from"./Faq/Faq.js";import{ReleaseNotesPage as b}from"./ReleaseNotesPage/ReleaseNotesPage.js";import{Card as x}from"@equinor/eds-core-react";export{x as Card};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/amplify-component-lib",
3
- "version": "11.0.4",
3
+ "version": "11.1.0",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",