@equinor/amplify-component-lib 10.10.0 → 11.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 (77) 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/types/SideBar.d.ts +3 -4
  4. package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
  5. package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
  6. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  7. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
  8. package/dist/molecules/ApplicationIcon/Icons/FluidSymphony.js +1 -0
  9. package/dist/molecules/ApplicationIcon/Icons/ForecastDataInventory.js +1 -0
  10. package/dist/molecules/Chip/Chip.d.ts +2 -2
  11. package/dist/molecules/Confetti/Confetti.constants.js +1 -1
  12. package/dist/molecules/Confetti/Confetti.d.ts +2 -5
  13. package/dist/molecules/Confetti/Confetti.js +1 -1
  14. package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
  15. package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
  16. package/dist/molecules/Dialog/Dialog.d.ts +2 -2
  17. package/dist/molecules/Dialog/Dialog.styles.js +1 -1
  18. package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
  19. package/dist/molecules/FileProgress/FileProgress.js +1 -1
  20. package/dist/molecules/IconCell/IconCell.d.ts +2 -2
  21. package/dist/molecules/InputExplanation/InputExplanation.js +9 -0
  22. package/dist/molecules/ListItem/ListItem.d.ts +2 -2
  23. package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +2 -2
  24. package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
  25. package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
  26. package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +6 -6
  27. package/dist/molecules/RichTextEditor/index.d.ts +6 -6
  28. package/dist/molecules/Search/Search.d.ts +5 -2
  29. package/dist/molecules/Search/Search.js +9 -3
  30. package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
  31. package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
  32. package/dist/molecules/Select/Select.js +1 -1
  33. package/dist/molecules/Select/Select.styles.d.ts +5 -5
  34. package/dist/molecules/Select/Select.styles.js +23 -19
  35. package/dist/molecules/Select/Select.types.d.ts +3 -0
  36. package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
  37. package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
  38. package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
  39. package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
  40. package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +3 -3
  41. package/dist/molecules/Tabs/Tab.js +1 -1
  42. package/dist/molecules/Tabs/Tab.styles.js +3 -0
  43. package/dist/molecules/Tabs/Tabs.types.d.ts +3 -0
  44. package/dist/molecules/TextField/TextField.d.ts +4 -2
  45. package/dist/molecules/TextField/TextField.js +13 -9
  46. package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
  47. package/dist/organisms/Filter/Filter.d.ts +2 -2
  48. package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
  49. package/dist/organisms/PageTitle/PageTitle.js +1 -1
  50. package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
  51. package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +1 -1
  52. package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +1 -1
  53. package/dist/organisms/SideBar/MenuItem/MenuItem.d.ts +0 -4
  54. package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +3 -3
  55. package/dist/organisms/SideBar/SideBar.d.ts +2 -2
  56. package/dist/organisms/Status/Action.d.ts +2 -2
  57. package/dist/organisms/Status/Description.d.ts +2 -2
  58. package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
  59. package/dist/organisms/Status/Title.d.ts +2 -2
  60. package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
  61. package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
  62. package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
  63. package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
  64. package/dist/organisms/Template/Template.d.ts +5 -5
  65. package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
  66. package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
  67. package/dist/organisms/TopBar/Account/Account.d.ts +1 -0
  68. package/dist/organisms/TopBar/Account/Account.js +1 -1
  69. package/dist/organisms/TopBar/Account/ImpersonateButton.js +1 -1
  70. package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +1 -1
  71. package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.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/FieldMenu/FieldMenu.js +1 -1
  75. package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +3 -3
  76. package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
  77. package/package.json +1 -1
