@omnitron-dev/prism 0.1.1

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 (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -0
  3. package/bin/prism.js +13 -0
  4. package/dist/accessibility/index.d.ts +157 -0
  5. package/dist/accessibility/index.js +186 -0
  6. package/dist/accessibility/index.js.map +1 -0
  7. package/dist/blocks/index.d.ts +1239 -0
  8. package/dist/blocks/index.js +1712 -0
  9. package/dist/blocks/index.js.map +1 -0
  10. package/dist/chunk-77KIJLPP.js +37 -0
  11. package/dist/chunk-77KIJLPP.js.map +1 -0
  12. package/dist/chunk-BTIT7WYH.js +339 -0
  13. package/dist/chunk-BTIT7WYH.js.map +1 -0
  14. package/dist/chunk-BV32OJ2A.js +1409 -0
  15. package/dist/chunk-BV32OJ2A.js.map +1 -0
  16. package/dist/chunk-DDY7TLUI.js +139 -0
  17. package/dist/chunk-DDY7TLUI.js.map +1 -0
  18. package/dist/chunk-DXXZ3ITR.js +4227 -0
  19. package/dist/chunk-DXXZ3ITR.js.map +1 -0
  20. package/dist/chunk-E3XANPTO.js +2319 -0
  21. package/dist/chunk-E3XANPTO.js.map +1 -0
  22. package/dist/chunk-FU52GL2E.js +3 -0
  23. package/dist/chunk-FU52GL2E.js.map +1 -0
  24. package/dist/chunk-GYDT5EKX.js +16505 -0
  25. package/dist/chunk-GYDT5EKX.js.map +1 -0
  26. package/dist/chunk-HO2GKTWJ.js +28 -0
  27. package/dist/chunk-HO2GKTWJ.js.map +1 -0
  28. package/dist/chunk-JDTC2SBY.js +140 -0
  29. package/dist/chunk-JDTC2SBY.js.map +1 -0
  30. package/dist/chunk-JNU4QHJK.js +6 -0
  31. package/dist/chunk-JNU4QHJK.js.map +1 -0
  32. package/dist/chunk-LAEY5USO.js +2621 -0
  33. package/dist/chunk-LAEY5USO.js.map +1 -0
  34. package/dist/chunk-UR6X3W5I.js +530 -0
  35. package/dist/chunk-UR6X3W5I.js.map +1 -0
  36. package/dist/chunk-WC2WM2JD.js +883 -0
  37. package/dist/chunk-WC2WM2JD.js.map +1 -0
  38. package/dist/chunk-XWL6J6IO.js +40 -0
  39. package/dist/chunk-XWL6J6IO.js.map +1 -0
  40. package/dist/cli/index.js +2695 -0
  41. package/dist/cli/index.js.map +1 -0
  42. package/dist/config-BA6IeTq9.d.ts +100 -0
  43. package/dist/core/index.d.ts +454 -0
  44. package/dist/core/index.js +9 -0
  45. package/dist/core/index.js.map +1 -0
  46. package/dist/forms/index.d.ts +562 -0
  47. package/dist/forms/index.js +545 -0
  48. package/dist/forms/index.js.map +1 -0
  49. package/dist/hooks/index.d.ts +7 -0
  50. package/dist/hooks/index.js +10 -0
  51. package/dist/hooks/index.js.map +1 -0
  52. package/dist/http/index.d.ts +233 -0
  53. package/dist/http/index.js +282 -0
  54. package/dist/http/index.js.map +1 -0
  55. package/dist/index-odhPSv9I.d.ts +2491 -0
  56. package/dist/index.css +131 -0
  57. package/dist/index.css.map +1 -0
  58. package/dist/index.d.ts +9109 -0
  59. package/dist/index.js +13280 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/layouts/index.d.ts +854 -0
  62. package/dist/layouts/index.js +6 -0
  63. package/dist/layouts/index.js.map +1 -0
  64. package/dist/netron/index.d.ts +4 -0
  65. package/dist/netron/index.js +4 -0
  66. package/dist/netron/index.js.map +1 -0
  67. package/dist/registry/index.d.ts +352 -0
  68. package/dist/registry/index.js +4 -0
  69. package/dist/registry/index.js.map +1 -0
  70. package/dist/registry-BrDNftd5.d.ts +574 -0
  71. package/dist/settings-plpR26Xk.d.ts +455 -0
  72. package/dist/state/index.d.ts +981 -0
  73. package/dist/state/index.js +5 -0
  74. package/dist/state/index.js.map +1 -0
  75. package/dist/theme/index.d.ts +1049 -0
  76. package/dist/theme/index.js +5 -0
  77. package/dist/theme/index.js.map +1 -0
  78. package/dist/theme-CrXLfP1c.d.ts +389 -0
  79. package/dist/types/index.d.ts +146 -0
  80. package/dist/types/index.js +5 -0
  81. package/dist/types/index.js.map +1 -0
  82. package/dist/use-timeout-D7U3EAtH.d.ts +808 -0
  83. package/package.json +194 -0
@@ -0,0 +1,5 @@
1
+ export { applyPrimaryOverride, cssVariables, defaultPreset, generateCssVariables, generatePaletteChannel, getPreset, luxuryPreset, presetNames } from '../chunk-UR6X3W5I.js';
2
+ export { COLOR_GROUPS, PRESET_DISPLAY_NAMES, PRESET_INHERENT_MODE, PRESET_NAMES, arcticPreset, baseColors, basic, blue, buildAction, buildBackground, buildChartColors, buildPalette, buildPaletteColor, buildText, buildVibrant, componentOverrides, createButtonBaseOverrides, createButtonGroupOverrides, createButtonOverrides, createPaletteColorFromScale, createPrismTheme, createShadows, createTypography, cssVarRgba, customScrollbarMixin, darkShadow, darken, defaultDarkPalette, defaultLightPalette, focusRingMixin, generateColorScale, generateColorScaleWithChannels, generatePaletteColorWithChannels, getContrastRatio, getContrastText, getLuminance, getPresetDisplayName, glassMixin, green, grey, hexToHsl, hexToRgb, hexToRgbChannel, hideScrollbarMixin, hslToHex, invertColorScale, isLightColor, lightBlue, lighten, luxuryColors, luxuryError, luxuryInfo, luxuryNeutral, luxuryPrimary, luxurySecondary, luxurySuccess, luxuryWarning, mix, mixins, multiLineEllipsisMixin, orange, purple, red, rgbToHex, rgba, shadows, textEllipsisMixin, typography } from '../chunk-DXXZ3ITR.js';
3
+ import '../chunk-77KIJLPP.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,389 @@
1
+ import { Theme, ThemeOptions } from '@mui/material/styles';
2
+
3
+ /**
4
+ * Theme Type Definitions
5
+ *
6
+ * Enhanced theme types combining the best of Aurora and Prism architectures:
7
+ * - Aurora: 11-shade color scales, elevation levels, channel generation, vibrant colors
8
+ * - Prism: Density system, preset definitions, CSS variables integration
9
+ *
10
+ * @module @omnitron-dev/prism/types/theme
11
+ */
12
+
13
+ /**
14
+ * Available theme presets.
15
+ * Light-optimized: default-light, luxury, retro, arctic, nature
16
+ * Dark-optimized: default-dark, ember, dracula, midnight
17
+ */
18
+ type ThemePreset = 'default-light' | 'default-dark' | 'luxury' | 'arctic' | 'nature' | 'ember' | 'dracula' | 'midnight' | 'retro' | 'minimal';
19
+ /**
20
+ * Theme mode (light/dark/system).
21
+ */
22
+ type ThemeMode = 'light' | 'dark' | 'system';
23
+ /**
24
+ * Text direction.
25
+ */
26
+ type ThemeDirection = 'ltr' | 'rtl';
27
+ /**
28
+ * Component density.
29
+ */
30
+ type ComponentDensity = 'compact' | 'standard' | 'comfortable';
31
+ /**
32
+ * Standard color shade keys (50-950).
33
+ * Provides granular control for UI states and accessibility.
34
+ */
35
+ type ColorShadeKey = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
36
+ /**
37
+ * Full 11-shade color scale.
38
+ */
39
+ type ColorScale = Record<ColorShadeKey, string>;
40
+ /**
41
+ * Color scale with computed RGB channel values for alpha compositing.
42
+ * Each color gets a `${shade}Channel` variant (e.g., `500Channel: "51 102 255"`).
43
+ */
44
+ type ColorScaleWithChannels = ColorScale & {
45
+ [K in ColorShadeKey as `${K}Channel`]: string;
46
+ };
47
+ /**
48
+ * Semantic palette color (primary, secondary, error, etc.).
49
+ * Uses 5-shade semantic naming for convenience, mapped from 11-shade scale.
50
+ */
51
+ interface PaletteColor {
52
+ /** Lightest shade (mapped from scale 50) */
53
+ lighter: string;
54
+ /** Light shade (mapped from scale 300-400) */
55
+ light: string;
56
+ /** Main shade (mapped from scale 500) */
57
+ main: string;
58
+ /** Dark shade (mapped from scale 600-700) */
59
+ dark: string;
60
+ /** Darkest shade (mapped from scale 900) */
61
+ darker: string;
62
+ /** Text color for contrast */
63
+ contrastText: string;
64
+ }
65
+ /**
66
+ * Palette color with channel values for alpha compositing.
67
+ */
68
+ interface PaletteColorWithChannels extends PaletteColor {
69
+ lighterChannel: string;
70
+ lightChannel: string;
71
+ mainChannel: string;
72
+ darkChannel: string;
73
+ darkerChannel: string;
74
+ contrastTextChannel: string;
75
+ }
76
+ /**
77
+ * Background configuration with elevation levels.
78
+ * Elevation levels are crucial for proper card stacking and visual hierarchy.
79
+ */
80
+ interface BackgroundPalette {
81
+ /** Default background (body) */
82
+ default: string;
83
+ /** Paper/card background */
84
+ paper: string;
85
+ /** Neutral background (subtle) */
86
+ neutral: string;
87
+ /** Elevation level 1 (e.g., cards) */
88
+ elevation1: string;
89
+ /** Elevation level 2 (e.g., dropdowns) */
90
+ elevation2: string;
91
+ /** Elevation level 3 (e.g., modals) */
92
+ elevation3: string;
93
+ /** Elevation level 4 (e.g., tooltips) */
94
+ elevation4: string;
95
+ /** Menu background */
96
+ menu: string;
97
+ /** Menu elevation 1 */
98
+ menuElevation1: string;
99
+ /** Menu elevation 2 */
100
+ menuElevation2: string;
101
+ }
102
+ /**
103
+ * Text color configuration.
104
+ */
105
+ interface TextPalette {
106
+ primary: string;
107
+ secondary: string;
108
+ disabled: string;
109
+ }
110
+ /**
111
+ * Action state colors.
112
+ */
113
+ interface ActionPalette {
114
+ active: string;
115
+ hover: string;
116
+ selected: string;
117
+ disabled: string;
118
+ disabledBackground: string;
119
+ focus: string;
120
+ }
121
+ /**
122
+ * Vibrant/overlay colors for special UI states.
123
+ */
124
+ interface VibrantPalette {
125
+ /** List item hover overlay */
126
+ listItemHover: string;
127
+ /** Button hover overlay */
128
+ buttonHover: string;
129
+ /** TextField hover overlay */
130
+ textFieldHover: string;
131
+ /** Text colors for vibrant backgrounds */
132
+ text: {
133
+ secondary: string;
134
+ disabled: string;
135
+ };
136
+ /** General overlay */
137
+ overlay: string;
138
+ }
139
+ /**
140
+ * Chart/visualization color palette with full scales.
141
+ * Prefixed with 'ch' (chart) to avoid conflicts with semantic colors.
142
+ */
143
+ interface ChartPalette {
144
+ /** Grey scale for charts */
145
+ chGrey: ColorScaleWithChannels;
146
+ /** Red scale for charts */
147
+ chRed: ColorScaleWithChannels;
148
+ /** Blue scale for charts */
149
+ chBlue: ColorScaleWithChannels;
150
+ /** Green scale for charts */
151
+ chGreen: ColorScaleWithChannels;
152
+ /** Orange scale for charts */
153
+ chOrange: ColorScaleWithChannels;
154
+ /** Light blue scale for charts */
155
+ chLightBlue: ColorScaleWithChannels;
156
+ /** Purple scale for charts */
157
+ chPurple: ColorScaleWithChannels;
158
+ }
159
+ /**
160
+ * Grey scale configuration.
161
+ */
162
+ type GreyScale = Record<ColorShadeKey, string>;
163
+ /**
164
+ * Common colors (black & white).
165
+ */
166
+ interface CommonColors {
167
+ black: string;
168
+ white: string;
169
+ }
170
+ /**
171
+ * Full palette definition combining all color systems.
172
+ */
173
+ interface ThemePalette {
174
+ primary: PaletteColorWithChannels;
175
+ secondary: PaletteColorWithChannels;
176
+ info: PaletteColorWithChannels;
177
+ success: PaletteColorWithChannels;
178
+ warning: PaletteColorWithChannels;
179
+ error: PaletteColorWithChannels;
180
+ neutral: PaletteColorWithChannels;
181
+ grey: ColorScaleWithChannels;
182
+ common: CommonColors & {
183
+ blackChannel: string;
184
+ whiteChannel: string;
185
+ };
186
+ background: BackgroundPalette;
187
+ text: TextPalette & {
188
+ primaryChannel: string;
189
+ secondaryChannel: string;
190
+ disabledChannel: string;
191
+ };
192
+ action: ActionPalette;
193
+ divider: string;
194
+ dividerLight: string;
195
+ menuDivider: string;
196
+ vibrant: VibrantPalette;
197
+ chart: ChartPalette;
198
+ }
199
+ /**
200
+ * Typography configuration.
201
+ */
202
+ interface ThemeTypography {
203
+ fontFamily: {
204
+ primary: string;
205
+ secondary?: string;
206
+ mono?: string;
207
+ };
208
+ fontWeights: {
209
+ light: number;
210
+ regular: number;
211
+ medium: number;
212
+ semiBold: number;
213
+ bold: number;
214
+ };
215
+ }
216
+ /**
217
+ * CSS variables configuration.
218
+ */
219
+ interface CssVariablesConfig {
220
+ /** Prefix for CSS variables (e.g., 'prism' -> '--prism-primary') */
221
+ prefix: string;
222
+ /** Attribute selector for color scheme (e.g., 'data-prism-color-scheme') */
223
+ colorSchemeSelector: string;
224
+ /** Whether to enable CSS variables */
225
+ enabled: boolean;
226
+ }
227
+ /**
228
+ * Components configuration.
229
+ */
230
+ interface ComponentsConfig {
231
+ /** Component density */
232
+ density: ComponentDensity;
233
+ /** Default border radius in pixels */
234
+ borderRadius: number;
235
+ /** Button style */
236
+ buttonStyle: 'contained' | 'outlined' | 'text';
237
+ }
238
+ /**
239
+ * Theme configuration options.
240
+ */
241
+ interface ThemeConfig {
242
+ /** Theme preset */
243
+ preset: ThemePreset;
244
+ /** Color mode */
245
+ mode: ThemeMode;
246
+ /** Text direction */
247
+ direction: ThemeDirection;
248
+ /** Override primary color (hex) */
249
+ primaryColor?: string | null;
250
+ /** Typography settings */
251
+ typography?: Partial<ThemeTypography>;
252
+ /** CSS variables settings */
253
+ cssVariables?: Partial<CssVariablesConfig>;
254
+ /** Components settings */
255
+ components?: Partial<ComponentsConfig>;
256
+ /** Custom MUI theme overrides */
257
+ overrides?: ThemeOptions;
258
+ }
259
+ /**
260
+ * Color group for primary color override system.
261
+ */
262
+ interface ColorGroup {
263
+ /** Unique key for the color group */
264
+ key: string;
265
+ /** Main color (hex) */
266
+ main: string;
267
+ /** Full color palette (optional) */
268
+ palette?: ColorScale;
269
+ }
270
+ /**
271
+ * Simple palette color (without channel values).
272
+ * Used for preset definitions where channels are generated at runtime.
273
+ */
274
+ interface SimplePaletteColor {
275
+ lighter: string;
276
+ light: string;
277
+ main: string;
278
+ dark: string;
279
+ darker: string;
280
+ contrastText: string;
281
+ }
282
+ /**
283
+ * Simple preset palette definition.
284
+ * Channels and complex values are generated at runtime.
285
+ */
286
+ interface PresetPalette {
287
+ primary: SimplePaletteColor;
288
+ secondary: SimplePaletteColor;
289
+ info: SimplePaletteColor;
290
+ success: SimplePaletteColor;
291
+ warning: SimplePaletteColor;
292
+ error: SimplePaletteColor;
293
+ neutral?: SimplePaletteColor;
294
+ grey: Partial<Record<ColorShadeKey, string>>;
295
+ common: CommonColors;
296
+ background: {
297
+ default: string;
298
+ paper: string;
299
+ neutral: string;
300
+ };
301
+ text: TextPalette;
302
+ divider?: string;
303
+ }
304
+ /**
305
+ * Theme preset definition.
306
+ */
307
+ interface ThemePresetDefinition {
308
+ /** Preset identifier */
309
+ name: ThemePreset;
310
+ /** Human-readable name */
311
+ displayName: string;
312
+ /** Description */
313
+ description: string;
314
+ /** Color mode this preset is optimized for */
315
+ preferredMode: ThemeMode;
316
+ /** Palette for light mode (simple format, channels generated at runtime) */
317
+ lightPalette?: PresetPalette;
318
+ /** Palette for dark mode (simple format, channels generated at runtime) */
319
+ darkPalette?: PresetPalette;
320
+ /** Typography settings */
321
+ typography: ThemeTypography;
322
+ /** Color group for primary override matching */
323
+ colorGroup: ColorGroup;
324
+ }
325
+ /**
326
+ * Extended MUI Theme with Prism additions.
327
+ */
328
+ interface PrismTheme extends Theme {
329
+ prism: {
330
+ preset: ThemePreset;
331
+ mode: ThemeMode;
332
+ direction: ThemeDirection;
333
+ density: ComponentDensity;
334
+ cssVariables: CssVariablesConfig;
335
+ /** Density-based spacing multiplier */
336
+ densityMultiplier: number;
337
+ };
338
+ }
339
+ /**
340
+ * Theme context value.
341
+ */
342
+ interface ThemeContextValue {
343
+ theme: PrismTheme;
344
+ mode: ThemeMode;
345
+ setMode: (mode: ThemeMode) => void;
346
+ toggleMode: () => void;
347
+ preset: ThemePreset;
348
+ setPreset: (preset: ThemePreset) => void;
349
+ direction: ThemeDirection;
350
+ setDirection: (direction: ThemeDirection) => void;
351
+ density: ComponentDensity;
352
+ setDensity: (density: ComponentDensity) => void;
353
+ primaryColor: string | null;
354
+ setPrimaryColor: (color: string | null) => void;
355
+ }
356
+ declare module '@mui/material/styles' {
357
+ interface Theme {
358
+ prism: PrismTheme['prism'];
359
+ }
360
+ interface ThemeOptions {
361
+ prism?: Partial<PrismTheme['prism']>;
362
+ }
363
+ interface Palette {
364
+ neutral: PaletteColorWithChannels;
365
+ vibrant: VibrantPalette;
366
+ chart: ChartPalette;
367
+ dividerLight: string;
368
+ menuDivider: string;
369
+ }
370
+ interface PaletteOptions {
371
+ neutral?: Partial<PaletteColorWithChannels>;
372
+ vibrant?: Partial<VibrantPalette>;
373
+ chart?: Partial<ChartPalette>;
374
+ dividerLight?: string;
375
+ menuDivider?: string;
376
+ }
377
+ interface TypeBackground {
378
+ neutral: string;
379
+ elevation1: string;
380
+ elevation2: string;
381
+ elevation3: string;
382
+ elevation4: string;
383
+ menu: string;
384
+ menuElevation1: string;
385
+ menuElevation2: string;
386
+ }
387
+ }
388
+
389
+ export type { ActionPalette as A, BackgroundPalette as B, ComponentDensity as C, GreyScale as G, PaletteColor as P, SimplePaletteColor as S, ThemeConfig as T, VibrantPalette as V, ThemeMode as a, ThemePreset as b, ThemeDirection as c, ThemePresetDefinition as d, ChartPalette as e, ColorGroup as f, ColorScale as g, ColorScaleWithChannels as h, ColorShadeKey as i, CommonColors as j, ComponentsConfig as k, CssVariablesConfig as l, PaletteColorWithChannels as m, PresetPalette as n, PrismTheme as o, TextPalette as p, ThemeContextValue as q, ThemePalette as r, ThemeTypography as s };
@@ -0,0 +1,146 @@
1
+ export { A as ActionPalette, B as BackgroundPalette, e as ChartPalette, f as ColorGroup, g as ColorScale, h as ColorScaleWithChannels, i as ColorShadeKey, j as CommonColors, C as ComponentDensity, k as ComponentsConfig, l as CssVariablesConfig, G as GreyScale, P as PaletteColor, m as PaletteColorWithChannels, n as PresetPalette, o as PrismTheme, S as SimplePaletteColor, p as TextPalette, T as ThemeConfig, q as ThemeContextValue, c as ThemeDirection, a as ThemeMode, r as ThemePalette, b as ThemePreset, d as ThemePresetDefinition, s as ThemeTypography, V as VibrantPalette } from '../theme-CrXLfP1c.js';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { ReactNode, ElementType, ComponentPropsWithoutRef } from 'react';
4
+ export { A as AuthContextValue, c as AuthProviderType, d as AuthState, e as AuthUser, f as BlockCategory, g as BlockConfig, B as BlockDefinition, h as BlockDependencies, i as BlockFile, j as BlockFileType, k as BlockNavItem, l as BlockNavSection, C as ComponentDefinition, m as ComponentDependencies, n as ComponentFile, o as ComponentFileType, D as DashboardBlockProps, p as DashboardNavType, q as DataGridProps, F as FormFieldSchema, r as FormFieldType, s as FormSchema, t as FormSectionSchema, G as GridCellParams, u as GridColumn, v as GridFilterItem, w as GridFilterModel, x as GridHeaderParams, y as GridSortModel, b as InstalledBlock, I as InstalledComponent, P as PrismLockfile, R as RegistryConfig, a as RegistrySchema, z as RemoteRegistryConfig, S as SidebarNavVariant, T as ThemeRegistryEntry, E as TopbarNavVariant } from '../registry-BrDNftd5.js';
5
+ export { D as DefineConfigFn, F as FeaturesConfig, P as PartialPrismConfig, a as PathsConfig, b as PrismConfig, c as PrismConfigFile, S as StyleConfig, d as StyleFramework, e as defaultPrismConfig } from '../config-BA6IeTq9.js';
6
+ import '@mui/material/styles';
7
+
8
+ /**
9
+ * Component Type Definitions
10
+ *
11
+ * @module @omnitron-dev/prism/types/components
12
+ */
13
+
14
+ /**
15
+ * Component size variants.
16
+ */
17
+ type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
18
+ /**
19
+ * Component color variants.
20
+ */
21
+ type ComponentColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
22
+ /**
23
+ * Button variants.
24
+ */
25
+ type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
26
+ /**
27
+ * Base props for polymorphic components.
28
+ */
29
+ type PolymorphicComponentProps<C extends ElementType, Props = object> = Props & Omit<ComponentPropsWithoutRef<C>, keyof Props> & {
30
+ as?: C;
31
+ };
32
+ /**
33
+ * Slot props for component customization.
34
+ */
35
+ interface SlotProps<T = object> {
36
+ /** Custom slot content */
37
+ slotProps?: {
38
+ root?: T;
39
+ [key: string]: T | undefined;
40
+ };
41
+ }
42
+ /**
43
+ * Common component props.
44
+ */
45
+ interface CommonComponentProps {
46
+ /** Additional CSS classes */
47
+ className?: string;
48
+ /** Inline styles */
49
+ style?: React.CSSProperties;
50
+ /** Component children */
51
+ children?: ReactNode;
52
+ /** Disabled state */
53
+ disabled?: boolean;
54
+ /** Loading state */
55
+ loading?: boolean;
56
+ }
57
+ /**
58
+ * Props for components with icon support.
59
+ */
60
+ interface WithIconProps {
61
+ /** Icon at start */
62
+ startIcon?: ReactNode;
63
+ /** Icon at end */
64
+ endIcon?: ReactNode;
65
+ /** Icon only (no text) */
66
+ iconOnly?: boolean;
67
+ }
68
+ /**
69
+ * Props for form field components.
70
+ */
71
+ interface FormFieldProps {
72
+ /** Field name for form registration */
73
+ name: string;
74
+ /** Field label */
75
+ label?: ReactNode;
76
+ /** Helper text */
77
+ helperText?: ReactNode;
78
+ /** Required field */
79
+ required?: boolean;
80
+ /** Error state */
81
+ error?: boolean;
82
+ /** Error message */
83
+ errorMessage?: string;
84
+ /** Full width */
85
+ fullWidth?: boolean;
86
+ }
87
+ /**
88
+ * Props for input components.
89
+ */
90
+ interface InputProps extends FormFieldProps {
91
+ /** Placeholder text */
92
+ placeholder?: string;
93
+ /** Input type */
94
+ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
95
+ /** Auto-focus */
96
+ autoFocus?: boolean;
97
+ /** Auto-complete */
98
+ autoComplete?: string;
99
+ /** Read-only */
100
+ readOnly?: boolean;
101
+ }
102
+ /**
103
+ * Props for select/dropdown components.
104
+ */
105
+ interface SelectOption<T = string> {
106
+ /** Option value */
107
+ value: T;
108
+ /** Display label */
109
+ label: string;
110
+ /** Disabled option */
111
+ disabled?: boolean;
112
+ /** Group name for grouped options */
113
+ group?: string;
114
+ /** Optional icon */
115
+ icon?: ReactNode;
116
+ }
117
+ /**
118
+ * Props for data display components.
119
+ */
120
+ interface DataDisplayProps<T = unknown> {
121
+ /** Data to display */
122
+ data: T;
123
+ /** Loading state */
124
+ loading?: boolean;
125
+ /** Error state */
126
+ error?: Error | null;
127
+ /** Empty state message */
128
+ emptyMessage?: string;
129
+ }
130
+ /**
131
+ * Props for layout components.
132
+ */
133
+ interface LayoutProps {
134
+ /** Gap between items */
135
+ gap?: number | string;
136
+ /** Padding */
137
+ padding?: number | string;
138
+ /** Max width */
139
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
140
+ }
141
+ /**
142
+ * Extract variant props from cva definition.
143
+ */
144
+ type ExtractVariantProps<T extends (...args: unknown[]) => unknown> = VariantProps<T>;
145
+
146
+ export type { ButtonVariant, CommonComponentProps, ComponentColor, ComponentSize, DataDisplayProps, ExtractVariantProps, FormFieldProps, InputProps, LayoutProps, PolymorphicComponentProps, SelectOption, SlotProps, WithIconProps };
@@ -0,0 +1,5 @@
1
+ import '../chunk-FU52GL2E.js';
2
+ export { defaultPrismConfig } from '../chunk-XWL6J6IO.js';
3
+ import '../chunk-77KIJLPP.js';
4
+ //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}