diff --git a/CHANGELOG.md b/CHANGELOG.md index fd97adb2..65e5563e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v2.0.88 + +- Fixes typing of `-attribute` props to allow `data-` attributes on `RadioButton` and `RadioButtonGroup` + ## v2.0.87 - Bug fixes and improvements of the `RadioButton` component diff --git a/package-lock.json b/package-lock.json index a2572bdf..cf8a3d2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lob/ui-components", - "version": "2.0.87", + "version": "2.0.88", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lob/ui-components", - "version": "2.0.87", + "version": "2.0.88", "dependencies": { "date-fns": "^2.29.3", "date-fns-holiday-us": "^0.3.1", diff --git a/package.json b/package.json index d8aa6188..b28d7387 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lob/ui-components", - "version": "2.0.87", + "version": "2.0.88", "engines": { "node": ">=20.2.0", "npm": ">=10.2.0" diff --git a/src/components/RadioButton/RadioButton.vue b/src/components/RadioButton/RadioButton.vue index ac13d1c5..747bbee7 100644 --- a/src/components/RadioButton/RadioButton.vue +++ b/src/components/RadioButton/RadioButton.vue @@ -49,10 +49,10 @@ withDefaults( helperText?: string; icon?: IconName; id: string; - inputAttributes?: InputHTMLAttributes; + inputAttributes?: InputHTMLAttributes & Record; label?: string; - labelContainerAttributes?: HTMLAttributes; - labelAttributes?: LabelHTMLAttributes; + labelContainerAttributes?: HTMLAttributes & Record; + labelAttributes?: LabelHTMLAttributes & Record; loading?: boolean; name: string; readonly?: boolean; @@ -132,7 +132,7 @@ $disabled-radio: '.uic-radio-button-input:disabled'; } .variant-outlined & { - @apply px-6 py-3; + @apply px-4 p-3; @apply min-w-[16rem]; } diff --git a/src/components/RadioButton/RadioButtonGroup.vue b/src/components/RadioButton/RadioButtonGroup.vue index b684c08a..54f1b197 100644 --- a/src/components/RadioButton/RadioButtonGroup.vue +++ b/src/components/RadioButton/RadioButtonGroup.vue @@ -38,7 +38,7 @@ withDefaults( disabled?: boolean; spaceEvenly?: boolean; label?: string; - labelAttributes?: LabelHTMLAttributes; + labelAttributes?: LabelHTMLAttributes & Record; /** Simply adds an asterisk to the `legend`, does not enforce required on `RadioButton`s. */ required?: boolean; hideLabel?: boolean;