@@ -1 +1 @@
1
- import{useSelect as e}from"../../atoms/hooks/useSelect.js";import{useOutsideClick as t}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{SelectItemSkeleton as n}from"./SelectItemSkeleton.js";import{PersistentComboBoxWrapper as r,PersistentStickyWrapper as i,StyledMenu as a}from"./Select.styles.js";import{GroupedSelectMenu as o}from"./GroupedSelectMenu.js";import{GroupedSelectPersistent as s}from"./GroupedSelectPersistent.js";import{ListSelectMenu as c}from"./ListSelectMenu.js";import{ListSelectPersistent as l}from"./ListSelectPersistent.js";import{SearchBar as u}from"./SearchBar.js";import{useMemo as d,useRef as f}from"react";import{Label as p}from"@equinor/eds-core-react";import{Fragment as m,jsx as h,jsxs as g}from"react/jsx-runtime";const _=_=>{let{clearable:v=!0,loading:y=!1,disabled:b=!1,lightBackground:x=!1,underlineHighlight:S=!1,sortValues:C=!0,placeholder:w=`Select...`,label:T,meta:E,id:D=`amplify-combobox-${T}`,inDialog:O=!1,onSearchFilter:k,CustomMenuItemComponent:A,mode:j=`menu`}=_,{handleOnAddItem:M,handleOnItemKeyDown:N,handleOnItemSelect:P,itemRefs:F,search:I,handleOnClose:L,open:R,handleOnClear:z,handleOnSearchChange:B,handleOnSearchKeyDown:V,handleToggleOpen:H,selectedValues:U,handleOnOpen:W,handleOnRemoveItem:G,searchRef:K,tryingToRemoveItem:q}=e({..._,clearable:v,loading:y,disabled:b,lightBackground:x,underlineHighlight:S,sortValues:C,placeholder:w}),J=f(null),Y=f(null),X=d(()=>!!T||!!E,[T,E]);if(t(Y.current,e=>{O&&R&&e.target&&J.current&&Y.current&&!J.current.contains(e.target)&&!Y.current?.contains(e.target)&&L()}),j===`persistent`&&`value`in _&&_.value)throw Error(`You cannot use SingleSelect with persistent mode`);if(j===`persistent`){let e=`groups`in _&&_.groups?h(s,{..._,search:I,itemRefs:F,onItemSelect:P,onItemKeyDown:N,onSearchFilter:k,CustomMenuItemComponent:A}):h(l,{..._,search:I,itemRefs:F,onAddItem:_.onAddItem?M:void 0,onItemSelect:P,onItemKeyDown:N,onSearchFilter:k,CustomMenuItemComponent:A});return g(m,{children:[X&&h(p,{label:T,meta:E,htmlFor:D,disabled:b}),g(r,{$maxHeight:_.mode===`persistent`&&_.maxHeight?_.maxHeight:void 0,$shouldShowLabel:X,children:[h(i,{children:h(u,{props:_,anchorRef:J,search:I,searchRef:K,open:R,selectedValues:U,handleOnOpen:W,handleToggleOpen:H,handleOnRemoveItem:G,tryingToRemoveItem:q,handleOnSearchChange:B,handleOnSearchKeyDown:V,handleOnClear:z})}),_.loading?g(m,{children:[h(n,{}),h(n,{}),h(n,{})]}):e]})]})}return g(`div`,{children:[X&&h(p,{label:T,meta:E,htmlFor:D,disabled:b}),h(u,{props:_,anchorRef:J,search:I,searchRef:K,open:R,selectedValues:U,handleOnOpen:W,handleToggleOpen:H,handleOnRemoveItem:G,tryingToRemoveItem:q,handleOnSearchChange:B,handleOnSearchKeyDown:V,handleOnClear:z}),R&&h(a,{ref:Y,open:!0,id:`combobox-menu`,anchorEl:J.current,onClose:L,placement:`bottom`,style:{width:`${J.current?.clientWidth}px`,maxWidth:`${J.current?.clientWidth}px`},children:`groups`in _&&_.groups?h(o,{..._,search:I,itemRefs:F,onItemSelect:P,onItemKeyDown:N,onSearchFilter:k,CustomMenuItemComponent:A}):h(c,{..._,search:I,itemRefs:F,onAddItem:_.onAddItem?M:void 0,onItemSelect:P,onItemKeyDown:N,onSearchFilter:k,CustomMenuItemComponent:A})},`select-menu-${I}`)]})};export{_ as Select};
1
+ import{useSelect as e}from"../../atoms/hooks/useSelect.js";import{InputExplanation as t}from"../InputExplanation/InputExplanation.js";import{useOutsideClick as n}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{SelectItemSkeleton as r}from"./SelectItemSkeleton.js";import{LabelWrapper as i,PersistentComboBoxWrapper as a,PersistentStickyWrapper as o,StyledMenu as s}from"./Select.styles.js";import{GroupedSelectMenu as c}from"./GroupedSelectMenu.js";import{GroupedSelectPersistent as l}from"./GroupedSelectPersistent.js";import{ListSelectMenu as u}from"./ListSelectMenu.js";import{ListSelectPersistent as d}from"./ListSelectPersistent.js";import{SearchBar as f}from"./SearchBar.js";import{useMemo as p,useRef as m}from"react";import{Label as h}from"@equinor/eds-core-react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";const y=y=>{let{clearable:ee=!0,loading:b=!1,disabled:x=!1,lightBackground:S=!1,underlineHighlight:C=!1,sortValues:w=!0,placeholder:T=`Select...`,label:E,meta:D,id:O=`amplify-combobox-${E}`,inDialog:k=!1,onSearchFilter:A,CustomMenuItemComponent:j,mode:M=`menu`,explanation:N,explanationPosition:P}=y,{handleOnAddItem:F,handleOnItemKeyDown:I,handleOnItemSelect:L,itemRefs:R,search:z,handleOnClose:B,open:V,handleOnClear:H,handleOnSearchChange:U,handleOnSearchKeyDown:W,handleToggleOpen:G,selectedValues:K,handleOnOpen:q,handleOnRemoveItem:J,searchRef:Y,tryingToRemoveItem:X}=e({...y,clearable:ee,loading:b,disabled:x,lightBackground:S,underlineHighlight:C,sortValues:w,placeholder:T}),Z=m(null),Q=m(null),$=p(()=>!!E||!!D,[E,D]);if(n(Q.current,e=>{k&&V&&e.target&&Z.current&&Q.current&&!Z.current.contains(e.target)&&!Q.current?.contains(e.target)&&B()}),M===`persistent`&&`value`in y&&y.value)throw Error(`You cannot use SingleSelect with persistent mode`);if(M===`persistent`){let e=`groups`in y&&y.groups?_(l,{...y,search:z,itemRefs:R,onItemSelect:L,onItemKeyDown:I,onSearchFilter:A,CustomMenuItemComponent:j}):_(d,{...y,search:z,itemRefs:R,onAddItem:y.onAddItem?F:void 0,onItemSelect:L,onItemKeyDown:I,onSearchFilter:A,CustomMenuItemComponent:j});return v(g,{children:[$&&_(h,{label:v(i,{children:[E,N&&_(t,{position:P,children:N})]}),meta:D,htmlFor:O,disabled:x}),v(a,{$maxHeight:y.mode===`persistent`&&y.maxHeight?y.maxHeight:void 0,$shouldShowLabel:$,children:[_(o,{children:_(f,{props:y,anchorRef:Z,search:z,searchRef:Y,open:V,selectedValues:K,handleOnOpen:q,handleToggleOpen:G,handleOnRemoveItem:J,tryingToRemoveItem:X,handleOnSearchChange:U,handleOnSearchKeyDown:W,handleOnClear:H})}),y.loading?v(g,{children:[_(r,{}),_(r,{}),_(r,{})]}):e]})]})}return v(`div`,{children:[$&&_(h,{label:v(i,{children:[E,N&&_(t,{position:P,children:N})]}),meta:D,htmlFor:O,disabled:x}),_(f,{props:y,anchorRef:Z,search:z,searchRef:Y,open:V,selectedValues:K,handleOnOpen:q,handleToggleOpen:G,handleOnRemoveItem:J,tryingToRemoveItem:X,handleOnSearchChange:U,handleOnSearchKeyDown:W,handleOnClear:H}),V&&_(s,{ref:Q,open:!0,id:`combobox-menu`,anchorEl:Z.current,onClose:B,placement:`bottom`,style:{width:`${Z.current?.clientWidth}px`,maxWidth:`${Z.current?.clientWidth}px`},children:`groups`in y&&y.groups?_(c,{...y,search:z,itemRefs:R,onItemSelect:L,onItemKeyDown:I,onSearchFilter:A,CustomMenuItemComponent:j}):_(u,{...y,search:z,itemRefs:R,onAddItem:y.onAddItem?F:void 0,onItemSelect:L,onItemKeyDown:I,onSearchFilter:A,CustomMenuItemComponent:j})},`select-menu-${z}`)]})};export{y as Select};
@@ -1,8 +1,8 @@
1
1
  import { BaseChipProps, ClickableChipProps, DeletableChipProps } from "../Chip/Chip.js";
2
- import * as react48 from "react";
2
+ import * as react43 from "react";
3
3
  import "@equinor/eds-core-react";
4
4
  import "styled-components";
5
- import * as styled_components_dist_types10 from "styled-components/dist/types";
5
+ import * as styled_components_dist_types8 from "styled-components/dist/types";
6
6
 
