@synerise/ds-field-set 0.2.15 → 0.2.16
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 +11 -0
- package/dist/FieldSet.d.ts +1 -1
- package/dist/FieldSet.js +3 -2
- package/dist/FieldSet.types.d.ts +8 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
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.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.15...@synerise/ds-field-set@0.2.16) (2024-03-13)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **field-set:** changed types + classname support ([617b635](https://github.com/Synerise/synerise-design/commit/617b6356dc200e90c862afcb1745d516dc53e6ab))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
## [0.2.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.14...@synerise/ds-field-set@0.2.15) (2024-03-05)
|
7
18
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-field-set
|
package/dist/FieldSet.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import { FieldSetProps } from './FieldSet.types';
|
2
|
-
declare const FieldSet: ({ prefix, title, description, component, button, onTitleClick }: FieldSetProps) => JSX.Element;
|
2
|
+
declare const FieldSet: ({ className, prefix, title, description, component, button, onTitleClick }: FieldSetProps) => JSX.Element;
|
3
3
|
export default FieldSet;
|
package/dist/FieldSet.js
CHANGED
@@ -3,14 +3,15 @@ import Divider from '@synerise/ds-divider';
|
|
3
3
|
import * as S from './FieldSet.styles';
|
4
4
|
|
5
5
|
var FieldSet = function FieldSet(_ref) {
|
6
|
-
var
|
6
|
+
var className = _ref.className,
|
7
|
+
prefix = _ref.prefix,
|
7
8
|
title = _ref.title,
|
8
9
|
description = _ref.description,
|
9
10
|
component = _ref.component,
|
10
11
|
button = _ref.button,
|
11
12
|
onTitleClick = _ref.onTitleClick;
|
12
13
|
return /*#__PURE__*/React.createElement(S.ContainerWrapper, {
|
13
|
-
className: "ds-field-set"
|
14
|
+
className: "ds-field-set " + className
|
14
15
|
}, /*#__PURE__*/React.createElement(S.HeaderWrapper, null, /*#__PURE__*/React.createElement(S.ButtonWrapper, null, prefix), /*#__PURE__*/React.createElement(S.FieldSetTitle, {
|
15
16
|
description: Boolean(description)
|
16
17
|
}, /*#__PURE__*/React.createElement(S.Title, {
|
package/dist/FieldSet.types.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { ReactNode, MouseEvent as ReactMouseEvent } from 'react';
|
2
2
|
export type FieldSetProps = {
|
3
|
-
component?:
|
4
|
-
prefix?:
|
5
|
-
title?:
|
6
|
-
description?:
|
7
|
-
button?:
|
8
|
-
onTitleClick?: (ev:
|
3
|
+
component?: ReactNode;
|
4
|
+
prefix?: ReactNode;
|
5
|
+
title?: ReactNode;
|
6
|
+
description?: ReactNode;
|
7
|
+
button?: ReactNode;
|
8
|
+
onTitleClick?: (ev: ReactMouseEvent<HTMLElement, MouseEvent>) => void;
|
9
|
+
className?: string;
|
9
10
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@synerise/ds-field-set",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.16",
|
4
4
|
"description": "FieldSet UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"@testing-library/react": "10.0.1",
|
47
47
|
"@testing-library/user-event": "^10.3.1"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "9514f42c75b73d93291886a1ea509e406d7bd773"
|
50
50
|
}
|