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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /**
* @fds-uif/core - Shared Exports
*
* Browser-safe exports shared between index.ts and browser.ts.
* This file contains all exports that work in both Node.js and browser environments.
*
* @internal
*/
// Constants
export {
IDENTIFIED_ARRAYS,
MARKER_AFTER,
MARKER_BEFORE,
MARKER_REMOVE,
MERGE_MARKERS,
PROP_EXTENDS,
PROP_EXTENSIONS,
} from './constants.js';
// Types
export type {
AfterMarkerItem,
BeforeMarkerItem,
UifWithExtends,
MergeOptions,
PlainObject,
RemoveMarkerItem,
ValidationError,
ValidationOptions,
ValidationResult,
Variant,
VariantChildChange,
VariantOption,
WarningContext,
WarningHandler,
} from './types.js';
// Merge utilities (browser-safe)
export { merge, mergeAndClean } from './merge.js';
// Validation utilities (browser-safe)
export {
type ExtensionsValidationResult,
type IdentifierValidationResult,
type MarkerValidationResult,
type StateReferenceValidationResult,
type VariantConflictResult,
ValidationErrorCode,
validateUif,
validateUifOrThrow,
validateExtensions,
validateIdentifiers,
validateIdentifiersOrThrow,
validateMarkers,
validateMarkersOrThrow,
validateStateReferences,
validateStateReferencesDetailed,
validateStateReferencesOrThrow,
validateVariantConflicts,
validateVariantConflictsOrThrow,
} from './validate.js';
// Error classes (browser-safe)
export {
UifCircularDependencyError,
UifConflictingMarkersError,
UifDuplicateIdentifierError,
UifError,
UifExtensionError,
UifInvalidStateReferenceError,
UifMergeError,
UifPositionalMarkerError,
UifVariantConflictError,
} from './errors.js';
// Resolved UIF validation (browser-safe)
export {
validateResolved,
validateResolvedOrThrow,
UifResolvedValidationError,
type ResolvedValidationResult,
type ResolvedValidationError,
} from './validate-resolved.js';
// Extraction utilities (browser-safe)
export {
getStates,
getState,
getModifiers,
getModifier,
getVariants,
getVariant,
getStateClasses,
getSlots,
getSlot,
getBoundAttributes,
getDefaultElement,
getAllowedElements,
isGenReady,
getDateAdded,
hasState,
hasModifier,
hasVariant,
hasSlot,
getPropNames,
type ExtractedBoundAttribute,
} from './extract.js';
// CSS utilities - browser-safe subset (no PostCSS)
export {
// Types - Hook Naming
type HookCategory,
type HookAttribute,
type HookState,
type ParsedHookName,
// Types - Variables
type VariableType,
type VariableReference,
// Types - CSS Structure
type CssDeclaration,
type CssRule,
type LayerContent,
type UnlayeredContent,
// Types - Hooks
type ComponentHook,
type DeprecatedHook,
// Types - Metadata
type CssMetadata,
type ParseCssOptions,
// Constants
HOOK_CATEGORIES,
HOOK_ATTRIBUTES,
HOOK_STATES,
// Hook Name Parser (browser-safe)
parseHookName,
isComponentHook,
COMPONENT_HOOK_REGEX,
// Naming utilities (browser-safe)
getCssMetadataFilename,
inferSystemFromFilename,
// Query utilities (browser-safe)
getAllHookNames,
getHooksByCategory,
getHooksByElement,
getHooksWithGlobalValues,
getHooksWithSharedValues,
hasDeprecatedHooks,
getHookCategorySummary,
getRulesFromLayer,
getThemeOverrideNames,
} from './css/browser.js';
|