@omnitron-dev/prism 0.1.3 → 0.2.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.
Files changed (60) hide show
  1. package/dist/blocks/index.js +49 -9
  2. package/dist/blocks/index.js.map +1 -1
  3. package/dist/chunk-2FYNRDXR.js +192 -0
  4. package/dist/chunk-2FYNRDXR.js.map +1 -0
  5. package/dist/chunk-A2Z7NVGL.js +11496 -0
  6. package/dist/chunk-A2Z7NVGL.js.map +1 -0
  7. package/dist/{chunk-E3XANPTO.js → chunk-IZOIO7PA.js} +5 -191
  8. package/dist/{chunk-E3XANPTO.js.map → chunk-IZOIO7PA.js.map} +1 -1
  9. package/dist/{chunk-LAEY5USO.js → chunk-KTCWPGON.js} +55 -25
  10. package/dist/chunk-KTCWPGON.js.map +1 -0
  11. package/dist/{chunk-DXXZ3ITR.js → chunk-MEFT6XPH.js} +721 -455
  12. package/dist/chunk-MEFT6XPH.js.map +1 -0
  13. package/dist/{chunk-BTIT7WYH.js → chunk-SNKGGHBT.js} +2 -2
  14. package/dist/chunk-SNKGGHBT.js.map +1 -0
  15. package/dist/{chunk-UR6X3W5I.js → chunk-VAAIHNWQ.js} +3 -3
  16. package/dist/{chunk-UR6X3W5I.js.map → chunk-VAAIHNWQ.js.map} +1 -1
  17. package/dist/{chunk-GYDT5EKX.js → chunk-XQXGE2PW.js} +760 -472
  18. package/dist/chunk-XQXGE2PW.js.map +1 -0
  19. package/dist/{chunk-WC2WM2JD.js → chunk-XXP3ZGU6.js} +18 -8
  20. package/dist/chunk-XXP3ZGU6.js.map +1 -0
  21. package/dist/chunk-YJMAQL3S.js +1887 -0
  22. package/dist/chunk-YJMAQL3S.js.map +1 -0
  23. package/dist/cli/index.js +4 -4
  24. package/dist/cli/index.js.map +1 -1
  25. package/dist/components/editor/index.d.ts +107 -0
  26. package/dist/components/editor/index.js +4 -0
  27. package/dist/components/editor/index.js.map +1 -0
  28. package/dist/components/index.css +131 -0
  29. package/dist/components/index.css.map +1 -0
  30. package/dist/components/index.d.ts +7073 -0
  31. package/dist/components/index.js +13 -0
  32. package/dist/components/index.js.map +1 -0
  33. package/dist/components-BCGZ-Rwt.d.ts +142 -0
  34. package/dist/{config-BA6IeTq9.d.ts → config-Pct0n_Kq.d.ts} +2 -2
  35. package/dist/core/index.d.ts +20 -5
  36. package/dist/core/index.js +2 -2
  37. package/dist/hooks/index.d.ts +3 -2
  38. package/dist/hooks/index.js +4 -3
  39. package/dist/{index-odhPSv9I.d.ts → index-nmJ8Muwg.d.ts} +4 -127
  40. package/dist/index.d.ts +265 -6615
  41. package/dist/index.js +119 -11662
  42. package/dist/index.js.map +1 -1
  43. package/dist/layouts/index.js +1 -1
  44. package/dist/popover-Dmw7SJLR.d.ts +127 -0
  45. package/dist/registry/index.d.ts +2 -2
  46. package/dist/{registry-BrDNftd5.d.ts → registry-DQcIzW2s.d.ts} +2 -2
  47. package/dist/{settings-plpR26Xk.d.ts → settings-CAC0qFjS.d.ts} +2 -2
  48. package/dist/state/index.d.ts +2 -2
  49. package/dist/state/index.js +1 -1
  50. package/dist/text-transform-D6MzzF7V.d.ts +165 -0
  51. package/dist/theme/index.d.ts +2 -2
  52. package/dist/theme/index.js +2 -2
  53. package/dist/{theme-CrXLfP1c.d.ts → theme-B4Q3Bg5o.d.ts} +1 -1
  54. package/dist/types/index.d.ts +6 -145
  55. package/package.json +46 -40
  56. package/dist/chunk-BTIT7WYH.js.map +0 -1
  57. package/dist/chunk-DXXZ3ITR.js.map +0 -1
  58. package/dist/chunk-GYDT5EKX.js.map +0 -1
  59. package/dist/chunk-LAEY5USO.js.map +0 -1
  60. package/dist/chunk-WC2WM2JD.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ export { Accordion, AdminDataTable, Alert, AmountCell, AnimateBorder, Avatar, Badge, BooleanLabel, Breadcrumbs, Card, CardGrid, CardSection, CardSkeleton, Carousel, ChangelogEntry, ChangelogTimeline, Chart, ChartLegends, ChartLoading, CircularProgress, CommandPalette, ConfirmDialog, ContentRenderer, ContentRoot, ContextMenu, CountBadge, CountdownRing, CountrySelect, CustomAvatarGroup, DateRangeInput, DateRangePicker, DeleteDialog, DocLayout, DocSectionNav, DocSidebar, Drawer, DurationPicker, EmptyContent, ErrorBoundary, FilterToolbar, FlagIcon, FormAlert, Image, ImageWithDefault, InlineAlert, Label, Lightbox, LinearProgress, LoadingEmptyContent, LoadingScreen, Markdown, MegaMenuHorizontal as MegaMenu, MegaMenuHorizontal, MegaMenuMobile, MegaMenuVertical, Menu, MotionLazy, Nav, NavArrow, NavCard, NavCardGrid, NavIcon, NavInfo, NavItem, NavItemBase, NavLi, NavList, NavSectionVertical as NavSection, NavSectionHorizontal, NavSectionMini, NavSectionVertical, NavSubList, NavSubheader, NavTexts, NavUl, NavigationProgress, PageContent, ProgressBar, ScrollSpyProvider, ScrollSpySection, ScrollToTop, Scrollbar, SearchEmptyContent, SettingsDrawer, SettingsProvider, SimpleAccordion, SimpleSnackbar, Skeleton, SnackbarProvider, Spinner, SplashScreen, StatCard, StatusChip, StatusDot, StatusLabel, Stepper, StepperActions, SvgColor, TabPanel, Table, TableSkeleton, Tabs, TagCloud, TipTapRenderer, Tooltip, VirtualList, animateBorderClasses, carouselClasses, chartClasses, contentClasses, createIconComponent, formatDateString, getErrorLocation, getNavCssVars, htmlToMarkdown, isMarkdownContent, lightboxClasses, megaMenuClasses, megaMenuCssVars, navSectionClasses, navSectionCssVars, parseDateString, parseStackTrace, registerTipTapNode, useAccordion, useCarousel, useChart, useDateRangePicker, useErrorBoundary, useLightbox, useMenu, useScrollSpy, useSettings, useSettingsDrawer, useSnackbar, useStepper, useTable, useTabs } from '../chunk-A2Z7NVGL.js';
