lucent-ui 0.34.0 → 0.36.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 (26) hide show
  1. package/dist/{LucentProvider-BoiXYqA4.js → LucentProvider-F0EN_7TD.js} +292 -269
  2. package/dist/LucentProvider-LqNc0AxD.cjs +109 -0
  3. package/dist/devtools.cjs +3 -3
  4. package/dist/devtools.js +423 -405
  5. package/dist/index.cjs +34 -32
  6. package/dist/index.d.ts +16 -13
  7. package/dist/index.js +947 -922
  8. package/dist-cli/cli/entry.js +0 -0
  9. package/dist-cli/cli/index.js +0 -0
  10. package/dist-server/server/index.js +0 -0
  11. package/dist-server/src/components/atoms/CodeBlock/CodeBlock.manifest.js +14 -0
  12. package/dist-server/src/components/molecules/Card/Card.manifest.js +1 -1
  13. package/dist-server/src/components/molecules/PageLayout/PageLayout.manifest.js +6 -5
  14. package/package.json +13 -15
  15. package/dist/LucentProvider-we0nRXn-.cjs +0 -109
  16. package/dist-server/server/recipe-registry.js +0 -18
  17. package/dist-server/src/manifest/recipes/action-bar.recipe.js +0 -91
  18. package/dist-server/src/manifest/recipes/collapsible-card.recipe.js +0 -100
  19. package/dist-server/src/manifest/recipes/empty-state-card.recipe.js +0 -72
  20. package/dist-server/src/manifest/recipes/form-layout.recipe.js +0 -98
  21. package/dist-server/src/manifest/recipes/index.js +0 -8
  22. package/dist-server/src/manifest/recipes/profile-card.recipe.js +0 -101
  23. package/dist-server/src/manifest/recipes/search-filter-bar.recipe.js +0 -122
  24. package/dist-server/src/manifest/recipes/settings-panel.recipe.js +0 -167
  25. package/dist-server/src/manifest/recipes/stats-row.recipe.js +0 -106
  26. package/dist-server/src/manifest/validate.test.js +0 -28
package/dist/index.d.ts CHANGED
@@ -322,7 +322,7 @@ export declare type ChipSize = 'sm' | 'md' | 'lg';
322
322
 
323
323
  export declare type ChipVariant = 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
324
324
 
325
- export declare function CodeBlock({ code, language, tabs, variant, helperText, showCopyButton, style, }: CodeBlockProps): JSX_2.Element;
325
+ export declare function CodeBlock({ code, language, tabs, variant, wrap, minimal, helperText, showCopyButton, style, }: CodeBlockProps): JSX_2.Element;
326
326
 
327
327
  export declare const CodeBlockManifest: ComponentManifest;
328
328
 
