@shohojdhara/atomix 0.6.1 → 0.6.3
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 +510 -106
- package/dist/atomix.css +30 -24
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +6 -6
- package/dist/atomix.min.css.map +1 -1
- package/dist/atomix.umd.js +1 -1
- package/dist/atomix.umd.js.map +1 -1
- package/dist/atomix.umd.min.js +1 -1
- package/dist/charts.d.ts +11 -2
- package/dist/charts.js +294 -139
- package/dist/charts.js.map +1 -1
- package/dist/core.d.ts +14 -39
- package/dist/core.js +297 -145
- package/dist/core.js.map +1 -1
- package/dist/forms.d.ts +11 -1
- package/dist/forms.js +385 -185
- package/dist/forms.js.map +1 -1
- package/dist/heavy.d.ts +9 -0
- package/dist/heavy.js +297 -143
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +156 -164
- package/dist/index.esm.js +391 -203
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +391 -203
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/theme.d.ts +14 -6
- package/dist/theme.js +2 -9
- package/dist/theme.js.map +1 -1
- package/package.json +26 -26
- package/src/components/AtomixGlass/AtomixGlass.tsx +1 -1
- package/src/components/AtomixGlass/AtomixGlassContainer.tsx +8 -1
- package/src/components/AtomixGlass/deprecated/AtomixGlass.deprecated.tsx +390 -0
- package/src/components/AtomixGlass/glass-utils.ts +29 -0
- package/src/components/AtomixGlass/stories/Playground.stories.tsx +32 -1
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Button/Button.tsx +6 -5
- package/src/components/Card/Card.tsx +2 -2
- package/src/components/Dropdown/Dropdown.tsx +1 -0
- package/src/components/EdgePanel/EdgePanel.tsx +1 -3
- package/src/components/Form/Select.test.tsx +75 -0
- package/src/components/Form/Select.tsx +348 -252
- package/src/components/Form/SelectOption.tsx +16 -10
- package/src/components/index.ts +1 -1
- package/src/layouts/CssGrid/index.ts +1 -0
- package/src/lib/composables/shared-mouse-tracker.ts +62 -6
- package/src/lib/composables/useAtomixGlass.ts +241 -139
- package/src/lib/composables/useAtomixGlassStyles.ts +201 -149
- package/src/lib/constants/components.ts +54 -35
- package/src/lib/theme/config/configLoader.ts +1 -1
- package/src/lib/theme/test/testTheme.ts +2 -2
- package/src/lib/theme/utils/themeUtils.ts +98 -110
- package/src/lib/types/components.ts +29 -65
- package/src/styles/01-settings/_settings.spacing.scss +6 -1
- package/src/styles/03-generic/_generic.reset.scss +1 -1
- package/src/styles/06-components/_components.atomix-glass.scss +20 -29
- package/src/styles/06-components/_components.data-table.scss +5 -4
- package/src/styles/06-components/_components.dynamic-background.scss +9 -8
- package/src/styles/06-components/_components.footer.scss +8 -7
- package/src/styles/06-components/_components.hero.scss +2 -2
- package/src/styles/06-components/_components.messages.scss +16 -16
- package/src/styles/06-components/_components.navbar.scss +2 -0
- package/src/styles/06-components/_components.select.scss +15 -2
- package/src/styles/06-components/_components.upload.scss +3 -3
- package/CHANGELOG.md +0 -165
- package/src/lib/theme/devtools/DesignTokensCustomizer.stories.tsx +0 -215
package/dist/index.d.ts
CHANGED
|
@@ -1419,6 +1419,15 @@ interface AtomixGlassProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1419
1419
|
* @default false
|
|
1420
1420
|
*/
|
|
1421
1421
|
disableResponsiveBreakpoints?: boolean;
|
|
1422
|
+
/**
|
|
1423
|
+
* Priority level for rendering and performance scheduling
|
|
1424
|
+
*
|
|
1425
|
+
* Controls the rendering priority of the glass effect, allowing for performance
|
|
1426
|
+
* optimization in complex scenes. Higher priority elements are rendered first.
|
|
1427
|
+
*
|
|
1428
|
+
* @default undefined
|
|
1429
|
+
*/
|
|
1430
|
+
priority?: number;
|
|
1422
1431
|
}
|
|
1423
1432
|
/**
|
|
1424
1433
|
* Common component size options
|
|
@@ -1431,11 +1440,11 @@ type ThemeName = string;
|
|
|
1431
1440
|
/**
|
|
1432
1441
|
* Theme color variants
|
|
1433
1442
|
*/
|
|
1434
|
-
type ThemeColor = 'primary' | 'secondary' | 'tertiary' | 'invert' | 'brand' | 'error' | 'success' | 'warning' | 'info' | 'light' | 'dark';
|
|
1443
|
+
type ThemeColor = 'primary' | 'secondary' | 'tertiary' | 'invert' | 'brand' | 'error' | 'danger' | 'success' | 'warning' | 'info' | 'light' | 'dark';
|
|
1435
1444
|
/**
|
|
1436
1445
|
* Component variant including theme colors and outline variants
|
|
1437
1446
|
*/
|
|
1438
|
-
type Variant = ThemeColor | `outline-${ThemeColor}` | 'link';
|
|
1447
|
+
type Variant = ThemeColor | `outline-${ThemeColor}` | 'link' | 'ghost';
|
|
1439
1448
|
/**
|
|
1440
1449
|
* Base component properties interface
|
|
1441
1450
|
*/
|
|
@@ -2136,6 +2145,49 @@ interface HeroProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' |
|
|
|
2136
2145
|
*/
|
|
2137
2146
|
backgroundElement?: ReactNode;
|
|
2138
2147
|
}
|
|
2148
|
+
/**
|
|
2149
|
+
* Spinner component properties
|
|
2150
|
+
*/
|
|
2151
|
+
interface SpinnerProps extends BaseComponentProps {
|
|
2152
|
+
/**
|
|
2153
|
+
* Spinner color variant
|
|
2154
|
+
* @default 'primary'
|
|
2155
|
+
*/
|
|
2156
|
+
variant?: ThemeColor;
|
|
2157
|
+
/**
|
|
2158
|
+
* Spinner size
|
|
2159
|
+
* @default 'md'
|
|
2160
|
+
*/
|
|
2161
|
+
size?: Size;
|
|
2162
|
+
/**
|
|
2163
|
+
* Whether the spinner should be displayed fullscreen
|
|
2164
|
+
*/
|
|
2165
|
+
fullscreen?: boolean;
|
|
2166
|
+
/**
|
|
2167
|
+
* Accessible label for screen readers
|
|
2168
|
+
* @default 'Loading'
|
|
2169
|
+
*/
|
|
2170
|
+
'aria-label'?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* ARIA live region setting
|
|
2173
|
+
* @default 'polite'
|
|
2174
|
+
*/
|
|
2175
|
+
'aria-live'?: 'off' | 'assertive' | 'polite';
|
|
2176
|
+
/**
|
|
2177
|
+
* ARIA description
|
|
2178
|
+
*/
|
|
2179
|
+
'aria-describe'?: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* ARIA role for the spinner
|
|
2182
|
+
* @default 'status'
|
|
2183
|
+
*/
|
|
2184
|
+
role?: 'status' | 'alert';
|
|
2185
|
+
/**
|
|
2186
|
+
* Glass morphism effect for the spinner
|
|
2187
|
+
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
2188
|
+
*/
|
|
2189
|
+
glass?: AtomixGlassProps | boolean;
|
|
2190
|
+
}
|
|
2139
2191
|
/**
|
|
2140
2192
|
* Icon weight/style options
|
|
2141
2193
|
*/
|
|
@@ -2941,87 +2993,6 @@ interface TodoProps extends BaseComponentProps {
|
|
|
2941
2993
|
*/
|
|
2942
2994
|
glass?: AtomixGlassProps | boolean;
|
|
2943
2995
|
}
|
|
2944
|
-
/**
|
|
2945
|
-
* Spinner component properties
|
|
2946
|
-
*/
|
|
2947
|
-
interface SpinnerProps extends BaseComponentProps {
|
|
2948
|
-
/**
|
|
2949
|
-
* Spinner color variant
|
|
2950
|
-
* @default 'primary'
|
|
2951
|
-
*/
|
|
2952
|
-
variant?: ThemeColor;
|
|
2953
|
-
/**
|
|
2954
|
-
* Spinner size
|
|
2955
|
-
* @default 'md'
|
|
2956
|
-
*/
|
|
2957
|
-
size?: Size;
|
|
2958
|
-
/**
|
|
2959
|
-
* Whether the spinner should be displayed fullscreen
|
|
2960
|
-
*/
|
|
2961
|
-
fullscreen?: boolean;
|
|
2962
|
-
/**
|
|
2963
|
-
* Accessible label for screen readers
|
|
2964
|
-
* @default 'Loading'
|
|
2965
|
-
*/
|
|
2966
|
-
'aria-label'?: string;
|
|
2967
|
-
/**
|
|
2968
|
-
* ARIA role for the spinner
|
|
2969
|
-
* @default 'status'
|
|
2970
|
-
*/
|
|
2971
|
-
role?: 'status' | 'alert';
|
|
2972
|
-
/**
|
|
2973
|
-
* Glass morphism effect for the spinner
|
|
2974
|
-
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
2975
|
-
*/
|
|
2976
|
-
glass?: AtomixGlassProps | boolean;
|
|
2977
|
-
}
|
|
2978
|
-
/**
|
|
2979
|
-
* Spinner component properties
|
|
2980
|
-
*/
|
|
2981
|
-
interface SpinnerProps extends BaseComponentProps {
|
|
2982
|
-
/**
|
|
2983
|
-
* Spinner color variant
|
|
2984
|
-
* @default 'primary'
|
|
2985
|
-
*/
|
|
2986
|
-
variant?: ThemeColor;
|
|
2987
|
-
/**
|
|
2988
|
-
* Spinner size
|
|
2989
|
-
* @default 'md'
|
|
2990
|
-
*/
|
|
2991
|
-
size?: Size;
|
|
2992
|
-
/**
|
|
2993
|
-
* Whether the spinner should be displayed fullscreen
|
|
2994
|
-
*/
|
|
2995
|
-
fullscreen?: boolean;
|
|
2996
|
-
/**
|
|
2997
|
-
* Accessible label for screen readers
|
|
2998
|
-
* @default 'Loading'
|
|
2999
|
-
*/
|
|
3000
|
-
'aria-label'?: string;
|
|
3001
|
-
/**
|
|
3002
|
-
* ARIA live property to control how updates are announced
|
|
3003
|
-
* @default 'polite'
|
|
3004
|
-
*/
|
|
3005
|
-
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
3006
|
-
/**
|
|
3007
|
-
* ARIA descriptor property for additional description
|
|
3008
|
-
*/
|
|
3009
|
-
'aria-describe'?: string;
|
|
3010
|
-
/**
|
|
3011
|
-
* ARIA role for the spinner
|
|
3012
|
-
* @default 'status'
|
|
3013
|
-
*/
|
|
3014
|
-
role?: 'status' | 'alert';
|
|
3015
|
-
/**
|
|
3016
|
-
* Glass morphism effect for the spinner
|
|
3017
|
-
* Can be a boolean to enable with default settings, or an object with AtomixGlassProps to customize the effect
|
|
3018
|
-
*/
|
|
3019
|
-
glass?: AtomixGlassProps | boolean;
|
|
3020
|
-
}
|
|
3021
|
-
/**
|
|
3022
|
-
* Icon size options
|
|
3023
|
-
*/
|
|
3024
|
-
type IconSize$1 = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3025
2996
|
/**
|
|
3026
2997
|
* Icon size options
|
|
3027
2998
|
*/
|
|
@@ -6950,6 +6921,44 @@ type ListComponent = React__default.FC<ListProps> & {
|
|
|
6950
6921
|
};
|
|
6951
6922
|
declare const List: ListComponent;
|
|
6952
6923
|
|
|
6924
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6925
|
+
type IconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone';
|
|
6926
|
+
type PhosphorIconsType = Exclude<keyof typeof _phosphor_icons_react, 'Icon' | 'IconContext' | 'IconBase' | 'IconProps' | 'createIcon' | 'default' | 'SSR'>;
|
|
6927
|
+
interface IconProps {
|
|
6928
|
+
/**
|
|
6929
|
+
* Icon name from Phosphor Icons
|
|
6930
|
+
*/
|
|
6931
|
+
name: PhosphorIconsType;
|
|
6932
|
+
/**
|
|
6933
|
+
* Icon size
|
|
6934
|
+
*/
|
|
6935
|
+
size?: IconSize | number;
|
|
6936
|
+
/**
|
|
6937
|
+
* Icon weight/style
|
|
6938
|
+
*/
|
|
6939
|
+
weight?: IconWeight;
|
|
6940
|
+
/**
|
|
6941
|
+
* Icon color
|
|
6942
|
+
*/
|
|
6943
|
+
color?: string;
|
|
6944
|
+
/**
|
|
6945
|
+
* Additional CSS class names
|
|
6946
|
+
*/
|
|
6947
|
+
className?: string;
|
|
6948
|
+
/**
|
|
6949
|
+
* Custom style
|
|
6950
|
+
*/
|
|
6951
|
+
style?: React__default.CSSProperties;
|
|
6952
|
+
/**
|
|
6953
|
+
* Alt text for accessibility
|
|
6954
|
+
*/
|
|
6955
|
+
alt?: string;
|
|
6956
|
+
}
|
|
6957
|
+
/**
|
|
6958
|
+
* Icon component that displays a Phosphor icon
|
|
6959
|
+
*/
|
|
6960
|
+
declare const Icon: React__default.FC<IconProps>;
|
|
6961
|
+
|
|
6953
6962
|
interface HeroTitleProps extends React__default.HTMLAttributes<HTMLHeadingElement> {
|
|
6954
6963
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
6955
6964
|
}
|
|
@@ -6981,6 +6990,7 @@ declare const Hero: React__default.FC<HeroProps> & {
|
|
|
6981
6990
|
|
|
6982
6991
|
interface SelectOptionProps {
|
|
6983
6992
|
value: string;
|
|
6993
|
+
label?: string;
|
|
6984
6994
|
children?: ReactNode;
|
|
6985
6995
|
disabled?: boolean;
|
|
6986
6996
|
className?: string;
|
|
@@ -7996,44 +8006,6 @@ declare const ChartRenderer: React$1.NamedExoticComponent<{
|
|
|
7996
8006
|
renderContent: (params: ChartRenderContentParams) => React.ReactNode;
|
|
7997
8007
|
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
7998
8008
|
|
|
7999
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8000
|
-
type IconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone';
|
|
8001
|
-
type PhosphorIconsType = Exclude<keyof typeof _phosphor_icons_react, 'Icon' | 'IconContext' | 'IconBase' | 'IconProps' | 'createIcon' | 'default' | 'SSR'>;
|
|
8002
|
-
interface IconProps {
|
|
8003
|
-
/**
|
|
8004
|
-
* Icon name from Phosphor Icons
|
|
8005
|
-
*/
|
|
8006
|
-
name: PhosphorIconsType;
|
|
8007
|
-
/**
|
|
8008
|
-
* Icon size
|
|
8009
|
-
*/
|
|
8010
|
-
size?: IconSize | number;
|
|
8011
|
-
/**
|
|
8012
|
-
* Icon weight/style
|
|
8013
|
-
*/
|
|
8014
|
-
weight?: IconWeight;
|
|
8015
|
-
/**
|
|
8016
|
-
* Icon color
|
|
8017
|
-
*/
|
|
8018
|
-
color?: string;
|
|
8019
|
-
/**
|
|
8020
|
-
* Additional CSS class names
|
|
8021
|
-
*/
|
|
8022
|
-
className?: string;
|
|
8023
|
-
/**
|
|
8024
|
-
* Custom style
|
|
8025
|
-
*/
|
|
8026
|
-
style?: React__default.CSSProperties;
|
|
8027
|
-
/**
|
|
8028
|
-
* Alt text for accessibility
|
|
8029
|
-
*/
|
|
8030
|
-
alt?: string;
|
|
8031
|
-
}
|
|
8032
|
-
/**
|
|
8033
|
-
* Icon component that displays a Phosphor icon
|
|
8034
|
-
*/
|
|
8035
|
-
declare const Icon: React__default.FC<IconProps>;
|
|
8036
|
-
|
|
8037
8009
|
/**
|
|
8038
8010
|
* Pie chart specific options
|
|
8039
8011
|
*/
|
|
@@ -10783,11 +10755,11 @@ declare const ATOMIX_GLASS: {
|
|
|
10783
10755
|
};
|
|
10784
10756
|
DEFAULTS: {
|
|
10785
10757
|
DISPLACEMENT_SCALE: number;
|
|
10786
|
-
BLUR_AMOUNT: number;
|
|
10787
|
-
SATURATION: number;
|
|
10788
|
-
ABERRATION_INTENSITY: number;
|
|
10758
|
+
readonly BLUR_AMOUNT: number;
|
|
10759
|
+
readonly SATURATION: number;
|
|
10760
|
+
readonly ABERRATION_INTENSITY: number;
|
|
10789
10761
|
ELASTICITY: number;
|
|
10790
|
-
CORNER_RADIUS: number;
|
|
10762
|
+
readonly CORNER_RADIUS: number;
|
|
10791
10763
|
PADDING: string;
|
|
10792
10764
|
MODE: "standard";
|
|
10793
10765
|
OVER_LIGHT: false;
|
|
@@ -10807,6 +10779,14 @@ declare const ATOMIX_GLASS: {
|
|
|
10807
10779
|
MIN_BLUR: number;
|
|
10808
10780
|
MOUSE_INFLUENCE_DIVISOR: number;
|
|
10809
10781
|
EDGE_FADE_PIXELS: number;
|
|
10782
|
+
ELASTICITY_TRANSLATION_FACTOR: number;
|
|
10783
|
+
ELASTICITY_DISTANCE_THRESHOLD: number;
|
|
10784
|
+
ELASTICITY_COMPRESSION_FACTOR: number;
|
|
10785
|
+
ELASTICITY_STIFFNESS: number;
|
|
10786
|
+
ELASTICITY_DAMPING: number;
|
|
10787
|
+
ELASTICITY_VELOCITY_FACTOR: number;
|
|
10788
|
+
ELASTICITY_STRETCH_RATIO: number;
|
|
10789
|
+
ELASTICITY_MAGNIFICATION_BASE: number;
|
|
10810
10790
|
DEFAULT_CORNER_RADIUS: number;
|
|
10811
10791
|
MAX_SIZE: number;
|
|
10812
10792
|
PALETTE: {
|
|
@@ -10816,84 +10796,86 @@ declare const ATOMIX_GLASS: {
|
|
|
10816
10796
|
GRADIENT: {
|
|
10817
10797
|
BASE_ANGLE: number;
|
|
10818
10798
|
ANGLE_MULTIPLIER: number;
|
|
10799
|
+
VELOCITY_ANGLE_MULTIPLIER: number;
|
|
10800
|
+
CHROMATIC_OFFSET: number;
|
|
10819
10801
|
BORDER_STOP_1: {
|
|
10820
10802
|
MIN: number;
|
|
10821
10803
|
BASE: number;
|
|
10822
|
-
MULTIPLIER: number;
|
|
10804
|
+
readonly MULTIPLIER: number;
|
|
10823
10805
|
};
|
|
10824
10806
|
BORDER_STOP_2: {
|
|
10825
10807
|
MAX: number;
|
|
10826
10808
|
BASE: number;
|
|
10827
|
-
MULTIPLIER: number;
|
|
10809
|
+
readonly MULTIPLIER: number;
|
|
10828
10810
|
};
|
|
10829
10811
|
BORDER_OPACITY: {
|
|
10830
10812
|
BASE_1: number;
|
|
10831
|
-
BASE_2: number;
|
|
10832
|
-
BASE_3: number;
|
|
10833
|
-
BASE_4: number;
|
|
10834
|
-
MULTIPLIER_LOW: number;
|
|
10835
|
-
MULTIPLIER_HIGH: number;
|
|
10813
|
+
readonly BASE_2: number;
|
|
10814
|
+
readonly BASE_3: number;
|
|
10815
|
+
readonly BASE_4: number;
|
|
10816
|
+
readonly MULTIPLIER_LOW: number;
|
|
10817
|
+
readonly MULTIPLIER_HIGH: number;
|
|
10836
10818
|
};
|
|
10837
10819
|
CENTER_POSITION: number;
|
|
10838
10820
|
HOVER_POSITION: {
|
|
10839
10821
|
DIVISOR_1: number;
|
|
10840
|
-
DIVISOR_2: number;
|
|
10841
|
-
MULTIPLIER_3: number;
|
|
10822
|
+
readonly DIVISOR_2: number;
|
|
10823
|
+
readonly MULTIPLIER_3: number;
|
|
10842
10824
|
};
|
|
10843
|
-
BASE_LAYER_MULTIPLIER: number;
|
|
10825
|
+
readonly BASE_LAYER_MULTIPLIER: number;
|
|
10844
10826
|
};
|
|
10845
10827
|
GRADIENT_OPACITY: {
|
|
10846
10828
|
HOVER_1: {
|
|
10847
10829
|
BLACK_START: number;
|
|
10848
|
-
BLACK_MID: number;
|
|
10830
|
+
readonly BLACK_MID: number;
|
|
10849
10831
|
BLACK_STOP: number;
|
|
10850
|
-
BLACK_END: number;
|
|
10832
|
+
readonly BLACK_END: number;
|
|
10851
10833
|
WHITE_START: number;
|
|
10852
|
-
WHITE_STOP: number;
|
|
10834
|
+
readonly WHITE_STOP: number;
|
|
10853
10835
|
};
|
|
10854
10836
|
HOVER_2: {
|
|
10855
10837
|
BLACK_START: number;
|
|
10856
|
-
BLACK_MID: number;
|
|
10838
|
+
readonly BLACK_MID: number;
|
|
10857
10839
|
BLACK_STOP: number;
|
|
10858
|
-
BLACK_END: number;
|
|
10840
|
+
readonly BLACK_END: number;
|
|
10859
10841
|
WHITE_START: number;
|
|
10860
|
-
WHITE_STOP: number;
|
|
10842
|
+
readonly WHITE_STOP: number;
|
|
10861
10843
|
};
|
|
10862
10844
|
HOVER_3: {
|
|
10863
10845
|
BLACK_START: number;
|
|
10864
|
-
BLACK_MID: number;
|
|
10846
|
+
readonly BLACK_MID: number;
|
|
10865
10847
|
BLACK_STOP: number;
|
|
10866
|
-
BLACK_END: number;
|
|
10848
|
+
readonly BLACK_END: number;
|
|
10867
10849
|
WHITE_START: number;
|
|
10868
|
-
WHITE_STOP: number;
|
|
10850
|
+
readonly WHITE_STOP: number;
|
|
10869
10851
|
};
|
|
10870
10852
|
};
|
|
10871
10853
|
BASE_GRADIENT: {
|
|
10872
10854
|
ANGLE: number;
|
|
10873
10855
|
BLACK_START_BASE: number;
|
|
10874
|
-
BLACK_START_MULTIPLIER: number;
|
|
10856
|
+
readonly BLACK_START_MULTIPLIER: number;
|
|
10875
10857
|
BLACK_MID_BASE: number;
|
|
10876
|
-
BLACK_MID_MULTIPLIER: number;
|
|
10858
|
+
readonly BLACK_MID_MULTIPLIER: number;
|
|
10877
10859
|
BLACK_MID_STOP: number;
|
|
10878
|
-
BLACK_END_BASE: number;
|
|
10879
|
-
BLACK_END_MULTIPLIER: number;
|
|
10880
|
-
WHITE_OPACITY: number;
|
|
10860
|
+
readonly BLACK_END_BASE: number;
|
|
10861
|
+
readonly BLACK_END_MULTIPLIER: number;
|
|
10862
|
+
readonly WHITE_OPACITY: number;
|
|
10881
10863
|
};
|
|
10882
10864
|
OVERLAY_GRADIENT: {
|
|
10883
10865
|
BLACK_START_BASE: number;
|
|
10884
|
-
BLACK_START_MULTIPLIER: number;
|
|
10885
|
-
BLACK_MID: number;
|
|
10866
|
+
readonly BLACK_START_MULTIPLIER: number;
|
|
10867
|
+
readonly BLACK_MID: number;
|
|
10886
10868
|
BLACK_MID_STOP: number;
|
|
10887
|
-
BLACK_END_BASE: number;
|
|
10888
|
-
BLACK_END_MULTIPLIER: number;
|
|
10889
|
-
WHITE_OPACITY: number;
|
|
10869
|
+
readonly BLACK_END_BASE: number;
|
|
10870
|
+
readonly BLACK_END_MULTIPLIER: number;
|
|
10871
|
+
readonly WHITE_OPACITY: number;
|
|
10890
10872
|
};
|
|
10891
10873
|
OVERLAY_HIGHLIGHT: {
|
|
10892
10874
|
POSITION_X: number;
|
|
10893
10875
|
POSITION_Y: number;
|
|
10894
10876
|
WHITE_OPACITY: number;
|
|
10895
|
-
STOP: number;
|
|
10896
|
-
OPACITY_MULTIPLIER: number;
|
|
10877
|
+
readonly STOP: number;
|
|
10878
|
+
readonly OPACITY_MULTIPLIER: number;
|
|
10897
10879
|
};
|
|
10898
10880
|
MULTIPLIERS: {
|
|
10899
10881
|
SHADER_DISPLACEMENT: number;
|
|
@@ -11637,6 +11619,7 @@ interface UseAtomixGlassOptions extends Omit<AtomixGlassProps, 'children'> {
|
|
|
11637
11619
|
wrapperRef?: React__default.RefObject<HTMLDivElement | null>;
|
|
11638
11620
|
children?: React__default.ReactNode;
|
|
11639
11621
|
isFixedOrSticky?: boolean;
|
|
11622
|
+
priority?: number;
|
|
11640
11623
|
withLiquidBlur?: boolean;
|
|
11641
11624
|
animationQuality?: 'low' | 'medium' | 'high';
|
|
11642
11625
|
timeSpeed?: number;
|
|
@@ -11685,7 +11668,8 @@ interface UseAtomixGlassReturn {
|
|
|
11685
11668
|
* Composable hook for AtomixGlass component logic
|
|
11686
11669
|
* Manages all state, calculations, and event handlers
|
|
11687
11670
|
*/
|
|
11688
|
-
declare function useAtomixGlass({ glassRef, contentRef, wrapperRef, borderRadius, globalMousePosition: externalGlobalMousePosition, mouseOffset: externalMouseOffset, mouseContainer, overLight, reducedMotion, highContrast, withoutEffects, elasticity, onClick, debugBorderRadius, debugOverLight, children, blurAmount, saturation, padding, withLiquidBlur, isFixedOrSticky,
|
|
11671
|
+
declare function useAtomixGlass({ glassRef, contentRef, wrapperRef, borderRadius, globalMousePosition: externalGlobalMousePosition, mouseOffset: externalMouseOffset, mouseContainer, overLight, reducedMotion, highContrast, withoutEffects, elasticity, onClick, debugBorderRadius, debugOverLight, children, blurAmount, saturation, padding, withLiquidBlur, isFixedOrSticky, priority, // Default priority
|
|
11672
|
+
withTimeAnimation, animationSpeed, withMultiLayerDistortion, distortionOctaves, distortionLacunarity, distortionGain, distortionQuality, }: UseAtomixGlassOptions): UseAtomixGlassReturn;
|
|
11689
11673
|
|
|
11690
11674
|
/**
|
|
11691
11675
|
* Input state and functionality
|
|
@@ -14220,6 +14204,20 @@ declare function applyComponentTheme(component: string, style?: React.CSSPropert
|
|
|
14220
14204
|
*/
|
|
14221
14205
|
declare function useComponentTheme(component: string, variant?: string, size?: string, tokens?: Partial<DesignTokens>): (property: string) => string;
|
|
14222
14206
|
|
|
14207
|
+
/**
|
|
14208
|
+
* Theme Manager Utility Functions
|
|
14209
|
+
*
|
|
14210
|
+
* Helper functions for theme operations including CSS loading, DOM manipulation,
|
|
14211
|
+
* and theme validation.
|
|
14212
|
+
*/
|
|
14213
|
+
|
|
14214
|
+
/**
|
|
14215
|
+
* Detect system theme preference
|
|
14216
|
+
*
|
|
14217
|
+
* @returns 'dark' if system prefers dark mode, 'light' otherwise
|
|
14218
|
+
*/
|
|
14219
|
+
declare const getSystemTheme: () => "light" | "dark";
|
|
14220
|
+
|
|
14223
14221
|
/**
|
|
14224
14222
|
* Theme Utilities
|
|
14225
14223
|
*
|
|
@@ -14289,12 +14287,6 @@ declare function toggleTheme(options?: ThemeSwitcherOptions): ThemeMode;
|
|
|
14289
14287
|
* @returns Current theme mode or 'light' if not set
|
|
14290
14288
|
*/
|
|
14291
14289
|
declare function getCurrentTheme(storageKey?: string): ThemeMode;
|
|
14292
|
-
/**
|
|
14293
|
-
* Get system theme preference
|
|
14294
|
-
*
|
|
14295
|
-
* @returns 'dark' if system prefers dark mode, 'light' otherwise
|
|
14296
|
-
*/
|
|
14297
|
-
declare function getSystemTheme(): ThemeMode;
|
|
14298
14290
|
/**
|
|
14299
14291
|
* Initialize theme based on saved preference or system preference
|
|
14300
14292
|
*
|
|
@@ -16093,7 +16085,7 @@ declare const _default: {
|
|
|
16093
16085
|
switchTheme: typeof switchTheme;
|
|
16094
16086
|
toggleTheme: typeof toggleTheme;
|
|
16095
16087
|
getCurrentTheme: typeof getCurrentTheme;
|
|
16096
|
-
getSystemTheme:
|
|
16088
|
+
getSystemTheme: () => "light" | "dark";
|
|
16097
16089
|
initializeTheme: typeof initializeTheme;
|
|
16098
16090
|
listenToSystemTheme: typeof listenToSystemTheme;
|
|
16099
16091
|
persistTheme: typeof persistTheme;
|