@equinor/amplify-component-lib 13.2.4 → 13.2.5-beta.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 (120) hide show
  1. package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
  2. package/dist/atoms/hooks/useLocalStorage.js +1 -1
  3. package/dist/atoms/hooks/useSelect.d.ts +3 -3
  4. package/dist/atoms/index.d.ts +1 -1
  5. package/dist/atoms/index.js +1 -1
  6. package/dist/atoms/style/index.d.ts +1 -1
  7. package/dist/atoms/style/index.js +1 -1
  8. package/dist/atoms/utils/auth_environment.d.ts +1 -0
  9. package/dist/atoms/utils/auth_environment.js +1 -1
  10. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +3 -3
  11. package/dist/deprecated/IconToggleButton.d.ts +3 -3
  12. package/dist/deprecated/OldStepper/OldStepLine.js +1 -1
  13. package/dist/deprecated/OldStepper/OldStepper.d.ts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/molecules/AnimatedCheckmark/AnimatedCheckmark.d.ts +1 -1
  16. package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
  17. package/dist/molecules/Badge/Badge.d.ts +1 -1
  18. package/dist/molecules/Button/Button.js +1 -1
  19. package/dist/molecules/Button/IconButton/IconButton.js +1 -1
  20. package/dist/molecules/Chip/Chip.d.ts +3 -3
  21. package/dist/molecules/Chip/Chip.styles.js +1 -1
  22. package/dist/molecules/Confetti/Confetti.types.d.ts +1 -1
  23. package/dist/molecules/Confetti/utils/seasonalColors.js +1 -1
  24. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  25. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  26. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  27. package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
  28. package/dist/molecules/FileProgress/FileProgress.types.d.ts +1 -1
  29. package/dist/molecules/IconCell/IconCell.d.ts +3 -3
  30. package/dist/molecules/IconCell/IconCell.styles.js +3 -3
  31. package/dist/molecules/IconCell/IconCell.utils.js +1 -1
  32. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  33. package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +3 -3
  34. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  35. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  36. package/dist/molecules/ProfileAvatar/ProfileAvatar.js +1 -1
  37. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
  38. package/dist/molecules/RichTextEditor/custom-extensions/AmplifyKit.js +1 -1
  39. package/dist/molecules/RichTextEditor/index.d.ts +7 -7
  40. package/dist/molecules/RichTextEditor/index.js +1 -1
  41. package/dist/molecules/Search/Search.d.ts +2 -2
  42. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  43. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
  44. package/dist/molecules/Select/Select.js +1 -1
  45. package/dist/molecules/Select/Select.styles.d.ts +7 -7
  46. package/dist/molecules/Select/Select.styles.js +31 -13
  47. package/dist/molecules/Select/Select.types.d.ts +1 -1
  48. package/dist/molecules/Select/SelectMenuItem.js +1 -1
  49. package/dist/molecules/Select/SelectMenuItem.utils.js +1 -1
  50. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  51. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  52. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  53. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  54. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -4
  55. package/dist/molecules/Stepper/Step/Step.js +1 -1
  56. package/dist/molecules/Stepper/StepLine.js +1 -1
  57. package/dist/molecules/Stepper/Stepper.js +1 -1
  58. package/dist/molecules/Tabs/Tab.styles.js +4 -0
  59. package/dist/molecules/Tabs/Tabs.d.ts +2 -2
  60. package/dist/molecules/Waves/Waves.d.ts +1 -1
  61. package/dist/molecules/index.d.ts +1 -1
  62. package/dist/molecules/index.js +1 -1
  63. package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
  64. package/dist/organisms/Faq/Faq.d.ts +1 -1
  65. package/dist/organisms/Faq/Faq.utils.js +1 -1
  66. package/dist/organisms/FieldSelector/ChangingField.js +1 -1
  67. package/dist/organisms/Filter/AutoCompleteText.js +1 -1
  68. package/dist/organisms/Filter/Filter.d.ts +2 -2
  69. package/dist/organisms/Filter/Filter.types.d.ts +1 -1
  70. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  71. package/dist/organisms/Filter/SortMenu.d.ts +2 -2
  72. package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
  73. package/dist/organisms/SideBar/MenuItem/MenuItem.d.ts +1 -1
  74. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  75. package/dist/organisms/SideBar/index.d.ts +1 -1
  76. package/dist/organisms/Status/Action.d.ts +2 -2
  77. package/dist/organisms/Status/Description.d.ts +2 -2
  78. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  79. package/dist/organisms/Status/Title.d.ts +2 -2
  80. package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
  81. package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
  82. package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
  83. package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
  84. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  85. package/dist/organisms/Status/index.d.ts +1 -1
  86. package/dist/organisms/Template/Template.d.ts +5 -5
  87. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  88. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  89. package/dist/organisms/ToggleGroup/ToggleGroupOption.js +1 -1
  90. package/dist/organisms/TopBar/Account/Account.d.ts +1 -1
  91. package/dist/organisms/TopBar/Account/AccountButton.js +1 -1
  92. package/dist/organisms/TopBar/Actions.d.ts +2 -2
  93. package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +3 -3
  94. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -4
  95. package/dist/organisms/TopBar/Guidelines/Guidelines.d.ts +1 -1
  96. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  97. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/Notifications.types.d.ts +1 -1
  98. package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +1 -1
  99. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +2 -2
  100. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +1 -1
  101. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +1 -1
  102. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +1 -1
  103. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +1 -1
  104. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
  105. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +1 -1
  106. package/dist/organisms/TopBar/Resources/Resources.d.ts +1 -1
  107. package/dist/organisms/TopBar/Tutorials/TutorialItem.js +1 -1
  108. package/dist/organisms/TopBar/index.d.ts +1 -1
  109. package/dist/organisms/index.d.ts +1 -1
  110. package/dist/organisms/index.js +1 -1
  111. package/dist/providers/AuthProvider/AuthProvider.d.ts +15 -3
  112. package/dist/providers/AuthProvider/AuthProvider.js +1 -1
  113. package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
  114. package/dist/providers/LoadingProvider.js +1 -1
  115. package/dist/providers/SnackbarProvider/SnackbarProvider.d.ts +1 -1
  116. package/dist/providers/StepperProvider.d.ts +1 -1
  117. package/dist/providers/StepperProvider.js +1 -1
  118. package/dist/providers/TableOfContentsProvider.d.ts +1 -1
  119. package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +1 -1
  120. package/package.json +9 -9
@@ -1,6 +1,6 @@
1
- import * as react223 from "react";
1
+ import * as react234 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, react223.Dispatch<react223.SetStateAction<T>>, () => void];
4
+ declare const useLocalStorage: <T>(key: string, defaultState: T, keepAliveMs?: number) => readonly [T, react234.Dispatch<react234.SetStateAction<T>>, () => void];
5
5
  //#endregion
6
6
  export { useLocalStorage };
