jaci-ui 0.6.2 → 0.7.0

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 (170) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +31 -0
  3. package/dist/components/alert/alert.cjs +11 -1
  4. package/dist/components/alert/alert.cjs.map +1 -1
  5. package/dist/components/alert/alert.d.cts +4 -1
  6. package/dist/components/alert/alert.d.ts +4 -1
  7. package/dist/components/alert/alert.js +11 -2
  8. package/dist/components/alert/alert.js.map +1 -1
  9. package/dist/components/alert/index.d.cts +2 -2
  10. package/dist/components/alert/index.d.ts +2 -2
  11. package/dist/components/aspect-ratio/aspect-ratio.cjs +23 -0
  12. package/dist/components/aspect-ratio/aspect-ratio.cjs.map +1 -0
  13. package/dist/components/aspect-ratio/aspect-ratio.d.cts +9 -0
  14. package/dist/components/aspect-ratio/aspect-ratio.d.ts +9 -0
  15. package/dist/components/aspect-ratio/aspect-ratio.js +23 -0
  16. package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
  17. package/dist/components/aspect-ratio/index.d.cts +2 -0
  18. package/dist/components/aspect-ratio/index.d.ts +2 -0
  19. package/dist/components/card/card.cjs +10 -1
  20. package/dist/components/card/card.cjs.map +1 -1
  21. package/dist/components/card/card.d.cts +15 -2
  22. package/dist/components/card/card.d.ts +15 -2
  23. package/dist/components/card/card.js +10 -2
  24. package/dist/components/card/card.js.map +1 -1
  25. package/dist/components/card/index.d.cts +2 -2
  26. package/dist/components/card/index.d.ts +2 -2
  27. package/dist/components/code/code.cjs +39 -0
  28. package/dist/components/code/code.cjs.map +1 -0
  29. package/dist/components/code/code.d.cts +14 -0
  30. package/dist/components/code/code.d.ts +14 -0
  31. package/dist/components/code/code.js +39 -0
  32. package/dist/components/code/code.js.map +1 -0
  33. package/dist/components/code/index.d.cts +2 -0
  34. package/dist/components/code/index.d.ts +2 -0
  35. package/dist/components/feedback/badge.cjs +6 -3
  36. package/dist/components/feedback/badge.cjs.map +1 -1
  37. package/dist/components/feedback/badge.d.cts +1 -0
  38. package/dist/components/feedback/badge.d.ts +1 -0
  39. package/dist/components/feedback/badge.js +6 -3
  40. package/dist/components/feedback/badge.js.map +1 -1
  41. package/dist/components/figure/figure.cjs +125 -0
  42. package/dist/components/figure/figure.cjs.map +1 -0
  43. package/dist/components/figure/figure.d.cts +24 -0
  44. package/dist/components/figure/figure.d.ts +24 -0
  45. package/dist/components/figure/figure.js +122 -0
  46. package/dist/components/figure/figure.js.map +1 -0
  47. package/dist/components/figure/index.d.cts +2 -0
  48. package/dist/components/figure/index.d.ts +2 -0
  49. package/dist/components/image/image.cjs +103 -0
  50. package/dist/components/image/image.cjs.map +1 -0
  51. package/dist/components/image/image.d.cts +21 -0
  52. package/dist/components/image/image.d.ts +21 -0
  53. package/dist/components/image/image.js +103 -0
  54. package/dist/components/image/image.js.map +1 -0
  55. package/dist/components/image/index.d.cts +2 -0
  56. package/dist/components/image/index.d.ts +2 -0
  57. package/dist/components/kbd/index.d.cts +2 -0
  58. package/dist/components/kbd/index.d.ts +2 -0
  59. package/dist/components/kbd/kbd.cjs +23 -0
  60. package/dist/components/kbd/kbd.cjs.map +1 -0
  61. package/dist/components/kbd/kbd.d.cts +12 -0
  62. package/dist/components/kbd/kbd.d.ts +12 -0
  63. package/dist/components/kbd/kbd.js +23 -0
  64. package/dist/components/kbd/kbd.js.map +1 -0
  65. package/dist/components/progress/progress.cjs +19 -7
  66. package/dist/components/progress/progress.cjs.map +1 -1
  67. package/dist/components/progress/progress.d.cts +4 -0
  68. package/dist/components/progress/progress.d.ts +4 -0
  69. package/dist/components/progress/progress.js +19 -7
  70. package/dist/components/progress/progress.js.map +1 -1
  71. package/dist/components/quote/index.d.cts +2 -0
  72. package/dist/components/quote/index.d.ts +2 -0
  73. package/dist/components/quote/quote.cjs +38 -0
  74. package/dist/components/quote/quote.cjs.map +1 -0
  75. package/dist/components/quote/quote.d.cts +19 -0
  76. package/dist/components/quote/quote.d.ts +19 -0
  77. package/dist/components/quote/quote.js +38 -0
  78. package/dist/components/quote/quote.js.map +1 -0
  79. package/dist/components/stat/index.d.cts +2 -0
  80. package/dist/components/stat/index.d.ts +2 -0
  81. package/dist/components/stat/stat.cjs +122 -0
  82. package/dist/components/stat/stat.cjs.map +1 -0
  83. package/dist/components/stat/stat.d.cts +51 -0
  84. package/dist/components/stat/stat.d.ts +51 -0
  85. package/dist/components/stat/stat.js +114 -0
  86. package/dist/components/stat/stat.js.map +1 -0
  87. package/dist/components/stat-group/index.d.cts +2 -0
  88. package/dist/components/stat-group/index.d.ts +2 -0
  89. package/dist/components/typography/heading.cjs +8 -2
  90. package/dist/components/typography/heading.cjs.map +1 -1
  91. package/dist/components/typography/heading.d.cts +8 -1
  92. package/dist/components/typography/heading.d.ts +8 -1
  93. package/dist/components/typography/heading.js +8 -2
  94. package/dist/components/typography/heading.js.map +1 -1
  95. package/dist/components/typography/index.d.cts +2 -2
  96. package/dist/components/typography/index.d.ts +2 -2
  97. package/dist/components/typography/paragraph.cjs +7 -2
  98. package/dist/components/typography/paragraph.cjs.map +1 -1
  99. package/dist/components/typography/paragraph.d.cts +8 -2
  100. package/dist/components/typography/paragraph.d.ts +8 -2
  101. package/dist/components/typography/paragraph.js +7 -2
  102. package/dist/components/typography/paragraph.js.map +1 -1
  103. package/dist/components/typography/text.cjs +6 -2
  104. package/dist/components/typography/text.cjs.map +1 -1
  105. package/dist/components/typography/text.d.cts +5 -0
  106. package/dist/components/typography/text.d.ts +5 -0
  107. package/dist/components/typography/text.js +6 -2
  108. package/dist/components/typography/text.js.map +1 -1
  109. package/dist/index.cjs +27 -0
  110. package/dist/index.d.cts +19 -4
  111. package/dist/index.d.ts +19 -4
  112. package/dist/index.js +10 -3
  113. package/dist/styled-system/recipes/alert.cjs +2 -1
  114. package/dist/styled-system/recipes/alert.cjs.map +1 -1
  115. package/dist/styled-system/recipes/alert.js +2 -1
  116. package/dist/styled-system/recipes/alert.js.map +1 -1
  117. package/dist/styled-system/recipes/aspect-ratio-box.cjs +25 -0
  118. package/dist/styled-system/recipes/aspect-ratio-box.cjs.map +1 -0
  119. package/dist/styled-system/recipes/aspect-ratio-box.js +25 -0
  120. package/dist/styled-system/recipes/aspect-ratio-box.js.map +1 -0
  121. package/dist/styled-system/recipes/badge.cjs +16 -6
  122. package/dist/styled-system/recipes/badge.cjs.map +1 -1
  123. package/dist/styled-system/recipes/badge.js +16 -6
  124. package/dist/styled-system/recipes/badge.js.map +1 -1
  125. package/dist/styled-system/recipes/code.cjs +33 -0
  126. package/dist/styled-system/recipes/code.cjs.map +1 -0
  127. package/dist/styled-system/recipes/code.js +33 -0
  128. package/dist/styled-system/recipes/code.js.map +1 -0
  129. package/dist/styled-system/recipes/figure.cjs +42 -0
  130. package/dist/styled-system/recipes/figure.cjs.map +1 -0
  131. package/dist/styled-system/recipes/figure.js +42 -0
  132. package/dist/styled-system/recipes/figure.js.map +1 -0
  133. package/dist/styled-system/recipes/heading.cjs +34 -9
  134. package/dist/styled-system/recipes/heading.cjs.map +1 -1
  135. package/dist/styled-system/recipes/heading.js +34 -9
  136. package/dist/styled-system/recipes/heading.js.map +1 -1
  137. package/dist/styled-system/recipes/image.cjs +56 -0
  138. package/dist/styled-system/recipes/image.cjs.map +1 -0
  139. package/dist/styled-system/recipes/image.js +56 -0
  140. package/dist/styled-system/recipes/image.js.map +1 -0
  141. package/dist/styled-system/recipes/kbd.cjs +39 -0
  142. package/dist/styled-system/recipes/kbd.cjs.map +1 -0
  143. package/dist/styled-system/recipes/kbd.js +39 -0
  144. package/dist/styled-system/recipes/kbd.js.map +1 -0
  145. package/dist/styled-system/recipes/paragraph.cjs +25 -2
  146. package/dist/styled-system/recipes/paragraph.cjs.map +1 -1
  147. package/dist/styled-system/recipes/paragraph.js +25 -2
  148. package/dist/styled-system/recipes/paragraph.js.map +1 -1
  149. package/dist/styled-system/recipes/progress.cjs +1 -0
  150. package/dist/styled-system/recipes/progress.cjs.map +1 -1
  151. package/dist/styled-system/recipes/progress.js +1 -0
  152. package/dist/styled-system/recipes/progress.js.map +1 -1
  153. package/dist/styled-system/recipes/quote.cjs +39 -0
  154. package/dist/styled-system/recipes/quote.cjs.map +1 -0
  155. package/dist/styled-system/recipes/quote.js +39 -0
  156. package/dist/styled-system/recipes/quote.js.map +1 -0
  157. package/dist/styled-system/recipes/stat-group.cjs +40 -0
  158. package/dist/styled-system/recipes/stat-group.cjs.map +1 -0
  159. package/dist/styled-system/recipes/stat-group.js +40 -0
  160. package/dist/styled-system/recipes/stat-group.js.map +1 -0
  161. package/dist/styled-system/recipes/stat.cjs +63 -0
  162. package/dist/styled-system/recipes/stat.cjs.map +1 -0
  163. package/dist/styled-system/recipes/stat.js +63 -0
  164. package/dist/styled-system/recipes/stat.js.map +1 -0
  165. package/dist/styled-system/recipes/text.cjs +23 -2
  166. package/dist/styled-system/recipes/text.cjs.map +1 -1
  167. package/dist/styled-system/recipes/text.js +23 -2
  168. package/dist/styled-system/recipes/text.js.map +1 -1
  169. package/dist/styles.css +1005 -81
  170. package/package.json +1 -1
