From 77d4d03ab71e309e44bbdafc8d9e127e98c4b1f8 Mon Sep 17 00:00:00 2001 From: Geovanni Perez <1775792+geoperez@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:59:11 -0600 Subject: [PATCH] Update deps --- package.json | 4 ++-- pnpm-lock.yaml | 37 ++++++++++++++++--------------------- src/Table/index.tsx | 3 +-- 3 files changed, 19 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 1bdfe13..b1e1a46 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@rspack/cli": "^0.3.8", "@types/object-hash": "^3.0.5", - "@types/react": "^18.2.31", + "@types/react": "^18.2.32", "@types/react-dom": "^18.2.14", "@types/recharts": "1.8.26", "@typescript-eslint/eslint-plugin": "^6.9.0", @@ -36,7 +36,7 @@ "object-hash": "^3.0.0", "postcss-loader": "^7.3.3", "prettier": "^3.0.3", - "tailwindcss": "^3.3.3", + "tailwindcss": "^3.3.5", "typescript": "^5.2.2" }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 030b58d..1f09b9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ dependencies: version: 0.0.0-insiders.1469b85(react-dom@18.2.0)(react@18.2.0) '@tremor/react': specifier: ^3.10.0 - version: 3.10.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.3.3) + version: 3.10.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.3.5) react: specifier: ^18.2.0 version: 18.2.0 @@ -41,8 +41,8 @@ devDependencies: specifier: ^3.0.5 version: 3.0.5 '@types/react': - specifier: ^18.2.31 - version: 18.2.31 + specifier: ^18.2.32 + version: 18.2.32 '@types/react-dom': specifier: ^18.2.14 version: 18.2.14 @@ -86,8 +86,8 @@ devDependencies: specifier: ^3.0.3 version: 3.0.3 tailwindcss: - specifier: ^3.3.3 - version: 3.3.3 + specifier: ^3.3.5 + version: 3.3.5 typescript: specifier: ^5.2.2 version: 5.2.2 @@ -266,13 +266,13 @@ packages: react-dom: 18.2.0(react@18.2.0) dev: false - /@headlessui/tailwindcss@0.1.3(tailwindcss@3.3.3): + /@headlessui/tailwindcss@0.1.3(tailwindcss@3.3.5): resolution: {integrity: sha512-3aMdDyYZx9A15euRehpppSyQnb2gIw2s/Uccn2ELIoLQ9oDy0+9oRygNWNjXCD5Dt+w1pxo7C+XoiYvGcqA4Kg==} engines: {node: '>=10'} peerDependencies: tailwindcss: ^3.0 dependencies: - tailwindcss: 3.3.3 + tailwindcss: 3.3.5 dev: false /@humanwhocodes/config-array@0.11.13: @@ -621,7 +621,7 @@ packages: resolution: {integrity: sha512-ObP2pvXBdbivinr7BWDbGqYt4TK8wNzYsOWio+qBkDx5AJFuvqcdJxcCCYnv4dzVTe5ELA1MT4tkt8NB/tnEdA==} dev: false - /@tremor/react@3.10.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.3.3): + /@tremor/react@3.10.0(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.3.5): resolution: {integrity: sha512-vGI8vz9L9SHFRBenijGyAsFatvhZzOg3Ym6NR7QmcXd51gFmlCJ565fKgHreFYnpbPkpUw5Am3JjHxwjbfjglw==} peerDependencies: react: ^18.0.0 @@ -629,7 +629,7 @@ packages: dependencies: '@floating-ui/react': 0.19.2(react-dom@18.2.0)(react@18.2.0) '@headlessui/react': 1.7.15(react-dom@18.2.0)(react@18.2.0) - '@headlessui/tailwindcss': 0.1.3(tailwindcss@3.3.3) + '@headlessui/tailwindcss': 0.1.3(tailwindcss@3.3.5) date-fns: 2.30.0 react: 18.2.0 react-day-picker: 8.8.0(date-fns@2.30.0)(react@18.2.0) @@ -809,11 +809,11 @@ packages: /@types/react-dom@18.2.14: resolution: {integrity: sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==} dependencies: - '@types/react': 18.2.31 + '@types/react': 18.2.32 dev: true - /@types/react@18.2.31: - resolution: {integrity: sha512-c2UnPv548q+5DFh03y8lEDeMfDwBn9G3dRwfkrxQMo/dOtRHUUO57k6pHvBIfH/VF4Nh+98mZ5aaSe+2echD5g==} + /@types/react@18.2.32: + resolution: {integrity: sha512-F0FVIZQ1x5Gxy/VYJb7XcWvCcHR28Sjwt1dXLspdIatfPq1MVACfnBDwKe6ANLxQ64riIJooXClpUR6oxTiepg==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.3 @@ -824,7 +824,7 @@ packages: resolution: {integrity: sha512-aQj6sPwcklOtLl/tpbs1i33YaIQnmIZjxm5yzvV0BnzgDAp039AfuGDZOT5kochG6MyIdyIMzoSu49aBSJAqow==} dependencies: '@types/d3-shape': 1.3.8 - '@types/react': 18.2.31 + '@types/react': 18.2.32 dev: true /@types/retry@0.12.0: @@ -3967,7 +3967,7 @@ packages: dependencies: lilconfig: 2.1.0 postcss: 8.4.31 - yaml: 2.3.2 + yaml: 2.3.3 /postcss-loader@7.3.3(postcss@8.4.31)(webpack@5.88.1): resolution: {integrity: sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==} @@ -4798,8 +4798,8 @@ packages: tailwind-merge: 1.14.0 dev: false - /tailwindcss@3.3.3: - resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==} + /tailwindcss@3.3.5: + resolution: {integrity: sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==} engines: {node: '>=14.0.0'} hasBin: true dependencies: @@ -5469,14 +5469,9 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true - /yaml@2.3.2: - resolution: {integrity: sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==} - engines: {node: '>= 14'} - /yaml@2.3.3: resolution: {integrity: sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==} engines: {node: '>= 14'} - dev: true /yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} diff --git a/src/Table/index.tsx b/src/Table/index.tsx index 5b24965..168bed2 100644 --- a/src/Table/index.tsx +++ b/src/Table/index.tsx @@ -187,8 +187,7 @@ export const renderTableCell = (data: TableCellTypes, definition: TableColumn | case 'paragraph': return ; default: { - const formatType = translateType(definition?.dataType); - return formatType ? formatter(String(data), formatType, definition?.formatterOptions) : String(data); + return formatter(String(data), translateType(definition?.dataType), definition?.formatterOptions); } } };