@equinor/amplify-component-lib 8.17.0 → 8.17.1

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.
@@ -1,15 +1,5 @@
1
- import{jsxs as r,jsx as t}from"react/jsx-runtime";import{Menu as o,Icon as i,Typography as e}from"@equinor/eds-core-react";import{radio_button_selected as s,radio_button_unselected as a,sort as n}from"@equinor/eds-icons";import{ButtonWithMenu as m}from"./ButtonWithMenu.js";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{colors as p}from"../../atoms/style/colors.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"../../deprecated/ErrorPage/illustrations/GlitchAnimation.js";import"../../deprecated/ErrorPage/illustrations/QuestioningAnimation.js";import"proj4";import"html2canvas";import l from"styled-components";const d=l(o.Item)`
1
+ import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Menu as t,Icon as i,Typography as e}from"@equinor/eds-core-react";import{radio_button_selected as s,radio_button_unselected as a,sort as m}from"@equinor/eds-icons";import{ButtonWithMenu as n}from"./ButtonWithMenu.js";import"react";import"../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../_virtual/lodash.js";import"@equinor/subsurface-app-management";import"@microsoft/signalr";import"@tanstack/react-query";import"../../atoms/enums/Environment.js";import"../../atoms/utils/auth_environment.js";import"../TopBar/Notifications/NotificationProvider.js";import"../../providers/AuthProvider/AuthProvider.js";import"../../providers/ReleaseNotesProvider.js";import"../../providers/SideBarProvider.js";import"../../providers/SnackbarProvider/SnackbarProvider.js";import"../../providers/StepperProvider.js";import"../../providers/TableOfContentsProvider.js";import"../../providers/ThemeProvider/ThemeProvider.js";import"../../providers/TutorialStepsProvider.js";import{colors as p}from"../../atoms/style/colors.js";import"../../atoms/enums/Errors.js";import"../../atoms/enums/Theme.js";import"../../atoms/enums/SpacingsMode.js";import"../../deprecated/ErrorPage/illustrations/GlitchAnimation.js";import"../../deprecated/ErrorPage/illustrations/QuestioningAnimation.js";import"proj4";import"html2canvas";import d from"styled-components";const l=d(t.Item)`
2
2
  > div {
3
3
  grid-template-columns: 1fr auto;
4
4
  }
5
- `,c=l.div`
6
- position: relative;
7
- > span:first-child {
8
- visibility: hidden;
9
- }
10
- > span:last-child {
11
- position: absolute;
12
- white-space: nowrap;
13
- left: 0;
14
- }
15
- `;function u({sortValue:o,onSortChange:l,sortItems:u}){const v=u.find((r=>r.value===o)),h=u.sort(((r,t)=>t.label.length-r.label.length)).at(0)?.label;return r(m,{menuItems:u.map((e=>r(d,{onClick:()=>{var r;r=e.value,l(r)},children:[e.label,t(i,{color:e.value===o?p.interactive.primary__resting.rgba:p.text.static_icons__tertiary.rgba,data:e.value===o?s:a})]},e.label))),children:[r(c,{children:[r(e,{as:"span",variant:"button",group:"navigation",children:["Sort by ",h?.toLowerCase()]}),r(e,{as:"span",variant:"button",group:"navigation",children:["Sort by ",v?.label.toLowerCase()]})]}),t(i,{data:n})]})}export{u as Sorting};
5
+ `;function c({sortValue:t,onSortChange:d,sortItems:c}){const u=c.find((r=>r.value===t));return r(n,{menuItems:c.map((e=>r(l,{onClick:()=>{var r;r=e.value,d(r)},children:[e.label,o(i,{color:e.value===t?p.interactive.primary__resting.rgba:p.text.static_icons__tertiary.rgba,data:e.value===t?s:a})]},e.label))),children:[r(e,{as:"span",variant:"button",group:"navigation",children:["Sort by ",u?.label.toLowerCase()]}),o(i,{data:m})]})}export{c as Sorting};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/amplify-component-lib",
3
- "version": "8.17.0",
3
+ "version": "8.17.1",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",