7
7
  //#region src/molecules/Select/Select.styles.d.ts
8
8
 
@@ -11,12 +11,12 @@ interface ComboBoxChipProps {
11
11
  $lightBackground?: boolean;
12
12
  className: string;
13
13
  }
14
- declare const ComboBoxChip: styled_components_dist_types10.IStyledComponentBase<"web", styled_components_dist_types10.Substitute<((Omit<react48.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
14
+ declare const ComboBoxChip: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<((Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
15
15
  onClick?: undefined;
16
16
  onDelete?: undefined;
17
- }) | ClickableChipProps | DeletableChipProps)) & react48.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types10.BaseObject, ComboBoxChipProps>> & string & Omit<react48.ForwardRefExoticComponent<(Omit<react48.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
17
+ }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>) & styled_components_dist_types8.BaseObject, ComboBoxChipProps>> & string & Omit<react43.ForwardRefExoticComponent<(Omit<react43.HTMLAttributes<HTMLDivElement | HTMLButtonElement>, "onClick"> & ((BaseChipProps & {
18
18
  onClick?: undefined;
19
19
  onDelete?: undefined;
20
- }) | ClickableChipProps | DeletableChipProps)) & react48.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react48.Component<any, {}, any>>;
20
+ }) | ClickableChipProps | DeletableChipProps)) & react43.RefAttributes<HTMLDivElement | HTMLButtonElement>>, keyof react43.Component<any, {}, any>>;
21
21
  //#endregion
22
22
  export { ComboBoxChip };
@@ -6,6 +6,10 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
6
6
  background-color: ${r.ui.background__default.rgba};
7
7
  `}
8
8
  `,p=u.span`
9
+ display: flex;
10
+ gap: ${i.x_small};
11
+ width: 100%;
12
+ `,m=u.span`
9
13
  display: flex;
10
14
  gap: ${i.small};
11
15
  align-items: center;
@@ -27,7 +31,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
27
31
  border-bottom: 1px solid ${r.ui.background__heavy.rgba};
28
32
  padding-bottom: ${i.small};
29
33
  `}
30
- `,m=u.div`
34
+ `,h=u.div`
31
35
  position: relative;
32
36
  display: grid;
33
37
  grid-template-columns: 1fr auto;
@@ -97,7 +101,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
97
101
  width: calc(100% - 24px);
98
102
  }
99
103
  }
100
- `,h=u.section`
104
+ `,g=u.section`
101
105
  position: relative;
102
106
  display: flex;
103
107
  flex-wrap: wrap;
@@ -139,7 +143,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
139
143
  }
140
144
  }
141
145
  }
142
- `,g=u(s)`
146
+ `,_=u(s)`
143
147
  position: absolute;
144
148
  top: 50%;
145
149
  transform: translate(0, -50%);
@@ -159,13 +163,13 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
159
163
  fill: ${r.interactive.disabled__text.rgba};
160
164
  }
161
165
  }
162
- `,_=u(o)`
166
+ `,v=u(o)`
163
167
  background: ${({$tryingToRemove:e,$lightBackground:t})=>e?r.interactive.primary__hover_alt.rgba:t?r.ui.background__light.rgba:r.ui.background__default.rgba} !important;
164
- `,v=u.div`
168
+ `,y=u.div`
165
169
  padding: ${i.small} 0;
166
- `,y=u(l)`
170
+ `,b=u(l)`
167
171
  padding: ${i.small} 0 ${i.small} ${i.medium};
168
- `,b=u(c.Item)`
172
+ `,x=u(c.Item)`
169
173
  flex-grow: 1;
170
174
  padding-left: 10px;
171
175
 
@@ -189,16 +193,16 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
189
193
  background: ${r.interactive.primary__selected_hover.rgba};
190
194
  }
