opus-toolkit-components 1.2.9 → 1.3.1
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.
|
@@ -4118,7 +4118,7 @@ const RadioButton = _ref => {
|
|
|
4118
4118
|
label: 'Single'
|
|
4119
4119
|
}, {
|
|
4120
4120
|
value: 'married',
|
|
4121
|
-
label: 'Married'
|
|
4121
|
+
label: 'Married / Living with Partner'
|
|
4122
4122
|
}, {
|
|
4123
4123
|
value: 'divorced',
|
|
4124
4124
|
label: 'Divorced'
|
|
@@ -4160,13 +4160,13 @@ const RadioButton = _ref => {
|
|
|
4160
4160
|
variant: "small",
|
|
4161
4161
|
className: "text-[--color-util-red] ml-1"
|
|
4162
4162
|
}, "*")), /*#__PURE__*/external_react_default().createElement("div", {
|
|
4163
|
-
className: "flex space-x-4
|
|
4163
|
+
className: "flex space-x-4"
|
|
4164
4164
|
}, options.map(option => {
|
|
4165
4165
|
const id = "".concat(name, "-").concat(option.value);
|
|
4166
4166
|
return /*#__PURE__*/external_react_default().createElement("label", {
|
|
4167
4167
|
key: option.value,
|
|
4168
4168
|
htmlFor: id,
|
|
4169
|
-
className: "py-2 px-4 border rounded-lg transition duration-200 flex items-center
|
|
4169
|
+
className: "py-2 px-4 mb-1 text-center whitespace-break-spaces border hover:border-[--color-primary-btn] rounded-lg transition duration-200 flex items-center ".concat(selectedValue === option.value ? 'bg-[--color-primary-btn] text-[--color-white] border-[--color-stroke]' : "bg-[--color-input-bg] text-[--color-text-strong] ".concat(!isValid && selectedValue === '' ? 'border-[--color-util-red]' : 'border-[--color-stroke]'), " ").concat(disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer')
|
|
4170
4170
|
}, /*#__PURE__*/external_react_default().createElement("input", {
|
|
4171
4171
|
id: id,
|
|
4172
4172
|
type: "radio",
|
|
@@ -4190,7 +4190,7 @@ const RadioButton = _ref => {
|
|
|
4190
4190
|
as: "span",
|
|
4191
4191
|
variant: "small",
|
|
4192
4192
|
id: "".concat(name, "-error"),
|
|
4193
|
-
className: "text-[--color-util-red]
|
|
4193
|
+
className: "text-[--color-util-red]"
|
|
4194
4194
|
}, errorMessage));
|
|
4195
4195
|
};
|
|
4196
4196
|
RadioButton.displayName = 'RadioButton';
|