@@ -1 +1 @@
1
- import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import{debounce as i}from"lodash";const a=`-last-updated`,o=(e,t,n)=>{let r=localStorage.getItem(e),i=localStorage.getItem(e+a);return r&&(!n||i&&Number(i)+n>new Date().getTime())?JSON.parse(r):t},s=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},c=(c,l,u)=>{let d=n(!0),[f,p]=r(o(c,l,u)),m=e(()=>{p(l),localStorage.removeItem(c),localStorage.removeItem(c+a)},[p,l,c]),h=e(i((e,t)=>{s(e,t),s(e+a,new Date().getTime())},1e3),[]);return t(()=>{if(d.current){d.current=!1;return}f==null?m():h(c,f)},[f,m,h,c]),[f,p,m]};export{c as useLocalStorage};
1
+ import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import{debounce as i}from"lodash";const a=`-last-updated`,o=(e,t,n)=>{let r=localStorage.getItem(e),i=localStorage.getItem(e+a);return r&&(!n||i&&Number(i)+n>new Date().getTime())?JSON.parse(r):t},s=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},c=(c,l,u)=>{let d=n(!0),[f,p]=r(o(c,l,u)),m=e(()=>{p(l),localStorage.removeItem(c),localStorage.removeItem(c+a)},[p,l,c]),h=e(i((e,t)=>{s(e,t),s(e+a,new Date().getTime())},1e3),[]);return t(()=>{if(d.current){d.current=!1;return}f==null?m():h(c,f)},[f,m,h,c]),[f,p,m]};export{a as LAST_UPDATED_KEY_SUFFIX,o as getLocalStorage,s as updateLocalStorage,c as 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 react225 from "react";
3
+ import * as react232 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: react225.RefObject<HTMLInputElement | null>;
20
- itemRefs: react225.RefObject<(HTMLButtonElement | null)[]>;
19
+ searchRef: react232.RefObject<HTMLInputElement | null>;
20
+ itemRefs: react232.RefObject<(HTMLButtonElement | null)[]>;
21
21
  selectedValues: T[];
22
22
  open: boolean;
23
23
  tryingToRemoveItem: T | undefined;
@@ -56,4 +56,4 @@ import { getVariantIcon } from "./utils/forms.js";
56
56
  */
57
57
  declare const style: typeof index_d_exports;
58
58
  //#endregion
59
- export { style };
59
+ export { AppIconProps, BasicSideBarMenuItem, ElementItem, Empty, EnvironmentType, ErrorContentType, ErrorType, FeaturesProps, Field, GuidelineItem, IMG_WITH_ALT, IMG_WITH_SRC_AND_ALT, IconItem, SideBarMenuItem, SideBarMenuItemWithItems, SizeIconProps, SpacingsMode, Theme, TutorialHighlight, amplify_aml, amplify_arrow_up_down, amplify_branch, amplify_calculator, amplify_drag_handle, 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, 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 };
@@ -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"./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
+ import{EnvironmentType as e}from"./enums/Environment.js";import{auth as t,environment as n}from"./utils/auth_environment.js";import{animation as r}from"./style/animation.js";import{colors as i}from"./style/colors.js";import{spacings as a}from"./style/spacings.js";import{elevation as o,shape as s,style_exports as c,typography as l}from"./style/index.js";import{formatLatLng as u,formatUtm as d}from"./utils/coordinate.js";import{formatDate as f,formatDateTime as p,formatRelativeDateTime as m,isBetweenDates as h}from"./utils/date.js";import{exportComponent as g}from"./utils/export.js";import{setupIcons as _}from"./utils/favicon.js";import{convertLatLngToUtm as v,convertUtmToLatLng as y,degrees2radians as b,distanceLatLng as x,utmProjection as S}from"./utils/map.js";import{defaultQueryOptions as C}from"./utils/reactquery.js";import{IMG_WITH_ALT as w,IMG_WITH_SRC_AND_ALT as T,cleanRichTextValue as E,extractImageUrls as D,getFeatures as O,getImagesFromRichText as k,imageToB64 as A}from"./utils/richtext.js";import{formatBytes as j,formatDataSize as M,formatKiloBytes as N}from"./utils/size.js";import{sortByDate as P,sortByWellboreName as F}from"./utils/sort.js";import{Empty as I,capitalize as L}from"./utils/string.js";import{isValidUrl as R}from"./utils/url.js";import{getHighlightElementBoundingBox as z,highlightTutorialElementID as B}from"./utils/tutorials.js";import{getVariantIcon as V}from"./utils/forms.js";import{useAuth as H}from"../providers/AuthProvider/AuthProvider.js";import{useSideBar as U}from"../providers/SideBarProvider.js";import{useSnackbar as W}from"../providers/SnackbarProvider/SnackbarProvider.js";import{useOnScreenMultiple as G}from"./hooks/useOnScreenMultiple.js";import{useTableOfContents as K}from"../providers/TableOfContentsProvider.js";import{useLocalStorage as q}from"./hooks/useLocalStorage.js";import{useAmplifyKit as J}from"./hooks/useAmplifyKit.js";import{useDebounce as Y}from"./hooks/useDebounce.js";import{useFakeProgress as X}from"./hooks/useFakeProgress.js";import{usePrevious as Z}from"./hooks/usePrevious.js";import{useSelect as Q}from"./hooks/useSelect.js";import{useStatusNavigation as $}from"./hooks/useStatusNavigation.js";import{useNotification as ee}from"../organisms/TopBar/Notifications/NotificationProvider.js";import{useStepper as te}from"../providers/StepperProvider.js";import{Theme as ne}from"./enums/Theme.js";import{useThemeProvider as re}from"../providers/ThemeProvider/ThemeProvider.js";import{usePrefetchRichTextImages as ie}from"./hooks/usePrefetchRichTextImages.js";import{useFaqsInApplication as ae}from"./hooks/useFaqsInApplication.js";import{ErrorType as oe}from"./enums/Errors.js";import{SpacingsMode as se}from"./enums/SpacingsMode.js";import{amplify_h1 as ce,amplify_h2 as le,amplify_h3 as ue,amplify_h4 as de,amplify_table_add_column_left as fe,amplify_table_add_column_right as pe,amplify_table_add_row_above as me,amplify_table_add_row_below as he,amplify_table_column_heading as ge,amplify_table_merge_cells as _e,amplify_table_remove_column as ve,amplify_table_remove_row as ye,amplify_table_row_heading as be,amplify_table_split_cell as xe}from"./icons/wysiwyg.js";import{useToasts as Se}from"../providers/ToastProvider/ToastProvider.js";import{useConfetti as Ce}from"../providers/ConfettiProvider/ConfettiProvider.js";import{amplify_failure as we,amplify_lwd as Te,amplify_success as Ee,amplify_wellbore as De,amplify_wireline as Oe,amplify_wireline_cased_hole as ke,amplify_wireline_open_hole as Ae}from"./icons/drilling.js";import{amplify_calculator as je,amplify_overlay as Me,amplify_sidebyside as Ne}from"./icons/map.js";import{amplify_aml as Pe,amplify_arrow_up_down as Fe,amplify_branch as Ie,amplify_drag_handle as Le,amplify_info_small as Re,amplify_merged as ze,amplify_overview as Be,amplify_resources as Ve,amplify_sharepoint as He,amplify_shield_person as Ue,amplify_small_portal as We,amplify_snail as Ge,amplify_sort_small as Ke,amplify_tutorials as qe}from"./icons/other.js";import{useReleaseNotes as Je}from"../providers/ReleaseNotesProvider.js";const Ye=c;export{I as Empty,e as EnvironmentType,oe as ErrorType,w as IMG_WITH_ALT,T as IMG_WITH_SRC_AND_ALT,se as SpacingsMode,ne as Theme,Pe as amplify_aml,Fe as amplify_arrow_up_down,Ie as amplify_branch,je as amplify_calculator,Le as amplify_drag_handle,we as amplify_failure,ce as amplify_h1,le as amplify_h2,ue as amplify_h3,de as amplify_h4,Re as amplify_info_small,Te as amplify_lwd,ze as amplify_merged,Me as amplify_overlay,Be as amplify_overview,Ve as amplify_resources,He as amplify_sharepoint,Ue as amplify_shield_person,Ne as amplify_sidebyside,We as amplify_small_portal,Ge as amplify_snail,Ke as amplify_sort_small,Ee as amplify_success,fe as amplify_table_add_column_left,pe as amplify_table_add_column_right,me as amplify_table_add_row_above,he as amplify_table_add_row_below,ge as amplify_table_column_heading,_e as amplify_table_merge_cells,ve as amplify_table_remove_column,ye as amplify_table_remove_row,be as amplify_table_row_heading,xe as amplify_table_split_cell,qe as amplify_tutorials,De as amplify_wellbore,Oe as amplify_wireline,ke as amplify_wireline_cased_hole,Ae as amplify_wireline_open_hole,r as animation,t as auth,L as capitalize,E 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,D as extractImageUrls,j as formatBytes,M as formatDataSize,f as formatDate,p as formatDateTime,N as formatKiloBytes,u as formatLatLng,m as formatRelativeDateTime,d as formatUtm,O as getFeatures,z as getHighlightElementBoundingBox,k as getImagesFromRichText,V as getVariantIcon,B as highlightTutorialElementID,A as imageToB64,h as isBetweenDates,R as isValidUrl,_ as setupIcons,s as shape,P as sortByDate,F as sortByWellboreName,a as spacings,Ye as style,l as typography,J as useAmplifyKit,H as useAuth,Ce as useConfetti,Y as useDebounce,X as useFakeProgress,ae as useFaqsInApplication,q as useLocalStorage,ee as useNotification,G as useOnScreenMultiple,ie as usePrefetchRichTextImages,Z as usePrevious,Je as useReleaseNotes,Q as useSelect,U as useSideBar,W as useSnackbar,$ as useStatusNavigation,te as useStepper,K as useTableOfContents,re as useThemeProvider,Se as useToasts,S as utmProjection};
@@ -553,4 +553,4 @@ declare const shape: {
553
553
  };
554
554
  };
