@amboss/design-system 2.3.8 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/build/cjs/components/BulkActionsToolbar/BulkActionsToolbar.js +1 -1
  2. package/build/cjs/components/EntityList/BaseEntityList.d.ts +3 -0
  3. package/build/cjs/components/EntityList/BaseEntityList.js +1 -0
  4. package/build/cjs/components/EntityList/EntityList.d.ts +3 -0
  5. package/build/cjs/components/EntityList/EntityList.js +1 -0
  6. package/build/cjs/components/EntityList/EntityListItem.d.ts +3 -0
  7. package/build/cjs/components/EntityList/EntityListItem.js +1 -0
  8. package/build/cjs/components/EntityList/EntityListItemExpandButton.d.ts +5 -0
  9. package/build/cjs/components/EntityList/EntityListItemExpandButton.js +1 -0
  10. package/build/cjs/components/EntityList/EntityListItemText.d.ts +3 -0
  11. package/build/cjs/components/EntityList/EntityListItemText.js +1 -0
  12. package/build/cjs/components/EntityList/index.d.ts +3 -0
  13. package/build/cjs/components/EntityList/index.js +1 -0
  14. package/build/cjs/components/EntityList/styled-components.d.ts +29 -0
  15. package/build/cjs/components/EntityList/styled-components.js +1 -0
  16. package/build/cjs/components/EntityList/types.d.ts +77 -0
  17. package/build/cjs/components/EntityTree/BaseEntityTree.d.ts +3 -3
  18. package/build/cjs/components/EntityTree/BaseEntityTree.js +1 -1
  19. package/build/cjs/components/EntityTree/EntityTree.js +1 -1
  20. package/build/cjs/components/Form/MaskedInput/MaskedInput.d.ts +1 -1
  21. package/build/cjs/components/Toolbar/Toolbar.js +1 -1
  22. package/build/cjs/index.d.ts +1 -0
  23. package/build/cjs/index.js +1 -1
  24. package/build/cjs/types/index.d.ts +2 -0
  25. package/build/cjs/types/index.js +1 -1
  26. package/build/cjs/web-tokens/assets/icons.json +1 -0
  27. package/build/cjs/web-tokens/assets/icons16.json +1 -0
  28. package/build/esm/components/BulkActionsToolbar/BulkActionsToolbar.js +1 -1
  29. package/build/esm/components/EntityList/BaseEntityList.d.ts +3 -0
  30. package/build/esm/components/EntityList/BaseEntityList.js +1 -0
  31. package/build/esm/components/EntityList/EntityList.d.ts +3 -0
  32. package/build/esm/components/EntityList/EntityList.js +1 -0
  33. package/build/esm/components/EntityList/EntityListItem.d.ts +3 -0
  34. package/build/esm/components/EntityList/EntityListItem.js +1 -0
  35. package/build/esm/components/EntityList/EntityListItemExpandButton.d.ts +5 -0
  36. package/build/esm/components/EntityList/EntityListItemExpandButton.js +1 -0
  37. package/build/esm/components/EntityList/EntityListItemText.d.ts +3 -0
  38. package/build/esm/components/EntityList/EntityListItemText.js +1 -0
  39. package/build/esm/components/EntityList/index.d.ts +3 -0
  40. package/build/esm/components/EntityList/index.js +1 -0
  41. package/build/esm/components/EntityList/styled-components.d.ts +29 -0
  42. package/build/esm/components/EntityList/styled-components.js +1 -0
  43. package/build/esm/components/EntityList/types.d.ts +77 -0
  44. package/build/esm/components/EntityTree/BaseEntityTree.d.ts +3 -3
  45. package/build/esm/components/EntityTree/BaseEntityTree.js +1 -1
  46. package/build/esm/components/EntityTree/EntityTree.js +1 -1
  47. package/build/esm/components/Form/MaskedInput/MaskedInput.d.ts +1 -1
  48. package/build/esm/components/Toolbar/Toolbar.js +1 -1
  49. package/build/esm/index.d.ts +1 -0
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/types/index.d.ts +2 -0
  52. package/build/esm/types/index.js +1 -1
  53. package/build/esm/web-tokens/assets/icons.json +1 -0
  54. package/build/esm/web-tokens/assets/icons16.json +1 -0
  55. package/package.json +1 -1
  56. package/build/cjs/components/List/List.d.ts +0 -3
  57. package/build/cjs/components/List/List.js +0 -1
  58. package/build/cjs/components/List/ListItem.d.ts +0 -3
  59. package/build/cjs/components/List/ListItem.js +0 -1
  60. package/build/cjs/components/List/ListItemExpandButton.d.ts +0 -5
  61. package/build/cjs/components/List/ListItemExpandButton.js +0 -1
  62. package/build/cjs/components/List/ListItemLabel.d.ts +0 -3
  63. package/build/cjs/components/List/ListItemLabel.js +0 -1
  64. package/build/cjs/components/List/ListItemText.d.ts +0 -3
  65. package/build/cjs/components/List/ListItemText.js +0 -1
  66. package/build/cjs/components/List/styled-components.d.ts +0 -18
  67. package/build/cjs/components/List/styled-components.js +0 -1
  68. package/build/cjs/components/List/types.d.ts +0 -56
  69. package/build/esm/components/List/List.d.ts +0 -3
  70. package/build/esm/components/List/List.js +0 -1
  71. package/build/esm/components/List/ListItem.d.ts +0 -3
  72. package/build/esm/components/List/ListItem.js +0 -1
  73. package/build/esm/components/List/ListItemExpandButton.d.ts +0 -5
  74. package/build/esm/components/List/ListItemExpandButton.js +0 -1
  75. package/build/esm/components/List/ListItemLabel.d.ts +0 -3
  76. package/build/esm/components/List/ListItemLabel.js +0 -1
  77. package/build/esm/components/List/ListItemText.d.ts +0 -3
  78. package/build/esm/components/List/ListItemText.js +0 -1
  79. package/build/esm/components/List/styled-components.d.ts +0 -18
  80. package/build/esm/components/List/styled-components.js +0 -1
  81. package/build/esm/components/List/types.d.ts +0 -56
  82. /package/build/cjs/components/{List → EntityList}/types.js +0 -0
  83. /package/build/esm/components/{List → EntityList}/types.js +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BulkActionsToolbar",{enumerable:!0,get:function(){return BulkActionsToolbar}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Text=require("../Typography/Text/Text"),_Button=require("../Button/Button"),_Box=require("../Box/Box"),_Inline=require("../Inline/Inline"),_Divider=require("../Divider/Divider"),_Checkbox=require("../Form/Checkbox/Checkbox"),_Toolbar=require("../Toolbar"),_SearchInput=require("../Form/SearchInput/SearchInput"),TotalItems=({children})=>_react.default.createElement(_Box.Box,{space:["xs","zero"]},_react.default.createElement(_Text.Text,{size:"s",color:"secondary",weight:"bold"},children)),CheckboxContainer=props=>_react.default.createElement(_Box.Box,{tSpace:"zero",bSpace:"xs",lSpace:"xs",rSpace:"s"},_react.default.createElement(_Checkbox.Checkbox,{size:"s",...props})),BulkActionsToolbar=_react.default.memo(function({actions,checkboxProps,totalItems,searchInputProps}){return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_Toolbar.Toolbar,null,_react.default.createElement(_Toolbar.ToolbarGroup,{order:["last","first"],size:[12,8]},checkboxProps?_react.default.createElement(_Inline.Inline,{vAlignItems:"center"},_react.default.createElement(CheckboxContainer,checkboxProps),_react.default.createElement(TotalItems,null,totalItems)):_react.default.createElement(TotalItems,null,totalItems),_react.default.createElement(_Inline.Inline,null,actions?.map(({variant="secondary",label,...buttonProps})=>_react.default.createElement(_Button.Button,{...buttonProps,key:`action-${label}`,size:"s",variant:variant},label)))),_react.default.createElement(_Toolbar.ToolbarGroup,{order:["first","last"],size:[12,4]},_react.default.createElement(_SearchInput.SearchInput,searchInputProps))),_react.default.createElement(_Divider.Divider,null))});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BulkActionsToolbar",{enumerable:!0,get:function(){return BulkActionsToolbar}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Text=require("../Typography/Text/Text"),_Button=require("../Button/Button"),_Box=require("../Box/Box"),_Inline=require("../Inline/Inline"),_Divider=require("../Divider/Divider"),_Checkbox=require("../Form/Checkbox/Checkbox"),_Toolbar=require("../Toolbar"),_SearchInput=require("../Form/SearchInput/SearchInput"),TotalItems=({children})=>_react.default.createElement(_Box.Box,{space:["xs","zero"]},_react.default.createElement(_Text.Text,{size:"s",color:"secondary",weight:"bold"},children)),CheckboxContainer=props=>_react.default.createElement(_Box.Box,{space:"xs",tSpace:"zero",rSpace:["zero","xxs"]},_react.default.createElement(_Checkbox.Checkbox,{size:"s",...props})),BulkActionsToolbar=_react.default.memo(function({actions,checkboxProps,totalItems,searchInputProps}){return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_Toolbar.Toolbar,null,_react.default.createElement(_Toolbar.ToolbarGroup,{order:["last","first"],size:[12,8]},checkboxProps?_react.default.createElement(_Inline.Inline,{vAlignItems:"center",space:["xxs","m"]},_react.default.createElement(CheckboxContainer,checkboxProps),_react.default.createElement(TotalItems,null,totalItems)):_react.default.createElement(TotalItems,null,totalItems),_react.default.createElement(_Inline.Inline,null,actions?.map(({variant="secondary",label,...buttonProps})=>_react.default.createElement(_Button.Button,{...buttonProps,key:`action-${label}`,size:"s",variant:variant},label)))),_react.default.createElement(_Toolbar.ToolbarGroup,{order:["first","last"],size:[12,4]},_react.default.createElement(_SearchInput.SearchInput,searchInputProps))),_react.default.createElement(_Divider.Divider,null))});
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListProps } from "./types";
3
+ export declare function BaseEntityList({ data, size, onClick, isSelectable, selectedIds, onSelectionChange, renderRightContent, getLeftIconProps, hideBorder, "data-e2e-test-id": dataE2eTestId, }: EntityListProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BaseEntityList",{enumerable:!0,get:function(){return BaseEntityList}});const _react=require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_EntityListItem=require("./EntityListItem"),_Icon=require("../Icon/Icon"),_Box=require("../Box/Box"),_Checkbox=require("../Form/Checkbox/Checkbox"),_styledcomponents=require("./styled-components"),LeftCell=({isSelectable,selectedIdsSet,getLeftIconProps,...itemProps})=>{if(isSelectable)return _react.default.createElement(_Box.Box,{vSpace:"zero",space:"xxs"},_react.default.createElement(_Checkbox.CheckboxRaw,{name:"list-checkbox",size:"s",onChange:()=>{},checked:selectedIdsSet.has(itemProps.id)}));let{textSize,...restNodeData}=itemProps,{name,color}=getLeftIconProps(restNodeData);return _react.default.createElement(_Icon.Icon,{name:name,color:color,size:textSize})};function BaseEntityList({data,size="m",onClick,isSelectable,selectedIds,onSelectionChange,renderRightContent,getLeftIconProps,hideBorder,"data-e2e-test-id":dataE2eTestId}){let selectedIdsSet=(0,_react.useMemo)(()=>new Set(selectedIds),[selectedIds]),handleOnClick=(0,_react.useCallback)(item=>{let{id}=item;isSelectable&&(selectedIdsSet.has(id)?selectedIdsSet.delete(id):selectedIdsSet.add(id),onSelectionChange?.(Array.from(selectedIdsSet))),onClick?.(item)},[selectedIdsSet,onSelectionChange,onClick,isSelectable]);return _react.default.createElement(_styledcomponents.StyledList,{size:size,"data-e2e-test-id":dataE2eTestId,"data-ds-id":"EntityList",role:"list"},data.map((item,i)=>_react.default.createElement(_EntityListItem.EntityListItem,{key:item.id,"aria-label":item["aria-label"]||item.label,size:size,hideBorder:hideBorder||i===data.length-1,isActive:item.isActive,isDisabled:item.isDisabled,onClick:()=>handleOnClick(item),isClickable:!!(onClick||selectedIds),description:item.description,renderLabel:()=>item.label,renderLeft:getLeftIconProps||isSelectable?({textSize})=>_react.default.createElement(LeftCell,{...item,isSelectable:isSelectable,selectedIdsSet:selectedIdsSet,getLeftIconProps:getLeftIconProps,textSize:textSize}):null,renderRight:({actionSize,textSize})=>renderRightContent?_react.default.createElement(_styledcomponents.StyledMinHeightCell,{textSize:textSize},renderRightContent({textSize,actionSize,...item})):null})))}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListProps } from "./types";
3
+ export declare const EntityList: (props: EntityListProps) => React.ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityList",{enumerable:!0,get:function(){return EntityList}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_BaseEntityList=require("./BaseEntityList"),_Container=require("../Container/Container"),EntityList=props=>_react.default.createElement(_Container.Container,{overflow:"hidden"},_react.default.createElement(_BaseEntityList.BaseEntityList,props));
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListItemProps } from "./types";
3
+ export declare function EntityListItem({ description, size, role, renderLeft, renderRight, isExpanded, isDisabled, isActive, children, onClick, onExpandClick, isClickable, lSpaceStep, renderLabel, hideBorder, isDisabledExpand, "aria-label": ariaLabel, }: EntityListItemProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityListItem",{enumerable:!0,get:function(){return EntityListItem}});const _react=require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_EntityListItemText=require("./EntityListItemText"),_EntityListItemExpandButton=require("./EntityListItemExpandButton"),_Inline=require("../Inline/Inline"),_styledcomponents=require("./styled-components"),useEntityListItemLabel=({size,isExpanded,lSpaceStep})=>{let hasExpandableIcon=void 0!==isExpanded,isTreeNode=void 0!==lSpaceStep;return{isDeepestTreeNode:!hasExpandableIcon&&isTreeNode,isTreeNode,textSize:"xs"===size?"s":"m",actionSize:"l"===size?"m":"s",hasExpandableIcon}},StopPropogationWrapper=({children})=>{let handleClick=(0,_react.useCallback)(e=>{e.stopPropagation()},[]);return _react.default.createElement("div",{role:"presentation",onClick:handleClick},children)};function EntityListItem({description,size="m",role,renderLeft,renderRight,isExpanded,isDisabled,isActive,children,onClick,onExpandClick,isClickable,lSpaceStep,renderLabel,hideBorder,isDisabledExpand,"aria-label":ariaLabel}){let{textSize,actionSize,hasExpandableIcon,isTreeNode,isDeepestTreeNode}=useEntityListItemLabel({size,isExpanded,lSpaceStep});return _react.default.createElement(_styledcomponents.StyledEntityListItem,{role:role,"aria-expanded":isExpanded,"aria-label":ariaLabel,isDisabled:isDisabled},_react.default.createElement(_styledcomponents.StyledEntityListItemLabel,{size:size,onClick:onClick,isClickable:isClickable,isActive:isActive,isDeepestTreeNode:isDeepestTreeNode,lSpaceStep:lSpaceStep},hasExpandableIcon&&_react.default.createElement(_EntityListItemExpandButton.EntityListItemExpandButton,{disabled:isDisabledExpand,isExpanded:isExpanded,onClick:onExpandClick}),_react.default.createElement(_styledcomponents.StyledEntityListItemWrapper,{size:size,hasLSpace:!isTreeNode,hideBorder:hideBorder||"xs"===size},_react.default.createElement(_styledcomponents.StyledEntityListDisabler,null,_react.default.createElement(_Inline.Inline,{noWrap:!0,alignItems:"spaceBetween",space:["xs","m"]},_react.default.createElement(_Inline.Inline,{noWrap:!0,alignItems:"spaceBetween",space:["xs","m"]},renderLeft&&renderLeft({textSize}),_react.default.createElement(_EntityListItemText.EntityListItemText,{size:textSize,description:description},renderLabel({textSize}))),renderRight&&_react.default.createElement(StopPropogationWrapper,null,renderRight({textSize,actionSize})))))),isExpanded&&children)}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { EntityListItemProps } from "./types";
3
+ export declare function EntityListItemExpandButton({ onClick, isExpanded, disabled, }: Partial<EntityListItemProps> & {
4
+ disabled?: boolean;
5
+ }): React.ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityListItemExpandButton",{enumerable:!0,get:function(){return EntityListItemExpandButton}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_PictogramButton=require("../PictogramButton/PictogramButton"),_Box=require("../Box/Box");function EntityListItemExpandButton({onClick,isExpanded,disabled}){return _react.default.createElement(_Box.Box,{vSpace:"zero",lSpace:["xs","m"],rSpace:["xs","m"]},_react.default.createElement(_PictogramButton.PictogramButton,{disabled:disabled,onClick:onClick,icon:isExpanded?"chevron-down":"chevron-right"}))}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListItemLabelProps } from "./types";
3
+ export declare function EntityListItemText({ children, size, description, }: EntityListItemLabelProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityListItemText",{enumerable:!0,get:function(){return EntityListItemText}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Text=require("../Typography/Text/Text"),_Stack=require("../Stack/Stack");function EntityListItemText({children,size,description}){return _react.default.createElement(_Stack.Stack,{space:"xxxs"},_react.default.createElement(_Text.Text,{size:size},children),description&&_react.default.createElement(_Text.Text,{color:"tertiary",size:"s"},description))}
@@ -0,0 +1,3 @@
1
+ export * from "./BaseEntityList";
2
+ export * from "./EntityList";
3
+ export * from "./types";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const _export_star=require("@swc/helpers/_/_export_star");_export_star._(require("./BaseEntityList"),exports),_export_star._(require("./EntityList"),exports),_export_star._(require("./types"),exports);
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import type { EntityListItemProps, TextSizeProps, EntityListItemWrapperProps, UseEntityListItemLabelReturn } from "./types";
3
+ import type { ListSize } from "../../types";
4
+ export declare const StyledList: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: import("react").ElementType<any>;
7
+ } & {
8
+ size: ListSize;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
10
+ export declare const StyledEntityListItemWrapper: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: import("react").ElementType<any>;
13
+ } & EntityListItemWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const StyledEntityListDisabler: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: import("react").ElementType<any>;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const StyledEntityListItemLabel: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme;
20
+ as?: import("react").ElementType<any>;
21
+ } & Partial<EntityListItemProps> & Partial<UseEntityListItemLabelReturn>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ export declare const StyledEntityListItem: import("@emotion/styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme;
24
+ as?: import("react").ElementType<any>;
25
+ } & Partial<EntityListItemProps>, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
26
+ export declare const StyledMinHeightCell: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme;
28
+ as?: import("react").ElementType<any>;
29
+ } & TextSizeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{StyledEntityListDisabler:function(){return StyledEntityListDisabler},StyledEntityListItem:function(){return StyledEntityListItem},StyledEntityListItemLabel:function(){return StyledEntityListItemLabel},StyledEntityListItemWrapper:function(){return StyledEntityListItemWrapper},StyledList:function(){return StyledList},StyledMinHeightCell:function(){return StyledMinHeightCell}});const _styled=require("@swc/helpers/_/_interop_require_default")._(require("@emotion/styled")),_mediaQueries=require("../../shared/mediaQueries"),StyledList=(0,_styled.default)("ul",{target:"e1eych280",label:"StyledList"})(({theme,size})=>({..."xs"===size&&{paddingTop:theme.variables.size.spacing.xs,paddingBottom:theme.variables.size.spacing.xs}}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB0eXBlIHtcbiAgRW50aXR5TGlzdEl0ZW1Qcm9wcyxcbiAgVGV4dFNpemVQcm9wcyxcbiAgRW50aXR5TGlzdEl0ZW1XcmFwcGVyUHJvcHMsXG4gIFVzZUVudGl0eUxpc3RJdGVtTGFiZWxSZXR1cm4sXG59IGZyb20gXCIuL3R5cGVzX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wiZmxleFwiLFxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gIH0pXG4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVUwQiJ9 */"),StyledEntityListItemWrapper=(0,_styled.default)("div",{target:"e1eych281",label:"StyledEntityListItemWrapper"})(({theme,size,hideBorder})=>({borderBottom:`1px solid ${theme.values.color.border.secondary.default}`,...hideBorder&&{borderBottom:"none"},width:"100%",...(0,_mediaQueries.mq)({paddingBottom:[size,{xs:theme.variables.size.spacing.xxs,s:theme.variables.size.spacing.s,m:theme.variables.size.spacing.m,l:theme.variables.size.spacing.l}]}),"& button, & a":{margin:`-${theme.variables.size.spacing.xs} 0`}}),({theme,hasLSpace})=>({...(0,_mediaQueries.mqValue)({paddingRight:[theme.variables.size.spacing.m,theme.variables.size.spacing.l],...hasLSpace&&{paddingLeft:[theme.variables.size.spacing.m,theme.variables.size.spacing.l]}})}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB0eXBlIHtcbiAgRW50aXR5TGlzdEl0ZW1Qcm9wcyxcbiAgVGV4dFNpemVQcm9wcyxcbiAgRW50aXR5TGlzdEl0ZW1XcmFwcGVyUHJvcHMsXG4gIFVzZUVudGl0eUxpc3RJdGVtTGFiZWxSZXR1cm4sXG59IGZyb20gXCIuL3R5cGVzXCI7XG5pbXBvcnQgdHlwZSB7IExpc3RTaXplIH0gZnJvbSBcIi4uLy4uL3R5cGVzXCI7XG5pbXBvcnQgeyBtcSwgbXFWYWx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iOiJBQWtCRSJ9 */"),StyledEntityListDisabler=(0,_styled.default)("div",{target:"e1eych282",label:"StyledEntityListDisabler"})("/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB0eXBlIHtcbiAgRW50aXR5TGlzdEl0ZW1Qcm9wcyxcbiAgVGV4dFNpemVQcm9wcyxcbiAgRW50aXR5TGlzdEl0ZW1XcmFwcGVyUHJvcHMsXG4gIFVzZUVudGl0eUxpc3RJdGVtTGFiZWxSZXR1cm4sXG59IGZyb20gXCIuL3R5cGVzXCI7XG5pbXBvcnQgdHlwZSB7IExpc3RTaXplIH0gZnJvbSBcIi4uLy4uL3R5cGVzXCI7XG5pbXBvcnQgeyBtcSwgbXFWYWx1ZSB9IGZyb20gXCIuLi8uLi9zaGFyZWQvbWVkaWFRdWVyaWVzXCI7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRMaXN0ID0gc3R5bGVkLnVsPHsgc2l6ZTogTGlzdFNpemUgfT4oKHsgdGhlbWUsIHNpemUgfSkgPT4gKHtcbiAgLi4uKHNpemUgPT09IFwieHNcIiAmJiB7XG4gICAgcGFkZGluZ1RvcDogdGhlbWUudmFyaWFibGVzLnNpemUuc3BhY2luZy54cyxcbiAgICBwYWRkaW5nQm90dG9tOiB0aGVtZS52YXJpYWJsZXMuc2l6ZS5zcGFjaW5nLnhzLFxuICB9KSxcbn0pKTtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEVudGl0eUxpc3RJdGVtV3JhcHBlciA9XG4gIHN0eWxlZC5kaX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QgaXMgbmVlZGVkIGZvciBhbGlnbiBzbWFsbCBpY29ucyBpbiB0aGUgbWlkZGxlIG9mIDEgcm93IHRleHQsXG4vLyBidXQgaXQgc2hvdWxkIHN0YXkgYXQgdGhlIHRvcCBpZiB0aGVyZSBpcyBtdWx0aWxpbmUgdGV4dFxuZXhwb3J0IGNvbnN0IFN0eWxlZE1pbkhlaWdodENlbGwgPSBzdHlsZWQuZGl2PFRleHRTaXplUHJvcHM+KFxuICAoeyB0aGVtZSwgdGV4dFNpemUgfSkgPT4gKHtcbiAgICBtaW5IZWlnaHQ6XG4gICAgICB0ZXh0U2l6ZSA9PT0gXCJzXCJcbiAgICAgICAgPyBgY2FsYygke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcubX0gKyAke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcueHhzfSlgXG4gICAgICAgIDogdGhlbWUudmFyaWFibGVzLnNpemUuc3BhY2luZy5sLFxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gIH0pXG4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStEd0MifQ== */"),StyledEntityListItemLabel=(0,_styled.default)("div",{target:"e1eych283",label:"StyledEntityListItemLabel"})(({theme,isClickable,lSpaceStep,isDeepestTreeNode,isActive})=>{let getSize=(baseOffset,deepestNodeOffset)=>`calc(${baseOffset} * ${lSpaceStep} + ${isDeepestTreeNode?deepestNodeOffset:"0px"} + ${theme.variables.size.spacing.xxs})`,mobileSize=getSize(theme.variables.size.spacing.m,"42px"),desktopSize=getSize(theme.variables.size.spacing.xl,"56px");return{display:"flex",flexGrow:1,width:"100%",...void 0!==lSpaceStep&&{...(0,_mediaQueries.mqValue)({paddingLeft:[mobileSize,desktopSize]})},transition:"background-color 0.1s ease-out",...isClickable&&{cursor:"pointer","&:hover":{backgroundColor:theme.values.color.background.transparent.hover}},...isActive&&{backgroundColor:theme.values.color.background.transparent.active}}},({theme,size})=>({...(0,_mediaQueries.mq)({paddingTop:[size,{xs:theme.variables.size.spacing.xxs,s:theme.variables.size.spacing.s,m:theme.variables.size.spacing.m,l:theme.variables.size.spacing.l}]})}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB0eXBlIHtcbiAgRW50aXR5TGlzdEl0ZW1Qcm9wcyxcbiAgVGV4dFNpemVQcm9wcyxcbiAgRW50aXR5TGlzdEl0ZW1XcmFwcGVyUHJvcHMsXG4gIFVzZUVudGl0eUxpc3RJdGVtTGFiZWxSZXR1cm4sXG59IGZyb20gXCIuL3R5cGVzXCI7XG5pbXBvcnQgdHlwZSB7IExpc3RTaXplIH0gZnJvbSBcIi4uLy4uL3R5cGVzXCI7XG5pbXBvcnQgeyBtcSwgbXFWYWx1ZSB9IGZyb20gXCIuLi8uLi9zaGFyZWQvbWVkaWFRdWVyaWVzXCI7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRMaXN0ID0gc3R5bGVkLnVsPHsgc2l6ZTogTGlzdFNpemUgfT4oKHsgdGhlbWUsIHNpemUgfSkgPT4gKHtcbiAgLi4uKHNpemUgPT09IFwieHNcIiAmJiB7XG4gICAgcGFkZGluZ1RvcDogdGhlbWUudmFyaWFibGVzLnNpemUuc3BhY2luZy54cyxcbiAgICBwYWRkaW5nQm90dG9tOiB0aGVtZS52YXJpYWJsZXMuc2l6ZS5zcGFjaW5nLnhzLFxuICB9KSxcbn0pKTtcblxuZXhwb3J0IGNvbnN0I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cGU6IFwibm9uZVwiLFxuICB9KVxuKTtcblxuLy8gVGhpcyBtaW5IZWlnaHQgaXMgbmVlZGVkIGZvciBhbGlnbiBzbWFsbCBpY29ucyBpbiB0aGUgbWlkZGxlIG9mIDEgcm93IHRleHQsXG4vLyBidXQgaXQgc2hvdWxkIHN0YXkgYXQgdGhlIHRvcCBpZiB0aGVyZSBpcyBtdWx0aWxpbmUgdGV4dFxuZXhwb3J0IGNvbnN0IFN0eWxlZE1pbkhlaWdodENlbGwgPSBzdHlsZWQuZGl2PFRleHRTaXplUHJvcHM+KFxuICAoeyB0aGVtZSwgdGV4dFNpemUgfSkgPT4gKHtcbiAgICBtaW5IZWlnaHQ6XG4gICAgICB0ZXh0U2l6ZSA9PT0gXCJzXCJcbiAgICAgICAgPyBgY2FsYygke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcubX0gKyAke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcueHhzfSlgXG4gICAgICAgIDogdGhlbWUudmFyaWFibGVzLnNpemUuc3BhY2luZy5sLFxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gIH0pXG4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlFeUMifQ== */"),StyledEntityListItem=(0,_styled.default)("li",{target:"e1eych284",label:"StyledEntityListItem"})(({isDisabled,theme})=>({...isDisabled&&{cursor:"not-allowed",[`${StyledEntityListDisabler}`]:{opacity:theme.variables.opacity.disabled},[`${StyledEntityListItemLabel}`]:{pointerEvents:"none"}},listStyleType:"none"}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW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VtZSwgdGV4dFNpemUgfSkgPT4gKHtcbiAgICBtaW5IZWlnaHQ6XG4gICAgICB0ZXh0U2l6ZSA9PT0gXCJzXCJcbiAgICAgICAgPyBgY2FsYygke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcubX0gKyAke3RoZW1lLnZhcmlhYmxlcy5zaXplLnNwYWNpbmcueHhzfSlgXG4gICAgICAgIDogdGhlbWUudmFyaWFibGVzLnNpemUuc3BhY2luZy5sLFxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gIH0pXG4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFIb0MifQ== */"),StyledMinHeightCell=(0,_styled.default)("div",{target:"e1eych285",label:"StyledMinHeightCell"})(({theme,textSize})=>({minHeight:"s"===textSize?`calc(${theme.variables.size.spacing.m} + ${theme.variables.size.spacing.xxs})`:theme.variables.size.spacing.l,display:"flex",alignItems:"center"}),"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyIsInNvdXJjZXMiOlsic3JjL2NvbXBvbmVudHMvRW50aXR5TGlzdC9zdHlsZWQtY29tcG9uZW50cy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB0eXBlIHtcbiAgRW50aXR5TGlzdEl0ZW1Qcm9wcyxcbiAgVGV4dFNpemVQcm9wcyxcbiAgRW50aXR5TGlzdEl0ZW1XcmFwcGVyUHJvcHMsXG4gIFVzZUVudGl0eUxpc3RJdGVtTGFiZWxSZXR1cm4sXG59IGZyb20gXCIuL3R5cGVzXCI7XG5pbXBvcnQgdHlwZSB7IExpc3RTaXplIH0gZnJvbSBcIi4uLy4uL3R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4pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdJbUMifQ== */");
@@ -0,0 +1,77 @@
1
+ /// <reference types="react" />
2
+ import type { TextSize, ListSize } from "../../types";
3
+ import type { IconProps } from "../Icon/Icon";
4
+ export type ListNode = {
5
+ id: string;
6
+ label: string;
7
+ isActive?: boolean;
8
+ description?: string;
9
+ "aria-label"?: string;
10
+ [key: string]: any;
11
+ };
12
+ export type ActionSizeProps = {
13
+ actionSize: "s" | "m";
14
+ };
15
+ export type TextSizeProps = {
16
+ textSize: "s" | "m";
17
+ };
18
+ type RenderProps = (props: TextSizeProps) => React.ReactNode;
19
+ export type ListNodeProps = ListNode & TextSizeProps;
20
+ export type EntityListProps = {
21
+ data: ListNode[];
22
+ size?: ListSize;
23
+ selectedIds?: string[];
24
+ isSelectable?: boolean;
25
+ onSelectionChange?: (ids: string[]) => void;
26
+ onClick?: (props: ListNodeProps) => void;
27
+ getLeftIconProps?: (props: ListNode) => Pick<IconProps, "name" | "color">;
28
+ renderRightContent?: (props: ListNodeProps & ActionSizeProps) => React.ReactNode;
29
+ hideBorder?: boolean;
30
+ "data-e2e-test-id"?: string;
31
+ };
32
+ export type EntityListItemWrapperProps = {
33
+ size: ListSize;
34
+ hasLSpace: boolean;
35
+ hideBorder: boolean;
36
+ };
37
+ export type EntityListItemProps = {
38
+ children?: React.ReactNode;
39
+ role?: string;
40
+ isClickable?: boolean;
41
+ isActive?: boolean;
42
+ isDisabled?: boolean;
43
+ size?: ListSize;
44
+ lSpaceStep?: 0 | 1 | 2 | 3 | 4 | 5;
45
+ description?: string;
46
+ renderLabel: RenderProps;
47
+ renderLeft?: RenderProps;
48
+ renderRight?: (props: TextSizeProps & ActionSizeProps) => React.ReactNode;
49
+ isExpanded?: boolean;
50
+ isDisabledExpand?: boolean;
51
+ hideBorder?: boolean;
52
+ onExpandClick?: (e: React.MouseEvent) => void;
53
+ onClick?: (e: React.MouseEvent) => void;
54
+ "aria-label": string;
55
+ };
56
+ export type EntityListItemLabelProps = {
57
+ children: React.ReactNode;
58
+ size: TextSize;
59
+ description?: string;
60
+ };
61
+ export type EntityListItemExpandButtonProps = {
62
+ disabled?: boolean;
63
+ } & Partial<EntityListItemProps>;
64
+ export type UseEntityListItemLabelProps = {
65
+ size: EntityListItemProps["size"];
66
+ isExpanded?: boolean;
67
+ isTreeNode?: boolean;
68
+ lSpaceStep?: number;
69
+ };
70
+ export type UseEntityListItemLabelReturn = {
71
+ actionSize: ActionSizeProps["actionSize"];
72
+ textSize: TextSizeProps["textSize"];
73
+ hasExpandableIcon: boolean;
74
+ isTreeNode: boolean;
75
+ isDeepestTreeNode: boolean;
76
+ };
77
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { ListItemProps } from "../List/types";
2
+ import type { EntityListItemProps } from "../EntityList/types";
3
3
  import type { NodeID, CheckboxState } from "./types";
4
4
  export type TreeNode = {
5
5
  id: NodeID;
@@ -12,7 +12,7 @@ export type TreeNodeWithUIState = TreeNode & {
12
12
  isExpanded: boolean;
13
13
  checkedState: CheckboxState;
14
14
  };
15
- type PartialListItemProps = Pick<ListItemProps, "hideBorder" | "size" | "renderRight">;
15
+ type PartialEntityListItemProps = Pick<EntityListItemProps, "hideBorder" | "size" | "renderRight">;
16
16
  export type EntityTreeProps = {
17
17
  data: TreeNode[];
18
18
  selectedIds?: NodeID[];
@@ -23,6 +23,6 @@ export type EntityTreeProps = {
23
23
  onTreeChange?: (data: TreeNodeWithUIState[]) => void;
24
24
  showItemsCount?: boolean;
25
25
  "data-e2e-test-id"?: string;
26
- } & PartialListItemProps;
26
+ } & PartialEntityListItemProps;
27
27
  export declare const BaseEntityTree: ({ data, selectedIds, onSelectionChange, expandedIds, onToggle, filterFn, onTreeChange, hideBorder, size, showItemsCount, renderRight, "data-e2e-test-id": dataE2eTestId, }: EntityTreeProps) => React.ReactElement;
28
28
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BaseEntityTree",{enumerable:!0,get:function(){return BaseEntityTree}});const _react=require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_styledcomponents=require("../List/styled-components"),_ListItem=require("../List/ListItem"),_Text=require("../Typography/Text/Text"),_Checkbox=require("../Form/Checkbox/Checkbox"),_tree=require("./tree"),getLastNodeOfList=({node,data,level,isParentsLastOfLvl})=>{let currentLastNodeOfLvl=node.id===data[data.length-1].id;return 0===level?currentLastNodeOfLvl:isParentsLastOfLvl&&currentLastNodeOfLvl},makeRenderTreeBranches=({nodeChildrenMap,nodeCheckboxState,nodeExpandedState,handleSelectionChange,handleToggle,expandAll,hideBorder,size,showItemsCount,renderRight})=>({data,level,renderFn,isParentsLastOfLvl})=>data.map(node=>{let readOnly=null===nodeCheckboxState,hasChildren=node.children.length>0,expandedState=!!expandAll||!!nodeExpandedState[node.id],leafItems=(0,_tree.getLeafNodeIds)(nodeChildrenMap,node.id),totalItemsCount=leafItems.length,selectedItemsCount=nodeCheckboxState?leafItems.filter(leafId=>"checked"===nodeCheckboxState[leafId]).length:null,countLabel=nodeCheckboxState?`(${selectedItemsCount}/${totalItemsCount})`:`(${totalItemsCount})`,isLastNodeOfList=getLastNodeOfList({node,data,level,isParentsLastOfLvl}),lastLeaf=!hasChildren&&!node.isFiltered,isExpanded=lastLeaf?void 0:expandedState;return _react.default.createElement(_ListItem.ListItem,{key:node.id,role:"treeitem",hideBorder:hideBorder||isLastNodeOfList&&(!isExpanded||node.isFiltered),size:size,lSpaceStep:level,"aria-label":node.label,description:node.description,renderLabel:({size:textSize})=>_react.default.createElement(_react.default.Fragment,null,node.label,showItemsCount&&!lastLeaf&&_react.default.createElement(_Text.Text,{as:"span",size:textSize,color:"tertiary"}," ",countLabel)),isExpanded:isExpanded,isDisabledExpand:expandAll,onExpandClick:e=>{e.stopPropagation(),handleToggle(node.id)},onClick:readOnly?()=>handleToggle(node.id):()=>handleSelectionChange(node.id),renderLeft:readOnly?void 0:()=>_react.default.createElement(_Checkbox.CheckboxRaw,{size:"s",name:node.label,checked:"checked"===nodeCheckboxState[node.id],indeterminate:"indeterminate"===nodeCheckboxState[node.id],onChange:()=>handleSelectionChange(node.id)}),renderRight:renderRight},hasChildren&&_react.default.createElement("ul",null,renderFn({data:node.children,level:level+1,renderFn,isParentsLastOfLvl:isLastNodeOfList})))}),BaseEntityTree=({data,selectedIds,onSelectionChange,expandedIds=[],onToggle,filterFn,onTreeChange,hideBorder=!1,size="m",showItemsCount=!0,renderRight,"data-e2e-test-id":dataE2eTestId})=>{let nodeChildrenMap=Object.assign({},...data.map(tree=>(0,_tree.getNodeChildrenMap)(tree))),nodeCheckboxState=selectedIds?Object.assign({},...data.map(tree=>(0,_tree.getTreeCheckboxState)(nodeChildrenMap,tree.id,selectedIds))):null,nodeExpandedState=expandedIds.reduce((acc,id)=>(acc[id]=!0,acc),{}),dataShown=filterFn?data.map(tree=>(0,_tree.filterTree)(tree,filterFn)).filter(Boolean):data;(0,_react.useEffect)(()=>{onTreeChange&&onTreeChange(dataShown.map(tree=>(0,_tree.mapTree)(tree,node=>({...node,checkedState:!!nodeCheckboxState&&nodeCheckboxState[node.id],isExpanded:!!nodeExpandedState[node.id]}))))},[dataShown,nodeCheckboxState,nodeExpandedState,onTreeChange]);let renderTreeBranches=makeRenderTreeBranches({nodeChildrenMap,nodeCheckboxState,nodeExpandedState,handleSelectionChange:targetId=>{if(onSelectionChange){let updatedSelectedIds=[];if(0===nodeChildrenMap[targetId].length)updatedSelectedIds=selectedIds.includes(targetId)?selectedIds.filter(id=>id!==targetId):selectedIds.concat([targetId]);else{let affectedLeafNodeIds=(0,_tree.getLeafNodeIds)(nodeChildrenMap,targetId);updatedSelectedIds="checked"===nodeCheckboxState[targetId]?selectedIds.filter(id=>!affectedLeafNodeIds.includes(id)):selectedIds.concat(affectedLeafNodeIds)}onSelectionChange(updatedSelectedIds)}},handleToggle:targetId=>{onToggle&&onToggle(expandedIds.includes(targetId)?expandedIds.filter(id=>id!==targetId):expandedIds.concat([targetId]))},expandAll:!!filterFn,hideBorder,size,showItemsCount,renderRight});return _react.default.createElement(_styledcomponents.StyledList,{role:"tree","data-e2e-test-id":dataE2eTestId,"data-ds-id":"EntityTree"},renderTreeBranches({data:dataShown,level:0,renderFn:renderTreeBranches}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BaseEntityTree",{enumerable:!0,get:function(){return BaseEntityTree}});const _react=require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_styledcomponents=require("../EntityList/styled-components"),_EntityListItem=require("../EntityList/EntityListItem"),_Text=require("../Typography/Text/Text"),_Checkbox=require("../Form/Checkbox/Checkbox"),_tree=require("./tree"),getLastNodeOfList=({node,data,level,isParentsLastOfLvl})=>{let currentLastNodeOfLvl=node.id===data[data.length-1].id;return 0===level?currentLastNodeOfLvl:isParentsLastOfLvl&&currentLastNodeOfLvl},makeRenderTreeBranches=({nodeChildrenMap,nodeCheckboxState,nodeExpandedState,handleSelectionChange,handleToggle,expandAll,hideBorder,size,showItemsCount,renderRight})=>({data,level,renderFn,isParentsLastOfLvl})=>data.map(node=>{let readOnly=null===nodeCheckboxState,hasChildren=node.children.length>0,expandedState=!!expandAll||!!nodeExpandedState[node.id],leafItems=(0,_tree.getLeafNodeIds)(nodeChildrenMap,node.id),totalItemsCount=leafItems.length,selectedItemsCount=nodeCheckboxState?leafItems.filter(leafId=>"checked"===nodeCheckboxState[leafId]).length:null,countLabel=nodeCheckboxState?`(${selectedItemsCount}/${totalItemsCount})`:`(${totalItemsCount})`,isLastNodeOfList=getLastNodeOfList({node,data,level,isParentsLastOfLvl}),lastLeaf=!hasChildren&&!node.isFiltered,isExpanded=lastLeaf?void 0:expandedState;return _react.default.createElement(_EntityListItem.EntityListItem,{key:node.id,role:"treeitem",hideBorder:hideBorder||isLastNodeOfList&&(!isExpanded||node.isFiltered),size:size,isClickable:!0,lSpaceStep:level,"aria-label":node.label,description:node.description,renderLabel:({textSize})=>_react.default.createElement(_react.default.Fragment,null,node.label,showItemsCount&&!lastLeaf&&_react.default.createElement(_Text.Text,{as:"span",size:textSize,color:"tertiary"}," ",countLabel)),isExpanded:isExpanded,isDisabledExpand:expandAll,onExpandClick:e=>{e.stopPropagation(),handleToggle(node.id)},onClick:readOnly?()=>handleToggle(node.id):()=>handleSelectionChange(node.id),renderLeft:readOnly?void 0:()=>_react.default.createElement(_Checkbox.CheckboxRaw,{size:"s",name:node.label,checked:"checked"===nodeCheckboxState[node.id],indeterminate:"indeterminate"===nodeCheckboxState[node.id],onChange:()=>handleSelectionChange(node.id)}),renderRight:renderRight},hasChildren&&_react.default.createElement("ul",null,renderFn({data:node.children,level:level+1,renderFn,isParentsLastOfLvl:isLastNodeOfList})))}),BaseEntityTree=({data,selectedIds,onSelectionChange,expandedIds=[],onToggle,filterFn,onTreeChange,hideBorder=!1,size="m",showItemsCount=!0,renderRight,"data-e2e-test-id":dataE2eTestId})=>{let nodeChildrenMap=Object.assign({},...data.map(tree=>(0,_tree.getNodeChildrenMap)(tree))),nodeCheckboxState=selectedIds?Object.assign({},...data.map(tree=>(0,_tree.getTreeCheckboxState)(nodeChildrenMap,tree.id,selectedIds))):null,nodeExpandedState=expandedIds.reduce((acc,id)=>(acc[id]=!0,acc),{}),dataShown=filterFn?data.map(tree=>(0,_tree.filterTree)(tree,filterFn)).filter(Boolean):data;(0,_react.useEffect)(()=>{onTreeChange&&onTreeChange(dataShown.map(tree=>(0,_tree.mapTree)(tree,node=>({...node,checkedState:!!nodeCheckboxState&&nodeCheckboxState[node.id],isExpanded:!!nodeExpandedState[node.id]}))))},[dataShown,nodeCheckboxState,nodeExpandedState,onTreeChange]);let renderTreeBranches=makeRenderTreeBranches({nodeChildrenMap,nodeCheckboxState,nodeExpandedState,handleSelectionChange:targetId=>{if(onSelectionChange){let updatedSelectedIds=[];if(0===nodeChildrenMap[targetId].length)updatedSelectedIds=selectedIds.includes(targetId)?selectedIds.filter(id=>id!==targetId):selectedIds.concat([targetId]);else{let affectedLeafNodeIds=(0,_tree.getLeafNodeIds)(nodeChildrenMap,targetId);updatedSelectedIds="checked"===nodeCheckboxState[targetId]?selectedIds.filter(id=>!affectedLeafNodeIds.includes(id)):selectedIds.concat(affectedLeafNodeIds)}onSelectionChange(updatedSelectedIds)}},handleToggle:targetId=>{onToggle&&onToggle(expandedIds.includes(targetId)?expandedIds.filter(id=>id!==targetId):expandedIds.concat([targetId]))},expandAll:!!filterFn,hideBorder,size,showItemsCount,renderRight});return _react.default.createElement(_styledcomponents.StyledList,{role:"tree","data-e2e-test-id":dataE2eTestId,"data-ds-id":"EntityTree",size:size},renderTreeBranches({data:dataShown,level:0,renderFn:renderTreeBranches}))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityTree",{enumerable:!0,get:function(){return EntityTree}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Container=require("../Container/Container"),_Box=require("../Box/Box"),_BaseEntityTree=require("./BaseEntityTree"),EntityTree=props=>{let{size}=props;return _react.default.createElement(_Container.Container,{overflow:"hidden"},_react.default.createElement(_Box.Box,{space:"zero",vSpace:"xs"===size?"xs":"zero"},_react.default.createElement(_BaseEntityTree.BaseEntityTree,props)))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"EntityTree",{enumerable:!0,get:function(){return EntityTree}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_BaseEntityTree=require("./BaseEntityTree"),_Container=require("../Container/Container"),EntityTree=props=>_react.default.createElement(_Container.Container,{overflow:"hidden"},_react.default.createElement(_BaseEntityTree.BaseEntityTree,props));
@@ -13,7 +13,7 @@ export declare const MaskedInput: React.ForwardRefExoticComponent<{
13
13
  } & {
14
14
  name: string;
15
15
  value?: string;
16
- icon?: "article" | "link" | "menu" | "table" | "key" | "info" | "circle" | "filter" | "image" | "x" | "download" | "list" | "search" | "grid" | "sort" | "copy" | "reset" | "activity" | "alert-circle" | "alert-triangle" | "alert-octagon" | "align-left" | "amboss-logo" | "anamnesis" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "auditor" | "award" | "bar-chart-2" | "bell" | "bell-curve" | "book" | "bookmark" | "book-open" | "box" | "bubble" | "bubble-check" | "bubble-image" | "bubble-pill" | "bubble-text" | "bulb" | "calculator" | "chart" | "charts" | "check" | "check-circle" | "check-small" | "check-square" | "checkmark-circle-filled" | "chevron-down" | "chevrons-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-up" | "clipboard" | "coffee" | "collapse" | "comment" | "compass" | "corner-down-left" | "corner-down-right" | "credit-card" | "edit-3" | "edit-3-filled" | "edit-square" | "education" | "effigos" | "emergency" | "expand" | "external-link" | "eye" | "eye-off" | "facebook" | "face-happy" | "face-neutral" | "face-sad" | "file-text" | "figma" | "filled-dot" | "film" | "flag" | "flag-filled" | "flask" | "flowchart" | "folder" | "folder-check-filled" | "folder-plus" | "gift" | "google" | "hammer-filled" | "hash" | "headphones" | "help-circle" | "home" | "illustration" | "image-broken" | "institution" | "layers" | "loader" | "lock" | "magic" | "mail" | "maximize" | "maximize-2" | "med-imaging" | "meditricks" | "message-circle" | "minus" | "more-horizontal" | "more-vertical" | "no-fill" | "open-full-screen" | "open-new-tab" | "open-sidebar-right" | "percent" | "pill" | "play-circle" | "play-filled" | "plus" | "plus-circle" | "plus-circle-filled" | "quiz" | "rotate-cw" | "search-list" | "settings" | "share" | "shopping-bag" | "show-all" | "sliders" | "smartzoom" | "sort-ascending" | "sort-descending" | "sort-neutral" | "star" | "stethoscope" | "tag" | "text-zoom-reset" | "thumbs-down" | "thumbs-up" | "timer-off" | "timer-on" | "trash-2" | "twitter" | "unlock" | "user" | "users" | "watch" | "wifi-off" | "wifi" | "x-circle-filled" | "zap" | "square";
16
+ icon?: "article" | "link" | "menu" | "table" | "key" | "info" | "circle" | "filter" | "image" | "x" | "download" | "list" | "search" | "grid" | "sort" | "copy" | "reset" | "activity" | "alert-circle" | "alert-triangle" | "alert-octagon" | "align-left" | "amboss-logo" | "anamnesis" | "anki" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "auditor" | "award" | "bar-chart-2" | "bell" | "bell-curve" | "book" | "bookmark" | "book-open" | "box" | "bubble" | "bubble-check" | "bubble-image" | "bubble-pill" | "bubble-text" | "bulb" | "calculator" | "chart" | "charts" | "check" | "check-circle" | "check-small" | "check-square" | "checkmark-circle-filled" | "chevron-down" | "chevrons-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-up" | "clipboard" | "coffee" | "collapse" | "comment" | "compass" | "corner-down-left" | "corner-down-right" | "credit-card" | "edit-3" | "edit-3-filled" | "edit-square" | "education" | "effigos" | "emergency" | "expand" | "external-link" | "eye" | "eye-off" | "facebook" | "face-happy" | "face-neutral" | "face-sad" | "file-text" | "figma" | "filled-dot" | "film" | "flag" | "flag-filled" | "flask" | "flowchart" | "folder" | "folder-check-filled" | "folder-plus" | "gift" | "google" | "hammer-filled" | "hash" | "headphones" | "help-circle" | "home" | "illustration" | "image-broken" | "institution" | "layers" | "loader" | "lock" | "magic" | "mail" | "maximize" | "maximize-2" | "med-imaging" | "meditricks" | "message-circle" | "minus" | "more-horizontal" | "more-vertical" | "no-fill" | "open-full-screen" | "open-new-tab" | "open-sidebar-right" | "percent" | "pill" | "play-circle" | "play-filled" | "plus" | "plus-circle" | "plus-circle-filled" | "quiz" | "rotate-cw" | "search-list" | "settings" | "share" | "shopping-bag" | "show-all" | "sliders" | "smartzoom" | "sort-ascending" | "sort-descending" | "sort-neutral" | "star" | "stethoscope" | "tag" | "text-zoom-reset" | "thumbs-down" | "thumbs-up" | "timer-off" | "timer-on" | "trash-2" | "twitter" | "unlock" | "user" | "users" | "watch" | "wifi-off" | "wifi" | "x-circle-filled" | "zap" | "square";
17
17
  placeholder?: string;
18
18
  hasError?: boolean;
19
19
  disabled?: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Toolbar",{enumerable:!0,get:function(){return Toolbar}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Columns=require("../Column/Columns"),_Box=require("../Box/Box");function Toolbar({children,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(_Box.Box,{space:"xs",lSpace:["xs","m"],"data-e2e-test-id":dataE2eTestId,"data-ds-id":"Toolbar"},_react.default.createElement(_Columns.Columns,{vAlignItems:"center",gap:"xs",alignItems:"spaceBetween"},children))}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Toolbar",{enumerable:!0,get:function(){return Toolbar}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_Columns=require("../Column/Columns"),_Box=require("../Box/Box");function Toolbar({children,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(_Box.Box,{space:"xs",lSpace:["xs","m"],"data-e2e-test-id":dataE2eTestId,"data-ds-id":"Toolbar"},_react.default.createElement(_Columns.Columns,{vAlignItems:"center",gap:["xs","m"],alignItems:"spaceBetween"},children))}
@@ -65,3 +65,4 @@ export * from "./components/Utilities/Expandable/Expandable";
65
65
  export * from "./components/QBankRichText/QBankRichText";
66
66
  export * from "./components/Tutorialtip/Tutorialtip";
67
67
  export * from "./components/EntityTree";
68
+ export * from "./components/EntityList";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{CacheProvider:function(){return _react.CacheProvider},ThemeProvider:function(){return _react.ThemeProvider},createCache:function(){return _cache.default},dark:function(){return dark},light:function(){return light}});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_react=require("@emotion/react"),_cache=_interop_require_default._(require("@emotion/cache"));_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/Typography/Header/Header"),exports),_export_star._(require("./components/Typography/Text/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Select/Select"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/Container/Container"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem/MediaItem"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/EntityTree"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{CacheProvider:function(){return _react.CacheProvider},ThemeProvider:function(){return _react.ThemeProvider},createCache:function(){return _cache.default},dark:function(){return dark},light:function(){return light}});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_react=require("@emotion/react"),_cache=_interop_require_default._(require("@emotion/cache"));_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/Typography/Header/Header"),exports),_export_star._(require("./components/Typography/Text/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Select/Select"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/Container/Container"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem/MediaItem"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/EntityTree"),exports),_export_star._(require("./components/EntityList"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
@@ -54,6 +54,8 @@ export declare const HyphensRuntype: Union<[Literal<"auto">, Literal<"none">, Li
54
54
  export type Hyphens = Static<typeof HyphensRuntype>;
55
55
  export declare const ToggleSizeRuntype: Union<[Literal<"s">, Literal<"m">]>;
56
56
  export type ToggleSize = Static<typeof ToggleSizeRuntype>;
57
+ export declare const ListSizeRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">, Literal<"l">]>;
58
+ export type ListSize = Static<typeof ListSizeRuntype>;
57
59
  export type AsProp<C extends React.ElementType> = {
58
60
  as?: C;
59
61
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{BaseColorsRuntype:function(){return BaseColorsRuntype},BaseVariationsRuntype:function(){return BaseVariationsRuntype},BorderRadiusRuntype:function(){return BorderRadiusRuntype},ColumnAlignmentRunType:function(){return ColumnAlignmentRunType},ColumsSizesRuntype:function(){return ColumsSizesRuntype},HorizontalAlignmentRuntype:function(){return HorizontalAlignmentRuntype},HyphensRuntype:function(){return HyphensRuntype},LinkTextSizeRuntype:function(){return LinkTextSizeRuntype},OrderRuntype:function(){return OrderRuntype},SpaceSizesRuntype:function(){return SpaceSizesRuntype},StackHorizontalAlignmentRuntype:function(){return StackHorizontalAlignmentRuntype},StackVerticalAlignmentRuntype:function(){return StackVerticalAlignmentRuntype},TextAlignmentRuntype:function(){return TextAlignmentRuntype},TextSizeRuntype:function(){return TextSizeRuntype},ToggleSizeRuntype:function(){return ToggleSizeRuntype},VerticalAlignmentRuntype:function(){return VerticalAlignmentRuntype}});const _runtypes=require("runtypes"),LinkTextSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l")),TextSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m")),BorderRadiusRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("none"),(0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m")),TextAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center")),HorizontalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("spaceBetween")),VerticalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("top"),(0,_runtypes.Literal)("bottom"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("stretch")),StackVerticalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("top"),(0,_runtypes.Literal)("bottom"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("spaceBetween")),StackHorizontalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("stretch")),SpaceSizesRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("zero"),(0,_runtypes.Literal)("xxxs"),(0,_runtypes.Literal)("xxs"),(0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l"),(0,_runtypes.Literal)("xl"),(0,_runtypes.Literal)("xxl")),ColumsSizesRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)(1),(0,_runtypes.Literal)(2),(0,_runtypes.Literal)(3),(0,_runtypes.Literal)(4),(0,_runtypes.Literal)(5),(0,_runtypes.Literal)(6),(0,_runtypes.Literal)(7),(0,_runtypes.Literal)(8),(0,_runtypes.Literal)(9),(0,_runtypes.Literal)(10),(0,_runtypes.Literal)(11),(0,_runtypes.Literal)(12),(0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("narrow"),(0,_runtypes.Literal)("fill")),ColumnAlignmentRunType=(0,_runtypes.Union)((0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("start"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("end")),OrderRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("first"),(0,_runtypes.Literal)("last"),(0,_runtypes.Literal)("unset")),BaseVariationsRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("primary"),(0,_runtypes.Literal)("secondary"),(0,_runtypes.Literal)("tertiary")),BaseColorsRuntype=(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("accent"));(0,_runtypes.Union)((0,_runtypes.Literal)("secondary"),(0,_runtypes.Literal)("tertiary"),(0,_runtypes.Literal)("quaternary")),(0,_runtypes.Union)(BaseColorsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)((0,_runtypes.Literal)("normal"),(0,_runtypes.Literal)("bold"),(0,_runtypes.Literal)("black"),(0,_runtypes.Literal)("inherit")),(0,_runtypes.Union)(BaseColorsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning"),(0,_runtypes.Literal)("inherit"),(0,_runtypes.Literal)("brand"),(0,_runtypes.Literal)("quaternary")),(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning"),(0,_runtypes.Literal)("inherit"),(0,_runtypes.Literal)("brand")),(0,_runtypes.Union)((0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)(BaseVariationsRuntype),(0,_runtypes.Union)(BaseColorsRuntype),(0,_runtypes.Union)((0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l"));const HyphensRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("none"),(0,_runtypes.Literal)("manual")),ToggleSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{BaseColorsRuntype:function(){return BaseColorsRuntype},BaseVariationsRuntype:function(){return BaseVariationsRuntype},BorderRadiusRuntype:function(){return BorderRadiusRuntype},ColumnAlignmentRunType:function(){return ColumnAlignmentRunType},ColumsSizesRuntype:function(){return ColumsSizesRuntype},HorizontalAlignmentRuntype:function(){return HorizontalAlignmentRuntype},HyphensRuntype:function(){return HyphensRuntype},LinkTextSizeRuntype:function(){return LinkTextSizeRuntype},ListSizeRuntype:function(){return ListSizeRuntype},OrderRuntype:function(){return OrderRuntype},SpaceSizesRuntype:function(){return SpaceSizesRuntype},StackHorizontalAlignmentRuntype:function(){return StackHorizontalAlignmentRuntype},StackVerticalAlignmentRuntype:function(){return StackVerticalAlignmentRuntype},TextAlignmentRuntype:function(){return TextAlignmentRuntype},TextSizeRuntype:function(){return TextSizeRuntype},ToggleSizeRuntype:function(){return ToggleSizeRuntype},VerticalAlignmentRuntype:function(){return VerticalAlignmentRuntype}});const _runtypes=require("runtypes"),LinkTextSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l")),TextSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m")),BorderRadiusRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("none"),(0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m")),TextAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center")),HorizontalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("spaceBetween")),VerticalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("top"),(0,_runtypes.Literal)("bottom"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("stretch")),StackVerticalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("top"),(0,_runtypes.Literal)("bottom"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("spaceBetween")),StackHorizontalAlignmentRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("left"),(0,_runtypes.Literal)("right"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("stretch")),SpaceSizesRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("zero"),(0,_runtypes.Literal)("xxxs"),(0,_runtypes.Literal)("xxs"),(0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l"),(0,_runtypes.Literal)("xl"),(0,_runtypes.Literal)("xxl")),ColumsSizesRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)(1),(0,_runtypes.Literal)(2),(0,_runtypes.Literal)(3),(0,_runtypes.Literal)(4),(0,_runtypes.Literal)(5),(0,_runtypes.Literal)(6),(0,_runtypes.Literal)(7),(0,_runtypes.Literal)(8),(0,_runtypes.Literal)(9),(0,_runtypes.Literal)(10),(0,_runtypes.Literal)(11),(0,_runtypes.Literal)(12),(0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("narrow"),(0,_runtypes.Literal)("fill")),ColumnAlignmentRunType=(0,_runtypes.Union)((0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("start"),(0,_runtypes.Literal)("center"),(0,_runtypes.Literal)("end")),OrderRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("first"),(0,_runtypes.Literal)("last"),(0,_runtypes.Literal)("unset")),BaseVariationsRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("primary"),(0,_runtypes.Literal)("secondary"),(0,_runtypes.Literal)("tertiary")),BaseColorsRuntype=(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("accent"));(0,_runtypes.Union)((0,_runtypes.Literal)("secondary"),(0,_runtypes.Literal)("tertiary"),(0,_runtypes.Literal)("quaternary")),(0,_runtypes.Union)(BaseColorsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)((0,_runtypes.Literal)("normal"),(0,_runtypes.Literal)("bold"),(0,_runtypes.Literal)("black"),(0,_runtypes.Literal)("inherit")),(0,_runtypes.Union)(BaseColorsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning"),(0,_runtypes.Literal)("inherit"),(0,_runtypes.Literal)("brand"),(0,_runtypes.Literal)("quaternary")),(0,_runtypes.Union)(BaseVariationsRuntype,(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning"),(0,_runtypes.Literal)("inherit"),(0,_runtypes.Literal)("brand")),(0,_runtypes.Union)((0,_runtypes.Literal)("info"),(0,_runtypes.Literal)("success"),(0,_runtypes.Literal)("error"),(0,_runtypes.Literal)("warning")),(0,_runtypes.Union)(BaseVariationsRuntype),(0,_runtypes.Union)(BaseColorsRuntype),(0,_runtypes.Union)((0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l"));const HyphensRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("auto"),(0,_runtypes.Literal)("none"),(0,_runtypes.Literal)("manual")),ToggleSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m")),ListSizeRuntype=(0,_runtypes.Union)((0,_runtypes.Literal)("xs"),(0,_runtypes.Literal)("s"),(0,_runtypes.Literal)("m"),(0,_runtypes.Literal)("l"));
@@ -6,6 +6,7 @@
6
6
  "align-left": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-align-left\"><line x1=\"17\" y1=\"10\" x2=\"3\" y2=\"10\"></line><line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"></line><line x1=\"21\" y1=\"14\" x2=\"3\" y2=\"14\"></line><line x1=\"17\" y1=\"18\" x2=\"3\" y2=\"18\"></line></svg>",
