@danielcruzcode/ui-core 0.1.1 → 0.1.2

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 (54) hide show
  1. package/dist/index.cjs11.js +1 -1
  2. package/dist/index.cjs13.js +1 -1
  3. package/dist/index.cjs14.js +1 -1
  4. package/dist/index.cjs15.js +1 -1
  5. package/dist/index.cjs16.js +1 -1
  6. package/dist/index.cjs17.js +1 -1
  7. package/dist/index.cjs18.js +1 -1
  8. package/dist/index.cjs2.js +1 -1
  9. package/dist/index.cjs22.js +1 -1
  10. package/dist/index.cjs25.js +1 -1
  11. package/dist/index.cjs26.js +1 -1
  12. package/dist/index.cjs28.js +1 -1
  13. package/dist/index.cjs3.js +1 -1
  14. package/dist/index.cjs30.js +1 -1
  15. package/dist/index.cjs31.js +1 -0
  16. package/dist/index.cjs34.js +1 -1
  17. package/dist/index.cjs39.js +1 -0
  18. package/dist/index.cjs4.js +1 -1
  19. package/dist/index.cjs40.js +1 -1
  20. package/dist/index.cjs41.js +1 -1
  21. package/dist/index.cjs6.js +1 -1
  22. package/dist/index.cjs7.js +1 -1
  23. package/dist/index.cjs8.js +1 -1
  24. package/dist/index.cjs9.js +1 -1
  25. package/dist/index.esm11.js +1 -1
  26. package/dist/index.esm13.js +1 -1
  27. package/dist/index.esm14.js +5 -3
  28. package/dist/index.esm15.js +3 -9
  29. package/dist/index.esm16.js +3 -22
  30. package/dist/index.esm17.js +8 -8
  31. package/dist/index.esm18.js +8 -4
  32. package/dist/index.esm2.js +1 -1
  33. package/dist/index.esm22.js +3 -3
  34. package/dist/index.esm25.js +7 -3
  35. package/dist/index.esm26.js +22 -11
  36. package/dist/index.esm28.js +3 -7
  37. package/dist/index.esm3.js +1 -1
  38. package/dist/index.esm30.js +11 -3
  39. package/dist/index.esm31.js +1 -0
  40. package/dist/index.esm34.js +88 -1
  41. package/dist/index.esm39.js +2028 -0
  42. package/dist/index.esm4.js +1 -1
  43. package/dist/index.esm40.js +53 -2021
  44. package/dist/index.esm41.js +186 -55
  45. package/dist/index.esm6.js +1 -1
  46. package/dist/index.esm7.js +1 -1
  47. package/dist/index.esm8.js +1 -1
  48. package/dist/index.esm9.js +1 -1
  49. package/package.json +9 -5
  50. package/styles.css +1 -0
  51. package/dist/index.cjs33.js +0 -1
  52. package/dist/index.cjs42.js +0 -1
  53. package/dist/index.esm33.js +0 -88
  54. package/dist/index.esm42.js +0 -191
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index.cjs16.js"),b=require("./index.cjs2.js"),q=require("./index.cjs4.js"),z=require("./index.cjs3.js");function W({rating:a}){return s.jsx("span",{className:e.starsWrapper,"aria-label":`${a} de 5 estrellas`,role:"img",children:Array.from({length:5}).map((n,l)=>s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:l<Math.round(a)?"#F9AB00":"none",stroke:"#F9AB00",strokeWidth:"1","aria-hidden":"true",children:s.jsx("path",{d:"M6 1l1.39 2.82L10.5 4.27l-2.25 2.19.53 3.09L6 8l-2.78 1.55.53-3.09L1.5 4.27l3.11-.45L6 1z"})},l))})}function A(){return s.jsxs("article",{"aria-label":"Cargando producto","aria-busy":"true",children:[s.jsx("div",{className:e.skeletonImage}),s.jsxs("div",{style:{padding:"8px",display:"flex",flexDirection:"column",gap:"8px"},children:[s.jsx("div",{className:e.skeletonLine,style:{width:"100%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"70%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"50%"}}),s.jsx("div",{className:e.skeletonBtn})]})]})}function M({id:a,title:n,subtitle:l,images:f,price:h,originalPrice:t,discountPercent:x,badge:u,rating:j,reviewCount:p,installments:i,unavailable:m=!1,loading:B=!1,onAddToCart:v,onWishlist:g,onQuickView:N,onClick:d,formatPrice:r,className:k}){if(B)return s.jsx(A,{});const C=r?r(h):String(h),y=t?r?r(t):String(t):void 0,o=f[0],w=s.jsxs("div",{className:e.imageWrapper,children:[o&&s.jsx("img",{width:100,height:100,src:o.src,alt:o.alt,className:e.image,loading:"lazy"}),s.jsxs("div",{className:e.badgeOverlay,children:[x!==void 0&&s.jsxs(b.Badge,{variant:"danger",size:"sm",children:["-",x,"%"]}),u&&s.jsx(b.Badge,{variant:"brand",size:"sm",children:u})]}),g&&s.jsx("button",{type:"button",className:e.wishlistBtn,onClick:c=>{c.stopPropagation(),g(a)},"aria-label":`Agregar ${n} a favoritos`,children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:s.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),m&&s.jsx("div",{className:e.unavailableOverlay,children:s.jsx("span",{className:e.unavailableText,children:"Sin stock"})})]}),L=s.jsxs("div",{className:e.body,children:[s.jsx("p",{className:e.title,children:n}),l&&s.jsx("p",{className:e.subtitle,children:l}),j!==void 0&&s.jsxs("div",{className:e.starsWrapper,children:[s.jsx(W,{rating:j}),p!==void 0&&s.jsxs("span",{className:e.reviewCount,children:["(",p,")"]})]}),s.jsxs("div",{className:e.priceWrapper,children:[s.jsx("span",{className:e.price,children:C}),y&&s.jsx("span",{className:e.originalPrice,children:y})]}),i&&s.jsxs("span",{className:e.installments,children:[i.count,"x"," ",r?r(i.value):i.value]})]}),S=s.jsxs("div",{className:e.footer,children:[v&&s.jsx(z.Button,{variant:"primary",size:"sm",fullWidth:!0,disabled:m,onClick:()=>v(a),children:"Agregar"}),N&&s.jsx("button",{type:"button",className:e.quickViewBtn,onClick:c=>{c.stopPropagation(),N(a)},children:"Vista rápida"})]});return s.jsx("div",{className:[e.root,k].filter(Boolean).join(" "),children:s.jsx(q.Card,{media:w,body:L,footer:S,hoverable:!!d,onClick:d?()=>d(a):void 0})})}exports.ProductCard=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index.cjs26.js"),b=require("./index.cjs2.js"),q=require("./index.cjs4.js"),z=require("./index.cjs3.js");function W({rating:a}){return s.jsx("span",{className:e.starsWrapper,"aria-label":`${a} de 5 estrellas`,role:"img",children:Array.from({length:5}).map((n,l)=>s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:l<Math.round(a)?"#F9AB00":"none",stroke:"#F9AB00",strokeWidth:"1","aria-hidden":"true",children:s.jsx("path",{d:"M6 1l1.39 2.82L10.5 4.27l-2.25 2.19.53 3.09L6 8l-2.78 1.55.53-3.09L1.5 4.27l3.11-.45L6 1z"})},l))})}function A(){return s.jsxs("article",{"aria-label":"Cargando producto","aria-busy":"true",children:[s.jsx("div",{className:e.skeletonImage}),s.jsxs("div",{style:{padding:"8px",display:"flex",flexDirection:"column",gap:"8px"},children:[s.jsx("div",{className:e.skeletonLine,style:{width:"100%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"70%"}}),s.jsx("div",{className:e.skeletonLine,style:{width:"50%"}}),s.jsx("div",{className:e.skeletonBtn})]})]})}function M({id:a,title:n,subtitle:l,images:f,price:h,originalPrice:t,discountPercent:x,badge:u,rating:j,reviewCount:p,installments:i,unavailable:m=!1,loading:B=!1,onAddToCart:v,onWishlist:g,onQuickView:N,onClick:d,formatPrice:r,className:k}){if(B)return s.jsx(A,{});const C=r?r(h):String(h),y=t?r?r(t):String(t):void 0,o=f[0],w=s.jsxs("div",{className:e.imageWrapper,children:[o&&s.jsx("img",{width:100,height:100,src:o.src,alt:o.alt,className:e.image,loading:"lazy"}),s.jsxs("div",{className:e.badgeOverlay,children:[x!==void 0&&s.jsxs(b.Badge,{variant:"danger",size:"sm",children:["-",x,"%"]}),u&&s.jsx(b.Badge,{variant:"brand",size:"sm",children:u})]}),g&&s.jsx("button",{type:"button",className:e.wishlistBtn,onClick:c=>{c.stopPropagation(),g(a)},"aria-label":`Agregar ${n} a favoritos`,children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:s.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),m&&s.jsx("div",{className:e.unavailableOverlay,children:s.jsx("span",{className:e.unavailableText,children:"Sin stock"})})]}),L=s.jsxs("div",{className:e.body,children:[s.jsx("p",{className:e.title,children:n}),l&&s.jsx("p",{className:e.subtitle,children:l}),j!==void 0&&s.jsxs("div",{className:e.starsWrapper,children:[s.jsx(W,{rating:j}),p!==void 0&&s.jsxs("span",{className:e.reviewCount,children:["(",p,")"]})]}),s.jsxs("div",{className:e.priceWrapper,children:[s.jsx("span",{className:e.price,children:C}),y&&s.jsx("span",{className:e.originalPrice,children:y})]}),i&&s.jsxs("span",{className:e.installments,children:[i.count,"x"," ",r?r(i.value):i.value]})]}),S=s.jsxs("div",{className:e.footer,children:[v&&s.jsx(z.Button,{variant:"primary",size:"sm",fullWidth:!0,disabled:m,onClick:()=>v(a),children:"Agregar"}),N&&s.jsx("button",{type:"button",className:e.quickViewBtn,onClick:c=>{c.stopPropagation(),N(a)},children:"Vista rápida"})]});return s.jsx("div",{className:[e.root,k].filter(Boolean).join(" "),children:s.jsx(q.Card,{media:w,body:L,footer:S,hoverable:!!d,onClick:d?()=>d(a):void 0})})}exports.ProductCard=M;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { useId as b } from "react";
3
- import { wrapper as f, label as N, selectWrapper as x, chevron as j, errorText as k, select as w, selectError as I } from "./index.esm15.js";
3
+ import { wrapper as f, label as N, selectWrapper as x, chevron as j, errorText as k, select as w, selectError as I } from "./index.esm17.js";
4
4
  function g({
5
5
  options: n,
6
6
  value: o,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { removeButton as o, tagRecipe as a } from "./index.esm18.js";
2
+ import { removeButton as o, tagRecipe as a } from "./index.esm14.js";
3
3
  function c({ label: r, onRemove: e, variant: i = "default" }) {
4
4
  return /* @__PURE__ */ n("span", { className: a({ variant: i }), children: [
5
5
  r,
@@ -1,7 +1,9 @@
1
+ import "./index.esm31.js";
1
2
  /* empty css */
2
3
  /* empty css */
3
- import { c as r } from "./index.esm33.js";
4
- var t = r({ defaultClassName: "_12rozn90", variantClassNames: { variant: { primary: "_12rozn91", secondary: "_12rozn92", ghost: "_12rozn93", danger: "_12rozn94" }, size: { sm: "_12rozn95", md: "_12rozn96", lg: "_12rozn97" }, fullWidth: { true: "_12rozn98" } }, defaultVariants: { variant: "primary", size: "md" }, compoundVariants: [] });
4
+ import { c as a } from "./index.esm34.js";
5
+ var i = a({ defaultClassName: "_13mmpdy0", variantClassNames: { variant: { default: "_13mmpdy1", brand: "_13mmpdy2" } }, defaultVariants: { variant: "default" }, compoundVariants: [] }), p = "_13mmpdy3";
5
6
  export {
6
- t as buttonRecipe
7
+ p as removeButton,
8
+ i as tagRecipe
7
9
  };
@@ -1,13 +1,7 @@
1
- import "./index.esm34.js";
2
1
  /* empty css */
3
2
  /* empty css */
4
- var c = "_7acib40", i = "_7acib41", b = "_7acib42", p = "_7acib43", t = "_7acib44", v = "_7acib45", o = "_7acib46";
3
+ import { c as r } from "./index.esm34.js";
4
+ var t = r({ defaultClassName: "_12rozn90", variantClassNames: { variant: { primary: "_12rozn91", secondary: "_12rozn92", ghost: "_12rozn93", danger: "_12rozn94" }, size: { sm: "_12rozn95", md: "_12rozn96", lg: "_12rozn97" }, fullWidth: { true: "_12rozn98" } }, defaultVariants: { variant: "primary", size: "md" }, compoundVariants: [] });
5
5
  export {
6
- v as chevron,
7
- o as errorText,
8
- i as label,
9
- p as select,
10
- t as selectError,
11
- b as selectWrapper,
12
- c as wrapper
6
+ t as buttonRecipe
13
7
  };
@@ -1,26 +1,7 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- var r = "w40enx1", n = "w40enx2", w = "w40enx3", v = "w40enx4", x = "w40enx5", i = "w40enx6", t = "w40enx7", l = "w40enx8", o = "w40enx9", p = "w40enxa", s = "w40enxb", m = "w40enxc", b = "w40enxd", g = "w40enxe", c = "w40enxf", k = "w40enxg", u = "w40enxh", d = "w40enxi", j = "w40enxk w40enxj", y = "w40enxl w40enxj", B = "w40enxm w40enxj";
3
+ import { c as a } from "./index.esm34.js";
4
+ var t = a({ defaultClassName: "rxfwcs0", variantClassNames: { variant: { brand: "rxfwcs1", success: "rxfwcs2", warning: "rxfwcs3", danger: "rxfwcs4", neutral: "rxfwcs5" }, size: { sm: "rxfwcs6", md: "rxfwcs7" } }, defaultVariants: { variant: "neutral", size: "md" }, compoundVariants: [] });
4
5
  export {
5
- v as badgeOverlay,
6
- i as body,
7
- c as footer,
8
- w as image,
9
- n as imageWrapper,
10
- g as installments,
11
- b as originalPrice,
12
- m as price,
13
- s as priceWrapper,
14
- k as quickViewBtn,
15
- p as reviewCount,
16
- r as root,
17
- B as skeletonBtn,
18
- j as skeletonImage,
19
- y as skeletonLine,
20
- o as starsWrapper,
21
- l as subtitle,
22
- t as title,
23
- u as unavailableOverlay,
24
- d as unavailableText,
25
- x as wishlistBtn
6
+ t as badgeRecipe
26
7
  };
@@ -1,12 +1,12 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- var e = "_104k35i0", i = "_104k35i1", k = "_104k35i2", p = "_104k35i3", t = "_104k35i4", v = "_104k35i5", _ = "_104k35i7";
3
+ var e = "_7acib40", c = "_7acib41", i = "_7acib42", b = "_7acib43", v = "_7acib44", p = "_7acib45", t = "_7acib46";
4
4
  export {
5
- p as box,
6
- t as boxChecked,
7
- v as boxIndeterminate,
8
- k as hiddenInput,
9
- _ as labelText,
10
- e as wrapper,
11
- i as wrapperDisabled
5
+ p as chevron,
6
+ t as errorText,
7
+ c as label,
8
+ b as select,
9
+ v as selectError,
10
+ i as selectWrapper,
11
+ e as wrapper
12
12
  };
@@ -1,8 +1,12 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { c as a } from "./index.esm33.js";
4
- var e = a({ defaultClassName: "_13mmpdy0", variantClassNames: { variant: { default: "_13mmpdy1", brand: "_13mmpdy2" } }, defaultVariants: { variant: "default" }, compoundVariants: [] }), d = "_13mmpdy3";
3
+ var e = "_104k35i0", i = "_104k35i1", k = "_104k35i2", p = "_104k35i3", t = "_104k35i4", v = "_104k35i5", _ = "_104k35i7";
5
4
  export {
6
- d as removeButton,
7
- e as tagRecipe
5
+ p as box,
6
+ t as boxChecked,
7
+ v as boxIndeterminate,
8
+ k as hiddenInput,
9
+ _ as labelText,
10
+ e as wrapper,
11
+ i as wrapperDisabled
8
12
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { badgeRecipe as o } from "./index.esm25.js";
2
+ import { badgeRecipe as o } from "./index.esm16.js";
3
3
  function p({ variant: e = "neutral", size: r = "md", children: a }) {
4
4
  return /* @__PURE__ */ m("span", { className: o({ variant: e, size: r }), children: a });
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import i, { forwardRef as F, useState as O, useRef as p, useEffect as B, useLayoutEffect as K, createContext as M } from "react";
2
- import { S as Q } from "./index.esm40.js";
3
- import { g as X, m as Y, a as Z, u as ee } from "./index.esm41.js";
4
- import { d as q, w as re, n as te, b as ne, a as se, e as T, u as ae } from "./index.esm42.js";
2
+ import { S as Q } from "./index.esm39.js";
3
+ import { g as X, m as Y, a as Z, u as ee } from "./index.esm40.js";
4
+ import { d as q, w as re, n as te, b as ne, a as se, e as T, u as ae } from "./index.esm41.js";
5
5
  function L() {
6
6
  return L = Object.assign ? Object.assign.bind() : function(s) {
7
7
  for (var t = 1; t < arguments.length; t++) {
@@ -1,7 +1,11 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { c as a } from "./index.esm33.js";
4
- var t = a({ defaultClassName: "rxfwcs0", variantClassNames: { variant: { brand: "rxfwcs1", success: "rxfwcs2", warning: "rxfwcs3", danger: "rxfwcs4", neutral: "rxfwcs5" }, size: { sm: "rxfwcs6", md: "rxfwcs7" } }, defaultVariants: { variant: "neutral", size: "md" }, compoundVariants: [] });
3
+ import { c as a } from "./index.esm34.js";
4
+ var d = a({ defaultClassName: "uk9byt0", variantClassNames: { hoverable: { true: "uk9byt1" }, padding: { none: "uk9byt2", sm: "uk9byt3", md: "uk9byt4", lg: "uk9byt5" } }, defaultVariants: { padding: "none" }, compoundVariants: [] }), u = "uk9byt6", o = "uk9byt7", n = "uk9byt8", b = "uk9byt9";
5
5
  export {
6
- t as badgeRecipe
6
+ n as cardBody,
7
+ b as cardFooter,
8
+ o as cardHeader,
9
+ u as cardMedia,
10
+ d as cardRecipe
7
11
  };
@@ -1,15 +1,26 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- var v = "wt8vlo0", a = "wt8vlo1", o = "wt8vlo2", p = "wt8vlo3", l = "wt8vlo4", e = "wt8vlo5", w = "wt8vlo6", i = "wt8vlo7", n = "wt8vlo8", u = "wt8vlo9";
3
+ var r = "w40enx1", n = "w40enx2", w = "w40enx3", v = "w40enx4", x = "w40enx5", i = "w40enx6", t = "w40enx7", l = "w40enx8", o = "w40enx9", p = "w40enxa", s = "w40enxb", m = "w40enxc", b = "w40enxd", g = "w40enxe", c = "w40enxf", k = "w40enxg", u = "w40enxh", d = "w40enxi", j = "w40enxk w40enxj", y = "w40enxl w40enxj", B = "w40enxm w40enxj";
4
4
  export {
5
- u as errorText,
6
- n as hint,
7
- i as iconSlot,
8
- w as input,
9
- p as inputWrapper,
10
- e as inputWrapperDisabled,
11
- l as inputWrapperError,
12
- a as label,
13
- o as requiredMark,
14
- v as wrapper
5
+ v as badgeOverlay,
6
+ i as body,
7
+ c as footer,
8
+ w as image,
9
+ n as imageWrapper,
10
+ g as installments,
11
+ b as originalPrice,
12
+ m as price,
13
+ s as priceWrapper,
14
+ k as quickViewBtn,
15
+ p as reviewCount,
16
+ r as root,
17
+ B as skeletonBtn,
18
+ j as skeletonImage,
19
+ y as skeletonLine,
20
+ o as starsWrapper,
21
+ l as subtitle,
22
+ t as title,
23
+ u as unavailableOverlay,
24
+ d as unavailableText,
25
+ x as wishlistBtn
15
26
  };
@@ -1,11 +1,7 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { c as a } from "./index.esm33.js";
4
- var d = a({ defaultClassName: "uk9byt0", variantClassNames: { hoverable: { true: "uk9byt1" }, padding: { none: "uk9byt2", sm: "uk9byt3", md: "uk9byt4", lg: "uk9byt5" } }, defaultVariants: { padding: "none" }, compoundVariants: [] }), u = "uk9byt6", o = "uk9byt7", n = "uk9byt8", b = "uk9byt9";
3
+ import { c as a } from "./index.esm34.js";
4
+ var d = a({ defaultClassName: "_19yozed0", variantClassNames: { maxWidth: { sm: "_19yozed1", md: "_19yozed2", lg: "_19yozed3", xl: "_19yozed4", full: "_19yozed5" } }, defaultVariants: { maxWidth: "xl" }, compoundVariants: [] });
5
5
  export {
6
- n as cardBody,
7
- b as cardFooter,
8
- o as cardHeader,
9
- u as cardMedia,
10
- d as cardRecipe
6
+ d as containerRecipe
11
7
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as p, Fragment as f } from "react/jsx-runtime";
2
- import { buttonRecipe as m } from "./index.esm14.js";
2
+ import { buttonRecipe as m } from "./index.esm15.js";
3
3
  function v({
4
4
  variant: t = "primary",
5
5
  size: a = "md",
@@ -1,7 +1,15 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { c as a } from "./index.esm33.js";
4
- var d = a({ defaultClassName: "_19yozed0", variantClassNames: { maxWidth: { sm: "_19yozed1", md: "_19yozed2", lg: "_19yozed3", xl: "_19yozed4", full: "_19yozed5" } }, defaultVariants: { maxWidth: "xl" }, compoundVariants: [] });
3
+ var v = "wt8vlo0", a = "wt8vlo1", o = "wt8vlo2", p = "wt8vlo3", l = "wt8vlo4", e = "wt8vlo5", w = "wt8vlo6", i = "wt8vlo7", n = "wt8vlo8", u = "wt8vlo9";
5
4
  export {
6
- d as containerRecipe
5
+ u as errorText,
6
+ n as hint,
7
+ i as iconSlot,
8
+ w as input,
9
+ p as inputWrapper,
10
+ e as inputWrapperDisabled,
11
+ l as inputWrapperError,
12
+ a as label,
13
+ o as requiredMark,
14
+ v as wrapper
7
15
  };
@@ -0,0 +1 @@
1
+
@@ -1 +1,88 @@
1
-
1
+ function c(r, t) {
2
+ if (typeof r != "object" || !r) return r;
3
+ var a = r[Symbol.toPrimitive];
4
+ if (a !== void 0) {
5
+ var e = a.call(r, t);
6
+ if (typeof e != "object") return e;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return (t === "string" ? String : Number)(r);
10
+ }
11
+ function O(r) {
12
+ var t = c(r, "string");
13
+ return typeof t == "symbol" ? t : String(t);
14
+ }
15
+ function y(r, t, a) {
16
+ return t = O(t), t in r ? Object.defineProperty(r, t, {
17
+ value: a,
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0
21
+ }) : r[t] = a, r;
22
+ }
23
+ function l(r, t) {
24
+ var a = Object.keys(r);
25
+ if (Object.getOwnPropertySymbols) {
26
+ var e = Object.getOwnPropertySymbols(r);
27
+ t && (e = e.filter(function(n) {
28
+ return Object.getOwnPropertyDescriptor(r, n).enumerable;
29
+ })), a.push.apply(a, e);
30
+ }
31
+ return a;
32
+ }
33
+ function p(r) {
34
+ for (var t = 1; t < arguments.length; t++) {
35
+ var a = arguments[t] != null ? arguments[t] : {};
36
+ t % 2 ? l(Object(a), !0).forEach(function(e) {
37
+ y(r, e, a[e]);
38
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(a)) : l(Object(a)).forEach(function(e) {
39
+ Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(a, e));
40
+ });
41
+ }
42
+ return r;
43
+ }
44
+ function v(r, t) {
45
+ var a = {};
46
+ for (var e in r)
47
+ a[e] = t(r[e], e);
48
+ return a;
49
+ }
50
+ var d = (r, t, a) => {
51
+ for (var e of Object.keys(r)) {
52
+ var n;
53
+ if (r[e] !== ((n = t[e]) !== null && n !== void 0 ? n : a[e]))
54
+ return !1;
55
+ }
56
+ return !0;
57
+ }, j = (r) => {
58
+ var t = (a) => {
59
+ var e = r.defaultClassName, n = p(p({}, r.defaultVariants), a);
60
+ for (var i in n) {
61
+ var s, o = (s = n[i]) !== null && s !== void 0 ? s : r.defaultVariants[i];
62
+ if (o != null) {
63
+ var u = o;
64
+ typeof u == "boolean" && (u = u === !0 ? "true" : "false");
65
+ var f = (
66
+ // @ts-expect-error
67
+ r.variantClassNames[i][u]
68
+ );
69
+ f && (e += " " + f);
70
+ }
71
+ }
72
+ for (var [b, m] of r.compoundVariants)
73
+ d(b, n, r.defaultVariants) && (e += " " + m);
74
+ return e;
75
+ };
76
+ return t.variants = () => Object.keys(r.variantClassNames), t.classNames = {
77
+ get base() {
78
+ return r.defaultClassName.split(" ")[0];
79
+ },
80
+ get variants() {
81
+ return v(r.variantClassNames, (a) => v(a, (e) => e.split(" ")[0]));
82
+ }
83
+ }, t;
84
+ };
85
+ export {
86
+ j as c,
87
+ v as m
88
+ };