@typestyles/react 0.0.0-unstable.f8e1bb499db9 → 0.0.0-unstable.fafbc20d2cdc

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 (62) hide show
  1. package/README.md +16 -16
  2. package/dist/babel-plugin.cjs +14223 -152
  3. package/dist/babel-plugin.cjs.map +1 -1
  4. package/dist/babel-plugin.d.cts +10 -10
  5. package/dist/babel-plugin.d.cts.map +1 -0
  6. package/dist/babel-plugin.d.ts +10 -10
  7. package/dist/babel-plugin.d.ts.map +1 -0
  8. package/dist/babel-plugin.js +14223 -130
  9. package/dist/babel-plugin.js.map +1 -1
  10. package/dist/css-prop-DMDmFKhu.js +21 -0
  11. package/dist/css-prop-DMDmFKhu.js.map +1 -0
  12. package/dist/css-prop-DOMoNwJN.cjs +38 -0
  13. package/dist/css-prop-DOMoNwJN.cjs.map +1 -0
  14. package/dist/css-prop-runtime-zKybLO8E.d.cts +14 -0
  15. package/dist/css-prop-runtime-zKybLO8E.d.cts.map +1 -0
  16. package/dist/css-prop-runtime-zKybLO8E.d.ts +14 -0
  17. package/dist/css-prop-runtime-zKybLO8E.d.ts.map +1 -0
  18. package/dist/css-prop-runtime.cjs +7 -7
  19. package/dist/css-prop-runtime.cjs.map +1 -1
  20. package/dist/css-prop-runtime.d.cts +2 -7
  21. package/dist/css-prop-runtime.d.ts +2 -7
  22. package/dist/css-prop-runtime.js +8 -2
  23. package/dist/css-prop-runtime.js.map +1 -1
  24. package/dist/index.cjs +75 -99
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +25 -21
  27. package/dist/index.d.cts.map +1 -0
  28. package/dist/index.d.ts +25 -21
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +69 -75
  31. package/dist/index.js.map +1 -1
  32. package/dist/jsx-dev-runtime.cjs +19 -37
  33. package/dist/jsx-dev-runtime.cjs.map +1 -1
  34. package/dist/jsx-dev-runtime.d.cts +9 -11
  35. package/dist/jsx-dev-runtime.d.cts.map +1 -0
  36. package/dist/jsx-dev-runtime.d.ts +9 -11
  37. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  38. package/dist/jsx-dev-runtime.js +18 -24
  39. package/dist/jsx-dev-runtime.js.map +1 -1
  40. package/dist/jsx-runtime.cjs +22 -40
  41. package/dist/jsx-runtime.cjs.map +1 -1
  42. package/dist/jsx-runtime.d.cts +10 -12
  43. package/dist/jsx-runtime.d.cts.map +1 -0
  44. package/dist/jsx-runtime.d.ts +10 -12
  45. package/dist/jsx-runtime.d.ts.map +1 -0
  46. package/dist/jsx-runtime.js +19 -26
  47. package/dist/jsx-runtime.js.map +1 -1
  48. package/dist/resolve-hash-class-DuqLJq6S.cjs +14 -0
  49. package/dist/resolve-hash-class-DuqLJq6S.cjs.map +1 -0
  50. package/dist/resolve-hash-class-Rs_7aMMQ.js +9 -0
  51. package/dist/resolve-hash-class-Rs_7aMMQ.js.map +1 -0
  52. package/dist/types-DcDsqg2q.d.cts +10 -0
  53. package/dist/types-DcDsqg2q.d.cts.map +1 -0
  54. package/dist/types-DcDsqg2q.d.ts +10 -0
  55. package/dist/types-DcDsqg2q.d.ts.map +1 -0
  56. package/package.json +9 -11
  57. package/dist/chunk-3YCUQVCM.js +0 -8
  58. package/dist/chunk-3YCUQVCM.js.map +0 -1
  59. package/dist/chunk-4BYX2HZ7.js +0 -22
  60. package/dist/chunk-4BYX2HZ7.js.map +0 -1
  61. package/dist/types-_vEO6H8X.d.cts +0 -9
  62. package/dist/types-_vEO6H8X.d.ts +0 -9