7
7
  "amboss-logo": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path fill=\"#047A88\" d=\"M17.2 19.77H6.56l.67-1.22h9.3l.67 1.22ZM13.29 7.5l5.39 9.83h-1.42l-3.98-7.25-.7 1.28 3.27 5.97H7.9l5.39-9.83Zm7.46 11.06L13.28 4.9l-.7 1.3L6.5 17.32H5.08l7.5-13.69-.7-1.28L3 18.55h2.82L4.48 21h14.8l-1.35-2.45h2.82Z\" clip-rule=\"evenodd\"/>\n</svg>",
8
8
  "anamnesis": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M3 11.8437C3 11.2915 3.44772 10.8437 4 10.8437H11C11.5523 10.8437 12 10.396 12 9.84374V9C12 8.44772 12.4477 8 13 8H20C20.5523 8 21 8.44772 21 9V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V11.8437Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\"/>\n<path d=\"M19 9V2H5V11\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\"/>\n<path d=\"M8 5L16 5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n<path d=\"M8 8H9\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>\n</svg>\n",
9
+ "anki": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\">\n <path fill=\"currentcolor\" d=\"m10.36 2.81 3.61 4.04c.38.43.93.67 1.49.67.08 0 .16 0 .24-.01l5.48-.66-2.82 4.61c-.35.57-.39 1.28-.11 1.89l2.26 4.85-5.39-1.16c-.14-.03-.28-.05-.42-.05-.49 0-.97.18-1.34.52l-4.09 3.71-.47-5.33c-.06-.67-.45-1.26-1.04-1.58l-4.75-2.59 5.07-2.17c.6-.26 1.04-.79 1.17-1.43l1.11-5.31M10.07.24c-.13 0-.26.02-.39.05-.55.15-.96.59-1.08 1.14L7.29 7.7l-6.02 2.57c-.53.23-.88.73-.91 1.31-.03.57.28 1.11.78 1.39l5.66 3.08.56 6.33c.05.57.42 1.06.95 1.26.18.07.36.1.55.1.37 0 .73-.13 1.01-.39l4.83-4.38 6.38 1.38c.11.02.21.03.32.03a1.498 1.498 0 0 0 1.36-2.13l-2.68-5.76 3.36-5.5c.3-.49.29-1.11-.02-1.59-.28-.43-.76-.69-1.26-.69-.06 0-.12 0-.18.01l-6.5.78L11.19.74c-.29-.32-.7-.5-1.12-.5Z\"/>\n</svg>\n",
9
10
  "apple": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\"\n d=\"M16.749 0c.214 1.458-.379 2.886-1.162 3.896-.837 1.084-2.28 1.922-3.679 1.879-.255-1.396.398-2.834 1.194-3.8C13.974.906 15.469.088 16.749 0zm4.201 20.518c.721-1.105.99-1.662 1.55-2.91-4.07-1.547-4.723-7.335-.694-9.556-1.23-1.54-2.956-2.434-4.586-2.434-1.174 0-1.979.306-2.71.585-.61.232-1.169.445-1.849.445-.734 0-1.385-.233-2.066-.477-.748-.269-1.533-.55-2.508-.55-1.83 0-3.776 1.117-5.01 3.028C1.34 11.34 1.636 16.4 4.45 20.71c1.006 1.542 2.35 3.275 4.107 3.29.73.008 1.215-.21 1.74-.445.601-.27 1.255-.563 2.386-.569 1.138-.007 1.78.29 2.374.564.511.236.986.454 1.71.447 1.758-.014 3.176-1.935 4.182-3.477z\"\n clip-rule=\"evenodd\" />\n</svg>",
