@fluentic/style 0.1.0-beta.6 → 0.1.0-beta.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @fluentic/style
2
2
 
3
+ ## 0.1.0-beta.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Keep Preact and SolidJS JSX type augmentations opt-in so React projects using
8
+ `@fluentic/style/plugin/jsx` no longer need optional framework peers installed.
9
+
10
+ - Keep React JSX `css` prop types in the default package type bundle.
11
+ - Add explicit `@fluentic/style/types/preact` and
12
+ `@fluentic/style/types/solid` type entrypoints for Preact and SolidJS
13
+ projects.
14
+ - Document the required project-level declaration-file import and update the
15
+ Preact and SolidJS examples.
16
+
3
17
  ## 0.1.0-beta.6
4
18
 
5
19
  ### Patch Changes
package/dist/entry/dev.js CHANGED
@@ -3,7 +3,7 @@ import { t as configureStyleRuntime } from "../config-BtANtGAh.js";
3
3
  import { a as AT_RULE_REF, b as importantValue, o as createAtRuleRef, s as isAtRuleRef, v as isStyleWeightValue, x as isStyleImportantValue, y as weightValue } from "../data-DUvixly5.js";
4
4
  import { _ as TOKEN_ID, b as TOKEN_VAR_NAME, c as createStyleTokenOverride, f as getStyleTokenId, g as isStyleTokenOverrideData, h as isStyleTokenData, l as getStyleTokenOverrideDebug, m as getStyleTokenVarName, o as TOKEN_DEBUG, p as getStyleTokenName, s as createStyleToken, u as resetStyleTokenIdCounter, v as TOKEN_NAME, y as TOKEN_OVERRIDE } from "../token-CAQWMtan.js";
5
5
  import { i as styleTransform, n as classNameValue, r as isClassNameValue, t as classNameTransform } from "../transform-BkrLIiIR.js";
6
- import { a as createValues, c as resetStyleThemeIdCounter, d as createStyleFn, f as getStyleFnMeta, g as type, h as transformKeyframes, i as createToken, l as createClassNameFn, m as createStyleKeyframes, n as bindScope, o as createTokens, p as style, r as combineScope, s as createTheme, t as combineStyle, u as assignStyleFnMeta } from "../types-BhdAXX7z.js";
6
+ import { a as createValues, c as resetStyleThemeIdCounter, d as createStyleFn, f as getStyleFnMeta, g as type, h as transformKeyframes, i as createToken, l as createClassNameFn, m as createStyleKeyframes, n as bindScope, o as createTokens, p as style, r as combineScope, s as createTheme, t as combineStyle, u as assignStyleFnMeta } from "../style-DFsOmxLg.js";
7
7
  import { n as getToken } from "../css-nmclCl2P.js";
8
8
  import { t as getClassName } from "../getClassName-CHd0iCXp.js";
9
9
  import { t as transformElement } from "../jsx-BMFC8_tA.js";
