@flipova/foundation 1.13.0 → 1.14.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 33523d8: Add comprehensive guide and documentation for integrating Flipova Foundation design tokens and theming system with external React Web component libraries (shadcn/ui, Radix UI, Material UI, Tailwind CSS).
8
+
3
9
  ## 1.13.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from './index-CuaJA3gM.mjs';
3
+
4
+ /**
5
+ * Defines the shape of the theme context value.
6
+ * Provides access to the current theme, mode, theme setter, and available themes.
7
+ */
8
+ interface ThemeContextType {
9
+ /** The current active color scheme object */
10
+ theme: ColorScheme;
11
+ /** The current theme mode (built-in or custom) */
12
+ mode: ThemeMode | CustomThemeMode;
13
+ /** Function to change the current theme */
14
+ setTheme: (theme: ThemeMode | CustomThemeMode) => void;
15
+ /** Registry of all available themes */
16
+ availableThemes: ThemeRegistry;
17
+ }
18
+ /**
19
+ * Hook to access the theme context.
20
+ *
21
+ * @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
22
+ * @returns Theme context object with current theme, mode, theme setter, and available themes.
23
+ * @throws Error if used outside a ThemeProvider.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * // Basic usage
28
+ * const { theme, mode, setTheme } = useTheme();
29
+ *
30
+ * // With a specific custom theme
31
+ * const { theme } = useTheme('neon');
32
+ * ```
33
+ */
34
+ declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
35
+ /**
36
+ * Props for the ThemeProvider component.
37
+ */
38
+ interface ThemeProviderProps {
39
+ /** Child components that will have access to theme context */
40
+ children: React.ReactNode;
41
+ /** Default theme to use when no theme is stored in state */
42
+ defaultTheme?: ThemeMode | CustomThemeMode;
43
+ /** Additional custom themes to merge with built-in themes */
44
+ customThemes?: Partial<ThemeRegistry>;
45
+ }
46
+ /**
47
+ * Provides the theme context to child components.
48
+ *
49
+ * Manages the current theme state and provides access to theme changing functionality.
50
+ * Supports built-in themes (light, dark, neon) and custom themes.
51
+ *
52
+ * @param props - The theme provider properties.
53
+ * @returns A context provider component.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * // Basic usage
58
+ * <ThemeProvider>
59
+ * <App />
60
+ * </ThemeProvider>
61
+ *
62
+ * // With default theme and custom themes
63
+ * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
64
+ * <App />
65
+ * </ThemeProvider>
66
+ * ```
67
+ */
68
+ declare const ThemeProvider: React.FC<ThemeProviderProps>;
69
+
70
+ /**
71
+ * Creates a theme color scheme by merging default colors with optional overrides.
72
+ *
73
+ * @param overrides - (Optional) Object containing color values to override.
74
+ * @returns The complete generated theme color scheme.
75
+ */
76
+ declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
77
+
78
+ export { ThemeProvider as T, createTheme as c, useTheme as u };
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from './index-CuaJA3gM.js';
3
+
4
+ /**
5
+ * Defines the shape of the theme context value.
6
+ * Provides access to the current theme, mode, theme setter, and available themes.
7
+ */
8
+ interface ThemeContextType {
9
+ /** The current active color scheme object */
10
+ theme: ColorScheme;
11
+ /** The current theme mode (built-in or custom) */
12
+ mode: ThemeMode | CustomThemeMode;
13
+ /** Function to change the current theme */
14
+ setTheme: (theme: ThemeMode | CustomThemeMode) => void;
15
+ /** Registry of all available themes */
16
+ availableThemes: ThemeRegistry;
17
+ }
18
+ /**
19
+ * Hook to access the theme context.
20
+ *
21
+ * @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
22
+ * @returns Theme context object with current theme, mode, theme setter, and available themes.
23
+ * @throws Error if used outside a ThemeProvider.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * // Basic usage
28
+ * const { theme, mode, setTheme } = useTheme();
29
+ *
30
+ * // With a specific custom theme
31
+ * const { theme } = useTheme('neon');
32
+ * ```
33
+ */
34
+ declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
35
+ /**
36
+ * Props for the ThemeProvider component.
37
+ */
38
+ interface ThemeProviderProps {
39
+ /** Child components that will have access to theme context */
40
+ children: React.ReactNode;
41
+ /** Default theme to use when no theme is stored in state */
42
+ defaultTheme?: ThemeMode | CustomThemeMode;
43
+ /** Additional custom themes to merge with built-in themes */
44
+ customThemes?: Partial<ThemeRegistry>;
45
+ }
46
+ /**
47
+ * Provides the theme context to child components.
48
+ *
49
+ * Manages the current theme state and provides access to theme changing functionality.
50
+ * Supports built-in themes (light, dark, neon) and custom themes.
51
+ *
52
+ * @param props - The theme provider properties.
53
+ * @returns A context provider component.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * // Basic usage
58
+ * <ThemeProvider>
59
+ * <App />
60
+ * </ThemeProvider>
61
+ *
62
+ * // With default theme and custom themes
63
+ * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
64
+ * <App />
65
+ * </ThemeProvider>
66
+ * ```
67
+ */
68
+ declare const ThemeProvider: React.FC<ThemeProviderProps>;
69
+
70
+ /**
71
+ * Creates a theme color scheme by merging default colors with optional overrides.
72
+ *
73
+ * @param overrides - (Optional) Object containing color values to override.
74
+ * @returns The complete generated theme color scheme.
75
+ */
76
+ declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
77
+
78
+ export { ThemeProvider as T, createTheme as c, useTheme as u };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Breakpoint, ColorToken, DurationToken, EasingToken, FontSizeToken, FontWeightToken, LetterSpacingToken, LineHeightToken, OpacityToken, RadiusToken, ShadowToken, SpacingToken, ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from './tokens/index.mjs';
2
- export { ThemeProvider, createTheme, useColorScheme, useTheme } from './theme/index.mjs';
2
+ export { T as ThemeProvider, c as createTheme, u as useTheme } from './createTheme-DQeX3s0I.mjs';
3
3
  export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, c as ThemeName, d as ThemeRegistry, t as themes } from './index-CuaJA3gM.mjs';
