@synerise/ds-field-set 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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 prefix = _ref.prefix,
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, {
@@ -1,9 +1,10 @@
1
- import * as React from 'react';
1
+ import { ReactNode, MouseEvent as ReactMouseEvent } from 'react';
2
2
  export type FieldSetProps = {
3
- component?: React.ReactNode;
4
- prefix?: React.ReactNode;
5
- title?: string;
6
- description?: string;
7
- button?: React.ReactNode;
8
- onTitleClick?: (ev: React.MouseEvent<HTMLElement, MouseEvent>) => void;
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.15",
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": "6b8da853a2bb4e993d89e9b0b3041216f0c9c976"
49
+ "gitHead": "9514f42c75b73d93291886a1ea509e406d7bd773"
50
50
  }