All files / packages/fds-uif/core/src/css browser.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70                                                                                                                                           
/**
 * @fds-uif/core - CSS Module (Browser Entry)
 *
 * Browser-safe CSS utilities.
 * Does NOT include PostCSS-dependent functions (generateCssMetadata)
 * or file system operations (parseCssSource, extractCssMetadata).
 *
 * For CSS parsing with PostCSS, use the main entry point ('@fds-uif/core').
 *
 * @see RFC: uif-styling-layer.md
 */
 
// ============================================================================
// Types
// ============================================================================
 
export type {
  // Hook Naming
  HookCategory,
  HookAttribute,
  HookState,
  ParsedHookName,
  // Variable Classification
  VariableType,
  VariableReference,
  // CSS Structure
  CssDeclaration,
  CssRule,
  LayerContent,
  UnlayeredContent,
  // Hook Types
  ComponentHook,
  DeprecatedHook,
  // Metadata
  CssMetadata,
  ParseCssOptions,
} from './types.js';
 
// Constants
export { HOOK_CATEGORIES, HOOK_ATTRIBUTES, HOOK_STATES } from './types.js';
 
// ============================================================================
// Hook Name Parser
// ============================================================================
 
export { parseHookName, isComponentHook, COMPONENT_HOOK_REGEX } from './hook-name-parser.js';
 
// ============================================================================
// Query & Naming Utilities (browser-safe, no PostCSS)
// ============================================================================
 
export {
  // Naming utilities
  getCssMetadataFilename,
  inferSystemFromFilename,
  // Query utilities
  getAllHookNames,
  getHooksByCategory,
  getHooksByElement,
  getHooksWithGlobalValues,
  getHooksWithSharedValues,
  hasDeprecatedHooks,
  getHookCategorySummary,
  getRulesFromLayer,
  getThemeOverrideNames,
} from './metadata-queries.js';
 
// NOTE: generateCssMetadata requires PostCSS (has Node.js dependencies).
// Use the main entry point ('@fds-uif/core') for CSS parsing.