@equinor/amplify-component-lib 12.0.6 → 13.0.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 (82) 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/atoms/index.js +1 -1
  4. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.js +1 -1
  7. package/dist/molecules/Button/Button.d.ts +15 -7
  8. package/dist/molecules/Button/Button.js +1 -12
  9. package/dist/molecules/Button/Button.styles.js +88 -0
  10. package/dist/molecules/Button/Button.utils.js +1 -1
  11. package/dist/molecules/Button/IconButton/IconButton.d.ts +17 -0
  12. package/dist/molecules/Button/IconButton/IconButton.js +1 -0
  13. package/dist/molecules/Button/IconButton/IconButton.styles.js +69 -0
  14. package/dist/molecules/Button/tokens/danger.js +1 -0
  15. package/dist/molecules/Button/tokens/disabled.js +1 -0
  16. package/dist/molecules/Button/tokens/primary.js +1 -0
  17. package/dist/molecules/Button/tokens/tokens.js +1 -0
  18. package/dist/molecules/Button/types.d.ts +15 -0
  19. package/dist/molecules/Chip/Chip.d.ts +2 -2
  20. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  21. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  22. package/dist/molecules/Dialog/Dialog.d.ts +6 -5
  23. package/dist/molecules/Dialog/DialogAction.js +1 -1
  24. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  25. package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
  26. package/dist/molecules/IconCell/IconCell.d.ts +2 -2
  27. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  28. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  29. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  30. package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
  31. package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
  32. package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
  33. package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
  34. package/dist/molecules/Search/Search.d.ts +2 -2
  35. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  36. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
  37. package/dist/molecules/Select/Select.js +1 -1
  38. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  39. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  40. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  41. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
  42. package/dist/molecules/Stepper/Step/Step.js +1 -1
  43. package/dist/molecules/Stepper/Step/StepIcon.js +2 -2
  44. package/dist/molecules/Stepper/Stepper.d.ts +11 -0
  45. package/dist/molecules/Stepper/Stepper.js +1 -1
  46. package/dist/molecules/TableHeader/TableHeader.js +1 -1
  47. package/dist/molecules/TableHeader/TableHeader.utils.js +1 -1
  48. package/dist/molecules/TextField/TextField.js +3 -3
  49. package/dist/molecules/Toast/Toast.js +1 -1
  50. package/dist/molecules/index.d.ts +2 -1
  51. package/dist/molecules/index.js +1 -1
  52. package/dist/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.js +9 -0
  53. package/dist/organisms/ReleaseNote/ToggleExpanded.js +2 -2
  54. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  55. package/dist/organisms/SideSheet/SideSheet.d.ts +1 -0
  56. package/dist/organisms/SideSheet/SideSheet.js +1 -1
  57. package/dist/organisms/SideSheet/SideSheet.styles.js +9 -3
  58. package/dist/organisms/SideSheet/SideSheet.types.d.ts +4 -1
  59. package/dist/organisms/Status/Action.d.ts +2 -2
  60. package/dist/organisms/Status/Description.d.ts +2 -2
  61. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  62. package/dist/organisms/Status/Title.d.ts +2 -2
  63. package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
  64. package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
  65. package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
  66. package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
  67. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  68. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  69. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  70. package/dist/organisms/TopBar/Account/Account.js +1 -1
  71. package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
  72. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  73. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
  74. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  75. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +1 -1
  76. package/dist/providers/StepperProvider.js +1 -1
  77. package/dist/providers/SurveyProvider/SurveyDialog/SurveyDialog.js +1 -1
  78. package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyFreeTextQuestion.js +2 -2
  79. package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyLinearScaleQuestion.js +2 -2
  80. package/dist/providers/SurveyProvider/SurveyDialog/SurveyQuestion/SurveyMultipleChoiceQuestion.js +2 -2
  81. package/dist/providers/SurveyProvider/SurveyDialog/UmuxDialog.js +2 -2
  82. package/package.json +3 -1
@@ -1,6 +1,6 @@
1
- import * as react209 from "react";
1
+ import * as react191 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, react209.Dispatch<react209.SetStateAction<T>>, () => void];
4
+ declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react191.Dispatch<react191.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 react212 from "react";
3
+ import * as react193 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: react212.RefObject<HTMLInputElement | null>;
20
- itemRefs: react212.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react193.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react193.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -1 +1 @@
1
- import"./enums/Environment.js";import"./utils/auth_environment.js";import"./style/animation.js";import"./style/colors.js";import"./style/spacings.js";import{style_exports as e}from"./style/index.js";import"./utils/coordinate.js";import"./utils/date.js";import"./utils/export.js";import"./utils/favicon.js";import"./utils/map.js";import"./utils/reactquery.js";import"./utils/richtext.js";import"./utils/size.js";import"./utils/sort.js";import"./utils/string.js";import"./utils/url.js";import"./utils/tutorials.js";import"./utils/forms.js";import"../providers/AuthProvider/AuthProvider.js";import"../providers/SideBarProvider.js";import"../providers/SnackbarProvider/SnackbarProvider.js";import"./hooks/useOnScreenMultiple.js";import"../providers/TableOfContentsProvider.js";import"./hooks/useLocalStorage.js";import"./hooks/useAmplifyKit.js";import"./hooks/useDebounce.js";import"./hooks/useFakeProgress.js";import"./hooks/usePrevious.js";import"./hooks/useSelect.js";import"./hooks/useStatusNavigation.js";import"../organisms/TopBar/Notifications/NotificationProvider.js";import"../providers/StepperProvider.js";import"./enums/Theme.js";import"../providers/ThemeProvider/ThemeProvider.js";import"./hooks/usePrefetchRichTextImages.js";import"./hooks/useFaqsInApplication.js";import"../providers/ToastProvider/ToastProvider.js";import"../providers/ConfettiProvider/ConfettiProvider.js";import"./enums/Errors.js";import"./enums/SpacingsMode.js";import"./icons/drilling.js";import"./icons/map.js";import"./icons/other.js";import"./icons/wysiwyg.js";import"../providers/ReleaseNotesProvider.js";const t=e;export{t as style};
1
+ import"./enums/Environment.js";import"./utils/auth_environment.js";import"./style/animation.js";import"./style/colors.js";import"./style/spacings.js";import{style_exports as e}from"./style/index.js";import"./utils/coordinate.js";import"./utils/date.js";import"./utils/export.js";import"./utils/favicon.js";import"./utils/map.js";import"./utils/reactquery.js";import"./utils/richtext.js";import"./utils/size.js";import"./utils/sort.js";import"./utils/string.js";import"./utils/url.js";import"./utils/tutorials.js";import"./utils/forms.js";import"../providers/AuthProvider/AuthProvider.js";import"../providers/SideBarProvider.js";import"../providers/SnackbarProvider/SnackbarProvider.js";import"./hooks/useOnScreenMultiple.js";import"../providers/TableOfContentsProvider.js";import"./hooks/useLocalStorage.js";import"./hooks/useAmplifyKit.js";import"./hooks/useDebounce.js";import"./hooks/useFakeProgress.js";import"./hooks/usePrevious.js";import"./hooks/useSelect.js";import"./hooks/useStatusNavigation.js";import"../organisms/TopBar/Notifications/NotificationProvider.js";import"../providers/StepperProvider.js";import"./enums/Theme.js";import"../providers/ThemeProvider/ThemeProvider.js";import"./hooks/usePrefetchRichTextImages.js";import"./hooks/useFaqsInApplication.js";import"./enums/Errors.js";import"./enums/SpacingsMode.js";import"./icons/wysiwyg.js";import"../providers/ToastProvider/ToastProvider.js";import"../providers/ConfettiProvider/ConfettiProvider.js";import"./icons/drilling.js";import"./icons/map.js";import"./icons/other.js";import"../providers/ReleaseNotesProvider.js";const t=e;export{t as style};
@@ -1,4 +1,4 @@
1
- import * as react4 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: react4.ForwardRefExoticComponent<ExpandingIconButtonProps & react4.RefAttributes<HTMLDivElement>>;
15
+ declare const ExpandingIconButton: react0.ForwardRefExoticComponent<ExpandingIconButtonProps & react0.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { ExpandingIconButton };
package/dist/index.d.ts CHANGED
@@ -63,6 +63,7 @@ import { ApplicationIcon, ApplicationIconProps } from "./molecules/ApplicationIc
63
63
  import { Badge, BadgeProps } from "./molecules/Badge/Badge.js";