4
+ export { useColorScheme } from './theme/index.mjs';
4
5
  export { FoundationConfig, FoundationProvider, ResolvedConfig, ResolvedTokens, ThemeDefinition, TokenOverrides, defineConfig, resolveConfig, useFoundationConfig, useTokens } from './config/index.mjs';
5
6
  export { AnyMeta, BlockCategory, BlockMeta, ComponentCategory, ComponentColorConfig, ComponentMeta, ComponentSizeConfig, DefaultsOf, LayoutBackground, LayoutCategory, LayoutConstants, LayoutMeta, LayoutPadding, PrimitiveMeta, PropDescriptor, PropType, SlotDescriptor, SpringConfig, ThemeColorRole, VariantDescriptor } from './types/index.mjs';
6
7
  export { Accordion, Audio, AuthLayout, Avatar, AvatarPicker, Badge, BadgeWrapper, BentoLayout, BlurView, BlurWrapper, BottomDrawerLayout, Box, Button, Camera, Card, Center, CenteredLayout, Checkbox, Chip, CollapsibleWrapper, ColorPicker, DashboardLayout, DatePicker, DeckLayout, Divider, EmojiPicker, FadeInWrapper, FilePicker, FlatList, FlexLayout, FlipLayout, FooterLayout, GifPicker, Gradient, GridLayout, HeaderContentLayout, Icon, IconButton, IconPicker, Image, Inline, KeyboardAvoidWrapper, LeftDrawerLayout, LottieAnimation, MapView, MasonryLayout, NumberInput, OTPInput, ParallaxLayout, PasswordInput, PlatformOverrideProvider, PlatformOverrideValue, Pressable, ProgressBar, RadioGroup, ResponsiveLayout, ResponsiveValue, RootLayout, SafeAreaWrapper, ScalePressWrapper, Scroll, ScrollLayout, SearchInput, Select, Separator, ShimmerWrapper, SidebarLayout, SkeletonWrapper, SketchLayout, SlideUpWrapper, Slider, SortableGridLayout, Spinner, SplitLayout, Stack, Swipe2ScreenLayout, SwiperLayout, Switch, SystemLayout, Tabs, Text, TextArea, TextInput, TooltipWrapper, TopDrawerLayout, TutoElement, TutoLayout, Video, VoidLayout, WebView, WheelPicker, getBreakpoint, getResponsiveValue, usePlatformOverride, useTutoContext } from './ui/index.mjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Breakpoint, ColorToken, DurationToken, EasingToken, FontSizeToken, FontWeightToken, LetterSpacingToken, LineHeightToken, OpacityToken, RadiusToken, ShadowToken, SpacingToken, ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from './tokens/index.js';
