@yak/react 10.0.0-rc.0 → 10.0.0-rc.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 (67) hide show
  1. package/README.md +12 -0
  2. package/dist/context/baseContext.d.ts +1 -2
  3. package/dist/context/index.d.ts +3 -4
  4. package/dist/context/index.server.d.ts +2 -3
  5. package/dist/cross-file-resolver/index.d.ts +12 -12
  6. package/dist/cross-file-resolver/index.js +39 -5
  7. package/dist/cross-file-resolver/index.js.map +1 -1
  8. package/dist/index.d.ts +8 -8
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/internal.d.ts +139 -139
  12. package/dist/isolated-source-eval/index.d.ts +2 -2
  13. package/dist/jsx-dev-runtime.js.map +1 -1
  14. package/dist/jsx-runtime.d.ts +2 -2
  15. package/dist/jsx-runtime.js.map +1 -1
  16. package/dist/loaders/{turbo-loader.d.cts → turbo-loader.d.ts} +3 -3
  17. package/dist/loaders/{turbo-loader.cjs → turbo-loader.js} +60 -47
  18. package/dist/loaders/turbo-loader.js.map +1 -0
  19. package/dist/loaders/vite-plugin.d.ts +13 -21
  20. package/dist/loaders/vite-plugin.js +43 -36
  21. package/dist/loaders/vite-plugin.js.map +1 -1
  22. package/dist/loaders/{webpack-loader.d.cts → webpack-loader.d.ts} +3 -3
  23. package/dist/loaders/{webpack-loader.cjs → webpack-loader.js} +50 -37
  24. package/dist/loaders/webpack-loader.js.map +1 -0
  25. package/dist/rsbuild/index.d.ts +2 -2
  26. package/dist/rsbuild/index.js +1 -2
  27. package/dist/rsbuild/index.js.map +1 -1
  28. package/dist/static/index.js +1 -1
  29. package/dist/static/index.js.map +1 -1
  30. package/dist/withYak/index.d.ts +15 -24
  31. package/dist/withYak/index.js +7 -13
  32. package/dist/withYak/index.js.map +1 -1
  33. package/loaders/lib/resolveCrossFileSelectors.ts +0 -1
  34. package/loaders/turbo-loader.ts +11 -7
  35. package/loaders/webpack-loader.ts +3 -6
  36. package/package.json +45 -104
  37. package/rsbuild/index.ts +2 -3
  38. package/withYak/index.ts +7 -21
  39. package/dist/context/baseContext.cjs +0 -9
  40. package/dist/context/baseContext.cjs.map +0 -1
  41. package/dist/context/baseContext.d.cts +0 -6
  42. package/dist/context/index.cjs +0 -45
  43. package/dist/context/index.cjs.map +0 -1
  44. package/dist/context/index.d.cts +0 -21
  45. package/dist/context/index.server.cjs +0 -47
  46. package/dist/context/index.server.cjs.map +0 -1
  47. package/dist/context/index.server.d.cts +0 -10
  48. package/dist/index.cjs +0 -2
  49. package/dist/index.cjs.map +0 -1
  50. package/dist/index.d.cts +0 -320
  51. package/dist/internal.cjs +0 -544
  52. package/dist/internal.cjs.map +0 -1
  53. package/dist/internal.d.cts +0 -452
  54. package/dist/jsx-dev-runtime.cjs +0 -2
  55. package/dist/jsx-dev-runtime.cjs.map +0 -1
  56. package/dist/jsx-dev-runtime.d.cts +0 -7
  57. package/dist/jsx-runtime.cjs +0 -2
  58. package/dist/jsx-runtime.cjs.map +0 -1
  59. package/dist/jsx-runtime.d.cts +0 -38
  60. package/dist/loaders/turbo-loader.cjs.map +0 -1
  61. package/dist/loaders/webpack-loader.cjs.map +0 -1
  62. package/dist/static/index.cjs +0 -2
  63. package/dist/static/index.cjs.map +0 -1
  64. package/dist/static/index.d.cts +0 -28
  65. package/dist/withYak/index.cjs +0 -208
  66. package/dist/withYak/index.cjs.map +0 -1
  67. package/dist/withYak/index.d.cts +0 -121
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["css","css","styled","css","INTERNAL.ATTRS_MERGED","useTheme","INTERNAL.RUNTIME_STYLES_DONE","StyledFactory"],"sources":["../runtime/cssLiteral.tsx","../runtime/atoms.tsx","../runtime/mocks/cssLiteral.ts","../runtime/mocks/keyframes.ts","../runtime/internals/propMarkers.ts","../runtime/internals/mergeClassNames.ts","../runtime/styled.tsx","../runtime/mocks/styled.ts","../runtime/mocks/globalStyle.ts"],"sourcesContent":["import type { YakTheme } from \"./index.ts\";\nimport { ClassNameCollector, RuntimeStyleProcessor } from \"./publicStyledApi.js\";\n\nexport const yakComponentSymbol = Symbol(\"yak\");\n\n/**\n * String-backed ClassNameCollector used by the render path\n *\n * `add` is a plain string append and does not deduplicate, so the collector is\n * a multiset - the same class may appear twice, e.g. `atoms(\"a b\", \"a\")` → `\"a b a\"`.\n * `has`/`delete` cover the rare path where a runtime function inspects or\n * removes classes; `delete` removes every occurrence\n */\nexport class ClassNames implements ClassNameCollector {\n value: string;\n constructor(initial?: string) {\n this.value = initial || \"\";\n }\n add(className: string) {\n this.value += (this.value && \" \") + className;\n }\n has(className: string) {\n return (\" \" + this.value + \" \").includes(\" \" + className + \" \");\n }\n delete(className: string) {\n if (this.has(className)) {\n this.value = this.value\n .split(\" \")\n .filter((existing) => existing !== className)\n .join(\" \");\n }\n }\n}\n\nexport type ComponentStyles<TProps> = (props: TProps) => {\n className: string;\n style?: {\n [key: string]: string;\n };\n};\n\nexport type CSSInterpolation<TProps> =\n | string\n | number\n | undefined\n | null\n | false\n | ComponentStyles<TProps>\n | {\n // type only identifier to allow targeting components\n // e.g. styled.svg`${Button}:hover & { fill: red; }`\n [yakComponentSymbol]: any;\n }\n | ((props: TProps) => CSSInterpolation<TProps>);\n\ntype CSSStyles<TProps = {}> = {\n style: { [key: string]: string | ((props: TProps) => string) };\n};\n\ntype CSSFunction = <TProps = {}>(\n styles: TemplateStringsArray,\n ...values: CSSInterpolation<TProps & { theme: YakTheme }>[]\n) => ComponentStyles<TProps>;\n\nexport type NestedRuntimeStyleProcessor = (\n props: unknown,\n classNames: ClassNameCollector,\n style: React.CSSProperties,\n) =>\n | {\n className?: string;\n style?: React.CSSProperties;\n }\n | void\n | NestedRuntimeStyleProcessor;\n\n/**\n * css() runtime factory of css``\n *\n * /!\\ @yak/react transpiles css`` and styled``\n *\n * This changes the typings of the css`` and styled`` functions.\n * During development the user of @yak/react wants to work with the\n * typings BEFORE compilation.\n *\n * Therefore this is only an internal function only and it must be cast to any\n * before exported to the user.\n *\n * The internal functioning of css`` is to return a single callback function that runs all functions\n * (or creates new ones if needed) that are passed as arguments. These functions receive the props, classNames, and style object as arguments\n * and operate directly on the classNames and style objects.\n */\nexport function css<TProps>(\n styles: TemplateStringsArray,\n ...values: CSSInterpolation<NoInfer<TProps> & { theme: YakTheme }>[]\n): ComponentStyles<TProps>;\nexport function css<TProps>(...args: Array<any>): RuntimeStyleProcessor<TProps> {\n // Normally this could be an array of strings passed, but as we transpile the usage of css`` ourselves, we control the arguments\n // and ensure that only the first argument is a string (class name of the non-dynamic styles)\n let className: string | undefined;\n const dynamicCssFunctions: NestedRuntimeStyleProcessor[] = [];\n for (const arg of args as Array<string | CSSFunction | CSSStyles<any>>) {\n // A CSS-module class name which got auto generated during build from static css\n // e.g. css`color: red;`\n // compiled -> css(\"yak31e4\")\n if (typeof arg === \"string\") {\n className = arg;\n }\n // Dynamic CSS e.g.\n // css`${props => props.active && css`color: red;`}`\n // compiled -> css((props: { active: boolean }) => props.active && css(\"yak31e4\"))\n else if (typeof arg === \"function\") {\n dynamicCssFunctions.push(arg as unknown as NestedRuntimeStyleProcessor);\n }\n // Dynamic CSS with css variables e.g.\n // css`transform: translate(${props => props.x}, ${props => props.y});`\n // compiled -> css(\"yak31e4\", { style: { \"--yakVarX\": props => props.x }, \"--yakVarY\": props => props.y }})\n else if (typeof arg === \"object\" && \"style\" in arg) {\n dynamicCssFunctions.push((props, _, style) => {\n for (const key in arg.style) {\n const value = arg.style[key];\n if (typeof value === \"function\") {\n // @ts-expect-error CSSProperties don't allow css variables\n style[key] = String(\n // The value for a css value can be a theme dependent function e.g.:\n // const borderColor = (props: { theme: { mode: \"dark\" | \"light\" } }) => props.theme === \"dark\" ? \"black\" : \"white\";\n // css`border-color: ${borderColor};`\n // Therefore the value has to be extracted recursively\n recursivePropExecution(props, value),\n );\n } else {\n // @ts-expect-error CSSProperties don't allow css variables\n style[key] = String(value);\n }\n }\n });\n }\n }\n\n // Non Dynamic CSS\n // This is just an optimization for the common case where there are no dynamic css functions\n // `$dynamic: false` lets the styled runtime skip theme lookup and\n // style-object allocation entirely for static components\n if (dynamicCssFunctions.length === 0) {\n return Object.assign(\n (_: unknown, classNames: ClassNameCollector) => {\n if (className) {\n classNames.add(className);\n }\n },\n { $dynamic: false },\n );\n }\n\n return Object.assign(\n (props: TProps, classNames: ClassNameCollector, allStyles: React.CSSProperties) => {\n if (className) {\n classNames.add(className);\n }\n for (let i = 0; i < dynamicCssFunctions.length; i++) {\n unwrapProps(props, dynamicCssFunctions[i], classNames, allStyles);\n }\n },\n { $dynamic: true },\n );\n}\n\n// Dynamic CSS with runtime logic\nconst unwrapProps = (\n props: unknown,\n fn: NestedRuntimeStyleProcessor,\n classNames: ClassNameCollector,\n style: React.CSSProperties,\n) => {\n let result = fn(props, classNames, style);\n while (result) {\n if (typeof result === \"function\") {\n result = result(props, classNames, style);\n continue;\n } else if (typeof result === \"object\") {\n if (\"className\" in result && result.className) {\n classNames.add(result.className);\n }\n if (\"style\" in result && result.style) {\n for (const key in result.style) {\n // This is hard for typescript to infer\n style[key as keyof React.CSSProperties] = result.style[\n key as keyof React.CSSProperties\n ] as any;\n }\n }\n }\n break;\n }\n};\n\nconst recursivePropExecution = (props: unknown, fn: (props: unknown) => any): string | number => {\n const result = fn(props);\n if (typeof result === \"function\") {\n return recursivePropExecution(props, result);\n }\n // the `process.env` lookup is a real per-call cost for unbundled Node\n // consumers, so it must stay behind the typeof guards on the invalid path\n if (typeof result !== \"string\" && typeof result !== \"number\" && !(result instanceof String)) {\n if (process.env.NODE_ENV === \"development\") {\n throw new Error(\n `Dynamic CSS functions must return a string or number but returned ${JSON.stringify(\n result,\n )}\\n\\nDynamic CSS function: ${fn.toString()}\\n`,\n );\n }\n }\n return result;\n};\n","import { ClassNames, ComponentStyles, css } from \"./cssLiteral.js\";\nimport { RuntimeStyleProcessor } from \"./publicStyledApi.js\";\n\n/**\n * Allows to use atomic CSS classes in a styled or css block\n *\n * @usage\n *\n * ```tsx\n * import { styled, atoms } from \"@yak/react\";\n *\n * const Button = styled.button<{ $primary?: boolean }>`\n * ${atoms(\"text-teal-600\", \"text-base\", \"rounded-md\")}\n * ${props => props.$primary && atoms(\"shadow-md\")}\n * `;\n * ```\n */\nexport const atoms = <T,>(\n ...atoms: (string | RuntimeStyleProcessor<T> | false)[]\n): ComponentStyles<T> => {\n const staticClasses = new ClassNames();\n const dynamicFunctions: RuntimeStyleProcessor<T>[] = [];\n\n for (const atom of atoms) {\n if (typeof atom === \"string\") {\n staticClasses.add(atom);\n } else if (typeof atom === \"function\") {\n dynamicFunctions.push(atom);\n }\n }\n\n // the collected classes are passed as css()'s static class name,\n // only the dynamic atoms stay functions\n // @ts-expect-error the internal implementation of css is not typed\n return css(staticClasses.value, ...dynamicFunctions);\n};\n","import type { css as cssInternal, NestedRuntimeStyleProcessor } from \"../cssLiteral.js\";\n\nexport type { ComponentStyles } from \"../cssLiteral.js\";\n\n/**\n * Allows to use CSS styles in a styled or css block\n *\n * e.g.\n *\n * ```tsx\n * const Component = styled.div`\n * color: black;\n * ${({$active}) => $active && css`color: red;`}\n * `;\n * ```\n */\nexport const css: typeof cssInternal = (styles: TemplateStringsArray, ...args: unknown[]) => {\n // When called in yak files as a template tag (without SWC transformation),\n // return { __yak: rawCss } so the cross-file resolver can\n // extract the mixin value from evaluated .yak files.\n if (Array.isArray(styles) && \"raw\" in styles) {\n let rawCss = styles[0];\n for (let i = 0; i < args.length; i++) {\n const interpolation = args[i];\n rawCss +=\n interpolation && typeof interpolation === \"object\" && \"__yak\" in interpolation\n ? (interpolation as { __yak: string }).__yak\n : String(interpolation);\n rawCss += styles[i + 1];\n }\n return { __yak: rawCss } as any;\n }\n\n const dynamicCssFunctions: NestedRuntimeStyleProcessor[] = [];\n for (const arg of args as Array<string | Function | object>) {\n // Dynamic CSS e.g.\n // css`${props => props.active && css`color: red;`}`\n // compiled -> css((props: { active: boolean }) => props.active && css(\"yak31e4\"))\n if (typeof arg === \"function\") {\n dynamicCssFunctions.push(arg as unknown as NestedRuntimeStyleProcessor);\n }\n }\n if (dynamicCssFunctions.length === 0) {\n return {\n className: \"\",\n style: undefined,\n };\n }\n return ((props: unknown) => {\n for (let i = 0; i < dynamicCssFunctions.length; i++) {\n // run the dynamic expressions and ignore the return value\n // the execution is important to ensure that the user code is executed\n // the same way as in the real runtime\n executeDynamicExpressionRecursively(props, dynamicCssFunctions[i]);\n }\n return {\n className: \"\",\n style: undefined,\n };\n }) as any;\n};\n\nfunction executeDynamicExpressionRecursively(\n props: unknown,\n expression: NestedRuntimeStyleProcessor,\n) {\n const classNames = new Set<string>();\n const style = {};\n let result = expression(props, classNames, style);\n while (typeof result === \"function\") {\n result = result(props, classNames, style);\n }\n return result;\n}\n","import type { keyframes as keyframesInternal } from \"../keyframes.js\";\n\n/**\n * Allows to use CSS keyframe animations in a styled or css block\n *\n * @usage\n *\n * ```tsx\n * import { styled, keyframes } from \"@yak/react\";\n *\n * const rotate = keyframes`\n * from {\n * transform: rotate(0deg);\n * }\n * to {\n * transform: rotate(360deg);\n * }\n * `;\n *\n * const Spinner = styled.div`\n * animation: ${rotate} 1s linear infinite;\n * `;\n * ```\n */\nexport const keyframes: typeof keyframesInternal = (_styles, ..._dynamic) => {\n // the keyframes function is a no-op in the mock\n // as it has no dynamic runtime behavior but only css\n return \"\";\n};\n","/** Internal markers used by the render path */\n\n/**\n * Set on props once the attrs functions have been folded in, so a nested yak\n * wrapper further out the chain does not merge the same attrs twice\n */\nexport const ATTRS_MERGED = \"$__a\" as const;\n\n/**\n * Set on props once the runtime style processor has run, so an outer yak\n * component that receives already-processed props skips the collector entirely\n */\nexport const RUNTIME_STYLES_DONE = \"$__r\" as const;\n\n/**\n * Carries the constant `.attrs({...})` object on the merged attrs function,\n * marking it theme-independent so the fast render path can apply it without\n * executing anything. Lives on the function, never on props\n */\nexport const STATIC_ATTRS = \"$sa\" as const;\n","/**\n * Merges two optional class name values with a space.\n *\n * Used by the styled runtime to combine incoming and generated class names,\n * and injected by the compiler (as `__yak_mergeClassNames`) when it replaces\n * a JSX usage of a fully static styled component with a plain DOM element:\n * ```tsx\n * const Card = styled.div`color: red;`;\n * <Card className={active && \"active\"} />\n * ```\n * becomes\n * ```tsx\n * <div className={__yak_mergeClassNames(\"yX\", active && \"active\")} />\n * ```\n */\nexport const mergeClassNames = (\n a: string | false | null | undefined,\n b: string | false | null | undefined,\n) => {\n if (!a) return b || undefined;\n if (!b) return a;\n return a + \" \" + b;\n};\n","import { css, CSSInterpolation, ClassNames, yakComponentSymbol } from \"./cssLiteral.js\";\nimport * as INTERNAL from \"./internals/propMarkers.js\";\nimport React from \"react\";\nimport type {\n Attrs,\n AttrsMerged,\n Styled,\n YakComponent,\n AttrsFunction,\n StyledFn,\n HtmlTags,\n Substitute,\n StyledLiteral,\n RuntimeStyleProcessor,\n} from \"./publicStyledApi.js\";\n\n// the following export is not relative as \"@yak/react/context\"\n// links to one file for react server components and\n// to another file for classic react components\nimport { useTheme } from \"@yak/react/context\";\nimport type { YakTheme } from \"./context/index.tsx\";\nimport { mergeClassNames } from \"./internals/mergeClassNames.js\";\n\n//\n// The `styled()` API without `styled.` syntax\n//\n// The API design is inspired by styled-components:\n// https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/constructors/styled.tsx\n// https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/models/StyledComponent.ts\n//\nconst styledFactory: StyledFn = (Component) =>\n Object.assign(yakStyled(Component), {\n attrs: (attrs: Attrs<any>) => yakStyled(Component, attrs),\n });\n\n/**\n * The `styled` method works perfectly on all of your own or any third-party component,\n * as long as they attach the passed className prop to a DOM element.\n *\n * @usage\n *\n * ```tsx\n * const StyledLink = styled(Link)`\n * color: #BF4F74;\n * font-weight: bold;\n * `;\n * ```\n */\nexport const styled = styledFactory as Styled;\n\n/**\n * Real shape of the yakComponentSymbol tuple, which the public `YakComponent`\n * keeps opaque as `[unknown, ...]`\n */\ntype YakComponentInternals = [\n self: React.FunctionComponent,\n attrsFn: AttrsFunction<any, any, any> | undefined,\n styleProcessor: RuntimeStyleProcessor<unknown>,\n target: React.FunctionComponent | string,\n];\n\nconst yakStyled: StyledInternal = (Component, attrs) => {\n const isYakComponent = typeof Component !== \"string\" && yakComponentSymbol in Component;\n\n // if the component that is wrapped is a yak component, we can extract it to render the underlying component directly\n // and we can also extract the attrs function and the dynamic style function to merge it with the current attrs function (or dynamic style function)\n // so that the sequence of the attrs functions is preserved\n const [, parentAttrsFn, parentRuntimeStylesFn, parentTarget] = isYakComponent\n ? (Component[yakComponentSymbol] as [\n YakComponent<unknown>,\n ExtractAttrsFunction<typeof attrs>,\n RuntimeStyleProcessor<unknown>,\n React.FunctionComponent | string,\n ])\n : [];\n\n // the ultimate render target of the whole styled(styled(...)) chain:\n // attrs and style processors are already merged at construction time, so\n // a chain of N levels renders the target directly in ONE wrapper instead\n // of re-entering every parent wrapper per element per render\n const targetComponent = (isYakComponent ? parentTarget : Component) as\n | React.FunctionComponent\n | string;\n\n const mergedAttrsFn = buildRuntimeAttrsProcessor(attrs, parentAttrsFn);\n const staticAttrs = (mergedAttrsFn as StaticAttrsCarrier | undefined)?.[INTERNAL.STATIC_ATTRS];\n\n return (styles, ...values) => {\n // combine all interpolated logic into a single function\n // e.g. styled.button`color: ${props => props.color}; margin: ${props => props.margin};`\n const runtimeStylesFn = css(\n styles,\n ...(values as CSSInterpolation<unknown>[]),\n ) as RuntimeStyleProcessor<unknown>;\n const runtimeStyleProcessor = buildRuntimeStylesProcessor(\n runtimeStylesFn,\n parentRuntimeStylesFn,\n );\n const Yak: React.FunctionComponent = (props) => {\n // fast path for components that contribute the same thing on every\n // render — no attrs at all, or a constant `.attrs({...})` which cannot\n // read the theme — and no dynamic styles. Contributes the chain's class\n // names and strips $-props; skips theme lookup, prop spreading and style\n // cloning entirely (this is NOT against the rule of hooks — the condition\n // is constant for the lifetime of the component)\n if ((!mergedAttrsFn || staticAttrs) && !runtimeStyleProcessor.$dynamic) {\n // props that already went through a yak wrapper keep their processed\n // className, and `source` then aliases `props` — so the class names are\n // written to the fresh, filtered object rather than back into props\n const source = (\n staticAttrs && !(INTERNAL.ATTRS_MERGED in props)\n ? combineProps(\n {\n ...(props as { className?: string; style?: React.CSSProperties }),\n // mark the props as processed\n [INTERNAL.ATTRS_MERGED]: true,\n },\n staticAttrs,\n )\n : props\n ) as { className?: string; style?: React.CSSProperties };\n const filteredProps = removeNonDomProperties(source) as {\n className?: string;\n };\n if (!(INTERNAL.RUNTIME_STYLES_DONE in source)) {\n const classNames = new ClassNames(source.className);\n runtimeStyleProcessor(source, classNames, undefined as unknown as React.CSSProperties);\n filteredProps.className = classNames.value || undefined;\n }\n const Target = targetComponent as React.ElementType;\n return <Target {...(filteredProps as React.ComponentProps<typeof Target>)} />;\n }\n\n // attrs functions and dynamic style functions receive the theme —\n // fully static components take the fast path above and never read the\n // theme context\n const theme = useTheme();\n\n // The first components which is not wrapped in a yak component will execute all attrs functions\n // starting from the innermost yak component to the outermost yak component (itself)\n const combinedProps =\n INTERNAL.ATTRS_MERGED in props\n ? ({\n theme,\n ...props,\n } as {\n theme: YakTheme;\n className?: string;\n style?: React.CSSProperties;\n })\n : // overwrite and merge the current props with the processed attrs\n combineProps(\n {\n theme,\n ...(props as {\n className?: string;\n style?: React.CSSProperties;\n }),\n // mark the props as processed\n [INTERNAL.ATTRS_MERGED]: true,\n },\n mergedAttrsFn?.({ theme, ...(props as any) }),\n );\n\n // execute all functions inside the style literal if not already executed\n // e.g. styled.button`color: ${props => props.color};`\n //\n // inner levels of a styled(Component) chain receive already-processed\n // props and skip this entirely — no collector, no style clone\n if (!(INTERNAL.RUNTIME_STYLES_DONE in combinedProps)) {\n const classNames = new ClassNames(combinedProps.className);\n // static processors never write style values, so the incoming style\n // object can be passed through without a defensive copy\n const styles = runtimeStyleProcessor.$dynamic\n ? { ...combinedProps.style }\n : combinedProps.style;\n runtimeStyleProcessor(combinedProps, classNames, styles as React.CSSProperties);\n // @ts-expect-error this is not typed correctly\n combinedProps[INTERNAL.RUNTIME_STYLES_DONE] = true;\n\n combinedProps.className = classNames.value || undefined;\n if (styles !== combinedProps.style) {\n combinedProps.style = styles;\n }\n }\n\n // delete the yak theme from the props\n // this must happen after the runtimeStyles are calculated\n // prevents passing the theme prop to the DOM element of a styled component\n const { theme: themeAfterAttr, ...combinedPropsWithoutTheme } = combinedProps;\n const propsBeforeFiltering =\n themeAfterAttr === theme ? combinedPropsWithoutTheme : combinedProps;\n\n // remove all props that start with a $ sign so they reach neither DOM\n // elements nor custom components — this also strips the internal\n // INTERNAL.ATTRS_MERGED/INTERNAL.RUNTIME_STYLES_DONE markers, which must not cross a\n // custom component boundary (a custom component may render another yak\n // component that has to process its own attrs/styles)\n const filteredProps = removeNonDomProperties(propsBeforeFiltering);\n\n // render the chain's target directly — parent wrappers contribute only\n // their (already merged) attrs and style processors\n const Target = targetComponent as React.ElementType;\n return <Target {...(filteredProps as React.ComponentProps<typeof Target>)} />;\n };\n\n // Direct write instead of Object.assign (faster & smaller)\n const taggedYak = Yak as React.FunctionComponent & {\n [yakComponentSymbol]: YakComponentInternals;\n };\n taggedYak[yakComponentSymbol] = [Yak, mergedAttrsFn, runtimeStyleProcessor, targetComponent];\n return taggedYak;\n };\n};\n\n/**\n * Remove all entries that start with a $ sign\n *\n * This allows to have props that are used for internal styling purposes\n * but are not be passed to the DOM element\n */\nconst removeNonDomProperties = <T extends Record<string, unknown>>(obj: T): T => {\n const result = {} as T;\n for (const key in obj) {\n if (!key.startsWith(\"$\") && obj[key] !== undefined) {\n result[key] = obj[key];\n }\n }\n return result;\n};\n\n/**\n * merge props and processed props (including class names and styles)\n * e.g.:\\\n * `{ className: \"a\", foo: 1 }` and `{ className: \"b\", bar: 2 }` \\\n * => `{ className: \"a b\", foo: 1, bar: 2 }`\n */\nconst combineProps = <\n T extends {\n className?: string;\n style?: React.CSSProperties;\n },\n TOther extends\n | {\n className?: string;\n style?: React.CSSProperties;\n }\n | null\n | undefined,\n>(\n props: T,\n newProps: TOther,\n) =>\n newProps\n ? (props.className === newProps.className || !newProps.className) &&\n (props.style === newProps.style || !newProps.style)\n ? // shortcut if no style and class merging is necessary\n {\n ...props,\n ...newProps,\n }\n : // merge class names and styles\n {\n ...props,\n ...newProps,\n className: mergeClassNames(props.className, newProps.className),\n style: { ...props.style, ...newProps.style },\n }\n : // if no new props are provided, no merging is necessary\n props;\n\n/**\n * Merges the attrs function of the current component with the attrs function of the parent component\n * in order to preserve the sequence of the attrs functions.\n * Note: In theory, the parentAttrsFn can have different types for TAttrsIn and TAttrsOut\n * but as this is only used internally, we can ignore and simplify this case\n * @param attrs The attrs object or function of the current component (if any)\n * @param parentAttrsFn The attrs function of the parent/wrapped component (if any)\n * @returns A function that receives the props and returns the transformed props\n */\nconst buildRuntimeAttrsProcessor = <\n T,\n TAttrsIn extends object,\n TAttrsOut extends AttrsMerged<T, TAttrsIn>,\n>(\n attrs?: Attrs<T, TAttrsIn, TAttrsOut>,\n parentAttrsFn?: AttrsFunction<T, TAttrsIn, TAttrsOut>,\n): AttrsFunction<T, TAttrsIn, TAttrsOut> | undefined => {\n const ownAttrsFn = attrs && (typeof attrs === \"function\" ? attrs : () => attrs);\n\n if (ownAttrsFn && parentAttrsFn) {\n return (props) => {\n const parentProps = parentAttrsFn(props);\n\n // overwrite and merge the parent props with the props received from the attrs function\n // after they went through the parent attrs function.\n //\n // This makes sure the linearity of the attrs functions is preserved and all attrs function receive\n // the whole props object calculated from the previous attrs functions\n return combineProps(parentProps, ownAttrsFn(combineProps(props, parentProps)));\n };\n }\n\n // A constant `.attrs({...})` is wrapped into `() => attrs`, which makes it\n // indistinguishable from `.attrs(props => ...)` at render time — so record the\n // object it will always return. Only the wrapper closure is tagged, never a\n // user-supplied attrs function.\n //\n // A `styled(StyledWithAttrs).attrs({...})` chain merges its levels per render\n // and is not tagged, which keeps a mutation of an attrs object observable\n if (ownAttrsFn && typeof attrs !== \"function\") {\n return Object.assign(ownAttrsFn, {\n [INTERNAL.STATIC_ATTRS]: attrs,\n } as StaticAttrsCarrier);\n }\n\n return ownAttrsFn || parentAttrsFn;\n};\n\n/**\n * The constant object a `.attrs({...})` processor always returns\n *\n * Kept local to this module — like the `yakComponentSymbol` tuple, it is an\n * implementation detail and must not reach the public `AttrsFunction` type\n */\ntype StaticAttrsCarrier = { [K in typeof INTERNAL.STATIC_ATTRS]?: object };\n\n/**\n * Merges the runtime style function of the current component with the runtime style function of the parent component\n * in order to preserve the sequence of the attrs functions.\n * @param runtimeStylesFn The current runtime styles function\n * @param parentRuntimeStylesFn The parent runtime styles function\n * @returns The merged runtime styles function\n */\nconst buildRuntimeStylesProcessor = <T,>(\n runtimeStylesFn: RuntimeStyleProcessor<T>,\n parentRuntimeStylesFn?: RuntimeStyleProcessor<T>,\n) => {\n if (runtimeStylesFn && parentRuntimeStylesFn) {\n const combined: RuntimeStyleProcessor<T> = Object.assign(\n (\n props: T,\n classNames: Parameters<RuntimeStyleProcessor<T>>[1],\n style: React.CSSProperties,\n ) => {\n parentRuntimeStylesFn(props, classNames, style);\n runtimeStylesFn(props, classNames, style);\n },\n // the chain is dynamic if any level is dynamic\n { $dynamic: runtimeStylesFn.$dynamic || parentRuntimeStylesFn.$dynamic },\n );\n return combined;\n }\n return runtimeStylesFn || parentRuntimeStylesFn;\n};\n\n/**\n * Internal function where attrs are passed to be processed\n */\nexport type StyledInternal = <\n T extends object,\n TAttrsIn extends object = {},\n TAttrsOut extends AttrsMerged<T, TAttrsIn> = AttrsMerged<T, TAttrsIn>,\n>(\n Component: React.FunctionComponent<T> | YakComponent<T> | HtmlTags | string,\n attrs?: Attrs<T, TAttrsIn, TAttrsOut>,\n) => StyledLiteral<Substitute<T, TAttrsIn>>;\n\n/**\n * Utility type to extract the AttrsFunction from the Attrs type\n */\nexport type ExtractAttrsFunction<T> = T extends (p: any) => any ? T : never;\n","import React from \"react\";\nimport { styled as StyledFactory } from \"../styled.js\";\n\nexport const styled = new Proxy(StyledFactory, {\n get(target, TagName: keyof React.JSX.IntrinsicElements) {\n return target(TagName);\n },\n}) as typeof StyledFactory;\n","import type { globalStyle as globalStyleInternal } from \"../globalStyle.js\";\n\nexport type { GlobalStyleInterpolation } from \"../globalStyle.js\";\n\n/**\n * Test-friendly mock of `globalStyle`.\n *\n * `globalStyle` has no runtime behaviour — the SWC plugin extracts its CSS at\n * build time and replaces the call with a no-op. The mock mirrors that: it does\n * nothing so yak files can be imported in Jest/Vitest without the compiler.\n */\nexport const globalStyle: typeof globalStyleInternal = (_styles, ..._values) => {\n // no-op in the mock\n};\n"],"mappings":"uGAGA,MAAa,EAAqB,OAAO,KAAK,EAU9C,IAAa,EAAb,KAAsD,CAEpD,YAAY,EAAkB,CAC5B,KAAK,MAAQ,GAAW,EAC1B,CACA,IAAI,EAAmB,CACrB,KAAK,QAAU,KAAK,OAAS,KAAO,CACtC,CACA,IAAI,EAAmB,CACrB,OAAQ,IAAM,KAAK,MAAQ,IAAA,CAAK,SAAS,IAAM,EAAY,GAAG,CAChE,CACA,OAAO,EAAmB,CACpB,KAAK,IAAI,CAAS,IACpB,KAAK,MAAQ,KAAK,MACf,MAAM,GAAG,CAAC,CACV,OAAQ,GAAa,IAAa,CAAS,CAAC,CAC5C,KAAK,GAAG,EAEf,CACF,EAgEA,SAAgBA,EAAY,GAAG,EAAiD,CAG9E,IAAI,EACE,EAAqD,CAAC,EAC5D,IAAK,IAAM,KAAO,EAIZ,OAAO,GAAQ,SACjB,EAAY,EAKL,OAAO,GAAQ,WACtB,EAAoB,KAAK,CAA6C,EAK/D,OAAO,GAAQ,UAAY,UAAW,GAC7C,EAAoB,MAAM,EAAO,EAAG,IAAU,CAC5C,IAAK,IAAM,KAAO,EAAI,MAAO,CAC3B,IAAM,EAAQ,EAAI,MAAM,GACxB,AAWE,EAAM,GATO,OAFX,OAAO,GAAU,WAOjB,EAAuB,EAAO,CAAK,EAIjB,CAAK,CAE7B,CACF,CAAC,EAmBL,OAXI,EAAoB,SAAW,EAC1B,OAAO,QACX,EAAY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AAO,EACZ,CAAC,EAAI,WAAW,GAAG,GAAK,EAAI,KAAS,IAAA,KACvC,EAAO,GAAO,EAAI,IAGtB,OAAO,CACT,EAQM,GAaJ,EACA,IAEA,GACK,EAAM,YAAc,EAAS,WAAa,CAAC,EAAS,aACpD,EAAM,QAAU,EAAS,OAAS,CAAC,EAAS,OAE3C,CACE,GAAG,EACH,GAAG,CACL,EAEA,CACE,GAAG,EACH,GAAG,EACH,UAAW,EAAgB,EAAM,UAAW,EAAS,SAAS,EAC9D,MAAO,CAAE,GAAG,EAAM,MAAO,GAAG,EAAS,KAAM,CAC7C,EAEF,EAWA,GAKJ,EACA,IACsD,CACtD,IAAM,EAAa,IAAU,OAAO,GAAU,WAAa,MAAc,GA4BzE,OA1BI,GAAc,EACR,GAAU,CAChB,IAAM,EAAc,EAAc,CAAK,EAOvC,OAAO,EAAa,EAAa,EAAW,EAAa,EAAO,CAAW,CAAC,CAAC,CAC/E,EAUE,GAAc,OAAO,GAAU,WAC1B,OAAO,OAAO,EAAY,CAC9B,IAAwB,CAC3B,CAAuB,EAGlB,GAAc,CACvB,EAiBM,GACJ,EACA,IAEI,GAAmB,EACsB,OAAO,QAE9C,EACA,EACA,IACG,CACH,EAAsB,EAAO,EAAY,CAAK,EAC9C,EAAgB,EAAO,EAAY,CAAK,CAC1C,EAEA,CAAE,SAAU,EAAgB,UAAY,EAAsB,QAAS,CAE3D,EAET,GAAmB,EC9Vf,EAAS,IAAI,MAAMC,EAAe,CAC7C,IAAI,EAAQ,EAA4C,CACtD,OAAO,EAAO,CAAO,CACvB,CACF,CAAC,ECIY,GAA2C,EAAS,GAAG,IAAY,CAEhF"}
1
+ {"version":3,"file":"index.js","names":["css","css","styled","css","INTERNAL.ATTRS_MERGED","useTheme","INTERNAL.RUNTIME_STYLES_DONE","StyledFactory","useTheme$1","React","yakComponentSymbol","ClassNames","initial","className","existing","css$1","args","dynamicCssFunctions","arg","key","value","style","recursivePropExecution","props","classNames","i","unwrapProps","allStyles","result","fn","atoms","staticClasses","dynamicFunctions","atom","css","styles","rawCss","interpolation","executeDynamicExpressionRecursively","expression","keyframes","_dynamic","ATTRS_MERGED","mergeClassNames","a","b","styled$1","yakStyled","Component","attrs","isYakComponent","parentAttrsFn","parentRuntimeStylesFn","parentTarget","targetComponent","mergedAttrsFn","buildRuntimeAttrsProcessor","staticAttrs","\"$sa\"","values","runtimeStylesFn","runtimeStyleProcessor","buildRuntimeStylesProcessor","Yak","source","combineProps","filteredProps","removeNonDomProperties","Target","theme","combinedProps","RUNTIME_STYLES_DONE","themeAfterAttr","combinedPropsWithoutTheme","taggedYak","obj","newProps","ownAttrsFn","parentProps","styled","target","TagName","globalStyle","_values","YakThemeProvider","useTheme"],"sources":["../runtime/cssLiteral.tsx","../runtime/atoms.tsx","../runtime/mocks/cssLiteral.ts","../runtime/mocks/keyframes.ts","../runtime/internals/propMarkers.ts","../runtime/internals/mergeClassNames.ts","../runtime/styled.tsx","../runtime/mocks/styled.ts","../runtime/mocks/globalStyle.ts"],"sourcesContent":["import type { YakTheme } from \"./index.ts\";\nimport { ClassNameCollector, RuntimeStyleProcessor } from \"./publicStyledApi.js\";\n\nexport const yakComponentSymbol = Symbol(\"yak\");\n\n/**\n * String-backed ClassNameCollector used by the render path\n *\n * `add` is a plain string append and does not deduplicate, so the collector is\n * a multiset - the same class may appear twice, e.g. `atoms(\"a b\", \"a\")` → `\"a b a\"`.\n * `has`/`delete` cover the rare path where a runtime function inspects or\n * removes classes; `delete` removes every occurrence\n */\nexport class ClassNames implements ClassNameCollector {\n value: string;\n constructor(initial?: string) {\n this.value = initial || \"\";\n }\n add(className: string) {\n this.value += (this.value && \" \") + className;\n }\n has(className: string) {\n return (\" \" + this.value + \" \").includes(\" \" + className + \" \");\n }\n delete(className: string) {\n if (this.has(className)) {\n this.value = this.value\n .split(\" \")\n .filter((existing) => existing !== className)\n .join(\" \");\n }\n }\n}\n\nexport type ComponentStyles<TProps> = (props: TProps) => {\n className: string;\n style?: {\n [key: string]: string;\n };\n};\n\nexport type CSSInterpolation<TProps> =\n | string\n | number\n | undefined\n | null\n | false\n | ComponentStyles<TProps>\n | {\n // type only identifier to allow targeting components\n // e.g. styled.svg`${Button}:hover & { fill: red; }`\n [yakComponentSymbol]: any;\n }\n | ((props: TProps) => CSSInterpolation<TProps>);\n\ntype CSSStyles<TProps = {}> = {\n style: { [key: string]: string | ((props: TProps) => string) };\n};\n\ntype CSSFunction = <TProps = {}>(\n styles: TemplateStringsArray,\n ...values: CSSInterpolation<TProps & { theme: YakTheme }>[]\n) => ComponentStyles<TProps>;\n\nexport type NestedRuntimeStyleProcessor = (\n props: unknown,\n classNames: ClassNameCollector,\n style: React.CSSProperties,\n) =>\n | {\n className?: string;\n style?: React.CSSProperties;\n }\n | void\n | NestedRuntimeStyleProcessor;\n\n/**\n * css() runtime factory of css``\n *\n * /!\\ @yak/react transpiles css`` and styled``\n *\n * This changes the typings of the css`` and styled`` functions.\n * During development the user of @yak/react wants to work with the\n * typings BEFORE compilation.\n *\n * Therefore this is only an internal function only and it must be cast to any\n * before exported to the user.\n *\n * The internal functioning of css`` is to return a single callback function that runs all functions\n * (or creates new ones if needed) that are passed as arguments. These functions receive the props, classNames, and style object as arguments\n * and operate directly on the classNames and style objects.\n */\nexport function css<TProps>(\n styles: TemplateStringsArray,\n ...values: CSSInterpolation<NoInfer<TProps> & { theme: YakTheme }>[]\n): ComponentStyles<TProps>;\nexport function css<TProps>(...args: Array<any>): RuntimeStyleProcessor<TProps> {\n // Normally this could be an array of strings passed, but as we transpile the usage of css`` ourselves, we control the arguments\n // and ensure that only the first argument is a string (class name of the non-dynamic styles)\n let className: string | undefined;\n const dynamicCssFunctions: NestedRuntimeStyleProcessor[] = [];\n for (const arg of args as Array<string | CSSFunction | CSSStyles<any>>) {\n // A CSS-module class name which got auto generated during build from static css\n // e.g. css`color: red;`\n // compiled -> css(\"yak31e4\")\n if (typeof arg === \"string\") {\n className = arg;\n }\n // Dynamic CSS e.g.\n // css`${props => props.active && css`color: red;`}`\n // compiled -> css((props: { active: boolean }) => props.active && css(\"yak31e4\"))\n else if (typeof arg === \"function\") {\n dynamicCssFunctions.push(arg as unknown as NestedRuntimeStyleProcessor);\n }\n // Dynamic CSS with css variables e.g.\n // css`transform: translate(${props => props.x}, ${props => props.y});`\n // compiled -> css(\"yak31e4\", { style: { \"--yakVarX\": props => props.x }, \"--yakVarY\": props => props.y }})\n else if (typeof arg === \"object\" && \"style\" in arg) {\n dynamicCssFunctions.push((props, _, style) => {\n for (const key in arg.style) {\n const value = arg.style[key];\n if (typeof value === \"function\") {\n // @ts-expect-error CSSProperties don't allow css variables\n style[key] = String(\n // The value for a css value can be a theme dependent function e.g.:\n // const borderColor = (props: { theme: { mode: \"dark\" | \"light\" } }) => props.theme === \"dark\" ? \"black\" : \"white\";\n // css`border-color: ${borderColor};`\n // Therefore the value has to be extracted recursively\n recursivePropExecution(props, value),\n );\n } else {\n // @ts-expect-error CSSProperties don't allow css variables\n style[key] = String(value);\n }\n }\n });\n }\n }\n\n // Non Dynamic CSS\n // This is just an optimization for the common case where there are no dynamic css functions\n // `$dynamic: false` lets the styled runtime skip theme lookup and\n // style-object allocation entirely for static components\n if (dynamicCssFunctions.length === 0) {\n return Object.assign(\n (_: unknown, classNames: ClassNameCollector) => {\n if (className) {\n classNames.add(className);\n }\n },\n { $dynamic: false },\n );\n }\n\n return Object.assign(\n (props: TProps, classNames: ClassNameCollector, allStyles: React.CSSProperties) => {\n if (className) {\n classNames.add(className);\n }\n for (let i = 0; i < dynamicCssFunctions.length; i++) {\n unwrapProps(props, dynamicCssFunctions[i], classNames, allStyles);\n }\n },\n { $dynamic: true },\n );\n}\n\n// Dynamic CSS with runtime logic\nconst unwrapProps = (\n props: unknown,\n fn: NestedRuntimeStyleProcessor,\n classNames: ClassNameCollector,\n style: React.CSSProperties,\n) => {\n let result = fn(props, classNames, style);\n while (result) {\n if (typeof result === \"function\") {\n result = result(props, classNames, style);\n continue;\n } else if (typeof result === \"object\") {\n if (\"className\" in result && result.className) {\n classNames.add(result.className);\n }\n if (\"style\" in result && result.style) {\n for (const key in result.style) {\n // This is hard for typescript to infer\n style[key as keyof React.CSSProperties] = result.style[\n key as keyof React.CSSProperties\n ] as any;\n }\n }\n }\n break;\n }\n};\n\nconst recursivePropExecution = (props: unknown, fn: (props: unknown) => any): string | number => {\n const result = fn(props);\n if (typeof result === \"function\") {\n return recursivePropExecution(props, result);\n }\n // the `process.env` lookup is a real per-call cost for unbundled Node\n // consumers, so it must stay behind the typeof guards on the invalid path\n if (typeof result !== \"string\" && typeof result !== \"number\" && !(result instanceof String)) {\n if (process.env.NODE_ENV === \"development\") {\n throw new Error(\n `Dynamic CSS functions must return a string or number but returned ${JSON.stringify(\n result,\n )}\\n\\nDynamic CSS function: ${fn.toString()}\\n`,\n );\n }\n }\n return result;\n};\n","import { ClassNames, ComponentStyles, css } from \"./cssLiteral.js\";\nimport { RuntimeStyleProcessor } from \"./publicStyledApi.js\";\n\n/**\n * Allows to use atomic CSS classes in a styled or css block\n *\n * @usage\n *\n * ```tsx\n * import { styled, atoms } from \"@yak/react\";\n *\n * const Button = styled.button<{ $primary?: boolean }>`\n * ${atoms(\"text-teal-600\", \"text-base\", \"rounded-md\")}\n * ${props => props.$primary && atoms(\"shadow-md\")}\n * `;\n * ```\n */\nexport const atoms = <T,>(\n ...atoms: (string | RuntimeStyleProcessor<T> | false)[]\n): ComponentStyles<T> => {\n const staticClasses = new ClassNames();\n const dynamicFunctions: RuntimeStyleProcessor<T>[] = [];\n\n for (const atom of atoms) {\n if (typeof atom === \"string\") {\n staticClasses.add(atom);\n } else if (typeof atom === \"function\") {\n dynamicFunctions.push(atom);\n }\n }\n\n // the collected classes are passed as css()'s static class name,\n // only the dynamic atoms stay functions\n // @ts-expect-error the internal implementation of css is not typed\n return css(staticClasses.value, ...dynamicFunctions);\n};\n","import type { css as cssInternal, NestedRuntimeStyleProcessor } from \"../cssLiteral.js\";\n\nexport type { ComponentStyles } from \"../cssLiteral.js\";\n\n/**\n * Allows to use CSS styles in a styled or css block\n *\n * e.g.\n *\n * ```tsx\n * const Component = styled.div`\n * color: black;\n * ${({$active}) => $active && css`color: red;`}\n * `;\n * ```\n */\nexport const css: typeof cssInternal = (styles: TemplateStringsArray, ...args: unknown[]) => {\n // When called in yak files as a template tag (without SWC transformation),\n // return { __yak: rawCss } so the cross-file resolver can\n // extract the mixin value from evaluated .yak files.\n if (Array.isArray(styles) && \"raw\" in styles) {\n let rawCss = styles[0];\n for (let i = 0; i < args.length; i++) {\n const interpolation = args[i];\n rawCss +=\n interpolation && typeof interpolation === \"object\" && \"__yak\" in interpolation\n ? (interpolation as { __yak: string }).__yak\n : String(interpolation);\n rawCss += styles[i + 1];\n }\n return { __yak: rawCss } as any;\n }\n\n const dynamicCssFunctions: NestedRuntimeStyleProcessor[] = [];\n for (const arg of args as Array<string | Function | object>) {\n // Dynamic CSS e.g.\n // css`${props => props.active && css`color: red;`}`\n // compiled -> css((props: { active: boolean }) => props.active && css(\"yak31e4\"))\n if (typeof arg === \"function\") {\n dynamicCssFunctions.push(arg as unknown as NestedRuntimeStyleProcessor);\n }\n }\n if (dynamicCssFunctions.length === 0) {\n return {\n className: \"\",\n style: undefined,\n };\n }\n return ((props: unknown) => {\n for (let i = 0; i < dynamicCssFunctions.length; i++) {\n // run the dynamic expressions and ignore the return value\n // the execution is important to ensure that the user code is executed\n // the same way as in the real runtime\n executeDynamicExpressionRecursively(props, dynamicCssFunctions[i]);\n }\n return {\n className: \"\",\n style: undefined,\n };\n }) as any;\n};\n\nfunction executeDynamicExpressionRecursively(\n props: unknown,\n expression: NestedRuntimeStyleProcessor,\n) {\n const classNames = new Set<string>();\n const style = {};\n let result = expression(props, classNames, style);\n while (typeof result === \"function\") {\n result = result(props, classNames, style);\n }\n return result;\n}\n","import type { keyframes as keyframesInternal } from \"../keyframes.js\";\n\n/**\n * Allows to use CSS keyframe animations in a styled or css block\n *\n * @usage\n *\n * ```tsx\n * import { styled, keyframes } from \"@yak/react\";\n *\n * const rotate = keyframes`\n * from {\n * transform: rotate(0deg);\n * }\n * to {\n * transform: rotate(360deg);\n * }\n * `;\n *\n * const Spinner = styled.div`\n * animation: ${rotate} 1s linear infinite;\n * `;\n * ```\n */\nexport const keyframes: typeof keyframesInternal = (_styles, ..._dynamic) => {\n // the keyframes function is a no-op in the mock\n // as it has no dynamic runtime behavior but only css\n return \"\";\n};\n","/** Internal markers used by the render path */\n\n/**\n * Set on props once the attrs functions have been folded in, so a nested yak\n * wrapper further out the chain does not merge the same attrs twice\n */\nexport const ATTRS_MERGED = \"$__a\" as const;\n\n/**\n * Set on props once the runtime style processor has run, so an outer yak\n * component that receives already-processed props skips the collector entirely\n */\nexport const RUNTIME_STYLES_DONE = \"$__r\" as const;\n\n/**\n * Carries the constant `.attrs({...})` object on the merged attrs function,\n * marking it theme-independent so the fast render path can apply it without\n * executing anything. Lives on the function, never on props\n */\nexport const STATIC_ATTRS = \"$sa\" as const;\n","/**\n * Merges two optional class name values with a space.\n *\n * Used by the styled runtime to combine incoming and generated class names,\n * and injected by the compiler (as `__yak_mergeClassNames`) when it replaces\n * a JSX usage of a fully static styled component with a plain DOM element:\n * ```tsx\n * const Card = styled.div`color: red;`;\n * <Card className={active && \"active\"} />\n * ```\n * becomes\n * ```tsx\n * <div className={__yak_mergeClassNames(\"yX\", active && \"active\")} />\n * ```\n */\nexport const mergeClassNames = (\n a: string | false | null | undefined,\n b: string | false | null | undefined,\n) => {\n if (!a) return b || undefined;\n if (!b) return a;\n return a + \" \" + b;\n};\n","import { css, CSSInterpolation, ClassNames, yakComponentSymbol } from \"./cssLiteral.js\";\nimport * as INTERNAL from \"./internals/propMarkers.js\";\nimport React from \"react\";\nimport type {\n Attrs,\n AttrsMerged,\n Styled,\n YakComponent,\n AttrsFunction,\n StyledFn,\n HtmlTags,\n Substitute,\n StyledLiteral,\n RuntimeStyleProcessor,\n} from \"./publicStyledApi.js\";\n\n// the following export is not relative as \"@yak/react/context\"\n// links to one file for react server components and\n// to another file for classic react components\nimport { useTheme } from \"@yak/react/context\";\nimport type { YakTheme } from \"./context/index.tsx\";\nimport { mergeClassNames } from \"./internals/mergeClassNames.js\";\n\n//\n// The `styled()` API without `styled.` syntax\n//\n// The API design is inspired by styled-components:\n// https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/constructors/styled.tsx\n// https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/models/StyledComponent.ts\n//\nconst styledFactory: StyledFn = (Component) =>\n Object.assign(yakStyled(Component), {\n attrs: (attrs: Attrs<any>) => yakStyled(Component, attrs),\n });\n\n/**\n * The `styled` method works perfectly on all of your own or any third-party component,\n * as long as they attach the passed className prop to a DOM element.\n *\n * @usage\n *\n * ```tsx\n * const StyledLink = styled(Link)`\n * color: #BF4F74;\n * font-weight: bold;\n * `;\n * ```\n */\nexport const styled = styledFactory as Styled;\n\n/**\n * Real shape of the yakComponentSymbol tuple, which the public `YakComponent`\n * keeps opaque as `[unknown, ...]`\n */\ntype YakComponentInternals = [\n self: React.FunctionComponent,\n attrsFn: AttrsFunction<any, any, any> | undefined,\n styleProcessor: RuntimeStyleProcessor<unknown>,\n target: React.FunctionComponent | string,\n];\n\nconst yakStyled: StyledInternal = (Component, attrs) => {\n const isYakComponent = typeof Component !== \"string\" && yakComponentSymbol in Component;\n\n // if the component that is wrapped is a yak component, we can extract it to render the underlying component directly\n // and we can also extract the attrs function and the dynamic style function to merge it with the current attrs function (or dynamic style function)\n // so that the sequence of the attrs functions is preserved\n const [, parentAttrsFn, parentRuntimeStylesFn, parentTarget] = isYakComponent\n ? (Component[yakComponentSymbol] as [\n YakComponent<unknown>,\n ExtractAttrsFunction<typeof attrs>,\n RuntimeStyleProcessor<unknown>,\n React.FunctionComponent | string,\n ])\n : [];\n\n // the ultimate render target of the whole styled(styled(...)) chain:\n // attrs and style processors are already merged at construction time, so\n // a chain of N levels renders the target directly in ONE wrapper instead\n // of re-entering every parent wrapper per element per render\n const targetComponent = (isYakComponent ? parentTarget : Component) as\n | React.FunctionComponent\n | string;\n\n const mergedAttrsFn = buildRuntimeAttrsProcessor(attrs, parentAttrsFn);\n const staticAttrs = (mergedAttrsFn as StaticAttrsCarrier | undefined)?.[INTERNAL.STATIC_ATTRS];\n\n return (styles, ...values) => {\n // combine all interpolated logic into a single function\n // e.g. styled.button`color: ${props => props.color}; margin: ${props => props.margin};`\n const runtimeStylesFn = css(\n styles,\n ...(values as CSSInterpolation<unknown>[]),\n ) as RuntimeStyleProcessor<unknown>;\n const runtimeStyleProcessor = buildRuntimeStylesProcessor(\n runtimeStylesFn,\n parentRuntimeStylesFn,\n );\n const Yak: React.FunctionComponent = (props) => {\n // fast path for components that contribute the same thing on every\n // render — no attrs at all, or a constant `.attrs({...})` which cannot\n // read the theme — and no dynamic styles. Contributes the chain's class\n // names and strips $-props; skips theme lookup, prop spreading and style\n // cloning entirely (this is NOT against the rule of hooks — the condition\n // is constant for the lifetime of the component)\n if ((!mergedAttrsFn || staticAttrs) && !runtimeStyleProcessor.$dynamic) {\n // props that already went through a yak wrapper keep their processed\n // className, and `source` then aliases `props` — so the class names are\n // written to the fresh, filtered object rather than back into props\n const source = (\n staticAttrs && !(INTERNAL.ATTRS_MERGED in props)\n ? combineProps(\n {\n ...(props as { className?: string; style?: React.CSSProperties }),\n // mark the props as processed\n [INTERNAL.ATTRS_MERGED]: true,\n },\n staticAttrs,\n )\n : props\n ) as { className?: string; style?: React.CSSProperties };\n const filteredProps = removeNonDomProperties(source) as {\n className?: string;\n };\n if (!(INTERNAL.RUNTIME_STYLES_DONE in source)) {\n const classNames = new ClassNames(source.className);\n runtimeStyleProcessor(source, classNames, undefined as unknown as React.CSSProperties);\n filteredProps.className = classNames.value || undefined;\n }\n const Target = targetComponent as React.ElementType;\n return <Target {...(filteredProps as React.ComponentProps<typeof Target>)} />;\n }\n\n // attrs functions and dynamic style functions receive the theme —\n // fully static components take the fast path above and never read the\n // theme context\n const theme = useTheme();\n\n // The first components which is not wrapped in a yak component will execute all attrs functions\n // starting from the innermost yak component to the outermost yak component (itself)\n const combinedProps =\n INTERNAL.ATTRS_MERGED in props\n ? ({\n theme,\n ...props,\n } as {\n theme: YakTheme;\n className?: string;\n style?: React.CSSProperties;\n })\n : // overwrite and merge the current props with the processed attrs\n combineProps(\n {\n theme,\n ...(props as {\n className?: string;\n style?: React.CSSProperties;\n }),\n // mark the props as processed\n [INTERNAL.ATTRS_MERGED]: true,\n },\n mergedAttrsFn?.({ theme, ...(props as any) }),\n );\n\n // execute all functions inside the style literal if not already executed\n // e.g. styled.button`color: ${props => props.color};`\n //\n // inner levels of a styled(Component) chain receive already-processed\n // props and skip this entirely — no collector, no style clone\n if (!(INTERNAL.RUNTIME_STYLES_DONE in combinedProps)) {\n const classNames = new ClassNames(combinedProps.className);\n // static processors never write style values, so the incoming style\n // object can be passed through without a defensive copy\n const styles = runtimeStyleProcessor.$dynamic\n ? { ...combinedProps.style }\n : combinedProps.style;\n runtimeStyleProcessor(combinedProps, classNames, styles as React.CSSProperties);\n // @ts-expect-error this is not typed correctly\n combinedProps[INTERNAL.RUNTIME_STYLES_DONE] = true;\n\n combinedProps.className = classNames.value || undefined;\n if (styles !== combinedProps.style) {\n combinedProps.style = styles;\n }\n }\n\n // delete the yak theme from the props\n // this must happen after the runtimeStyles are calculated\n // prevents passing the theme prop to the DOM element of a styled component\n const { theme: themeAfterAttr, ...combinedPropsWithoutTheme } = combinedProps;\n const propsBeforeFiltering =\n themeAfterAttr === theme ? combinedPropsWithoutTheme : combinedProps;\n\n // remove all props that start with a $ sign so they reach neither DOM\n // elements nor custom components — this also strips the internal\n // INTERNAL.ATTRS_MERGED/INTERNAL.RUNTIME_STYLES_DONE markers, which must not cross a\n // custom component boundary (a custom component may render another yak\n // component that has to process its own attrs/styles)\n const filteredProps = removeNonDomProperties(propsBeforeFiltering);\n\n // render the chain's target directly — parent wrappers contribute only\n // their (already merged) attrs and style processors\n const Target = targetComponent as React.ElementType;\n return <Target {...(filteredProps as React.ComponentProps<typeof Target>)} />;\n };\n\n // Direct write instead of Object.assign (faster & smaller)\n const taggedYak = Yak as React.FunctionComponent & {\n [yakComponentSymbol]: YakComponentInternals;\n };\n taggedYak[yakComponentSymbol] = [Yak, mergedAttrsFn, runtimeStyleProcessor, targetComponent];\n return taggedYak;\n };\n};\n\n/**\n * Remove all entries that start with a $ sign\n *\n * This allows to have props that are used for internal styling purposes\n * but are not be passed to the DOM element\n */\nconst removeNonDomProperties = <T extends Record<string, unknown>>(obj: T): T => {\n const result = {} as T;\n for (const key in obj) {\n if (!key.startsWith(\"$\") && obj[key] !== undefined) {\n result[key] = obj[key];\n }\n }\n return result;\n};\n\n/**\n * merge props and processed props (including class names and styles)\n * e.g.:\\\n * `{ className: \"a\", foo: 1 }` and `{ className: \"b\", bar: 2 }` \\\n * => `{ className: \"a b\", foo: 1, bar: 2 }`\n */\nconst combineProps = <\n T extends {\n className?: string;\n style?: React.CSSProperties;\n },\n TOther extends\n | {\n className?: string;\n style?: React.CSSProperties;\n }\n | null\n | undefined,\n>(\n props: T,\n newProps: TOther,\n) =>\n newProps\n ? (props.className === newProps.className || !newProps.className) &&\n (props.style === newProps.style || !newProps.style)\n ? // shortcut if no style and class merging is necessary\n {\n ...props,\n ...newProps,\n }\n : // merge class names and styles\n {\n ...props,\n ...newProps,\n className: mergeClassNames(props.className, newProps.className),\n style: { ...props.style, ...newProps.style },\n }\n : // if no new props are provided, no merging is necessary\n props;\n\n/**\n * Merges the attrs function of the current component with the attrs function of the parent component\n * in order to preserve the sequence of the attrs functions.\n * Note: In theory, the parentAttrsFn can have different types for TAttrsIn and TAttrsOut\n * but as this is only used internally, we can ignore and simplify this case\n * @param attrs The attrs object or function of the current component (if any)\n * @param parentAttrsFn The attrs function of the parent/wrapped component (if any)\n * @returns A function that receives the props and returns the transformed props\n */\nconst buildRuntimeAttrsProcessor = <\n T,\n TAttrsIn extends object,\n TAttrsOut extends AttrsMerged<T, TAttrsIn>,\n>(\n attrs?: Attrs<T, TAttrsIn, TAttrsOut>,\n parentAttrsFn?: AttrsFunction<T, TAttrsIn, TAttrsOut>,\n): AttrsFunction<T, TAttrsIn, TAttrsOut> | undefined => {\n const ownAttrsFn = attrs && (typeof attrs === \"function\" ? attrs : () => attrs);\n\n if (ownAttrsFn && parentAttrsFn) {\n return (props) => {\n const parentProps = parentAttrsFn(props);\n\n // overwrite and merge the parent props with the props received from the attrs function\n // after they went through the parent attrs function.\n //\n // This makes sure the linearity of the attrs functions is preserved and all attrs function receive\n // the whole props object calculated from the previous attrs functions\n return combineProps(parentProps, ownAttrsFn(combineProps(props, parentProps)));\n };\n }\n\n // A constant `.attrs({...})` is wrapped into `() => attrs`, which makes it\n // indistinguishable from `.attrs(props => ...)` at render time — so record the\n // object it will always return. Only the wrapper closure is tagged, never a\n // user-supplied attrs function.\n //\n // A `styled(StyledWithAttrs).attrs({...})` chain merges its levels per render\n // and is not tagged, which keeps a mutation of an attrs object observable\n if (ownAttrsFn && typeof attrs !== \"function\") {\n return Object.assign(ownAttrsFn, {\n [INTERNAL.STATIC_ATTRS]: attrs,\n } as StaticAttrsCarrier);\n }\n\n return ownAttrsFn || parentAttrsFn;\n};\n\n/**\n * The constant object a `.attrs({...})` processor always returns\n *\n * Kept local to this module — like the `yakComponentSymbol` tuple, it is an\n * implementation detail and must not reach the public `AttrsFunction` type\n */\ntype StaticAttrsCarrier = { [K in typeof INTERNAL.STATIC_ATTRS]?: object };\n\n/**\n * Merges the runtime style function of the current component with the runtime style function of the parent component\n * in order to preserve the sequence of the attrs functions.\n * @param runtimeStylesFn The current runtime styles function\n * @param parentRuntimeStylesFn The parent runtime styles function\n * @returns The merged runtime styles function\n */\nconst buildRuntimeStylesProcessor = <T,>(\n runtimeStylesFn: RuntimeStyleProcessor<T>,\n parentRuntimeStylesFn?: RuntimeStyleProcessor<T>,\n) => {\n if (runtimeStylesFn && parentRuntimeStylesFn) {\n const combined: RuntimeStyleProcessor<T> = Object.assign(\n (\n props: T,\n classNames: Parameters<RuntimeStyleProcessor<T>>[1],\n style: React.CSSProperties,\n ) => {\n parentRuntimeStylesFn(props, classNames, style);\n runtimeStylesFn(props, classNames, style);\n },\n // the chain is dynamic if any level is dynamic\n { $dynamic: runtimeStylesFn.$dynamic || parentRuntimeStylesFn.$dynamic },\n );\n return combined;\n }\n return runtimeStylesFn || parentRuntimeStylesFn;\n};\n\n/**\n * Internal function where attrs are passed to be processed\n */\nexport type StyledInternal = <\n T extends object,\n TAttrsIn extends object = {},\n TAttrsOut extends AttrsMerged<T, TAttrsIn> = AttrsMerged<T, TAttrsIn>,\n>(\n Component: React.FunctionComponent<T> | YakComponent<T> | HtmlTags | string,\n attrs?: Attrs<T, TAttrsIn, TAttrsOut>,\n) => StyledLiteral<Substitute<T, TAttrsIn>>;\n\n/**\n * Utility type to extract the AttrsFunction from the Attrs type\n */\nexport type ExtractAttrsFunction<T> = T extends (p: any) => any ? T : never;\n","import React from \"react\";\nimport { styled as StyledFactory } from \"../styled.js\";\n\nexport const styled = new Proxy(StyledFactory, {\n get(target, TagName: keyof React.JSX.IntrinsicElements) {\n return target(TagName);\n },\n}) as typeof StyledFactory;\n","import type { globalStyle as globalStyleInternal } from \"../globalStyle.js\";\n\nexport type { GlobalStyleInterpolation } from \"../globalStyle.js\";\n\n/**\n * Test-friendly mock of `globalStyle`.\n *\n * `globalStyle` has no runtime behaviour — the SWC plugin extracts its CSS at\n * build time and replaces the call with a no-op. The mock mirrors that: it does\n * nothing so yak files can be imported in Jest/Vitest without the compiler.\n */\nexport const globalStyle: typeof globalStyleInternal = (_styles, ..._values) => {\n // no-op in the mock\n};\n"],"mappings":"A,uGAGA,MAAaU,EAAqB,OAAO,KAAK,EAU9C,IAAaC,EAAb,KAAsD,CAEpD,YAAY,EAAkB,CAC5B,KAAK,MAAQC,GAAW,EAC1B,CACA,IAAI,EAAmB,CACrB,KAAK,QAAU,KAAK,OAAS,KAAOC,CACtC,CACA,IAAI,EAAmB,CACrB,OAAQ,IAAM,KAAK,MAAQ,IAAA,CAAK,SAAS,IAA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EACH,GAAGqD,CACL,EAEA,CACE,GAAGrD,EACH,GAAGqD,EACH,UAAWjC,EAAgBpB,EAAM,UAAWqD,EAAS,SAAS,EAC9D,MAAO,CAAE,GAAGrD,EAAM,MAAO,GAAGqD,EAAS,KAAM,CAC7C,EAEFrD,EAWAiC,GAKJ,EACA,IACsD,CACtD,IAAMqB,EAAa5B,IAAU,OAAOA,GAAU,WAAaA,MAAcA,GA4BzE,OA1BI4B,GAAc1B,EACR,GAAU,CAChB,IAAM2B,EAAc3B,EAAc5B,CAAK,EAOvC,OAAO0C,EAAaa,EAAaD,EAAWZ,EAAa1C,EAAOuD,CAAW,CAAC,CAAC,CAC/E,EAUED,GAAc,OAAO5B,GAAU,WAC1B,OAAO,OAAO4B,EAAY,CAC9BnB,IAAwBT,CAC3B,CAAuB,EAGlB4B,GAAc1B,CACvB,EAiBMW,GACJ,EACA,IAEIF,GAAmBR,EACsB,OAAO,QAE9C,EACA,EACA,IACG,CACHA,EAAsB7B,EAAOC,EAAYH,CAAK,EAC9CuC,EAAgBrC,EAAOC,EAAYH,CAAK,CAC1C,EAEA,CAAE,SAAUuC,EAAgB,UAAYR,EAAsB,QAAS,CAE3D,EAETQ,GAAmBR,EC9Vf2B,EAAS,IAAI,MAAMxE,EAAe,CAC7C,IAAI,EAAQ,EAA4C,CACtD,OAAOyE,EAAOC,CAAO,CACvB,CACF,CAAC,ECIYC,GAA2C,EAAS,GAAGC,IAAY,CAEhF,E"}
@@ -123,7 +123,7 @@ type RuntimeStyleProcessor<T> = ((props: T, classNames: ClassNameCollector, styl
123
123
  * `;
124
124
  * ```
125
125
  */
126
- declare const atoms: <T>(...atoms: (string | RuntimeStyleProcessor<T> | false)[]) => ComponentStyles<T>;
126
+ export declare const atoms: <T>(...atoms: (string | RuntimeStyleProcessor<T> | false)[]) => ComponentStyles<T>;
127
127
  //#endregion
128
128
  //#region runtime/keyframes.d.ts
129
129
  /**
@@ -148,7 +148,7 @@ declare const atoms: <T>(...atoms: (string | RuntimeStyleProcessor<T> | false)[]
148
148
  * `;
149
149
  * ```
150
150
  */
151
- declare const keyframes: <T extends (string | number | bigint)[] = never>(styles: TemplateStringsArray, ..._dynamic: T) => string;
151
+ export declare const keyframes: <T extends (string | number | bigint)[] = never>(styles: TemplateStringsArray, ..._dynamic: T) => string;
152
152
  //#endregion
153
153
  //#region runtime/styled.d.ts
154
154
  /**
@@ -164,7 +164,7 @@ declare const keyframes: <T extends (string | number | bigint)[] = never>(styles
164
164
  * `;
165
165
  * ```
166
166
  */
167
- declare const styled: Styled;
167
+ export declare const styled: Styled;
168
168
  //#endregion
169
169
  //#region runtime/globalStyle.d.ts
170
170
  /**
@@ -211,7 +211,7 @@ type GlobalStyleInterpolation = string | number | ComponentStyles<{}> | YakCompo
211
211
  * `;
212
212
  * ```
213
213
  */
214
- declare const globalStyle: (_styles: TemplateStringsArray, ..._values: Array<GlobalStyleInterpolation>) => void;
214
+ export declare const globalStyle: (_styles: TemplateStringsArray, ..._values: Array<GlobalStyleInterpolation>) => void;
215
215
  //#endregion
216
216
  //#region runtime/cssLiteral.d.ts
217
217
  declare const yakComponentSymbol: unique symbol;
@@ -240,7 +240,7 @@ type CSSInterpolation<TProps> = string | number | undefined | null | false | Com
240
240
  * (or creates new ones if needed) that are passed as arguments. These functions receive the props, classNames, and style object as arguments
241
241
  * and operate directly on the classNames and style objects.
242
242
  */
243
- declare function css<TProps>(styles: TemplateStringsArray, ...values: CSSInterpolation<NoInfer<TProps> & {
243
+ export declare function css<TProps>(styles: TemplateStringsArray, ...values: CSSInterpolation<NoInfer<TProps> & {
244
244
  theme: YakTheme;
245
245
  }>[]): ComponentStyles<TProps>;
246
246
  //#endregion
@@ -314,139 +314,139 @@ declare const mergeCssProp: (cssProp: RuntimeStyleProcessor<unknown> | false | n
314
314
  declare const mergeClassNames: (a: string | false | null | undefined, b: string | false | null | undefined) => string | undefined;
315
315
  //#endregion
316
316
  //#region runtime/styledDom.d.ts
317
- declare const __yak_a: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
318
- declare const __yak_abbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
319
- declare const __yak_address: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
320
- declare const __yak_area: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
321
- declare const __yak_article: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
322
- declare const __yak_aside: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
323
- declare const __yak_audio: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
324
- declare const __yak_b: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
325
- declare const __yak_base: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
326
- declare const __yak_bdi: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
327
- declare const __yak_bdo: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
328
- declare const __yak_big: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
329
- declare const __yak_blockquote: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
330
- declare const __yak_body: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
331
- declare const __yak_br: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
332
- declare const __yak_button: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
333
- declare const __yak_canvas: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
334
- declare const __yak_caption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
335
- declare const __yak_cite: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
336
- declare const __yak_code: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
337
- declare const __yak_col: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
338
- declare const __yak_colgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
339
- declare const __yak_data: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
340
- declare const __yak_datalist: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
341
- declare const __yak_dd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
342
- declare const __yak_del: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
343
- declare const __yak_details: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
344
- declare const __yak_dfn: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
345
- declare const __yak_dialog: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
346
- declare const __yak_div: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
347
- declare const __yak_dl: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
348
- declare const __yak_dt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
349
- declare const __yak_em: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
350
- declare const __yak_embed: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
351
- declare const __yak_fieldset: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
352
- declare const __yak_figcaption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
353
- declare const __yak_figure: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
354
- declare const __yak_footer: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
355
- declare const __yak_form: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
356
- declare const __yak_h1: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
357
- declare const __yak_h2: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
358
- declare const __yak_h3: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
359
- declare const __yak_h4: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
360
- declare const __yak_h5: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
361
- declare const __yak_h6: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
362
- declare const __yak_header: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
363
- declare const __yak_hgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
364
- declare const __yak_hr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
365
- declare const __yak_html: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
366
- declare const __yak_i: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
367
- declare const __yak_iframe: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
368
- declare const __yak_img: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
369
- declare const __yak_input: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
370
- declare const __yak_ins: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
371
- declare const __yak_kbd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
372
- declare const __yak_keygen: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
373
- declare const __yak_label: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
374
- declare const __yak_legend: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
375
- declare const __yak_li: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
376
- declare const __yak_link: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
377
- declare const __yak_main: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
378
- declare const __yak_map: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
379
- declare const __yak_mark: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
380
- declare const __yak_menu: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
381
- declare const __yak_menuitem: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
382
- declare const __yak_meta: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
383
- declare const __yak_meter: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
384
- declare const __yak_nav: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
385
- declare const __yak_noscript: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
386
- declare const __yak_object: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
387
- declare const __yak_ol: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
388
- declare const __yak_optgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
389
- declare const __yak_option: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
390
- declare const __yak_output: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
391
- declare const __yak_p: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
392
- declare const __yak_param: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
393
- declare const __yak_picture: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
394
- declare const __yak_pre: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
395
- declare const __yak_progress: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
396
- declare const __yak_q: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
397
- declare const __yak_rp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
398
- declare const __yak_rt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
399
- declare const __yak_ruby: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
400
- declare const __yak_s: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
401
- declare const __yak_samp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
402
- declare const __yak_script: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
403
- declare const __yak_section: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
404
- declare const __yak_select: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
405
- declare const __yak_small: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
406
- declare const __yak_source: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
407
- declare const __yak_span: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
408
- declare const __yak_strong: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
409
- declare const __yak_style: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
410
- declare const __yak_sub: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
411
- declare const __yak_summary: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
412
- declare const __yak_sup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
413
- declare const __yak_table: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
414
- declare const __yak_tbody: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
415
- declare const __yak_td: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
416
- declare const __yak_textarea: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
417
- declare const __yak_tfoot: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
418
- declare const __yak_th: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
419
- declare const __yak_thead: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
420
- declare const __yak_time: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
421
- declare const __yak_tr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
422
- declare const __yak_track: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
423
- declare const __yak_u: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
424
- declare const __yak_ul: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
425
- declare const __yak_use: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
426
- declare const __yak_var: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
427
- declare const __yak_video: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
428
- declare const __yak_wbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
429
- declare const __yak_circle: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
430
- declare const __yak_clipPath: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
431
- declare const __yak_defs: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
432
- declare const __yak_ellipse: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
433
- declare const __yak_foreignObject: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
434
- declare const __yak_g: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
435
- declare const __yak_image: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
436
- declare const __yak_line: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
437
- declare const __yak_linearGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
438
- declare const __yak_marker: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
439
- declare const __yak_mask: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
440
- declare const __yak_path: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
441
- declare const __yak_pattern: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
442
- declare const __yak_polygon: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
443
- declare const __yak_polyline: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
444
- declare const __yak_radialGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
445
- declare const __yak_rect: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
446
- declare const __yak_stop: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
447
- declare const __yak_svg: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
448
- declare const __yak_text: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
449
- declare const __yak_tspan: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
317
+ export declare const __yak_a: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
318
+ export declare const __yak_abbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
319
+ export declare const __yak_address: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
320
+ export declare const __yak_area: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
321
+ export declare const __yak_article: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
322
+ export declare const __yak_aside: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
323
+ export declare const __yak_audio: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
324
+ export declare const __yak_b: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
325
+ export declare const __yak_base: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
326
+ export declare const __yak_bdi: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
327
+ export declare const __yak_bdo: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
328
+ export declare const __yak_big: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
329
+ export declare const __yak_blockquote: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
330
+ export declare const __yak_body: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
331
+ export declare const __yak_br: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
332
+ export declare const __yak_button: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
333
+ export declare const __yak_canvas: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
334
+ export declare const __yak_caption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
335
+ export declare const __yak_cite: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
336
+ export declare const __yak_code: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
337
+ export declare const __yak_col: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
338
+ export declare const __yak_colgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
339
+ export declare const __yak_data: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
340
+ export declare const __yak_datalist: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
341
+ export declare const __yak_dd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
342
+ export declare const __yak_del: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
343
+ export declare const __yak_details: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
344
+ export declare const __yak_dfn: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
345
+ export declare const __yak_dialog: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
346
+ export declare const __yak_div: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
347
+ export declare const __yak_dl: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
348
+ export declare const __yak_dt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
349
+ export declare const __yak_em: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
350
+ export declare const __yak_embed: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
351
+ export declare const __yak_fieldset: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
352
+ export declare const __yak_figcaption: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
353
+ export declare const __yak_figure: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
354
+ export declare const __yak_footer: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
355
+ export declare const __yak_form: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
356
+ export declare const __yak_h1: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
357
+ export declare const __yak_h2: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
358
+ export declare const __yak_h3: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
359
+ export declare const __yak_h4: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
360
+ export declare const __yak_h5: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
361
+ export declare const __yak_h6: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
362
+ export declare const __yak_header: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
363
+ export declare const __yak_hgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
364
+ export declare const __yak_hr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
365
+ export declare const __yak_html: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
366
+ export declare const __yak_i: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
367
+ export declare const __yak_iframe: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
368
+ export declare const __yak_img: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
369
+ export declare const __yak_input: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
370
+ export declare const __yak_ins: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
371
+ export declare const __yak_kbd: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
372
+ export declare const __yak_keygen: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
373
+ export declare const __yak_label: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
374
+ export declare const __yak_legend: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
375
+ export declare const __yak_li: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
376
+ export declare const __yak_link: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
377
+ export declare const __yak_main: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
378
+ export declare const __yak_map: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
379
+ export declare const __yak_mark: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
380
+ export declare const __yak_menu: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
381
+ export declare const __yak_menuitem: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
382
+ export declare const __yak_meta: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
383
+ export declare const __yak_meter: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
384
+ export declare const __yak_nav: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
385
+ export declare const __yak_noscript: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
386
+ export declare const __yak_object: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
387
+ export declare const __yak_ol: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
388
+ export declare const __yak_optgroup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
389
+ export declare const __yak_option: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
390
+ export declare const __yak_output: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
391
+ export declare const __yak_p: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
392
+ export declare const __yak_param: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
393
+ export declare const __yak_picture: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
394
+ export declare const __yak_pre: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
395
+ export declare const __yak_progress: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
396
+ export declare const __yak_q: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
397
+ export declare const __yak_rp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
398
+ export declare const __yak_rt: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
399
+ export declare const __yak_ruby: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
400
+ export declare const __yak_s: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
401
+ export declare const __yak_samp: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
402
+ export declare const __yak_script: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
403
+ export declare const __yak_section: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
404
+ export declare const __yak_select: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
405
+ export declare const __yak_small: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
406
+ export declare const __yak_source: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
407
+ export declare const __yak_span: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
408
+ export declare const __yak_strong: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
409
+ export declare const __yak_style: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
410
+ export declare const __yak_sub: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
411
+ export declare const __yak_summary: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
412
+ export declare const __yak_sup: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
413
+ export declare const __yak_table: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
414
+ export declare const __yak_tbody: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
415
+ export declare const __yak_td: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
416
+ export declare const __yak_textarea: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
417
+ export declare const __yak_tfoot: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
418
+ export declare const __yak_th: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
419
+ export declare const __yak_thead: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
420
+ export declare const __yak_time: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
421
+ export declare const __yak_tr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
422
+ export declare const __yak_track: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
423
+ export declare const __yak_u: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
424
+ export declare const __yak_ul: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
425
+ export declare const __yak_use: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
426
+ export declare const __yak_var: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
427
+ export declare const __yak_video: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
428
+ export declare const __yak_wbr: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
429
+ export declare const __yak_circle: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
430
+ export declare const __yak_clipPath: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
431
+ export declare const __yak_defs: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
432
+ export declare const __yak_ellipse: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
433
+ export declare const __yak_foreignObject: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
434
+ export declare const __yak_g: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
435
+ export declare const __yak_image: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
436
+ export declare const __yak_line: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
437
+ export declare const __yak_linearGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
438
+ export declare const __yak_marker: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
439
+ export declare const __yak_mask: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
440
+ export declare const __yak_path: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
441
+ export declare const __yak_pattern: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
442
+ export declare const __yak_polygon: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
443
+ export declare const __yak_polyline: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
444
+ export declare const __yak_radialGradient: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
445
+ export declare const __yak_rect: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
446
+ export declare const __yak_stop: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
447
+ export declare const __yak_svg: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
448
+ export declare const __yak_text: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
449
+ export declare const __yak_tspan: LiteralWithAttrs<import("react").DOMAttributes<Element> & import("react").RefAttributes<Element>>;
450
450
  //#endregion
451
- export { YakThemeProvider, __yak_a, __yak_abbr, __yak_address, __yak_area, __yak_article, __yak_aside, __yak_audio, __yak_b, __yak_base, __yak_bdi, __yak_bdo, __yak_big, __yak_blockquote, __yak_body, __yak_br, __yak_button, __yak_canvas, __yak_caption, __yak_circle, __yak_cite, __yak_clipPath, __yak_code, __yak_col, __yak_colgroup, __yak_data, __yak_datalist, __yak_dd, __yak_defs, __yak_del, __yak_details, __yak_dfn, __yak_dialog, __yak_div, __yak_dl, __yak_dt, __yak_ellipse, __yak_em, __yak_embed, __yak_fieldset, __yak_figcaption, __yak_figure, __yak_footer, __yak_foreignObject, __yak_form, __yak_g, __yak_h1, __yak_h2, __yak_h3, __yak_h4, __yak_h5, __yak_h6, __yak_header, __yak_hgroup, __yak_hr, __yak_html, __yak_i, __yak_iframe, __yak_image, __yak_img, __yak_input, __yak_ins, __yak_kbd, __yak_keygen, __yak_label, __yak_legend, __yak_li, __yak_line, __yak_linearGradient, __yak_link, __yak_main, __yak_map, __yak_mark, __yak_marker, __yak_mask, __yak_menu, __yak_menuitem, mergeClassNames as __yak_mergeClassNames, mergeCssProp as __yak_mergeCssProp, __yak_meta, __yak_meter, __yak_nav, __yak_noscript, __yak_object, __yak_ol, __yak_optgroup, __yak_option, __yak_output, __yak_p, __yak_param, __yak_path, __yak_pattern, __yak_picture, __yak_polygon, __yak_polyline, __yak_pre, __yak_progress, __yak_q, __yak_radialGradient, __yak_rect, __yak_rp, __yak_rt, __yak_ruby, __yak_s, __yak_samp, __yak_script, __yak_section, __yak_select, __yak_small, __yak_source, __yak_span, __yak_stop, __yak_strong, __yak_style, __yak_sub, __yak_summary, __yak_sup, __yak_svg, __yak_table, __yak_tbody, __yak_td, __yak_text, __yak_textarea, __yak_tfoot, __yak_th, __yak_thead, __yak_time, __yak_tr, __yak_track, __yak_tspan, __yak_u, __yak_ul, unitPostFix as __yak_unitPostFix, __yak_use, __yak_var, __yak_video, __yak_wbr, atoms, css, globalStyle, keyframes, styled, useTheme };
451
+ export { YakThemeProvider, mergeClassNames as __yak_mergeClassNames, mergeCssProp as __yak_mergeCssProp, unitPostFix as __yak_unitPostFix, useTheme };
452
452
  //# sourceMappingURL=internal.d.ts.map
@@ -24,7 +24,7 @@ interface Evaluator {
24
24
  [Symbol.asyncDispose](): Promise<void>;
25
25
  }
26
26
  /** Creates an evaluator that runs modules in isolated worker threads with dependency tracking. */
27
- declare function createEvaluator(): Promise<Evaluator>;
27
+ export declare function createEvaluator(): Promise<Evaluator>;
28
28
  //#endregion
29
- export { type EvaluateResult, type Evaluator, createEvaluator };
29
+ export type { EvaluateResult, Evaluator };
30
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsx-dev-runtime.js","names":[],"sources":["../runtime/jsx-dev-runtime.ts"],"sourcesContent":["import ReactJSXRuntimeDev from \"react/jsx-dev-runtime\";\n\nconst Fragment = ReactJSXRuntimeDev.Fragment;\nconst jsxDEV = ReactJSXRuntimeDev.jsxDEV;\n\nexport { Fragment, jsxDEV };\n"],"mappings":"qCAEA,MAAM,EAAW,EAAmB,SAC9B,EAAS,EAAmB"}
1
+ {"version":3,"file":"jsx-dev-runtime.js","names":["ReactJSXRuntimeDev","Fragment","jsxDEV"],"sources":["../runtime/jsx-dev-runtime.ts"],"sourcesContent":["import ReactJSXRuntimeDev from \"react/jsx-dev-runtime\";\n\nconst Fragment = ReactJSXRuntimeDev.Fragment;\nconst jsxDEV = ReactJSXRuntimeDev.jsxDEV;\n\nexport { Fragment, jsxDEV };\n"],"mappings":"A,qCAEA,MAAMC,EAAWD,EAAmB,SAC9BE,EAASF,EAAmB,O"}
@@ -20,7 +20,7 @@ type WithConditionalCSSProp<P> = "className" | "style" extends keyof P ? string
20
20
  declare const Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
21
21
  declare const jsx: typeof ReactJSXRuntime.jsx;
22
22
  declare const jsxs: typeof ReactJSXRuntime.jsxs;
23
- declare namespace YakJSX {
23
+ export declare namespace YakJSX {
24
24
  type Element = React.JSX.Element;
25
25
  type ElementType = React.JSX.ElementType;
26
26
  type ElementClass = React.JSX.ElementClass;
@@ -34,5 +34,5 @@ declare namespace YakJSX {
34
34
  }; };
35
35
  }
36
36
  //#endregion
37
- export { Fragment, type YakJSX as JSX, YakJSX, jsx, jsxs };
37
+ export { Fragment, type YakJSX as JSX, jsx, jsxs };
38
38
  //# sourceMappingURL=jsx-runtime.d.ts.map