package/dist/index.js CHANGED
@@ -1,85 +1,79 @@
1
- export { TypeStylesContext, TypeStylesProvider, resolveCssPropClass } from './chunk-4BYX2HZ7.js';
2
- export { cssProp } from './chunk-3YCUQVCM.js';
3
- import { forwardRef } from 'react';
4
- import { cx } from 'typestyles';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- // src/split-props.ts
8
- var RESERVED_CONFIG_KEYS = /* @__PURE__ */ new Set([
9
- "base",
10
- "variants",
11
- "compoundVariants",
12
- "defaultVariants",
13
- "slots"
1
+ import { n as TypeStylesContext, r as TypeStylesProvider, t as resolveCssPropClass } from "./css-prop-DMDmFKhu.js";
2
+ import { t as resolveHashClass } from "./resolve-hash-class-Rs_7aMMQ.js";
3
+ import { cssProp } from "./css-prop-runtime.js";
4
+ import { forwardRef } from "react";
5
+ import { cx } from "typestyles";
6
+ import { jsx } from "react/jsx-runtime";
7
+ //#region src/split-props.ts
8
+ const RESERVED_CONFIG_KEYS = new Set([
9
+ "base",
10
+ "variants",
11
+ "compoundVariants",
12
+ "defaultVariants",
13
+ "slots"
14
14
  ]);
15
15
  function splitVariantProps(props, variantKeys) {
16
- const variants = {};
17
- const rest = { ...props };
18
- for (const key of variantKeys) {
19
- if (key in rest) {
20
- variants[key] = rest[key];
21
- delete rest[key];
22
- }
23
- }
24
- delete rest.className;
25
- delete rest.css;
26
- return {
27
- variants,
28
- rest
29
- };
16
+ const variants = {};
17
+ const rest = { ...props };
18
+ for (const key of variantKeys) if (key in rest) {
19
+ variants[key] = rest[key];
20
+ delete rest[key];
21
+ }
22
+ delete rest.className;
23
+ delete rest.css;
24
+ return {
25
+ variants,
26
+ rest
27
+ };
30
28
  }
31
29
  function getVariantKeysFromConfig(config) {
32
- if (typeof config === "function") {
33
- return [];
34
- }
35
- if ("variants" in config && config.variants && typeof config.variants === "object") {
36
- return Object.keys(config.variants);
37
- }
38
- return Object.keys(config).filter((key) => !RESERVED_CONFIG_KEYS.has(key));
30
+ if (typeof config === "function") return [];
31
+ if ("variants" in config && config.variants && typeof config.variants === "object") return Object.keys(config.variants);
32
+ return Object.keys(config).filter((key) => !RESERVED_CONFIG_KEYS.has(key));
33
+ }
34
+ //#endregion
35
+ //#region src/create-styled.tsx
36
+ function resolveRecipeFactory(api) {
37
+ if ("recipe" in api) return api.recipe;
38
+ return api.component;
39
39
  }
40
40
  function resolveStyledArgs(tag, configOrNamespace, maybeConfig) {
41
- if (typeof configOrNamespace === "string" && maybeConfig != null) {
42
- return { tag, namespace: configOrNamespace, config: maybeConfig };
43
- }
44
- const namespace = typeof tag === "string" ? tag : "styled";
45
- return {
46
- tag,
47
- namespace,
48
- config: configOrNamespace
49
- };
41
+ if (typeof configOrNamespace === "string" && maybeConfig != null) return {
42
+ tag,
43
+ namespace: configOrNamespace,
44
+ config: maybeConfig
45
+ };
46
+ return {
47
+ tag,
48
+ namespace: typeof tag === "string" ? tag : "styled",
49
+ config: configOrNamespace
50
+ };
50
51
  }
51
- function createStyled(styles) {
52
- function styled(tag, configOrNamespace, maybeConfig) {
53
- const {
54
- tag: element,
55
- namespace,
56
- config
57
- } = resolveStyledArgs(tag, configOrNamespace, maybeConfig);
58
- const recipe = styles.component(namespace, config);
59
- const variantKeys = getVariantKeysFromConfig(
60
- config
61
- );
62
- const Component = forwardRef(
63
- function StyledComponent(props, ref) {
64
- const { className, ...propsWithoutClassName } = props;
65
- const { variants, rest } = splitVariantProps(
66
- propsWithoutClassName,
67
- variantKeys
68
- );
69
- const mergedClassName = cx(
70
- recipe(variants),
71
- className
72
- );
73
- const Element = element;
74
- return /* @__PURE__ */ jsx(Element, { ...rest, ref, className: mergedClassName });
75
- }
76
- );
77
- Component.displayName = namespace.charAt(0).toUpperCase() + namespace.slice(1);
78
- return Component;
79
- }
80
- return styled;
52
+ function createStyled(api) {
53
+ const makeRecipe = resolveRecipeFactory(api);
54
+ function styled(tag, configOrNamespace, maybeConfig) {
55
+ const { tag: element, namespace, config } = resolveStyledArgs(tag, configOrNamespace, maybeConfig);
56
+ const recipe = makeRecipe({
57
+ name: namespace,
58
+ styles: config
59
+ });
60
+ const variantKeys = getVariantKeysFromConfig(config);
61
+ const Component = forwardRef(function StyledComponent(props, ref) {
62
+ const { className, ...propsWithoutClassName } = props;
63
+ const { variants, rest } = splitVariantProps(propsWithoutClassName, variantKeys);
64
+ const mergedClassName = cx(recipe(variants), className);
65
+ return jsx(element, {
66
+ ...rest,
67
+ ref,
68
+ className: mergedClassName
69
+ });
70
+ });
71
+ Component.displayName = namespace.charAt(0).toUpperCase() + namespace.slice(1);
72
+ return Component;
73
+ }
74
+ return styled;
81
75
  }
76
+ //#endregion
77
+ export { TypeStylesContext, TypeStylesProvider, createStyled, cssProp, resolveCssPropClass, resolveHashClass };
82
78
 
83
- export { createStyled };
84
- //# sourceMappingURL=index.js.map
85
79
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/split-props.ts","../src/create-styled.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAM,oBAAA,uBAA2B,GAAA,CAAI;AAAA,EACnC,MAAA;AAAA,EACA,UAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA;AACF,CAAC,CAAA;AAEM,SAAS,iBAAA,CACd,OACA,WAAA,EAIA;AACA,EAAA,MAAM,WAAoC,EAAC;AAC3C,EAAA,MAAM,IAAA,GAAO,EAAE,GAAG,KAAA,EAAM;AAExB,EAAA,KAAA,MAAW,OAAO,WAAA,EAAa;AAC7B,IAAA,IAAI,OAAO,IAAA,EAAM;AACf,MAAA,QAAA,CAAS,GAAG,CAAA,GAAI,IAAA,CAAK,GAAG,CAAA;AACxB,MAAA,OAAO,KAAK,GAAG,CAAA;AAAA,IACjB;AAAA,EACF;AAEA,EAAA,OAAO,IAAA,CAAK,SAAA;AACZ,EAAA,OAAO,IAAA,CAAK,GAAA;AAEZ,EAAA,OAAO;AAAA,IACL,QAAA;AAAA,IACA;AAAA,GACF;AACF;AAEO,SAAS,yBACd,MAAA,EACmB;AACnB,EAAA,IAAI,OAAO,WAAW,UAAA,EAAY;AAChC,IAAA,OAAO,EAAC;AAAA,EACV;AAEA,EAAA,IAAI,cAAc,MAAA,IAAU,MAAA,CAAO,YAAY,OAAO,MAAA,CAAO,aAAa,QAAA,EAAU;AAClF,IAAA,OAAO,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,QAAQ,CAAA;AAAA,EACpC;AAEA,EAAA,OAAO,MAAA,CAAO,IAAA,CAAK,MAAM,CAAA,CAAE,MAAA,CAAO,CAAC,GAAA,KAAQ,CAAC,oBAAA,CAAqB,GAAA,CAAI,GAAG,CAAC,CAAA;AAC3E;ACFA,SAAS,iBAAA,CACP,GAAA,EACA,iBAAA,EAIA,WAAA,EAKA;AACA,EAAA,IAAI,OAAO,iBAAA,KAAsB,QAAA,IAAY,WAAA,IAAe,IAAA,EAAM;AAChE,IAAA,OAAO,EAAE,GAAA,EAAK,SAAA,EAAW,iBAAA,EAAmB,QAAQ,WAAA,EAAY;AAAA,EAClE;AAEA,EAAA,MAAM,SAAA,GAAY,OAAO,GAAA,KAAQ,QAAA,GAAW,GAAA,GAAM,QAAA;AAClD,EAAA,OAAO;AAAA,IACL,GAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA,EAAQ;AAAA,GAGV;AACF;AAEO,SAAS,aAAa,MAAA,EAAkC;AAC7D,EAAA,SAAS,MAAA,CACP,GAAA,EACA,iBAAA,EAIA,WAAA,EACA;AACA,IAAA,MAAM;AAAA,MACJ,GAAA,EAAK,OAAA;AAAA,MACL,SAAA;AAAA,MACA;AAAA,KACF,GAAI,iBAAA,CAAkB,GAAA,EAAK,iBAAA,EAAmB,WAAW,CAAA;AACzD,IAAA,MAAM,MAAA,GAAS,MAAA,CAAO,SAAA,CAAU,SAAA,EAAW,MAAkD,CAAA;AAC7F,IAAA,MAAM,WAAA,GAAc,wBAAA;AAAA,MAClB;AAAA,KACF;AAEA,IAAA,MAAM,SAAA,GAAY,UAAA;AAAA,MAChB,SAAS,eAAA,CAAgB,KAAA,EAAO,GAAA,EAAK;AACnC,QAAA,MAAM,EAAE,SAAA,EAAW,GAAG,qBAAA,EAAsB,GAAI,KAAA;AAChD,QAAA,MAAM,EAAE,QAAA,EAAU,IAAA,EAAK,GAAI,iBAAA;AAAA,UACzB,qBAAA;AAAA,UACA;AAAA,SACF;AACA,QAAA,MAAM,eAAA,GAAkB,EAAA;AAAA,UACrB,OAA4D,QAAQ,CAAA;AAAA,UACrE;AAAA,SACF;AACA,QAAA,MAAM,OAAA,GAAU,OAAA;AAEhB,QAAA,2BAAQ,OAAA,EAAA,EAAS,GAAG,IAAA,EAAM,GAAA,EAAU,WAAW,eAAA,EAAiB,CAAA;AAAA,MAClE;AAAA,KACF;AAEA,IAAA,SAAA,CAAU,WAAA,GAAc,UAAU,MAAA,CAAO,CAAC,EAAE,WAAA,EAAY,GAAI,SAAA,CAAU,KAAA,CAAM,CAAC,CAAA;AAE7E,IAAA,OAAO,SAAA;AAAA,EACT;AAEA,EAAA,OAAO,MAAA;AACT","file":"index.js","sourcesContent":["const RESERVED_CONFIG_KEYS = new Set([\n 'base',\n 'variants',\n 'compoundVariants',\n 'defaultVariants',\n 'slots',\n]);\n\nexport function splitVariantProps<P extends Record<string, unknown>>(\n props: P,\n variantKeys: readonly string[],\n): {\n variants: Record<string, unknown>;\n rest: Omit<P, (typeof variantKeys)[number] | 'className' | 'css'>;\n} {\n const variants: Record<string, unknown> = {};\n const rest = { ...props } as Record<string, unknown>;\n\n for (const key of variantKeys) {\n if (key in rest) {\n variants[key] = rest[key];\n delete rest[key];\n }\n }\n\n delete rest.className;\n delete rest.css;\n\n return {\n variants,\n rest: rest as Omit<P, (typeof variantKeys)[number] | 'className' | 'css'>,\n };\n}\n\nexport function getVariantKeysFromConfig(\n config: Record<string, unknown> | ((ctx: unknown) => Record<string, unknown>),\n): readonly string[] {\n if (typeof config === 'function') {\n return [];\n }\n\n if ('variants' in config && config.variants && typeof config.variants === 'object') {\n return Object.keys(config.variants);\n }\n\n return Object.keys(config).filter((key) => !RESERVED_CONFIG_KEYS.has(key));\n}\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type ForwardRefExoticComponent,\n type RefAttributes,\n} from 'react';\nimport type {\n ComponentConfigInput,\n ComponentReturn,\n ComponentVariants,\n FlatComponentConfigInput,\n FlatComponentReturn,\n StylesApi,\n VariantDefinitions,\n} from 'typestyles';\nimport { cx } from 'typestyles';\nimport { getVariantKeysFromConfig, splitVariantProps } from './split-props';\n\ntype StyledComponentType<Tag extends ElementType, Recipe> = ForwardRefExoticComponent<\n ComponentPropsWithoutRef<Tag> & ComponentVariants<Recipe> & RefAttributes<Element>\n>;\n\nexport type StyledFactory = {\n <Tag extends ElementType, const V extends VariantDefinitions>(\n tag: Tag,\n config: ComponentConfigInput<V>,\n ): StyledComponentType<Tag, ComponentReturn<V>>;\n <Tag extends ElementType, const V extends VariantDefinitions, const N extends string>(\n tag: Tag,\n namespace: N,\n config: ComponentConfigInput<V>,\n ): StyledComponentType<Tag, ComponentReturn<V>>;\n <Tag extends ElementType, const K extends string>(\n tag: Tag,\n config: FlatComponentConfigInput<K>,\n ): StyledComponentType<Tag, FlatComponentReturn<K>>;\n <Tag extends ElementType, const K extends string, const N extends string>(\n tag: Tag,\n namespace: N,\n config: FlatComponentConfigInput<K>,\n ): StyledComponentType<Tag, FlatComponentReturn<K>>;\n};\n\nfunction resolveStyledArgs(\n tag: ElementType,\n configOrNamespace:\n | string\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n maybeConfig?: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>,\n): {\n tag: ElementType;\n namespace: string;\n config: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>;\n} {\n if (typeof configOrNamespace === 'string' && maybeConfig != null) {\n return { tag, namespace: configOrNamespace, config: maybeConfig };\n }\n\n const namespace = typeof tag === 'string' ? tag : 'styled';\n return {\n tag,\n namespace,\n config: configOrNamespace as\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n };\n}\n\nexport function createStyled(styles: StylesApi): StyledFactory {\n function styled<Tag extends ElementType>(\n tag: Tag,\n configOrNamespace:\n | string\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n maybeConfig?: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>,\n ) {\n const {\n tag: element,\n namespace,\n config,\n } = resolveStyledArgs(tag, configOrNamespace, maybeConfig);\n const recipe = styles.component(namespace, config as ComponentConfigInput<VariantDefinitions>);\n const variantKeys = getVariantKeysFromConfig(\n config as Record<string, unknown> | ((ctx: unknown) => Record<string, unknown>),\n );\n\n const Component = forwardRef<Element, ComponentPropsWithoutRef<Tag> & Record<string, unknown>>(\n function StyledComponent(props, ref) {\n const { className, ...propsWithoutClassName } = props;\n const { variants, rest } = splitVariantProps(\n propsWithoutClassName as Record<string, unknown>,\n variantKeys,\n );\n const mergedClassName = cx(\n (recipe as (selections?: Record<string, unknown>) => string)(variants),\n className,\n );\n const Element = element;\n\n return <Element {...rest} ref={ref} className={mergedClassName} />;\n },\n );\n\n Component.displayName = namespace.charAt(0).toUpperCase() + namespace.slice(1);\n\n return Component;\n }\n\n return styled as StyledFactory;\n}\n"]}
1
+ {"version":3,"file":"index.js","names":["Element"],"sources":["../src/split-props.ts","../src/create-styled.tsx"],"sourcesContent":["const RESERVED_CONFIG_KEYS = new Set([\n 'base',\n 'variants',\n 'compoundVariants',\n 'defaultVariants',\n 'slots',\n]);\n\nexport function splitVariantProps<P extends Record<string, unknown>>(\n props: P,\n variantKeys: readonly string[],\n): {\n variants: Record<string, unknown>;\n rest: Omit<P, (typeof variantKeys)[number] | 'className' | 'css'>;\n} {\n const variants: Record<string, unknown> = {};\n const rest = { ...props } as Record<string, unknown>;\n\n for (const key of variantKeys) {\n if (key in rest) {\n variants[key] = rest[key];\n delete rest[key];\n }\n }\n\n delete rest.className;\n delete rest.css;\n\n return {\n variants,\n rest: rest as Omit<P, (typeof variantKeys)[number] | 'className' | 'css'>,\n };\n}\n\nexport function getVariantKeysFromConfig(\n config: Record<string, unknown> | ((ctx: unknown) => Record<string, unknown>),\n): readonly string[] {\n if (typeof config === 'function') {\n return [];\n }\n\n if ('variants' in config && config.variants && typeof config.variants === 'object') {\n return Object.keys(config.variants);\n }\n\n return Object.keys(config).filter((key) => !RESERVED_CONFIG_KEYS.has(key));\n}\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type ForwardRefExoticComponent,\n type RefAttributes,\n} from 'react';\nimport type {\n ComponentConfigInput,\n ComponentReturn,\n ComponentVariants,\n FlatComponentConfigInput,\n FlatComponentReturn,\n StylesApi,\n TypeStylesApi,\n VariantDefinitions,\n} from 'typestyles';\nimport { cx } from 'typestyles';\nimport { getVariantKeysFromConfig, splitVariantProps } from './split-props';\n\ntype StyledComponentType<Tag extends ElementType, Recipe> = ForwardRefExoticComponent<\n ComponentPropsWithoutRef<Tag> & ComponentVariants<Recipe> & RefAttributes<Element>\n>;\n\nexport type StyledFactory = {\n <Tag extends ElementType, const V extends VariantDefinitions>(\n tag: Tag,\n config: ComponentConfigInput<V>,\n ): StyledComponentType<Tag, ComponentReturn<V>>;\n <Tag extends ElementType, const V extends VariantDefinitions, const N extends string>(\n tag: Tag,\n namespace: N,\n config: ComponentConfigInput<V>,\n ): StyledComponentType<Tag, ComponentReturn<V>>;\n <Tag extends ElementType, const K extends string>(\n tag: Tag,\n config: FlatComponentConfigInput<K>,\n ): StyledComponentType<Tag, FlatComponentReturn<K>>;\n <Tag extends ElementType, const K extends string, const N extends string>(\n tag: Tag,\n namespace: N,\n config: FlatComponentConfigInput<K>,\n ): StyledComponentType<Tag, FlatComponentReturn<K>>;\n};\n\ntype RecipeFactory = StylesApi['component'];\n\n/** Accepts `createTypeStyles()` (preferred) or a lower-level `createStyles()` instance. */\nexport type StyledApi = Pick<TypeStylesApi, 'recipe'> | StylesApi;\n\nfunction resolveRecipeFactory(api: StyledApi): RecipeFactory {\n if ('recipe' in api) return api.recipe;\n return api.component;\n}\n\nfunction resolveStyledArgs(\n tag: ElementType,\n configOrNamespace:\n | string\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n maybeConfig?: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>,\n): {\n tag: ElementType;\n namespace: string;\n config: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>;\n} {\n if (typeof configOrNamespace === 'string' && maybeConfig != null) {\n return { tag, namespace: configOrNamespace, config: maybeConfig };\n }\n\n const namespace = typeof tag === 'string' ? tag : 'styled';\n return {\n tag,\n namespace,\n config: configOrNamespace as\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n };\n}\n\nexport function createStyled(api: StyledApi): StyledFactory {\n const makeRecipe = resolveRecipeFactory(api);\n\n function styled<Tag extends ElementType>(\n tag: Tag,\n configOrNamespace:\n | string\n | ComponentConfigInput<VariantDefinitions>\n | FlatComponentConfigInput<string>,\n maybeConfig?: ComponentConfigInput<VariantDefinitions> | FlatComponentConfigInput<string>,\n ) {\n const {\n tag: element,\n namespace,\n config,\n } = resolveStyledArgs(tag, configOrNamespace, maybeConfig);\n // `styled` still takes the legacy config object (`base`, `variants`, flat keys).\n // The engine accepts that shape as `styles`; axes stay on `recipe()` itself.\n const recipe = (\n makeRecipe as (input: {\n name: string;\n styles: unknown;\n }) => (selections?: Record<string, unknown>) => { toString(): string }\n )({\n name: namespace,\n styles: config,\n });\n const variantKeys = getVariantKeysFromConfig(\n config as Record<string, unknown> | ((ctx: unknown) => Record<string, unknown>),\n );\n\n const Component = forwardRef<Element, ComponentPropsWithoutRef<Tag> & Record<string, unknown>>(\n function StyledComponent(props, ref) {\n const { className, ...propsWithoutClassName } = props;\n const { variants, rest } = splitVariantProps(\n propsWithoutClassName as Record<string, unknown>,\n variantKeys,\n );\n const mergedClassName = cx(recipe(variants), className);\n const Element = element;\n\n return <Element {...rest} ref={ref} className={mergedClassName} />;\n },\n );\n\n Component.displayName = namespace.charAt(0).toUpperCase() + namespace.slice(1);\n\n return Component;\n }\n\n return styled as StyledFactory;\n}\n"],"mappings":";;;;;;;AAAA,MAAM,uBAAuB,IAAI,IAAI;CACnC;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,SAAgB,kBACd,OACA,aAIA;CACA,MAAM,WAAoC,CAAC;CAC3C,MAAM,OAAO,EAAE,GAAG,MAAM;CAExB,KAAK,MAAM,OAAO,aAChB,IAAI,OAAO,MAAM;EACf,SAAS,OAAO,KAAK;EACrB,OAAO,KAAK;CACd;CAGF,OAAO,KAAK;CACZ,OAAO,KAAK;CAEZ,OAAO;EACL;EACM;CACR;AACF;AAEA,SAAgB,yBACd,QACmB;CACnB,IAAI,OAAO,WAAW,YACpB,OAAO,CAAC;CAGV,IAAI,cAAc,UAAU,OAAO,YAAY,OAAO,OAAO,aAAa,UACxE,OAAO,OAAO,KAAK,OAAO,QAAQ;CAGpC,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,QAAQ,QAAQ,CAAC,qBAAqB,IAAI,GAAG,CAAC;AAC3E;;;ACIA,SAAS,qBAAqB,KAA+B;CAC3D,IAAI,YAAY,KAAK,OAAO,IAAI;CAChC,OAAO,IAAI;AACb;AAEA,SAAS,kBACP,KACA,mBAIA,aAKA;CACA,IAAI,OAAO,sBAAsB,YAAY,eAAe,MAC1D,OAAO;EAAE;EAAK,WAAW;EAAmB,QAAQ;CAAY;CAIlE,OAAO;EACL;EACA,WAHgB,OAAO,QAAQ,WAAW,MAAM;EAIhD,QAAQ;CAGV;AACF;AAEA,SAAgB,aAAa,KAA+B;CAC1D,MAAM,aAAa,qBAAqB,GAAG;CAE3C,SAAS,OACP,KACA,mBAIA,aACA;EACA,MAAM,EACJ,KAAK,SACL,WACA,WACE,kBAAkB,KAAK,mBAAmB,WAAW;EAGzD,MAAM,SACJ,WAIA;GACA,MAAM;GACN,QAAQ;EACV,CAAC;EACD,MAAM,cAAc,yBAClB,MACF;EAEA,MAAM,YAAY,WAChB,SAAS,gBAAgB,OAAO,KAAK;GACnC,MAAM,EAAE,WAAW,GAAG,0BAA0B;GAChD,MAAM,EAAE,UAAU,SAAS,kBACzB,uBACA,WACF;GACA,MAAM,kBAAkB,GAAG,OAAO,QAAQ,GAAG,SAAS;GAGtD,OAAO,IAACA,SAAD;IAAS,GAAI;IAAW;IAAK,WAAW;GAAkB,CAAA;EACnE,CACF;EAEA,UAAU,cAAc,UAAU,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,MAAM,CAAC;EAE7E,OAAO;CACT;CAEA,OAAO;AACT"}
@@ -1,44 +1,26 @@
1
- 'use strict';
2
-
3
- var react = require('react');
4
- var jsxDevRuntime = require('react/jsx-dev-runtime');
5
- var typestyles = require('typestyles');
6
- require('react/jsx-runtime');
7
-
8
- // src/jsx-dev-runtime.ts
9
- function resolveCssPropClass(hashClass, css, className) {
10
- if (css && typeof css === "object") {
11
- return typestyles.cx(hashClass(css), className);
12
- }
13
- return typestyles.cx(className);
14
- }
15
- var TypeStylesContext = react.createContext(null);
16
-
17
- // src/jsx-dev-runtime.ts
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_css_prop = require("./css-prop-DOMoNwJN.cjs");
3
+ const require_resolve_hash_class = require("./resolve-hash-class-DuqLJq6S.cjs");
4
+ let react = require("react");
5
+ let react_jsx_dev_runtime = require("react/jsx-dev-runtime");
6
+ //#region src/jsx-dev-runtime.ts
18
7
  function processCssProp(props, hashClass) {
19
- if (props.css == null) {
20
- return props;
21
- }
22
- const { css, className, ...rest } = props;
23
- const nextProps = {
24
- ...rest,
25
- className: resolveCssPropClass(hashClass, css, className)
26
- };
27
- return nextProps;
8
+ if (props.css == null) return props;
9
+ const { css, className, ...rest } = props;
10
+ return {
11
+ ...rest,
12
+ className: require_css_prop.resolveCssPropClass(hashClass, css, className)
13
+ };
28
14
  }
29
- var Fragment = jsxDevRuntime.Fragment;
15
+ const Fragment = react_jsx_dev_runtime.Fragment;
30
16
  function jsxDEV(type, props, key, isStaticChildren, source, self) {
31
- const styles = react.useContext(TypeStylesContext);
32
- if (props.css != null && styles == null) {
33
- throw new Error(
34
- "[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props."
35
- );
36
- }
37
- const nextProps = styles ? processCssProp(props, styles.hashClass) : props;
38
- return jsxDevRuntime.jsxDEV(type, nextProps, key, isStaticChildren, source, self);
17
+ const styles = (0, react.useContext)(require_css_prop.TypeStylesContext);
18
+ if (props.css != null && styles == null) throw new Error("[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.");
19
+ const nextProps = styles ? processCssProp(props, require_resolve_hash_class.resolveHashClass(styles)) : props;
20
+ return (0, react_jsx_dev_runtime.jsxDEV)(type, nextProps, key, isStaticChildren, source, self);
39
21
  }
40
-
22
+ //#endregion
41
23
  exports.Fragment = Fragment;
42
24
  exports.jsxDEV = jsxDEV;
43
- //# sourceMappingURL=jsx-dev-runtime.cjs.map
25
+
44
26
  //# sourceMappingURL=jsx-dev-runtime.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/css-prop.ts","../src/context.tsx","../src/jsx-dev-runtime.ts"],"names":["cx","createContext","ReactFragment","useContext","reactJsxDEV"],"mappings":";;;;;;;;AAIO,SAAS,mBAAA,CACd,SAAA,EACA,GAAA,EACA,SAAA,EACQ;AACR,EAAA,IAAI,GAAA,IAAO,OAAO,GAAA,KAAQ,QAAA,EAAU;AAClC,IAAA,OAAOA,aAAA,CAAG,SAAA,CAAU,GAAG,CAAA,EAAG,SAAS,CAAA;AAAA,EACrC;AACA,EAAA,OAAOA,cAAG,SAAS,CAAA;AACrB;ACVO,IAAM,iBAAA,GAAoBC,oBAAgC,IAAI,CAAA;;;ACIrE,SAAS,cAAA,CACP,OACA,SAAA,EACG;AACH,EAAA,IAAI,KAAA,CAAM,OAAO,IAAA,EAAM;AACrB,IAAA,OAAO,KAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,GAAA,EAAK,SAAA,EAAW,GAAG,MAAK,GAAI,KAAA;AACpC,EAAA,MAAM,SAAA,GAAY;AAAA,IAChB,GAAG,IAAA;AAAA,IACH,SAAA,EAAW,mBAAA,CAAoB,SAAA,EAAW,GAAA,EAAK,SAAS;AAAA,GAC1D;AAEA,EAAA,OAAO,SAAA;AACT;AAEO,IAAM,QAAA,GAAWC;AAEjB,SAAS,OACd,IAAA,EACA,KAAA,EACA,GAAA,EACA,gBAAA,EACA,QACA,IAAA,EACoB;AACpB,EAAA,MAAM,MAAA,GAASC,iBAAW,iBAAiB,CAAA;AAE3C,EAAA,IAAI,KAAA,CAAM,GAAA,IAAO,IAAA,IAAQ,MAAA,IAAU,IAAA,EAAM;AACvC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KAEF;AAAA,EACF;AAEA,EAAA,MAAM,YAAY,MAAA,GAAS,cAAA,CAAe,KAAA,EAAO,MAAA,CAAO,SAAS,CAAA,GAAK,KAAA;AACtE,EAAA,OAAOC,qBAAY,IAAA,EAAM,SAAA,EAAW,GAAA,EAAK,gBAAA,EAAkB,QAAQ,IAAI,CAAA;AACzE","file":"jsx-dev-runtime.cjs","sourcesContent":["import type { CSSProperties } from 'typestyles';\nimport { cx } from 'typestyles';\nimport type { CssPropValue } from './types';\n\nexport function resolveCssPropClass(\n hashClass: (properties: CSSProperties, label?: string) => string,\n css: CssPropValue | undefined,\n className?: string,\n): string {\n if (css && typeof css === 'object') {\n return cx(hashClass(css), className);\n }\n return cx(className);\n}\n","import { createContext, type ReactNode } from 'react';\nimport type { StylesApi } from 'typestyles';\n\nexport const TypeStylesContext = createContext<StylesApi | null>(null);\n\nexport function TypeStylesProvider({\n styles,\n children,\n}: {\n styles: StylesApi;\n children: ReactNode;\n}): React.JSX.Element {\n return <TypeStylesContext.Provider value={styles}>{children}</TypeStylesContext.Provider>;\n}\n","import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsxDEV as reactJsxDEV, Fragment as ReactFragment } from 'react/jsx-dev-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsxDEV<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key: React.Key | undefined,\n isStaticChildren: boolean,\n source: object | undefined,\n self: unknown,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, styles.hashClass) : (props as P);\n return reactJsxDEV(type, nextProps, key, isStaticChildren, source, self);\n}\n\nexport type { ReactNode };\n"]}
1
+ {"version":3,"file":"jsx-dev-runtime.cjs","names":["resolveCssPropClass","ReactFragment","useContext","TypeStylesContext","resolveHashClass","reactJsxDEV"],"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsxDEV as reactJsxDEV, Fragment as ReactFragment } from 'react/jsx-dev-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport { resolveHashClass } from './resolve-hash-class';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsxDEV<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key: React.Key | undefined,\n isStaticChildren: boolean,\n source: object | undefined,\n self: unknown,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, resolveHashClass(styles)) : (props as P);\n return reactJsxDEV(type, nextProps, key, isStaticChildren, source, self);\n}\n\nexport type { ReactNode };\n"],"mappings":";;;;;;AAQA,SAAS,eACP,OACA,WACG;CACH,IAAI,MAAM,OAAO,MACf,OAAO;CAGT,MAAM,EAAE,KAAK,WAAW,GAAG,SAAS;CAMpC,OAAO;EAJL,GAAG;EACH,WAAWA,iBAAAA,oBAAoB,WAAW,KAAK,SAAS;CAG3C;AACjB;AAEA,MAAa,WAAWC,sBAAAA;AAExB,SAAgB,OACd,MACA,OACA,KACA,kBACA,QACA,MACoB;CACpB,MAAM,UAAA,GAASC,MAAAA,WAAAA,CAAWC,iBAAAA,iBAAiB;CAE3C,IAAI,MAAM,OAAO,QAAQ,UAAU,MACjC,MAAM,IAAI,MACR,kOAEF;CAGF,MAAM,YAAY,SAAS,eAAe,OAAOC,2BAAAA,iBAAiB,MAAM,CAAC,IAAK;CAC9E,QAAA,GAAOC,sBAAAA,OAAAA,CAAY,MAAM,WAAW,KAAK,kBAAkB,QAAQ,IAAI;AACzE"}
@@ -1,12 +1,10 @@
1
- import * as react from 'react';
2
- import { ReactNode, ElementType } from 'react';
3
- export { ReactNode } from 'react';
4
- import { W as WithCssProp } from './types-_vEO6H8X.cjs';
5
- import 'typestyles';
6
-
7
- declare const Fragment: react.ExoticComponent<{
8
- children?: ReactNode | undefined;
1
+ import { n as WithCssProp } from "./types-DcDsqg2q.cjs";
2
+ import { ElementType, ReactNode } from "react";
3
+ //#region src/jsx-dev-runtime.d.ts
4
+ export declare const Fragment: import("react").ExoticComponent<{
5
+ children?: ReactNode | undefined;
9
6
  }>;
10
- declare function jsxDEV<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key: React.Key | undefined, isStaticChildren: boolean, source: object | undefined, self: unknown): React.ReactElement;
11
-
12
- export { Fragment, jsxDEV };
7
+ export declare function jsxDEV<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key: React.Key | undefined, isStaticChildren: boolean, source: object | undefined, self: unknown): React.ReactElement;
8
+ //#endregion
9
+ export type { ReactNode };
10
+ //# sourceMappingURL=jsx-dev-runtime.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.d.cts","names":[],"sources":["../src/jsx-dev-runtime.ts"],"mappings":";;;qBAyBa,0BAAQ;;;wBAEL,OAAO,UAAU,yBAC/B,MAAM,aACN,OAAO,YAAY,IACnB,KAAK,MAAM,iBACX,2BACA,4BACA,gBACC,MAAM"}
@@ -1,12 +1,10 @@
1
- import * as react from 'react';
2
- import { ReactNode, ElementType } from 'react';
3
- export { ReactNode } from 'react';
4
- import { W as WithCssProp } from './types-_vEO6H8X.js';
5
- import 'typestyles';
6
-
7
- declare const Fragment: react.ExoticComponent<{
8
- children?: ReactNode | undefined;
1
+ import { n as WithCssProp } from "./types-DcDsqg2q.js";
2
+ import { ElementType, ReactNode } from "react";
3
+ //#region src/jsx-dev-runtime.d.ts
4
+ export declare const Fragment: import("react").ExoticComponent<{
5
+ children?: ReactNode | undefined;
9
6
  }>;
10
- declare function jsxDEV<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key: React.Key | undefined, isStaticChildren: boolean, source: object | undefined, self: unknown): React.ReactElement;
11
-
12
- export { Fragment, jsxDEV };
7
+ export declare function jsxDEV<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key: React.Key | undefined, isStaticChildren: boolean, source: object | undefined, self: unknown): React.ReactElement;
8
+ //#endregion
9
+ export type { ReactNode };
10
+ //# sourceMappingURL=jsx-dev-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.d.ts","names":[],"sources":["../src/jsx-dev-runtime.ts"],"mappings":";;;qBAyBa,0BAAQ;;;wBAEL,OAAO,UAAU,yBAC/B,MAAM,aACN,OAAO,YAAY,IACnB,KAAK,MAAM,iBACX,2BACA,4BACA,gBACC,MAAM"}
@@ -1,30 +1,24 @@
1
- import { TypeStylesContext, resolveCssPropClass } from './chunk-4BYX2HZ7.js';
2
- import { useContext } from 'react';
3
- import { Fragment as Fragment$1, jsxDEV as jsxDEV$1 } from 'react/jsx-dev-runtime';
4
-
1
+ import { n as TypeStylesContext, t as resolveCssPropClass } from "./css-prop-DMDmFKhu.js";
2
+ import { t as resolveHashClass } from "./resolve-hash-class-Rs_7aMMQ.js";
3
+ import { useContext } from "react";
4
+ import { Fragment as Fragment$1, jsxDEV as jsxDEV$1 } from "react/jsx-dev-runtime";
5
+ //#region src/jsx-dev-runtime.ts
5
6
  function processCssProp(props, hashClass) {
6
- if (props.css == null) {
7
- return props;
8
- }
9
- const { css, className, ...rest } = props;
10
- const nextProps = {
11
- ...rest,
12
- className: resolveCssPropClass(hashClass, css, className)
13
- };
14
- return nextProps;
7
+ if (props.css == null) return props;
8
+ const { css, className, ...rest } = props;
9
+ return {
10
+ ...rest,
11
+ className: resolveCssPropClass(hashClass, css, className)
12
+ };
15
13
  }
