diff --git a/.eslintrc b/.eslintrc index b704143..bc13329 100644 --- a/.eslintrc +++ b/.eslintrc @@ -40,6 +40,11 @@ "react/jsx-filename-extension": ["error", { "extensions": [".js"] }], "react/require-default-props": ["off"], "react/jsx-props-no-spreading": ["off"], - "no-restricted-exports": ["off"] + "no-restricted-exports": ["off"], + "comma-dangle": ["error", "never"], + "quotes": ["error", "double"], + "quote-props": ["error", "always"], + "semi": ["error", "never"] } } + diff --git a/Init.js b/Init.js index 4b6fe43..a54c6ba 100644 --- a/Init.js +++ b/Init.js @@ -1,8 +1,8 @@ -import merge from 'lodash.merge'; -import defaultTheme from './__appset/universal/theme'; +import merge from "lodash.merge" +import defaultTheme from "./__appset/theme" export default function Init(userTheme) { - const mergeTheme = merge(defaultTheme, userTheme); + const mergeTheme = merge(defaultTheme, userTheme) - return mergeTheme; + return mergeTheme } diff --git a/__application/utils/constants.js b/__application/utils/constants.js index 2bbfe85..6f73145 100644 --- a/__application/utils/constants.js +++ b/__application/utils/constants.js @@ -1,36 +1,35 @@ -/* eslint-disable */ -export const MONTHS_NAME = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec', -]; +export const MONTHS_NAME = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", + "Jul", "Aug", "Sept", "Oct", "Nov", "Dec" +] export const timeMap = { - 1: '13', - 2:'14', - 3:'15', - 4:'16', - 5:'17', - 6:'18', - 7:'19', - 8:'20', - 9:'21', - 10:'22', - 11:'23', - 12:'24', + "1": "13", + "2": "14", + "3": "15", + "4": "16", + "5": "17", + "6": "18", + "7": "19", + "8": "20", + "9": "21", + "10": "22", + "11": "23", + "12": "24" } // YEAR MAPPING export const yearMapping = { - 1: 'Jan', - 2: 'Feb', - 3: 'Mar', - 4: 'Apr', - 5: 'May', - 6: 'Jun', - 7: 'Jul', - 8: 'Aug', - 9: 'Sept', - 10: 'Oct', - 11: 'Nov', - 12: 'Dec', -}; + "1": "Jan", + "2": "Feb", + "3": "Mar", + "4": "Apr", + "5": "May", + "6": "Jun", + "7": "Jul", + "8": "Aug", + "9": "Sept", + "10": "Oct", + "11": "Nov", + "12": "Dec" +} diff --git a/__appset/configButton.js b/__appset/configButton.js index 987a05e..9e0dbd2 100644 --- a/__appset/configButton.js +++ b/__appset/configButton.js @@ -1,15 +1,16 @@ -/* eslint-disable */ const Button = { - "borderRadius": "50px", - "borderColor": "12px", - "primary": { - "color": "white", - "borderColor": "white" - }, - "secondary": { - "color": "white", - "borderColor": "white" - } + "primary": { + "color": "white", + "background": "#03567b", + "borderColor": "white", + "borderRadius": "4px" + }, + "secondary": { + "color": "white", + "background": "#03567b", + "borderColor": "white", + "borderRadius": "4px" + } } -export default Button; +export default Button diff --git a/__appset/configChip.js b/__appset/configChip.js index 56f3e88..c8fbb33 100644 --- a/__appset/configChip.js +++ b/__appset/configChip.js @@ -1,23 +1,22 @@ -/* eslint-disable */ -const Button = { - "borderRadius": "50px", - "borderColor": "12px", - "primary": { - "color": "white", - "borderColor": "white" - }, - "secondary": { - "color": "white", - "borderColor": "white" - }, - "tertiary": { - "color": "white", - "borderColor": "white" - }, - "quaternary": { - "color": "white", - "borderColor": "white" - } +const Chip = { + "borderRadius": "50px", + "borderColor": "12px", + "primary": { + "color": "white", + "borderColor": "white" + }, + "secondary": { + "color": "white", + "borderColor": "white" + }, + "tertiary": { + "color": "white", + "borderColor": "white" + }, + "quaternary": { + "color": "white", + "borderColor": "white" + } } -export default Button; +export default Chip diff --git a/__appset/universal/configColor.js b/__appset/configColor.js similarity index 84% rename from __appset/universal/configColor.js rename to __appset/configColor.js index 2c1e8ec..e400d4f 100644 --- a/__appset/universal/configColor.js +++ b/__appset/configColor.js @@ -1,4 +1,3 @@ -/* eslint-disable */ const color = { "primary": "#00364e", "secondary": "#03567b", @@ -13,4 +12,4 @@ const color = { "orange": "#fc6027" } -export default color; +export default color diff --git a/__appset/universal/configFontFamily.js b/__appset/configFontFamily.js similarity index 67% rename from __appset/universal/configFontFamily.js rename to __appset/configFontFamily.js index de7c39b..6c4064f 100644 --- a/__appset/universal/configFontFamily.js +++ b/__appset/configFontFamily.js @@ -1,8 +1,7 @@ -/* eslint-disable */ const FontFamily = { "roboto": "Roboto", "averta": "Averta", "sans": "Open Sans,sans-serif" } -export default FontFamily; +export default FontFamily diff --git a/__appset/configFontSize.js b/__appset/configFontSize.js new file mode 100644 index 0000000..4528ee3 --- /dev/null +++ b/__appset/configFontSize.js @@ -0,0 +1,18 @@ +const FontSize = { + "xxxxxl": "48px", + "xxxxl": "32px", + "xxxl": "28px", + "xxl": "24px", + "xl": "20px", + "l": "18px", + "m": "16px", + "md": "15px", + "s": "14px", + "sm": "13px", + "xs": "12px", + "xxs": "11px", + "xxxs": "10px", + "xxxxs": "8px" +} + +export default FontSize diff --git a/__appset/configFontWeight.js b/__appset/configFontWeight.js new file mode 100644 index 0000000..9100f94 --- /dev/null +++ b/__appset/configFontWeight.js @@ -0,0 +1,8 @@ +const FontWeight = { + "normal": "400", + "medium": "500", + "semibold": "600", + "bold": "700" +} + +export default FontWeight diff --git a/__appset/configInput.js b/__appset/configInput.js index 1a7d131..ef259f0 100644 --- a/__appset/configInput.js +++ b/__appset/configInput.js @@ -1,4 +1,3 @@ -/* eslint-disable */ const Input = { "borderRadius": "4px", "primary": { @@ -15,4 +14,4 @@ const Input = { } } -export default Input; +export default Input diff --git a/__appset/configPXL.js b/__appset/configPXL.js new file mode 100644 index 0000000..9de0515 --- /dev/null +++ b/__appset/configPXL.js @@ -0,0 +1,11 @@ +const PXL = { + "pxScale": 8, + "PXL": (value) => { + const values = [].concat(value) + return values + .map((v) => (typeof v === "string" ? v : `${v * 8}px`)) + .join(" ") + } +} + +export default PXL diff --git a/__appset/theme.js b/__appset/theme.js new file mode 100644 index 0000000..0870313 --- /dev/null +++ b/__appset/theme.js @@ -0,0 +1,21 @@ +/* eslint-disable import/no-anonymous-default-export */ +import PXL from "./configPXL" +import Color from "./configColor" +import FontSize from "./configFontSize" +import FontFamily from "./configFontFamily" +import FontWeight from "./configFontWeight" + +import Button from "./configButton" +import Input from "./configInput" + +export default { + "Universal": { + ...PXL, + Color, + FontSize, + FontFamily, + FontWeight + }, + Button, + Input +} diff --git a/__appset/themePrepare.js b/__appset/themePrepare.js index 7731c36..d1bce86 100644 --- a/__appset/themePrepare.js +++ b/__appset/themePrepare.js @@ -1,193 +1,167 @@ /* eslint-disable prefer-destructuring */ /* eslint-disable max-len */ /* eslint-disable no-console */ -const fs = require('fs'); -const path = require('path'); -const { mkdirp } = require('mkdirp'); +const fs = require("fs") +const path = require("path") +const { mkdirp } = require("mkdirp") const ignoreFiles = [ - '.DS_Store', - 'scripts', - 'utils', - 'themePrepare.js', - 'universal', -]; + ".DS_Store", + "scripts", + "utils", + "themePrepare.js", + "universal" +] -const mergeObj = (obj1, obj2) => ({ ...obj1, ...obj2 }); +const mergeObj = (obj1, obj2) => ({ ...obj1, ...obj2 }) function getRandomInt(max) { - return Math.floor(Math.random() * max); + return Math.floor(Math.random() * max) } const color = [ - { name: 'FgRed', value: '\x1b[31m%s\x1b[0m' }, - { name: 'FgGreen', value: '\x1b[32m%s\x1b[0m' }, - { name: 'FgYellow', value: '\x1b[33m%s\x1b[0m' }, - { name: 'FgMagenta', value: '\x1b[35m%s\x1b[0m' }, - { name: 'FgCyan', value: '\x1b[36m%s\x1b[0m' }, -]; + { "name": "FgRed", "value": "\x1b[31m%s\x1b[0m" }, + { "name": "FgGreen", "value": "\x1b[32m%s\x1b[0m" }, + { "name": "FgYellow", "value": "\x1b[33m%s\x1b[0m" }, + { "name": "FgMagenta", "value": "\x1b[35m%s\x1b[0m" }, + { "name": "FgCyan", "value": "\x1b[36m%s\x1b[0m" } +] function capitalizeFirstLetter(string) { - return string.charAt(0).toUpperCase() + string.slice(1); + return string.charAt(0).toUpperCase() + string.slice(1) } -let count = 0; +const srcPath = path.resolve(__dirname, "../__appset") +const components = process.env.COMPONENT_NAME ? [`config${capitalizeFirstLetter(process.env.COMPONENT_NAME)}.js`] : fs.readdirSync(srcPath).filter((files) => !ignoreFiles.includes(files) && !files.includes("WIP-")) +let count = 0 +let createDir -// generate exports for all platforms -const srcPath = path.resolve(__dirname, '../__appset'); -const components = process.env.COMPONENET_NAME ? [`config${capitalizeFirstLetter(process.env.COMPONENET_NAME)}.js`] : fs.readdirSync(srcPath).filter((files) => !ignoreFiles.includes(files) && !files.includes('WIP-')); - -const srcPathInner = path.resolve(__dirname, '../__appset/universal'); -const componentsInner = process.env.COMPONENET_NAME ? [] : fs.readdirSync(srcPathInner).filter((files) => !ignoreFiles.includes(files) && !files.includes('WIP-')); - -let createDir; -let createInnerDir; - -if (process.env.ENVI === 'local') { - createDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme`; - createInnerDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`; +if (process.env.ENVI === "local") { + createDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme` } else { - createDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme`); - createInnerDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`); + createDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme`) } mkdirp(createDir).then(() => { components.map((component) => { - let defaultDir; - let appDir; - let defaultDirData; - let componentFile; - const replaceComponentName = component.replace('config', '').replace('.js', ''); - - if (process.env.ENVI === 'local') { - defaultDir = path.resolve(`${__dirname}`); - defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split('export')[0].split(/=(.*)/s)[1]; - appDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme`; - componentFile = `${appDir}/${component}`; + let defaultDir + let appDir + let defaultDirData + let componentFile + const replaceComponentName = component.replace("config", "").replace(".js", "") + + if (process.env.ENVI === "local") { + defaultDir = path.resolve(`${__dirname}`) + defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split("export")[0].split(/=(.*)/s)[1] + appDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme` + componentFile = `${appDir}/${component}` } else { - defaultDir = path.resolve(`${__dirname}`, '../../../node_modules/fe-theme/__appset'); - defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split('export')[0].split(/=(.*)/s)[1]; - appDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme`); - componentFile = path.resolve(createDir, component); + defaultDir = path.resolve(`${__dirname}`, "../../../node_modules/fe-theme/__appset") + defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split("export")[0].split(/=(.*)/s)[1] + appDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme`) + componentFile = path.resolve(createDir, component) } - fs.readFile(`${appDir}/${component}`, 'utf8', (err, data) => { - let componentContent; - - if (!err) { - const userAppConfig = data.split('export')[0].split(/=(.*)/s)[1]; - componentContent = `/* eslint-disable */ -const ${replaceComponentName} = ${JSON.stringify(mergeObj(JSON.parse(defaultDirData), JSON.parse(userAppConfig)), null, '\t')} -\nexport default ${replaceComponentName};\n`; + if (process.env.COMPONENT_NAME) { + let themeFile + if (process.env.ENVI === "local") { + themeFile = `${appDir}/theme.js` } else { - componentContent = `/* eslint-disable */ -const ${replaceComponentName} =${defaultDirData}export default ${replaceComponentName};\n`; + themeFile = path.resolve(createDir, "theme.js") } - - fs.writeFile(componentFile, componentContent, (writeFileErr) => { - if (writeFileErr) throw writeFileErr; - console.log(color[getRandomInt(color.length)].value, ` ${count + 1}. generated: ${componentFile} \n`); - count += 1; - if (count === components.length + componentsInner.length - 2) { - console.log('\x1b[44m%s\x1b[0m', 'Setup Completed Successfully'); - console.log(''); - count = 0; - } - }); - }); - - return null; - }); -}).catch((err) => { - console.log('err', err); -}); - -mkdirp(createInnerDir).then(() => { - if (process.env.COMPONENET_NAME) { - let appDir; - let componentFile; - const replaceComponentName = capitalizeFirstLetter(process.env.COMPONENET_NAME.replace('config', '').replace('.js', '')); - - if (process.env.ENVI === 'local') { - appDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`; - componentFile = `${appDir}/theme.js`; - } else { - appDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`); - componentFile = path.resolve(createInnerDir, 'theme.js'); - } - fs.readFile(`${appDir}/theme.js`, 'utf8', (err, data) => { - let componentContent; - if (!err) { - console.log('not error', data); - componentContent = data.replace('const theme = {', `import ${replaceComponentName} from '../config${capitalizeFirstLetter(process.env.COMPONENET_NAME)}'; + fs.readFile(`${appDir}/theme.js`, "utf8", (err, data) => { + let componentContent + if (!err) { + componentContent = data.replace("const theme = {", `import ${replaceComponentName} from './config${capitalizeFirstLetter(process.env.COMPONENT_NAME)}'; const theme = { - ${replaceComponentName},`); - if (!data.includes(`import ${replaceComponentName} from`)) { - fs.writeFile(componentFile, componentContent, () => { }); - } - } else { - componentContent = `/* eslint-disable */ -import ${replaceComponentName} from '../config${capitalizeFirstLetter(process.env.COMPONENET_NAME)}'; + ${replaceComponentName},`) + if (!data.includes(`import ${replaceComponentName} from`)) { + fs.writeFile(themeFile, componentContent, () => { }) + } + } else { + componentContent = `/* eslint-disable */ +import ${replaceComponentName} from './config${capitalizeFirstLetter(process.env.COMPONENT_NAME)}'; const theme = { ${replaceComponentName} } -export default theme;\n`; - fs.writeFile(componentFile, componentContent, () => { }); - } - }); - } else { - componentsInner.map((component) => { - let defaultDir; - let appDir; - let defaultDirData; - let componentFile; - const replaceComponentName = component.replace('config', '').replace('.js', ''); - - if (process.env.ENVI === 'local') { - defaultDir = path.resolve(`${__dirname}`, 'universal'); - defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split('export')[0].split(/=(.*)/s)[1]; - appDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`; - componentFile = `${appDir}/${component}`; +export default theme;\n` + fs.writeFile(themeFile, componentContent, () => { }) + } + }) + } + + fs.readFile(`${appDir}/${component}`, "utf8", (err, data) => { + if (component === "theme.js" || component === "configPXL.js") { + console.log(componentFile, defaultDir, component) + fs.writeFile(componentFile, fs.readFileSync(`${defaultDir}/${component}`).toString(), () => {}) } else { - defaultDir = path.resolve(`${__dirname}`, '../../../node_modules/fe-theme/__appset/universal'); - defaultDirData = fs.readFileSync(`${defaultDir}/${component}`).toString().split('export')[0].split(/=(.*)/s)[1]; - appDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme/universal`); - componentFile = path.resolve(createInnerDir, component); - } + let componentContent - fs.readFile(`${appDir}/${component}`, 'utf8', (err, data) => { - if (component === 'theme.js' || component === 'configPXL.js') { - fs.writeFile(componentFile, fs.readFileSync(`${defaultDir}/${component}`).toString(), () => {}); + if (!err) { + const userAppConfig = data.split("export")[0].split(/=(.*)/s)[1] + componentContent = `/* eslint-disable */ +const ${replaceComponentName} = ${JSON.stringify(mergeObj(JSON.parse(defaultDirData), JSON.parse(userAppConfig)), null, "\t")} +\nexport default ${replaceComponentName};\n` } else { - let componentContent; - - if (!err) { - const userAppConfig = data.split('export')[0].split(/=(.*)/s)[1]; - componentContent = `/* eslint-disable */ - const ${replaceComponentName} = ${JSON.stringify(mergeObj(JSON.parse(defaultDirData), JSON.parse(userAppConfig)), null, '\t')} - \nexport default ${replaceComponentName};\n`; - } else { - componentContent = `/* eslint-disable */ - const ${replaceComponentName} =${defaultDirData}export default ${replaceComponentName};\n`; - } - - fs.writeFile(componentFile, componentContent, (writeFileErr) => { - if (writeFileErr) throw writeFileErr; - console.log(color[getRandomInt(color.length)].value, ` ${count + 1}. generated: ${componentFile} \n`); - count += 1; - if (count === components.length + componentsInner.length - 2) { - console.log('\x1b[44m%s\x1b[0m', 'Setup Completed Successfully'); - console.log(''); - count = 0; - } - }); + componentContent = `/* eslint-disable */ +const ${replaceComponentName} =${defaultDirData}export default ${replaceComponentName};\n` } - }); - return null; - }); - } + fs.writeFile(componentFile, componentContent, (writeFileErr) => { + if (writeFileErr) throw writeFileErr + console.log(color[getRandomInt(color.length)].value, ` ${count + 1}. generated: ${componentFile} \n`) + count += 1 + if (count === components.length) { + console.log("\x1b[44m%s\x1b[0m", "Setup Completed Successfully") + console.log("") + count = 0 + } + }) + } + }) + + return null + }) }).catch((err) => { - console.log('err', err); -}); + console.log("err mkdirp", err) +}) + +// mkdirp(createInnerDir).then(() => { +// if (process.env.COMPONENT_NAME) { +// let appDir; +// let componentFile; +// const replaceComponentName = capitalizeFirstLetter(process.env.COMPONENT_NAME.replace('config', '').replace('.js', '')); + +// if (process.env.ENVI === 'local') { +// appDir = `${process.env.CURRENT_APP_DIR}/${process.env.COMPONENT_CONFIG_PATH}/fe-theme`; +// componentFile = `${appDir}/theme.js`; +// } else { +// appDir = path.resolve(`${__dirname}`, `../../../${process.env.COMPONENT_CONFIG_PATH}/fe-theme`); +// componentFile = path.resolve(createInnerDir, 'theme.js'); +// } +// fs.readFile(`${appDir}/theme.js`, 'utf8', (err, data) => { +// let componentContent; +// if (!err) { +// console.log('not error', data); +// componentContent = data.replace('const theme = {', `import ${replaceComponentName} from '../config${capitalizeFirstLetter(process.env.COMPONENT_NAME)}'; +// const theme = { +// ${replaceComponentName},`); +// if (!data.includes(`import ${replaceComponentName} from`)) { +// fs.writeFile(componentFile, componentContent, () => { }); +// } +// } else { +// componentContent = `/* eslint-disable */ +// import ${replaceComponentName} from '../config${capitalizeFirstLetter(process.env.COMPONENT_NAME)}'; +// const theme = { +// ${replaceComponentName} +// } + +// export default theme;\n`; +// fs.writeFile(componentFile, componentContent, () => { }); +// } +// }); +// } +// }).catch((err) => { +// console.log('err', err); +// }); diff --git a/__appset/universal/configFontSize.js b/__appset/universal/configFontSize.js deleted file mode 100644 index c0464e7..0000000 --- a/__appset/universal/configFontSize.js +++ /dev/null @@ -1,19 +0,0 @@ -/* eslint-disable */ -const FontSize = { - "xxxxxl" : "48px", - "xxxxl" : "32px", - "xxxl" : "28px", - "xxl" : "24px", - "xl" : "20px", - "l" : "18px", - "m" : "16px", - "md" : "15px", - "s" : "14px", - "sm" : "13px", - "xs" : "12px", - "xxs" : "11px", - "xxxs" : "10px", - "xxxxs" : "8px" -} - -export default FontSize; diff --git a/__appset/universal/configFontWeight.js b/__appset/universal/configFontWeight.js deleted file mode 100644 index 188feb6..0000000 --- a/__appset/universal/configFontWeight.js +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable */ -const FontWeight = { - "normal" : "400", - "medium" : "500", - "semibold" : "600", - "bold" : "700" -} - -export default FontWeight; diff --git a/__appset/universal/configPXL.js b/__appset/universal/configPXL.js deleted file mode 100644 index 4e00cef..0000000 --- a/__appset/universal/configPXL.js +++ /dev/null @@ -1,12 +0,0 @@ -/* eslint-disable */ -const PXL = { - "pxScale": 8, - "PXL": (value) => { - const values = [].concat(value); - return values - .map((v) => (typeof v === 'string' ? v : `${v * 8}px`)) - .join(' '); - } -} - -export default PXL; diff --git a/__appset/universal/theme.js b/__appset/universal/theme.js deleted file mode 100644 index 3d85939..0000000 --- a/__appset/universal/theme.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable import/no-anonymous-default-export */ -import PXL from './configPXL'; -import Color from './configColor'; -import FontSize from './configFontSize'; -import FontFamily from './configFontFamily'; -import FontWeight from './configFontWeight'; - -import Button from '../configButton'; -import Input from '../configInput'; - -export default { - Universal: { - ...PXL, - Color, - FontSize, - FontFamily, - FontWeight, - }, - Button, - Input, -}; diff --git a/package-lock.json b/package-lock.json index b6ea3f1..692f836 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "classnames": "^2.5.1", "lodash.merge": "^4.6.2", "mkdirp": "^3.0.1", + "scheduler": "^0.23.0", "stylis": "^4.3.1" }, "devDependencies": { @@ -22092,7 +22093,6 @@ "version": "0.23.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0" } diff --git a/package.json b/package.json index 684b700..4f65070 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,8 @@ "peerDependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", - "styled-components": "^6.1.6" + "styled-components": "^6.1.6", + "scheduler": "^0.23.0" }, "files": [ "__build-es/**",