@@ -339,6 +339,10 @@ export declare interface CodeBlockProps {
339
339
  * always copied even when visually truncated.
340
340
  */
341
341
  variant?: CodeBlockVariant;
342
+ /** When true, wraps long lines instead of scrolling horizontally. Defaults to false. */
343
+ wrap?: boolean;
344
+ /** When true, hides the header bar and shows only a corner copy button. */
345
+ minimal?: boolean;
342
346
  /** Optional descriptive text rendered between the tab bar and the code area */
343
347
  helperText?: string;
344
348
  showCopyButton?: boolean;
@@ -532,13 +536,14 @@ export declare interface CompositionNode {
532
536
  *
533
537
  * @example
534
538
  * const tokens = createTheme({
535
- * bgBase: '#ffffff',
539
+ * bgBase: '#f9fafb',
536
540
  * borderDefault: '#e5e7eb',
537
541
  * accentDefault: '#6366f1',
538
542
  * successDefault: '#22c55e',
539
543
  * warningDefault: '#f59e0b',
540
544
  * dangerDefault: '#ef4444',
541
545
  * infoDefault: '#3b82f6',
546
+ * navigation: '#ffffff', // optional
542
547
  * });
543
548
  *
544
549
  * // <LucentProvider tokens={tokens}>...</LucentProvider>
@@ -1239,14 +1244,10 @@ export declare interface NavMenuSubProps {
1239
1244
  }
1240
1245
 
1241
1246
  /**
1242
- * Neumorphic — light mode uses classic dual light/dark shadows
1243
- * for the extruded soft-UI look.
1247
+ * Neumorphic — bold, dramatic drop shadows that create strong
1248
+ * visual lift. Single-layer for clean interaction with borders.
1244
1249
  *
1245
- * Dark mode shifts to "chromatic" offset split-color accent
1246
- * glow (warm-shifted on one side, cool-shifted on the other).
1247
- * Creates a CRT/screen-like depth that reads as physical without
1248
- * relying on darkening. Uses `color-mix()` so it follows the
1249
- * active accent automatically.
1250
+ * Dark mode uses the same approach with higher opacity.
1250
1251
  */
1251
1252
  export declare const neumorphicShadow: ShadowPreset;
1252
1253
 
@@ -1274,8 +1275,8 @@ export declare interface PageLayoutProps {
1274
1275
  footer?: ReactNode;
1275
1276
  /** Footer height in px or any CSS value. Default: 48 */
1276
1277
  footerHeight?: number | string;
1277
- /** Background token for chrome regions (header, sidebar, footer). Default: "bgBase" */
1278
- chromeBackground?: 'bgBase' | 'bgSubtle' | 'surface' | 'surfaceSecondary';
1278
+ /** Background token for chrome regions (header, sidebar, footer). Default: "navigation" */
1279
+ chromeBackground?: 'navigation' | 'bgBase' | 'bgSubtle' | 'surface' | 'surfaceSecondary';
1279
1280
  /** Style overrides for the main content card (border, borderRadius, boxShadow, etc.) */
1280
1281
  mainStyle?: CSSProperties;
1281
1282
  style?: CSSProperties;
@@ -1498,6 +1499,7 @@ export declare interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelec
1498
1499
  export declare type SelectSize = 'sm' | 'md' | 'lg';
1499
1500
 
1500
1501
  declare interface SemanticColorTokens {
1502
+ navigation: string;
1501
1503
  bgBase: string;
1502
1504
  bgSubtle: string;
1503
1505
  bgOverlay: string;
@@ -1875,16 +1877,17 @@ export declare type Theme = 'light' | 'dark';
1875
1877
  *
1876
1878
  * @example
1877
1879
  * const myTheme = createTheme({
1878
- * bgBase: '#ffffff',
1880
+ * bgBase: '#f9fafb',
1879
1881
  * borderDefault: '#e5e7eb',
1880
1882
  * accentDefault: '#6366f1',
1881
1883
  * successDefault: '#22c55e',
1882
1884
  * warningDefault: '#f59e0b',
1883
1885
  * dangerDefault: '#ef4444',
1884
1886
  * infoDefault: '#3b82f6',
1887
+ * navigation: '#ffffff', // optional — chrome background
1885
1888
  * });
1886
1889
  */
1887
- export declare type ThemeAnchors = Pick<LucentTokens, 'bgBase' | 'borderDefault' | 'accentDefault' | 'successDefault' | 'warningDefault' | 'dangerDefault' | 'infoDefault'> & Partial<Pick<LucentTokens, 'textPrimary' | 'surface'>>;
1890
+ export declare type ThemeAnchors = Pick<LucentTokens, 'bgBase' | 'borderDefault' | 'accentDefault' | 'successDefault' | 'warningDefault' | 'dangerDefault' | 'infoDefault'> & Partial<Pick<LucentTokens, 'textPrimary' | 'surface' | 'navigation'>>;
1888
1891
 
1889
1892
  /**
1890
1893
  * Semantic guidance for each ThemeAnchors key.