191
195
  `:``}}
192
- `,x=u.div`
196
+ `,S=u.div`
193
197
  border: 1px solid ${r.ui.background__heavy.rgba};
194
198
  border-radius: ${a.corners.borderRadius};
195
199
  overflow: auto;
196
200
  background-color: ${r.ui.background__default.rgba};
197
201
  height: ${({$shouldShowLabel:e,$maxHeight:t})=>t||(e?d`calc(100% - 16px)`:`100%`)};
198
- `,S=u.div`
202
+ `,C=u.div`
199
203
  position: sticky;
200
204
  top: 0;
201
- `,C=u.button`
205
+ `,w=u.button`
202
206
  width: 100%;
203
207
  display: flex;
204
208
  align-items: center;
@@ -215,29 +219,29 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
215
219
  &:focus-visible {
216
220
  outline: 2px dashed ${r.interactive.primary__resting.rgba};
217
221
  }
218
- `,w=u.hr`
222
+ `,T=u.hr`
219
223
  height: calc(100% + ${i.medium} * 2);
220
224
  justify-self: center;
221
225
  width: ${i.x_large};
222
226
  min-width: ${i.x_large};
223
- `,T=u(l)`
227
+ `,E=u(l)`
224
228
  user-select: none;
225
229
  pointer-events: none;
226
230
  position: absolute;
227
231
  color: ${r.text.static_icons__tertiary.rgba};
228
232
  top: calc(50%);
229
233
  transform: translate(0, -50%);
230
- `,E=u(T)`
234
+ `,D=u(E)`
231
235
  white-space: nowrap;
232
236
  overflow: hidden;
233
237
  text-overflow: ellipsis;
234
238
  color: ${r.text.static_icons__default.rgba};
235
239
  max-width: 100%;
236
- `,D=u(l)`
237
- margin: ${i.medium};
238
240
  `,O=u(l)`
241
+ margin: ${i.medium};
242
+ `,k=u(l)`
239
243
  margin-left: ${i.medium};
240
- `,k=u(c)`
244
+ `,A=u(c)`
241
245
  max-height: 20rem;
242
246
  max-width: inherit;
243
247
  overflow-y: auto;
@@ -245,10 +249,10 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
245
249
  width: inherit;
246
250
  max-width: inherit;
247
251
  }
248
- `,A=u.div`
252
+ `,j=u.div`
249
253
  display: flex;
250
254
  align-items: center;
251
- `,j=u(s)`
255
+ `,M=u(s)`
252
256
  width: 36px;
253
257
  height: 36px;
254
- `;export{g as ClearButton,_ as ComboBoxChip,m as Container,y as GroupTitle,p as HelperWrapper,w as MenuItemSpacer,A as MenuItemWrapper,O as NoItemsFoundText,D as NoTagFoundText,x as PersistentComboBoxWrapper,v as PersistentGroupsWrapper,C as PersistentListItem,S as PersistentStickyWrapper,T as PlaceholderText,h as Section,j as SmallButton,k as StyledMenu,b as StyledMenuItem,E as ValueText,f as Wrapper};
258
+ `;export{_ as ClearButton,v as ComboBoxChip,h as Container,b as GroupTitle,m as HelperWrapper,p as LabelWrapper,T as MenuItemSpacer,j as MenuItemWrapper,k as NoItemsFoundText,O as NoTagFoundText,S as PersistentComboBoxWrapper,y as PersistentGroupsWrapper,w as PersistentListItem,C as PersistentStickyWrapper,E as PlaceholderText,g as Section,M as SmallButton,A as StyledMenu,x as StyledMenuItem,D as ValueText,f as Wrapper};
@@ -1,5 +1,6 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
2
  import { FC, KeyboardEvent, ReactNode, RefObject } from "react";
3
+ import { TooltipProps } from "@equinor/eds-core-react";
3
4
 
4
5
  //#region src/molecules/Select/Select.types.d.ts
5
6
  interface SelectOptionRequired {
@@ -94,6 +95,8 @@ type CommonSelectProps<T extends SelectOptionRequired> = {
94
95
  inDialog?: boolean;
95
96
  onOpenCallback?: (value: boolean) => void;
96
97
  onSearchFilter?: (searchValue: string, item: T) => void;
98
+ explanation?: string;
99
+ explanationPosition?: TooltipProps['placement'];
97
100
  'data-testid'?: string;
98
101
  } & CustomMenuItemComponentProps<T>;
99
102
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { CommonSelectProps, GroupedSelectProps, ListSelectProps, SelectOptionRequired, SingleSelectCommon } from "../Select.types.js";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/molecules/Select/SingleSelect/SingleSelect.d.ts
5
5
  type SingleSelectProps<T extends SelectOptionRequired> = CommonSelectProps<T> & SingleSelectCommon<T> & (ListSelectProps<T> | GroupedSelectProps<T>);
@@ -15,6 +15,6 @@ type SingleSelectProps<T extends SelectOptionRequired> = CommonSelectProps<T> &
15
15
  * @param onSearchFilter - Custom filter function for search, default is "item.label.match(new RegExp(searchValue, 'i'))"
16
16
  * @param customMenuItemComponent - Custom component to use for rendering menu item, defaults to a checkbox with label
17
17
  */
18
- declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>): react_jsx_runtime4.JSX.Element;
18
+ declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>): react_jsx_runtime3.JSX.Element;
19
19
  //#endregion
20
20
  export { SingleSelect, SingleSelectProps };
@@ -1,4 +1,4 @@
1
- import * as react107 from "react";
1
+ import * as react104 from "react";
2
2
  import { CheckboxProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Checkbox/Checkbox.d.ts
@@ -7,6 +7,6 @@ interface CheckboxProps$1 extends CheckboxProps {
7
7
  outlined?: boolean;
8
8
  error?: boolean;
9
9
  }
10
- declare const Checkbox$1: react107.ForwardRefExoticComponent<CheckboxProps$1 & react107.RefAttributes<HTMLInputElement>>;
10
+ declare const Checkbox$1: react104.ForwardRefExoticComponent<CheckboxProps$1 & react104.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
@@ -1,4 +1,4 @@
1
- import * as react109 from "react";
1
+ import * as react106 from "react";
2
2
  import { RadioProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Radio/Radio.d.ts
@@ -7,6 +7,6 @@ interface RadioProps$1 extends RadioProps {
7
7
  outlined?: boolean;
8
8
  error?: boolean;
9
9
  }
10
- declare const Radio$1: react109.ForwardRefExoticComponent<RadioProps$1 & react109.RefAttributes<HTMLInputElement>>;
10
+ declare const Radio$1: react106.ForwardRefExoticComponent<RadioProps$1 & react106.RefAttributes<HTMLInputElement>>;
11
11
  //#endregion
12
12
  export { Radio$1 as Radio, RadioProps$1 as RadioProps };
@@ -1,10 +1,10 @@
1
- import * as react111 from "react";
1
+ import * as react108 from "react";
2
2
  import { SwitchProps } from "@equinor/eds-core-react";
3
3
 
4
4
  //#region src/molecules/SelectionControls/Switch/Switch.d.ts
5
5
  interface SwitchProps$1 extends SwitchProps {
6
6
  outlined?: boolean;
7
7
  }
8
- declare const Switch$1: react111.ForwardRefExoticComponent<SwitchProps$1 & react111.RefAttributes<HTMLInputElement>>;
8
+ declare const Switch$1: react108.ForwardRefExoticComponent<SwitchProps$1 & react108.RefAttributes<HTMLInputElement>>;
9
9
  //#endregion
10
10
  export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
@@ -1,5 +1,5 @@
1
- import * as react46 from "react";
2
- import * as styled_components_dist_types8 from "styled-components/dist/types";
1
+ import * as react39 from "react";
2
+ import * as styled_components_dist_types6 from "styled-components/dist/types";
3
3
  import * as styled_components_dist_models_Keyframes0 from "styled-components/dist/models/Keyframes";
4
4
 
5
5
  //#region src/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts
@@ -7,6 +7,6 @@ declare const skeletonBaseloading: styled_components_dist_models_Keyframes0.defa
7
7
  interface SkeletonBaseProps {
8
8
  $offset?: number;
9
9
  }
10
- declare const SkeletonBase: styled_components_dist_types8.IStyledComponentBase<"web", styled_components_dist_types8.Substitute<react46.DetailedHTMLProps<react46.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonBaseProps>> & string;
10
+ declare const SkeletonBase: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<react39.DetailedHTMLProps<react39.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonBaseProps>> & string;
11
11
  //#endregion
12
12
  export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
@@ -1 +1 @@
1
- import{ActiveLine as e,Button as t,Count as n,Line as r}from"./Tab.styles.js";import{Icon as i,Typography as a}from"@equinor/eds-core-react";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";function l({value:l,label:u,selectedIndex:d,index:f,onChange:p,onHover:m,centered:h,animated:g,disabled:_,leadingIcon:v,count:y}){let b=()=>{p(l)},x=()=>{m&&m(l)};return c(t,{role:`tab`,"aria-selected":d===f,onClick:b,onMouseEnter:x,$centered:h,disabled:_,children:[v?s(i,{data:v,size:24}):null,s(a,{as:`label`,variant:`menu_tabs`,group:`navigation`,children:u}),y===void 0?null:s(n,{className:`count`,children:s(a,{as:`span`,variant:`breadcrumb`,group:`navigation`,children:y})}),g?c(o,{children:[s(r,{className:`static-line`}),s(e,{animate:{left:`${(d-f)*100}%`}})]}):s(r,{className:`static-line`,$active:d===f})]})}export{l as Tab};
1
+ import{colors as e}from"../../atoms/style/colors.js";import{getVariantIcon as t}from"../../atoms/utils/forms.js";import{ActiveLine as n,Button as r,Count as i,Line as a}from"./Tab.styles.js";import{Icon as o,Typography as s}from"@equinor/eds-core-react";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";const d={warning:e.interactive.warning__text.rgba,error:e.interactive.danger__text.rgba};function f({value:e,label:f,selectedIndex:p,index:m,onChange:h,onHover:g,centered:_,animated:v,disabled:y,leadingIcon:b,trailingIcon:x,variant:S,count:C}){let w=S?t(S):b,T=()=>{h(e)},E=()=>{g&&g(e)};return u(r,{role:`tab`,"aria-selected":p===m,onClick:T,onMouseEnter:E,$centered:_,disabled:y,children:[w?l(o,{data:w,size:24,style:S?{fill:d[S]}:void 0}):null,l(s,{as:`label`,variant:`menu_tabs`,group:`navigation`,children:f}),C===void 0?null:l(i,{className:`count`,children:l(s,{as:`span`,variant:`breadcrumb`,group:`navigation`,children:C})}),x?l(o,{data:x,size:24}):null,v?u(c,{children:[l(a,{className:`static-line`}),l(n,{animate:{left:`${(p-m)*100}%`}})]}):l(a,{className:`static-line`,$active:p===m})]})}export{f as Tab};
@@ -35,6 +35,9 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
35
35
 
36
36
  &:hover:not(:disabled) {
37
37
  background: ${e.interactive.primary__hover_alt.rgba};
38
+ > label {
39
+ color: ${e.text.static_icons__secondary.rgba};
40
+ }
38
41
 
39
42
  &[aria-selected='true'] {
40
43
  > svg {
@@ -1,3 +1,4 @@
1
+ import { Variants } from "../../atoms/types/variants.js";
1
2
  import { IconData } from "@equinor/eds-icons";
2
3
 
3
4
  //#region src/molecules/Tabs/Tabs.types.d.ts
@@ -6,6 +7,8 @@ interface Tab<T> {
6
7
  label: string;
7
8
  count?: number;
8
9
  leadingIcon?: IconData;
10
+ trailingIcon?: IconData;
11
+ variant?: Extract<Variants, 'warning' | 'error'>;
9
12
  disabled?: boolean;
10
13
  }
11
14
  interface Tabs<T> {
@@ -1,12 +1,14 @@
1
1
  import { Variants } from "../../atoms/types/variants.js";
2
2
  import { FC, InputHTMLAttributes, TextareaHTMLAttributes } from "react";
3
- import { TextFieldProps } from "@equinor/eds-core-react";
3
+ import { TextFieldProps, TooltipProps } from "@equinor/eds-core-react";
4
4
 
5
5
  //#region src/molecules/TextField/TextField.d.ts
6
- type TextFieldProps$1 = Omit<TextFieldProps, 'variant' | 'inputRef'> & {
6
+ type TextFieldProps$1 = Omit<TextFieldProps, 'variant'> & {
7
7
  variant?: Variants;
8
8
  loading?: boolean;
9
9
  maxCharacters?: number;
10
+ explanation?: string;
11
+ explanationPosition?: TooltipProps['placement'];
10
12
  } & (TextareaHTMLAttributes<HTMLTextAreaElement> | InputHTMLAttributes<HTMLInputElement>);
11
13
  /**
12
14
  * @param loading - Show loading skeleton on top of the text field.
@@ -1,4 +1,4 @@
1
- import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS as t,colors as n}from"../../atoms/style/colors.js";import{spacings as r}from"../../atoms/style/spacings.js";import{shape as i}from"../../atoms/style/index.js";import{getSkeletonHeight as a,getSkeletonTop as o}from"../../atoms/utils/skeleton.js";import{SkeletonBase as s}from"../Skeleton/SkeletonBase/SkeletonBase.js";import{useEffect as c,useRef as l,useState as u}from"react";import{TextField as d,Typography as f}from"@equinor/eds-core-react";import p,{css as m}from"styled-components";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _=p.div`
1
+ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS as t,colors as n}from"../../atoms/style/colors.js";import{spacings as r}from"../../atoms/style/spacings.js";import{shape as i}from"../../atoms/style/index.js";import{getSkeletonHeight as a,getSkeletonTop as o}from"../../atoms/utils/skeleton.js";import{SkeletonBase as s}from"../Skeleton/SkeletonBase/SkeletonBase.js";import{InputExplanation as c}from"../InputExplanation/InputExplanation.js";import{useEffect as l,useRef as u,useState as d}from"react";import{TextField as f,Typography as p}from"@equinor/eds-core-react";import m,{css as h}from"styled-components";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v=m.div`
2
2
  position: relative;
3
3
  height: fit-content;
4
4
  input,
@@ -10,7 +10,7 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
10
10
  &::placeholder {
11
11
  opacity: 1;
12
12
  }
13
- &:hover {
13
+ &:hover:not(:disabled) {
14
14
  background: ${n.ui.background__light_medium.rgba};
15
15
  }
16
16
  &:disabled {
@@ -27,14 +27,14 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
27
27
  margin-right: ${({$helperRightWidth:e})=>e?`calc(${e}px + ${r.medium})`:0};
28
28
  }
29
29
 
30
- ${({$variant:e,$disabled:r})=>r?m`
30
+ ${({$variant:e,$disabled:r})=>r?h`
31
31
  div {
32
32
  outline: none !important;
33
33
  }
34
34
  p {
35
35
  color: ${n.interactive.disabled__text.rgba} !important;
36
36
  }
37
- `:e===void 0?m`
37
+ `:e===void 0?h`
38
38
  input:hover,
39
39
  textarea:hover {
40
40
  box-shadow: inset 0 -2px 0 0
@@ -48,8 +48,8 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
48
48
  ${n.interactive.primary__resting.rgba};
49
49
  }
50
50
  }
51
- `:m`
52
- ${e===`dirty`&&m`
51
+ `:h`
52
+ ${e===`dirty`&&h`
53
53
  input,
54
54
  textarea {
55
55
  box-shadow: inset 0 -2px 0 0 ${t[e]};
@@ -71,12 +71,16 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
71
71
  }
72
72
  }
73
73
  `}
74
- `,v=p(s)`
74
+ `,y=m(s)`
75
75
  position: absolute;
76
76
  left: ${r.small};
77
77
  border-radius: ${i.corners.borderRadius};
78
78
  transform: translateY(${r.x_small});
79
- `,y=p(f)`
79
+ `,b=m(p)`
80
80
  position: absolute;
81
81
  right: ${r.small};
82
- `,b=e=>{if(e.maxCharacters&&`type`in e&&e.type!==`text`)throw Error('`maxCharacters` prop is not supported for input types other than "text".');let i={...e,variant:e.variant===`dirty`?void 0:e.variant},s=e.loading?void 0:e.variant,f=o(e),p=a(e),m=l(`${Math.max(20,Math.random()*80)}%`),[b,x]=u(typeof e.value==`string`?e.value.length:0),[S,C]=u(0),w=e=>{if(e){let t=e.getBoundingClientRect().width;C(t)}},T=t=>{e.onChange&&e.onChange(t),e.maxCharacters&&x(t.target.value.length)},E=t=>{e.maxCharacters&&t&&t.value.length!==b&&x(t.value.length)};return c(()=>{typeof e.value==`string`&&e.maxCharacters&&e.value.length!==b&&x(e.value.length)},[b,e.maxCharacters,e.value]),g(_,{$variant:s,$disabled:e.loading?!1:e.disabled,$helperRightWidth:S,style:{marginBottom:!e.helperText&&e.maxCharacters?`calc(${r.small} + 1rem)`:0},children:[h(d,{...i,inputRef:E,disabled:e.loading||e.disabled,onChange:T}),e.loading&&h(v,{className:`skeleton`,role:`progressbar`,style:{top:f,height:p,width:m.current}}),e.maxCharacters&&g(y,{ref:w,variant:`helper`,group:`input`,color:i.variant?t[i.variant]:n.text.static_icons__tertiary.rgba,style:{bottom:e.helperText?`0`:`calc((${r.small} + 1rem) * -1)`},children:[b,` / `,e.maxCharacters]})]})};export{b as TextField};
82
+ `,x=m.div`
83
+ display: flex;
84
+ gap: ${r.x_small};
85
+ align-items: center;
86
+ `,S=e=>{if(e.maxCharacters&&`type`in e&&e.type!==`text`)throw Error('`maxCharacters` prop is not supported for input types other than "text".');if(e.explanation&&!e.label)throw Error("`explanation` prop requires a `label` to be set on the TextField.");let i={...e,variant:e.variant===`dirty`?void 0:e.variant},s=e.loading?void 0:e.variant,p=o(e),m=a(e),h=u(`${Math.max(20,Math.random()*80)}%`),[S,C]=d(typeof e.value==`string`?e.value.length:0),[w,T]=d(0),E=e=>{if(e){let t=e.getBoundingClientRect().width;T(t)}},D=t=>{e.onChange&&e.onChange(t),e.maxCharacters&&C(t.target.value.length)};return l(()=>{typeof e.value==`string`&&e.maxCharacters&&e.value.length!==S&&C(e.value.length)},[S,e.maxCharacters,e.value]),_(v,{$variant:s,$disabled:e.loading?!1:e.disabled,$helperRightWidth:w,style:{marginBottom:!e.helperText&&e.maxCharacters?`calc(${r.small} + 1rem)`:0},children:[g(f,{...i,label:i.label?_(x,{children:[i.label,e.explanation&&g(c,{position:e.explanationPosition,children:e.explanation})]}):void 0,disabled:e.loading||e.disabled,onChange:D}),e.loading&&g(y,{className:`skeleton`,role:`progressbar`,style:{top:p,height:m,width:h.current}}),e.maxCharacters&&_(b,{ref:E,variant:`helper`,group:`input`,color:i.variant?t[i.variant]:n.text.static_icons__tertiary.rgba,style:{bottom:e.helperText?`0`:`calc((${r.small} + 1rem) * -1)`},children:[S,` / `,e.maxCharacters]})]})};export{S as TextField};
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
  import { EdsDataGridProps } from "@equinor/eds-data-grid-react";
3
3
 
4
4
  //#region src/organisms/DataGrid/DataGrid.d.ts
5
- declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react_jsx_runtime0.JSX.Element;
5
+ declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react_jsx_runtime4.JSX.Element;
6
6
  //#endregion
7
7
  export { DataGrid };
@@ -1,5 +1,5 @@
1
1
  import { FilterProps } from "./Filter.types.js";
2
- import * as react_jsx_runtime7 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/organisms/Filter/Filter.d.ts
5
5
 
@@ -32,6 +32,6 @@ declare function Filter<T extends string>({
32
32
  id,
33
33
  openOnFocus,
34
34
  ...rest
35
- }: FilterProps<T>): react_jsx_runtime7.JSX.Element;
35
+ }: FilterProps<T>): react_jsx_runtime6.JSX.Element;
36
36
  //#endregion
