Skip to content

Commit

Permalink
Test with config (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Dayana Ilieva <[email protected]>
  • Loading branch information
IlievaDayana and Dayana Ilieva authored Feb 20, 2024
1 parent 3448286 commit 69598dd
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 20 deletions.
6 changes: 3 additions & 3 deletions dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.js.map

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@babel/preset-react": "^7.22.5",
"@faker-js/faker": "^8.1.0",
"@reduxjs/toolkit": "^1.9.5",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.21",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Input/variants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export const basic = /*tw*/ tv({
theme: {
light: {
base: '',
input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold',
input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold focus:!tw--bg-light-lumina',
loader: '',
spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',
},
dark: {
base: '',
input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold',
input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold focus:!tw--bg-dark-lumina',
loader: '',
spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',
},
Expand Down
14 changes: 13 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,19 @@ import autoprefixer from 'autoprefixer';
import tailwindConfig from './tailwind.config';

export default defineConfig({
plugins: [react(), eslint(), nodePolyfills({ include: ['events'] }), cssInjectedByJsPlugin({ styleId: 'react-tw-ai-client' }),],
plugins: [react(), eslint(), nodePolyfills({ include: ['events'] }),
cssInjectedByJsPlugin({
injectCode: (cssCode, options) => `try {
if(typeof document != 'undefined') {
const elementStyle = document.createElement('style');
elementStyle.id = 'react-tw-ai-client';
elementStyle.appendChild(document.createTextNode(${cssCode}));
document.body.appendChild(elementStyle);
}
} catch(e) {
console.error('vite-plugin-css-injected-by-js', e);
}`
})],
resolve: {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],
alias: {
Expand Down

0 comments on commit 69598dd

Please sign in to comment.