555
555
  //#endregion
556
- export { elevation, index_d_exports, shape, typography };
556
+ export { animation, colors, elevation, index_d_exports, shape, spacings, typography };
@@ -1 +1 @@
1
- import{__exportAll as e}from"../../_virtual/_rolldown/runtime.js";import{tokens as t}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{animation as n}from"./animation.js";import{colors as r}from"./colors.js";import{spacings as i}from"./spacings.js";var a=e({animation:()=>n,colors:()=>r,elevation:()=>s,shape:()=>o,spacings:()=>i,typography:()=>c});const{shape:o,elevation:s,typography:c}=t;export{s as elevation,o as shape,a as style_exports,c as typography};
1
+ import{__exportAll as e}from"../../_virtual/_rolldown/runtime.js";import{tokens as t}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{animation as n}from"./animation.js";import{colors as r}from"./colors.js";import{spacings as i}from"./spacings.js";var a=e({animation:()=>n,colors:()=>r,elevation:()=>s,shape:()=>o,spacings:()=>i,typography:()=>c});const{shape:o,elevation:s,typography:c}=t;export{n as animation,r as colors,s as elevation,o as shape,i as spacings,a as style_exports,c as typography};
@@ -35,6 +35,7 @@ declare const auth: {
35
35
  getToken: () => Promise<string>;
36
36
  isReaderOnly: (roles: string[] | undefined) => boolean;
37
37
  isInIframe: () => boolean;
38
+ getSidFromMessage: (data: unknown) => string | undefined;
38
39
  };
