@equinor/amplify-component-lib 8.6.2 → 8.7.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.
Files changed (82) hide show
  1. package/dist/atoms/hooks/useSelect.d.ts +1 -0
  2. package/dist/atoms/hooks/useSelect.js +1 -1
  3. package/dist/molecules/ApplicationIcon/ApplicationIcon.constants.d.ts +1 -3
  4. package/dist/molecules/ApplicationIcon/ApplicationIcon.constants.js +1 -1
  5. package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +6 -8
  6. package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
  7. package/dist/molecules/ApplicationIcon/ApplicationIcon.types.d.ts +7 -1
  8. package/dist/molecules/ApplicationIcon/ApplicationIconBase.d.ts +16 -3
  9. package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +39 -1
  10. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.d.ts +16 -0
  11. package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -0
  12. package/dist/molecules/ApplicationIcon/ApplicationIconNew/ApplicationIconNew.constants.d.ts +3 -0
  13. package/dist/molecules/ApplicationIcon/ApplicationIconNew/ApplicationIconNew.d.ts +9 -0
  14. package/dist/molecules/ApplicationIcon/ApplicationIconNew/ApplicationIconNew.types.d.ts +1 -0
  15. package/dist/molecules/ApplicationIcon/{ApplicationIcon.utils.d.ts → ApplicationIconNew/ApplicationIconNew.utils.d.ts} +1 -1
  16. package/dist/molecules/ApplicationIcon/ApplicationIconNew/ApplicationIconNewBase.d.ts +3 -0
  17. package/dist/molecules/ApplicationIcon/{ApplicationIconBase.styles.d.ts → ApplicationIconNew/ApplicationIconNewBase.styles.d.ts} +2 -2
  18. package/dist/molecules/ApplicationIcon/{ApplicationIconData → ApplicationIconNew/ApplicationIconNewData}/AppIconSvg.d.ts +1 -1
  19. package/dist/molecules/ApplicationIcon/Icons/Acquire.d.ts +3 -0
  20. package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -0
  21. package/dist/molecules/ApplicationIcon/Icons/Bravos.d.ts +3 -0
  22. package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -0
  23. package/dist/molecules/ApplicationIcon/Icons/Dasha.d.ts +3 -0
  24. package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -0
  25. package/dist/molecules/ApplicationIcon/Icons/Fallback.d.ts +3 -0
  26. package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -0
  27. package/dist/molecules/ApplicationIcon/Icons/FourDInsight.d.ts +3 -0
  28. package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -0
  29. package/dist/molecules/ApplicationIcon/Icons/InPress.d.ts +3 -0
  30. package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -0
  31. package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.d.ts +3 -0
  32. package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -0
  33. package/dist/molecules/ApplicationIcon/Icons/Orca.d.ts +3 -0
  34. package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -0
  35. package/dist/molecules/ApplicationIcon/Icons/Portal.d.ts +3 -0
  36. package/dist/molecules/ApplicationIcon/Icons/Portal.js +1 -0
  37. package/dist/molecules/ApplicationIcon/Icons/Premo.d.ts +3 -0
  38. package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -0
  39. package/dist/molecules/ApplicationIcon/Icons/Pwex.d.ts +3 -0
  40. package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -0
  41. package/dist/molecules/ApplicationIcon/Icons/Recap.d.ts +3 -0
  42. package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -0
  43. package/dist/molecules/FileProgress/CompactFileProgress.styles.d.ts +2 -2
  44. package/dist/molecules/FullPageSpinner/FullPageSpinner.js +5 -5
  45. package/dist/molecules/ListItem/ListItem.utils.d.ts +1 -1
  46. package/dist/molecules/Select/AddTagItem.js +1 -1
  47. package/dist/molecules/Select/ListSelectMenu.d.ts +2 -0
  48. package/dist/molecules/Select/ListSelectMenu.js +1 -0
  49. package/dist/molecules/Select/Select.js +1 -1
  50. package/dist/molecules/Select/Select.styles.d.ts +8 -8
  51. package/dist/molecules/Select/Select.types.d.ts +1 -0
  52. package/dist/molecules/Sieve/Sieve.styles.d.ts +1 -1
  53. package/dist/organisms/SideBar/CreateItem.styles.d.ts +1 -1
  54. package/dist/organisms/SideBar/MenuItem.d.ts +12 -0
  55. package/dist/organisms/SideBar/MenuItem.js +1 -1
  56. package/dist/organisms/SideBar/MenuItem.styles.d.ts +1 -1
  57. package/dist/organisms/SideBar/MenuItem.utils.d.ts +13 -0
  58. package/dist/organisms/SideBar/MenuItem.utils.js +1 -0
  59. package/dist/organisms/TableOfContents/TableOfContents.styles.d.ts +96 -96
  60. package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.d.ts +1 -1
  61. package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.d.ts +1 -1
  62. package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.d.ts +1 -1
  63. package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.d.ts +1 -1
  64. package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.d.ts +1 -1
  65. package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.d.ts +1 -1
  66. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/FilterHeader/FilterHeader.js +1 -1
  67. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesTypes/ReleaseNotesTypes.styles.d.ts +1 -1
  68. package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleasePosts/ReleasePost/ReleasePost.styles.d.ts +2 -2
  69. package/dist/organisms/TopBar/TopBar.js +1 -1
  70. package/dist/organisms/TopBar/TopBar.styles.d.ts +2 -2
  71. package/package.json +1 -1
  72. package/dist/molecules/ApplicationIcon/ApplicationIcon.utils.js +0 -1
  73. package/dist/molecules/ApplicationIcon/ApplicationIconBase.styles.js +0 -143
  74. package/dist/molecules/ApplicationIcon/ApplicationIconData/AppIconSvg.js +0 -1
  75. package/dist/molecules/ApplicationIcon/ApplicationIconData/ApplicationIconCollection.js +0 -1
  76. package/dist/molecules/ApplicationIcon/NoiseShape.js +0 -1
  77. package/dist/molecules/ApplicationIcon/WaveShape.js +0 -1
  78. package/dist/molecules/Select/SelectMenu.d.ts +0 -2
  79. package/dist/molecules/Select/SelectMenu.js +0 -1
  80. /package/dist/molecules/ApplicationIcon/{ApplicationIconData/ApplicationIconCollection.d.ts → ApplicationIconNew/ApplicationIconNewData/ApplicationIconNewCollection.d.ts} +0 -0
  81. /package/dist/molecules/ApplicationIcon/{NoiseShape.d.ts → ApplicationIconNew/NoiseShape.d.ts} +0 -0
  82. /package/dist/molecules/ApplicationIcon/{WaveShape.d.ts → ApplicationIconNew/WaveShape.d.ts} +0 -0
@@ -3,6 +3,7 @@ import { SelectComponentProps } from '../../molecules/Select/Select';
3
3
  import { SelectOption } from '../../molecules/Select/Select.types';
4
4
  import { SelectOptionRequired } from '../../molecules/Select/Select.types';
