Skip to content

Commit

Permalink
build(blade): update version (#392)
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
rzpcibot and github-actions[bot] authored Dec 23, 2021
1 parent 617066a commit d071896
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 38 deletions.
31 changes: 0 additions & 31 deletions .changeset/five-days-collect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-apes-rhyme.md

This file was deleted.

32 changes: 32 additions & 0 deletions packages/blade-old/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# @razorpay/blade-old

## 2.0.0

### Major Changes

- 617066a: feat(blade-old): improved icon API

As discussed in [#363](https://github.com/razorpay/blade/issues/363) we had decided to move to a more flexible and open API for the icons,
Instead of using a single Icon component and passing the name="" prop we will be directly using the icon by importing it.

### Changes in \<Icon />

Icon component is now a generic wrapper to create new icons.
To add new icons to blade's icon library you can use the <Icon /> component like so:

```jsx
// User defined custom icons
export const MyCustomIcon = (props) => {
return (
<Icon viewBox="0 0 24 24" {...props}>
<path d="" />
</Icon>
);
};

// usage
<Button icon={MyCustomIcon}>
```

### Migrating existing blade-old components

[Follow these steps for migration](./MIGRATION.md)

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/blade-old/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@razorpay/blade-old",
"author": "kamleshchandnani",
"version": "1.4.0",
"version": "2.0.0",
"license": "MIT",
"bin": {
"migrate-icons": "./scripts/icon-migrate-codemod/cli.js"
Expand Down
6 changes: 6 additions & 0 deletions packages/blade/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @razorpay/blade

## 0.1.5

### Patch Changes

- 04677a3: fix(blade): add lineheight tokens

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/blade/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@razorpay/blade",
"version": "0.1.4",
"version": "0.1.5",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

1 comment on commit d071896

@vercel
Copy link

@vercel vercel bot commented on d071896 Dec 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.