2
- export { ThemeProvider, createTheme, useColorScheme, useTheme } from './theme/index.js';
2
+ export { T as ThemeProvider, c as createTheme, u as useTheme } from './createTheme-Y4jfz4-u.js';
3
3
  export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, c as ThemeName, d as ThemeRegistry, t as themes } from './index-CuaJA3gM.js';
4
+ export { useColorScheme } from './theme/index.js';
4
5
  export { FoundationConfig, FoundationProvider, ResolvedConfig, ResolvedTokens, ThemeDefinition, TokenOverrides, defineConfig, resolveConfig, useFoundationConfig, useTokens } from './config/index.js';
5
6
  export { AnyMeta, BlockCategory, BlockMeta, ComponentCategory, ComponentColorConfig, ComponentMeta, ComponentSizeConfig, DefaultsOf, LayoutBackground, LayoutCategory, LayoutConstants, LayoutMeta, LayoutPadding, PrimitiveMeta, PropDescriptor, PropType, SlotDescriptor, SpringConfig, ThemeColorRole, VariantDescriptor } from './types/index.js';
6
7
  export { Accordion, Audio, AuthLayout, Avatar, AvatarPicker, Badge, BadgeWrapper, BentoLayout, BlurView, BlurWrapper, BottomDrawerLayout, Box, Button, Camera, Card, Center, CenteredLayout, Checkbox, Chip, CollapsibleWrapper, ColorPicker, DashboardLayout, DatePicker, DeckLayout, Divider, EmojiPicker, FadeInWrapper, FilePicker, FlatList, FlexLayout, FlipLayout, FooterLayout, GifPicker, Gradient, GridLayout, HeaderContentLayout, Icon, IconButton, IconPicker, Image, Inline, KeyboardAvoidWrapper, LeftDrawerLayout, LottieAnimation, MapView, MasonryLayout, NumberInput, OTPInput, ParallaxLayout, PasswordInput, PlatformOverrideProvider, PlatformOverrideValue, Pressable, ProgressBar, RadioGroup, ResponsiveLayout, ResponsiveValue, RootLayout, SafeAreaWrapper, ScalePressWrapper, Scroll, ScrollLayout, SearchInput, Select, Separator, ShimmerWrapper, SidebarLayout, SkeletonWrapper, SketchLayout, SlideUpWrapper, Slider, SortableGridLayout, Spinner, SplitLayout, Stack, Swipe2ScreenLayout, SwiperLayout, Switch, SystemLayout, Tabs, Text, TextArea, TextInput, TooltipWrapper, TopDrawerLayout, TutoElement, TutoLayout, Video, VoidLayout, WebView, WheelPicker, getBreakpoint, getResponsiveValue, usePlatformOverride, useTutoContext } from './ui/index.js';
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  var chunkUB34WFEQ_js = require('./chunk-UB34WFEQ.js');
4
4
  var chunk2XORADW6_js = require('./chunk-2XORADW6.js');
5
+ var chunk7QFZMGL6_js = require('./chunk-7QFZMGL6.js');
5
6
  var chunkM3YLASM2_js = require('./chunk-M3YLASM2.js');
6
7
  var chunkASZEP37D_js = require('./chunk-ASZEP37D.js');
7
- var chunk7QFZMGL6_js = require('./chunk-7QFZMGL6.js');
8
8
 
9
9
 
10
10
 
@@ -400,62 +400,6 @@ Object.defineProperty(exports, "useTutoContext", {
400
400
  enumerable: true,
401
401
  get: function () { return chunk2XORADW6_js.useTutoContext; }
402
402
  });
