@synerise/ds-field-set 0.2.47 → 0.2.49

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
@@ -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.49](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.48...@synerise/ds-field-set@0.2.49) (2025-01-21)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-field-set
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.48](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.47...@synerise/ds-field-set@0.2.48) (2025-01-15)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **field-set:** make divider optional and fix description font-size ([3eb7620](https://github.com/Synerise/synerise-design/commit/3eb762012f8dd11fbcffe4e4f77b9037130b164c))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.2.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.46...@synerise/ds-field-set@0.2.47) (2024-12-16)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-field-set
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FieldSetProps } from './FieldSet.types';
3
- declare const FieldSet: ({ className, prefix, title, description, component, button, onTitleClick }: FieldSetProps) => React.JSX.Element;
3
+ declare const FieldSet: ({ className, prefix, title, description, component, button, onTitleClick, divider, }: FieldSetProps) => React.JSX.Element;
4
4
  export default FieldSet;
package/dist/FieldSet.js CHANGED
@@ -8,7 +8,9 @@ var FieldSet = function FieldSet(_ref) {
8
8
  description = _ref.description,
9
9
  component = _ref.component,
10
10
  button = _ref.button,
11
- onTitleClick = _ref.onTitleClick;
11
+ onTitleClick = _ref.onTitleClick,
12
+ _ref$divider = _ref.divider,
13
+ divider = _ref$divider === void 0 ? true : _ref$divider;
12
14
  return /*#__PURE__*/React.createElement(S.ContainerWrapper, {
13
15
  className: "ds-field-set " + className
14
16
  }, /*#__PURE__*/React.createElement(S.HeaderWrapper, null, prefix && /*#__PURE__*/React.createElement(S.ButtonWrapper, null, prefix), /*#__PURE__*/React.createElement(S.FieldSetTitle, {
@@ -17,6 +19,6 @@ var FieldSet = function FieldSet(_ref) {
17
19
  onClick: onTitleClick,
18
20
  isClickable: Boolean(onTitleClick),
19
21
  description: Boolean(description)
20
- }, title), /*#__PURE__*/React.createElement(S.Description, null, description))), /*#__PURE__*/React.createElement(Divider, null), component && /*#__PURE__*/React.createElement(S.ComponentWrapper, null, component), button && /*#__PURE__*/React.createElement(S.ActionButton, null, button));
22
+ }, title), /*#__PURE__*/React.createElement(S.Description, null, description))), divider && /*#__PURE__*/React.createElement(Divider, null), component && /*#__PURE__*/React.createElement(S.ComponentWrapper, null, component), button && /*#__PURE__*/React.createElement(S.ActionButton, null, button));
21
23
  };
22
24
  export default FieldSet;
@@ -46,4 +46,4 @@ export var ComponentWrapper = styled.div.withConfig({
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;font-size:12px;word-wrap:break-word;"]);
49
+ })(["display:flex;line-height:16px;font-size:13px;word-wrap:break-word;"]);
@@ -7,4 +7,5 @@ export type FieldSetProps = {
7
7
  button?: ReactNode;
8
8
  onTitleClick?: (ev: ReactMouseEvent<HTMLElement, MouseEvent>) => void;
9
9
  className?: string;
10
+ divider?: boolean;
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-field-set",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
4
4
  "description": "FieldSet UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-divider": "^0.7.19",
37
+ "@synerise/ds-divider": "^0.7.21",
38
38
  "@synerise/ds-utils": "^0.31.2"
39
39
  },
40
40
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "react": ">=16.9.0 <= 17.0.2",
44
44
  "styled-components": "5.0.1"
45
45
  },
46
- "gitHead": "d1f15a1187417faf8e625758d6b3aa4db58c0ecf"
46
+ "gitHead": "56e23cda61b7ddfe7da4669307183b105a500e1a"
47
47
  }