Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 9, 2024
1 parent 09d2c59 commit 2a340a4
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 42 deletions.
15 changes: 0 additions & 15 deletions .changeset/cool-tomatoes-attend.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/early-seahorses-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-games-attack.md

This file was deleted.

26 changes: 26 additions & 0 deletions packages/braid-design-system/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# braid-design-system

## 32.16.1

### Patch Changes

- **Tab:** Remove cropping of the icon slot ([#1447](https://github.com/seek-oss/braid-design-system/pull/1447))

Previously the `icon` slot on a `Tab` was cropped on the left to improve alignment with the active tab indicator.
For most icons in a `Tab`, this was subtle polish, but for others it had the undesirable side effect of clipping the side of the icon.

Removing the cropping until we have a better solution for trimming whitespace around icons.

- **Badge**: Allow `Badge` to take arrays of values ([#1443](https://github.com/seek-oss/braid-design-system/pull/1443))

Previously, `Badge` only accepted a `string` as children, to prevent the use of other components inside a `Badge`.

However, when a variable is included with text inside the `Badge`, the children property is interpreted as an array. This prevents a very reasonable use case from being allowed:

```tsx
<Badge>{jobs.length} Jobs</Badge>
// Error: Type '{ children: string[]; }' is not assignable to type 'BadgeProps'.
```

This change allows `Badge` to accept a string, number, or array thereof.

- Fix circular dependencies ([#1444](https://github.com/seek-oss/braid-design-system/pull/1444))

## 32.16.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/braid-design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "braid-design-system",
"version": "32.16.0",
"version": "32.16.1",
"description": "Themeable design system for the SEEK Group",
"homepage": "https://seek-oss.github.io/braid-design-system/",
"bugs": {
Expand Down
17 changes: 17 additions & 0 deletions site/src/componentUpdates.json
Original file line number Diff line number Diff line change
Expand Up @@ -3716,5 +3716,22 @@
"summary": "**IconSort:** Add new icon\n\n**EXAMPLE USAGE:**\n```jsx\n<IconSort />\n```"
}
]
},
{
"version": "32.16.1",
"updates": [
{
"updated": [
"Tab"
],
"summary": "**Tab:** Remove cropping of the icon slot\n\nPreviously the `icon` slot on a `Tab` was cropped on the left to improve alignment with the active tab indicator.\nFor most icons in a `Tab`, this was subtle polish, but for others it had the undesirable side effect of clipping the side of the icon.\n\nRemoving the cropping until we have a better solution for trimming whitespace around icons."
},
{
"updated": [
"Badge"
],
"summary": "**Badge**: Allow `Badge` to take arrays of values\n\nPreviously, `Badge` only accepted a `string` as children, to prevent the use of other components inside a `Badge`.\n\nHowever, when a variable is included with text inside the `Badge`, the children property is interpreted as an array. This prevents a very reasonable use case from being allowed:\n\n```tsx\n<Badge>{jobs.length} Jobs</Badge>\n// Error: Type '{ children: string[]; }' is not assignable to type 'BadgeProps'.\n```\n\nThis change allows `Badge` to accept a string, number, or array thereof."
}
]
}
]

0 comments on commit 2a340a4

Please sign in to comment.