@thecb/components 10.11.2-beta.0 → 10.11.2-beta.2
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 +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-select/FormSelect.js +5 -3
- package/src/components/atoms/form-select/index.d.ts +3 -0
- package/src/components/molecules/radio-group/RadioGroup.stories.js +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -25550,7 +25550,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
25550
25550
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
25551
25551
|
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
25552
25552
|
_ref$isRequired = _ref.isRequired,
|
|
25553
|
-
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired
|
|
25553
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
|
|
25554
|
+
_ref$labelTextVariant = _ref.labelTextVariant,
|
|
25555
|
+
labelTextVariant = _ref$labelTextVariant === void 0 ? "pS" : _ref$labelTextVariant,
|
|
25556
|
+
_ref$errorLabelTextVa = _ref.errorLabelTextVariant,
|
|
25557
|
+
errorLabelTextVariant = _ref$errorLabelTextVa === void 0 ? "pXS" : _ref$errorLabelTextVa;
|
|
25554
25558
|
var _useState = React.useState(false),
|
|
25555
25559
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25556
25560
|
open = _useState2[0],
|
|
@@ -25580,7 +25584,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
25580
25584
|
align: "center"
|
|
25581
25585
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25582
25586
|
as: "label",
|
|
25583
|
-
variant:
|
|
25587
|
+
variant: labelTextVariant,
|
|
25584
25588
|
color: themeValues.labelColor,
|
|
25585
25589
|
weight: themeValues.fontWeight,
|
|
25586
25590
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
@@ -25615,7 +25619,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
25615
25619
|
justify: "space-between"
|
|
25616
25620
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25617
25621
|
color: ERROR_COLOR,
|
|
25618
|
-
variant:
|
|
25622
|
+
variant: errorLabelTextVariant,
|
|
25619
25623
|
weight: themeValues.fontWeight,
|
|
25620
25624
|
extraStyles: "\n word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ",
|
|
25621
25625
|
id: createIdFromString(labelTextWhenNoError, "error message"),
|