@danielcruzcode/ui-core 0.1.6 → 0.1.8

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 (117) hide show
  1. package/dist/JumboProvider/JumboProvider.d.ts +6 -0
  2. package/dist/JumboProvider/JumboProvider.d.ts.map +1 -0
  3. package/dist/JumboProvider/JumboProvider.js +37 -0
  4. package/dist/JumboProvider/JumboProvider.js.map +1 -0
  5. package/dist/JumboProvider/index.d.ts +3 -0
  6. package/dist/JumboProvider/index.d.ts.map +1 -0
  7. package/dist/JumboProvider/index.js +2 -0
  8. package/dist/JumboProvider/index.js.map +1 -0
  9. package/dist/commerce/ProductCard/ProductCard.d.ts +4 -5
  10. package/dist/commerce/ProductCard/ProductCard.d.ts.map +1 -1
  11. package/dist/commerce/ProductCard/ProductCard.js +42 -0
  12. package/dist/commerce/ProductCard/ProductCard.js.map +1 -0
  13. package/dist/commerce/ProductCard/ProductCard.styles.d.ts +106 -0
  14. package/dist/commerce/ProductCard/ProductCard.styles.d.ts.map +1 -0
  15. package/dist/commerce/ProductCard/ProductCard.styles.js +212 -0
  16. package/dist/commerce/ProductCard/ProductCard.styles.js.map +1 -0
  17. package/dist/commerce/ProductCard/index.js +2 -0
  18. package/dist/commerce/ProductCard/index.js.map +1 -0
  19. package/dist/commerce/ProductShelf/ProductShelf.d.ts +6 -3
  20. package/dist/commerce/ProductShelf/ProductShelf.d.ts.map +1 -1
  21. package/dist/commerce/ProductShelf/ProductShelf.js +20 -0
  22. package/dist/commerce/ProductShelf/ProductShelf.js.map +1 -0
  23. package/dist/commerce/ProductShelf/index.js +2 -0
  24. package/dist/commerce/ProductShelf/index.js.map +1 -0
  25. package/dist/components/Card/Card.d.ts +1 -1
  26. package/dist/components/Card/Card.d.ts.map +1 -1
  27. package/dist/components/Card/Card.js +33 -0
  28. package/dist/components/Card/Card.js.map +1 -0
  29. package/dist/components/Carousel/Carousel.d.ts +7 -3
  30. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  31. package/dist/components/Carousel/Carousel.js +24 -9
  32. package/dist/components/Carousel/Carousel.js.map +1 -1
  33. package/dist/components/Carousel/index.js +2 -0
  34. package/dist/components/Carousel/index.js.map +1 -0
  35. package/dist/index.cjs.js +1 -1
  36. package/dist/index.cjs10.js +1 -1
  37. package/dist/index.cjs11.js +1 -1
  38. package/dist/index.cjs12.js +1 -5
  39. package/dist/index.cjs13.js +1 -6
  40. package/dist/index.cjs14.js +1 -1
  41. package/dist/index.cjs15.js +1 -1
  42. package/dist/index.cjs16.js +1 -1
  43. package/dist/index.cjs17.js +26 -1
  44. package/dist/index.cjs18.js +1 -1
  45. package/dist/index.cjs19.js +1 -0
  46. package/dist/index.cjs2.js +1 -19
  47. package/dist/index.cjs20.js +1 -0
  48. package/dist/index.cjs21.js +1 -0
  49. package/dist/index.cjs22.js +1 -0
  50. package/dist/index.cjs23.js +1 -0
  51. package/dist/index.cjs24.js +1 -0
  52. package/dist/index.cjs25.js +1 -0
  53. package/dist/index.cjs26.js +1 -0
  54. package/dist/index.cjs27.js +1 -0
  55. package/dist/index.cjs28.js +1 -0
  56. package/dist/index.cjs29.js +1 -0
  57. package/dist/index.cjs3.js +1 -12
  58. package/dist/index.cjs4.js +1 -17
  59. package/dist/index.cjs5.js +1 -17
  60. package/dist/index.cjs6.js +1 -8
  61. package/dist/index.cjs7.js +1 -12
  62. package/dist/index.cjs8.js +1 -8
  63. package/dist/index.cjs9.js +1 -18
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.esm.js +18 -16
  67. package/dist/index.esm10.js +101 -61
  68. package/dist/index.esm11.js +57 -24
  69. package/dist/index.esm12.js +11 -11
  70. package/dist/index.esm13.js +27 -12
  71. package/dist/index.esm14.js +26 -45
  72. package/dist/index.esm15.js +75 -22
  73. package/dist/index.esm16.js +45 -33
  74. package/dist/index.esm17.js +167 -1202
  75. package/dist/index.esm18.js +22 -50
  76. package/dist/index.esm19.js +12 -0
  77. package/dist/index.esm2.js +47 -37
  78. package/dist/index.esm20.js +130 -0
  79. package/dist/index.esm21.js +7 -0
  80. package/dist/index.esm22.js +34 -0
  81. package/dist/index.esm23.js +10 -0
  82. package/dist/index.esm24.js +22 -0
  83. package/dist/index.esm25.js +53 -0
  84. package/dist/index.esm26.js +9 -0
  85. package/dist/index.esm27.js +52 -0
  86. package/dist/index.esm28.js +35 -0
  87. package/dist/index.esm29.js +1204 -0
  88. package/dist/index.esm3.js +31 -26
  89. package/dist/index.esm4.js +27 -27
  90. package/dist/index.esm5.js +84 -34
  91. package/dist/index.esm6.js +72 -23
  92. package/dist/index.esm7.js +62 -27
  93. package/dist/index.esm8.js +68 -34
  94. package/dist/index.esm9.js +114 -84
  95. package/dist/index.js +19 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/layout/Container/Container.js +14 -0
  98. package/dist/layout/Container/Container.js.map +1 -0
  99. package/dist/layout/Stack/Stack.js +13 -0
  100. package/dist/layout/Stack/Stack.js.map +1 -0
  101. package/dist/primitives/Badge/Badge.d.ts +3 -2
  102. package/dist/primitives/Badge/Badge.d.ts.map +1 -1
  103. package/dist/primitives/Badge/Badge.js +31 -0
  104. package/dist/primitives/Badge/Badge.js.map +1 -0
  105. package/dist/primitives/Badge/index.js +2 -0
  106. package/dist/primitives/Badge/index.js.map +1 -0
  107. package/dist/primitives/Button/Button.js +37 -0
  108. package/dist/primitives/Button/Button.js.map +1 -0
  109. package/dist/primitives/Checkbox/Checkbox.js +28 -0
  110. package/dist/primitives/Checkbox/Checkbox.js.map +1 -0
  111. package/dist/primitives/Input/Input.js +36 -0
  112. package/dist/primitives/Input/Input.js.map +1 -0
  113. package/dist/primitives/Select/Select.js +24 -0
  114. package/dist/primitives/Select/Select.js.map +1 -0
  115. package/dist/primitives/Tag/Tag.js +29 -0
  116. package/dist/primitives/Tag/Tag.js.map +1 -0
  117. package/package.json +2 -1
