@equinor/amplify-component-lib 13.2.4 → 13.2.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/useLocalStorage.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/index.d.ts +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/index.d.ts +1 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/auth_environment.d.ts +1 -0
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +3 -3
- package/dist/deprecated/IconToggleButton.d.ts +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +1 -1
- package/dist/deprecated/OldStepper/OldStepper.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/molecules/AnimatedCheckmark/AnimatedCheckmark.d.ts +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.d.ts +1 -1
- package/dist/molecules/Badge/Badge.d.ts +1 -1
- package/dist/molecules/Button/Button.js +1 -1
- package/dist/molecules/Button/IconButton/IconButton.js +1 -1
- package/dist/molecules/Chip/Chip.d.ts +3 -3
- package/dist/molecules/Chip/Chip.styles.js +1 -1
- package/dist/molecules/Confetti/Confetti.types.d.ts +1 -1
- package/dist/molecules/Confetti/utils/seasonalColors.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/FileProgress/CompactFileProgress.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.types.d.ts +1 -1
- package/dist/molecules/IconCell/IconCell.d.ts +3 -3
- package/dist/molecules/IconCell/IconCell.styles.js +3 -3
- package/dist/molecules/IconCell/IconCell.utils.js +1 -1
- package/dist/molecules/ListItem/ListItem.d.ts +2 -2
- package/dist/molecules/OptionDrawer/OptionDrawer.d.ts +3 -3
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +7 -7
- package/dist/molecules/RichTextEditor/custom-extensions/AmplifyKit.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +7 -7
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/PersistentComboBox/PersistentComboBox.d.ts +2 -2
- package/dist/molecules/Select/Select.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +7 -7
- package/dist/molecules/Select/Select.styles.js +31 -13
- package/dist/molecules/Select/Select.types.d.ts +1 -1
- package/dist/molecules/Select/SelectMenuItem.js +1 -1
- package/dist/molecules/Select/SelectMenuItem.utils.js +1 -1
- package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/molecules/SelectionControls/Radio/Radio.d.ts +2 -2
- package/dist/molecules/SelectionControls/Switch/Switch.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +4 -4
- package/dist/molecules/Stepper/Step/Step.js +1 -1
- package/dist/molecules/Stepper/StepLine.js +1 -1
- package/dist/molecules/Stepper/Stepper.js +1 -1
- package/dist/molecules/Tabs/Tab.styles.js +4 -0
- package/dist/molecules/Tabs/Tabs.d.ts +2 -2
- package/dist/molecules/Waves/Waves.d.ts +1 -1
- package/dist/molecules/index.d.ts +1 -1
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.d.ts +2 -2
- package/dist/organisms/Faq/Faq.d.ts +1 -1
- package/dist/organisms/Faq/Faq.utils.js +1 -1
- package/dist/organisms/FieldSelector/ChangingField.js +1 -1
- package/dist/organisms/Filter/AutoCompleteText.js +1 -1
- package/dist/organisms/Filter/Filter.d.ts +2 -2
- package/dist/organisms/Filter/Filter.types.d.ts +1 -1
- package/dist/organisms/Filter/QuickFilter.d.ts +2 -2
- package/dist/organisms/Filter/SortMenu.d.ts +2 -2
- package/dist/organisms/ReleaseNote/ReleaseNote.d.ts +3 -3
- package/dist/organisms/SideBar/MenuItem/MenuItem.d.ts +1 -1
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/index.d.ts +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/collections/BadRequest.d.ts +2 -2
- package/dist/organisms/Status/collections/GenericError.d.ts +2 -2
- package/dist/organisms/Status/collections/MissingPermissions.d.ts +2 -2
- package/dist/organisms/Status/collections/PageNotFound.d.ts +2 -2
- package/dist/organisms/Status/collections/ServerError.d.ts +2 -2
- package/dist/organisms/Status/index.d.ts +1 -1
- package/dist/organisms/Template/Template.d.ts +5 -5
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +1 -1
- package/dist/organisms/TopBar/Account/Account.d.ts +1 -1
- package/dist/organisms/TopBar/Account/AccountButton.js +1 -1
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +3 -3
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +4 -4
- package/dist/organisms/TopBar/Guidelines/Guidelines.d.ts +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/Notifications.types.d.ts +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +1 -1
- package/dist/organisms/TopBar/Resources/Resources.d.ts +1 -1
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +1 -1
- package/dist/organisms/TopBar/index.d.ts +1 -1
- package/dist/organisms/index.d.ts +1 -1
- package/dist/organisms/index.js +1 -1
- package/dist/providers/AuthProvider/AuthProvider.d.ts +15 -3
- package/dist/providers/AuthProvider/AuthProvider.js +1 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +1 -1
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/providers/StepperProvider.d.ts +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.d.ts +1 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +1 -1
- package/package.json +9 -9
|
@@ -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{InputExplanation as n}from"../InputExplanation/InputExplanation.js";import{SelectItemSkeleton as r}from"./SelectItemSkeleton.js";import{LabelWrapper as i,PersistentComboBoxWrapper as a,
|
|
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{InputExplanation as n}from"../InputExplanation/InputExplanation.js";import{SelectItemSkeleton as r}from"./SelectItemSkeleton.js";import{LabelWrapper as i,PersistentComboBoxWrapper as a,PersistentListScrollArea as o,PersistentStickyWrapper as s,StyledMenu as ee}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:b=!0,loading:x=!1,disabled:S=!1,lightBackground:C=!1,underlineHighlight:w=!1,sortValues:te=!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:b,loading:x,disabled:S,lightBackground:C,underlineHighlight:w,sortValues:te,placeholder:T}),Z=m(null),Q=m(null),$=p(()=>!!E||!!D,[E,D]);if(t(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&&_(n,{position:P,children:N})]}),meta:D,htmlFor:O,disabled:S}),v(a,{$maxHeight:y.mode===`persistent`&&y.maxHeight?y.maxHeight:void 0,$shouldShowLabel:$,children:[_(s,{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})}),_(o,{children:y.loading?v(g,{children:[_(r,{}),_(r,{}),_(r,{})]}):e})]})]})}return v(`div`,{children:[$&&_(h,{label:v(i,{children:[E,N&&_(n,{position:P,children:N})]}),meta:D,htmlFor:O,disabled:S}),_(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&&_(ee,{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
|
|
2
|
+
import * as react67 from "react";
|
|
3
3
|
import "@equinor/eds-core-react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as styled_components15 from "styled-components";
|
|
5
|
+
import * as styled_components_dist_types6 from "styled-components/dist/types";
|
|
6
6
|
|
|
7
7
|
//#region src/molecules/Select/Select.styles.d.ts
|
|
8
8
|
|
|
@@ -11,15 +11,15 @@ interface ComboBoxChipProps {
|
|
|
11
11
|
$lightBackground?: boolean;
|
|
12
12
|
className: string;
|
|
13
13
|
}
|
|
14
|
-
declare const ComboBoxChip:
|
|
14
|
+
declare const ComboBoxChip: styled_components_dist_types6.IStyledComponentBase<"web", styled_components15.FastOmit<styled_components15.FastOmit<((Omit<react67.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
15
15
|
onClick?: undefined;
|
|
16
16
|
onDelete?: undefined;
|
|
17
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
17
|
+
}) | ClickableChipProps | DeletableChipProps)) & react67.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types6.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never> & Partial<Pick<styled_components15.FastOmit<((Omit<react67.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
18
18
|
onClick?: undefined;
|
|
19
19
|
onDelete?: undefined;
|
|
20
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
20
|
+
}) | ClickableChipProps | DeletableChipProps)) & react67.RefAttributes<HTMLButtonElement | HTMLDivElement>) & styled_components_dist_types6.BaseObject, keyof ComboBoxChipProps> & ComboBoxChipProps, never>>> & string & Omit<react67.ForwardRefExoticComponent<(Omit<react67.HTMLAttributes<HTMLButtonElement | HTMLDivElement>, "onClick"> & ((BaseChipProps & {
|
|
21
21
|
onClick?: undefined;
|
|
22
22
|
onDelete?: undefined;
|
|
23
|
-
}) | ClickableChipProps | DeletableChipProps)) &
|
|
23
|
+
}) | ClickableChipProps | DeletableChipProps)) & react67.RefAttributes<HTMLButtonElement | HTMLDivElement>>, keyof react67.Component<any, {}, any>>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ComboBoxChip };
|
|
@@ -132,10 +132,18 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
|
|
|
132
132
|
}
|
|
133
133
|
> .amplify-combo-box-chip {
|
|
134
134
|
cursor: not-allowed;
|
|
135
|
-
background: ${r.interactive.disabled__fill.rgba};
|
|
135
|
+
background: ${r.interactive.disabled__fill.rgba} !important;
|
|
136
136
|
color: ${r.interactive.disabled__text.rgba};
|
|
137
|
-
|
|
137
|
+
outline: 1px solid ${r.interactive.disabled__border.rgba};
|
|
138
|
+
|
|
139
|
+
&:hover {
|
|
140
|
+
outline: 1px solid ${r.interactive.disabled__border.rgba};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
> .content > svg {
|
|
138
144
|
fill: ${r.interactive.disabled__text.rgba};
|
|
145
|
+
display: none;
|
|
146
|
+
|
|
139
147
|
&:hover {
|
|
140
148
|
cursor: not-allowed;
|
|
141
149
|
background: none;
|
|
@@ -196,16 +204,22 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
|
|
|
196
204
|
`,S=u.div`
|
|
197
205
|
position: relative;
|
|
198
206
|
isolation: isolate;
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
199
209
|
border: 1px solid ${r.ui.background__heavy.rgba};
|
|
200
210
|
border-radius: ${a.corners.borderRadius};
|
|
201
|
-
overflow:
|
|
211
|
+
overflow: hidden;
|
|
202
212
|
background-color: ${r.ui.background__default.rgba};
|
|
203
213
|
height: ${({$shouldShowLabel:e,$maxHeight:t})=>t||(e?d`calc(100% - 16px)`:`100%`)};
|
|
204
214
|
`,C=u.div`
|
|
205
215
|
position: sticky;
|
|
206
216
|
top: 0;
|
|
207
217
|
z-index: 1;
|
|
208
|
-
`,w=u.
|
|
218
|
+
`,w=u.div`
|
|
219
|
+
flex: 1;
|
|
220
|
+
min-height: 0;
|
|
221
|
+
overflow: auto;
|
|
222
|
+
`,T=u.button`
|
|
209
223
|
width: 100%;
|
|
210
224
|
display: flex;
|
|
211
225
|
align-items: center;
|
|
@@ -222,19 +236,19 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
|
|
|
222
236
|
&:focus-visible {
|
|
223
237
|
outline: 2px dashed ${r.interactive.primary__resting.rgba};
|
|
224
238
|
}
|
|
225
|
-
`,
|
|
239
|
+
`,E=u.hr`
|
|
226
240
|
height: calc(100% + ${i.medium} * 2);
|
|
227
241
|
justify-self: center;
|
|
228
242
|
width: ${i.x_large};
|
|
229
243
|
min-width: ${i.x_large};
|
|
230
|
-
`,
|
|
244
|
+
`,D=u(l)`
|
|
231
245
|
user-select: none;
|
|
232
246
|
pointer-events: none;
|
|
233
247
|
position: absolute;
|
|
234
248
|
color: ${r.text.static_icons__tertiary.rgba};
|
|
235
249
|
top: calc(50%);
|
|
236
250
|
transform: translate(0, -50%);
|
|
237
|
-
`,
|
|
251
|
+
`,O=u(l)`
|
|
238
252
|
user-select: none;
|
|
239
253
|
pointer-events: none;
|
|
240
254
|
position: absolute;
|
|
@@ -246,11 +260,11 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
|
|
|
246
260
|
text-overflow: ellipsis;
|
|
247
261
|
color: ${r.text.static_icons__default.rgba};
|
|
248
262
|
max-width: 100%;
|
|
249
|
-
`,O=u(l)`
|
|
250
|
-
margin: ${i.medium};
|
|
251
263
|
`,k=u(l)`
|
|
264
|
+
margin: ${i.medium};
|
|
265
|
+
`,A=u(l)`
|
|
252
266
|
margin-left: ${i.medium};
|
|
253
|
-
`,
|
|
267
|
+
`,j=u(c)`
|
|
254
268
|
max-height: 20rem;
|
|
255
269
|
max-width: inherit;
|
|
256
270
|
overflow-y: auto;
|
|
@@ -258,12 +272,16 @@ import{animation as e}from"../../atoms/style/animation.js";import{VARIANT_COLORS
|
|
|
258
272
|
width: inherit;
|
|
259
273
|
max-width: inherit;
|
|
260
274
|
}
|
|
261
|
-
`,
|
|
275
|
+
`,M=u.div`
|
|
262
276
|
display: flex;
|
|
263
277
|
align-items: center;
|
|
264
278
|
gap: ${i.small};
|
|
265
|
-
`,
|
|
279
|
+
`,N=d`
|
|
266
280
|
width: 36px;
|
|
267
281
|
height: 36px;
|
|
268
282
|
flex-shrink: 0;
|
|
269
|
-
|
|
283
|
+
`,P=u(s)`
|
|
284
|
+
${N}
|
|
285
|
+
`,F=u.div`
|
|
286
|
+
${N}
|
|
287
|
+
`;export{s as Button,F as ChevronPlaceholder,_ as ClearButton,v as ComboBoxChip,h as Container,b as GroupTitle,m as HelperWrapper,p as LabelWrapper,E as MenuItemSpacer,M as MenuItemWrapper,A as NoItemsFoundText,k as NoTagFoundText,S as PersistentComboBoxWrapper,y as PersistentGroupsWrapper,T as PersistentListItem,w as PersistentListScrollArea,C as PersistentStickyWrapper,D as PlaceholderText,g as Section,P as SmallButton,j as StyledMenu,x as StyledMenuItem,O as ValueText,f as Wrapper};
|
|
@@ -100,4 +100,4 @@ type CommonSelectProps<T extends SelectOptionRequired> = {
|
|
|
100
100
|
'data-testid'?: string;
|
|
101
101
|
} & CustomMenuItemComponentProps<T>;
|
|
102
102
|
//#endregion
|
|
103
|
-
export { CommonSelectProps, GroupedSelectProps, ListSelectProps, MenuModeSelectProps, MultiSelectCommon, PersistentModeSelectProps, PersistentSelectProps, SelectOption, SelectOptionRequired, SingleSelectCommon };
|
|
103
|
+
export { CommonSelectProps, CustomMenuItemComponentProps, GroupedSelectProps, ListSelectProps, MenuModeSelectProps, MultiSelectCommon, PersistentModeSelectProps, PersistentSelectProps, SelectGroup, SelectOption, SelectOptionRequired, SelectedState, SingleSelectCommon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../atoms/style/spacings.js";import{getChildOffset as n}from"./Select.utils.js";import{
|
|
1
|
+
import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"../../atoms/style/spacings.js";import{getChildOffset as n}from"./Select.utils.js";import{ChevronPlaceholder as r,MenuItemSpacer as i,MenuItemWrapper as a,SmallButton as o}from"./Select.styles.js";import{DynamicMenuItem as s}from"./DynamicMenuItem.js";import{useMemo as c,useRef as l,useState as u}from"react";import{Icon as d}from"@equinor/eds-core-react";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{chevron_down as h,chevron_right as g}from"@equinor/eds-icons";const{colors:_}=e,v=e=>{let{index:y,childOffset:b,depth:x=0,item:S,itemRefs:C,onItemKeyDown:w,onItemSelect:T,CustomMenuItemComponent:E,mode:D}=e,[O,k]=u(!1),A=l(-1),j=l([]),M=(`values`in e?e.values.map(({value:e})=>e):[]).includes(S.value),N=c(()=>Array(x).fill(0).map((e,t)=>p(i,{},`spacer-${e+t}`)),[x]),P=e=>{e.stopPropagation(),k(e=>!e)},F=e=>{!O&&e.key===`ArrowDown`||e.key===`ArrowUp`?w(e):e.key===`ArrowRight`||e.key===`ArrowLeft`?k(e=>!e):O&&e.key===`ArrowDown`&&A.current===-1&&(A.current=0,j.current[A.current+b]?.focus())},I=e=>{e.key===`ArrowDown`?A.current+=1:e.key===`ArrowUp`&&--A.current,A.current<=-1?(C.current[y]?.focus(),A.current=-1):A.current+b===j.current.length?(A.current=-1,w(e),k(!1)):A.current>=0&&A.current<j.current.length-b&&j.current[A.current+b]?.focus()};return S.children&&S.children.length>0&&`values`in e?m(f,{children:[m(a,{style:{paddingLeft:x===0?t.small:0},children:[N,p(o,{variant:`ghost_icon`,onClick:P,"data-testid":`toggle-button`,children:p(d,{color:_.interactive.primary__resting.rgba,data:O?h:g})}),p(s,{menuItemProps:e,isSelected:M,handleOnParentKeyDown:F})]}),O&&S.children.map((t,r)=>p(v,{index:b+r,childOffset:b+n(S.children,r),depth:x+1,item:t,itemRefs:j,values:e.values,onItemKeyDown:I,onItemSelect:T,mode:D,parentHasNestedItems:!0,CustomMenuItemComponent:E},`child-${r}-${t.value}-${S.value}`))]}):`values`in e?m(a,{children:[N,x>0&&p(r,{}),p(s,{menuItemProps:e,isSelected:M})]}):p(a,{children:p(s,{menuItemProps:e,isSelected:!!(e.value&&S.value===e.value.value)})})};export{v as SelectMenuItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{flattenOptions as e}from"./Select.utils.js";import{checkbox as t,checkbox_indeterminate as n,checkbox_outline as r}from"@equinor/eds-icons";const i={selected:t,indeterminate:n,none:r};function a(e,t){
|
|
1
|
+
import{flattenOptions as e}from"./Select.utils.js";import{checkbox as t,checkbox_indeterminate as n,checkbox_outline as r}from"@equinor/eds-icons";const i={selected:t,indeterminate:n,none:r};function a(e,t){let n=o(e,t);return i[n]}function o(t,n){let r=n.some(e=>e.value===t.value),i=n.map(({value:e})=>e),a=e([t])?.map(({value:e})=>e);return r?`selected`:a.some(e=>i.includes(e))?`indeterminate`:`none`}export{a as getParentIcon,o as getParentState};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonSelectProps, GroupedSelectProps, ListSelectProps, SelectOptionRequired, SingleSelectCommon } from "../Select.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react173 from "react";
|
|
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>):
|
|
18
|
+
declare function SingleSelect<T extends SelectOptionRequired>(props: SingleSelectProps<T>): react173.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { SingleSelect, SingleSelectProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react174 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:
|
|
10
|
+
declare const Checkbox$1: react174.ForwardRefExoticComponent<CheckboxProps$1 & react174.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Checkbox$1 as Checkbox, CheckboxProps$1 as CheckboxProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react180 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:
|
|
10
|
+
declare const Radio$1: react180.ForwardRefExoticComponent<RadioProps$1 & react180.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Radio$1 as Radio, RadioProps$1 as RadioProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react178 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:
|
|
8
|
+
declare const Switch$1: react178.ForwardRefExoticComponent<SwitchProps$1 & react178.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch$1 as Switch, SwitchProps$1 as SwitchProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as react58 from "react";
|
|
2
|
+
import * as styled_components12 from "styled-components";
|
|
3
|
+
import * as styled_components_dist_types5 from "styled-components/dist/types";
|
|
4
4
|
import * as styled_components_dist_models_Keyframes0 from "styled-components/dist/models/Keyframes";
|
|
5
5
|
|
|
6
6
|
//#region src/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts
|
|
@@ -8,6 +8,6 @@ declare const skeletonBaseloading: styled_components_dist_models_Keyframes0.defa
|
|
|
8
8
|
interface SkeletonBaseProps {
|
|
9
9
|
$offset?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const SkeletonBase:
|
|
11
|
+
declare const SkeletonBase: styled_components_dist_types5.IStyledComponentBase<"web", styled_components12.FastOmit<styled_components12.FastOmit<react58.DetailedHTMLProps<react58.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never> & Partial<Pick<styled_components12.FastOmit<react58.DetailedHTMLProps<react58.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$offset"> & SkeletonBaseProps, never>>> & string;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SkeletonBase, SkeletonBaseProps, skeletonBaseloading };
|
|
@@ -12,4 +12,4 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
}
|
|
14
14
|
`:``}
|
|
15
|
-
`,d=({index:t,onlyShowCurrentStepLabel:o=!1,children:s,allowJumpingAhead:d=!1})=>{let{currentStep:f,setCurrentStep:p,isStepAtIndexDisabled:m}=n(),h=m(t),g=i(()=>t<f?`body_short`:`body_short_bold`,[f,t,d]),_=i(()=>h||t>f&&!d?e.interactive.disabled__text.rgba:e.text.static_icons__default.rgba,[f,t,h,d]),v=i(()=>h?!1:!!(t<f||d&&t>f),[t,f,h,d]);return l(u,{"data-testid":`step`,$clickable:v,onClick:()=>{v&&p(t)},onKeyDown:e=>{v&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(t))},$disabled:h,"aria-disabled":!v,role:`button`,tabIndex:v?0:-1,children:[c(r,{index:t,disabled:h,allowJumpingAhead:d}),(!o||f===t)&&c(a,{variant:g,color:_,children:s})]})};export{d as default};
|
|
15
|
+
`,d=({index:t,onlyShowCurrentStepLabel:o=!1,children:s,allowJumpingAhead:d=!1})=>{let{currentStep:f,setCurrentStep:p,isStepAtIndexDisabled:m}=n(),h=m(t),g=i(()=>t<f?`body_short`:`body_short_bold`,[f,t,d]),_=i(()=>h||t>f&&!d?e.interactive.disabled__text.rgba:e.text.static_icons__default.rgba,[f,t,h,d]),v=i(()=>h?!1:!!(t<f||d&&t>f),[t,f,h,d]);return l(u,{"data-testid":`step`,$clickable:v,onClick:()=>{v&&p(t)},onKeyDown:e=>{v&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(t))},$disabled:h,"aria-disabled":!v,role:`button`,tabIndex:v?0:-1,children:[c(r,{index:t,disabled:h,allowJumpingAhead:d}),(!o||f===t)&&c(a,{variant:g,color:_,children:s})]})};export{d as Step,d as default};
|
|
@@ -4,4 +4,4 @@ import{tokens as e}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
4
4
|
background: ${e=>e.$background};
|
|
5
5
|
border: none;
|
|
6
6
|
margin: 0;
|
|
7
|
-
`,o=({done:e})=>
|
|
7
|
+
`,o=({done:e})=>{let n=t(()=>e?i.interactive.primary__resting.rgba:i.interactive.disabled__text.rgba,[e]);return r(a,{$background:n})};export{o as StepLine};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{spacings as e}from"../../atoms/style/spacings.js";import{useStepper as t}from"../../providers/StepperProvider.js";import n
|
|
1
|
+
import{spacings as e}from"../../atoms/style/spacings.js";import{useStepper as t}from"../../providers/StepperProvider.js";import{Step as n}from"./Step/Step.js";import{StepLine as r}from"./StepLine.js";import{SubTitle as i}from"./SubTitle/SubTitle.js";import{useMemo as a}from"react";import o,{css as s}from"styled-components";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e.xx_large};
|
|
@@ -84,7 +84,11 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
84
84
|
background: ${e.interactive.primary__resting.rgba};
|
|
85
85
|
`,c=r.span`
|
|
86
86
|
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
87
89
|
padding: ${t.x_small} ${t.small};
|
|
90
|
+
min-width: 24px;
|
|
91
|
+
min-height: 24px;
|
|
88
92
|
background: ${e.interactive.primary__resting.rgba};
|
|
89
93
|
border-radius: ${n.rounded.borderRadius};
|
|
90
94
|
> span {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tabs as Tabs$1 } from "./Tabs.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react57 from "react";
|
|
3
3
|
import { HTMLAttributes, Ref } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/molecules/Tabs/Tabs.d.ts
|
|
@@ -27,6 +27,6 @@ declare function Tabs<T>({
|
|
|
27
27
|
onHover,
|
|
28
28
|
ref,
|
|
29
29
|
...rest
|
|
30
|
-
}: TabsProps<T>):
|
|
30
|
+
}: TabsProps<T>): react57.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { Tabs, TabsProps };
|
|
@@ -52,4 +52,4 @@ import { Radio as Radio$1, RadioProps as RadioProps$1 } from "./SelectionControl
|
|
|
52
52
|
import { Switch as Switch$1, SwitchProps as SwitchProps$1 } from "./SelectionControls/Switch/Switch.js";
|
|
53
53
|
import { Waves } from "./Waves/Waves.js";
|
|
54
54
|
import { Accordion, AccordionHeaderActionsProps, AccordionHeaderProps, AccordionHeaderTitleProps, AccordionItemProps, AccordionPanelProps, AccordionProps, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps, CircularProgress as CircularProgress$1, CircularProgressProps, Dialog as EDSDialog, DialogProps as EDSDialogProps, Divider as Divider$1, DividerProps, DotProgress as DotProgress$1, DotProgressProps, Icon as Icon$1, IconProps as IconProps$1, LinearProgress as LinearProgress$1, LinearProgressProps, Menu as Menu$1, MenuProps, SearchProps as SearchProps$1, Typography as Typography$1, TypographyProps } from "@equinor/eds-core-react";
|
|
55
|
-
export { Accordion, type AccordionHeaderActionsProps, type AccordionHeaderProps, type AccordionHeaderTitleProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, CircularProgress$1 as CircularProgress, type CircularProgressProps, Divider$1 as Divider, type DividerProps, DotProgress$1 as DotProgress, type DotProgressProps, EDSDialog, type EDSDialogProps, Icon$1 as Icon, type IconProps$1 as IconProps, LinearProgress$1 as LinearProgress, type LinearProgressProps, Menu$1 as Menu, type MenuProps, type SearchProps$1 as SearchProps, Typography$1 as Typography, type TypographyProps };
|
|
55
|
+
export { Accordion, type AccordionHeaderActionsProps, type AccordionHeaderProps, type AccordionHeaderTitleProps, type AccordionItemProps, type AccordionPanelProps, type AccordionProps, AmplifyBar, AmplifyKit, AnimatedCheckmark, ApplicationIcon, type ApplicationIconProps, Badge, type BadgeProps, Banner, type BannerProps, type BaseChipProps, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button$1 as Button, type ButtonProps, Checkbox$1 as Checkbox, type CheckboxProps$1 as CheckboxProps, Chip$1 as Chip, CircularProgress$1 as CircularProgress, type CircularProgressProps, ComboBox, ComboBoxChip, type ComboBoxProps, Confetti, type ConfettiBoomProps, type ConfettiProps, type ConfettiShowerProps, DEFAULT_FEATURES, DatePicker$1 as DatePicker, type DatePickerProps$1 as DatePickerProps, DateRangePicker$1 as DateRangePicker, type DateRangePickerProps$1 as DateRangePickerProps, Dialog$1 as Dialog, type DialogAction, type DialogProps$1 as DialogProps, Divider$1 as Divider, type DividerProps, DotProgress$1 as DotProgress, type DotProgressProps, EDSDialog, type EDSDialogProps, EditorMenu, EditorPanel, EditorText, EquinorLogo, type EquinorLogoProps, FeedBackIcon, type FeedBackIconProps, FileProgress, type FileProgressProps, type FileProgressPropsExtension, FileUploadArea, type FileUploadAreaProps, FullPageSpinner, type FullPageSpinnerProps, Icon$1 as Icon, IconButton, type IconButtonProps, IconCell, type IconCellColor, type IconCellColorObject, IconCellColors, type IconCellProps, type IconCellState, IconCellStates, type IconCellVariant, IconCellVariants, type IconProps$1 as IconProps, ImageExtensionFnProps, InfoElement, type InfoElementProps, InformationalNotice, type InformationalNoticeProps, LinearProgress$1 as LinearProgress, type LinearProgressProps, ListItem, type ListItemProps, Menu$1 as Menu, type MenuProps, OptionDrawer, type OptionDrawerProps, type OptionDrawerSelectItem, OptionalTooltip, type OptionalTooltipProps, PersistentComboBox, type PersistentComboBoxProps, ProfileAvatar, type ProfileAvatarProps, Radio$1 as Radio, type RadioProps$1 as RadioProps, RichText, RichTextDisplay, type RichTextDisplayProps, RichTextEditor, RichTextEditorFeatures, type RichTextEditorProps, Search$1 as Search, type SearchProps$1 as SearchProps, type SelectOption, type SelectOptionRequired, SingleSelect, type SingleSelectProps, SkeletonBase, type SkeletonBaseProps, SkeletonGradient, type SkeletonGradientProps, Stepper, type StepperProps, Switch$1 as Switch, type SwitchProps$1 as SwitchProps, type Tab, TableHeader, type TableHeaderProps, TableMenuBar, Tabs, type TabsProps, Tag, type TagProps, TextField$1 as TextField, type TextFieldProps$1 as TextFieldProps, TextTable, Toast, type ToastProps, Typography$1 as Typography, type TypographyProps, Waves, skeletonBaseloading };
|
package/dist/molecules/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./FullPageSpinner/FullPageSpinner.js";import"./RichTextEditor/RichTextEditor.types.js";import"./RichTextEditor/custom-extensions/AmplifyKit.js";import"./AnimatedCheckmark/AnimatedCheckmark.js";import"./ApplicationIcon/ApplicationIcon.js";import"./Badge/Badge.js";import"./Banner/Banner.js";import"./Button/Button.js";import"./Button/IconButton/IconButton.js";import"./Chip/Chip.js";import"./Confetti/Confetti.js";import"./Skeleton/SkeletonBase/SkeletonBase.js";import"./DatePicker/DatePicker.js";import"./DateRangePicker/DateRangePicker.js";import"./OptionalTooltip/OptionalTooltip.js";import"./Dialog/Dialog.js";import"./EquinorLogo/EquinorLogo.js";import"./FileProgress/FileProgress.js";import"./FileUploadArea/FileUploadArea.js";import"./IconCell/IconCell.types.js";import"./IconCell/IconCell.js";import"./InfoElement/InfoElement.js";import"./InformationalNotice/InformationalNotice.js";import"./ProfileAvatar/ProfileAvatar.js";import"./RichTextDisplay/RichTextDisplay.js";import"./RichTextEditor/MenuBar/Table/TableBar.js";import"./TextField/TextField.js";import"./RichTextEditor/MenuBar/MenuBar.js";import"./RichTextEditor/RichTextEditor.js";import"./RichTextEditor/index.js";import"./Tabs/Tabs.js";import"./Search/Search.js";import"./Skeleton/SkeletonGradient/SkeletonGradient.js";import"./Stepper/Stepper.js";import"./OptionDrawer/OptionDrawer.js";import"./Select/Select.styles.js";import"./Select/ComboBox/ComboBox.js";import"./Select/PersistentComboBox/PersistentComboBox.js";import"./Select/SingleSelect/SingleSelect.js";import"./Tag/Tag.js";import"./TableHeader/TableHeader.js";import"./FeedBackIcon/FeedBackIcon.js";import"./ListItem/ListItem.js";import"./SelectionControls/Checkbox/Checkbox.js";import"./SelectionControls/Radio/Radio.js";import"./SelectionControls/Switch/Switch.js";import"./Waves/Waves.js";import"./Toast/Toast.js";import{Accordion as
|
|
1
|
+
import{FullPageSpinner as e}from"./FullPageSpinner/FullPageSpinner.js";import{DEFAULT_FEATURES as t,RichTextEditorFeatures as n}from"./RichTextEditor/RichTextEditor.types.js";import{AmplifyKit as r}from"./RichTextEditor/custom-extensions/AmplifyKit.js";import{AnimatedCheckmark as i}from"./AnimatedCheckmark/AnimatedCheckmark.js";import{ApplicationIcon as a}from"./ApplicationIcon/ApplicationIcon.js";import{Badge as o}from"./Badge/Badge.js";import{Banner as s}from"./Banner/Banner.js";import{Button as c}from"./Button/Button.js";import{IconButton as l}from"./Button/IconButton/IconButton.js";import{Chip as u}from"./Chip/Chip.js";import{Confetti as d}from"./Confetti/Confetti.js";import{SkeletonBase as f,skeletonBaseloading as p}from"./Skeleton/SkeletonBase/SkeletonBase.js";import{DatePicker as m}from"./DatePicker/DatePicker.js";import{DateRangePicker as h}from"./DateRangePicker/DateRangePicker.js";import{OptionalTooltip as g}from"./OptionalTooltip/OptionalTooltip.js";import{Dialog as _}from"./Dialog/Dialog.js";import{EquinorLogo as v}from"./EquinorLogo/EquinorLogo.js";import{FileProgress as y}from"./FileProgress/FileProgress.js";import{FileUploadArea as b}from"./FileUploadArea/FileUploadArea.js";import{IconCellColors as x,IconCellStates as S,IconCellVariants as C}from"./IconCell/IconCell.types.js";import{IconCell as w}from"./IconCell/IconCell.js";import{InfoElement as T}from"./InfoElement/InfoElement.js";import{InformationalNotice as E}from"./InformationalNotice/InformationalNotice.js";import{ProfileAvatar as D}from"./ProfileAvatar/ProfileAvatar.js";import{RichTextDisplay as O}from"./RichTextDisplay/RichTextDisplay.js";import{TableMenuBar as k,TextTable as A}from"./RichTextEditor/MenuBar/Table/TableBar.js";import{TextField as j}from"./TextField/TextField.js";import{AmplifyBar as M,EditorMenu as N,EditorText as P}from"./RichTextEditor/MenuBar/MenuBar.js";import{RichTextEditor as F}from"./RichTextEditor/RichTextEditor.js";import{RichText as I}from"./RichTextEditor/index.js";import{Tabs as L}from"./Tabs/Tabs.js";import{Search as R}from"./Search/Search.js";import{SkeletonGradient as z}from"./Skeleton/SkeletonGradient/SkeletonGradient.js";import{Stepper as B}from"./Stepper/Stepper.js";import{OptionDrawer as V}from"./OptionDrawer/OptionDrawer.js";import{ComboBoxChip as H}from"./Select/Select.styles.js";import{ComboBox as U}from"./Select/ComboBox/ComboBox.js";import{PersistentComboBox as W}from"./Select/PersistentComboBox/PersistentComboBox.js";import{SingleSelect as G}from"./Select/SingleSelect/SingleSelect.js";import{Tag as K}from"./Tag/Tag.js";import{TableHeader as q}from"./TableHeader/TableHeader.js";import{FeedBackIcon as J}from"./FeedBackIcon/FeedBackIcon.js";import{ListItem as Y}from"./ListItem/ListItem.js";import{Checkbox as X}from"./SelectionControls/Checkbox/Checkbox.js";import{Radio as Z}from"./SelectionControls/Radio/Radio.js";import{Switch as Q}from"./SelectionControls/Switch/Switch.js";import{Waves as $}from"./Waves/Waves.js";import{Toast as ee}from"./Toast/Toast.js";import{Accordion as te,Breadcrumbs as ne,CircularProgress as re,Dialog as ie,Divider as ae,DotProgress as oe,Icon as se,LinearProgress as ce,Menu as le,Typography as ue}from"@equinor/eds-core-react";export{te as Accordion,M as AmplifyBar,r as AmplifyKit,i as AnimatedCheckmark,a as ApplicationIcon,o as Badge,s as Banner,ne as Breadcrumbs,c as Button,X as Checkbox,u as Chip,re as CircularProgress,U as ComboBox,H as ComboBoxChip,d as Confetti,t as DEFAULT_FEATURES,m as DatePicker,h as DateRangePicker,_ as Dialog,ae as Divider,oe as DotProgress,ie as EDSDialog,N as EditorMenu,P as EditorText,v as EquinorLogo,J as FeedBackIcon,y as FileProgress,b as FileUploadArea,e as FullPageSpinner,se as Icon,l as IconButton,w as IconCell,x as IconCellColors,S as IconCellStates,C as IconCellVariants,T as InfoElement,E as InformationalNotice,ce as LinearProgress,Y as ListItem,le as Menu,V as OptionDrawer,g as OptionalTooltip,W as PersistentComboBox,D as ProfileAvatar,Z as Radio,I as RichText,O as RichTextDisplay,F as RichTextEditor,n as RichTextEditorFeatures,R as Search,G as SingleSelect,f as SkeletonBase,z as SkeletonGradient,B as Stepper,Q as Switch,q as TableHeader,k as TableMenuBar,L as Tabs,K as Tag,j as TextField,A as TextTable,ee as Toast,ue as Typography,$ as Waves,p as skeletonBaseloading};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react6 from "react";
|
|
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>) =>
|
|
5
|
+
declare const DataGrid: <T>(props: EdsDataGridProps<T>) => react6.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DataGrid };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=e=>{let t=(e.faqs?.length??0)>0,n=e.subCategories?.some(e=>(e.faqs?.length??0)>0);return t||!!n};function t(e,t){let n=t.toLowerCase();return!e.answer||!e.question?!1:n===``?!0:e.answer.toLowerCase().includes(n)||e.question.toLowerCase().includes(n)}function n(t){return e(t)}function r(e,n){let r=(e.faqs??[]).filter(e=>!n||t(e,n)),i=(e.subCategories??[]).map(e=>{let r=(e.faqs??[]).filter(e=>!n||t(e,n));return r.length>0?{...e,faqs:r}:null}).filter(Boolean);return{...e,faqs:r,subCategories:i}}export{e as categoryHasFaqs,n as filterCategory,r as mapCategoryToSearch};
|
|
1
|
+
const e=e=>{let t=(e.faqs?.length??0)>0,n=e.subCategories?.some(e=>(e.faqs?.length??0)>0);return t||!!n};function t(e,t){let n=t.toLowerCase();return!e.answer||!e.question?!1:n===``?!0:e.answer.toLowerCase().includes(n)||e.question.toLowerCase().includes(n)}function n(t){return e(t)}function r(e,n){let r=(e.faqs??[]).filter(e=>!n||t(e,n)),i=(e.subCategories??[]).map(e=>{let r=(e.faqs??[]).filter(e=>!n||t(e,n));return r.length>0?{...e,faqs:r}:null}).filter(Boolean);return{...e,faqs:r,subCategories:i}}export{e as categoryHasFaqs,t as faqInSearch,n as filterCategory,r as mapCategoryToSearch};
|
|
@@ -21,4 +21,4 @@ import{colors as e}from"../../atoms/style/colors.js";import{spacings as t}from".
|
|
|
21
21
|
span {
|
|
22
22
|
text-transform: capitalize;
|
|
23
23
|
}
|
|
24
|
-
`,m=({fieldName:e,onChangedField:t,finishedText:a})=>{let{finished:s,progress:m}=r({onDone:t});return l(d,{children:s?u(c,{children:[u(p,{variant:`h3`,children:[`Changed to `,l(`span`,{children:n(e)})]}),l(i,{}),l(o,{variant:`h6`,children:a})]}):u(c,{children:[u(o,{variant:`h3`,children:[`Changing field.`,`.`.repeat(m/35)]}),l(f,{variant:`determinate`,value:m})]})})};export{m as ChangingField};
|
|
24
|
+
`,m=({fieldName:e,onChangedField:t,finishedText:a})=>{let{finished:s,progress:m}=r({onDone:t});return l(d,{children:s?u(c,{children:[u(p,{variant:`h3`,children:[`Changed to `,l(`span`,{children:n(e)})]}),l(i,{}),l(o,{variant:`h6`,children:a})]}):u(c,{children:[u(o,{variant:`h3`,children:[`Changing field.`,`.`.repeat(m/35)]}),l(f,{variant:`determinate`,value:m})]})})};export{m as ChangingField,f as LinearProgress};
|
|
@@ -8,4 +8,4 @@ import{colors as e}from"../../atoms/style/colors.js";import{findStartAndEndIndex
|
|
|
8
8
|
> span {
|
|
9
9
|
color: transparent;
|
|
10
10
|
}
|
|
11
|
-
`;function c({search:e,autoCompleteOptions:r}){let i=n({autoCompleteOptions:r,searchValue:e});if(i.length===0)return null;let c=i[0],[l,u]=t({searchValue:e,label:c.label});return l===0?o(s,{children:[a(`span`,{children:e.slice(0,e.length)}),c.label.slice(u+1)]}):null}export{c as AutoCompleteText};
|
|
11
|
+
`;function c({search:e,autoCompleteOptions:r}){let i=n({autoCompleteOptions:r,searchValue:e});if(i.length===0)return null;let c=i[0],[l,u]=t({searchValue:e,label:c.label});return l===0?o(s,{children:[a(`span`,{children:e.slice(0,e.length)}),c.label.slice(u+1)]}):null}export{c as AutoCompleteText,s as StyledTypography};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilterProps } from "./Filter.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react187 from "react";
|
|
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>):
|
|
35
|
+
}: FilterProps<T>): react187.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Filter };
|
|
@@ -26,4 +26,4 @@ interface FilterWithAutoCompleteOptions<T extends string> extends CommonFilterPr
|
|
|
26
26
|
}
|
|
27
27
|
type FilterProps<T extends string> = CommonFilterProps<T> | FilterWithAutoCompleteOptions<T>;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { FilterProps };
|
|
29
|
+
export { FilterProps, FilterWithAutoCompleteOptions };
|
|
@@ -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
|
|
3
|
+
import * as react188 from "react";
|
|
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>):
|
|
17
|
+
}: QuickFilterProps<T>): react188.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { QuickFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react186 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Filter/SortMenu.d.ts
|
|
4
4
|
interface SortMenuProps<S> {
|
|
@@ -13,6 +13,6 @@ declare function SortMenu<S>({
|
|
|
13
13
|
value,
|
|
14
14
|
onChange,
|
|
15
15
|
items
|
|
16
|
-
}: SortMenuProps<S>):
|
|
16
|
+
}: SortMenuProps<S>): react186.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SortMenu };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react12 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:
|
|
10
|
+
declare const ReleaseNote$1: react12.ForwardRefExoticComponent<{
|
|
11
11
|
actionMenu?: ReactNode;
|
|
12
12
|
expanded?: boolean;
|
|
13
|
-
} & ReleaseNote &
|
|
13
|
+
} & ReleaseNote & react12.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ReleaseNote$1 as ReleaseNote, ReleaseNoteProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react189 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:
|
|
19
|
+
declare const SideBar: react189.ForwardRefExoticComponent<(SideBarWithCreate | BaseSideBar) & react189.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SideBar };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react196 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:
|
|
8
|
+
declare const Action: react196.ForwardRefExoticComponent<ActionProps & react196.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Action };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react202 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:
|
|
7
|
+
declare const Description: react202.ForwardRefExoticComponent<DescriptionProps & react202.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Description };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react200 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:
|
|
12
|
+
declare const MissingAccesses: react200.ForwardRefExoticComponent<MissingAccessesProps & react200.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MissingAccesses };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react198 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:
|
|
7
|
+
declare const Title: react198.ForwardRefExoticComponent<TitleProps & react198.RefAttributes<HTMLHeadingElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Title };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react195 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/organisms/Status/collections/BadRequest.d.ts
|
|
4
4
|
interface BadRequestProps {
|
|
@@ -12,6 +12,6 @@ declare const BadRequest: ({
|
|
|
12
12
|
redirectFallbackUrl,
|
|
13
13
|
onBackClick,
|
|
14
14
|
hideBackButton
|
|
15
|
-
}: BadRequestProps) =>
|
|
15
|
+
}: BadRequestProps) => react195.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { BadRequest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react191 from "react";
|
|
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) =>
|
|
17
|
+
}: GenericErrorProps) => react191.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { GenericError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react192 from "react";
|
|
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) =>
|
|
17
|
+
}: MissingPermissionsProps) => react192.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { MissingPermissions };
|