@junyiacademy/ui-test 0.0.10 → 0.0.11
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.
|
@@ -9,5 +9,5 @@ export interface TopicFilterProps {
|
|
|
9
9
|
hasArrow: boolean;
|
|
10
10
|
initSelectedTopicIds: string[];
|
|
11
11
|
}
|
|
12
|
-
declare const TopicFilter: ({ topicTree, onTopicSelected, isLastLayer, hasArrow, initSelectedTopicIds, }: TopicFilterProps) => JSX.Element;
|
|
12
|
+
export declare const TopicFilter: ({ topicTree, onTopicSelected, isLastLayer, hasArrow, initSelectedTopicIds, }: TopicFilterProps) => JSX.Element;
|
|
13
13
|
export default TopicFilter;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TopicFilter = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
6
|
const styles_1 = require("@material-ui/core/styles");
|
|
@@ -115,4 +116,5 @@ const TopicFilter = ({ topicTree, onTopicSelected, isLastLayer, hasArrow, initSe
|
|
|
115
116
|
hasArrow && layerNumber !== layeredTopicList.length - 1 && (react_1.default.createElement(StyledArrowRightRoundedIcon, { fontSize: 'large', "data-testid": 'topic-filter-arrow' }))));
|
|
116
117
|
})));
|
|
117
118
|
};
|
|
118
|
-
exports.
|
|
119
|
+
exports.TopicFilter = TopicFilter;
|
|
120
|
+
exports.default = exports.TopicFilter;
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Story, Meta } from '@storybook/react'
|
|
3
|
-
import
|
|
3
|
+
import {
|
|
4
|
+
TopicFilter as JuiTopicFilter,
|
|
5
|
+
TopicFilterProps as JuiTopicFilterProps,
|
|
6
|
+
} from './TopicFilter'
|
|
4
7
|
import { topicTree } from '../utils/topicTree'
|
|
5
8
|
|
|
6
9
|
export default {
|
|
7
|
-
component:
|
|
10
|
+
component: JuiTopicFilter,
|
|
8
11
|
title: 'TopicFilter',
|
|
9
12
|
argTypes: {
|
|
10
13
|
topicTree: {
|
|
@@ -63,15 +66,13 @@ export default {
|
|
|
63
66
|
},
|
|
64
67
|
} as Meta
|
|
65
68
|
|
|
66
|
-
const
|
|
67
|
-
<
|
|
69
|
+
const TopicFilterStory: Story<JuiTopicFilterProps> = (args) => (
|
|
70
|
+
<JuiTopicFilter {...args} />
|
|
68
71
|
)
|
|
69
72
|
|
|
70
|
-
export const
|
|
71
|
-
{}
|
|
72
|
-
)
|
|
73
|
+
export const TopicFilter = TopicFilterStory.bind({})
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
TopicFilter.args = {
|
|
75
76
|
topicTree: topicTree,
|
|
76
77
|
onTopicSelected: () => {},
|
|
77
78
|
isLastLayer: (selectedTopic) => {
|