@hh.ru/magritte-ui-tree-selector 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Item.js +1 -1
- package/{ItemContent-B8bmjnfm.js → ItemContent-Cl2lthE3.js} +2 -2
- package/{ItemContent-B8bmjnfm.js.map → ItemContent-Cl2lthE3.js.map} +1 -1
- package/ItemContent.js +1 -1
- package/ItemsList.js +1 -1
- package/TreeSelector.js +1 -1
- package/TreeSelectorDummy.js +1 -1
- package/index.css +24 -24
- package/index.js +1 -1
- package/package.json +6 -6
- package/useAnimationTimeout.js +1 -1
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-
|
|
6
|
+
import { s as styles, I as ItemContent } from './ItemContent-Cl2lthE3.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_1-7-
|
|
11
|
+
var styles = {"item-animation-timeout":"magritte-item-animation-timeout___pbOyZ_1-7-1","itemAnimationTimeout":"magritte-item-animation-timeout___pbOyZ_1-7-1","wrapper":"magritte-wrapper___GHKV6_1-7-1","letter":"magritte-letter___yZOCU_1-7-1","icon":"magritte-icon___kO3Fj_1-7-1","space":"magritte-space___xTO79_1-7-1","iconActive":"magritte-iconActive___4yrG5_1-7-1","iconUp":"magritte-iconUp___mpXV6_1-7-1","content":"magritte-content___ZRc6R_1-7-1","with-shift":"magritte-with-shift___ZErxZ_1-7-1","withShift":"magritte-with-shift___ZErxZ_1-7-1","with-indent":"magritte-with-indent___MH9Vy_1-7-1","withIndent":"magritte-with-indent___MH9Vy_1-7-1","item":"magritte-item___2LtOL_1-7-1","children":"magritte-children___kq-eq_1-7-1","with-two-boxes":"magritte-with-two-boxes___LWOy2_1-7-1","withTwoBoxes":"magritte-with-two-boxes___LWOy2_1-7-1","with-three-boxes":"magritte-with-three-boxes___cyVao_1-7-1","withThreeBoxes":"magritte-with-three-boxes___cyVao_1-7-1","item-animation-enter":"magritte-item-animation-enter___14KlM_1-7-1","itemAnimationEnter":"magritte-item-animation-enter___14KlM_1-7-1","item-animation-enter-active":"magritte-item-animation-enter-active___oEWbW_1-7-1","itemAnimationEnterActive":"magritte-item-animation-enter-active___oEWbW_1-7-1","item-animation-exit":"magritte-item-animation-exit___a-Low_1-7-1","itemAnimationExit":"magritte-item-animation-exit___a-Low_1-7-1","item-animation-exit-active":"magritte-item-animation-exit-active___MhBnn_1-7-1","itemAnimationExitActive":"magritte-item-animation-exit-active___MhBnn_1-7-1"};
|
|
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-
|
|
36
|
+
//# sourceMappingURL=ItemContent-Cl2lthE3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemContent-
|
|
1
|
+
{"version":3,"file":"ItemContent-Cl2lthE3.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 { ChevronUpOutlinedSize24, DotFilledSize24 } 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<A extends AdditionalDefault> {\n item: TreeModel<A>;\n parentId?: TreeModel<A>['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<A>;\n isSearch: boolean;\n}\n\nconst ItemContentComponent = <A 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<A>): 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}>\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={handleExpandableClick}\n >\n <ChevronUpOutlinedSize24 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 <A extends AdditionalDefault>(\n props: ItemContent<A>\n) => ReactElement;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAiCA,MAAM,oBAAoB,GAAG,CAA8B,EACvD,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,QAAQ,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AAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAA,EAAA,CAC3F,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-
|
|
10
|
+
export { I as ItemContent } from './ItemContent-Cl2lthE3.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-
|
|
7
|
+
import './ItemContent-Cl2lthE3.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-
|
|
15
|
+
import './ItemContent-Cl2lthE3.js';
|
|
16
16
|
import '@hh.ru/magritte-common-keyboard';
|
|
17
17
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
18
18
|
import './Action.js';
|
package/TreeSelectorDummy.js
CHANGED
|
@@ -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-
|
|
17
|
+
import './ItemContent-Cl2lthE3.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-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
5
5
|
--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1:200ms;
|
|
6
6
|
}
|
|
7
|
-
.magritte-item-animation-timeout___pbOyZ_1-7-
|
|
7
|
+
.magritte-item-animation-timeout___pbOyZ_1-7-1{
|
|
8
8
|
transition-property:height, opacity;
|
|
9
9
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1);
|
|
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_1-7-
|
|
15
|
+
.magritte-item-animation-timeout___pbOyZ_1-7-1{
|
|
16
16
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
.magritte-wrapper___GHKV6_1-7-
|
|
19
|
+
.magritte-wrapper___GHKV6_1-7-1{
|
|
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_1-7-
|
|
25
|
+
.magritte-letter___yZOCU_1-7-1{
|
|
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_1-7-
|
|
34
|
-
.magritte-space___xTO79_1-7-
|
|
33
|
+
.magritte-icon___kO3Fj_1-7-1,
|
|
34
|
+
.magritte-space___xTO79_1-7-1{
|
|
35
35
|
flex-shrink:0;
|
|
36
36
|
line-height:0;
|
|
37
37
|
width:24px;
|
|
38
38
|
}
|
|
39
|
-
.magritte-icon___kO3Fj_1-7-
|
|
39
|
+
.magritte-icon___kO3Fj_1-7-1{
|
|
40
40
|
transform:rotate(0);
|
|
41
41
|
}
|
|
42
|
-
.magritte-iconActive___4yrG5_1-7-
|
|
42
|
+
.magritte-iconActive___4yrG5_1-7-1{
|
|
43
43
|
cursor:pointer;
|
|
44
44
|
}
|
|
45
|
-
.magritte-iconUp___mpXV6_1-7-
|
|
45
|
+
.magritte-iconUp___mpXV6_1-7-1{
|
|
46
46
|
transform:rotate(-180deg);
|
|
47
47
|
}
|
|
48
48
|
@media (prefers-reduced-motion: no-preference){
|
|
49
|
-
.magritte-icon___kO3Fj_1-7-
|
|
49
|
+
.magritte-icon___kO3Fj_1-7-1{
|
|
50
50
|
transition-property:transform;
|
|
51
51
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-2-1);
|
|
52
52
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-2-1);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
.magritte-content___ZRc6R_1-7-
|
|
55
|
+
.magritte-content___ZRc6R_1-7-1{
|
|
56
56
|
flex-grow:1;
|
|
57
57
|
}
|
|
58
|
-
.magritte-with-shift___ZErxZ_1-7-
|
|
58
|
+
.magritte-with-shift___ZErxZ_1-7-1{
|
|
59
59
|
margin-left:-36px;
|
|
60
60
|
}
|
|
61
|
-
.magritte-with-indent___MH9Vy_1-7-
|
|
61
|
+
.magritte-with-indent___MH9Vy_1-7-1{
|
|
62
62
|
margin-left:36px;
|
|
63
63
|
}
|
|
64
|
-
.magritte-item___2LtOL_1-7-
|
|
64
|
+
.magritte-item___2LtOL_1-7-1 > .magritte-children___kq-eq_1-7-1{
|
|
65
65
|
padding-left:36px;
|
|
66
66
|
}
|
|
67
|
-
.magritte-item___2LtOL_1-7-
|
|
67
|
+
.magritte-item___2LtOL_1-7-1.magritte-with-two-boxes___LWOy2_1-7-1 > .magritte-children___kq-eq_1-7-1{
|
|
68
68
|
padding-left:72px;
|
|
69
69
|
}
|
|
70
|
-
.magritte-item___2LtOL_1-7-
|
|
70
|
+
.magritte-item___2LtOL_1-7-1.magritte-with-three-boxes___cyVao_1-7-1 > .magritte-children___kq-eq_1-7-1{
|
|
71
71
|
padding-left:108px;
|
|
72
72
|
}
|
|
73
|
-
.magritte-children___kq-eq_1-7-
|
|
73
|
+
.magritte-children___kq-eq_1-7-1{
|
|
74
74
|
transition-property:height, opacity;
|
|
75
75
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1);
|
|
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_1-7-
|
|
81
|
+
.magritte-children___kq-eq_1-7-1{
|
|
82
82
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
.magritte-item-animation-enter___14KlM_1-7-
|
|
85
|
+
.magritte-item-animation-enter___14KlM_1-7-1{
|
|
86
86
|
opacity:0;
|
|
87
87
|
}
|
|
88
|
-
.magritte-item-animation-enter-active___oEWbW_1-7-
|
|
88
|
+
.magritte-item-animation-enter-active___oEWbW_1-7-1{
|
|
89
89
|
opacity:1;
|
|
90
90
|
}
|
|
91
|
-
.magritte-item-animation-exit___a-Low_1-7-
|
|
91
|
+
.magritte-item-animation-exit___a-Low_1-7-1{
|
|
92
92
|
opacity:1;
|
|
93
93
|
}
|
|
94
|
-
.magritte-item-animation-exit-active___MhBnn_1-7-
|
|
94
|
+
.magritte-item-animation-exit-active___MhBnn_1-7-1{
|
|
95
95
|
opacity:0;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
100
100
|
--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1:200ms;
|
|
101
101
|
}
|
|
102
|
-
.magritte-item-animation-timeout___Pdli9_1-7-
|
|
102
|
+
.magritte-item-animation-timeout___Pdli9_1-7-1{
|
|
103
103
|
transition-property:height, opacity;
|
|
104
104
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1);
|
|
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_1-7-
|
|
110
|
+
.magritte-item-animation-timeout___Pdli9_1-7-1{
|
|
111
111
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1);
|
|
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-
|
|
23
|
+
import './ItemContent-Cl2lthE3.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": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@hh.ru/magritte-common-keyboard": "4.0.1",
|
|
26
26
|
"@hh.ru/magritte-design-tokens": "18.2.1",
|
|
27
27
|
"@hh.ru/magritte-ui-breakpoint": "4.0.3",
|
|
28
|
-
"@hh.ru/magritte-ui-card": "6.0.
|
|
29
|
-
"@hh.ru/magritte-ui-cell": "3.0.
|
|
30
|
-
"@hh.ru/magritte-ui-checkable-card": "3.0.
|
|
28
|
+
"@hh.ru/magritte-ui-card": "6.0.10",
|
|
29
|
+
"@hh.ru/magritte-ui-cell": "3.0.4",
|
|
30
|
+
"@hh.ru/magritte-ui-checkable-card": "3.0.14",
|
|
31
31
|
"@hh.ru/magritte-ui-checkbox-radio": "3.0.5",
|
|
32
32
|
"@hh.ru/magritte-ui-icon": "7.1.9",
|
|
33
|
-
"@hh.ru/magritte-ui-input": "5.0.
|
|
33
|
+
"@hh.ru/magritte-ui-input": "5.0.27",
|
|
34
34
|
"@hh.ru/magritte-ui-mock-component": "1.0.11",
|
|
35
35
|
"@hh.ru/magritte-ui-spacing": "2.0.25",
|
|
36
36
|
"@hh.ru/magritte-ui-theme-provider": "1.1.25",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "c97e0bd946a456f07010b6db9fe4b1afca93c44c"
|
|
48
48
|
}
|
package/useAnimationTimeout.js
CHANGED
|
@@ -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_1-7-
|
|
4
|
+
var styles = {"item-animation-timeout":"magritte-item-animation-timeout___Pdli9_1-7-1","itemAnimationTimeout":"magritte-item-animation-timeout___Pdli9_1-7-1"};
|
|
5
5
|
|
|
6
6
|
const useAnimationTimeout = () => {
|
|
7
7
|
const [animationTimeout, setAnimationTimeout] = useState(0);
|