@hh.ru/magritte-ui-tree-selector 3.0.3 → 3.0.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/Item.js CHANGED
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { memo, useMemo, useRef, Children } from 'react';
4
4
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
5
5
  import classnames from 'classnames';
6
- import { s as styles, I as ItemContent } from './ItemContent-BdA0WljZ.js';
6
+ import { s as styles, I as ItemContent } from './ItemContent-K9xv9O8s.js';
7
7
  import '@hh.ru/magritte-common-keyboard';
8
8
  import '@hh.ru/magritte-ui-icon/icon';
9
9
  import './Action.js';
@@ -8,7 +8,7 @@ import { Action } from './Action.js';
8
8
  import { TreeSelectorItemBase } from './TreeSelectorItemBase.js';
9
9
  import { Text } from '@hh.ru/magritte-ui-typography';
10
10
 
11
- var styles = {"item-animation-timeout":"magritte-item-animation-timeout___pbOyZ_3-0-3","itemAnimationTimeout":"magritte-item-animation-timeout___pbOyZ_3-0-3","wrapper":"magritte-wrapper___GHKV6_3-0-3","letter":"magritte-letter___yZOCU_3-0-3","icon":"magritte-icon___kO3Fj_3-0-3","space":"magritte-space___xTO79_3-0-3","iconActive":"magritte-iconActive___4yrG5_3-0-3","iconUp":"magritte-iconUp___mpXV6_3-0-3","content":"magritte-content___ZRc6R_3-0-3","with-shift":"magritte-with-shift___ZErxZ_3-0-3","withShift":"magritte-with-shift___ZErxZ_3-0-3","with-indent":"magritte-with-indent___MH9Vy_3-0-3","withIndent":"magritte-with-indent___MH9Vy_3-0-3","item":"magritte-item___2LtOL_3-0-3","children":"magritte-children___kq-eq_3-0-3","with-two-boxes":"magritte-with-two-boxes___LWOy2_3-0-3","withTwoBoxes":"magritte-with-two-boxes___LWOy2_3-0-3","with-three-boxes":"magritte-with-three-boxes___cyVao_3-0-3","withThreeBoxes":"magritte-with-three-boxes___cyVao_3-0-3","item-animation-enter":"magritte-item-animation-enter___14KlM_3-0-3","itemAnimationEnter":"magritte-item-animation-enter___14KlM_3-0-3","item-animation-enter-active":"magritte-item-animation-enter-active___oEWbW_3-0-3","itemAnimationEnterActive":"magritte-item-animation-enter-active___oEWbW_3-0-3","item-animation-exit":"magritte-item-animation-exit___a-Low_3-0-3","itemAnimationExit":"magritte-item-animation-exit___a-Low_3-0-3","item-animation-exit-active":"magritte-item-animation-exit-active___MhBnn_3-0-3","itemAnimationExitActive":"magritte-item-animation-exit-active___MhBnn_3-0-3"};
11
+ var styles = {"item-animation-timeout":"magritte-item-animation-timeout___pbOyZ_3-0-5","itemAnimationTimeout":"magritte-item-animation-timeout___pbOyZ_3-0-5","wrapper":"magritte-wrapper___GHKV6_3-0-5","letter":"magritte-letter___yZOCU_3-0-5","icon":"magritte-icon___kO3Fj_3-0-5","space":"magritte-space___xTO79_3-0-5","iconActive":"magritte-iconActive___4yrG5_3-0-5","iconUp":"magritte-iconUp___mpXV6_3-0-5","content":"magritte-content___ZRc6R_3-0-5","with-shift":"magritte-with-shift___ZErxZ_3-0-5","withShift":"magritte-with-shift___ZErxZ_3-0-5","with-indent":"magritte-with-indent___MH9Vy_3-0-5","withIndent":"magritte-with-indent___MH9Vy_3-0-5","item":"magritte-item___2LtOL_3-0-5","children":"magritte-children___kq-eq_3-0-5","with-two-boxes":"magritte-with-two-boxes___LWOy2_3-0-5","withTwoBoxes":"magritte-with-two-boxes___LWOy2_3-0-5","with-three-boxes":"magritte-with-three-boxes___cyVao_3-0-5","withThreeBoxes":"magritte-with-three-boxes___cyVao_3-0-5","item-animation-enter":"magritte-item-animation-enter___14KlM_3-0-5","itemAnimationEnter":"magritte-item-animation-enter___14KlM_3-0-5","item-animation-enter-active":"magritte-item-animation-enter-active___oEWbW_3-0-5","itemAnimationEnterActive":"magritte-item-animation-enter-active___oEWbW_3-0-5","item-animation-exit":"magritte-item-animation-exit___a-Low_3-0-5","itemAnimationExit":"magritte-item-animation-exit___a-Low_3-0-5","item-animation-exit-active":"magritte-item-animation-exit-active___MhBnn_3-0-5","itemAnimationExitActive":"magritte-item-animation-exit-active___MhBnn_3-0-5"};
12
12
 
