@synerise/ds-field-set 0.2.25 → 0.2.27
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 +2 -1
- package/dist/FieldSet.js +2 -2
- package/dist/FieldSet.styles.js +4 -6
- 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.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)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **field-set:** fix display in wrapper component ([fe04b8c](https://github.com/Synerise/synerise-design/commit/fe04b8c2c43c843dbfd6e85d24ae138262f8c661))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [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)
|
18
|
+
|
19
|
+
**Note:** Version bump only for package @synerise/ds-field-set
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
## [0.2.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-field-set@0.2.24...@synerise/ds-field-set@0.2.25) (2024-05-16)
|
7
26
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-field-set
|
package/dist/FieldSet.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import { FieldSetProps } from './FieldSet.types';
|
2
|
-
declare const FieldSet: ({ className, prefix, title, description, component, button, onTitleClick }: FieldSetProps) => JSX.Element;
|
3
|
+
declare const FieldSet: ({ className, prefix, title, description, component, button, onTitleClick }: FieldSetProps) => React.JSX.Element;
|
3
4
|
export default FieldSet;
|
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;
|
package/dist/FieldSet.styles.js
CHANGED
@@ -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' : '
|
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;
|
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;
|
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.
|
3
|
+
"version": "0.2.27",
|
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.
|
36
|
+
"@synerise/ds-divider": "^0.7.0"
|
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.27.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": "ef835e848d4f02cca258130baa6c9f44dfa15dd0"
|
50
50
|
}
|