From cfb6b2e66a6d029089e387a12ad47505673e1a8f Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 4 Sep 2023 15:50:59 +0800 Subject: [PATCH] Update styles Ensure components have consistent styles. --- categories/web/action/react/package.json | 2 +- .../src/components/ActionButton/index.tsx | 26 +++++-- categories/web/blob/react/package.json | 2 +- .../src/components/FileSelectBox/index.tsx | 8 +-- categories/web/choice/react/package.json | 2 +- .../src/components/RadioButton/index.tsx | 17 ++++- categories/web/color/react/package.json | 2 +- categories/web/formatted/react/package.json | 2 +- categories/web/freeform/react/package.json | 2 +- categories/web/information/react/package.json | 2 +- categories/web/multichoice/react/package.json | 2 +- categories/web/navigation/react/package.json | 2 +- .../react/src/components/LinkButton/index.tsx | 72 +++++++++++-------- categories/web/number/react/package.json | 2 +- categories/web/temporal/react/package.json | 2 +- 15 files changed, 94 insertions(+), 51 deletions(-) diff --git a/categories/web/action/react/package.json b/categories/web/action/react/package.json index f111e65..5dd055b 100644 --- a/categories/web/action/react/package.json +++ b/categories/web/action/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-action-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/action/react/src/components/ActionButton/index.tsx b/categories/web/action/react/src/components/ActionButton/index.tsx index 368d06c..fffe53e 100644 --- a/categories/web/action/react/src/components/ActionButton/index.tsx +++ b/categories/web/action/react/src/components/ActionButton/index.tsx @@ -87,10 +87,11 @@ export const ActionButton = React.forwardRef {icon && ( @@ -171,6 +171,10 @@ export const ActionButton = React.forwardRef {badge} @@ -179,6 +183,10 @@ export const ActionButton = React.forwardRef )} + { + variant !== 'bare' + && ( + + ) + } )); diff --git a/categories/web/blob/react/package.json b/categories/web/blob/react/package.json index dc0fe32..df5760d 100644 --- a/categories/web/blob/react/package.json +++ b/categories/web/blob/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-blob-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/blob/react/src/components/FileSelectBox/index.tsx b/categories/web/blob/react/src/components/FileSelectBox/index.tsx index 4cc6921..bce0f53 100644 --- a/categories/web/blob/react/src/components/FileSelectBox/index.tsx +++ b/categories/web/blob/react/src/components/FileSelectBox/index.tsx @@ -188,7 +188,7 @@ export interface FileSelectBoxProps< /** * Should the component resize vertically? */ - resize?: boolean, + resizable?: boolean, } const isButtonElement = (el: HTMLElement): el is FileSelectBoxActionElement => el.tagName === 'BUTTON'; @@ -234,7 +234,7 @@ export const FileSelectBox = React.forwardRef 0, }, )} @@ -651,7 +651,7 @@ FileSelectBox.defaultProps = { previewComponent: FileSelectBoxDefaultPreviewComponent, reselectLabel: 'Reselect' as const, clearLabel: 'Clear' as const, - resize: false as const, + resizable: false as const, }; FileSelectBoxDefaultPreviewComponent.defaultProps = { diff --git a/categories/web/choice/react/package.json b/categories/web/choice/react/package.json index 157ce1f..33e7f93 100644 --- a/categories/web/choice/react/package.json +++ b/categories/web/choice/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-choice-react", - "version": "0.0.2", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/choice/react/src/components/RadioButton/index.tsx b/categories/web/choice/react/src/components/RadioButton/index.tsx index 3f637ad..c574bbf 100644 --- a/categories/web/choice/react/src/components/RadioButton/index.tsx +++ b/categories/web/choice/react/src/components/RadioButton/index.tsx @@ -96,10 +96,11 @@ export const RadioButton = React.forwardRef )} + { + variant !== 'bare' + && ( + + ) + } ); diff --git a/categories/web/color/react/package.json b/categories/web/color/react/package.json index 9ef70bd..a5f41b9 100644 --- a/categories/web/color/react/package.json +++ b/categories/web/color/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-color-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/formatted/react/package.json b/categories/web/formatted/react/package.json index cada8b2..33f4879 100644 --- a/categories/web/formatted/react/package.json +++ b/categories/web/formatted/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-formatted-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/freeform/react/package.json b/categories/web/freeform/react/package.json index 9e1da92..418f747 100644 --- a/categories/web/freeform/react/package.json +++ b/categories/web/freeform/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-freeform-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/information/react/package.json b/categories/web/information/react/package.json index 8c2bddc..0999be4 100644 --- a/categories/web/information/react/package.json +++ b/categories/web/information/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-information-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/multichoice/react/package.json b/categories/web/multichoice/react/package.json index 0b939ff..32cc14e 100644 --- a/categories/web/multichoice/react/package.json +++ b/categories/web/multichoice/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-multichoice-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/navigation/react/package.json b/categories/web/navigation/react/package.json index d47b0d7..1dda8e2 100644 --- a/categories/web/navigation/react/package.json +++ b/categories/web/navigation/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-navigation-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/navigation/react/src/components/LinkButton/index.tsx b/categories/web/navigation/react/src/components/LinkButton/index.tsx index 9fae134..996028a 100644 --- a/categories/web/navigation/react/src/components/LinkButton/index.tsx +++ b/categories/web/navigation/react/src/components/LinkButton/index.tsx @@ -119,41 +119,41 @@ export const LinkButton = React.forwardRef {icon && ( @@ -206,6 +206,10 @@ export const LinkButton = React.forwardRef {badge} @@ -214,6 +218,10 @@ export const LinkButton = React.forwardRef )} + { + variant !== 'bare' + && ( + + ) + } ); }); diff --git a/categories/web/number/react/package.json b/categories/web/number/react/package.json index 8ba4517..e8eb271 100644 --- a/categories/web/number/react/package.json +++ b/categories/web/number/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-number-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src" diff --git a/categories/web/temporal/react/package.json b/categories/web/temporal/react/package.json index 1e31573..00ed7be 100644 --- a/categories/web/temporal/react/package.json +++ b/categories/web/temporal/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-temporal-react", - "version": "0.1.0", + "version": "0.2.0", "files": [ "dist", "src"