@hh.ru/magritte-ui-tree-selector 4.6.29 → 4.6.30
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.js +1 -1
- package/ItemsList.js +4 -2
- package/ItemsList.js.map +1 -1
- package/MobileItemsList.js +1 -1
- package/TreeSelector.js +1 -1
- package/TreeSelectorDummy.js +1 -1
- package/index.css +25 -25
- package/index.js +1 -1
- package/package.json +2 -2
- package/tree-selector-item-pg3Z3lvM.js +5 -0
- package/tree-selector-item-pg3Z3lvM.js.map +1 -0
- package/useAnimationTimeout.js +1 -1
- package/tree-selector-item-DYn99BeW.js +0 -5
- package/tree-selector-item-DYn99BeW.js.map +0 -1
package/Item.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@hh.ru/magritte-ui-checkbox-radio';
|
|
|
10
10
|
import './TreeSelectorItemBase.js';
|
|
11
11
|
import '@hh.ru/magritte-ui-cell';
|
|
12
12
|
import '@hh.ru/magritte-ui-typography';
|
|
13
|
-
import './tree-selector-item-
|
|
13
|
+
import './tree-selector-item-pg3Z3lvM.js';
|
|
14
14
|
|
|
15
15
|
const ONE_BOX_MARGIN = 36;
|
|
16
16
|
const getMargin = (allBoxesCount, hasShift, hasIndent) => {
|
package/ItemContent.js
CHANGED
|
@@ -7,7 +7,7 @@ import { DotFilledSize24, ChevronRightOutlinedSize24 } from '@hh.ru/magritte-ui-
|
|
|
7
7
|
import { Action } from './Action.js';
|
|
8
8
|
import { TreeSelectorItemBase } from './TreeSelectorItemBase.js';
|
|
9
9
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
10
|
-
import { s as styles } from './tree-selector-item-
|
|
10
|
+
import { s as styles } from './tree-selector-item-pg3Z3lvM.js';
|
|
11
11
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
12
12
|
import '@hh.ru/magritte-ui-cell';
|
|
13
13
|
|
package/ItemsList.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
5
5
|
import { Item } from './Item.js';
|
|
6
|
-
import { s as styles } from './tree-selector-item-
|
|
6
|
+
import { s as styles } from './tree-selector-item-pg3Z3lvM.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import './ItemContent.js';
|
|
9
9
|
import '@hh.ru/magritte-common-keyboard';
|
|
@@ -20,6 +20,7 @@ const getNewExpanded = (oldExpanded, newExpanded) => {
|
|
|
20
20
|
}
|
|
21
21
|
return newExpanded.filter((i) => !oldExpanded.includes(i));
|
|
22
22
|
};
|
|
23
|
+
const DELIMITER = ';';
|
|
23
24
|
const ItemsList = (props) => {
|
|
24
25
|
const { collection, leavesOnly, checkSelectable, selected, expanded, disabled, onExpansion, indeterminate, onChange, isSearch, singleChoice, renderItemForDesktop, renderContentBefore, } = props;
|
|
25
26
|
const prevExpanded = useRef(expanded);
|
|
@@ -48,7 +49,8 @@ const ItemsList = (props) => {
|
|
|
48
49
|
if (withPromoContent && index === 0) {
|
|
49
50
|
return 'promo';
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
// без разделителя конкатенация значений может указывать на другой элемент
|
|
53
|
+
return treeItem.parentIds[0] ? `${treeItem.parentIds[0]}${DELIMITER}${treeItem.id}` : `${treeItem.id}`;
|
|
52
54
|
};
|
|
53
55
|
const virtualizer = useVirtualizer({
|
|
54
56
|
count: treeItems.length + (withPromoContent ? 1 : 0),
|
package/ItemsList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemsList.js","sources":["../src/ItemsList.tsx"],"sourcesContent":["import { ReactElement, ReactNode, RefCallback, useCallback, useEffect, useMemo, useRef } from 'react';\nimport { useVirtualizer } from '@tanstack/react-virtual';\n\nimport { Item } from '@hh.ru/magritte-ui-tree-selector/Item';\nimport TreeCollection from '@hh.ru/magritte-ui-tree-selector/collection/treeCollection';\nimport { AdditionalDefault, IdCollectionPredicate, TreeModel } from '@hh.ru/magritte-ui-tree-selector/collection/types';\nimport { RenderItem } from '@hh.ru/magritte-ui-tree-selector/types';\n\nimport styles from './tree-selector-item.less';\n\ninterface ItemsListProps<Additional extends AdditionalDefault> {\n collection: TreeCollection<Additional>;\n leavesOnly?: boolean;\n checkSelectable?: IdCollectionPredicate;\n onExpansion: (id: string) => void;\n expanded: string[];\n selected: string[];\n disabled: string[];\n onChange: (id: string, isSelected: boolean) => void;\n indeterminate: string[];\n singleChoice?: boolean;\n isSearch: boolean;\n renderItemForDesktop?: RenderItem<Additional>;\n renderContentBefore?: (isSearch: boolean) => ReactNode;\n}\n\ninterface TreeModelItem<Additional extends AdditionalDefault> extends TreeModel<Additional> {\n parentIds: string[];\n}\n\nconst getNewExpanded = (oldExpanded: string[], newExpanded: string[]): string[] => {\n if (oldExpanded.length >= newExpanded.length) {\n return [];\n }\n return newExpanded.filter((i) => !oldExpanded.includes(i));\n};\n\nexport const ItemsList = <Additional extends AdditionalDefault>(props: ItemsListProps<Additional>): ReactElement => {\n const {\n collection,\n leavesOnly,\n checkSelectable,\n selected,\n expanded,\n disabled,\n onExpansion,\n indeterminate,\n onChange,\n isSearch,\n singleChoice,\n renderItemForDesktop,\n renderContentBefore,\n } = props;\n const prevExpanded = useRef<string[]>(expanded);\n const expandedIds = useRef<string[]>(expanded);\n\n const treeItems = useMemo(() => {\n const newItems: TreeModelItem<Additional>[] = [];\n expandedIds.current = getNewExpanded(prevExpanded.current, expanded);\n collection.walk((item, currentParents) => {\n const parentId = currentParents.length ? currentParents[0].id : undefined;\n const isExpandedChild = currentParents.every((parent) => expanded.includes(parent.id));\n if (!parentId || isExpandedChild) {\n newItems.push({\n ...item,\n parentIds: currentParents.map((parent) => parent.id),\n });\n }\n });\n return newItems;\n }, [collection, expanded]);\n const marginCache = useRef<Record<string, number>>({});\n const parentRef = useRef<HTMLElement | null>(null);\n const withPromoContent = !!renderContentBefore;\n\n const getKey = (index: number) => {\n const treeIndex = withPromoContent ? index - 1 : index;\n const treeItem = treeItems[treeIndex];\n if (withPromoContent && index === 0) {\n return 'promo';\n }\n return treeItem.parentIds[0] ? `${treeItem.parentIds[0]}${treeItem.id}` : `${treeItem.id}`;\n };\n const virtualizer = useVirtualizer({\n count: treeItems.length + (withPromoContent ? 1 : 0),\n getScrollElement: () => parentRef.current,\n estimateSize: () => 48,\n getItemKey: getKey,\n });\n\n const refCallback: RefCallback<HTMLDivElement> = useCallback((node) => {\n parentRef.current = node ? node.parentElement : null;\n }, []);\n\n const items = virtualizer.getVirtualItems();\n\n useEffect(() => {\n virtualizer.scrollToOffset(0);\n }, [collection, virtualizer]);\n\n useEffect(() => {\n prevExpanded.current = expanded;\n }, [expanded]);\n\n const onAnimationEnd = () => {\n expandedIds.current = [];\n };\n\n return (\n <div\n ref={refCallback}\n className={styles.virtualizedList}\n style={{\n height: `${virtualizer.getTotalSize()}px`,\n }}\n >\n <div\n className={styles.virtualizedItem}\n style={{\n transform: `translateY(${items[0]?.start}px)`,\n }}\n >\n {items.map((virtualItem) => {\n if (withPromoContent && virtualItem.index === 0) {\n return (\n <div key={virtualItem.key} ref={virtualizer.measureElement} data-index={virtualItem.index}>\n {renderContentBefore(isSearch)}\n </div>\n );\n }\n\n const treeIndex = withPromoContent ? virtualItem.index - 1 : virtualItem.index;\n const treeItem = treeItems[treeIndex];\n const { parentIds, ...item } = treeItem;\n const parentId = parentIds[0];\n const wasExpanded = expandedIds.current.some((expandedId) => parentIds.includes(expandedId));\n\n return (\n <div\n key={virtualItem.key}\n ref={virtualizer.measureElement}\n data-index={virtualItem.index}\n onAnimationEnd={onAnimationEnd}\n className={wasExpanded ? styles.wasExpanded : undefined}\n >\n <Item\n collection={collection}\n checkSelectable={checkSelectable}\n isSelected={selected.includes(item.id)}\n isExpanded={expanded.includes(item.id)}\n isIndeterminate={indeterminate.includes(item.id)}\n isDisabled={disabled.includes(item.id)}\n parentId={parentId}\n item={item}\n leavesOnly={leavesOnly}\n singleChoice={singleChoice}\n onExpansion={onExpansion}\n onChange={onChange}\n isSearch={isSearch}\n renderItemForDesktop={renderItemForDesktop}\n cache={marginCache.current}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;AA8BA,MAAM,cAAc,GAAG,CAAC,WAAqB,EAAE,WAAqB,KAAc;IAC9E,IAAI,WAAW,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE;AAC1C,QAAA,OAAO,EAAE,CAAC;KACb;AACD,IAAA,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEW,MAAA,SAAS,GAAG,CAAuC,KAAiC,KAAkB;AAC/G,IAAA,MAAM,EACF,UAAU,EACV,UAAU,EACV,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,GACtB,GAAG,KAAK,CAAC;AACV,IAAA,MAAM,YAAY,GAAG,MAAM,CAAW,QAAQ,CAAC,CAAC;AAChD,IAAA,MAAM,WAAW,GAAG,MAAM,CAAW,QAAQ,CAAC,CAAC;AAE/C,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,MAAK;QAC3B,MAAM,QAAQ,GAAgC,EAAE,CAAC;QACjD,WAAW,CAAC,OAAO,GAAG,cAAc,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACrE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,cAAc,KAAI;AACrC,YAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC;YAC1E,MAAM,eAAe,GAAG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AQ,EAClB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,WAAW,CAAC,OAAO,EAC5B,CAAA,EAAA,EAtBG,WAAW,CAAC,GAAG,CAuBlB,EACR;AACN,aAAC,CAAC,EAAA,CACA,EACJ,CAAA,EACR;AACN;;;;"}
|
|
1
|
+
{"version":3,"file":"ItemsList.js","sources":["../src/ItemsList.tsx"],"sourcesContent":["import { ReactElement, ReactNode, RefCallback, useCallback, useEffect, useMemo, useRef } from 'react';\nimport { useVirtualizer } from '@tanstack/react-virtual';\n\nimport { Item } from '@hh.ru/magritte-ui-tree-selector/Item';\nimport TreeCollection from '@hh.ru/magritte-ui-tree-selector/collection/treeCollection';\nimport { AdditionalDefault, IdCollectionPredicate, TreeModel } from '@hh.ru/magritte-ui-tree-selector/collection/types';\nimport { RenderItem } from '@hh.ru/magritte-ui-tree-selector/types';\n\nimport styles from './tree-selector-item.less';\n\ninterface ItemsListProps<Additional extends AdditionalDefault> {\n collection: TreeCollection<Additional>;\n leavesOnly?: boolean;\n checkSelectable?: IdCollectionPredicate;\n onExpansion: (id: string) => void;\n expanded: string[];\n selected: string[];\n disabled: string[];\n onChange: (id: string, isSelected: boolean) => void;\n indeterminate: string[];\n singleChoice?: boolean;\n isSearch: boolean;\n renderItemForDesktop?: RenderItem<Additional>;\n renderContentBefore?: (isSearch: boolean) => ReactNode;\n}\n\ninterface TreeModelItem<Additional extends AdditionalDefault> extends TreeModel<Additional> {\n parentIds: string[];\n}\n\nconst getNewExpanded = (oldExpanded: string[], newExpanded: string[]): string[] => {\n if (oldExpanded.length >= newExpanded.length) {\n return [];\n }\n return newExpanded.filter((i) => !oldExpanded.includes(i));\n};\n\nconst DELIMITER = ';';\n\nexport const ItemsList = <Additional extends AdditionalDefault>(props: ItemsListProps<Additional>): ReactElement => {\n const {\n collection,\n leavesOnly,\n checkSelectable,\n selected,\n expanded,\n disabled,\n onExpansion,\n indeterminate,\n onChange,\n isSearch,\n singleChoice,\n renderItemForDesktop,\n renderContentBefore,\n } = props;\n const prevExpanded = useRef<string[]>(expanded);\n const expandedIds = useRef<string[]>(expanded);\n\n const treeItems = useMemo(() => {\n const newItems: TreeModelItem<Additional>[] = [];\n expandedIds.current = getNewExpanded(prevExpanded.current, expanded);\n collection.walk((item, currentParents) => {\n const parentId = currentParents.length ? currentParents[0].id : undefined;\n const isExpandedChild = currentParents.every((parent) => expanded.includes(parent.id));\n if (!parentId || isExpandedChild) {\n newItems.push({\n ...item,\n parentIds: currentParents.map((parent) => parent.id),\n });\n }\n });\n return newItems;\n }, [collection, expanded]);\n const marginCache = useRef<Record<string, number>>({});\n const parentRef = useRef<HTMLElement | null>(null);\n const withPromoContent = !!renderContentBefore;\n\n const getKey = (index: number) => {\n const treeIndex = withPromoContent ? index - 1 : index;\n const treeItem = treeItems[treeIndex];\n if (withPromoContent && index === 0) {\n return 'promo';\n }\n // без разделителя конкатенация значений может указывать на другой элемент\n return treeItem.parentIds[0] ? `${treeItem.parentIds[0]}${DELIMITER}${treeItem.id}` : `${treeItem.id}`;\n };\n const virtualizer = useVirtualizer({\n count: treeItems.length + (withPromoContent ? 1 : 0),\n getScrollElement: () => parentRef.current,\n estimateSize: () => 48,\n getItemKey: getKey,\n });\n\n const refCallback: RefCallback<HTMLDivElement> = useCallback((node) => {\n parentRef.current = node ? node.parentElement : null;\n }, []);\n\n const items = virtualizer.getVirtualItems();\n\n useEffect(() => {\n virtualizer.scrollToOffset(0);\n }, [collection, virtualizer]);\n\n useEffect(() => {\n prevExpanded.current = expanded;\n }, [expanded]);\n\n const onAnimationEnd = () => {\n expandedIds.current = [];\n };\n\n return (\n <div\n ref={refCallback}\n className={styles.virtualizedList}\n style={{\n height: `${virtualizer.getTotalSize()}px`,\n }}\n >\n <div\n className={styles.virtualizedItem}\n style={{\n transform: `translateY(${items[0]?.start}px)`,\n }}\n >\n {items.map((virtualItem) => {\n if (withPromoContent && virtualItem.index === 0) {\n return (\n <div key={virtualItem.key} ref={virtualizer.measureElement} data-index={virtualItem.index}>\n {renderContentBefore(isSearch)}\n </div>\n );\n }\n\n const treeIndex = withPromoContent ? virtualItem.index - 1 : virtualItem.index;\n const treeItem = treeItems[treeIndex];\n const { parentIds, ...item } = treeItem;\n const parentId = parentIds[0];\n const wasExpanded = expandedIds.current.some((expandedId) => parentIds.includes(expandedId));\n\n return (\n <div\n key={virtualItem.key}\n ref={virtualizer.measureElement}\n data-index={virtualItem.index}\n onAnimationEnd={onAnimationEnd}\n className={wasExpanded ? styles.wasExpanded : undefined}\n >\n <Item\n collection={collection}\n checkSelectable={checkSelectable}\n isSelected={selected.includes(item.id)}\n isExpanded={expanded.includes(item.id)}\n isIndeterminate={indeterminate.includes(item.id)}\n isDisabled={disabled.includes(item.id)}\n parentId={parentId}\n item={item}\n leavesOnly={leavesOnly}\n singleChoice={singleChoice}\n onExpansion={onExpansion}\n onChange={onChange}\n isSearch={isSearch}\n renderItemForDesktop={renderItemForDesktop}\n cache={marginCache.current}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;AA8BA,MAAM,cAAc,GAAG,CAAC,WAAqB,EAAE,WAAqB,KAAc;IAC9E,IAAI,WAAW,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE;AAC1C,QAAA,OAAO,EAAE,CAAC;KACb;AACD,IAAA,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,CAAC;AAET,MAAA,SAAS,GAAG,CAAuC,KAAiC,KAAkB;AAC/G,IAAA,MAAM,EACF,UAAU,EACV,UAAU,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I,CAAC,CAAC,UAAU,KAAK,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAE7F,gBAAA,QACIA,GAAA,CAAA,KAAA,EAAA,EAEI,GAAG,EAAE,WAAW,CAAC,cAAc,EAAA,YAAA,EACnB,WAAW,CAAC,KAAK,EAC7B,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,WAAW,GAAG,MAAM,CAAC,WAAW,GAAG,SAAS,EAEvD,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAA,EACD,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EACtC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EACtC,eAAe,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAChD,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EACtC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,WAAW,CAAC,OAAO,EAC5B,CAAA,EAAA,EAtBG,WAAW,CAAC,GAAG,CAuBlB,EACR;AACN,aAAC,CAAC,EAAA,CACA,EACJ,CAAA,EACR;AACN;;;;"}
|
package/MobileItemsList.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Action } from './Action.js';
|
|
|
10
10
|
import { MobileDelimiter } from './MobileDelimiter.js';
|
|
11
11
|
import { MobileItem } from './MobileItem.js';
|
|
12
12
|
import { MobileParentItem } from './MobileParentItem.js';
|
|
13
|
-
import { s as styles } from './tree-selector-item-
|
|
13
|
+
import { s as styles } from './tree-selector-item-pg3Z3lvM.js';
|
|
14
14
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
15
15
|
import '@hh.ru/magritte-ui-card';
|
|
16
16
|
import '@hh.ru/magritte-ui-typography';
|
package/TreeSelector.js
CHANGED
|
@@ -19,7 +19,7 @@ import '@hh.ru/magritte-ui-checkbox-radio';
|
|
|
19
19
|
import './TreeSelectorItemBase.js';
|
|
20
20
|
import '@hh.ru/magritte-ui-cell';
|
|
21
21
|
import '@hh.ru/magritte-ui-typography';
|
|
22
|
-
import './tree-selector-item-
|
|
22
|
+
import './tree-selector-item-pg3Z3lvM.js';
|
|
23
23
|
import './MobileItemsList.js';
|
|
24
24
|
import '@hh.ru/magritte-common-func-utils';
|
|
25
25
|
import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
|
package/TreeSelectorDummy.js
CHANGED
|
@@ -21,7 +21,7 @@ import '@hh.ru/magritte-ui-checkbox-radio';
|
|
|
21
21
|
import './TreeSelectorItemBase.js';
|
|
22
22
|
import '@hh.ru/magritte-ui-cell';
|
|
23
23
|
import '@hh.ru/magritte-ui-typography';
|
|
24
|
-
import './tree-selector-item-
|
|
24
|
+
import './tree-selector-item-pg3Z3lvM.js';
|
|
25
25
|
import '@hh.ru/magritte-common-func-utils';
|
|
26
26
|
import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
|
|
27
27
|
import './MobileDelimiter.js';
|
package/index.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
5
5
|
--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2:200ms;
|
|
6
6
|
}
|
|
7
|
-
@keyframes magritte-fade-in___yS4Ja_4-6-
|
|
7
|
+
@keyframes magritte-fade-in___yS4Ja_4-6-30{
|
|
8
8
|
0%{
|
|
9
9
|
opacity:0;
|
|
10
10
|
}
|
|
@@ -12,24 +12,24 @@
|
|
|
12
12
|
opacity:1;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
.magritte-item-animation-timeout___pbOyZ_4-6-
|
|
16
|
-
animation-name:magritte-fade-in___yS4Ja_4-6-
|
|
15
|
+
.magritte-item-animation-timeout___pbOyZ_4-6-30{
|
|
16
|
+
animation-name:magritte-fade-in___yS4Ja_4-6-30;
|
|
17
17
|
animation-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2);
|
|
18
18
|
--animation-duration:0ms;
|
|
19
19
|
animation-duration:var(--animation-duration);
|
|
20
20
|
}
|
|
21
21
|
@media (prefers-reduced-motion: no-preference){
|
|
22
|
-
.magritte-item-animation-timeout___pbOyZ_4-6-
|
|
22
|
+
.magritte-item-animation-timeout___pbOyZ_4-6-30{
|
|
23
23
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
.magritte-wrapper___GHKV6_4-6-
|
|
26
|
+
.magritte-wrapper___GHKV6_4-6-30{
|
|
27
27
|
display:flex;
|
|
28
28
|
padding:12px 0;
|
|
29
29
|
gap:12px;
|
|
30
30
|
align-items:flex-start;
|
|
31
31
|
}
|
|
32
|
-
.magritte-letter___yZOCU_4-6-
|
|
32
|
+
.magritte-letter___yZOCU_4-6-30{
|
|
33
33
|
width:24px;
|
|
34
34
|
height:24px;
|
|
35
35
|
display:flex;
|
|
@@ -37,59 +37,59 @@
|
|
|
37
37
|
justify-content:center;
|
|
38
38
|
flex-shrink:0;
|
|
39
39
|
}
|
|
40
|
-
.magritte-icon___kO3Fj_4-6-
|
|
41
|
-
.magritte-space___xTO79_4-6-
|
|
40
|
+
.magritte-icon___kO3Fj_4-6-30,
|
|
41
|
+
.magritte-space___xTO79_4-6-30{
|
|
42
42
|
flex-shrink:0;
|
|
43
43
|
line-height:0;
|
|
44
44
|
width:24px;
|
|
45
45
|
}
|
|
46
|
-
.magritte-icon___kO3Fj_4-6-
|
|
46
|
+
.magritte-icon___kO3Fj_4-6-30{
|
|
47
47
|
transform:rotate(0);
|
|
48
48
|
}
|
|
49
|
-
.magritte-wrapperActive___Hwk8p_4-6-
|
|
50
|
-
.magritte-iconActive___4yrG5_4-6-
|
|
49
|
+
.magritte-wrapperActive___Hwk8p_4-6-30,
|
|
50
|
+
.magritte-iconActive___4yrG5_4-6-30{
|
|
51
51
|
cursor:pointer;
|
|
52
52
|
}
|
|
53
|
-
.magritte-iconUp___mpXV6_4-6-
|
|
53
|
+
.magritte-iconUp___mpXV6_4-6-30{
|
|
54
54
|
transform:rotate(90deg);
|
|
55
55
|
}
|
|
56
56
|
@media (prefers-reduced-motion: no-preference){
|
|
57
|
-
.magritte-icon___kO3Fj_4-6-
|
|
57
|
+
.magritte-icon___kO3Fj_4-6-30{
|
|
58
58
|
transition-property:transform;
|
|
59
59
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-3-2);
|
|
60
60
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v21-3-2);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
.magritte-content___ZRc6R_4-6-
|
|
63
|
+
.magritte-content___ZRc6R_4-6-30{
|
|
64
64
|
flex-grow:1;
|
|
65
65
|
}
|
|
66
|
-
.magritte-mobile-item___ynALC_4-6-
|
|
66
|
+
.magritte-mobile-item___ynALC_4-6-30{
|
|
67
67
|
display:flex;
|
|
68
68
|
gap:12px;
|
|
69
69
|
flex-wrap:wrap;
|
|
70
70
|
}
|
|
71
|
-
.magritte-with-gap___gbvGO_4-6-
|
|
71
|
+
.magritte-with-gap___gbvGO_4-6-30{
|
|
72
72
|
padding-top:12px;
|
|
73
73
|
}
|
|
74
|
-
.magritte-virtualized-list___qt2E6_4-6-
|
|
74
|
+
.magritte-virtualized-list___qt2E6_4-6-30{
|
|
75
75
|
width:100%;
|
|
76
76
|
position:relative;
|
|
77
77
|
will-change:transform;
|
|
78
78
|
}
|
|
79
|
-
.magritte-virtualized-item___qAYVN_4-6-
|
|
79
|
+
.magritte-virtualized-item___qAYVN_4-6-30{
|
|
80
80
|
position:absolute;
|
|
81
81
|
top:0;
|
|
82
82
|
left:0;
|
|
83
83
|
width:100%;
|
|
84
84
|
}
|
|
85
|
-
.magritte-was-expanded___uCFbW_4-6-
|
|
86
|
-
animation-name:magritte-fade-in___yS4Ja_4-6-
|
|
85
|
+
.magritte-was-expanded___uCFbW_4-6-30{
|
|
86
|
+
animation-name:magritte-fade-in___yS4Ja_4-6-30;
|
|
87
87
|
animation-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2);
|
|
88
88
|
--animation-duration:0ms;
|
|
89
89
|
animation-duration:var(--animation-duration);
|
|
90
90
|
}
|
|
91
91
|
@media (prefers-reduced-motion: no-preference){
|
|
92
|
-
.magritte-was-expanded___uCFbW_4-6-
|
|
92
|
+
.magritte-was-expanded___uCFbW_4-6-30{
|
|
93
93
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
99
99
|
--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2:200ms;
|
|
100
100
|
}
|
|
101
|
-
@keyframes magritte-fade-in___FDoho_4-6-
|
|
101
|
+
@keyframes magritte-fade-in___FDoho_4-6-30{
|
|
102
102
|
0%{
|
|
103
103
|
opacity:0;
|
|
104
104
|
}
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
opacity:1;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
.magritte-item-animation-timeout___Pdli9_4-6-
|
|
110
|
-
animation-name:magritte-fade-in___FDoho_4-6-
|
|
109
|
+
.magritte-item-animation-timeout___Pdli9_4-6-30{
|
|
110
|
+
animation-name:magritte-fade-in___FDoho_4-6-30;
|
|
111
111
|
animation-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2);
|
|
112
112
|
--animation-duration:0ms;
|
|
113
113
|
animation-duration:var(--animation-duration);
|
|
114
114
|
}
|
|
115
115
|
@media (prefers-reduced-motion: no-preference){
|
|
116
|
-
.magritte-item-animation-timeout___Pdli9_4-6-
|
|
116
|
+
.magritte-item-animation-timeout___Pdli9_4-6-30{
|
|
117
117
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2);
|
|
118
118
|
}
|
|
119
119
|
}
|
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import '@hh.ru/magritte-ui-icon/icon';
|
|
|
27
27
|
import './Action.js';
|
|
28
28
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
29
29
|
import '@hh.ru/magritte-ui-typography';
|
|
30
|
-
import './tree-selector-item-
|
|
30
|
+
import './tree-selector-item-pg3Z3lvM.js';
|
|
31
31
|
import './MobileItemsList.js';
|
|
32
32
|
import '@hh.ru/magritte-common-func-utils';
|
|
33
33
|
import '@hh.ru/magritte-ui-cell';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-tree-selector",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.30",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5828427f01d872a0ab395cdec1a39baffb9f9906"
|
|
54
54
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"item-animation-timeout":"magritte-item-animation-timeout___pbOyZ_4-6-30","itemAnimationTimeout":"magritte-item-animation-timeout___pbOyZ_4-6-30","fade-in":"magritte-fade-in___yS4Ja_4-6-30","fadeIn":"magritte-fade-in___yS4Ja_4-6-30","wrapper":"magritte-wrapper___GHKV6_4-6-30","letter":"magritte-letter___yZOCU_4-6-30","icon":"magritte-icon___kO3Fj_4-6-30","space":"magritte-space___xTO79_4-6-30","wrapperActive":"magritte-wrapperActive___Hwk8p_4-6-30","iconActive":"magritte-iconActive___4yrG5_4-6-30","iconUp":"magritte-iconUp___mpXV6_4-6-30","content":"magritte-content___ZRc6R_4-6-30","mobile-item":"magritte-mobile-item___ynALC_4-6-30","mobileItem":"magritte-mobile-item___ynALC_4-6-30","with-gap":"magritte-with-gap___gbvGO_4-6-30","withGap":"magritte-with-gap___gbvGO_4-6-30","virtualized-list":"magritte-virtualized-list___qt2E6_4-6-30","virtualizedList":"magritte-virtualized-list___qt2E6_4-6-30","virtualized-item":"magritte-virtualized-item___qAYVN_4-6-30","virtualizedItem":"magritte-virtualized-item___qAYVN_4-6-30","was-expanded":"magritte-was-expanded___uCFbW_4-6-30","wasExpanded":"magritte-was-expanded___uCFbW_4-6-30"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=tree-selector-item-pg3Z3lvM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-selector-item-pg3Z3lvM.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
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_4-6-
|
|
4
|
+
var styles = {"item-animation-timeout":"magritte-item-animation-timeout___Pdli9_4-6-30","itemAnimationTimeout":"magritte-item-animation-timeout___Pdli9_4-6-30","fade-in":"magritte-fade-in___FDoho_4-6-30","fadeIn":"magritte-fade-in___FDoho_4-6-30"};
|
|
5
5
|
|
|
6
6
|
const useAnimationTimeout = () => {
|
|
7
7
|
const [animationTimeout, setAnimationTimeout] = useState(0);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"item-animation-timeout":"magritte-item-animation-timeout___pbOyZ_4-6-29","itemAnimationTimeout":"magritte-item-animation-timeout___pbOyZ_4-6-29","fade-in":"magritte-fade-in___yS4Ja_4-6-29","fadeIn":"magritte-fade-in___yS4Ja_4-6-29","wrapper":"magritte-wrapper___GHKV6_4-6-29","letter":"magritte-letter___yZOCU_4-6-29","icon":"magritte-icon___kO3Fj_4-6-29","space":"magritte-space___xTO79_4-6-29","wrapperActive":"magritte-wrapperActive___Hwk8p_4-6-29","iconActive":"magritte-iconActive___4yrG5_4-6-29","iconUp":"magritte-iconUp___mpXV6_4-6-29","content":"magritte-content___ZRc6R_4-6-29","mobile-item":"magritte-mobile-item___ynALC_4-6-29","mobileItem":"magritte-mobile-item___ynALC_4-6-29","with-gap":"magritte-with-gap___gbvGO_4-6-29","withGap":"magritte-with-gap___gbvGO_4-6-29","virtualized-list":"magritte-virtualized-list___qt2E6_4-6-29","virtualizedList":"magritte-virtualized-list___qt2E6_4-6-29","virtualized-item":"magritte-virtualized-item___qAYVN_4-6-29","virtualizedItem":"magritte-virtualized-item___qAYVN_4-6-29","was-expanded":"magritte-was-expanded___uCFbW_4-6-29","wasExpanded":"magritte-was-expanded___uCFbW_4-6-29"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=tree-selector-item-DYn99BeW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-selector-item-DYn99BeW.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|