37
37
  export { Filter };
@@ -1,6 +1,6 @@
1
1
  import { SelectOptionRequired } from "../../molecules/Select/Select.types.js";
2
2
  import { FilterProps } from "./Filter.types.js";
3
- import * as react_jsx_runtime6 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/organisms/Filter/QuickFilter.d.ts
6
6
  interface QuickFilterProps<T extends string> {
@@ -14,6 +14,6 @@ declare function QuickFilter<T extends string>({
14
14
  items,
15
15
  onQuickFilter,
16
16
  label
17
- }: QuickFilterProps<T>): react_jsx_runtime6.JSX.Element;
17
+ }: QuickFilterProps<T>): react_jsx_runtime7.JSX.Element;
18
18
  //#endregion
19
19
  export { QuickFilter };
@@ -1 +1 @@
1
- import{environment as e}from"../../atoms/utils/auth_environment.js";import{useEffect as t}from"react";const n=e.getAppName(import.meta.env.VITE_NAME),r=({title:e,children:r})=>(t(()=>{document.title!==e&&(document.title=`${n} - ${e}`)},[e]),r);export{r as PageTitle};
1
+ import{environment as e}from"../../atoms/utils/auth_environment.js";import{useEffect as t}from"react";const n=e.getAppName(import.meta.env.VITE_NAME),r=({title:e,children:r})=>(t(()=>{let t=`${n} - ${e}`;document.title!==t&&(document.title=t)},[e]),r);export{r as PageTitle};
@@ -1,4 +1,4 @@
1
- import * as react8 from "react";
1
+ import * as react113 from "react";
2
2
  import { ReactNode } from "react";
