@synerise/ds-field-set 0.2.26 → 0.2.28

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.28](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.27...@synerise/ds-field-set@0.2.28) (2024-07-05)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-field-set
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.26...@synerise/ds-field-set@0.2.27) (2024-06-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **field-set:** fix display in wrapper component ([fe04b8c](https://github.com/Synerise/synerise-design/commit/fe04b8c2c43c843dbfd6e85d24ae138262f8c661))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.2.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.25...@synerise/ds-field-set@0.2.26) (2024-05-29)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-field-set
package/dist/FieldSet.js CHANGED
@@ -12,7 +12,7 @@ var FieldSet = function FieldSet(_ref) {
12
12
  onTitleClick = _ref.onTitleClick;
13
13
  return /*#__PURE__*/React.createElement(S.ContainerWrapper, {
14
14
  className: "ds-field-set " + className
15
- }, /*#__PURE__*/React.createElement(S.HeaderWrapper, null, /*#__PURE__*/React.createElement(S.ButtonWrapper, null, prefix), /*#__PURE__*/React.createElement(S.FieldSetTitle, {
15
+ }, /*#__PURE__*/React.createElement(S.HeaderWrapper, null, prefix && /*#__PURE__*/React.createElement(S.ButtonWrapper, null, prefix), /*#__PURE__*/React.createElement(S.FieldSetTitle, {
16
16
  description: Boolean(description)
17
17
  }, /*#__PURE__*/React.createElement(S.Title, {
18
18
  onClick: onTitleClick,
@@ -20,7 +20,7 @@ var FieldSet = function FieldSet(_ref) {
20
20
  description: Boolean(description)
21
21
  }, title), /*#__PURE__*/React.createElement(S.Description, {
22
22
  description: Boolean(description)
23
- }, description))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(S.ComponentWrapper, null, component), /*#__PURE__*/React.createElement(S.ActionButton, null, button));
23
+ }, description))), /*#__PURE__*/React.createElement(Divider, null), component && /*#__PURE__*/React.createElement(S.ComponentWrapper, null, component), button && /*#__PURE__*/React.createElement(S.ActionButton, null, button));
24
24
  };
25
25
 
26
26
  export default FieldSet;
@@ -3,7 +3,7 @@ export var Title = styled.div.withConfig({
3
3
  displayName: "FieldSetstyles__Title",
4
4
  componentId: "sc-1hezedi-0"
5
5
  })(["display:flex;line-height:16px;padding-bottom:", ";max-width:800px;font-size:16px;font-weight:500;word-wrap:break-word;align-items:center;color:", ";cursor:", ";"], function (props) {
6
- return props.description ? '8px' : '14px';
6
+ return props.description ? '8px' : '0';
7
7
  }, function (props) {
8
8
  return props.theme.palette['grey-800'];
9
9
  }, function (props) {
@@ -12,7 +12,7 @@ export var Title = styled.div.withConfig({
12
12
  export var ContainerWrapper = styled.div.withConfig({
13
13
  displayName: "FieldSetstyles__ContainerWrapper",
14
14
  componentId: "sc-1hezedi-1"
15
- })([""]);
15
+ })(["display:flex;flex-direction:column;gap:16px;"]);
16
16
  export var HeaderWrapper = styled.div.withConfig({
17
17
  displayName: "FieldSetstyles__HeaderWrapper",
18
18
  componentId: "sc-1hezedi-2"
@@ -42,10 +42,8 @@ export var FieldSetTitle = styled.div.withConfig({
42
42
  export var ComponentWrapper = styled.div.withConfig({
43
43
  displayName: "FieldSetstyles__ComponentWrapper",
44
44
  componentId: "sc-1hezedi-7"
45
- })(["display:flex;padding:16px 0px;"]);
45
+ })(["display:flex;flex-direction:column;"]);
46
46
  export var Description = styled.div.withConfig({
47
47
  displayName: "FieldSetstyles__Description",
48
48
  componentId: "sc-1hezedi-8"
49
- })(["display:flex;line-height:16px;padding-bottom:", ";font-size:12px;word-wrap:break-word;text-align:center;"], function (props) {
50
- return props.description ? '16px' : '0';
51
- });
49
+ })(["display:flex;line-height:16px;font-size:12px;word-wrap:break-word;text-align:center;"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-field-set",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
4
4
  "description": "FieldSet UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,18 +33,12 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-divider": "^0.7.0"
36
+ "@synerise/ds-divider": "^0.7.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@synerise/ds-core": "*",
40
- "react": ">=16.9.0 < 17.0.0",
40
+ "react": ">=16.9.0 <= 17.0.2",
41
41
  "styled-components": "5.0.1"
42
42
  },
43
- "devDependencies": {
44
- "@synerise/ds-utils": "^0.27.0",
45
- "@testing-library/jest-dom": "5.1.1",
46
- "@testing-library/react": "10.0.1",
47
- "@testing-library/user-event": "^10.3.1"
48
- },
49
- "gitHead": "6bd94c78745df68ee3b853120a863ab24fc233ef"
43
+ "gitHead": "6e5e5202d6c6f1c2caf6bfef799009813b437b3d"
50
44
  }