From c7b5dcf220b02ba29ac56fcfae0193277fe76ae2 Mon Sep 17 00:00:00 2001 From: luizakp Date: Wed, 7 Aug 2024 15:38:03 -0300 Subject: [PATCH 01/16] chore: datetime be w-full --- src/components/FormBuilder/fields/DatePickerInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FormBuilder/fields/DatePickerInput.tsx b/src/components/FormBuilder/fields/DatePickerInput.tsx index 5eb5edd..da6124b 100644 --- a/src/components/FormBuilder/fields/DatePickerInput.tsx +++ b/src/components/FormBuilder/fields/DatePickerInput.tsx @@ -37,7 +37,7 @@ export const DatePickerInput = withConditional( rules={field.required ? { required: true } : undefined} defaultValue={field.defaultValue} render={({ field: formField }) => ( - + {field.label} @@ -64,7 +64,7 @@ export const DatePickerInput = withConditional( - + {/* @ts-expect-error TS(2739) FIXME: Type '{ mode: string; selected: any; onSelect: any... Remove this comment to see the full error message */} Date: Wed, 7 Aug 2024 15:38:38 -0300 Subject: [PATCH 02/16] chore: add time as input mode --- src/components/FormBuilder/fields/InputField.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/FormBuilder/fields/InputField.tsx b/src/components/FormBuilder/fields/InputField.tsx index afe3572..29b03c3 100644 --- a/src/components/FormBuilder/fields/InputField.tsx +++ b/src/components/FormBuilder/fields/InputField.tsx @@ -12,13 +12,14 @@ import { Input } from "#/components/ui/Input"; import { withConditional } from "../withConditional"; import { BaseField } from "../types"; +import { cn } from "#/lib"; export interface InputFieldProps extends BaseField { length?: { maximum?: number; minimum: number; // undefined or number }; - mode: "text" | "number"; + mode: "text" | "number" | "time"; type: "input"; } @@ -56,7 +57,7 @@ export const InputField = withConditional( } defaultValue={field.defaultValue} render={({ field: formField }) => ( - + {field.label} {field.description} From f60e24d04d0da1fd24abb8bdacb26942fad595ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ribeiro?= Date: Fri, 9 Aug 2024 10:03:56 -0300 Subject: [PATCH 03/16] chore: trigger release make repo public From 434ef9bd5308988b256a574eaafdefcf2e2be01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ribeiro?= Date: Fri, 9 Aug 2024 10:04:30 -0300 Subject: [PATCH 04/16] chore(release): v0.1.129 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 58d914a..dab439d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bleu/ui", "description": "", - "version": "0.1.128", + "version": "0.1.129", "author": "", "license": "", "keywords": [], From c04d9fc80a02c83314d7dd546eda38e5d70e6a3e Mon Sep 17 00:00:00 2001 From: luizakp Date: Mon, 19 Aug 2024 15:18:39 -0300 Subject: [PATCH 05/16] chore: if image doesn't exist, show value --- .../DataTable/SWRDataTable/index.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/DataTable/SWRDataTable/index.tsx b/src/components/DataTable/SWRDataTable/index.tsx index a0bffc8..f22343f 100644 --- a/src/components/DataTable/SWRDataTable/index.tsx +++ b/src/components/DataTable/SWRDataTable/index.tsx @@ -115,14 +115,18 @@ export const renderDataTableCell = ({ filters, column, row, selectedRows }) => { case "actions": return ; case "image": - if (!row.getValue("image")?.url) return null; - return ( - {row.getValue("name")} - ); + const image = row.getValue("image") || value; + if (image?.url){ + return ( + {image.alt_text} + ); + } else { + return
{value}
; + } case "link": // eslint-disable-next-line no-case-declarations const url = row.getValue("details_url"); From 6e5e41bd29def1949e00191e62f95e35a25dae6b Mon Sep 17 00:00:00 2001 From: luizakp Date: Mon, 19 Aug 2024 15:28:40 -0300 Subject: [PATCH 06/16] chore: fix lint --- src/components/DataTable/SWRDataTable/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/DataTable/SWRDataTable/index.tsx b/src/components/DataTable/SWRDataTable/index.tsx index f22343f..1d7322a 100644 --- a/src/components/DataTable/SWRDataTable/index.tsx +++ b/src/components/DataTable/SWRDataTable/index.tsx @@ -115,8 +115,9 @@ export const renderDataTableCell = ({ filters, column, row, selectedRows }) => { case "actions": return ; case "image": + // eslint-disable-next-line no-case-declarations const image = row.getValue("image") || value; - if (image?.url){ + if (image?.url) { return ( { alt={image.alt_text} /> ); - } else { - return
{value}
; } + return
{value}
; + case "link": // eslint-disable-next-line no-case-declarations const url = row.getValue("details_url"); From 7cd4b5a4b3d6a4657d0c6b7eed6eac01908f290a Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 20 Aug 2024 11:39:04 -0300 Subject: [PATCH 07/16] fix: lint --- src/components/FormBuilder/fields/InputField.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/FormBuilder/fields/InputField.tsx b/src/components/FormBuilder/fields/InputField.tsx index 29b03c3..a2dc616 100644 --- a/src/components/FormBuilder/fields/InputField.tsx +++ b/src/components/FormBuilder/fields/InputField.tsx @@ -57,7 +57,9 @@ export const InputField = withConditional( } defaultValue={field.defaultValue} render={({ field: formField }) => ( - + {field.label} {field.description} From d92b1196bda666c3acc5cf2e3e1de43594198c1a Mon Sep 17 00:00:00 2001 From: luizakp Date: Tue, 20 Aug 2024 12:12:59 -0300 Subject: [PATCH 08/16] chore(release): v0.1.130 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dab439d..1942ed3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bleu/ui", "description": "", - "version": "0.1.129", + "version": "0.1.130", "author": "", "license": "", "keywords": [], From a418f1af2783934116185ae79159e4dd69e02df6 Mon Sep 17 00:00:00 2001 From: luizakp Date: Thu, 29 Aug 2024 11:04:51 -0300 Subject: [PATCH 09/16] chore: pagination on mobile screens --- .../DataTable/DataTablePagination.tsx | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/src/components/DataTable/DataTablePagination.tsx b/src/components/DataTable/DataTablePagination.tsx index 6352e44..adda0e6 100644 --- a/src/components/DataTable/DataTablePagination.tsx +++ b/src/components/DataTable/DataTablePagination.tsx @@ -20,7 +20,7 @@ export function DataTablePagination({ const pageCount = table.getPageCount() || 1; return (
-
+

{t("Items per page")}

-
- Page {{ currentPage }} of {pageCount} -
-
- - - - +
+
+ Page {{ currentPage }} of {pageCount} +
+
+ + + + +
From f322cab2a91a00d3eeefe9a55fa1d17e6a18bb89 Mon Sep 17 00:00:00 2001 From: luizakp Date: Mon, 9 Sep 2024 15:07:52 -0300 Subject: [PATCH 10/16] chore: radio button min size --- src/components/ui/RadioGroup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/RadioGroup.tsx b/src/components/ui/RadioGroup.tsx index b7281b4..6c6203a 100644 --- a/src/components/ui/RadioGroup.tsx +++ b/src/components/ui/RadioGroup.tsx @@ -22,7 +22,7 @@ const RadioGroupItem = React.forwardRef< Date: Tue, 10 Sep 2024 14:42:21 -0300 Subject: [PATCH 11/16] chore(release): v0.1.131 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1942ed3..cbc782a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bleu/ui", "description": "", - "version": "0.1.130", + "version": "0.1.131", "author": "", "license": "", "keywords": [], From 89fcc64d5252ea009b85461b9e415c2c81d623c9 Mon Sep 17 00:00:00 2001 From: luizakp Date: Thu, 7 Nov 2024 10:47:09 -0300 Subject: [PATCH 12/16] chore: add className to Toaster --- src/components/ui/Toaster.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ui/Toaster.tsx b/src/components/ui/Toaster.tsx index 5bda2f3..af892b1 100644 --- a/src/components/ui/Toaster.tsx +++ b/src/components/ui/Toaster.tsx @@ -8,10 +8,13 @@ import { ToastViewport, } from "#/components/ui/Toast"; import { useToast } from "#/hooks/useToast"; +import { cn } from "#/lib"; function Toaster({ + className, position = "top-right", }: { + className: string; position?: "top-right" | "top-left" | "bottom-right" | "bottom-left"; }) { const { toasts } = useToast(); @@ -28,7 +31,7 @@ function Toaster({ ))} - + ); } From ecd26d431c4ac6be1e7e07a3eb7b926d78c03351 Mon Sep 17 00:00:00 2001 From: luizakp Date: Thu, 7 Nov 2024 10:49:54 -0300 Subject: [PATCH 13/16] chore(release): v0.1.132 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbc782a..f2cc82c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bleu/ui", "description": "", - "version": "0.1.131", + "version": "0.1.132", "author": "", "license": "", "keywords": [], From 1f6269939a9190e3fd244a1251b5ced89cfe2733 Mon Sep 17 00:00:00 2001 From: luizakp Date: Thu, 7 Nov 2024 10:52:40 -0300 Subject: [PATCH 14/16] chore: prop can be undefined --- src/components/ui/Toaster.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/Toaster.tsx b/src/components/ui/Toaster.tsx index af892b1..bce4133 100644 --- a/src/components/ui/Toaster.tsx +++ b/src/components/ui/Toaster.tsx @@ -14,7 +14,7 @@ function Toaster({ className, position = "top-right", }: { - className: string; + className?: string; position?: "top-right" | "top-left" | "bottom-right" | "bottom-left"; }) { const { toasts } = useToast(); From edd6e4a032fa559132b16388ac2466a343912e81 Mon Sep 17 00:00:00 2001 From: luizakp Date: Thu, 7 Nov 2024 10:53:09 -0300 Subject: [PATCH 15/16] chore(release): v0.1.133 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f2cc82c..1351657 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bleu/ui", "description": "", - "version": "0.1.132", + "version": "0.1.133", "author": "", "license": "", "keywords": [], From 407d0e6ee2c2e4ef75e6e087d081b3980f56ae40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ribeiro?= Date: Sat, 9 Nov 2024 12:37:05 -0300 Subject: [PATCH 16/16] chore: rename pkg and publish to npmjs instead of github registry --- .github/workflows/publish.yml | 10 +++------- package.json | 8 ++------ yarn.lock | 4 ++-- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5a72ad4..577186a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,3 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - name: Publish on: @@ -27,8 +24,7 @@ jobs: with: node-version: lts/* cache: "yarn" - registry-url: "https://npm.pkg.github.com" - scope: "@bleu" + scope: "@bleu/builders" - name: Install dependencies run: yarn install --immutable @@ -37,7 +33,7 @@ jobs: if: github.ref == 'refs/tags/v*' # Only run on version tags run: | yarn build - npm login --registry=https://npm.pkg.github.com/ --scope=bleu - npm publish + npm login --scope=bleu.builders + npm publish --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 1351657..27f1564 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@bleu/ui", + "name": "@bleu.builders/ui", "description": "", "version": "0.1.133", "author": "", @@ -73,13 +73,9 @@ "release": true }, "npm": { - "publish": true, - "publishArgs": "--registry=https://npm.pkg.github.com" + "publish": true } }, - "publishConfig": { - "registry": "https://npm.pkg.github.com" - }, "engines": { "node": ">=18.0.0" }, diff --git a/yarn.lock b/yarn.lock index 20d1820..1e5d8fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2183,9 +2183,9 @@ __metadata: languageName: node linkType: hard -"@bleu/ui@workspace:.": +"@bleu.builders/ui@workspace:.": version: 0.0.0-use.local - resolution: "@bleu/ui@workspace:." + resolution: "@bleu.builders/ui@workspace:." dependencies: "@commitlint/cli": "npm:19.3.0" "@commitlint/config-conventional": "npm:19.2.2"