3
3
  import { ReleaseNote } from "@equinor/subsurface-app-management";
4
4
 
@@ -7,9 +7,9 @@ type ReleaseNoteProps = {
7
7
  actionMenu?: ReactNode;
8
8
  expanded?: boolean;
9
9
  } & ReleaseNote;
10
- declare const ReleaseNote$1: react8.ForwardRefExoticComponent<{
10
+ declare const ReleaseNote$1: react113.ForwardRefExoticComponent<{
11
11
  actionMenu?: ReactNode;
12
12
  expanded?: boolean;
13
- } & ReleaseNote & react8.RefAttributes<HTMLDivElement>>;
13
+ } & ReleaseNote & react113.RefAttributes<HTMLDivElement>>;
14
14
  //#endregion
15
15
  export { ReleaseNote$1 as ReleaseNote, ReleaseNoteProps };
@@ -1 +1 @@
1
- import{useSideBar as e}from"../../../providers/SideBarProvider.js";import{OptionalTooltip as t}from"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{IconContainer as n,ItemText as r,Link as i,MenuItemWrapper as a}from"./MenuItem.styles.js";import{canNavigate as o,isCurrentUrl as s}from"./MenuItem.utils.js";import{useCallback as c,useMemo as l}from"react";import{Icon as u}from"@equinor/eds-core-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useLocation as p}from"@tanstack/react-router";import{Feature as m}from"@equinor/subsurface-app-management";const h=({icon:h,link:g,onClick:_,replace:v=!1,name:y,disabled:b=!1,featureUuid:x,...S})=>{let{pathname:C}=p(),w=s({currentUrl:C,link:g}),{isOpen:T}=e(),E=o({currentUrl:C,link:g,replace:v,disabled:b}),D=c(e=>{if(!E){e.preventDefault();return}_&&_()},[E,_]),O=l(()=>d(t,{title:y,placement:`right`,children:d(a,{children:f(i,{to:g,$active:w,"aria-disabled":b,$disabled:b,onClick:D,tabIndex:0,"data-testid":`sidebar-menu-item`,replace:v,...S,children:[d(n,{"data-testid":`icon-container`,children:d(u,{data:h,size:24})}),T&&d(r,{$active:w,$disabled:b,variant:`button`,group:`navigation`,children:y})]})})}),[b,D,h,w,T,g,y,S,v]);return x?d(m,{featureUuid:x,children:O}):O};export{h as BasicMenuItem};
1
+ import{useSideBar as e}from"../../../providers/SideBarProvider.js";import{OptionalTooltip as t}from"../../../molecules/OptionalTooltip/OptionalTooltip.js";import{IconContainer as n,ItemText as r,Link as i,MenuItemWrapper as a}from"./MenuItem.styles.js";import{canNavigate as o,isCurrentUrl as s}from"./MenuItem.utils.js";import{useCallback as c,useMemo as l}from"react";import{Icon as u}from"@equinor/eds-core-react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useLocation as p}from"@tanstack/react-router";import{Feature as m}from"@equinor/subsurface-app-management";const h=({icon:h,onClick:g,replace:_=!1,name:v,disabled:y=!1,featureUuid:b,...x})=>{let{pathname:S}=p(),C=s({currentUrl:S,link:x.to}),{isOpen:w}=e(),T=o({currentUrl:S,link:x.to,replace:_,disabled:y}),E=c(e=>{if(!T){e.preventDefault();return}g&&g()},[T,g]),D=l(()=>d(t,{title:v,placement:`right`,children:d(a,{children:f(i,{$active:C,"aria-disabled":y,$disabled:y,onClick:E,tabIndex:0,"data-testid":`sidebar-menu-item`,...x,children:[d(n,{"data-testid":`icon-container`,children:d(u,{data:h,size:24})}),w&&d(r,{$active:C,$disabled:y,variant:`button`,group:`navigation`,children:v})]})})}),[y,E,h,C,w,v,x]);return b?d(m,{featureUuid:b,children:D}):D};export{h as BasicMenuItem};
@@ -45,4 +45,4 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
45
45
  > p:first-child {
46
46
  grid-column: 2;
47
47
  }