13
13
  const ItemContentComponent = ({ item, parentId, hasAction, hasChildren, letter, isExpanded, isDisabled, onExpansion, hasLetterOnLevel, isSelected, onChange, isIndeterminate, singleChoice, hasDot, maxControlsOnLevel, isSearch, renderItemForDesktop = TreeSelectorItemBase, }) => {
14
14
  const handleExpandableClick = useCallback(() => onExpansion && onExpansion(item.id), [item.id, onExpansion]);
@@ -33,4 +33,4 @@ const ItemContentComponent = ({ item, parentId, hasAction, hasChildren, letter,
33
33
  const ItemContent = memo(ItemContentComponent);
34
34
 
35
35
  export { ItemContent as I, styles as s };
36
- //# sourceMappingURL=ItemContent-BdA0WljZ.js.map
36
+ //# sourceMappingURL=ItemContent-K9xv9O8s.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemContent-BdA0WljZ.js","sources":["../src/ItemContent.tsx"],"sourcesContent":["import { ReactElement, useCallback, memo, KeyboardEventHandler } from 'react';\nimport classnames from 'classnames';\n\nimport { keyboardKeys, keyboardMatch } from '@hh.ru/magritte-common-keyboard';\nimport { DotFilledSize24, ChevronRightOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Action } from '@hh.ru/magritte-ui-tree-selector/Action';\nimport { TreeSelectorItemBase } from '@hh.ru/magritte-ui-tree-selector/TreeSelectorItemBase';\nimport { AdditionalDefault, TreeModel } from '@hh.ru/magritte-ui-tree-selector/collection/types';\nimport { RenderItem } from '@hh.ru/magritte-ui-tree-selector/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './tree-selector-item.less';\n\ninterface ItemContent<Additional extends AdditionalDefault> {\n item: TreeModel<Additional>;\n parentId?: TreeModel<Additional>['id'];\n hasChildren: boolean;\n hasAction: boolean;\n letter?: string;\n onExpansion: (id: string) => void;\n isExpanded: boolean;\n isSelected: boolean;\n isDisabled: boolean;\n onChange: (id: string, isSelected: boolean) => void;\n isIndeterminate: boolean;\n singleChoice?: boolean;\n hasLetterOnLevel: boolean;\n hasDot: boolean;\n maxControlsOnLevel: number;\n renderItemForDesktop?: RenderItem<Additional>;\n isSearch: boolean;\n}\n\nconst ItemContentComponent = <Additional extends AdditionalDefault>({\n item,\n parentId,\n hasAction,\n hasChildren,\n letter,\n isExpanded,\n isDisabled,\n onExpansion,\n hasLetterOnLevel,\n isSelected,\n onChange,\n isIndeterminate,\n singleChoice,\n hasDot,\n maxControlsOnLevel,\n isSearch,\n renderItemForDesktop = TreeSelectorItemBase,\n}: ItemContent<Additional>): ReactElement => {\n const handleExpandableClick = useCallback(() => onExpansion && onExpansion(item.id), [item.id, onExpansion]);\n const currentActionCount = +hasDot + +hasAction + +hasChildren;\n const neededSpacesCount = maxControlsOnLevel - currentActionCount;\n\n const handleExpandableKeyDown = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatch(event.nativeEvent, keyboardKeys.ArrowLeft)) {\n isExpanded && onExpansion(item.id);\n event.preventDefault();\n return;\n }\n if (keyboardMatch(event.nativeEvent, keyboardKeys.ArrowRight)) {\n !isExpanded && onExpansion(item.id);\n event.preventDefault();\n }\n },\n [isExpanded, onExpansion, item.id]\n );\n\n const input = hasAction ? (\n <Action\n selected={isSelected}\n onChange={onChange}\n id={item.id}\n onKeyDown={handleExpandableKeyDown}\n indeterminate={isIndeterminate}\n singleChoice={singleChoice}\n name={`tree-selector-item-${parentId || 'top'}-${item.id}`}\n />\n ) : undefined;\n\n return (\n <div className={styles.wrapper} onClick={hasChildren && !hasAction ? handleExpandableClick : undefined}>\n {(letter || hasLetterOnLevel) && (\n <div className={styles.letter}>\n {letter && (\n <Text typography=\"subtitle-1-semibold\" style=\"secondary\" Element=\"span\">\n {letter}\n </Text>\n )}\n </div>\n )}\n {hasDot && (\n <div className={styles.icon}>\n <DotFilledSize24 initial=\"tertiary\" />\n </div>\n )}\n\n {[...Array(neededSpacesCount).keys()].map((_, i) => (\n <div key={i} className={styles.space} />\n ))}\n\n {hasChildren && (\n <div\n className={classnames(styles.icon, styles.iconActive, {\n [styles.iconUp]: isExpanded,\n })}\n data-qa={`tree-selector-chevron-${item.id}`}\n onClick={hasAction ? handleExpandableClick : undefined}\n >\n <ChevronRightOutlinedSize24 initial=\"tertiary\" />\n </div>\n )}\n {renderItemForDesktop({ disabled: isDisabled, input, item, isSearch, isParent: hasChildren })}\n </div>\n );\n};\n\nexport const ItemContent = memo(ItemContentComponent) as <Additional extends AdditionalDefault>(\n props: ItemContent<Additional>\n) => ReactElement;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAiCA,MAAM,oBAAoB,GAAG,CAAuC,EAChE,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,GAAG,oBAAoB,GACrB,KAAkB;IACxC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;IAC7G,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,CAAC,SAAS,GAAG,CAAC,WAAW,CAAC;AAC/D,IAAA,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAElE,IAAA,MAAM,uBAAuB,GAAG,WAAW,CACvC,CAAC,KAAK,KAAI;QACN,IAAI,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE;AAC1D,YAAA,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACnC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,OAAO;AACV,SAAA;QACD,IAAI,aAAa,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CACT,EAEA,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MAC3CA,GAAA,CAAA,KAAA,EAAA,EAAa,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,EAA1B,CAAC,CAA6B,CAC3C,CAAC,EAED,WAAW,KACRA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE;AAClD,oBAAA,CAAC,MAAM,CAAC,MAAM,GAAG,UAAU;iBAC9B,CAAC,EAAA,SAAA,EACO,yBAAyB,IAAI,CAAC,EAAE,CAAE,CAAA,EAC3C,OAAO,EAAE,SAAS,GAAG,qBAAqB,GAAG,SAAS,EAEtD,QAAA,EAAAA,GAAA,CAAC,0BAA0B,EAAA,EAAC,OAAO,EAAC,UAAU,EAAG,CAAA,EAAA,CAC/C,CACT,EACA,oBAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3F,EAAA,CAAA,EACR;AACN,CAAC,CAAC;MAEW,WAAW,GAAG,IAAI,CAAC,oBAAoB;;;;"}
1
+ {"version":3,"file":"ItemContent-K9xv9O8s.js","sources":["../src/ItemContent.tsx"],"sourcesContent":["import { ReactElement, useCallback, memo, KeyboardEventHandler } from 'react';\nimport classnames from 'classnames';\n\nimport { keyboardKeys, keyboardMatch } from '@hh.ru/magritte-common-keyboard';\nimport { DotFilledSize24, ChevronRightOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Action } from '@hh.ru/magritte-ui-tree-selector/Action';\nimport { TreeSelectorItemBase } from '@hh.ru/magritte-ui-tree-selector/TreeSelectorItemBase';\nimport { AdditionalDefault, TreeModel } from '@hh.ru/magritte-ui-tree-selector/collection/types';\nimport { RenderItem } from '@hh.ru/magritte-ui-tree-selector/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './tree-selector-item.less';\n\ninterface ItemContent<Additional extends AdditionalDefault> {\n item: TreeModel<Additional>;\n parentId?: TreeModel<Additional>['id'];\n hasChildren: boolean;\n hasAction: boolean;\n letter?: string;\n onExpansion: (id: string) => void;\n isExpanded: boolean;\n isSelected: boolean;\n isDisabled: boolean;\n onChange: (id: string, isSelected: boolean) => void;\n isIndeterminate: boolean;\n singleChoice?: boolean;\n hasLetterOnLevel: boolean;\n hasDot: boolean;\n maxControlsOnLevel: number;\n renderItemForDesktop?: RenderItem<Additional>;\n isSearch: boolean;\n}\n\nconst ItemContentComponent = <Additional extends AdditionalDefault>({\n item,\n parentId,\n hasAction,\n hasChildren,\n letter,\n isExpanded,\n isDisabled,\n onExpansion,\n hasLetterOnLevel,\n isSelected,\n onChange,\n isIndeterminate,\n singleChoice,\n hasDot,\n maxControlsOnLevel,\n isSearch,\n renderItemForDesktop = TreeSelectorItemBase,\n}: ItemContent<Additional>): ReactElement => {\n const handleExpandableClick = useCallback(() => onExpansion && onExpansion(item.id), [item.id, onExpansion]);\n const currentActionCount = +hasDot + +hasAction + +hasChildren;\n const neededSpacesCount = maxControlsOnLevel - currentActionCount;\n\n const handleExpandableKeyDown = useCallback<KeyboardEventHandler>(\n (event) => {\n if (keyboardMatch(event.nativeEvent, keyboardKeys.ArrowLeft)) {\n isExpanded && onExpansion(item.id);\n event.preventDefault();\n return;\n }\n if (keyboardMatch(event.nativeEvent, keyboardKeys.ArrowRight)) {\n !isExpanded && onExpansion(item.id);\n event.preventDefault();\n }\n },\n [isExpanded, onExpansion, item.id]\n );\n\n const input = hasAction ? (\n <Action\n selected={isSelected}\n onChange={onChange}\n id={item.id}\n onKeyDown={handleExpandableKeyDown}\n indeterminate={isIndeterminate}\n singleChoice={singleChoice}\n name={`tree-selector-item-${parentId || 'top'}-${item.id}`}\n />\n ) : undefined;\n\n return (\n <div className={styles.wrapper} onClick={hasChildren && !hasAction ? handleExpandableClick : undefined}>\n {(letter || hasLetterOnLevel) && (\n <div className={styles.letter}>\n {letter && (\n <Text typography=\"subtitle-1-semibold\" style=\"secondary\" Element=\"span\">\n {letter}\n </Text>\n )}\n </div>\n )}\n {hasDot && (\n <div className={styles.icon}>\n <DotFilledSize24 initial=\"tertiary\" />\n </div>\n )}\n\n {[...Array(neededSpacesCount).keys()].map((_, i) => (\n <div key={i} className={styles.space} />\n ))}\n\n {hasChildren && (\n <div\n className={classnames(styles.icon, styles.iconActive, {\n [styles.iconUp]: isExpanded,\n })}\n data-qa={`tree-selector-chevron-${item.id}`}\n onClick={hasAction ? handleExpandableClick : undefined}\n >\n <ChevronRightOutlinedSize24 initial=\"tertiary\" />\n </div>\n )}\n {renderItemForDesktop({ disabled: isDisabled, input, item, isSearch, isParent: hasChildren })}\n </div>\n );\n};\n\nexport const ItemContent = memo(ItemContentComponent) as <Additional extends AdditionalDefault>(\n props: ItemContent<Additional>\n) => ReactElement;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAiCA,MAAM,oBAAoB,GAAG,CAAuC,EAChE,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,MAAM,EACN,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,GAAG,oBAAoB,GACrB,KAAkB;IACxC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;IAC7G,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,CAAC,SAAS,GAAG,CAAC,WAAW,CAAC;AAC/D,IAAA,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAElE,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qB,EAAC,KAAK,EAAC,WAAW,EAAC,OAAO,EAAC,MAAM,EAAA,QAAA,EAClE,MAAM,EAAA,CACJ,CACV,EAAA,CACC,CACT,EACA,MAAM,KACHA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EACvB,QAAA,EAAAA,GAAA,CAAC,eAAe,EAAA,EAAC,OAAO,EAAC,UAAU,EAAA,CAAG,EACpC,CAAA,CACT,EAEA,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MAC3CA,GAAA,CAAA,KAAA,EAAA,EAAa,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,EAA1B,CAAC,CAA6B,CAC3C,CAAC,EAED,WAAW,KACRA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,EAAE;AAClD,oBAAA,CAAC,MAAM,CAAC,MAAM,GAAG,UAAU;iBAC9B,CAAC,EAAA,SAAA,EACO,yBAAyB,IAAI,CAAC,EAAE,CAAE,CAAA,EAC3C,OAAO,EAAE,SAAS,GAAG,qBAAqB,GAAG,SAAS,EAEtD,QAAA,EAAAA,GAAA,CAAC,0BAA0B,EAAA,EAAC,OAAO,EAAC,UAAU,EAAG,CAAA,EAAA,CAC/C,CACT,EACA,oBAAoB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAC3F,EAAA,CAAA,EACR;AACN,CAAC,CAAC;MAEW,WAAW,GAAG,IAAI,CAAC,oBAAoB;;;;"}
package/ItemContent.js CHANGED
@@ -7,7 +7,7 @@ import '@hh.ru/magritte-ui-icon/icon';
7
7
  import './Action.js';
8
8
  import './TreeSelectorItemBase.js';
9
9
  import '@hh.ru/magritte-ui-typography';
10
- export { I as ItemContent } from './ItemContent-BdA0WljZ.js';
10
+ export { I as ItemContent } from './ItemContent-K9xv9O8s.js';
11
11
  import '@hh.ru/magritte-ui-checkbox-radio';
12
12
  import '@hh.ru/magritte-ui-cell';
13
13
  //# sourceMappingURL=ItemContent.js.map
package/ItemsList.js CHANGED
@@ -4,7 +4,7 @@ import { Item } from './Item.js';
4
4
  import 'react';
5
5
  import 'react-transition-group';
6
6
  import 'classnames';
7
- import './ItemContent-BdA0WljZ.js';
7
+ import './ItemContent-K9xv9O8s.js';
8
8
  import '@hh.ru/magritte-common-keyboard';
9
9
  import '@hh.ru/magritte-ui-icon/icon';
10
10
  import './Action.js';
package/TreeSelector.js CHANGED
@@ -12,7 +12,7 @@ import './ItemsList.js';
12
12
  import './Item.js';
13
13
  import 'react-transition-group';
14
14
  import 'classnames';
15
- import './ItemContent-BdA0WljZ.js';
15
+ import './ItemContent-K9xv9O8s.js';
16
16
  import '@hh.ru/magritte-common-keyboard';
17
17
  import '@hh.ru/magritte-ui-icon/icon';
18
18
  import './Action.js';
@@ -14,7 +14,7 @@ import { useRenderInput } from './useRenderInput.js';
14
14
  import './Item.js';
15
15
  import 'react-transition-group';
16
16
  import 'classnames';
17
- import './ItemContent-BdA0WljZ.js';
17
+ import './ItemContent-K9xv9O8s.js';
18
18
  import '@hh.ru/magritte-common-keyboard';
19
19
  import '@hh.ru/magritte-ui-icon/icon';
20
20
  import './Action.js';
package/index.css CHANGED
@@ -4,7 +4,7 @@
4
4
  --magritte-semantic-animation-ease-in-out-200-timing-function-v18-3-0:cubic-bezier(0.25, 0.1, 0.25, 1);
5
5
  --magritte-semantic-animation-ease-in-out-200-duration-v18-3-0:200ms;
6
6
  }
7
- .magritte-item-animation-timeout___pbOyZ_3-0-3{
7
+ .magritte-item-animation-timeout___pbOyZ_3-0-5{
8
8
  transition-property:height, opacity;
9
9
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-3-0);
10
10
  overflow:hidden;
@@ -12,17 +12,17 @@
12
12
  transition-duration:var(--animation-duration);
13
13
  }
14
14
  @media (prefers-reduced-motion: no-preference){
15
- .magritte-item-animation-timeout___pbOyZ_3-0-3{
15
+ .magritte-item-animation-timeout___pbOyZ_3-0-5{
16
16
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-3-0);
17
17
  }
18
18
  }
19
- .magritte-wrapper___GHKV6_3-0-3{
19
+ .magritte-wrapper___GHKV6_3-0-5{
20
20
  display:flex;
21
21
  padding:12px 0;
22
22
  gap:12px;
23
23
  align-items:flex-start;
24
24
  }
25
- .magritte-letter___yZOCU_3-0-3{
25
+ .magritte-letter___yZOCU_3-0-5{
26
26
  width:24px;
27
27
  height:24px;
28
28
  display:flex;
@@ -30,47 +30,47 @@
30
30
  justify-content:center;
31
31
  flex-shrink:0;
32
32
  }
33
- .magritte-icon___kO3Fj_3-0-3,
34
- .magritte-space___xTO79_3-0-3{
33
+ .magritte-icon___kO3Fj_3-0-5,
34
+ .magritte-space___xTO79_3-0-5{
35
35
  flex-shrink:0;
36
36
  line-height:0;
37
37
  width:24px;
38
38
  }
39
- .magritte-icon___kO3Fj_3-0-3{
39
+ .magritte-icon___kO3Fj_3-0-5{
40
40
  transform:rotate(0);
41
41
  }
42
- .magritte-iconActive___4yrG5_3-0-3{
42
+ .magritte-iconActive___4yrG5_3-0-5{
43
43
  cursor:pointer;
44
44
  }
45
- .magritte-iconUp___mpXV6_3-0-3{
45
+ .magritte-iconUp___mpXV6_3-0-5{
46
46
  transform:rotate(90deg);
47
47
  }
48
48
  @media (prefers-reduced-motion: no-preference){
49
- .magritte-icon___kO3Fj_3-0-3{
49
+ .magritte-icon___kO3Fj_3-0-5{
50
50
  transition-property:transform;
51
51
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-3-0);
52
52
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-3-0);
53
53
  }
54
54
  }
55
- .magritte-content___ZRc6R_3-0-3{
55
+ .magritte-content___ZRc6R_3-0-5{
56
56
  flex-grow:1;
57
57
  }
58
- .magritte-with-shift___ZErxZ_3-0-3{
58
+ .magritte-with-shift___ZErxZ_3-0-5{
59
59
  margin-left:-36px;
60
60
  }
61
- .magritte-with-indent___MH9Vy_3-0-3{
61
+ .magritte-with-indent___MH9Vy_3-0-5{
62
62
  margin-left:36px;
63
63
  }
64
- .magritte-item___2LtOL_3-0-3 > .magritte-children___kq-eq_3-0-3{
64
+ .magritte-item___2LtOL_3-0-5 > .magritte-children___kq-eq_3-0-5{
65
65
  padding-left:36px;
66
66
  }
67
- .magritte-item___2LtOL_3-0-3.magritte-with-two-boxes___LWOy2_3-0-3 > .magritte-children___kq-eq_3-0-3{
67
+ .magritte-item___2LtOL_3-0-5.magritte-with-two-boxes___LWOy2_3-0-5 > .magritte-children___kq-eq_3-0-5{
68
68
  padding-left:72px;
69
69
  }
70
- .magritte-item___2LtOL_3-0-3.magritte-with-three-boxes___cyVao_3-0-3 > .magritte-children___kq-eq_3-0-3{
70
+ .magritte-item___2LtOL_3-0-5.magritte-with-three-boxes___cyVao_3-0-5 > .magritte-children___kq-eq_3-0-5{
71
71
  padding-left:108px;
72
72
  }
73
- .magritte-children___kq-eq_3-0-3{
73
+ .magritte-children___kq-eq_3-0-5{
74
74
  transition-property:height, opacity;
75
75
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-3-0);
76
76
  overflow:hidden;
@@ -78,20 +78,20 @@
78
78
  transition-duration:var(--animation-duration);
79
79
  }
80
80
  @media (prefers-reduced-motion: no-preference){
81
- .magritte-children___kq-eq_3-0-3{
81
+ .magritte-children___kq-eq_3-0-5{
82
82
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-3-0);
83
83
  }
84
84
  }
85
- .magritte-item-animation-enter___14KlM_3-0-3{
85
+ .magritte-item-animation-enter___14KlM_3-0-5{
86
86
  opacity:0;
87
87
  }
88
- .magritte-item-animation-enter-active___oEWbW_3-0-3{
88
+ .magritte-item-animation-enter-active___oEWbW_3-0-5{
89
89
  opacity:1;
90
90
  }
91
- .magritte-item-animation-exit___a-Low_3-0-3{
91
+ .magritte-item-animation-exit___a-Low_3-0-5{
92
92
  opacity:1;
93
93
  }
94
- .magritte-item-animation-exit-active___MhBnn_3-0-3{
94
+ .magritte-item-animation-exit-active___MhBnn_3-0-5{
95
95
  opacity:0;
96
96
  }
97
97
 
@@ -99,7 +99,7 @@
99
99
  --magritte-semantic-animation-ease-in-out-200-timing-function-v18-3-0:cubic-bezier(0.25, 0.1, 0.25, 1);
100
100
  --magritte-semantic-animation-ease-in-out-200-duration-v18-3-0:200ms;
101
101
  }
102
- .magritte-item-animation-timeout___Pdli9_3-0-3{
102
+ .magritte-item-animation-timeout___Pdli9_3-0-5{
103
103
  transition-property:height, opacity;
104
104
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-3-0);
105
105
  overflow:hidden;
@@ -107,7 +107,7 @@
107
107
  transition-duration:var(--animation-duration);
108
108
  }
109
109
  @media (prefers-reduced-motion: no-preference){
110
- .magritte-item-animation-timeout___Pdli9_3-0-3{
110
+ .magritte-item-animation-timeout___Pdli9_3-0-5{
111
111
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-3-0);
112
112
  }
113
113
  }
package/index.js CHANGED
@@ -20,7 +20,7 @@ import './ItemsList.js';
20
20
  import './Item.js';
21
21
  import 'react-transition-group';
22
22
  import 'classnames';
23
- import './ItemContent-BdA0WljZ.js';
23
+ import './ItemContent-K9xv9O8s.js';
24
24
  import '@hh.ru/magritte-common-keyboard';
25
25
  import '@hh.ru/magritte-ui-icon/icon';
26
26
  import './Action.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-tree-selector",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -26,11 +26,11 @@
26
26
  "@hh.ru/magritte-design-tokens": "18.3.0",
27
27
  "@hh.ru/magritte-ui-breakpoint": "4.0.3",
28
28
  "@hh.ru/magritte-ui-card": "6.0.11",
29
- "@hh.ru/magritte-ui-cell": "3.0.9",
29
+ "@hh.ru/magritte-ui-cell": "3.0.10",
30
30
  "@hh.ru/magritte-ui-checkable-card": "3.0.18",
31
- "@hh.ru/magritte-ui-checkbox-radio": "3.0.7",
31
+ "@hh.ru/magritte-ui-checkbox-radio": "3.0.8",
32
32
  "@hh.ru/magritte-ui-icon": "7.2.1",
33
- "@hh.ru/magritte-ui-input": "5.0.32",
33
+ "@hh.ru/magritte-ui-input": "5.1.0",
34
34
  "@hh.ru/magritte-ui-mock-component": "1.0.11",
35
35
  "@hh.ru/magritte-ui-spacing": "2.0.26",
36
36
  "@hh.ru/magritte-ui-theme-provider": "1.1.26",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "23a49dd5966b82e16231d34828bf2852ca211dcb"
47
+ "gitHead": "9ea7d8bb0e03b70d9f9bfbe24127c47029403df9"
48
48
  }
@@ -1,7 +1,7 @@
1
1
  import './index.css';
2
2
  import { useState, useLayoutEffect } from 'react';
3
3
 
4
- var styles = {"item-animation-timeout":"magritte-item-animation-timeout___Pdli9_3-0-3","itemAnimationTimeout":"magritte-item-animation-timeout___Pdli9_3-0-3"};
4
+ var styles = {"item-animation-timeout":"magritte-item-animation-timeout___Pdli9_3-0-5","itemAnimationTimeout":"magritte-item-animation-timeout___Pdli9_3-0-5"};
5
5
 
6
6
  const useAnimationTimeout = () => {
7
7
  const [animationTimeout, setAnimationTimeout] = useState(0);