@shohojdhara/atomix 0.4.9 → 0.5.1

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 (67) hide show
  1. package/dist/atomix.css +95 -69
  2. package/dist/atomix.css.map +1 -1
  3. package/dist/atomix.min.css +1 -1
  4. package/dist/atomix.min.css.map +1 -1
  5. package/dist/charts.d.ts +1 -0
  6. package/dist/charts.js +231 -332
  7. package/dist/charts.js.map +1 -1
  8. package/dist/core.d.ts +1 -0
  9. package/dist/core.js +232 -333
  10. package/dist/core.js.map +1 -1
  11. package/dist/forms.d.ts +1 -0
  12. package/dist/forms.js +231 -332
  13. package/dist/forms.js.map +1 -1
  14. package/dist/heavy.d.ts +11 -2
  15. package/dist/heavy.js +233 -334
  16. package/dist/heavy.js.map +1 -1
  17. package/dist/index.d.ts +13 -2
  18. package/dist/index.esm.js +228 -327
  19. package/dist/index.esm.js.map +1 -1
  20. package/dist/index.js +227 -326
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.min.js +1 -1
  23. package/dist/index.min.js.map +1 -1
  24. package/package.json +11 -1
  25. package/src/components/AtomixGlass/AtomixGlass.tsx +188 -128
  26. package/src/components/AtomixGlass/AtomixGlassContainer.tsx +62 -90
  27. package/src/components/AtomixGlass/PerformanceDashboard.tsx +153 -201
  28. package/src/components/AtomixGlass/glass-utils.ts +50 -0
  29. package/src/components/AtomixGlass/shader-utils.ts +1 -1
  30. package/src/components/AtomixGlass/stories/{Phase1-Animation.stories.tsx → AnimationFeatures.stories.tsx} +53 -47
  31. package/src/components/AtomixGlass/stories/Examples.stories.tsx +573 -236
  32. package/src/components/AtomixGlass/stories/Playground.stories.tsx +656 -44
  33. package/src/components/AtomixGlass/stories/argTypes.ts +384 -0
  34. package/src/components/AtomixGlass/stories/shared-components.tsx +82 -3
  35. package/src/components/AtomixGlass/stories/types.ts +127 -0
  36. package/src/lib/composables/useAtomixGlass.ts +108 -71
  37. package/src/lib/composables/useAtomixGlassStyles.ts +0 -2
  38. package/src/lib/constants/components.ts +1 -0
  39. package/src/lib/types/components.ts +1 -0
  40. package/src/lib/utils/displacement-generator.ts +1 -1
  41. package/src/styles/06-components/_components.atomix-glass.scss +158 -97
  42. package/scripts/cli/__tests__/README.md +0 -81
  43. package/scripts/cli/__tests__/basic.test.js +0 -116
  44. package/scripts/cli/__tests__/clean.test.js +0 -278
  45. package/scripts/cli/__tests__/component-generator.test.js +0 -332
  46. package/scripts/cli/__tests__/component-validator.test.js +0 -433
  47. package/scripts/cli/__tests__/generator.test.js +0 -613
  48. package/scripts/cli/__tests__/glass-motion.test.js +0 -256
  49. package/scripts/cli/__tests__/integration.test.js +0 -938
  50. package/scripts/cli/__tests__/migrate.test.js +0 -74
  51. package/scripts/cli/__tests__/security.test.js +0 -206
  52. package/scripts/cli/__tests__/test-setup.js +0 -135
  53. package/scripts/cli/__tests__/theme-bridge.test.js +0 -507
  54. package/scripts/cli/__tests__/token-manager.test.js +0 -251
  55. package/scripts/cli/__tests__/token-provider.test.js +0 -361
  56. package/scripts/cli/__tests__/utils.test.js +0 -165
  57. package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +0 -216
  58. package/src/components/AtomixGlass/stories/Customization.stories.tsx +0 -131
  59. package/src/components/AtomixGlass/stories/Modes.stories.tsx +0 -1082
  60. package/src/components/AtomixGlass/stories/Overview.stories.tsx +0 -497
  61. package/src/components/AtomixGlass/stories/Performance.stories.tsx +0 -103
  62. package/src/components/AtomixGlass/stories/Phase1-Test.stories.tsx +0 -95
  63. package/src/components/AtomixGlass/stories/Shaders.stories.tsx +0 -395
  64. package/src/components/TypedButton/TypedButton.stories.tsx +0 -59
  65. package/src/components/TypedButton/TypedButton.tsx +0 -39
  66. package/src/components/TypedButton/index.ts +0 -2
  67. package/src/lib/composables/useTypedButton.ts +0 -66