2
+ export { CustomPopover, usePopover } from '../chunk-2FYNRDXR.js';
3
+ export { Editor, editorClasses, resolveToolbar } from '../chunk-YJMAQL3S.js';
4
+ import '../chunk-XXP3ZGU6.js';
5
+ import '../chunk-MEFT6XPH.js';
6
+ import '../chunk-JDTC2SBY.js';
7
+ export { Field, FieldAutocomplete, FieldCheckbox, FieldCode, FieldCountrySelect, FieldCustomEditor, FieldDatePicker, FieldDateTimePicker, FieldEditor, FieldMultiCheckbox, FieldMultiSelect, FieldMultiSwitch, FieldNumber, FieldPhone, FieldRadio, FieldRating, FieldSelect, FieldSlider, FieldSwitch, FieldText, FieldTimePicker, FieldUpload, FieldUploadAvatar, FieldUploadBox, SearchInput } from '../chunk-KTCWPGON.js';
8
+ import '../chunk-HO2GKTWJ.js';
9
+ import '../chunk-XWL6J6IO.js';
10
+ import '../chunk-DDY7TLUI.js';
11
+ import '../chunk-77KIJLPP.js';
12
+ //# sourceMappingURL=index.js.map
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,142 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ReactNode, ElementType, ComponentPropsWithoutRef } from 'react';
3
+
4
+ /**
5
+ * Component Type Definitions
6
+ *
7
+ * @module @omnitron-dev/prism/types/components
8
+ */
9
+
10
+ /**
11
+ * Component size variants.
12
+ */
13
+ type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
+ /**
15
+ * Component color variants.
16
+ */
17
+ type ComponentColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
18
+ /**
19
+ * Button variants.
20
+ */
21
+ type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
22
+ /**
23
+ * Base props for polymorphic components.
24
+ */
25
+ type PolymorphicComponentProps<C extends ElementType, Props = object> = Props & Omit<ComponentPropsWithoutRef<C>, keyof Props> & {
26
+ as?: C;
27
+ };
28
+ /**
29
+ * Slot props for component customization.
30
+ */
31
+ interface SlotProps<T = object> {
32
+ /** Custom slot content */
33
+ slotProps?: {
34
+ root?: T;
35
+ [key: string]: T | undefined;
36
+ };
37
+ }
38
+ /**
39
+ * Common component props.
40
+ */
41
+ interface CommonComponentProps {
42
+ /** Additional CSS classes */
43
+ className?: string;
44
+ /** Inline styles */
45
+ style?: React.CSSProperties;
46
+ /** Component children */
47
+ children?: ReactNode;
48
+ /** Disabled state */
49
+ disabled?: boolean;
50
+ /** Loading state */
51
+ loading?: boolean;
52
+ }
53
+ /**
54
+ * Props for components with icon support.
55
+ */
56
+ interface WithIconProps {
57
+ /** Icon at start */
58
+ startIcon?: ReactNode;
59
+ /** Icon at end */
60
+ endIcon?: ReactNode;
61
+ /** Icon only (no text) */
62
+ iconOnly?: boolean;
63
+ }
64
+ /**
65
+ * Props for form field components.
66
+ */
67
+ interface FormFieldProps {
68
+ /** Field name for form registration */
69
+ name: string;
70
+ /** Field label */
71
+ label?: ReactNode;
72
+ /** Helper text */
73
+ helperText?: ReactNode;
74
+ /** Required field */
75
+ required?: boolean;
76
+ /** Error state */
77
+ error?: boolean;
78
+ /** Error message */
79
+ errorMessage?: string;
80
+ /** Full width */
81
+ fullWidth?: boolean;
82
+ }
83
+ /**
84
+ * Props for input components.
85
+ */
86
+ interface InputProps extends FormFieldProps {
87
+ /** Placeholder text */
88
+ placeholder?: string;
89
+ /** Input type */
90
+ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
91
+ /** Auto-focus */
92
+ autoFocus?: boolean;
93
+ /** Auto-complete */
94
+ autoComplete?: string;
95
+ /** Read-only */
96
+ readOnly?: boolean;
97
+ }
98
+ /**
99
+ * Props for select/dropdown components.
100
+ */
101
+ interface SelectOption<T = string> {
102
+ /** Option value */
103
+ value: T;
104
+ /** Display label */
105
+ label: string;
106
+ /** Disabled option */
107
+ disabled?: boolean;
108
+ /** Group name for grouped options */
109
+ group?: string;
110
+ /** Optional icon */
111
+ icon?: ReactNode;
112
+ }
113
+ /**
114
+ * Props for data display components.
115
+ */
116
+ interface DataDisplayProps<T = unknown> {
117
+ /** Data to display */
118
+ data: T;
119
+ /** Loading state */
120
+ loading?: boolean;
121
+ /** Error state */
122
+ error?: Error | null;
123
+ /** Empty state message */
124
+ emptyMessage?: string;
125
+ }
126
+ /**
127
+ * Props for layout components.
128
+ */
129
+ interface LayoutProps {
130
+ /** Gap between items */
131
+ gap?: number | string;
132
+ /** Padding */
133
+ padding?: number | string;
134
+ /** Max width */
135
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
136
+ }
137
+ /**
138
+ * Extract variant props from cva definition.
139
+ */
140
+ type ExtractVariantProps<T extends (...args: unknown[]) => unknown> = VariantProps<T>;
141
+
142
+ export type { ButtonVariant as B, CommonComponentProps as C, DataDisplayProps as D, ExtractVariantProps as E, FormFieldProps as F, InputProps as I, LayoutProps as L, PolymorphicComponentProps as P, SelectOption as S, WithIconProps as W, ComponentColor as a, ComponentSize as b, SlotProps as c };
@@ -1,5 +1,5 @@
1
- import { T as ThemeConfig } from './theme-CrXLfP1c.js';
2
- import { R as RegistryConfig } from './registry-BrDNftd5.js';
1
+ import { l as ThemeConfig } from './theme-B4Q3Bg5o.js';
2
+ import { R as RegistryConfig } from './registry-DQcIzW2s.js';
3
3
 