@@ -1,52 +1,24 @@
1
- const s = {
2
- color: {
3
- red: {
4
- 100: "#FDECEA",
5
- 500: "#E31837"
6
- },
7
- neutral: {
8
- 0: "#FFFFFF",
9
- 100: "#F5F5F5",
10
- 300: "#D1D1D1",
11
- 700: "#4A4A4A",
12
- 900: "#1A1A1A"
13
- },
14
- green: {
15
- 100: "#E8F5EA",
16
- 500: "#0A8920",
17
- 600: "#077319"
18
- },
19
- yellow: {
20
- 100: "#FEF7E0",
21
- 500: "#F9AB00"
22
- }
23
- },
24
- space: {
25
- 2: "8px",
26
- 4: "16px",
27
- 6: "24px",
28
- 8: "32px"
29
- },
30
- radius: {
31
- sm: "4px",
32
- md: "8px",
33
- full: "9999px"
34
- },
35
- font: {
36
- family: {
37
- body: "'DM Sans', sans-serif",
38
- display: "'Bebas Neue', sans-serif"
39
- }
40
- },
41
- shadow: {
42
- sm: "0 1px 2px 0 rgba(0,0,0,0.08)",
43
- md: "0 4px 8px 0 rgba(0,0,0,0.12)"
44
- },
45
- transition: {
46
- fast: "100ms ease",
47
- normal: "200ms ease"
48
- }
49
- };
1
+ import { useRef as l, useState as f, useCallback as p, useEffect as c } from "react";
2
+ import { areOptionsEqual as E, arePluginsEqual as O, canUseDOM as w } from "./index.esm28.js";
3
+ import m from "./index.esm29.js";
4
+ function b(e = {}, r = []) {
5
+ const t = l(e), n = l(r), [u, s] = f(), [a, d] = f(), o = p(() => {
6
+ u && u.reInit(t.current, n.current);
7
+ }, [u]);
8
+ return c(() => {
9
+ E(t.current, e) || (t.current = e, o());
10
+ }, [e, o]), c(() => {
11
+ O(n.current, r) || (n.current = r, o());
12
+ }, [r, o]), c(() => {
13
+ if (w() && a) {
14
+ m.globalOptions = b.globalOptions;
15
+ const i = m(a, t.current, n.current);
16
+ return s(i), () => i.destroy();
17
+ } else
18
+ s(void 0);
19
+ }, [a, s]), [d, u];
20
+ }
21
+ b.globalOptions = void 0;
50
22
  export {
51
- s as primitives
23
+ b as default
52
24
  };
