@shohojdhara/atomix 0.2.4 → 0.2.5
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 +19 -0
- package/dist/atomix.css +1266 -1412
- package/dist/atomix.min.css +3 -3
- package/dist/index.d.ts +1232 -876
- package/dist/index.esm.js +16212 -26364
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15652 -22298
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/themes/applemix.css +15008 -0
- package/dist/themes/applemix.min.css +72 -0
- package/dist/themes/boomdevs.css +1266 -1413
- package/dist/themes/boomdevs.min.css +3 -3
- package/dist/themes/esrar.css +1267 -1413
- package/dist/themes/esrar.min.css +3 -3
- package/dist/themes/flashtrade.css +15159 -0
- package/dist/themes/flashtrade.min.css +86 -0
- package/dist/themes/mashroom.css +1264 -1410
- package/dist/themes/mashroom.min.css +5 -5
- package/dist/themes/shaj-default.css +1266 -1412
- package/dist/themes/shaj-default.min.css +3 -3
- package/package.json +6 -17
- package/src/components/Accordion/Accordion.stories.tsx +4 -26
- package/src/components/Accordion/Accordion.tsx +21 -12
- package/src/components/AtomixGlass/AtomixGlass.test.tsx +106 -72
- package/src/components/AtomixGlass/AtomixGlass.tsx +487 -1215
- package/src/components/AtomixGlass/AtomixGlassContainer.tsx +400 -0
- package/src/components/AtomixGlass/GlassFilter.tsx +156 -0
- package/src/components/AtomixGlass/README.md +124 -2
- package/src/components/AtomixGlass/atomixGLass.old.tsx +1266 -0
- package/src/components/AtomixGlass/glass-utils.ts +263 -0
- package/src/components/AtomixGlass/shader-utils.ts +404 -236
- package/src/components/AtomixGlass/{AtomixGlass.stories.tsx → stories/AtomixGlass.stories.tsx} +55 -35
- package/src/components/AtomixGlass/stories/Examples.stories.tsx +57 -89
- package/src/components/AtomixGlass/stories/Modes.stories.tsx +149 -149
- package/src/components/AtomixGlass/stories/Playground.stories.tsx +95 -32
- package/src/components/AtomixGlass/stories/ShaderVariants.stories.tsx +0 -2
- package/src/components/AtomixGlass/stories/shared-components.tsx +9 -18
- package/src/components/AtomixGlass/utils.ts +3 -3
- package/src/components/Avatar/Avatar.tsx +3 -0
- package/src/components/Avatar/AvatarGroup.tsx +2 -1
- package/src/components/Badge/Badge.stories.tsx +74 -54
- package/src/components/Badge/Badge.tsx +8 -12
- package/src/components/Breadcrumb/Breadcrumb.tsx +23 -4
- package/src/components/Button/Button.tsx +3 -5
- package/src/components/Callout/Callout.stories.tsx +86 -35
- package/src/components/Callout/Callout.tsx +4 -0
- package/src/components/Card/Card.stories.tsx +89 -85
- package/src/components/Card/Card.tsx +15 -4
- package/src/components/Card/ElevationCard.tsx +2 -0
- package/src/components/Chart/AnimatedChart.tsx +179 -156
- package/src/components/Chart/AreaChart.tsx +123 -12
- package/src/components/Chart/BarChart.tsx +91 -100
- package/src/components/Chart/BaseChart.tsx +80 -0
- package/src/components/Chart/BubbleChart.tsx +114 -290
- package/src/components/Chart/CandlestickChart.tsx +282 -622
- package/src/components/Chart/Chart.stories.tsx +576 -179
- package/src/components/Chart/Chart.tsx +374 -75
- package/src/components/Chart/ChartRenderer.tsx +371 -220
- package/src/components/Chart/ChartToolbar.tsx +372 -61
- package/src/components/Chart/ChartTooltip.tsx +33 -18
- package/src/components/Chart/DonutChart.tsx +172 -254
- package/src/components/Chart/FunnelChart.tsx +169 -240
- package/src/components/Chart/GaugeChart.tsx +224 -392
- package/src/components/Chart/HeatmapChart.tsx +302 -440
- package/src/components/Chart/LineChart.tsx +148 -103
- package/src/components/Chart/MultiAxisChart.tsx +267 -395
- package/src/components/Chart/PieChart.tsx +114 -64
- package/src/components/Chart/RadarChart.tsx +202 -218
- package/src/components/Chart/ScatterChart.tsx +111 -97
- package/src/components/Chart/TreemapChart.tsx +147 -222
- package/src/components/Chart/WaterfallChart.tsx +253 -291
- package/src/components/Chart/index.ts +11 -9
- package/src/components/Chart/types.ts +85 -9
- package/src/components/Chart/utils.ts +66 -0
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +6 -3
- package/src/components/Countdown/Countdown.tsx +4 -0
- package/src/components/DataTable/DataTable.tsx +2 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -11
- package/src/components/DatePicker/DatePicker.tsx +3 -9
- package/src/components/DatePicker/types.ts +5 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +32 -25
- package/src/components/Dropdown/Dropdown.tsx +26 -28
- package/src/components/EdgePanel/EdgePanel.stories.tsx +13 -15
- package/src/components/EdgePanel/EdgePanel.tsx +20 -5
- package/src/components/Footer/Footer.stories.tsx +187 -60
- package/src/components/Footer/Footer.test.tsx +134 -0
- package/src/components/Footer/Footer.tsx +133 -34
- package/src/components/Footer/FooterLink.tsx +1 -1
- package/src/components/Footer/FooterSection.tsx +53 -36
- package/src/components/Footer/FooterSocialLink.tsx +32 -29
- package/src/components/Footer/README.md +82 -3
- package/src/components/Footer/index.ts +1 -1
- package/src/components/Form/Checkbox.stories.tsx +13 -5
- package/src/components/Form/Checkbox.tsx +3 -6
- package/src/components/Form/Form.stories.tsx +10 -3
- package/src/components/Form/Form.tsx +2 -0
- package/src/components/Form/FormGroup.tsx +2 -1
- package/src/components/Form/Input.stories.tsx +12 -11
- package/src/components/Form/Input.tsx +97 -95
- package/src/components/Form/Radio.stories.tsx +22 -7
- package/src/components/Form/Radio.tsx +3 -6
- package/src/components/Form/Select.stories.tsx +21 -6
- package/src/components/Form/Select.tsx +3 -5
- package/src/components/Form/Textarea.stories.tsx +13 -11
- package/src/components/Form/Textarea.tsx +88 -86
- package/src/components/Hero/Hero.stories.tsx +2 -3
- package/src/components/Hero/Hero.tsx +5 -6
- package/src/components/Icon/Icon.tsx +12 -1
- package/src/components/List/List.tsx +2 -1
- package/src/components/List/ListGroup.tsx +2 -1
- package/src/components/Messages/Messages.tsx +3 -2
- package/src/components/Modal/Modal.stories.tsx +48 -34
- package/src/components/Modal/Modal.tsx +19 -23
- package/src/components/Navigation/Menu/MegaMenu.tsx +2 -2
- package/src/components/Navigation/Menu/Menu.tsx +2 -2
- package/src/components/Navigation/Nav/Nav.tsx +6 -1
- package/src/components/Navigation/Nav/NavDropdown.tsx +10 -1
- package/src/components/Navigation/Navbar/Navbar.tsx +4 -1
- package/src/components/Navigation/SideMenu/SideMenu.tsx +3 -2
- package/src/components/Pagination/Pagination.stories.tsx +13 -6
- package/src/components/Pagination/Pagination.tsx +7 -6
- package/src/components/PhotoViewer/PhotoViewer.tsx +2 -1
- package/src/components/Popover/Popover.stories.tsx +32 -24
- package/src/components/Popover/Popover.tsx +4 -1
- package/src/components/ProductReview/ProductReview.tsx +8 -2
- package/src/components/Progress/Progress.tsx +2 -1
- package/src/components/Rating/Rating.stories.tsx +11 -6
- package/src/components/Rating/Rating.tsx +3 -5
- package/src/components/River/River.tsx +5 -5
- package/src/components/SectionIntro/SectionIntro.tsx +8 -2
- package/src/components/Slider/Slider.stories.tsx +4 -4
- package/src/components/Slider/Slider.tsx +4 -3
- package/src/components/Spinner/Spinner.tsx +2 -1
- package/src/components/Steps/Steps.stories.tsx +5 -4
- package/src/components/Steps/Steps.tsx +8 -5
- package/src/components/Tab/Tab.stories.tsx +4 -3
- package/src/components/Tab/Tab.tsx +8 -6
- package/src/components/Testimonial/Testimonial.tsx +8 -2
- package/src/components/Todo/Todo.tsx +2 -1
- package/src/components/Toggle/Toggle.stories.tsx +5 -4
- package/src/components/Toggle/Toggle.tsx +8 -5
- package/src/components/Tooltip/Tooltip.stories.tsx +40 -30
- package/src/components/Tooltip/Tooltip.tsx +9 -2
- package/src/components/Upload/Upload.stories.tsx +252 -0
- package/src/components/Upload/Upload.tsx +92 -53
- package/src/components/VideoPlayer/VideoPlayer.tsx +3 -1
- package/src/components/index.ts +0 -4
- package/src/layouts/Grid/Grid.stories.tsx +10 -23
- package/src/layouts/Grid/Grid.tsx +20 -1
- package/src/layouts/Grid/GridCol.tsx +76 -48
- package/src/lib/composables/useAtomixGlass.ts +861 -44
- package/src/lib/composables/useBarChart.ts +13 -6
- package/src/lib/composables/useChart.ts +17 -13
- package/src/lib/composables/useChartExport.ts +19 -78
- package/src/lib/composables/useChartToolbar.ts +0 -1
- package/src/lib/composables/useEdgePanel.ts +111 -103
- package/src/lib/composables/useFooter.ts +3 -3
- package/src/lib/composables/useGlassContainer.ts +16 -7
- package/src/lib/composables/useLineChart.ts +8 -1
- package/src/lib/composables/useRiver.ts +5 -0
- package/src/lib/composables/useSlider.ts +62 -24
- package/src/lib/composables/useVideoPlayer.ts +60 -63
- package/src/lib/constants/components.ts +146 -32
- package/src/lib/types/components.ts +258 -10
- package/src/lib/utils/displacement-generator.ts +55 -49
- package/src/lib/utils/icons.ts +1 -1
- package/src/lib/utils/index.ts +16 -10
- package/src/styles/01-settings/_settings.accordion.scss +19 -19
- package/src/styles/01-settings/_settings.animations.scss +5 -5
- package/src/styles/01-settings/_settings.avatar-group.scss +1 -1
- package/src/styles/01-settings/_settings.avatar.scss +17 -17
- package/src/styles/01-settings/_settings.background.scss +1 -4
- package/src/styles/01-settings/_settings.badge.scss +1 -1
- package/src/styles/01-settings/_settings.breadcrumb.scss +1 -1
- package/src/styles/01-settings/_settings.card.scss +1 -1
- package/src/styles/01-settings/_settings.chart.scss +65 -2
- package/src/styles/01-settings/_settings.dropdown.scss +1 -1
- package/src/styles/01-settings/_settings.footer.scss +35 -42
- package/src/styles/01-settings/_settings.input.scss +1 -1
- package/src/styles/01-settings/_settings.list.scss +1 -1
- package/src/styles/01-settings/_settings.rating.scss +1 -1
- package/src/styles/01-settings/_settings.tabs.scss +1 -1
- package/src/styles/01-settings/_settings.upload.scss +6 -5
- package/src/styles/02-tools/_tools.animations.scss +4 -5
- package/src/styles/02-tools/_tools.background.scss +1 -13
- package/src/styles/02-tools/_tools.glass.scss +0 -1
- package/src/styles/02-tools/_tools.utility-api.scss +42 -34
- package/src/styles/03-generic/_generic.root.scss +1 -4
- package/src/styles/04-elements/_elements.body.scss +0 -1
- package/src/styles/06-components/_components.atomix-glass.scss +216 -39
- package/src/styles/06-components/_components.badge.scss +6 -8
- package/src/styles/06-components/_components.button.scss +8 -3
- package/src/styles/06-components/_components.card.scss +2 -14
- package/src/styles/06-components/_components.chart.scss +969 -1449
- package/src/styles/06-components/_components.dropdown.scss +19 -7
- package/src/styles/06-components/_components.edge-panel.scss +4 -2
- package/src/styles/06-components/_components.footer.scss +166 -85
- package/src/styles/06-components/_components.input.scss +8 -9
- package/src/styles/06-components/_components.list.scss +1 -0
- package/src/styles/06-components/_components.modal.scss +5 -3
- package/src/styles/06-components/_components.skeleton.scss +8 -6
- package/src/styles/06-components/_components.upload.scss +219 -4
- package/src/styles/06-components/old.chart.styles.scss +1 -30
- package/src/styles/99-utilities/_utilities.opacity.scss +1 -1
- package/src/styles/99-utilities/_utilities.scss +1 -1
- package/src/components/Chart/AdvancedChart.tsx +0 -624
- package/src/components/Chart/LineChartNew.tsx +0 -167
- package/src/components/Chart/RealTimeChart.tsx +0 -436
- package/src/components/DatePicker/DatePicker copy.tsx +0 -551
package/src/components/AtomixGlass/{AtomixGlass.stories.tsx → stories/AtomixGlass.stories.tsx}
RENAMED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { Meta, StoryObj } from '@storybook/react';
|
|
13
|
-
import AtomixGlass from '
|
|
14
|
-
import Button from '
|
|
13
|
+
import AtomixGlass from '../AtomixGlass';
|
|
14
|
+
import Button from '../../Button/Button';
|
|
15
15
|
import { useState, useEffect, useCallback, useMemo, useRef } from 'react';
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import type { RefObject } from 'react';
|
|
@@ -89,9 +89,38 @@ const meta: Meta<typeof AtomixGlass> = {
|
|
|
89
89
|
table: { defaultValue: { summary: '"0 0"' } },
|
|
90
90
|
},
|
|
91
91
|
overLight: {
|
|
92
|
-
control:
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
control: {
|
|
93
|
+
type: 'select',
|
|
94
|
+
labels: {
|
|
95
|
+
false: 'false (Dark Background)',
|
|
96
|
+
true: 'true (Light Background)',
|
|
97
|
+
auto: 'auto (Auto-detect)',
|
|
98
|
+
object: 'object (Custom Config)',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
options: [false, true, 'auto', 'object'],
|
|
102
|
+
description: `OverLight configuration mode. Can be:
|
|
103
|
+
- **boolean**: Explicit control (true/false)
|
|
104
|
+
- **'auto'**: Auto-detect background brightness
|
|
105
|
+
- **object**: Auto-detect with custom settings (threshold, opacity, contrast, brightness, saturationBoost)
|
|
106
|
+
|
|
107
|
+
See documentation for detailed examples of each mode.`,
|
|
108
|
+
table: {
|
|
109
|
+
defaultValue: { summary: '"auto"' },
|
|
110
|
+
type: { summary: 'boolean | "auto" | OverLightObjectConfig' },
|
|
111
|
+
},
|
|
112
|
+
mapping: {
|
|
113
|
+
false: false,
|
|
114
|
+
true: true,
|
|
115
|
+
auto: 'auto',
|
|
116
|
+
object: {
|
|
117
|
+
threshold: 0.75,
|
|
118
|
+
opacity: 0.6,
|
|
119
|
+
contrast: 1.8,
|
|
120
|
+
brightness: 1.0,
|
|
121
|
+
saturationBoost: 1.5,
|
|
122
|
+
},
|
|
123
|
+
},
|
|
95
124
|
},
|
|
96
125
|
mode: {
|
|
97
126
|
control: 'select',
|
|
@@ -147,6 +176,11 @@ const meta: Meta<typeof AtomixGlass> = {
|
|
|
147
176
|
description: 'Enable performance monitoring (default: false)',
|
|
148
177
|
table: { defaultValue: { summary: 'false' } },
|
|
149
178
|
},
|
|
179
|
+
debugOverLight: {
|
|
180
|
+
control: 'boolean',
|
|
181
|
+
description: 'Enable debug logging for overLight detection and configuration (default: false). Logs detailed information to console about auto-detection results and final config values.',
|
|
182
|
+
table: { defaultValue: { summary: 'false' } },
|
|
183
|
+
},
|
|
150
184
|
},
|
|
151
185
|
};
|
|
152
186
|
|
|
@@ -229,9 +263,6 @@ const BackgroundWrapper = ({
|
|
|
229
263
|
children,
|
|
230
264
|
backgroundImage,
|
|
231
265
|
backgroundIndex,
|
|
232
|
-
overlay = false,
|
|
233
|
-
overlayColor = 'rgba(0,0,0,0)',
|
|
234
|
-
overlayOpacity = 0,
|
|
235
266
|
height = '90vh',
|
|
236
267
|
width = '90vw',
|
|
237
268
|
borderRadius = '12px',
|
|
@@ -244,12 +275,10 @@ const BackgroundWrapper = ({
|
|
|
244
275
|
backgroundIndex !== undefined ? backgroundImages[backgroundIndex] : backgroundImage;
|
|
245
276
|
|
|
246
277
|
// Apply default overlay settings if overlay flag is true using nullish coalescing
|
|
247
|
-
const finalOverlayColor = overlay ? 'rgba(0,0,0,0.5)' : (overlayColor ?? 'rgba(0,0,0,0)');
|
|
248
|
-
const finalOverlayOpacity = overlay ? 0.5 : (overlayOpacity ?? 0);
|
|
249
278
|
|
|
250
279
|
return (
|
|
251
280
|
<div
|
|
252
|
-
className={`atomix-glass-background ${className}`}
|
|
281
|
+
className={`c-atomix-glass-background ${className}`}
|
|
253
282
|
style={{
|
|
254
283
|
position: 'relative',
|
|
255
284
|
width: width,
|
|
@@ -257,7 +286,7 @@ const BackgroundWrapper = ({
|
|
|
257
286
|
height: '100%',
|
|
258
287
|
backgroundColor: !bgImage ? '#1a1a2e' : undefined, // Fallback color if no image
|
|
259
288
|
background: bgImage
|
|
260
|
-
? `url(${bgImage})
|
|
289
|
+
? `url(${bgImage})`
|
|
261
290
|
: undefined,
|
|
262
291
|
backgroundSize: 'cover',
|
|
263
292
|
backgroundPosition: 'center',
|
|
@@ -270,20 +299,6 @@ const BackgroundWrapper = ({
|
|
|
270
299
|
...style,
|
|
271
300
|
}}
|
|
272
301
|
>
|
|
273
|
-
{/* Overlay for better contrast and visual appeal */}
|
|
274
|
-
{finalOverlayOpacity > 0 && (
|
|
275
|
-
<div
|
|
276
|
-
style={{
|
|
277
|
-
position: 'absolute',
|
|
278
|
-
top: 0,
|
|
279
|
-
left: 0,
|
|
280
|
-
right: 0,
|
|
281
|
-
bottom: 0,
|
|
282
|
-
backgroundColor: finalOverlayColor,
|
|
283
|
-
opacity: finalOverlayOpacity,
|
|
284
|
-
}}
|
|
285
|
-
/>
|
|
286
|
-
)}
|
|
287
302
|
<div
|
|
288
303
|
style={{
|
|
289
304
|
position: 'relative',
|
|
@@ -485,17 +500,19 @@ export const Default: Story = {
|
|
|
485
500
|
and interactive effects.
|
|
486
501
|
</p>
|
|
487
502
|
<div style={{ display: 'flex', justifyContent: 'center', gap: '12px', flexWrap: 'wrap' }}>
|
|
488
|
-
<Button variant="primary" glass>
|
|
489
|
-
|
|
503
|
+
<Button variant="primary" glass>
|
|
504
|
+
Explore
|
|
505
|
+
</Button>
|
|
506
|
+
<Button variant="outline-primary" glass>
|
|
507
|
+
Learn More
|
|
508
|
+
</Button>
|
|
490
509
|
</div>
|
|
491
510
|
</div>
|
|
492
511
|
),
|
|
493
512
|
},
|
|
494
513
|
decorators: [
|
|
495
514
|
Story => (
|
|
496
|
-
<BackgroundWrapper
|
|
497
|
-
backgroundImage={backgroundImages[0]}
|
|
498
|
-
>
|
|
515
|
+
<BackgroundWrapper backgroundImage={backgroundImages[0]}>
|
|
499
516
|
<Story />
|
|
500
517
|
</BackgroundWrapper>
|
|
501
518
|
),
|
|
@@ -596,7 +613,6 @@ export const Modes: Story = {
|
|
|
596
613
|
return (
|
|
597
614
|
<BackgroundWrapper
|
|
598
615
|
backgroundImage="https://plus.unsplash.com/premium_photo-1728613098996-af5b4ee51be8?q=80&w=3269&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
|
|
599
|
-
overlay={true}
|
|
600
616
|
>
|
|
601
617
|
<div>
|
|
602
618
|
<div
|
|
@@ -743,7 +759,6 @@ export const Modes: Story = {
|
|
|
743
759
|
},
|
|
744
760
|
};
|
|
745
761
|
|
|
746
|
-
|
|
747
762
|
/**
|
|
748
763
|
* Performance Optimization Dashboard
|
|
749
764
|
*
|
|
@@ -760,8 +775,13 @@ export const PerformanceOptimization: Story = {
|
|
|
760
775
|
},
|
|
761
776
|
},
|
|
762
777
|
render: () => (
|
|
763
|
-
<BackgroundWrapper
|
|
764
|
-
|
|
778
|
+
<BackgroundWrapper
|
|
779
|
+
backgroundImage={
|
|
780
|
+
'https://images.unsplash.com/photo-1706705618478-505e088180c4?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2532'
|
|
781
|
+
}
|
|
782
|
+
padding="60px 20px"
|
|
783
|
+
>
|
|
784
|
+
<div style={{ margin: '0 auto', width: '100%' }}>
|
|
765
785
|
{/* Header Section */}
|
|
766
786
|
<div style={{ textAlign: 'center', marginBottom: '60px' }}>
|
|
767
787
|
<h1
|
|
@@ -521,9 +521,7 @@ export const ProductCard: Story = {
|
|
|
521
521
|
</div>
|
|
522
522
|
|
|
523
523
|
{/* Product Info */}
|
|
524
|
-
<h2 className="u-m-0 u-mb-1 u-fs-6 u-fw-bold">
|
|
525
|
-
Premium Cotton T-Shirt
|
|
526
|
-
</h2>
|
|
524
|
+
<h2 className="u-m-0 u-mb-1 u-fs-6 u-fw-bold">Premium Cotton T-Shirt</h2>
|
|
527
525
|
<p className="u-m-0 u-mb-2 u-opacity-70 u-fs-7">
|
|
528
526
|
Ultra-soft fabric with a modern fit. Perfect for everyday wear.
|
|
529
527
|
</p>
|
|
@@ -531,16 +529,12 @@ export const ProductCard: Story = {
|
|
|
531
529
|
{/* Price */}
|
|
532
530
|
<div className="u-d-flex u-align-items-center u-gap-2 u-mb-2">
|
|
533
531
|
<span className="u-fs-4 u-fw-bold u-text-success">$49.99</span>
|
|
534
|
-
<span className="u-fs-4 u-text-decoration-line-through u-opacity-50">
|
|
535
|
-
$71.99
|
|
536
|
-
</span>
|
|
532
|
+
<span className="u-fs-4 u-text-decoration-line-through u-opacity-50">$71.99</span>
|
|
537
533
|
</div>
|
|
538
534
|
|
|
539
535
|
{/* Size Selection */}
|
|
540
536
|
<div className="u-mb-2">
|
|
541
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">
|
|
542
|
-
Select Size
|
|
543
|
-
</label>
|
|
537
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">Select Size</label>
|
|
544
538
|
<div className="u-d-flex u-gap-2">
|
|
545
539
|
{sizes.map(size => (
|
|
546
540
|
<Button
|
|
@@ -558,9 +552,7 @@ export const ProductCard: Story = {
|
|
|
558
552
|
|
|
559
553
|
{/* Quantity */}
|
|
560
554
|
<div className="u-mb-2">
|
|
561
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-1 u-text-white">
|
|
562
|
-
Quantity
|
|
563
|
-
</label>
|
|
555
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-1 u-text-white">Quantity</label>
|
|
564
556
|
<div className="u-d-flex u-align-items-center u-gap-2">
|
|
565
557
|
<Button onClick={() => setQuantity(Math.max(1, quantity - 1))} glass>
|
|
566
558
|
−
|
|
@@ -673,9 +665,18 @@ export const NotificationCenter: Story = {
|
|
|
673
665
|
}
|
|
674
666
|
>
|
|
675
667
|
<AtomixGlass displacementScale={70} blurAmount={1} elasticity={0} mode="prominent">
|
|
676
|
-
<div
|
|
668
|
+
<div
|
|
669
|
+
className="u-rounded-4 u-overflow-hidden u-text-success-emphasis"
|
|
670
|
+
style={{ background: 'color-mix(in srgb, var(--atomix-success) 10%, transparent)' }}
|
|
671
|
+
>
|
|
677
672
|
{/* Header */}
|
|
678
|
-
<div
|
|
673
|
+
<div
|
|
674
|
+
className="u-p-4 u-d-flex u-justify-content-between u-align-items-center"
|
|
675
|
+
style={{
|
|
676
|
+
borderBottom:
|
|
677
|
+
'1px solid color-mix(in srgb, var(--atomix-success) 10%, transparent)',
|
|
678
|
+
}}
|
|
679
|
+
>
|
|
679
680
|
<div className="u-d-flex u-align-items-center u-gap-2">
|
|
680
681
|
<h2 className="u-m-0 u-fs-4 u-fw-bold">Notifications</h2>
|
|
681
682
|
{unreadCount > 0 && (
|
|
@@ -733,13 +734,17 @@ export const NotificationCenter: Story = {
|
|
|
733
734
|
onClick={() => markAsRead(notification.id)}
|
|
734
735
|
style={{
|
|
735
736
|
padding: '16px 24px',
|
|
736
|
-
borderBottom:
|
|
737
|
+
borderBottom:
|
|
738
|
+
'1px solid color-mix(in srgb, var(--atomix-success) 10%, transparent)',
|
|
737
739
|
cursor: 'pointer',
|
|
738
|
-
background: notification.read
|
|
740
|
+
background: notification.read
|
|
741
|
+
? 'transparent'
|
|
742
|
+
: 'color-mix(in srgb, var(--atomix-success) 10%, transparent)',
|
|
739
743
|
transition: 'background 0.2s ease',
|
|
740
744
|
}}
|
|
741
745
|
onMouseEnter={e => {
|
|
742
|
-
e.currentTarget.style.background =
|
|
746
|
+
e.currentTarget.style.background =
|
|
747
|
+
'color-mix(in srgb, var(--atomix-success) 10%, transparent)';
|
|
743
748
|
}}
|
|
744
749
|
onMouseLeave={e => {
|
|
745
750
|
e.currentTarget.style.background = notification.read
|
|
@@ -868,20 +873,14 @@ export const LoginForm: Story = {
|
|
|
868
873
|
>
|
|
869
874
|
<Icon name="Lock" />
|
|
870
875
|
</div>
|
|
871
|
-
<h2 className="u-m-0 u-mb-2 u-fs-3 u-fw-bold">
|
|
872
|
-
|
|
873
|
-
</h2>
|
|
874
|
-
<p className="u-m-0 u-opacity-70 u-fs-7">
|
|
875
|
-
Sign in to continue to your account
|
|
876
|
-
</p>
|
|
876
|
+
<h2 className="u-m-0 u-mb-2 u-fs-3 u-fw-bold">Welcome Back</h2>
|
|
877
|
+
<p className="u-m-0 u-opacity-70 u-fs-7">Sign in to continue to your account</p>
|
|
877
878
|
</div>
|
|
878
879
|
|
|
879
880
|
{/* Form */}
|
|
880
881
|
<form onSubmit={handleSubmit}>
|
|
881
882
|
<div className="u-mb-3">
|
|
882
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">
|
|
883
|
-
Email Address
|
|
884
|
-
</label>
|
|
883
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">Email Address</label>
|
|
885
884
|
<Input
|
|
886
885
|
type="email"
|
|
887
886
|
value={email}
|
|
@@ -895,9 +894,7 @@ export const LoginForm: Story = {
|
|
|
895
894
|
</div>
|
|
896
895
|
|
|
897
896
|
<div className="u-mb-3">
|
|
898
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">
|
|
899
|
-
Password
|
|
900
|
-
</label>
|
|
897
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">Password</label>
|
|
901
898
|
<Input
|
|
902
899
|
type="password"
|
|
903
900
|
value={password}
|
|
@@ -1126,9 +1123,7 @@ export const MusicPlayer: Story = {
|
|
|
1126
1123
|
</AtomixGlass>
|
|
1127
1124
|
{/* Track Info */}
|
|
1128
1125
|
<div className="u-text-center u-mb-3">
|
|
1129
|
-
<h2 className="u-m-0 u-mb-2 u-fs-3 u-fw-bold">
|
|
1130
|
-
Summer Vibes
|
|
1131
|
-
</h2>
|
|
1126
|
+
<h2 className="u-m-0 u-mb-2 u-fs-3 u-fw-bold">Summer Vibes</h2>
|
|
1132
1127
|
<p className="u-m-0 u-opacity-70 u-fs-6">The Atomix Band</p>
|
|
1133
1128
|
</div>
|
|
1134
1129
|
|
|
@@ -1725,7 +1720,8 @@ export const ChatInterface: Story = {
|
|
|
1725
1720
|
<div
|
|
1726
1721
|
style={{
|
|
1727
1722
|
padding: '20px 24px',
|
|
1728
|
-
borderBottom:
|
|
1723
|
+
borderBottom:
|
|
1724
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
1729
1725
|
display: 'flex',
|
|
1730
1726
|
alignItems: 'center',
|
|
1731
1727
|
gap: '16px',
|
|
@@ -1881,7 +1877,8 @@ export const ChatInterface: Story = {
|
|
|
1881
1877
|
style={{
|
|
1882
1878
|
padding: '12px 16px',
|
|
1883
1879
|
borderRadius: '16px 16px 16px 4px',
|
|
1884
|
-
background:
|
|
1880
|
+
background:
|
|
1881
|
+
'color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
1885
1882
|
backdropFilter: 'blur(10px)',
|
|
1886
1883
|
}}
|
|
1887
1884
|
>
|
|
@@ -1909,7 +1906,8 @@ export const ChatInterface: Story = {
|
|
|
1909
1906
|
<div
|
|
1910
1907
|
style={{
|
|
1911
1908
|
padding: '10px 24px',
|
|
1912
|
-
borderTop:
|
|
1909
|
+
borderTop:
|
|
1910
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
1913
1911
|
display: 'flex',
|
|
1914
1912
|
alignItems: 'center',
|
|
1915
1913
|
justifyContent: 'space-evenly',
|
|
@@ -2101,7 +2099,8 @@ export const ProfileCard: Story = {
|
|
|
2101
2099
|
justifyContent: 'space-around',
|
|
2102
2100
|
marginBottom: '20px',
|
|
2103
2101
|
padding: '20px 0',
|
|
2104
|
-
borderTop:
|
|
2102
|
+
borderTop:
|
|
2103
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
2105
2104
|
borderBottom: '1px solid rgba(255, 255, 255, 0.21)',
|
|
2106
2105
|
background: 'color-mix(in srgb, var(--atomix-success-bg-subtle) 10%, transparent)',
|
|
2107
2106
|
backdropFilter: 'blur(10px)',
|
|
@@ -3044,17 +3043,6 @@ export const SocialMediaPost: Story = {
|
|
|
3044
3043
|
style={{ width: '450px' }}
|
|
3045
3044
|
elasticity={0}
|
|
3046
3045
|
>
|
|
3047
|
-
<span
|
|
3048
|
-
style={{
|
|
3049
|
-
background: 'var(--atomix-primary-gradient)',
|
|
3050
|
-
position: 'absolute',
|
|
3051
|
-
inset: 0,
|
|
3052
|
-
zIndex: -6,
|
|
3053
|
-
opacity: 0,
|
|
3054
|
-
borderRadius: 24,
|
|
3055
|
-
}}
|
|
3056
|
-
></span>
|
|
3057
|
-
|
|
3058
3046
|
{/* Post Header */}
|
|
3059
3047
|
<div
|
|
3060
3048
|
style={{
|
|
@@ -3137,8 +3125,10 @@ export const SocialMediaPost: Story = {
|
|
|
3137
3125
|
alignItems: 'center',
|
|
3138
3126
|
justifyContent: 'center',
|
|
3139
3127
|
fontSize: '80px',
|
|
3140
|
-
|
|
3141
|
-
|
|
3128
|
+
borderTop:
|
|
3129
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
3130
|
+
borderBottom:
|
|
3131
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
3142
3132
|
}}
|
|
3143
3133
|
></div>
|
|
3144
3134
|
|
|
@@ -3151,7 +3141,8 @@ export const SocialMediaPost: Story = {
|
|
|
3151
3141
|
alignItems: 'center',
|
|
3152
3142
|
fontSize: '14px',
|
|
3153
3143
|
opacity: 0.8,
|
|
3154
|
-
borderBottom:
|
|
3144
|
+
borderBottom:
|
|
3145
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
3155
3146
|
}}
|
|
3156
3147
|
>
|
|
3157
3148
|
<span>{likes.toLocaleString()} likes</span>
|
|
@@ -3167,7 +3158,9 @@ export const SocialMediaPost: Story = {
|
|
|
3167
3158
|
padding: '12px 24px',
|
|
3168
3159
|
display: 'flex',
|
|
3169
3160
|
gap: '8px',
|
|
3170
|
-
borderBottom: showComments
|
|
3161
|
+
borderBottom: showComments
|
|
3162
|
+
? '1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)'
|
|
3163
|
+
: 'none',
|
|
3171
3164
|
}}
|
|
3172
3165
|
>
|
|
3173
3166
|
<Button onClick={handleLike} variant="error" glass>
|
|
@@ -3218,7 +3211,8 @@ export const SocialMediaPost: Story = {
|
|
|
3218
3211
|
<div style={{ flex: 1 }}>
|
|
3219
3212
|
<div
|
|
3220
3213
|
style={{
|
|
3221
|
-
background:
|
|
3214
|
+
background:
|
|
3215
|
+
'color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
3222
3216
|
padding: '12px 16px',
|
|
3223
3217
|
borderRadius: '12px 12px 12px 4px',
|
|
3224
3218
|
}}
|
|
@@ -3284,7 +3278,8 @@ export const SocialMediaPost: Story = {
|
|
|
3284
3278
|
width: '100%',
|
|
3285
3279
|
padding: '12px 16px',
|
|
3286
3280
|
borderRadius: '20px',
|
|
3287
|
-
border:
|
|
3281
|
+
border:
|
|
3282
|
+
'1px solid color-mix(in srgb, var(--atomix-brand-bg-subtle) 10%, transparent)',
|
|
3288
3283
|
background: 'rgba(255,255,255,0.1)',
|
|
3289
3284
|
color: 'inherit',
|
|
3290
3285
|
fontSize: '14px',
|
|
@@ -3615,16 +3610,6 @@ export const SearchResults: Story = {
|
|
|
3615
3610
|
position: 'relative',
|
|
3616
3611
|
}}
|
|
3617
3612
|
>
|
|
3618
|
-
<span
|
|
3619
|
-
style={{
|
|
3620
|
-
position: 'absolute',
|
|
3621
|
-
inset: 1,
|
|
3622
|
-
background: 'var(--atomix-warning-gradient)',
|
|
3623
|
-
opacity: 0.2,
|
|
3624
|
-
zIndex: -1,
|
|
3625
|
-
borderRadius: '30px',
|
|
3626
|
-
}}
|
|
3627
|
-
></span>
|
|
3628
3613
|
{/* Search Header */}
|
|
3629
3614
|
<h2 style={{ margin: '0 0 20px 0', fontSize: '24px', fontWeight: 700 }}>Search</h2>
|
|
3630
3615
|
|
|
@@ -3826,23 +3811,12 @@ export const PaymentForm: Story = {
|
|
|
3826
3811
|
shaderVariant="premiumGlass"
|
|
3827
3812
|
elasticity={0}
|
|
3828
3813
|
>
|
|
3829
|
-
<div
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
opacity: 0.5,
|
|
3836
|
-
zIndex: -1,
|
|
3837
|
-
borderRadius: '28px',
|
|
3838
|
-
}}
|
|
3839
|
-
></span>
|
|
3840
|
-
<h2 className="u-m-0 u-mb-1 u-fs-4 u-fw-bold">
|
|
3841
|
-
Payment Details
|
|
3842
|
-
</h2>
|
|
3843
|
-
<p className="u-m-0 u-mb-2 u-fs-7 u-opacity-70">
|
|
3844
|
-
Complete your purchase securely
|
|
3845
|
-
</p>
|
|
3814
|
+
<div
|
|
3815
|
+
className="u-p-3 u-position-relative u-rounded-5"
|
|
3816
|
+
style={{ minWidth: '300px', maxWidth: '400px' }}
|
|
3817
|
+
>
|
|
3818
|
+
<h2 className="u-m-0 u-mb-1 u-fs-4 u-fw-bold">Payment Details</h2>
|
|
3819
|
+
<p className="u-m-0 u-mb-2 u-fs-7 u-opacity-70">Complete your purchase securely</p>
|
|
3846
3820
|
|
|
3847
3821
|
{/* Card Preview */}
|
|
3848
3822
|
<AtomixGlass
|
|
@@ -3923,9 +3897,7 @@ export const PaymentForm: Story = {
|
|
|
3923
3897
|
{/* Form */}
|
|
3924
3898
|
<div className="u-d-flex u-flex-column u-gap-3">
|
|
3925
3899
|
<div>
|
|
3926
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">
|
|
3927
|
-
Card Number
|
|
3928
|
-
</label>
|
|
3900
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">Card Number</label>
|
|
3929
3901
|
<Input
|
|
3930
3902
|
variant="primary"
|
|
3931
3903
|
glass={
|
|
@@ -3942,9 +3914,7 @@ export const PaymentForm: Story = {
|
|
|
3942
3914
|
</div>
|
|
3943
3915
|
|
|
3944
3916
|
<div>
|
|
3945
|
-
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">
|
|
3946
|
-
Cardholder Name
|
|
3947
|
-
</label>
|
|
3917
|
+
<label className="u-d-block u-fs-7 u-fw-semibold u-mb-2">Cardholder Name</label>
|
|
3948
3918
|
<Input
|
|
3949
3919
|
variant="primary"
|
|
3950
3920
|
glass={
|
|
@@ -4411,9 +4381,7 @@ export const ProgressTracker: Story = {
|
|
|
4411
4381
|
mode="standard"
|
|
4412
4382
|
>
|
|
4413
4383
|
<div className="u-p-5" style={{ minWidth: '550px', maxWidth: '700px' }}>
|
|
4414
|
-
<h2 className="u-m-0 u-mb-2 u-fs-2 u-fw-bold">
|
|
4415
|
-
Getting Started
|
|
4416
|
-
</h2>
|
|
4384
|
+
<h2 className="u-m-0 u-mb-2 u-fs-2 u-fw-bold">Getting Started</h2>
|
|
4417
4385
|
<p className="u-m-0 u-fs-6 u-opacity-70" style={{ marginBottom: '48px' }}>
|
|
4418
4386
|
Complete the following steps to set up your account
|
|
4419
4387
|
</p>
|