@orfium/ictinus 4.55.0-next.3 → 4.55.0-next.5
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/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.style.js +13 -13
- package/dist/components/Avatar/Avatar.tokens.js +1 -1
- package/dist/components/Avatar/AvatarStack/AvatarStack.js +1 -1
- package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +7 -7
- package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +2 -2
- package/dist/components/Breadcrumb/Separator/Separator.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.style.js +1 -1
- package/dist/components/Button/Button.tokens.js +1 -0
- package/dist/components/Button/ButtonLoader/ButtonLoader.js +1 -1
- package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +1 -5
- package/dist/components/ButtonBase/ButtonBase.js +1 -1
- package/dist/components/ButtonBase/ButtonBase.style.js +1 -1
- package/dist/components/Chart/BarChart/BarChart.js +1 -1
- package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -1
- package/dist/components/Chart/DonutChart/DonutChart.js +1 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +1 -1
- package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +1 -1
- package/dist/components/Chart/LineChart/LineChart.js +1 -1
- package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -1
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.style.js +21 -21
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.style.js +5 -5
- package/dist/components/Chip/components/Badge/Badge.style.js +2 -2
- package/dist/components/Chip/utils.js +1 -1
- package/dist/components/DatePicker/DatePickInput/DatePickInput.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/Day/Day.js +1 -1
- package/dist/components/DatePicker/Month/Month.js +1 -1
- package/dist/components/DatePicker/Month/Month.style.js +2 -2
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +1 -1
- package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +2 -2
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +1 -1
- package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +1 -1
- package/dist/components/DatePicker/utils.js +1 -1
- package/dist/components/Drawer/Navigation/Navigation.style.js +4 -4
- package/dist/components/ExpandCollapse/ExpandCollapse.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/Filter.style.js +3 -3
- package/dist/components/Filter/components/Options/Options.style.js +1 -1
- package/dist/components/Filter/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Label/Label.style.js +5 -5
- package/dist/components/List/List.style.js +18 -7
- package/dist/components/List/ListItem/ListItem.js +1 -1
- package/dist/components/List/ListItem/ListItem.style.js +7 -7
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +5 -5
- package/dist/components/List/ListItemGroup/ListItemGroup.js +1 -1
- package/dist/components/List/utils.js +1 -1
- package/dist/components/Loader/components/Spinner/Spinner.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalContent/ModalContent.js +1 -1
- package/dist/components/Modal/ModalContent/ModalContent.style.js +5 -5
- package/dist/components/Notification/Notification.style.js +7 -7
- package/dist/components/Notification/NotificationVisual/NotificationVisual.js +1 -1
- package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +6 -6
- package/dist/components/Notification/Snackbar/Snackbar.js +1 -1
- package/dist/components/Notification/Snackbar/Snackbar.style.js +10 -12
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +1 -1
- package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +12 -12
- package/dist/components/Notification/subcomponents/NotificationActionsArea/NotificationActionsArea.js +1 -0
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/components/MultiselectTextField/MultiselectTextField.js +1 -0
- package/dist/components/Select/components/MultiselectTextField/MultiselectTextField.style.js +29 -0
- package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +10 -10
- package/dist/components/Select/hooks/useMultiselectUtils.js +1 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/components/SliderMark/SliderMark.js +1 -1
- package/dist/components/Slider/components/SliderMark/SliderMark.style.js +1 -1
- package/dist/components/Slider/components/SliderTrack/SliderTrack.js +1 -1
- package/dist/components/Switch/Switch.style.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +1 -1
- package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +1 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +1 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +1 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +1 -1
- package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +1 -1
- package/dist/components/Table/components/TableCell/TableCell.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextInputBase/TextInputBase.js +1 -1
- package/dist/components/TextInputBase/TextInputBase.style.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.style.js +9 -9
- package/dist/components/Tooltip/Tooltip.style.js +7 -7
- package/dist/components/TopAppBar/components/Search/Search.js +1 -1
- package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +1 -1
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +1 -1
- package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +1 -1
- package/dist/components/Typography/Typography.js +1 -0
- package/dist/components/Typography/Typography.style.js +85 -0
- package/dist/components/utils/PositionInScreen/PositionInScreen.js +1 -1
- package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +8 -7
- package/dist/components/utils/PositionInScreen/hooks.js +1 -0
- package/dist/index.d.ts +142 -131
- package/dist/theme/globals/borderRadius.js +1 -1
- package/dist/theme/globals/borderWidth.js +1 -1
- package/dist/theme/globals/boxShadow.js +1 -1
- package/dist/theme/globals/opacity.js +1 -1
- package/dist/theme/globals/sizing.js +1 -1
- package/dist/theme/globals/spacing.js +1 -1
- package/dist/theme/globals/typography.js +1 -1
- package/dist/theme/palette.js +1 -1
- package/dist/theme/states/focus.js +1 -1
- package/dist/theme/states/states.tokens.js +1 -0
- package/dist/theme/tokens/semantic/backdrop.js +1 -1
- package/dist/theme/tokens/semantic/backgroundColor.js +1 -1
- package/dist/theme/tokens/semantic/borderColor.js +1 -1
- package/dist/theme/tokens/semantic/disabledState.js +1 -1
- package/dist/theme/tokens/semantic/palette.js +1 -1
- package/dist/theme/tokens/semantic/textColor.js +1 -1
- package/dist/theme/tokens/utils.js +1 -1
- package/dist/utils/size-utils.js +1 -1
- package/dist/utils/themeFunctions.js +1 -1
- package/package.json +2 -2
- package/dist/components/ButtonBase/config.js +0 -1
- package/dist/components/ButtonBase/utils.js +0 -1
- package/dist/components/IconButton/IconButton.style.js +0 -1
- package/dist/hooks/useLoading.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import a from"lodash/debounce.js";import i,{useMemo as l}from"react";import{errorHandler as s,generateTestDataId as o}from"../../utils/helpers.js";import
|
|
1
|
+
import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import a from"lodash/debounce.js";import i,{useMemo as l}from"react";import{errorHandler as s,generateTestDataId as o}from"../../utils/helpers.js";import{FilterBase as r}from"./components/FilterBase/FilterBase.js";import n from"./components/Options/Options.js";import c from"./components/SearchInput/SearchInput.js";import{menuStyle as d}from"./Filter.style.js";import{errors as m}from"./utils.js";import u from"../utils/ClickAwayListener/ClickAwayListener.js";import{handleSearch as p}from"../utils/handleSearch.js";const f=i.forwardRef(((f,h)=>{var b;const{items:v,onSelect:y,selectedItem:S,defaultValue:j,styleType:C,label:T="",buttonType:g="primary",filterType:I="preset",isDisabled:O=!1,dataTestId:L,isSearchable:V=!1,minCharactersToSearch:w=0,onAsyncSearch:k,isLoading:A=!1,isVirtualized:D=!1,onClear:F=(()=>{})}=f;s(m,f);const[B,x]=i.useState(!1),[z,N]=i.useState(""),R=Boolean(null==S?void 0:S.value)&&(null==S?void 0:S.value)!==j.value,U=B?"triangleUp":"triangleDown",q=l((()=>k?v:v.filter((e=>!z||e.label.toLowerCase().includes(z.toLowerCase())))),[z,v,k]),E=""===z&&!!v.length,G=i.useCallback(a((e=>{null==k||k(e)}),400),[]);return e(u,Object.assign({onClick:()=>x(!1)},{children:e(r,Object.assign({ref:h,dataTestId:L,handleOpen:()=>{N(""),x(!B)},isDisabled:O,onClear:F,selectedItemLabel:null!==(b=null==S?void 0:S.label)&&void 0!==b?b:j.label,isOpen:B,hasSelectedValue:R,label:T,iconName:U,filterType:I,buttonType:g,styleType:C},{children:B&&t("div",Object.assign({css:d(),"data-testid":o("filter-menu",L)},{children:[V&&e(c,{value:z,onChange:e=>{p({event:e,isSearchable:V,isAsync:"function"==typeof k,setSearchValue:N,onChange:G,minCharactersToSearch:w})},dataTestId:L,isLoading:A},void 0),e(n,{dataTestId:L,items:q,isVirtualized:D,defaultValue:j,isSearchable:V,selectedItem:S,onSelect:e=>{x(!1),y(e)},isDefaultOptionVisible:E},void 0)]}),void 0)}),void 0)}),void 0)}));f.displayName="Filter";export{f as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{css as e}from"@emotion/react";import{rem as t}from"../../theme/utils.js";import{
|
|
1
|
+
import{css as e}from"@emotion/react";import{rem as t}from"../../theme/utils.js";import{HAS_SELECTED_VALUE_COLOR_SHADE as o,getBorder as l,borderStyleParams as i,getTextColor as r,getBackgroundColor as a,focusBorderWidth as s,transparentFocusBorderWidth as d}from"./utils.js";import{getFocus as n}from"../../theme/states/focus.js";import{getHover as p}from"../../theme/states/hover.js";import{getPressed as c}from"../../theme/states/pressed.js";const h=()=>()=>({position:"relative",display:"inline-block",height:t(36)}),g=()=>()=>({display:"flex",alignItems:"center",gap:t(4),height:"100%"}),b=({isDisabled:e,isOpen:l,hasSelectedValue:i,calculatedColor:r,styleType:a})=>h=>{const g=!e&&!l,b="filled"===a?s:d;return{background:"none",border:"none",display:"flex",padding:"0",alignItems:"center",height:"100%",minWidth:t(110),":hover > div":{backgroundColor:g?i?p({theme:h,color:r.color,shade:o}).backgroundColor:p({theme:h}).backgroundColor:void 0},":active > div":{backgroundColor:g?i?c({theme:h,color:r.color,shade:o}).backgroundColor:c({theme:h}).backgroundColor:void 0},":focus-visible > div":{border:n({theme:h,borderWidth:b}).styleBorder},":focus-visible > span":{borderTop:n({theme:h,borderWidth:b}).styleBorder,borderBottom:n({theme:h,borderWidth:b}).styleBorder}}},u=({calculatedColor:e,isDisabled:t,isOpen:o,styleType:s,hasSelectedValue:d,filterType:n})=>p=>({fontSize:p.globals.typography.fontSize[13],cursor:t?"not-allowed":"pointer",height:"100%",opacity:t?.5:1,transition:"all 150ms linear",color:r({theme:p,isOpen:o,calculatedColor:e,hasSelectedValue:d}),backgroundColor:a({theme:p,isOpen:o,styleType:s,hasSelectedValue:d,calculatedColor:e}),border:`${i} ${l({styleType:s,theme:p,hasSelectedValue:d,filterType:n,calculatedColor:e,isOpen:o})}`,display:"flex",justifyContent:"center",width:"100%","&:hover":{border:`${i} ${l({styleType:s,theme:p,hasSelectedValue:d,filterType:n,calculatedColor:e,isOpen:o,state:"hover"})}`}}),m=e=>o=>{const{isOpen:r,calculatedColor:a,styleType:s,hasSelectedValue:d,filterType:n}=e;return{height:"100%",width:t(1),position:"relative",minWidth:t(1),transition:"all 150ms linear",backgroundColor:l({styleType:s,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:a,isOpen:r,isDivider:!0}),borderTop:`${i} ${l({styleType:s,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:a,isOpen:r})}`,borderBottom:`${i} ${l({styleType:s,theme:o,hasSelectedValue:d,filterType:n,calculatedColor:a,isOpen:r})}`}},y=e=>o=>Object.assign(Object.assign({},u(e)(o)),{borderLeft:"0 !important",paddingLeft:t(4),paddingRight:t(4),display:"flex",alignItems:"center",justifyContent:"center",width:t(34),borderTopRightRadius:o.globals.spacing.get("8"),borderBottomRightRadius:o.globals.spacing.get("8")}),f=e=>t=>{const{filterType:o}=e,l="preset"===o;return Object.assign(Object.assign({},u(e)(t)),{padding:`0 ${l?t.globals.spacing.get("6"):t.globals.spacing.get("3")} 0 ${t.globals.spacing.get("6")}`,borderRadius:t.globals.spacing.get("8"),borderRight:l?void 0:"0 !important",borderTopRightRadius:l?void 0:0,borderBottomRightRadius:l?void 0:0})},v=()=>()=>({lineHeight:t(15),marginLeft:0}),T=(e,t)=>o=>({fontWeight:e||t?o.globals.typography.fontWeight.get("bold"):o.globals.typography.fontWeight.get("regular"),display:"flex",alignItems:"center",div:{flex:"none"},span:{fontWeight:o.globals.typography.fontWeight.get("bold")}}),C=()=>e`
|
|
2
2
|
text-overflow: ellipsis;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
white-space: nowrap;
|
|
5
5
|
display: inline-block;
|
|
6
|
-
|
|
6
|
+
`,$=()=>o=>e`
|
|
7
7
|
position: absolute;
|
|
8
8
|
top: ${t(48)};
|
|
9
9
|
min-width: ${t(280)};
|
|
@@ -16,4 +16,4 @@ import{css as e}from"@emotion/react";import{rem as t}from"../../theme/utils.js";
|
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
min-width: 100%;
|
|
18
18
|
max-width: ${t(620)};
|
|
19
|
-
`;export{u as buttonBaseStyle,g as buttonSpanStyle,f as buttonStyle,b as buttonWrapperStyle,v as childrenWrapperStyle,y as dividedButtonStyle,m as divider,T as labelSpanStyle
|
|
19
|
+
`;export{u as buttonBaseStyle,g as buttonSpanStyle,f as buttonStyle,b as buttonWrapperStyle,v as childrenWrapperStyle,y as dividedButtonStyle,m as divider,T as labelSpanStyle,$ as menuStyle,C as valueSpanStyle,h as wrapperStyle};
|
|
@@ -2,6 +2,6 @@ import{css as o}from"@emotion/react";import{flexCenter as t}from"../../../../the
|
|
|
2
2
|
color: ${i.utils.getColor("lightGrey",750)};
|
|
3
3
|
height: ${e(48)};
|
|
4
4
|
padding: 0 ${e(16)};
|
|
5
|
-
font-size: ${i.globals.typography.
|
|
5
|
+
font-size: ${i.globals.typography.fontSize.get("3")};
|
|
6
6
|
${t};
|
|
7
7
|
`;export{i as emptyStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import t from"../../../../hooks/useTheme.js";import{useMemo as r}from"react";import{generateTestDataId as i}from"../../../../utils/helpers.js";import s from"
|
|
1
|
+
import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import t from"../../../../hooks/useTheme.js";import{useMemo as r}from"react";import{generateTestDataId as i}from"../../../../utils/helpers.js";import{iconWrapper as s,textFieldWrapper as a}from"./SearchInput.style.js";import l from"../../../Icon/Icon.js";import d from"../../../Loader/Loader.js";import m from"../../../TextField/TextField.js";const n=({onChange:n,value:c,dataTestId:p,isLoading:u})=>{const h=t(),f=r((()=>o("div",Object.assign({css:s()},{children:[u&&e(d,{},void 0),e(l,{size:20,name:"search",color:h.utils.getColor("lightGrey",650)},void 0)]}),void 0)),[h.utils,u]);return e("div",Object.assign({css:a()(h)},{children:e(m,{autoFocus:!0,styleType:"filled",onChange:n,"data-testid":i("filter-input",p),status:"normal",placeholder:"Search",value:c,rightIcon:f},void 0)}),void 0)};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"@emotion/react/jsx-runtime";import
|
|
1
|
+
import{jsx as o}from"@emotion/react/jsx-runtime";import t from"../../hooks/useTheme.js";import r from"react";import e from"../Button/Button.tokens.js";import n from"../Icon/Icon.js";import s from"../ButtonBase/ButtonBase.js";const i=r.forwardRef(((r,i)=>{const{name:a,type:m="primary",shape:c="circle",dataTestPrefixId:f}=r,p=t(),d=e(p).color[m].textColor;return o(s,Object.assign({},r,{ref:i,isIconButton:!0,shape:c,dataTestPrefixId:f?`${f}-icon-`:"icon-"},{children:o(n,{name:a,color:d},void 0)}),void 0)}));i.displayName="IconButton";export{i as default};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{BASE_SHADE as o}from"../../theme/palette.js";import{rem as e}from"../../theme/utils.js";const r=e(3),
|
|
1
|
+
import{css as t}from"@emotion/react";import{BASE_SHADE as o}from"../../theme/palette.js";import{rem as e}from"../../theme/utils.js";const r=e(3),a=({isAnimated:e,hasError:a})=>i=>t`
|
|
2
2
|
transition: transform 0.25s, opacity 0.25s ease-in-out;
|
|
3
3
|
transform-origin: 0 0;
|
|
4
4
|
width: 100%;
|
|
5
5
|
position: absolute;
|
|
6
6
|
user-select: none;
|
|
7
7
|
transform: ${e?`translate(${r}, -95%) scale(0.8);`:`translate(${r}, 0)`};
|
|
8
|
-
font-size: ${
|
|
9
|
-
font-weight: ${
|
|
10
|
-
color: ${
|
|
8
|
+
font-size: ${i.globals.typography.fontSize.get("4")};
|
|
9
|
+
font-weight: ${i.globals.typography.fontWeight.get("regular")};
|
|
10
|
+
color: ${a?i.utils.getColor("error",o,"normal"):i.utils.getColor("lightGrey",650)};
|
|
11
11
|
align-items: center;
|
|
12
12
|
display: flex;
|
|
13
13
|
top: 0;
|
|
14
14
|
bottom: 0;
|
|
15
15
|
margin: auto;
|
|
16
16
|
white-space: nowrap;
|
|
17
|
-
`;export{r as LABEL_TRANSFORM_LEFT_SPACING,
|
|
17
|
+
`;export{r as LABEL_TRANSFORM_LEFT_SPACING,a as labelStyle};
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import{css as i}from"@emotion/react";import{rem as t}from"../../theme/utils.js";const o=({width:t,isSearchable:o})=>
|
|
2
|
-
border: ${o?"initial":`1px solid ${
|
|
3
|
-
border-radius: ${o?"initial":
|
|
1
|
+
import{css as i}from"@emotion/react";import{rem as t}from"../../theme/utils.js";const o=({width:t,isSearchable:o})=>r=>i`
|
|
2
|
+
border: ${o?"initial":`1px solid ${r.utils.getColor("lightGrey",100)}`};
|
|
3
|
+
border-radius: ${o?"initial":r.globals.spacing.get("3")};
|
|
4
4
|
width: ${`${t}px`||"100%"};
|
|
5
|
-
`,
|
|
5
|
+
`,r=i`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
cursor: inherit;
|
|
9
|
+
`,e=i`
|
|
10
|
+
cursor: inherit;
|
|
11
|
+
`,l=({width:o,height:r,isSearchable:e})=>l=>i`
|
|
6
12
|
padding-left: 0;
|
|
7
13
|
margin-top: 0;
|
|
8
14
|
margin-bottom: 0;
|
|
9
|
-
border-radius: ${
|
|
15
|
+
border-radius: ${e?"initial":l.globals.spacing.get("3")};
|
|
10
16
|
width: ${o?t(o):"100%"};
|
|
11
|
-
height: ${
|
|
17
|
+
height: ${r?t(r):"100%"};
|
|
12
18
|
overflow: auto;
|
|
13
19
|
overflow-x: hidden;
|
|
14
|
-
|
|
20
|
+
`,a=t=>i`
|
|
21
|
+
font-size: ${t.globals.typography.fontSize.get("1")};
|
|
22
|
+
font-weight: ${t.globals.typography.fontWeight.get("regular")};
|
|
23
|
+
color: ${t.utils.getColor("lightGrey",650)};
|
|
24
|
+
cursor: inherit;
|
|
25
|
+
`;export{e as listLabel,a as listLabelHelperText,r as listLabelWithHelper,l as listStyle,o as wrapperStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"@emotion/react/jsx-runtime";import i,{useCallback as t}from"react";import{
|
|
1
|
+
import{jsx as e}from"@emotion/react/jsx-runtime";import i,{useCallback as t}from"react";import{listItemStyle as s,contentStyle as o}from"./ListItem.style.js";import{renderContent as r}from"../utils.js";const d=i.forwardRef((({size:i,content:d,index:l,isSelected:n=!1,isHighlighted:a=!1,isDisabled:c=!1,handleOptionClick:m,searchTerm:u,dataTestId:p,isGroupItem:f},h)=>{const g=t((()=>{d&&m&&!c&&m(d)}),[d,c,m]);return e("div",Object.assign({css:s({size:i,isSelected:n,isHighlighted:a,isDisabled:c,isGroupItem:f}),ref:n?h:null,onClick:g,onMouseDown:e=>{e.preventDefault()},"data-testid":null!=p?p:"ictinus_list_item_"+l},{children:e("div",Object.assign({css:o()},{children:r(d,u)}),void 0)}),void 0)}));d.displayName="ListItem";export{d as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";const
|
|
2
|
-
height: ${e("normal"===
|
|
3
|
-
font-size: ${g.globals.typography.
|
|
4
|
-
background-color: ${
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";const t=({size:t,isSelected:i,isHighlighted:l,isDisabled:r,isGroupItem:s})=>g=>o`
|
|
2
|
+
height: ${e("normal"===t?56:46)};
|
|
3
|
+
font-size: ${g.globals.typography.fontSize.get("normal"===t?"4":"3")};
|
|
4
|
+
background-color: ${i?g.utils.getColor("blue",50):g.globals.colors.white};
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
padding: 0px ${g.globals.spacing.get("6")} 0px
|
|
8
8
|
${s?g.globals.spacing.get("9"):g.globals.spacing.get("6")};
|
|
9
|
-
font-weight: ${
|
|
9
|
+
font-weight: ${i&&g.globals.typography.fontWeight.get("medium")};
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
|
|
12
12
|
${l&&"font-weight: 500;"}
|
|
@@ -16,7 +16,7 @@ import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.j
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
${r&&"\n opacity: 0.5;\n cursor: not-allowed;\n "}
|
|
19
|
-
`,
|
|
19
|
+
`,i=()=>o`
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
text-overflow: ellipsis;
|
|
@@ -27,4 +27,4 @@ import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.j
|
|
|
27
27
|
> div {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`;export{
|
|
30
|
+
`;export{i as contentStyle,t as listItemStyle};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as
|
|
2
|
-
height: ${
|
|
3
|
-
font-size: ${i.globals.typography.
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as t}from"../../../../theme/utils.js";const e=({size:e,isDisabled:l})=>i=>o`
|
|
2
|
+
height: ${t("normal"===e?56:46)};
|
|
3
|
+
font-size: ${i.globals.typography.fontSize["normal"===e?"13":"11"]};
|
|
4
4
|
background-color: ${i.globals.colors.white};
|
|
5
5
|
color: ${i.utils.getColor("lightGrey",650)};
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
padding: 0px ${i.globals.spacing.get("6")};
|
|
9
|
-
font-weight: ${i.globals.typography.
|
|
9
|
+
font-weight: ${i.globals.typography.fontWeight.get("bold")};
|
|
10
10
|
|
|
11
11
|
${l&&"\n opacity: 0.5;\n cursor: not-allowed;\n "}
|
|
12
12
|
`,l=()=>o`
|
|
13
13
|
white-space: nowrap;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
|
-
`;export{l as contentStyle,
|
|
16
|
+
`;export{l as contentStyle,e as listGroupTitleStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import i from"react";import{generateUniqueID as s}from"../../../utils/helpers.js";import{listStyle as
|
|
1
|
+
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import i from"react";import{generateUniqueID as s}from"../../../utils/helpers.js";import r from"./ListGroupTitle/ListGroupTitle.js";import{listStyle as o}from"../List.style.js";import d from"../ListItem/ListItem.js";import{isSelected as m}from"../utils.js";const l=i.forwardRef((({size:i,content:l,groupIndex:n,selectedItem:a,searchTerm:c,handleOptionClick:p,dataTestId:u},f)=>{var I;return e("li",{children:[t(r,{content:l,size:i,index:n,searchTerm:c,dataTestId:u},void 0),t("ul",Object.assign({css:o({})},{children:null===(I=l.options)||void 0===I?void 0:I.map(((e,r)=>t("li",{children:t(d,{content:e,size:i,index:""+n+r,ref:f,searchTerm:c,isDisabled:null==e?void 0:e.isDisabled,dataTestId:u,handleOptionClick:p,isSelected:m({item:e,selectedItem:a}),isGroupItem:!0},void 0)},s("list_item"+n+r))))}),void 0)]},void 0)}));l.displayName="ListItemGroup";export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as i,Fragment as l}from"@emotion/react/jsx-runtime";import t from"react";import r from"react-highlight-words";import{listLabel as o,listLabelWithHelper as s,listLabelHelperText as n}from"./List.style.js";import a from"../Icon/Icon.js";const c=6,d=5,m=277,h=265,b=({item:e,selectedItem:i})=>{if(e&&t.isValidElement(e))return!1;const l=e=>e&&!t.isValidElement(e)&&"object"==typeof e&&!Array.isArray(e)&&"value"in e&&(null==e?void 0:e.value)?e.value:e;return("string"==typeof e||"number"==typeof e?e:l(e))===("string"==typeof i||"number"==typeof i?i:l(i))},p=l=>l&&!t.isValidElement(l)&&"object"==typeof l&&!Array.isArray(l)&&"label"in l&&(null==l?void 0:l.label)&&"helperText"in l&&(null==l?void 0:l.helperText)?i("div",Object.assign({css:s},{children:[e("div",Object.assign({css:o},{children:l.label}),void 0),e("div",Object.assign({css:n},{children:l.helperText}),void 0)]}),void 0):l.label,v=(s,n)=>n&&s&&!t.isValidElement(s)&&"object"==typeof s&&!Array.isArray(s)&&"label"in s&&(null==s?void 0:s.label)?e(r,{highlightClassName:"search-text",highlightTag:"strong",searchWords:[n],autoEscape:!0,textToHighlight:s.label},void 0):s&&!t.isValidElement(s)&&"object"==typeof s&&!Array.isArray(s)&&"label"in s&&(null==s?void 0:s.label)?i(l,{children:[e("div",Object.assign({css:o},{children:p(s)}),void 0),(null==s?void 0:s.iconProps)&&e(a,Object.assign({},s.iconProps),void 0)]},void 0):s;export{m as MAX_LARGE_HEIGHT,c as MAX_NON_VIRTUALIZED_ITEMS_FILTER,d as MAX_NON_VIRTUALIZED_ITEMS_SELECT,h as MAX_SMALL_HEIGHT,b as isSelected,v as renderContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"@emotion/react/jsx-runtime";import{
|
|
1
|
+
import{jsx as t}from"@emotion/react/jsx-runtime";import{spinnerContainer as o}from"./Spinner.style.js";import{generateTestDataId as r}from"../../../../utils/helpers.js";const s=({dataTestId:s,color:e})=>t("div",{"data-testid":r("spinner",s),css:o(e)},void 0);export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as t,jsxs as i}from"@emotion/react/jsx-runtime";import o from"../../hooks/useTheme.js";import e from"lodash/isEmpty.js";import*as s from"react";import{wrapperStyle as r}from"./Menu.style.js";import n from"../Button/Button.js";import a from"../utils/ClickAwayListener/ClickAwayListener.js";import{optionsStyle as m}from"../utils/DropdownOptions/index.js";import l from"../List/List.js";const d=d=>{const{items:c,onSelect:p,buttonText:u="More",menuPosition:f="left",buttonType:v="primary",rightIconName:j,isDisabled:h=!1,leftIconName:b,avatar:y,dataTestId:g}=d,[k,O]=s.useState(!1),C=o();return t(a,Object.assign({onClick:()=>O(!1)},{children:i("div",Object.assign({css:r(),"data-testid":g},{children:[t(n,Object.assign({type:v,onClick:()=>O(!k),isDisabled:h,iconRightName:j,iconLeftName:b,avatar:e(y)?void 0:{src:null==y?void 0:y.src,label:null==y?void 0:y.letter}},{children:t("span",{children:u},void 0)}),void 0),k&&t("div",Object.assign({css:m({menuPosition:f})(C)},{children:c&&t(l,{data:c,rowSize:"small",handleOptionClick:t=>{O(!1),p(t)}},void 0)}),void 0)]}),void 0)}),void 0)};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,jsxs as
|
|
1
|
+
import{jsx as o,jsxs as t}from"@emotion/react/jsx-runtime";import{useEffect as e}from"react";import{backgroundContainer as s,cardSizing as i,closeContainer as d,modalContainer as n}from"./Modal.style.js";import r from"./ModalContent/ModalContent.js";import a from"../../hooks/useEscape.js";import{generateTestDataId as c}from"../../utils/helpers.js";import l from"../Card/Card.js";import m from"../IconButton/IconButton.js";import j from"../utils/ClickAwayListener/ClickAwayListener.js";const p=({isOpen:p=!1,onClose:v,dataTestId:f,children:u,contentProps:C,isContentPadded:h=!0})=>(a((()=>{v()})),e((()=>(p&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"})),[p]),p?o("div",Object.assign({css:s,"data-testid":c("modal-container",f)},{children:o(j,Object.assign({onClick:v},{children:o("div",Object.assign({css:i},{children:t(l,Object.assign({elevated:"02",radius:"3"},{children:[o("div",Object.assign({css:d},{children:o(m,{type:"tertiary",name:"close",onClick:v,dataTestId:"modal-close"},void 0)}),void 0),o("div",Object.assign({css:n({isContentPadded:h})},{children:C?o(r,Object.assign({},C),void 0):u}),void 0)]}),void 0)}),void 0)}),void 0)}),void 0):null);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import{
|
|
1
|
+
import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import{modalContentContainer as o,labelContainer as s,headingContainer as a,messageContainer as d,actionsContainer as i}from"./ModalContent.style.js";import{generateTestDataId as n}from"../../../utils/helpers.js";import c from"../../Button/Button.js";const r=({label:r,heading:l,message:m,primaryCTA:g,primaryCTALabel:h,secondaryCTA:j,secondaryCTALabel:p,dataTestId:b})=>e("div",Object.assign({role:"dialog",css:o,"data-testid":n("modal-content",b)},{children:[Boolean(r)&&t("p",Object.assign({css:s},{children:r}),void 0),t("h5",Object.assign({css:a,"data-testid":n("modal-content-header",b)},{children:l}),void 0),t("p",Object.assign({css:d,"data-testid":n("modal-content-message",b)},{children:m}),void 0),e("div",Object.assign({css:i},{children:[Boolean(j&&p)&&t(c,Object.assign({onClick:j,dataTestId:"modal-content-secondaryCTA"},{children:p}),void 0),Boolean(g&&h)&&t(c,Object.assign({onClick:g,dataTestId:"modal-content-primaryCTA"},{children:h}),void 0)]}),void 0)]}),void 0);export{r as default};
|
|
@@ -6,17 +6,17 @@ import{css as t}from"@emotion/react";import{rem as o}from"../../../theme/utils.j
|
|
|
6
6
|
flex-wrap: wrap;
|
|
7
7
|
text-align: left;
|
|
8
8
|
color: ${o.utils.getColor("lightGrey",700,"flat")};
|
|
9
|
-
font-weight: ${o.globals.typography.
|
|
9
|
+
font-weight: ${o.globals.typography.fontWeight.get("regular")};
|
|
10
10
|
`,l=o=>t`
|
|
11
|
-
font-size: ${o.globals.typography.
|
|
11
|
+
font-size: ${o.globals.typography.fontSize.get("3")};
|
|
12
12
|
margin: 0 0 ${o.globals.spacing.get("3")} 0;
|
|
13
13
|
`,g=o=>t`
|
|
14
|
-
font-size: ${o.globals.typography.
|
|
14
|
+
font-size: ${o.globals.typography.fontSize.get("9")};
|
|
15
15
|
color: ${o.utils.getColor("darkGrey",850)};
|
|
16
|
-
font-weight: ${o.globals.typography.
|
|
16
|
+
font-weight: ${o.globals.typography.fontWeight.get("medium")};
|
|
17
17
|
margin: 0 0 ${o.globals.spacing.get("9")} 0;
|
|
18
18
|
`,i=e=>t`
|
|
19
|
-
font-size: ${e.globals.typography.
|
|
19
|
+
font-size: ${e.globals.typography.fontSize.get("4")};
|
|
20
20
|
color: ${e.utils.getColor("lightGrey",750)};
|
|
21
21
|
max-height: ${o(430)};
|
|
22
22
|
overflow-y: hidden;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{tint as t}from"polished";import{rem as i}from"../../theme/utils.js";const
|
|
2
|
-
border: ${i(1)} solid ${r.utils.getColor(
|
|
1
|
+
import{css as o}from"@emotion/react";import{tint as t}from"polished";import{rem as i}from"../../theme/utils.js";const n=(o,t)=>o.utils.getColor(t,550,"normal"),e=(e,l,r)=>o`
|
|
2
|
+
border: ${i(1)} solid ${r.utils.getColor(e,100,"normal")};
|
|
3
3
|
|
|
4
4
|
&[notification-type='banner'] {
|
|
5
5
|
box-shadow: ${r.globals.elevation["02"]};
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
${"outlined"===l?`\n border: ${i(2)} solid ${
|
|
8
|
+
${"outlined"===l?`\n border: ${i(2)} solid ${n(r,e)};\n background: white;\n `:`\n background: ${t(.95,n(r,e))};\n`}
|
|
9
9
|
`,l=()=>t=>o`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: row;
|
|
12
12
|
justify-content: flex-end;
|
|
13
|
-
|
|
13
|
+
padding-top: ${t.globals.spacing.get("6")};
|
|
14
14
|
position: sticky;
|
|
15
15
|
bottom: ${t.globals.spacing.get("6")};
|
|
16
16
|
top: 100%;
|
|
@@ -19,6 +19,6 @@ import{css as o}from"@emotion/react";import{tint as t}from"polished";import{rem
|
|
|
19
19
|
margin-left: ${t.globals.spacing.get("6")};
|
|
20
20
|
`,g=()=>t=>o`
|
|
21
21
|
padding-right: ${t.globals.spacing.get("4")};
|
|
22
|
-
`,
|
|
23
|
-
font-weight: ${t.globals.typography.
|
|
24
|
-
`;export{r as actionContainer,l as actionsContainer,
|
|
22
|
+
`,a=()=>t=>o`
|
|
23
|
+
font-weight: ${t.globals.typography.fontWeight.get("bold")};
|
|
24
|
+
`;export{r as actionContainer,l as actionsContainer,a as boldMessageContainer,g as iconContainer,e as notificationsContainerPerType,n as typeToThemePalette};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as
|
|
1
|
+
import{jsxs as i,jsx as t}from"@emotion/react/jsx-runtime";import{visualContainer as s,descriptionContainer as a}from"./NotificationVisual.style.js";import{generateTestDataId as e}from"../../../utils/helpers.js";import{boldMessageContainer as o}from"../Notification.style.js";import r from"../subcomponents/NotificationActionsArea/NotificationActionsArea.js";const d=({title:d,primaryCTALabel:c="OK",primaryCTA:n,secondaryCTALabel:l="Cancel",secondaryCTA:m,description:p,dataTestId:A})=>{const f=n&&c||m&&l;return i("div",Object.assign({css:s()},{children:[t("div",Object.assign({css:o(),"data-testid":e("visual-title",A)},{children:d}),void 0),t("div",Object.assign({css:a(),"data-testid":e("visual-description",A)},{children:p}),void 0),f&&t(r,{primaryCTA:n,primaryCTALabel:c,secondaryCTA:m,secondaryCTALabel:l,dataTestPrefixId:"visual",dataTestId:A},void 0)]}),void 0)};export{d as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{css as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
max-height: ${
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as t}from"../../../theme/utils.js";const i=()=>t=>o`
|
|
2
|
+
padding: ${t.globals.spacing.get("6")};
|
|
3
|
+
`,a=()=>i=>o`
|
|
4
|
+
padding-top: ${i.globals.spacing.get("4")};
|
|
5
|
+
max-height: ${t(180)};
|
|
6
6
|
overflow: auto;
|
|
7
|
-
|
|
7
|
+
width: ${t(547)};
|
|
8
8
|
`;export{a as descriptionContainer,i as visualContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as i,jsx as s}from"@emotion/react/jsx-runtime";import{cardContainer as o,topContainer as e,infoContainer as t,descriptionContainer as a}from"./Snackbar.style.js";import c from"../../../hooks/useTheme.js";import{generateTestDataId as r}from"../../../utils/helpers.js";import{iconContainer as n,boldMessageContainer as d,actionContainer as m}from"../Notification.style.js";import{typeToIconName as l}from"../subcomponents/CompactNotification/CompactNotification.js";import p from"../subcomponents/NotificationActionsArea/NotificationActionsArea.js";import b from"../../Icon/Icon.js";const v=({message:v,type:f,styleType:j="elevated",primaryCTALabel:y="OK",primaryCTA:C,secondaryCTALabel:T="Cancel",secondaryCTA:A,description:h,closeCTA:g,dataTestId:u})=>{const{utils:O}=c(),k=C&&y||A&&T;return i("div",Object.assign({css:o(f,j),"notification-type":"snackbar"},{children:[i("div",Object.assign({css:e()},{children:[i("div",Object.assign({css:t()},{children:[s("div",Object.assign({css:n()},{children:s(b,{name:l(f),color:f,size:20},void 0)}),void 0),s("div",Object.assign({css:d()},{children:v}),void 0)]}),void 0),s("span",Object.assign({css:m(),onClick:g,"data-testid":r("snackbar-close",u)},{children:s(b,{name:"close",color:O.getColor("lightGrey",650),size:20},void 0)}),void 0)]}),void 0),s("div",Object.assign({css:a(),"data-testid":r("snackbar-description",u)},{children:h}),void 0),k&&s(p,{primaryCTA:C,primaryCTALabel:y,secondaryCTA:A,secondaryCTALabel:T,dataTestPrefixId:"snackbar",dataTestId:u},void 0)]}),void 0)};export{v as default};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";import{typeToThemePalette as t}from"../Notification.style.js";const i=(i,
|
|
1
|
+
import{css as o}from"@emotion/react";import{rem as e}from"../../../theme/utils.js";import{typeToThemePalette as t}from"../Notification.style.js";const i=(i,l)=>n=>o`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
overflow: hidden;
|
|
5
|
-
padding: ${
|
|
5
|
+
padding: ${n.globals.spacing.get("6")};
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
-
min-height: ${e(164)};
|
|
8
7
|
max-height: ${e(294)};
|
|
9
8
|
border-radius: ${e(8)};
|
|
10
|
-
background: ${
|
|
11
|
-
${((o,i,
|
|
12
|
-
`,
|
|
9
|
+
background: ${n.globals.colors.white};
|
|
10
|
+
${((o,i,l)=>"outlined"===i?`\n border: ${e(2)} solid ${t(l,o)};\n `:`\n border-left: ${t(l,o)} ${e(4)} solid;\n box-shadow: ${l.globals.elevation["02"]};\n`)(i,l,n)};
|
|
11
|
+
`,l=()=>e=>o`
|
|
13
12
|
display: flex;
|
|
14
13
|
align-items: center;
|
|
15
14
|
justify-content: space-between;
|
|
16
15
|
padding-bottom: ${e.globals.spacing.get("6")};
|
|
17
|
-
`,
|
|
16
|
+
`,n=()=>()=>o`
|
|
18
17
|
display: flex;
|
|
19
18
|
align-items: center;
|
|
20
|
-
`,
|
|
21
|
-
|
|
22
|
-
font-size: ${t.globals.typography.fontSizes.get("3")};
|
|
19
|
+
`,s=()=>t=>o`
|
|
20
|
+
font-size: ${t.globals.typography.fontSize.get("3")};
|
|
23
21
|
max-height: ${e(194)};
|
|
24
22
|
overflow: auto;
|
|
25
|
-
|
|
26
|
-
`;export{i as cardContainer,
|
|
23
|
+
width: ${e(547)};
|
|
24
|
+
`;export{i as cardContainer,s as descriptionContainer,n as infoContainer,l as topContainer};
|
package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as t}from"@emotion/react/jsx-runtime";import s from"../../../../hooks/useTheme.js";import{generateTestDataId as
|
|
1
|
+
import{jsxs as i,jsx as t}from"@emotion/react/jsx-runtime";import{notificationsContainer as s,infoContainer as e,headContainer as o,messageContainer as a,actionsContainer as n,primaryActionContainer as r}from"./CompactNotification.style.js";import c from"../../../../hooks/useTheme.js";import{generateTestDataId as d}from"../../../../utils/helpers.js";import l from"../../../Button/Button.js";import m from"../../../Icon/Icon.js";import{iconContainer as p,actionContainer as v}from"../../Notification.style.js";const j=i=>"warning"===i?"alert":i,f=({hasIcon:f=!1,message:g,variant:h,type:b,styleType:y="elevated",primaryCTALabel:u,primaryCTA:O,closeCTA:C,title:T,dataTestId:I})=>{const{utils:k}=c();return i("div",Object.assign({css:s(b,y),"data-testid":d(h,I)},"banner"==h&&{"notification-type":"banner"},{children:[i("div",Object.assign({css:e()},{children:[f&&t("div",Object.assign({css:p()},{children:t(m,{name:j(b),color:b,size:20},void 0)}),void 0),"banner"===h&&t("div",Object.assign({css:o(),"data-testid":d(`${h}-title`,I)},{children:T}),void 0),t("div",Object.assign({css:a(),"data-testid":d(`${h}-message`,I)},{children:g}),void 0)]}),void 0),i("div",Object.assign({css:n()},{children:[O&&u&&t(l,Object.assign({type:"tertiary",css:r(),onClick:O,"data-testid":d("notification-primary",I)},{children:u}),void 0),C&&t("span",Object.assign({css:v(),onClick:C,"data-testid":d("notification-close",I)},{children:t(m,{name:"close",color:k.getColor("lightGrey",650),size:20},void 0)}),void 0)]}),void 0)]}),void 0)};export{f as default,j as typeToIconName};
|
package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import{css as t}from"@emotion/react";import{rem as e}from"../../../../theme/utils.js";import{notificationsContainerPerType as i}from"../../Notification.style.js";const o=(o,g)=>
|
|
1
|
+
import{css as t}from"@emotion/react";import{rem as e}from"../../../../theme/utils.js";import{notificationsContainerPerType as i}from"../../Notification.style.js";const o=(o,g)=>a=>t`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
width: 100%;
|
|
7
7
|
min-height: ${e(46)};
|
|
8
|
-
border-radius: ${
|
|
9
|
-
color: ${
|
|
10
|
-
font-size: ${
|
|
11
|
-
${i(o,g,
|
|
8
|
+
border-radius: ${a.globals.spacing.get("3")};
|
|
9
|
+
color: ${a.utils.getColor("darkGrey",850)};
|
|
10
|
+
font-size: ${a.globals.typography.fontSize.get("3")};
|
|
11
|
+
${i(o,g,a)};
|
|
12
12
|
`,g=()=>e=>t`
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
padding: 0 ${e.globals.spacing.get("6")};
|
|
16
|
-
`,s=()=>e=>t`
|
|
17
|
-
padding: ${e.globals.spacing.get("6")} 0;
|
|
18
16
|
`,a=()=>e=>t`
|
|
17
|
+
padding: ${e.globals.spacing.get("6")} 0;
|
|
18
|
+
`,l=()=>e=>t`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
padding-right: ${e.globals.spacing.get("6")};
|
|
22
|
-
font-weight: ${e.globals.typography.
|
|
23
|
-
`,
|
|
22
|
+
font-weight: ${e.globals.typography.fontWeight.get("medium")};
|
|
23
|
+
`,s=()=>e=>t`
|
|
24
24
|
padding-right: ${e.globals.spacing.get("3")};
|
|
25
|
-
font-weight: ${e.globals.typography.
|
|
26
|
-
`,
|
|
25
|
+
font-weight: ${e.globals.typography.fontWeight.get("medium")};
|
|
26
|
+
`,n=()=>()=>t`
|
|
27
27
|
cursor: pointer;
|
|
28
|
-
`;export{
|
|
28
|
+
`;export{l as actionsContainer,s as headContainer,g as infoContainer,a as messageContainer,o as notificationsContainer,n as primaryActionContainer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as t,jsx as i}from"@emotion/react/jsx-runtime";import{generateTestDataId as e}from"../../../../utils/helpers.js";import s from"../../../Button/Button.js";import{actionsContainer as r,actionContainer as a}from"../../Notification.style.js";const o=({primaryCTA:o,primaryCTALabel:d,secondaryCTA:c,secondaryCTALabel:n,dataTestPrefixId:l,dataTestId:m})=>t("div",Object.assign({css:r()},{children:[c&&n&&i("div",Object.assign({css:a(),"data-testid":e(`${l}-secondary`,m)},{children:i(s,Object.assign({type:"tertiary",onClick:c},{children:n}),void 0)}),void 0),o&&d&&i("div",Object.assign({css:a(),"data-testid":e(`${l}-primary`,m)},{children:i(s,Object.assign({type:"tertiary",onClick:o},{children:d}),void 0)}),void 0)]}),void 0);export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e,jsxs as i}from"@emotion/react/jsx-runtime";import s from"../../hooks/useEscape.js";import o from"react";import{generateTestDataId as t}from"../../utils/helpers.js";import{backdropStyle as r,overlayStyle as a,closeIconContainer as c,contentStyle as n}from"./Overlay.style.js";import d from"../IconButton/IconButton.js";import l from"../utils/ClickAwayListener/ClickAwayListener.js";const h=({anchor:e,size:i})=>"top"===e||"bottom"===e?{display:"flex",height:i,width:"100%"}:{display:"flex",height:"100%",width:i},m=o.forwardRef((({isOpen:o,onClose:m,anchor:p="left",size:f,dataTestId:v,children:y},j)=>(s((()=>{m()})),e("div",Object.assign({css:r({isOpen:o,anchor:p}),"data-testid":t("overlay-container",v)},{children:e(l,Object.assign({onClick:()=>m(),cssStyles:h({anchor:p,size:f})},{children:i("div",Object.assign({ref:j,css:a({isOpen:o,anchor:p})},{children:[e("div",Object.assign({css:c()},{children:e(d,{type:"tertiary",name:"close",onClick:m,dataTestId:"overlay-close"},void 0)}),void 0),e("div",Object.assign({css:n()},{children:y}),void 0)]}),void 0)}),void 0)}),void 0))));m.displayName="Overlay";export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as a}from"@emotion/react/jsx-runtime";import i from"../../hooks/usePagination.js";import t from"../../hooks/useTheme.js";import o from"../IconButton/IconButton.js";const n=({page:n=1,count:r,onChange:s=(()=>{}),isEnhancedPaginationVisible:g=!1,isNextPageDisabled:l,isPrevPageDisabled:d})=>{const c=t(),{currentPage:m,hasNextPage:p,hasPrevPage:v,navigateToFirstPage:P,navigateToLastPage:h,navigateToNextPage:u,navigateToPrevPage:f}=i({page:n,count:r,onChange:s});return e("div",Object.assign({css:{flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:c.utils.getColor("darkGrey",850),"> *":{padding:c.globals.spacing.get("4")}}},{children:[g&&a(o,{name:"arrowToLeft",onClick:P,type:"tertiary",isDisabled:d||!v},void 0),a(o,{name:"arrowLeft",type:"tertiary",onClick:f,isDisabled:d||!v},void 0),e("div",{children:["Page ",m," of ",r]},void 0),a(o,{name:"arrowRight",type:"tertiary",onClick:u,isDisabled:l||!p},void 0),g&&a(o,{name:"arrowToRight",type:"tertiary",onClick:h,isDisabled:l||!p},void 0)]}),void 0)};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as s}from"@emotion/react/jsx-runtime";import*as i from"react";import o from"../../hooks/useTheme.js";import{generateTestDataId as
|
|
1
|
+
import{jsxs as e,jsx as s}from"@emotion/react/jsx-runtime";import*as i from"react";import{wrapperStyles as o,inputStyles as a,customRadioWrapperStyles as d,customRadioStyles as r,customRadioInnerHover as t}from"./Radio.style.js";import n from"../../hooks/useTheme.js";import{generateTestDataId as u}from"../../utils/helpers.js";import l from"../RadioGroup/useRadioGroup.js";const c=i.forwardRef(((c,m)=>{const{isChecked:p,onChange:h,value:v="on",name:f,isDisabled:j=!1,id:g,isRequired:R=!1,isFilled:b=!0,dataTestId:k}=c,[C,y]=i.useState(!1),[F,O]=i.useState(!1),q=l(),x=n(),D=()=>{y(!0)},G=()=>{y(!1)},M=null!=p?p:q?(q&&q.value)===v:F,S=null!=f?f:q&&q.name;return e("span",Object.assign({css:o(j),"data-testid":u("radio-input",k)},{children:[s("input",{css:a,onFocus:D,onBlur:G,onMouseLeave:G,onMouseOver:D,type:"radio",onChange:e=>{j||(void 0===p&&O(e.target.checked),h&&h(e),q&&q.onChange(e))},name:S,value:v,disabled:j,id:g,required:R,checked:M,ref:m},void 0),e("span",Object.assign({css:d(C,j)(x)},{children:[s("span",{css:r({isChecked:M,isDisabled:j,isFilled:b})(x)},void 0),s("span",{css:t(C,j)(x)},void 0)]}),void 0)]}),void 0)}));c.displayName="Radio";export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsxs as t,jsx as s}from"@emotion/react/jsx-runtime";import i from"lodash/debounce.js";import o,{useEffect as l,useMemo as a}from"react";import{generateTestDataId as n}from"../../utils/helpers.js";import r from"./components/MultiselectTextField/MultiselectTextField.js";import c from"./components/SelectMenu/SelectMenu.js";import d from"./hooks/useMultiselectUtils.js";import{rightIconContainer as u,selectWrapper as p}from"./Select.style.js";import m from"../../hooks/useCombinedRefs.js";import h from"../../hooks/useTheme.js";import f from"../Icon/Icon.js";import v from"../TextField/TextField.js";import b from"../utils/ClickAwayListener/ClickAwayListener.js";import{handleSearch as O}from"../utils/handleSearch.js";import C from"../Loader/Loader.js";import S from"../utils/PositionInScreen/PositionInScreen.js";const g={label:"",value:""},j=()=>{},y=o.forwardRef(((y,L)=>{const{handleSelectedOption:k=(()=>{}),defaultValue:T,selectedOption:w=g,isMulti:I=!1,options:M,isAsync:D=!1,isLoading:A=!1,asyncSearch:V=(()=>{}),status:x="normal",minCharactersToSearch:z=0,hasHighlightSearch:F=!1,isSearchable:R=!0,isVirtualized:H=!1,styleType:P,isDisabled:W,isLocked:G,dataTestId:K,onClear:N,onOptionDelete:U,selectedOptions:Y=[]}=y,q=e(y,["handleSelectedOption","defaultValue","selectedOption","isMulti","options","isAsync","isLoading","asyncSearch","status","minCharactersToSearch","hasHighlightSearch","isSearchable","isVirtualized","styleType","isDisabled","isLocked","dataTestId","onClear","onOptionDelete","selectedOptions"]),B=h(),[E,J]=o.useState(!1),Q=o.useRef(null),X=m(Q,L),Z=null!=T?T:w,[$,_]=o.useState(Z),[ee,te]=o.useState(""),se=ee||$.label,{multiSelectedOptions:ie,setMultiSelectedOpts:oe,availableMultiSelectOptions:le,setAvailableMultiSelectOptions:ae,handleOptionDelete:ne,handleClearAllOptions:re}=d({selectedOptions:Y,options:M,setOpen:J,setSearchValue:te,isSearchable:R,onClear:N,onOptionDelete:U,isMulti:I});l((()=>{_(Z)}),[Z]);const ce=o.useCallback(i((e=>{V(e)}),400),[]),de=o.useCallback((e=>{open||J(!0),O({event:e,isSearchable:R,isAsync:D,setSearchValue:te,onChange:ce,minCharactersToSearch:z})}),[ce,D,R,z,open]),ue=a((()=>{const e=I?le:M;return D?e:e.filter((e=>{var t;return!ee||e.label.toLowerCase().includes(ee.toLowerCase())||!!(null===(t=e.options)||void 0===t?void 0:t.find((e=>e.label.toLowerCase().includes(ee.toLowerCase()))))})).map((e=>{var t;return e.label.toLowerCase().includes(ee.toLowerCase())?e:Object.assign(Object.assign({},e),{options:null===(t=e.options)||void 0===t?void 0:t.filter((e=>e.label.toLowerCase().includes(ee.toLowerCase())))})}))}),[D,I,le,M,ee]),pe=a((()=>R?ee||$.value?"close":"search":"triangleDown"),[$.value,R,ee]),me=o.useCallback((()=>{R&&E&&J(!E),R&&(ee||$.value)&&(te(""),_(g),V(""),N&&N())}),[V,$.value,R,N,E,ee]),he=a((()=>t("div",Object.assign({css:u(E,R)},{children:[A&&s(C,{},void 0),s(f,{size:R?20:12,name:pe,color:B.utils.getColor("lightGrey",650),onClick:me,dataTestId:"select-right-icon"},void 0)]}),void 0)),[E,A,R,pe,B.utils,me]);return s(b,Object.assign({onClick:()=>{J(!1),te("")}},{children:s("div",Object.assign({},!(W||G)&&{onClick:()=>{var e,t;E?R||(J(!1),null===(t=null==X?void 0:X.current)||void 0===t||t.blur()):(J(!0),null===(e=null==X?void 0:X.current)||void 0===e||e.focus())}},{css:p({isSearchable:R})},{children:s(S,Object.assign({isVisible:E,hasWrapperWidth:!0,offsetY:8,parent:I?s(r,Object.assign({selectedOptions:ie,onInput:de,onOptionDelete:ne,onClearAllOptions:re,isLoading:A,isDisabled:W,isLocked:G,readOnly:!R,dataTestId:n("select-input",K)},q,{status:x,value:se,autoComplete:"off"}),void 0):s(v,Object.assign({styleType:P,rightIcon:he,onKeyDown:e=>{8===e.keyCode&&(_(g),ce(""))},onInput:de,onChange:j,readOnly:!R,disabled:W,isLocked:G,dataTestId:n("select-input",K)},q,{status:x,value:se,ref:X,autoComplete:"off"}),void 0)},{children:s(c,{filteredOptions:ue,handleOptionClick:e=>{I?(oe([...ie,e]),ae(le.filter((t=>t.value!==e.value)))):_(e),J(!1),R&&te(""),k(e)},selectedOption:$.value,size:q.size,status:x,isLoading:A,isVirtualized:H,searchTerm:F?ee:void 0},void 0)}),void 0)}),void 0)}),void 0)}));y.displayName="Select";export{y as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e}from"tslib";import{jsx as i,Fragment as s,jsxs as l}from"@emotion/react/jsx-runtime";import o from"../../../../hooks/useTheme.js";import t from"lodash/omit";import r,{useMemo as a}from"react";import{generateUniqueID as d}from"../../../../utils/helpers.js";import{chipStyle as n,chipContent as c,textInputBaseOverrides as p,inputContainer as m,rightIconsContainer as h,rightIconStyles as u,inputOverrides as v}from"./MultiselectTextField.style.js";import g from"../../../Chip/Chip.js";import b from"../../../Icon/Icon.js";import f from"../../../Label/Label.js";import j from"../../../Loader/Loader.js";import y from"../../../TextInputBase/TextInputBase.js";import{inputStyle as O}from"../../../TextInputBase/TextInputBase.style.js";const L=r.forwardRef(((L,T)=>{const{selectedOptions:k,value:x,isDisabled:I,isLocked:C,status:D,isLean:R,isDark:B,isReadOnly:z,label:q,id:w,placeholder:A,isRequired:F=!1,styleType:G,onOptionDelete:M,onClearAllOptions:$,isLoading:E,rightIcon:K}=L,N=e(L,["selectedOptions","value","isDisabled","isLocked","status","isLean","isDark","isReadOnly","label","id","placeholder","isRequired","styleType","onOptionDelete","onClearAllOptions","isLoading","rightIcon"]),V=r.useRef(null),W=o(),_=Boolean(x||(null==k?void 0:k.length)&&(null==k?void 0:k.length)>0),H=a((()=>!q&&A?F?`${A} *`:A:q),[q,A,F]),J=a((()=>C?"lock":_?"close":"search"),[_,C]),P=a((()=>i(s,{children:null==k?void 0:k.map(((e,s)=>{var l;return i("span",Object.assign({css:n()},{children:i(g,Object.assign({onClear:C||I?void 0:()=>M(e),fill:"lightGrey",dataTestId:`chip_${s}`},{children:i("div",Object.assign({title:e.label,css:c({maxWidth:null===(l=V.current)||void 0===l?void 0:l.getBoundingClientRect().width})},{children:e.label}),void 0)}),void 0)}),d("chip"+s))}))},void 0)),[I,C,M,k]),Q=a((()=>K?"string"==typeof K?i(b,{name:K,size:20,color:W.utils.getColor("lightGrey",650)},void 0):K:i(b,{size:20,name:J,color:W.utils.getColor("lightGrey",650),onClick:_&&!C?$:void 0,dataTestId:"select-right-icon"},void 0)),[_,J,C,$,K,W.utils]);return i("div",Object.assign({ref:V},{children:l(y,Object.assign({isDisabled:I,isLocked:C,status:D,isLean:R,size:"md",styleType:G},N,{sx:p({hasValue:_,isLoading:E})(W)},{children:[l("div",Object.assign({css:m()},{children:[P,i("input",Object.assign({readOnly:z,onKeyDown:e=>{""===x&&"Backspace"===e.key&&M()},css:O({size:"md",placeholder:A,label:q,isDark:B,isLean:R,sx:v()}),placeholder:H,required:F,id:w,disabled:I||C},t(N,"dataTestId"),{value:x,ref:T}),void 0),q&&i(f,{size:"md",htmlFor:w,label:q,isRequired:F,isAnimated:_,hasError:"error"===D},void 0)]}),void 0),!I&&l("div",Object.assign({css:h()},{children:[E&&i(j,{},void 0),i("div",Object.assign({css:u({isClickable:_&&!C})},{children:Q}),void 0)]}),void 0)]}),void 0)}),void 0)}));L.displayName="MultiselectTextField";export{L as default};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import{css as t}from"@emotion/react";import{rem as i}from"polished";import{getTextFieldHeight as o}from"../../../../utils/size-utils.js";import{LABEL_TRANSFORM_LEFT_SPACING as e}from"../../../Label/Label.style.js";const a=({maxWidth:o})=>()=>t`
|
|
2
|
+
white-space: nowrap;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
text-overflow: ellipsis;
|
|
5
|
+
max-width: ${o?i(o-120):"unset"};
|
|
6
|
+
`,s=()=>i=>t`
|
|
7
|
+
position: absolute !important;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
right: ${i.globals.spacing.get("5")};
|
|
10
|
+
top: 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`,l=({isClickable:i})=>()=>t`
|
|
14
|
+
cursor: ${i?"pointer":"auto"};
|
|
15
|
+
`,r=()=>o=>t`
|
|
16
|
+
position: relative;
|
|
17
|
+
margin-right: ${o.globals.spacing.get("2")};
|
|
18
|
+
& > div {
|
|
19
|
+
height: ${i(20)};
|
|
20
|
+
border-radius: ${i(4)};
|
|
21
|
+
}
|
|
22
|
+
`,n=()=>i=>t`
|
|
23
|
+
position: static;
|
|
24
|
+
width: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
row-gap: ${i.globals.spacing.get("2")};
|
|
28
|
+
z-index: 2;
|
|
29
|
+
`,p=({hasValue:t,isLoading:a})=>s=>{const l={fontWeight:`${s.globals.typography.fontWeight.get("bold")} !important`,transform:`translate(${e}, -82%) scale(0.8) !important`,bottom:"auto"};return{wrapper:Object.assign({height:"unset",minHeight:`${o("md")} !important`},t?{label:l}:{"input:focus":{label:l},label:{transform:`translate(${e}, -8px)`}}),textField:{padding:a?`${i(21)} ${i(80)} ${i(5)} ${s.globals.spacing.get("5")}`:`${i(21)} ${i(40)} ${i(5)} ${s.globals.spacing.get("5")}`}}},g=()=>({input:{top:"unset",flex:"1 1 0%",minWidth:"20%","&:focus, &:not(:placeholder-shown)":{"& + label":{transform:`translate(${e}, -82%) scale(0.8)`}}}});export{a as chipContent,r as chipStyle,n as inputContainer,g as inputOverrides,l as rightIconStyles,s as rightIconsContainer,p as textInputBaseOverrides};
|