@shohojdhara/atomix 0.4.1 → 0.4.2

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 (126) hide show
  1. package/dist/atomix.css +9341 -9249
  2. package/dist/atomix.css.map +1 -1
  3. package/dist/atomix.min.css +4 -4
  4. package/dist/atomix.min.css.map +1 -1
  5. package/dist/charts.d.ts +12 -19
  6. package/dist/charts.js +555 -358
  7. package/dist/charts.js.map +1 -1
  8. package/dist/core.d.ts +16 -23
  9. package/dist/core.js +418 -262
  10. package/dist/core.js.map +1 -1
  11. package/dist/forms.d.ts +11 -18
  12. package/dist/forms.js +411 -257
  13. package/dist/forms.js.map +1 -1
  14. package/dist/heavy.d.ts +14 -21
  15. package/dist/heavy.js +408 -254
  16. package/dist/heavy.js.map +1 -1
  17. package/dist/index.d.ts +33 -40
  18. package/dist/index.esm.js +663 -453
  19. package/dist/index.esm.js.map +1 -1
  20. package/dist/index.js +667 -460
  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 +1 -1
  25. package/scripts/atomix-cli.js +34 -1
  26. package/src/components/AtomixGlass/AtomixGlass.tsx +82 -54
  27. package/src/components/AtomixGlass/AtomixGlassContainer.tsx +17 -18
  28. package/src/components/AtomixGlass/README.md +5 -5
  29. package/src/components/AtomixGlass/stories/Customization.stories.tsx +2 -2
  30. package/src/components/AtomixGlass/stories/Examples.stories.tsx +42 -42
  31. package/src/components/AtomixGlass/stories/Modes.stories.tsx +5 -5
  32. package/src/components/AtomixGlass/stories/Overview.stories.tsx +3 -3
  33. package/src/components/AtomixGlass/stories/Performance.stories.tsx +2 -2
  34. package/src/components/AtomixGlass/stories/Playground.stories.tsx +45 -45
  35. package/src/components/AtomixGlass/stories/Shaders.stories.tsx +3 -3
  36. package/src/components/Badge/Badge.stories.tsx +1 -1
  37. package/src/components/Badge/Badge.tsx +1 -1
  38. package/src/components/Breadcrumb/Breadcrumb.tsx +90 -76
  39. package/src/components/Breadcrumb/index.ts +2 -2
  40. package/src/components/Button/Button.stories.tsx +1 -1
  41. package/src/components/Button/README.md +2 -2
  42. package/src/components/Callout/Callout.test.tsx +3 -3
  43. package/src/components/Callout/Callout.tsx +2 -2
  44. package/src/components/Callout/README.md +2 -2
  45. package/src/components/Chart/Chart.stories.tsx +1 -1
  46. package/src/components/Chart/Chart.tsx +5 -5
  47. package/src/components/Chart/TreemapChart.tsx +37 -29
  48. package/src/components/DatePicker/readme.md +3 -3
  49. package/src/components/Dropdown/Dropdown.stories.tsx +1 -1
  50. package/src/components/EdgePanel/EdgePanel.stories.tsx +7 -7
  51. package/src/components/Form/Checkbox.stories.tsx +1 -1
  52. package/src/components/Form/Checkbox.tsx +1 -1
  53. package/src/components/Form/Input.stories.tsx +1 -1
  54. package/src/components/Form/Input.tsx +1 -1
  55. package/src/components/Form/Radio.stories.tsx +1 -1
  56. package/src/components/Form/Radio.tsx +1 -1
  57. package/src/components/Form/Select.stories.tsx +1 -1
  58. package/src/components/Form/Select.tsx +1 -1
  59. package/src/components/Form/Textarea.stories.tsx +1 -1
  60. package/src/components/Form/Textarea.tsx +1 -1
  61. package/src/components/Hero/Hero.stories.tsx +2 -2
  62. package/src/components/Hero/Hero.tsx +2 -2
  63. package/src/components/Messages/Messages.stories.tsx +1 -1
  64. package/src/components/Messages/Messages.tsx +2 -2
  65. package/src/components/Modal/Modal.stories.tsx +1 -1
  66. package/src/components/Navigation/Nav/Nav.stories.tsx +2 -2
  67. package/src/components/Navigation/Nav/Nav.tsx +1 -1
  68. package/src/components/Navigation/Navbar/Navbar.stories.tsx +3 -3
  69. package/src/components/Navigation/Navbar/Navbar.tsx +1 -1
  70. package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +2 -2
  71. package/src/components/Navigation/SideMenu/SideMenu.tsx +1 -1
  72. package/src/components/Pagination/Pagination.stories.tsx +1 -1
  73. package/src/components/Pagination/Pagination.tsx +1 -1
  74. package/src/components/Popover/Popover.stories.tsx +1 -1
  75. package/src/components/Popover/Popover.tsx +1 -1
  76. package/src/components/Progress/Progress.tsx +1 -1
  77. package/src/components/Rating/Rating.stories.tsx +1 -1
  78. package/src/components/Rating/Rating.test.tsx +73 -0
  79. package/src/components/Rating/Rating.tsx +25 -37
  80. package/src/components/Spinner/Spinner.tsx +1 -1
  81. package/src/components/Steps/Steps.stories.tsx +1 -1
  82. package/src/components/Steps/Steps.tsx +2 -2
  83. package/src/components/Tabs/Tabs.stories.tsx +1 -1
  84. package/src/components/Tabs/Tabs.tsx +1 -1
  85. package/src/components/Todo/Todo.tsx +0 -1
  86. package/src/components/Toggle/Toggle.stories.tsx +1 -1
  87. package/src/components/Toggle/Toggle.tsx +1 -1
  88. package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
  89. package/src/components/VideoPlayer/VideoPlayer.stories.tsx +2 -2
  90. package/src/lib/composables/__tests__/useAtomixGlassPerf.test.tsx +88 -0
  91. package/src/lib/composables/__tests__/useChart.test.ts +50 -0
  92. package/src/lib/composables/__tests__/useChart.test.tsx +139 -0
  93. package/src/lib/composables/__tests__/useHeroBackgroundSlider.test.tsx +59 -0
  94. package/src/lib/composables/__tests__/useSliderAutoplay.test.tsx +68 -0
  95. package/src/lib/composables/atomix-glass/useGlassBackgroundDetection.ts +329 -0
  96. package/src/lib/composables/atomix-glass/useGlassCornerRadius.ts +82 -0
  97. package/src/lib/composables/atomix-glass/useGlassMouseTracking.ts +153 -0
  98. package/src/lib/composables/atomix-glass/useGlassOverLight.ts +198 -0
  99. package/src/lib/composables/atomix-glass/useGlassSize.ts +117 -0
  100. package/src/lib/composables/atomix-glass/useGlassState.ts +112 -0
  101. package/src/lib/composables/atomix-glass/useGlassTransforms.ts +160 -0
  102. package/src/lib/composables/glass-styles.ts +302 -0
  103. package/src/lib/composables/index.ts +0 -4
  104. package/src/lib/composables/useAtomixGlass.ts +331 -522
  105. package/src/lib/composables/useAtomixGlassStyles.ts +307 -0
  106. package/src/lib/composables/useBarChart.ts +1 -1
  107. package/src/lib/composables/useBreadcrumb.ts +6 -6
  108. package/src/lib/composables/useChart.ts +104 -21
  109. package/src/lib/composables/useHeroBackgroundSlider.ts +16 -7
  110. package/src/lib/composables/useSlider.ts +66 -34
  111. package/src/lib/theme/devtools/CLI.ts +1 -1
  112. package/src/lib/theme/utils/__tests__/themeUtils.test.ts +213 -0
  113. package/src/lib/types/components.ts +13 -21
  114. package/src/lib/utils/__tests__/dom.test.ts +100 -0
  115. package/src/lib/utils/__tests__/fontPreloader.test.ts +102 -0
  116. package/src/styles/02-tools/_tools.breakpoints.scss +1 -1
  117. package/src/styles/02-tools/_tools.utility-api.scss +6 -6
  118. package/src/styles/06-components/_components.accordion.scss +0 -2
  119. package/src/styles/06-components/_components.chart.scss +0 -1
  120. package/src/styles/06-components/_components.dropdown.scss +0 -1
  121. package/src/styles/06-components/_components.edge-panel.scss +0 -2
  122. package/src/styles/06-components/_components.photoviewer.scss +0 -1
  123. package/src/styles/06-components/_components.river.scss +0 -1
  124. package/src/styles/06-components/_components.slider.scss +0 -3
  125. package/src/styles/99-utilities/_utilities.glass-fixes.scss +0 -1
  126. package/src/styles/99-utilities/_utilities.text.scss +1 -0
