@traefik-labs/faency 12.0.7 → 12.0.9

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 (80) hide show
  1. package/README.md +6 -5
  2. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +23 -0
  3. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -0
  4. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +6 -0
  5. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js.map +1 -0
  6. package/dist/components/Avatar/Avatar.vanilla.cjs +42 -0
  7. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -0
  8. package/dist/components/Avatar/Avatar.vanilla.css.cjs +11 -0
  9. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -0
  10. package/dist/components/Avatar/Avatar.vanilla.css.js +11 -0
  11. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -0
  12. package/dist/components/Avatar/Avatar.vanilla.js +25 -0
  13. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -0
  14. package/dist/components/Bubble/Bubble.vanilla.cjs +34 -0
  15. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -0
  16. package/dist/components/Bubble/Bubble.vanilla.css.cjs +7 -0
  17. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -0
  18. package/dist/components/Bubble/Bubble.vanilla.css.js +7 -0
  19. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -0
  20. package/dist/components/Bubble/Bubble.vanilla.js +34 -0
  21. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -0
  22. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +72 -36
  23. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  24. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +72 -36
  25. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  26. package/dist/components/Card/Card.vanilla.cjs +20 -18
  27. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  28. package/dist/components/Card/Card.vanilla.css.cjs +0 -1
  29. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  30. package/dist/components/Card/Card.vanilla.css.js +0 -1
  31. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  32. package/dist/components/Card/Card.vanilla.js +20 -18
  33. package/dist/components/Card/Card.vanilla.js.map +1 -1
  34. package/dist/components/Elevation/Elevation.vanilla.cjs +6 -4
  35. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  36. package/dist/components/Elevation/Elevation.vanilla.js +6 -4
  37. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  38. package/dist/components/Image/Image.vanilla.cjs +33 -0
  39. package/dist/components/Image/Image.vanilla.cjs.map +1 -0
  40. package/dist/components/Image/Image.vanilla.css.cjs +6 -0
  41. package/dist/components/Image/Image.vanilla.css.cjs.map +1 -0
  42. package/dist/components/Image/Image.vanilla.css.js +6 -0
  43. package/dist/components/Image/Image.vanilla.css.js.map +1 -0
  44. package/dist/components/Image/Image.vanilla.js +33 -0
  45. package/dist/components/Image/Image.vanilla.js.map +1 -0
  46. package/dist/components/Input/Input.vanilla.css.cjs +1 -0
  47. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  48. package/dist/components/Input/Input.vanilla.css.js +1 -0
  49. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  50. package/dist/components/Label/Label.vanilla.cjs +18 -22
  51. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  52. package/dist/components/Label/Label.vanilla.css.cjs +1 -0
  53. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  54. package/dist/components/Label/Label.vanilla.css.js +1 -0
  55. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  56. package/dist/components/Label/Label.vanilla.js +18 -5
  57. package/dist/components/Label/Label.vanilla.js.map +1 -1
  58. package/dist/components/Panel/Panel.vanilla.cjs +6 -4
  59. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  60. package/dist/components/Panel/Panel.vanilla.js +6 -4
  61. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  62. package/dist/components/Skeleton/Skeleton.vanilla.cjs +34 -0
  63. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -0
  64. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +7 -0
  65. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -0
  66. package/dist/components/Skeleton/Skeleton.vanilla.css.js +7 -0
  67. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -0
  68. package/dist/components/Skeleton/Skeleton.vanilla.js +34 -0
  69. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -0
  70. package/dist/faency.css +1357 -1050
  71. package/dist/index.cjs +15 -5
  72. package/dist/index.cjs.map +1 -1
  73. package/dist/index.d.ts +267 -24
  74. package/dist/index.js +12 -2
  75. package/dist/index.js.map +1 -1
  76. package/dist/styles/themes.css.cjs +1 -0
  77. package/dist/styles/themes.css.cjs.map +1 -1
  78. package/dist/styles/themes.css.js +1 -0
  79. package/dist/styles/themes.css.js.map +1 -1
  80. package/package.json +8 -9
@@ -6,36 +6,38 @@ const React = require("react");
6
6
  const cssProps = require("../../styles/cssProps.cjs");
7
7
  const themeContext = require("../../styles/themeContext.cjs");
8
8
  const Card_vanilla_css = require("./Card.vanilla.css.cjs");
