@eric-emg/symphiq-components 1.2.11 → 1.2.12

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.
Files changed (2) hide show
  1. package/README.md +72 -43
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -159,57 +159,86 @@ export class MyService {
159
159
 
160
160
  ## Styling
161
161
 
162
- The library uses **Tailwind CSS** for all styling. To use this library in your project, follow these steps:
163
-
164
- ### Step 1: Install Tailwind CSS (if not already installed)
165
- ```bash
166
- npm install -D tailwindcss postcss autoprefixer
167
- npx tailwindcss init -p
162
+ The library uses **Tailwind CSS v4** for all styling and includes a **pre-compiled stylesheet** with all necessary classes, including responsive breakpoints and animations.
163
+
164
+ ### Required Setup
165
+
166
+ **IMPORTANT**: You must import the library's stylesheet in your Angular application:
167
+
168
+ #### Option 1: Import in angular.json (Recommended)
169
+ ```json
170
+ {
171
+ "projects": {
172
+ "your-app": {
173
+ "architect": {
174
+ "build": {
175
+ "options": {
176
+ "styles": [
177
+ "src/styles.css",
178
+ "node_modules/@eric-emg/symphiq-components/styles.css"
179
+ ]
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
168
186
  ```
169
187
 
170
- ### Step 2: Configure Tailwind to scan the library files
171
-
172
- **IMPORTANT**: Update your `tailwind.config.js` to include the library's compiled files:
173
-
174
- ```js
175
- /** @type {import('tailwindcss').Config} */
176
- module.exports = {
177
- content: [
178
- "./src/**/*.{html,ts}",
179
- "./node_modules/@eric-emg/funnel-analysis-lib/**/*.{js,mjs}", // ← ADD THIS LINE
180
- ],
181
- theme: {
182
- extend: {},
183
- },
184
- plugins: [],
185
- }
188
+ #### Option 2: Import in your global styles.css
189
+ ```css
190
+ /* In your src/styles.css */
191
+ @import '@eric-emg/symphiq-components/styles.css';
186
192
  ```
187
193
 
188
- **Note**: The path `./node_modules/@eric-emg/funnel-analysis-lib/**/*.{js,mjs}` tells Tailwind to scan the compiled library files for class names.
194
+ ### What's Included
189
195
 
190
- ### Step 3: Import Tailwind CSS in your global styles
196
+ The pre-compiled `styles.css` includes:
197
+ - ✅ All Tailwind utility classes used by the components
198
+ - ✅ All responsive breakpoints (sm, md, lg, xl, 2xl)
199
+ - ✅ All hover, focus, and active state variants
200
+ - ✅ Custom animations and keyframes
201
+ - ✅ Component-specific styles
191
202
 
192
- ```css
193
- /* In your global styles.css or main.css */
194
- @tailwind base;
195
- @tailwind components;
196
- @tailwind utilities;
197
- ```
203
+ ### Mobile Responsiveness
204
+
205
+ All components are **fully responsive** out of the box. The compiled stylesheet includes all necessary responsive classes for mobile, tablet, and desktop viewports (320px and up).
206
+
207
+ **You do NOT need to:**
208
+ - Configure Tailwind to scan the library files
209
+ - Add the library path to your tailwind.config.js content array
210
+ - Install Tailwind CSS in your project (unless you're using it for your own styles)
211
+
212
+ ### Using Tailwind 4 in Your App
213
+
214
+ If your application also uses Tailwind CSS v4, the library's styles will work seamlessly alongside your own Tailwind setup. The pre-compiled stylesheet is self-contained and won't conflict with your Tailwind configuration.
198
215
 
199
216
  ### Custom Colors
200
- If you want to use the library's custom color palette, add to your `tailwind.config.js`:
201
-
202
- ```js
203
- theme: {
204
- extend: {
205
- colors: {
206
- 'symphiq-blue': '#1a56db',
207
- 'symphiq-dark': '#0f172a',
208
- 'symphiq-gray': '#64748b',
209
- },
210
- },
211
- }
212
- ```
217
+
218
+ The library uses a custom color palette. These colors are defined as CSS variables in the compiled stylesheet and will work automatically when you import it.
219
+
220
+ ## Troubleshooting
221
+
222
+ ### Components Not Responsive on Mobile
223
+
224
+ If components don't scale properly on mobile devices:
225
+
226
+ 1. **Verify stylesheet import**: Ensure you've imported `@eric-emg/symphiq-components/styles.css` in your angular.json or global styles
227
+ 2. **Check viewport meta tag**: Ensure your index.html has:
228
+ ```html
229
+ <meta name="viewport" content="width=device-width, initial-scale=1">
230
+ ```
231
+ 3. **Verify package version**: Make sure you're using the latest version with responsive classes included
232
+ 4. **Clear build cache**: Try deleting `node_modules/.cache` and rebuilding your application
233
+
234
+ ### Styles Not Applying
235
+
236
+ If the components render without styles:
237
+
238
+ 1. Confirm the stylesheet is imported (see Required Setup above)
239
+ 2. Check browser console for 404 errors loading the stylesheet
240
+ 3. Verify the package is installed: `npm list @eric-emg/symphiq-components`
241
+ 4. Try clearing your browser cache and rebuilding
213
242
 
214
243
  ## Building the Library
215
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eric-emg/symphiq-components",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "A comprehensive Angular library for component dashboards with performance visualization and metrics analysis",
5
5
  "author": "Your Organization",
6
6
  "license": "MIT",