4
4
  /**
5
5
  * Configuration Type Definitions
@@ -1,12 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentType, FC } from 'react';
3
- import { b as PrismConfig, P as PartialPrismConfig } from '../config-BA6IeTq9.js';
4
- import { o as PrismTheme, a as ThemeMode, b as ThemePreset, c as ThemeDirection } from '../theme-CrXLfP1c.js';
5
- import { b as NavLayout, N as NavColor } from '../settings-plpR26Xk.js';
3
+ import { b as PrismConfig, P as PartialPrismConfig } from '../config-Pct0n_Kq.js';
4
+ import { k as PrismTheme, o as ThemeMode, q as ThemePreset, n as ThemeDirection } from '../theme-B4Q3Bg5o.js';
5
+ import { a as NavLayout, N as NavColor } from '../settings-CAC0qFjS.js';
6
6
  export { C as CopyState, a as CountdownControls, b as CountdownState, S as SetState, U as UseCopyToClipboardOptions, c as UseCopyToClipboardReturn, d as UseCountdownOptions, e as UseCountdownReturn, f as UseMountedReturn, g as UseMultiSelectOptions, h as UseMultiSelectReturn, i as UseSetStateReturn, j as UseTimeoutReturn, u as useBoolean, k as useBreakpoints, l as useClickOutside, m as useCopyToClipboard, n as useCountdown, o as useDebounce, p as useDebounceCallback, q as useEventListener, r as useInterval, s as useIsClient, t as useLocalStorage, v as useMounted, w as useMultiSelect, x as usePrevious, y as useSetState, z as useTimeout } from '../use-timeout-D7U3EAtH.js';
7
7
  import { SxProps, Theme } from '@mui/material';
8
8
  export { useMediaQuery } from '@mui/material';
9
- import '../registry-BrDNftd5.js';
9
+ import '../registry-DQcIzW2s.js';
10
10
  import '@mui/material/styles';
11
11
  import 'zustand';
12
12
 
@@ -118,6 +118,21 @@ interface PrismProviderProps {
118
118
  disableCssBaseline?: boolean;
119
119
  /** Custom theme overrides */
