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 65a92d5..fedf699 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "@bleu/ui", + "name": "@bleu.builders/ui", "description": "", - "version": "0.1.129", + "version": "0.1.133", "author": "", "license": "", "keywords": [], @@ -75,13 +75,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/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} +
+
+ + + + +
diff --git a/src/components/DataTable/SWRDataTable/index.tsx b/src/components/DataTable/SWRDataTable/index.tsx index a0bffc8..1d7322a 100644 --- a/src/components/DataTable/SWRDataTable/index.tsx +++ b/src/components/DataTable/SWRDataTable/index.tsx @@ -115,14 +115,19 @@ export const renderDataTableCell = ({ filters, column, row, selectedRows }) => { case "actions": return ; case "image": - if (!row.getValue("image")?.url) return null; - return ( - {row.getValue("name")} - ); + // eslint-disable-next-line no-case-declarations + const image = row.getValue("image") || value; + if (image?.url) { + return ( + {image.alt_text} + ); + } + return
{value}
; + case "link": // eslint-disable-next-line no-case-declarations const url = row.getValue("details_url"); 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 */} ( } defaultValue={field.defaultValue} render={({ field: formField }) => ( - + {field.label} {field.description} 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< ))} - + ); } diff --git a/yarn.lock b/yarn.lock index 1df8839..80bda3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3363,9 +3363,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: "@chromatic-com/storybook": "npm:^1.6.1" "@commitlint/cli": "npm:19.3.0"