@synerise/ds-field-set 0.2.15 → 0.2.17
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -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 +4 -4
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.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.16...@synerise/ds-field-set@0.2.17) (2024-03-20)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-field-set
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [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)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* **field-set:** changed types + classname support ([617b635](https://github.com/Synerise/synerise-design/commit/617b6356dc200e90c862afcb1745d516dc53e6ab))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
## [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
26
|
|
8
27
|
**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.17",
|
4
4
|
"description": "FieldSet UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
],
|
34
34
|
"types": "dist/index.d.ts",
|
35
35
|
"dependencies": {
|
36
|
-
"@synerise/ds-divider": "^0.6.
|
36
|
+
"@synerise/ds-divider": "^0.6.11"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"@synerise/ds-core": "*",
|
@@ -41,10 +41,10 @@
|
|
41
41
|
"styled-components": "5.0.1"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@synerise/ds-utils": "^0.
|
44
|
+
"@synerise/ds-utils": "^0.26.0",
|
45
45
|
"@testing-library/jest-dom": "5.1.1",
|
46
46
|
"@testing-library/react": "10.0.1",
|
47
47
|
"@testing-library/user-event": "^10.3.1"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "2df913352aa96e8aed75894489afb3a4ee303370"
|
50
50
|
}
|