@zohodesk/components 1.6.17 → 1.6.18
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/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
|
|
4
4
|
|
|
5
|
+
# 1.6.18
|
|
6
|
+
|
|
7
|
+
- buttonComponentVersion temproary support given in LibraryContext , will remove once app is migrated
|
|
8
|
+
|
|
5
9
|
# 1.6.17
|
|
6
10
|
|
|
7
11
|
- Updated `@zohodesk-private/color-variable-preprocessor@1.3.3` package version - CTA category overridden variables are now generated only for the necessary CTA variables using the `buildOverriddenCTACategories` function.
|
|
@@ -12,7 +12,8 @@ const LibraryContextProvider = ({
|
|
|
12
12
|
shouldStrikeThroughDisabledButton,
|
|
13
13
|
labelRequiredType,
|
|
14
14
|
shouldHighlightRequiredLabel,
|
|
15
|
-
children
|
|
15
|
+
children,
|
|
16
|
+
buttonComponentVersion
|
|
16
17
|
}) => {
|
|
17
18
|
const [value, setValue] = useState({
|
|
18
19
|
isReducedMotion,
|
|
@@ -21,6 +22,7 @@ const LibraryContextProvider = ({
|
|
|
21
22
|
hasTagColorInheritedToText,
|
|
22
23
|
shouldIndicateSwitchState,
|
|
23
24
|
shouldStrikeThroughDisabledButton,
|
|
25
|
+
buttonComponentVersion,
|
|
24
26
|
labelRequiredType,
|
|
25
27
|
shouldHighlightRequiredLabel
|
|
26
28
|
});
|
|
@@ -48,6 +50,7 @@ LibraryContextProvider.propTypes = {
|
|
|
48
50
|
direction: PropTypes.string,
|
|
49
51
|
shouldIndicateSwitchState: PropTypes.bool,
|
|
50
52
|
shouldStrikeThroughDisabledButton: PropTypes.bool,
|
|
53
|
+
buttonComponentVersion: PropTypes.oneOf(['default', 'v1']),
|
|
51
54
|
labelRequiredType: PropTypes.oneOf(['asterisk', 'text']),
|
|
52
55
|
shouldHighlightRequiredLabel: PropTypes.bool
|
|
53
56
|
};
|
|
@@ -58,6 +61,7 @@ LibraryContextProvider.defaultProps = {
|
|
|
58
61
|
hasTagColorInheritedToText: true,
|
|
59
62
|
shouldIndicateSwitchState: false,
|
|
60
63
|
shouldStrikeThroughDisabledButton: false,
|
|
64
|
+
buttonComponentVersion: 'v1',
|
|
61
65
|
labelRequiredType: 'asterisk',
|
|
62
66
|
shouldHighlightRequiredLabel: true
|
|
63
67
|
};
|
|
@@ -48,7 +48,8 @@ var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
|
48
48
|
shouldStrikeThroughDisabledButton = _ref.shouldStrikeThroughDisabledButton,
|
|
49
49
|
labelRequiredType = _ref.labelRequiredType,
|
|
50
50
|
shouldHighlightRequiredLabel = _ref.shouldHighlightRequiredLabel,
|
|
51
|
-
children = _ref.children
|
|
51
|
+
children = _ref.children,
|
|
52
|
+
buttonComponentVersion = _ref.buttonComponentVersion;
|
|
52
53
|
|
|
53
54
|
var _useState = (0, _react.useState)({
|
|
54
55
|
isReducedMotion: isReducedMotion,
|
|
@@ -57,6 +58,7 @@ var LibraryContextProvider = function LibraryContextProvider(_ref) {
|
|
|
57
58
|
hasTagColorInheritedToText: hasTagColorInheritedToText,
|
|
58
59
|
shouldIndicateSwitchState: shouldIndicateSwitchState,
|
|
59
60
|
shouldStrikeThroughDisabledButton: shouldStrikeThroughDisabledButton,
|
|
61
|
+
buttonComponentVersion: buttonComponentVersion,
|
|
60
62
|
labelRequiredType: labelRequiredType,
|
|
61
63
|
shouldHighlightRequiredLabel: shouldHighlightRequiredLabel
|
|
62
64
|
}),
|
|
@@ -85,6 +87,7 @@ LibraryContextProvider.propTypes = {
|
|
|
85
87
|
direction: _propTypes["default"].string,
|
|
86
88
|
shouldIndicateSwitchState: _propTypes["default"].bool,
|
|
87
89
|
shouldStrikeThroughDisabledButton: _propTypes["default"].bool,
|
|
90
|
+
buttonComponentVersion: _propTypes["default"].oneOf(['default', 'v1']),
|
|
88
91
|
labelRequiredType: _propTypes["default"].oneOf(['asterisk', 'text']),
|
|
89
92
|
shouldHighlightRequiredLabel: _propTypes["default"].bool
|
|
90
93
|
};
|
|
@@ -95,6 +98,7 @@ LibraryContextProvider.defaultProps = {
|
|
|
95
98
|
hasTagColorInheritedToText: true,
|
|
96
99
|
shouldIndicateSwitchState: false,
|
|
97
100
|
shouldStrikeThroughDisabledButton: false,
|
|
101
|
+
buttonComponentVersion: 'v1',
|
|
98
102
|
labelRequiredType: 'asterisk',
|
|
99
103
|
shouldHighlightRequiredLabel: true
|
|
100
104
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.18",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
83
83
|
"@zohodesk/dotkit": "1.0.9",
|
|
84
84
|
"@zohodesk/hooks": "2.0.8",
|
|
85
|
-
"@zohodesk/icons": "1.3.
|
|
85
|
+
"@zohodesk/icons": "1.3.5",
|
|
86
86
|
"@zohodesk/layout": "3.2.0",
|
|
87
|
-
"@zohodesk/svg": "1.3.
|
|
87
|
+
"@zohodesk/svg": "1.3.8",
|
|
88
88
|
"@zohodesk/utils": "1.3.16",
|
|
89
89
|
"@zohodesk/variables": "1.3.2",
|
|
90
90
|
"@zohodesk/virtualizer": "1.0.13",
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
"selectn": "1.1.2"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@zohodesk/icons": "1.3.
|
|
106
|
+
"@zohodesk/icons": "1.3.5",
|
|
107
107
|
"@zohodesk/variables": "1.3.2",
|
|
108
|
-
"@zohodesk/svg": "1.3.
|
|
108
|
+
"@zohodesk/svg": "1.3.8",
|
|
109
109
|
"@zohodesk/virtualizer": "1.0.13",
|
|
110
110
|
"velocity-react": "1.4.3",
|
|
111
111
|
"react-sortable-hoc": "^0.8.3",
|
|
@@ -117,4 +117,4 @@
|
|
|
117
117
|
"color": "4.2.3",
|
|
118
118
|
"@dot-system/css-utility": "0.1.1"
|
|
119
119
|
}
|
|
120
|
-
}
|
|
120
|
+
}
|