16
- var Fragment = Fragment$1;
14
+ const Fragment = Fragment$1;
17
15
  function jsxDEV(type, props, key, isStaticChildren, source, self) {
18
- const styles = useContext(TypeStylesContext);
19
- if (props.css != null && styles == null) {
20
- throw new Error(
21
- "[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props."
22
- );
23
- }
24
- const nextProps = styles ? processCssProp(props, styles.hashClass) : props;
25
- return jsxDEV$1(type, nextProps, key, isStaticChildren, source, self);
16
+ const styles = useContext(TypeStylesContext);
17
+ if (props.css != null && styles == null) throw new Error("[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.");
18
+ const nextProps = styles ? processCssProp(props, resolveHashClass(styles)) : props;
19
+ return jsxDEV$1(type, nextProps, key, isStaticChildren, source, self);
26
20
  }
27
-
21
+ //#endregion
28
22
  export { Fragment, jsxDEV };
29
- //# sourceMappingURL=jsx-dev-runtime.js.map
23
+
30
24
  //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/jsx-dev-runtime.ts"],"names":["ReactFragment","reactJsxDEV"],"mappings":";;;;AAOA,SAAS,cAAA,CACP,OACA,SAAA,EACG;AACH,EAAA,IAAI,KAAA,CAAM,OAAO,IAAA,EAAM;AACrB,IAAA,OAAO,KAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,GAAA,EAAK,SAAA,EAAW,GAAG,MAAK,GAAI,KAAA;AACpC,EAAA,MAAM,SAAA,GAAY;AAAA,IAChB,GAAG,IAAA;AAAA,IACH,SAAA,EAAW,mBAAA,CAAoB,SAAA,EAAW,GAAA,EAAK,SAAS;AAAA,GAC1D;AAEA,EAAA,OAAO,SAAA;AACT;AAEO,IAAM,QAAA,GAAWA;AAEjB,SAAS,OACd,IAAA,EACA,KAAA,EACA,GAAA,EACA,gBAAA,EACA,QACA,IAAA,EACoB;AACpB,EAAA,MAAM,MAAA,GAAS,WAAW,iBAAiB,CAAA;AAE3C,EAAA,IAAI,KAAA,CAAM,GAAA,IAAO,IAAA,IAAQ,MAAA,IAAU,IAAA,EAAM;AACvC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KAEF;AAAA,EACF;AAEA,EAAA,MAAM,YAAY,MAAA,GAAS,cAAA,CAAe,KAAA,EAAO,MAAA,CAAO,SAAS,CAAA,GAAK,KAAA;AACtE,EAAA,OAAOC,SAAY,IAAA,EAAM,SAAA,EAAW,GAAA,EAAK,gBAAA,EAAkB,QAAQ,IAAI,CAAA;AACzE","file":"jsx-dev-runtime.js","sourcesContent":["import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsxDEV as reactJsxDEV, Fragment as ReactFragment } from 'react/jsx-dev-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsxDEV<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key: React.Key | undefined,\n isStaticChildren: boolean,\n source: object | undefined,\n self: unknown,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, styles.hashClass) : (props as P);\n return reactJsxDEV(type, nextProps, key, isStaticChildren, source, self);\n}\n\nexport type { ReactNode };\n"]}