120
120
  themeOverrides?: Record<string, unknown>;
121
+ /**
122
+ * Locale code passed to MUI's `LocalizationProvider` as
123
+ * `adapterLocale` — e.g. `'ru'`, `'en'`. Must be a locale already
124
+ * registered with dayjs (e.g. `import 'dayjs/locale/ru'`).
125
+ * Switches calendar month/weekday labels and date masks.
126
+ * If omitted, MUI falls back to dayjs's global locale (English).
127
+ */
128
+ dateAdapterLocale?: string;
129
+ /**
130
+ * Override for MUI x-date-pickers' built-in strings
131
+ * (e.g. ARIA labels, toolbar text). Passed straight through to
132
+ * `LocalizationProvider.localeText`. Typically pulled from
133
+ * `@mui/x-date-pickers/locales` (e.g. `ruRU.components.MuiLocalizationProvider.defaultProps.localeText`).
134
+ */
135
+ dateLocaleText?: Record<string, unknown>;
121
136
  }
122
137
  /**
123
138
  * PrismProvider - Root provider for Prism design system.
@@ -143,7 +158,7 @@ interface PrismProviderProps {
143
158
  * }
144
159
  * ```
145
160
  */
146
- declare function PrismProvider({ children, config: configOverrides, defaultSettings, disableCssBaseline, themeOverrides, }: PrismProviderProps): ReactNode;
161
+ declare function PrismProvider({ children, config: configOverrides, defaultSettings, disableCssBaseline, themeOverrides, dateAdapterLocale, dateLocaleText, }: PrismProviderProps): ReactNode;
147
162
 