39
40
  declare const environment: {
40
41
  getConfig: (param: keyof EnvVariables) => string;
@@ -1 +1 @@
1
- import"../enums/Environment.js";import{PublicClientApplication as e}from"@azure/msal-browser";const t=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],n=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!t.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},r=e=>e||n(`NAME`),i=e=>e||n(`CLIENT_ID`),a=e=>e||n(`API_URL`),o=e=>e||n(`API_SCOPE`),s=e=>e||n(`API_CLIENT_ID`),c=e=>e||n(`ENVIRONMENT_NAME`),l=e=>e||n(`SERVICE_NOW_CONFIGURATION_ITEM`),u=e=>e===void 0?!1:e===`true`,d=e=>e===void 0?[`admin`]:JSON.parse(e),f=e=>e?e.split(`;`):n(`ALLOWED_PARENT_DOMAINS`)?.split(`;`)||[],p=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function m(){let e=import.meta.env.VITE_ENVIRONMENT_NAME;return e||=n(`ENVIRONMENT_NAME`),e===`production`?`https://jsembark.equinor.com`:`https://client-amplify-portal-${e===`localhost`?`development`:e}.radix.equinor.com`}const h=m(),g={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},_=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),v={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},y={scopes:[v.OPENID,v.PROFILE,v.USER_READ]},b={scopes:[v.USER_READ]},x=e=>({scopes:[e]}),S=()=>window.self!==window.top,C=new e({auth:{clientId:i(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`}}),w=f(import.meta.env.ALLOWED_PARENT_DOMAINS);window.addEventListener(`message`,async e=>{if(w.includes(e.origin)){let t=e.data;if(t){await C.initialize();try{await C.ssoSilent({sid:t}),console.log(`postMessage successfully logged in user!`)}catch(e){console.error(`Something went wrong with postMessage`),console.error(e)}}}});const T={fetchMsGraph:_,GRAPH_SCOPES:v,GRAPH_REQUESTS_LOGIN:y,GRAPH_REQUESTS_PHOTO:b,GRAPH_REQUESTS_BACKEND:x,GRAPH_ENDPOINTS:g,msalApp:C,getToken:async()=>{if(u(import.meta.env.VITE_IS_MOCK))return``;let e=C.getActiveAccount(),t=C.getAllAccounts();return!e&&t.length===0?``:(await C.acquireTokenSilent(x(o(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>e?!e.some(e=>e.includes(`WRITE`)):!0,isInIframe:S},E={getConfig:n,getAppName:r,getClientId:i,getApiUrl:a,getApiScope:o,getApiClientId:s,getEnvironmentName:c,getIsMock:u,getMockUserPhoto:p,getMockRoles:d,getServiceNowConfigurationItem:l,PORTAL_URL_WITHOUT_LOCALHOST:h};export{T as auth,E as environment};
1
+ import"../enums/Environment.js";import{PublicClientApplication as e}from"@azure/msal-browser";const t=[`IS_MOCK`,`ALLOWED_PARENT_DOMAINS`,`SERVICE_NOW_CONFIGURATION_ITEM`,`API_CLIENT_ID`],n=e=>{if(!window._env_)return``;if(window._env_[e]===void 0&&!t.includes(e))throw Error(`Missing required environment variable: `+e);return window._env_[e]},r=e=>e||n(`NAME`),i=e=>e||n(`CLIENT_ID`),a=e=>e||n(`API_URL`),o=e=>e||n(`API_SCOPE`),s=e=>e||n(`API_CLIENT_ID`),c=e=>e||n(`ENVIRONMENT_NAME`),l=e=>e||n(`SERVICE_NOW_CONFIGURATION_ITEM`),u=e=>e===void 0?!1:e===`true`,d=e=>e===void 0?[`admin`]:JSON.parse(e),f=e=>(e??n(`ALLOWED_PARENT_DOMAINS`)??``).split(`;`).map(e=>e.trim()).filter(e=>e.length>0),p=e=>{if(typeof e==`string`)return e.length>0?e:void 0;if(e&&typeof e==`object`&&`sid`in e&&typeof e.sid==`string`){let t=e.sid;return t.length>0?t:void 0}},m=e=>{if(e!==void 0)return`https://avatars.githubusercontent.com/u/97165289`};function h(){let e=import.meta.env.VITE_ENVIRONMENT_NAME;return e||=n(`ENVIRONMENT_NAME`),e===`production`?`https://jsembark.equinor.com`:`https://client-amplify-portal-${e===`localhost`?`development`:e}.radix.equinor.com`}const g=h(),_={PHOTO:`https://graph.microsoft.com/v1.0/me/photos/96x96/$value`},v=(e,t)=>fetch(e,{headers:{Authorization:`Bearer ${t}`}}),y={OPENID:`openid`,PROFILE:`profile`,USER_READ:`User.Read`},b={scopes:[y.OPENID,y.PROFILE,y.USER_READ]},x={scopes:[y.USER_READ]},S=e=>({scopes:[e]}),C=()=>window.self!==window.top,w=new e({auth:{clientId:i(import.meta.env.VITE_CLIENT_ID),authority:`https://login.microsoftonline.com/StatoilSRM.onmicrosoft.com/`,redirectUri:window.location.origin},cache:{cacheLocation:`localStorage`}}),T=f(import.meta.env.ALLOWED_PARENT_DOMAINS);T.length===0&&console.warn(`[Auth] ALLOWED_PARENT_DOMAINS resolved empty - postMessage SSO is disabled. Set ALLOWED_PARENT_DOMAINS (semicolon-separated origins) to enable it.`),window.addEventListener(`message`,async e=>{if(!T.includes(e.origin)){e.data&&console.log(`[Auth] Ignoring postMessage from non-allow-listed origin`,e.origin,`allow-list:`,T);return}let t=p(e.data);if(!t){e.data&&console.warn(`[Auth] Allowed origin sent a message without an extractable sid. Received shape:`,e.data);return}await w.initialize();try{await w.ssoSilent({sid:t}),console.log(`[Auth] postMessage successfully logged in user!`)}catch(e){console.error(`[Auth] Something went wrong with postMessage ssoSilent`),console.error(e)}});const E={fetchMsGraph:v,GRAPH_SCOPES:y,GRAPH_REQUESTS_LOGIN:b,GRAPH_REQUESTS_PHOTO:x,GRAPH_REQUESTS_BACKEND:S,GRAPH_ENDPOINTS:_,msalApp:w,getToken:async()=>{if(u(import.meta.env.VITE_IS_MOCK))return``;let e=w.getActiveAccount(),t=w.getAllAccounts();return!e&&t.length===0?``:(await w.acquireTokenSilent(S(o(import.meta.env.VITE_API_SCOPE)))).accessToken},isReaderOnly:e=>e?!e.some(e=>e.includes(`WRITE`)):!0,isInIframe:C,getSidFromMessage:p},D={getConfig:n,getAppName:r,getClientId:i,getApiUrl:a,getApiScope:o,getApiClientId:s,getEnvironmentName:c,getIsMock:u,getMockUserPhoto:m,getMockRoles:d,getServiceNowConfigurationItem:l,PORTAL_URL_WITHOUT_LOCALHOST:g};export{E as auth,D as environment};
@@ -1,4 +1,4 @@
1
- import * as react0 from "react";
1
+ import * as react1 from "react";
2
2
  import { IconData } from "@equinor/eds-icons";
3
3
 
4
4
  //#region src/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts
@@ -12,6 +12,6 @@ interface ExpandingIconButtonProps {
12
12
  /**
13
13
  * @deprecated Being deprecated from amplify-component-lib move into app if you want the implementation
14
14
  */
15
- declare const ExpandingIconButton: react0.ForwardRefExoticComponent<ExpandingIconButtonProps & react0.RefAttributes<HTMLDivElement>>;
15
+ declare const ExpandingIconButton: react1.ForwardRefExoticComponent<ExpandingIconButtonProps & react1.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
- export { ExpandingIconButton };
17
+ export { ExpandingIconButton, ExpandingIconButtonProps };
@@ -1,4 +1,4 @@
1
- import * as react1 from "react";
1
+ import * as react0 from "react";
2
2
  import { IconData } from "@equinor/eds-icons";
3
3
 
4
4
  //#region src/deprecated/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: react1.ForwardRefExoticComponent<IconToggleButtonProps & react1.RefAttributes<HTMLButtonElement>>;
24
+ declare const IconToggleButton: react0.ForwardRefExoticComponent<IconToggleButtonProps & react0.RefAttributes<HTMLButtonElement>>;
25
25
  //#endregion
26
- export { IconToggleButton };
26
+ export { IconToggleButtonProps, IconToggleButton as default };
@@ -4,4 +4,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
4
4
  background: ${e=>e.$background};
5
5
  border: none;
6
6
  margin: 0;
7
- `,o=({done:e})=>r(a,{$background:t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e])});export{o as default};
7
+ `,o=({done:e})=>{let n=t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e]);return r(a,{$background:n})};export{o as default};
@@ -13,4 +13,4 @@ interface OldStepperProps {
13
13
  */
14
14
  declare const OldStepper: FC<OldStepperProps>;
15
15
  //#endregion
16
- export { OldStepper };
16
+ export { OldStepper, OldStepperProps };
package/dist/index.d.ts CHANGED
@@ -133,6 +133,6 @@ import { Faq } from "./organisms/Faq/Faq.js";
133
133
  import { ReleaseNotesPage } from "./organisms/ReleaseNotesPage/ReleaseNotesPage.js";
134
134
  import { Card, CardProps, DataGridProps } from "./organisms/index.js";
135
135
  import { ExpandingIconButton } from "./deprecated/ExpandingIconButton/ExpandingIconButton.js";
136
- import { IconToggleButton } from "./deprecated/IconToggleButton.js";
136
+ import IconToggleButton from "./deprecated/IconToggleButton.js";
137
137
  import { OldStepper } from "./deprecated/OldStepper/OldStepper.js";
138
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_drag_handle, 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 };
@@ -6,4 +6,4 @@ interface AnimatedCheckmarkProps {
6
6
  }
7
7
  declare const AnimatedCheckmark: FC<AnimatedCheckmarkProps>;
8
8
  //#endregion
9
- export { AnimatedCheckmark };
9
+ export { AnimatedCheckmark, AnimatedCheckmarkProps };
@@ -8,4 +8,4 @@ interface ApplicationIconProps extends Partial<AppIconProps> {
8
8
  }
9
9
  declare const ApplicationIcon: ForwardRefExoticComponent<ApplicationIconProps & RefAttributes<HTMLDivElement>>;
10
10
  //#endregion
11
- export { ApplicationIcon, ApplicationIconProps };
11
+ export { ApplicationIcon, ApplicationIconProps, ApplicationName };
@@ -8,4 +8,4 @@ interface BadgeProps {
8
8
  }
9
9
  declare const Badge: FC<BadgeProps>;
10
10
  //#endregion
11
- export { Badge, BadgeProps };
11
+ export { Badge, BadgeProps, Variants };
@@ -1 +1 @@
1
- import{ButtonPrimitive as e,CenteredContent as t,HiddenContent as n,PaddedContent as r}from"./Button.styles.js";import{getLoadingColor as i}from"./Button.utils.js";import{TOKEN_MAPPINGS as a}from"./tokens/tokens.js";import{DotProgress as o}from"@equinor/eds-core-react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{createLink as u}from"@tanstack/react-router";const d=({variant:u=`filled`,color:d=`primary`,leadingContent:f,trailingContent:p,fullWidth:m=!1,loading:h=!1,onClick:g,children:_,...v})=>{let y=a[d][u],b=[f,p].filter(Boolean).length;return c(e,{$tokens:y,$fullWidth:m,onClick:h?void 0:g,...v,children:h?l(s,{children:[!m&&c(n,{style:{marginLeft:b*12,marginRight:b*12},children:c(r,{children:_})}),c(t,{children:c(o,{color:i({color:d,variant:u})})})]}):l(s,{children:[f,c(r,{className:`central-content`,children:_}),p]})})},f=u(d);function p(e){if(e.linkOptions===void 0)return c(d,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e;return c(f,{...t,...n,as:`a`})}export{p as Button};
1
+ import{ButtonPrimitive as e,CenteredContent as t,HiddenContent as n,PaddedContent as r}from"./Button.styles.js";import{getLoadingColor as i}from"./Button.utils.js";import{TOKEN_MAPPINGS as a}from"./tokens/tokens.js";import{DotProgress as o}from"@equinor/eds-core-react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import{createLink as u}from"@tanstack/react-router";const d=({variant:u=`filled`,color:d=`primary`,leadingContent:f,trailingContent:p,fullWidth:m=!1,loading:h=!1,onClick:g,children:_,...v})=>{let y=a[d][u],b=[f,p].filter(Boolean).length;return c(e,{$tokens:y,$fullWidth:m,onClick:h?void 0:g,...v,children:h?l(s,{children:[!m&&c(n,{style:{marginLeft:b*12,marginRight:b*12},children:c(r,{children:_})}),c(t,{children:c(o,{color:i({color:d,variant:u})})})]}):l(s,{children:[f,c(r,{className:`central-content`,children:_}),p]})})},f=u(d);function p(e){if(e.linkOptions===void 0)return c(d,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e,r={...t,...n,as:`a`};return c(f,{...r})}export{p as Button};
@@ -1 +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,iconProps:p,...m})=>{let h=t[l][c];return o(n,{$shape:d,$tokens:h,onClick:u?void 0:f,...m,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,...p})})},l=s(c);function u(e){if(e.linkOptions===void 0)return o(c,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e;return o(l,{...t,...n,as:`a`})}export{u as IconButton};
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,iconProps:p,...m})=>{let h=t[l][c];return o(n,{$shape:d,$tokens:h,onClick:u?void 0:f,...m,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,...p})})},l=s(c);function u(e){if(e.linkOptions===void 0)return o(c,{...e,type:e.type??`button`});let{linkOptions:t,...n}=e,r={...t,...n,as:`a`};return o(l,{...r})}export{u as IconButton};
@@ -1,4 +1,4 @@
1
- import * as react8 from "react";
1
+ import * as react14 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: react8.ForwardRefExoticComponent<ChipProps & react8.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
28
+ declare const Chip: react14.ForwardRefExoticComponent<ChipProps & react14.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
29
29
  //#endregion