1
+ {"version":3,"file":"jsx-dev-runtime.js","names":["ReactFragment","reactJsxDEV"],"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsxDEV as reactJsxDEV, Fragment as ReactFragment } from 'react/jsx-dev-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport { resolveHashClass } from './resolve-hash-class';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsxDEV<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key: React.Key | undefined,\n isStaticChildren: boolean,\n source: object | undefined,\n self: unknown,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, resolveHashClass(styles)) : (props as P);\n return reactJsxDEV(type, nextProps, key, isStaticChildren, source, self);\n}\n\nexport type { ReactNode };\n"],"mappings":";;;;;AAQA,SAAS,eACP,OACA,WACG;CACH,IAAI,MAAM,OAAO,MACf,OAAO;CAGT,MAAM,EAAE,KAAK,WAAW,GAAG,SAAS;CAMpC,OAAO;EAJL,GAAG;EACH,WAAW,oBAAoB,WAAW,KAAK,SAAS;CAG3C;AACjB;AAEA,MAAa,WAAWA;AAExB,SAAgB,OACd,MACA,OACA,KACA,kBACA,QACA,MACoB;CACpB,MAAM,SAAS,WAAW,iBAAiB;CAE3C,IAAI,MAAM,OAAO,QAAQ,UAAU,MACjC,MAAM,IAAI,MACR,kOAEF;CAGF,MAAM,YAAY,SAAS,eAAe,OAAO,iBAAiB,MAAM,CAAC,IAAK;CAC9E,OAAOC,SAAY,MAAM,WAAW,KAAK,kBAAkB,QAAQ,IAAI;AACzE"}
@@ -1,50 +1,32 @@
1
- 'use strict';
2
-
3
- var react = require('react');
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var typestyles = require('typestyles');
6
-
7
- // src/jsx-runtime.ts
8
- function resolveCssPropClass(hashClass, css, className) {
9
- if (css && typeof css === "object") {
10
- return typestyles.cx(hashClass(css), className);
11
- }
12
- return typestyles.cx(className);
13
- }
14
- var TypeStylesContext = react.createContext(null);
15
-
16
- // src/jsx-runtime.ts
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_css_prop = require("./css-prop-DOMoNwJN.cjs");
3
+ const require_resolve_hash_class = require("./resolve-hash-class-DuqLJq6S.cjs");
4
+ let react = require("react");
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ //#region src/jsx-runtime.ts
17
7
  function processCssProp(props, hashClass) {
18
- if (props.css == null) {
19
- return props;
20
- }
21
- const { css, className, ...rest } = props;
22
- const nextProps = {
23
- ...rest,
24
- className: resolveCssPropClass(hashClass, css, className)
25
- };
26
- return nextProps;
8
+ if (props.css == null) return props;
9
+ const { css, className, ...rest } = props;
10
+ return {
11
+ ...rest,
12
+ className: require_css_prop.resolveCssPropClass(hashClass, css, className)
13
+ };
27
14
  }
