@raketa-builder/builder 0.3.0 → 0.4.0
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/CHANGELOG.md +6 -0
- package/dist/index.js +4 -3
- package/package.json +1 -1
- package/src/List.js +4 -3
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2687,13 +2687,14 @@ var TitleBar = import_styled_components10.default.div`
|
|
|
2687
2687
|
padding: 8px;
|
|
2688
2688
|
background-color: #efefef;
|
|
2689
2689
|
`;
|
|
2690
|
-
var TitleWrapper = import_styled_components10.default.
|
|
2691
|
-
${import_ui13.
|
|
2690
|
+
var TitleWrapper = import_styled_components10.default.div`
|
|
2691
|
+
${import_ui13.reset};
|
|
2692
2692
|
display: flex;
|
|
2693
2693
|
justify-content: space-between;
|
|
2694
2694
|
align-items: center;
|
|
2695
2695
|
flex: 1;
|
|
2696
2696
|
padding: 0;
|
|
2697
|
+
cursor: pointer;
|
|
2697
2698
|
`;
|
|
2698
2699
|
var ContentWrapper = import_styled_components10.default.div`
|
|
2699
2700
|
${import_ui13.reset};
|
|
@@ -2737,7 +2738,7 @@ var Item = ({
|
|
|
2737
2738
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ItemWrapper, { children: [
|
|
2738
2739
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TitleBar, { children: [
|
|
2739
2740
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Handle2, {}),
|
|
2740
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TitleWrapper, {
|
|
2741
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(TitleWrapper, { onClick: () => setOpen(!open), children: [
|
|
2741
2742
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Title, { children: extractPrimaryField(primaryField2, item, idx) }),
|
|
2742
2743
|
!alwaysOpened && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ListButton, { type: "button", children: open ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconMinimize, {}) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconMaximize, {}) })
|
|
2743
2744
|
] }),
|
package/package.json
CHANGED
package/src/List.js
CHANGED
|
@@ -88,13 +88,14 @@ const TitleBar = styled.div`
|
|
|
88
88
|
background-color: #efefef;
|
|
89
89
|
`;
|
|
90
90
|
|
|
91
|
-
const TitleWrapper = styled.
|
|
92
|
-
${
|
|
91
|
+
const TitleWrapper = styled.div`
|
|
92
|
+
${reset};
|
|
93
93
|
display: flex;
|
|
94
94
|
justify-content: space-between;
|
|
95
95
|
align-items: center;
|
|
96
96
|
flex: 1;
|
|
97
97
|
padding: 0;
|
|
98
|
+
cursor: pointer;
|
|
98
99
|
`;
|
|
99
100
|
|
|
100
101
|
const ContentWrapper = styled.div`
|
|
@@ -150,7 +151,7 @@ const Item = ({
|
|
|
150
151
|
<TitleBar>
|
|
151
152
|
<Handle />
|
|
152
153
|
|
|
153
|
-
<TitleWrapper
|
|
154
|
+
<TitleWrapper onClick={() => setOpen(!open)}>
|
|
154
155
|
<Title>{extractPrimaryField(primaryField, item, idx)}</Title>
|
|
155
156
|
{!alwaysOpened && (
|
|
156
157
|
<ListButton type="button">
|