30
- export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };
30
+ export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps, InteractiveChipBase };
@@ -62,4 +62,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
62
62
  background-color: ${e.variant===`white`?s.white.background:t.ui.background__light.rgba};
63
63
  outline: 1px solid ${n.disabled.borderColor};
64
64
  `}}
65
- `;export{u as InteractiveChipStyle,d as ReadOnlyChipStyle};
65
+ `;export{u as InteractiveChipStyle,d as ReadOnlyChipStyle,s as colorSchemes};
@@ -18,4 +18,4 @@ type ConfettiShowerProps = {
18
18
  type ConfettiProps = ConfettiBoomProps | ConfettiShowerProps;
19
19
  type ParticleShape = 'circle' | 'square' | 'star' | 'spiral';
20
20
  //#endregion
21
- export { ConfettiBoomProps, ConfettiProps, ConfettiShowerProps };
21
+ export { ConfettiBoomProps, ConfettiProps, ConfettiShowerProps, ParticleShape };
@@ -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){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{t as SeasonalColorsMap,n as getSeasonalColors};
@@ -1,5 +1,5 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
- import * as react6 from "react";
2
+ import * as react16 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: react6.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
12
+ declare const DatePicker$1: react16.ForwardRefExoticComponent<Omit<DatePickerProps, "defaultValue" | "variant"> & {
13
13
  variant?: Variants;
14
14
  defaultValue?: Date | undefined;
15
15
  meta?: string;
16
16
  loading?: boolean;
17
- } & react6.RefAttributes<HTMLDivElement>>;
17
+ } & react16.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 react16 from "react";
2
+ import * as react20 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: react16.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
11
+ declare const DateRangePicker$1: react20.ForwardRefExoticComponent<Omit<DateRangePickerProps, "variant"> & {
12
12
  variant?: Variants;
13
13
  meta?: string;
14
14
  loading?: boolean;
15
- } & react16.RefAttributes<HTMLDivElement>>;
15
+ } & react20.RefAttributes<HTMLDivElement>>;
16
16
  //#endregion
17
17
  export { DateRangePicker$1 as DateRangePicker, DateRangePickerProps$1 as DateRangePickerProps };
@@ -1,11 +1,11 @@
1
1
  import { SizeIconProps } from "../../atoms/types/Icon.js";
2
- import * as react20 from "react";
2
+ import * as react22 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: react20.ForwardRefExoticComponent<EquinorLogoProps & react20.RefAttributes<SVGSVGElement>>;
9
+ declare const EquinorLogo: react22.ForwardRefExoticComponent<EquinorLogoProps & react22.RefAttributes<SVGSVGElement>>;
10
10
  //#endregion
11
11
  export { EquinorLogo, EquinorLogoProps };
@@ -1 +1 @@
1
- import{colors as e}from"../../atoms/style/colors.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{AdditionalText as n,CircularProgress as r,CloseButton as i,CompactFileProgressContainer as a,DoneWrapper as o,FileTooltip as s,LoadingWrapper as c,Rejection as l}from"./CompactFileProgress.styles.js";import{getFileIcon as u,isFileImage as d,readUploadedFileAsText as f}from"./FileProgress.utils.js";import{useEffect as p,useMemo as m,useState as h}from"react";import{Icon as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";const S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=h(``);return p(()=>{C||(async e=>{j(await f(e))})(S)},[C,S]),y(a,{$isError:C,children:[v(s,{title:m(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),children:m(()=>C?y(l,{children:[v(g,{data:x,color:e.interactive.warning__text.rgba}),v(`div`,{children:w&&w.length>0?w:`Invalid file type`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.interactive.warning__text.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}):T&&!O&&d(S.name)?v(o,{children:v(`img`,{src:A,alt:` ${S.name}`})}):T&&!O?v(o,{children:v(g,{data:u(S.name)})}):y(c,{children:[v(r,{variant:k.indeterminate||O?`indeterminate`:`determinate`,value:!k.isDone&&!k.indeterminate?k.progressPercent:void 0,size:24}),v(_,{variant:`meta`,children:`Uploading...`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.ui.background__medium.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}),[C,T,O,w,A,S.name,k])}),v(t,{title:S.name,children:v(n,{group:`paragraph`,variant:`meta`,children:S.name})}),!O&&k.onDelete&&v(i,{"data-testid":`delete-file`,onClick:D,children:v(g,{color:e.text.static_icons__tertiary.rgba,data:b})})]})};export{S as default};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{OptionalTooltip as t}from"../OptionalTooltip/OptionalTooltip.js";import{AdditionalText as n,CircularProgress as r,CloseButton as i,CompactFileProgressContainer as a,DoneWrapper as o,FileTooltip as s,LoadingWrapper as c,Rejection as l}from"./CompactFileProgress.styles.js";import{getFileIcon as u,isFileImage as d,readUploadedFileAsText as f}from"./FileProgress.utils.js";import{useEffect as p,useMemo as m,useState as h}from"react";import{Icon as g,Typography as _}from"@equinor/eds-core-react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{clear as b,error_outlined as x}from"@equinor/eds-icons";const S=({file:S,isError:C,shortErrorText:w,showCompleteState:T,fullErrorText:E,handleOnClick:D,isDeleting:O,...k})=>{let[A,j]=h(``);return p(()=>{C||(async e=>{let t=await f(e);j(t)})(S)},[C,S]),y(a,{$isError:C,children:[v(s,{title:m(()=>C?E&&E.length>0?E:`An error has occurred with the file`:``,[E,C]),children:m(()=>C?y(l,{children:[v(g,{data:x,color:e.interactive.warning__text.rgba}),v(`div`,{children:w&&w.length>0?w:`Invalid file type`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.interactive.warning__text.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}):T&&!O&&d(S.name)?v(o,{children:v(`img`,{src:A,alt:` ${S.name}`})}):T&&!O?v(o,{children:v(g,{data:u(S.name)})}):y(c,{children:[v(r,{variant:k.indeterminate||O?`indeterminate`:`determinate`,value:!k.isDone&&!k.indeterminate?k.progressPercent:void 0,size:24}),v(_,{variant:`meta`,children:`Uploading...`}),v(`svg`,{width:`88`,height:`88`,viewBox:`0 0 88 88`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:v(`rect`,{x:`1`,y:`1`,width:`86`,height:`86`,rx:`7`,stroke:e.ui.background__medium.rgba,strokeWidth:`2`,strokeDasharray:`4 4`})})]}),[C,T,O,w,A,S.name,k])}),v(t,{title:S.name,children:v(n,{group:`paragraph`,variant:`meta`,children:S.name})}),!O&&k.onDelete&&v(i,{"data-testid":`delete-file`,onClick:D,children:v(g,{color:e.text.static_icons__tertiary.rgba,data:b})})]})};export{S as default};
@@ -36,4 +36,4 @@ type CompactFileProgressBaseProps = FileProgressBase & {
36
36
  };
37
37
  type FileProgressProps = RegularFileProgressBaseProps | CompactFileProgressBaseProps;
38
38
  //#endregion
39
- export { FileProgressProps };
39
+ export { CompactFileProgressBaseProps, FileProgressProps, RegularFileProgressBaseProps };
@@ -1,5 +1,5 @@
1
1
  import { IconCellColor, IconCellState, IconCellVariant, IconCellVariants } from "./IconCell.types.js";
2
- import * as react10 from "react";
2
+ import * as react24 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: react10.ForwardRefExoticComponent<IconCellProps & react10.RefAttributes<HTMLButtonElement>>;
52
+ declare const IconCell: react24.ForwardRefExoticComponent<IconCellProps & react24.RefAttributes<HTMLButtonElement>>;
53
53
  //#endregion
54
- export { IconCell, IconCellProps };
54
+ export { IconCell, IconCellProps, RegularIconCellProps };
@@ -63,12 +63,12 @@ import{animation as e}from"../../atoms/style/animation.js";import{colors as t}fr
63
63
  `}