10
11
  "arrow-down": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><polyline points=\"19 12 12 19 5 12\"></polyline></svg>",
11
12
  "arrow-left": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left\"><line x1=\"19\" y1=\"12\" x2=\"5\" y2=\"12\"></line><polyline points=\"12 19 5 12 12 5\"></polyline></svg>",
@@ -6,6 +6,7 @@
6
6
  "align-left": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\">\n <g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\">\n <path d=\"M3 8h7M3 12h10M3 4h11\" />\n </g>\n</svg>",
7
7
  "amboss-logo": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path fill=\"#047a88\" d=\"M11.46 13.18H4.37l.45-.82h6.2ZM8.86 5l3.6 6.56h-.96L8.86 6.7l-.47.86 2.18 3.98h-5.3Zm4.98 7.37L8.86 3.28l-.47.86-4.06 7.4h-.95l5-9.12-.46-.85L2 12.37h1.88L2.98 14h9.87l-.9-1.64Zm0 0\"/>\n</svg>",
8
8
  "anamnesis": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M1 6.88641C1 6.33412 1.44772 5.88641 2 5.88641H6.86364C7.41592 5.88641 7.86364 5.43869 7.86364 4.88641V4.81824C7.86364 4.26595 8.31135 3.81824 8.86364 3.81824H13.7273C14.2796 3.81824 14.7273 4.26595 14.7273 4.81824V14.0001C14.7273 14.5523 14.2796 15.0001 13.7273 15.0001H2C1.44772 15.0001 1 14.5523 1 14.0001V6.88641Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\"/>\n<path d=\"M13.3546 4.45455V1H2.3728V6.72727\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\"/>\n</svg>\n",