28
15
  function wrapJsx(factory, type, props, key) {
29
- const styles = react.useContext(TypeStylesContext);
30
- if (props.css != null && styles == null) {
31
- throw new Error(
32
- "[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props."
33
- );
34
- }
35
- const nextProps = styles ? processCssProp(props, styles.hashClass) : props;
36
- return factory(type, nextProps, key);
16
+ const styles = (0, react.useContext)(require_css_prop.TypeStylesContext);
17
+ if (props.css != null && styles == null) throw new Error("[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.");
18
+ return factory(type, styles ? processCssProp(props, require_resolve_hash_class.resolveHashClass(styles)) : props, key);
37
19
  }
38
- var Fragment = jsxRuntime.Fragment;
39
- function jsx2(type, props, key) {
40
- return wrapJsx(jsxRuntime.jsx, type, props, key);
20
+ const Fragment = react_jsx_runtime.Fragment;
21
+ function jsx(type, props, key) {
22
+ return wrapJsx(react_jsx_runtime.jsx, type, props, key);
41
23
  }
42
24
  function jsxs(type, props, key) {
43
- return wrapJsx(jsxRuntime.jsxs, type, props, key);
25
+ return wrapJsx(react_jsx_runtime.jsxs, type, props, key);
44
26
  }
45
-
27
+ //#endregion
46
28
  exports.Fragment = Fragment;
47
- exports.jsx = jsx2;
29
+ exports.jsx = jsx;
48
30
  exports.jsxs = jsxs;
49
- //# sourceMappingURL=jsx-runtime.cjs.map
31
+
50
32
  //# sourceMappingURL=jsx-runtime.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/css-prop.ts","../src/context.tsx","../src/jsx-runtime.ts"],"names":["cx","createContext","useContext","ReactFragment","jsx","reactJsx","reactJsxs"],"mappings":";;;;;;;AAIO,SAAS,mBAAA,CACd,SAAA,EACA,GAAA,EACA,SAAA,EACQ;AACR,EAAA,IAAI,GAAA,IAAO,OAAO,GAAA,KAAQ,QAAA,EAAU;AAClC,IAAA,OAAOA,aAAA,CAAG,SAAA,CAAU,GAAG,CAAA,EAAG,SAAS,CAAA;AAAA,EACrC;AACA,EAAA,OAAOA,cAAG,SAAS,CAAA;AACrB;ACVO,IAAM,iBAAA,GAAoBC,oBAAgC,IAAI,CAAA;;;ACIrE,SAAS,cAAA,CACP,OACA,SAAA,EACG;AACH,EAAA,IAAI,KAAA,CAAM,OAAO,IAAA,EAAM;AACrB,IAAA,OAAO,KAAA;AAAA,EACT;AAEA,EAAA,MAAM,EAAE,GAAA,EAAK,SAAA,EAAW,GAAG,MAAK,GAAI,KAAA;AACpC,EAAA,MAAM,SAAA,GAAY;AAAA,IAChB,GAAG,IAAA;AAAA,IACH,SAAA,EAAW,mBAAA,CAAoB,SAAA,EAAW,GAAA,EAAK,SAAS;AAAA,GAC1D;AAEA,EAAA,OAAO,SAAA;AACT;AAEA,SAAS,OAAA,CACP,OAAA,EACA,IAAA,EACA,KAAA,EACA,GAAA,EACoB;AACpB,EAAA,MAAM,MAAA,GAASC,iBAAW,iBAAiB,CAAA;AAE3C,EAAA,IAAI,KAAA,CAAM,GAAA,IAAO,IAAA,IAAQ,MAAA,IAAU,IAAA,EAAM;AACvC,IAAA,MAAM,IAAI,KAAA;AAAA,MACR;AAAA,KAEF;AAAA,EACF;AAEA,EAAA,MAAM,YAAY,MAAA,GAAS,cAAA,CAAe,KAAA,EAAO,MAAA,CAAO,SAAS,CAAA,GAAK,KAAA;AACtE,EAAA,OAAO,OAAA,CAAQ,IAAA,EAAM,SAAA,EAAW,GAAG,CAAA;AACrC;AAEO,IAAM,QAAA,GAAWC;AAEjB,SAASC,IAAAA,CACd,IAAA,EACA,KAAA,EACA,GAAA,EACoB;AACpB,EAAA,OAAO,OAAA,CAAQC,cAAA,EAAU,IAAA,EAAM,KAAA,EAAO,GAAG,CAAA;AAC3C;AAEO,SAAS,IAAA,CACd,IAAA,EACA,KAAA,EACA,GAAA,EACoB;AACpB,EAAA,OAAO,OAAA,CAAQC,eAAA,EAAW,IAAA,EAAM,KAAA,EAAO,GAAG,CAAA;AAC5C","file":"jsx-runtime.cjs","sourcesContent":["import type { CSSProperties } from 'typestyles';\nimport { cx } from 'typestyles';\nimport type { CssPropValue } from './types';\n\nexport function resolveCssPropClass(\n hashClass: (properties: CSSProperties, label?: string) => string,\n css: CssPropValue | undefined,\n className?: string,\n): string {\n if (css && typeof css === 'object') {\n return cx(hashClass(css), className);\n }\n return cx(className);\n}\n","import { createContext, type ReactNode } from 'react';\nimport type { StylesApi } from 'typestyles';\n\nexport const TypeStylesContext = createContext<StylesApi | null>(null);\n\nexport function TypeStylesProvider({\n styles,\n children,\n}: {\n styles: StylesApi;\n children: ReactNode;\n}): React.JSX.Element {\n return <TypeStylesContext.Provider value={styles}>{children}</TypeStylesContext.Provider>;\n}\n","import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsx as reactJsx, jsxs as reactJsxs, Fragment as ReactFragment } from 'react/jsx-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nfunction wrapJsx<P extends Record<string, unknown>>(\n factory: typeof reactJsx,\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, styles.hashClass) : (props as P);\n return factory(type, nextProps, key);\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsx<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n return wrapJsx(reactJsx, type, props, key);\n}\n\nexport function jsxs<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n return wrapJsx(reactJsxs, type, props, key);\n}\n\nexport type { ReactNode };\n"]}
1
+ {"version":3,"file":"jsx-runtime.cjs","names":["resolveCssPropClass","useContext","TypeStylesContext","resolveHashClass","ReactFragment","reactJsx","reactJsxs"],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import { useContext, type ElementType, type ReactNode } from 'react';\nimport { jsx as reactJsx, jsxs as reactJsxs, Fragment as ReactFragment } from 'react/jsx-runtime';\nimport type { CSSProperties } from 'typestyles';\nimport { resolveCssPropClass } from './css-prop';\nimport { TypeStylesContext } from './context';\nimport { resolveHashClass } from './resolve-hash-class';\nimport type { WithCssProp } from './types';\n\nfunction processCssProp<P extends Record<string, unknown>>(\n props: WithCssProp<P>,\n hashClass: (properties: CSSProperties, label?: string) => string,\n): P {\n if (props.css == null) {\n return props as P;\n }\n\n const { css, className, ...rest } = props;\n const nextProps = {\n ...rest,\n className: resolveCssPropClass(hashClass, css, className),\n } as unknown as P;\n\n return nextProps;\n}\n\nfunction wrapJsx<P extends Record<string, unknown>>(\n factory: typeof reactJsx,\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n const styles = useContext(TypeStylesContext);\n\n if (props.css != null && styles == null) {\n throw new Error(\n '[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. ' +\n 'Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.',\n );\n }\n\n const nextProps = styles ? processCssProp(props, resolveHashClass(styles)) : (props as P);\n return factory(type, nextProps, key);\n}\n\nexport const Fragment = ReactFragment;\n\nexport function jsx<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n return wrapJsx(reactJsx, type, props, key);\n}\n\nexport function jsxs<P extends Record<string, unknown>>(\n type: ElementType,\n props: WithCssProp<P>,\n key?: React.Key,\n): React.ReactElement {\n return wrapJsx(reactJsxs, type, props, key);\n}\n\nexport type { ReactNode };\n"],"mappings":";;;;;;AAQA,SAAS,eACP,OACA,WACG;CACH,IAAI,MAAM,OAAO,MACf,OAAO;CAGT,MAAM,EAAE,KAAK,WAAW,GAAG,SAAS;CAMpC,OAAO;EAJL,GAAG;EACH,WAAWA,iBAAAA,oBAAoB,WAAW,KAAK,SAAS;CAG3C;AACjB;AAEA,SAAS,QACP,SACA,MACA,OACA,KACoB;CACpB,MAAM,UAAA,GAASC,MAAAA,WAAAA,CAAWC,iBAAAA,iBAAiB;CAE3C,IAAI,MAAM,OAAO,QAAQ,UAAU,MACjC,MAAM,IAAI,MACR,kOAEF;CAIF,OAAO,QAAQ,MADG,SAAS,eAAe,OAAOC,2BAAAA,iBAAiB,MAAM,CAAC,IAAK,OAC9C,GAAG;AACrC;AAEA,MAAa,WAAWC,kBAAAA;AAExB,SAAgB,IACd,MACA,OACA,KACoB;CACpB,OAAO,QAAQC,kBAAAA,KAAU,MAAM,OAAO,GAAG;AAC3C;AAEA,SAAgB,KACd,MACA,OACA,KACoB;CACpB,OAAO,QAAQC,kBAAAA,MAAW,MAAM,OAAO,GAAG;AAC5C"}
@@ -1,13 +1,11 @@
1
- import * as react from 'react';
2
- import { ReactNode, ElementType } from 'react';
3
- export { ReactNode } from 'react';
4
- import { W as WithCssProp } from './types-_vEO6H8X.cjs';
5
- import 'typestyles';
6
-
7
- declare const Fragment: react.ExoticComponent<{
8
- children?: ReactNode | undefined;
1
+ import { n as WithCssProp } from "./types-DcDsqg2q.cjs";
2
+ import { ElementType, ReactNode } from "react";
3
+ //#region src/jsx-runtime.d.ts
4
+ export declare const Fragment: import("react").ExoticComponent<{
5
+ children?: ReactNode | undefined;
9
6
  }>;
10
- declare function jsx<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
11
- declare function jsxs<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
12
-
13
- export { Fragment, jsx, jsxs };
7
+ export declare function jsx<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
8
+ export declare function jsxs<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
9
+ //#endregion
10
+ export type { ReactNode };
11
+ //# sourceMappingURL=jsx-runtime.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.d.cts","names":[],"sources":["../src/jsx-runtime.ts"],"mappings":";;;qBA4Ca,0BAAQ;;;wBAEL,IAAI,UAAU,yBAC5B,MAAM,aACN,OAAO,YAAY,IACnB,MAAM,MAAM,MACX,MAAM;wBAIO,KAAK,UAAU,yBAC7B,MAAM,aACN,OAAO,YAAY,IACnB,MAAM,MAAM,MACX,MAAM"}
@@ -1,13 +1,11 @@
1
- import * as react from 'react';
2
- import { ReactNode, ElementType } from 'react';
3
- export { ReactNode } from 'react';
4
- import { W as WithCssProp } from './types-_vEO6H8X.js';
5
- import 'typestyles';
6
-
7
- declare const Fragment: react.ExoticComponent<{
8
- children?: ReactNode | undefined;
1
+ import { n as WithCssProp } from "./types-DcDsqg2q.js";
2
+ import { ElementType, ReactNode } from "react";
3
+ //#region src/jsx-runtime.d.ts
4
+ export declare const Fragment: import("react").ExoticComponent<{
5
+ children?: ReactNode | undefined;
9
6
  }>;
10
- declare function jsx<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
11
- declare function jsxs<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
12
-
13
- export { Fragment, jsx, jsxs };
7
+ export declare function jsx<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
8
+ export declare function jsxs<P extends Record<string, unknown>>(type: ElementType, props: WithCssProp<P>, key?: React.Key): React.ReactElement;
9
+ //#endregion
10
+ export type { ReactNode };
11
+ //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.d.ts","names":[],"sources":["../src/jsx-runtime.ts"],"mappings":";;;qBA4Ca,0BAAQ;;;wBAEL,IAAI,UAAU,yBAC5B,MAAM,aACN,OAAO,YAAY,IACnB,MAAM,MAAM,MACX,MAAM;wBAIO,KAAK,UAAU,yBAC7B,MAAM,aACN,OAAO,YAAY,IACnB,MAAM,MAAM,MACX,MAAM"}
@@ -1,36 +1,29 @@
1
- import { TypeStylesContext, resolveCssPropClass } from './chunk-4BYX2HZ7.js';
2
- import { useContext } from 'react';
3
- import { Fragment as Fragment$1, jsx as jsx$1, jsxs as jsxs$1 } from 'react/jsx-runtime';
4
-
1
+ import { n as TypeStylesContext, t as resolveCssPropClass } from "./css-prop-DMDmFKhu.js";
2
+ import { t as resolveHashClass } from "./resolve-hash-class-Rs_7aMMQ.js";
3
+ import { useContext } from "react";
4
+ import { Fragment as Fragment$1, jsx as jsx$1, jsxs as jsxs$1 } from "react/jsx-runtime";
5
+ //#region src/jsx-runtime.ts
5
6
  function processCssProp(props, hashClass) {
6
- if (props.css == null) {
7
- return props;
8
- }
9
- const { css, className, ...rest } = props;
10
- const nextProps = {
11
- ...rest,
12
- className: resolveCssPropClass(hashClass, css, className)
13
- };
14
- return nextProps;
7
+ if (props.css == null) return props;
8
+ const { css, className, ...rest } = props;
9
+ return {
10
+ ...rest,
11
+ className: resolveCssPropClass(hashClass, css, className)
12
+ };
15
13
  }
16
14
  function wrapJsx(factory, type, props, key) {
17
- const styles = useContext(TypeStylesContext);
18
- if (props.css != null && styles == null) {
19
- throw new Error(
20
- "[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a `styles` instance. Wrap your app in `<TypeStylesProvider styles={styles}>`, or use the Babel plugin for zero-runtime css props."
21
- );
22
- }
23
- const nextProps = styles ? processCssProp(props, styles.hashClass) : props;
24
- return factory(type, nextProps, key);
15
+ const styles = useContext(TypeStylesContext);
16
+ if (props.css != null && styles == null) throw new Error("[@typestyles/react] The `css` prop requires a `TypeStylesProvider` with a styles instance. Wrap your app in `<TypeStylesProvider styles={api}>` (from `createTypeStyles()`), or use the Babel plugin for zero-runtime css props.");
17
+ return factory(type, styles ? processCssProp(props, resolveHashClass(styles)) : props, key);
25
18
  }
26
- var Fragment = Fragment$1;
19
+ const Fragment = Fragment$1;
27
20
  function jsx(type, props, key) {
28
- return wrapJsx(jsx$1, type, props, key);
21
+ return wrapJsx(jsx$1, type, props, key);
29
22
  }
30
23
  function jsxs(type, props, key) {
31
- return wrapJsx(jsxs$1, type, props, key);
24
+ return wrapJsx(jsxs$1, type, props, key);
32
25
  }
33
-
26
+ //#endregion
34
27
  export { Fragment, jsx, jsxs };
35
- //# sourceMappingURL=jsx-runtime.js.map
28
+
36
29
  //# sourceMappingURL=jsx-runtime.js.map