403
- Object.defineProperty(exports, "ThemeProvider", {
404
- enumerable: true,
405
- get: function () { return chunkM3YLASM2_js.ThemeProvider; }
406
- });
407
- Object.defineProperty(exports, "createTheme", {
408
- enumerable: true,
409
- get: function () { return chunkM3YLASM2_js.createTheme; }
410
- });
411
- Object.defineProperty(exports, "themes", {
412
- enumerable: true,
413
- get: function () { return chunkM3YLASM2_js.themes; }
414
- });
415
- Object.defineProperty(exports, "useColorScheme", {
416
- enumerable: true,
417
- get: function () { return chunkM3YLASM2_js.useColorScheme; }
418
- });
419
- Object.defineProperty(exports, "useTheme", {
420
- enumerable: true,
421
- get: function () { return chunkM3YLASM2_js.useTheme; }
422
- });
423
- Object.defineProperty(exports, "breakpoints", {
424
- enumerable: true,
425
- get: function () { return chunkASZEP37D_js.breakpoints; }
426
- });
427
- Object.defineProperty(exports, "colors", {
428
- enumerable: true,
429
- get: function () { return chunkASZEP37D_js.colors; }
430
- });
431
- Object.defineProperty(exports, "motion", {
432
- enumerable: true,
433
- get: function () { return chunkASZEP37D_js.motion; }
434
- });
435
- Object.defineProperty(exports, "opacity", {
436
- enumerable: true,
437
- get: function () { return chunkASZEP37D_js.opacity; }
438
- });
439
- Object.defineProperty(exports, "radii", {
440
- enumerable: true,
441
- get: function () { return chunkASZEP37D_js.radii; }
442
- });
443
- Object.defineProperty(exports, "shadows", {
444
- enumerable: true,
445
- get: function () { return chunkASZEP37D_js.shadows; }
446
- });
447
- Object.defineProperty(exports, "spacing", {
448
- enumerable: true,
449
- get: function () { return chunkASZEP37D_js.spacing; }
450
- });
451
- Object.defineProperty(exports, "typography", {
452
- enumerable: true,
453
- get: function () { return chunkASZEP37D_js.typography; }
454
- });
455
- Object.defineProperty(exports, "zIndex", {
456
- enumerable: true,
457
- get: function () { return chunkASZEP37D_js.zIndex; }
458
- });
459
403
  Object.defineProperty(exports, "AccordionMeta", {
460
404
  enumerable: true,
461
405
  get: function () { return chunk7QFZMGL6_js.AccordionMeta; }
@@ -840,5 +784,61 @@ Object.defineProperty(exports, "primitiveRegistry", {
840
784
  enumerable: true,
841
785
  get: function () { return chunk7QFZMGL6_js.primitiveRegistry; }
842
786
  });
787
+ Object.defineProperty(exports, "ThemeProvider", {
788
+ enumerable: true,
789
+ get: function () { return chunkM3YLASM2_js.ThemeProvider; }
790
+ });
791
+ Object.defineProperty(exports, "createTheme", {
792
+ enumerable: true,
793
+ get: function () { return chunkM3YLASM2_js.createTheme; }
794
+ });
795
+ Object.defineProperty(exports, "themes", {
796
+ enumerable: true,
797
+ get: function () { return chunkM3YLASM2_js.themes; }
798
+ });
799
+ Object.defineProperty(exports, "useColorScheme", {
800
+ enumerable: true,
801
+ get: function () { return chunkM3YLASM2_js.useColorScheme; }
802
+ });
803
+ Object.defineProperty(exports, "useTheme", {
804
+ enumerable: true,
805
+ get: function () { return chunkM3YLASM2_js.useTheme; }
806
+ });
807
+ Object.defineProperty(exports, "breakpoints", {
808
+ enumerable: true,
809
+ get: function () { return chunkASZEP37D_js.breakpoints; }
810
+ });
811
+ Object.defineProperty(exports, "colors", {
812
+ enumerable: true,
813
+ get: function () { return chunkASZEP37D_js.colors; }
814
+ });
815
+ Object.defineProperty(exports, "motion", {
816
+ enumerable: true,
817
+ get: function () { return chunkASZEP37D_js.motion; }
818
+ });
819
+ Object.defineProperty(exports, "opacity", {
820
+ enumerable: true,
821
+ get: function () { return chunkASZEP37D_js.opacity; }
822
+ });
823
+ Object.defineProperty(exports, "radii", {
824
+ enumerable: true,
825
+ get: function () { return chunkASZEP37D_js.radii; }
826
+ });
827
+ Object.defineProperty(exports, "shadows", {
828
+ enumerable: true,
829
+ get: function () { return chunkASZEP37D_js.shadows; }
830
+ });
831
+ Object.defineProperty(exports, "spacing", {
832
+ enumerable: true,
833
+ get: function () { return chunkASZEP37D_js.spacing; }
834
+ });
835
+ Object.defineProperty(exports, "typography", {
836
+ enumerable: true,
837
+ get: function () { return chunkASZEP37D_js.typography; }
838
+ });
839
+ Object.defineProperty(exports, "zIndex", {
840
+ enumerable: true,
841
+ get: function () { return chunkASZEP37D_js.zIndex; }
842
+ });
843
843
  //# sourceMappingURL=index.js.map
844
844
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  export { FoundationProvider, defineConfig, resolveConfig, useFoundationConfig, useTokens } from './chunk-5647JY7Z.mjs';
2
2
  export { Accordion_default as Accordion, Audio_default as Audio, AuthLayout_default as AuthLayout, Avatar_default as Avatar, AvatarPicker_default as AvatarPicker, Badge_default as Badge, BadgeWrapper_default as BadgeWrapper, BentoLayout_default as BentoLayout, BlurView_default as BlurView, BlurWrapper_default as BlurWrapper, BottomDrawerLayout_default as BottomDrawerLayout, Box_default as Box, Button_default as Button, Camera_default as Camera, Card_default as Card, Center_default as Center, CenteredLayout_default as CenteredLayout, Checkbox_default as Checkbox, Chip_default as Chip, CollapsibleWrapper_default as CollapsibleWrapper, ColorPicker_default as ColorPicker, DashboardLayout_default as DashboardLayout, DatePicker_default as DatePicker, DeckLayout_default as DeckLayout, Divider_default as Divider, EmojiPicker_default as EmojiPicker, FadeInWrapper_default as FadeInWrapper, FilePicker_default as FilePicker, FlatList_default as FlatList, FlexLayout_default as FlexLayout, FlipLayout_default as FlipLayout, FooterLayout_default as FooterLayout, GifPicker_default as GifPicker, Gradient_default as Gradient, GridLayout_default as GridLayout, HeaderContentLayout_default as HeaderContentLayout, Icon_default as Icon, IconButton_default as IconButton, IconPicker_default as IconPicker, Image_default as Image, Inline_default as Inline, KeyboardAvoidWrapper_default as KeyboardAvoidWrapper, LeftDrawerLayout_default as LeftDrawerLayout, LottieAnimation_default as LottieAnimation, MapView_default as MapView, MasonryLayout_default as MasonryLayout, NumberInput_default as NumberInput, OTPInput_default as OTPInput, ParallaxLayout_default as ParallaxLayout, PasswordInput_default as PasswordInput, PlatformOverrideProvider, Pressable_default as Pressable, ProgressBar_default as ProgressBar, RadioGroup_default as RadioGroup, ResponsiveLayout_default as ResponsiveLayout, RootLayout_default as RootLayout, SafeAreaWrapper_default as SafeAreaWrapper, ScalePressWrapper_default as ScalePressWrapper, Scroll_default as Scroll, ScrollLayout_default as ScrollLayout, SearchInput_default as SearchInput, Select_default as Select, Separator_default as Separator, ShimmerWrapper_default as ShimmerWrapper, SidebarLayout_default as SidebarLayout, SkeletonWrapper_default as SkeletonWrapper, SketchLayout_default as SketchLayout, SlideUpWrapper_default as SlideUpWrapper, Slider_default as Slider, SortableGridLayout_default as SortableGridLayout, Spinner_default as Spinner, SplitLayout_default as SplitLayout, Stack_default as Stack, Swipe2ScreenLayout_default as Swipe2ScreenLayout, SwiperLayout_default as SwiperLayout, Switch_default as Switch, SystemLayout_default as SystemLayout, Tabs_default as Tabs, Text_default as Text, TextArea_default as TextArea, TextInput_default as TextInput, TooltipWrapper_default as TooltipWrapper, TopDrawerLayout_default as TopDrawerLayout, TutoElement_default as TutoElement, TutoLayout_default as TutoLayout, Video_default as Video, VoidLayout_default as VoidLayout, WebView_default as WebView, WheelPicker_default as WheelPicker, getBreakpoint, getResponsiveValue, usePlatformOverride, useTutoContext } from './chunk-ZBRWXKDF.mjs';
3
+ export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta, blockRegistry, componentRegistry, getBlockMeta, getComponentMeta, getLayoutMeta, getMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry } from './chunk-RQXQK3ZO.mjs';
3
4
  export { ThemeProvider, createTheme, themes, useColorScheme, useTheme } from './chunk-BO65GO53.mjs';
4
5
  export { breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from './chunk-BSVXX52E.mjs';
5
- export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta, blockRegistry, componentRegistry, getBlockMeta, getComponentMeta, getLayoutMeta, getMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry } from './chunk-RQXQK3ZO.mjs';
6
6
  //# sourceMappingURL=index.mjs.map
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1,72 +1,6 @@
1
- import React from 'react';
2
- import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from '../index-CuaJA3gM.mjs';
3
- export { T as ThemeGradients, c as ThemeName, t as themes } from '../index-CuaJA3gM.mjs';
4
-
5
- /**
6
- * Defines the shape of the theme context value.
7
- * Provides access to the current theme, mode, theme setter, and available themes.
8
- */
9
- interface ThemeContextType {
10
- /** The current active color scheme object */
11
- theme: ColorScheme;
12
- /** The current theme mode (built-in or custom) */
13
- mode: ThemeMode | CustomThemeMode;
14
- /** Function to change the current theme */
15
- setTheme: (theme: ThemeMode | CustomThemeMode) => void;
16
- /** Registry of all available themes */
17
- availableThemes: ThemeRegistry;
18
- }
19
- /**
20
- * Hook to access the theme context.
21
- *
22
- * @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
23
- * @returns Theme context object with current theme, mode, theme setter, and available themes.
24
- * @throws Error if used outside a ThemeProvider.
25
- *
26
- * @example
27
- * ```tsx
28
- * // Basic usage
29
- * const { theme, mode, setTheme } = useTheme();
30
- *
31
- * // With a specific custom theme
32
- * const { theme } = useTheme('neon');
33
- * ```
34
- */
35
- declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
36
- /**
37
- * Props for the ThemeProvider component.
38
- */
39
- interface ThemeProviderProps {
40
- /** Child components that will have access to theme context */
41
- children: React.ReactNode;
42
- /** Default theme to use when no theme is stored in state */
43
- defaultTheme?: ThemeMode | CustomThemeMode;
44
- /** Additional custom themes to merge with built-in themes */
45
- customThemes?: Partial<ThemeRegistry>;
46
- }
47
- /**
48
- * Provides the theme context to child components.
49
- *
50
- * Manages the current theme state and provides access to theme changing functionality.
51
- * Supports built-in themes (light, dark, neon) and custom themes.
52
- *
53
- * @param props - The theme provider properties.
54
- * @returns A context provider component.
55
- *
56
- * @example
57
- * ```tsx
58
- * // Basic usage
59
- * <ThemeProvider>
60
- * <App />
61
- * </ThemeProvider>
62
- *
63
- * // With default theme and custom themes
64
- * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
65
- * <App />
66
- * </ThemeProvider>
67
- * ```
68
- */
69
- declare const ThemeProvider: React.FC<ThemeProviderProps>;
1
+ export { T as ThemeProvider, c as createTheme, u as useTheme } from '../createTheme-DQeX3s0I.mjs';
2
+ export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, c as ThemeName, d as ThemeRegistry, t as themes } from '../index-CuaJA3gM.mjs';
3
+ import 'react';
70
4
 