@@ -3,7 +3,6 @@ import { $ as getStyleTokenOverrideDebug, Ct as weightValue, G as classNameTrans
3
3
  import { a as createValues, c as resetStyleThemeIdCounter, d as createStyleFn, f as getStyleFnMeta, g as type, h as transformKeyframes, i as createToken, l as createClassNameFn, m as createStyleKeyframes, n as bindScope, o as createTokens, p as style, r as combineScope, s as createTheme, t as createCombinedStyleGetter, u as assignStyleFnMeta } from "../combine-D0AXSTn-.js";
4
4
  import { createElement as createElement$1 } from "react";
5
5
  import * as react from "react/jsx-runtime";
6
- import "preact";
7
6
  //#region runtime/core/cache/combineRuntime.ts
8
7
  const getCombinedStyle = createCombinedStyleGetter(runtimeTokenValueResolver);
9
8
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"prod.js","names":["reactCreateElement"],"sources":["../../runtime/core/cache/combineRuntime.ts","../../runtime/style/style.ts","../../jsx/utils.ts","../../jsx/runtime/jsx_runtime.ts"],"sourcesContent":["import { createCombinedStyleGetter } from './combine';\nimport { runtimeTokenValueResolver } from './token';\n\nexport const getCombinedStyle = createCombinedStyleGetter(runtimeTokenValueResolver);\n","import type { SheetData, SlotData, StyleData } from '../../builder/data';\nimport { isSheetData, isSlotData, isStyleData } from '../../builder/data';\nimport type { CombinedStyleArg } from '../core/cache/combine';\nimport { getCombinedStyle } from '../core/cache/combineRuntime';\nimport type { CombinedStyle } from '../core/combinedStyle';\nimport type { StyleProp } from '../types';\n\nexport type StyleCombiner<T extends object> = (\n ...args: CombinedStyleArg<T>[]\n) => CombinedStyle<T>;\n\nexport type CombinedStyleFor<T extends object | StyleCombiner<any>> = CombinedStyleArg<InferStyleCombinerStyles<T>>;\n\ntype InferStyleCombinerStyles<T extends object | StyleCombiner<any>> = T extends StyleCombiner<infer Styles> ? Styles\n : T extends object ? T\n : never;\n\ntype SingleStyleItem = StyleData | SheetData | SlotData;\ntype DirectStyleItem =\n | SingleStyleItem\n | false\n | null\n | undefined\n | readonly DirectStyleItem[];\n\ntype CombineStyleFn = {\n (style: SingleStyleItem, ...args: CombinedStyleArg<any>[]): StyleProp;\n (styles: readonly DirectStyleItem[], ...args: CombinedStyleArg<any>[]): StyleProp;\n <T extends object>(styles: T, ...args: CombinedStyleArg<T>[]): CombinedStyle<T>;\n};\n\ntype StyleWithCombiner = {\n (style: SingleStyleItem): StyleProp;\n <T extends object>(styles: T): CombinedStyle<T>;\n};\n\ntype CombineStyle = CombineStyleFn & {\n for<T extends object>(styles: T): StyleCombiner<T>;\n with(...args: CombinedStyleArg<any>[]): StyleWithCombiner;\n multi<T extends readonly SingleStyleItem[]>(\n styles: T,\n ...args: CombinedStyleArg<any>[]\n ): { [P in keyof T]: StyleProp; };\n};\n\ntype StyleWithArgs = {\n combineArgs: CombinedStyleArg<any>[];\n styles: SingleStyleItem[];\n};\n\nconst singleStyleWrappers = new WeakMap<SingleStyleItem, { value: SingleStyleItem; }>();\n\nconst combineStyleBase = <T extends object>(\n styles: T,\n ...args: CombinedStyleArg<T>[]\n): CombinedStyle<T> => getCombinedStyle(styles, args);\n\nconst combineStyleResolve = ((\n styles: object,\n ...args: CombinedStyleArg<any>[]\n) => {\n if (Array.isArray(styles)) return combineStyleArray(styles, collectStyleWithArgs(args));\n\n return isSingleStyleItem(styles)\n ? combineStyleSingle(styles, collectStyleWithArgs(args))\n : combineStyleBase(styles, ...args);\n}) as CombineStyleFn;\n\nconst combineStyleFor = <T extends object>(styles: T): StyleCombiner<T> => {\n return (...args: CombinedStyleArg<T>[]) => combineStyleBase(styles, ...args);\n};\n\nconst combineStyleWith = (...args: CombinedStyleArg<any>[]): StyleWithCombiner => {\n const withArgs = collectStyleWithArgs(args);\n\n return ((styles: object) => {\n return isSingleStyleItem(styles)\n ? combineStyleSingle(styles, withArgs)\n : combineStyleBase(styles, ...withArgs.combineArgs);\n }) as StyleWithCombiner;\n};\n\nconst combineStyleMulti = <T extends readonly SingleStyleItem[]>(\n styles: T,\n ...args: CombinedStyleArg<any>[]\n): { [P in keyof T]: StyleProp; } => {\n const withArgs = collectStyleWithArgs(args);\n\n return styles.map((style) => combineStyleSingle(style, withArgs)) as { [P in keyof T]: StyleProp; };\n};\n\nfunction combineStyleSingle(\n style: SingleStyleItem,\n args: StyleWithArgs,\n): StyleProp {\n const result = combineStyleSingleItem(style, args.combineArgs);\n\n if (!args.styles.length) return result;\n\n const styles: StyleProp[] = [result];\n\n for (let i = 0, len = args.styles.length; i < len; i++) {\n styles.push(combineStyleSingleItem(args.styles[i], args.combineArgs));\n }\n\n return styles;\n}\n\nfunction combineStyleArray(\n styles: readonly DirectStyleItem[],\n args: StyleWithArgs,\n): StyleProp {\n const result: StyleProp[] = [];\n\n collectDirectStyles(styles, result, args);\n\n for (let i = 0, len = args.styles.length; i < len; i++) {\n result.push(combineStyleSingleItem(args.styles[i], args.combineArgs));\n }\n\n return result;\n}\n\nfunction collectDirectStyles(\n styles: readonly DirectStyleItem[],\n result: StyleProp[],\n args: StyleWithArgs,\n) {\n for (let i = 0, len = styles.length; i < len; i++) {\n const style = styles[i];\n\n if (!style) continue;\n\n if (Array.isArray(style)) {\n collectDirectStyles(style, result, args);\n continue;\n }\n\n if (isSingleStyleItem(style)) {\n result.push(combineStyleSingleItem(style, args.combineArgs));\n }\n }\n}\n\nfunction combineStyleSingleItem(\n style: SingleStyleItem,\n args: readonly CombinedStyleArg<any>[],\n): StyleProp {\n const wrapper = getSingleStyleWrapper(style);\n\n return combineStyleBase<{ value: SingleStyleItem; }>(\n wrapper,\n ...(args as CombinedStyleArg<{ value: SingleStyleItem; }>[]),\n ).value as StyleProp;\n}\n\nfunction getSingleStyleWrapper(style: SingleStyleItem) {\n let wrapper = singleStyleWrappers.get(style);\n\n if (!wrapper) {\n wrapper = { value: style };\n singleStyleWrappers.set(style, wrapper);\n }\n\n return wrapper;\n}\n\nfunction isSingleStyleItem(value: object): value is SingleStyleItem {\n return isStyleData(value) || isSheetData(value) || isSlotData(value);\n}\n\nfunction collectStyleWithArgs(args: readonly CombinedStyleArg<any>[]) {\n const result: StyleWithArgs = {\n combineArgs: [],\n styles: [],\n };\n\n collectArgs(args, result);\n\n return result;\n}\n\nfunction collectArgs(\n args: readonly CombinedStyleArg<any>[],\n result: StyleWithArgs,\n) {\n for (let i = 0, len = args.length; i < len; i++) {\n const arg = args[i];\n\n if (!arg) continue;\n\n if (Array.isArray(arg)) {\n collectArgs(arg, result);\n continue;\n }\n\n result.combineArgs.push(arg);\n\n if (isSingleStyleItem(arg)) {\n result.styles.push(arg);\n }\n }\n}\n\nexport const combineStyle = Object.assign(combineStyleResolve, {\n for: combineStyleFor,\n with: combineStyleWith,\n multi: combineStyleMulti,\n}) as CombineStyle;\n","import type { createElement, ElementType, Fragment } from 'react';\nimport type { jsxDEV } from 'react/jsx-dev-runtime';\nimport type { jsx, jsxs } from 'react/jsx-runtime';\n\nexport type FnJsxDEV = typeof jsxDEV;\nexport type FnJsx = typeof jsx;\nexport type FnJsxs = typeof jsxs;\nexport type FnCreateElement = typeof createElement;\n\nexport type TransformElementArgs = {\n type: ElementType;\n props: unknown;\n source?: unknown;\n};\n\nexport type TransformElement = {\n (args: TransformElementArgs): TransformElementArgs;\n};\n\nexport function wrapCreateElement(\n createElement: FnCreateElement,\n transformElement: TransformElement,\n): FnCreateElement {\n const fn = (type: ElementType, props: unknown, ...children: []) => {\n const result = transformElement({ type, props });\n\n return createElement(result.type, result.props, ...children);\n };\n\n return fn as FnCreateElement;\n}\n\nexport function wrapFragment(\n fragment: typeof Fragment,\n) {\n return fragment;\n}\n\nexport function createJsxDEV(\n fn: FnJsxDEV,\n transformElement: TransformElement,\n): FnJsxDEV {\n return (type, props, key, isStatic, source, self) => {\n const result = transformElement({ type, props, source });\n\n return fn(result.type, result.props, key, isStatic, source, self);\n };\n}\n\nexport function createJsx(\n fn: FnJsx,\n transformElement: TransformElement,\n): FnJsx {\n return (type, props, key) => {\n const result = transformElement({ type, props });\n\n return fn(result.type, result.props, key);\n };\n}\n","import { createElement as reactCreateElement } from 'react';\nimport * as react from 'react/jsx-runtime';\nimport { transformElement } from '../../runtime/core/jsx';\nimport { createJsx, wrapCreateElement, wrapFragment } from '../utils';\n\nexport type { JSX } from 'react/jsx-runtime';\n\nexport const createElement = wrapCreateElement(reactCreateElement, transformElement);\n\nexport const Fragment = wrapFragment(react.Fragment);\nexport const jsx = createJsx(react.jsx, transformElement);\nexport const jsxs = createJsx(react.jsxs, transformElement);\n"],"mappings":";;;;;;;AAGA,MAAa,mBAAmB,0BAA0B,yBAAyB;;;AC+CnF,MAAM,sCAAsB,IAAI,QAAsD;AAEtF,MAAM,oBACJ,QACA,GAAG,SACkB,iBAAiB,QAAQ,IAAI;AAEpD,MAAM,wBACJ,QACA,GAAG,SACA;CACH,IAAI,MAAM,QAAQ,MAAM,GAAG,OAAO,kBAAkB,QAAQ,qBAAqB,IAAI,CAAC;CAEtF,OAAO,kBAAkB,MAAM,IAC3B,mBAAmB,QAAQ,qBAAqB,IAAI,CAAC,IACrD,iBAAiB,QAAQ,GAAG,IAAI;AACtC;AAEA,MAAM,mBAAqC,WAAgC;CACzE,QAAQ,GAAG,SAAgC,iBAAiB,QAAQ,GAAG,IAAI;AAC7E;AAEA,MAAM,oBAAoB,GAAG,SAAqD;CAChF,MAAM,WAAW,qBAAqB,IAAI;CAE1C,SAAS,WAAmB;EAC1B,OAAO,kBAAkB,MAAM,IAC3B,mBAAmB,QAAQ,QAAQ,IACnC,iBAAiB,QAAQ,GAAG,SAAS,WAAW;CACtD;AACF;AAEA,MAAM,qBACJ,QACA,GAAG,SAC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,kBAAkB,OAAyC;CAClE,OAAO,YAAY,KAAK,KAAK,YAAY,KAAK,KAAK,WAAW,KAAK;AACrE;AAEA,SAAS,qBAAqB,MAAwC;CACpE,MAAM,SAAwB;EAC5B,aAAa,CAAC;EACd,QAAQ,CAAC;CACX;CAEA,YAAY,MAAM,MAAM;CAExB,OAAO;AACT;AAEA,SAAS,YACP,MACA,QACA;CACA,KAAK,IAAI,IAAI,GAAG,MAAM,KAAK,QAAQ,IAAI,KAAK,KAAK;EAC/C,MAAM,MAAM,KAAK;EAEjB,IAAI,CAAC,KAAK;EAEV,IAAI,MAAM,QAAQ,GAAG,GAAG;GACtB,YAAY,KAAK,MAAM;GACvB;EACF;EAEA,OAAO,YAAY,KAAK,GAAG;EAE3B,IAAI,kBAAkB,GAAG,GACvB,OAAO,OAAO,KAAK,GAAG;CAE1B;AACF;AAEA,MAAa,eAAe,OAAO,OAAO,qBAAqB;CAC7D,KAAK;CACL,MAAM;CACN,OAAO;AACT,CAAC;;;AC7LD,SAAgB,kBACd,eACA,kBACiB;CACjB,MAAM,MAAM,MAAmB,OAAgB,GAAG,aAAiB;EACjE,MAAM,SAAS,iBAAiB;GAAE;GAAM;EAAM,CAAC;EAE/C,OAAO,cAAc,OAAO,MAAM,OAAO,OAAO,GAAG,QAAQ;CAC7D;CAEA,OAAO;AACT;;;ACvBA,MAAa,gBAAgB,kBAAkBA,iBAAoB,gBAAgB;AAE9C,MAAM;AACd,MAAM;AACL,MAAM"}
1
+ {"version":3,"file":"prod.js","names":["reactCreateElement"],"sources":["../../runtime/core/cache/combineRuntime.ts","../../runtime/style/style.ts","../../jsx/utils.ts","../../jsx/runtime/jsx_runtime.ts"],"sourcesContent":["import { createCombinedStyleGetter } from './combine';\nimport { runtimeTokenValueResolver } from './token';\n\nexport const getCombinedStyle = createCombinedStyleGetter(runtimeTokenValueResolver);\n","import type { SheetData, SlotData, StyleData } from '../../builder/data';\nimport { isSheetData, isSlotData, isStyleData } from '../../builder/data';\nimport type { CombinedStyleArg } from '../core/cache/combine';\nimport { getCombinedStyle } from '../core/cache/combineRuntime';\nimport type { CombinedStyle } from '../core/combinedStyle';\nimport type { StyleProp } from '../types';\n\nexport type StyleCombiner<T extends object> = (\n ...args: CombinedStyleArg<T>[]\n) => CombinedStyle<T>;\n\nexport type CombinedStyleFor<T extends object | StyleCombiner<any>> = CombinedStyleArg<InferStyleCombinerStyles<T>>;\n\ntype InferStyleCombinerStyles<T extends object | StyleCombiner<any>> = T extends StyleCombiner<infer Styles> ? Styles\n : T extends object ? T\n : never;\n\ntype SingleStyleItem = StyleData | SheetData | SlotData;\ntype DirectStyleItem =\n | SingleStyleItem\n | false\n | null\n | undefined\n | readonly DirectStyleItem[];\n\ntype CombineStyleFn = {\n (style: SingleStyleItem, ...args: CombinedStyleArg<any>[]): StyleProp;\n (styles: readonly DirectStyleItem[], ...args: CombinedStyleArg<any>[]): StyleProp;\n <T extends object>(styles: T, ...args: CombinedStyleArg<T>[]): CombinedStyle<T>;\n};\n\ntype StyleWithCombiner = {\n (style: SingleStyleItem): StyleProp;\n <T extends object>(styles: T): CombinedStyle<T>;\n};\n\ntype CombineStyle = CombineStyleFn & {\n for<T extends object>(styles: T): StyleCombiner<T>;\n with(...args: CombinedStyleArg<any>[]): StyleWithCombiner;\n multi<T extends readonly SingleStyleItem[]>(\n styles: T,\n ...args: CombinedStyleArg<any>[]\n ): { [P in keyof T]: StyleProp; };\n};\n\ntype StyleWithArgs = {\n combineArgs: CombinedStyleArg<any>[];\n styles: SingleStyleItem[];\n};\n\nconst singleStyleWrappers = new WeakMap<SingleStyleItem, { value: SingleStyleItem; }>();\n\nconst combineStyleBase = <T extends object>(\n styles: T,\n ...args: CombinedStyleArg<T>[]\n): CombinedStyle<T> => getCombinedStyle(styles, args);\n\nconst combineStyleResolve = ((\n styles: object,\n ...args: CombinedStyleArg<any>[]\n) => {\n if (Array.isArray(styles)) return combineStyleArray(styles, collectStyleWithArgs(args));\n\n return isSingleStyleItem(styles)\n ? combineStyleSingle(styles, collectStyleWithArgs(args))\n : combineStyleBase(styles, ...args);\n}) as CombineStyleFn;\n\nconst combineStyleFor = <T extends object>(styles: T): StyleCombiner<T> => {\n return (...args: CombinedStyleArg<T>[]) => combineStyleBase(styles, ...args);\n};\n\nconst combineStyleWith = (...args: CombinedStyleArg<any>[]): StyleWithCombiner => {\n const withArgs = collectStyleWithArgs(args);\n\n return ((styles: object) => {\n return isSingleStyleItem(styles)\n ? combineStyleSingle(styles, withArgs)\n : combineStyleBase(styles, ...withArgs.combineArgs);\n }) as StyleWithCombiner;\n};\n\nconst combineStyleMulti = <T extends readonly SingleStyleItem[]>(\n styles: T,\n ...args: CombinedStyleArg<any>[]\n): { [P in keyof T]: StyleProp; } => {\n const withArgs = collectStyleWithArgs(args);\n\n return styles.map((style) => combineStyleSingle(style, withArgs)) as { [P in keyof T]: StyleProp; };\n};\n\nfunction combineStyleSingle(\n style: SingleStyleItem,\n args: StyleWithArgs,\n): StyleProp {\n const result = combineStyleSingleItem(style, args.combineArgs);\n\n if (!args.styles.length) return result;\n\n const styles: StyleProp[] = [result];\n\n for (let i = 0, len = args.styles.length; i < len; i++) {\n styles.push(combineStyleSingleItem(args.styles[i], args.combineArgs));\n }\n\n return styles;\n}\n\nfunction combineStyleArray(\n styles: readonly DirectStyleItem[],\n args: StyleWithArgs,\n): StyleProp {\n const result: StyleProp[] = [];\n\n collectDirectStyles(styles, result, args);\n\n for (let i = 0, len = args.styles.length; i < len; i++) {\n result.push(combineStyleSingleItem(args.styles[i], args.combineArgs));\n }\n\n return result;\n}\n\nfunction collectDirectStyles(\n styles: readonly DirectStyleItem[],\n result: StyleProp[],\n args: StyleWithArgs,\n) {\n for (let i = 0, len = styles.length; i < len; i++) {\n const style = styles[i];\n\n if (!style) continue;\n\n if (Array.isArray(style)) {\n collectDirectStyles(style, result, args);\n continue;\n }\n\n if (isSingleStyleItem(style)) {\n result.push(combineStyleSingleItem(style, args.combineArgs));\n }\n }\n}\n\nfunction combineStyleSingleItem(\n style: SingleStyleItem,\n args: readonly CombinedStyleArg<any>[],\n): StyleProp {\n const wrapper = getSingleStyleWrapper(style);\n\n return combineStyleBase<{ value: SingleStyleItem; }>(\n wrapper,\n ...(args as CombinedStyleArg<{ value: SingleStyleItem; }>[]),\n ).value as StyleProp;\n}\n\nfunction getSingleStyleWrapper(style: SingleStyleItem) {\n let wrapper = singleStyleWrappers.get(style);\n\n if (!wrapper) {\n wrapper = { value: style };\n singleStyleWrappers.set(style, wrapper);\n }\n\n return wrapper;\n}\n\nfunction isSingleStyleItem(value: object): value is SingleStyleItem {\n return isStyleData(value) || isSheetData(value) || isSlotData(value);\n}\n\nfunction collectStyleWithArgs(args: readonly CombinedStyleArg<any>[]) {\n const result: StyleWithArgs = {\n combineArgs: [],\n styles: [],\n };\n\n collectArgs(args, result);\n\n return result;\n}\n\nfunction collectArgs(\n args: readonly CombinedStyleArg<any>[],\n result: StyleWithArgs,\n) {\n for (let i = 0, len = args.length; i < len; i++) {\n const arg = args[i];\n\n if (!arg) continue;\n\n if (Array.isArray(arg)) {\n collectArgs(arg, result);\n continue;\n }\n\n result.combineArgs.push(arg);\n\n if (isSingleStyleItem(arg)) {\n result.styles.push(arg);\n }\n }\n}\n\nexport const combineStyle = Object.assign(combineStyleResolve, {\n for: combineStyleFor,\n with: combineStyleWith,\n multi: combineStyleMulti,\n}) as CombineStyle;\n","import type { createElement, ElementType, Fragment } from 'react';\nimport type { jsxDEV } from 'react/jsx-dev-runtime';\nimport type { jsx, jsxs } from 'react/jsx-runtime';\n\nexport type FnJsxDEV = typeof jsxDEV;\nexport type FnJsx = typeof jsx;\nexport type FnJsxs = typeof jsxs;\nexport type FnCreateElement = typeof createElement;\n\nexport type TransformElementArgs = {\n type: ElementType;\n props: unknown;\n source?: unknown;\n};\n\nexport type TransformElement = {\n (args: TransformElementArgs): TransformElementArgs;\n};\n\nexport function wrapCreateElement(\n createElement: FnCreateElement,\n transformElement: TransformElement,\n): FnCreateElement {\n const fn = (type: ElementType, props: unknown, ...children: []) => {\n const result = transformElement({ type, props });\n\n return createElement(result.type, result.props, ...children);\n };\n\n return fn as FnCreateElement;\n}\n\nexport function wrapFragment(\n fragment: typeof Fragment,\n) {\n return fragment;\n}\n\nexport function createJsxDEV(\n fn: FnJsxDEV,\n transformElement: TransformElement,\n): FnJsxDEV {\n return (type, props, key, isStatic, source, self) => {\n const result = transformElement({ type, props, source });\n\n return fn(result.type, result.props, key, isStatic, source, self);\n };\n}\n\nexport function createJsx(\n fn: FnJsx,\n transformElement: TransformElement,\n): FnJsx {\n return (type, props, key) => {\n const result = transformElement({ type, props });\n\n return fn(result.type, result.props, key);\n };\n}\n","import { createElement as reactCreateElement } from 'react';\nimport * as react from 'react/jsx-runtime';\nimport { transformElement } from '../../runtime/core/jsx';\nimport { createJsx, wrapCreateElement, wrapFragment } from '../utils';\n\nexport type { JSX } from 'react/jsx-runtime';\n\nexport const createElement = wrapCreateElement(reactCreateElement, transformElement);\n\nexport const Fragment = wrapFragment(react.Fragment);\nexport const jsx = createJsx(react.jsx, transformElement);\nexport const jsxs = createJsx(react.jsxs, transformElement);\n"],"mappings":";;;;;;AAGA,MAAa,mBAAmB,0BAA0B,yBAAyB;;;AC+CnF,MAAM,sCAAsB,IAAI,QAAsD;AAEtF,MAAM,oBACJ,QACA,GAAG,SACkB,iBAAiB,QAAQ,IAAI;AAEpD,MAAM,wBACJ,QACA,GAAG,SACA;CACH,IAAI,MAAM,QAAQ,MAAM,GAAG,OAAO,kBAAkB,QAAQ,qBAAqB,IAAI,CAAC;CAEtF,OAAO,kBAAkB,MAAM,IAC3B,mBAAmB,QAAQ,qBAAqB,IAAI,CAAC,IACrD,iBAAiB,QAAQ,GAAG,IAAI;AACtC;AAEA,MAAM,mBAAqC,WAAgC;CACzE,QAAQ,GAAG,SAAgC,iBAAiB,QAAQ,GAAG,IAAI;AAC7E;AAEA,MAAM,oBAAoB,GAAG,SAAqD;CAChF,MAAM,WAAW,qBAAqB,IAAI;CAE1C,SAAS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,UAAU,oBAAoB,IAAI,KAAK;CAE3C,IAAI,CAAC,SAAS;EACZ,UAAU,EAAE,OAAO,MAAM;EACzB,oBAAoB,IAAI,OAAO,OAAO;CACxC;CAEA,OAAO;AACT;AAEA,SAAS,kBAAkB,OAAyC;CAClE,OAAO,YAAY,KAAK,KAAK,YAAY,KAAK,KAAK,WAAW,KAAK;AACrE;AAEA,SAAS,qBAAqB,MAAwC;CACpE,MAAM,SAAwB;EAC5B,aAAa,CAAC;EACd,QAAQ,CAAC;CACX;CAEA,YAAY,MAAM,MAAM;CAExB,OAAO;AACT;AAEA,SAAS,YACP,MACA,QACA;CACA,KAAK,IAAI,IAAI,GAAG,MAAM,KAAK,QAAQ,IAAI,KAAK,KAAK;EAC/C,MAAM,MAAM,KAAK;EAEjB,IAAI,CAAC,KAAK;EAEV,IAAI,MAAM,QAAQ,GAAG,GAAG;GACtB,YAAY,KAAK,MAAM;GACvB;EACF;EAEA,OAAO,YAAY,KAAK,GAAG;EAE3B,IAAI,kBAAkB,GAAG,GACvB,OAAO,OAAO,KAAK,GAAG;CAE1B;AACF;AAEA,MAAa,eAAe,OAAO,OAAO,qBAAqB;CAC7D,KAAK;CACL,MAAM;CACN,OAAO;AACT,CAAC;;;AC7LD,SAAgB,kBACd,eACA,kBACiB;CACjB,MAAM,MAAM,MAAmB,OAAgB,GAAG,aAAiB;EACjE,MAAM,SAAS,iBAAiB;GAAE;GAAM;EAAM,CAAC;EAE/C,OAAO,cAAc,OAAO,MAAM,OAAO,OAAO,GAAG,QAAQ;CAC7D;CAEA,OAAO;AACT;;;ACvBA,MAAa,gBAAgB,kBAAkBA,iBAAoB,gBAAgB;AAE9C,MAAM;AACd,MAAM;AACL,MAAM"}
@@ -4,7 +4,6 @@ import { t as getClassName } from "../getClassName-CHZKhmde.js";
4
4
  import { A as isAtRuleRef, B as createSelectorData, D as weightValue, E as isStyleWeightValue, F as importantValue, G as createThemeData, H as createSlotData, I as isStyleImportantValue, L as mergeScopeData, M as classNameValue, N as isClassNameValue, O as AT_RULE_REF, P as styleTransform, R as createScopeData, S as getToken, T as normalizeSelectorArg, U as createSlotOverrideData, V as createSelectorOverrideData, W as createStyleData, _ as transformStyle, a as createKeyframes, b as mergeSlotOverrideData, d as getId, f as FnPrefixScope, g as resolveCallsite, h as FnPrefixStyle, j as classNameTransform, k as createAtRuleRef, m as FnPrefixSlot, p as FnPrefixSelector, u as createIdCounter, v as mergeSelectorOverrideData, x as mergeStyleData, y as mergeSlotData, z as createScopeTargetData } from "../css-DirG7Jwu.js";
5
5
  import { n as createElement } from "../jsx_runtime-Ch1pZ6-n.js";
6
6
  import { SelectorType, parse } from "css-what";
7
- import "preact";
8
7
  //#region runtime/style/scope.ts
9
8
  function combineScope(...scopes) {
10
9
  return (target) => resolveScopeTargets(target, scopes);