@brainfish-ai/components 0.20.1 → 0.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-radial-stacked.d.ts +2 -2
- package/dist/esm/chunks/{ChatSearch.DBiDqJZy.js → ChatSearch.Bad4C07E.js} +2 -2
- package/dist/esm/chunks/ChatSearch.Bad4C07E.js.map +1 -0
- package/dist/esm/components/chart-radial-stacked.js +1 -1
- package/dist/esm/components/chart-radial-stacked.js.map +1 -1
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +2 -2
- package/tailwind.config.js +10 -1
- package/dist/esm/chunks/ChatSearch.DBiDqJZy.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainfish-ai/components",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"description": "Brainfish Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"start": "NODE_ENV=development BABEL_ENV=development yarn storybook",
|
|
62
|
-
"build": "rimraf dist && NODE_ENV=production BABEL_ENV=production vite build",
|
|
62
|
+
"build": "rimraf dist && BUILD_LIB=1 NODE_ENV=production BABEL_ENV=production vite build",
|
|
63
63
|
"watch": "nodemon --watch src --ext ts,tsx,css --exec \"yarn build\"",
|
|
64
64
|
"lint": "yarn check-types && yarn eslint",
|
|
65
65
|
"lint:fix": "yarn eslint:fix",
|
package/tailwind.config.js
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
// When BUILD_LIB=1 (library build), exclude story files from content so the published
|
|
3
|
+
// global.css does not include utilities only used in stories (e.g. grid-cols-1 from
|
|
4
|
+
// layout.stories). That avoids overriding consumer apps' responsive utilities (e.g. xl:grid-cols-3).
|
|
5
|
+
// Storybook runs without BUILD_LIB, so it gets full content and all classes work.
|
|
6
|
+
const content =
|
|
7
|
+
process.env.BUILD_LIB === "1"
|
|
8
|
+
? ['./index.html', './src/**/*.{js,ts,jsx,tsx}', '!./src/**/*.stories.*']
|
|
9
|
+
: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'];
|
|
10
|
+
|
|
2
11
|
module.exports = {
|
|
3
12
|
presets: [require('./tailwind.preset.ts').default],
|
|
4
|
-
content
|
|
13
|
+
content,
|
|
5
14
|
plugins: [
|
|
6
15
|
require('tailwindcss/plugin')(function ({ addBase }) {
|
|
7
16
|
addBase({
|