@eric-emg/symphiq-components 1.2.11 → 1.2.13
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/README.md +72 -43
- package/fesm2022/symphiq-components.mjs +338 -348
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- 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
|
|
163
|
-
|
|
164
|
-
###
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
194
|
+
### What's Included
|
|
189
195
|
|
|
190
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
|