@@ -2,7 +2,7 @@
2
2
  * Phase 1 Animation Features Stories
3
3
  *
4
4
  * Demonstrates the new time-based animation system and multi-layer distortion effects
5
- * implemented in Phase 1 of the AtomixGlass Feature Implementation Roadmap.
5
+ * implemented in Phase 1 of the AtomixGlass Feature Implementation roadMap.
6
6
  *
7
7
  * Features:
8
8
  * - Feature 1.1: Time-Based Animation System
@@ -16,7 +16,7 @@ import { AtomixGlass } from '../AtomixGlass';
16
16
  import { BackgroundWrapper, backgroundImages } from './shared-components';
17
17
 
18
18
  const meta = {
19
- title: 'Components/AtomixGlass/Phase 1 - Animation Features',
19
+ title: 'Components/AtomixGlass/Features/Animation Features',
20
20
  component: AtomixGlass,
21
21
  parameters: {
22
22
  layout: 'centered',
@@ -138,8 +138,9 @@ type Story = StoryObj<typeof meta>;
138
138
  export const DefaultAnimation: Story = {
139
139
  args: {
140
140
  children: (
141
- <div style={{ padding: '60px 40px', textAlign: 'center', color: 'white' }}>
141
+ <div className="u-text-center u-text-white" style={{ padding: '60px 40px' }}>
142
142
  <div
143
+ className="u-mb-6"
143
144
  style={{
144
145
  fontSize: '64px',
145
146
  marginBottom: '24px',
@@ -149,6 +150,7 @@ export const DefaultAnimation: Story = {
149
150
 
150
151
  </div>
151
152
  <h2
153
+ className="u-mt-0 u-mb-3 u-text-5xl u-font-bold u-text-gradient-primary"
152
154
  style={{
153
155
  margin: '0 0 12px 0',
154
156
  fontSize: '32px',
@@ -160,7 +162,7 @@ export const DefaultAnimation: Story = {
160
162
  >
161
163
  Time-Based Animation
162
164
  </h2>
163
- <p style={{ margin: 0, fontSize: '16px', opacity: 0.9 }}>
165
+ <p className="u-m-0 u-text-base u-opacity-90">
164
166
  Organic liquid glass effect with continuous flow
165
167
  </p>
166
168
  </div>
@@ -193,11 +195,11 @@ export const DefaultAnimation: Story = {
193
195
  export const BreathingEffect: Story = {
194
196
  args: {
195
197
  children: (
196
- <div style={{ padding: '40px', textAlign: 'center', color: 'white' }}>
197
- <h2 style={{ margin: '0 0 8px 0', fontSize: '24px', fontWeight: 600 }}>
198
+ <div className="u-text-center u-text-white" style={{ padding: '40px' }}>
199
+ <h2 className="u-mt-0 u-mb-2 u-text-xl u-font-semibold">
198
200
  Breathing Glass
199
201
  </h2>
200
- <p style={{ margin: 0, fontSize: '14px', opacity: 0.8 }}>
202
+ <p className="u-m-0 u-text-sm u-opacity-80">
201
203
  Subtle pulse animation
202
204
  </p>
203
205
  </div>
@@ -229,8 +231,9 @@ export const BreathingEffect: Story = {
229
231
  export const UltraDistortion: Story = {
230
232
  args: {
231
233
  children: (
232
- <div style={{ padding: '60px 40px', textAlign: 'center', color: 'white' }}>
234
+ <div className="u-text-center u-text-white" style={{ padding: '60px 40px' }}>
233
235
  <div
236
+ className="u-mx-auto u-mb-6 u-flex u-items-center u-justify-center u-rounded-lg"
234
237
  style={{
235
238
  width: '80px',
236
239
  height: '80px',
@@ -246,10 +249,10 @@ export const UltraDistortion: Story = {
246
249
  >
247
250
  🌊
248
251
  </div>
249
- <h2 style={{ margin: '0 0 8px 0', fontSize: '28px', fontWeight: 700 }}>
252
+ <h2 className="u-mt-0 u-mb-2 u-text-2xl u-font-bold">
250
253
  Ultra Distortion
251
254
  </h2>
252
- <p style={{ margin: 0, fontSize: '14px', opacity: 0.8 }}>
255
+ <p className="u-m-0 u-text-xs u-opacity-80">
253
256
  7 octaves of FBM complexity
254
257
  </p>
255
258
  </div>
@@ -285,14 +288,15 @@ export const UltraDistortion: Story = {
285
288
  export const MobileOptimized: Story = {
286
289
  args: {
287
290
  children: (
288
- <div style={{ padding: '40px 32px', color: 'white' }}>
289
- <h3 style={{ margin: '0 0 8px 0', fontSize: '20px', fontWeight: 600 }}>
291
+ <div className="u-text-white" style={{ padding: '40px 32px' }}>
292
+ <h3 className="u-mt-0 u-mb-2 u-text-lg u-font-semibold">
290
293
  Mobile Optimized
291
294
  </h3>
292
- <p style={{ margin: 0, fontSize: '13px', opacity: 0.85 }}>
295
+ <p className="u-m-0 u-text-xs u-opacity-85">
293
296
  2 octaves • Low power
294
297
  </p>
295
298
  <div
299
+ className="u-mt-4 u-p-3 u-bg-white/10 u-rounded-md u-text-xs"
296
300
  style={{
297
301
  marginTop: '16px',
298
302
  padding: '12px',
@@ -334,8 +338,9 @@ export const MobileOptimized: Story = {
334
338
  export const SlowMotion: Story = {
335
339
  args: {
336
340
  children: (
337
- <div style={{ padding: '60px 40px', textAlign: 'center', color: 'white' }}>
341
+ <div className="u-text-center u-text-white" style={{ padding: '60px 40px' }}>
338
342
  <div
343
+ className="u-text-6xl u-mb-5"
339
344
  style={{
340
345
  fontSize: '56px',
341
346
  marginBottom: '20px',
@@ -343,10 +348,10 @@ export const SlowMotion: Story = {
343
348
  >
344
349
  🧘
345
350
  </div>
346
- <h2 style={{ margin: '0 0 12px 0', fontSize: '28px', fontWeight: 600 }}>
351
+ <h2 className="u-mt-0 u-mb-3 u-text-2xl u-font-semibold">
347
352
  Slow Motion
348
353
  </h2>
349
- <p style={{ margin: 0, fontSize: '15px', opacity: 0.9 }}>
354
+ <p className="u-m-0 u-text-base u-opacity-90">
350
355
  Calming 0.3x speed
351
356
  </p>
352
357
  </div>
@@ -379,8 +384,9 @@ export const SlowMotion: Story = {
379
384
  export const FastFlow: Story = {
380
385
  args: {
381
386
  children: (
382
- <div style={{ padding: '60px 40px', textAlign: 'center', color: 'white' }}>
387
+ <div className="u-text-center u-text-white" style={{ padding: '60px 40px' }}>
383
388
  <div
389
+ className="u-text-6xl u-mb-5"
384
390
  style={{
385
391
  fontSize: '56px',
386
392
  marginBottom: '20px',
@@ -388,10 +394,10 @@ export const FastFlow: Story = {
388
394
  >
389
395
 
390
396
  </div>
391
- <h2 style={{ margin: '0 0 12px 0', fontSize: '28px', fontWeight: 700 }}>
397
+ <h2 className="u-mt-0 u-mb-3 u-text-2xl u-font-bold">
392
398
  Fast Flow
393
399
  </h2>
394
- <p style={{ margin: 0, fontSize: '15px', opacity: 0.9 }}>
400
+ <p className="u-m-0 u-text-base u-opacity-90">
395
401
  Energetic 2.5x speed
396
402
  </p>
397
403
  </div>
@@ -424,11 +430,11 @@ export const FastFlow: Story = {
424
430
  export const NoAnimation: Story = {
425
431
  args: {
426
432
  children: (
427
- <div style={{ padding: '40px', textAlign: 'center', color: 'white' }}>
428
- <h2 style={{ margin: '0 0 8px 0', fontSize: '24px', fontWeight: 600 }}>
433
+ <div className="u-text-center u-text-white" style={{ padding: '40px' }}>
434
+ <h2 className="u-mt-0 u-mb-2 u-text-xl u-font-semibold">
429
435
  Static Glass
430
436
  </h2>
431
- <p style={{ margin: 0, fontSize: '14px', opacity: 0.8 }}>
437
+ <p className="u-m-0 u-text-sm u-opacity-80">
432
438
  Time animations disabled
433
439
  </p>
434
440
  </div>
@@ -436,7 +442,7 @@ export const NoAnimation: Story = {
436
442
  withTimeAnimation: false,
437
443
  withMultiLayerDistortion: false,
438
444
  mode: 'standard',
439
- displacementScale: 50,
445
+ displacementScale: 40,
440
446
  blurAmount: 2,
441
447
  saturation: 140,
442
448
  borderRadius: 20,
@@ -459,11 +465,11 @@ export const NoAnimation: Story = {
459
465
  export const CustomFBMParameters: Story = {
460
466
  args: {
461
467
  children: (
462
- <div style={{ padding: '60px 40px', color: 'white' }}>
463
- <h2 style={{ margin: '0 0 12px 0', fontSize: '26px', fontWeight: 700 }}>
468
+ <div className="u-text-white" style={{ padding: '60px 40px' }}>
469
+ <h2 className="u-mt-0 u-mb-3 u-text-2xl u-font-bold">
464
470
  Custom FBM
465
471
  </h2>
466
- <div style={{ fontSize: '13px', opacity: 0.85, lineHeight: 1.8 }}>
472
+ <div className="u-text-sm u-opacity-85 u-leading-relaxed">
467
473
  <div>Octaves: 6</div>
468
474
  <div>Lacunarity: 2.5</div>
469
475
  <div>Gain: 0.65</div>
@@ -501,12 +507,12 @@ export const CustomFBMParameters: Story = {
501
507
  export const AccessibilityReducedMotion: Story = {
502
508
  args: {
503
509
  children: (
504
- <div style={{ padding: '40px', textAlign: 'center', color: 'white' }}>
505
- <div style={{ fontSize: '48px', marginBottom: '16px' }}>♿</div>
506
- <h2 style={{ margin: '0 0 8px 0', fontSize: '22px', fontWeight: 600 }}>
510
+ <div className="u-text-center u-text-white" style={{ padding: '40px' }}>
511
+ <div className="u-text-5xl u-mb-4">♿</div>
512
+ <h2 className="u-mt-0 u-mb-2 u-text-lg u-font-semibold">
507
513
  Reduced Motion
508
514
  </h2>
509
- <p style={{ margin: 0, fontSize: '14px', opacity: 0.8 }}>
515
+ <p className="u-m-0 u-text-sm u-opacity-80">
510
516
  Respects accessibility preferences
511
517
  </p>
512
518
  </div>
@@ -537,7 +543,7 @@ export const AccessibilityReducedMotion: Story = {
537
543
  */
538
544
  export const PerformanceComparison: Story = {
539
545
  render: () => (
540
- <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: '24px', maxWidth: '900px' }}>
546
+ <div className="u-grid u-gap-6" style={{ gridTemplateColumns: 'repeat(2, 1fr)' }}>
541
547
  {/* Low Quality */}
542
548
  <div>
543
549
  <AtomixGlass
@@ -552,12 +558,12 @@ export const PerformanceComparison: Story = {
552
558
  borderRadius={20}
553
559
  height={200}
554
560
  >
555
- <div style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
556
- <div style={{ fontSize: '32px', marginBottom: '12px' }}>📱</div>
557
- <h3 style={{ margin: '0 0 4px 0', fontSize: '16px', fontWeight: 600 }}>
561
+ <div className="u-p-6 u-text-center u-text-white" style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
562
+ <div className="u-text-4xl u-mb-3">📱</div>
563
+ <h3 className="u-mt-0 u-mb-1 u-text-sm u-font-semibold">
558
564
  Low
559
565
  </h3>
560
- <p style={{ margin: 0, fontSize: '11px', opacity: 0.8 }}>
566
+ <p className="u-m-0 u-text-xs u-opacity-80">
561
567
  2 octaves • Mobile
562
568
  </p>
563
569
  </div>
@@ -578,12 +584,12 @@ export const PerformanceComparison: Story = {
578
584
  borderRadius={20}
579
585
  height={200}
580
586
  >
581
- <div style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
582
- <div style={{ fontSize: '32px', marginBottom: '12px' }}>💻</div>
583
- <h3 style={{ margin: '0 0 4px 0', fontSize: '16px', fontWeight: 600 }}>
587
+ <div className="u-p-6 u-text-center u-text-white" style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
588
+ <div className="u-text-4xl u-mb-3">💻</div>
589
+ <h3 className="u-mt-0 u-mb-1 u-text-sm u-font-semibold">
584
590
  Medium
585
591
  </h3>
586
- <p style={{ margin: 0, fontSize: '11px', opacity: 0.8 }}>
592
+ <p className="u-m-0 u-text-xs u-opacity-80">
587
593
  4 octaves • Tablet
588
594
  </p>
589
595
  </div>
@@ -604,12 +610,12 @@ export const PerformanceComparison: Story = {
604
610
  borderRadius={20}
605
611
  height={200}
606
612
  >
607
- <div style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
608
- <div style={{ fontSize: '32px', marginBottom: '12px' }}>🖥️</div>
609
- <h3 style={{ margin: '0 0 4px 0', fontSize: '16px', fontWeight: 600 }}>
613
+ <div className="u-p-6 u-text-center u-text-white" style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
614
+ <div className="u-text-4xl u-mb-3">🖥️</div>
615
+ <h3 className="u-mt-0 u-mb-1 u-text-sm u-font-semibold">
610
616
  High
611
617
  </h3>
612
- <p style={{ margin: 0, fontSize: '11px', opacity: 0.8 }}>
618
+ <p className="u-m-0 u-text-xs u-opacity-80">
613
619
  5 octaves • Desktop
614
620
  </p>
615
621
  </div>
@@ -630,12 +636,12 @@ export const PerformanceComparison: Story = {
630
636
  borderRadius={20}
631
637
  height={200}
632
638
  >
633
- <div style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
634
- <div style={{ fontSize: '32px', marginBottom: '12px' }}>🚀</div>
635
- <h3 style={{ margin: '0 0 4px 0', fontSize: '16px', fontWeight: 600 }}>
639
+ <div className="u-p-6 u-text-center u-text-white" style={{ padding: '24px', color: 'white', textAlign: 'center' }}>
640
+ <div className="u-text-4xl u-mb-3">🚀</div>
641
+ <h3 className="u-mt-0 u-mb-1 u-text-sm u-font-semibold">
636
642
  Ultra
637
643
  </h3>
638
- <p style={{ margin: 0, fontSize: '11px', opacity: 0.8 }}>
644
+ <p className="u-m-0 u-text-xs u-opacity-80">
639
645
  7 octaves • High-end
640
646
  </p>
641
647
  </div>