opus-toolkit-components 1.2.8 → 1.3.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.
|
@@ -3819,7 +3819,7 @@ const variantMap = {
|
|
|
3819
3819
|
body: 'text-base text-[--color-text-strong]',
|
|
3820
3820
|
small: 'text-sm text-[--color-text-strong]',
|
|
3821
3821
|
caption: 'text-xs text-[--color-text-strong]',
|
|
3822
|
-
label: 'text-
|
|
3822
|
+
label: 'text-md text-[--color-text-weak]'
|
|
3823
3823
|
};
|
|
3824
3824
|
const elementMap = {
|
|
3825
3825
|
h1: 'h1',
|
|
@@ -4166,7 +4166,7 @@ const RadioButton = _ref => {
|
|
|
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-2 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';
|