@shohojdhara/atomix 0.2.3 → 0.2.4
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/dist/atomix.css +430 -125
- package/dist/atomix.min.css +4 -4
- package/dist/index.d.ts +188 -42
- package/dist/index.esm.js +2049 -1516
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3571 -3055
- 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/boomdevs.css +379 -74
- package/dist/themes/boomdevs.min.css +4 -4
- package/dist/themes/esrar.css +430 -125
- package/dist/themes/esrar.min.css +4 -4
- package/dist/themes/mashroom.css +429 -124
- package/dist/themes/mashroom.min.css +4 -4
- package/dist/themes/shaj-default.css +429 -124
- package/dist/themes/shaj-default.min.css +4 -4
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.stories.tsx +684 -21
- package/src/components/Accordion/Accordion.tsx +5 -7
- package/src/components/AtomixGlass/AtomixGlass.stories.tsx +456 -2237
- package/src/components/AtomixGlass/AtomixGlass.test.tsx +2 -2
- package/src/components/AtomixGlass/AtomixGlass.tsx +728 -666
- package/src/components/AtomixGlass/shader-utils.ts +589 -33
- package/src/components/AtomixGlass/stories/Examples.stories.tsx +5800 -0
- package/src/components/AtomixGlass/stories/Modes.stories.tsx +1065 -0
- package/src/components/AtomixGlass/stories/Playground.stories.tsx +1066 -0
- package/src/components/AtomixGlass/stories/ShaderVariants.stories.tsx +397 -0
- package/src/components/AtomixGlass/stories/shared-components.tsx +310 -0
- package/src/components/Badge/Badge.stories.tsx +3 -2
- package/src/components/Badge/Badge.tsx +9 -7
- package/src/components/Button/Button.stories.tsx +501 -20
- package/src/components/Button/Button.tsx +4 -5
- package/src/components/Callout/Callout.tsx +27 -9
- package/src/components/Card/Card.stories.tsx +560 -1
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +697 -9
- package/src/components/EdgePanel/EdgePanel.stories.tsx +476 -3
- package/src/components/EdgePanel/EdgePanel.tsx +86 -13
- package/src/components/Messages/Messages.stories.tsx +113 -0
- package/src/components/Messages/Messages.tsx +51 -9
- package/src/components/Modal/Modal.stories.tsx +6 -4
- package/src/components/Modal/Modal.tsx +2 -3
- package/src/components/Navigation/Nav/Nav.stories.tsx +469 -0
- package/src/components/Navigation/Nav/Nav.tsx +17 -4
- package/src/components/Navigation/Navbar/Navbar.stories.tsx +413 -0
- package/src/components/Navigation/Navbar/Navbar.tsx +66 -28
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +340 -0
- package/src/components/Navigation/SideMenu/SideMenu.tsx +28 -2
- package/src/components/Progress/Progress.tsx +17 -2
- package/src/components/Spinner/Spinner.tsx +17 -2
- package/src/lib/composables/useBarChart.ts +14 -4
- package/src/lib/composables/useChart.ts +223 -370
- package/src/lib/composables/useChartToolbar.ts +11 -20
- package/src/lib/composables/useEdgePanel.ts +81 -35
- package/src/lib/composables/useLineChart.ts +4 -2
- package/src/lib/composables/usePieChart.ts +4 -14
- package/src/lib/constants/components.ts +1 -0
- package/src/lib/types/components.ts +97 -15
- package/src/styles/01-settings/_settings.background.scss +2 -2
- package/src/styles/01-settings/_settings.edge-panel.scss +1 -1
- package/src/styles/02-tools/_tools.utility-api.scss +62 -27
- package/src/styles/06-components/_components.atomix-glass.scss +72 -0
- package/src/styles/06-components/_components.badge.scss +2 -15
- package/src/styles/06-components/_components.callout.scss +10 -5
- package/src/styles/06-components/_components.edge-panel.scss +101 -0
- package/src/styles/06-components/_components.messages.scss +176 -0
- package/src/styles/06-components/_components.modal.scss +13 -3
- package/src/styles/06-components/_components.navbar.scss +12 -1
- package/src/styles/06-components/_components.side-menu.scss +5 -0
- package/src/styles/99-utilities/_index.scss +1 -0
- package/src/styles/99-utilities/_utilities.glass-fixes.scss +1 -0
- package/src/styles/99-utilities/_utilities.opacity.scss +1 -1
- package/src/components/AtomixGlass/AtomixGlassComprehensivePreview.stories.tsx +0 -1369
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,29 @@ import react__default, { ReactNode, ElementType, HTMLAttributes } from 'react';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
5
5
|
|
|
6
|
+
interface Vec2 {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}
|
|
10
|
+
declare const fragmentShaders: {
|
|
11
|
+
liquidGlass: (uv: Vec2, mousePosition?: Vec2) => Vec2;
|
|
12
|
+
appleFluid: (uv: Vec2, mousePosition?: Vec2) => Vec2;
|
|
13
|
+
premiumGlass: (uv: Vec2, mousePosition?: Vec2) => Vec2;
|
|
14
|
+
liquidMetal: (uv: Vec2, mousePosition?: Vec2) => Vec2;
|
|
15
|
+
basiBasi: (uv: Vec2, mousePosition?: Vec2) => Vec2;
|
|
16
|
+
};
|
|
17
|
+
type FragmentShaderType = keyof typeof fragmentShaders;
|
|
18
|
+
|
|
19
|
+
type DisplacementMode = 'standard' | 'polar' | 'prominent' | 'shader';
|
|
20
|
+
type MousePosition$1 = {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
type OverLightConfig = boolean | 'auto' | {
|
|
25
|
+
threshold?: number;
|
|
26
|
+
opacity?: number;
|
|
27
|
+
contrast?: number;
|
|
28
|
+
};
|
|
6
29
|
interface AtomixGlassProps$1 {
|
|
7
30
|
children: React.ReactNode;
|
|
8
31
|
displacementScale?: number;
|
|
@@ -11,40 +34,39 @@ interface AtomixGlassProps$1 {
|
|
|
11
34
|
aberrationIntensity?: number;
|
|
12
35
|
elasticity?: number;
|
|
13
36
|
cornerRadius?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
y: number;
|
|
17
|
-
};
|
|
18
|
-
mouseOffset?: {
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
};
|
|
37
|
+
globalMousePosition?: MousePosition$1;
|
|
38
|
+
mouseOffset?: MousePosition$1;
|
|
22
39
|
mouseContainer?: React.RefObject<HTMLElement | null> | null;
|
|
23
40
|
className?: string;
|
|
24
41
|
padding?: string;
|
|
25
42
|
style?: React.CSSProperties;
|
|
26
|
-
overLight?:
|
|
27
|
-
mode?:
|
|
43
|
+
overLight?: OverLightConfig;
|
|
44
|
+
mode?: DisplacementMode;
|
|
28
45
|
onClick?: () => void;
|
|
29
|
-
|
|
30
|
-
* Accessibility props
|
|
31
|
-
*/
|
|
46
|
+
shaderVariant?: FragmentShaderType;
|
|
32
47
|
'aria-label'?: string;
|
|
33
48
|
'aria-describedby'?: string;
|
|
34
49
|
role?: string;
|
|
35
50
|
tabIndex?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Performance and accessibility options
|
|
38
|
-
*/
|
|
39
51
|
reducedMotion?: boolean;
|
|
40
52
|
highContrast?: boolean;
|
|
41
53
|
disableEffects?: boolean;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
enableLiquidBlur?: boolean;
|
|
55
|
+
enableBorderEffect?: boolean;
|
|
56
|
+
enableOverLightLayers?: boolean;
|
|
45
57
|
enablePerformanceMonitoring?: boolean;
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
/**
|
|
60
|
+
* AtomixGlass - A high-performance glass morphism component with liquid distortion effects
|
|
61
|
+
*
|
|
62
|
+
* Features:
|
|
63
|
+
* - Hardware-accelerated glass effects with SVG filters
|
|
64
|
+
* - Mouse-responsive liquid distortion
|
|
65
|
+
* - Automatic light/dark theme detection
|
|
66
|
+
* - Accessibility and performance optimizations
|
|
67
|
+
* - Multiple displacement modes (standard, polar, prominent, shader)
|
|
68
|
+
*/
|
|
69
|
+
declare function AtomixGlass({ children, displacementScale, blurAmount, saturation, aberrationIntensity, elasticity, cornerRadius, globalMousePosition: externalGlobalMousePosition, mouseOffset: externalMouseOffset, mouseContainer, className, padding, overLight, style, mode, onClick, shaderVariant, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, role, tabIndex, reducedMotion, highContrast, disableEffects, enableLiquidBlur, enableBorderEffect, enableOverLightLayers, enablePerformanceMonitoring, }: AtomixGlassProps$1): react_jsx_runtime.JSX.Element;
|
|
48
70
|
|
|
49
71
|
/**
|
|
50
72
|
* AtomixGlass component props interface
|
|
@@ -72,6 +94,10 @@ interface AtomixGlassProps {
|
|
|
72
94
|
overLight?: boolean;
|
|
73
95
|
mode?: 'standard' | 'polar' | 'prominent' | 'shader';
|
|
74
96
|
onClick?: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Shader variant for shader mode
|
|
99
|
+
*/
|
|
100
|
+
shaderVariant?: 'liquidGlass' | 'premiumGlass';
|
|
75
101
|
/**
|
|
76
102
|
* Accessibility props
|
|
77
103
|
*/
|
|
@@ -450,6 +476,11 @@ interface SpinnerProps extends BaseComponentProps {
|
|
|
450
476
|
* Whether the spinner should be displayed fullscreen
|
|
451
477
|
*/
|
|
452
478
|
fullscreen?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Glass morphism effect for the spinner
|
|
481
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
482
|
+
*/
|
|
483
|
+
glass?: AtomixGlassProps | boolean;
|
|
453
484
|
}
|
|
454
485
|
/**
|
|
455
486
|
* Navbar position options
|
|
@@ -519,6 +550,11 @@ interface NavbarProps extends BaseComponentProps {
|
|
|
519
550
|
* ID for the navbar (used for accessibility)
|
|
520
551
|
*/
|
|
521
552
|
id?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Enable glass morphism effect.
|
|
555
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
556
|
+
*/
|
|
557
|
+
glass?: boolean | Omit<AtomixGlassProps, 'children'>;
|
|
522
558
|
}
|
|
523
559
|
/**
|
|
524
560
|
* Nav component properties
|
|
@@ -536,6 +572,11 @@ interface NavProps extends BaseComponentProps {
|
|
|
536
572
|
* Nav variant (including float variants)
|
|
537
573
|
*/
|
|
538
574
|
variant?: NavVariant;
|
|
575
|
+
/**
|
|
576
|
+
* Enable glass morphism effect.
|
|
577
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
578
|
+
*/
|
|
579
|
+
glass?: boolean | Omit<AtomixGlassProps, 'children'>;
|
|
539
580
|
}
|
|
540
581
|
/**
|
|
541
582
|
* Nav item properties
|
|
@@ -708,6 +749,11 @@ interface SideMenuProps extends BaseComponentProps {
|
|
|
708
749
|
* ID for the menu (used for accessibility)
|
|
709
750
|
*/
|
|
710
751
|
id?: string;
|
|
752
|
+
/**
|
|
753
|
+
* Glass morphism effect for the side menu
|
|
754
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
755
|
+
*/
|
|
756
|
+
glass?: boolean | Omit<AtomixGlassProps, 'children'>;
|
|
711
757
|
}
|
|
712
758
|
/**
|
|
713
759
|
* SideMenuList component properties
|
|
@@ -768,41 +814,52 @@ type EdgePanelMode = 'slide' | 'push' | 'none';
|
|
|
768
814
|
*/
|
|
769
815
|
interface EdgePanelProps extends BaseComponentProps {
|
|
770
816
|
/**
|
|
771
|
-
*
|
|
772
|
-
*/
|
|
773
|
-
title?: ReactNode;
|
|
774
|
-
/**
|
|
775
|
-
* Panel content
|
|
817
|
+
* Title of the panel
|
|
776
818
|
*/
|
|
777
|
-
|
|
819
|
+
title?: React.ReactNode;
|
|
778
820
|
/**
|
|
779
|
-
*
|
|
821
|
+
* Position of the panel
|
|
822
|
+
* @default 'start'
|
|
780
823
|
*/
|
|
781
|
-
position?:
|
|
824
|
+
position?: 'start' | 'end' | 'top' | 'bottom';
|
|
782
825
|
/**
|
|
783
826
|
* Animation mode
|
|
827
|
+
* @default 'slide'
|
|
784
828
|
*/
|
|
785
|
-
mode?:
|
|
829
|
+
mode?: 'slide' | 'push' | 'none';
|
|
786
830
|
/**
|
|
787
831
|
* Whether the panel is open
|
|
832
|
+
* @default false
|
|
788
833
|
*/
|
|
789
834
|
isOpen?: boolean;
|
|
790
835
|
/**
|
|
791
|
-
*
|
|
836
|
+
* Callback when panel open state changes
|
|
792
837
|
*/
|
|
793
838
|
onOpenChange?: (open: boolean) => void;
|
|
794
839
|
/**
|
|
795
|
-
*
|
|
840
|
+
* Whether to show backdrop
|
|
841
|
+
* @default true
|
|
796
842
|
*/
|
|
797
843
|
backdrop?: boolean;
|
|
798
844
|
/**
|
|
799
|
-
*
|
|
845
|
+
* Whether to close panel when clicking backdrop
|
|
846
|
+
* @default true
|
|
800
847
|
*/
|
|
801
848
|
closeOnBackdropClick?: boolean;
|
|
802
849
|
/**
|
|
803
|
-
*
|
|
850
|
+
* Whether to close panel when pressing Escape key
|
|
851
|
+
* @default true
|
|
804
852
|
*/
|
|
805
853
|
closeOnEscape?: boolean;
|
|
854
|
+
/**
|
|
855
|
+
* Glass effect configuration
|
|
856
|
+
* @default undefined
|
|
857
|
+
*/
|
|
858
|
+
glass?: boolean | AtomixGlassProps;
|
|
859
|
+
/**
|
|
860
|
+
* Children elements
|
|
861
|
+
*/
|
|
862
|
+
children: React.ReactNode;
|
|
806
863
|
}
|
|
807
864
|
/**
|
|
808
865
|
* DataTable column definition
|
|
@@ -902,6 +959,11 @@ interface DataTableProps extends BaseComponentProps {
|
|
|
902
959
|
* Callback when sorting changes
|
|
903
960
|
*/
|
|
904
961
|
onSort?: (sortConfig: SortConfig) => void;
|
|
962
|
+
/**
|
|
963
|
+
* Glass morphism effect for the data table
|
|
964
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
965
|
+
*/
|
|
966
|
+
glass?: AtomixGlassProps | boolean;
|
|
905
967
|
}
|
|
906
968
|
/**
|
|
907
969
|
* Pagination component properties
|
|
@@ -1002,6 +1064,11 @@ interface TodoProps extends BaseComponentProps {
|
|
|
1002
1064
|
* Whether to show the completed todos
|
|
1003
1065
|
*/
|
|
1004
1066
|
showCompleted?: boolean;
|
|
1067
|
+
/**
|
|
1068
|
+
* Glass morphism effect for the todo component
|
|
1069
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
1070
|
+
*/
|
|
1071
|
+
glass?: AtomixGlassProps | boolean;
|
|
1005
1072
|
}
|
|
1006
1073
|
/**
|
|
1007
1074
|
* Form component properties
|
|
@@ -1506,6 +1573,11 @@ interface AvatarProps extends BaseComponentProps {
|
|
|
1506
1573
|
* Optional click handler
|
|
1507
1574
|
*/
|
|
1508
1575
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
1576
|
+
/**
|
|
1577
|
+
* Glass morphism effect for the avatar
|
|
1578
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
1579
|
+
*/
|
|
1580
|
+
glass?: AtomixGlassProps | boolean;
|
|
1509
1581
|
}
|
|
1510
1582
|
/**
|
|
1511
1583
|
* Avatar Group component properties
|
|
@@ -1527,6 +1599,11 @@ interface AvatarGroupProps extends BaseComponentProps {
|
|
|
1527
1599
|
* Custom text for the "more" indicator
|
|
1528
1600
|
*/
|
|
1529
1601
|
moreText?: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* Glass morphism effect for the avatar group
|
|
1604
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
1605
|
+
*/
|
|
1606
|
+
glass?: AtomixGlassProps | boolean;
|
|
1530
1607
|
}
|
|
1531
1608
|
/**
|
|
1532
1609
|
* Modal component props
|
|
@@ -1627,6 +1704,11 @@ interface BreadcrumbOptions$1 {
|
|
|
1627
1704
|
* Accessible label for the breadcrumb navigation
|
|
1628
1705
|
*/
|
|
1629
1706
|
ariaLabel?: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* Glass morphism effect for the breadcrumb
|
|
1709
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
1710
|
+
*/
|
|
1711
|
+
glass?: AtomixGlassProps | boolean;
|
|
1630
1712
|
}
|
|
1631
1713
|
/**
|
|
1632
1714
|
* Breadcrumb instance interface
|
|
@@ -1719,6 +1801,11 @@ interface MessagesProps extends BaseComponentProps {
|
|
|
1719
1801
|
* Unique identifier for the messages component
|
|
1720
1802
|
*/
|
|
1721
1803
|
id?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Glass morphism effect for the messages component
|
|
1806
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
1807
|
+
*/
|
|
1808
|
+
glass?: boolean | Omit<AtomixGlassProps, 'children'>;
|
|
1722
1809
|
}
|
|
1723
1810
|
/**
|
|
1724
1811
|
* Popover component properties
|
|
@@ -1945,6 +2032,11 @@ interface ProgressProps extends BaseComponentProps {
|
|
|
1945
2032
|
* Accessible label for screen readers
|
|
1946
2033
|
*/
|
|
1947
2034
|
ariaLabel?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* Glass morphism effect for the progress bar
|
|
2037
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
2038
|
+
*/
|
|
2039
|
+
glass?: AtomixGlassProps | boolean;
|
|
1948
2040
|
}
|
|
1949
2041
|
/**
|
|
1950
2042
|
* Rating component properties
|
|
@@ -5882,6 +5974,7 @@ declare const CHART: {
|
|
|
5882
5974
|
EXPORT_GROUP_CLASS: string;
|
|
5883
5975
|
EXPORT_DROPDOWN_CLASS: string;
|
|
5884
5976
|
EXPORT_OPTION_CLASS: string;
|
|
5977
|
+
SETTINGS_MENU_CLASS: string;
|
|
5885
5978
|
TOOLBAR_GROUP_CLASS: string;
|
|
5886
5979
|
TOOLBAR_SEPARATOR_CLASS: string;
|
|
5887
5980
|
TOOLBAR_LABEL_CLASS: string;
|
|
@@ -6746,8 +6839,8 @@ declare function useEdgePanel(initialProps?: Partial<EdgePanelProps>): {
|
|
|
6746
6839
|
containerRef: react.MutableRefObject<HTMLDivElement>;
|
|
6747
6840
|
backdropRef: react.MutableRefObject<HTMLDivElement>;
|
|
6748
6841
|
generateEdgePanelClass: (props: Partial<EdgePanelProps>) => string;
|
|
6749
|
-
openPanel: () => void;
|
|
6750
|
-
closePanel: () => void;
|
|
6842
|
+
openPanel: (useFadeAnimation?: boolean) => void;
|
|
6843
|
+
closePanel: (useFadeAnimation?: boolean) => void;
|
|
6751
6844
|
handleBackdropClick: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
6752
6845
|
};
|
|
6753
6846
|
|
|
@@ -7476,12 +7569,14 @@ declare function useLineChart(datasets: ChartDataset$1[], options?: LineChartOpt
|
|
|
7476
7569
|
pointIndex: number;
|
|
7477
7570
|
x: number;
|
|
7478
7571
|
y: number;
|
|
7572
|
+
clientX?: number;
|
|
7573
|
+
clientY?: number;
|
|
7479
7574
|
};
|
|
7480
7575
|
processedDatasets: any[];
|
|
7481
7576
|
handleZoom: (delta: number, centerX: number, centerY: number) => void;
|
|
7482
7577
|
handlePan: (deltaX: number, deltaY: number) => void;
|
|
7483
7578
|
resetView: () => void;
|
|
7484
|
-
handlePointHover: (datasetIndex: number, pointIndex: number, x: number, y: number) => void;
|
|
7579
|
+
handlePointHover: (datasetIndex: number, pointIndex: number, x: number, y: number, clientX: number, clientY: number) => void;
|
|
7485
7580
|
handlePointLeave: () => void;
|
|
7486
7581
|
calculateMovingAverage: (data: ChartDataPoint$1[], period: number) => ChartDataPoint$1[];
|
|
7487
7582
|
calculateTrendLine: (data: ChartDataPoint$1[]) => (ChartDataPoint$1 | null)[];
|
|
@@ -7499,6 +7594,8 @@ declare function useLineChart(datasets: ChartDataset$1[], options?: LineChartOpt
|
|
|
7499
7594
|
pointIndex: number;
|
|
7500
7595
|
x: number;
|
|
7501
7596
|
y: number;
|
|
7597
|
+
clientX?: number;
|
|
7598
|
+
clientY?: number;
|
|
7502
7599
|
}>>;
|
|
7503
7600
|
};
|
|
7504
7601
|
|
|
@@ -7586,8 +7683,10 @@ declare function useBarChart(datasets: ChartDataset$1[], options?: BarChartOptio
|
|
|
7586
7683
|
hoveredBar: {
|
|
7587
7684
|
datasetIndex: number;
|
|
7588
7685
|
pointIndex: number;
|
|
7589
|
-
|
|
7590
|
-
|
|
7686
|
+
chartX: number;
|
|
7687
|
+
chartY: number;
|
|
7688
|
+
clientX: number;
|
|
7689
|
+
clientY: number;
|
|
7591
7690
|
};
|
|
7592
7691
|
animationProgress: number;
|
|
7593
7692
|
isAnimating: boolean;
|
|
@@ -7609,15 +7708,17 @@ declare function useBarChart(datasets: ChartDataset$1[], options?: BarChartOptio
|
|
|
7609
7708
|
x: number;
|
|
7610
7709
|
y: number;
|
|
7611
7710
|
};
|
|
7612
|
-
handleBarHover: (datasetIndex: number, pointIndex: number,
|
|
7711
|
+
handleBarHover: (datasetIndex: number, pointIndex: number, chartX: number, chartY: number, clientX: number, clientY: number) => void;
|
|
7613
7712
|
handleBarLeave: () => void;
|
|
7614
7713
|
startAnimation: () => void;
|
|
7615
7714
|
formatValue: (value: number) => string;
|
|
7616
7715
|
setHoveredBar: react.Dispatch<react.SetStateAction<{
|
|
7617
7716
|
datasetIndex: number;
|
|
7618
7717
|
pointIndex: number;
|
|
7619
|
-
|
|
7620
|
-
|
|
7718
|
+
chartX: number;
|
|
7719
|
+
chartY: number;
|
|
7720
|
+
clientX: number;
|
|
7721
|
+
clientY: number;
|
|
7621
7722
|
}>>;
|
|
7622
7723
|
setAnimationProgress: react.Dispatch<react.SetStateAction<number>>;
|
|
7623
7724
|
setIsAnimating: react.Dispatch<react.SetStateAction<boolean>>;
|
|
@@ -7712,7 +7813,7 @@ declare function usePieChart(data: ChartDataPoint$1[], options?: PieChartOptions
|
|
|
7712
7813
|
selectedSlices: Set<number>;
|
|
7713
7814
|
animationProgress: number;
|
|
7714
7815
|
isAnimating: boolean;
|
|
7715
|
-
handleSliceHover: (index: number, clientX
|
|
7816
|
+
handleSliceHover: (index: number, clientX: number, clientY: number) => void;
|
|
7716
7817
|
handleSliceLeave: () => void;
|
|
7717
7818
|
handleSliceClick: (index: number) => void;
|
|
7718
7819
|
startAnimation: () => void;
|
|
@@ -9124,6 +9225,51 @@ declare const DatePicker: react__default.ForwardRefExoticComponent<DatePickerPro
|
|
|
9124
9225
|
*/
|
|
9125
9226
|
declare const Dropdown: react__default.FC<DropdownProps>;
|
|
9126
9227
|
|
|
9228
|
+
/**
|
|
9229
|
+
* EdgePanel - A sliding panel component that appears from any screen edge
|
|
9230
|
+
*
|
|
9231
|
+
* @component
|
|
9232
|
+
* @example
|
|
9233
|
+
* ```tsx
|
|
9234
|
+
* // Basic usage
|
|
9235
|
+
* <EdgePanel
|
|
9236
|
+
* title="My Panel"
|
|
9237
|
+
* isOpen={isOpen}
|
|
9238
|
+
* onOpenChange={setIsOpen}
|
|
9239
|
+
* position="start"
|
|
9240
|
+
* >
|
|
9241
|
+
* <p>Panel content</p>
|
|
9242
|
+
* </EdgePanel>
|
|
9243
|
+
*
|
|
9244
|
+
* // With glass effect
|
|
9245
|
+
* <EdgePanel
|
|
9246
|
+
* title="Glass Panel"
|
|
9247
|
+
* isOpen={isOpen}
|
|
9248
|
+
* onOpenChange={setIsOpen}
|
|
9249
|
+
* position="end"
|
|
9250
|
+
* glass={true}
|
|
9251
|
+
* >
|
|
9252
|
+
* <p>Panel with glass morphism</p>
|
|
9253
|
+
* </EdgePanel>
|
|
9254
|
+
*
|
|
9255
|
+
* // With custom glass configuration
|
|
9256
|
+
* <EdgePanel
|
|
9257
|
+
* title="Custom Glass"
|
|
9258
|
+
* isOpen={isOpen}
|
|
9259
|
+
* onOpenChange={setIsOpen}
|
|
9260
|
+
* position="start"
|
|
9261
|
+
* glass={{
|
|
9262
|
+
* mode: 'shader',
|
|
9263
|
+
* shaderVariant: 'liquidGlass',
|
|
9264
|
+
* displacementScale: 70,
|
|
9265
|
+
* blurAmount: 1.8,
|
|
9266
|
+
* saturation: 170,
|
|
9267
|
+
* }}
|
|
9268
|
+
* >
|
|
9269
|
+
* <p>Panel with custom glass effect</p>
|
|
9270
|
+
* </EdgePanel>
|
|
9271
|
+
* ```
|
|
9272
|
+
*/
|
|
9127
9273
|
declare const EdgePanel: react__default.FC<EdgePanelProps>;
|
|
9128
9274
|
|
|
9129
9275
|
/**
|