Skip to content

Commit

Permalink
Added changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Apr 12, 2024
1 parent 3687aa7 commit 6abd67a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .changeset/rude-falcons-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@utima/ui-informed": minor
---

- Fixed issues where invalid props were passed to underlaying child components, in most controlled components.
- Added missing exports for most prop type definitions and some additional utility types.
- All control components are now memoized.
- Added new `Devtools` component, see readme for more information.
- Added `description` prop to `Checkbox` component.
- Most custom user props on controlled components are properly parsed down, including event handlers.
- Added shorthand for `SelectItem` using dot notation under `Select` component -> you can now use `Select.Item`.
- Added `readonly` mode for textarea and text input components.
- `(optional)` label is now hidden by default, this can be enabled on form components globally using `showOptional` prop on form, or selectively on each field using `showOptional` prop.
9 changes: 9 additions & 0 deletions .changeset/violet-insects-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@utima/ui": minor
---

- Added some additional imports for missing component props types
- Fixed `Checkbox` component `type` prop.
- Updated dependencies (now uses 1.0.0 version of `cmdk` package)
- Updated `Kbd` component default styles
- Re-exported `Portal` component from radix
2 changes: 2 additions & 0 deletions packages/ui-informed/src/controls/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface CheckboxProps
*/
export const Checkbox = memo(function Checkbox({
description,
onCheckedChange,
...restProps
}: CheckboxProps) {
return (
Expand All @@ -34,6 +35,7 @@ export const Checkbox = memo(function Checkbox({
ref={ref}
value={fieldState.value as any}
onCheckedChange={value => {
onCheckedChange?.(value);
fieldApi.setValue(value);
fieldApi.setTouched(true);
fieldApi.setFocused(true);
Expand Down

0 comments on commit 6abd67a

Please sign in to comment.