@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 CHANGED
@@ -5,3 +5,9 @@
5
5
  ### Minor Changes
6
6
 
7
7
  - First release of @raketa-builder/builder & @raketa-builder/image-input
8
+
9
+ ## 0.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Update Admin sidebar buttons
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.button`
2691
- ${import_ui13.buttonReset};
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, { type: "button", onClick: () => setOpen(!open), children: [
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-builder/builder",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
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.button`
92
- ${buttonReset};
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 type="button" onClick={() => setOpen(!open)}>
154
+ <TitleWrapper onClick={() => setOpen(!open)}>
154
155
  <Title>{extractPrimaryField(primaryField, item, idx)}</Title>
155
156
  {!alwaysOpened && (
156
157
  <ListButton type="button">