48
- `,D=({icon:t,name:s,items:g,..._})=>{let{pathname:D}=w(),O=r(D),{isOpen:k}=n(),A=r(k),j=g.some(e=>l({currentUrl:D,link:e.link})),M=f(null),[N,P]=p(!1),F=()=>P(e=>!e);u(()=>{(A&&!k&&N||O!==D&&N&&!k)&&P(!1)},[N,k,D,A,O]);let I=d(()=>y(i,{title:s,placement:`right`,children:y(c,{children:b(T,{ref:M,$open:k,$active:j,$expanded:N,onClick:F,..._,children:[y(a,{"data-testid":`icon-container`,children:y(m,{data:t,size:24,color:e.interactive.primary__resting.rgba})}),k&&b(v,{children:[y(o,{$active:!1,$disabled:!1,variant:`button`,group:`navigation`,children:s}),y(m,{data:N?S:x,size:24,color:e.interactive.primary__resting.rgba})]})]})})}),[N,t,j,k,s,_]);return N&&k?b(v,{children:[I,g.map((e,t)=>y(E,{to:e.link,$active:l({currentUrl:D,link:e.link}),$disabled:e.disabled||!1,children:y(o,{$active:j,$disabled:e.disabled||!1,variant:`button`,group:`navigation`,children:e.name})},t))]}):N?b(v,{children:[I,y(h,{open:!0,anchorEl:M.current,placement:`right-start`,onClose:F,children:g.map(e=>y(h.Item,{as:C,active:l({currentUrl:D,link:e.link}),style:{width:`256px`},to:e.link,children:e.name},e.link))})]}):I};export{D as CollapsableMenuItem};
48
+ `,D=({icon:t,name:s,items:g,..._})=>{let{pathname:D}=w(),O=r(D),{isOpen:k}=n(),A=r(k),j=g.some(e=>l({currentUrl:D,link:e.to})),M=f(null),[N,P]=p(!1),F=()=>P(e=>!e);u(()=>{(A&&!k&&N||O!==D&&N&&!k)&&P(!1)},[N,k,D,A,O]);let I=d(()=>y(i,{title:s,placement:`right`,children:y(c,{children:b(T,{ref:M,$open:k,$active:j,$expanded:N,onClick:F,..._,children:[y(a,{"data-testid":`icon-container`,children:y(m,{data:t,size:24,color:e.interactive.primary__resting.rgba})}),k&&b(v,{children:[y(o,{$active:!1,$disabled:!1,variant:`button`,group:`navigation`,children:s}),y(m,{data:N?S:x,size:24,color:e.interactive.primary__resting.rgba})]})]})})}),[N,t,j,k,s,_]);return N&&k?b(v,{children:[I,g.map((e,t)=>y(E,{$active:l({currentUrl:D,link:e.to}),$disabled:e.disabled||!1,...e,children:y(o,{$active:j,$disabled:e.disabled||!1,variant:`button`,group:`navigation`,children:e.name})},t))]}):N?b(v,{children:[I,y(h,{open:!0,anchorEl:M.current,placement:`right-start`,onClose:F,children:g.map(e=>y(h.Item,{as:C,active:l({currentUrl:D,link:e.to}),style:{width:`256px`},...e,children:e.name},e.to))})]}):I};export{D as CollapsableMenuItem};
@@ -3,10 +3,6 @@ import { FC } from "react";
3
3
 
