@hyddenlabs/hydn-ui 0.3.0-alpha.2 → 0.3.0-alpha.202

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 CHANGED
@@ -186,7 +186,6 @@ const customButton: ButtonProps = {
186
186
  - Avatar, Badge, Chip
187
187
  - Table, Data Table, List
188
188
  - Timeline, Code Block
189
- - Price Display, Pricing
190
189
  - Empty State
191
190
 
192
191
  ### Layout
@@ -435,6 +434,7 @@ HYDN UI includes comprehensive CSS validation tools to ensure all Tailwind class
435
434
  ### Why This Matters
436
435
 
437
436
  When building a component library with Tailwind CSS, it's critical to ensure that:
437
+
438
438
  - All classes used in components are actually generated in the final CSS
439
439
  - No classes are accidentally misspelled or reference non-existent theme tokens
440
440
  - The generated CSS file contains everything consumers need
@@ -450,6 +450,7 @@ npm run audit:css
450
450
  ```
451
451
 
452
452
  This script:
453
+
453
454
  - ✅ Extracts all className usages from your components
454
455
  - ✅ Validates them against the generated `dist/style.css`
455
456
  - ✅ Reports missing classes with file locations
@@ -457,6 +458,7 @@ This script:
457
458
  - ✅ Filters out template literals and conditional logic
458
459
 
459
460
  **Example Output:**
461
+
460
462
  ```
461
463
  🔍 Auditing CSS classes...
462
464
 
@@ -482,6 +484,7 @@ npm run test:css
482
484
  ```
483
485
 
484
486
  This runs `tests/css-validation.test.ts` which:
487
+
485
488
  - ✅ Checks for critical component classes
486
489
  - ✅ Validates theme tokens (CSS custom properties)
487
490
  - ✅ Ensures CSS file is not empty
@@ -510,7 +513,7 @@ npm run audit:css && npm run build && npm test
510
513
  ```tsx
511
514
  // ❌ Bad - class might not be generated
512
515
  const sizeClass = `w-${size}`;
513
- <div className={sizeClass} />
516
+ <div className={sizeClass} />;
514
517
 
515
518
  // ✅ Good - explicit mapping
516
519
  const sizeClasses = {
@@ -518,18 +521,18 @@ const sizeClasses = {
518
521
  md: 'w-6',
519
522
  lg: 'w-8'
520
523
  };
521
- <div className={sizeClasses[size]} />
524
+ <div className={sizeClasses[size]} />;
522
525
  ```
523
526
 
524
527
  **CI/CD integration** - The GitHub Actions workflows automatically run CSS validation on every push and before publishing.
525
528
 
526
529
  ### Validation Commands Summary
527
530
 
528
- | Command | Purpose |
529
- |---------|---------|
530
- | `npm run audit:css` | Comprehensive class validation |
531
- | `npm run test:css` | Quick CSS validation tests |
532
- | `npm test` | Full test suite (includes CSS checks) |
531
+ | Command | Purpose |
532
+ | ------------------- | ------------------------------------- |
533
+ | `npm run audit:css` | Comprehensive class validation |
534
+ | `npm run test:css` | Quick CSS validation tests |
535
+ | `npm test` | Full test suite (includes CSS checks) |
533
536
 
534
537
  ## Tech Stack
535
538