64
64
  import { Banner, BannerProps } from "./molecules/Banner/Banner.js";
65
65
  import { Button, ButtonProps } from "./molecules/Button/Button.js";
66
+ import { IconButton, IconButtonProps } from "./molecules/Button/IconButton/IconButton.js";
66
67
  import { BaseChipProps, Chip } from "./molecules/Chip/Chip.js";
67
68
  import { Confetti } from "./molecules/Confetti/Confetti.js";
68
69
  import { DatePicker, DatePickerProps } from "./molecules/DatePicker/DatePicker.js";
@@ -134,4 +135,4 @@ import { Card, CardProps, DataGridProps } from "./organisms/index.js";
134
135
  import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
135
136
  import { IconToggleButton } from "./deprecated/IconToggleButton.js";
136
137
  import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
137
- 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, SurveyProvider, 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 };
138
+ 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, IconButton, IconButtonProps, 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, SurveyProvider, 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{SkeletonBase as mt,skeletonBaseloading as ht}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{TextField as gt}from"./molecules/TextField/TextField.js";import{Checkbox as _t}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as vt}from"./molecules/SelectionControls/Radio/Radio.js";import{AnimatedCheckmark as yt}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as bt}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as xt}from"./molecules/Badge/Badge.js";import{Banner as St}from"./molecules/Banner/Banner.js";import{Chip as Ct}from"./molecules/Chip/Chip.js";import{DatePicker as wt}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as Tt}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as Et}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as Dt}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as Ot}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as kt}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as At}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as jt,IconCellStates as Mt,IconCellVariants as Nt}from"./molecules/IconCell/IconCell.types.js";import{IconCell as Pt}from"./molecules/IconCell/IconCell.js";import{InfoElement as Ft}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as It}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as Lt}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Rt}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as zt,TextTable as Bt}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{AmplifyBar as Vt,EditorMenu as Ht,EditorText as Ut}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as Wt}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as Gt}from"./molecules/RichTextEditor/index.js";import{Tabs as Kt}from"./molecules/Tabs/Tabs.js";import{Search as qt}from"./molecules/Search/Search.js";import{SkeletonGradient as Jt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as Yt}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as Xt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as Zt}from"./molecules/Select/Select.styles.js";import{ComboBox as Qt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as $t}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as en}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as tn}from"./molecules/Tag/Tag.js";import{TableHeader as nn}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as rn}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as an}from"./molecules/ListItem/ListItem.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{SurveyProvider as vn}from"./providers/SurveyProvider/SurveyProvider.js";import{DataGrid as yn}from"./organisms/DataGrid/DataGrid.js";import{Template as bn}from"./organisms/Template/Template.js";import{FieldSelector as xn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as Sn}from"./organisms/Filter/index.js";import{SideBar as Cn}from"./organisms/SideBar/index.js";import{ReleaseNote as wn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as Tn}from"./organisms/TopBar/index.js";import{BadRequest as En}from"./organisms/Status/collections/BadRequest.js";import{GenericError as Dn}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as On}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as kn}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as An}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as jn}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as Mn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Nn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Pn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as Fn}from"./organisms/ToggleGroup/index.js";import{Faq as In}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as Ln}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as Rn}from"./organisms/index.js";import{ExpandingIconButton as zn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Bn from"./deprecated/IconToggleButton.js";import{OldStepper as Vn}from"./deprecated/OldStepper/OldStepper.js";export{cn as Accordion,Vt as AmplifyBar,ne as AmplifyKit,yt as AnimatedCheckmark,jn as ApiResponseError,bt as ApplicationIcon,K as AuthProvider,En as BadRequest,xt as Badge,St as Banner,ln as Breadcrumbs,_e as Button,Rn as Card,_t as Checkbox,Ct as Chip,un as CircularProgress,Qt as ComboBox,Zt as ComboBoxChip,xe as Confetti,Se as ConfettiProvider,w as DEFAULT_FEATURES,yn as DataGrid,wt as DatePicker,Tt as DateRangePicker,Dt as Dialog,dn as Divider,fn as DotProgress,pn as EDSDialog,Ht as EditorMenu,Ut as EditorText,R as Empty,e as EnvironmentType,Ot as EquinorLogo,we as ErrorType,zn as ExpandingIconButton,In as Faq,rn as FeedBackIcon,xn as FieldSelector,kt as FileProgress,At as FileUploadArea,Sn as Filter,l as FullPageSpinner,Dn as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,mn as Icon,Pt as IconCell,jt as IconCellColors,Mt as IconCellStates,Nt as IconCellVariants,Bn as IconToggleButton,Ft as InfoElement,It as InformationalNotice,hn as LinearProgress,an as ListItem,pt as LoadingProvider,gn as Menu,G as MissingAccessToApp,On as MissingPermissions,Vn as OldStepper,Xt as OptionDrawer,Et as OptionalTooltip,kn as PageNotFound,Pn as PageTitle,$t as PersistentComboBox,Lt as ProfileAvatar,vt as Radio,wn as ReleaseNote,Ln as ReleaseNotesPage,ut as ReleaseNotesProvider,Gt as RichText,Rt as RichTextDisplay,Wt as RichTextEditor,T as RichTextEditorFeatures,qt as Search,An as ServerError,Cn as SideBar,J as SideBarProvider,Mn as SideSheet,en as SingleSelect,mt as SkeletonBase,Jt as SkeletonGradient,X as SnackbarProvider,Te as SpacingsMode,W as Status,Yt as Stepper,ue as StepperProvider,vn as SurveyProvider,on as Switch,nn as TableHeader,zt as TableMenuBar,Nn as TableOfContents,$ as TableOfContentsProvider,Kt as Tabs,tn as Tag,bn as Template,gt as TextField,Bt as TextTable,fe as Theme,pe as ThemeProvider,ve as Toast,ye as ToastProvider,Fn as ToggleGroup,Tn 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,ht 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{AnimatedCheckmark as _e}from"./molecules/AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as ve}from"./molecules/ApplicationIcon/ApplicationIcon.js";import{Badge as ye}from"./molecules/Badge/Badge.js";import{Banner as be}from"./molecules/Banner/Banner.js";import{Button as xe}from"./molecules/Button/Button.js";import{IconButton as Se}from"./molecules/Button/IconButton/IconButton.js";import{Chip as Ce}from"./molecules/Chip/Chip.js";import{Confetti as we}from"./molecules/Confetti/Confetti.js";import{SkeletonBase as Te,skeletonBaseloading as Ee}from"./molecules/Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as De}from"./molecules/DatePicker/DatePicker.js";import{DateRangePicker as Oe}from"./molecules/DateRangePicker/DateRangePicker.js";import{OptionalTooltip as ke}from"./molecules/OptionalTooltip/OptionalTooltip.js";import{Dialog as Ae}from"./molecules/Dialog/Dialog.js";import{EquinorLogo as je}from"./molecules/EquinorLogo/EquinorLogo.js";import{FileProgress as Me}from"./molecules/FileProgress/FileProgress.js";import{FileUploadArea as Ne}from"./molecules/FileUploadArea/FileUploadArea.js";import{IconCellColors as Pe,IconCellStates as Fe,IconCellVariants as Ie}from"./molecules/IconCell/IconCell.types.js";import{ErrorType as Le}from"./atoms/enums/Errors.js";import{SpacingsMode as Re}from"./atoms/enums/SpacingsMode.js";import{IconCell as ze}from"./molecules/IconCell/IconCell.js";import{InfoElement as Be}from"./molecules/InfoElement/InfoElement.js";import{InformationalNotice as Ve}from"./molecules/InformationalNotice/InformationalNotice.js";import{ProfileAvatar as He}from"./molecules/ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as Ue}from"./molecules/RichTextDisplay/RichTextDisplay.js";import{amplify_h1 as We,amplify_h2 as Ge,amplify_h3 as Ke,amplify_h4 as qe,amplify_table_add_column_left as Je,amplify_table_add_column_right as Ye,amplify_table_add_row_above as Xe,amplify_table_add_row_below as Ze,amplify_table_column_heading as Qe,amplify_table_merge_cells as $e,amplify_table_remove_column as et,amplify_table_remove_row as tt,amplify_table_row_heading as nt,amplify_table_split_cell as rt}from"./atoms/icons/wysiwyg.js";import{TableMenuBar as it,TextTable as at}from"./molecules/RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as ot}from"./molecules/TextField/TextField.js";import{AmplifyBar as st,EditorMenu as ct,EditorText as lt}from"./molecules/RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as ut}from"./molecules/RichTextEditor/RichTextEditor.js";import{RichText as dt}from"./molecules/RichTextEditor/index.js";import{Tabs as ft}from"./molecules/Tabs/Tabs.js";import{Search as pt}from"./molecules/Search/Search.js";import{SkeletonGradient as mt}from"./molecules/Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as ht}from"./molecules/Stepper/Stepper.js";import{OptionDrawer as gt}from"./molecules/OptionDrawer/OptionDrawer.js";import{ComboBoxChip as _t}from"./molecules/Select/Select.styles.js";import{ComboBox as vt}from"./molecules/Select/ComboBox/ComboBox.js";import{PersistentComboBox as yt}from"./molecules/Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as bt}from"./molecules/Select/SingleSelect/SingleSelect.js";import{Tag as xt}from"./molecules/Tag/Tag.js";import{TableHeader as St}from"./molecules/TableHeader/TableHeader.js";import{FeedBackIcon as Ct}from"./molecules/FeedBackIcon/FeedBackIcon.js";import{ListItem as wt}from"./molecules/ListItem/ListItem.js";import{Checkbox as Tt}from"./molecules/SelectionControls/Checkbox/Checkbox.js";import{Radio as Et}from"./molecules/SelectionControls/Radio/Radio.js";import{Switch as Dt}from"./molecules/SelectionControls/Switch/Switch.js";import{Waves as Ot}from"./molecules/Waves/Waves.js";import{Accordion as kt,Breadcrumbs as At,CircularProgress as jt,Divider as Mt,DotProgress as Nt,EDSDialog as Pt,Icon as Ft,LinearProgress as It,Menu as Lt,Typography as Rt}from"./molecules/index.js";import{Toast as zt}from"./molecules/Toast/Toast.js";import{ToastProvider as Bt,useToasts as Vt}from"./providers/ToastProvider/ToastProvider.js";import{ConfettiProvider as Ht,useConfetti as Ut}from"./providers/ConfettiProvider/ConfettiProvider.js";import{amplify_failure as Wt,amplify_lwd as Gt,amplify_success as Kt,amplify_wellbore as qt,amplify_wireline as Jt,amplify_wireline_cased_hole as Yt,amplify_wireline_open_hole as Xt}from"./atoms/icons/drilling.js";import{amplify_calculator as Zt,amplify_overlay as Qt,amplify_sidebyside as $t}from"./atoms/icons/map.js";import{amplify_aml as en,amplify_arrow_up_down as tn,amplify_branch as nn,amplify_info_small as rn,amplify_merged as an,amplify_overview as on,amplify_resources as sn,amplify_sharepoint as cn,amplify_shield_person as ln,amplify_small_portal as un,amplify_snail as dn,amplify_sort_small as fn,amplify_tutorials as pn}from"./atoms/icons/other.js";import{style as mn}from"./atoms/index.js";import{ReleaseNotesProvider as hn,useReleaseNotes as gn}from"./providers/ReleaseNotesProvider.js";import{TutorialHighlightingProvider as _n}from"./providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js";import{LoadingProvider as vn}from"./providers/LoadingProvider.js";import{SurveyProvider as yn}from"./providers/SurveyProvider/SurveyProvider.js";import{DataGrid as bn}from"./organisms/DataGrid/DataGrid.js";import{Template as xn}from"./organisms/Template/Template.js";import{FieldSelector as Sn}from"./organisms/FieldSelector/FieldSelector.js";import{Filter as Cn}from"./organisms/Filter/index.js";import{SideBar as wn}from"./organisms/SideBar/index.js";import{ReleaseNote as Tn}from"./organisms/ReleaseNote/ReleaseNote.js";import{TopBar as En}from"./organisms/TopBar/index.js";import{BadRequest as Dn}from"./organisms/Status/collections/BadRequest.js";import{GenericError as On}from"./organisms/Status/collections/GenericError.js";import{MissingPermissions as kn}from"./organisms/Status/collections/MissingPermissions.js";import{PageNotFound as An}from"./organisms/Status/collections/PageNotFound.js";import{ServerError as jn}from"./organisms/Status/collections/ServerError.js";import{ApiResponseError as Mn}from"./organisms/Status/collections/ApiResponseError.js";import{SideSheet as Nn}from"./organisms/SideSheet/SideSheet.js";import{TableOfContents as Pn}from"./organisms/TableOfContents/TableOfContents.js";import{PageTitle as Fn}from"./organisms/PageTitle/PageTitle.js";import{ToggleGroup as In}from"./organisms/ToggleGroup/index.js";import{Faq as Ln}from"./organisms/Faq/Faq.js";import{ReleaseNotesPage as Rn}from"./organisms/ReleaseNotesPage/ReleaseNotesPage.js";import{Card as zn}from"./organisms/index.js";import{ExpandingIconButton as Bn}from"./deprecated/ExpandingIconButton/ExpandingIconButton.js";import Vn from"./deprecated/IconToggleButton.js";import{OldStepper as Hn}from"./deprecated/OldStepper/OldStepper.js";export{kt as Accordion,st as AmplifyBar,ne as AmplifyKit,_e as AnimatedCheckmark,Mn as ApiResponseError,ve as ApplicationIcon,K as AuthProvider,Dn as BadRequest,ye as Badge,be as Banner,At as Breadcrumbs,xe as Button,zn as Card,Tt as Checkbox,Ce as Chip,jt as CircularProgress,vt as ComboBox,_t as ComboBoxChip,we as Confetti,Ht as ConfettiProvider,w as DEFAULT_FEATURES,bn as DataGrid,De as DatePicker,Oe as DateRangePicker,Ae as Dialog,Mt as Divider,Nt as DotProgress,Pt as EDSDialog,ct as EditorMenu,lt as EditorText,R as Empty,e as EnvironmentType,je as EquinorLogo,Le as ErrorType,Bn as ExpandingIconButton,Ln as Faq,Ct as FeedBackIcon,Sn as FieldSelector,Me as FileProgress,Ne as FileUploadArea,Cn as Filter,l as FullPageSpinner,On as GenericError,E as IMG_WITH_ALT,D as IMG_WITH_SRC_AND_ALT,Ft as Icon,Se as IconButton,ze as IconCell,Pe as IconCellColors,Fe as IconCellStates,Ie as IconCellVariants,Vn as IconToggleButton,Be as InfoElement,Ve as InformationalNotice,It as LinearProgress,wt as ListItem,vn as LoadingProvider,Lt as Menu,G as MissingAccessToApp,kn as MissingPermissions,Hn as OldStepper,gt as OptionDrawer,ke as OptionalTooltip,An as PageNotFound,Fn as PageTitle,yt as PersistentComboBox,He as ProfileAvatar,Et as Radio,Tn as ReleaseNote,Rn as ReleaseNotesPage,hn as ReleaseNotesProvider,dt as RichText,Ue as RichTextDisplay,ut as RichTextEditor,T as RichTextEditorFeatures,pt as Search,jn as ServerError,wn as SideBar,J as SideBarProvider,Nn as SideSheet,bt as SingleSelect,Te as SkeletonBase,mt as SkeletonGradient,X as SnackbarProvider,Re as SpacingsMode,W as Status,ht as Stepper,ue as StepperProvider,yn as SurveyProvider,Dt as Switch,St as TableHeader,it as TableMenuBar,Pn as TableOfContents,$ as TableOfContentsProvider,ft as Tabs,xt as Tag,xn as Template,ot as TextField,at as TextTable,fe as Theme,pe as ThemeProvider,zt as Toast,Bt as ToastProvider,In as ToggleGroup,En as TopBar,_n as TutorialHighlightingProvider,Rt as Typography,Ot as Waves,en as amplify_aml,tn as amplify_arrow_up_down,nn as amplify_branch,Zt as amplify_calculator,Wt as amplify_failure,We as amplify_h1,Ge as amplify_h2,Ke as amplify_h3,qe as amplify_h4,rn as amplify_info_small,Gt as amplify_lwd,an as amplify_merged,Qt as amplify_overlay,on as amplify_overview,sn as amplify_resources,cn as amplify_sharepoint,ln as amplify_shield_person,$t as amplify_sidebyside,un as amplify_small_portal,dn as amplify_snail,fn as amplify_sort_small,Kt as amplify_success,Je as amplify_table_add_column_left,Ye as amplify_table_add_column_right,Xe as amplify_table_add_row_above,Ze as amplify_table_add_row_below,Qe as amplify_table_column_heading,$e as amplify_table_merge_cells,et as amplify_table_remove_column,tt as amplify_table_remove_row,nt as amplify_table_row_heading,rt as amplify_table_split_cell,pn as amplify_tutorials,qt as amplify_wellbore,Jt as amplify_wireline,Yt as amplify_wireline_cased_hole,Xt 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,Ee as skeletonBaseloading,I as sortByDate,L as sortByWellboreName,a as spacings,mn as style,c as typography,re as useAmplifyKit,q as useAuth,Ut 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,gn as useReleaseNotes,se as useSelect,Y as useSideBar,Z as useSnackbar,ce as useStatusNavigation,de as useStepper,ee as useTableOfContents,me as useThemeProvider,Vt as useToasts,S as utmProjection};
@@ -1,10 +1,18 @@
1
- import { ButtonProps } from "@equinor/eds-core-react";
2
- import { OverridableComponent } from "@equinor/eds-utils";
1
+ import { CommonButtonProps } from "./types.js";
2
+ import { FC } from "react";
3
+ import { IconData } from "@equinor/eds-icons";
4
+ import { LinkComponent, LinkComponentProps } from "@tanstack/react-router";
3
5
 