@@ -0,0 +1,63 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from "../helpers.js";
2
+ import { createRecipe } from "./create-recipe.js";
3
+ //#region src/styled-system/recipes/stat.js
4
+ const statDefaultVariants = {
5
+ "size": "md",
6
+ "tone": "neutral",
7
+ "direction": "neutral"
8
+ };
9
+ const statCompoundVariants = [];
10
+ const statSlotFns = /* @__PURE__ */ [
11
+ ["root", "stat__root"],
12
+ ["icon", "stat__icon"],
13
+ ["label", "stat__label"],
14
+ ["value", "stat__value"],
15
+ ["description", "stat__description"],
16
+ ["trend", "stat__trend"]
17
+ ].map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, statDefaultVariants, getSlotCompoundVariant(statCompoundVariants, slotName))]);
18
+ const statFn = memo((props = {}) => {
19
+ return Object.fromEntries(statSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
20
+ });
21
+ const statVariantKeys = [
22
+ "tone",
23
+ "size",
24
+ "direction"
25
+ ];
26
+ const getVariantProps = (variants) => ({
27
+ ...statDefaultVariants,
28
+ ...compact(variants)
29
+ });
30
+ const stat = /* @__PURE__ */ Object.assign(statFn, {
31
+ __recipe__: false,
32
+ __name__: "stat",
33
+ raw: (props) => props,
34
+ classNameMap: {},
35
+ variantKeys: statVariantKeys,
36
+ variantMap: {
37
+ "tone": [
38
+ "neutral",
39
+ "accent",
40
+ "success",
41
+ "warning",
42
+ "danger"
43
+ ],
44
+ "size": [
45
+ "sm",
46
+ "md",
47
+ "lg"
48
+ ],
49
+ "direction": [
50
+ "up",
51
+ "down",
52
+ "neutral"
53
+ ]
54
+ },
55
+ splitVariantProps(props) {
56
+ return splitProps(props, statVariantKeys);
57
+ },
58
+ getVariantProps
59
+ });
60
+ //#endregion
61
+ export { stat };
62
+
63
+ //# sourceMappingURL=stat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stat.js","names":[],"sources":["../../../src/styled-system/recipes/stat.js"],"sourcesContent":["import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';\nimport { createRecipe } from './create-recipe.js';\n\nconst statDefaultVariants = {\n \"size\": \"md\",\n \"tone\": \"neutral\",\n \"direction\": \"neutral\"\n}\nconst statCompoundVariants = []\n\nconst statSlotNames = [\n [\n \"root\",\n \"stat__root\"\n ],\n [\n \"icon\",\n \"stat__icon\"\n ],\n [\n \"label\",\n \"stat__label\"\n ],\n [\n \"value\",\n \"stat__value\"\n ],\n [\n \"description\",\n \"stat__description\"\n ],\n [\n \"trend\",\n \"stat__trend\"\n ]\n]\nconst statSlotFns = /* @__PURE__ */ statSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, statDefaultVariants, getSlotCompoundVariant(statCompoundVariants, slotName))])\n\nconst statFn = memo((props = {}) => {\n return Object.fromEntries(statSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))\n})\n\nconst statVariantKeys = [\n \"tone\",\n \"size\",\n \"direction\"\n]\nconst getVariantProps = (variants) => ({ ...statDefaultVariants, ...compact(variants) })\n\nexport const stat = /* @__PURE__ */ Object.assign(statFn, {\n __recipe__: false,\n __name__: 'stat',\n raw: (props) => props,\n classNameMap: {},\n variantKeys: statVariantKeys,\n variantMap: {\n \"tone\": [\n \"neutral\",\n \"accent\",\n \"success\",\n \"warning\",\n \"danger\"\n ],\n \"size\": [\n \"sm\",\n \"md\",\n \"lg\"\n ],\n \"direction\": [\n \"up\",\n \"down\",\n \"neutral\"\n ]\n},\n splitVariantProps(props) {\n return splitProps(props, statVariantKeys)\n },\n getVariantProps\n})"],"mappings":";;;AAGA,MAAM,sBAAsB;CAC1B,QAAQ;CACR,QAAQ;CACR,aAAa;AACf;AACA,MAAM,uBAAuB,CAAC;AA4B9B,MAAM,cAA8B;CAzBlC,CACE,QACA,YACF;CACA,CACE,QACA,YACF;CACA,CACE,SACA,aACF;CACA,CACE,SACA,aACF;CACA,CACE,eACA,mBACF;CACA,CACE,SACA,aACF;AAE8C,CAAC,CAAC,KAAK,CAAC,UAAU,aAAa,CAAC,UAAU,aAAa,SAAS,qBAAqB,uBAAuB,sBAAsB,QAAQ,CAAC,CAAC,CAAC;AAE7L,MAAM,SAAS,MAAM,QAAQ,CAAC,MAAM;CAClC,OAAO,OAAO,YAAY,YAAY,KAAK,CAAC,UAAU,YAAY,CAAC,UAAU,OAAO,SAAS,KAAK,CAAC,CAAC,CAAC;AACvG,CAAC;AAED,MAAM,kBAAkB;CACtB;CACA;CACA;AACF;AACA,MAAM,mBAAmB,cAAc;CAAE,GAAG;CAAqB,GAAG,QAAQ,QAAQ;AAAE;AAEtF,MAAa,OAAuB,uBAAO,OAAO,QAAQ;CACxD,YAAY;CACZ,UAAU;CACV,MAAM,UAAU;CAChB,cAAc,CAAC;CACf,aAAa;CACb,YAAY;EACZ,QAAQ;GACN;GACA;GACA;GACA;GACA;EACF;EACA,QAAQ;GACN;GACA;GACA;EACF;EACA,aAAa;GACX;GACA;GACA;EACF;CACF;CACE,kBAAkB,OAAO;EACvB,OAAO,WAAW,OAAO,eAAe;CAC1C;CACA;AACF,CAAC"}
@@ -2,16 +2,37 @@ const require_helpers = require("../helpers.cjs");
2
2
  const require_create_recipe = require("./create-recipe.cjs");
3
3
  //#region src/styled-system/recipes/text.js
4
4
  const textFn = /* @__PURE__ */ require_create_recipe.createRecipe("text", {
5
+ "weight": "normal",
5
6
  "size": "md",
6
- "tone": "default"
7
+ "tone": "default",
8
+ "truncate": false,
9
+ "width": "auto"
7
10
  }, []);
8
11
  const textVariantMap = {
12
+ "weight": [
13
+ "normal",
14
+ "medium",
15
+ "semibold",
16
+ "bold"
17
+ ],
9
18
  "size": [
10
19
  "sm",
11
20
  "md",
12
21
  "lg"
13
22
  ],
14
- "tone": ["default", "muted"]
23
+ "tone": ["default", "muted"],
24
+ "truncate": ["true", "false"],
25
+ "lineClamp": [
26
+ "1",
27
+ "2",
28
+ "3",
29
+ "4"
30
+ ],
31
+ "width": [
32
+ "auto",
33
+ "fit",
34
+ "full"
35
+ ]
15
36
  };
16
37
  const textVariantKeys = Object.keys(textVariantMap);
17
38
  const text = /* @__PURE__ */ Object.assign(require_helpers.memo(textFn.recipeFn), {
@@ -1 +1 @@
1
- {"version":3,"file":"text.cjs","names":["memo","mergeRecipes","splitProps"],"sources":["../../../src/styled-system/recipes/text.js"],"sourcesContent":["import { memo, splitProps } from '../helpers.js';\nimport { createRecipe, mergeRecipes } from './create-recipe.js';\n\nconst textFn = /* @__PURE__ */ createRecipe('text', {\n \"size\": \"md\",\n \"tone\": \"default\"\n}, [])\n\nconst textVariantMap = {\n \"size\": [\n \"sm\",\n \"md\",\n \"lg\"\n ],\n \"tone\": [\n \"default\",\n \"muted\"\n ]\n}\n\nconst textVariantKeys = Object.keys(textVariantMap)\n\nexport const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {\n __recipe__: true,\n __name__: 'text',\n __getCompoundVariantCss__: textFn.__getCompoundVariantCss__,\n raw: (props) => props,\n variantKeys: textVariantKeys,\n variantMap: textVariantMap,\n merge(recipe) {\n return mergeRecipes(this, recipe)\n },\n splitVariantProps(props) {\n return splitProps(props, textVariantKeys)\n },\n getVariantProps: textFn.getVariantProps,\n})"],"mappings":";;;AAGA,MAAM,SAAyB,sCAAA,aAAa,QAAQ;CAClD,QAAQ;CACR,QAAQ;AACV,GAAG,CAAC,CAAC;AAEL,MAAM,iBAAiB;CACrB,QAAQ;EACN;EACA;EACA;CACF;CACA,QAAQ,CACN,WACA,OACF;AACF;AAEA,MAAM,kBAAkB,OAAO,KAAK,cAAc;AAElD,MAAa,OAAuB,uBAAO,OAAOA,gBAAAA,KAAK,OAAO,QAAQ,GAAG;CACvE,YAAY;CACZ,UAAU;CACV,2BAA2B,OAAO;CAClC,MAAM,UAAU;CAChB,aAAa;CACb,YAAY;CACZ,MAAM,QAAQ;EACZ,OAAOC,sBAAAA,aAAa,MAAM,MAAM;CAClC;CACA,kBAAkB,OAAO;EACvB,OAAOC,gBAAAA,WAAW,OAAO,eAAe;CAC1C;CACA,iBAAiB,OAAO;AAC1B,CAAC"}
1
+ {"version":3,"file":"text.cjs","names":["memo","mergeRecipes","splitProps"],"sources":["../../../src/styled-system/recipes/text.js"],"sourcesContent":["import { memo, splitProps } from '../helpers.js';\nimport { createRecipe, mergeRecipes } from './create-recipe.js';\n\nconst textFn = /* @__PURE__ */ createRecipe('text', {\n \"weight\": \"normal\",\n \"size\": \"md\",\n \"tone\": \"default\",\n \"truncate\": false,\n \"width\": \"auto\"\n}, [])\n\nconst textVariantMap = {\n \"weight\": [\n \"normal\",\n \"medium\",\n \"semibold\",\n \"bold\"\n ],\n \"size\": [\n \"sm\",\n \"md\",\n \"lg\"\n ],\n \"tone\": [\n \"default\",\n \"muted\"\n ],\n \"truncate\": [\n \"true\",\n \"false\"\n ],\n \"lineClamp\": [\n \"1\",\n \"2\",\n \"3\",\n \"4\"\n ],\n \"width\": [\n \"auto\",\n \"fit\",\n \"full\"\n ]\n}\n\nconst textVariantKeys = Object.keys(textVariantMap)\n\nexport const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {\n __recipe__: true,\n __name__: 'text',\n __getCompoundVariantCss__: textFn.__getCompoundVariantCss__,\n raw: (props) => props,\n variantKeys: textVariantKeys,\n variantMap: textVariantMap,\n merge(recipe) {\n return mergeRecipes(this, recipe)\n },\n splitVariantProps(props) {\n return splitProps(props, textVariantKeys)\n },\n getVariantProps: textFn.getVariantProps,\n})"],"mappings":";;;AAGA,MAAM,SAAyB,sCAAA,aAAa,QAAQ;CAClD,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,SAAS;AACX,GAAG,CAAC,CAAC;AAEL,MAAM,iBAAiB;CACrB,UAAU;EACR;EACA;EACA;EACA;CACF;CACA,QAAQ;EACN;EACA;EACA;CACF;CACA,QAAQ,CACN,WACA,OACF;CACA,YAAY,CACV,QACA,OACF;CACA,aAAa;EACX;EACA;EACA;EACA;CACF;CACA,SAAS;EACP;EACA;EACA;CACF;AACF;AAEA,MAAM,kBAAkB,OAAO,KAAK,cAAc;AAElD,MAAa,OAAuB,uBAAO,OAAOA,gBAAAA,KAAK,OAAO,QAAQ,GAAG;CACvE,YAAY;CACZ,UAAU;CACV,2BAA2B,OAAO;CAClC,MAAM,UAAU;CAChB,aAAa;CACb,YAAY;CACZ,MAAM,QAAQ;EACZ,OAAOC,sBAAAA,aAAa,MAAM,MAAM;CAClC;CACA,kBAAkB,OAAO;EACvB,OAAOC,gBAAAA,WAAW,OAAO,eAAe;CAC1C;CACA,iBAAiB,OAAO;AAC1B,CAAC"}
@@ -2,16 +2,37 @@ import { memo, splitProps } from "../helpers.js";
2
2
  import { createRecipe, mergeRecipes } from "./create-recipe.js";
3
3
  //#region src/styled-system/recipes/text.js
4
4
  const textFn = /* @__PURE__ */ createRecipe("text", {
5
+ "weight": "normal",
5
6
  "size": "md",
6
- "tone": "default"
7
+ "tone": "default",
8
+ "truncate": false,
9
+ "width": "auto"
7
10
  }, []);
8
11
  const textVariantMap = {
12
+ "weight": [
13
+ "normal",
14
+ "medium",
15
+ "semibold",
16
+ "bold"
17
+ ],
9
18
  "size": [
10
19
  "sm",
11
20
  "md",
12
21
  "lg"
13
22
  ],
14
- "tone": ["default", "muted"]
23
+ "tone": ["default", "muted"],
24
+ "truncate": ["true", "false"],
25
+ "lineClamp": [
26
+ "1",
27
+ "2",
28
+ "3",
29
+ "4"
30
+ ],
31
+ "width": [
32
+ "auto",
33
+ "fit",
34
+ "full"
35
+ ]
15
36
  };
16
37
  const textVariantKeys = Object.keys(textVariantMap);
17
38
  const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","names":[],"sources":["../../../src/styled-system/recipes/text.js"],"sourcesContent":["import { memo, splitProps } from '../helpers.js';\nimport { createRecipe, mergeRecipes } from './create-recipe.js';\n\nconst textFn = /* @__PURE__ */ createRecipe('text', {\n \"size\": \"md\",\n \"tone\": \"default\"\n}, [])\n\nconst textVariantMap = {\n \"size\": [\n \"sm\",\n \"md\",\n \"lg\"\n ],\n \"tone\": [\n \"default\",\n \"muted\"\n ]\n}\n\nconst textVariantKeys = Object.keys(textVariantMap)\n\nexport const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {\n __recipe__: true,\n __name__: 'text',\n __getCompoundVariantCss__: textFn.__getCompoundVariantCss__,\n raw: (props) => props,\n variantKeys: textVariantKeys,\n variantMap: textVariantMap,\n merge(recipe) {\n return mergeRecipes(this, recipe)\n },\n splitVariantProps(props) {\n return splitProps(props, textVariantKeys)\n },\n getVariantProps: textFn.getVariantProps,\n})"],"mappings":";;;AAGA,MAAM,SAAyB,6BAAa,QAAQ;CAClD,QAAQ;CACR,QAAQ;AACV,GAAG,CAAC,CAAC;AAEL,MAAM,iBAAiB;CACrB,QAAQ;EACN;EACA;EACA;CACF;CACA,QAAQ,CACN,WACA,OACF;AACF;AAEA,MAAM,kBAAkB,OAAO,KAAK,cAAc;AAElD,MAAa,OAAuB,uBAAO,OAAO,KAAK,OAAO,QAAQ,GAAG;CACvE,YAAY;CACZ,UAAU;CACV,2BAA2B,OAAO;CAClC,MAAM,UAAU;CAChB,aAAa;CACb,YAAY;CACZ,MAAM,QAAQ;EACZ,OAAO,aAAa,MAAM,MAAM;CAClC;CACA,kBAAkB,OAAO;EACvB,OAAO,WAAW,OAAO,eAAe;CAC1C;CACA,iBAAiB,OAAO;AAC1B,CAAC"}
1
+ {"version":3,"file":"text.js","names":[],"sources":["../../../src/styled-system/recipes/text.js"],"sourcesContent":["import { memo, splitProps } from '../helpers.js';\nimport { createRecipe, mergeRecipes } from './create-recipe.js';\n\nconst textFn = /* @__PURE__ */ createRecipe('text', {\n \"weight\": \"normal\",\n \"size\": \"md\",\n \"tone\": \"default\",\n \"truncate\": false,\n \"width\": \"auto\"\n}, [])\n\nconst textVariantMap = {\n \"weight\": [\n \"normal\",\n \"medium\",\n \"semibold\",\n \"bold\"\n ],\n \"size\": [\n \"sm\",\n \"md\",\n \"lg\"\n ],\n \"tone\": [\n \"default\",\n \"muted\"\n ],\n \"truncate\": [\n \"true\",\n \"false\"\n ],\n \"lineClamp\": [\n \"1\",\n \"2\",\n \"3\",\n \"4\"\n ],\n \"width\": [\n \"auto\",\n \"fit\",\n \"full\"\n ]\n}\n\nconst textVariantKeys = Object.keys(textVariantMap)\n\nexport const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {\n __recipe__: true,\n __name__: 'text',\n __getCompoundVariantCss__: textFn.__getCompoundVariantCss__,\n raw: (props) => props,\n variantKeys: textVariantKeys,\n variantMap: textVariantMap,\n merge(recipe) {\n return mergeRecipes(this, recipe)\n },\n splitVariantProps(props) {\n return splitProps(props, textVariantKeys)\n },\n getVariantProps: textFn.getVariantProps,\n})"],"mappings":";;;AAGA,MAAM,SAAyB,6BAAa,QAAQ;CAClD,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,SAAS;AACX,GAAG,CAAC,CAAC;AAEL,MAAM,iBAAiB;CACrB,UAAU;EACR;EACA;EACA;EACA;CACF;CACA,QAAQ;EACN;EACA;EACA;CACF;CACA,QAAQ,CACN,WACA,OACF;CACA,YAAY,CACV,QACA,OACF;CACA,aAAa;EACX;EACA;EACA;EACA;CACF;CACA,SAAS;EACP;EACA;EACA;CACF;AACF;AAEA,MAAM,kBAAkB,OAAO,KAAK,cAAc;AAElD,MAAa,OAAuB,uBAAO,OAAO,KAAK,OAAO,QAAQ,GAAG;CACvE,YAAY;CACZ,UAAU;CACV,2BAA2B,OAAO;CAClC,MAAM,UAAU;CAChB,aAAa;CACb,YAAY;CACZ,MAAM,QAAQ;EACZ,OAAO,aAAa,MAAM,MAAM;CAClC;CACA,kBAAkB,OAAO;EACvB,OAAO,WAAW,OAAO,eAAe;CAC1C;CACA,iBAAiB,OAAO;AAC1B,CAAC"}