64
64
 
65
65
  // Overlay for Label & HelperIconContainer
66
- ${({$backgroundColor:e,$variant:n,$state:a})=>`
66
+ ${({$backgroundColor:e,$variant:n,$state:a})=>{let o=n===i.COLOURED?a===r.ERROR?c[r.ERROR]:a===r.WARNING?c[r.WARNING]:e:t.ui.background__default.rgba;return`
67
67
  ${f}::before,
68
68
  ${m}::before {
69
- ${u(n===i.COLOURED?a===r.ERROR?c[r.ERROR]:a===r.WARNING?c[r.WARNING]:e:t.ui.background__default.rgba)}
69
+ ${u(o)}
70
70
  }
71
- `}
71
+ `}}
72
72
 
73
73
  // Disabled state
74
74
  &:disabled {
@@ -5,4 +5,4 @@ import{colors as e}from"../../atoms/style/colors.js";import"../../atoms/enums/Th
5
5
  ${e.ui.background__default.rgba} 10px,
6
6
  ${e.ui.background__light_medium.rgba} 11px,
7
7
  ${e.ui.background__light_medium.rgba} 12px
8
- )`:t===r.COLOURED?i===n.ERROR?l[n.ERROR]:i===n.WARNING?l[n.WARNING]:a:`transparent`;export{p as getBackground,d as getBorderBottom,s as getIconCellColor,f as getSelectedBorder,o as renderContent,l as stateBGColor};
8
+ )`:t===r.COLOURED?i===n.ERROR?l[n.ERROR]:i===n.WARNING?l[n.WARNING]:a:`transparent`;export{p as getBackground,d as getBorderBottom,s as getIconCellColor,f as getSelectedBorder,o as renderContent,l as stateBGColor,c as stateBorderColors};
@@ -1,4 +1,4 @@
1
- import * as react160 from "react";
1
+ import * as react176 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: react160.ForwardRefExoticComponent<ListItemProps & react160.RefAttributes<HTMLButtonElement>>;
18
+ declare const ListItem: react176.ForwardRefExoticComponent<ListItemProps & react176.RefAttributes<HTMLButtonElement>>;
19
19
  //#endregion
20
20
  export { ListItem, ListItemProps };
@@ -1,4 +1,4 @@
1
- import * as react51 from "react";
1
+ import * as react64 from "react";
2
2
  import { ChangeEvent, MouseEvent } from "react";
3
3
 
4
4
  //#region src/molecules/OptionDrawer/OptionDrawer.d.ts
@@ -43,8 +43,8 @@ declare const OptionDrawer: {
43
43
  openAll,
44
44
  showIntermediateParent,
45
45
  parentHasNestedItems
46
- }: OptionDrawerProps<T>): react51.JSX.Element;
46
+ }: OptionDrawerProps<T>): react64.JSX.Element;
47
47
  displayName: string;
48
48
  };
49
49
  //#endregion
50
- export { OptionDrawer, OptionDrawerProps };
50
+ export { OptionDrawer, OptionDrawerProps, ToggleEventProps };
@@ -1,4 +1,4 @@
1
- import * as react12 from "react";
1
+ import * as react26 from "react";
2
2
  import { TooltipProps } from "@equinor/eds-core-react";
3
3
  import * as _floating_ui_utils0 from "@floating-ui/utils";
4
4
 
@@ -6,14 +6,14 @@ import * as _floating_ui_utils0 from "@floating-ui/utils";
6
6
  type OptionalTooltipProps = {
7
7
  textTransform?: string;
8
8
  } & TooltipProps;
9
- declare const OptionalTooltip: react12.ForwardRefExoticComponent<{
9
+ declare const OptionalTooltip: react26.ForwardRefExoticComponent<{
10
10
  textTransform?: string;
11
11
  } & {
12
12
  placement?: _floating_ui_utils0.Placement;
13
- title?: react12.ReactNode;
13
+ title?: react26.ReactNode;
14
14
  children: React.ReactElement & React.RefAttributes<HTMLElement>;
15
15
  enterDelay?: number;
16
16
  portalContainer?: HTMLElement;
17
- } & Omit<react12.HTMLAttributes<HTMLDivElement>, "title"> & react12.RefAttributes<HTMLDivElement>>;
17
+ } & Omit<react26.HTMLAttributes<HTMLDivElement>, "title"> & react26.RefAttributes<HTMLDivElement>>;
18
18
  //#endregion
19
19
  export { OptionalTooltip, OptionalTooltipProps };
@@ -1,4 +1,4 @@
1
- import * as react22 from "react";
1
+ import * as react30 from "react";
2
2
 
3
3
  //#region src/molecules/ProfileAvatar/ProfileAvatar.d.ts
4
4
  interface ProfileAvatarProps {
@@ -7,6 +7,6 @@ interface ProfileAvatarProps {
7
7
  size?: 'small' | 'small-medium' | 'medium' | 'large' | 'x-large' | number;
8
8
  disabled?: boolean;
9
9
  }
10
- declare const ProfileAvatar: react22.ForwardRefExoticComponent<ProfileAvatarProps & react22.RefAttributes<HTMLDivElement>>;
10
+ declare const ProfileAvatar: react30.ForwardRefExoticComponent<ProfileAvatarProps & react30.RefAttributes<HTMLDivElement>>;
11
11
  //#endregion
12
12
  export { ProfileAvatar, ProfileAvatarProps };
@@ -23,4 +23,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
23
23
  width: inherit;
24
24
  height: inherit;
25
25
  }
