@thecb/components 8.4.11-beta.16 → 8.4.11-beta.17
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/dist/index.cjs.js +9 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -23
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +3 -4
- package/src/components/atoms/dropdown/Dropdown.js +0 -1
- package/src/components/atoms/form-layouts/FormInput.js +5 -15
package/dist/index.cjs.js
CHANGED
|
@@ -22076,7 +22076,7 @@ var HiddenCheckbox = styled__default.input.attrs({
|
|
|
22076
22076
|
displayName: "Checkbox__HiddenCheckbox",
|
|
22077
22077
|
componentId: "sc-36kqbv-3"
|
|
22078
22078
|
})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
22079
|
-
var StyledCheckbox = styled__default.
|
|
22079
|
+
var StyledCheckbox = styled__default.div.withConfig({
|
|
22080
22080
|
displayName: "Checkbox__StyledCheckbox",
|
|
22081
22081
|
componentId: "sc-36kqbv-4"
|
|
22082
22082
|
})(["display:inline-block;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
|
|
@@ -22149,9 +22149,10 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22149
22149
|
"aria-label": name,
|
|
22150
22150
|
checked: checked,
|
|
22151
22151
|
onChange: onChange,
|
|
22152
|
-
tabIndex: "-1"
|
|
22152
|
+
tabIndex: "-1",
|
|
22153
|
+
"aria-invalid": error,
|
|
22154
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22153
22155
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22154
|
-
type: "checkbox",
|
|
22155
22156
|
error: error,
|
|
22156
22157
|
disabled: disabled,
|
|
22157
22158
|
checked: checked,
|
|
@@ -22161,9 +22162,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22161
22162
|
errorStyles: themeValues.errorStyles,
|
|
22162
22163
|
disabledStyles: themeValues.disabledStyles,
|
|
22163
22164
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
22164
|
-
focusedStyles: themeValues.focusedStyles
|
|
22165
|
-
"aria-invalid": error,
|
|
22166
|
-
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22165
|
+
focusedStyles: themeValues.focusedStyles
|
|
22167
22166
|
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
22168
22167
|
viewBox: "0 0 24 24",
|
|
22169
22168
|
disabled: disabled,
|
|
@@ -24021,8 +24020,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24021
24020
|
value: inputValue,
|
|
24022
24021
|
width: "100%",
|
|
24023
24022
|
dataQa: placeholder,
|
|
24024
|
-
required: options.required
|
|
24025
|
-
"aria-required": options.required
|
|
24023
|
+
required: options.required
|
|
24026
24024
|
}), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
24027
24025
|
open: isOpen,
|
|
24028
24026
|
onClick: _onClick
|
|
@@ -25855,7 +25853,7 @@ var fallbackValues$k = {
|
|
|
25855
25853
|
};
|
|
25856
25854
|
|
|
25857
25855
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25858
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "
|
|
25856
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
25859
25857
|
var InputField = styled__default.input.withConfig({
|
|
25860
25858
|
displayName: "FormInput__InputField",
|
|
25861
25859
|
componentId: "sc-l094r1-0"
|
|
@@ -25926,8 +25924,6 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25926
25924
|
isNum = _ref15$isNum === void 0 ? false : _ref15$isNum,
|
|
25927
25925
|
_ref15$isEmail = _ref15.isEmail,
|
|
25928
25926
|
isEmail = _ref15$isEmail === void 0 ? false : _ref15$isEmail,
|
|
25929
|
-
_ref15$isPhone = _ref15.isPhone,
|
|
25930
|
-
isPhone = _ref15$isPhone === void 0 ? false : _ref15$isPhone,
|
|
25931
25927
|
_ref15$helperModal = _ref15.helperModal,
|
|
25932
25928
|
helperModal = _ref15$helperModal === void 0 ? false : _ref15$helperModal,
|
|
25933
25929
|
field = _ref15.field,
|
|
@@ -26012,7 +26008,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26012
26008
|
padding: "0"
|
|
26013
26009
|
}, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
|
|
26014
26010
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26015
|
-
"aria-describedby":
|
|
26011
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
26016
26012
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
26017
26013
|
onChange: function onChange(value) {
|
|
26018
26014
|
return setValue(value);
|
|
@@ -26020,17 +26016,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26020
26016
|
type: type,
|
|
26021
26017
|
value: field.rawValue,
|
|
26022
26018
|
pattern: isNum ? "[0-9]*" : "",
|
|
26023
|
-
inputMode:
|
|
26024
|
-
if (isNum) {
|
|
26025
|
-
return "numeric";
|
|
26026
|
-
} else if (isEmail) {
|
|
26027
|
-
return "email";
|
|
26028
|
-
} else if (isPhone) {
|
|
26029
|
-
return "tel";
|
|
26030
|
-
} else {
|
|
26031
|
-
return "text";
|
|
26032
|
-
}
|
|
26033
|
-
},
|
|
26019
|
+
inputMode: isNum ? "numeric" : isEmail ? "email" : "text",
|
|
26034
26020
|
field: field,
|
|
26035
26021
|
formatter: formatter,
|
|
26036
26022
|
showErrors: showErrors,
|