9
- const CardVanilla = React.forwardRef(
10
- ({ className, css, style, elevation, variant, active, interactive, ...props }, ref) => {
9
+ const CardVanillaComponentImpl = React.forwardRef(
10
+ ({
11
+ as,
12
+ className,
13
+ css,
14
+ style,
15
+ elevation,
16
+ variant,
17
+ active,
18
+ interactive,
19
+ ...props
20
+ }, ref) => {
21
+ const Component = as || (interactive ? "button" : "div");
11
22
  const { colors } = themeContext.useVanillaExtractTheme();
12
23
  const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
13
24
  const mergedStyles = { ...cssStyles, ...style, ...dynamic.assignInlineVars(vars) };
14
- if (interactive) {
15
- const recipeClass2 = Card_vanilla_css.interactiveCardRecipe({ elevation, variant, active });
16
- return /* @__PURE__ */ jsxRuntime.jsx(
17
- "button",
18
- {
19
- ref,
20
- className: `${recipeClass2} ${className || ""}`.trim(),
21
- style: mergedStyles,
22
- tabIndex: 0,
23
- ...props
24
- }
25
- );
26
- }
27
- const recipeClass = Card_vanilla_css.cardRecipe({ elevation, variant, active });
25
+ const recipe = interactive ? Card_vanilla_css.interactiveCardRecipe : Card_vanilla_css.cardRecipe;
26
+ const recipeClass = recipe({ elevation, variant, active });
27
+ const additionalProps = interactive && !as ? { tabIndex: 0 } : {};
28
28
  return /* @__PURE__ */ jsxRuntime.jsx(
29
- "div",
29
+ Component,
30
30
  {
31
31
  ref,
32
32
  className: `${recipeClass} ${className || ""}`.trim(),
33
33
  style: mergedStyles,
34
+ ...additionalProps,
34
35
  ...props
35
36
  }
36
37
  );
37
38
  }
38
39
  );
39
- CardVanilla.displayName = "CardVanilla";
40
+ CardVanillaComponentImpl.displayName = "CardVanilla";
41
+ const CardVanilla = CardVanillaComponentImpl;
40
42
  exports.CardVanilla = CardVanilla;
41
43
  //# sourceMappingURL=Card.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.cjs","sources":["../../../components/Card/Card.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { cardRecipe, interactiveCardRecipe } from './Card.vanilla.css';\n\ntype CardRecipeVariants = NonNullable<RecipeVariants<typeof cardRecipe>>;\n\ninterface BaseCardProps extends CSSProps {\n elevation?: CardRecipeVariants['elevation'];\n variant?: CardRecipeVariants['variant'];\n active?: CardRecipeVariants['active'];\n}\n\ninterface CardOwnProps extends BaseCardProps, React.ComponentProps<'div'> {\n interactive?: false;\n}\n\nexport type CardVanillaProps = CardOwnProps;\n\ninterface InteractiveCardProps\n extends BaseCardProps,\n Omit<React.ComponentProps<'button'>, 'color'> {\n interactive: true;\n}\n\nexport type CardVanillaAllProps = CardVanillaProps | InteractiveCardProps;\n\nexport const CardVanilla = forwardRef<HTMLDivElement | HTMLButtonElement, CardVanillaAllProps>(\n ({ className, css, style, elevation, variant, active, interactive, ...props }, ref) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n if (interactive) {\n const recipeClass = interactiveCardRecipe({ elevation, variant, active });\n return (\n <button\n ref={ref as React.RefObject<HTMLButtonElement>}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n tabIndex={0}\n {...(props as React.ComponentProps<'button'>)}\n />\n );\n }\n\n const recipeClass = cardRecipe({ elevation, variant, active });\n return (\n <div\n ref={ref as React.RefObject<HTMLDivElement>}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...(props as React.ComponentProps<'div'>)}\n />\n );\n },\n);\n\nCardVanilla.displayName = 'CardVanilla';\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","recipeClass","interactiveCardRecipe","jsx","cardRecipe"],"mappings":";;;;;;;;AA8BO,MAAM,cAAcA,MAAAA;AAAAA,EACzB,CAAC,EAAE,WAAW,KAAK,OAAO,WAAW,SAAS,QAAQ,aAAa,GAAG,MAAA,GAAS,QAAQ;AACrF,UAAM,EAAE,OAAA,IAAWC,oCAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAGC,QAAAA,iBAAiB,IAAI,EAAA;AAEvE,QAAI,aAAa;AACf,YAAMC,eAAcC,iBAAAA,sBAAsB,EAAE,WAAW,SAAS,QAAQ;AACxE,aACEC,2BAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA,WAAW,GAAGF,YAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,UAC/C,OAAO;AAAA,UACP,UAAU;AAAA,UACT,GAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAGX;AAEA,UAAM,cAAcG,iBAAAA,WAAW,EAAE,WAAW,SAAS,QAAQ;AAC7D,WACED,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EAGX;AACF;AAEA,YAAY,cAAc;;"}
1
+ {"version":3,"file":"Card.vanilla.cjs","sources":["../../../components/Card/Card.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { cardRecipe, interactiveCardRecipe } from './Card.vanilla.css';\n\ntype CardRecipeVariants = NonNullable<RecipeVariants<typeof cardRecipe>>;\n\ninterface CardOwnProps extends CSSProps {\n elevation?: CardRecipeVariants['elevation'];\n variant?: CardRecipeVariants['variant'];\n active?: CardRecipeVariants['active'];\n interactive?: boolean;\n}\n\nexport type CardVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CardOwnProps\n>;\n\ntype CardVanillaComponent = PolymorphicComponent<'div', CardVanillaProps<ElementType>>;\n\nconst CardVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n {\n as,\n className,\n css,\n style,\n elevation,\n variant,\n active,\n interactive,\n ...props\n }: CardVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'div');\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n const recipe = interactive ? interactiveCardRecipe : cardRecipe;\n const recipeClass = recipe({ elevation, variant, active });\n\n const additionalProps = interactive && !as ? { tabIndex: 0 } : {};\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...additionalProps}\n {...props}\n />\n );\n },\n);\n\nCardVanillaComponentImpl.displayName = 'CardVanilla';\n\nexport const CardVanilla = CardVanillaComponentImpl as CardVanillaComponent;\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","interactiveCardRecipe","cardRecipe","jsx"],"mappings":";;;;;;;;AA6BA,MAAM,2BAA2BA,MAAAA;AAAAA,EAC/B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,YAAY,OAAO,cAAc,WAAW;AAClD,UAAM,EAAE,OAAA,IAAWC,oCAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAGC,QAAAA,iBAAiB,IAAI,EAAA;AAEvE,UAAM,SAAS,cAAcC,iBAAAA,wBAAwBC,iBAAAA;AACrD,UAAM,cAAc,OAAO,EAAE,WAAW,SAAS,QAAQ;AAEzD,UAAM,kBAAkB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAA,IAAM,CAAA;AAE/D,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,yBAAyB,cAAc;AAEhC,MAAM,cAAc;;"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- ;/* empty css */
4
3
  ;/* empty css */
5
4
  const createRuntimeFn62c9670f_esm = require("../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs");
6
5
  var cardRecipe = createRuntimeFn62c9670f_esm.c({ defaultClassName: "kc9sar1 kc9sar0", variantClassNames: { elevation: { "0": "kc9sar2", "1": "kc9sar3", "2": "kc9sar4", "3": "kc9sar5", "4": "kc9sar6", "5": "kc9sar7" }, variant: { inner: "kc9sar8", ghost: "kc9sar9" }, active: { true: "kc9sara" } }, defaultVariants: { elevation: 1 }, compoundVariants: [] });
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"Card.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
3
2
  import { c as createRuntimeFn } from "../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
4
3
  var cardRecipe = createRuntimeFn({ defaultClassName: "kc9sar1 kc9sar0", variantClassNames: { elevation: { "0": "kc9sar2", "1": "kc9sar3", "2": "kc9sar4", "3": "kc9sar5", "4": "kc9sar6", "5": "kc9sar7" }, variant: { inner: "kc9sar8", ghost: "kc9sar9" }, active: { true: "kc9sara" } }, defaultVariants: { elevation: 1 }, compoundVariants: [] });
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"Card.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -4,37 +4,39 @@ import { forwardRef } from "react";
4
4
  import { processCSSProp } from "../../styles/cssProps.js";
5
5
  import { useVanillaExtractTheme } from "../../styles/themeContext.js";
6
6
  import { interactiveCardRecipe, cardRecipe } from "./Card.vanilla.css.js";
7
- const CardVanilla = forwardRef(
8
- ({ className, css, style, elevation, variant, active, interactive, ...props }, ref) => {
7
+ const CardVanillaComponentImpl = forwardRef(
8
+ ({
9
+ as,
10
+ className,
11
+ css,
12
+ style,
13
+ elevation,
14
+ variant,
15
+ active,
16
+ interactive,
17
+ ...props
18
+ }, ref) => {
19
+ const Component = as || (interactive ? "button" : "div");
9
20
  const { colors } = useVanillaExtractTheme();
10
21
  const { style: cssStyles, vars } = processCSSProp(css, colors);
11
22
  const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };
12
- if (interactive) {
13
- const recipeClass2 = interactiveCardRecipe({ elevation, variant, active });
14
- return /* @__PURE__ */ jsx(
15
- "button",
16
- {
17
- ref,
18
- className: `${recipeClass2} ${className || ""}`.trim(),
19
- style: mergedStyles,
20
- tabIndex: 0,
21
- ...props
22
- }
23
- );
24
- }
25
- const recipeClass = cardRecipe({ elevation, variant, active });
23
+ const recipe = interactive ? interactiveCardRecipe : cardRecipe;
24
+ const recipeClass = recipe({ elevation, variant, active });
25
+ const additionalProps = interactive && !as ? { tabIndex: 0 } : {};
26
26
  return /* @__PURE__ */ jsx(
27
- "div",
27
+ Component,
28
28
  {
29
29
  ref,
30
30
  className: `${recipeClass} ${className || ""}`.trim(),
31
31
  style: mergedStyles,
32
+ ...additionalProps,
32
33
  ...props
33
34
  }
34
35
  );
35
36
  }
36
37
  );
37
- CardVanilla.displayName = "CardVanilla";
38
+ CardVanillaComponentImpl.displayName = "CardVanilla";
39
+ const CardVanilla = CardVanillaComponentImpl;
38
40
  export {
39
41
  CardVanilla
40
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Card.vanilla.js","sources":["../../../components/Card/Card.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { cardRecipe, interactiveCardRecipe } from './Card.vanilla.css';\n\ntype CardRecipeVariants = NonNullable<RecipeVariants<typeof cardRecipe>>;\n\ninterface BaseCardProps extends CSSProps {\n elevation?: CardRecipeVariants['elevation'];\n variant?: CardRecipeVariants['variant'];\n active?: CardRecipeVariants['active'];\n}\n\ninterface CardOwnProps extends BaseCardProps, React.ComponentProps<'div'> {\n interactive?: false;\n}\n\nexport type CardVanillaProps = CardOwnProps;\n\ninterface InteractiveCardProps\n extends BaseCardProps,\n Omit<React.ComponentProps<'button'>, 'color'> {\n interactive: true;\n}\n\nexport type CardVanillaAllProps = CardVanillaProps | InteractiveCardProps;\n\nexport const CardVanilla = forwardRef<HTMLDivElement | HTMLButtonElement, CardVanillaAllProps>(\n ({ className, css, style, elevation, variant, active, interactive, ...props }, ref) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n if (interactive) {\n const recipeClass = interactiveCardRecipe({ elevation, variant, active });\n return (\n <button\n ref={ref as React.RefObject<HTMLButtonElement>}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n tabIndex={0}\n {...(props as React.ComponentProps<'button'>)}\n />\n );\n }\n\n const recipeClass = cardRecipe({ elevation, variant, active });\n return (\n <div\n ref={ref as React.RefObject<HTMLDivElement>}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...(props as React.ComponentProps<'div'>)}\n />\n );\n },\n);\n\nCardVanilla.displayName = 'CardVanilla';\n"],"names":["recipeClass"],"mappings":";;;;;;AA8BO,MAAM,cAAc;AAAA,EACzB,CAAC,EAAE,WAAW,KAAK,OAAO,WAAW,SAAS,QAAQ,aAAa,GAAG,MAAA,GAAS,QAAQ;AACrF,UAAM,EAAE,OAAA,IAAW,uBAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,IAAI,EAAA;AAEvE,QAAI,aAAa;AACf,YAAMA,eAAc,sBAAsB,EAAE,WAAW,SAAS,QAAQ;AACxE,aACE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA,WAAW,GAAGA,YAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,UAC/C,OAAO;AAAA,UACP,UAAU;AAAA,UACT,GAAI;AAAA,QAAA;AAAA,MAAA;AAAA,IAGX;AAEA,UAAM,cAAc,WAAW,EAAE,WAAW,SAAS,QAAQ;AAC7D,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EAGX;AACF;AAEA,YAAY,cAAc;"}
1
+ {"version":3,"file":"Card.vanilla.js","sources":["../../../components/Card/Card.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { cardRecipe, interactiveCardRecipe } from './Card.vanilla.css';\n\ntype CardRecipeVariants = NonNullable<RecipeVariants<typeof cardRecipe>>;\n\ninterface CardOwnProps extends CSSProps {\n elevation?: CardRecipeVariants['elevation'];\n variant?: CardRecipeVariants['variant'];\n active?: CardRecipeVariants['active'];\n interactive?: boolean;\n}\n\nexport type CardVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CardOwnProps\n>;\n\ntype CardVanillaComponent = PolymorphicComponent<'div', CardVanillaProps<ElementType>>;\n\nconst CardVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n {\n as,\n className,\n css,\n style,\n elevation,\n variant,\n active,\n interactive,\n ...props\n }: CardVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || (interactive ? 'button' : 'div');\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n const recipe = interactive ? interactiveCardRecipe : cardRecipe;\n const recipeClass = recipe({ elevation, variant, active });\n\n const additionalProps = interactive && !as ? { tabIndex: 0 } : {};\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...additionalProps}\n {...props}\n />\n );\n },\n);\n\nCardVanillaComponentImpl.displayName = 'CardVanilla';\n\nexport const CardVanilla = CardVanillaComponentImpl as CardVanillaComponent;\n"],"names":[],"mappings":";;;;;;AA6BA,MAAM,2BAA2B;AAAA,EAC/B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,YAAY,OAAO,cAAc,WAAW;AAClD,UAAM,EAAE,OAAA,IAAW,uBAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,IAAI,EAAA;AAEvE,UAAM,SAAS,cAAc,wBAAwB;AACrD,UAAM,cAAc,OAAO,EAAE,WAAW,SAAS,QAAQ;AAEzD,UAAM,kBAAkB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAA,IAAM,CAAA;AAE/D,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,QACH,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,yBAAyB,cAAc;AAEhC,MAAM,cAAc;"}
@@ -6,14 +6,15 @@ const React = require("react");
6
6
  const cssProps = require("../../styles/cssProps.cjs");
7
7
  const themeContext = require("../../styles/themeContext.cjs");
8
8
  const Elevation_vanilla_css = require("./Elevation.vanilla.css.cjs");
9
- const ElevationVanilla = React.forwardRef(
10
- ({ className, css, style, variant, ...props }, ref) => {
9
+ const ElevationVanillaComponentImpl = React.forwardRef(
10
+ ({ as, className, css, style, variant, ...props }, ref) => {
11
+ const Component = as || "div";
11
12
  const { colors } = themeContext.useVanillaExtractTheme();
12
13
  const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
13
14
  const mergedStyles = { ...cssStyles, ...style, ...dynamic.assignInlineVars(vars) };
14
15
  const recipeClass = Elevation_vanilla_css.elevationRecipe({ variant });
15
16
  return /* @__PURE__ */ jsxRuntime.jsx(
16
- "div",
17
+ Component,
17
18
  {
18
19
  ref,
19
20
  className: `${recipeClass} ${className || ""}`.trim(),
@@ -23,6 +24,7 @@ const ElevationVanilla = React.forwardRef(
23
24
  );
24
25
  }
25
26
  );
26
- ElevationVanilla.displayName = "ElevationVanilla";
27
+ ElevationVanillaComponentImpl.displayName = "ElevationVanilla";
28
+ const ElevationVanilla = ElevationVanillaComponentImpl;
27
29
  exports.ElevationVanilla = ElevationVanilla;
28
30
  //# sourceMappingURL=Elevation.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.vanilla.cjs","sources":["../../../components/Elevation/Elevation.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { elevationRecipe } from './Elevation.vanilla.css';\n\ntype ElevationRecipeVariants = NonNullable<RecipeVariants<typeof elevationRecipe>>;\n\ninterface ElevationOwnProps extends CSSProps {\n variant?: ElevationRecipeVariants['variant'];\n}\n\nexport type ElevationVanillaProps = React.ComponentProps<'div'> & ElevationOwnProps;\n\nexport const ElevationVanilla = forwardRef<HTMLDivElement, ElevationVanillaProps>(\n ({ className, css, style, variant, ...props }, ref) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n const recipeClass = elevationRecipe({ variant });\n\n return (\n <div\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nElevationVanilla.displayName = 'ElevationVanilla';\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","elevationRecipe","jsx"],"mappings":";;;;;;;;AAgBO,MAAM,mBAAmBA,MAAAA;AAAAA,EAC9B,CAAC,EAAE,WAAW,KAAK,OAAO,SAAS,GAAG,MAAA,GAAS,QAAQ;AACrD,UAAM,EAAE,OAAA,IAAWC,oCAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAGC,QAAAA,iBAAiB,IAAI,EAAA;AACvE,UAAM,cAAcC,sBAAAA,gBAAgB,EAAE,SAAS;AAE/C,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,iBAAiB,cAAc;;"}
1
+ {"version":3,"file":"Elevation.vanilla.cjs","sources":["../../../components/Elevation/Elevation.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { elevationRecipe } from './Elevation.vanilla.css';\n\ntype ElevationRecipeVariants = NonNullable<RecipeVariants<typeof elevationRecipe>>;\n\ninterface ElevationOwnProps extends CSSProps {\n variant?: ElevationRecipeVariants['variant'];\n}\n\nexport type ElevationVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n ElevationOwnProps\n>;\n\ntype ElevationVanillaComponent = PolymorphicComponent<'div', ElevationVanillaProps<ElementType>>;\n\nconst ElevationVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: ElevationVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n const recipeClass = elevationRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nElevationVanillaComponentImpl.displayName = 'ElevationVanilla';\n\nexport const ElevationVanilla = ElevationVanillaComponentImpl as ElevationVanillaComponent;\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","elevationRecipe","jsx"],"mappings":";;;;;;;;AA0BA,MAAM,gCAAgCA,MAAAA;AAAAA,EACpC,CACE,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,MAAA,GACzC,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAWC,oCAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAGC,QAAAA,iBAAiB,IAAI,EAAA;AACvE,UAAM,cAAcC,sBAAAA,gBAAgB,EAAE,SAAS;AAE/C,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,8BAA8B,cAAc;AAErC,MAAM,mBAAmB;;"}
@@ -4,14 +4,15 @@ import { forwardRef } from "react";
4
4
  import { processCSSProp } from "../../styles/cssProps.js";
5
5
  import { useVanillaExtractTheme } from "../../styles/themeContext.js";
6
6
  import { elevationRecipe } from "./Elevation.vanilla.css.js";
7
- const ElevationVanilla = forwardRef(
8
- ({ className, css, style, variant, ...props }, ref) => {
7
+ const ElevationVanillaComponentImpl = forwardRef(
8
+ ({ as, className, css, style, variant, ...props }, ref) => {
9
+ const Component = as || "div";
9
10
  const { colors } = useVanillaExtractTheme();
10
11
  const { style: cssStyles, vars } = processCSSProp(css, colors);
11
12
  const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };
12
13
  const recipeClass = elevationRecipe({ variant });
13
14
  return /* @__PURE__ */ jsx(
14
- "div",
15
+ Component,
15
16
  {
16
17
  ref,
17
18
  className: `${recipeClass} ${className || ""}`.trim(),
@@ -21,7 +22,8 @@ const ElevationVanilla = forwardRef(
21
22
  );
22
23
  }
23
24
  );
24
- ElevationVanilla.displayName = "ElevationVanilla";
25
+ ElevationVanillaComponentImpl.displayName = "ElevationVanilla";
26
+ const ElevationVanilla = ElevationVanillaComponentImpl;
25
27
  export {
26
28
  ElevationVanilla
27
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.vanilla.js","sources":["../../../components/Elevation/Elevation.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { elevationRecipe } from './Elevation.vanilla.css';\n\ntype ElevationRecipeVariants = NonNullable<RecipeVariants<typeof elevationRecipe>>;\n\ninterface ElevationOwnProps extends CSSProps {\n variant?: ElevationRecipeVariants['variant'];\n}\n\nexport type ElevationVanillaProps = React.ComponentProps<'div'> & ElevationOwnProps;\n\nexport const ElevationVanilla = forwardRef<HTMLDivElement, ElevationVanillaProps>(\n ({ className, css, style, variant, ...props }, ref) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n const recipeClass = elevationRecipe({ variant });\n\n return (\n <div\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nElevationVanilla.displayName = 'ElevationVanilla';\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,mBAAmB;AAAA,EAC9B,CAAC,EAAE,WAAW,KAAK,OAAO,SAAS,GAAG,MAAA,GAAS,QAAQ;AACrD,UAAM,EAAE,OAAA,IAAW,uBAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,IAAI,EAAA;AACvE,UAAM,cAAc,gBAAgB,EAAE,SAAS;AAE/C,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,iBAAiB,cAAc;"}
1
+ {"version":3,"file":"Elevation.vanilla.js","sources":["../../../components/Elevation/Elevation.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { elevationRecipe } from './Elevation.vanilla.css';\n\ntype ElevationRecipeVariants = NonNullable<RecipeVariants<typeof elevationRecipe>>;\n\ninterface ElevationOwnProps extends CSSProps {\n variant?: ElevationRecipeVariants['variant'];\n}\n\nexport type ElevationVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n ElevationOwnProps\n>;\n\ntype ElevationVanillaComponent = PolymorphicComponent<'div', ElevationVanillaProps<ElementType>>;\n\nconst ElevationVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, variant, ...props }: ElevationVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n const recipeClass = elevationRecipe({ variant });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nElevationVanillaComponentImpl.displayName = 'ElevationVanilla';\n\nexport const ElevationVanilla = ElevationVanillaComponentImpl as ElevationVanillaComponent;\n"],"names":[],"mappings":";;;;;;AA0BA,MAAM,gCAAgC;AAAA,EACpC,CACE,EAAE,IAAI,WAAW,KAAK,OAAO,SAAS,GAAG,MAAA,GACzC,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAW,uBAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,IAAI,EAAA;AACvE,UAAM,cAAc,gBAAgB,EAAE,SAAS;AAE/C,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,8BAA8B,cAAc;AAErC,MAAM,mBAAmB;"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const dynamic = require("@vanilla-extract/dynamic");
5
+ const React = require("react");
6
+ const cssProps = require("../../styles/cssProps.cjs");
7
+ const themeContext = require("../../styles/themeContext.cjs");
8
+ const Image_vanilla_css = require("./Image.vanilla.css.cjs");
9
+ const ImageVanillaImpl = React.forwardRef(
10
+ ({ as, className, css, style, ...props }, ref) => {
11
+ const Component = as || "img";
12
+ const { colors } = themeContext.useVanillaExtractTheme();
13
+ const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
14
+ const mergedStyles = {
15
+ ...cssStyles,
16
+ ...style,
17
+ ...dynamic.assignInlineVars(vars)
18
+ };
19
+ return /* @__PURE__ */ jsxRuntime.jsx(
20
+ Component,
21
+ {
22
+ ref,
23
+ className: `${Image_vanilla_css.image} ${className || ""}`.trim(),
24
+ style: mergedStyles,
25
+ ...props
26
+ }
27
+ );
28
+ }
29
+ );
30
+ ImageVanillaImpl.displayName = "ImageVanilla";
31
+ const ImageVanilla = ImageVanillaImpl;
32
+ exports.ImageVanilla = ImageVanilla;
33
+ //# sourceMappingURL=Image.vanilla.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.vanilla.cjs","sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { image } from './Image.vanilla.css';\n\nexport type ImageVanillaProps<C extends ElementType = 'img'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype ImageVanillaComponent = PolymorphicComponent<'img', ImageVanillaProps<ElementType>>;\n\nconst ImageVanillaImpl = forwardRef(\n <C extends ElementType = 'img'>(\n { as, className, css, style, ...props }: ImageVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'img';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n return (\n <Component\n ref={ref}\n className={`${image} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","jsx","image"],"mappings":";;;;;;;;AAmBA,MAAM,mBAAmBA,MAAAA;AAAAA,EACvB,CACE,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,MAAA,GAChC,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAWC,oCAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAGC,QAAAA,iBAAiB,IAAI;AAAA,IAAA;AAG1B,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAGC,uBAAK,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QACzC,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,iBAAiB,cAAc;AAExB,MAAM,eAAe;;"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
4
+ var image = "_18cm5pz0";
5
+ exports.image = image;
6
+ //# sourceMappingURL=Image.vanilla.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -0,0 +1,6 @@
1
+ /* empty css */
2
+ var image = "_18cm5pz0";
3
+ export {
4
+ image
5
+ };
6
+ //# sourceMappingURL=Image.vanilla.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,33 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { assignInlineVars } from "@vanilla-extract/dynamic";
3
+ import { forwardRef } from "react";
4
+ import { processCSSProp } from "../../styles/cssProps.js";
5
+ import { useVanillaExtractTheme } from "../../styles/themeContext.js";
6
+ import { image } from "./Image.vanilla.css.js";
7
+ const ImageVanillaImpl = forwardRef(
8
+ ({ as, className, css, style, ...props }, ref) => {
9
+ const Component = as || "img";
10
+ const { colors } = useVanillaExtractTheme();
11
+ const { style: cssStyles, vars } = processCSSProp(css, colors);
12
+ const mergedStyles = {
13
+ ...cssStyles,
14
+ ...style,
15
+ ...assignInlineVars(vars)
16
+ };
17
+ return /* @__PURE__ */ jsx(
18
+ Component,
19
+ {
20
+ ref,
21
+ className: `${image} ${className || ""}`.trim(),
22
+ style: mergedStyles,
23
+ ...props
24
+ }
25
+ );
26
+ }
27
+ );
28
+ ImageVanillaImpl.displayName = "ImageVanilla";
29
+ const ImageVanilla = ImageVanillaImpl;
30
+ export {
31
+ ImageVanilla
32
+ };
33
+ //# sourceMappingURL=Image.vanilla.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.vanilla.js","sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { image } from './Image.vanilla.css';\n\nexport type ImageVanillaProps<C extends ElementType = 'img'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype ImageVanillaComponent = PolymorphicComponent<'img', ImageVanillaProps<ElementType>>;\n\nconst ImageVanillaImpl = forwardRef(\n <C extends ElementType = 'img'>(\n { as, className, css, style, ...props }: ImageVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'img';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n return (\n <Component\n ref={ref}\n className={`${image} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"names":[],"mappings":";;;;;;AAmBA,MAAM,mBAAmB;AAAA,EACvB,CACE,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,MAAA,GAChC,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAW,uBAAA;AACnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,iBAAiB,IAAI;AAAA,IAAA;AAG1B,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,KAAK,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QACzC,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,iBAAiB,cAAc;AAExB,MAAM,eAAe;"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
3
4
  ;/* empty css */
4
5
  const createRuntimeFn62c9670f_esm = require("../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs");
5
6
  var styledInputRecipe = createRuntimeFn62c9670f_esm.c({ defaultClassName: "_1st6suv1 _1st6suv0", variantClassNames: { size: { small: "_1st6suv2", medium: "_1st6suv3", large: "_1st6suv4" }, variant: { ghost: "_1st6suv5" }, state: { invalid: "_1st6suv6" }, cursor: { "default": "_1st6suv7", text: "_1st6suv8" }, startAdornment: { true: "_1st6suv9" }, endAdornment: { true: "_1st6suva" } }, defaultVariants: { size: "medium", cursor: "default" }, compoundVariants: [[{ variant: "ghost", state: "invalid" }, "_1st6suvb"], [{ startAdornment: true, size: "small" }, "_1st6suvc"], [{ startAdornment: true, size: "medium" }, "_1st6suvd"], [{ startAdornment: true, size: "large" }, "_1st6suve"], [{ endAdornment: true, size: "small" }, "_1st6suvf"], [{ endAdornment: true, size: "medium" }, "_1st6suvg"], [{ endAdornment: true, size: "large" }, "_1st6suvh"], [{ endAdornment: true, size: "small", state: "invalid" }, "_1st6suvi"], [{ endAdornment: true, size: "medium", state: "invalid" }, "_1st6suvj"], [{ endAdornment: true, size: "large", state: "invalid" }, "_1st6suvk"]] });
@@ -1 +1 @@
1
- {"version":3,"file":"Input.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"Input.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  import { c as createRuntimeFn } from "../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
3
4
  var styledInputRecipe = createRuntimeFn({ defaultClassName: "_1st6suv1 _1st6suv0", variantClassNames: { size: { small: "_1st6suv2", medium: "_1st6suv3", large: "_1st6suv4" }, variant: { ghost: "_1st6suv5" }, state: { invalid: "_1st6suv6" }, cursor: { "default": "_1st6suv7", text: "_1st6suv8" }, startAdornment: { true: "_1st6suv9" }, endAdornment: { true: "_1st6suva" } }, defaultVariants: { size: "medium", cursor: "default" }, compoundVariants: [[{ variant: "ghost", state: "invalid" }, "_1st6suvb"], [{ startAdornment: true, size: "small" }, "_1st6suvc"], [{ startAdornment: true, size: "medium" }, "_1st6suvd"], [{ startAdornment: true, size: "large" }, "_1st6suve"], [{ endAdornment: true, size: "small" }, "_1st6suvf"], [{ endAdornment: true, size: "medium" }, "_1st6suvg"], [{ endAdornment: true, size: "large" }, "_1st6suvh"], [{ endAdornment: true, size: "small", state: "invalid" }, "_1st6suvi"], [{ endAdornment: true, size: "medium", state: "invalid" }, "_1st6suvj"], [{ endAdornment: true, size: "large", state: "invalid" }, "_1st6suvk"]] });
@@ -1 +1 @@
1
- {"version":3,"file":"Input.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"Input.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,31 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const LabelPrimitive = require("@radix-ui/react-label");
5
4
  const dynamic = require("@vanilla-extract/dynamic");
6
5
  const React = require("react");
7
6
  const cssProps = require("../../styles/cssProps.cjs");
8
7
  const themeContext = require("../../styles/themeContext.cjs");
9
8
  const Label_vanilla_css = require("./Label.vanilla.css.cjs");
10
- function _interopNamespaceDefault(e) {
11
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
12
- if (e) {
13
- for (const k in e) {
14
- if (k !== "default") {
15
- const d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: () => e[k]
19
- });
20
- }
21
- }
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
- const LabelPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(LabelPrimitive);
27
- const LabelVanilla = React.forwardRef(
28
- ({ className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
9
+ const LabelVanillaComponentImpl = React.forwardRef(
10
+ ({
11
+ as,
12
+ className,
13
+ css,
14
+ style,
15
+ size,
16
+ weight,
17
+ variant,
18
+ gradient,
19
+ transform,
20
+ noWrap,
21
+ ...props
22
+ }, ref) => {
23
+ const Component = as || "label";
29
24
  const { colors } = themeContext.useVanillaExtractTheme();
30
25
  const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
31
26
  const mergedStyles = {
@@ -35,7 +30,7 @@ const LabelVanilla = React.forwardRef(
35
30
  };
36
31
  const recipeClass = Label_vanilla_css.labelRecipe({ size, weight, variant, gradient, transform, noWrap });
37
32
  return /* @__PURE__ */ jsxRuntime.jsx(
38
- LabelPrimitive__namespace.Root,
33
+ Component,
39
34
  {
40
35
  ref,
41
36
  className: `${recipeClass} ${className || ""}`.trim(),
@@ -45,6 +40,7 @@ const LabelVanilla = React.forwardRef(
45
40
  );
46
41
  }
47
42
  );
48
- LabelVanilla.displayName = "LabelVanilla";
43
+ LabelVanillaComponentImpl.displayName = "LabelVanilla";
44
+ const LabelVanilla = LabelVanillaComponentImpl;
49
45
  exports.LabelVanilla = LabelVanilla;
50
46
  //# sourceMappingURL=Label.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.cjs","sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps = LabelPrimitive.LabelProps & LabelOwnProps;\n\nexport const LabelVanilla = forwardRef<HTMLLabelElement, LabelVanillaProps>(\n (\n { className, css, style, size, weight, variant, gradient, transform, noWrap, ...props },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <LabelPrimitive.Root\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanilla.displayName = 'LabelVanilla';\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","labelRecipe","jsx","LabelPrimitive"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAeO,MAAM,eAAeA,MAAAA;AAAAA,EAC1B,CACE,EAAE,WAAW,KAAK,OAAO,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ,GAAG,MAAA,GAChF,QACG;AACH,UAAM,EAAE,OAAA,IAAWC,oCAAA;AAEnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAGC,QAAAA,iBAAiB,IAAI;AAAA,IAAA;AAG1B,UAAM,cAAcC,8BAAY,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ;AAEtF,WACEC,2BAAAA;AAAAA,MAACC,0BAAe;AAAA,MAAf;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,aAAa,cAAc;;"}
1
+ {"version":3,"file":"Label.vanilla.cjs","sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","labelRecipe","jsx"],"mappings":";;;;;;;;AAwBA,MAAM,4BAA4BA,MAAAA;AAAAA,EAChC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAWC,oCAAA;AAEnB,UAAM,EAAE,OAAO,WAAW,SAASC,SAAAA,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAGC,QAAAA,iBAAiB,IAAI;AAAA,IAAA;AAG1B,UAAM,cAAcC,8BAAY,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ;AAEtF,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,0BAA0B,cAAc;AAEjC,MAAM,eAAe;;"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
3
4
  ;/* empty css */
4
5
  const createRuntimeFn62c9670f_esm = require("../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs");
5
6
  var labelRecipe = createRuntimeFn62c9670f_esm.c({ defaultClassName: "_14umx1r1 _14umx1r0", variantClassNames: { size: { "0": "_14umx1r2", "1": "_14umx1r3", "2": "_14umx1r4", "3": "_14umx1r5", "4": "_14umx1r6", "5": "_14umx1r7", "6": "_14umx1r8", "7": "_14umx1r9", "8": "_14umx1ra", "9": "_14umx1rb", "10": "_14umx1rc", "11": "_14umx1rd", "12": "_14umx1re", inherit: "_14umx1rf" }, weight: { light: "_14umx1rg", regular: "_14umx1rh", medium: "_14umx1ri", semiBold: "_14umx1rj", bold: "_14umx1rk" }, variant: { red: "_14umx1rl", subtle: "_14umx1rm", "default": "_14umx1rn", contrast: "_14umx1ro", inherit: "_14umx1rp", invalid: "_14umx1rq" }, gradient: { true: "_14umx1rr" }, transform: { uppercase: "_14umx1rs", capitalize: "_14umx1rt", capitalizeWords: "_14umx1ru" }, noWrap: { true: "_14umx1rv" } }, defaultVariants: { size: "0", variant: "subtle", transform: "capitalize" }, compoundVariants: [] });
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"Label.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  import { c as createRuntimeFn } from "../../node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
3
4
  var labelRecipe = createRuntimeFn({ defaultClassName: "_14umx1r1 _14umx1r0", variantClassNames: { size: { "0": "_14umx1r2", "1": "_14umx1r3", "2": "_14umx1r4", "3": "_14umx1r5", "4": "_14umx1r6", "5": "_14umx1r7", "6": "_14umx1r8", "7": "_14umx1r9", "8": "_14umx1ra", "9": "_14umx1rb", "10": "_14umx1rc", "11": "_14umx1rd", "12": "_14umx1re", inherit: "_14umx1rf" }, weight: { light: "_14umx1rg", regular: "_14umx1rh", medium: "_14umx1ri", semiBold: "_14umx1rj", bold: "_14umx1rk" }, variant: { red: "_14umx1rl", subtle: "_14umx1rm", "default": "_14umx1rn", contrast: "_14umx1ro", inherit: "_14umx1rp", invalid: "_14umx1rq" }, gradient: { true: "_14umx1rr" }, transform: { uppercase: "_14umx1rs", capitalize: "_14umx1rt", capitalizeWords: "_14umx1ru" }, noWrap: { true: "_14umx1rv" } }, defaultVariants: { size: "0", variant: "subtle", transform: "capitalize" }, compoundVariants: [] });
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"Label.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,12 +1,24 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import * as LabelPrimitive from "@radix-ui/react-label";
3
2
  import { assignInlineVars } from "@vanilla-extract/dynamic";
4
3
  import { forwardRef } from "react";
5
4
  import { processCSSProp } from "../../styles/cssProps.js";
6
5
  import { useVanillaExtractTheme } from "../../styles/themeContext.js";
7
6
  import { labelRecipe } from "./Label.vanilla.css.js";
8
- const LabelVanilla = forwardRef(
9
- ({ className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
7
+ const LabelVanillaComponentImpl = forwardRef(
8
+ ({
9
+ as,
10
+ className,
11
+ css,
12
+ style,
13
+ size,
14
+ weight,
15
+ variant,
16
+ gradient,
17
+ transform,
18
+ noWrap,
19
+ ...props
20
+ }, ref) => {
21
+ const Component = as || "label";
10
22
  const { colors } = useVanillaExtractTheme();
11
23
  const { style: cssStyles, vars } = processCSSProp(css, colors);
12
24
  const mergedStyles = {
@@ -16,7 +28,7 @@ const LabelVanilla = forwardRef(
16
28
  };
17
29
  const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });
18
30
  return /* @__PURE__ */ jsx(
19
- LabelPrimitive.Root,
31
+ Component,
20
32
  {
21
33
  ref,
22
34
  className: `${recipeClass} ${className || ""}`.trim(),
@@ -26,7 +38,8 @@ const LabelVanilla = forwardRef(
26
38
  );
27
39
  }
28
40
  );
29
- LabelVanilla.displayName = "LabelVanilla";
41
+ LabelVanillaComponentImpl.displayName = "LabelVanilla";
42
+ const LabelVanilla = LabelVanillaComponentImpl;
30
43
  export {
31
44
  LabelVanilla
32
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.js","sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import * as LabelPrimitive from '@radix-ui/react-label';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps = LabelPrimitive.LabelProps & LabelOwnProps;\n\nexport const LabelVanilla = forwardRef<HTMLLabelElement, LabelVanillaProps>(\n (\n { className, css, style, size, weight, variant, gradient, transform, noWrap, ...props },\n ref,\n ) => {\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <LabelPrimitive.Root\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanilla.displayName = 'LabelVanilla';\n"],"names":[],"mappings":";;;;;;;AAeO,MAAM,eAAe;AAAA,EAC1B,CACE,EAAE,WAAW,KAAK,OAAO,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ,GAAG,MAAA,GAChF,QACG;AACH,UAAM,EAAE,OAAA,IAAW,uBAAA;AAEnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,iBAAiB,IAAI;AAAA,IAAA;AAG1B,UAAM,cAAc,YAAY,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ;AAEtF,WACE;AAAA,MAAC,eAAe;AAAA,MAAf;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,aAAa,cAAc;"}
1
+ {"version":3,"file":"Label.vanilla.js","sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"names":[],"mappings":";;;;;;AAwBA,MAAM,4BAA4B;AAAA,EAChC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,YAAY,MAAM;AACxB,UAAM,EAAE,OAAA,IAAW,uBAAA;AAEnB,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAE7D,UAAM,eAAe;AAAA,MACnB,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG,iBAAiB,IAAI;AAAA,IAAA;AAG1B,UAAM,cAAc,YAAY,EAAE,MAAM,QAAQ,SAAS,UAAU,WAAW,QAAQ;AAEtF,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,WAAW,IAAI,aAAa,EAAE,GAAG,KAAA;AAAA,QAC/C,OAAO;AAAA,QACN,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,0BAA0B,cAAc;AAEjC,MAAM,eAAe;"}
@@ -6,13 +6,14 @@ const React = require("react");
6
6
  const cssProps = require("../../styles/cssProps.cjs");
7
7
  const themeContext = require("../../styles/themeContext.cjs");
8
8
  const Panel_vanilla_css = require("./Panel.vanilla.css.cjs");
9
- const PanelVanilla = React.forwardRef(
10
- ({ className, css, style, ...props }, ref) => {
9
+ const PanelVanillaComponentImpl = React.forwardRef(
10
+ ({ as, className, css, style, ...props }, ref) => {
11
+ const Component = as || "div";
11
12
  const { colors } = themeContext.useVanillaExtractTheme();
12
13
  const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
13
14
  const mergedStyles = { ...cssStyles, ...style, ...dynamic.assignInlineVars(vars) };
14
15
  return /* @__PURE__ */ jsxRuntime.jsx(
15
- "div",
16
+ Component,
16
17
  {
17
18
  ref,
18
19
  className: `${Panel_vanilla_css.panelStyle} ${className || ""}`.trim(),
@@ -22,6 +23,7 @@ const PanelVanilla = React.forwardRef(
22
23
  );
23
24
  }
24
25
  );
25
- PanelVanilla.displayName = "PanelVanilla";
26
+ PanelVanillaComponentImpl.displayName = "PanelVanilla";
27
+ const PanelVanilla = PanelVanillaComponentImpl;
26
28
  exports.PanelVanilla = PanelVanilla;
27
29
  //# sourceMappingURL=Panel.vanilla.cjs.map