26
- `,_=n(({url:e,name:t,size:n=`medium`,disabled:a=!1},o)=>{let l=r(()=>!t||t.trim().length===0?s(h,{data:c}):f(t),[t]),u=r(()=>{switch(n){case`small`:return 16;case`small-medium`:return 24;case`medium`:case void 0:return 32;case`large`:return 40;case`x-large`:return 48;default:return n}},[n]),d=r(()=>{switch(n){case`small`:return 6;case`small-medium`:return 10;case`medium`:case void 0:return 14;case`large`:return 16;case`x-large`:return 18;default:return n/2}},[n]),_=r(()=>{if(e)try{if(btoa(atob(e))===e)return`data:image/png;base64, ${e}`}catch{return e}return``},[e]);return _===``?s(m,{$background:p(t),$size:u,$fontSize:d,disabled:a,ref:o,children:s(`span`,{children:l})}):s(g,{$size:u,"data-testid":`avatar-wrapper`,children:s(i,{alt:`user-avatar-${t}`,src:_,disabled:a,ref:o})})});_.displayName=`ProfileAvatar`;export{_ as ProfileAvatar};
26
+ `,_=n(({url:e,name:t,size:n=`medium`,disabled:a=!1},o)=>{let l=r(()=>!t||t.trim().length===0?s(h,{data:c}):f(t),[t]),u=r(()=>{switch(n){case`small`:return 16;case`small-medium`:return 24;case`medium`:case void 0:return 32;case`large`:return 40;case`x-large`:return 48;default:return n}},[n]),d=r(()=>{switch(n){case`small`:return 6;case`small-medium`:return 10;case`medium`:case void 0:return 14;case`large`:return 16;case`x-large`:return 18;default:return n/2}},[n]),_=r(()=>{if(e)try{if(btoa(atob(e))===e)return`data:image/png;base64, ${e}`}catch{return e}return``},[e]);return _===``?s(m,{$background:p(t),$size:u,$fontSize:d,disabled:a,ref:o,children:s(`span`,{children:l})}):s(g,{$size:u,"data-testid":`avatar-wrapper`,children:s(i,{alt:`user-avatar-${t}`,src:_,disabled:a,ref:o})})});_.displayName=`ProfileAvatar`;export{_ as ProfileAvatar,f as nameToInitials};
@@ -1,11 +1,11 @@
1
1
  import { EditorPanel, ImageExtensionFnProps, RichTextEditorFeatures } from "../RichTextEditor.types.js";
2
2
  import { MenuButtonProps } from "./MenuButton.js";
3
3
  import { AddImageProps } from "./AddImageButton.js";
4
- import * as react36 from "react";
4
+ import * as react43 from "react";
5
5
  import { FC } from "react";
6
- import * as styled_components5 from "styled-components";
6
+ import * as styled_components9 from "styled-components";
7
7
  import { Editor } from "@tiptap/react";
8
- import * as styled_components_dist_types1 from "styled-components/dist/types";
8
+ import * as styled_components_dist_types2 from "styled-components/dist/types";
9
9
 
10
10
  //#region src/molecules/RichTextEditor/MenuBar/MenuBar.d.ts
11
11
  interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
@@ -14,10 +14,10 @@ interface MenuBarProps extends Pick<ImageExtensionFnProps, 'onImageUpload'> {
14
14
  }
15
15
  declare const AmplifyBar: FC<MenuBarProps>;
16
16
  declare const EditorMenu: {
17
- Bar: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
- Bars: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
19
- Button: react36.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react36.RefAttributes<HTMLButtonElement>>;
20
- Section: styled_components_dist_types1.IStyledComponentBase<"web", styled_components5.FastOmit<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react36.DetailedHTMLProps<react36.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
17
+ Bar: styled_components_dist_types2.IStyledComponentBase<"web", styled_components9.FastOmit<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
18
+ Bars: styled_components_dist_types2.IStyledComponentBase<"web", styled_components9.FastOmit<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
19
+ Button: react43.ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & react43.RefAttributes<HTMLButtonElement>>;
20
+ Section: styled_components_dist_types2.IStyledComponentBase<"web", styled_components9.FastOmit<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react43.DetailedHTMLProps<react43.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
21
21
  AddImageButton: FC<AddImageProps>;
22
22
  };