9
+ "anki": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">\n <path fill=\"currentcolor\" d=\"m7.29 3.3 1.53 1.71c.38.43.93.67 1.49.67.08 0 .16 0 .24-.01l2.28-.28-1.16 1.9c-.35.57-.39 1.28-.11 1.89l.94 2.02-2.28-.49c-.14-.03-.28-.05-.42-.05-.49 0-.97.18-1.34.52l-1.73 1.57-.2-2.22c-.06-.67-.45-1.26-1.04-1.58L3.53 7.88l2.12-.9c.6-.26 1.04-.79 1.17-1.43l.47-2.25M6.71.16c-.09 0-.17.01-.26.03-.36.1-.64.39-.72.76l-.88 4.18-4 1.72c-.35.15-.59.49-.61.87-.02.38.18.74.52.93l3.77 2.05.37 4.22c.03.38.28.7.63.84.12.05.24.07.36.07.24 0 .48-.09.67-.26l3.22-2.92 4.25.92c.07.02.14.02.21.02a1 1 0 0 0 .78-.38c.24-.3.29-.7.13-1.05l-1.79-3.84 2.24-3.66a.998.998 0 0 0-.85-1.52h-.12l-4.33.52L7.46.49a.971.971 0 0 0-.75-.33Z\"/>\n</svg>\n",
9
10
  "apple": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\"\n d=\"M11.166 0c.143.972-.253 1.924-.774 2.598-.559.722-1.52 1.28-2.453 1.252-.17-.93.265-1.89.796-2.534C9.316.605 10.313.06 11.165 0zm2.8 13.679c.481-.737.66-1.108 1.034-1.94-2.714-1.032-3.149-4.89-.463-6.37-.82-1.028-1.97-1.624-3.057-1.624-.783 0-1.32.205-1.807.39-.406.155-.779.297-1.232.297-.49 0-.923-.155-1.377-.318-.5-.18-1.023-.367-1.673-.367-1.22 0-2.517.745-3.34 2.02-1.157 1.793-.96 5.166.916 8.039.671 1.028 1.567 2.184 2.739 2.194.486.005.81-.14 1.16-.297.4-.18.836-.375 1.59-.38.758-.004 1.187.194 1.583.376.34.157.657.303 1.14.298 1.172-.01 2.117-1.29 2.788-2.318z\"\n clip-rule=\"evenodd\" />\n</svg>",