4
4
  //#region src/organisms/SideBar/MenuItem/MenuItem.d.ts
5
5
  type MenuItemProps = {
6
- /**
7
- * @deprecated - currentUrl is not needed anymore, useLocation from react router is used internally
8
- */
9
- currentUrl?: string;
10
6
  disabled?: boolean;
11
7
  } & SideBarMenuItem;
12
8
  declare const MenuItem: FC<MenuItemProps>;
@@ -1,6 +1,6 @@
1
- import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{Link as i}from"@tanstack/react-router";const a=r.span`
1
+ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}from"../../../atoms/style/spacings.js";import{Typography as n}from"@equinor/eds-core-react";import r from"styled-components";import{createLink as i}from"@tanstack/react-router";const a=r.span`
2
2
  width: 100%;
3
- `,o=r(i)`
3
+ `,o=i(r.a`
4
4
  display: flex;
5
5
  align-self: stretch;
6
6
  align-items: center;
@@ -24,7 +24,7 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
24
24
  fill: ${({$disabled:t,$active:n})=>!t&&!n&&e.interactive.primary__hover.rgba};
25
25
  }
26
26
  }
27
- `,s=r.div`
27
+ `),s=r.div`
28
28
  display: flex;
29
29
  padding: ${t.x_small};
30
30
  align-items: center;
@@ -1,4 +1,4 @@
1
- import * as react113 from "react";
1
+ import * as react129 from "react";
2
2
  import { HTMLAttributes, ReactNode } from "react";
3
3
 
4
4
  //#region src/organisms/SideBar/SideBar.d.ts
@@ -16,6 +16,6 @@ interface SideBarWithCreate extends SideBarProps {
16
16
  createDisabled?: boolean;
17
17
  createActive?: boolean;
18
18
  }
19
- declare const SideBar: react113.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react113.RefAttributes<HTMLDivElement>>;
19
+ declare const SideBar: react129.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react129.RefAttributes<HTMLDivElement>>;
20
20
  //#endregion
21
21
  export { SideBar };
@@ -1,10 +1,10 @@
1
- import * as react123 from "react";
1
+ import * as react137 from "react";
2
2
 
3
3
  //#region src/organisms/Status/Action.d.ts
4
4
  interface ActionProps {
5
5
  onClick: () => void;
6
6
  buttonText?: string;
7
7
  }
8
- declare const Action: react123.ForwardRefExoticComponent<ActionProps & react123.RefAttributes<HTMLButtonElement>>;
8
+ declare const Action: react137.ForwardRefExoticComponent<ActionProps & react137.RefAttributes<HTMLButtonElement>>;
9
9
  //#endregion
10
10
  export { Action };
@@ -1,9 +1,9 @@
1
- import * as react125 from "react";
1
+ import * as react139 from "react";
2
2
 
3
3
  //#region src/organisms/Status/Description.d.ts
4
4
  interface DescriptionProps {
5
5
  text?: string;
6
6
  }
7
- declare const Description: react125.ForwardRefExoticComponent<DescriptionProps & react125.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Description: react139.ForwardRefExoticComponent<DescriptionProps & react139.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Description };
@@ -1,4 +1,4 @@
1
- import * as react121 from "react";
1
+ import * as react141 from "react";
2
2
 
3
3
  //#region src/organisms/Status/MissingAccesses.d.ts
4
4
  interface AccessType {
@@ -9,6 +9,6 @@ interface MissingAccessesProps {
9
9
  accesses?: AccessType[];
10
10
  text?: string;
11
11
  }
12
- declare const MissingAccesses: react121.ForwardRefExoticComponent<MissingAccessesProps & react121.RefAttributes<HTMLDivElement>>;
12
+ declare const MissingAccesses: react141.ForwardRefExoticComponent<MissingAccessesProps & react141.RefAttributes<HTMLDivElement>>;
13
13
  //#endregion
14
14
  export { MissingAccesses };
@@ -1,9 +1,9 @@
1
- import * as react119 from "react";
1
+ import * as react135 from "react";
2
2
 
3
3
  //#region src/organisms/Status/Title.d.ts
4
4
  interface TitleProps {
5
5
  title?: string;
6
6
  }
7
- declare const Title: react119.ForwardRefExoticComponent<TitleProps & react119.RefAttributes<HTMLHeadingElement>>;
7
+ declare const Title: react135.ForwardRefExoticComponent<TitleProps & react135.RefAttributes<HTMLHeadingElement>>;
8
8
  //#endregion
9
9
  export { Title };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/organisms/Status/collections/GenericError.d.ts
4
4
  interface GenericErrorProps {
@@ -14,6 +14,6 @@ declare const GenericError: ({
14
14
  redirectFallbackUrl,
15
15
  onBackClick,
16
16
  hideBackButton
17
- }: GenericErrorProps) => react_jsx_runtime12.JSX.Element;
17
+ }: GenericErrorProps) => react_jsx_runtime9.JSX.Element;
18
18
  //#endregion
19
19
  export { GenericError };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/organisms/Status/collections/MissingPermissions.d.ts
4
4
  interface MissingPermissionsProps {
@@ -14,6 +14,6 @@ declare const MissingPermissions: ({
14
14
  redirectFallbackUrl,
15
15
  onBackClick,
16
16
  hideBackButton
17
- }: MissingPermissionsProps) => react_jsx_runtime9.JSX.Element;
17
+ }: MissingPermissionsProps) => react_jsx_runtime10.JSX.Element;
18
18
  //#endregion
19
19
  export { MissingPermissions };