4
6
  //#region src/molecules/Button/Button.d.ts
5
- interface ButtonProps$1 extends ButtonProps {
6
- loading?: boolean;
7
- }
8
- declare const Button$1: OverridableComponent<ButtonProps$1, HTMLButtonElement>;
7
+ type BaseButtonProps = {
8
+ label: string;
9
+ fullWidth?: boolean;
10
+ leadingIcon?: IconData;
11
+ trailingIcon?: IconData;
12
+ } & CommonButtonProps;
13
+ type ButtonProps = LinkComponentProps<typeof BaseButton> | BaseButtonProps;
14
+ declare const BaseButton: FC<BaseButtonProps>;
15
+ type ButtonComponent = LinkComponent<typeof BaseButton> & FC<BaseButtonProps>;
16
+ declare const Button: ButtonComponent;
9
17
  //#endregion
10
- export { Button$1 as Button, ButtonProps$1 as ButtonProps };
18
+ export { Button, ButtonProps };
@@ -1,12 +1 @@
1
- import{variantAndColorToProgressColor as e}from"./Button.utils.js";import{forwardRef as t}from"react";import{Button as n,CircularProgress as r,DotProgress as i}from"@equinor/eds-core-react";import a from"styled-components";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";const l=a.span`
2
- opacity: 0;
3
- visibility: hidden;
4
- `,u=a.span`
5
- left: 0;
6
- position: absolute;
7
- width: 100%;
8
- height: 100%;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- `,d=t(({loading:t,variant:a,color:d,disabled:f=!1,onClick:p,...m},h)=>{let g=a?.includes(`icon`)?{width:`var(--eds_icon-button__size, 40px)`,height:`var(--eds_icon-button__size, 40px)`,...m.style}:m.style;return s(n,{ref:h,variant:a,color:d,disabled:t?!1:f,onClick:t?void 0:p,...m,style:g,children:t?c(o,{children:[s(l,{children:m.children}),s(u,{children:a&&a.includes(`icon`)?s(r,{size:16,color:e({variant:a,color:d})}):s(i,{color:e({variant:a,color:d})})})]}):m.children})});d.displayName=`Button`;const f=d;export{f as Button};
1
+ import{ButtonPrimitive as e,CenteredContent as t,HiddenContent as n,LeftIcon as r,RightIcon as i}from"./Button.styles.js";import{getLoadingColor as a}from"./Button.utils.js";import{TOKEN_MAPPINGS as o}from"./tokens/tokens.js";import{DotProgress as s}from"@equinor/eds-core-react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import{createLink as d}from"@tanstack/react-router";const f=({label:d,variant:f=`filled`,color:p=`primary`,leadingIcon:m,trailingIcon:h,fullWidth:g=!1,loading:_=!1,onClick:v,...y})=>{let b=o[p][f],x=[m,h].filter(Boolean).length;return l(e,{$tokens:b,$fullWidth:g,onClick:_?void 0:v,...y,children:_?u(c,{children:[l(n,{style:{marginLeft:x*12,marginRight:x*12},children:d}),l(t,{children:l(s,{color:a({color:p,variant:f})})})]}):u(c,{children:[m&&l(r,{data:m}),l(`span`,{children:d}),h&&l(i,{data:h})]})})},p=d(f),m=e=>!(`to`in e),h=(e=>m(e)?l(f,{...e,as:`button`,type:e.type??`button`}):l(p,{...e,as:`a`}));export{h as Button};
@@ -0,0 +1,88 @@
1
+ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../atoms/style/spacings.js";import{shape as n}from"../../atoms/style/index.js";import{typographyTemplate as r}from"../../node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.js";import{Icon as i}from"@equinor/eds-core-react";import{css as a,styled as o}from"styled-components";const s=e=>`borderColor`in e?e.borderColor:e.backgroundColor,c=o.button`
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ height: ${n.button.minHeight};
6
+ min-width: fit-content;
7
+
8
+ //has to be set before color to not override the color tokens
9
+ ${r(e.typography.navigation.button)}
10
+
11
+ background: ${({$tokens:e})=>e.backgroundColor};
12
+ color: ${({$tokens:e})=>e.color};
13
+ border: 1px solid ${e=>s(e.$tokens)};
14
+
15
+ box-sizing: border-box;
16
+ margin: 0;
17
+ padding: 5px 7px;
18
+ border-radius: ${n.button.borderRadius};
19
+ text-decoration: none;
20
+ position: relative;
21
+ cursor: pointer;
22
+
23
+ > span {
24
+ padding: ${t.x_small};
25
+ text-align: center;
26
+ }
27
+
28
+ svg {
29
+ justify-self: center;
30
+ ${e=>e.$fullWidth&&a`
31
+ position: absolute;
32
+ margin: 0 ${t.small};
33
+ `}
34
+ }
35
+
36
+ &::after {
37
+ position: absolute;
38
+ content: '';
39
+ }
40
+
41
+ &:hover {
42
+ background: ${({$tokens:e})=>e.hover.backgroundColor};
43
+ color: ${({$tokens:e})=>e.hover.color};
44
+ border: 1px solid ${e=>s(e.$tokens.hover)};
45
+ }
46
+
47
+ &:active {
48
+ background: ${({$tokens:e})=>e.pressed.backgroundColor};
49
+ color: ${({$tokens:e})=>e.pressed.color};
50
+ border: 1px solid ${e=>s(e.$tokens.pressed)};
51
+ }
52
+
53
+ &:focus {
54
+ outline: none;
55
+ }
56
+
57
+ &:focus-visible {
58
+ outline: 1px dashed ${({$tokens:e})=>e.outlineColor};
59
+ outline-offset: 3px;
60
+ }
61
+
62
+ &::-moz-focus-inner {
63
+ border: 0;
64
+ }
65
+
66
+ &:disabled,
67
+ &[aria-disabled='true'] {
68
+ cursor: not-allowed;
69
+ background: ${({$tokens:e})=>e.disabled.backgroundColor};
70
+ color: ${({$tokens:e})=>e.disabled.color};
71
+ border: 1px solid ${e=>s(e.$tokens.disabled)};
72
+ }
73
+ `,l=o.span`
74
+ opacity: 0;
75
+ visibility: hidden;
76
+ `,u=o.span`
77
+ left: 0;
78
+ position: absolute;
79
+ width: 100%;
80
+ height: 100%;
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ `,d=o(i)`
85
+ left: 0;
86
+ `,f=o(i)`
87
+ right: 0;
88
+ `;export{c as ButtonPrimitive,u as CenteredContent,l as HiddenContent,d as LeftIcon,f as RightIcon,s as resolveBorderColor};
@@ -1 +1 @@
1
- function e({variant:e,color:t}){return e===void 0||e===`contained`||e===`contained_icon`||t===`danger`&&e===`ghost_icon`?`neutral`:t===`danger`&&!e.includes(`icon`)?`tertiary`:`primary`}export{e as variantAndColorToProgressColor};
1
+ const e=({color:e,variant:t})=>t===`filled`?`neutral`:e===`danger`?`tertiary`:`primary`;export{e as getLoadingColor};
@@ -0,0 +1,17 @@
1
+ import { CommonButtonProps } from "../types.js";
2
+ import { FC } from "react";
3
+ import { IconData } from "@equinor/eds-icons";
4
+ import { LinkComponent, LinkComponentProps } from "@tanstack/react-router";
5
+
6
+ //#region src/molecules/Button/IconButton/IconButton.d.ts
7
+ type Shape = 'circular' | 'square';
8
+ type BaseIconButtonProps = {
9
+ icon: IconData;
10
+ shape?: Shape;
11
+ } & CommonButtonProps;
12
+ type IconButtonProps = LinkComponentProps<typeof BaseIconButton> | BaseIconButtonProps;
13
+ declare const BaseIconButton: FC<BaseIconButtonProps>;
14
+ type ButtonComponent = LinkComponent<typeof BaseIconButton> & FC<BaseIconButtonProps>;
15
+ declare const IconButton: ButtonComponent;
16
+ //#endregion
17
+ export { IconButton, IconButtonProps };
@@ -0,0 +1 @@
1
+ import{getLoadingColor as e}from"../Button.utils.js";import{TOKEN_MAPPINGS as t}from"../tokens/tokens.js";import{IconButtonWrapper as n,StyledCircularProgress as r}from"./IconButton.styles.js";import{Icon as i}from"@equinor/eds-core-react";import{Fragment as a,jsx as o}from"react/jsx-runtime";import{createLink as s}from"@tanstack/react-router";const c=({icon:s,variant:c=`filled`,color:l=`primary`,loading:u=!1,shape:d=`circular`,onClick:f,...p})=>{let m=t[l][c];return o(n,{$shape:d,$tokens:m,onClick:u?void 0:f,...p,children:u?o(a,{children:o(r,{size:16,$isTertiary:e({color:l,variant:c})===`tertiary`,color:e({color:l,variant:c})})}):o(i,{data:s})})},l=s(c),u=e=>!(`to`in e),d=(e=>u(e)?o(c,{...e,as:`button`,type:e.type??`button`}):o(l,{...e,as:`a`}));export{d as IconButton};
@@ -0,0 +1,69 @@
1
+ import{colors as e}from"../../../atoms/style/colors.js";import{shape as t}from"../../../atoms/style/index.js";import{ButtonPrimitive as n,resolveBorderColor as r}from"../Button.styles.js";import{CircularProgress as i}from"@equinor/eds-core-react";import a,{css as o}from"styled-components";const s=a(n)`
2
+ padding: 5px;
3
+ /*
4
+ * Outer footprint is always 36x36 (= shape.button.minHeight) so that
5
+ * circular, square and regular buttons align perfectly when placed in
6
+ * the same 36px-tall container.
7
+ *
8
+ * For the circular shape, the visible 40x40 circle is rendered via a
9
+ * ::before pseudo-element that overflows symmetrically by 2px on each
10
+ * side, matching the Figma spec (inner 40x40 layer / outer 36x36 frame).
11
+ */
12
+ height: ${t.button.minHeight};
13
+ width: ${t.button.minHeight};
14
+
15
+ ${({$shape:e,$tokens:n})=>e===`circular`?o`
16
+ border-radius: ${t.icon_button.borderRadius};
17
+ background: transparent;
18
+ border-color: transparent;
19
+ overflow: visible;
20
+ isolation: isolate;
21
+ &::before {
22
+ content: '';
23
+ position: absolute;
24
+ inset: -3px; // -1px border + 2px overflow
25
+ border-radius: ${t.icon_button.borderRadius};
26
+ background: ${n.backgroundColor};
27
+ border: 1px solid ${r(n)};
28
+ box-sizing: border-box;
29
+ z-index: -1;
30
+ transition:
31
+ background-color 150ms ease,
32
+ border-color 150ms ease;
33
+ }
34
+ &:hover,
35
+ &:active {
36
+ background: transparent;
37
+ border-color: transparent;
38
+ }
39
+ &:hover::before {
40
+ background: ${n.hover.backgroundColor};
41
+ border-color: ${r(n.hover)};
42
+ }
43
+ &:active::before {
44
+ background: ${n.pressed.backgroundColor};
45
+ border-color: ${r(n.pressed)};
46
+ }
47
+ &:disabled,
48
+ &[aria-disabled='true'] {
49
+ background: transparent;
50
+ border-color: transparent;
51
+ &::before {
52
+ background: ${n.disabled.backgroundColor};
53
+ border-color: ${r(n.disabled)};
54
+ }
55
+ }
56
+ `:o`
57
+ border-radius: ${t.button.borderRadius};
58
+ `}
59
+ `,c=a(i)`
60
+ ${t=>t.$isTertiary&&o`
61
+ & circle:first-child {
62
+ stroke: ${e.dataviz.lightpink.lighter};
63
+ }
64
+
65
+ & circle:last-child {
66
+ stroke: ${e.interactive.danger__resting.rgba};
67
+ }
68
+ `}
69
+ `;export{s as IconButtonWrapper,c as StyledCircularProgress};
@@ -0,0 +1 @@
1
+ import{colors as e}from"../../../atoms/style/colors.js";import{DISABLED_TOKENS as t}from"./disabled.js";const n={filled:{backgroundColor:e.interactive.danger__resting.rgba,color:e.text.static_icons__primary_white.rgba,outlineColor:e.interactive.danger__resting.rgba,hover:{backgroundColor:e.interactive.danger__hover.rgba,color:e.text.static_icons__primary_white.rgba},pressed:{backgroundColor:e.interactive.danger__hover.rgba,color:e.text.static_icons__primary_white.rgba},disabled:t.filled},outlined:{backgroundColor:e.ui.background__default.rgba,color:e.interactive.danger__resting.rgba,borderColor:e.interactive.danger__resting.rgba,outlineColor:e.interactive.danger__resting.rgba,hover:{backgroundColor:e.interactive.danger__highlight.rgba,color:e.interactive.danger__hover.rgba,borderColor:e.interactive.danger__hover.rgba},pressed:{backgroundColor:e.ui.background__default.rgba,color:e.interactive.danger__hover.rgba,borderColor:e.interactive.danger__hover.rgba},disabled:t.outlined},ghost:{backgroundColor:`transparent`,color:e.interactive.danger__resting.rgba,outlineColor:e.interactive.danger__resting.rgba,hover:{backgroundColor:e.interactive.danger__highlight.rgba,color:e.interactive.danger__hover.rgba},pressed:{backgroundColor:`transparent`,color:e.interactive.danger__hover.rgba,borderColor:e.interactive.danger__hover.rgba},disabled:t.ghost}};export{n as DANGER_TOKENS};
@@ -0,0 +1 @@
1
+ import{colors as e}from"../../../atoms/style/colors.js";const t={filled:{backgroundColor:e.interactive.disabled__fill.rgba,color:e.interactive.disabled__text.rgba},outlined:{backgroundColor:e.ui.background__default.rgba,color:e.interactive.disabled__text.rgba,borderColor:e.interactive.disabled__text.rgba},ghost:{backgroundColor:`transparent`,color:e.interactive.disabled__text.rgba}};export{t as DISABLED_TOKENS};
@@ -0,0 +1 @@
1
+ import{colors as e}from"../../../atoms/style/colors.js";import{DISABLED_TOKENS as t}from"./disabled.js";const n={filled:{backgroundColor:e.interactive.primary__resting.rgba,color:e.text.static_icons__primary_white.rgba,outlineColor:e.interactive.primary__resting.rgba,hover:{backgroundColor:e.interactive.primary__hover.rgba,color:e.text.static_icons__primary_white.rgba,borderColor:e.interactive.primary__hover.rgba},pressed:{backgroundColor:e.interactive.primary__pressed.rgba,color:e.text.static_icons__primary_white.rgba},disabled:t.filled},outlined:{backgroundColor:e.ui.background__default.rgba,color:e.interactive.primary__resting.rgba,borderColor:e.interactive.primary__resting.rgba,outlineColor:e.interactive.primary__resting.rgba,hover:{backgroundColor:e.interactive.primary__hover_alt.rgba,color:e.interactive.primary__hover.rgba,borderColor:e.interactive.primary__hover.rgba},pressed:{backgroundColor:e.ui.background__default.rgba,color:e.interactive.primary__pressed.rgba,borderColor:e.interactive.primary__pressed.rgba},disabled:t.outlined},ghost:{backgroundColor:`transparent`,color:e.interactive.primary__resting.rgba,outlineColor:e.interactive.primary__resting.rgba,hover:{backgroundColor:e.interactive.primary__hover_alt.rgba,color:e.interactive.primary__hover.rgba,borderColor:e.interactive.primary__hover_alt.rgba},pressed:{backgroundColor:`transparent`,color:e.interactive.primary__pressed.rgba,borderColor:e.interactive.primary__pressed.rgba},disabled:t.ghost}};export{n as PRIMARY_TOKENS};
@@ -0,0 +1 @@
1
+ import{DANGER_TOKENS as e}from"./danger.js";import{PRIMARY_TOKENS as t}from"./primary.js";const n={primary:t,danger:e};export{n as TOKEN_MAPPINGS};
@@ -0,0 +1,15 @@
1
+ import { ButtonHTMLAttributes, ElementType, RefObject } from "react";
2
+
3
+ //#region src/molecules/Button/types.d.ts
4
+ type ButtonVariants = 'filled' | 'outlined' | 'ghost';
5
+ type ButtonColors = 'primary' | 'danger';
6
+ type CommonButtonProps = {
7
+ color?: ButtonColors;
8
+ variant?: ButtonVariants;
9
+ loading?: boolean;
10
+ disabled?: boolean;
11
+ ref?: RefObject<HTMLButtonElement>;
12
+ as?: ElementType;
13
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
14
+ //#endregion
15
+ export { ButtonColors, ButtonVariants, CommonButtonProps };
@@ -1,4 +1,4 @@
1
- import * as react6 from "react";
1
+ import * as react8 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: react6.ForwardRefExoticComponent<ChipProps & react6.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
28
+ declare const Chip: react8.ForwardRefExoticComponent<ChipProps & react8.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 react10 from "react";
2
+ import * as react6 from "react";
3
3
  import { DatePickerProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/DatePicker/DatePicker.d.ts
@@ -9,11 +9,11 @@ type DatePickerProps$1 = Omit<DatePickerProps, 'variant' | 'defaultValue'> & {
9
9
  meta?: string;
10
10
  loading?: boolean;
11
11
  };
12
- declare const DatePicker$1: react10.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
12
+ declare const DatePicker$1: react6.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
13
13
  variant?: Variants;
14
14
  defaultValue?: Date | undefined;
15
15
  meta?: string;
16
16
  loading?: boolean;
17
- } & react10.RefAttributes<HTMLDivElement>>;
17
+ } & react6.RefAttributes<HTMLDivElement>>;
18
18
  //#endregion
19
19
  export { DatePicker$1 as DatePicker, DatePickerProps$1 as DatePickerProps };
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react8 from "react";
2
+ import * as react10 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: react8.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
11
+ declare const DateRangePicker$1: react10.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react8.RefAttributes<HTMLDivElement>>;
15
+ } & react10.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
@@ -1,6 +1,7 @@
1
- import * as react14 from "react";
1
+ import { ButtonColors, ButtonVariants } from "../Button/types.js";
2
+ import * as react12 from "react";
2
3
  import { ReactNode } from "react";
3
- import { ButtonProps, DialogProps } from "@equinor/eds-core-react";
4
+ import { DialogProps } from "@equinor/eds-core-react";
4
5
  import { IconData } from "@equinor/eds-icons";
5
6
 
6
7
  //#region src/molecules/Dialog/Dialog.d.ts
@@ -17,8 +18,8 @@ interface DialogAction {
17
18
  position?: 'left' | 'center' | 'right';
18
19
  onClick: () => void;
19
20
  text: string;
20
- variant?: ButtonProps['variant'];
21
- color?: ButtonProps['color'];
21
+ variant?: ButtonVariants;
22
+ color?: ButtonColors;
22
23
  icon?: IconData;
23
24
  disabled?: boolean | string;
24
25
  isLoading?: boolean;
@@ -51,6 +52,6 @@ interface DialogProps$1 extends Omit<DialogProps, 'title'> {
51
52
  * @param additionalInfo - Defaults to empty, and won't show the additional info button
52
53
  * Also inherits props from EDS dialog
53
54
  */
54
- declare const Dialog$1: react14.ForwardRefExoticComponent<DialogProps$1 & react14.RefAttributes<HTMLDivElement>>;
55
+ declare const Dialog$1: react12.ForwardRefExoticComponent<DialogProps$1 & react12.RefAttributes<HTMLDivElement>>;
55
56
  //#endregion
56
57
  export { Dialog$1 as Dialog, DialogAction, DialogProps$1 as DialogProps };
@@ -1 +1 @@
1
- import{Button as e}from"../Button/Button.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{Icon as n}from"@equinor/eds-core-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({text:a,variant:o,color:s,onClick:c,icon:l,disabled:u,isLoading:d=!1})=>r(t,{title:typeof u==`string`?u:``,children:i(e,{variant:o,color:s,onClick:c,disabled:u!==void 0&&!!u,loading:d,children:[l&&r(n,{data:l}),a]})});export{a as DialogAction};
1
+ import{Button as e}from"../Button/Button.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{jsx as n}from"react/jsx-runtime";const r=({text:r,variant:i,color:a,onClick:o,icon:s,disabled:c,isLoading:l=!1})=>n(t,{title:typeof c==`string`?c:``,children:n(e,{leadingIcon:s,variant:i,color:a,onClick:o,disabled:c!==void 0&&!!c,loading:l,label:r})});export{r as DialogAction};
@@ -1,11 +1,11 @@
1
1
  import { SizeIconProps } from "../../atoms/types/Icon.js";
2
- import * as react12 from "react";
2
+ import * as react14 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: react12.ForwardRefExoticComponent<EquinorLogoProps & react12.RefAttributes<SVGSVGElement>>;
9
+ declare const EquinorLogo: react14.ForwardRefExoticComponent<EquinorLogoProps & react14.RefAttributes<SVGSVGElement>>;
10
10
  //#endregion
11
11
  export { EquinorLogo, EquinorLogoProps };
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{OptionalTooltip as n}from"../OptionalTooltip/OptionalTooltip.js";import{DividerRow as r,MediumUploadWrapper as i,SmallUploadWrapper as a,UploadWrapper as o}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as s}from"./FileUploadArea.constants.js";import{UploadIllustration as c}from"./UploadIllustration.js";import{useEffect as l,useMemo as u,useState as d}from"react";import{Icon as f,Typography as p}from"@equinor/eds-core-react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{folder as g}from"@equinor/eds-icons";import{useDropzone as _}from"react-dropzone";const v=({size:v=`large`,...y})=>{let{getRootProps:b,getInputProps:x,isDragActive:S}=_({...y}),[C,w]=d(!1);l(()=>{let e=e=>{e.preventDefault(),C||w(!0)},t=e=>{(e.clientX===0||e.clientY===0||e.clientX===window.innerWidth||e.clientY===window.innerHeight)&&w(!1)},n=()=>{w(!1)},r=()=>{w(!1)};return window.addEventListener(`dragover`,e),window.addEventListener(`dragleave`,t),window.addEventListener(`drop`,n),window.addEventListener(`dragend`,r),()=>{window.removeEventListener(`dragover`,e),window.removeEventListener(`dragleave`,t),window.removeEventListener(`drop`,n),window.removeEventListener(`dragend`,r)}},[C]),l(()=>{if(C){if(!document.getElementById(`file-upload-scrim`)){let t=document.createElement(`div`);t.id=s,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.backgroundColor=e.ui.background__scrim.rgba,t.style.zIndex=`9999`,t.style.pointerEvents=`none`,window.document.body.appendChild(t)}}else{let e=document.getElementById(s);e!==null&&e.remove()}},[C]);let T=u(()=>{if(y.accept)return Object.values(y.accept).join(`, `)},[y.accept]);return v==`small`?h(a,{...b(),style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(c,{}),m(p,{variant:`meta`,children:`Upload file`}),y.accept&&m(n,{title:`Supported filetypes: ${T}`,children:h(p,{variant:`meta`,children:[`(`,T,`)`]})})]}):v==`medium`?h(i,{...b(),style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(c,{}),h(`section`,{children:[m(p,{variant:`button`,group:`navigation`,children:`Drag files here`}),y.accept&&m(n,{title:`Supported filetypes: ${T}`,children:m(p,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:T})})]}),h(r,{children:[m(`hr`,{}),m(p,{variant:`meta`,children:`OR`}),m(`hr`,{})]}),h(t,{variant:`ghost`,onClick:b().onClick,children:[m(f,{data:g}),`Browse files`]})]}):h(o,{...b(),onClick:void 0,style:{background:S?e.interactive.primary__hover_alt.rgba:void 0},children:[m(`input`,{"data-testid":`file-upload-area-input`,...x()}),m(c,{}),h(`section`,{children:[m(p,{variant:`button`,group:`navigation`,children:`Drag files here to upload.`}),y.accept&&h(p,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:[`Supported filetypes: `,T]})]}),h(r,{children:[m(`hr`,{}),m(p,{variant:`button`,group:`navigation`,children:`OR`}),m(`hr`,{})]}),h(t,{variant:`ghost`,onClick:b().onClick,children:[m(f,{data:g}),`Browse files`]})]})};export{v as FileUploadArea};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{Button as t}from"../Button/Button.js";import{OptionalTooltip as n}from"../OptionalTooltip/OptionalTooltip.js";import{DividerRow as r,MediumUploadWrapper as i,SmallUploadWrapper as a,UploadWrapper as o}from"./FileUploadArea.styles.js";import{FILE_UPLOAD_SCRIM_ID as s}from"./FileUploadArea.constants.js";import{UploadIllustration as c}from"./UploadIllustration.js";import{useEffect as l,useMemo as u,useState as d}from"react";import{Typography as f}from"@equinor/eds-core-react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{folder as h}from"@equinor/eds-icons";import{useDropzone as g}from"react-dropzone";const _=({size:_=`large`,...v})=>{let{getRootProps:y,getInputProps:b,isDragActive:x}=g({...v}),[S,C]=d(!1);l(()=>{let e=e=>{e.preventDefault(),S||C(!0)},t=e=>{(e.clientX===0||e.clientY===0||e.clientX===window.innerWidth||e.clientY===window.innerHeight)&&C(!1)},n=()=>{C(!1)},r=()=>{C(!1)};return window.addEventListener(`dragover`,e),window.addEventListener(`dragleave`,t),window.addEventListener(`drop`,n),window.addEventListener(`dragend`,r),()=>{window.removeEventListener(`dragover`,e),window.removeEventListener(`dragleave`,t),window.removeEventListener(`drop`,n),window.removeEventListener(`dragend`,r)}},[S]),l(()=>{if(S){if(!document.getElementById(`file-upload-scrim`)){let t=document.createElement(`div`);t.id=s,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.backgroundColor=e.ui.background__scrim.rgba,t.style.zIndex=`9999`,t.style.pointerEvents=`none`,window.document.body.appendChild(t)}}else{let e=document.getElementById(s);e!==null&&e.remove()}},[S]);let w=u(()=>{if(v.accept)return Object.values(v.accept).join(`, `)},[v.accept]);return _==`small`?m(a,{...y(),style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),p(f,{variant:`meta`,children:`Upload file`}),v.accept&&p(n,{title:`Supported filetypes: ${w}`,children:m(f,{variant:`meta`,children:[`(`,w,`)`]})})]}):_==`medium`?m(i,{...y(),style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),m(`section`,{children:[p(f,{variant:`button`,group:`navigation`,children:`Drag files here`}),v.accept&&p(n,{title:`Supported filetypes: ${w}`,children:p(f,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:w})})]}),m(r,{children:[p(`hr`,{}),p(f,{variant:`meta`,children:`OR`}),p(`hr`,{})]}),p(t,{leadingIcon:h,variant:`ghost`,onClick:y().onClick,label:`Browse files`})]}):m(o,{...y(),onClick:void 0,style:{background:x?e.interactive.primary__hover_alt.rgba:void 0},children:[p(`input`,{"data-testid":`file-upload-area-input`,...b()}),p(c,{}),m(`section`,{children:[p(f,{variant:`button`,group:`navigation`,children:`Drag files here to upload.`}),v.accept&&m(f,{group:`paragraph`,variant:`meta`,color:e.text.static_icons__tertiary.rgba,children:[`Supported filetypes: `,w]})]}),m(r,{children:[p(`hr`,{}),p(f,{variant:`button`,group:`navigation`,children:`OR`}),p(`hr`,{})]}),p(t,{leadingIcon:h,label:`Browse files`,variant:`ghost`,onClick:y().onClick})]})};export{_ as FileUploadArea};
@@ -1,5 +1,5 @@
1
1
  import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
2
- import * as react16 from "react";
2
+ import * as react20 from "react";
3
3
  import { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
4
4
  import { IconData } from "@equinor/eds-icons";
5
5
 
@@ -49,6 +49,6 @@ type IconCellProps = ScribbledOutProps | RegularIconCellProps;
49
49
  * @param {React.Ref<HTMLButtonElement>} ref - Ref forwarded to the inner button element.
50
50
  * @returns {JSX.Element} The rendered IconCell.
51
51
  */
52
- declare const IconCell: react16.ForwardRefExoticComponent<IconCellProps & react16.RefAttributes<HTMLButtonElement>>;
52
+ declare const IconCell: react20.ForwardRefExoticComponent<IconCellProps & react20.RefAttributes<HTMLButtonElement>>;
53
53
  //#endregion
54
54
  export { IconCell, IconCellProps };
@@ -1,4 +1,4 @@
1
- import * as react157 from "react";
1
+ import * as react153 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: react157.ForwardRefExoticComponent<ListItemProps & react157.RefAttributes<HTMLButtonElement>>;
18
+ declare const ListItem: react153.ForwardRefExoticComponent<ListItemProps & react153.RefAttributes<HTMLButtonElement>>;
19
19
  //#endregion
20
20
  export { ListItem, ListItemProps };