@canonical/react-components 3.3.0 → 3.4.0
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.
|
@@ -22,6 +22,10 @@ export type Props = PropsWithSpread<{
|
|
|
22
22
|
* Help text to show below the field.
|
|
23
23
|
*/
|
|
24
24
|
help?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Optional class(es) to pass to the help text element.
|
|
27
|
+
*/
|
|
28
|
+
helpClassName?: string;
|
|
25
29
|
/**
|
|
26
30
|
* The id of the input.
|
|
27
31
|
*/
|
|
@@ -68,5 +72,5 @@ export type Props = PropsWithSpread<{
|
|
|
68
72
|
*
|
|
69
73
|
* Use the Select component to create a drop-down list.
|
|
70
74
|
*/
|
|
71
|
-
declare const Select: ({ caution, className, error, help, id, label, labelClassName, onChange, options, required, stacked, success, takeFocus, wrapperClassName, ...selectProps }: Props) => React.JSX.Element;
|
|
75
|
+
declare const Select: ({ caution, className, error, help, helpClassName, id, label, labelClassName, onChange, options, required, stacked, success, takeFocus, wrapperClassName, ...selectProps }: Props) => React.JSX.Element;
|
|
72
76
|
export default Select;
|
|
@@ -38,6 +38,7 @@ const Select = _ref2 => {
|
|
|
38
38
|
className,
|
|
39
39
|
error,
|
|
40
40
|
help,
|
|
41
|
+
helpClassName,
|
|
41
42
|
id,
|
|
42
43
|
label,
|
|
43
44
|
labelClassName,
|
|
@@ -67,6 +68,7 @@ const Select = _ref2 => {
|
|
|
67
68
|
error: error,
|
|
68
69
|
forId: selectId,
|
|
69
70
|
help: help,
|
|
71
|
+
helpClassName: helpClassName,
|
|
70
72
|
helpId: helpId,
|
|
71
73
|
isSelect: true,
|
|
72
74
|
label: label,
|
|
@@ -22,6 +22,10 @@ export type Props = PropsWithSpread<{
|
|
|
22
22
|
* Help text to show below the field.
|
|
23
23
|
*/
|
|
24
24
|
help?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Optional class(es) to pass to the help text element.
|
|
27
|
+
*/
|
|
28
|
+
helpClassName?: string;
|
|
25
29
|
/**
|
|
26
30
|
* The id of the input.
|
|
27
31
|
*/
|
|
@@ -68,5 +72,5 @@ export type Props = PropsWithSpread<{
|
|
|
68
72
|
*
|
|
69
73
|
* Use the Select component to create a drop-down list.
|
|
70
74
|
*/
|
|
71
|
-
declare const Select: ({ caution, className, error, help, id, label, labelClassName, onChange, options, required, stacked, success, takeFocus, wrapperClassName, ...selectProps }: Props) => React.JSX.Element;
|
|
75
|
+
declare const Select: ({ caution, className, error, help, helpClassName, id, label, labelClassName, onChange, options, required, stacked, success, takeFocus, wrapperClassName, ...selectProps }: Props) => React.JSX.Element;
|
|
72
76
|
export default Select;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["label", "value"],
|
|
2
|
-
_excluded2 = ["caution", "className", "error", "help", "id", "label", "labelClassName", "onChange", "options", "required", "stacked", "success", "takeFocus", "wrapperClassName"];
|
|
2
|
+
_excluded2 = ["caution", "className", "error", "help", "helpClassName", "id", "label", "labelClassName", "onChange", "options", "required", "stacked", "success", "takeFocus", "wrapperClassName"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -34,6 +34,7 @@ var Select = _ref2 => {
|
|
|
34
34
|
className,
|
|
35
35
|
error,
|
|
36
36
|
help,
|
|
37
|
+
helpClassName,
|
|
37
38
|
id,
|
|
38
39
|
label,
|
|
39
40
|
labelClassName,
|
|
@@ -63,6 +64,7 @@ var Select = _ref2 => {
|
|
|
63
64
|
error: error,
|
|
64
65
|
forId: selectId,
|
|
65
66
|
help: help,
|
|
67
|
+
helpClassName: helpClassName,
|
|
66
68
|
helpId: helpId,
|
|
67
69
|
isSelect: true,
|
|
68
70
|
label: label,
|