@@ -0,0 +1,12 @@
1
+ function e() {
2
+ return e = Object.assign ? Object.assign.bind() : function(t) {
3
+ for (var n = 1; n < arguments.length; n++) {
4
+ var a = arguments[n];
5
+ for (var r in a) ({}).hasOwnProperty.call(a, r) && (t[r] = a[r]);
6
+ }
7
+ return t;
8
+ }, e.apply(null, arguments);
9
+ }
10
+ export {
11
+ e as default
12
+ };
@@ -1,41 +1,51 @@
1
- import { jsx as n, jsxs as u, Fragment as h } from "react/jsx-runtime";
2
- import f from "@emotion/styled";
3
- import { tokens as o } from "./index.esm14.js";
4
- const g = {
5
- primary: `background-color:${o.color.brand};color:#fff;border:none;&:hover:not(:disabled){background-color:${o.color.brandHover};}&:active:not(:disabled){background-color:${o.color.brandHover};box-shadow:${o.shadow.sm};}`,
6
- secondary: `background-color:transparent;color:${o.color.brand};border:1.5px solid ${o.color.brand};&:hover:not(:disabled){background-color:${o.color.brandSubtle};}`,
7
- ghost: `background-color:transparent;color:${o.color.text};border:none;&:hover:not(:disabled){background-color:${o.color.surface};}`,
8
- danger: `background-color:${o.color.danger};color:#fff;border:none;&:hover:not(:disabled){opacity:0.9;}`
9
- }, $ = {
10
- sm: `height:32px;padding-inline:${o.space.sm};font-size:13px;`,
11
- md: `height:40px;padding-inline:${o.space.md};font-size:15px;`,
12
- lg: `height:48px;padding-inline:${o.space.lg};font-size:17px;`
13
- }, m = f.button`
14
- display: inline-flex;
15
- align-items: center;
16
- justify-content: center;
17
- gap: ${o.space.sm};
18
- border-radius: ${o.radius.md};
19
- font-family: ${o.font.body};
20
- font-weight: 600;
21
- cursor: pointer;
22
- transition: background-color ${o.transition.fast}, opacity ${o.transition.fast}, box-shadow ${o.transition.fast};
23
- text-decoration: none;
24
- white-space: nowrap;
25
- position: relative;
26
- width: ${({ fullWidth: r }) => r ? "100%" : "auto"};
27
- &:disabled { cursor: not-allowed; opacity: 0.5; }
28
- &:focus-visible { outline: 2px solid ${o.color.borderFocus}; outline-offset: 2px; }
29
- ${({ variant: r }) => g[r]}
30
- ${({ size: r }) => $[r]}
31
- `;
32
- function k({ variant: r = "primary", size: a = "md", fullWidth: d = !1, loading: e = !1, disabled: l = !1, leftIcon: t, rightIcon: i, onClick: s, children: c, type: p = "button", className: b }) {
33
- return /* @__PURE__ */ n(m, { type: p, variant: r, size: a, fullWidth: d, disabled: l || e, onClick: s, "aria-busy": e, className: b, children: e ? /* @__PURE__ */ n("output", { "aria-label": "Cargando", style: { display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", style: { animation: "spin 0.75s linear infinite" }, "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83" }) }) }) : /* @__PURE__ */ u(h, { children: [
34
- t && /* @__PURE__ */ n("span", { "aria-hidden": "true", children: t }),
35
- c,
36
- i && /* @__PURE__ */ n("span", { "aria-hidden": "true", children: i })
1
+ import { jsx as l, jsxs as e, Fragment as m } from "react/jsx-runtime";
2
+ import s from "./index.esm15.js";
3
+ import { tokens as b } from "./index.esm16.js";
4
+ const u = {
5
+ primary: `background-color:${b.color.brand};color:#fff;border:none;&:hover:not(:disabled){background-color:${b.color.brandHover};}&:active:not(:disabled){background-color:${b.color.brandHover};box-shadow:${b.shadow.sm};}`,
6
+ secondary: `background-color:transparent;color:${b.color.brand};border:1.5px solid ${b.color.brand};&:hover:not(:disabled){background-color:${b.color.brandSubtle};}`,
7
+ ghost: `background-color:transparent;color:${b.color.text};border:none;&:hover:not(:disabled){background-color:${b.color.surface};}`,
8
+ danger: `background-color:${b.color.danger};color:#fff;border:none;&:hover:not(:disabled){opacity:0.9;}`
9
+ }, r = {
10
+ sm: `height:32px;padding-inline:${b.space.sm};font-size:13px;`,
11
+ md: `height:40px;padding-inline:${b.space.md};font-size:15px;`,
12
+ lg: `height:48px;padding-inline:${b.space.lg};font-size:17px;`
13
+ }, W = /* @__PURE__ */ s("button", process.env.NODE_ENV === "production" ? {
14
+ target: "e1vdvtha0"
15
+ } : {
16
+ target: "e1vdvtha0",
17
+ label: "StyledButton"
18
+ })("display:inline-flex;align-items:center;justify-content:center;gap:", b.space.sm, ";border-radius:", b.radius.md, ";font-family:", b.font.body, ";font-weight:600;cursor:pointer;transition:background-color ", b.transition.fast, ",opacity ", b.transition.fast, ",box-shadow ", b.transition.fast, ";text-decoration:none;white-space:nowrap;position:relative;width:", ({
19
+ fullWidth: c
20
+ }) => c ? "100%" : "auto", ";&:disabled{cursor:not-allowed;opacity:0.5;}&:focus-visible{outline:2px solid ", b.color.borderFocus, ";outline-offset:2px;}", ({
21
+ variant: c
22
+ }) => u[c], " ", ({
23
+ size: c
24
+ }) => r[c], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9tYWNib29rL0RvY3VtZW50cy9jZW5jb3N1ZC9qdW1iby9saWIvcGFja2FnZXMvdWktY29yZS9zcmMvcHJpbWl0aXZlcy9CdXR0b24vQnV0dG9uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUErQmdKIiwiZmlsZSI6Ii9Vc2Vycy9tYWNib29rL0RvY3VtZW50cy9jZW5jb3N1ZC9qdW1iby9saWIvcGFja2FnZXMvdWktY29yZS9zcmMvcHJpbWl0aXZlcy9CdXR0b24vQnV0dG9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnQGRhbmllbGNydXpjb2RlL2Rlc2lnbi10b2tlbnMnXG5pbXBvcnQgdHlwZSBSZWFjdCBmcm9tICdyZWFjdCdcblxuZXhwb3J0IGludGVyZmFjZSBCdXR0b25Qcm9wcyB7XG4gIHZhcmlh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29uICYmIDxzcGFuIGFyaWEtaGlkZGVuPVwidHJ1ZVwiPntyaWdodEljb259PC9zcGFuPn08Lz5cbiAgICAgICl9XG4gICAgPC9TdHlsZWRCdXR0b24+XG4gIClcbn1cbiJdfQ== */"));
25
+ function y({
26
+ variant: c = "primary",
27
+ size: t = "md",
28
+ fullWidth: a = !1,
29
+ loading: n = !1,
30
+ disabled: Z = !1,
31
+ leftIcon: d,
32
+ rightIcon: o,
33
+ onClick: i,
34
+ children: g,
35
+ type: I = "button",
36
+ className: G
37
+ }) {
38
+ return /* @__PURE__ */ l(W, { type: I, variant: c, size: t, fullWidth: a, disabled: Z || n, onClick: i, "aria-busy": n, className: G, children: n ? /* @__PURE__ */ l("output", { "aria-label": "Cargando", style: {
39
+ display: "inline-flex",
40
+ alignItems: "center"
41
+ }, children: /* @__PURE__ */ l("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", style: {
42
+ animation: "spin 0.75s linear infinite"
43
+ }, "aria-hidden": "true", children: /* @__PURE__ */ l("path", { d: "M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83" }) }) }) : /* @__PURE__ */ e(m, { children: [
44
+ d && /* @__PURE__ */ l("span", { "aria-hidden": "true", children: d }),
45
+ g,
46
+ o && /* @__PURE__ */ l("span", { "aria-hidden": "true", children: o })
37
47
  ] }) });
38
48
  }
39
49
  export {
40
- k as Button
50
+ y as Button
41
51
  };
@@ -0,0 +1,130 @@
1
+ import w from "./index.esm24.js";
2
+ import x from "./index.esm25.js";
3
+ import A from "./index.esm26.js";
4
+ var _ = /[A-Z]|^ms/g, C = /_EMO_([^_]+?)_([^]*?)_EMO_/g, p = function(n) {
5
+ return n.charCodeAt(1) === 45;
6
+ }, y = function(n) {
7
+ return n != null && typeof n != "boolean";
8
+ }, h = /* @__PURE__ */ A(function(r) {
9
+ return p(r) ? r : r.replace(_, "-$&").toLowerCase();
10
+ }), d = function(n, e) {
11
+ switch (n) {
12
+ case "animation":
13
+ case "animationName":
14
+ if (typeof e == "string")
15
+ return e.replace(C, function(u, a, t) {
16
+ return c = {
17
+ name: a,
18
+ styles: t,
19
+ next: c
20
+ }, a;
21
+ });
22
+ }
23
+ return x[n] !== 1 && !p(n) && typeof e == "number" && e !== 0 ? e + "px" : e;
24
+ };
25
+ function m(r, n, e) {
26
+ if (e == null)
27
+ return "";
28
+ var u = e;
29
+ if (u.__emotion_styles !== void 0)
30
+ return u;
31
+ switch (typeof e) {
32
+ case "boolean":
33
+ return "";
34
+ case "object": {
35
+ var a = e;
36
+ if (a.anim === 1)
37
+ return c = {
38
+ name: a.name,
39
+ styles: a.styles,
40
+ next: c
41
+ }, a.name;
42
+ var t = e;
43
+ if (t.styles !== void 0) {
44
+ var f = t.next;
45
+ if (f !== void 0)
46
+ for (; f !== void 0; )
47
+ c = {
48
+ name: f.name,
49
+ styles: f.styles,
50
+ next: c
51
+ }, f = f.next;
52
+ var s = t.styles + ";";
53
+ return s;
54
+ }
55
+ return V(r, n, e);
56
+ }
57
+ case "function": {
58
+ if (r !== void 0) {
59
+ var i = c, o = e(r);
60
+ return c = i, m(r, n, o);
61
+ }
62
+ break;
63
+ }
64
+ }
65
+ var l = e;
66
+ if (n == null)
67
+ return l;
68
+ var v = n[l];
69
+ return v !== void 0 ? v : l;
70
+ }
71
+ function V(r, n, e) {
72
+ var u = "";
73
+ if (Array.isArray(e))
74
+ for (var a = 0; a < e.length; a++)
75
+ u += m(r, n, e[a]) + ";";
76
+ else
77
+ for (var t in e) {
78
+ var f = e[t];
79
+ if (typeof f != "object") {
80
+ var s = f;
81
+ n != null && n[s] !== void 0 ? u += t + "{" + n[s] + "}" : y(s) && (u += h(t) + ":" + d(t, s) + ";");
82
+ } else if (Array.isArray(f) && typeof f[0] == "string" && (n == null || n[f[0]] === void 0))
83
+ for (var i = 0; i < f.length; i++)
84
+ y(f[i]) && (u += h(t) + ":" + d(t, f[i]) + ";");
85
+ else {
86
+ var o = m(r, n, f);
87
+ switch (t) {
88
+ case "animation":
89
+ case "animationName": {
90
+ u += h(t) + ":" + o + ";";
91
+ break;
92
+ }
93
+ default:
94
+ u += t + "{" + o + "}";
95
+ }
96
+ }
97
+ }
98
+ return u;
99
+ }
100
+ var b = /label:\s*([^\s;{]+)\s*(;|$)/g, c;
101
+ function I(r, n, e) {
102
+ if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
103
+ return r[0];
104
+ var u = !0, a = "";
105
+ c = void 0;
106
+ var t = r[0];
107
+ if (t == null || t.raw === void 0)
108
+ u = !1, a += m(e, n, t);
109
+ else {
110
+ var f = t;
111
+ a += f[0];
112
+ }
113
+ for (var s = 1; s < r.length; s++)
114
+ if (a += m(e, n, r[s]), u) {
115
+ var i = t;
116
+ a += i[s];
117
+ }
118
+ b.lastIndex = 0;
119
+ for (var o = "", l; (l = b.exec(a)) !== null; )
120
+ o += "-" + l[1];
121
+ var v = w(a) + o;
122
+ return {
123
+ name: v,
124
+ styles: a,
125
+ next: c
126
+ };
127
+ }
128
+ export {
129
+ I as serializeStyles
130
+ };
@@ -0,0 +1,7 @@
1
+ import * as e from "react";
2
+ var t = function(n) {
3
+ return n();
4
+ }, a = e.useInsertionEffect ? e.useInsertionEffect : !1, c = a || t;
5
+ export {
6
+ c as useInsertionEffectAlwaysWithSyncFallback
7
+ };
@@ -0,0 +1,34 @@
1
+ var i = !0;
2
+ function u(r, e, t) {
3
+ var s = "";
4
+ return t.split(" ").forEach(function(n) {
5
+ r[n] !== void 0 ? e.push(r[n] + ";") : n && (s += n + " ");
6
+ }), s;
7
+ }
8
+ var o = function(e, t, s) {
9
+ var n = e.key + "-" + t.name;
10
+ // we only need to add the styles to the registered cache if the
11
+ // class name could be used further down
12
+ // the tree but if it's a string tag, we know it won't
13
+ // so we don't have to add it to registered cache.
14
+ // this improves memory usage since we can avoid storing the whole style string
15
+ (s === !1 || // we need to always store it if we're in compat mode and
16
+ // in node since emotion-server relies on whether a style is in
17
+ // the registered cache to know whether a style is global or not
18
+ // also, note that this check will be dead code eliminated in the browser
19
+ i === !1) && e.registered[n] === void 0 && (e.registered[n] = t.styles);
20
+ }, y = function(e, t, s) {
21
+ o(e, t, s);
22
+ var n = e.key + "-" + t.name;
23
+ if (e.inserted[t.name] === void 0) {
24
+ var f = t;
25
+ do
26
+ e.insert(t === f ? "." + n : "", f, e.sheet, !0), f = f.next;
27
+ while (f !== void 0);
28
+ }
29
+ };
30
+ export {
31
+ u as getRegisteredStyles,
32
+ y as insertStyles,
33
+ o as registerStyles
34
+ };
@@ -0,0 +1,10 @@
1
+ import t from "./index.esm26.js";
2
+ var r = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, a = /* @__PURE__ */ t(
3
+ function(e) {
4
+ return r.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
5
+ }
6
+ /* Z+1 */
7
+ );
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,22 @@
1
+ function c(e) {
2
+ for (var f = 0, x, a = 0, d = e.length; d >= 4; ++a, d -= 4)
3
+ x = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, x = /* Math.imul(k, m): */
4
+ (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16), x ^= /* k >>> r: */
5
+ x >>> 24, f = /* Math.imul(k, m): */
6
+ (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
7
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16);
8
+ switch (d) {
9
+ case 3:
10
+ f ^= (e.charCodeAt(a + 2) & 255) << 16;
11
+ case 2:
12
+ f ^= (e.charCodeAt(a + 1) & 255) << 8;
13
+ case 1:
14
+ f ^= e.charCodeAt(a) & 255, f = /* Math.imul(h, m): */
15
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16);
16
+ }
17
+ return f ^= f >>> 13, f = /* Math.imul(h, m): */
18
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16), ((f ^ f >>> 15) >>> 0).toString(36);
19
+ }
20
+ export {
21
+ c as default
22
+ };
@@ -0,0 +1,53 @@
1
+ var o = {
2
+ animationIterationCount: 1,
3
+ aspectRatio: 1,
4
+ borderImageOutset: 1,
5
+ borderImageSlice: 1,
6
+ borderImageWidth: 1,
7
+ boxFlex: 1,
8
+ boxFlexGroup: 1,
9
+ boxOrdinalGroup: 1,
10
+ columnCount: 1,
11
+ columns: 1,
12
+ flex: 1,
13
+ flexGrow: 1,
14
+ flexPositive: 1,
15
+ flexShrink: 1,
16
+ flexNegative: 1,
17
+ flexOrder: 1,
18
+ gridRow: 1,
19
+ gridRowEnd: 1,
20
+ gridRowSpan: 1,
21
+ gridRowStart: 1,
22
+ gridColumn: 1,
23
+ gridColumnEnd: 1,
24
+ gridColumnSpan: 1,
25
+ gridColumnStart: 1,
26
+ msGridRow: 1,
27
+ msGridRowSpan: 1,
28
+ msGridColumn: 1,
29
+ msGridColumnSpan: 1,
30
+ fontWeight: 1,
31
+ lineHeight: 1,
32
+ opacity: 1,
33
+ order: 1,
34
+ orphans: 1,
35
+ scale: 1,
36
+ tabSize: 1,
37
+ widows: 1,
38
+ zIndex: 1,
39
+ zoom: 1,
40
+ WebkitLineClamp: 1,
41
+ // SVG-related properties
42
+ fillOpacity: 1,
43
+ floodOpacity: 1,
44
+ stopOpacity: 1,
45
+ strokeDasharray: 1,
46
+ strokeDashoffset: 1,
47
+ strokeMiterlimit: 1,
48
+ strokeOpacity: 1,
49
+ strokeWidth: 1
50
+ };
51
+ export {
52
+ o as default
53
+ };
@@ -0,0 +1,9 @@
1
+ function u(t) {
2
+ var n = /* @__PURE__ */ Object.create(null);
3
+ return function(e) {
4
+ return n[e] === void 0 && (n[e] = t(e)), n[e];
5
+ };
6
+ }
7
+ export {
8
+ u as default
9
+ };
@@ -0,0 +1,52 @@
1
+ const s = {
2
+ color: {
3
+ red: {
4
+ 100: "#FDECEA",
5
+ 500: "#E31837"
6
+ },
7
+ neutral: {
8
+ 0: "#FFFFFF",
9
+ 100: "#F5F5F5",
10
+ 300: "#D1D1D1",
11
+ 500: "#63767A",
12
+ 900: "#1A1A1A"
13
+ },
14
+ green: {
15
+ 100: "#E8F5EA",
16
+ 500: "#0A8920",
17
+ 600: "#077319"
18
+ },
19
+ yellow: {
20
+ 100: "#FEF7E0",
21
+ 500: "#F9AB00"
22
+ }
23
+ },
24
+ space: {
25
+ 2: "8px",
26
+ 4: "16px",
27
+ 6: "24px",
28
+ 8: "32px"
29
+ },
30
+ radius: {
31
+ sm: "4px",
32
+ md: "8px",
33
+ full: "9999px"
34
+ },
35
+ font: {
36
+ family: {
37
+ body: "'Plus Jakarta Sans', sans-serif",
38
+ display: "'Bebas Neue', sans-serif"
39
+ }
40
+ },
41
+ shadow: {
42
+ sm: "0 1px 2px 0 rgba(0,0,0,0.08)",
43
+ md: "0 4px 8px 0 rgba(0,0,0,0.12)"
44
+ },
45
+ transition: {
46
+ fast: "100ms ease",
47
+ normal: "200ms ease"
48
+ }
49
+ };
50
+ export {
51
+ s as primitives
52
+ };
@@ -0,0 +1,35 @@
1
+ function y(n) {
2
+ return Object.prototype.toString.call(n) === "[object Object]";
3
+ }
4
+ function a(n) {
5
+ return y(n) || Array.isArray(n);
6
+ }
7
+ function p() {
8
+ return !!(typeof window != "undefined" && window.document && window.document.createElement);
9
+ }
10
+ function l(n, t) {
11
+ const e = Object.keys(n), c = Object.keys(t);
12
+ if (e.length !== c.length) return !1;
13
+ const s = JSON.stringify(Object.keys(n.breakpoints || {})), u = JSON.stringify(Object.keys(t.breakpoints || {}));
14
+ return s !== u ? !1 : e.every((o) => {
15
+ const r = n[o], i = t[o];
16
+ return typeof r == "function" ? `${r}` == `${i}` : !a(r) || !a(i) ? r === i : l(r, i);
17
+ });
18
+ }
19
+ function f(n) {
20
+ return n.concat().sort((t, e) => t.name > e.name ? 1 : -1).map((t) => t.options);
21
+ }
22
+ function O(n, t) {
23
+ if (n.length !== t.length) return !1;
24
+ const e = f(n), c = f(t);
25
+ return e.every((s, u) => {
26
+ const o = c[u];
27
+ return l(s, o);
28
+ });
29
+ }
30
+ export {
31
+ l as areOptionsEqual,
32
+ O as arePluginsEqual,
33
+ p as canUseDOM,
34
+ f as sortAndMapPluginToOptions
35
+ };