@danielcruzcode/ui-core 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +1 -1
@@ -1,35 +1,47 @@
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
- }
1
+ import { primitives as o } from "./index.esm27.js";
2
+ const e = {
3
+ color: {
4
+ background: o.color.neutral[0],
5
+ surface: o.color.neutral[100],
6
+ surfaceHover: o.color.neutral[300],
7
+ border: o.color.neutral[300],
8
+ borderFocus: o.color.green[500],
9
+ text: o.color.neutral[900],
10
+ textMuted: o.color.neutral[500],
11
+ brand: o.color.green[500],
12
+ brandHover: o.color.green[600],
13
+ brandSubtle: o.color.green[100],
14
+ success: o.color.green[500],
15
+ successSubtle: o.color.green[100],
16
+ warning: o.color.yellow[500],
17
+ warningSubtle: o.color.yellow[100],
18
+ danger: o.color.red[500],
19
+ dangerSubtle: o.color.red[100]
20
+ },
21
+ space: {
22
+ sm: o.space[2],
23
+ md: o.space[4],
24
+ lg: o.space[6],
25
+ xl: o.space[8]
26
+ },
27
+ radius: {
28
+ sm: o.radius.sm,
29
+ md: o.radius.md,
30
+ full: o.radius.full
31
+ },
32
+ font: {
33
+ body: o.font.family.body,
34
+ display: o.font.family.display
35
+ },
36
+ shadow: {
37
+ sm: o.shadow.sm,
38
+ md: o.shadow.md
39
+ },
40
+ transition: {
41
+ fast: o.transition.fast,
42
+ normal: o.transition.normal
43
+ }
44
+ };
30
45
  export {
31
- l as areOptionsEqual,
32
- O as arePluginsEqual,
33
- p as canUseDOM,
34
- f as sortAndMapPluginToOptions
46
+ e as tokens
35
47
  };