10
11
  "arrow-down": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><polyline points=\"19 12 12 19 5 12\"></polyline></svg>",
11
12
  "arrow-left": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\">\n <g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\">\n <path stroke-linejoin=\"bevel\" d=\"M4 8h10\" />\n <path stroke-linejoin=\"round\" d=\"M6 12L2 8l4-4\" />\n </g>\n</svg>",
@@ -1 +1 @@
1
- import React from"react";import{Text}from"../Typography/Text/Text";import{Button}from"../Button/Button";import{Box}from"../Box/Box";import{Inline}from"../Inline/Inline";import{Divider}from"../Divider/Divider";import{Checkbox}from"../Form/Checkbox/Checkbox";import{Toolbar,ToolbarGroup}from"../Toolbar";import{SearchInput}from"../Form/SearchInput/SearchInput";let TotalItems=({children})=>React.createElement(Box,{space:["xs","zero"]},React.createElement(Text,{size:"s",color:"secondary",weight:"bold"},children)),CheckboxContainer=props=>React.createElement(Box,{tSpace:"zero",bSpace:"xs",lSpace:"xs",rSpace:"s"},React.createElement(Checkbox,{size:"s",...props}));export const BulkActionsToolbar=React.memo(function({actions,checkboxProps,totalItems,searchInputProps}){return React.createElement(React.Fragment,null,React.createElement(Toolbar,null,React.createElement(ToolbarGroup,{order:["last","first"],size:[12,8]},checkboxProps?React.createElement(Inline,{vAlignItems:"center"},React.createElement(CheckboxContainer,checkboxProps),React.createElement(TotalItems,null,totalItems)):React.createElement(TotalItems,null,totalItems),React.createElement(Inline,null,actions?.map(({variant="secondary",label,...buttonProps})=>React.createElement(Button,{...buttonProps,key:`action-${label}`,size:"s",variant:variant},label)))),React.createElement(ToolbarGroup,{order:["first","last"],size:[12,4]},React.createElement(SearchInput,searchInputProps))),React.createElement(Divider,null))});
1
+ import React from"react";import{Text}from"../Typography/Text/Text";import{Button}from"../Button/Button";import{Box}from"../Box/Box";import{Inline}from"../Inline/Inline";import{Divider}from"../Divider/Divider";import{Checkbox}from"../Form/Checkbox/Checkbox";import{Toolbar,ToolbarGroup}from"../Toolbar";import{SearchInput}from"../Form/SearchInput/SearchInput";let TotalItems=({children})=>React.createElement(Box,{space:["xs","zero"]},React.createElement(Text,{size:"s",color:"secondary",weight:"bold"},children)),CheckboxContainer=props=>React.createElement(Box,{space:"xs",tSpace:"zero",rSpace:["zero","xxs"]},React.createElement(Checkbox,{size:"s",...props}));export const BulkActionsToolbar=React.memo(function({actions,checkboxProps,totalItems,searchInputProps}){return React.createElement(React.Fragment,null,React.createElement(Toolbar,null,React.createElement(ToolbarGroup,{order:["last","first"],size:[12,8]},checkboxProps?React.createElement(Inline,{vAlignItems:"center",space:["xxs","m"]},React.createElement(CheckboxContainer,checkboxProps),React.createElement(TotalItems,null,totalItems)):React.createElement(TotalItems,null,totalItems),React.createElement(Inline,null,actions?.map(({variant="secondary",label,...buttonProps})=>React.createElement(Button,{...buttonProps,key:`action-${label}`,size:"s",variant:variant},label)))),React.createElement(ToolbarGroup,{order:["first","last"],size:[12,4]},React.createElement(SearchInput,searchInputProps))),React.createElement(Divider,null))});
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListProps } from "./types";
3
+ export declare function BaseEntityList({ data, size, onClick, isSelectable, selectedIds, onSelectionChange, renderRightContent, getLeftIconProps, hideBorder, "data-e2e-test-id": dataE2eTestId, }: EntityListProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ import React,{useMemo,useCallback}from"react";import{EntityListItem}from"./EntityListItem";import{Icon}from"../Icon/Icon";import{Box}from"../Box/Box";import{CheckboxRaw}from"../Form/Checkbox/Checkbox";import{StyledList,StyledMinHeightCell}from"./styled-components";let LeftCell=({isSelectable,selectedIdsSet,getLeftIconProps,...itemProps})=>{if(isSelectable)return React.createElement(Box,{vSpace:"zero",space:"xxs"},React.createElement(CheckboxRaw,{name:"list-checkbox",size:"s",onChange:()=>{},checked:selectedIdsSet.has(itemProps.id)}));let{textSize,...restNodeData}=itemProps,{name,color}=getLeftIconProps(restNodeData);return React.createElement(Icon,{name:name,color:color,size:textSize})};export function BaseEntityList({data,size="m",onClick,isSelectable,selectedIds,onSelectionChange,renderRightContent,getLeftIconProps,hideBorder,"data-e2e-test-id":dataE2eTestId}){let selectedIdsSet=useMemo(()=>new Set(selectedIds),[selectedIds]),handleOnClick=useCallback(item=>{let{id}=item;isSelectable&&(selectedIdsSet.has(id)?selectedIdsSet.delete(id):selectedIdsSet.add(id),onSelectionChange?.(Array.from(selectedIdsSet))),onClick?.(item)},[selectedIdsSet,onSelectionChange,onClick,isSelectable]);return React.createElement(StyledList,{size:size,"data-e2e-test-id":dataE2eTestId,"data-ds-id":"EntityList",role:"list"},data.map((item,i)=>React.createElement(EntityListItem,{key:item.id,"aria-label":item["aria-label"]||item.label,size:size,hideBorder:hideBorder||i===data.length-1,isActive:item.isActive,isDisabled:item.isDisabled,onClick:()=>handleOnClick(item),isClickable:!!(onClick||selectedIds),description:item.description,renderLabel:()=>item.label,renderLeft:getLeftIconProps||isSelectable?({textSize})=>React.createElement(LeftCell,{...item,isSelectable:isSelectable,selectedIdsSet:selectedIdsSet,getLeftIconProps:getLeftIconProps,textSize:textSize}):null,renderRight:({actionSize,textSize})=>renderRightContent?React.createElement(StyledMinHeightCell,{textSize:textSize},renderRightContent({textSize,actionSize,...item})):null})))}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListProps } from "./types";
3
+ export declare const EntityList: (props: EntityListProps) => React.ReactElement;
@@ -0,0 +1 @@
1
+ import React from"react";import{BaseEntityList}from"./BaseEntityList";import{Container}from"../Container/Container";export const EntityList=props=>React.createElement(Container,{overflow:"hidden"},React.createElement(BaseEntityList,props));
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListItemProps } from "./types";
3
+ export declare function EntityListItem({ description, size, role, renderLeft, renderRight, isExpanded, isDisabled, isActive, children, onClick, onExpandClick, isClickable, lSpaceStep, renderLabel, hideBorder, isDisabledExpand, "aria-label": ariaLabel, }: EntityListItemProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ import React,{useCallback}from"react";import{EntityListItemText}from"./EntityListItemText";import{EntityListItemExpandButton}from"./EntityListItemExpandButton";import{Inline}from"../Inline/Inline";import{StyledEntityListItem,StyledEntityListItemWrapper,StyledEntityListItemLabel,StyledEntityListDisabler}from"./styled-components";let useEntityListItemLabel=({size,isExpanded,lSpaceStep})=>{let hasExpandableIcon=void 0!==isExpanded,isTreeNode=void 0!==lSpaceStep;return{isDeepestTreeNode:!hasExpandableIcon&&isTreeNode,isTreeNode,textSize:"xs"===size?"s":"m",actionSize:"l"===size?"m":"s",hasExpandableIcon}},StopPropogationWrapper=({children})=>{let handleClick=useCallback(e=>{e.stopPropagation()},[]);return React.createElement("div",{role:"presentation",onClick:handleClick},children)};export function EntityListItem({description,size="m",role,renderLeft,renderRight,isExpanded,isDisabled,isActive,children,onClick,onExpandClick,isClickable,lSpaceStep,renderLabel,hideBorder,isDisabledExpand,"aria-label":ariaLabel}){let{textSize,actionSize,hasExpandableIcon,isTreeNode,isDeepestTreeNode}=useEntityListItemLabel({size,isExpanded,lSpaceStep});return React.createElement(StyledEntityListItem,{role:role,"aria-expanded":isExpanded,"aria-label":ariaLabel,isDisabled:isDisabled},React.createElement(StyledEntityListItemLabel,{size:size,onClick:onClick,isClickable:isClickable,isActive:isActive,isDeepestTreeNode:isDeepestTreeNode,lSpaceStep:lSpaceStep},hasExpandableIcon&&React.createElement(EntityListItemExpandButton,{disabled:isDisabledExpand,isExpanded:isExpanded,onClick:onExpandClick}),React.createElement(StyledEntityListItemWrapper,{size:size,hasLSpace:!isTreeNode,hideBorder:hideBorder||"xs"===size},React.createElement(StyledEntityListDisabler,null,React.createElement(Inline,{noWrap:!0,alignItems:"spaceBetween",space:["xs","m"]},React.createElement(Inline,{noWrap:!0,alignItems:"spaceBetween",space:["xs","m"]},renderLeft&&renderLeft({textSize}),React.createElement(EntityListItemText,{size:textSize,description:description},renderLabel({textSize}))),renderRight&&React.createElement(StopPropogationWrapper,null,renderRight({textSize,actionSize})))))),isExpanded&&children)}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { EntityListItemProps } from "./types";
3
+ export declare function EntityListItemExpandButton({ onClick, isExpanded, disabled, }: Partial<EntityListItemProps> & {
4
+ disabled?: boolean;
5
+ }): React.ReactElement;
@@ -0,0 +1 @@
1
+ import React from"react";import{PictogramButton}from"../PictogramButton/PictogramButton";import{Box}from"../Box/Box";export function EntityListItemExpandButton({onClick,isExpanded,disabled}){return React.createElement(Box,{vSpace:"zero",lSpace:["xs","m"],rSpace:["xs","m"]},React.createElement(PictogramButton,{disabled:disabled,onClick:onClick,icon:isExpanded?"chevron-down":"chevron-right"}))}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { EntityListItemLabelProps } from "./types";
3
+ export declare function EntityListItemText({ children, size, description, }: EntityListItemLabelProps): React.ReactElement;
@@ -0,0 +1 @@
1
+ import React from"react";import{Text}from"../Typography/Text/Text";import{Stack}from"../Stack/Stack";export function EntityListItemText({children,size,description}){return React.createElement(Stack,{space:"xxxs"},React.createElement(Text,{size:size},children),description&&React.createElement(Text,{color:"tertiary",size:"s"},description))}
@@ -0,0 +1,3 @@
1
+ export * from "./BaseEntityList";
2
+ export * from "./EntityList";
3
+ export * from "./types";
@@ -0,0 +1 @@
1
+ export*from"./BaseEntityList";export*from"./EntityList";export*from"./types";