diff --git a/localNodeModulesSync.mjs b/localNodeModulesSync.mjs index 7c5630d1..e4b8edae 100644 --- a/localNodeModulesSync.mjs +++ b/localNodeModulesSync.mjs @@ -20,6 +20,21 @@ for (const target of targets) { for (const folder of folders) { const root = path.join(systemDir, folder); const packageName = fs.readJsonSync(path.join(root, 'package.json')).name; + if (packageName === '@tablecheck/tablekit-css') { + const dest = path.join(target, 'node_modules', packageName); + if (!fs.existsSync(dest)) { + continue; + } + console.log(`Copying ${packageName} to ${target}`); + fs.readdirSync(dest, { withFileTypes: true }).forEach((dirent) => { + if (dirent.isDirectory()) return; + if (!dirent.name.endsWith('.css')) return; + fs.copyFileSync( + path.join(root, dirent.name), + path.join(dest, dirent.name) + ); + }); + } const dest = path.join(target, 'node_modules', packageName, 'lib'); if (!fs.existsSync(dest)) { continue; diff --git a/system/react-css/src/structuredComponents/TextArea.tsx b/system/react-css/src/structuredComponents/TextArea.tsx index e59a7298..766df7c8 100644 --- a/system/react-css/src/structuredComponents/TextArea.tsx +++ b/system/react-css/src/structuredComponents/TextArea.tsx @@ -6,7 +6,10 @@ import { TextAreaWithPrefix } from '../components/TextAreaWithPrefix'; import { TextAreaWithSuffix } from '../components/TextAreaWithSuffix'; import { getConfigDefault } from '../config'; -const hasFieldSizingSupport = window.CSS?.supports?.('field-sizing', 'content'); +const hasFieldSizingSupport = + typeof window === 'undefined' + ? true + : window.CSS?.supports?.('field-sizing', 'content'); export type Props = textAreaCore.DefaultedProps & Omit, 'rows' | 'prefix'> & { @@ -68,7 +71,6 @@ export const TextArea = React.forwardRef( }, [iconBefore, iconAfter, suffix, prefix]); return ( , 'rows' | 'prefix'> & { @@ -68,7 +71,6 @@ export const TextArea = React.forwardRef( }, [iconBefore, iconAfter, suffix, prefix]); return (