5
5
  declare const useSelect: <T extends SelectOptionRequired>(props: SelectComponentProps<T>) => {
6
+ handleOnAddItem: () => void;
6
7
  handleOnItemSelect: (item: SelectOption<T>) => void;
7
8
  handleOnItemKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
8
9
  handleOnSearchKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
@@ -1 +1 @@
1
- import{useState as e,useRef as r,useMemo as n,useEffect as t}from"react";const l=l=>{const{loading:u,disabled:a,sortValues:c,onSearchChange:o,onOpenCallback:s}=l,[d,v]=e(!1),[i,h]=e(""),f=r(null),p=r([]),g=r(-1),[m,y]=e(void 0),k=r(!1),O=r(0),I=n((()=>{let e,r=[];return"values"in l?r=l.values:l.value&&(r=[l.value]),c?(e=l.groups?l.groups.flatMap((e=>e.items)):l.items.flatMap((e=>[{...e},...e.children||[]])),r.sort(((r,n)=>e.findIndex((e=>e.value===r.value))-e.findIndex((e=>e.value===n.value))))):r}),[l,c]);t((()=>{void 0!==s&&s(d)}),[s,d]),t((()=>{k.current&&O.current!==I.length&&(O.current=I.length,k.current=!1,f.current?.focus())}),[I.length]);const S=()=>{d||a||u||(f.current?.focus(),v(!0))},w=()=>{v(!1),h(""),g.current=0},A=e=>{!("values"in l)||u||a||l.onSelect(l.values.filter((r=>r.value!==e.value)),e)};return{handleOnItemSelect:e=>{"value"in l?l.onSelect(e):l.onSelect(((e,r)=>{const n=structuredClone(e);return n.some((e=>e.value===r.value))?n.filter((e=>e.value!==r.value)):[r,...n.filter((e=>void 0===e.children||0===e.children.length||e.children.every((e=>e.value===r.value))))]})(l.values,e),e),""!==i&&h(""),k.current=!0},handleOnItemKeyDown:e=>{"ArrowDown"===e.key&&g.current<p.current.length-1?(g.current+=1,p.current.at(g.current)?.focus()):"ArrowUp"===e.key&&g.current>0?(g.current-=1,p.current.at(g.current)?.focus()):"ArrowUp"===e.key&&0===g.current&&(g.current=-1,f.current?.focus())},handleOnSearchKeyDown:e=>{"Enter"===e.key&&""!==i&&"onAddItem"in l&&l.onAddItem?(l.onAddItem(i),h("")):"Space"===e.key||"Enter"===e.key?S():"Escape"===e.key?(f.current?.blur(),w()):"ArrowDown"===e.key||"ArrowUp"===e.key?p.current.at(0)&&(p.current[0]?.focus(),g.current=0):"Backspace"===e.key&&void 0===m&&"values"in l&&""===i?y(I?.at(-1)):"Backspace"===e.key&&m&&(A(m),y(void 0))},handleOnClear:()=>{"value"in l?l.onSelect(void 0):l.onSelect([])},handleOnSearchChange:e=>{" "===e.target.value||u||a||(h(e.target.value),o?.(e.target.value),d||v(!0))},handleToggleOpen:()=>{a||u||(d?w():S())},handleOnClose:w,handleOnOpen:S,handleOnRemoveItem:A,handleOnMouseEnterItem:e=>{g.current=e,p.current.at(e)?.focus()},search:i,searchRef:f,itemRefs:p,selectedValues:I,open:d,tryingToRemoveItem:m}};export{l as useSelect};
1
+ import{useState as e,useRef as n,useMemo as r,useEffect as t}from"react";const l=l=>{const{loading:u,disabled:a,sortValues:c,onSearchChange:o,onOpenCallback:d}=l,[s,v]=e(!1),[i,h]=e(""),m=n(null),f=n([]),p=n(-1),[g,y]=e(void 0),k=n(!1),I=n(0),O=r((()=>{let e,n=[];return"values"in l?n=l.values:l.value&&(n=[l.value]),c?(e=l.groups?l.groups.flatMap((e=>e.items)):l.items.flatMap((e=>[{...e},...e.children||[]])),n.sort(((n,r)=>e.findIndex((e=>e.value===n.value))-e.findIndex((e=>e.value===r.value))))):n}),[l,c]);t((()=>{void 0!==d&&d(s)}),[d,s]),t((()=>{k.current&&I.current!==O.length&&(I.current=O.length,k.current=!1,m.current?.focus())}),[O.length]);const A=()=>{s||a||u||(m.current?.focus(),v(!0))},S=()=>{v(!1),h(""),p.current=0},w=e=>{!("values"in l)||u||a||l.onSelect(l.values.filter((n=>n.value!==e.value)),e)};return{handleOnAddItem:()=>{"onAddItem"in l&&l.onAddItem&&(l.onAddItem(i),h(""))},handleOnItemSelect:e=>{"value"in l?l.onSelect(e):l.onSelect(((e,n)=>{const r=structuredClone(e);return r.some((e=>e.value===n.value))?r.filter((e=>e.value!==n.value)):[n,...r.filter((e=>void 0===e.children||0===e.children.length||e.children.every((e=>e.value===n.value))))]})(l.values,e),e),""!==i&&h(""),k.current=!0},handleOnItemKeyDown:e=>{"ArrowDown"===e.key&&p.current<f.current.length-1?(p.current+=1,f.current.at(p.current)?.focus()):"ArrowUp"===e.key&&p.current>0?(p.current-=1,f.current.at(p.current)?.focus()):"ArrowUp"===e.key&&0===p.current&&(p.current=-1,m.current?.focus())},handleOnSearchKeyDown:e=>{"Enter"===e.key&&""!==i&&"onAddItem"in l&&l.onAddItem?(l.onAddItem(i),h("")):"Space"===e.key||"Enter"===e.key?A():"Escape"===e.key?(m.current?.blur(),S()):"ArrowDown"!==e.key&&"ArrowUp"!==e.key||!f.current.at(0)?"Backspace"===e.key&&void 0===g&&"values"in l&&""===i?y(O?.at(-1)):"Backspace"===e.key&&g&&(w(g),y(void 0)):(f.current[0]?.focus(),p.current=0)},handleOnClear:()=>{"value"in l?l.onSelect(void 0):l.onSelect([])},handleOnSearchChange:e=>{" "===e.target.value||u||a||(h(e.target.value),o?.(e.target.value),s||v(!0))},handleToggleOpen:()=>{a||u||(s?S():A())},handleOnClose:S,handleOnOpen:A,handleOnRemoveItem:w,handleOnMouseEnterItem:e=>{p.current=e,f.current.at(e)?.focus()},search:i,searchRef:m,itemRefs:f,selectedValues:O,open:s,tryingToRemoveItem:g}};export{l as useSelect};
@@ -1,3 +1 @@
1
- export declare const APP_ICONS: readonly ["fallback", "amplify", "bravos", "embark", "premo", "dasha", "orca", "acquire", "pwex", "recap", "ltg", "inpress", "equinor"];
2
- export declare const SMALL_WAVES_PATH_DATA: readonly ["M484.113 48.5628C513.945 48.3631 531.572 36.2852 547.903 24.3397L547.608 23.9361L547.903 24.3397C548.573 23.8492 549.242 23.3589 549.908 22.8698C565.602 11.3589 580.422 0.5 604.431 0.5C628.552 0.5 643.639 11.4614 659.545 23.0298L659.56 23.0412C660.156 23.4741 660.752 23.9079 661.35 24.3419C677.754 36.2468 695.327 48.2911 724.5 48.5607V724.5H0.5V48.5618C30.1815 48.2968 47.7561 36.2527 64.0414 24.3406C64.712 23.8501 65.3804 23.3598 66.0471 22.8708C81.7404 11.3598 96.5604 0.500978 120.569 0.500978C144.691 0.500978 159.778 11.4624 175.683 23.0308C176.284 23.4675 176.885 23.9051 177.488 24.3428L177.782 23.9382L177.488 24.3428C194.079 36.3837 211.866 48.5663 241.639 48.5663C271.413 48.5663 289.158 36.3833 305.708 24.3421L305.414 23.9378L305.708 24.3421C306.31 23.9043 306.91 23.4667 307.509 23.03C323.374 11.4618 338.422 0.500978 362.542 0.500978C386.664 0.500978 401.751 11.4623 417.656 23.0308C418.257 23.4675 418.858 23.9051 419.462 24.3428C436.052 36.3837 453.839 48.5663 483.613 48.5663H484.113V48.5628Z", "M726 778H1.00018L1 1C52.7372 1 64.1022 52.4428 121.833 52.4428C181.63 52.4428 191.962 1 242.667 1C293.371 1 304.736 52.4428 363.5 52.4428C422.264 52.4428 433.629 1 484.333 1C535.038 1 546.403 52.4428 605.167 52.4428C663.931 52.4428 675.295 1 726 1L726 778Z"];
3
- export declare const LARGE_WAVES_PATH_DATA: readonly ["M724.5 72.4992V724.499H0.5V72.4954C45.0646 72.1639 71.4097 54.1288 95.8591 36.259C96.8643 35.5244 97.8662 34.79 98.8657 34.0574C122.391 16.8154 144.667 0.5 180.75 0.5C217 0.5 239.677 16.9687 263.52 34.2966C264.42 34.9507 265.321 35.6061 266.226 36.2618L266.519 35.857L266.226 36.2618C291.089 54.2924 317.699 72.5 362.25 72.5C406.801 72.5 433.348 54.2919 458.15 36.2609L457.856 35.8565L458.15 36.2609C459.052 35.6052 459.952 34.9498 460.849 34.2956C484.632 16.9679 507.25 0.5 543.5 0.5C579.75 0.5 602.427 16.9687 626.27 34.2965C627.17 34.9507 628.072 35.6061 628.976 36.2618C653.746 54.2248 680.25 72.3636 724.5 72.4992Z", "M726 726H1.00018L1 1C78.6059 1 95.6533 73 182.25 73C271.945 73 287.443 1 363.5 1C439.557 1 456.604 73 544.75 73C632.896 73 649.943 1 726 1L726 726Z"];
1
+ export declare const GRAYSCALE_FILTER_VALUE = "grayscale(1) brightness(1.25)";
@@ -1 +1 @@
1
- const C=["M484.113 48.5628C513.945 48.3631 531.572 36.2852 547.903 24.3397L547.608 23.9361L547.903 24.3397C548.573 23.8492 549.242 23.3589 549.908 22.8698C565.602 11.3589 580.422 0.5 604.431 0.5C628.552 0.5 643.639 11.4614 659.545 23.0298L659.56 23.0412C660.156 23.4741 660.752 23.9079 661.35 24.3419C677.754 36.2468 695.327 48.2911 724.5 48.5607V724.5H0.5V48.5618C30.1815 48.2968 47.7561 36.2527 64.0414 24.3406C64.712 23.8501 65.3804 23.3598 66.0471 22.8708C81.7404 11.3598 96.5604 0.500978 120.569 0.500978C144.691 0.500978 159.778 11.4624 175.683 23.0308C176.284 23.4675 176.885 23.9051 177.488 24.3428L177.782 23.9382L177.488 24.3428C194.079 36.3837 211.866 48.5663 241.639 48.5663C271.413 48.5663 289.158 36.3833 305.708 24.3421L305.414 23.9378L305.708 24.3421C306.31 23.9043 306.91 23.4667 307.509 23.03C323.374 11.4618 338.422 0.500978 362.542 0.500978C386.664 0.500978 401.751 11.4623 417.656 23.0308C418.257 23.4675 418.858 23.9051 419.462 24.3428C436.052 36.3837 453.839 48.5663 483.613 48.5663H484.113V48.5628Z","M726 778H1.00018L1 1C52.7372 1 64.1022 52.4428 121.833 52.4428C181.63 52.4428 191.962 1 242.667 1C293.371 1 304.736 52.4428 363.5 52.4428C422.264 52.4428 433.629 1 484.333 1C535.038 1 546.403 52.4428 605.167 52.4428C663.931 52.4428 675.295 1 726 1L726 778Z"],L=["M724.5 72.4992V724.499H0.5V72.4954C45.0646 72.1639 71.4097 54.1288 95.8591 36.259C96.8643 35.5244 97.8662 34.79 98.8657 34.0574C122.391 16.8154 144.667 0.5 180.75 0.5C217 0.5 239.677 16.9687 263.52 34.2966C264.42 34.9507 265.321 35.6061 266.226 36.2618L266.519 35.857L266.226 36.2618C291.089 54.2924 317.699 72.5 362.25 72.5C406.801 72.5 433.348 54.2919 458.15 36.2609L457.856 35.8565L458.15 36.2609C459.052 35.6052 459.952 34.9498 460.849 34.2956C484.632 16.9679 507.25 0.5 543.5 0.5C579.75 0.5 602.427 16.9687 626.27 34.2965C627.17 34.9507 628.072 35.6061 628.976 36.2618C653.746 54.2248 680.25 72.3636 724.5 72.4992Z","M726 726H1.00018L1 1C78.6059 1 95.6533 73 182.25 73C271.945 73 287.443 1 363.5 1C439.557 1 456.604 73 544.75 73C632.896 73 649.943 1 726 1L726 726Z"];export{L as LARGE_WAVES_PATH_DATA,C as SMALL_WAVES_PATH_DATA};
1
+ const s="grayscale(1) brightness(1.25)";export{s as GRAYSCALE_FILTER_VALUE};
@@ -1,9 +1,7 @@
1
- import { FC } from 'react';
2
- export type ApplicationName = 'amplify' | 'bravos' | 'embark' | 'premo' | 'inpress' | 'dasha' | 'orca' | 'acquire' | 'pwex' | 'ltg' | 'equinor' | 'recap';
3
- export interface ApplicationIconProps {
4
- name?: ApplicationName | string;
5
- size?: number;
6
- animationState?: 'none' | 'hoverable' | 'animated' | 'loading';
7
- iconOnly?: boolean;
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import { AppIconProps } from './ApplicationIcon.types';
3
+ export type ApplicationName = 'acquire' | '4dinsight' | 'recap' | 'dasha' | 'orca' | 'portal' | 'logging-qualification' | 'pwex' | 'inpress' | 'bravos' | 'premo';
4
+ export interface ApplicationIconProps extends Partial<AppIconProps> {
5
+ name: ApplicationName | string;
8
6
  }
9
- export declare const ApplicationIcon: FC<ApplicationIconProps>;
7
+ export declare const ApplicationIcon: ForwardRefExoticComponent<ApplicationIconProps & RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{amplify as o,bravos as t,embark as r,premo as n,dasha as i,acquire as e,orca as p,pwex as c,ltg as l,recap as g,inpress as m,equinor as s,fallback as v}from"./ApplicationIconData/ApplicationIconCollection.js";import{ApplicationIconBase as S}from"./ApplicationIconBase.js";const h={amplify:{appName:"amplify",iconSvg:o.svgPathData,rotationVariant:1,color:"blue"},bravos:{appName:"bravos",iconSvg:t.svgPathData,rotationVariant:2,color:"blue"},embark:{appName:"embark",iconSvg:r.svgPathData,rotationVariant:2,color:"green"},premo:{appName:"premo",iconSvg:n.svgPathData,rotationVariant:3,color:"purple"},dasha:{appName:"dasha",iconSvg:i.svgPathData,rotationVariant:0,color:"red"},acquire:{appName:"acquire",iconSvg:e.svgPathData,rotationVariant:1,color:"yellow"},orca:{appName:"orca",iconSvg:p.svgPathData,rotationVariant:2,color:"magenta"},pwex:{appName:"pwex",iconSvg:c.svgPathData,rotationVariant:3,color:"blue"},ltg:{appName:"ltg",iconSvg:l.svgPathData,rotationVariant:0,color:"green"},recap:{appName:"recap",iconSvg:g.svgPathData,rotationVariant:2,color:"red"},inpress:{appName:"inpress",iconSvg:m.svgPathData,rotationVariant:1,color:"green"},equinor:{appName:"equinor",iconSvg:s.svgPathData,rotationVariant:1,color:"purple"}},D={appName:"fallback",iconSvg:v.svgPathData,rotationVariant:2,color:"blue"},V=({name:o="amplify",size:t=64,animationState:r="none",iconOnly:n=!1})=>{let i=h[o.toLowerCase()];i||(i=D);const{iconSvg:e}=i;return a(S,{size:t,color:i.color,rotationVariant:i.rotationVariant,animationState:r,appIconData:e,iconOnly:n})};V.displayName="ApplicationIcon";export{V as ApplicationIcon};
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as p}from"react";import m from"./Icons/Acquire.js";import n from"./Icons/Bravos.js";import a from"./Icons/Dasha.js";import r from"./Icons/Fallback.js";import e from"./Icons/FourDInsight.js";import c from"./Icons/InPress.js";import i from"./Icons/LoggingQualification.js";import t from"./Icons/Orca.js";import s from"./Icons/Portal.js";import f from"./Icons/Premo.js";import l from"./Icons/Pwex.js";import I from"./Icons/Recap.js";const g=[{appName:["portal","embark","jsembark"],component:s},{appName:["acquire"],component:m},{appName:["4dinsight"],component:e},{appName:["dasha"],component:a},{appName:["orca"],component:t},{appName:["logging-qualification","logging qualification","ltg"],component:i},{appName:["recap"],component:I},{appName:["pwex"],component:l},{appName:["inpress"],component:c},{appName:["bravos"],component:n},{appName:["premo"],component:f}],j=p((({name:p,size:m=48,iconOnly:n=!1,withHover:a=!1,grayScale:e=!1},c)=>{const i=g.find((o=>o.appName.includes(p.toLowerCase())));return o(void 0===i?r:i.component,{size:m,ref:c,iconOnly:n,withHover:a,grayScale:e})}));j.displayName="ApplicationIcon";export{j as ApplicationIcon};
@@ -1 +1,7 @@
1
- export type AnimationState = 'none' | 'hoverable' | 'animated' | 'loading';
1
+ export interface AppIconProps {
2
+ size: 16 | 18 | 24 | 32 | 40 | 48 | number;
3
+ iconOnly: boolean;
4
+ withHover: boolean;
5
+ grayScale: boolean;
6
+ }
7
+ export type SizeIconProps = Partial<Pick<AppIconProps, 'size'>>;
@@ -1,3 +1,16 @@
1
- import { FC } from 'react';
2
- import { AppBaseProps } from './ApplicationIcon.utils';
3
- export declare const ApplicationIconBase: FC<AppBaseProps>;
1
+ import { IconData } from '@equinor/eds-icons';
2
+ import { AppIconProps } from './ApplicationIcon.types';
3
+ import { IconDataWithColor } from './ApplicationIconCollection';
4
+ export interface ShapeProps {
5
+ top: number;
6
+ left: number;
7
+ rotation: number;
8
+ }
9
+ interface ApplicationIconBaseProps extends Required<AppIconProps> {
10
+ iconData: IconData | IconDataWithColor[];
11
+ shapes: ShapeProps[];
12
+ iconOnly: boolean;
13
+ withHover: boolean;
14
+ }
15
+ declare const ApplicationIconBase: import("react").ForwardRefExoticComponent<ApplicationIconBaseProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export default ApplicationIconBase;
@@ -1 +1,39 @@
1
- import{jsxs as a,jsx as e}from"react/jsx-runtime";import t from"./ApplicationIconData/AppIconSvg.js";import{AppIconContainer as i,IconContainer as n,Waves as s,WaveInnerContainer as o,Wave as r}from"./ApplicationIconBase.styles.js";import{NoiseShape as l}from"./NoiseShape.js";import{WaveShape as v}from"./WaveShape.js";const c=({waveIntervalDist:c=14.75,size:m=512,color:p="blue",rotationVariant:d=1,hasLargeWaves:h=!1,animationState:W="none",appIconData:y,iconOnly:D})=>{const I=Array.from({length:8},((a,e)=>{const t=h?e*(1.15*c):e*c;return m<=128&&(h=!0),{waveIntervalDist:t,size:m,delay:"animated"===W?750*e:50*(e+1),altWave:e%2==0,hasLargeWaves:h,animationState:W,appIconData:y}}));return a(i,{$size:m,$color:p,$animationState:W,$iconOnly:D,"data-testid":"app-icon-container",children:[e(n,{"data-testid":"icon-container",children:e(t,{paths:y})}),!D&&e(s,{$animationState:W,"data-testid":"waves-container",children:a(o,{$color:p,$rotationVariant:d,children:[a(r,{className:"wave",$waveIntervalDist:0,"data-testid":"wave",style:{animationDelay:"0ms",transitionDelay:"0ms"},children:[e(v,{isAltWave:!1,hasLargeWaves:h}),e(l,{index:-1,isAltWave:!1,hasLargeWaves:h})]}),I.map(((t,i)=>a(r,{className:"wave",$waveIntervalDist:t.waveIntervalDist,"data-testid":"wave",style:{animationDelay:`${t.delay}ms`,transitionDelay:`${t.delay}ms`},children:[e(v,{isAltWave:t.altWave,hasLargeWaves:t.hasLargeWaves}),e(l,{index:i,isAltWave:t.altWave,hasLargeWaves:t.hasLargeWaves})]},i)))]})})]})};c.displayName="ApplicationIconBase";export{c as ApplicationIconBase};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import{Icon as i}from"@equinor/eds-core-react";import{tokens as n}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{GRAYSCALE_FILTER_VALUE as r}from"./ApplicationIcon.constants.js";import a,{css as s}from"styled-components";const{colors:c,elevation:d}=n,l=a.div`
2
+ position: relative;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ border-radius: 15%;
7
+ background: ${({$iconOnly:e})=>e?"transparent":"#004f55"};
8
+ width: ${({$size:e})=>`${e}px`};
9
+ height: ${({$size:e})=>`${e}px`};
10
+ z-index: 100;
11
+ overflow: hidden;
12
+ ${({$grayScale:e})=>e?s`
13
+ filter: ${r};
14
+ `:""}
15
+ > svg {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ pointer-events: none;
20
+ transition: all 2s ease-in-out;
21
+ z-index: 300;
22
+ transform: scale(0.8);
23
+ }
24
+ ${({$withHover:e})=>e&&"\n cursor: pointer;\n &:hover {\n > svg {\n transform: scale(0.9);\n }\n > div:nth-child(even) {\n top: -80%;\n left: 80%;\n }\n > div:nth-child(odd) {\n top: 93%;\n left: -93%;\n }\n }\n "};
25
+ `,p=a.div`
26
+ position: absolute;
27
+ top: ${e=>e.$top}%;
28
+ left: ${e=>e.$left}%;
29
+ border-radius: 55% 50% 80% 50%;
30
+ z-index: ${e=>200-e.$index};
31
+ width: 120%;
32
+ height: 80%;
33
+ box-shadow: ${d.raised};
34
+ // This background is set to hex and not rgba because design do not want this color to change in dark mode , 18 march 2024.
35
+ background: ${c.interactive.primary__resting.hex};
36
+ transition: all 3s cubic-bezier(0.25, 1, 0.5, 1);
37
+ transform: rotate(${e=>e.$rotation}deg);
38
+ pointer-events: none;
39
+ `,$=t((({size:t=48,iconData:n,shapes:r,iconOnly:a,withHover:s,grayScale:c=!1},d)=>a?e(l,{"data-testid":"application-icon",ref:d,$size:t,$iconOnly:a,$withHover:s,$grayScale:c,children:Array.isArray(n)?n.map(((o,n)=>e(i,{data:o,size:t,color:o.color},`icon-${n}`))):e(i,{data:n,size:t,color:"#ffffff"})}):o(l,{"data-testid":"application-icon",ref:d,$size:t,$iconOnly:a,$withHover:s,$grayScale:c,children:[Array.isArray(n)?n.map(((o,n)=>e(i,{data:o,size:t,color:o.color},`icon-${n}`))):e(i,{data:n,size:t,color:"#ffffff"}),r.map(((o,t)=>e(p,{"data-testid":"shape",$index:t,$top:o.top,$left:o.left,$rotation:o.rotation,$grayScale:c},`shape-${t}`)))]})));$.displayName="ApplicationIconBase";export{$ as default};
@@ -0,0 +1,16 @@
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export type IconDataWithColor = IconData & {
3
+ color: string;
4
+ };
5
+ export declare const acquire: IconData;
6
+ export declare const dasha: IconData;
7
+ export declare const recap: IconData;
8
+ export declare const portal: IconData;
9
+ export declare const premo: IconData;
10
+ export declare const pwex: IconData;
11
+ export declare const fourDInsight: IconData;
12
+ export declare const inPress: IconData;
13
+ export declare const loggingQualification: IconData;
14
+ export declare const orca: IconData;
15
+ export declare const fallback: IconData;
16
+ export declare const bravos: IconDataWithColor[];
@@ -0,0 +1 @@
1
+ const C={name:"acquire",prefix:"amplify",height:"24",width:"24",svgPathData:"M5.73913 18.0228C4.77863 18.0228 4 17.2441 4 16.2836L4 7.96169C4 7.0012 4.77864 6.22256 5.73913 6.22256L13.0026 6.22256V5.19527C13.0026 4.21785 13.8312 3.37775 14.8801 3.49009C15.5869 3.56579 16.7363 3.733 17.7351 4.10058C18.2318 4.28337 18.7638 4.54129 19.1879 4.91859C19.6292 5.31128 20 5.88143 20 6.62683V15.0906C20 15.9371 19.6601 16.6187 19.0891 17.0966C18.5636 17.5364 17.9062 17.7516 17.3176 17.868C16.3651 18.0564 15.2512 18.0393 14.4837 18.0275C14.3205 18.025 14.173 18.0228 14.0461 18.0228H5.73913ZM13.0026 8.30952V12.6454C13.0026 13.682 13.8804 14.4379 14.8375 14.4143C15.5025 14.3979 16.4167 14.4269 17.1315 14.6187C17.4904 14.715 17.7113 14.83 17.8253 14.9274C17.9058 14.9961 17.913 15.0306 17.913 15.0906C17.913 15.3235 17.8437 15.4175 17.7498 15.4961C17.6103 15.6128 17.347 15.7348 16.9126 15.8207C16.2009 15.9615 15.3796 15.9508 14.6127 15.9408C14.4195 15.9383 14.2297 15.9358 14.046 15.9358H6.08696L6.08696 8.30952L13.0026 8.30952Z"},L={name:"dasha",prefix:"amplify",height:"24",width:"24",svgPathData:"M11.2207 2.72474C11.6966 2.42509 12.3022 2.42509 12.7781 2.72474L19.355 6.86576C19.78 7.13334 20.0379 7.60037 20.0379 8.10256V15.8974C20.0379 16.3996 19.78 16.8667 19.355 17.1342L12.7781 21.2753C12.3022 21.5749 11.6966 21.5749 11.2207 21.2753L4.64375 17.1342C4.21877 16.8667 3.96094 16.3996 3.96094 15.8974V8.10256C3.96094 7.60037 4.21877 7.13334 4.64375 6.86576L11.2207 2.72474ZM6.88401 10.6675V15.0906L10.5379 17.3911V12.8328L6.88401 10.6675ZM13.4609 12.8328V17.3911L17.1148 15.0906V10.6675L13.4609 12.8328ZM15.7732 8.06477L11.9994 10.3011L8.22557 8.06477L11.9994 5.68865L15.7732 8.06477Z"},a={name:"recap",prefix:"amplify",height:"24",width:"24",svgPathData:"M18.5749 6.36192C19.1567 6.87912 19.2091 7.77008 18.6919 8.35193L10.1206 17.9946L5.30821 12.5807C4.79101 11.9988 4.84342 11.1079 5.42527 10.5907C6.00712 10.0735 6.89808 10.1259 7.41528 10.7077L10.1206 13.7512L16.5848 6.47898C17.102 5.89713 17.993 5.84472 18.5749 6.36192Z"},i={name:"portal",prefix:"amplify",height:"24",width:"24",svgPathData:"M7.52581 8.96567L16.0682 4.08206C16.4308 3.87501 16.8834 4.13434 16.8838 4.54956L16.8836 14.3323C16.884 14.6222 16.7376 14.89 16.4846 15.0348L7.94199 19.9181C7.57962 20.1253 7.11757 19.866 7.11719 19.4507V9.66796C7.11681 9.37809 7.27278 9.11033 7.52581 8.96567Z"},t={name:"premo",prefix:"amplify",height:"24",width:"24",svgPathData:"M17.1369 5.11692C18.3299 5.95659 19.2792 7.07138 19.9035 8.35296C20.1647 8.88904 19.8399 9.49855 19.258 9.68173C18.6801 9.86362 18.0668 9.55453 17.7795 9.03587C16.6745 7.04075 14.5008 5.684 12 5.684C9.49918 5.68401 7.32549 7.04075 6.22045 9.03586C5.93317 9.55453 5.31986 9.86363 4.74199 9.68174C4.16002 9.49856 3.83526 8.88903 4.09642 8.35295C4.72075 7.07138 5.67004 5.95659 6.86304 5.11692C8.35616 4.06601 10.1544 3.5 12 3.5C13.8456 3.5 15.6438 4.06601 17.1369 5.11692ZM7.7742 14.3996C8.11355 14.9526 8.56707 15.4366 9.11048 15.8191C9.95036 16.4102 10.9619 16.7286 12 16.7286C13.0382 16.7286 14.0496 16.4102 14.8895 15.8191C15.4329 15.4366 15.8865 14.9526 16.2258 14.3996C16.534 13.8974 16.2104 13.2916 15.6368 13.111C15.0632 12.9305 14.4592 13.2575 14.064 13.6989C13.5633 14.2583 12.8243 14.612 12 14.612C11.1757 14.612 10.4368 14.2583 9.93601 13.6989C9.54082 13.2575 8.93681 12.9305 8.36317 13.111C7.78962 13.2916 7.46605 13.8974 7.7742 14.3996ZM4.08941 15.6326C4.71362 16.9202 5.66557 18.0402 6.86307 18.8831C8.35619 19.934 10.1544 20.5 12 20.5C13.8456 20.5 15.6438 19.934 17.1369 18.8831C18.3344 18.0402 19.2864 16.9202 19.9106 15.6326C20.1668 15.104 19.847 14.5037 19.2737 14.3232C18.7003 14.1427 18.0922 14.4527 17.813 14.9703C16.7188 16.9989 14.5263 18.3834 12 18.3834C9.47368 18.3834 7.28119 16.9989 6.18697 14.9703C5.90777 14.4527 5.29965 14.1427 4.72629 14.3232C4.15301 14.5037 3.83318 15.104 4.08941 15.6326ZM16.2541 10.1086C16.1056 10.674 15.6029 10.8322 14.5974 11.1487L12.6752 11.7538L12.6752 11.7538C12.3404 11.8591 12.173 11.9118 12 11.9118C11.827 11.9118 11.6596 11.8591 11.3248 11.7538L9.40259 11.1487C8.39712 10.8322 7.89437 10.674 7.74596 10.1086C7.59754 9.54319 7.87571 9.25888 8.43204 8.69025C8.6384 8.47932 8.86529 8.28609 9.11049 8.11351C9.95036 7.52238 10.9619 7.204 12 7.204C13.0382 7.204 14.0497 7.52238 14.8895 8.11351C15.1347 8.28609 15.3616 8.47932 15.568 8.69024C16.1243 9.25887 16.4025 9.54319 16.2541 10.1086Z"},h={name:"pwex",prefix:"amplify",height:"24",width:"24",svgPathData:"M12.7668 15.1491H18.4664V7.62094H13.8628C13.2614 7.62094 12.7731 8.13262 12.7668 8.76635L12.7668 8.77894V15.1491ZM13.8628 6C13.1347 6 12.4757 6.31245 11.9994 6.81734C11.5231 6.31256 10.8642 6.00019 10.1362 6.00019H4.43649C4.19434 6.00019 3.99805 6.20754 3.99805 6.46331V19.253C3.99805 19.2723 3.99908 19.2911 4.00107 19.3094C4.0023 19.3207 4.0039 19.3319 4.00586 19.3429C4.06807 19.6923 4.48746 19.8493 4.74372 19.5834L7.32722 16.9029C7.40921 16.8178 7.51953 16.7702 7.63445 16.7702H12.7668V16.77H19.5625C19.8047 16.77 20.001 16.5627 20.001 16.3069V6.46313C20.001 6.20735 19.8047 6 19.5625 6H13.8628ZM6.66535 7.9048C6.24448 7.9048 5.9033 8.24598 5.9033 8.66685C5.9033 9.08771 6.24448 9.42889 6.66535 9.42889H9.78975C10.2106 9.42889 10.5518 9.08771 10.5518 8.66685C10.5518 8.24598 10.2106 7.9048 9.78975 7.9048H6.66535ZM5.90328 11.258C5.90328 10.8371 6.24446 10.4959 6.66533 10.4959H9.78973C10.2106 10.4959 10.5518 10.8371 10.5518 11.258C10.5518 11.6789 10.2106 12.02 9.78973 12.02H6.66533C6.24446 12.02 5.90328 11.6789 5.90328 11.258ZM6.66533 13.0868C6.24446 13.0868 5.90328 13.428 5.90328 13.8488C5.90328 14.2697 6.24446 14.6109 6.66533 14.6109H7.79751C8.21838 14.6109 8.55956 14.2697 8.55956 13.8488C8.55956 13.428 8.21838 13.0868 7.79752 13.0868H6.66533Z"},e={name:"fourDInsight",prefix:"amplify",height:"24",width:"24",svgPathData:"M5.33398 11.1475C5.33398 7.0982 8.50065 4.47998 12.0007 4.47998C15.5006 4.47998 18.6673 7.0982 18.6673 11.1475C18.6673 13.7332 16.6257 16.7742 12.559 20.2787C12.2423 20.5471 11.7673 20.5471 11.4507 20.2787C7.37565 16.7742 5.33398 13.7332 5.33398 11.1475ZM14.668 11.7014C14.668 13.3886 13.4013 14.4795 12.0013 14.4795C10.6013 14.4795 9.33464 13.3886 9.33464 11.7014C9.33464 10.624 10.1513 9.35691 11.778 7.8967C11.9046 7.78489 12.0946 7.78489 12.2213 7.8967C13.8513 9.35691 14.668 10.624 14.668 11.7014Z"},M={name:"inPress",prefix:"amplify",height:"24",width:"24",svgPathData:"M16.1349 14.7431L16.8119 15.4062L18.5928 17.1923C18.9773 17.578 18.9768 18.2023 18.5915 18.5873C18.2067 18.972 17.5831 18.9726 17.1975 18.5887L15.4089 16.8083L14.7503 16.1282L15.1564 15.8081C14.0901 16.7241 12.7058 17.2756 11.1999 17.2756C7.84197 17.2756 5.12012 14.5555 5.12012 11.1998C5.12012 7.84412 7.84197 5.12402 11.1999 5.12402C14.5577 5.12402 17.2796 7.84412 17.2796 11.1998C17.2796 12.7048 16.7277 14.0882 15.8111 15.1538L16.1349 14.7431ZM6.9908 11.1998C6.9908 11.7856 7.10986 12.3429 7.32518 12.849C7.52626 13.3216 7.83051 13.6987 8.14615 14.0981C8.91243 14.9043 9.99618 15.4062 11.1999 15.4062C13.5289 15.4062 15.4089 13.5273 15.4089 11.1998C15.4089 10.7532 15.3397 10.3231 15.2113 9.91958C15.0504 9.41375 14.7729 9.00045 14.4821 8.56276C13.7114 7.60513 12.5287 6.9935 11.1999 6.9935C8.87085 6.9935 6.9908 8.87233 6.9908 11.1998Z M15.2113 9.91958L11.6743 13.3664L10.4571 12.0759L8.14615 14.0981C7.83051 13.6987 7.52626 13.3216 7.32518 12.849L10.5555 10.0224L11.7188 11.2556L14.4821 8.56276C14.7729 9.00045 15.0504 9.41375 15.2113 9.91958Z"},Z={name:"loggingQualification",prefix:"amplify",height:"24",width:"24",svgPathData:"M11.5014 4.17649C11.7919 3.94117 12.2075 3.94117 12.4981 4.17649L13.9996 5.39254L15.672 6.69748C15.8903 6.86784 16.0172 7.12985 16.0156 7.40678L15.9995 10.1624L16.017 16.595C16.0178 16.8709 15.8909 17.1317 15.6733 17.3015L13.9996 18.6075L12.4981 19.8235C12.2075 20.0588 11.7919 20.0588 11.5014 19.8235L9.99982 18.6075L8.32609 17.3015C8.10853 17.1317 7.98167 16.8709 7.98243 16.595L7.99991 10.1624L7.9838 7.40678C7.98218 7.12985 8.10913 6.86784 8.32746 6.69748L9.99982 5.39254L11.5014 4.17649Z"},g={name:"depthConversion",prefix:"amplify",height:"24",width:"24",svgPathData:"M11.5909 14.6585C11.8317 14.8457 12.1689 14.8456 12.4096 14.6582L16.907 11.1568L17.3212 10.8361C17.6653 10.5696 17.6659 10.05 17.3223 9.78279L12.4096 5.96184C12.1689 5.7746 11.8318 5.7746 11.591 5.96184L6.67633 9.7844C6.33335 10.0512 6.33313 10.5695 6.67588 10.8365L7.087 11.1568L11.5909 14.6585ZM13.3246 8.36268L12 7.33119L10.5907 8.42867L12.0028 9.46418L13.3246 8.36268ZM14.4012 9.2011L13.1106 10.2766L14.5323 11.3192L15.8267 10.3112L14.4012 9.2011ZM12.0552 11.1561L13.4388 12.1707L12 13.2912L10.7041 12.282L12.0552 11.1561ZM8.17335 10.3112L9.62748 11.4436L10.9474 10.3437L9.49724 9.28021L8.17335 10.3112Z M11.9936 16.8245L7.48733 13.321C7.24787 13.1348 6.91263 13.1348 6.67321 13.321C6.33188 13.5865 6.33188 14.1024 6.67321 14.3679L11.3863 18.0336C11.7474 18.3145 12.2531 18.3145 12.6142 18.0336L17.3232 14.3711C17.6667 14.1039 17.6669 13.5848 17.3236 13.3173C17.0825 13.1294 16.7446 13.1293 16.5033 13.3169L11.9936 16.8245Z"},r={name:"equinor-fallback",prefix:"amplify",height:"24",width:"24",svgPathData:"M6.12478 6.82667L6.12491 11.661C6.12478 11.8043 6.19663 11.9366 6.32074 12.0081L10.5097 14.4214C10.6874 14.5238 10.914 14.3955 10.9141 14.1904V9.35619C10.9143 9.21289 10.8379 9.08051 10.7136 9.00893L6.52484 6.59578C6.347 6.4934 6.12504 6.62164 6.12478 6.82667ZM19.027 3.05178L12.9963 6.52619C12.8177 6.62911 12.7075 6.8196 12.7078 7.02583V13.9857C12.7081 14.2811 13.0343 14.4656 13.2901 14.3182L19.321 10.844C19.4996 10.741 19.6029 10.5505 19.6026 10.3443L19.6028 3.38438C19.6025 3.08897 19.283 2.90447 19.027 3.05178ZM10.7542 17.8545L9.07822 18.8201C9.02863 18.8488 8.99797 18.9017 8.99797 18.9591L8.99784 20.8931C8.99784 20.9753 9.08875 21.0265 9.15981 20.9856L10.8358 20.0201C10.8855 19.9915 10.9143 19.9385 10.9141 19.8813V17.947C10.9141 17.865 10.8252 17.8137 10.7542 17.8545ZM9.77743 16.0699L7.2675 14.6175C7.19311 14.5745 7.10139 14.5745 7.02701 14.6175L4.51708 16.0699C4.41057 16.1315 4.41057 16.2852 4.51708 16.3469L7.02701 17.799C7.10139 17.8422 7.19311 17.8422 7.2675 17.799L9.77743 16.3469C9.88394 16.2852 9.88394 16.1315 9.77743 16.0699ZM13.8181 16.3317L14.9334 16.9769C14.9994 17.0152 15.0808 17.0152 15.1469 16.9769L16.2621 16.3317C16.3567 16.2768 16.3567 16.1401 16.2621 16.0853L15.1469 15.4401C15.0808 15.4019 14.9994 15.4019 14.9334 15.4401L13.8181 16.0853C13.7235 16.1401 13.7235 16.2768 13.8181 16.3317ZM12.9211 17.8846L14.0374 18.5277C14.1035 18.5658 14.1443 18.6364 14.1443 18.7128L14.143 20.0011C14.1429 20.1104 14.0245 20.1788 13.9297 20.1243L12.8134 19.4812C12.7473 19.4431 12.7079 19.3722 12.7079 19.2961L12.7078 18.0078C12.7078 17.8986 12.8263 17.8299 12.9211 17.8846Z"},p=[{name:"bravos1",prefix:"bravos",height:"24",width:"24",color:"#99C6C9",svgPathData:"M15.6121 11.9889C15.6121 11.472 15.2603 11.0214 14.7588 10.8961L10.2339 9.76484C8.30708 9.28313 6.95533 7.55184 6.95533 5.56568V5.49634H8.39813V5.56568C8.39813 6.88979 9.2993 8.04398 10.5839 8.36512L15.1088 9.49635C16.2525 9.78229 17.0549 10.81 17.0549 11.9889C17.0549 13.1679 16.2525 14.1956 15.1088 14.4815L10.5839 15.6128C9.2993 15.9339 8.39813 17.0881 8.39813 18.4122V18.4815H6.95533V18.4122C6.95533 16.426 8.30708 14.6947 10.2339 14.213L14.7588 13.0818C15.2603 12.9564 15.6121 12.5059 15.6121 11.9889Z"},{name:"bravos2",prefix:"bravos",height:"24",width:"24",color:"#CCE2E4",svgPathData:"M12.7266 11.9889C12.7266 11.4218 12.3748 10.9141 11.8438 10.715L9.76403 9.93509C8.07464 9.30157 6.95543 7.68655 6.95543 5.88228V5.49634H8.39823V5.88228C8.39823 7.08513 9.14437 8.16181 10.2706 8.58416L12.3504 9.36407C13.4446 9.77438 14.1694 10.8204 14.1694 11.9889C14.1694 13.1575 13.4446 14.2035 12.3504 14.6138L10.2706 15.3937C9.14437 15.8161 8.39823 16.8927 8.39823 18.0956V18.4815H6.95543V18.0956C6.95543 16.2913 8.07464 14.6763 9.76403 14.0428L11.8438 13.2629C12.3748 13.0637 12.7266 12.5561 12.7266 11.9889Z"},{name:"bravos3",prefix:"bravos",height:"24",width:"24",color:"white",svgPathData:"M9.84089 11.9889C9.84089 11.3077 9.52017 10.6663 8.97521 10.2576L8.68665 10.0412C7.59674 9.22372 6.95529 7.94083 6.95529 6.57844V5.49634H8.39809V6.57844C8.39809 7.4867 8.82572 8.34196 9.55233 8.88692L9.84089 9.10334C10.7492 9.78453 11.2837 10.8536 11.2837 11.9889C11.2837 13.1243 10.7492 14.1933 9.84089 14.8745L9.55233 15.091C8.82572 15.6359 8.39809 16.4912 8.39809 17.3994V18.4815H6.95529V17.3994C6.95529 16.037 7.59674 14.7542 8.68665 13.9367L8.97521 13.7203C9.52017 13.3116 9.84089 12.6701 9.84089 11.9889Z"}];export{C as acquire,p as bravos,L as dasha,r as fallback,e as fourDInsight,M as inPress,Z as loggingQualification,g as orca,i as portal,t as premo,h as pwex,a as recap};
@@ -0,0 +1,3 @@
1
+ export declare const APP_ICONS: readonly ["fallback", "amplify", "bravos", "embark", "premo", "dasha", "orca", "acquire", "pwex", "recap", "ltg", "inpress", "equinor"];
2
+ export declare const SMALL_WAVES_PATH_DATA: readonly ["M484.113 48.5628C513.945 48.3631 531.572 36.2852 547.903 24.3397L547.608 23.9361L547.903 24.3397C548.573 23.8492 549.242 23.3589 549.908 22.8698C565.602 11.3589 580.422 0.5 604.431 0.5C628.552 0.5 643.639 11.4614 659.545 23.0298L659.56 23.0412C660.156 23.4741 660.752 23.9079 661.35 24.3419C677.754 36.2468 695.327 48.2911 724.5 48.5607V724.5H0.5V48.5618C30.1815 48.2968 47.7561 36.2527 64.0414 24.3406C64.712 23.8501 65.3804 23.3598 66.0471 22.8708C81.7404 11.3598 96.5604 0.500978 120.569 0.500978C144.691 0.500978 159.778 11.4624 175.683 23.0308C176.284 23.4675 176.885 23.9051 177.488 24.3428L177.782 23.9382L177.488 24.3428C194.079 36.3837 211.866 48.5663 241.639 48.5663C271.413 48.5663 289.158 36.3833 305.708 24.3421L305.414 23.9378L305.708 24.3421C306.31 23.9043 306.91 23.4667 307.509 23.03C323.374 11.4618 338.422 0.500978 362.542 0.500978C386.664 0.500978 401.751 11.4623 417.656 23.0308C418.257 23.4675 418.858 23.9051 419.462 24.3428C436.052 36.3837 453.839 48.5663 483.613 48.5663H484.113V48.5628Z", "M726 778H1.00018L1 1C52.7372 1 64.1022 52.4428 121.833 52.4428C181.63 52.4428 191.962 1 242.667 1C293.371 1 304.736 52.4428 363.5 52.4428C422.264 52.4428 433.629 1 484.333 1C535.038 1 546.403 52.4428 605.167 52.4428C663.931 52.4428 675.295 1 726 1L726 778Z"];
3
+ export declare const LARGE_WAVES_PATH_DATA: readonly ["M724.5 72.4992V724.499H0.5V72.4954C45.0646 72.1639 71.4097 54.1288 95.8591 36.259C96.8643 35.5244 97.8662 34.79 98.8657 34.0574C122.391 16.8154 144.667 0.5 180.75 0.5C217 0.5 239.677 16.9687 263.52 34.2966C264.42 34.9507 265.321 35.6061 266.226 36.2618L266.519 35.857L266.226 36.2618C291.089 54.2924 317.699 72.5 362.25 72.5C406.801 72.5 433.348 54.2919 458.15 36.2609L457.856 35.8565L458.15 36.2609C459.052 35.6052 459.952 34.9498 460.849 34.2956C484.632 16.9679 507.25 0.5 543.5 0.5C579.75 0.5 602.427 16.9687 626.27 34.2965C627.17 34.9507 628.072 35.6061 628.976 36.2618C653.746 54.2248 680.25 72.3636 724.5 72.4992Z", "M726 726H1.00018L1 1C78.6059 1 95.6533 73 182.25 73C271.945 73 287.443 1 363.5 1C439.557 1 456.604 73 544.75 73C632.896 73 649.943 1 726 1L726 726Z"];
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ export type ApplicationName = 'amplify' | 'bravos' | 'embark' | 'premo' | 'inpress' | 'dasha' | 'orca' | 'acquire' | 'pwex' | 'ltg' | 'equinor' | 'recap';
3
+ export interface ApplicationIconProps {
4
+ name?: ApplicationName | string;
5
+ size?: number;
6
+ animationState?: 'none' | 'hoverable' | 'animated' | 'loading';
7
+ iconOnly?: boolean;
8
+ }
9
+ export declare const ApplicationIconNew: FC<ApplicationIconProps>;
@@ -0,0 +1 @@
1
+ export type AnimationState = 'none' | 'hoverable' | 'animated' | 'loading';
@@ -1,4 +1,4 @@
1
- import { AppIconData } from './ApplicationIconData/ApplicationIconCollection';
1
+ import { AppIconData } from './ApplicationIconNewData/ApplicationIconNewCollection';
2
2
  export type AllowedColors = 'blue' | 'green' | 'purple' | 'red' | 'yellow' | 'magenta';
3
3
  export declare const colorMap: Record<AllowedColors, string>;
4
4
  export declare const darkenColor: (color: AllowedColors, percentage: number, alphaHex: string) => string;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { AppBaseProps } from './ApplicationIconNew.utils';
3
+ export declare const ApplicationIconNewBase: FC<AppBaseProps>;
@@ -1,5 +1,5 @@
1
- import { AllowedColors } from './ApplicationIcon.utils';
2
- import { AnimationState } from './ApplicationIcon.types';
1
+ import { AnimationState } from './ApplicationIconNew.types';
2
+ import { AllowedColors } from './ApplicationIconNew.utils';
3
3
  interface AppIconContainerProps {
4
4
  $size: number;
5
5
  $color: AllowedColors;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { AppIconData } from './ApplicationIconCollection';
2
+ import { AppIconData } from './ApplicationIconNewCollection';
3
3
  interface IconSvgProps {
4
4
  width?: number;
5
5
  height?: number;
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Acquire: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Acquire;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{acquire as i}from"../ApplicationIconCollection.js";const a=[{top:-45,left:-5,rotation:25},{top:64,left:-5,rotation:5}],e=t(((t,e)=>o(r,{ref:e,iconData:i,shapes:a,...t})));e.displayName="Acquire";export{e as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Bravos: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Bravos;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{bravos as a}from"../ApplicationIconCollection.js";const i=[{top:-18,left:-17,rotation:343},{top:26,left:11,rotation:193}],p=t(((t,p)=>o(r,{ref:p,iconData:a,shapes:i,...t})));p.displayName="Bravos";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Dasha: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Dasha;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import a from"../ApplicationIconBase.js";import{dasha as r}from"../ApplicationIconCollection.js";const i=[{top:-25,left:-20,rotation:-5},{top:12,left:45,rotation:-70}],p=t(((t,p)=>o(a,{iconData:r,shapes:i,ref:p,...t})));p.displayName="Dasha";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Fallback: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Fallback;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import a from"../ApplicationIconBase.js";import{fallback as r}from"../ApplicationIconCollection.js";const i=[{top:-16,left:-17,rotation:325},{top:26,left:11,rotation:193}],p=t(((t,p)=>o(a,{ref:p,iconData:r,shapes:i,...t})));p.displayName="Fallback";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const FourDInsight: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default FourDInsight;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{fourDInsight as i}from"../ApplicationIconCollection.js";const a=[{top:-20,left:-17,rotation:343},{top:46,left:11,rotation:193}],p=t(((t,p)=>o(r,{ref:p,iconData:i,shapes:a,...t})));p.displayName="FourDInsight";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const InPress: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default InPress;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{inPress as a}from"../ApplicationIconCollection.js";const i=[{top:-31,left:-17,rotation:343},{top:42,left:32,rotation:182}],e=t(((t,e)=>o(r,{ref:e,iconData:a,shapes:i,...t})));e.displayName="InPress";export{e as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const LoggingQualification: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default LoggingQualification;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import i from"../ApplicationIconBase.js";import{loggingQualification as a}from"../ApplicationIconCollection.js";const r=[{top:-16,left:-17,rotation:343},{top:26,left:11,rotation:193}],p=t(((t,p)=>o(i,{ref:p,iconData:a,shapes:r,...t})));p.displayName="LoggingQualification";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Orca: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Orca;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{orca as a}from"../ApplicationIconCollection.js";const i=[{top:-16,left:-17,rotation:328},{top:26,left:11,rotation:193}],p=t(((t,p)=>o(r,{iconData:a,shapes:i,ref:p,...t})));p.displayName="Orca";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Portal: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Portal;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{portal as a}from"../ApplicationIconCollection.js";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],p=t(((t,p)=>o(r,{ref:p,iconData:a,shapes:i,...t})));p.displayName="Portal";export{p as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Premo: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Premo;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{premo as a}from"../ApplicationIconCollection.js";const i=[{top:-25,left:-5,rotation:25},{top:45,left:-11,rotation:15}],e=t(((t,e)=>o(r,{ref:e,iconData:a,shapes:i,...t})));e.displayName="Premo";export{e as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Pwex: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Pwex;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"../ApplicationIconBase.js";import{pwex as a}from"../ApplicationIconCollection.js";const i=[{top:-18,left:-17,rotation:343},{top:26,left:11,rotation:193}],e=t(((t,e)=>o(r,{ref:e,iconData:a,shapes:i,...t})));e.displayName="Pwex";export{e as default};
@@ -0,0 +1,3 @@
1
+ import { AppIconProps } from '../ApplicationIcon.types';
2
+ declare const Recap: import("react").ForwardRefExoticComponent<AppIconProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default Recap;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{forwardRef as t}from"react";import a from"../ApplicationIconBase.js";import{recap as r}from"../ApplicationIconCollection.js";const i=[{top:-16,left:-31,rotation:339},{top:52,left:-5,rotation:220}],p=t(((t,p)=>o(a,{ref:p,iconData:r,shapes:i,...t})));p.displayName="Recap";export{p as default};
@@ -4,14 +4,14 @@ interface ContainerProps {
4
4
  export declare const CompactFileProgressContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>> & string;
5
5
  export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<({
6
6
  as?: import("react").ElementType | undefined;
7
- } & import("@equinor/eds-core-react").TypographyProps & Omit<any, "nonce" | "bold" | "link" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "italic" | "variant" | "group" | "token" | "lines">) & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("@equinor/eds-utils").OverridableComponent<import("@equinor/eds-core-react").TypographyProps, HTMLElement>, keyof import("react").Component<any, {}, any>>;
7
+ } & import("@equinor/eds-core-react").TypographyProps & Omit<any, "nonce" | "variant" | "color" | "suppressHydrationWarning" | "className" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "link" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "bold" | "group" | "italic" | "token" | "lines">) & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("@equinor/eds-utils").OverridableComponent<import("@equinor/eds-core-react").TypographyProps, HTMLElement>, keyof import("react").Component<any, {}, any>>;
8
8
  export declare const LoadingWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
9
  export declare const ImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
10
  export declare const Rejection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
11
  export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
12
  export declare const AdditionalText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<({
13
13
  as?: import("react").ElementType | undefined;
14
- } & import("@equinor/eds-core-react").TypographyProps & Omit<any, "nonce" | "bold" | "link" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "italic" | "variant" | "group" | "token" | "lines">) & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("@equinor/eds-utils").OverridableComponent<import("@equinor/eds-core-react").TypographyProps, HTMLElement>, keyof import("react").Component<any, {}, any>>;
14
+ } & import("@equinor/eds-core-react").TypographyProps & Omit<any, "nonce" | "variant" | "color" | "suppressHydrationWarning" | "className" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "link" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "bold" | "group" | "italic" | "token" | "lines">) & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("@equinor/eds-utils").OverridableComponent<import("@equinor/eds-core-react").TypographyProps, HTMLElement>, keyof import("react").Component<any, {}, any>>;
15
15
  export declare const FileTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
16
16
  placement?: import("@floating-ui/utils").Placement;
17
17
  title?: string;
@@ -1,4 +1,4 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useMemo as t}from"react";import{Progress as i,StarProgress as e,Scrim as o}from"@equinor/eds-core-react";import{colors as n}from"../../atoms/style/colors.js";import{environment as a}from"../../atoms/utils/auth_environment.js";import{ApplicationIcon as c}from"../ApplicationIcon/ApplicationIcon.js";import m from"styled-components";const{getAppName:s}=a,p=m.div`
1
+ import{jsx as r}from"react/jsx-runtime";import{useMemo as t}from"react";import{Progress as e,StarProgress as i,Scrim as o}from"@equinor/eds-core-react";import{colors as c}from"../../atoms/style/colors.js";import n from"styled-components";const a=n.div`
2
2
  width: 100vw;
3
3
  height: 100vh;
4
4
  position: fixed;
@@ -8,11 +8,11 @@ import{jsx as r}from"react/jsx-runtime";import{useMemo as t}from"react";import{P
8
8
  justify-content: center;
9
9
  align-items: center;
10
10
  display: flex;
11
- `,l=m(i.Circular)`
11
+ `,s=n(e.Circular)`
12
12
  circle {
13
- stroke: ${n.interactive.primary__resting.rgba};
13
+ stroke: ${c.interactive.primary__resting.rgba};
14
14
  }
15
15
  circle:first-child {
16
- stroke: ${n.interactive.primary__hover_alt.rgba};
16
+ stroke: ${c.interactive.primary__hover_alt.rgba};
17
17
  }
18
- `,d=({variant:n="application",withScrim:a=!1})=>{const m=t((()=>{switch(n){case"dots":return r(i.Dots,{color:"primary"});case"circle":return r(l,{});case"equinor":return r(e,{});case"application":return r(c,{name:s(import.meta.env.VITE_NAME),animationState:"loading"})}}),[n]);return a?r(o,{open:!0,children:m}):r(p,{children:m})};export{d as FullPageSpinner};
18
+ `,p=({variant:c="application",withScrim:n=!1})=>{const p=t((()=>{switch(c){case"dots":return r(e.Dots,{color:"primary"});case"circle":return r(s,{});case"equinor":return r(i,{});case"application":return r(s,{"data-testid":"app-icon-svg"})}}),[c]);return n?r(o,{open:!0,children:p}):r(a,{children:p})};export{p as FullPageSpinner};
@@ -1,3 +1,3 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IconData } from '@equinor/eds-icons';
3
- export declare const renderContent: (content: IconData | ReactNode) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
3
+ export declare const renderContent: (content: IconData | ReactNode) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Icon as o}from"@equinor/eds-core-react";import{add_box as t}from"@equinor/eds-icons";import{colors as n}from"../../atoms/style/colors.js";import{MenuItemWrapper as i,StyledMenuItem as s}from"./Select.styles.js";const m=({itemRefs:m,onMouseEnterItem:c,onItemKeyDown:d,index:a,onAddItem:l,children:p})=>e(i,{children:r(s,{index:a,ref:e=>{m.current[a]=e},onClick:l,onKeyDownCapture:e=>{"Enter"===e.key?l():d(e)},onMouseEnter:()=>{c(a)},children:[e(o,{data:t,color:n.interactive.primary__resting.rgba}),r("span",{children:['Add "',p,'" as new tag']})]})});export{m as AddTagItem};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Icon as o}from"@equinor/eds-core-react";import{add_box as t}from"@equinor/eds-icons";import{colors as n}from"../../atoms/style/colors.js";import{MenuItemWrapper as i,StyledMenuItem as s}from"./Select.styles.js";const m=({itemRefs:m,onMouseEnterItem:c,onItemKeyDown:a,index:d,onAddItem:l,children:p})=>e(i,{children:r(s,{index:d,ref:e=>{m.current[d]=e},onClick:l,onKeyDownCapture:e=>{e.preventDefault(),"Enter"===e.key?l():a(e)},onMouseEnter:()=>{c(d)},children:[e(o,{data:t,color:n.interactive.primary__resting.rgba}),r("span",{children:['Add "',p,'" as new tag']})]})});export{m as AddTagItem};
@@ -0,0 +1,2 @@
1
+ import { ListSelectProps, MultiSelectCommon, SelectMenuProps, SelectOptionRequired, SingleSelectCommon } from './Select.types';
2
+ export declare const ListSelectMenu: <T extends SelectOptionRequired>(props: ListSelectProps<T> & SelectMenuProps<T> & (Omit<MultiSelectCommon<T>, "onAddItem"> | SingleSelectCommon<T>)) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useMemo as m}from"react";import{Menu as o}from"@equinor/eds-core-react";import{AddTagItem as i}from"./AddTagItem.js";import{NoItemsFoundText as r,NoTagFoundText as l}from"./Select.styles.js";import{flattenOptions as s,getChildOffset as a}from"./Select.utils.js";import{SelectMenuItem as c}from"./SelectMenuItem.js";const d=d=>{const{search:u,items:f,onItemSelect:I,itemRefs:h,onItemKeyDown:p,onMouseEnterItem:x,selectableParent:g}=d,S=m((()=>{if(""===u)return f;const e=new RegExp(u,"i");return s(f).map((({value:e,label:t})=>({value:e,label:t}))).filter((t=>t.label.match(e)))}),[f,u]);if(0===S.length&&!d.onAddItem)return e(r,{children:"No items found"});const v=S.some((e=>e.children&&e.children.length>0));if("values"in d){const m=S.map(((e,t)=>({childOffset:a(S,t),index:t,item:e,itemRefs:h,onItemKeyDown:p,onItemSelect:I,onMouseEnterItem:x,itemValue:e.value,values:d.values,selectableParent:g,parentHasNestedItems:v})));return"onAddItem"in d&&d.onAddItem&&""!==u?t(n,{children:[e(o.Section,{title:"Add tag",index:0,children:e(i,{index:0,itemRefs:h,onItemKeyDown:p,onMouseEnterItem:x,onAddItem:d.onAddItem,children:u})}),e(o.Section,{title:"Tag search results",index:1,children:m.length>0?m.map(((t,n)=>e(c,{multiselect:!0,...t,index:n+1},`menu-item-${n}-${t.itemValue}`))):t(l,{children:['No tag for "',u,'" found.']})})]}):m.map(((t,n)=>e(c,{multiselect:!0,...t},`menu-item-${n}-${t.itemValue}`)))}return S.map(((t,n)=>e(c,{childOffset:a(S,n),index:n,item:t,itemRefs:h,onItemKeyDown:p,onItemSelect:I,onMouseEnterItem:x,selectableParent:g,parentHasNestedItems:v},`menu-item-${n}-${t.value}`)))};export{d as ListSelectMenu};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useRef as n,useMemo as r}from"react";import{Label as o,CircularProgress as l,Icon as a}from"@equinor/eds-core-react";import{thumbs_up as i,warning_filled as c,error_filled as s,arrow_drop_up as d,arrow_drop_down as m,clear as h}from"@equinor/eds-icons";import{tokens as u}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useSelect as p}from"../../atoms/hooks/useSelect.js";import{GroupedSelectMenu as g}from"./GroupedSelectMenu.js";import{ValueText as b,StyledChip as f,Wrapper as v,Container as x,Section as y,PlaceholderText as O,ClearButton as k,HelperWrapper as C,StyledMenu as I}from"./Select.styles.js";import{SelectMenu as S}from"./SelectMenu.js";import{useOutsideClick as w}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";const{colors:$}=u,j=u=>{const{clearable:j=!0,loading:D=!1,disabled:R=!1,lightBackground:B=!1,underlineHighlight:K=!1,sortValues:M=!0,placeholder:_="Select...",label:q,helperText:E,meta:T,id:z=`amplify-combobox-${q}`,variant:V,inDialog:W=!1}=u,{handleOnClear:F,handleOnItemKeyDown:H,handleOnItemSelect:P,handleOnSearchChange:G,handleOnSearchKeyDown:N,handleToggleOpen:A,itemRefs:J,search:L,selectedValues:Q,handleOnClose:U,handleOnOpen:X,handleOnRemoveItem:Y,handleOnMouseEnterItem:Z,open:ee,searchRef:te,tryingToRemoveItem:ne}=p({...u,clearable:j,loading:D,disabled:R,lightBackground:B,underlineHighlight:K,sortValues:M,placeholder:_}),re=n(null),oe=n(null),le=r((()=>!!q||!!T),[q,T]),ae=r((()=>!!E),[E]),ie=r((()=>{switch(V){case"error":return s;case"warning":return c;case"success":return i}}),[V]);w(oe.current,(e=>{W&&ee&&e.target&&re.current&&oe.current&&!re.current.contains(e.target)&&!oe.current?.contains(e.target)&&U()}));const ce=r((()=>"value"in u&&u.value?e(b,{children:u.value.label}):Q.map((t=>e(f,{"data-testid":"amplify-combobox-chip",className:"amplify-combo-box-chip",onDelete:()=>Y(t),$tryingToRemove:ne?.value===t.value,$lightBackground:B,children:t.label},t.value)))),[Q,ne,B,u,Y]);return t("div",{children:[le&&e(o,{label:q,meta:T,htmlFor:z}),t(v,{children:[t(x,{"data-testid":"combobox-container",ref:re,onClick:X,"aria-expanded":ee,$variant:V,$lightBackground:B,children:[t(y,{children:[""===L&&0===Q.length&&e(O,{children:_}),(""===L||"values"in u&&Q.length>0)&&ce,e("input",{id:z,disabled:R||D,ref:te,type:"search",role:"combobox",value:L,autoComplete:"off",onChange:G,onKeyDownCapture:N})]}),D?e(l,{size:16}):e(a,{onClick:A,data:ee?d:m,color:$.interactive.primary__resting.rgba}),j&&Q.length>0&&!D&&e(k,{id:"clear",variant:"ghost_icon",onClick:F,"data-testid":"clearBtn",children:e(a,{data:h,size:18})})]}),ae&&t(C,{$variant:V,children:[ie&&e(a,{data:ie,size:16}),e(o,{label:E,htmlFor:z})]})]}),ee&&e(I,{ref:oe,open:!0,id:"combobox-menu",anchorEl:re.current,onClose:U,placement:"bottom",style:{width:`${re.current?.clientWidth}px`,maxWidth:`${re.current?.clientWidth}px`},children:u.groups?e(g,{...u,search:L,itemRefs:J,onItemSelect:P,onItemKeyDown:H,onMouseEnterItem:Z}):e(S,{...u,search:L,itemRefs:J,onItemSelect:P,onItemKeyDown:H,onMouseEnterItem:Z,selectableParent:"values"in u&&u.selectableParent})})]})};export{j as Select};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useRef as n,useMemo as o}from"react";import{Label as r,CircularProgress as l,Icon as a}from"@equinor/eds-core-react";import{thumbs_up as i,warning_filled as c,error_filled as s,arrow_drop_up as d,arrow_drop_down as m,clear as h}from"@equinor/eds-icons";import{tokens as u}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useSelect as p}from"../../atoms/hooks/useSelect.js";import{GroupedSelectMenu as g}from"./GroupedSelectMenu.js";import{ListSelectMenu as b}from"./ListSelectMenu.js";import{ValueText as f,StyledChip as v,Wrapper as x,Container as y,Section as I,PlaceholderText as O,ClearButton as k,HelperWrapper as C,StyledMenu as S}from"./Select.styles.js";import{useOutsideClick as w}from"../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";const{colors:$}=u,j=u=>{const{clearable:j=!0,loading:D=!1,disabled:R=!1,lightBackground:B=!1,underlineHighlight:K=!1,sortValues:M=!0,placeholder:_="Select...",label:q,helperText:E,meta:T,id:z=`amplify-combobox-${q}`,variant:A,inDialog:V=!1}=u,{handleOnAddItem:W,handleOnClear:F,handleOnItemKeyDown:H,handleOnItemSelect:P,handleOnSearchChange:G,handleOnSearchKeyDown:L,handleToggleOpen:N,itemRefs:J,search:Q,selectedValues:U,handleOnClose:X,handleOnOpen:Y,handleOnRemoveItem:Z,handleOnMouseEnterItem:ee,open:te,searchRef:ne,tryingToRemoveItem:oe}=p({...u,clearable:j,loading:D,disabled:R,lightBackground:B,underlineHighlight:K,sortValues:M,placeholder:_}),re=n(null),le=n(null),ae=o((()=>!!q||!!T),[q,T]),ie=o((()=>!!E),[E]),ce=o((()=>{switch(A){case"error":return s;case"warning":return c;case"success":return i}}),[A]);w(le.current,(e=>{V&&te&&e.target&&re.current&&le.current&&!re.current.contains(e.target)&&!le.current?.contains(e.target)&&X()}));const se=o((()=>"value"in u&&u.value?e(f,{children:u.value.label}):U.map((t=>e(v,{"data-testid":"amplify-combobox-chip",className:"amplify-combo-box-chip",onDelete:()=>Z(t),$tryingToRemove:oe?.value===t.value,$lightBackground:B,children:t.label},t.value)))),[U,oe,B,u,Z]);return t("div",{children:[ae&&e(r,{label:q,meta:T,htmlFor:z}),t(x,{children:[t(y,{"data-testid":"combobox-container",ref:re,onClick:Y,"aria-expanded":te,$variant:A,$lightBackground:B,children:[t(I,{children:[""===Q&&0===U.length&&e(O,{children:_}),(""===Q||"values"in u&&U.length>0)&&se,e("input",{id:z,disabled:R||D,ref:ne,type:"search",role:"combobox",value:Q,autoComplete:"off",onChange:G,onKeyDownCapture:L})]}),D?e(l,{size:16}):e(a,{onClick:N,data:te?d:m,color:$.interactive.primary__resting.rgba}),j&&U.length>0&&!D&&e(k,{id:"clear",variant:"ghost_icon",onClick:F,"data-testid":"clearBtn",children:e(a,{data:h,size:18})})]}),ie&&t(C,{$variant:A,children:[ce&&e(a,{data:ce,size:16}),e(r,{label:E,htmlFor:z})]})]}),te&&e(S,{ref:le,open:!0,id:"combobox-menu",anchorEl:re.current,onClose:X,placement:"bottom",style:{width:`${re.current?.clientWidth}px`,maxWidth:`${re.current?.clientWidth}px`},children:u.groups?e(g,{...u,search:Q,itemRefs:J,onItemSelect:P,onItemKeyDown:H,onMouseEnterItem:ee}):e(b,{...u,search:Q,itemRefs:J,onAddItem:"values"in u&&u.onAddItem?W:void 0,onItemSelect:P,onItemKeyDown:H,onMouseEnterItem:ee,selectableParent:"values"in u&&u.selectableParent})})]})};export{j as Select};