Skip to content

Commit 8730f0c

Browse files
authored
Prepare for initial release (#148)
1 parent bdbc3e0 commit 8730f0c

File tree

4 files changed

+30
-40
lines changed

4 files changed

+30
-40
lines changed

packages/core/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
tests
2+
node_modules
23
cc-test-reporter

packages/core/src/items/items.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@ import { jsx } from "@emotion/core";
33
import React from "react";
44

55
const ItemsRenderer = props => {
6-
const {
7-
getStyles,
8-
children
9-
} = props;
10-
return (
11-
<div css={getStyles("items", props)}>
12-
{children}
13-
</div>
14-
);
6+
const { getStyles, children } = props;
7+
return <div css={getStyles("items", props)}>{children}</div>;
158
};
169

1710
export default ItemsRenderer;
Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,44 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`tree component default 1`] = `
4-
<EmotionCssPropInternal
5-
__EMOTION_LABEL_PLEASE_DO_NOT_USE__="Tree"
6-
__EMOTION_TYPE_PLEASE_DO_NOT_USE__="div"
7-
css={
4+
<TreeContainerRenderer
5+
containerRef={
86
Object {
9-
"backgroundColor": "#F8F9FA",
10-
"border": "1px solid #E1E4EB",
11-
"borderRadius": "4px",
12-
"boxShadow": "0 6px 10px 0 rgba(27, 32, 70, 0.09)",
13-
"boxSizing": "border-box",
14-
"color": "#545769",
15-
"fontFamily": "Arial, Helvetica, sans-serif",
16-
"height": "280px",
17-
"position": "relative",
18-
"width": "230px",
7+
"current": undefined,
198
}
209
}
10+
getStyles={[Function]}
11+
height="300px"
12+
width="230px"
2113
>
2214
<Header
2315
getStyles={[Function]}
16+
headerRef={
17+
Object {
18+
"current": undefined,
19+
}
20+
}
2421
onClick={[Function]}
2522
parents={Array []}
2623
/>
2724
<Input
2825
getStyles={[Function]}
29-
searchTerm=""
30-
setSearchTerm={[Function]}
31-
/>
32-
<EmotionCssPropInternal
33-
__EMOTION_LABEL_PLEASE_DO_NOT_USE__="Tree"
34-
__EMOTION_TYPE_PLEASE_DO_NOT_USE__="div"
35-
css={
26+
inputRef={
3627
Object {
37-
"boxSizing": "border-box",
38-
"maxHeight": "203px",
39-
"overflowY": "auto",
28+
"current": undefined,
4029
}
4130
}
42-
>
43-
<NoResults
44-
getStyles={[Function]}
45-
text="No matching results"
46-
/>
47-
</EmotionCssPropInternal>
48-
</EmotionCssPropInternal>
31+
onInputChange={[Function]}
32+
searchTerm=""
33+
/>
34+
<ItemsRenderer
35+
getStyles={[Function]}
36+
height={0}
37+
/>
38+
<NoResults
39+
getStyles={[Function]}
40+
height={0}
41+
text="No matching results"
42+
/>
43+
</TreeContainerRenderer>
4944
`;

packages/material_tree/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
tests
2+
node_modules
23
cc-test-reporter

0 commit comments

Comments
 (0)