@@ -55,7 +55,7 @@ export const HeroExample: Story = {
55
55
  <AtomixGlass
56
56
  displacementScale={100}
57
57
  blurAmount={1}
58
- cornerRadius={30}
58
+ borderRadius={30}
59
59
  mode="shader"
60
60
  shaderVariant="premiumGlass"
61
61
  onClick={() => {}}
@@ -144,7 +144,7 @@ export const VideoBackground: Story = {
144
144
  blurAmount: 0,
145
145
  saturation: 150,
146
146
  aberrationIntensity: 0,
147
- cornerRadius: 24,
147
+ borderRadius: 24,
148
148
  mode: 'standard' as const,
149
149
  });
150
150
 
@@ -196,7 +196,7 @@ export const VideoBackground: Story = {
196
196
  blurAmount={glassSettings.blurAmount}
197
197
  saturation={glassSettings.saturation}
198
198
  aberrationIntensity={glassSettings.aberrationIntensity}
199
- cornerRadius={glassSettings.cornerRadius}
199
+ borderRadius={glassSettings.borderRadius}
200
200
  mode={glassSettings.mode}
201
201
  style={{ width: '400px', maxWidth: '100%' }}
202
202
  >
@@ -229,7 +229,7 @@ export const VideoBackground: Story = {
229
229
  blurAmount={0.06}
230
230
  saturation={120}
231
231
  aberrationIntensity={1.5}
232
- cornerRadius={16}
232
+ borderRadius={16}
233
233
  mode="standard"
234
234
  style={{ width: '300px', maxWidth: '100%' }}
235
235
  >
@@ -298,14 +298,14 @@ export const VideoBackground: Story = {
298
298
 
299
299
  <div style={{ marginBottom: '16px' }}>
300
300
  <label style={{ display: 'block', fontSize: '14px', marginBottom: '6px' }}>
301
- Corner Radius: {glassSettings.cornerRadius}px
301
+ Corner Radius: {glassSettings.borderRadius}px
302
302
  </label>
303
303
  <input
304
304
  type="range"
305
305
  min="0"
306
306
  max="100"
307
- value={glassSettings.cornerRadius}
308
- onChange={e => updateSettings('cornerRadius', parseInt(e.target.value))}
307
+ value={glassSettings.borderRadius}
308
+ onChange={e => updateSettings('borderRadius', parseInt(e.target.value))}
309
309
  style={{ width: '100%', accentColor: '#6366f1' }}
310
310
  />
311
311
  </div>
@@ -319,7 +319,7 @@ export const VideoBackground: Story = {
319
319
  blurAmount: 0.08,
320
320
  saturation: 150,
321
321
  aberrationIntensity: 2.5,
322
- cornerRadius: 24,
322
+ borderRadius: 24,
323
323
  mode: 'standard',
324
324
  });
325
325
  }}