148
163
  /**
149
164
  * Provider Stack Utilities
@@ -1,5 +1,5 @@
1
- export { PrismContext, PrismProvider, ProviderStack, composeProviders, conditionalProvider, createProviderStack, filterProviders, useBreakpoints, useClickOutside, useCopyToClipboard, useCountdown, useDebounce, useDebounceCallback, useEventListener, useInterval, useIsClient, useLocalStorage, useMuiMediaQuery as useMediaQuery, useMounted, useMultiSelect, usePrevious, usePrismContext, useSetState, useTimeout, withProviderProps } from '../chunk-WC2WM2JD.js';
2
- import '../chunk-DXXZ3ITR.js';
1
+ export { PrismContext, PrismProvider, ProviderStack, composeProviders, conditionalProvider, createProviderStack, filterProviders, useBreakpoints, useClickOutside, useCopyToClipboard, useCountdown, useDebounce, useDebounceCallback, useEventListener, useInterval, useIsClient, useLocalStorage, useMuiMediaQuery as useMediaQuery, useMounted, useMultiSelect, usePrevious, usePrismContext, useSetState, useTimeout, withProviderProps } from '../chunk-XXP3ZGU6.js';
2
+ import '../chunk-MEFT6XPH.js';
3
3
  export { ARIA_LABELS, SkipLink, announceToScreenReader, combineAriaDescribedBy, focusVisibleStyles, generateAriaId, getAriaExpanded, handleListKeyDown, srOnly } from '../chunk-JDTC2SBY.js';
4
4
  export { useBoolean } from '../chunk-HO2GKTWJ.js';
5
5
  import '../chunk-XWL6J6IO.js';
@@ -1,7 +1,8 @@
1
- import '../theme-CrXLfP1c.js';
1
+ import '../theme-B4Q3Bg5o.js';
2
2
  export { C as CopyState, a as CountdownControls, b as CountdownState, S as SetState, U as UseCopyToClipboardOptions, c as UseCopyToClipboardReturn, d as UseCountdownOptions, e as UseCountdownReturn, f as UseMountedReturn, g as UseMultiSelectOptions, h as UseMultiSelectReturn, i as UseSetStateReturn, j as UseTimeoutReturn, u as useBoolean, k as useBreakpoints, l as useClickOutside, m as useCopyToClipboard, n as useCountdown, o as useDebounce, p as useDebounceCallback, q as useEventListener, r as useInterval, s as useIsClient, t as useLocalStorage, v as useMounted, w as useMultiSelect, x as usePrevious, y as useSetState, z as useTimeout } from '../use-timeout-D7U3EAtH.js';
3
3
  export { useMediaQuery } from '@mui/material';
4
- export { a as AsyncState, B as BreakpointChecks, b as Breakpoints, D as DOMRectValue, I as ImageDimensions, e as InfiniteFetchFn, f as InfinitePage, g as InfiniteScrollState, K as KeyboardShortcut, L as LazyQueryState, M as MutationState, P as PageInfo, S as ScrollElValue, i as ScrollPosition, U as UrlConfigValues, j as UseArrayReturn, k as UseAsyncFnReturn, l as UseAsyncOptions, m as UseAsyncReturn, n as UseBackToTopReturn, o as UseClientRectReturn, p as UseConfigFromQueryOptions, q as UseConfigFromQueryReturn, r as UseCookiesOptions, s as UseCookiesReturn, t as UseCountdownDateReturn, u as UseCountdownSecondsReturn, v as UseDoubleClickProps, w as UseDoubleClickReturn, x as UseFocusTrapOptions, y as UseFocusTrapReturn, z as UseImageDimensionsOptions, E as UseImageDimensionsReturn, F as UseInfiniteScrollOptions, G as UseInfiniteScrollReturn, H as UseIntersectionObserverOptions, J as UseIntersectionObserverReturn, N as UseKeyboardShortcutOptions, O as UseLazyQueryOptions, Q as UseLazyQueryReturn, R as UseMutationOptions, T as UseMutationReturn, V as UseOnlineStatusReturn, W as UsePasswordVisibilityOptions, X as UsePasswordVisibilityReturn, Y as UsePopoverHoverReturn, Z as UsePopoverReturn, _ as UseResponsiveQueryReturn, $ as UseScrollOffsetTopReturn, a0 as UseScrollPositionOptions, a1 as UseSessionStorageOptions, a2 as UseSessionStorageReturn, a3 as UseThrottleOptions, a4 as UseWindowSizeOptions, a5 as WindowSize, aa as useArray, ab as useAsync, ac as useAsyncFn, ad as useBackToTop, ae as useBreakpoint, af as useBreakpointChecks, ag as useClientRect, ah as useConfigFromQuery, ai as useCookies, aj as useCountdownDate, ak as useCountdownSeconds, al as useDoubleClick, am as useEnterKey, an as useEscapeKey, ao as useFocusTrap, ap as useImageDimensions, aq as useInfiniteScroll, ar as useIntersectionObserver, as as useIsomorphicLayoutEffect, at as useKeyboardShortcut, au as useLazyQuery, av as useMultipleImageDimensions, aw as useMutation, ax as useOnlineStatus, ay as usePasswordVisibility, az as usePopover, aA as usePopoverHover, aB as useResponsiveQuery, aC as useScrollLock, aD as useScrollOffsetTop, aE as useScrollPosition, aF as useScrollToTop, aG as useSessionStorage, aH as useThrottle, aI as useThrottleCallback, aJ as useUpdateEffect, aK as useUpdateLayoutEffect, aL as useWindowSize } from '../index-odhPSv9I.js';
4
+ export { A as AsyncState, B as BreakpointChecks, a as Breakpoints, D as DOMRectValue, I as ImageDimensions, b as InfiniteFetchFn, c as InfinitePage, d as InfiniteScrollState, K as KeyboardShortcut, L as LazyQueryState, M as MutationState, P as PageInfo, S as ScrollElValue, e as ScrollPosition, U as UrlConfigValues, f as UseArrayReturn, g as UseAsyncFnReturn, h as UseAsyncOptions, i as UseAsyncReturn, j as UseBackToTopReturn, k as UseClientRectReturn, l as UseConfigFromQueryOptions, m as UseConfigFromQueryReturn, n as UseCookiesOptions, o as UseCookiesReturn, p as UseCountdownDateReturn, q as UseCountdownSecondsReturn, r as UseDoubleClickProps, s as UseDoubleClickReturn, t as UseFocusTrapOptions, u as UseFocusTrapReturn, v as UseImageDimensionsOptions, w as UseImageDimensionsReturn, x as UseInfiniteScrollOptions, y as UseInfiniteScrollReturn, z as UseIntersectionObserverOptions, E as UseIntersectionObserverReturn, F as UseKeyboardShortcutOptions, G as UseLazyQueryOptions, H as UseLazyQueryReturn, J as UseMutationOptions, N as UseMutationReturn, O as UseOnlineStatusReturn, Q as UsePasswordVisibilityOptions, R as UsePasswordVisibilityReturn, T as UsePopoverHoverReturn, V as UseResponsiveQueryReturn, W as UseScrollOffsetTopReturn, X as UseScrollPositionOptions, Y as UseSessionStorageOptions, Z as UseSessionStorageReturn, _ as UseThrottleOptions, $ as UseWindowSizeOptions, a0 as WindowSize, a5 as useArray, a6 as useAsync, a7 as useAsyncFn, a8 as useBackToTop, a9 as useBreakpoint, aa as useBreakpointChecks, ab as useClientRect, ac as useConfigFromQuery, ad as useCookies, ae as useCountdownDate, af as useCountdownSeconds, ag as useDoubleClick, ah as useEnterKey, ai as useEscapeKey, aj as useFocusTrap, ak as useImageDimensions, al as useInfiniteScroll, am as useIntersectionObserver, an as useIsomorphicLayoutEffect, ao as useKeyboardShortcut, ap as useLazyQuery, aq as useMultipleImageDimensions, ar as useMutation, as as useOnlineStatus, at as usePasswordVisibility, au as usePopoverHover, av as useResponsiveQuery, aw as useScrollLock, ax as useScrollOffsetTop, ay as useScrollPosition, az as useScrollToTop, aA as useSessionStorage, aB as useThrottle, aC as useThrottleCallback, aD as useUpdateEffect, aE as useUpdateLayoutEffect, aF as useWindowSize } from '../index-nmJ8Muwg.js';
5
+ export { U as UsePopoverReturn, u as usePopover } from '../popover-Dmw7SJLR.js';
5
6
  import '@mui/material/styles';
6
7
  import 'react';
7
8
  import '@mui/material/Popover';
@@ -1,6 +1,7 @@
1
- export { useArray, useAsync, useAsyncFn, useBackToTop, useBreakpoint, useBreakpointChecks, useClientRect, useConfigFromQuery, useCookies, useCountdownDate, useCountdownSeconds, useDoubleClick, useEnterKey, useEscapeKey, useFocusTrap, useImageDimensions, useInfiniteScroll, useIntersectionObserver, useIsomorphicLayoutEffect, useKeyboardShortcut, useLazyQuery, useMultipleImageDimensions, useMutation, useOnlineStatus, usePasswordVisibility, usePopover, usePopoverHover, useResponsiveQuery, useScrollLock, useScrollOffsetTop, useScrollPosition, useScrollToTop, useSessionStorage, useThrottle, useThrottleCallback, useUpdateEffect, useUpdateLayoutEffect, useWindowSize } from '../chunk-E3XANPTO.js';
2
- export { useBreakpoints, useClickOutside, useCopyToClipboard, useCountdown, useDebounce, useDebounceCallback, useEventListener, useInterval, useIsClient, useLocalStorage, useMuiMediaQuery as useMediaQuery, useMounted, useMultiSelect, usePrevious, useSetState, useTimeout } from '../chunk-WC2WM2JD.js';
3
- import '../chunk-DXXZ3ITR.js';
1
+ export { useArray, useAsync, useAsyncFn, useBackToTop, useBreakpoint, useBreakpointChecks, useClientRect, useConfigFromQuery, useCookies, useCountdownDate, useCountdownSeconds, useDoubleClick, useEnterKey, useEscapeKey, useFocusTrap, useImageDimensions, useInfiniteScroll, useIntersectionObserver, useIsomorphicLayoutEffect, useKeyboardShortcut, useLazyQuery, useMultipleImageDimensions, useMutation, useOnlineStatus, usePasswordVisibility, usePopoverHover, useResponsiveQuery, useScrollLock, useScrollOffsetTop, useScrollPosition, useScrollToTop, useSessionStorage, useThrottle, useThrottleCallback, useUpdateEffect, useUpdateLayoutEffect, useWindowSize } from '../chunk-IZOIO7PA.js';
2
+ export { usePopover } from '../chunk-2FYNRDXR.js';
3
+ export { useBreakpoints, useClickOutside, useCopyToClipboard, useCountdown, useDebounce, useDebounceCallback, useEventListener, useInterval, useIsClient, useLocalStorage, useMuiMediaQuery as useMediaQuery, useMounted, useMultiSelect, usePrevious, useSetState, useTimeout } from '../chunk-XXP3ZGU6.js';
4
+ import '../chunk-MEFT6XPH.js';
4
5
  import '../chunk-JDTC2SBY.js';
5
6
  export { useBoolean } from '../chunk-HO2GKTWJ.js';
6
7
  import '../chunk-XWL6J6IO.js';
@@ -1,131 +1,8 @@
1
- import { b as ThemePreset, a as ThemeMode, c as ThemeDirection, C as ComponentDensity } from './theme-CrXLfP1c.js';
1
+ import { q as ThemePreset, o as ThemeMode, n as ThemeDirection, f as ComponentDensity } from './theme-B4Q3Bg5o.js';
2
2
  import './use-timeout-D7U3EAtH.js';
3
3
  import '@mui/material';
4
- import { ReactNode, MouseEvent, Dispatch, SetStateAction, RefObject, SyntheticEvent, EffectCallback, DependencyList, useEffect } from 'react';
5
- import { PopoverProps } from '@mui/material/Popover';
6
- import { SxProps, Theme } from '@mui/material/styles';
7
-
8
- /**
9
- * Popover Component
10
- *
11
- * Enhanced popover component with arrow support and useful hook.
12
- *
13
- * @module @omnitron-dev/prism/components/popover
14
- */
15
-
16
- type ArrowPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-top' | 'left-center' | 'left-bottom' | 'right-top' | 'right-center' | 'right-bottom';
17
- interface PopoverArrowProps {
18
- /** Hide the arrow */
19
- hide?: boolean;
20
- /** Arrow size in pixels */
21
- size?: number;
22
- /** Offset from edge */
23
- offset?: number;
24
- /** Arrow placement */
25
- placement?: ArrowPlacement;
26
- /** Additional styles */
27
- sx?: SxProps<Theme>;
28
- }
29
- interface CustomPopoverProps extends Omit<PopoverProps, 'open'> {
30
- /** Whether the popover is open */
31
- open: boolean | Element | null;
32
- /** Close handler */
33
- onClose: () => void;
34
- /** Arrow configuration */
35
- arrow?: PopoverArrowProps;
36
- /** Minimum width of the popover */
37
- minWidth?: number | string;
38
- }
39
- /**
40
- * CustomPopover - Enhanced popover with arrow support.
41
- *
42
- * @example
43
- * ```tsx
44
- * const popover = usePopover();
45
- *
46
- * <Button onClick={popover.onOpen}>Open Menu</Button>
47
- *
48
- * <CustomPopover
49
- * open={popover.open}
50
- * onClose={popover.onClose}
51
- * anchorEl={popover.anchorEl}
52
- * arrow={{ placement: 'top-right' }}
53
- * >
54
- * <MenuItem>Option 1</MenuItem>
55
- * <MenuItem>Option 2</MenuItem>
56
- * </CustomPopover>
57
- * ```
58
- */
59
- declare function CustomPopover({ open, onClose, children, anchorEl, arrow, minWidth, slotProps, ...other }: CustomPopoverProps): ReactNode;
60
- /**
61
- * Return type for usePopover hook with generic element type.
62
- *
63
- * @typeParam T - The HTML element type (default: HTMLElement)
64
- */
65
- interface UsePopoverReturn<T extends HTMLElement = HTMLElement> {
66
- /** Whether the popover is open */
67
- open: boolean;
68
- /** The anchor element (typed to T) */
69
- anchorEl: T | null;
70
- /** Open the popover - accepts MouseEvent with typed currentTarget */
71
- onOpen: (event: MouseEvent<T>) => void;
72
- /** Close the popover */
73
- onClose: () => void;
74
- /** Set the anchor element directly (typed to T | null) */
75
- setAnchorEl: Dispatch<SetStateAction<T | null>>;
76
- }
77
- /**
78
- * usePopover - Generic hook for managing popover state.
79
- *
80
- * Type-safe hook that accepts a generic type parameter for the anchor element.
81
- * This ensures type safety when accessing `event.currentTarget` and `anchorEl`.
82
- *
83
- * @typeParam T - The HTML element type (default: HTMLElement)
84
- * @returns Popover state and controls with typed elements
85
- *
86
- * @example
87
- * ```tsx
88
- * // Basic usage with default HTMLElement
89
- * function MenuButton() {
90
- * const popover = usePopover();
91
- *
92
- * return (
93
- * <>
94
- * <IconButton onClick={popover.onOpen}>
95
- * <MoreVertIcon />
96
- * </IconButton>
97
- *
98
- * <CustomPopover
99
- * open={popover.open}
100
- * onClose={popover.onClose}
101
- * anchorEl={popover.anchorEl}
102
- * >
103
- * <MenuItem onClick={popover.onClose}>Edit</MenuItem>
104
- * <MenuItem onClick={popover.onClose}>Delete</MenuItem>
105
- * </CustomPopover>
106
- * </>
107
- * );
108
- * }
109
- *
110
- * // Type-safe usage with specific element type
111
- * function TypedButton() {
112
- * const popover = usePopover<HTMLButtonElement>();
113
- *
114
- * // TypeScript knows anchorEl is HTMLButtonElement | null
115
- * // and onOpen accepts MouseEvent<HTMLButtonElement>
116
- *
117
- * return (
118
- * <>
119
- * <button onClick={popover.onOpen}>Click me</button>
120
- * <Popover open={popover.open} anchorEl={popover.anchorEl} onClose={popover.onClose}>
121
- * Content here
122
- * </Popover>
123
- * </>
124
- * );
125
- * }
126
- * ```
127
- */
128
- declare function usePopover<T extends HTMLElement = HTMLElement>(): UsePopoverReturn<T>;
4
+ import { RefObject, Dispatch, SetStateAction, SyntheticEvent, MouseEvent, EffectCallback, DependencyList, useEffect } from 'react';
5
+ import './popover-Dmw7SJLR.js';
129
6
 
