Skip to content

Commit

Permalink
Version Packages (#3002)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Feb 28, 2024
1 parent fb4a0ce commit 074c60d
Show file tree
Hide file tree
Showing 17 changed files with 184 additions and 202 deletions.
38 changes: 0 additions & 38 deletions .changeset/beige-spiders-cry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clean-ravens-rest.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-boats-fly.md

This file was deleted.

48 changes: 0 additions & 48 deletions .changeset/cuddly-hats-bake.md

This file was deleted.

38 changes: 0 additions & 38 deletions .changeset/giant-seas-complain.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/ninety-pumpkins-hug.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-pigs-heal.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/slimy-dryers-occur.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/strange-horses-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-dogs-sin.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/tasty-poets-matter.md

This file was deleted.

47 changes: 47 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# @salt-ds/core

## 1.18.0

### Minor Changes

- fb4a0ce7: Updates default padding for Card to `--salt-spacing-200`.

Added `accent` and `hoverable` props to Card.

`accent` prop enables positioning of an optional accent.
`hoverable` prop enables hover styling.

```tsx
<Card accent="top" hoverable>
{children}
</Card>
```

### Patch Changes

- 55749302: Fixed multiline input not collapsing when the input value resets.
- 511a921e: Fix false positive error when a Salt Provider tries to stop multiple providers being root providers in different windows
- 92d5ebac: Removed auto scrolIntoView from Toast which caused issues for some users.

If this is a feature you need, pass a ref to Toast like below

```
const toastRef = useRef<HTMLDivElement>();
useLayoutEffect(() => {
toastRef.current?.scrollIntoView();
}, []);
return (
<Toast ref={toastRef}>
// ...
)
```

- b769f3e9: Added CSS API variable `--saltFormField-label-width`, replacing deprecated `--formField-label-width`

Usage should be changed:

```diff
- style={{ "--formField-label-width": "100px" } as CSSProperties}
+ style={{ "--saltFormField-label-width": "100px" } as CSSProperties}
```

## 1.17.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salt-ds/core",
"version": "1.17.0",
"version": "1.18.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
95 changes: 95 additions & 0 deletions packages/lab/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,100 @@
# @salt-ds/lab

## 1.0.0-alpha.32

### Minor Changes

- 2771c6de: - Convert `Dialog Title` to accept props instead of a composable api

- Optional Props `title` and `subtitle` added to `Dialog Title`
- `Dialog Title` no longer accepts children
- Optional `id` prop added to `Dialog` to announce the `title` and `subtitle` when using a screen reader

```tsx
export const Default = (): ReactElement => {
const [open, setOpen] = useState(false);
const id = useId();

const handleRequestOpen = () => {
setOpen(true);
};

const onOpenChange = (value: boolean) => {
setOpen(value);
};

const handleClose = () => {
setOpen(false);
};

return (
<>
<Button onClick={handleRequestOpen}>
Open default dialog
</Button>
<Dialog open={open} onOpenChange={onOpenChange} id={id}>
<DialogTitle title="Terms and conditions" />
<DialogContent>
Dialog Content
</StackLayout>
</DialogContent>
<DialogActions>
<Button onClick={handleClose}>Cancel</Button>
<Button variant="cta" onClick={handleClose}>
Accept
</Button>
</DialogActions>
</Dialog>
</>
);
};
```

- fc915775: - Refactored `Drawer` to use floating-ui and Salt's `Scrim`.

- Fixced open prop to be false by default
- Fixed `Floating Components` implementation of focus manager props from Floating UI
- Added optional `DrawerCloseButton`.
- Added optional props `disableScrim` and `diableDismiss`

```tsx
export const DrawerTemplate = (): ReactElement => {
const [open, setOpen] = useState(false);

const handleRequestOpen = () => {
setOpen(true);
};

const onOpenChange = (newOpen: boolean) => {
setOpen(newOpen);
};

const handleClose = () => {
setOpen(false);
};

return (
<>
<Button onClick={handleRequestOpen}>Open Drawer</Button>
<Drawer open={open} onOpenChange={onOpenChange} style={{ width: 300 }}>
<DrawerCloseButton onClick={handleClose} />
<H2>Title</H2>
<Text>Content of drawer</Text>
</Drawer>
</>
);
};
```

- 4ab245a7: - Add `disableScrim` as an optional prop preventing the Scrim from being rendered. Use case is for Desktop Environments

### Patch Changes

- 2e36ad0b: `TabstripNext`, `TabNext` and `AppHeader` have bene updated to use separable tokens.
- d9eaf511: Fixed DropdownNext and ComboBoxNext not working in desktop environemnts.
Fixed DropdownNext not showing a placeholder when it's value was an empty string.
Fixed DropdownNext and ComboBoxNext's lists not showing over Dialogs.

## 1.0.0-alpha.31

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/lab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salt-ds/lab",
"version": "1.0.0-alpha.31",
"version": "1.0.0-alpha.32",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 074c60d

Please sign in to comment.