@@ -398,7 +398,7 @@ export const DashboardCards: Story = {
398
398
  displacementScale={30}
399
399
  blurAmount={5}
400
400
  saturation={140}
401
- cornerRadius={20}
401
+ borderRadius={20}
402
402
  mode="standard"
403
403
  padding="24px 32px"
404
404
  >
@@ -461,7 +461,7 @@ export const DashboardCards: Story = {
461
461
  blurAmount={selectedCard === index ? 1.5 : 1}
462
462
  saturation={selectedCard === index ? 132 : 130}
463
463
  aberrationIntensity={selectedCard === index ? 2 : 1}
464
- cornerRadius={16}
464
+ borderRadius={16}
465
465
  mode="standard"
466
466
  >
467
467
  <div className="u-p-4">
@@ -654,7 +654,7 @@ export const ProductCard: Story = {
654
654
  <Button
655
655
  onClick={handleAddToCart}
656
656
  variant="primary"
657
- glass={{ cornerRadius: 8 }}
657
+ glass={{ borderRadius: 8 }}
658
658
  size="sm"
659
659
  style={{ width: '100%' }}
660
660
  icon={addedToCart ? <Icon name="Check" /> : <Icon name="ShoppingCart" />}
@@ -935,7 +935,7 @@ export const LoginForm: Story = {
935
935
  blurAmount={1}
936
936
  saturation={130}
937
937
  aberrationIntensity={2}
938
- cornerRadius={24}
938
+ borderRadius={24}
939
939
  mode="standard"
940
940
  >
941
941
  <div className="u-p-4">
@@ -1214,13 +1214,13 @@ export const MusicPlayer: Story = {
1214
1214
  <AtomixGlass
1215
1215
  displacementScale={55}
1216
1216
  blurAmount={3}
1217
- cornerRadius={28}
1217
+ borderRadius={28}
1218
1218
  elasticity={0.01}
1219
1219
  mode="standard"
1220
1220
  >
1221
1221
  <div className="u-p-3">
1222
1222
  {/* Album Art */}
1223
- <AtomixGlass displacementScale={0} blurAmount={0} cornerRadius={20} mode="standard">
1223
+ <AtomixGlass displacementScale={0} blurAmount={0} borderRadius={20} mode="standard">
1224
1224
  <div
1225
1225
  style={{
1226
1226
  aspectRatio: '1:2',
@@ -1568,7 +1568,7 @@ export const PricingTable: Story = {
1568
1568
 
1569
1569
  {/* Billing Toggle */}
1570
1570
  <div style={{ width: '100%', maxWidth: '200px', margin: '0 auto' }}>
1571
- <AtomixGlass blurAmount={1} saturation={120} cornerRadius={50} mode="standard">
1571
+ <AtomixGlass blurAmount={1} saturation={120} borderRadius={50} mode="standard">
1572
1572
  <button
1573
1573
  onClick={() => setBillingCycle('monthly')}
1574
1574
  style={{
@@ -1632,7 +1632,7 @@ export const PricingTable: Story = {
1632
1632
  blurAmount={1}
1633
1633
  saturation={plan.popular ? 180 : 130}
1634
1634
  aberrationIntensity={plan.popular ? 2 : 1.5}
1635
- cornerRadius={24}
1635
+ borderRadius={24}
1636
1636
  elasticity={0.01}
1637
1637
  mode="standard"
1638
1638
  >
@@ -1865,7 +1865,7 @@ export const ChatInterface: Story = {
1865
1865
  <AtomixGlass
1866
1866
  displacementScale={100}
1867
1867
  blurAmount={1}
1868
- cornerRadius={24}
1868
+ borderRadius={24}
1869
1869
  elasticity={0.1}
1870
1870
  mode="prominent"
1871
1871
  >
@@ -2137,7 +2137,7 @@ export const ChatInterface: Story = {
2137
2137
  size="md"
2138
2138
  iconOnly
2139
2139
  glass={{
2140
- cornerRadius: 100,
2140
+ borderRadius: 100,
2141
2141
  }}
2142
2142
  rounded
2143
2143
  icon={<Icon name="PaperPlaneTilt" />}
@@ -2221,7 +2221,7 @@ export const ProfileCard: Story = {
2221
2221
  <AtomixGlass
2222
2222
  displacementScale={45}
2223
2223
  blurAmount={5}
2224
- cornerRadius={24}
2224
+ borderRadius={24}
2225
2225
  mode="standard"
2226
2226
  elasticity={0.05}
2227
2227
  onClick={() => {}}
@@ -2452,7 +2452,7 @@ export const ProfileCard: Story = {
2452
2452
  >
2453
2453
  <AtomixGlass
2454
2454
  blurAmount={0.8}
2455
- cornerRadius={16}
2455
+ borderRadius={16}
2456
2456
  elasticity={0}
2457
2457
  mode="standard"
2458
2458
  style={{
@@ -2530,7 +2530,7 @@ export const SettingsPanel: Story = {
2530
2530
  height="90vh"
2531
2531
  >
2532
2532
  <div className="u-mx-auto u-py-6" style={{ maxWidth: '550px' }}>
2533
- <AtomixGlass displacementScale={45} blurAmount={1} cornerRadius={24} mode="standard">
2533
+ <AtomixGlass displacementScale={45} blurAmount={1} borderRadius={24} mode="standard">
2534
2534
  <div style={{ padding: '32px' }}>
2535
2535
  {/* Header */}
2536
2536
  <div className="u-mb-5">
@@ -2939,7 +2939,7 @@ export const EventCard: Story = {
2939
2939
  height="90vh"
2940
2940
  >
2941
2941
  <div className="u-mx-auto u-py-6" style={{ maxWidth: '480px' }}>
2942
- <AtomixGlass displacementScale={45} blurAmount={4} cornerRadius={24} mode="standard">
2942
+ <AtomixGlass displacementScale={45} blurAmount={4} borderRadius={24} mode="standard">
2943
2943
  {/* Event Image */}
2944
2944
  <div
2945
2945
  style={{
@@ -3317,7 +3317,7 @@ export const SocialMediaPost: Story = {
3317
3317
  <AtomixGlass
3318
3318
  displacementScale={200}
3319
3319
  blurAmount={5}
3320
- cornerRadius={24}
3320
+ borderRadius={24}
3321
3321
  mode="standard"
3322
3322
  elasticity={0}
3323
3323
  >
@@ -3374,7 +3374,7 @@ export const SocialMediaPost: Story = {
3374
3374
  </div>
3375
3375
  <Button
3376
3376
  glass={{
3377
- cornerRadius: 8,
3377
+ borderRadius: 8,
3378
3378
  }}
3379
3379
  size="sm"
3380
3380
  icon={<Icon name="DotsThree" />}
@@ -3680,7 +3680,7 @@ export const WeatherWidget: Story = {
3680
3680
  displacementScale={60}
3681
3681
  blurAmount={1.1}
3682
3682
  saturation={190}
3683
- cornerRadius={32}
3683
+ borderRadius={32}
3684
3684
  mode="standard"
3685
3685
  elasticity={0}
3686
3686
  >
@@ -3958,7 +3958,7 @@ export const SearchResults: Story = {
3958
3958
  <AtomixGlass
3959
3959
  displacementScale={30}
3960
3960
  blurAmount={2}
3961
- cornerRadius={30}
3961
+ borderRadius={30}
3962
3962
  mode="standard"
3963
3963
  onClick={() => {}}
3964
3964
  elasticity={0}
@@ -4202,7 +4202,7 @@ export const PaymentForm: Story = {
4202
4202
  displacementScale={120}
4203
4203
  blurAmount={2}
4204
4204
  saturation={180}
4205
- cornerRadius={28}
4205
+ borderRadius={28}
4206
4206
  mode="standard"
4207
4207
  shaderVariant="premiumGlass"
4208
4208
  elasticity={0}
@@ -4586,7 +4586,7 @@ export const NewsletterSubscription: Story = {
4586
4586
  <AtomixGlass
4587
4587
  displacementScale={100}
4588
4588
  blurAmount={3}
4589
- cornerRadius={32}
4589
+ borderRadius={32}
4590
4590
  mode="standard"
4591
4591
  elasticity={0}
4592
4592
  >
@@ -4855,7 +4855,7 @@ export const ProgressTracker: Story = {
4855
4855
  displacementScale={28}
4856
4856
  blurAmount={18}
4857
4857
  saturation={1.15}
4858
- cornerRadius={30}
4858
+ borderRadius={30}
4859
4859
  mode="standard"
4860
4860
  >
4861
4861
  <div className="u-p-5" style={{ minWidth: '550px', maxWidth: '700px' }}>
@@ -5210,7 +5210,7 @@ export const MobileUIExample: Story = {
5210
5210
  <AtomixGlass
5211
5211
  displacementScale={60}
5212
5212
  blurAmount={0}
5213
- cornerRadius={24}
5213
+ borderRadius={24}
5214
5214
  mode="prominent"
5215
5215
  onClick={() => null}
5216
5216
  >
@@ -5275,7 +5275,7 @@ export const MobileUIExample: Story = {
5275
5275
  blurAmount={0}
5276
5276
  saturation={185}
5277
5277
  elasticity={0.2}
5278
- cornerRadius={30}
5278
+ borderRadius={30}
5279
5279
  mode="standard"
5280
5280
  onClick={() => null}
5281
5281
  >
@@ -5352,7 +5352,7 @@ export const MobileUIExample: Story = {
5352
5352
  <AtomixGlass
5353
5353
  displacementScale={220}
5354
5354
  blurAmount={0}
5355
- cornerRadius={15}
5355
+ borderRadius={15}
5356
5356
  mode="shader"
5357
5357
  onClick={() => null}
5358
5358
  >
@@ -5398,7 +5398,7 @@ export const MobileUIExample: Story = {
5398
5398
  <AtomixGlass
5399
5399
  displacementScale={60}
5400
5400
  blurAmount={0}
5401
- cornerRadius={15}
5401
+ borderRadius={15}
5402
5402
  onClick={() => null}
5403
5403
  >
5404
5404
  <div
@@ -5445,7 +5445,7 @@ export const MobileUIExample: Story = {
5445
5445
  <AtomixGlass
5446
5446
  displacementScale={60}
5447
5447
  blurAmount={0}
5448
- cornerRadius={15}
5448
+ borderRadius={15}
5449
5449
  mode="standard"
5450
5450
  onClick={() => null}
5451
5451
  >
@@ -5566,7 +5566,7 @@ export const MobileUIExample: Story = {
5566
5566
  blurAmount={0}
5567
5567
  saturation={180}
5568
5568
  elasticity={0.16}
5569
- cornerRadius={15}
5569
+ borderRadius={15}
5570
5570
  mode="standard"
5571
5571
  onClick={() => null}
5572
5572
  >
@@ -5635,7 +5635,7 @@ export const MobileUIExample: Story = {
5635
5635
  displacementScale={60}
5636
5636
  blurAmount={1}
5637
5637
  saturation={130}
5638
- cornerRadius={24}
5638
+ borderRadius={24}
5639
5639
  elasticity={0.1}
5640
5640
  style={{ marginBottom: '24px', display: 'inline-block' }}
5641
5641
  >
@@ -5698,7 +5698,7 @@ export const MobileUIExample: Story = {
5698
5698
  blurAmount={1}
5699
5699
  saturation={180}
5700
5700
  elasticity={0}
5701
- cornerRadius={26}
5701
+ borderRadius={26}
5702
5702
  mode="shader"
5703
5703
  shaderVariant="premiumGlass"
5704
5704
  onClick={() => null}
@@ -5730,7 +5730,7 @@ export const MobileUIExample: Story = {
5730
5730
  <AtomixGlass
5731
5731
  displacementScale={25}
5732
5732
  elasticity={0}
5733
- cornerRadius={18}
5733
+ borderRadius={18}
5734
5734
  mode="shader"
5735
5735
  shaderVariant="premiumGlass"
5736
5736
  onClick={() => null}
@@ -5938,7 +5938,7 @@ export const AppleInspiredUI: Story = {
5938
5938
  displacementScale={70}
5939
5939
  blurAmount={0}
5940
5940
  saturation={150}
5941
- cornerRadius={8}
5941
+ borderRadius={8}
5942
5942
  mode="shader"
5943
5943
  shaderVariant="premiumGlass"
5944
5944
  elasticity={0}
@@ -6058,7 +6058,7 @@ export const AppleInspiredUI: Story = {
6058
6058
  displacementScale={50}
6059
6059
  blurAmount={2}
6060
6060
  shaderVariant="premiumGlass"
6061
- cornerRadius={24}
6061
+ borderRadius={24}
6062
6062
  mode="shader"
6063
6063
  elasticity={0}
6064
6064
  >
@@ -6144,7 +6144,7 @@ export const AppleInspiredUI: Story = {
6144
6144
  blurAmount={5}
6145
6145
  saturation={130}
6146
6146
  aberrationIntensity={1}
6147
- cornerRadius={16}
6147
+ borderRadius={16}
6148
6148
  elasticity={0}
6149
6149
  mode="shader"
6150
6150
  >
@@ -6253,7 +6253,7 @@ export const AppleInspiredUI: Story = {
6253
6253
  blurAmount={2}
6254
6254
  saturation={140}
6255
6255
  aberrationIntensity={1.2}
6256
- cornerRadius={24}
6256
+ borderRadius={24}
6257
6257
  mode="polar"
6258
6258
  style={{ maxWidth: '600px' }}
6259
6259
  >
@@ -150,7 +150,7 @@ export const ModeGallery: Story = {
150
150
  displacementScale={80}
151
151
  blurAmount={1}
152
152
  saturation={130}
153
- cornerRadius={24}
153
+ borderRadius={24}
154
154
  elasticity={0.12}
155
155
  style={{ marginBottom: '24px', display: 'inline-block' }}
156
156
  >
@@ -217,7 +217,7 @@ export const ModeGallery: Story = {
217
217
  aberrationIntensity={mode.settings.aberrationIntensity}
218
218
  shaderVariant={mode.id === 'shader' ? 'premiumGlass' : undefined}
219
219
  elasticity={0}
220
- cornerRadius={24}
220
+ borderRadius={24}
221
221
  onClick={() => setSelectedMode(isSelected ? null : mode.id)}
222
222
  style={{
223
223
  cursor: 'pointer',
@@ -380,7 +380,7 @@ export const ModeGallery: Story = {
380
380
  displacementScale={80}
381
381
  blurAmount={1}
382
382
  saturation={130}
383
- cornerRadius={20}
383
+ borderRadius={20}
384
384
  elasticity={0.12}
385
385
  className="u-mt-8"
386
386
  >
@@ -536,7 +536,7 @@ export const Shader: Story = {
536
536
  saturation: 160,
537
537
  aberrationIntensity: 2.8,
538
538
  elasticity: 0.2,
539
- cornerRadius: 28,
539
+ borderRadius: 28,
540
540
  mode: 'shader',
541
541
  shaderVariant: 'premiumGlass',
542
542
  },
@@ -753,7 +753,7 @@ export const ShaderVariants: Story = {
753
753
  displacementScale={variant.displacementScale}
754
754
  blurAmount={1.5}
755
755
  elasticity={0}
756
- cornerRadius={28}
756
+ borderRadius={28}
757
757
  onClick={() => setActiveVariant(isActive ? null : variant.id)}
758
758
  style={{
759
759
  cursor: 'pointer',
@@ -107,7 +107,7 @@ AtomixGlass is a premium glass morphism component with realistic light refractio
107
107
  | saturation | number | 140 | Saturation percentage for the backdrop |
108
108
  | aberrationIntensity | number | 2 | Chromatic aberration intensity |
109
109
  | elasticity | number | 0.15 | Elasticity factor for mouse interactions |
110
- | cornerRadius | number | 20 | Corner radius in pixels |
110
+ | borderRadius | number | 20 | Corner radius in pixels |
111
111
  | overLight | boolean/object | "auto" | OverLight configuration mode |
112
112
  | mode | "standard/polar/prominent/shader" | "standard" | Glass effect mode |
113
113
  | onClick | function | undefined | Click event handler |
@@ -178,7 +178,7 @@ This component is performance-intensive. Use sparingly and consider performance
178
178
  defaultValue: { summary: '0.15' },
179
179
  },
180
180
  },
181
- cornerRadius: {
181
+ borderRadius: {
182
182
  control: { type: 'range', min: 0, max: 50, step: 1 },
183
183
  description: 'Corner radius in pixels (default: 20)',
184
184
  table: {
@@ -325,7 +325,7 @@ export const WithAllProps: Story = {
325
325
  saturation: 150,
326
326
  aberrationIntensity: 2.5,
327
327
  elasticity: 0.2,
328
- cornerRadius: 24,
328
+ borderRadius: 24,
329
329
  mode: 'standard',
330
330
  overLight: true,
331
331
  padding: '32px', // Increased padding for better visual appearance
@@ -44,7 +44,7 @@ export const OptimizedForMobile: Story = {
44
44
  saturation: 120,
45
45
  aberrationIntensity: 1.0,
46
46
  elasticity: 0.1,
47
- cornerRadius: 16,
47
+ borderRadius: 16,
48
48
  padding: '28px',
49
49
  },
50
50
  render: args => (
@@ -86,7 +86,7 @@ export const WithManyInstances: Story = {
86
86
  saturation={130}
87
87
  aberrationIntensity={1.2}
88
88
  elasticity={0.1}
89
- cornerRadius={16}
89
+ borderRadius={16}
90
90
  padding="28px"
91
91
  className="u-text-center"
92
92
  >