23
23
  declare const EditorText: {
@@ -1 +1 @@
1
- import e from"./ExtendedHeaders.js";import t from"./ExtendedImage.js";import{mergeDefaults as n}from"./mergeDefaults.js";import{Extension as r}from"@tiptap/core";import{Bold as i}from"@tiptap/extension-bold";import{CodeBlockLowlight as a}from"@tiptap/extension-code-block-lowlight";import{Color as o}from"@tiptap/extension-color";import{Document as s}from"@tiptap/extension-document";import c from"@tiptap/extension-gapcursor";import{HardBreak as l}from"@tiptap/extension-hard-break";import{Highlight as u}from"@tiptap/extension-highlight";import{Italic as d}from"@tiptap/extension-italic";import{Link as f}from"@tiptap/extension-link";import{BulletList as p,ListItem as m,OrderedList as h}from"@tiptap/extension-list";import{Paragraph as g}from"@tiptap/extension-paragraph";import{Table as _,TableCell as v,TableHeader as y,TableRow as b}from"@tiptap/extension-table";import{Text as x}from"@tiptap/extension-text";import{TextAlign as S}from"@tiptap/extension-text-align";import{TextStyle as C}from"@tiptap/extension-text-style";import{Typography as w}from"@tiptap/extension-typography";import{Dropcursor as T,Placeholder as E,UndoRedo as D}from"@tiptap/extensions";import{common as O,createLowlight as k}from"lowlight";const A=k(O),j=[{name:`bold`,extension:i},{name:`bulletList`,extension:p},{name:`document`,extension:s},{name:`hardBreak`,extension:l},{name:`undoRedo`,extension:D},{name:`italic`,extension:d},{name:`listItem`,extension:m},{name:`orderedList`,extension:h},{name:`paragraph`,extension:g},{name:`text`,extension:x},{name:`codeBlockLowlight`,extension:a},{name:`color`,extension:o},{name:`dropCursor`,extension:T},{name:`gapCursor`,extension:c},{name:`highlight`,extension:u},{name:`link`,extension:f},{name:`placeholder`,extension:E},{name:`table`,extension:_},{name:`tableCell`,extension:v},{name:`tableHeader`,extension:y},{name:`tableRow`,extension:b},{name:`typography`,extension:w},{name:`textStyle`,extension:C},{name:`textAlign`,extension:S},{name:`image`,extension:t},{name:`heading`,extension:e}],M=r.create({name:`AmplifyKit`,addExtensions(){let e=n({options:this.options,defaults:{codeBlockLowlight:{lowlight:A},highlight:{multicolor:!0},table:{resizable:!0},image:{allowBase64:!0},placeholder:{placeholder:`Add text and content here...`},textAlign:{types:[`heading`,`paragraph`,`img`]}}});return j.filter(t=>e[t.name]!==!1).map(t=>{let n=e[t.name];return n?t.extension.configure(n):t.extension})}});export{M as AmplifyKit};
1
+ import e from"./ExtendedHeaders.js";import t from"./ExtendedImage.js";import{mergeDefaults as n}from"./mergeDefaults.js";import{Extension as r}from"@tiptap/core";import{Bold as i}from"@tiptap/extension-bold";import{CodeBlockLowlight as a}from"@tiptap/extension-code-block-lowlight";import{Color as o}from"@tiptap/extension-color";import{Document as s}from"@tiptap/extension-document";import c from"@tiptap/extension-gapcursor";import{HardBreak as l}from"@tiptap/extension-hard-break";import{Highlight as u}from"@tiptap/extension-highlight";import{Italic as d}from"@tiptap/extension-italic";import{Link as f}from"@tiptap/extension-link";import{BulletList as p,ListItem as m,OrderedList as h}from"@tiptap/extension-list";import{Paragraph as g}from"@tiptap/extension-paragraph";import{Table as _,TableCell as v,TableHeader as y,TableRow as b}from"@tiptap/extension-table";import{Text as x}from"@tiptap/extension-text";import{TextAlign as S}from"@tiptap/extension-text-align";import{TextStyle as C}from"@tiptap/extension-text-style";import{Typography as w}from"@tiptap/extension-typography";import{Dropcursor as T,Placeholder as E,UndoRedo as D}from"@tiptap/extensions";import{common as O,createLowlight as k}from"lowlight";const A=k(O),j=[{name:`bold`,extension:i},{name:`bulletList`,extension:p},{name:`document`,extension:s},{name:`hardBreak`,extension:l},{name:`undoRedo`,extension:D},{name:`italic`,extension:d},{name:`listItem`,extension:m},{name:`orderedList`,extension:h},{name:`paragraph`,extension:g},{name:`text`,extension:x},{name:`codeBlockLowlight`,extension:a},{name:`color`,extension:o},{name:`dropCursor`,extension:T},{name:`gapCursor`,extension:c},{name:`highlight`,extension:u},{name:`link`,extension:f},{name:`placeholder`,extension:E},{name:`table`,extension:_},{name:`tableCell`,extension:v},{name:`tableHeader`,extension:y},{name:`tableRow`,extension:b},{name:`typography`,extension:w},{name:`textStyle`,extension:C},{name:`textAlign`,extension:S},{name:`image`,extension:t},{name:`heading`,extension:e}],M=r.create({name:`AmplifyKit`,addExtensions(){let e=n({options:this.options,defaults:{codeBlockLowlight:{lowlight:A},highlight:{multicolor:!0},table:{resizable:!0},image:{allowBase64:!0},placeholder:{placeholder:`Add text and content here...`},textAlign:{types:[`heading`,`paragraph`,`img`]}}});return j.filter(t=>e[t.name]!==!1).map(t=>{let n=e[t.name];return n?t.extension.configure(n):t.extension})}});export{M as AmplifyKit,n as mergeDefaults};
@@ -2,17 +2,17 @@ import { EditorStylingProps, RichTextContentProps } from "./RichTextEditor.style
2
2
  import { EditorProviderProps } from "./EditorProvider.js";
3
3
  import { MenuBarProps } from "./MenuBar/MenuBar.js";
4
4
  import { RichTextEditor } from "./RichTextEditor.js";
5
- import * as react25 from "react";
6
- import * as styled_components0 from "styled-components";
5
+ import * as react32 from "react";
6
+ import * as styled_components3 from "styled-components";
7
7
  import * as _tiptap_react0 from "@tiptap/react";
8
8
  import * as styled_components_dist_types0 from "styled-components/dist/types";
9
9
 
10
10
  //#region src/molecules/RichTextEditor/index.d.ts
11
11
  declare const RichText: {
12
- Styling: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<react25.DetailedHTMLProps<react25.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never> & Partial<Pick<styled_components0.FastOmit<react25.DetailedHTMLProps<react25.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never>>> & string;
13
- Provider: react25.FC<EditorProviderProps>;
14
- Content: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<styled_components0.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react25.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never> & Partial<Pick<styled_components0.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react25.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never>>> & string & Omit<react25.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react25.RefAttributes<HTMLDivElement>>, keyof react25.Component<any, {}, any>>;
15
- Bar: react25.FC<MenuBarProps>;
12
+ Styling: styled_components_dist_types0.IStyledComponentBase<"web", styled_components3.FastOmit<styled_components3.FastOmit<react32.DetailedHTMLProps<react32.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never> & Partial<Pick<styled_components3.FastOmit<react32.DetailedHTMLProps<react32.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof EditorStylingProps> & EditorStylingProps, never>>> & string;
13
+ Provider: react32.FC<EditorProviderProps>;
14
+ Content: styled_components_dist_types0.IStyledComponentBase<"web", styled_components3.FastOmit<styled_components3.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react32.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never> & Partial<Pick<styled_components3.FastOmit<Omit<_tiptap_react0.EditorContentProps, "ref"> & react32.RefAttributes<HTMLDivElement>, keyof RichTextContentProps> & RichTextContentProps, never>>> & string & Omit<react32.NamedExoticComponent<Omit<_tiptap_react0.EditorContentProps, "ref"> & react32.RefAttributes<HTMLDivElement>>, keyof react32.Component<any, {}, any>>;
15
+ Bar: react32.FC<MenuBarProps>;
16
16
  };
17
17
  //#endregion
18
- export { RichText };
18
+ export { RichText, RichTextEditor };
@@ -1 +1 @@
1
- import{EditorContent as e,EditorStyling as t}from"./RichTextEditor.styles.js";import{AmplifyBar as n}from"./MenuBar/MenuBar.js";import{EditorProvider as r}from"./EditorProvider.js";import"./RichTextEditor.js";const i={Styling:t,Provider:r,Content:e,Bar:n};export{i as RichText};
1
+ import{EditorContent as e,EditorStyling as t}from"./RichTextEditor.styles.js";import{AmplifyBar as n}from"./MenuBar/MenuBar.js";import{EditorProvider as r}from"./EditorProvider.js";import{RichTextEditor as i}from"./RichTextEditor.js";const a={Styling:t,Provider:r,Content:e,Bar:n};export{a as RichText,i as RichTextEditor};
@@ -1,10 +1,10 @@
1
- import * as react52 from "react";
1
+ import * as react62 from "react";
2
2
  import { SearchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/Search/Search.d.ts
5
5
  interface SearchProps$1 extends SearchProps {
6
6
  lightBackground?: boolean;
7
7
  }
8
- declare const Search$1: react52.ForwardRefExoticComponent<SearchProps$1 & react52.RefAttributes<HTMLInputElement>>;
8
+ declare const Search$1: react62.ForwardRefExoticComponent<SearchProps$1 & react62.RefAttributes<HTMLInputElement>>;
9
9
  //#endregion
10
10
  export { Search$1 as Search };
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, MultiSelectCommon, SelectOptionRequired } from "../Select.types.js";
2
- import * as react54 from "react";
2
+ import * as react65 from "react";
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>): react54.JSX.Element;
20
+ declare function ComboBox<T extends SelectOptionRequired>(props: ComboBoxProps<T>): react65.JSX.Element;
21
21
  //#endregion
22
22
  export { ComboBox, ComboBoxProps };
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, MultiSelectCommon, PersistentSelectProps, SelectOptionRequired } from "../Select.types.js";
2
- import * as react59 from "react";
2
+ import * as react66 from "react";
3
3
 
4
4
  //#region src/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts
5
5
  type PersistentComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps<T> & MultiSelectCommon<T> & PersistentSelectProps & (GroupedSelectProps<T> | ListSelectProps<T>);
@@ -18,6 +18,6 @@ type PersistentComboBoxProps<T extends SelectOptionRequired> = CommonSelectProps
18
18
  * @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
19
19
  * @param maxHeight - Max height of the persistent wrapper below the search field, optional
20
20
  */
21
- declare function PersistentComboBox<T extends SelectOptionRequired>(props: PersistentComboBoxProps<T>): react59.JSX.Element;
21
+ declare function PersistentComboBox<T extends SelectOptionRequired>(props: PersistentComboBoxProps<T>): react66.JSX.Element;
22
22
  //#endregion
23
23
  export { PersistentComboBox, PersistentComboBoxProps };