Skip to content

Commit

Permalink
Version Packages (#3165)
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 Apr 4, 2024
1 parent cca20a7 commit 7c6437c
Show file tree
Hide file tree
Showing 21 changed files with 132 additions and 155 deletions.
9 changes: 0 additions & 9 deletions .changeset/brown-oranges-collect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cuddly-shrimps-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-moose-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/early-students-hammer.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/fifty-rules-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/large-clocks-grin.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/late-eggs-raise.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/moody-ears-play.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/odd-cats-act.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/plenty-schools-fix.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/pretty-foxes-draw.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/purple-bugs-drop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-deers-wonder.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.23.0

### Minor Changes

- ada5af31: Updates to `InteractableCard`:

- Added `accent` prop for border positioning, deprecating `accentPlacement`.
- Added `selected` prop for selected styling.
- Added `value` prop for selectable use cases.

- ada5af31: Added `InteractableCardGroup` component to support selectable cards in a group. It allows users to select one or multiple values from a set of interactable cards.

```tsx
<InteractableCardGroup multiSelect>
<InteractableCard value="one">One</InteractableCard>
<InteractableCard value="two">Two</InteractableCard>
<InteractableCard value="three">Three</InteractableCard>
</InteractableCardGroup>
```

- 96c2ca62: Added `SegmentedButtonGroup` to core.
`SegmentedButtonGroup` shows a list of actionable buttons, flush with separators between them.

```tsx
return (
<SegmentedButtonGroup>
<Button variant={variant}>Button</Button>
<Button variant={variant}>Button</Button>
<Button variant={variant}>Button</Button>
</SegmentedButtonGroup>
);
```

### Patch Changes

- 3e4e819c: `Card`, `LinkCard` and `InteractableCard` updated to only apply hover effects on non-touch devices.
- f6202615: Visual updates to Navigation item's active indicator due to `--salt-size-indicator` being updated.
- 8ffdfae1: Fixed Dialog children being unmounted twice unexpectedly when closing
- a726afcf: Improved the accessibility of Switch by applying `role="switch"`.

**Note:** This might affect tests where you are targeting Switch by its role. For example, using React Testing Library-based selectors, tests will have to be updated like the following:

```diff
- getByRole("checkbox")
+ getByRole("switch")
```

## 1.22.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.22.0",
"version": "1.23.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @salt-ds/icons

## 1.10.0

### Minor Changes

- 1bff6291: Added `saltIcons.css` with all icon SVGs as background images.

```js
import "@salt-ds/icons/saltIcons.css";

const Example = () => {
const iconName = "AddDocument";
return <div className={`saltIcon-${iconName}`} />;
};
```

## 1.9.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salt-ds/icons",
"version": "1.9.1",
"version": "1.10.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
53 changes: 53 additions & 0 deletions packages/lab/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# @salt-ds/lab

## 1.0.0-alpha.39

### Minor Changes

- 96c2ca62: Removed `SegmentedButtonGroup` from labs and promoted to core.
- 8ed621bc: Removed the `onClose` prop from `Overlay`, `onOpenChange` is now called for events that open/close the overlay.

```tsx
export const ControlledOverlay = () => {
const [open, setOpen] = useState(false);
const onOpenChange = (newOpen: boolean) => setOpen(newOpen);

return (
<Overlay open={open} onOpenChange={onOpenChange}>
<OverlayTrigger>
<Button>Show Overlay</Button>
</OverlayTrigger>
<OverlayPanel>Overlay Content</OverlayPanel>
</Overlay>
);
};
```

- ebe59171: Added `OverlayPanelCloseButton` and `OverlayPanelContent` components as children of `OverlayPanel`

```tsx
export const OverlayWithCloseButton = ({ onOpenChange }: OverlayProps) => {
const [open, setOpen] = useState(false);
const onChange = (newOpen: boolean) => {
setOpen(newOpen);
};
const handleClose = () => setOpen(false);
return (
<Overlay open={open} onOpenChange={onChange}>
<OverlayTrigger>
<Button>Show Overlay</Button>
</OverlayTrigger>
<OverlayPanel>
<OverlayPanelCloseButton onClick={handleClose} />
<OverlayPanelContent>Overlay Content</OverlayPanelContent>
</OverlayPanel>
</Overlay>
);
};
```

### Patch Changes

- f6202615: Visual updates to Calendar's "today" indicator and Tab's active indicator due to `--salt-size-indicator` being updated.

## 1.0.0-alpha.38

### Patch 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.38",
"version": "1.0.0-alpha.39",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
13 changes: 13 additions & 0 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @salt-ds/theme

## 1.14.0

### Minor Changes

- f6202615: Updated `--salt-size-indicator`.

| Density | Before (px) | After (px) |
| ------- | ----------- | ---------- |
| High | 1 | 2 |
| Medium | 2 | 3 |
| Low | 3 | 4 |
| Touch | 4 | 5 |

## 1.13.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salt-ds/theme",
"version": "1.13.1",
"version": "1.14.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 7c6437c

Please sign in to comment.