71
5
  /**
72
6
  * Hook to manage the theme color scheme in the application.
@@ -98,12 +32,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
98
32
  */
99
33
  declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
100
34
 
101
- /**
102
- * Creates a theme color scheme by merging default colors with optional overrides.
103
- *
104
- * @param overrides - (Optional) Object containing color values to override.
105
- * @returns The complete generated theme color scheme.
106
- */
107
- declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
108
-
109
- export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, createTheme, useColorScheme, useTheme };
35
+ export { useColorScheme };
@@ -1,72 +1,6 @@
1
- import React from 'react';
2
- import { b as ThemeMode, a as CustomThemeMode, d as ThemeRegistry, C as ColorScheme } from '../index-CuaJA3gM.js';
3
- export { T as ThemeGradients, c as ThemeName, t as themes } from '../index-CuaJA3gM.js';
4
-
5
- /**
6
- * Defines the shape of the theme context value.
7
- * Provides access to the current theme, mode, theme setter, and available themes.
8
- */
9
- interface ThemeContextType {
10
- /** The current active color scheme object */
11
- theme: ColorScheme;
12
- /** The current theme mode (built-in or custom) */
13
- mode: ThemeMode | CustomThemeMode;
14
- /** Function to change the current theme */
15
- setTheme: (theme: ThemeMode | CustomThemeMode) => void;
16
- /** Registry of all available themes */
17
- availableThemes: ThemeRegistry;
18
- }
19
- /**
20
- * Hook to access the theme context.
21
- *
22
- * @param customTheme - (Optional) Custom theme mode to use instead of current context theme.
23
- * @returns Theme context object with current theme, mode, theme setter, and available themes.
24
- * @throws Error if used outside a ThemeProvider.
25
- *
26
- * @example
27
- * ```tsx
28
- * // Basic usage
29
- * const { theme, mode, setTheme } = useTheme();
30
- *
31
- * // With a specific custom theme
32
- * const { theme } = useTheme('neon');
33
- * ```
34
- */
35
- declare const useTheme: (customTheme?: ThemeMode | CustomThemeMode) => ThemeContextType;
36
- /**
37
- * Props for the ThemeProvider component.
38
- */
39
- interface ThemeProviderProps {
40
- /** Child components that will have access to theme context */
41
- children: React.ReactNode;
42
- /** Default theme to use when no theme is stored in state */
43
- defaultTheme?: ThemeMode | CustomThemeMode;
44
- /** Additional custom themes to merge with built-in themes */
45
- customThemes?: Partial<ThemeRegistry>;
46
- }
47
- /**
48
- * Provides the theme context to child components.
49
- *
50
- * Manages the current theme state and provides access to theme changing functionality.
51
- * Supports built-in themes (light, dark, neon) and custom themes.
52
- *
53
- * @param props - The theme provider properties.
54
- * @returns A context provider component.
55
- *
56
- * @example
57
- * ```tsx
58
- * // Basic usage
59
- * <ThemeProvider>
60
- * <App />
61
- * </ThemeProvider>
62
- *
63
- * // With default theme and custom themes
64
- * <ThemeProvider defaultTheme="dark" customThemes={{ myTheme: customThemeConfig }}>
65
- * <App />
66
- * </ThemeProvider>
67
- * ```
68
- */
69
- declare const ThemeProvider: React.FC<ThemeProviderProps>;
1
+ export { T as ThemeProvider, c as createTheme, u as useTheme } from '../createTheme-Y4jfz4-u.js';
2
+ export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, c as ThemeName, d as ThemeRegistry, t as themes } from '../index-CuaJA3gM.js';
3
+ import 'react';
70
4
 
71
5
  /**
72
6
  * Hook to manage the theme color scheme in the application.
@@ -98,12 +32,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
98
32
  */
99
33
  declare function useColorScheme(theme?: 'light' | 'dark'): 'light' | 'dark';
100
34
 
101
- /**
102
- * Creates a theme color scheme by merging default colors with optional overrides.
103
- *
104
- * @param overrides - (Optional) Object containing color values to override.
105
- * @returns The complete generated theme color scheme.
106
- */
107
- declare const createTheme: (overrides?: Partial<ColorScheme>) => ColorScheme;
108
-
109
- export { ColorScheme, CustomThemeMode, ThemeMode, ThemeProvider, ThemeRegistry, createTheme, useColorScheme, useTheme };
35
+ export { useColorScheme };