@shohojdhara/atomix 0.5.1 → 0.5.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/atomix.config.ts +45 -33
- package/build-tools/webpack-loader.js +5 -4
- package/dist/atomix.css +138 -17
- package/dist/atomix.css.map +1 -1
- package/dist/atomix.min.css +1 -1
- package/dist/atomix.min.css.map +1 -1
- package/dist/build-tools/webpack-loader.js +5 -4
- package/dist/charts.d.ts +23 -23
- package/dist/charts.js +40 -37
- package/dist/charts.js.map +1 -1
- package/dist/config.d.ts +699 -0
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -0
- package/dist/core.d.ts +2 -2
- package/dist/core.js +111 -50
- package/dist/core.js.map +1 -1
- package/dist/forms.d.ts +3 -6
- package/dist/forms.js +2 -2
- package/dist/forms.js.map +1 -1
- package/dist/heavy.d.ts +1 -1
- package/dist/heavy.js +173 -111
- package/dist/heavy.js.map +1 -1
- package/dist/index.d.ts +1881 -790
- package/dist/index.esm.js +2713 -816
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2693 -780
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/layout.js +59 -60
- package/dist/layout.js.map +1 -1
- package/dist/theme.d.ts +1390 -276
- package/dist/theme.js +2133 -625
- package/dist/theme.js.map +1 -1
- package/package.json +14 -9
- package/scripts/atomix-cli.js +15 -1
- package/scripts/cli/__tests__/complexity-utils.test.js +24 -0
- package/scripts/cli/__tests__/detector.test.js +50 -0
- package/scripts/cli/__tests__/template-engine.test.js +23 -0
- package/scripts/cli/__tests__/test-setup.js +3 -0
- package/scripts/cli/commands/doctor.js +15 -3
- package/scripts/cli/commands/generate.js +113 -51
- package/scripts/cli/internal/ai-engine.js +30 -10
- package/scripts/cli/internal/complexity-utils.js +60 -0
- package/scripts/cli/internal/component-validator.js +49 -16
- package/scripts/cli/internal/config-loader.js +30 -20
- package/scripts/cli/internal/generator.js +89 -36
- package/scripts/cli/internal/hook-generator.js +5 -2
- package/scripts/cli/internal/itcss-generator.js +16 -12
- package/scripts/cli/templates/next-templates.js +81 -30
- package/scripts/cli/templates/storybook-templates.js +12 -2
- package/scripts/cli/utils/detector.js +45 -7
- package/scripts/cli/utils/diagnostics.js +78 -0
- package/scripts/cli/utils/telemetry.js +13 -0
- package/src/components/Accordion/Accordion.stories.tsx +4 -0
- package/src/components/AtomixGlass/AtomixGlassContainer.tsx +1 -1
- package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +219 -0
- package/src/components/AtomixGlass/glass-utils.ts +1 -1
- package/src/components/Button/Button.tsx +114 -57
- package/src/components/Callout/Callout.tsx +4 -4
- package/src/components/Chart/ChartRenderer.tsx +1 -1
- package/src/components/Chart/DonutChart.tsx +11 -8
- package/src/components/EdgePanel/EdgePanel.tsx +119 -115
- package/src/components/Form/Select.tsx +4 -4
- package/src/components/List/List.tsx +4 -4
- package/src/components/Navigation/SideMenu/SideMenu.tsx +6 -6
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +1 -1
- package/src/components/ProductReview/ProductReview.tsx +4 -2
- package/src/components/Rating/Rating.tsx +4 -2
- package/src/components/SectionIntro/SectionIntro.tsx +4 -2
- package/src/components/Steps/Steps.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +5 -5
- package/src/components/Testimonial/Testimonial.tsx +4 -2
- package/src/components/VideoPlayer/VideoPlayer.tsx +4 -2
- package/src/layouts/CssGrid/CssGrid.stories.tsx +464 -0
- package/src/layouts/CssGrid/CssGrid.tsx +215 -0
- package/src/layouts/CssGrid/index.ts +8 -0
- package/src/layouts/CssGrid/scripts/CssGrid.js +284 -0
- package/src/layouts/CssGrid/scripts/index.js +43 -0
- package/src/layouts/Grid/scripts/Container.js +139 -0
- package/src/layouts/Grid/scripts/Grid.js +184 -0
- package/src/layouts/Grid/scripts/GridCol.js +273 -0
- package/src/layouts/Grid/scripts/Row.js +154 -0
- package/src/layouts/Grid/scripts/index.js +48 -0
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +71 -59
- package/src/lib/composables/atomix-glass/useGlassSize.ts +1 -1
- package/src/lib/composables/useAccordion.ts +5 -5
- package/src/lib/composables/useAtomixGlass.ts +3 -3
- package/src/lib/composables/useBarChart.ts +2 -2
- package/src/lib/composables/useChart.ts +3 -2
- package/src/lib/composables/useChartToolbar.ts +48 -66
- package/src/lib/composables/useDataTable.ts +1 -1
- package/src/lib/composables/useDatePicker.ts +2 -2
- package/src/lib/composables/useEdgePanel.ts +45 -54
- package/src/lib/composables/useHeroBackgroundSlider.ts +5 -5
- package/src/lib/composables/usePhotoViewer.ts +2 -3
- package/src/lib/composables/usePieChart.ts +1 -1
- package/src/lib/composables/usePopover.ts +151 -139
- package/src/lib/composables/useSideMenu.ts +28 -41
- package/src/lib/composables/useSlider.ts +2 -6
- package/src/lib/composables/useTooltip.ts +2 -2
- package/src/lib/config/index.ts +38 -323
- package/src/lib/config/loader.ts +419 -0
- package/src/lib/config/public-api.ts +43 -0
- package/src/lib/config/types.ts +389 -0
- package/src/lib/config/validator.ts +305 -0
- package/src/lib/theme/adapters/index.ts +1 -1
- package/src/lib/theme/adapters/themeAdapter.ts +358 -229
- package/src/lib/theme/components/ThemeToggle.tsx +276 -0
- package/src/lib/theme/config/configLoader.ts +351 -0
- package/src/lib/theme/config/loader.ts +221 -0
- package/src/lib/theme/core/createTheme.ts +126 -50
- package/src/lib/theme/core/createThemeObject.ts +7 -4
- package/src/lib/theme/devtools/Comparator.tsx +1 -1
- package/src/lib/theme/devtools/Inspector.tsx +1 -1
- package/src/lib/theme/devtools/LiveEditor.tsx +1 -1
- package/src/lib/theme/hooks/useThemeSwitcher.ts +164 -0
- package/src/lib/theme/index.ts +322 -38
- package/src/lib/theme/runtime/ThemeProvider.tsx +45 -11
- package/src/lib/theme/runtime/__tests__/ThemeProvider.test.tsx +44 -393
- package/src/lib/theme/runtime/useTheme.ts +1 -0
- package/src/lib/theme/tokens/tokens.ts +101 -1
- package/src/lib/theme/types.ts +91 -0
- package/src/lib/theme/utils/performanceMonitor.ts +315 -0
- package/src/lib/theme/utils/responsive.ts +280 -0
- package/src/lib/theme/utils/themeUtils.ts +531 -117
- package/src/styles/01-settings/_index.scss +1 -0
- package/src/styles/01-settings/_settings.atomix-glass.scss +174 -0
- package/src/styles/01-settings/_settings.masonry-grid.scss +42 -6
- package/src/styles/02-tools/_tools.glass.scss +6 -0
- package/src/styles/05-objects/_objects.masonry-grid.scss +162 -24
- package/src/styles/06-components/_components.atomix-glass.scss +4 -4
- package/src/lib/composables/useBreadcrumb.ts +0 -81
- package/src/lib/composables/useChartInteractions.ts +0 -123
- package/src/lib/composables/useChartPerformance.ts +0 -347
- package/src/lib/composables/useDropdown.ts +0 -338
- package/src/lib/composables/useModal.ts +0 -110
- package/src/lib/hooks/usePerformanceMonitor.ts +0 -148
- package/src/lib/utils/displacement-generator.ts +0 -92
- package/src/lib/utils/memoryMonitor.ts +0 -191
- package/src/styles/01-settings/_settings.testtypecheck.scss +0 -53
- package/src/styles/01-settings/_settings.typedbutton.scss +0 -53
- package/src/styles/06-components/_components.testbutton.scss +0 -212
- package/src/styles/06-components/_components.testtypecheck.scss +0 -212
- package/src/styles/06-components/_components.typedbutton.scss +0 -212
package/dist/index.d.ts
CHANGED
|
@@ -6920,9 +6920,6 @@ declare const SelectOption: React__default.FC<SelectOptionProps>;
|
|
|
6920
6920
|
type SelectComponent = React__default.FC<SelectProps> & {
|
|
6921
6921
|
Option: typeof SelectOption;
|
|
6922
6922
|
};
|
|
6923
|
-
/**
|
|
6924
|
-
* Select - A component for dropdown selection
|
|
6925
|
-
*/
|
|
6926
6923
|
declare const Select: SelectComponent;
|
|
6927
6924
|
|
|
6928
6925
|
declare const EdgePanelHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -7598,7 +7595,7 @@ interface LineChartProps extends Omit<ChartProps, 'type'> {
|
|
|
7598
7595
|
*/
|
|
7599
7596
|
onBrushSelection?: (startIndex: number, endIndex: number) => void;
|
|
7600
7597
|
}
|
|
7601
|
-
declare const LineChart: React$1.
|
|
7598
|
+
declare const LineChart: React$1.NamedExoticComponent<LineChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7602
7599
|
|
|
7603
7600
|
interface AreaChartProps extends Omit<LineChartProps, 'lineOptions'> {
|
|
7604
7601
|
/**
|
|
@@ -7606,7 +7603,7 @@ interface AreaChartProps extends Omit<LineChartProps, 'lineOptions'> {
|
|
|
7606
7603
|
*/
|
|
7607
7604
|
areaOptions?: LineChartProps['lineOptions'];
|
|
7608
7605
|
}
|
|
7609
|
-
declare const AreaChart: React$1.
|
|
7606
|
+
declare const AreaChart: React$1.NamedExoticComponent<AreaChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7610
7607
|
|
|
7611
7608
|
/**
|
|
7612
7609
|
* Bar chart specific options
|
|
@@ -7743,7 +7740,7 @@ interface BarChartProps extends Omit<ChartProps, 'type'> {
|
|
|
7743
7740
|
*/
|
|
7744
7741
|
horizontal?: boolean;
|
|
7745
7742
|
}
|
|
7746
|
-
declare const BarChart: React$1.
|
|
7743
|
+
declare const BarChart: React$1.NamedExoticComponent<BarChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7747
7744
|
|
|
7748
7745
|
interface BubbleDataPoint {
|
|
7749
7746
|
label: string;
|
|
@@ -7809,7 +7806,7 @@ interface BubbleChartProps extends Omit<ChartProps, 'type' | 'datasets'> {
|
|
|
7809
7806
|
sizeBasedColoring?: boolean;
|
|
7810
7807
|
};
|
|
7811
7808
|
}
|
|
7812
|
-
declare const BubbleChart: React$1.
|
|
7809
|
+
declare const BubbleChart: React$1.NamedExoticComponent<BubbleChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7813
7810
|
|
|
7814
7811
|
interface CandlestickDataPoint {
|
|
7815
7812
|
/**
|
|
@@ -7908,14 +7905,14 @@ interface CandlestickChartProps extends Omit<ChartProps, 'type' | 'datasets' | '
|
|
|
7908
7905
|
showTooltips?: boolean;
|
|
7909
7906
|
};
|
|
7910
7907
|
}
|
|
7911
|
-
declare const CandlestickChart: React$1.
|
|
7908
|
+
declare const CandlestickChart: React$1.NamedExoticComponent<CandlestickChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7912
7909
|
|
|
7913
|
-
declare const Chart: React$1.
|
|
7910
|
+
declare const Chart: React$1.NamedExoticComponent<ChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
7914
7911
|
|
|
7915
7912
|
/**
|
|
7916
7913
|
* Enhanced chart renderer component with comprehensive functionality
|
|
7917
7914
|
*/
|
|
7918
|
-
declare const ChartRenderer: React$1.
|
|
7915
|
+
declare const ChartRenderer: React$1.NamedExoticComponent<{
|
|
7919
7916
|
datasets: ChartProps$1["datasets"];
|
|
7920
7917
|
config?: ChartProps$1["config"];
|
|
7921
7918
|
width?: number;
|
|
@@ -7926,7 +7923,7 @@ declare const ChartRenderer: React$1.MemoExoticComponent<React$1.ForwardRefExoti
|
|
|
7926
7923
|
enableAccessibility?: boolean;
|
|
7927
7924
|
enablePerformanceOptimization?: boolean;
|
|
7928
7925
|
renderContent: (params: ChartRenderContentParams) => React.ReactNode;
|
|
7929
|
-
} & React$1.RefAttributes<SVGSVGElement
|
|
7926
|
+
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
7930
7927
|
|
|
7931
7928
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7932
7929
|
type IconWeight = 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone';
|
|
@@ -8074,7 +8071,7 @@ interface PieChartProps extends Omit<ChartProps, 'type'> {
|
|
|
8074
8071
|
*/
|
|
8075
8072
|
pieOptions?: PieChartOptions;
|
|
8076
8073
|
}
|
|
8077
|
-
declare const PieChart: React$1.
|
|
8074
|
+
declare const PieChart: React$1.NamedExoticComponent<PieChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8078
8075
|
|
|
8079
8076
|
interface DonutChartProps extends Omit<PieChartProps, 'type'> {
|
|
8080
8077
|
/**
|
|
@@ -8103,7 +8100,7 @@ interface DonutChartProps extends Omit<PieChartProps, 'type'> {
|
|
|
8103
8100
|
roundedCorners?: boolean;
|
|
8104
8101
|
};
|
|
8105
8102
|
}
|
|
8106
|
-
declare const DonutChart: React$1.
|
|
8103
|
+
declare const DonutChart: React$1.NamedExoticComponent<DonutChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8107
8104
|
|
|
8108
8105
|
interface FunnelDataPoint {
|
|
8109
8106
|
label: string;
|
|
@@ -8195,7 +8192,7 @@ interface FunnelChartProps extends Omit<ChartProps, 'type' | 'datasets'> {
|
|
|
8195
8192
|
minSegmentRatio?: number;
|
|
8196
8193
|
};
|
|
8197
8194
|
}
|
|
8198
|
-
declare const FunnelChart: React$1.
|
|
8195
|
+
declare const FunnelChart: React$1.NamedExoticComponent<FunnelChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8199
8196
|
|
|
8200
8197
|
interface GaugeChartProps extends Omit<ChartProps, 'type' | 'datasets'> {
|
|
8201
8198
|
/**
|
|
@@ -8293,7 +8290,7 @@ interface GaugeChartProps extends Omit<ChartProps, 'type' | 'datasets'> {
|
|
|
8293
8290
|
labelPosition?: 'top' | 'bottom' | 'center';
|
|
8294
8291
|
};
|
|
8295
8292
|
}
|
|
8296
|
-
declare const GaugeChart: React$1.
|
|
8293
|
+
declare const GaugeChart: React$1.NamedExoticComponent<GaugeChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8297
8294
|
|
|
8298
8295
|
interface HeatmapDataPoint {
|
|
8299
8296
|
x: string | number;
|
|
@@ -8366,7 +8363,7 @@ interface HeatmapChartProps extends Omit<ChartProps, 'type' | 'datasets' | 'vari
|
|
|
8366
8363
|
*/
|
|
8367
8364
|
showGrid?: boolean;
|
|
8368
8365
|
}
|
|
8369
|
-
declare const HeatmapChart: React$1.
|
|
8366
|
+
declare const HeatmapChart: React$1.NamedExoticComponent<HeatmapChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8370
8367
|
|
|
8371
8368
|
interface AxisConfig {
|
|
8372
8369
|
/**
|
|
@@ -8483,7 +8480,7 @@ interface MultiAxisChartProps extends Omit<ChartProps$1, 'type'> {
|
|
|
8483
8480
|
spanGaps?: boolean;
|
|
8484
8481
|
};
|
|
8485
8482
|
}
|
|
8486
|
-
declare const MultiAxisChart: React$1.
|
|
8483
|
+
declare const MultiAxisChart: React$1.NamedExoticComponent<MultiAxisChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8487
8484
|
|
|
8488
8485
|
interface RadarChartProps extends Omit<ChartProps$1, 'type'> {
|
|
8489
8486
|
/**
|
|
@@ -8540,7 +8537,7 @@ interface RadarChartProps extends Omit<ChartProps$1, 'type'> {
|
|
|
8540
8537
|
scaleMax?: number;
|
|
8541
8538
|
};
|
|
8542
8539
|
}
|
|
8543
|
-
declare const RadarChart: React$1.
|
|
8540
|
+
declare const RadarChart: React$1.NamedExoticComponent<RadarChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8544
8541
|
|
|
8545
8542
|
interface ScatterChartProps extends Omit<ChartProps, 'type'> {
|
|
8546
8543
|
/**
|
|
@@ -8561,7 +8558,7 @@ interface ScatterChartProps extends Omit<ChartProps, 'type'> {
|
|
|
8561
8558
|
enableHoverEffects?: boolean;
|
|
8562
8559
|
};
|
|
8563
8560
|
}
|
|
8564
|
-
declare const ScatterChart: React$1.
|
|
8561
|
+
declare const ScatterChart: React$1.NamedExoticComponent<ScatterChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8565
8562
|
|
|
8566
8563
|
interface TreemapDataPoint {
|
|
8567
8564
|
id: string;
|
|
@@ -8651,7 +8648,7 @@ interface TreemapChartProps extends Omit<ChartProps$1, 'type' | 'datasets'> {
|
|
|
8651
8648
|
enableSelection?: boolean;
|
|
8652
8649
|
};
|
|
8653
8650
|
}
|
|
8654
|
-
declare const TreemapChart: React$1.
|
|
8651
|
+
declare const TreemapChart: React$1.NamedExoticComponent<TreemapChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8655
8652
|
|
|
8656
8653
|
interface WaterfallDataPoint {
|
|
8657
8654
|
label: string;
|
|
@@ -8736,7 +8733,7 @@ interface WaterfallChartProps extends Omit<ChartProps$1, 'type' | 'datasets'> {
|
|
|
8736
8733
|
baselineColor?: string;
|
|
8737
8734
|
};
|
|
8738
8735
|
}
|
|
8739
|
-
declare const WaterfallChart: React$1.
|
|
8736
|
+
declare const WaterfallChart: React$1.NamedExoticComponent<WaterfallChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
8740
8737
|
|
|
8741
8738
|
declare const CalloutIcon: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
8742
8739
|
declare const CalloutMessage: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -8768,7 +8765,7 @@ type ButtonAsProp = {
|
|
|
8768
8765
|
linkComponent?: React__default.ElementType;
|
|
8769
8766
|
[key: string]: any;
|
|
8770
8767
|
};
|
|
8771
|
-
declare const Button: React__default.
|
|
8768
|
+
declare const Button: React__default.NamedExoticComponent<Omit<ButtonProps & ButtonAsProp, "ref"> & React__default.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
8772
8769
|
|
|
8773
8770
|
interface BreadcrumbItemData {
|
|
8774
8771
|
/**
|
|
@@ -8880,7 +8877,7 @@ type AccordionComponent = React__default.FC<AccordionProps> & {
|
|
|
8880
8877
|
Header: typeof AccordionHeader;
|
|
8881
8878
|
Body: typeof AccordionBody;
|
|
8882
8879
|
};
|
|
8883
|
-
declare const _default: AccordionComponent;
|
|
8880
|
+
declare const _default$1: AccordionComponent;
|
|
8884
8881
|
|
|
8885
8882
|
/**
|
|
8886
8883
|
* Glass effect parameters for responsive breakpoints
|
|
@@ -11171,11 +11168,11 @@ interface UseHeroBackgroundSliderResult {
|
|
|
11171
11168
|
/**
|
|
11172
11169
|
* Array of refs for slide container elements
|
|
11173
11170
|
*/
|
|
11174
|
-
slideRefs: React__default.RefObject<HTMLDivElement>[];
|
|
11171
|
+
slideRefs: React__default.RefObject<HTMLDivElement | null>[];
|
|
11175
11172
|
/**
|
|
11176
11173
|
* Array of refs for video elements
|
|
11177
11174
|
*/
|
|
11178
|
-
videoRefs: React__default.RefObject<HTMLVideoElement>[];
|
|
11175
|
+
videoRefs: React__default.RefObject<HTMLVideoElement | null>[];
|
|
11179
11176
|
/**
|
|
11180
11177
|
* Handle slide transition to next index
|
|
11181
11178
|
*/
|
|
@@ -11433,11 +11430,10 @@ declare function useNavDropdown(initialProps?: Partial<NavDropdownProps>): {
|
|
|
11433
11430
|
* @returns SideMenu state and methods
|
|
11434
11431
|
*/
|
|
11435
11432
|
declare function useSideMenu(initialProps?: Partial<SideMenuProps>): {
|
|
11436
|
-
defaultProps: Partial<SideMenuProps>;
|
|
11437
11433
|
isOpenState: boolean;
|
|
11438
|
-
wrapperRef: React$1.RefObject<HTMLDivElement>;
|
|
11439
|
-
innerRef: React$1.RefObject<HTMLDivElement>;
|
|
11440
|
-
sideMenuRef: React$1.RefObject<HTMLDivElement>;
|
|
11434
|
+
wrapperRef: React$1.RefObject<HTMLDivElement | null>;
|
|
11435
|
+
innerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
11436
|
+
sideMenuRef: React$1.RefObject<HTMLDivElement | null>;
|
|
11441
11437
|
generateSideMenuClass: (props: Partial<SideMenuProps & {
|
|
11442
11438
|
isOpen?: boolean;
|
|
11443
11439
|
}>) => string;
|
|
@@ -11464,8 +11460,8 @@ declare function useSideMenuItem(initialProps?: Partial<SideMenuItemProps>): {
|
|
|
11464
11460
|
*/
|
|
11465
11461
|
declare function useEdgePanel(initialProps?: Partial<EdgePanelProps>): {
|
|
11466
11462
|
isOpen: boolean;
|
|
11467
|
-
containerRef: React$1.RefObject<HTMLDivElement>;
|
|
11468
|
-
backdropRef: React$1.RefObject<HTMLDivElement>;
|
|
11463
|
+
containerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
11464
|
+
backdropRef: React$1.RefObject<HTMLDivElement | null>;
|
|
11469
11465
|
generateEdgePanelClass: (props: Partial<EdgePanelProps>) => string;
|
|
11470
11466
|
openPanel: (useFadeAnimation?: boolean) => void;
|
|
11471
11467
|
closePanel: (useFadeAnimation?: boolean) => void;
|
|
@@ -11513,9 +11509,9 @@ declare function useFormGroup(initialProps?: Partial<FormGroupProps>): {
|
|
|
11513
11509
|
};
|
|
11514
11510
|
|
|
11515
11511
|
interface UseAtomixGlassOptions extends Omit<AtomixGlassProps, 'children'> {
|
|
11516
|
-
glassRef: React__default.RefObject<HTMLDivElement>;
|
|
11517
|
-
contentRef: React__default.RefObject<HTMLDivElement>;
|
|
11518
|
-
wrapperRef?: React__default.RefObject<HTMLDivElement>;
|
|
11512
|
+
glassRef: React__default.RefObject<HTMLDivElement | null>;
|
|
11513
|
+
contentRef: React__default.RefObject<HTMLDivElement | null>;
|
|
11514
|
+
wrapperRef?: React__default.RefObject<HTMLDivElement | null>;
|
|
11519
11515
|
children?: React__default.ReactNode;
|
|
11520
11516
|
isFixedOrSticky?: boolean;
|
|
11521
11517
|
withLiquidBlur?: boolean;
|
|
@@ -11705,7 +11701,7 @@ declare function createBreakpoints(customBreakpoints: Partial<Record<string, Res
|
|
|
11705
11701
|
/**
|
|
11706
11702
|
* Performance metrics collected by the monitor
|
|
11707
11703
|
*/
|
|
11708
|
-
interface PerformanceMetrics {
|
|
11704
|
+
interface PerformanceMetrics$1 {
|
|
11709
11705
|
/** Frames per second (target: 60) */
|
|
11710
11706
|
fps: number;
|
|
11711
11707
|
/** Time to render last frame in milliseconds (target: <16ms) */
|
|
@@ -11724,7 +11720,7 @@ interface PerformanceMetrics {
|
|
|
11724
11720
|
/**
|
|
11725
11721
|
* Configuration for performance monitor
|
|
11726
11722
|
*/
|
|
11727
|
-
interface PerformanceMonitorConfig {
|
|
11723
|
+
interface PerformanceMonitorConfig$1 {
|
|
11728
11724
|
/** Enable/disable monitoring */
|
|
11729
11725
|
enabled?: boolean;
|
|
11730
11726
|
/** Target FPS for auto-scaling (default: 60) */
|
|
@@ -11747,7 +11743,7 @@ interface PerformanceMonitorConfig {
|
|
|
11747
11743
|
*/
|
|
11748
11744
|
interface UsePerformanceMonitorReturn {
|
|
11749
11745
|
/** Current performance metrics */
|
|
11750
|
-
metrics: PerformanceMetrics;
|
|
11746
|
+
metrics: PerformanceMetrics$1;
|
|
11751
11747
|
/** Recommended quality level based on performance */
|
|
11752
11748
|
recommendedQuality: 'low' | 'medium' | 'high';
|
|
11753
11749
|
/** Whether performance is below target */
|
|
@@ -11784,7 +11780,7 @@ interface UsePerformanceMonitorReturn {
|
|
|
11784
11780
|
* @param config Monitor configuration
|
|
11785
11781
|
* @returns Performance metrics and controls
|
|
11786
11782
|
*/
|
|
11787
|
-
declare function usePerformanceMonitor(config?: PerformanceMonitorConfig): UsePerformanceMonitorReturn;
|
|
11783
|
+
declare function usePerformanceMonitor$1(config?: PerformanceMonitorConfig$1): UsePerformanceMonitorReturn;
|
|
11788
11784
|
/**
|
|
11789
11785
|
* Debug Overlay Component (Optional)
|
|
11790
11786
|
*
|
|
@@ -11792,7 +11788,7 @@ declare function usePerformanceMonitor(config?: PerformanceMonitorConfig): UsePe
|
|
|
11792
11788
|
* Only rendered when showOverlay is enabled.
|
|
11793
11789
|
*/
|
|
11794
11790
|
declare function PerformanceOverlay({ metrics }: {
|
|
11795
|
-
metrics: PerformanceMetrics;
|
|
11791
|
+
metrics: PerformanceMetrics$1;
|
|
11796
11792
|
}): null;
|
|
11797
11793
|
/**
|
|
11798
11794
|
* Utility to get quality multipliers for glass parameters
|
|
@@ -11913,8 +11909,6 @@ declare const __lib_composables_DeviceDetector: typeof DeviceDetector;
|
|
|
11913
11909
|
type __lib_composables_LineChartOptions = LineChartOptions;
|
|
11914
11910
|
declare const __lib_composables_MOBILE_OPTIMIZED_BREAKPOINTS: typeof MOBILE_OPTIMIZED_BREAKPOINTS;
|
|
11915
11911
|
declare const __lib_composables_PERFORMANCE_PRESET: typeof PERFORMANCE_PRESET;
|
|
11916
|
-
type __lib_composables_PerformanceMetrics = PerformanceMetrics;
|
|
11917
|
-
type __lib_composables_PerformanceMonitorConfig = PerformanceMonitorConfig;
|
|
11918
11912
|
declare const __lib_composables_PerformanceOverlay: typeof PerformanceOverlay;
|
|
11919
11913
|
type __lib_composables_PieChartOptions = PieChartOptions;
|
|
11920
11914
|
type __lib_composables_PieSlice = PieSlice;
|
|
@@ -11947,7 +11941,6 @@ declare const __lib_composables_useNav: typeof useNav;
|
|
|
11947
11941
|
declare const __lib_composables_useNavDropdown: typeof useNavDropdown;
|
|
11948
11942
|
declare const __lib_composables_useNavItem: typeof useNavItem;
|
|
11949
11943
|
declare const __lib_composables_useNavbar: typeof useNavbar;
|
|
11950
|
-
declare const __lib_composables_usePerformanceMonitor: typeof usePerformanceMonitor;
|
|
11951
11944
|
declare const __lib_composables_usePieChart: typeof usePieChart;
|
|
11952
11945
|
declare const __lib_composables_useRadio: typeof useRadio;
|
|
11953
11946
|
declare const __lib_composables_useResponsiveGlass: typeof useResponsiveGlass;
|
|
@@ -11959,8 +11952,8 @@ declare const __lib_composables_useSpinner: typeof useSpinner;
|
|
|
11959
11952
|
declare const __lib_composables_useTextarea: typeof useTextarea;
|
|
11960
11953
|
declare const __lib_composables_useTodo: typeof useTodo;
|
|
11961
11954
|
declare namespace __lib_composables {
|
|
11962
|
-
export { __lib_composables_BALANCED_PRESET as BALANCED_PRESET, __lib_composables_DEFAULT_BREAKPOINTS as DEFAULT_BREAKPOINTS, __lib_composables_DeviceDetector as DeviceDetector, __lib_composables_MOBILE_OPTIMIZED_BREAKPOINTS as MOBILE_OPTIMIZED_BREAKPOINTS, __lib_composables_PERFORMANCE_PRESET as PERFORMANCE_PRESET, __lib_composables_PerformanceOverlay as PerformanceOverlay, __lib_composables_QUALITY_PRESET as QUALITY_PRESET, __lib_composables_createBreakpoints as createBreakpoints, __lib_composables_getDefaultBreakpoints as getDefaultBreakpoints, __lib_composables_getDevicePreset as getDevicePreset, __lib_composables_getMobileOptimizedParams as getMobileOptimizedParams, __lib_composables_getQualityMultipliers as getQualityMultipliers, __lib_composables_useAccordion as useAccordion, __lib_composables_useAtomixGlass as useAtomixGlass, __lib_composables_useBadge as useBadge, __lib_composables_useBarChart as useBarChart, __lib_composables_useBlock as useBlock, __lib_composables_useChartData as useChartData, __lib_composables_useChartInteraction as useChartInteraction, __lib_composables_useChartScale as useChartScale, __lib_composables_useEdgePanel as useEdgePanel, __lib_composables_useForm as useForm, __lib_composables_useFormGroup as useFormGroup, __lib_composables_useHero as useHero, __lib_composables_useInput as useInput, __lib_composables_useLineChart as useLineChart, __lib_composables_useNav as useNav, __lib_composables_useNavDropdown as useNavDropdown, __lib_composables_useNavItem as useNavItem, __lib_composables_useNavbar as useNavbar,
|
|
11963
|
-
export type { __lib_composables_BarChartOptions as BarChartOptions, __lib_composables_BarDimensions as BarDimensions, __lib_composables_LineChartOptions as LineChartOptions,
|
|
11955
|
+
export { __lib_composables_BALANCED_PRESET as BALANCED_PRESET, __lib_composables_DEFAULT_BREAKPOINTS as DEFAULT_BREAKPOINTS, __lib_composables_DeviceDetector as DeviceDetector, __lib_composables_MOBILE_OPTIMIZED_BREAKPOINTS as MOBILE_OPTIMIZED_BREAKPOINTS, __lib_composables_PERFORMANCE_PRESET as PERFORMANCE_PRESET, __lib_composables_PerformanceOverlay as PerformanceOverlay, __lib_composables_QUALITY_PRESET as QUALITY_PRESET, __lib_composables_createBreakpoints as createBreakpoints, __lib_composables_getDefaultBreakpoints as getDefaultBreakpoints, __lib_composables_getDevicePreset as getDevicePreset, __lib_composables_getMobileOptimizedParams as getMobileOptimizedParams, __lib_composables_getQualityMultipliers as getQualityMultipliers, __lib_composables_useAccordion as useAccordion, __lib_composables_useAtomixGlass as useAtomixGlass, __lib_composables_useBadge as useBadge, __lib_composables_useBarChart as useBarChart, __lib_composables_useBlock as useBlock, __lib_composables_useChartData as useChartData, __lib_composables_useChartInteraction as useChartInteraction, __lib_composables_useChartScale as useChartScale, __lib_composables_useEdgePanel as useEdgePanel, __lib_composables_useForm as useForm, __lib_composables_useFormGroup as useFormGroup, __lib_composables_useHero as useHero, __lib_composables_useInput as useInput, __lib_composables_useLineChart as useLineChart, __lib_composables_useNav as useNav, __lib_composables_useNavDropdown as useNavDropdown, __lib_composables_useNavItem as useNavItem, __lib_composables_useNavbar as useNavbar, usePerformanceMonitor$1 as usePerformanceMonitor, __lib_composables_usePieChart as usePieChart, __lib_composables_useRadio as useRadio, __lib_composables_useResponsiveGlass as useResponsiveGlass, __lib_composables_useRiver as useRiver, __lib_composables_useSelect as useSelect, __lib_composables_useSideMenu as useSideMenu, __lib_composables_useSideMenuItem as useSideMenuItem, __lib_composables_useSpinner as useSpinner, __lib_composables_useTextarea as useTextarea, __lib_composables_useTodo as useTodo };
|
|
11956
|
+
export type { __lib_composables_BarChartOptions as BarChartOptions, __lib_composables_BarDimensions as BarDimensions, __lib_composables_LineChartOptions as LineChartOptions, PerformanceMetrics$1 as PerformanceMetrics, PerformanceMonitorConfig$1 as PerformanceMonitorConfig, __lib_composables_PieChartOptions as PieChartOptions, __lib_composables_PieSlice as PieSlice, __lib_composables_RiverContentColumn as RiverContentColumn, __lib_composables_RiverProps as RiverProps, __lib_composables_UseBlockOptions as UseBlockOptions, __lib_composables_UseBlockReturn as UseBlockReturn, __lib_composables_UsePerformanceMonitorReturn as UsePerformanceMonitorReturn };
|
|
11964
11957
|
}
|
|
11965
11958
|
|
|
11966
11959
|
interface AtomixLogoProps extends React__default.SVGProps<SVGSVGElement> {
|
|
@@ -12058,7 +12051,7 @@ declare global {
|
|
|
12058
12051
|
* AtomixGlass - wrapped with React.memo to prevent unnecessary re-renders.
|
|
12059
12052
|
* Ref is forwarded to the root `<div>` element.
|
|
12060
12053
|
*/
|
|
12061
|
-
declare const AtomixGlass: React__default.
|
|
12054
|
+
declare const AtomixGlass: React__default.NamedExoticComponent<AtomixGlassProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
12062
12055
|
|
|
12063
12056
|
declare const Avatar: React__default.FC<AvatarProps>;
|
|
12064
12057
|
|
|
@@ -12203,7 +12196,7 @@ declare const Block: React__default.ForwardRefExoticComponent<BlockProps & React
|
|
|
12203
12196
|
*/
|
|
12204
12197
|
declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
12205
12198
|
|
|
12206
|
-
declare const Card: React__default.
|
|
12199
|
+
declare const Card: React__default.NamedExoticComponent<CardProps & React__default.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
12207
12200
|
|
|
12208
12201
|
declare const ElevationCard: React__default.FC<ElevationCardProps>;
|
|
12209
12202
|
|
|
@@ -12282,7 +12275,7 @@ declare const DataTable: React__default.FC<DataTableProps>;
|
|
|
12282
12275
|
*/
|
|
12283
12276
|
declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<DatePickerRef>>;
|
|
12284
12277
|
|
|
12285
|
-
declare const Checkbox: React__default.
|
|
12278
|
+
declare const Checkbox: React__default.NamedExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
12286
12279
|
|
|
12287
12280
|
/**
|
|
12288
12281
|
* Footer component provides a comprehensive footer section with multiple layout options,
|
|
@@ -12360,7 +12353,7 @@ declare const FormGroup: React__default.FC<FormGroupProps>;
|
|
|
12360
12353
|
/**
|
|
12361
12354
|
* Input - A component for text input fields
|
|
12362
12355
|
*/
|
|
12363
|
-
declare const Input: React__default.
|
|
12356
|
+
declare const Input: React__default.NamedExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
12364
12357
|
|
|
12365
12358
|
/**
|
|
12366
12359
|
* Radio - A component for radio button inputs
|
|
@@ -12370,7 +12363,7 @@ declare const Radio: React__default.FC<RadioProps>;
|
|
|
12370
12363
|
/**
|
|
12371
12364
|
* Textarea - A component for multiline text input
|
|
12372
12365
|
*/
|
|
12373
|
-
declare const Textarea: React__default.
|
|
12366
|
+
declare const Textarea: React__default.NamedExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
12374
12367
|
|
|
12375
12368
|
type ListGroupProps = ListGroupProps$1;
|
|
12376
12369
|
declare const ListGroup: React__default.FC<ListGroupProps>;
|
|
@@ -12596,7 +12589,7 @@ interface ProductReviewProps {
|
|
|
12596
12589
|
*/
|
|
12597
12590
|
declare const ProductReview: React__default.FC<ProductReviewProps>;
|
|
12598
12591
|
|
|
12599
|
-
declare const Progress: React__default.
|
|
12592
|
+
declare const Progress: React__default.NamedExoticComponent<ProgressProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
12600
12593
|
|
|
12601
12594
|
/**
|
|
12602
12595
|
* Rating component for displaying and collecting star ratings
|
|
@@ -13199,6 +13192,47 @@ interface DesignTokens {
|
|
|
13199
13192
|
'breakpoint-lg': string;
|
|
13200
13193
|
'breakpoint-xl': string;
|
|
13201
13194
|
'breakpoint-xxl': string;
|
|
13195
|
+
'interactive-vortex-enabled': string;
|
|
13196
|
+
'interactive-vortex-strength': string;
|
|
13197
|
+
'interactive-vortex-radius': string;
|
|
13198
|
+
'interactive-vortex-decay': string;
|
|
13199
|
+
'interactive-chromatic-enabled': string;
|
|
13200
|
+
'interactive-chromatic-mode': string;
|
|
13201
|
+
'interactive-chromatic-red-shift': string;
|
|
13202
|
+
'interactive-chromatic-green-shift': string;
|
|
13203
|
+
'interactive-chromatic-blue-shift': string;
|
|
13204
|
+
'interactive-chromatic-edge-only': string;
|
|
13205
|
+
'interactive-chromatic-edge-threshold': string;
|
|
13206
|
+
'interactive-mouse-sensitivity': string;
|
|
13207
|
+
'interactive-mouse-trail-effect': string;
|
|
13208
|
+
'interactive-animation-speed-base': string;
|
|
13209
|
+
'interactive-animation-speed-multiplier': string;
|
|
13210
|
+
'optimization-breakpoint-mobile': string;
|
|
13211
|
+
'optimization-breakpoint-tablet': string;
|
|
13212
|
+
'optimization-breakpoint-desktop': string;
|
|
13213
|
+
'optimization-breakpoint-wide': string;
|
|
13214
|
+
'optimization-device-scaling-mobile': string;
|
|
13215
|
+
'optimization-device-scaling-tablet': string;
|
|
13216
|
+
'optimization-device-scaling-desktop': string;
|
|
13217
|
+
'optimization-performance-fps-target': string;
|
|
13218
|
+
'optimization-auto-scaling-enabled': string;
|
|
13219
|
+
'optimization-auto-scaling-low-end': string;
|
|
13220
|
+
'optimization-auto-scaling-mid-range': string;
|
|
13221
|
+
'optimization-auto-scaling-high-end': string;
|
|
13222
|
+
'visual-polish-border-iridescent-glow': string;
|
|
13223
|
+
'visual-polish-border-shimmer-effect': string;
|
|
13224
|
+
'visual-polish-border-beveled-edges': string;
|
|
13225
|
+
'visual-polish-border-pulsing-glow': string;
|
|
13226
|
+
'visual-polish-content-aware-blur-enabled': string;
|
|
13227
|
+
'visual-polish-content-aware-depth-detection': string;
|
|
13228
|
+
'visual-polish-content-aware-edge-preservation': string;
|
|
13229
|
+
'visual-polish-content-aware-variable-radius': string;
|
|
13230
|
+
'visual-polish-holographic-enabled': string;
|
|
13231
|
+
'visual-polish-holographic-rainbow-diffraction': string;
|
|
13232
|
+
'visual-polish-holographic-scanline-animation': string;
|
|
13233
|
+
'visual-polish-holographic-grid-overlay': string;
|
|
13234
|
+
'visual-polish-holographic-data-stream': string;
|
|
13235
|
+
'visual-polish-holographic-pulse-rings': string;
|
|
13202
13236
|
[key: string]: string | undefined;
|
|
13203
13237
|
}
|
|
13204
13238
|
/**
|
|
@@ -13223,203 +13257,6 @@ declare const defaultTokens: DesignTokens;
|
|
|
13223
13257
|
*/
|
|
13224
13258
|
declare function createTokens(overrides?: Partial<DesignTokens>): DesignTokens;
|
|
13225
13259
|
|
|
13226
|
-
/**
|
|
13227
|
-
* CSS Variable Generator
|
|
13228
|
-
*
|
|
13229
|
-
* Generates CSS custom properties from design tokens.
|
|
13230
|
-
*/
|
|
13231
|
-
|
|
13232
|
-
/**
|
|
13233
|
-
* Options for CSS variable generation
|
|
13234
|
-
*/
|
|
13235
|
-
interface GenerateCSSVariablesOptions {
|
|
13236
|
-
/** CSS selector for the variables (default: ':root') */
|
|
13237
|
-
selector?: string;
|
|
13238
|
-
/** Prefix for CSS variables (default: 'atomix') */
|
|
13239
|
-
prefix?: string;
|
|
13240
|
-
}
|
|
13241
|
-
/**
|
|
13242
|
-
* Generate CSS variables from tokens
|
|
13243
|
-
*
|
|
13244
|
-
* Converts flat token object to CSS custom properties.
|
|
13245
|
-
*
|
|
13246
|
-
* @param tokens - Design tokens object
|
|
13247
|
-
* @param options - Generation options
|
|
13248
|
-
* @returns CSS string with custom properties
|
|
13249
|
-
*
|
|
13250
|
-
* @example
|
|
13251
|
-
* ```typescript
|
|
13252
|
-
* const tokens = {
|
|
13253
|
-
* 'primary': '#7c3aed',
|
|
13254
|
-
* 'spacing-4': '1rem',
|
|
13255
|
-
* };
|
|
13256
|
-
*
|
|
13257
|
-
* const css = generateCSSVariables(tokens);
|
|
13258
|
-
* // Returns: ":root {\n --atomix-primary: #7c3aed;\n --atomix-spacing-4: 1rem;\n}"
|
|
13259
|
-
* ```
|
|
13260
|
-
*/
|
|
13261
|
-
declare function generateCSSVariables(tokens: DesignTokens, options?: GenerateCSSVariablesOptions): string;
|
|
13262
|
-
/**
|
|
13263
|
-
* Generate CSS variables with custom selector
|
|
13264
|
-
*
|
|
13265
|
-
* Useful for theme-specific selectors like `[data-theme="dark"]`
|
|
13266
|
-
*
|
|
13267
|
-
* @param tokens - Design tokens object
|
|
13268
|
-
* @param selector - CSS selector (e.g., '[data-theme="dark"]')
|
|
13269
|
-
* @param prefix - CSS variable prefix
|
|
13270
|
-
* @returns CSS string
|
|
13271
|
-
*
|
|
13272
|
-
* @example
|
|
13273
|
-
* ```typescript
|
|
13274
|
-
* const css = generateCSSVariablesForSelector(
|
|
13275
|
-
* tokens,
|
|
13276
|
-
* '[data-theme="dark"]',
|
|
13277
|
-
* 'atomix'
|
|
13278
|
-
* );
|
|
13279
|
-
* ```
|
|
13280
|
-
*/
|
|
13281
|
-
declare function generateCSSVariablesForSelector(tokens: DesignTokens, selector: string, prefix?: string): string;
|
|
13282
|
-
|
|
13283
|
-
/**
|
|
13284
|
-
* Core Theme Functions
|
|
13285
|
-
*
|
|
13286
|
-
* Simplified theme system using DesignTokens only.
|
|
13287
|
-
* Config-first approach: loads from atomix.config.ts when no input is provided.
|
|
13288
|
-
*/
|
|
13289
|
-
|
|
13290
|
-
/**
|
|
13291
|
-
* Create theme CSS from DesignTokens
|
|
13292
|
-
*
|
|
13293
|
-
* **Config-First Approach**: If no input is provided, loads from `atomix.config.ts`.
|
|
13294
|
-
*
|
|
13295
|
-
* @param input - DesignTokens (partial) or undefined (loads from config)
|
|
13296
|
-
* @param options - CSS generation options (prefix is automatically read from config if not provided)
|
|
13297
|
-
* @returns CSS string with custom properties
|
|
13298
|
-
* @throws Error if config loading fails when no input is provided
|
|
13299
|
-
*
|
|
13300
|
-
* @example
|
|
13301
|
-
* ```typescript
|
|
13302
|
-
* // Loads from atomix.config.ts
|
|
13303
|
-
* const css = createTheme();
|
|
13304
|
-
*
|
|
13305
|
-
* // Using DesignTokens
|
|
13306
|
-
* const css = createTheme({
|
|
13307
|
-
* 'primary': '#7c3aed',
|
|
13308
|
-
* 'spacing-4': '1rem',
|
|
13309
|
-
* });
|
|
13310
|
-
*
|
|
13311
|
-
* // With custom options
|
|
13312
|
-
* const css = createTheme(undefined, { prefix: 'myapp', selector: ':root' });
|
|
13313
|
-
* ```
|
|
13314
|
-
*/
|
|
13315
|
-
declare function createTheme(input?: Partial<DesignTokens>, options?: GenerateCSSVariablesOptions): string;
|
|
13316
|
-
|
|
13317
|
-
/**
|
|
13318
|
-
* Theme Composition Utilities
|
|
13319
|
-
*
|
|
13320
|
-
* Simplified utilities for composing and merging DesignTokens.
|
|
13321
|
-
*/
|
|
13322
|
-
/**
|
|
13323
|
-
* Deep merge multiple objects
|
|
13324
|
-
* Later objects override earlier ones
|
|
13325
|
-
*/
|
|
13326
|
-
declare function deepMerge<T extends Record<string, unknown>>(...objects: Partial<T>[]): T;
|
|
13327
|
-
|
|
13328
|
-
/**
|
|
13329
|
-
* Merge multiple DesignTokens objects into a single DesignTokens object
|
|
13330
|
-
*
|
|
13331
|
-
* @param tokens - DesignTokens objects to merge
|
|
13332
|
-
* @returns Merged DesignTokens object
|
|
13333
|
-
*
|
|
13334
|
-
* @example
|
|
13335
|
-
* ```typescript
|
|
13336
|
-
* const baseTokens = { 'primary': '#000', 'spacing-4': '1rem' };
|
|
13337
|
-
* const customTokens = { 'secondary': '#fff', 'spacing-4': '1.5rem' };
|
|
13338
|
-
* const merged = mergeTheme(baseTokens, customTokens);
|
|
13339
|
-
* // Returns: { 'primary': '#000', 'secondary': '#fff', 'spacing-4': '1.5rem' }
|
|
13340
|
-
* ```
|
|
13341
|
-
*/
|
|
13342
|
-
declare function mergeTheme(...tokens: Partial<DesignTokens>[]): Partial<DesignTokens>;
|
|
13343
|
-
/**
|
|
13344
|
-
* Extend DesignTokens with additional tokens
|
|
13345
|
-
*
|
|
13346
|
-
* @param baseTokens - Base DesignTokens to extend
|
|
13347
|
-
* @param extension - Additional DesignTokens to merge
|
|
13348
|
-
* @returns Extended DesignTokens object
|
|
13349
|
-
*
|
|
13350
|
-
* @example
|
|
13351
|
-
* ```typescript
|
|
13352
|
-
* const base = { 'primary': '#000' };
|
|
13353
|
-
* const extended = extendTheme(base, { 'secondary': '#fff' });
|
|
13354
|
-
* // Returns: { 'primary': '#000', 'secondary': '#fff' }
|
|
13355
|
-
* ```
|
|
13356
|
-
*/
|
|
13357
|
-
declare function extendTheme(baseTokens: Partial<DesignTokens>, extension: Partial<DesignTokens>): Partial<DesignTokens>;
|
|
13358
|
-
|
|
13359
|
-
/**
|
|
13360
|
-
* Theme Metadata interface
|
|
13361
|
-
*/
|
|
13362
|
-
interface ThemeMetadata$1 {
|
|
13363
|
-
name: string;
|
|
13364
|
-
class: string;
|
|
13365
|
-
description?: string;
|
|
13366
|
-
version?: string;
|
|
13367
|
-
[key: string]: any;
|
|
13368
|
-
}
|
|
13369
|
-
/**
|
|
13370
|
-
* Theme Registry type - a record of theme IDs to metadata
|
|
13371
|
-
*/
|
|
13372
|
-
type ThemeRegistry = Record<string, ThemeMetadata$1>;
|
|
13373
|
-
/**
|
|
13374
|
-
* Create a new theme registry
|
|
13375
|
-
*/
|
|
13376
|
-
declare function createThemeRegistry(): ThemeRegistry;
|
|
13377
|
-
/**
|
|
13378
|
-
* Register a theme
|
|
13379
|
-
* @param registry - Theme registry object
|
|
13380
|
-
* @param id - Theme identifier
|
|
13381
|
-
* @param metadata - Theme metadata
|
|
13382
|
-
*/
|
|
13383
|
-
declare function registerTheme(registry: ThemeRegistry, id: string, metadata: ThemeMetadata$1): void;
|
|
13384
|
-
/**
|
|
13385
|
-
* Unregister a theme
|
|
13386
|
-
* @param registry - Theme registry object
|
|
13387
|
-
* @param id - Theme identifier
|
|
13388
|
-
*/
|
|
13389
|
-
declare function unregisterTheme(registry: ThemeRegistry, id: string): boolean;
|
|
13390
|
-
/**
|
|
13391
|
-
* Check if a theme is registered
|
|
13392
|
-
* @param registry - Theme registry object
|
|
13393
|
-
* @param id - Theme identifier
|
|
13394
|
-
*/
|
|
13395
|
-
declare function hasTheme(registry: ThemeRegistry, id: string): boolean;
|
|
13396
|
-
/**
|
|
13397
|
-
* Get theme metadata
|
|
13398
|
-
* @param registry - Theme registry object
|
|
13399
|
-
* @param id - Theme identifier
|
|
13400
|
-
*/
|
|
13401
|
-
declare function getTheme(registry: ThemeRegistry, id: string): ThemeMetadata$1 | undefined;
|
|
13402
|
-
/**
|
|
13403
|
-
* Get all registered theme metadata
|
|
13404
|
-
* @param registry - Theme registry object
|
|
13405
|
-
*/
|
|
13406
|
-
declare function getAllThemes(registry: ThemeRegistry): ThemeMetadata$1[];
|
|
13407
|
-
/**
|
|
13408
|
-
* Get all registered theme IDs
|
|
13409
|
-
* @param registry - Theme registry object
|
|
13410
|
-
*/
|
|
13411
|
-
declare function getThemeIds(registry: ThemeRegistry): string[];
|
|
13412
|
-
/**
|
|
13413
|
-
* Clear all registered themes
|
|
13414
|
-
* @param registry - Theme registry object
|
|
13415
|
-
*/
|
|
13416
|
-
declare function clearThemes(registry: ThemeRegistry): void;
|
|
13417
|
-
/**
|
|
13418
|
-
* Get the number of registered themes
|
|
13419
|
-
* @param registry - Theme registry object
|
|
13420
|
-
*/
|
|
13421
|
-
declare function getThemeCount(registry: ThemeRegistry): number;
|
|
13422
|
-
|
|
13423
13260
|
/**
|
|
13424
13261
|
* Theme Manager Type Definitions
|
|
13425
13262
|
*
|
|
@@ -13428,7 +13265,7 @@ declare function getThemeCount(registry: ThemeRegistry): number;
|
|
|
13428
13265
|
/**
|
|
13429
13266
|
* Theme metadata interface matching themes.config.js structure
|
|
13430
13267
|
*/
|
|
13431
|
-
interface ThemeMetadata {
|
|
13268
|
+
interface ThemeMetadata$1 {
|
|
13432
13269
|
/** Display name of the theme */
|
|
13433
13270
|
name: string;
|
|
13434
13271
|
/** Unique identifier/class name for the theme */
|
|
@@ -13510,8 +13347,10 @@ interface UseThemeReturn {
|
|
|
13510
13347
|
activeTokens: DesignTokens | null;
|
|
13511
13348
|
/** Function to change theme (supports string or DesignTokens) */
|
|
13512
13349
|
setTheme: (theme: string | DesignTokens | Partial<DesignTokens>, options?: ThemeLoadOptions) => Promise<void>;
|
|
13350
|
+
/** Update a specific theme section */
|
|
13351
|
+
updateTheme: (section: ThemeSection, values: any) => Promise<void>;
|
|
13513
13352
|
/** Available themes */
|
|
13514
|
-
availableThemes: ThemeMetadata[];
|
|
13353
|
+
availableThemes: ThemeMetadata$1[];
|
|
13515
13354
|
/** Whether a theme is currently loading */
|
|
13516
13355
|
isLoading: boolean;
|
|
13517
13356
|
/** Current error, if any */
|
|
@@ -13580,7 +13419,7 @@ interface ThemeProviderProps {
|
|
|
13580
13419
|
/** Default theme (string name or DesignTokens) */
|
|
13581
13420
|
defaultTheme?: string | DesignTokens | Partial<DesignTokens>;
|
|
13582
13421
|
/** Available themes */
|
|
13583
|
-
themes?: Record<string, ThemeMetadata>;
|
|
13422
|
+
themes?: Record<string, ThemeMetadata$1>;
|
|
13584
13423
|
/** Base path for theme CSS */
|
|
13585
13424
|
basePath?: string;
|
|
13586
13425
|
/** CDN path for theme CSS */
|
|
@@ -13602,6 +13441,10 @@ interface ThemeProviderProps {
|
|
|
13602
13441
|
/** Callback on error */
|
|
13603
13442
|
onError?: (error: Error, themeName: string) => void;
|
|
13604
13443
|
}
|
|
13444
|
+
/**
|
|
13445
|
+
* Theme section name
|
|
13446
|
+
*/
|
|
13447
|
+
type ThemeSection = keyof DesignTokens;
|
|
13605
13448
|
/**
|
|
13606
13449
|
* Theme context value
|
|
13607
13450
|
*/
|
|
@@ -13612,8 +13455,10 @@ interface ThemeContextValue {
|
|
|
13612
13455
|
activeTokens: DesignTokens | null;
|
|
13613
13456
|
/** Set theme function (supports string or DesignTokens) */
|
|
13614
13457
|
setTheme: (theme: string | DesignTokens | Partial<DesignTokens>, options?: ThemeLoadOptions) => Promise<void>;
|
|
13458
|
+
/** Update a specific theme section */
|
|
13459
|
+
updateTheme: (section: ThemeSection, values: any) => Promise<void>;
|
|
13615
13460
|
/** Available themes */
|
|
13616
|
-
availableThemes: ThemeMetadata[];
|
|
13461
|
+
availableThemes: ThemeMetadata$1[];
|
|
13617
13462
|
/** Loading state */
|
|
13618
13463
|
isLoading: boolean;
|
|
13619
13464
|
/** Error state */
|
|
@@ -13705,6 +13550,10 @@ interface TypographyOptions {
|
|
|
13705
13550
|
* Spacing function type
|
|
13706
13551
|
*/
|
|
13707
13552
|
type SpacingFunction = (...values: number[]) => string;
|
|
13553
|
+
/**
|
|
13554
|
+
* Spacing configuration options for createTheme
|
|
13555
|
+
*/
|
|
13556
|
+
type SpacingOptions = number | number[] | SpacingFunction;
|
|
13708
13557
|
/**
|
|
13709
13558
|
* Breakpoint values configuration
|
|
13710
13559
|
*/
|
|
@@ -13791,13 +13640,87 @@ interface BorderRadiusOptions {
|
|
|
13791
13640
|
* Users can augment this interface via module augmentation
|
|
13792
13641
|
*/
|
|
13793
13642
|
interface ThemeCustomProperties {
|
|
13643
|
+
interactiveEffects?: {
|
|
13644
|
+
vortex?: {
|
|
13645
|
+
enabled?: boolean;
|
|
13646
|
+
strength?: number;
|
|
13647
|
+
radius?: number;
|
|
13648
|
+
decay?: number;
|
|
13649
|
+
};
|
|
13650
|
+
chromaticAberration?: {
|
|
13651
|
+
enabled?: boolean;
|
|
13652
|
+
mode?: 'longitudinal' | 'lateral' | 'hybrid';
|
|
13653
|
+
redShift?: number;
|
|
13654
|
+
greenShift?: number;
|
|
13655
|
+
blueShift?: number;
|
|
13656
|
+
edgeOnly?: boolean;
|
|
13657
|
+
edgeThreshold?: number;
|
|
13658
|
+
};
|
|
13659
|
+
mouseInteraction?: {
|
|
13660
|
+
sensitivity?: number;
|
|
13661
|
+
trailEffect?: boolean;
|
|
13662
|
+
};
|
|
13663
|
+
animationSpeed?: {
|
|
13664
|
+
base?: number;
|
|
13665
|
+
timeMultiplier?: number;
|
|
13666
|
+
};
|
|
13667
|
+
};
|
|
13668
|
+
optimization?: {
|
|
13669
|
+
responsive?: {
|
|
13670
|
+
breakpoints?: {
|
|
13671
|
+
mobile?: string;
|
|
13672
|
+
tablet?: string;
|
|
13673
|
+
desktop?: string;
|
|
13674
|
+
wide?: string;
|
|
13675
|
+
};
|
|
13676
|
+
deviceScaling?: {
|
|
13677
|
+
mobile?: number;
|
|
13678
|
+
tablet?: number;
|
|
13679
|
+
desktop?: number;
|
|
13680
|
+
};
|
|
13681
|
+
};
|
|
13682
|
+
performance?: {
|
|
13683
|
+
fpsTarget?: number;
|
|
13684
|
+
autoScaling?: boolean;
|
|
13685
|
+
};
|
|
13686
|
+
autoScaling?: {
|
|
13687
|
+
enabled?: boolean;
|
|
13688
|
+
qualityThresholds?: {
|
|
13689
|
+
lowEnd?: number;
|
|
13690
|
+
midRange?: number;
|
|
13691
|
+
highEnd?: number;
|
|
13692
|
+
};
|
|
13693
|
+
};
|
|
13694
|
+
};
|
|
13695
|
+
visualPolish?: {
|
|
13696
|
+
borders?: {
|
|
13697
|
+
iridescentGlow?: boolean;
|
|
13698
|
+
shimmerEffect?: boolean;
|
|
13699
|
+
beveledEdges?: boolean;
|
|
13700
|
+
pulsingGlow?: boolean;
|
|
13701
|
+
};
|
|
13702
|
+
contentAwareBlur?: {
|
|
13703
|
+
enabled?: boolean;
|
|
13704
|
+
depthDetection?: boolean;
|
|
13705
|
+
edgePreservation?: boolean;
|
|
13706
|
+
variableRadius?: boolean;
|
|
13707
|
+
};
|
|
13708
|
+
holographicEffects?: {
|
|
13709
|
+
enabled?: boolean;
|
|
13710
|
+
rainbowDiffraction?: boolean;
|
|
13711
|
+
scanlineAnimation?: boolean;
|
|
13712
|
+
gridOverlay?: boolean;
|
|
13713
|
+
dataStream?: boolean;
|
|
13714
|
+
pulseRings?: boolean;
|
|
13715
|
+
};
|
|
13716
|
+
};
|
|
13794
13717
|
[key: string]: any;
|
|
13795
13718
|
}
|
|
13796
13719
|
/**
|
|
13797
13720
|
* Complete theme object with computed values
|
|
13798
13721
|
* Generated by createTheme function
|
|
13799
13722
|
*/
|
|
13800
|
-
interface Theme extends ThemeMetadata {
|
|
13723
|
+
interface Theme extends ThemeMetadata$1 {
|
|
13801
13724
|
/** Color palette with computed values */
|
|
13802
13725
|
palette: {
|
|
13803
13726
|
primary: PaletteColor;
|
|
@@ -13864,67 +13787,207 @@ interface Theme extends ThemeMetadata {
|
|
|
13864
13787
|
}
|
|
13865
13788
|
|
|
13866
13789
|
/**
|
|
13867
|
-
*
|
|
13790
|
+
* CSS Variable Generator
|
|
13868
13791
|
*
|
|
13869
|
-
*
|
|
13792
|
+
* Generates CSS custom properties from design tokens.
|
|
13870
13793
|
*/
|
|
13871
|
-
|
|
13794
|
+
|
|
13795
|
+
/**
|
|
13796
|
+
* Options for CSS variable generation
|
|
13797
|
+
*/
|
|
13798
|
+
interface GenerateCSSVariablesOptions {
|
|
13799
|
+
/** CSS selector for the variables (default: ':root') */
|
|
13800
|
+
selector?: string;
|
|
13801
|
+
/** Prefix for CSS variables (default: 'atomix') */
|
|
13872
13802
|
prefix?: string;
|
|
13873
|
-
component?: string;
|
|
13874
|
-
variant?: string;
|
|
13875
|
-
state?: string;
|
|
13876
13803
|
}
|
|
13877
13804
|
/**
|
|
13878
|
-
* Generate
|
|
13805
|
+
* Generate CSS variables from tokens
|
|
13806
|
+
*
|
|
13807
|
+
* Converts flat token object to CSS custom properties.
|
|
13808
|
+
*
|
|
13809
|
+
* @param tokens - Design tokens object
|
|
13810
|
+
* @param options - Generation options
|
|
13811
|
+
* @returns CSS string with custom properties
|
|
13812
|
+
*
|
|
13813
|
+
* @example
|
|
13814
|
+
* ```typescript
|
|
13815
|
+
* const tokens = {
|
|
13816
|
+
* 'primary': '#7c3aed',
|
|
13817
|
+
* 'spacing-4': '1rem',
|
|
13818
|
+
* };
|
|
13819
|
+
*
|
|
13820
|
+
* const css = generateCSSVariables(tokens);
|
|
13821
|
+
* // Returns: ":root {\n --atomix-primary: #7c3aed;\n --atomix-spacing-4: 1rem;\n}"
|
|
13822
|
+
* ```
|
|
13879
13823
|
*/
|
|
13880
|
-
declare function
|
|
13824
|
+
declare function generateCSSVariables(tokens: DesignTokens, options?: GenerateCSSVariablesOptions): string;
|
|
13881
13825
|
/**
|
|
13882
|
-
* Generate
|
|
13883
|
-
|
|
13884
|
-
|
|
13826
|
+
* Generate CSS variables with custom selector
|
|
13827
|
+
*
|
|
13828
|
+
* Useful for theme-specific selectors like `[data-theme="dark"]`
|
|
13829
|
+
*
|
|
13830
|
+
* @param tokens - Design tokens object
|
|
13831
|
+
* @param selector - CSS selector (e.g., '[data-theme="dark"]')
|
|
13832
|
+
* @param prefix - CSS variable prefix
|
|
13833
|
+
* @returns CSS string
|
|
13834
|
+
*
|
|
13835
|
+
* @example
|
|
13836
|
+
* ```typescript
|
|
13837
|
+
* const css = generateCSSVariablesForSelector(
|
|
13838
|
+
* tokens,
|
|
13839
|
+
* '[data-theme="dark"]',
|
|
13840
|
+
* 'atomix'
|
|
13841
|
+
* );
|
|
13842
|
+
* ```
|
|
13843
|
+
*/
|
|
13844
|
+
declare function generateCSSVariablesForSelector(tokens: DesignTokens, selector: string, prefix?: string): string;
|
|
13845
|
+
|
|
13885
13846
|
/**
|
|
13886
|
-
*
|
|
13847
|
+
* Core Theme Functions
|
|
13848
|
+
*
|
|
13849
|
+
* Unified theme system that handles both DesignTokens and Theme objects.
|
|
13850
|
+
* Config-first approach: loads from atomix.config.ts when no input is provided.
|
|
13851
|
+
* Config-first approach: loads advanced features from config when available.
|
|
13887
13852
|
*/
|
|
13888
|
-
|
|
13853
|
+
|
|
13889
13854
|
/**
|
|
13890
|
-
*
|
|
13855
|
+
* Create theme CSS from tokens or Theme object
|
|
13856
|
+
*
|
|
13857
|
+
* **Config-First Approach**: If no input is provided, loads from `atomix.config.ts`.
|
|
13858
|
+
* Config file is required for automatic loading.
|
|
13859
|
+
*
|
|
13860
|
+
* @param input - DesignTokens (partial), Theme object, or undefined (loads from config)
|
|
13861
|
+
* @param options - CSS generation options (prefix is automatically read from config if not provided)
|
|
13862
|
+
* @returns CSS string with custom properties
|
|
13863
|
+
* @throws Error if config loading fails when no input is provided
|
|
13864
|
+
*
|
|
13865
|
+
* @example
|
|
13866
|
+
* ```typescript
|
|
13867
|
+
* // Loads from atomix.config.ts (config file required)
|
|
13868
|
+
* const css = createTheme();
|
|
13869
|
+
*
|
|
13870
|
+
* // Using DesignTokens
|
|
13871
|
+
* const css = createTheme({
|
|
13872
|
+
* 'primary': '#7c3aed',
|
|
13873
|
+
* 'spacing-4': '1rem',
|
|
13874
|
+
* });
|
|
13875
|
+
*
|
|
13876
|
+
* // Using Theme object
|
|
13877
|
+
* const theme = createThemeObject({ palette: { primary: { main: '#7c3aed' } } });
|
|
13878
|
+
* const css = createTheme(theme);
|
|
13879
|
+
*
|
|
13880
|
+
* // With custom options
|
|
13881
|
+
* const css = createTheme(undefined, { prefix: 'myapp', selector: ':root' });
|
|
13882
|
+
* ```
|
|
13891
13883
|
*/
|
|
13892
|
-
declare function
|
|
13884
|
+
declare function createTheme(input?: Partial<DesignTokens> | Theme, options?: GenerateCSSVariablesOptions): string;
|
|
13885
|
+
|
|
13893
13886
|
/**
|
|
13894
|
-
*
|
|
13887
|
+
* Theme Composition Utilities
|
|
13888
|
+
*
|
|
13889
|
+
* Simplified utilities for composing and merging DesignTokens.
|
|
13895
13890
|
*/
|
|
13896
|
-
|
|
13891
|
+
/**
|
|
13892
|
+
* Deep merge multiple objects
|
|
13893
|
+
* Later objects override earlier ones
|
|
13894
|
+
*/
|
|
13895
|
+
declare function deepMerge<T extends Record<string, unknown>>(...objects: Partial<T>[]): T;
|
|
13897
13896
|
|
|
13898
13897
|
/**
|
|
13899
|
-
*
|
|
13898
|
+
* Merge multiple DesignTokens objects into a single DesignTokens object
|
|
13900
13899
|
*
|
|
13901
|
-
*
|
|
13902
|
-
*
|
|
13900
|
+
* @param tokens - DesignTokens objects to merge
|
|
13901
|
+
* @returns Merged DesignTokens object
|
|
13902
|
+
*
|
|
13903
|
+
* @example
|
|
13904
|
+
* ```typescript
|
|
13905
|
+
* const baseTokens = { 'primary': '#000', 'spacing-4': '1rem' };
|
|
13906
|
+
* const customTokens = { 'secondary': '#fff', 'spacing-4': '1.5rem' };
|
|
13907
|
+
* const merged = mergeTheme(baseTokens, customTokens);
|
|
13908
|
+
* // Returns: { 'primary': '#000', 'secondary': '#fff', 'spacing-4': '1.5rem' }
|
|
13909
|
+
* ```
|
|
13910
|
+
*/
|
|
13911
|
+
declare function mergeTheme(...tokens: Partial<DesignTokens>[]): Partial<DesignTokens>;
|
|
13912
|
+
/**
|
|
13913
|
+
* Extend DesignTokens with additional tokens
|
|
13914
|
+
*
|
|
13915
|
+
* @param baseTokens - Base DesignTokens to extend
|
|
13916
|
+
* @param extension - Additional DesignTokens to merge
|
|
13917
|
+
* @returns Extended DesignTokens object
|
|
13918
|
+
*
|
|
13919
|
+
* @example
|
|
13920
|
+
* ```typescript
|
|
13921
|
+
* const base = { 'primary': '#000' };
|
|
13922
|
+
* const extended = extendTheme(base, { 'secondary': '#fff' });
|
|
13923
|
+
* // Returns: { 'primary': '#000', 'secondary': '#fff' }
|
|
13924
|
+
* ```
|
|
13903
13925
|
*/
|
|
13926
|
+
declare function extendTheme(baseTokens: Partial<DesignTokens>, extension: Partial<DesignTokens>): Partial<DesignTokens>;
|
|
13904
13927
|
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13928
|
+
/**
|
|
13929
|
+
* Theme Metadata interface
|
|
13930
|
+
*/
|
|
13931
|
+
interface ThemeMetadata {
|
|
13932
|
+
name: string;
|
|
13933
|
+
class: string;
|
|
13934
|
+
description?: string;
|
|
13935
|
+
version?: string;
|
|
13936
|
+
[key: string]: any;
|
|
13910
13937
|
}
|
|
13911
13938
|
/**
|
|
13912
|
-
*
|
|
13913
|
-
* This ensures all components access theme values consistently
|
|
13939
|
+
* Theme Registry type - a record of theme IDs to metadata
|
|
13914
13940
|
*/
|
|
13915
|
-
|
|
13941
|
+
type ThemeRegistry = Record<string, ThemeMetadata>;
|
|
13916
13942
|
/**
|
|
13917
|
-
*
|
|
13943
|
+
* Create a new theme registry
|
|
13918
13944
|
*/
|
|
13919
|
-
declare function
|
|
13945
|
+
declare function createThemeRegistry(): ThemeRegistry;
|
|
13920
13946
|
/**
|
|
13921
|
-
*
|
|
13947
|
+
* Register a theme
|
|
13948
|
+
* @param registry - Theme registry object
|
|
13949
|
+
* @param id - Theme identifier
|
|
13950
|
+
* @param metadata - Theme metadata
|
|
13922
13951
|
*/
|
|
13923
|
-
declare function
|
|
13952
|
+
declare function registerTheme(registry: ThemeRegistry, id: string, metadata: ThemeMetadata): void;
|
|
13924
13953
|
/**
|
|
13925
|
-
*
|
|
13954
|
+
* Unregister a theme
|
|
13955
|
+
* @param registry - Theme registry object
|
|
13956
|
+
* @param id - Theme identifier
|
|
13926
13957
|
*/
|
|
13927
|
-
declare function
|
|
13958
|
+
declare function unregisterTheme(registry: ThemeRegistry, id: string): boolean;
|
|
13959
|
+
/**
|
|
13960
|
+
* Check if a theme is registered
|
|
13961
|
+
* @param registry - Theme registry object
|
|
13962
|
+
* @param id - Theme identifier
|
|
13963
|
+
*/
|
|
13964
|
+
declare function hasTheme(registry: ThemeRegistry, id: string): boolean;
|
|
13965
|
+
/**
|
|
13966
|
+
* Get theme metadata
|
|
13967
|
+
* @param registry - Theme registry object
|
|
13968
|
+
* @param id - Theme identifier
|
|
13969
|
+
*/
|
|
13970
|
+
declare function getTheme(registry: ThemeRegistry, id: string): ThemeMetadata | undefined;
|
|
13971
|
+
/**
|
|
13972
|
+
* Get all registered theme metadata
|
|
13973
|
+
* @param registry - Theme registry object
|
|
13974
|
+
*/
|
|
13975
|
+
declare function getAllThemes(registry: ThemeRegistry): ThemeMetadata[];
|
|
13976
|
+
/**
|
|
13977
|
+
* Get all registered theme IDs
|
|
13978
|
+
* @param registry - Theme registry object
|
|
13979
|
+
*/
|
|
13980
|
+
declare function getThemeIds(registry: ThemeRegistry): string[];
|
|
13981
|
+
/**
|
|
13982
|
+
* Clear all registered themes
|
|
13983
|
+
* @param registry - Theme registry object
|
|
13984
|
+
*/
|
|
13985
|
+
declare function clearThemes(registry: ThemeRegistry): void;
|
|
13986
|
+
/**
|
|
13987
|
+
* Get the number of registered themes
|
|
13988
|
+
* @param registry - Theme registry object
|
|
13989
|
+
*/
|
|
13990
|
+
declare function getThemeCount(registry: ThemeRegistry): number;
|
|
13928
13991
|
|
|
13929
13992
|
/**
|
|
13930
13993
|
* CSS Injection Utilities
|
|
@@ -13973,61 +14036,408 @@ declare function removeCSS(id?: string): void;
|
|
|
13973
14036
|
declare function isCSSInjected(id?: string): boolean;
|
|
13974
14037
|
|
|
13975
14038
|
/**
|
|
13976
|
-
*
|
|
14039
|
+
* Naming Utilities
|
|
13977
14040
|
*
|
|
13978
|
-
*
|
|
13979
|
-
|
|
14041
|
+
* Provides consistent naming conventions across the theme system
|
|
14042
|
+
*/
|
|
14043
|
+
interface NamingOptions {
|
|
14044
|
+
prefix?: string;
|
|
14045
|
+
component?: string;
|
|
14046
|
+
variant?: string;
|
|
14047
|
+
state?: string;
|
|
14048
|
+
}
|
|
14049
|
+
/**
|
|
14050
|
+
* Generate consistent CSS class names following BEM methodology
|
|
14051
|
+
*/
|
|
14052
|
+
declare function generateClassName(block: string, element?: string, modifiers?: Record<string, boolean | string>): string;
|
|
14053
|
+
/**
|
|
14054
|
+
* Generate consistent CSS variable names
|
|
14055
|
+
*/
|
|
14056
|
+
declare function generateCSSVariableName(property: string, options?: NamingOptions): string;
|
|
14057
|
+
/**
|
|
14058
|
+
* Normalize theme tokens to consistent naming convention
|
|
13980
14059
|
*/
|
|
14060
|
+
declare function normalizeThemeTokens(tokens: Record<string, any>): Record<string, any>;
|
|
14061
|
+
/**
|
|
14062
|
+
* Convert camelCase to kebab-case for CSS custom properties
|
|
14063
|
+
*/
|
|
14064
|
+
declare function camelToKebab(str: string): string;
|
|
14065
|
+
/**
|
|
14066
|
+
* Convert theme property to CSS variable name
|
|
14067
|
+
*/
|
|
14068
|
+
declare function themePropertyToCSSVar(propertyPath: string, prefix?: string): string;
|
|
13981
14069
|
|
|
13982
14070
|
/**
|
|
13983
|
-
*
|
|
13984
|
-
*
|
|
13985
|
-
* React context provider for theme management with separated concerns.
|
|
13986
|
-
* Simplified version focusing on core functionality:
|
|
13987
|
-
* - String-based themes (CSS files)
|
|
13988
|
-
* - DesignTokens (dynamic themes)
|
|
13989
|
-
* - Persistence via localStorage
|
|
14071
|
+
* Component Theming Utilities
|
|
13990
14072
|
*
|
|
13991
|
-
*
|
|
14073
|
+
* Provides consistent patterns for applying theme values to components
|
|
14074
|
+
* using DesignTokens and CSS variables
|
|
13992
14075
|
*/
|
|
13993
|
-
declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
|
|
13994
14076
|
|
|
14077
|
+
interface ComponentThemeOptions {
|
|
14078
|
+
component: string;
|
|
14079
|
+
variant?: string;
|
|
14080
|
+
size?: string;
|
|
14081
|
+
tokens?: Partial<DesignTokens>;
|
|
14082
|
+
}
|
|
13995
14083
|
/**
|
|
13996
|
-
*
|
|
14084
|
+
* Get a theme value for a specific component using CSS variables
|
|
14085
|
+
* This ensures all components access theme values consistently
|
|
14086
|
+
*/
|
|
14087
|
+
declare function getComponentThemeValue(component: string, property: string, variant?: string, size?: string): string;
|
|
14088
|
+
/**
|
|
14089
|
+
* Generate component-specific CSS variables from DesignTokens
|
|
14090
|
+
*/
|
|
14091
|
+
declare function generateComponentCSSVars(component: string, tokens?: Partial<DesignTokens>, variant?: string, size?: string): Record<string, string>;
|
|
14092
|
+
/**
|
|
14093
|
+
* Apply consistent theme to component style object using DesignTokens
|
|
14094
|
+
*/
|
|
14095
|
+
declare function applyComponentTheme(component: string, style?: React.CSSProperties, variant?: string, size?: string, tokens?: Partial<DesignTokens>): React.CSSProperties;
|
|
14096
|
+
/**
|
|
14097
|
+
* Create a hook for consistent component theming
|
|
14098
|
+
*/
|
|
14099
|
+
declare function useComponentTheme(component: string, variant?: string, size?: string, tokens?: Partial<DesignTokens>): (property: string) => string;
|
|
14100
|
+
|
|
14101
|
+
/**
|
|
14102
|
+
* Theme Utilities
|
|
13997
14103
|
*
|
|
13998
|
-
*
|
|
14104
|
+
* Helper functions for common theme operations including:
|
|
14105
|
+
* - Theme switching (dark/light mode)
|
|
14106
|
+
* - Theme persistence (localStorage)
|
|
14107
|
+
* - System preference detection
|
|
14108
|
+
* - Smooth transitions
|
|
14109
|
+
* - Color manipulation
|
|
13999
14110
|
*/
|
|
14000
14111
|
|
|
14112
|
+
type ThemeMode = 'light' | 'dark' | 'system';
|
|
14113
|
+
interface ThemeSwitcherOptions {
|
|
14114
|
+
/** CSS selector for root element (default: ':root') */
|
|
14115
|
+
selector?: string;
|
|
14116
|
+
/** Storage key for theme persistence (default: 'atomix-theme') */
|
|
14117
|
+
storageKey?: string;
|
|
14118
|
+
/** Enable smooth transitions (default: true) */
|
|
14119
|
+
enableTransition?: boolean;
|
|
14120
|
+
/** Transition duration in ms (default: 300) */
|
|
14121
|
+
transitionDuration?: number;
|
|
14122
|
+
}
|
|
14123
|
+
interface ThemePersistenceOptions {
|
|
14124
|
+
/** Storage key (default: 'atomix-theme') */
|
|
14125
|
+
storageKey?: string;
|
|
14126
|
+
/** Storage type (default: 'localStorage') */
|
|
14127
|
+
storageType?: 'localStorage' | 'sessionStorage';
|
|
14128
|
+
}
|
|
14001
14129
|
/**
|
|
14002
|
-
*
|
|
14130
|
+
* Switch between light and dark themes
|
|
14003
14131
|
*
|
|
14004
|
-
*
|
|
14132
|
+
* Automatically toggles a class on the root element and persists the choice.
|
|
14133
|
+
*
|
|
14134
|
+
* @param mode - Theme mode ('light', 'dark', or 'system')
|
|
14135
|
+
* @param options - Configuration options
|
|
14005
14136
|
*
|
|
14006
14137
|
* @example
|
|
14007
|
-
* ```
|
|
14008
|
-
*
|
|
14009
|
-
* const { theme, setTheme, availableThemes } = useTheme();
|
|
14138
|
+
* ```typescript
|
|
14139
|
+
* import { switchTheme } from '@shohojdhara/atomix/theme/utils';
|
|
14010
14140
|
*
|
|
14011
|
-
*
|
|
14012
|
-
*
|
|
14013
|
-
*
|
|
14014
|
-
*
|
|
14015
|
-
*
|
|
14016
|
-
*
|
|
14017
|
-
* </div>
|
|
14018
|
-
* );
|
|
14019
|
-
* }
|
|
14141
|
+
* // Switch to dark mode
|
|
14142
|
+
* switchTheme('dark');
|
|
14143
|
+
*
|
|
14144
|
+
* // Toggle between light/dark
|
|
14145
|
+
* const current = getCurrentTheme();
|
|
14146
|
+
* switchTheme(current === 'dark' ? 'light' : 'dark');
|
|
14020
14147
|
* ```
|
|
14021
14148
|
*/
|
|
14022
|
-
declare function
|
|
14023
|
-
|
|
14149
|
+
declare function switchTheme(mode: ThemeMode, options?: ThemeSwitcherOptions): void;
|
|
14024
14150
|
/**
|
|
14025
|
-
*
|
|
14151
|
+
* Toggle between light and dark themes
|
|
14026
14152
|
*
|
|
14027
|
-
*
|
|
14028
|
-
*
|
|
14153
|
+
* @param options - Configuration options
|
|
14154
|
+
* @returns The new theme mode
|
|
14155
|
+
*
|
|
14156
|
+
* @example
|
|
14157
|
+
* ```typescript
|
|
14158
|
+
* const newMode = toggleTheme();
|
|
14159
|
+
* console.log('Switched to:', newMode);
|
|
14160
|
+
* ```
|
|
14029
14161
|
*/
|
|
14030
|
-
|
|
14162
|
+
declare function toggleTheme(options?: ThemeSwitcherOptions): ThemeMode;
|
|
14163
|
+
/**
|
|
14164
|
+
* Get current theme mode
|
|
14165
|
+
*
|
|
14166
|
+
* @param storageKey - Storage key (default: 'atomix-theme')
|
|
14167
|
+
* @returns Current theme mode or 'light' if not set
|
|
14168
|
+
*/
|
|
14169
|
+
declare function getCurrentTheme(storageKey?: string): ThemeMode;
|
|
14170
|
+
/**
|
|
14171
|
+
* Get system theme preference
|
|
14172
|
+
*
|
|
14173
|
+
* @returns 'dark' if system prefers dark mode, 'light' otherwise
|
|
14174
|
+
*/
|
|
14175
|
+
declare function getSystemTheme(): ThemeMode;
|
|
14176
|
+
/**
|
|
14177
|
+
* Initialize theme based on saved preference or system preference
|
|
14178
|
+
*
|
|
14179
|
+
* Call this once at app startup.
|
|
14180
|
+
*
|
|
14181
|
+
* @param options - Configuration options
|
|
14182
|
+
* @returns The initialized theme mode
|
|
14183
|
+
*
|
|
14184
|
+
* @example
|
|
14185
|
+
* ```typescript
|
|
14186
|
+
* // In your app entry point
|
|
14187
|
+
* import { initializeTheme } from '@shohojdhara/atomix/theme/utils';
|
|
14188
|
+
*
|
|
14189
|
+
* const theme = initializeTheme();
|
|
14190
|
+
* console.log('Theme initialized:', theme);
|
|
14191
|
+
* ```
|
|
14192
|
+
*/
|
|
14193
|
+
declare function initializeTheme(options?: ThemeSwitcherOptions): ThemeMode;
|
|
14194
|
+
/**
|
|
14195
|
+
* Listen for system theme changes
|
|
14196
|
+
*
|
|
14197
|
+
* @param callback - Function to call when system theme changes
|
|
14198
|
+
* @returns Cleanup function to stop listening
|
|
14199
|
+
*
|
|
14200
|
+
* @example
|
|
14201
|
+
* ```typescript
|
|
14202
|
+
* const cleanup = listenToSystemTheme((mode) => {
|
|
14203
|
+
* console.log('System theme changed to:', mode);
|
|
14204
|
+
* switchTheme(mode);
|
|
14205
|
+
* });
|
|
14206
|
+
*
|
|
14207
|
+
* // Later, when component unmounts
|
|
14208
|
+
* cleanup();
|
|
14209
|
+
* ```
|
|
14210
|
+
*/
|
|
14211
|
+
declare function listenToSystemTheme(callback: (mode: ThemeMode) => void): () => void;
|
|
14212
|
+
/**
|
|
14213
|
+
* Save theme preference to storage
|
|
14214
|
+
*
|
|
14215
|
+
* @param mode - Theme mode to save
|
|
14216
|
+
* @param options - Persistence options
|
|
14217
|
+
*/
|
|
14218
|
+
declare function persistTheme(mode: ThemeMode, options?: ThemePersistenceOptions): void;
|
|
14219
|
+
/**
|
|
14220
|
+
* Clear saved theme preference
|
|
14221
|
+
*
|
|
14222
|
+
* @param options - Persistence options
|
|
14223
|
+
*/
|
|
14224
|
+
declare function clearThemePreference(options?: ThemePersistenceOptions): void;
|
|
14225
|
+
/**
|
|
14226
|
+
* Merge multiple token sets
|
|
14227
|
+
*
|
|
14228
|
+
* Deep merges token objects, with later tokens overriding earlier ones.
|
|
14229
|
+
*
|
|
14230
|
+
* @param tokens - Token objects to merge
|
|
14231
|
+
* @returns Merged tokens
|
|
14232
|
+
*
|
|
14233
|
+
* @example
|
|
14234
|
+
* ```typescript
|
|
14235
|
+
* const merged = mergeTokens(
|
|
14236
|
+
* baseTokens,
|
|
14237
|
+
* { colors: { primary: { main: '#custom' } } }
|
|
14238
|
+
* );
|
|
14239
|
+
* ```
|
|
14240
|
+
*/
|
|
14241
|
+
declare function mergeTokens(...tokens: Array<Partial<DesignTokens>>): Partial<DesignTokens>;
|
|
14242
|
+
/**
|
|
14243
|
+
* Override specific tokens
|
|
14244
|
+
*
|
|
14245
|
+
* Creates a new token object with specific overrides.
|
|
14246
|
+
*
|
|
14247
|
+
* @param base - Base tokens
|
|
14248
|
+
* @param overrides - Tokens to override
|
|
14249
|
+
* @returns New tokens with overrides applied
|
|
14250
|
+
*
|
|
14251
|
+
* @example
|
|
14252
|
+
* ```typescript
|
|
14253
|
+
* const customized = overrideTokens(defaultTokens, {
|
|
14254
|
+
* colors: {
|
|
14255
|
+
* primary: { main: '#ff0000' }
|
|
14256
|
+
* }
|
|
14257
|
+
* });
|
|
14258
|
+
* ```
|
|
14259
|
+
*/
|
|
14260
|
+
declare function overrideTokens(base: Partial<DesignTokens>, overrides: Partial<DesignTokens>): Partial<DesignTokens>;
|
|
14261
|
+
/**
|
|
14262
|
+
* Pick specific token categories
|
|
14263
|
+
*
|
|
14264
|
+
* Extracts only the specified categories from tokens.
|
|
14265
|
+
*
|
|
14266
|
+
* @param tokens - Source tokens
|
|
14267
|
+
* @param categories - Categories to pick
|
|
14268
|
+
* @returns Tokens with only selected categories
|
|
14269
|
+
*
|
|
14270
|
+
* @example
|
|
14271
|
+
* ```typescript
|
|
14272
|
+
* const colorTokens = pickTokens(allTokens, ['colors']);
|
|
14273
|
+
* ```
|
|
14274
|
+
*/
|
|
14275
|
+
declare function pickTokens(tokens: Partial<DesignTokens>, categories: Array<keyof DesignTokens>): Partial<DesignTokens>;
|
|
14276
|
+
/**
|
|
14277
|
+
* Omit specific token categories
|
|
14278
|
+
*
|
|
14279
|
+
* Removes specified categories from tokens.
|
|
14280
|
+
*
|
|
14281
|
+
* @param tokens - Source tokens
|
|
14282
|
+
* @param categories - Categories to omit
|
|
14283
|
+
* @returns Tokens without omitted categories
|
|
14284
|
+
*
|
|
14285
|
+
* @example
|
|
14286
|
+
* ```typescript
|
|
14287
|
+
* const withoutColors = omitTokens(allTokens, ['colors']);
|
|
14288
|
+
* ```
|
|
14289
|
+
*/
|
|
14290
|
+
declare function omitTokens(tokens: Partial<DesignTokens>, categories: Array<keyof DesignTokens>): Partial<DesignTokens>;
|
|
14291
|
+
/**
|
|
14292
|
+
* Convert hex color to RGB
|
|
14293
|
+
*
|
|
14294
|
+
* @param hex - Hex color (with or without #)
|
|
14295
|
+
* @returns RGB object { r, g, b }
|
|
14296
|
+
*/
|
|
14297
|
+
declare function hexToRgb(hex: string): {
|
|
14298
|
+
r: number;
|
|
14299
|
+
g: number;
|
|
14300
|
+
b: number;
|
|
14301
|
+
} | null;
|
|
14302
|
+
/**
|
|
14303
|
+
* Convert RGB to hex
|
|
14304
|
+
*
|
|
14305
|
+
* @param r - Red (0-255)
|
|
14306
|
+
* @param g - Green (0-255)
|
|
14307
|
+
* @param b - Blue (0-255)
|
|
14308
|
+
* @returns Hex color with #
|
|
14309
|
+
*/
|
|
14310
|
+
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
14311
|
+
/**
|
|
14312
|
+
* Calculate luminance of a color
|
|
14313
|
+
*
|
|
14314
|
+
* Used for determining contrast ratios.
|
|
14315
|
+
*
|
|
14316
|
+
* @param hex - Hex color
|
|
14317
|
+
* @returns Luminance value (0-1)
|
|
14318
|
+
*/
|
|
14319
|
+
declare function getLuminance(hex: string): number;
|
|
14320
|
+
/**
|
|
14321
|
+
* Calculate contrast ratio between two colors
|
|
14322
|
+
*
|
|
14323
|
+
* @param hex1 - First hex color
|
|
14324
|
+
* @param hex2 - Second hex color
|
|
14325
|
+
* @returns Contrast ratio (1-21)
|
|
14326
|
+
*/
|
|
14327
|
+
declare function getContrastRatio(hex1: string, hex2: string): number;
|
|
14328
|
+
/**
|
|
14329
|
+
* Check if text color passes WCAG AA standard
|
|
14330
|
+
*
|
|
14331
|
+
* @param textColor - Text color hex
|
|
14332
|
+
* @param backgroundColor - Background color hex
|
|
14333
|
+
* @param size - Font size ('small' or 'large')
|
|
14334
|
+
* @returns true if passes WCAG AA
|
|
14335
|
+
*/
|
|
14336
|
+
declare function isAccessible(textColor: string, backgroundColor: string, size?: 'small' | 'large'): boolean;
|
|
14337
|
+
/**
|
|
14338
|
+
* Get appropriate text color (black or white) for a background
|
|
14339
|
+
*
|
|
14340
|
+
* @param backgroundColor - Background hex color
|
|
14341
|
+
* @param threshold - Contrast threshold (default: 3)
|
|
14342
|
+
* @returns '#000000' or '#FFFFFF'
|
|
14343
|
+
*/
|
|
14344
|
+
declare function getContrastText(backgroundColor: string, threshold?: number): string;
|
|
14345
|
+
/**
|
|
14346
|
+
* Lighten a color
|
|
14347
|
+
*
|
|
14348
|
+
* @param hex - Base hex color
|
|
14349
|
+
* @param amount - Amount to lighten (0-1)
|
|
14350
|
+
* @returns Lightened hex color
|
|
14351
|
+
*/
|
|
14352
|
+
declare function lighten(hex: string, amount?: number): string;
|
|
14353
|
+
/**
|
|
14354
|
+
* Darken a color
|
|
14355
|
+
*
|
|
14356
|
+
* @param hex - Base hex color
|
|
14357
|
+
* @param amount - Amount to darken (0-1)
|
|
14358
|
+
* @returns Darkened hex color
|
|
14359
|
+
*/
|
|
14360
|
+
declare function darken(hex: string, amount?: number): string;
|
|
14361
|
+
/**
|
|
14362
|
+
* Add alpha to a color
|
|
14363
|
+
*
|
|
14364
|
+
* @param hex - Hex color
|
|
14365
|
+
* @param opacity - Opacity value (0-1)
|
|
14366
|
+
* @returns RGBA color string
|
|
14367
|
+
*/
|
|
14368
|
+
declare function alpha(hex: string, opacity: number): string;
|
|
14369
|
+
/**
|
|
14370
|
+
* Emphasize a color (lighten if dark, darken if light)
|
|
14371
|
+
*
|
|
14372
|
+
* @param hex - Hex color
|
|
14373
|
+
* @param amount - Amount to emphasize (0-1)
|
|
14374
|
+
* @returns Emphasized hex color
|
|
14375
|
+
*/
|
|
14376
|
+
declare function emphasize(hex: string, amount?: number): string;
|
|
14377
|
+
/**
|
|
14378
|
+
* Create a spacing utility
|
|
14379
|
+
*
|
|
14380
|
+
* @param spacingInput - Spacing configuration
|
|
14381
|
+
* @returns Spacing function
|
|
14382
|
+
*/
|
|
14383
|
+
declare function createSpacing(spacingInput?: SpacingOptions): SpacingFunction;
|
|
14384
|
+
|
|
14385
|
+
/**
|
|
14386
|
+
* Theme Provider
|
|
14387
|
+
*
|
|
14388
|
+
* React context provider for theme management with separated concerns
|
|
14389
|
+
* Updated to use the new simplified theme system
|
|
14390
|
+
*/
|
|
14391
|
+
|
|
14392
|
+
/**
|
|
14393
|
+
* Theme Provider
|
|
14394
|
+
*
|
|
14395
|
+
* React context provider for theme management with separated concerns.
|
|
14396
|
+
* Simplified version focusing on core functionality:
|
|
14397
|
+
* - String-based themes (CSS files)
|
|
14398
|
+
* - DesignTokens (dynamic themes)
|
|
14399
|
+
* - Persistence via localStorage
|
|
14400
|
+
*
|
|
14401
|
+
* Falls back to 'default' theme if no configuration is found.
|
|
14402
|
+
*/
|
|
14403
|
+
declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
|
|
14404
|
+
|
|
14405
|
+
/**
|
|
14406
|
+
* useTheme Hook
|
|
14407
|
+
*
|
|
14408
|
+
* React hook for accessing theme context
|
|
14409
|
+
*/
|
|
14410
|
+
|
|
14411
|
+
/**
|
|
14412
|
+
* useTheme hook
|
|
14413
|
+
*
|
|
14414
|
+
* Access theme context and theme management functions
|
|
14415
|
+
*
|
|
14416
|
+
* @example
|
|
14417
|
+
* ```tsx
|
|
14418
|
+
* function MyComponent() {
|
|
14419
|
+
* const { theme, setTheme, availableThemes } = useTheme();
|
|
14420
|
+
*
|
|
14421
|
+
* return (
|
|
14422
|
+
* <div>
|
|
14423
|
+
* <p>Current theme: {theme}</p>
|
|
14424
|
+
* <button onClick={() => setTheme('dark-theme')}>
|
|
14425
|
+
* Switch to Dark
|
|
14426
|
+
* </button>
|
|
14427
|
+
* </div>
|
|
14428
|
+
* );
|
|
14429
|
+
* }
|
|
14430
|
+
* ```
|
|
14431
|
+
*/
|
|
14432
|
+
declare function useTheme(): UseThemeReturn;
|
|
14433
|
+
|
|
14434
|
+
/**
|
|
14435
|
+
* Standardized hook for accessing theme tokens in components
|
|
14436
|
+
*
|
|
14437
|
+
* Provides consistent access to theme values using CSS custom properties
|
|
14438
|
+
* and DesignTokens.
|
|
14439
|
+
*/
|
|
14440
|
+
type ThemeTokens$1 = {
|
|
14031
14441
|
theme: string;
|
|
14032
14442
|
activeTokens: DesignTokens | null;
|
|
14033
14443
|
getToken: (tokenName: string, fallback?: string) => string;
|
|
@@ -14106,6 +14516,85 @@ declare class ThemeErrorBoundary extends Component<ThemeErrorBoundaryProps, Them
|
|
|
14106
14516
|
render(): ReactNode;
|
|
14107
14517
|
}
|
|
14108
14518
|
|
|
14519
|
+
/**
|
|
14520
|
+
* useThemeSwitcher Hook
|
|
14521
|
+
*
|
|
14522
|
+
* React hook for managing theme switching with persistence and system preference detection.
|
|
14523
|
+
* Provides an easy-to-use API for dark/light mode toggling.
|
|
14524
|
+
*
|
|
14525
|
+
* @example
|
|
14526
|
+
* ```tsx
|
|
14527
|
+
* import { useThemeSwitcher } from '@shohojdhara/atomix/theme';
|
|
14528
|
+
*
|
|
14529
|
+
* function ThemeToggle() {
|
|
14530
|
+
* const { mode, toggle, setMode, isDark } = useThemeSwitcher();
|
|
14531
|
+
*
|
|
14532
|
+
* return (
|
|
14533
|
+
* <button onClick={toggle}>
|
|
14534
|
+
* {isDark ? '☀️ Light' : '🌙 Dark'}
|
|
14535
|
+
* </button>
|
|
14536
|
+
* );
|
|
14537
|
+
* }
|
|
14538
|
+
* ```
|
|
14539
|
+
*/
|
|
14540
|
+
|
|
14541
|
+
interface UseThemeSwitcherOptions extends ThemeSwitcherOptions {
|
|
14542
|
+
/** Initial theme mode (default: 'system') */
|
|
14543
|
+
initialMode?: ThemeMode;
|
|
14544
|
+
/** Automatically sync with system preference (default: false) */
|
|
14545
|
+
syncWithSystem?: boolean;
|
|
14546
|
+
}
|
|
14547
|
+
interface UseThemeSwitcherReturn {
|
|
14548
|
+
/** Current theme mode */
|
|
14549
|
+
mode: ThemeMode;
|
|
14550
|
+
/** Whether current theme is dark */
|
|
14551
|
+
isDark: boolean;
|
|
14552
|
+
/** Whether current theme is light */
|
|
14553
|
+
isLight: boolean;
|
|
14554
|
+
/** Toggle between light and dark */
|
|
14555
|
+
toggle: () => ThemeMode;
|
|
14556
|
+
/** Set specific theme mode */
|
|
14557
|
+
setMode: (mode: ThemeMode) => void;
|
|
14558
|
+
/** Reset to system preference */
|
|
14559
|
+
resetToSystem: () => void;
|
|
14560
|
+
/** Clear saved preference */
|
|
14561
|
+
clearPreference: () => void;
|
|
14562
|
+
}
|
|
14563
|
+
/**
|
|
14564
|
+
* Hook for managing theme switching
|
|
14565
|
+
*
|
|
14566
|
+
* @param options - Configuration options
|
|
14567
|
+
* @returns Theme switcher controls
|
|
14568
|
+
*/
|
|
14569
|
+
declare function useThemeSwitcher(options?: UseThemeSwitcherOptions): UseThemeSwitcherReturn;
|
|
14570
|
+
|
|
14571
|
+
interface ThemeToggleProps extends Omit<UseThemeSwitcherOptions, 'initialMode'> {
|
|
14572
|
+
/** Custom class name */
|
|
14573
|
+
className?: string;
|
|
14574
|
+
/** Show text label (default: false) */
|
|
14575
|
+
showLabel?: boolean;
|
|
14576
|
+
/** Label for light mode (default: 'Light') */
|
|
14577
|
+
lightLabel?: string;
|
|
14578
|
+
/** Label for dark mode (default: 'Dark') */
|
|
14579
|
+
darkLabel?: string;
|
|
14580
|
+
/** Icon size in pixels (default: 20) */
|
|
14581
|
+
iconSize?: number;
|
|
14582
|
+
/** Button variant (default: 'icon') */
|
|
14583
|
+
variant?: 'icon' | 'button' | 'switch';
|
|
14584
|
+
/** Custom render function */
|
|
14585
|
+
render?: (props: {
|
|
14586
|
+
isDark: boolean;
|
|
14587
|
+
toggle: () => void;
|
|
14588
|
+
mode: ThemeMode;
|
|
14589
|
+
}) => React__default.ReactNode;
|
|
14590
|
+
/** Aria label (default: 'Toggle theme') */
|
|
14591
|
+
ariaLabel?: string;
|
|
14592
|
+
}
|
|
14593
|
+
/**
|
|
14594
|
+
* ThemeToggle component with multiple variants
|
|
14595
|
+
*/
|
|
14596
|
+
declare const ThemeToggle: React__default.FC<ThemeToggleProps>;
|
|
14597
|
+
|
|
14109
14598
|
/**
|
|
14110
14599
|
* Theme Applicator
|
|
14111
14600
|
*
|
|
@@ -14300,156 +14789,677 @@ interface DesignTokensCustomizerProps {
|
|
|
14300
14789
|
style?: React__default.CSSProperties;
|
|
14301
14790
|
}
|
|
14302
14791
|
/**
|
|
14303
|
-
* Design Tokens Customizer Component
|
|
14792
|
+
* Design Tokens Customizer Component
|
|
14793
|
+
*/
|
|
14794
|
+
declare const DesignTokensCustomizer: React__default.FC<DesignTokensCustomizerProps>;
|
|
14795
|
+
|
|
14796
|
+
/**
|
|
14797
|
+
* Theme Validator
|
|
14798
|
+
*
|
|
14799
|
+
* Runtime theme validation including color contrast and accessibility checks
|
|
14800
|
+
*/
|
|
14801
|
+
|
|
14802
|
+
/**
|
|
14803
|
+
* Validation result
|
|
14804
|
+
*/
|
|
14805
|
+
interface ValidationResult$1 {
|
|
14806
|
+
/** Whether theme is valid */
|
|
14807
|
+
valid: boolean;
|
|
14808
|
+
/** Validation errors */
|
|
14809
|
+
errors: string[];
|
|
14810
|
+
/** Validation warnings */
|
|
14811
|
+
warnings: string[];
|
|
14812
|
+
/** Accessibility issues */
|
|
14813
|
+
a11yIssues: A11yIssue[];
|
|
14814
|
+
}
|
|
14815
|
+
/**
|
|
14816
|
+
* Accessibility issue
|
|
14817
|
+
*/
|
|
14818
|
+
interface A11yIssue {
|
|
14819
|
+
/** Issue type */
|
|
14820
|
+
type: 'contrast' | 'color' | 'missing';
|
|
14821
|
+
/** Severity */
|
|
14822
|
+
severity: 'error' | 'warning';
|
|
14823
|
+
/** Issue message */
|
|
14824
|
+
message: string;
|
|
14825
|
+
/** Affected property */
|
|
14826
|
+
property?: string;
|
|
14827
|
+
/** Current value */
|
|
14828
|
+
value?: string;
|
|
14829
|
+
/** Recommended value */
|
|
14830
|
+
recommended?: string;
|
|
14831
|
+
}
|
|
14832
|
+
/**
|
|
14833
|
+
* Theme Validator
|
|
14834
|
+
*
|
|
14835
|
+
* Validates themes for correctness and accessibility
|
|
14836
|
+
*/
|
|
14837
|
+
declare class ThemeValidator {
|
|
14838
|
+
/**
|
|
14839
|
+
* Validate theme
|
|
14840
|
+
*/
|
|
14841
|
+
validate(theme: Theme, metadata?: ThemeMetadata$1): ValidationResult$1;
|
|
14842
|
+
/**
|
|
14843
|
+
* Validate palette
|
|
14844
|
+
*/
|
|
14845
|
+
private validatePalette;
|
|
14846
|
+
/**
|
|
14847
|
+
* Validate typography
|
|
14848
|
+
*/
|
|
14849
|
+
private validateTypography;
|
|
14850
|
+
/**
|
|
14851
|
+
* Validate spacing
|
|
14852
|
+
*/
|
|
14853
|
+
private validateSpacing;
|
|
14854
|
+
/**
|
|
14855
|
+
* Validate breakpoints
|
|
14856
|
+
*/
|
|
14857
|
+
private validateBreakpoints;
|
|
14858
|
+
/**
|
|
14859
|
+
* Check color contrast ratio
|
|
14860
|
+
*/
|
|
14861
|
+
private checkContrast;
|
|
14862
|
+
/**
|
|
14863
|
+
* Check if color is valid
|
|
14864
|
+
*/
|
|
14865
|
+
private isValidColor;
|
|
14866
|
+
/**
|
|
14867
|
+
* Validate transitions
|
|
14868
|
+
*/
|
|
14869
|
+
private validateTransitions;
|
|
14870
|
+
/**
|
|
14871
|
+
* Validate z-index
|
|
14872
|
+
*/
|
|
14873
|
+
private validateZIndex;
|
|
14874
|
+
/**
|
|
14875
|
+
* Validate border radius
|
|
14876
|
+
*/
|
|
14877
|
+
private validateBorderRadius;
|
|
14878
|
+
/**
|
|
14879
|
+
* Validate custom properties
|
|
14880
|
+
*/
|
|
14881
|
+
private validateCustom;
|
|
14882
|
+
}
|
|
14883
|
+
|
|
14884
|
+
/**
|
|
14885
|
+
* useHistory Hook
|
|
14886
|
+
*
|
|
14887
|
+
* React hook for managing undo/redo history
|
|
14888
|
+
*/
|
|
14889
|
+
interface UseHistoryOptions {
|
|
14890
|
+
/** Maximum number of history entries (default: 50) */
|
|
14891
|
+
maxHistorySize?: number;
|
|
14892
|
+
/** Initial state */
|
|
14893
|
+
initialState?: any;
|
|
14894
|
+
}
|
|
14895
|
+
interface UseHistoryReturn<T> {
|
|
14896
|
+
/** Current state */
|
|
14897
|
+
state: T;
|
|
14898
|
+
/** Update state and add to history */
|
|
14899
|
+
setState: (newState: T) => void;
|
|
14900
|
+
/** Undo last change */
|
|
14901
|
+
undo: () => void;
|
|
14902
|
+
/** Redo last undone change */
|
|
14903
|
+
redo: () => void;
|
|
14904
|
+
/** Check if undo is available */
|
|
14905
|
+
canUndo: boolean;
|
|
14906
|
+
/** Check if redo is available */
|
|
14907
|
+
canRedo: boolean;
|
|
14908
|
+
/** Clear history */
|
|
14909
|
+
clearHistory: () => void;
|
|
14910
|
+
/** Get history statistics */
|
|
14911
|
+
getHistoryStats: () => {
|
|
14912
|
+
currentIndex: number;
|
|
14913
|
+
totalEntries: number;
|
|
14914
|
+
};
|
|
14915
|
+
}
|
|
14916
|
+
/**
|
|
14917
|
+
* useHistory hook
|
|
14918
|
+
*
|
|
14919
|
+
* Provides undo/redo functionality for state management
|
|
14920
|
+
*
|
|
14921
|
+
* @example
|
|
14922
|
+
* ```tsx
|
|
14923
|
+
* const { state, setState, undo, redo, canUndo, canRedo } = useHistory({
|
|
14924
|
+
* initialState: theme,
|
|
14925
|
+
* maxHistorySize: 50
|
|
14926
|
+
* });
|
|
14927
|
+
* ```
|
|
14928
|
+
*/
|
|
14929
|
+
declare function useHistory<T>(options?: UseHistoryOptions): UseHistoryReturn<T>;
|
|
14930
|
+
|
|
14931
|
+
/**
|
|
14932
|
+
* Configuration Types
|
|
14933
|
+
*
|
|
14934
|
+
* Type definitions for the Atomix configuration system.
|
|
14935
|
+
*/
|
|
14936
|
+
|
|
14937
|
+
/**
|
|
14938
|
+
* Design token categories
|
|
14939
|
+
*/
|
|
14940
|
+
type DesignTokenCategory = 'colors' | 'spacing' | 'typography' | 'borderRadius' | 'shadows' | 'zIndex' | 'transitions' | 'breakpoints';
|
|
14941
|
+
/**
|
|
14942
|
+
* Design token value types
|
|
14943
|
+
*/
|
|
14944
|
+
type DesignTokenValue = string | number;
|
|
14945
|
+
/**
|
|
14946
|
+
* Color Scale (1-10)
|
|
14947
|
+
*/
|
|
14948
|
+
interface ColorScale {
|
|
14949
|
+
1?: string;
|
|
14950
|
+
2?: string;
|
|
14951
|
+
3?: string;
|
|
14952
|
+
4?: string;
|
|
14953
|
+
5?: string;
|
|
14954
|
+
6?: string;
|
|
14955
|
+
7?: string;
|
|
14956
|
+
8?: string;
|
|
14957
|
+
9?: string;
|
|
14958
|
+
10?: string;
|
|
14959
|
+
[key: string]: string | undefined;
|
|
14960
|
+
}
|
|
14961
|
+
/**
|
|
14962
|
+
* Palette Color Options
|
|
14963
|
+
*/
|
|
14964
|
+
interface PaletteColorOptions {
|
|
14965
|
+
main: string;
|
|
14966
|
+
light?: string;
|
|
14967
|
+
dark?: string;
|
|
14968
|
+
contrastText?: string;
|
|
14969
|
+
}
|
|
14970
|
+
/**
|
|
14971
|
+
* Interactive Effect Configuration
|
|
14972
|
+
*/
|
|
14973
|
+
interface InteractiveEffectsConfig {
|
|
14974
|
+
/** Vortex & flow field effects */
|
|
14975
|
+
vortex?: {
|
|
14976
|
+
enabled?: boolean;
|
|
14977
|
+
strength?: number;
|
|
14978
|
+
radius?: number;
|
|
14979
|
+
decay?: number;
|
|
14980
|
+
curlNoise?: boolean;
|
|
14981
|
+
velocityTracking?: boolean;
|
|
14982
|
+
};
|
|
14983
|
+
/** Chromatic aberration effects */
|
|
14984
|
+
chromaticAberration?: {
|
|
14985
|
+
enabled?: boolean;
|
|
14986
|
+
mode?: 'longitudinal' | 'lateral' | 'hybrid';
|
|
14987
|
+
redShift?: number;
|
|
14988
|
+
greenShift?: number;
|
|
14989
|
+
blueShift?: number;
|
|
14990
|
+
edgeOnly?: boolean;
|
|
14991
|
+
edgeThreshold?: number;
|
|
14992
|
+
};
|
|
14993
|
+
/** Mouse interaction settings */
|
|
14994
|
+
mouseInteraction?: {
|
|
14995
|
+
sensitivity?: number;
|
|
14996
|
+
trailEffect?: boolean;
|
|
14997
|
+
pressureSensitivity?: boolean;
|
|
14998
|
+
};
|
|
14999
|
+
/** Animation speed controls */
|
|
15000
|
+
animationSpeed?: {
|
|
15001
|
+
base?: number;
|
|
15002
|
+
timeMultiplier?: number;
|
|
15003
|
+
};
|
|
15004
|
+
}
|
|
15005
|
+
/**
|
|
15006
|
+
* Optimization Configuration
|
|
15007
|
+
*/
|
|
15008
|
+
interface OptimizationConfig {
|
|
15009
|
+
/** Responsive breakpoint system */
|
|
15010
|
+
responsive?: {
|
|
15011
|
+
breakpoints?: {
|
|
15012
|
+
mobile?: string;
|
|
15013
|
+
tablet?: string;
|
|
15014
|
+
desktop?: string;
|
|
15015
|
+
wide?: string;
|
|
15016
|
+
};
|
|
15017
|
+
/** Device-aware parameter scaling */
|
|
15018
|
+
deviceScaling?: {
|
|
15019
|
+
mobile?: number;
|
|
15020
|
+
tablet?: number;
|
|
15021
|
+
desktop?: number;
|
|
15022
|
+
};
|
|
15023
|
+
};
|
|
15024
|
+
/** Performance monitoring */
|
|
15025
|
+
performance?: {
|
|
15026
|
+
enabled?: boolean;
|
|
15027
|
+
fpsTarget?: number;
|
|
15028
|
+
autoScaling?: boolean;
|
|
15029
|
+
monitorDashboard?: boolean;
|
|
15030
|
+
};
|
|
15031
|
+
/** Auto-scaling logic based on device capabilities */
|
|
15032
|
+
autoScaling?: {
|
|
15033
|
+
enabled?: boolean;
|
|
15034
|
+
qualityThresholds?: {
|
|
15035
|
+
lowEnd?: number;
|
|
15036
|
+
midRange?: number;
|
|
15037
|
+
highEnd?: number;
|
|
15038
|
+
};
|
|
15039
|
+
};
|
|
15040
|
+
}
|
|
15041
|
+
/**
|
|
15042
|
+
* Visual Polish Configuration
|
|
15043
|
+
*/
|
|
15044
|
+
interface VisualPolishConfig {
|
|
15045
|
+
/** Advanced border effects */
|
|
15046
|
+
borders?: {
|
|
15047
|
+
iridescentGlow?: boolean;
|
|
15048
|
+
shimmerEffect?: boolean;
|
|
15049
|
+
beveledEdges?: boolean;
|
|
15050
|
+
pulsingGlow?: boolean;
|
|
15051
|
+
};
|
|
15052
|
+
/** Content-aware blur */
|
|
15053
|
+
contentAwareBlur?: {
|
|
15054
|
+
enabled?: boolean;
|
|
15055
|
+
depthDetection?: boolean;
|
|
15056
|
+
edgePreservation?: boolean;
|
|
15057
|
+
variableRadius?: boolean;
|
|
15058
|
+
};
|
|
15059
|
+
/** Holographic effect modes */
|
|
15060
|
+
holographicEffects?: {
|
|
15061
|
+
enabled?: boolean;
|
|
15062
|
+
rainbowDiffraction?: boolean;
|
|
15063
|
+
scanlineAnimation?: boolean;
|
|
15064
|
+
gridOverlay?: boolean;
|
|
15065
|
+
dataStream?: boolean;
|
|
15066
|
+
pulseRings?: boolean;
|
|
15067
|
+
};
|
|
15068
|
+
}
|
|
15069
|
+
/**
|
|
15070
|
+
* Design Tokens Schema (Tailwind-like)
|
|
15071
|
+
*/
|
|
15072
|
+
interface ThemeTokens {
|
|
15073
|
+
/** Color palette */
|
|
15074
|
+
colors?: Record<string, string | PaletteColorOptions | ColorScale | Record<string, string>>;
|
|
15075
|
+
/** Spacing scale */
|
|
15076
|
+
spacing?: Record<string, string>;
|
|
15077
|
+
/** Border radius scale */
|
|
15078
|
+
borderRadius?: Record<string, string>;
|
|
15079
|
+
/** Typography scale and settings */
|
|
15080
|
+
typography?: {
|
|
15081
|
+
fontFamilies?: Record<string, string>;
|
|
15082
|
+
fontSizes?: Record<string, string>;
|
|
15083
|
+
fontWeights?: Record<string, string | number>;
|
|
15084
|
+
lineHeights?: Record<string, string | number>;
|
|
15085
|
+
letterSpacings?: Record<string, string>;
|
|
15086
|
+
};
|
|
15087
|
+
/** Shadow scale */
|
|
15088
|
+
shadows?: Record<string, string>;
|
|
15089
|
+
/** Z-index scale */
|
|
15090
|
+
zIndex?: Record<string, string | number>;
|
|
15091
|
+
/** Breakpoints scale */
|
|
15092
|
+
breakpoints?: Record<string, string | number>;
|
|
15093
|
+
/** Transitions settings */
|
|
15094
|
+
transitions?: {
|
|
15095
|
+
durations?: Record<string, string>;
|
|
15096
|
+
easings?: Record<string, string>;
|
|
15097
|
+
};
|
|
15098
|
+
}
|
|
15099
|
+
/**
|
|
15100
|
+
* CSS Theme Definition
|
|
15101
|
+
*/
|
|
15102
|
+
interface CSSThemeDefinition {
|
|
15103
|
+
type: 'css';
|
|
15104
|
+
name: string;
|
|
15105
|
+
class?: string;
|
|
15106
|
+
description?: string;
|
|
15107
|
+
author?: string;
|
|
15108
|
+
version?: string;
|
|
15109
|
+
tags?: string[];
|
|
15110
|
+
supportsDarkMode?: boolean;
|
|
15111
|
+
status?: 'stable' | 'beta' | 'experimental' | 'deprecated';
|
|
15112
|
+
a11y?: {
|
|
15113
|
+
contrastTarget?: number;
|
|
15114
|
+
modes?: string[];
|
|
15115
|
+
};
|
|
15116
|
+
color?: string;
|
|
15117
|
+
features?: string[];
|
|
15118
|
+
dependencies?: string[];
|
|
15119
|
+
cssPath?: string;
|
|
15120
|
+
}
|
|
15121
|
+
/**
|
|
15122
|
+
* JavaScript Theme Definition
|
|
15123
|
+
*/
|
|
15124
|
+
interface JSThemeDefinition {
|
|
15125
|
+
type: 'js';
|
|
15126
|
+
name: string;
|
|
15127
|
+
class?: string;
|
|
15128
|
+
description?: string;
|
|
15129
|
+
author?: string;
|
|
15130
|
+
version?: string;
|
|
15131
|
+
tags?: string[];
|
|
15132
|
+
supportsDarkMode?: boolean;
|
|
15133
|
+
status?: 'stable' | 'beta' | 'experimental' | 'deprecated';
|
|
15134
|
+
a11y?: {
|
|
15135
|
+
contrastTarget?: number;
|
|
15136
|
+
modes?: string[];
|
|
15137
|
+
};
|
|
15138
|
+
color?: string;
|
|
15139
|
+
features?: string[];
|
|
15140
|
+
dependencies?: string[];
|
|
15141
|
+
createTheme: () => Theme;
|
|
15142
|
+
}
|
|
15143
|
+
/**
|
|
15144
|
+
* Theme Definition (CSS or JS)
|
|
15145
|
+
*/
|
|
15146
|
+
type ThemeDefinition = CSSThemeDefinition | JSThemeDefinition;
|
|
15147
|
+
/**
|
|
15148
|
+
* Build configuration
|
|
15149
|
+
*/
|
|
15150
|
+
interface BuildConfig {
|
|
15151
|
+
output?: {
|
|
15152
|
+
directory?: string;
|
|
15153
|
+
formats?: {
|
|
15154
|
+
expanded?: string;
|
|
15155
|
+
compressed?: string;
|
|
15156
|
+
};
|
|
15157
|
+
};
|
|
15158
|
+
sass?: {
|
|
15159
|
+
style?: 'expanded' | 'compressed';
|
|
15160
|
+
sourceMap?: boolean;
|
|
15161
|
+
loadPaths?: string[];
|
|
15162
|
+
};
|
|
15163
|
+
}
|
|
15164
|
+
/**
|
|
15165
|
+
* Runtime configuration
|
|
15166
|
+
*/
|
|
15167
|
+
interface RuntimeConfig {
|
|
15168
|
+
basePath?: string;
|
|
15169
|
+
cdnPath?: string | null;
|
|
15170
|
+
preload?: string[];
|
|
15171
|
+
lazy?: boolean;
|
|
15172
|
+
defaultTheme?: string;
|
|
15173
|
+
storageKey?: string;
|
|
15174
|
+
dataAttribute?: string;
|
|
15175
|
+
enablePersistence?: boolean;
|
|
15176
|
+
useMinified?: boolean;
|
|
15177
|
+
}
|
|
15178
|
+
/**
|
|
15179
|
+
* Integration settings
|
|
15180
|
+
*/
|
|
15181
|
+
interface IntegrationConfig {
|
|
15182
|
+
cssVariables?: Record<string, string>;
|
|
15183
|
+
classNames?: {
|
|
15184
|
+
theme?: string;
|
|
15185
|
+
colorMode?: string;
|
|
15186
|
+
};
|
|
15187
|
+
}
|
|
15188
|
+
/**
|
|
15189
|
+
* Plugin Configuration
|
|
15190
|
+
*/
|
|
15191
|
+
interface PluginConfig {
|
|
15192
|
+
name: string;
|
|
15193
|
+
options?: Record<string, any>;
|
|
15194
|
+
}
|
|
15195
|
+
/**
|
|
15196
|
+
* Token Provider Configuration
|
|
15197
|
+
*/
|
|
15198
|
+
interface TokenProviderConfig {
|
|
15199
|
+
type: 'figma' | 'style-dictionary' | 'w3c' | string;
|
|
15200
|
+
options?: Record<string, any>;
|
|
15201
|
+
}
|
|
15202
|
+
/**
|
|
15203
|
+
* Token Engine Configuration
|
|
15204
|
+
*/
|
|
15205
|
+
interface TokenEngineConfig {
|
|
15206
|
+
providers?: Record<string, TokenProviderConfig>;
|
|
15207
|
+
sync?: {
|
|
15208
|
+
pull?: boolean;
|
|
15209
|
+
push?: boolean;
|
|
15210
|
+
onBuild?: boolean;
|
|
15211
|
+
};
|
|
15212
|
+
}
|
|
15213
|
+
/**
|
|
15214
|
+
* CLI component generator defaults
|
|
15215
|
+
*/
|
|
15216
|
+
interface GeneratorConfig {
|
|
15217
|
+
/** Default output directory for generated components */
|
|
15218
|
+
outputPath?: string;
|
|
15219
|
+
/** Override detected framework */
|
|
15220
|
+
framework?: 'react' | 'next' | 'vanilla';
|
|
15221
|
+
/** Per-feature defaults */
|
|
15222
|
+
features?: {
|
|
15223
|
+
storybook?: boolean;
|
|
15224
|
+
hook?: boolean;
|
|
15225
|
+
styles?: boolean;
|
|
15226
|
+
tests?: boolean;
|
|
15227
|
+
};
|
|
15228
|
+
/** Composable hooks directory relative to project root */
|
|
15229
|
+
hookOutputDir?: string;
|
|
15230
|
+
/** Story file: side-effect import for global Atomix styles */
|
|
15231
|
+
storybookCssImport?: string;
|
|
15232
|
+
/** Barrel file strategy for new components */
|
|
15233
|
+
barrel?: 'index' | 'none';
|
|
15234
|
+
}
|
|
15235
|
+
/**
|
|
15236
|
+
* Atomix Configuration Interface
|
|
15237
|
+
*
|
|
15238
|
+
* Tailwind-like configuration for external developers.
|
|
15239
|
+
*/
|
|
15240
|
+
interface AtomixConfig {
|
|
15241
|
+
prefix?: string;
|
|
15242
|
+
plugins?: (string | PluginConfig)[];
|
|
15243
|
+
tokenEngine?: TokenEngineConfig;
|
|
15244
|
+
ai?: {
|
|
15245
|
+
provider?: 'openai' | 'anthropic';
|
|
15246
|
+
model?: string;
|
|
15247
|
+
apiKey?: string;
|
|
15248
|
+
temperature?: number;
|
|
15249
|
+
maxTokens?: number;
|
|
15250
|
+
rateLimit?: {
|
|
15251
|
+
requests: number;
|
|
15252
|
+
windowMs: number;
|
|
15253
|
+
};
|
|
15254
|
+
};
|
|
15255
|
+
telemetry?: {
|
|
15256
|
+
enabled?: boolean;
|
|
15257
|
+
path?: string;
|
|
15258
|
+
anonymize?: boolean;
|
|
15259
|
+
};
|
|
15260
|
+
generator?: GeneratorConfig;
|
|
15261
|
+
interactiveEffects?: InteractiveEffectsConfig;
|
|
15262
|
+
optimization?: OptimizationConfig;
|
|
15263
|
+
visualPolish?: VisualPolishConfig;
|
|
15264
|
+
theme?: {
|
|
15265
|
+
extend?: ThemeTokens;
|
|
15266
|
+
tokens?: ThemeTokens;
|
|
15267
|
+
themes?: Record<string, ThemeDefinition>;
|
|
15268
|
+
};
|
|
15269
|
+
/** @internal Build configuration */
|
|
15270
|
+
build?: BuildConfig;
|
|
15271
|
+
/** @internal Runtime configuration */
|
|
15272
|
+
runtime?: RuntimeConfig;
|
|
15273
|
+
/** @internal Integration settings */
|
|
15274
|
+
integration?: IntegrationConfig;
|
|
15275
|
+
/** @internal Theme dependencies mapping */
|
|
15276
|
+
dependencies?: Record<string, string[]>;
|
|
15277
|
+
}
|
|
15278
|
+
/**
|
|
15279
|
+
* Helper function to define Atomix configuration with type safety
|
|
15280
|
+
*/
|
|
15281
|
+
declare function defineConfig(config: AtomixConfig): AtomixConfig;
|
|
15282
|
+
|
|
15283
|
+
/**
|
|
15284
|
+
* Atomix Config Loader
|
|
15285
|
+
*
|
|
15286
|
+
* Helper functions to load atomix.config.ts from external projects.
|
|
15287
|
+
* Now also supports atomix.config.js and atomix.config.json
|
|
15288
|
+
*/
|
|
15289
|
+
|
|
15290
|
+
/**
|
|
15291
|
+
* Load Atomix configuration from project root
|
|
15292
|
+
*
|
|
15293
|
+
* Attempts to load atomix.config.ts, atomix.config.js, or atomix.config.json from the current working directory.
|
|
15294
|
+
* Falls back to default config if file doesn't exist.
|
|
15295
|
+
*
|
|
15296
|
+
* @param options - Loader options
|
|
15297
|
+
* @returns Loaded configuration or default
|
|
15298
|
+
*
|
|
15299
|
+
* @example
|
|
15300
|
+
* ```typescript
|
|
15301
|
+
* import { loadAtomixConfig } from '@shohojdhara/atomix/config';
|
|
15302
|
+
* import { createTheme } from '@shohojdhara/atomix/theme';
|
|
15303
|
+
*
|
|
15304
|
+
* const config = loadAtomixConfig();
|
|
15305
|
+
* const theme = createTheme(config.theme?.tokens || {});
|
|
15306
|
+
* ```
|
|
15307
|
+
*/
|
|
15308
|
+
declare function loadAtomixConfig(options?: {
|
|
15309
|
+
/** Custom config path (default: 'atomix.config.ts') */
|
|
15310
|
+
configPath?: string;
|
|
15311
|
+
/** Whether to throw error if config not found (default: false) */
|
|
15312
|
+
required?: boolean;
|
|
15313
|
+
}): AtomixConfig;
|
|
15314
|
+
/**
|
|
15315
|
+
* Resolve config path
|
|
15316
|
+
*
|
|
15317
|
+
* Finds atomix.config.ts in the project, checking common locations.
|
|
15318
|
+
* Returns null in browser environments where file system access is not available.
|
|
15319
|
+
*
|
|
15320
|
+
* This function is designed to help tools identify if a config exists without loading it.
|
|
15321
|
+
*
|
|
15322
|
+
* @param configPath - Optional custom path to check
|
|
15323
|
+
* @returns Absolute path to config file or null if not found
|
|
14304
15324
|
*/
|
|
14305
|
-
declare
|
|
15325
|
+
declare function resolveConfigPath(configPath?: string): string | null;
|
|
14306
15326
|
|
|
14307
15327
|
/**
|
|
14308
|
-
*
|
|
15328
|
+
* Configuration Validator
|
|
14309
15329
|
*
|
|
14310
|
-
*
|
|
15330
|
+
* Provides detailed validation and feedback for Atomix configurations,
|
|
15331
|
+
* especially for advanced features (Phases 2, 3, and 4).
|
|
14311
15332
|
*/
|
|
14312
15333
|
|
|
14313
15334
|
/**
|
|
14314
|
-
* Validation result
|
|
15335
|
+
* Validation result with detailed information
|
|
14315
15336
|
*/
|
|
14316
15337
|
interface ValidationResult {
|
|
14317
|
-
/** Whether
|
|
14318
|
-
|
|
14319
|
-
/**
|
|
14320
|
-
errors: string[];
|
|
14321
|
-
/** Validation warnings */
|
|
15338
|
+
/** Whether the configuration is valid */
|
|
15339
|
+
isValid: boolean;
|
|
15340
|
+
/** Warnings about potential issues */
|
|
14322
15341
|
warnings: string[];
|
|
14323
|
-
/**
|
|
14324
|
-
|
|
15342
|
+
/** Suggestions for improvement */
|
|
15343
|
+
suggestions: string[];
|
|
15344
|
+
/** Performance impact assessment */
|
|
15345
|
+
performanceImpact: 'low' | 'medium' | 'high';
|
|
15346
|
+
/** Compatibility report */
|
|
15347
|
+
compatibility: {
|
|
15348
|
+
/** Browser support status */
|
|
15349
|
+
browsers: boolean;
|
|
15350
|
+
/** SSR support status */
|
|
15351
|
+
ssr: boolean;
|
|
15352
|
+
/** Framework compatibility */
|
|
15353
|
+
frameworks: ('react' | 'vue' | 'angular' | 'svelte' | 'vanillajs')[];
|
|
15354
|
+
};
|
|
14325
15355
|
}
|
|
14326
15356
|
/**
|
|
14327
|
-
*
|
|
15357
|
+
* Validate an Atomix configuration with detailed feedback
|
|
15358
|
+
*
|
|
15359
|
+
* @param config - The configuration to validate
|
|
15360
|
+
* @param options - Validation options
|
|
15361
|
+
* @returns Detailed validation result
|
|
15362
|
+
*
|
|
15363
|
+
* @example
|
|
15364
|
+
* ```typescript
|
|
15365
|
+
* import { validateConfiguration } from '@shohojdhara/atomix/config';
|
|
15366
|
+
*
|
|
15367
|
+
* const config = { /* your config *\/ };
|
|
15368
|
+
* const result = validateConfiguration(config);
|
|
15369
|
+
*
|
|
15370
|
+
* if (!result.isValid) {
|
|
15371
|
+
* console.warn('Warnings:', result.warnings);
|
|
15372
|
+
* console.info('Suggestions:', result.suggestions);
|
|
15373
|
+
* }
|
|
15374
|
+
* ```
|
|
14328
15375
|
*/
|
|
14329
|
-
|
|
14330
|
-
/**
|
|
14331
|
-
|
|
14332
|
-
/**
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
message: string;
|
|
14336
|
-
/** Affected property */
|
|
14337
|
-
property?: string;
|
|
14338
|
-
/** Current value */
|
|
14339
|
-
value?: string;
|
|
14340
|
-
/** Recommended value */
|
|
14341
|
-
recommended?: string;
|
|
14342
|
-
}
|
|
15376
|
+
declare function validateConfiguration(config: AtomixConfig, options?: {
|
|
15377
|
+
/** Include performance impact analysis (default: true) */
|
|
15378
|
+
performanceAnalysis?: boolean;
|
|
15379
|
+
/** Include compatibility report (default: true) */
|
|
15380
|
+
compatibilityReport?: boolean;
|
|
15381
|
+
}): ValidationResult;
|
|
14343
15382
|
/**
|
|
14344
|
-
*
|
|
15383
|
+
* Print a detailed configuration report to the console
|
|
14345
15384
|
*
|
|
14346
|
-
*
|
|
15385
|
+
* @param config - The configuration to analyze
|
|
15386
|
+
* @param title - Optional title for the report
|
|
15387
|
+
*
|
|
15388
|
+
* @example
|
|
15389
|
+
* ```typescript
|
|
15390
|
+
* import { printConfigReport } from '@shohojdhara/atomix/config';
|
|
15391
|
+
*
|
|
15392
|
+
* const config = { /* your config *\/ };
|
|
15393
|
+
* printConfigReport(config, 'My Application Config');
|
|
15394
|
+
* ```
|
|
14347
15395
|
*/
|
|
14348
|
-
declare
|
|
14349
|
-
/**
|
|
14350
|
-
* Validate theme
|
|
14351
|
-
*/
|
|
14352
|
-
validate(theme: Theme, metadata?: ThemeMetadata): ValidationResult;
|
|
14353
|
-
/**
|
|
14354
|
-
* Validate palette
|
|
14355
|
-
*/
|
|
14356
|
-
private validatePalette;
|
|
14357
|
-
/**
|
|
14358
|
-
* Validate typography
|
|
14359
|
-
*/
|
|
14360
|
-
private validateTypography;
|
|
14361
|
-
/**
|
|
14362
|
-
* Validate spacing
|
|
14363
|
-
*/
|
|
14364
|
-
private validateSpacing;
|
|
14365
|
-
/**
|
|
14366
|
-
* Validate breakpoints
|
|
14367
|
-
*/
|
|
14368
|
-
private validateBreakpoints;
|
|
14369
|
-
/**
|
|
14370
|
-
* Check color contrast ratio
|
|
14371
|
-
*/
|
|
14372
|
-
private checkContrast;
|
|
14373
|
-
/**
|
|
14374
|
-
* Check if color is valid
|
|
14375
|
-
*/
|
|
14376
|
-
private isValidColor;
|
|
14377
|
-
/**
|
|
14378
|
-
* Validate transitions
|
|
14379
|
-
*/
|
|
14380
|
-
private validateTransitions;
|
|
14381
|
-
/**
|
|
14382
|
-
* Validate z-index
|
|
14383
|
-
*/
|
|
14384
|
-
private validateZIndex;
|
|
14385
|
-
/**
|
|
14386
|
-
* Validate border radius
|
|
14387
|
-
*/
|
|
14388
|
-
private validateBorderRadius;
|
|
14389
|
-
/**
|
|
14390
|
-
* Validate custom properties
|
|
14391
|
-
*/
|
|
14392
|
-
private validateCustom;
|
|
14393
|
-
}
|
|
15396
|
+
declare function printConfigReport(config: AtomixConfig, title?: string): void;
|
|
14394
15397
|
|
|
14395
15398
|
/**
|
|
14396
|
-
*
|
|
15399
|
+
* Public API for loading and managing Atomix configuration
|
|
14397
15400
|
*
|
|
14398
|
-
*
|
|
15401
|
+
* This module provides the public-facing API for configuration loading
|
|
15402
|
+
* in external projects.
|
|
14399
15403
|
*/
|
|
14400
|
-
|
|
14401
|
-
/** Maximum number of history entries (default: 50) */
|
|
14402
|
-
maxHistorySize?: number;
|
|
14403
|
-
/** Initial state */
|
|
14404
|
-
initialState?: any;
|
|
14405
|
-
}
|
|
14406
|
-
interface UseHistoryReturn<T> {
|
|
14407
|
-
/** Current state */
|
|
14408
|
-
state: T;
|
|
14409
|
-
/** Update state and add to history */
|
|
14410
|
-
setState: (newState: T) => void;
|
|
14411
|
-
/** Undo last change */
|
|
14412
|
-
undo: () => void;
|
|
14413
|
-
/** Redo last undone change */
|
|
14414
|
-
redo: () => void;
|
|
14415
|
-
/** Check if undo is available */
|
|
14416
|
-
canUndo: boolean;
|
|
14417
|
-
/** Check if redo is available */
|
|
14418
|
-
canRedo: boolean;
|
|
14419
|
-
/** Clear history */
|
|
14420
|
-
clearHistory: () => void;
|
|
14421
|
-
/** Get history statistics */
|
|
14422
|
-
getHistoryStats: () => {
|
|
14423
|
-
currentIndex: number;
|
|
14424
|
-
totalEntries: number;
|
|
14425
|
-
};
|
|
14426
|
-
}
|
|
15404
|
+
|
|
14427
15405
|
/**
|
|
14428
|
-
*
|
|
15406
|
+
* Load Atomix configuration from an external project.
|
|
14429
15407
|
*
|
|
14430
|
-
*
|
|
15408
|
+
* @param options - Loading options
|
|
15409
|
+
* @returns The loaded configuration
|
|
14431
15410
|
*
|
|
14432
15411
|
* @example
|
|
14433
|
-
* ```
|
|
14434
|
-
*
|
|
14435
|
-
*
|
|
14436
|
-
*
|
|
14437
|
-
*
|
|
15412
|
+
* ```typescript
|
|
15413
|
+
* import { loadConfig } from '@shohojdhara/atomix/config';
|
|
15414
|
+
*
|
|
15415
|
+
* const config = loadConfig();
|
|
15416
|
+
* console.log(config.prefix); // 'atomix' or user's custom prefix
|
|
14438
15417
|
* ```
|
|
14439
15418
|
*/
|
|
14440
|
-
declare function
|
|
15419
|
+
declare function loadConfig(options?: {
|
|
15420
|
+
configPath?: string;
|
|
15421
|
+
required?: boolean;
|
|
15422
|
+
}): AtomixConfig;
|
|
15423
|
+
/**
|
|
15424
|
+
* Validate Atomix configuration structure.
|
|
15425
|
+
*
|
|
15426
|
+
* @param config - Configuration object to validate
|
|
15427
|
+
* @returns Array of validation warnings (empty if valid)
|
|
15428
|
+
*/
|
|
15429
|
+
declare function validateConfig(config: AtomixConfig): string[];
|
|
14441
15430
|
|
|
14442
15431
|
/**
|
|
14443
15432
|
* Theme Adapter
|
|
14444
15433
|
*
|
|
14445
|
-
* Converts between Theme objects and DesignTokens
|
|
15434
|
+
* Converts between Theme objects and DesignTokens
|
|
14446
15435
|
*/
|
|
14447
15436
|
|
|
14448
15437
|
/**
|
|
14449
|
-
*
|
|
15438
|
+
* Converts an AtomixConfig to DesignTokens
|
|
15439
|
+
*
|
|
15440
|
+
* This function maps the configuration from the user-facing format
|
|
15441
|
+
* to the internal DesignTokens format used by the theme system.
|
|
15442
|
+
*
|
|
15443
|
+
* @param config - The configuration object to convert
|
|
15444
|
+
* @returns DesignTokens object ready for theme generation
|
|
15445
|
+
*
|
|
15446
|
+
* @example
|
|
15447
|
+
* ```typescript
|
|
15448
|
+
* import { configToTokens } from '@shohojdhara/atomix/theme';
|
|
15449
|
+
*
|
|
15450
|
+
* const config = {
|
|
15451
|
+
* prefix: 'myapp',
|
|
15452
|
+
* theme: { extend: { colors: { primary: { main: '#7AFFD7' } } } }
|
|
15453
|
+
* };
|
|
15454
|
+
* const tokens = configToTokens(config);
|
|
15455
|
+
* ```
|
|
15456
|
+
*/
|
|
15457
|
+
declare function configToTokens(config: AtomixConfig): DesignTokens;
|
|
15458
|
+
/**
|
|
15459
|
+
* Converts DesignTokens to CSS variables
|
|
14450
15460
|
*
|
|
14451
|
-
* @param tokens -
|
|
14452
|
-
* @returns CSS
|
|
15461
|
+
* @param tokens - The tokens to convert
|
|
15462
|
+
* @returns A record of CSS variable names and values
|
|
14453
15463
|
*/
|
|
14454
15464
|
declare function designTokensToCSSVars(tokens: Partial<DesignTokens>): Record<string, string>;
|
|
14455
15465
|
|
|
@@ -14559,6 +15569,265 @@ declare function extractComponentName(varName: string, prefix?: string): string
|
|
|
14559
15569
|
*/
|
|
14560
15570
|
declare function isDesignTokens(value: unknown): value is DesignTokens;
|
|
14561
15571
|
|
|
15572
|
+
/**
|
|
15573
|
+
* Performance Monitor Utility
|
|
15574
|
+
*
|
|
15575
|
+
* Provides performance monitoring and metrics collection for the Atomix theme system.
|
|
15576
|
+
* Used to measure and optimize performance of advanced visual effects.
|
|
15577
|
+
*/
|
|
15578
|
+
/**
|
|
15579
|
+
* Performance metrics collected by the monitor
|
|
15580
|
+
*/
|
|
15581
|
+
interface PerformanceMetrics {
|
|
15582
|
+
/** Frames per second */
|
|
15583
|
+
fps: number;
|
|
15584
|
+
/** Average frame render time in ms */
|
|
15585
|
+
frameTime: number;
|
|
15586
|
+
/** Peak frame render time in ms */
|
|
15587
|
+
peakFrameTime: number;
|
|
15588
|
+
/** Memory usage statistics */
|
|
15589
|
+
memory?: {
|
|
15590
|
+
usedJSHeapSize: number;
|
|
15591
|
+
totalJSHeapSize: number;
|
|
15592
|
+
jsHeapSizeLimit: number;
|
|
15593
|
+
};
|
|
15594
|
+
/** Timestamp of measurement */
|
|
15595
|
+
timestamp: number;
|
|
15596
|
+
/** Whether performance is degrading */
|
|
15597
|
+
isDegraded: boolean;
|
|
15598
|
+
}
|
|
15599
|
+
/**
|
|
15600
|
+
* Performance monitor configuration
|
|
15601
|
+
*/
|
|
15602
|
+
interface PerformanceMonitorConfig {
|
|
15603
|
+
/** Target FPS threshold (default: 60) */
|
|
15604
|
+
fpsTarget?: number;
|
|
15605
|
+
/** How frequently to sample (default: 500ms) */
|
|
15606
|
+
sampleInterval?: number;
|
|
15607
|
+
/** Callback for performance updates */
|
|
15608
|
+
onUpdate?: (metrics: PerformanceMetrics) => void;
|
|
15609
|
+
/** Callback when performance degrades */
|
|
15610
|
+
onDegraded?: (metrics: PerformanceMetrics) => void;
|
|
15611
|
+
/** Enable/disable memory monitoring */
|
|
15612
|
+
enableMemoryMonitoring?: boolean;
|
|
15613
|
+
}
|
|
15614
|
+
/**
|
|
15615
|
+
* Performance monitor class
|
|
15616
|
+
*/
|
|
15617
|
+
declare class PerformanceMonitor {
|
|
15618
|
+
config: Required<PerformanceMonitorConfig>;
|
|
15619
|
+
private frameCount;
|
|
15620
|
+
private lastSampleTime;
|
|
15621
|
+
private lastFpsUpdate;
|
|
15622
|
+
private frameTimes;
|
|
15623
|
+
private animationFrameId;
|
|
15624
|
+
private isActive;
|
|
15625
|
+
private startTime;
|
|
15626
|
+
/**
|
|
15627
|
+
* Create a new performance monitor
|
|
15628
|
+
*
|
|
15629
|
+
* @param config Configuration options
|
|
15630
|
+
*/
|
|
15631
|
+
constructor(config?: PerformanceMonitorConfig);
|
|
15632
|
+
/**
|
|
15633
|
+
* Start monitoring performance
|
|
15634
|
+
*/
|
|
15635
|
+
start(): void;
|
|
15636
|
+
/**
|
|
15637
|
+
* Stop monitoring performance
|
|
15638
|
+
*/
|
|
15639
|
+
stop(): void;
|
|
15640
|
+
/**
|
|
15641
|
+
* Get current performance metrics
|
|
15642
|
+
*/
|
|
15643
|
+
getMetrics(): PerformanceMetrics;
|
|
15644
|
+
/**
|
|
15645
|
+
* Get the current FPS
|
|
15646
|
+
*/
|
|
15647
|
+
getFps(): number;
|
|
15648
|
+
/**
|
|
15649
|
+
* Check if performance is degraded
|
|
15650
|
+
*/
|
|
15651
|
+
isPerformanceDegraded(): boolean;
|
|
15652
|
+
/**
|
|
15653
|
+
* Private method called on each animation frame
|
|
15654
|
+
*/
|
|
15655
|
+
private onFrame;
|
|
15656
|
+
/**
|
|
15657
|
+
* Run a performance test for a specific function
|
|
15658
|
+
*
|
|
15659
|
+
* @param fn Function to test
|
|
15660
|
+
* @param iterations Number of iterations (default: 100)
|
|
15661
|
+
* @returns Average execution time in ms
|
|
15662
|
+
*/
|
|
15663
|
+
testFunctionPerformance(fn: () => void, iterations?: number): Promise<number>;
|
|
15664
|
+
}
|
|
15665
|
+
/**
|
|
15666
|
+
* Create a performance monitor instance
|
|
15667
|
+
*
|
|
15668
|
+
* @param config Configuration options
|
|
15669
|
+
* @returns PerformanceMonitor instance
|
|
15670
|
+
*
|
|
15671
|
+
* @example
|
|
15672
|
+
* ```typescript
|
|
15673
|
+
* import { createPerformanceMonitor } from '@shohojdhara/atomix/theme';
|
|
15674
|
+
*
|
|
15675
|
+
* const monitor = createPerformanceMonitor({
|
|
15676
|
+
* fpsTarget: 60,
|
|
15677
|
+
* onUpdate: (metrics) => console.log('FPS:', metrics.fps),
|
|
15678
|
+
* onDegraded: (metrics) => console.warn('Performance degraded!', metrics),
|
|
15679
|
+
* });
|
|
15680
|
+
*
|
|
15681
|
+
* monitor.start();
|
|
15682
|
+
*
|
|
15683
|
+
* // Later...
|
|
15684
|
+
* monitor.stop();
|
|
15685
|
+
* ```
|
|
15686
|
+
*/
|
|
15687
|
+
declare function createPerformanceMonitor(config?: PerformanceMonitorConfig): PerformanceMonitor;
|
|
15688
|
+
/**
|
|
15689
|
+
* Hook for React components to monitor performance
|
|
15690
|
+
*
|
|
15691
|
+
* @param config Configuration options
|
|
15692
|
+
* @returns Performance metrics and monitor controls
|
|
15693
|
+
*
|
|
15694
|
+
* @example
|
|
15695
|
+
* ```typescript
|
|
15696
|
+
* import { usePerformanceMonitor } from '@shohojdhara/atomix/theme';
|
|
15697
|
+
*
|
|
15698
|
+
* function MyComponent() {
|
|
15699
|
+
* const { metrics, start, stop } = usePerformanceMonitor({ fpsTarget: 60 });
|
|
15700
|
+
*
|
|
15701
|
+
* useEffect(() => {
|
|
15702
|
+
* start();
|
|
15703
|
+
* return () => stop();
|
|
15704
|
+
* }, []);
|
|
15705
|
+
*
|
|
15706
|
+
* return <div>FPS: {metrics.fps}</div>;
|
|
15707
|
+
* }
|
|
15708
|
+
* ```
|
|
15709
|
+
*/
|
|
15710
|
+
declare function usePerformanceMonitor(config?: PerformanceMonitorConfig): {
|
|
15711
|
+
metrics: PerformanceMetrics;
|
|
15712
|
+
start: () => void;
|
|
15713
|
+
stop: () => void;
|
|
15714
|
+
};
|
|
15715
|
+
|
|
15716
|
+
/**
|
|
15717
|
+
* Responsive Utility for Atomix Theme System
|
|
15718
|
+
*
|
|
15719
|
+
* Provides responsive breakpoint detection and device-aware parameter scaling
|
|
15720
|
+
* based on configuration from the advanced optimization features.
|
|
15721
|
+
*/
|
|
15722
|
+
/**
|
|
15723
|
+
* Breakpoint definitions
|
|
15724
|
+
*/
|
|
15725
|
+
interface Breakpoints {
|
|
15726
|
+
mobile: string;
|
|
15727
|
+
tablet: string;
|
|
15728
|
+
desktop: string;
|
|
15729
|
+
wide: string;
|
|
15730
|
+
}
|
|
15731
|
+
/**
|
|
15732
|
+
* Device scaling factors
|
|
15733
|
+
*/
|
|
15734
|
+
interface DeviceScaling {
|
|
15735
|
+
mobile: number;
|
|
15736
|
+
tablet: number;
|
|
15737
|
+
desktop: number;
|
|
15738
|
+
}
|
|
15739
|
+
/**
|
|
15740
|
+
* Responsive configuration
|
|
15741
|
+
*/
|
|
15742
|
+
interface ResponsiveConfig {
|
|
15743
|
+
breakpoints: Breakpoints;
|
|
15744
|
+
deviceScaling: DeviceScaling;
|
|
15745
|
+
}
|
|
15746
|
+
/**
|
|
15747
|
+
* Current device type
|
|
15748
|
+
*/
|
|
15749
|
+
type DeviceType = 'mobile' | 'tablet' | 'desktop' | 'wide';
|
|
15750
|
+
/**
|
|
15751
|
+
* Responsive utility class
|
|
15752
|
+
*/
|
|
15753
|
+
declare class ResponsiveUtil {
|
|
15754
|
+
private config;
|
|
15755
|
+
private currentDevice;
|
|
15756
|
+
private resizeHandler;
|
|
15757
|
+
private observer;
|
|
15758
|
+
constructor(config: ResponsiveConfig);
|
|
15759
|
+
/**
|
|
15760
|
+
* Get the current device type based on viewport width
|
|
15761
|
+
*/
|
|
15762
|
+
getCurrentDeviceType(): DeviceType;
|
|
15763
|
+
/**
|
|
15764
|
+
* Get the scaling factor for the current device
|
|
15765
|
+
*/
|
|
15766
|
+
getCurrentScalingFactor(): number;
|
|
15767
|
+
/**
|
|
15768
|
+
* Scale a value based on the current device's scaling factor
|
|
15769
|
+
*/
|
|
15770
|
+
scaleValue(value: number): number;
|
|
15771
|
+
/**
|
|
15772
|
+
* Check if the current device matches a specific type
|
|
15773
|
+
*/
|
|
15774
|
+
isDevice(device: DeviceType): boolean;
|
|
15775
|
+
/**
|
|
15776
|
+
* Check if the current device is mobile or smaller
|
|
15777
|
+
*/
|
|
15778
|
+
isMobileOrSmaller(): boolean;
|
|
15779
|
+
/**
|
|
15780
|
+
* Check if the current device is tablet or smaller
|
|
15781
|
+
*/
|
|
15782
|
+
isTabletOrSmaller(): boolean;
|
|
15783
|
+
/**
|
|
15784
|
+
* Check if the current device is desktop or larger
|
|
15785
|
+
*/
|
|
15786
|
+
isDesktopOrLarger(): boolean;
|
|
15787
|
+
/**
|
|
15788
|
+
* Update the responsive configuration
|
|
15789
|
+
*/
|
|
15790
|
+
updateConfig(config: ResponsiveConfig): void;
|
|
15791
|
+
/**
|
|
15792
|
+
* Destroy the responsive utility and clean up listeners
|
|
15793
|
+
*/
|
|
15794
|
+
destroy(): void;
|
|
15795
|
+
/**
|
|
15796
|
+
* Parse a CSS value to pixels
|
|
15797
|
+
*/
|
|
15798
|
+
private parsePxValue;
|
|
15799
|
+
/**
|
|
15800
|
+
* Set up the resize listener
|
|
15801
|
+
*/
|
|
15802
|
+
private setupResizeListener;
|
|
15803
|
+
}
|
|
15804
|
+
/**
|
|
15805
|
+
* Create a responsive utility instance
|
|
15806
|
+
*
|
|
15807
|
+
* @param config Responsive configuration
|
|
15808
|
+
* @returns ResponsiveUtil instance
|
|
15809
|
+
*/
|
|
15810
|
+
declare function createResponsiveUtil(config: ResponsiveConfig): ResponsiveUtil;
|
|
15811
|
+
/**
|
|
15812
|
+
* Hook for React components to use responsive features
|
|
15813
|
+
*
|
|
15814
|
+
* @param config Responsive configuration
|
|
15815
|
+
* @returns Current device type and utility functions
|
|
15816
|
+
*/
|
|
15817
|
+
declare function useResponsive(config: ResponsiveConfig): {
|
|
15818
|
+
deviceType: DeviceType;
|
|
15819
|
+
isMobile: boolean;
|
|
15820
|
+
isTablet: boolean;
|
|
15821
|
+
isDesktop: boolean;
|
|
15822
|
+
isWide: boolean;
|
|
15823
|
+
scaleValue: (value: number) => number;
|
|
15824
|
+
getCurrentDeviceType: () => DeviceType;
|
|
15825
|
+
getCurrentScalingFactor: () => number;
|
|
15826
|
+
isMobileOrSmaller: () => boolean;
|
|
15827
|
+
isTabletOrSmaller: () => boolean;
|
|
15828
|
+
isDesktopOrLarger: () => boolean;
|
|
15829
|
+
};
|
|
15830
|
+
|
|
14562
15831
|
/**
|
|
14563
15832
|
* RTL (Right-to-Left) Support Utilities
|
|
14564
15833
|
*
|
|
@@ -14657,26 +15926,24 @@ declare class RTLManager {
|
|
|
14657
15926
|
*/
|
|
14658
15927
|
destroy(): void;
|
|
14659
15928
|
}
|
|
14660
|
-
|
|
14661
15929
|
/**
|
|
14662
|
-
*
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
*
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
*
|
|
14671
|
-
|
|
14672
|
-
|
|
15930
|
+
* Create RTL manager instance
|
|
15931
|
+
*/
|
|
15932
|
+
declare function createRTLManager(config?: RTLConfig): RTLManager;
|
|
15933
|
+
/**
|
|
15934
|
+
* Check if locale is RTL
|
|
15935
|
+
*/
|
|
15936
|
+
declare function isRTLLocale(locale: string): boolean;
|
|
15937
|
+
/**
|
|
15938
|
+
* Get direction from locale
|
|
15939
|
+
*/
|
|
15940
|
+
declare function getDirectionFromLocale(locale: string): 'ltr' | 'rtl';
|
|
15941
|
+
/**
|
|
15942
|
+
* RTL-aware CSS helper
|
|
14673
15943
|
*
|
|
14674
|
-
*
|
|
14675
|
-
* import { ThemeProvider } from '@shohojdhara/atomix/theme';
|
|
14676
|
-
* const tokens = { 'primary': '#7c3aed' };
|
|
14677
|
-
* <ThemeProvider defaultTheme={tokens}>...</ThemeProvider>
|
|
14678
|
-
* ```
|
|
15944
|
+
* Returns appropriate CSS based on direction
|
|
14679
15945
|
*/
|
|
15946
|
+
declare function rtlCSS(ltrCSS: string, rtlCSS: string, direction?: 'ltr' | 'rtl'): string;
|
|
14680
15947
|
|
|
14681
15948
|
/**
|
|
14682
15949
|
* Inject theme CSS into DOM
|
|
@@ -14687,6 +15954,96 @@ declare function injectTheme(css: string, id?: string): void;
|
|
|
14687
15954
|
*/
|
|
14688
15955
|
declare function removeTheme(id?: string): void;
|
|
14689
15956
|
|
|
15957
|
+
/**
|
|
15958
|
+
* Main theme module interface
|
|
15959
|
+
*/
|
|
15960
|
+
declare const _default: {
|
|
15961
|
+
createTheme: typeof createTheme;
|
|
15962
|
+
injectTheme: typeof injectTheme;
|
|
15963
|
+
removeTheme: typeof removeTheme;
|
|
15964
|
+
ThemeProvider: React$1.FC<ThemeProviderProps>;
|
|
15965
|
+
useTheme: typeof useTheme;
|
|
15966
|
+
useThemeTokens: typeof useThemeTokens;
|
|
15967
|
+
ThemeContext: React$1.Context<ThemeContextValue | null>;
|
|
15968
|
+
ThemeErrorBoundary: typeof ThemeErrorBoundary;
|
|
15969
|
+
configToTokens: typeof configToTokens;
|
|
15970
|
+
designTokensToCSSVars: typeof designTokensToCSSVars;
|
|
15971
|
+
switchTheme: typeof switchTheme;
|
|
15972
|
+
toggleTheme: typeof toggleTheme;
|
|
15973
|
+
getCurrentTheme: typeof getCurrentTheme;
|
|
15974
|
+
getSystemTheme: typeof getSystemTheme;
|
|
15975
|
+
initializeTheme: typeof initializeTheme;
|
|
15976
|
+
listenToSystemTheme: typeof listenToSystemTheme;
|
|
15977
|
+
persistTheme: typeof persistTheme;
|
|
15978
|
+
clearThemePreference: typeof clearThemePreference;
|
|
15979
|
+
mergeTokens: typeof mergeTokens;
|
|
15980
|
+
overrideTokens: typeof overrideTokens;
|
|
15981
|
+
pickTokens: typeof pickTokens;
|
|
15982
|
+
omitTokens: typeof omitTokens;
|
|
15983
|
+
hexToRgb: typeof hexToRgb;
|
|
15984
|
+
rgbToHex: typeof rgbToHex;
|
|
15985
|
+
getLuminance: typeof getLuminance;
|
|
15986
|
+
getContrastRatio: typeof getContrastRatio;
|
|
15987
|
+
isAccessible: typeof isAccessible;
|
|
15988
|
+
getContrastText: typeof getContrastText;
|
|
15989
|
+
lighten: typeof lighten;
|
|
15990
|
+
darken: typeof darken;
|
|
15991
|
+
alpha: typeof alpha;
|
|
15992
|
+
emphasize: typeof emphasize;
|
|
15993
|
+
createSpacing: typeof createSpacing;
|
|
15994
|
+
createPerformanceMonitor: typeof createPerformanceMonitor;
|
|
15995
|
+
usePerformanceMonitor: typeof usePerformanceMonitor;
|
|
15996
|
+
createResponsiveUtil: typeof createResponsiveUtil;
|
|
15997
|
+
useResponsive: typeof useResponsive;
|
|
15998
|
+
ThemeToggle: React$1.FC<ThemeToggleProps>;
|
|
15999
|
+
ThemeApplicator: typeof ThemeApplicator;
|
|
16000
|
+
applyTheme: typeof applyTheme;
|
|
16001
|
+
getThemeApplicator: typeof getThemeApplicator;
|
|
16002
|
+
createThemeRegistry: typeof createThemeRegistry;
|
|
16003
|
+
registerTheme: typeof registerTheme;
|
|
16004
|
+
unregisterTheme: typeof unregisterTheme;
|
|
16005
|
+
hasTheme: typeof hasTheme;
|
|
16006
|
+
getTheme: typeof getTheme;
|
|
16007
|
+
getAllThemes: typeof getAllThemes;
|
|
16008
|
+
getThemeIds: typeof getThemeIds;
|
|
16009
|
+
clearThemes: typeof clearThemes;
|
|
16010
|
+
getThemeCount: typeof getThemeCount;
|
|
16011
|
+
deepMerge: typeof deepMerge;
|
|
16012
|
+
mergeTheme: typeof mergeTheme;
|
|
16013
|
+
extendTheme: typeof extendTheme;
|
|
16014
|
+
createTokens: typeof createTokens;
|
|
16015
|
+
defaultTokens: DesignTokens;
|
|
16016
|
+
generateCSSVariables: typeof generateCSSVariables;
|
|
16017
|
+
generateCSSVariablesForSelector: typeof generateCSSVariablesForSelector;
|
|
16018
|
+
generateClassName: typeof generateClassName;
|
|
16019
|
+
generateCSSVariableName: typeof generateCSSVariableName;
|
|
16020
|
+
normalizeThemeTokens: typeof normalizeThemeTokens;
|
|
16021
|
+
camelToKebab: typeof camelToKebab;
|
|
16022
|
+
themePropertyToCSSVar: typeof themePropertyToCSSVar;
|
|
16023
|
+
getComponentThemeValue: typeof getComponentThemeValue;
|
|
16024
|
+
generateComponentCSSVars: typeof generateComponentCSSVars;
|
|
16025
|
+
applyComponentTheme: typeof applyComponentTheme;
|
|
16026
|
+
useComponentTheme: typeof useComponentTheme;
|
|
16027
|
+
useThemeSwitcher: typeof useThemeSwitcher;
|
|
16028
|
+
isDesignTokens: typeof isDesignTokens;
|
|
16029
|
+
mapSCSSTokensToCSSVars: typeof mapSCSSTokensToCSSVars;
|
|
16030
|
+
applyCSSVariables: typeof applyCSSVariables;
|
|
16031
|
+
removeCSSVariables: typeof removeCSSVariables;
|
|
16032
|
+
getCSSVariable: typeof getCSSVariable;
|
|
16033
|
+
cssVarsToStyle: typeof cssVarsToStyle;
|
|
16034
|
+
mergeCSSVars: typeof mergeCSSVars;
|
|
16035
|
+
isValidCSSVariableName: typeof isValidCSSVariableName;
|
|
16036
|
+
extractComponentName: typeof extractComponentName;
|
|
16037
|
+
injectCSS: typeof injectCSS;
|
|
16038
|
+
removeCSS: typeof removeCSS;
|
|
16039
|
+
isCSSInjected: typeof isCSSInjected;
|
|
16040
|
+
RTLManager: typeof RTLManager;
|
|
16041
|
+
createRTLManager: typeof createRTLManager;
|
|
16042
|
+
isRTLLocale: typeof isRTLLocale;
|
|
16043
|
+
getDirectionFromLocale: typeof getDirectionFromLocale;
|
|
16044
|
+
rtlCSS: typeof rtlCSS;
|
|
16045
|
+
};
|
|
16046
|
+
|
|
14690
16047
|
type themeImport_A11yIssue = A11yIssue;
|
|
14691
16048
|
type themeImport_CSSVariableConfig = CSSVariableConfig;
|
|
14692
16049
|
type themeImport_CSSVariableNamingOptions = CSSVariableNamingOptions;
|
|
@@ -14697,6 +16054,7 @@ declare const themeImport_DesignTokensCustomizer: typeof DesignTokensCustomizer;
|
|
|
14697
16054
|
type themeImport_DesignTokensCustomizerProps = DesignTokensCustomizerProps;
|
|
14698
16055
|
type themeImport_GenerateCSSVariablesOptions = GenerateCSSVariablesOptions;
|
|
14699
16056
|
type themeImport_NamingOptions = NamingOptions;
|
|
16057
|
+
type themeImport_PerformanceMetrics = PerformanceMetrics;
|
|
14700
16058
|
type themeImport_RTLConfig = RTLConfig;
|
|
14701
16059
|
type themeImport_RTLManager = RTLManager;
|
|
14702
16060
|
declare const themeImport_RTLManager: typeof RTLManager;
|
|
@@ -14717,29 +16075,44 @@ type themeImport_ThemeInspectorProps = ThemeInspectorProps;
|
|
|
14717
16075
|
declare const themeImport_ThemeLiveEditor: typeof ThemeLiveEditor;
|
|
14718
16076
|
type themeImport_ThemeLiveEditorProps = ThemeLiveEditorProps;
|
|
14719
16077
|
type themeImport_ThemeLoadOptions = ThemeLoadOptions;
|
|
16078
|
+
type themeImport_ThemeMode = ThemeMode;
|
|
16079
|
+
type themeImport_ThemePersistenceOptions = ThemePersistenceOptions;
|
|
14720
16080
|
declare const themeImport_ThemePreview: typeof ThemePreview;
|
|
14721
16081
|
type themeImport_ThemePreviewProps = ThemePreviewProps;
|
|
14722
16082
|
declare const themeImport_ThemeProvider: typeof ThemeProvider;
|
|
14723
16083
|
type themeImport_ThemeProviderProps = ThemeProviderProps;
|
|
16084
|
+
type themeImport_ThemeSwitcherOptions = ThemeSwitcherOptions;
|
|
16085
|
+
declare const themeImport_ThemeToggle: typeof ThemeToggle;
|
|
16086
|
+
type themeImport_ThemeToggleProps = ThemeToggleProps;
|
|
14724
16087
|
type themeImport_ThemeValidationResult = ThemeValidationResult;
|
|
14725
16088
|
type themeImport_ThemeValidator = ThemeValidator;
|
|
14726
16089
|
declare const themeImport_ThemeValidator: typeof ThemeValidator;
|
|
14727
16090
|
type themeImport_UseHistoryOptions = UseHistoryOptions;
|
|
14728
16091
|
type themeImport_UseHistoryReturn<T> = UseHistoryReturn<T>;
|
|
14729
16092
|
type themeImport_UseThemeReturn = UseThemeReturn;
|
|
14730
|
-
type
|
|
16093
|
+
type themeImport_UseThemeSwitcherOptions = UseThemeSwitcherOptions;
|
|
16094
|
+
type themeImport_UseThemeSwitcherReturn = UseThemeSwitcherReturn;
|
|
16095
|
+
declare const themeImport_alpha: typeof alpha;
|
|
14731
16096
|
declare const themeImport_applyCSSVariables: typeof applyCSSVariables;
|
|
14732
16097
|
declare const themeImport_applyComponentTheme: typeof applyComponentTheme;
|
|
14733
16098
|
declare const themeImport_applyTheme: typeof applyTheme;
|
|
14734
16099
|
declare const themeImport_camelToKebab: typeof camelToKebab;
|
|
16100
|
+
declare const themeImport_clearThemePreference: typeof clearThemePreference;
|
|
14735
16101
|
declare const themeImport_clearThemes: typeof clearThemes;
|
|
16102
|
+
declare const themeImport_configToTokens: typeof configToTokens;
|
|
16103
|
+
declare const themeImport_createPerformanceMonitor: typeof createPerformanceMonitor;
|
|
16104
|
+
declare const themeImport_createRTLManager: typeof createRTLManager;
|
|
16105
|
+
declare const themeImport_createResponsiveUtil: typeof createResponsiveUtil;
|
|
16106
|
+
declare const themeImport_createSpacing: typeof createSpacing;
|
|
14736
16107
|
declare const themeImport_createTheme: typeof createTheme;
|
|
14737
16108
|
declare const themeImport_createThemeRegistry: typeof createThemeRegistry;
|
|
14738
16109
|
declare const themeImport_createTokens: typeof createTokens;
|
|
14739
16110
|
declare const themeImport_cssVarsToStyle: typeof cssVarsToStyle;
|
|
16111
|
+
declare const themeImport_darken: typeof darken;
|
|
14740
16112
|
declare const themeImport_deepMerge: typeof deepMerge;
|
|
14741
16113
|
declare const themeImport_defaultTokens: typeof defaultTokens;
|
|
14742
16114
|
declare const themeImport_designTokensToCSSVars: typeof designTokensToCSSVars;
|
|
16115
|
+
declare const themeImport_emphasize: typeof emphasize;
|
|
14743
16116
|
declare const themeImport_extendTheme: typeof extendTheme;
|
|
14744
16117
|
declare const themeImport_extractComponentName: typeof extractComponentName;
|
|
14745
16118
|
declare const themeImport_generateCSSVariableName: typeof generateCSSVariableName;
|
|
@@ -14750,33 +16123,57 @@ declare const themeImport_generateComponentCSSVars: typeof generateComponentCSSV
|
|
|
14750
16123
|
declare const themeImport_getAllThemes: typeof getAllThemes;
|
|
14751
16124
|
declare const themeImport_getCSSVariable: typeof getCSSVariable;
|
|
14752
16125
|
declare const themeImport_getComponentThemeValue: typeof getComponentThemeValue;
|
|
16126
|
+
declare const themeImport_getContrastRatio: typeof getContrastRatio;
|
|
16127
|
+
declare const themeImport_getContrastText: typeof getContrastText;
|
|
16128
|
+
declare const themeImport_getCurrentTheme: typeof getCurrentTheme;
|
|
16129
|
+
declare const themeImport_getDirectionFromLocale: typeof getDirectionFromLocale;
|
|
16130
|
+
declare const themeImport_getLuminance: typeof getLuminance;
|
|
16131
|
+
declare const themeImport_getSystemTheme: typeof getSystemTheme;
|
|
14753
16132
|
declare const themeImport_getTheme: typeof getTheme;
|
|
14754
16133
|
declare const themeImport_getThemeApplicator: typeof getThemeApplicator;
|
|
14755
16134
|
declare const themeImport_getThemeCount: typeof getThemeCount;
|
|
14756
16135
|
declare const themeImport_getThemeIds: typeof getThemeIds;
|
|
14757
16136
|
declare const themeImport_hasTheme: typeof hasTheme;
|
|
16137
|
+
declare const themeImport_hexToRgb: typeof hexToRgb;
|
|
16138
|
+
declare const themeImport_initializeTheme: typeof initializeTheme;
|
|
14758
16139
|
declare const themeImport_injectCSS: typeof injectCSS;
|
|
14759
16140
|
declare const themeImport_injectTheme: typeof injectTheme;
|
|
16141
|
+
declare const themeImport_isAccessible: typeof isAccessible;
|
|
14760
16142
|
declare const themeImport_isCSSInjected: typeof isCSSInjected;
|
|
14761
16143
|
declare const themeImport_isDesignTokens: typeof isDesignTokens;
|
|
16144
|
+
declare const themeImport_isRTLLocale: typeof isRTLLocale;
|
|
14762
16145
|
declare const themeImport_isValidCSSVariableName: typeof isValidCSSVariableName;
|
|
16146
|
+
declare const themeImport_lighten: typeof lighten;
|
|
16147
|
+
declare const themeImport_listenToSystemTheme: typeof listenToSystemTheme;
|
|
14763
16148
|
declare const themeImport_mapSCSSTokensToCSSVars: typeof mapSCSSTokensToCSSVars;
|
|
14764
16149
|
declare const themeImport_mergeCSSVars: typeof mergeCSSVars;
|
|
14765
16150
|
declare const themeImport_mergeTheme: typeof mergeTheme;
|
|
16151
|
+
declare const themeImport_mergeTokens: typeof mergeTokens;
|
|
14766
16152
|
declare const themeImport_normalizeThemeTokens: typeof normalizeThemeTokens;
|
|
16153
|
+
declare const themeImport_omitTokens: typeof omitTokens;
|
|
16154
|
+
declare const themeImport_overrideTokens: typeof overrideTokens;
|
|
16155
|
+
declare const themeImport_persistTheme: typeof persistTheme;
|
|
16156
|
+
declare const themeImport_pickTokens: typeof pickTokens;
|
|
14767
16157
|
declare const themeImport_registerTheme: typeof registerTheme;
|
|
14768
16158
|
declare const themeImport_removeCSS: typeof removeCSS;
|
|
14769
16159
|
declare const themeImport_removeCSSVariables: typeof removeCSSVariables;
|
|
14770
16160
|
declare const themeImport_removeTheme: typeof removeTheme;
|
|
16161
|
+
declare const themeImport_rgbToHex: typeof rgbToHex;
|
|
16162
|
+
declare const themeImport_rtlCSS: typeof rtlCSS;
|
|
16163
|
+
declare const themeImport_switchTheme: typeof switchTheme;
|
|
14771
16164
|
declare const themeImport_themePropertyToCSSVar: typeof themePropertyToCSSVar;
|
|
16165
|
+
declare const themeImport_toggleTheme: typeof toggleTheme;
|
|
14772
16166
|
declare const themeImport_unregisterTheme: typeof unregisterTheme;
|
|
14773
16167
|
declare const themeImport_useComponentTheme: typeof useComponentTheme;
|
|
14774
16168
|
declare const themeImport_useHistory: typeof useHistory;
|
|
16169
|
+
declare const themeImport_usePerformanceMonitor: typeof usePerformanceMonitor;
|
|
16170
|
+
declare const themeImport_useResponsive: typeof useResponsive;
|
|
14775
16171
|
declare const themeImport_useTheme: typeof useTheme;
|
|
16172
|
+
declare const themeImport_useThemeSwitcher: typeof useThemeSwitcher;
|
|
14776
16173
|
declare const themeImport_useThemeTokens: typeof useThemeTokens;
|
|
14777
16174
|
declare namespace themeImport {
|
|
14778
|
-
export { themeImport_DesignTokensCustomizer as DesignTokensCustomizer, themeImport_RTLManager as RTLManager, themeImport_ThemeApplicator as ThemeApplicator, themeImport_ThemeComparator as ThemeComparator, themeImport_ThemeContext as ThemeContext, themeImport_ThemeErrorBoundary as ThemeErrorBoundary, themeImport_ThemeInspector as ThemeInspector, themeImport_ThemeLiveEditor as ThemeLiveEditor, themeImport_ThemePreview as ThemePreview, themeImport_ThemeProvider as ThemeProvider, themeImport_ThemeValidator as ThemeValidator, themeImport_applyCSSVariables as applyCSSVariables, themeImport_applyComponentTheme as applyComponentTheme, themeImport_applyTheme as applyTheme, themeImport_camelToKebab as camelToKebab, themeImport_clearThemes as clearThemes, themeImport_createTheme as createTheme, themeImport_createThemeRegistry as createThemeRegistry, themeImport_createTokens as createTokens, themeImport_cssVarsToStyle as cssVarsToStyle, themeImport_deepMerge as deepMerge, themeImport_defaultTokens as defaultTokens, themeImport_designTokensToCSSVars as designTokensToCSSVars, themeImport_extendTheme as extendTheme, themeImport_extractComponentName as extractComponentName, themeImport_generateCSSVariableName as generateCSSVariableName, themeImport_generateCSSVariables as generateCSSVariables, themeImport_generateCSSVariablesForSelector as generateCSSVariablesForSelector, themeImport_generateClassName as generateClassName, themeImport_generateComponentCSSVars as generateComponentCSSVars, themeImport_getAllThemes as getAllThemes, themeImport_getCSSVariable as getCSSVariable, themeImport_getComponentThemeValue as getComponentThemeValue, themeImport_getTheme as getTheme, themeImport_getThemeApplicator as getThemeApplicator, themeImport_getThemeCount as getThemeCount, themeImport_getThemeIds as getThemeIds, themeImport_hasTheme as hasTheme, themeImport_injectCSS as injectCSS, themeImport_injectTheme as injectTheme, themeImport_isCSSInjected as isCSSInjected, themeImport_isDesignTokens as isDesignTokens, themeImport_isValidCSSVariableName as isValidCSSVariableName, themeImport_mapSCSSTokensToCSSVars as mapSCSSTokensToCSSVars, themeImport_mergeCSSVars as mergeCSSVars, themeImport_mergeTheme as mergeTheme, themeImport_normalizeThemeTokens as normalizeThemeTokens, themeImport_registerTheme as registerTheme, themeImport_removeCSS as removeCSS, themeImport_removeCSSVariables as removeCSSVariables, themeImport_removeTheme as removeTheme, themeImport_themePropertyToCSSVar as themePropertyToCSSVar, themeImport_unregisterTheme as unregisterTheme, themeImport_useComponentTheme as useComponentTheme, themeImport_useHistory as useHistory, themeImport_useTheme as useTheme, themeImport_useThemeTokens as useThemeTokens };
|
|
14779
|
-
export type { themeImport_A11yIssue as A11yIssue, themeImport_CSSVariableConfig as CSSVariableConfig, themeImport_CSSVariableNamingOptions as CSSVariableNamingOptions, themeImport_ComponentThemeOptions as ComponentThemeOptions, themeImport_ComponentThemeOverride as ComponentThemeOverride, themeImport_DesignTokens as DesignTokens, themeImport_DesignTokensCustomizerProps as DesignTokensCustomizerProps, themeImport_GenerateCSSVariablesOptions as GenerateCSSVariablesOptions, themeImport_NamingOptions as NamingOptions, themeImport_RTLConfig as RTLConfig, themeImport_Theme as Theme, themeImport_ThemeChangeEvent as ThemeChangeEvent, themeImport_ThemeComparatorProps as ThemeComparatorProps, themeImport_ThemeComponentOverrides as ThemeComponentOverrides, themeImport_ThemeContextValue as ThemeContextValue, themeImport_ThemeErrorBoundaryProps as ThemeErrorBoundaryProps, themeImport_ThemeInspectorProps as ThemeInspectorProps, themeImport_ThemeLiveEditorProps as ThemeLiveEditorProps, themeImport_ThemeLoadOptions as ThemeLoadOptions, themeImport_ThemePreviewProps as ThemePreviewProps, themeImport_ThemeProviderProps as ThemeProviderProps, themeImport_ThemeValidationResult as ThemeValidationResult, themeImport_UseHistoryOptions as UseHistoryOptions, themeImport_UseHistoryReturn as UseHistoryReturn, themeImport_UseThemeReturn as UseThemeReturn,
|
|
16175
|
+
export { themeImport_DesignTokensCustomizer as DesignTokensCustomizer, themeImport_RTLManager as RTLManager, themeImport_ThemeApplicator as ThemeApplicator, themeImport_ThemeComparator as ThemeComparator, themeImport_ThemeContext as ThemeContext, themeImport_ThemeErrorBoundary as ThemeErrorBoundary, themeImport_ThemeInspector as ThemeInspector, themeImport_ThemeLiveEditor as ThemeLiveEditor, themeImport_ThemePreview as ThemePreview, themeImport_ThemeProvider as ThemeProvider, themeImport_ThemeToggle as ThemeToggle, themeImport_ThemeValidator as ThemeValidator, themeImport_alpha as alpha, themeImport_applyCSSVariables as applyCSSVariables, themeImport_applyComponentTheme as applyComponentTheme, themeImport_applyTheme as applyTheme, themeImport_camelToKebab as camelToKebab, themeImport_clearThemePreference as clearThemePreference, themeImport_clearThemes as clearThemes, themeImport_configToTokens as configToTokens, themeImport_createPerformanceMonitor as createPerformanceMonitor, themeImport_createRTLManager as createRTLManager, themeImport_createResponsiveUtil as createResponsiveUtil, themeImport_createSpacing as createSpacing, themeImport_createTheme as createTheme, themeImport_createThemeRegistry as createThemeRegistry, themeImport_createTokens as createTokens, themeImport_cssVarsToStyle as cssVarsToStyle, themeImport_darken as darken, themeImport_deepMerge as deepMerge, _default as default, themeImport_defaultTokens as defaultTokens, themeImport_designTokensToCSSVars as designTokensToCSSVars, themeImport_emphasize as emphasize, themeImport_extendTheme as extendTheme, themeImport_extractComponentName as extractComponentName, themeImport_generateCSSVariableName as generateCSSVariableName, themeImport_generateCSSVariables as generateCSSVariables, themeImport_generateCSSVariablesForSelector as generateCSSVariablesForSelector, themeImport_generateClassName as generateClassName, themeImport_generateComponentCSSVars as generateComponentCSSVars, themeImport_getAllThemes as getAllThemes, themeImport_getCSSVariable as getCSSVariable, themeImport_getComponentThemeValue as getComponentThemeValue, themeImport_getContrastRatio as getContrastRatio, themeImport_getContrastText as getContrastText, themeImport_getCurrentTheme as getCurrentTheme, themeImport_getDirectionFromLocale as getDirectionFromLocale, themeImport_getLuminance as getLuminance, themeImport_getSystemTheme as getSystemTheme, themeImport_getTheme as getTheme, themeImport_getThemeApplicator as getThemeApplicator, themeImport_getThemeCount as getThemeCount, themeImport_getThemeIds as getThemeIds, themeImport_hasTheme as hasTheme, themeImport_hexToRgb as hexToRgb, themeImport_initializeTheme as initializeTheme, themeImport_injectCSS as injectCSS, themeImport_injectTheme as injectTheme, themeImport_isAccessible as isAccessible, themeImport_isCSSInjected as isCSSInjected, themeImport_isDesignTokens as isDesignTokens, themeImport_isRTLLocale as isRTLLocale, themeImport_isValidCSSVariableName as isValidCSSVariableName, themeImport_lighten as lighten, themeImport_listenToSystemTheme as listenToSystemTheme, themeImport_mapSCSSTokensToCSSVars as mapSCSSTokensToCSSVars, themeImport_mergeCSSVars as mergeCSSVars, themeImport_mergeTheme as mergeTheme, themeImport_mergeTokens as mergeTokens, themeImport_normalizeThemeTokens as normalizeThemeTokens, themeImport_omitTokens as omitTokens, themeImport_overrideTokens as overrideTokens, themeImport_persistTheme as persistTheme, themeImport_pickTokens as pickTokens, themeImport_registerTheme as registerTheme, themeImport_removeCSS as removeCSS, themeImport_removeCSSVariables as removeCSSVariables, themeImport_removeTheme as removeTheme, themeImport_rgbToHex as rgbToHex, themeImport_rtlCSS as rtlCSS, themeImport_switchTheme as switchTheme, themeImport_themePropertyToCSSVar as themePropertyToCSSVar, themeImport_toggleTheme as toggleTheme, themeImport_unregisterTheme as unregisterTheme, themeImport_useComponentTheme as useComponentTheme, themeImport_useHistory as useHistory, themeImport_usePerformanceMonitor as usePerformanceMonitor, themeImport_useResponsive as useResponsive, themeImport_useTheme as useTheme, themeImport_useThemeSwitcher as useThemeSwitcher, themeImport_useThemeTokens as useThemeTokens };
|
|
16176
|
+
export type { themeImport_A11yIssue as A11yIssue, themeImport_CSSVariableConfig as CSSVariableConfig, themeImport_CSSVariableNamingOptions as CSSVariableNamingOptions, themeImport_ComponentThemeOptions as ComponentThemeOptions, themeImport_ComponentThemeOverride as ComponentThemeOverride, themeImport_DesignTokens as DesignTokens, themeImport_DesignTokensCustomizerProps as DesignTokensCustomizerProps, themeImport_GenerateCSSVariablesOptions as GenerateCSSVariablesOptions, themeImport_NamingOptions as NamingOptions, themeImport_PerformanceMetrics as PerformanceMetrics, themeImport_RTLConfig as RTLConfig, themeImport_Theme as Theme, themeImport_ThemeChangeEvent as ThemeChangeEvent, themeImport_ThemeComparatorProps as ThemeComparatorProps, themeImport_ThemeComponentOverrides as ThemeComponentOverrides, themeImport_ThemeContextValue as ThemeContextValue, themeImport_ThemeErrorBoundaryProps as ThemeErrorBoundaryProps, themeImport_ThemeInspectorProps as ThemeInspectorProps, themeImport_ThemeLiveEditorProps as ThemeLiveEditorProps, themeImport_ThemeLoadOptions as ThemeLoadOptions, themeImport_ThemeMode as ThemeMode, themeImport_ThemePersistenceOptions as ThemePersistenceOptions, themeImport_ThemePreviewProps as ThemePreviewProps, themeImport_ThemeProviderProps as ThemeProviderProps, themeImport_ThemeSwitcherOptions as ThemeSwitcherOptions, themeImport_ThemeToggleProps as ThemeToggleProps, themeImport_ThemeValidationResult as ThemeValidationResult, themeImport_UseHistoryOptions as UseHistoryOptions, themeImport_UseHistoryReturn as UseHistoryReturn, themeImport_UseThemeReturn as UseThemeReturn, themeImport_UseThemeSwitcherOptions as UseThemeSwitcherOptions, themeImport_UseThemeSwitcherReturn as UseThemeSwitcherReturn, ValidationResult$1 as ValidationResult };
|
|
14780
16177
|
}
|
|
14781
16178
|
|
|
14782
16179
|
/**
|
|
@@ -14849,312 +16246,6 @@ declare function useMergedProps<T extends Record<string, any>>(defaultProps: T,
|
|
|
14849
16246
|
*/
|
|
14850
16247
|
declare function applyCSSVarsToStyle(cssVars: Record<string, string | number>, baseStyle?: React.CSSProperties): React.CSSProperties;
|
|
14851
16248
|
|
|
14852
|
-
/**
|
|
14853
|
-
* Atomix Configuration System
|
|
14854
|
-
*
|
|
14855
|
-
* Tailwind-like configuration for customizing the Atomix Design System.
|
|
14856
|
-
*
|
|
14857
|
-
* External developers can create `atomix.config.ts` in their project root
|
|
14858
|
-
* to customize design tokens, similar to Tailwind's tailwind.config.js
|
|
14859
|
-
*
|
|
14860
|
-
* @example
|
|
14861
|
-
* ```typescript
|
|
14862
|
-
* // atomix.config.ts (in your project)
|
|
14863
|
-
* import { defineConfig } from '@shohojdhara/atomix/config';
|
|
14864
|
-
*
|
|
14865
|
-
* export default defineConfig({
|
|
14866
|
-
* theme: {
|
|
14867
|
-
* extend: {
|
|
14868
|
-
* colors: {
|
|
14869
|
-
* primary: { main: '#7AFFD7' },
|
|
14870
|
-
* },
|
|
14871
|
-
* },
|
|
14872
|
-
* },
|
|
14873
|
-
* });
|
|
14874
|
-
* ```
|
|
14875
|
-
*/
|
|
14876
|
-
|
|
14877
|
-
/**
|
|
14878
|
-
* Color Scale (1-10)
|
|
14879
|
-
*/
|
|
14880
|
-
interface ColorScale {
|
|
14881
|
-
1?: string;
|
|
14882
|
-
2?: string;
|
|
14883
|
-
3?: string;
|
|
14884
|
-
4?: string;
|
|
14885
|
-
5?: string;
|
|
14886
|
-
6?: string;
|
|
14887
|
-
7?: string;
|
|
14888
|
-
8?: string;
|
|
14889
|
-
9?: string;
|
|
14890
|
-
10?: string;
|
|
14891
|
-
[key: string]: string | undefined;
|
|
14892
|
-
}
|
|
14893
|
-
/**
|
|
14894
|
-
* Palette Color Options
|
|
14895
|
-
*/
|
|
14896
|
-
interface PaletteColorOptions {
|
|
14897
|
-
main: string;
|
|
14898
|
-
light?: string;
|
|
14899
|
-
dark?: string;
|
|
14900
|
-
contrastText?: string;
|
|
14901
|
-
}
|
|
14902
|
-
/**
|
|
14903
|
-
* Design Tokens Schema (Tailwind-like)
|
|
14904
|
-
*/
|
|
14905
|
-
interface ThemeTokens {
|
|
14906
|
-
/** Color palette */
|
|
14907
|
-
colors?: Record<string, string | PaletteColorOptions | ColorScale | Record<string, string>>;
|
|
14908
|
-
/** Spacing scale */
|
|
14909
|
-
spacing?: Record<string, string>;
|
|
14910
|
-
/** Border radius scale */
|
|
14911
|
-
borderRadius?: Record<string, string>;
|
|
14912
|
-
/** Typography scale and settings */
|
|
14913
|
-
typography?: {
|
|
14914
|
-
fontFamilies?: Record<string, string>;
|
|
14915
|
-
fontSizes?: Record<string, string>;
|
|
14916
|
-
fontWeights?: Record<string, string | number>;
|
|
14917
|
-
lineHeights?: Record<string, string | number>;
|
|
14918
|
-
letterSpacings?: Record<string, string>;
|
|
14919
|
-
};
|
|
14920
|
-
/** Shadow scale */
|
|
14921
|
-
shadows?: Record<string, string>;
|
|
14922
|
-
/** Z-index scale */
|
|
14923
|
-
zIndex?: Record<string, string | number>;
|
|
14924
|
-
/** Breakpoints scale */
|
|
14925
|
-
breakpoints?: Record<string, string | number>;
|
|
14926
|
-
/** Transitions settings */
|
|
14927
|
-
transitions?: {
|
|
14928
|
-
durations?: Record<string, string>;
|
|
14929
|
-
easings?: Record<string, string>;
|
|
14930
|
-
};
|
|
14931
|
-
}
|
|
14932
|
-
/**
|
|
14933
|
-
* CSS Theme Definition
|
|
14934
|
-
*/
|
|
14935
|
-
interface CSSThemeDefinition {
|
|
14936
|
-
type: 'css';
|
|
14937
|
-
name: string;
|
|
14938
|
-
class?: string;
|
|
14939
|
-
description?: string;
|
|
14940
|
-
author?: string;
|
|
14941
|
-
version?: string;
|
|
14942
|
-
tags?: string[];
|
|
14943
|
-
supportsDarkMode?: boolean;
|
|
14944
|
-
status?: 'stable' | 'beta' | 'experimental' | 'deprecated';
|
|
14945
|
-
a11y?: {
|
|
14946
|
-
contrastTarget?: number;
|
|
14947
|
-
modes?: string[];
|
|
14948
|
-
};
|
|
14949
|
-
color?: string;
|
|
14950
|
-
features?: string[];
|
|
14951
|
-
dependencies?: string[];
|
|
14952
|
-
cssPath?: string;
|
|
14953
|
-
}
|
|
14954
|
-
/**
|
|
14955
|
-
* JavaScript Theme Definition
|
|
14956
|
-
*/
|
|
14957
|
-
interface JSThemeDefinition {
|
|
14958
|
-
type: 'js';
|
|
14959
|
-
name: string;
|
|
14960
|
-
class?: string;
|
|
14961
|
-
description?: string;
|
|
14962
|
-
author?: string;
|
|
14963
|
-
version?: string;
|
|
14964
|
-
tags?: string[];
|
|
14965
|
-
supportsDarkMode?: boolean;
|
|
14966
|
-
status?: 'stable' | 'beta' | 'experimental' | 'deprecated';
|
|
14967
|
-
a11y?: {
|
|
14968
|
-
contrastTarget?: number;
|
|
14969
|
-
modes?: string[];
|
|
14970
|
-
};
|
|
14971
|
-
color?: string;
|
|
14972
|
-
features?: string[];
|
|
14973
|
-
dependencies?: string[];
|
|
14974
|
-
createTheme: () => Theme;
|
|
14975
|
-
}
|
|
14976
|
-
/**
|
|
14977
|
-
* Theme Definition (CSS or JS)
|
|
14978
|
-
*/
|
|
14979
|
-
type ThemeDefinition = CSSThemeDefinition | JSThemeDefinition;
|
|
14980
|
-
/**
|
|
14981
|
-
* Build configuration (migrated from theme.config.ts)
|
|
14982
|
-
*/
|
|
14983
|
-
interface BuildConfig {
|
|
14984
|
-
output?: {
|
|
14985
|
-
directory?: string;
|
|
14986
|
-
formats?: {
|
|
14987
|
-
expanded?: string;
|
|
14988
|
-
compressed?: string;
|
|
14989
|
-
};
|
|
14990
|
-
};
|
|
14991
|
-
sass?: {
|
|
14992
|
-
style?: 'expanded' | 'compressed';
|
|
14993
|
-
sourceMap?: boolean;
|
|
14994
|
-
loadPaths?: string[];
|
|
14995
|
-
};
|
|
14996
|
-
}
|
|
14997
|
-
/**
|
|
14998
|
-
* Runtime configuration (migrated from theme.config.ts)
|
|
14999
|
-
*/
|
|
15000
|
-
interface RuntimeConfig {
|
|
15001
|
-
basePath?: string;
|
|
15002
|
-
cdnPath?: string | null;
|
|
15003
|
-
preload?: string[];
|
|
15004
|
-
lazy?: boolean;
|
|
15005
|
-
defaultTheme?: string;
|
|
15006
|
-
storageKey?: string;
|
|
15007
|
-
dataAttribute?: string;
|
|
15008
|
-
enablePersistence?: boolean;
|
|
15009
|
-
useMinified?: boolean;
|
|
15010
|
-
}
|
|
15011
|
-
/**
|
|
15012
|
-
* Integration settings (migrated from theme.config.ts)
|
|
15013
|
-
*/
|
|
15014
|
-
interface IntegrationConfig {
|
|
15015
|
-
cssVariables?: Record<string, string>;
|
|
15016
|
-
classNames?: {
|
|
15017
|
-
theme?: string;
|
|
15018
|
-
colorMode?: string;
|
|
15019
|
-
};
|
|
15020
|
-
}
|
|
15021
|
-
/**
|
|
15022
|
-
* Plugin Configuration
|
|
15023
|
-
*/
|
|
15024
|
-
interface PluginConfig {
|
|
15025
|
-
name: string;
|
|
15026
|
-
options?: Record<string, any>;
|
|
15027
|
-
}
|
|
15028
|
-
/**
|
|
15029
|
-
* Token Provider Configuration
|
|
15030
|
-
*/
|
|
15031
|
-
interface TokenProviderConfig {
|
|
15032
|
-
type: 'figma' | 'style-dictionary' | 'w3c' | string;
|
|
15033
|
-
options?: Record<string, any>;
|
|
15034
|
-
}
|
|
15035
|
-
/**
|
|
15036
|
-
* Token Engine Configuration
|
|
15037
|
-
*/
|
|
15038
|
-
interface TokenEngineConfig {
|
|
15039
|
-
providers?: Record<string, TokenProviderConfig>;
|
|
15040
|
-
sync?: {
|
|
15041
|
-
pull?: boolean;
|
|
15042
|
-
push?: boolean;
|
|
15043
|
-
onBuild?: boolean;
|
|
15044
|
-
};
|
|
15045
|
-
}
|
|
15046
|
-
/**
|
|
15047
|
-
* Atomix Configuration Interface
|
|
15048
|
-
*
|
|
15049
|
-
* Tailwind-like configuration for external developers.
|
|
15050
|
-
* Focus on theme customization - build/runtime configs are internal only.
|
|
15051
|
-
*/
|
|
15052
|
-
interface AtomixConfig {
|
|
15053
|
-
/**
|
|
15054
|
-
* CSS variable prefix (default: 'atomix')
|
|
15055
|
-
*
|
|
15056
|
-
* Change this to customize all CSS variable names.
|
|
15057
|
-
* Example: prefix: 'myapp' → --myapp-primary instead of --atomix-primary
|
|
15058
|
-
*/
|
|
15059
|
-
prefix?: string;
|
|
15060
|
-
/**
|
|
15061
|
-
* Plugins to extend CLI functionality
|
|
15062
|
-
*/
|
|
15063
|
-
plugins?: (string | PluginConfig)[];
|
|
15064
|
-
/**
|
|
15065
|
-
* Universal Token Engine configuration
|
|
15066
|
-
*/
|
|
15067
|
-
tokenEngine?: TokenEngineConfig;
|
|
15068
|
-
/**
|
|
15069
|
-
* AI-Assisted Scaffolding configuration
|
|
15070
|
-
*/
|
|
15071
|
-
ai?: {
|
|
15072
|
-
/** AI provider (default: 'openai') */
|
|
15073
|
-
provider?: 'openai' | 'anthropic';
|
|
15074
|
-
/** LLM model to use */
|
|
15075
|
-
model?: string;
|
|
15076
|
-
/** API key for the provider */
|
|
15077
|
-
apiKey?: string;
|
|
15078
|
-
};
|
|
15079
|
-
/**
|
|
15080
|
-
* Performance & Telemetry (Phase 4)
|
|
15081
|
-
*/
|
|
15082
|
-
telemetry?: {
|
|
15083
|
-
/** Enable local telemetry logging (default: false) */
|
|
15084
|
-
enabled?: boolean;
|
|
15085
|
-
/** Output path for telemetry logs (default: '.atomix/telemetry.json') */
|
|
15086
|
-
path?: string;
|
|
15087
|
-
/** Anonymize telemetry data (default: true) */
|
|
15088
|
-
anonymize?: boolean;
|
|
15089
|
-
};
|
|
15090
|
-
/**
|
|
15091
|
-
* Theme customization (Tailwind-like)
|
|
15092
|
-
*
|
|
15093
|
-
* Use `extend` to add or override design tokens.
|
|
15094
|
-
* Use `tokens` to completely replace the default token system (advanced).
|
|
15095
|
-
*/
|
|
15096
|
-
theme?: {
|
|
15097
|
-
/**
|
|
15098
|
-
* Extend the default design tokens
|
|
15099
|
-
*
|
|
15100
|
-
* This is the recommended way to customize Atomix.
|
|
15101
|
-
* Your values will override or extend the base tokens.
|
|
15102
|
-
*/
|
|
15103
|
-
extend?: ThemeTokens;
|
|
15104
|
-
/**
|
|
15105
|
-
* Override the default tokens entirely (advanced)
|
|
15106
|
-
*
|
|
15107
|
-
* Use with caution - this replaces the entire token system.
|
|
15108
|
-
* Most users should use `extend` instead.
|
|
15109
|
-
*/
|
|
15110
|
-
tokens?: ThemeTokens;
|
|
15111
|
-
/**
|
|
15112
|
-
* Register custom themes (optional)
|
|
15113
|
-
*
|
|
15114
|
-
* Define CSS or JavaScript themes that can be loaded dynamically.
|
|
15115
|
-
*/
|
|
15116
|
-
themes?: Record<string, ThemeDefinition>;
|
|
15117
|
-
};
|
|
15118
|
-
/** @internal Build configuration (internal use only) */
|
|
15119
|
-
build?: BuildConfig;
|
|
15120
|
-
/** @internal Runtime configuration (internal use only) */
|
|
15121
|
-
runtime?: RuntimeConfig;
|
|
15122
|
-
/** @internal Integration settings (internal use only) */
|
|
15123
|
-
integration?: IntegrationConfig;
|
|
15124
|
-
/** @internal Theme dependencies mapping (internal use only) */
|
|
15125
|
-
dependencies?: Record<string, string[]>;
|
|
15126
|
-
}
|
|
15127
|
-
/**
|
|
15128
|
-
* Helper function to define Atomix configuration with type safety
|
|
15129
|
-
*
|
|
15130
|
-
* @param config - Atomix configuration object
|
|
15131
|
-
* @returns The configuration object
|
|
15132
|
-
*/
|
|
15133
|
-
/**
|
|
15134
|
-
* Helper function to define Atomix configuration with type safety
|
|
15135
|
-
*
|
|
15136
|
-
* Similar to Tailwind's defineConfig, provides autocomplete and type checking.
|
|
15137
|
-
*
|
|
15138
|
-
* @param config - Atomix configuration object
|
|
15139
|
-
* @returns The configuration object
|
|
15140
|
-
*
|
|
15141
|
-
* @example
|
|
15142
|
-
* ```typescript
|
|
15143
|
-
* import { defineConfig } from '@shohojdhara/atomix/config';
|
|
15144
|
-
*
|
|
15145
|
-
* export default defineConfig({
|
|
15146
|
-
* theme: {
|
|
15147
|
-
* extend: {
|
|
15148
|
-
* colors: {
|
|
15149
|
-
* primary: { main: '#7AFFD7' },
|
|
15150
|
-
* },
|
|
15151
|
-
* },
|
|
15152
|
-
* },
|
|
15153
|
-
* });
|
|
15154
|
-
* ```
|
|
15155
|
-
*/
|
|
15156
|
-
declare function defineConfig(config: AtomixConfig): AtomixConfig;
|
|
15157
|
-
|
|
15158
16249
|
declare const composables: typeof __lib_composables;
|
|
15159
16250
|
declare const utils: typeof __lib_utils;
|
|
15160
16251
|
declare const types: typeof __lib_types;
|
|
@@ -15189,7 +16280,7 @@ declare function themeToCSS(theme: Theme, selector?: string): string;
|
|
|
15189
16280
|
/**
|
|
15190
16281
|
* Get theme metadata
|
|
15191
16282
|
*/
|
|
15192
|
-
declare function getThemeMetadata(theme: Theme): ThemeMetadata;
|
|
16283
|
+
declare function getThemeMetadata(theme: Theme): ThemeMetadata$1;
|
|
15193
16284
|
/**
|
|
15194
16285
|
* Check if theme supports dark mode
|
|
15195
16286
|
*/
|
|
@@ -15489,13 +16580,13 @@ declare const atomix: {
|
|
|
15489
16580
|
Body: typeof AccordionBody;
|
|
15490
16581
|
};
|
|
15491
16582
|
AtomixLogo: React$1.FC<AtomixLogoProps>;
|
|
15492
|
-
AtomixGlass: React$1.
|
|
16583
|
+
AtomixGlass: React$1.NamedExoticComponent<AtomixGlassProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
15493
16584
|
Avatar: React$1.FC<AvatarProps>;
|
|
15494
16585
|
AvatarGroup: React$1.FC<AvatarGroupProps>;
|
|
15495
16586
|
Badge: React$1.FC<BadgeProps>;
|
|
15496
16587
|
Block: React$1.ForwardRefExoticComponent<BlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
15497
16588
|
Breadcrumb: BreadcrumbType;
|
|
15498
|
-
Button: React$1.
|
|
16589
|
+
Button: React$1.NamedExoticComponent<Omit<ButtonProps & ButtonAsProp, "ref"> & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
15499
16590
|
ButtonGroup: React$1.FC<ButtonGroupProps>;
|
|
15500
16591
|
Callout: React$1.FC<CalloutProps> & {
|
|
15501
16592
|
Icon: typeof CalloutIcon;
|
|
@@ -15506,14 +16597,14 @@ declare const atomix: {
|
|
|
15506
16597
|
CloseButton: typeof CalloutCloseButton;
|
|
15507
16598
|
Content: typeof CalloutContent;
|
|
15508
16599
|
};
|
|
15509
|
-
Card: React$1.
|
|
16600
|
+
Card: React$1.NamedExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
15510
16601
|
ElevationCard: React$1.FC<ElevationCardProps>;
|
|
15511
|
-
AreaChart: React$1.
|
|
15512
|
-
BarChart: React$1.
|
|
15513
|
-
BubbleChart: React$1.
|
|
15514
|
-
CandlestickChart: React$1.
|
|
15515
|
-
Chart: React$1.
|
|
15516
|
-
ChartRenderer: React$1.
|
|
16602
|
+
AreaChart: React$1.NamedExoticComponent<AreaChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16603
|
+
BarChart: React$1.NamedExoticComponent<BarChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16604
|
+
BubbleChart: React$1.NamedExoticComponent<BubbleChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16605
|
+
CandlestickChart: React$1.NamedExoticComponent<CandlestickChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16606
|
+
Chart: React$1.NamedExoticComponent<ChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16607
|
+
ChartRenderer: React$1.NamedExoticComponent<{
|
|
15517
16608
|
datasets: ChartProps$1["datasets"];
|
|
15518
16609
|
config?: ChartProps$1["config"];
|
|
15519
16610
|
width?: number;
|
|
@@ -15524,18 +16615,18 @@ declare const atomix: {
|
|
|
15524
16615
|
enableAccessibility?: boolean;
|
|
15525
16616
|
enablePerformanceOptimization?: boolean;
|
|
15526
16617
|
renderContent: (params: ChartRenderContentParams) => React.ReactNode;
|
|
15527
|
-
} & React$1.RefAttributes<SVGSVGElement
|
|
15528
|
-
DonutChart: React$1.
|
|
15529
|
-
FunnelChart: React$1.
|
|
15530
|
-
GaugeChart: React$1.
|
|
15531
|
-
HeatmapChart: React$1.
|
|
15532
|
-
LineChart: React$1.
|
|
15533
|
-
MultiAxisChart: React$1.
|
|
15534
|
-
PieChart: React$1.
|
|
15535
|
-
RadarChart: React$1.
|
|
15536
|
-
ScatterChart: React$1.
|
|
15537
|
-
TreemapChart: React$1.
|
|
15538
|
-
WaterfallChart: React$1.
|
|
16618
|
+
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
16619
|
+
DonutChart: React$1.NamedExoticComponent<DonutChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16620
|
+
FunnelChart: React$1.NamedExoticComponent<FunnelChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16621
|
+
GaugeChart: React$1.NamedExoticComponent<GaugeChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16622
|
+
HeatmapChart: React$1.NamedExoticComponent<HeatmapChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16623
|
+
LineChart: React$1.NamedExoticComponent<LineChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16624
|
+
MultiAxisChart: React$1.NamedExoticComponent<MultiAxisChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16625
|
+
PieChart: React$1.NamedExoticComponent<PieChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16626
|
+
RadarChart: React$1.NamedExoticComponent<RadarChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16627
|
+
ScatterChart: React$1.NamedExoticComponent<ScatterChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16628
|
+
TreemapChart: React$1.NamedExoticComponent<TreemapChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
16629
|
+
WaterfallChart: React$1.NamedExoticComponent<WaterfallChartProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
15539
16630
|
ColorModeToggle: React$1.FC<ColorModeToggleProps>;
|
|
15540
16631
|
Countdown: React$1.FC<CountdownProps>;
|
|
15541
16632
|
DataTable: React$1.FC<DataTableProps>;
|
|
@@ -15553,7 +16644,7 @@ declare const atomix: {
|
|
|
15553
16644
|
Footer: typeof EdgePanelFooter;
|
|
15554
16645
|
CloseButton: typeof EdgePanelCloseButton;
|
|
15555
16646
|
};
|
|
15556
|
-
Checkbox: React$1.
|
|
16647
|
+
Checkbox: React$1.NamedExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
15557
16648
|
Footer: React$1.ForwardRefExoticComponent<FooterProps & React$1.RefAttributes<HTMLElement>>;
|
|
15558
16649
|
FooterSection: React$1.ForwardRefExoticComponent<FooterSectionProps & {
|
|
15559
16650
|
showNewsletter?: boolean;
|
|
@@ -15562,10 +16653,10 @@ declare const atomix: {
|
|
|
15562
16653
|
FooterSocialLink: React$1.ForwardRefExoticComponent<FooterSocialLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
15563
16654
|
Form: React$1.FC<FormProps>;
|
|
15564
16655
|
FormGroup: React$1.FC<FormGroupProps>;
|
|
15565
|
-
Input: React$1.
|
|
16656
|
+
Input: React$1.NamedExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
15566
16657
|
Radio: React$1.FC<RadioProps>;
|
|
15567
16658
|
Select: SelectComponent;
|
|
15568
|
-
Textarea: React$1.
|
|
16659
|
+
Textarea: React$1.NamedExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
15569
16660
|
Hero: React$1.FC<HeroProps> & {
|
|
15570
16661
|
Title: ({ children, className, level, ...props }: HeroTitleProps) => react_jsx_runtime.JSX.Element;
|
|
15571
16662
|
Subtitle: ({ children, className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -15603,7 +16694,7 @@ declare const atomix: {
|
|
|
15603
16694
|
PhotoViewer: React$1.FC<PhotoViewerProps>;
|
|
15604
16695
|
Popover: React$1.FC<PopoverProps>;
|
|
15605
16696
|
ProductReview: React$1.FC<ProductReviewProps>;
|
|
15606
|
-
Progress: React$1.
|
|
16697
|
+
Progress: React$1.NamedExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
15607
16698
|
Rating: React$1.ForwardRefExoticComponent<RatingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
15608
16699
|
River: React$1.FC<RiverProps>;
|
|
15609
16700
|
SectionIntro: React$1.FC<SectionIntroProps>;
|
|
@@ -15627,5 +16718,5 @@ declare const atomix: {
|
|
|
15627
16718
|
VideoPlayer: React$1.ForwardRefExoticComponent<VideoPlayerProps & React$1.RefAttributes<HTMLVideoElement>>;
|
|
15628
16719
|
};
|
|
15629
16720
|
|
|
15630
|
-
export { ACCORDION, ATOMIX_GLASS, AVATAR, AVATAR_GROUP, _default as Accordion, AreaChart, AtomixGlass, AtomixLogo, Avatar, AvatarGroup, BADGE, BADGE_CSS_VARS, BALANCED_PRESET, BLOCK, BREADCRUMB, BUTTON, BUTTON_CSS_VARS, BUTTON_GROUP, Badge, BarChart, Block, Breadcrumb, BubbleChart, Button, ButtonGroup, CALLOUT, CARD, CARD_CSS_VARS, CHART, CHECKBOX_CSS_VARS, CLASS_PREFIX, CODE_SNIPPET, COMPONENT_CSS_VARS, COUNTDOWN, Callout, CandlestickChart, Card, Chart, ChartRenderer, Checkbox, ColorModeToggle, Container, Countdown, DATA_TABLE_CLASSES, DATA_TABLE_SELECTORS, DATEPICKER, DEFAULT_ATOMIX_FONTS, DEFAULT_BREAKPOINTS, DROPDOWN, DROPDOWN_CSS_VARS, DataTable, DatePicker, DesignTokensCustomizer, DeviceDetector, DonutChart, Dropdown, EDGE_PANEL, EdgePanel, ElevationCard, FOOTER, FORM, FORM_GROUP, Footer, FooterLink, FooterSection, FooterSocialLink, Form, FormGroup, FunnelChart, GaugeChart, Grid, GridCol, HERO, HeatmapChart, Hero, INPUT, INPUT_CSS_VARS, Icon, Input, LIST, LIST_GROUP, LineChart, List, ListGroup, MESSAGES, MOBILE_OPTIMIZED_BREAKPOINTS, MODAL, MODAL_CSS_VARS, MasonryGrid, MasonryGridItem, MegaMenu, MegaMenuColumn, MegaMenuLink, Menu, MenuDivider, MenuItem, Messages, Modal, MultiAxisChart, NAV, NAVBAR, Nav, NavDropdown, NavItem, Navbar, PAGINATION_DEFAULTS, PERFORMANCE_PRESET, PHOTOVIEWER, POPOVER, PROGRESS, PROGRESS_CSS_VARS, Pagination, PerformanceOverlay, PhotoViewer, PieChart, Popover, ProductReview, Progress, QUALITY_PRESET, RADIO, RADIO_CSS_VARS, RATING, RIVER, RTLManager, RadarChart, Radio, Rating, River, Row, SECTION_INTRO, SELECT, SIDE_MENU, SIZES, SLIDER, SPINNER, STEPS, ScatterChart, SectionIntro, Select, SideMenu, SideMenuItem, SideMenuList, Slider, Spinner, Steps, TAB, TABS_CSS_VARS, TESTIMONIAL, TEXTAREA, THEME_COLORS, THEME_NAMING, TODO, TOGGLE, TOOLTIP, TOOLTIP_CSS_VARS, TYPEDBUTTON, Tabs, Testimonial, Textarea, ThemeApplicator, ThemeComparator, ThemeContext, ThemeErrorBoundary, ThemeInspector, ThemeLiveEditor, ThemePreview, ThemeProvider, ThemeValidator, Todo, Toggle, Tooltip, TreemapChart, UPLOAD, Upload, VIDEO_PLAYER, VideoPlayer, WaterfallChart, applyCSSVariables, applyCSSVarsToStyle, applyComponentTheme, applyPartStyles, applyTheme, camelToKebab, clearThemes, composables, constants, createBreakpoints, createCSSVarStyle, createDarkVariant, createDebugAttrs, createFontPreloadLink, createPartProps, createSlotComponent, createSlotProps, createTheme, createThemeRegistry, createTokens, cssVarsToStyle, deepMerge, atomix as default, defaultTokens, defineConfig, designTokensToCSSVars, exportTheme, extendTheme, extractComponentName, extractYouTubeId, generateCSSVariableName, generateCSSVariables, generateCSSVariablesForSelector, generateClassName, generateComponentCSSVars, generateFontPreloadTags, generateUUID, getAllThemes, getCSSVariable, getComponentCSSVars, getComponentThemeValue, getDefaultBreakpoints, getDevicePreset, getMobileOptimizedParams, getPartStyles, getQualityMultipliers, getTheme, getThemeApplicator, getThemeCount, getThemeIds, getThemeMetadata, hasCustomization, hasTheme, importTheme, injectCSS, injectTheme, isCSSInjected, isDesignTokens, isSlot, isValidCSSVariableName, isYouTubeUrl, mapSCSSTokensToCSSVars, mergeCSSVars, mergeClassNames, mergeComponentProps, mergePartStyles, mergeSlots, mergeTheme, normalizeThemeTokens, preloadFonts, quickTheme, registerTheme, removeCSS, removeCSSVariables, removeTheme, renderSlot, sliderConstants, supportsDarkMode, theme, themePropertyToCSSVar, themeToCSS, types, unregisterTheme, useAccordion, useAtomixGlass, useBadge, useBarChart, useBlock, useChartData, useChartInteraction, useChartScale, useComponentCustomization, useComponentDefaultProps, useComponentTheme, useEdgePanel, useForm, useFormGroup, useHero, useHistory, useInput, useLineChart, useMergedProps, useNav, useNavDropdown, useNavItem, useNavbar,
|
|
15631
|
-
export type { A11yIssue, AccordionParts, AccordionProps$1 as AccordionProps, AccordionState, AreaChartProps, AtomixConfig, AtomixGlassProps, AtomixLogoProps, AvatarGroupProps, AvatarParts, AvatarProps, AvatarSize, BadgeCSSVariable, BadgeParts, BadgeProps, BarChartOptions, BarChartProps, BarDimensions, BaseComponentProps, BlockProps, BreadcrumbInstance, BreadcrumbItem$1 as BreadcrumbItem, BreadcrumbOptions, BreadcrumbProps, BubbleChartProps, BubbleDataPoint, BuildConfig, ButtonCSSVariable, ButtonGroupProps, ButtonIconSlotProps, ButtonLabelSlotProps, ButtonParts, ButtonProps, ButtonRootSlotProps, ButtonSpinnerSlotProps, CSSThemeDefinition, CSSVariableConfig, CSSVariableNamingOptions, CalloutProps, CandlestickChartProps, CandlestickDataPoint, CardBodySlotProps, CardCSSVariable, CardFooterSlotProps, CardHeaderSlotProps, CardParts, CardProps, CardRootSlotProps, ChartAxis$1 as ChartAxis, ChartConfig$1 as ChartConfig, ChartDataPoint$1 as ChartDataPoint, ChartDataset$1 as ChartDataset, ChartProps$1 as ChartProps, ChartSize$1 as ChartSize, ChartType$1 as ChartType, CheckboxCSSVariable, CheckboxParts, CheckboxProps, CodeBlockProps, ColorModeToggleProps, ColorScale, ComponentCSSVariables, ComponentCustomization, ComponentName, ComponentParts, ComponentPartsMap, ComponentThemeOptions, ComponentThemeOverride, ContainerProps, CountdownProps, CustomizableComponentProps, DataTableColumn, DataTableParts, DataTableProps, DatePickerProps, DesignTokens, DesignTokensCustomizerProps, DisplacementMode, DonutChartProps, DropdownCSSVariable, DropdownDividerProps, DropdownHeaderProps, DropdownItemProps, DropdownMenuSlotProps, DropdownParts, DropdownPlacement, DropdownProps, DropdownRootSlotProps, DropdownToggleSlotProps, DropdownTrigger$1 as DropdownTrigger, EdgePanelMode, EdgePanelPosition, EdgePanelProps, ElementRefs, ElevationCardProps, ExportFormat, FontPreloadConfig, FooterLayout, FooterLinkProps, FooterProps, FooterSectionProps, FooterSocialLinkProps, FormGroupParts, FormGroupProps, FormProps, FunnelChartProps, FunnelDataPoint, GaugeChartProps, GenerateCSSVariablesOptions, GlassContainerProps, GlassMode, GlassParams, GlassSize, GlassThemeTokens, GridColProps, GridProps, HeatmapChartProps, HeatmapDataPoint, HeroAlignment, HeroBackgroundSlide, HeroBackgroundSliderConfig, HeroParts, HeroProps, IconPosition, IconProps, IconSize$1 as IconSize, IconWeight$1 as IconWeight, ImageType, InputCSSVariable, InputElementSlotProps, InputParts, InputProps, InputRootSlotProps, IntegrationConfig, JSThemeDefinition, LineChartOptions, LineChartProps, ListGroupProps$1 as ListGroupProps, ListParts, ListProps, MasonryGridItemProps, MasonryGridProps, MegaMenuColumnProps, MegaMenuLinkProps, MegaMenuProps, MenuDividerProps, MenuItemProps, MenuProps, MergePropsOptions, MessageItem, MessagesProps, ModalBackdropSlotProps, ModalCSSVariable, ModalContentSlotProps, ModalDialogSlotProps, ModalParts, ModalProps, ModalRootSlotProps, MousePosition, MultiAxisChartProps, NamingOptions, NavAlignment, NavDropdownProps, NavItemProps, NavProps, NavVariant, NavbarParts, NavbarPosition, NavbarProps, OverLightConfig, OverLightObjectConfig, PaginationProps, PaletteColorOptions, PartStyleProps,
|
|
16721
|
+
export { ACCORDION, ATOMIX_GLASS, AVATAR, AVATAR_GROUP, _default$1 as Accordion, AreaChart, AtomixGlass, AtomixLogo, Avatar, AvatarGroup, BADGE, BADGE_CSS_VARS, BALANCED_PRESET, BLOCK, BREADCRUMB, BUTTON, BUTTON_CSS_VARS, BUTTON_GROUP, Badge, BarChart, Block, Breadcrumb, BubbleChart, Button, ButtonGroup, CALLOUT, CARD, CARD_CSS_VARS, CHART, CHECKBOX_CSS_VARS, CLASS_PREFIX, CODE_SNIPPET, COMPONENT_CSS_VARS, COUNTDOWN, Callout, CandlestickChart, Card, Chart, ChartRenderer, Checkbox, ColorModeToggle, Container, Countdown, DATA_TABLE_CLASSES, DATA_TABLE_SELECTORS, DATEPICKER, DEFAULT_ATOMIX_FONTS, DEFAULT_BREAKPOINTS, DROPDOWN, DROPDOWN_CSS_VARS, DataTable, DatePicker, DesignTokensCustomizer, DeviceDetector, DonutChart, Dropdown, EDGE_PANEL, EdgePanel, ElevationCard, FOOTER, FORM, FORM_GROUP, Footer, FooterLink, FooterSection, FooterSocialLink, Form, FormGroup, FunnelChart, GaugeChart, Grid, GridCol, HERO, HeatmapChart, Hero, INPUT, INPUT_CSS_VARS, Icon, Input, LIST, LIST_GROUP, LineChart, List, ListGroup, MESSAGES, MOBILE_OPTIMIZED_BREAKPOINTS, MODAL, MODAL_CSS_VARS, MasonryGrid, MasonryGridItem, MegaMenu, MegaMenuColumn, MegaMenuLink, Menu, MenuDivider, MenuItem, Messages, Modal, MultiAxisChart, NAV, NAVBAR, Nav, NavDropdown, NavItem, Navbar, PAGINATION_DEFAULTS, PERFORMANCE_PRESET, PHOTOVIEWER, POPOVER, PROGRESS, PROGRESS_CSS_VARS, Pagination, PerformanceOverlay, PhotoViewer, PieChart, Popover, ProductReview, Progress, QUALITY_PRESET, RADIO, RADIO_CSS_VARS, RATING, RIVER, RTLManager, RadarChart, Radio, Rating, River, Row, SECTION_INTRO, SELECT, SIDE_MENU, SIZES, SLIDER, SPINNER, STEPS, ScatterChart, SectionIntro, Select, SideMenu, SideMenuItem, SideMenuList, Slider, Spinner, Steps, TAB, TABS_CSS_VARS, TESTIMONIAL, TEXTAREA, THEME_COLORS, THEME_NAMING, TODO, TOGGLE, TOOLTIP, TOOLTIP_CSS_VARS, TYPEDBUTTON, Tabs, Testimonial, Textarea, ThemeApplicator, ThemeComparator, ThemeContext, ThemeErrorBoundary, ThemeInspector, ThemeLiveEditor, ThemePreview, ThemeProvider, ThemeToggle, ThemeValidator, Todo, Toggle, Tooltip, TreemapChart, UPLOAD, Upload, VIDEO_PLAYER, VideoPlayer, WaterfallChart, alpha, applyCSSVariables, applyCSSVarsToStyle, applyComponentTheme, applyPartStyles, applyTheme, camelToKebab, clearThemePreference, clearThemes, composables, configToTokens, constants, createBreakpoints, createCSSVarStyle, createDarkVariant, createDebugAttrs, createFontPreloadLink, createPartProps, createPerformanceMonitor, createRTLManager, createResponsiveUtil, createSlotComponent, createSlotProps, createSpacing, createTheme, createThemeRegistry, createTokens, cssVarsToStyle, darken, deepMerge, atomix as default, defaultTokens, defineConfig, designTokensToCSSVars, emphasize, exportTheme, extendTheme, extractComponentName, extractYouTubeId, generateCSSVariableName, generateCSSVariables, generateCSSVariablesForSelector, generateClassName, generateComponentCSSVars, generateFontPreloadTags, generateUUID, getAllThemes, getCSSVariable, getComponentCSSVars, getComponentThemeValue, getContrastRatio, getContrastText, getCurrentTheme, getDefaultBreakpoints, getDevicePreset, getDirectionFromLocale, getLuminance, getMobileOptimizedParams, getPartStyles, getQualityMultipliers, getSystemTheme, getTheme, getThemeApplicator, getThemeCount, getThemeIds, getThemeMetadata, hasCustomization, hasTheme, hexToRgb, importTheme, initializeTheme, injectCSS, injectTheme, isAccessible, isCSSInjected, isDesignTokens, isRTLLocale, isSlot, isValidCSSVariableName, isYouTubeUrl, lighten, listenToSystemTheme, loadAtomixConfig, loadConfig, mapSCSSTokensToCSSVars, mergeCSSVars, mergeClassNames, mergeComponentProps, mergePartStyles, mergeSlots, mergeTheme, mergeTokens, normalizeThemeTokens, omitTokens, overrideTokens, persistTheme, pickTokens, preloadFonts, printConfigReport, quickTheme, registerTheme, removeCSS, removeCSSVariables, removeTheme, renderSlot, resolveConfigPath, rgbToHex, rtlCSS, sliderConstants, supportsDarkMode, switchTheme, theme, themePropertyToCSSVar, themeToCSS, toggleTheme, types, unregisterTheme, useAccordion, useAtomixGlass, useBadge, useBarChart, useBlock, useChartData, useChartInteraction, useChartScale, useComponentCustomization, useComponentDefaultProps, useComponentTheme, useEdgePanel, useForm, useFormGroup, useHero, useHistory, useInput, useLineChart, useMergedProps, useNav, useNavDropdown, useNavItem, useNavbar, usePieChart, useRadio, useResponsive, useResponsiveGlass, useRiver, useSelect, useSideMenu, useSideMenuItem, useSlot, useSpinner, useTextarea, useTheme, useThemeSwitcher, useThemeTokens, useTodo, utils, validateConfig, validateConfiguration, validateTheme };
|
|
16722
|
+
export type { A11yIssue, AccordionParts, AccordionProps$1 as AccordionProps, AccordionState, AreaChartProps, AtomixConfig, AtomixGlassProps, AtomixLogoProps, AvatarGroupProps, AvatarParts, AvatarProps, AvatarSize, BadgeCSSVariable, BadgeParts, BadgeProps, BarChartOptions, BarChartProps, BarDimensions, BaseComponentProps, BlockProps, BreadcrumbInstance, BreadcrumbItem$1 as BreadcrumbItem, BreadcrumbOptions, BreadcrumbProps, BubbleChartProps, BubbleDataPoint, BuildConfig, ButtonCSSVariable, ButtonGroupProps, ButtonIconSlotProps, ButtonLabelSlotProps, ButtonParts, ButtonProps, ButtonRootSlotProps, ButtonSpinnerSlotProps, CSSThemeDefinition, CSSVariableConfig, CSSVariableNamingOptions, CalloutProps, CandlestickChartProps, CandlestickDataPoint, CardBodySlotProps, CardCSSVariable, CardFooterSlotProps, CardHeaderSlotProps, CardParts, CardProps, CardRootSlotProps, ChartAxis$1 as ChartAxis, ChartConfig$1 as ChartConfig, ChartDataPoint$1 as ChartDataPoint, ChartDataset$1 as ChartDataset, ChartProps$1 as ChartProps, ChartSize$1 as ChartSize, ChartType$1 as ChartType, CheckboxCSSVariable, CheckboxParts, CheckboxProps, CodeBlockProps, ColorModeToggleProps, ColorScale, ComponentCSSVariables, ComponentCustomization, ComponentName, ComponentParts, ComponentPartsMap, ComponentThemeOptions, ComponentThemeOverride, ContainerProps, CountdownProps, CustomizableComponentProps, DataTableColumn, DataTableParts, DataTableProps, DatePickerProps, DesignTokenCategory, DesignTokenValue, DesignTokens, DesignTokensCustomizerProps, DisplacementMode, DonutChartProps, DropdownCSSVariable, DropdownDividerProps, DropdownHeaderProps, DropdownItemProps, DropdownMenuSlotProps, DropdownParts, DropdownPlacement, DropdownProps, DropdownRootSlotProps, DropdownToggleSlotProps, DropdownTrigger$1 as DropdownTrigger, EdgePanelMode, EdgePanelPosition, EdgePanelProps, ElementRefs, ElevationCardProps, ExportFormat, FontPreloadConfig, FooterLayout, FooterLinkProps, FooterProps, FooterSectionProps, FooterSocialLinkProps, FormGroupParts, FormGroupProps, FormProps, FunnelChartProps, FunnelDataPoint, GaugeChartProps, GenerateCSSVariablesOptions, GeneratorConfig, GlassContainerProps, GlassMode, GlassParams, GlassSize, GlassThemeTokens, GridColProps, GridProps, HeatmapChartProps, HeatmapDataPoint, HeroAlignment, HeroBackgroundSlide, HeroBackgroundSliderConfig, HeroParts, HeroProps, IconPosition, IconProps, IconSize$1 as IconSize, IconWeight$1 as IconWeight, ImageType, InputCSSVariable, InputElementSlotProps, InputParts, InputProps, InputRootSlotProps, IntegrationConfig, InteractiveEffectsConfig, JSThemeDefinition, LineChartOptions, LineChartProps, ListGroupProps$1 as ListGroupProps, ListParts, ListProps, MasonryGridItemProps, MasonryGridProps, MegaMenuColumnProps, MegaMenuLinkProps, MegaMenuProps, MenuDividerProps, MenuItemProps, MenuProps, MergePropsOptions, MessageItem, MessagesProps, ModalBackdropSlotProps, ModalCSSVariable, ModalContentSlotProps, ModalDialogSlotProps, ModalParts, ModalProps, ModalRootSlotProps, MousePosition, MultiAxisChartProps, NamingOptions, NavAlignment, NavDropdownProps, NavItemProps, NavProps, NavVariant, NavbarParts, NavbarPosition, NavbarProps, OptimizationConfig, OverLightConfig, OverLightObjectConfig, PaginationProps, PaletteColorOptions, PartStyleProps, PerformanceMonitorConfig$1 as PerformanceMonitorConfig, PhosphorIconsType$1 as PhosphorIconsType, PhotoViewerProps, PieChartOptions, PieChartProps, PieSlice, PluginConfig, PopoverProps, PopoverTriggerProps, ProductReviewProps, ProgressCSSVariable, ProgressParts, ProgressProps, RTLConfig, RadarChartProps, RadioCSSVariable, RadioParts, RadioProps, RatingProps, ResponsiveBreakpoint, RiverContentColumn, RiverProps, RowProps, RuntimeConfig, ScatterChartProps, ScatterDataPoint, SectionIntroProps, SelectOption$1 as SelectOption, SelectParts, SelectProps, SelectionMode, SideMenuItemProps, SideMenuListProps, SideMenuProps, Size, SliderAutoplay, SliderBreakpoint, SliderEffect, SliderLazy, SliderNavigation, SliderPagination, SliderProps, SliderRefs, SliderScrollbar, SliderSlide, SliderState, SliderThumbs, SliderVirtual, SliderZoom, SlotProps, SocialLink, SocialPlatform, SortConfig, SpinnerProps, StateModifier, StepsProps, TabsCSSVariable, TabsParts, TabsProps, TestimonialProps, TextareaParts, TextareaProps, Theme, ThemeChangeEvent, ThemeColor, ThemeComparatorProps, ThemeComponentOverrides, ThemeContextValue, ThemeDefinition, ThemeErrorBoundaryProps, ThemeInspectorProps, ThemeLiveEditorProps, ThemeLoadOptions, ThemeMode, ThemeName, ThemePersistenceOptions, ThemePreviewProps, ThemeProviderProps, ThemeSwitcherOptions, ThemeToggleProps, ThemeTokens, ThemeValidationResult, TodoItem, TodoProps, ToggleProps, TokenEngineConfig, TokenProviderConfig, TooltipCSSVariable, TooltipParts, TooltipProps, TreemapChartProps, TreemapDataPoint, TreemapNode, UploadProps, UseBlockOptions, UseBlockReturn, UseCardOptions, UseCardReturn, UseHistoryOptions, UseHistoryReturn, UsePerformanceMonitorReturn, UseThemeReturn, UseThemeSwitcherOptions, UseThemeSwitcherReturn, Variant, VideoChapter, VideoPlayerProps, VideoQuality, VideoSubtitle, VisualPolishConfig, WaterfallChartProps, WaterfallDataPoint, listvariant };
|