Skip to content

Commit

Permalink
fix: radio attribute typing
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWaldschmidt committed Aug 6, 2024
1 parent 888e443 commit 222fcd3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions src/components/RadioButton/RadioButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ withDefaults(
helperText?: string;
icon?: IconName;
id: string;
inputAttributes?: InputHTMLAttributes;
inputAttributes?: InputHTMLAttributes & Record<string, unknown>;
label?: string;
labelContainerAttributes?: HTMLAttributes;
labelAttributes?: LabelHTMLAttributes;
labelContainerAttributes?: HTMLAttributes & Record<string, unknown>;
labelAttributes?: LabelHTMLAttributes & Record<string, unknown>;
loading?: boolean;
name: string;
readonly?: boolean;
Expand Down Expand Up @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/RadioButton/RadioButtonGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ withDefaults(
disabled?: boolean;
spaceEvenly?: boolean;
label?: string;
labelAttributes?: LabelHTMLAttributes;
labelAttributes?: LabelHTMLAttributes & Record<string, unknown>;
/** Simply adds an asterisk to the `legend`, does not enforce required on `RadioButton`s. */
required?: boolean;
hideLabel?: boolean;
Expand Down

0 comments on commit 222fcd3

Please sign in to comment.