130
7
  /**
131
8
  * Cookie Utilities
@@ -2488,4 +2365,4 @@ type InfiniteFetchFn<TData> = (params: {
2488
2365
  */
2489
2366
  declare function useInfiniteScroll<TData = unknown, TError = Error>(fetchFn: InfiniteFetchFn<TData>, options?: UseInfiniteScrollOptions<TData, TError>): UseInfiniteScrollReturn<TData, TError>;
2490
2367
 
2491
- export { type UseScrollOffsetTopReturn as $, type ArrowPlacement as A, type BreakpointChecks as B, type CookieOptions as C, type DOMRectValue as D, type UseImageDimensionsReturn as E, type UseInfiniteScrollOptions as F, type UseInfiniteScrollReturn as G, type UseIntersectionObserverOptions as H, type ImageDimensions as I, type UseIntersectionObserverReturn as J, type KeyboardShortcut as K, type LazyQueryState as L, type MutationState as M, type UseKeyboardShortcutOptions as N, type UseLazyQueryOptions as O, type PageInfo as P, type UseLazyQueryReturn as Q, type UseMutationOptions as R, type ScrollElValue as S, type UseMutationReturn as T, type UrlConfigValues as U, type UseOnlineStatusReturn as V, type UsePasswordVisibilityOptions as W, type UsePasswordVisibilityReturn as X, type UsePopoverHoverReturn as Y, type UsePopoverReturn as Z, type UseResponsiveQueryReturn as _, type AsyncState as a, type UseScrollPositionOptions as a0, type UseSessionStorageOptions as a1, type UseSessionStorageReturn as a2, type UseThrottleOptions as a3, type UseWindowSizeOptions as a4, type WindowSize as a5, cookiesAvailable as a6, getCookie as a7, removeCookie as a8, setCookie as a9, usePopoverHover as aA, useResponsiveQuery as aB, useScrollLock as aC, useScrollOffsetTop as aD, useScrollPosition as aE, useScrollToTop as aF, useSessionStorage as aG, useThrottle as aH, useThrottleCallback as aI, useUpdateEffect as aJ, useUpdateLayoutEffect as aK, useWindowSize as aL, useArray as aa, useAsync as ab, useAsyncFn as ac, useBackToTop as ad, useBreakpoint as ae, useBreakpointChecks as af, useClientRect as ag, useConfigFromQuery as ah, useCookies as ai, useCountdownDate as aj, useCountdownSeconds as ak, useDoubleClick as al, useEnterKey as am, useEscapeKey as an, useFocusTrap as ao, useImageDimensions as ap, useInfiniteScroll as aq, useIntersectionObserver as ar, useIsomorphicLayoutEffect as as, useKeyboardShortcut as at, useLazyQuery as au, useMultipleImageDimensions as av, useMutation as aw, useOnlineStatus as ax, usePasswordVisibility as ay, usePopover as az, type Breakpoints as b, CustomPopover as c, type CustomPopoverProps as d, type InfiniteFetchFn as e, type InfinitePage as f, type InfiniteScrollState as g, type PopoverArrowProps as h, type ScrollPosition as i, type UseArrayReturn as j, type UseAsyncFnReturn as k, type UseAsyncOptions as l, type UseAsyncReturn as m, type UseBackToTopReturn as n, type UseClientRectReturn as o, type UseConfigFromQueryOptions as p, type UseConfigFromQueryReturn as q, type UseCookiesOptions as r, type UseCookiesReturn as s, type UseCountdownDateReturn as t, type UseCountdownSecondsReturn as u, type UseDoubleClickProps as v, type UseDoubleClickReturn as w, type UseFocusTrapOptions as x, type UseFocusTrapReturn as y, type UseImageDimensionsOptions as z };
2368
+ export { type UseWindowSizeOptions as $, type AsyncState as A, type BreakpointChecks as B, type CookieOptions as C, type DOMRectValue as D, type UseIntersectionObserverReturn as E, type UseKeyboardShortcutOptions as F, type UseLazyQueryOptions as G, type UseLazyQueryReturn as H, type ImageDimensions as I, type UseMutationOptions as J, type KeyboardShortcut as K, type LazyQueryState as L, type MutationState as M, type UseMutationReturn as N, type UseOnlineStatusReturn as O, type PageInfo as P, type UsePasswordVisibilityOptions as Q, type UsePasswordVisibilityReturn as R, type ScrollElValue as S, type UsePopoverHoverReturn as T, type UrlConfigValues as U, type UseResponsiveQueryReturn as V, type UseScrollOffsetTopReturn as W, type UseScrollPositionOptions as X, type UseSessionStorageOptions as Y, type UseSessionStorageReturn as Z, type UseThrottleOptions as _, type Breakpoints as a, type WindowSize as a0, cookiesAvailable as a1, getCookie as a2, removeCookie as a3, setCookie as a4, useArray as a5, useAsync as a6, useAsyncFn as a7, useBackToTop as a8, useBreakpoint as a9, useSessionStorage as aA, useThrottle as aB, useThrottleCallback as aC, useUpdateEffect as aD, useUpdateLayoutEffect as aE, useWindowSize as aF, useBreakpointChecks as aa, useClientRect as ab, useConfigFromQuery as ac, useCookies as ad, useCountdownDate as ae, useCountdownSeconds as af, useDoubleClick as ag, useEnterKey as ah, useEscapeKey as ai, useFocusTrap as aj, useImageDimensions as ak, useInfiniteScroll as al, useIntersectionObserver as am, useIsomorphicLayoutEffect as an, useKeyboardShortcut as ao, useLazyQuery as ap, useMultipleImageDimensions as aq, useMutation as ar, useOnlineStatus as as, usePasswordVisibility as at, usePopoverHover as au, useResponsiveQuery as av, useScrollLock as aw, useScrollOffsetTop as ax, useScrollPosition as ay, useScrollToTop as az, type InfiniteFetchFn as b, type InfinitePage as c, type InfiniteScrollState as d, type ScrollPosition as e, type UseArrayReturn as f, type UseAsyncFnReturn as g, type UseAsyncOptions as h, type UseAsyncReturn as i, type UseBackToTopReturn as j, type UseClientRectReturn as k, type UseConfigFromQueryOptions as l, type UseConfigFromQueryReturn as m, type UseCookiesOptions as n, type UseCookiesReturn as o, type UseCountdownDateReturn as p, type UseCountdownSecondsReturn as q, type UseDoubleClickProps as r, type UseDoubleClickReturn as s, type UseFocusTrapOptions as t, type UseFocusTrapReturn as u, type UseImageDimensionsOptions as v, type UseImageDimensionsReturn as w, type UseInfiniteScrollOptions as x, type UseInfiniteScrollReturn as y, type UseIntersectionObserverOptions as z };