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.
- package/CHANGELOG.md +12 -0
- package/README.md +31 -0
- package/dist/components/alert/alert.cjs +11 -1
- package/dist/components/alert/alert.cjs.map +1 -1
- package/dist/components/alert/alert.d.cts +4 -1
- package/dist/components/alert/alert.d.ts +4 -1
- package/dist/components/alert/alert.js +11 -2
- package/dist/components/alert/alert.js.map +1 -1
- package/dist/components/alert/index.d.cts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.cjs +23 -0
- package/dist/components/aspect-ratio/aspect-ratio.cjs.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.cts +9 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +9 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +23 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/aspect-ratio/index.d.cts +2 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/card/card.cjs +10 -1
- package/dist/components/card/card.cjs.map +1 -1
- package/dist/components/card/card.d.cts +15 -2
- package/dist/components/card/card.d.ts +15 -2
- package/dist/components/card/card.js +10 -2
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/index.d.cts +2 -2
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/code/code.cjs +39 -0
- package/dist/components/code/code.cjs.map +1 -0
- package/dist/components/code/code.d.cts +14 -0
- package/dist/components/code/code.d.ts +14 -0
- package/dist/components/code/code.js +39 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code/index.d.cts +2 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/feedback/badge.cjs +6 -3
- package/dist/components/feedback/badge.cjs.map +1 -1
- package/dist/components/feedback/badge.d.cts +1 -0
- package/dist/components/feedback/badge.d.ts +1 -0
- package/dist/components/feedback/badge.js +6 -3
- package/dist/components/feedback/badge.js.map +1 -1
- package/dist/components/figure/figure.cjs +125 -0
- package/dist/components/figure/figure.cjs.map +1 -0
- package/dist/components/figure/figure.d.cts +24 -0
- package/dist/components/figure/figure.d.ts +24 -0
- package/dist/components/figure/figure.js +122 -0
- package/dist/components/figure/figure.js.map +1 -0
- package/dist/components/figure/index.d.cts +2 -0
- package/dist/components/figure/index.d.ts +2 -0
- package/dist/components/image/image.cjs +103 -0
- package/dist/components/image/image.cjs.map +1 -0
- package/dist/components/image/image.d.cts +21 -0
- package/dist/components/image/image.d.ts +21 -0
- package/dist/components/image/image.js +103 -0
- package/dist/components/image/image.js.map +1 -0
- package/dist/components/image/index.d.cts +2 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/kbd/index.d.cts +2 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/kbd.cjs +23 -0
- package/dist/components/kbd/kbd.cjs.map +1 -0
- package/dist/components/kbd/kbd.d.cts +12 -0
- package/dist/components/kbd/kbd.d.ts +12 -0
- package/dist/components/kbd/kbd.js +23 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/progress/progress.cjs +19 -7
- package/dist/components/progress/progress.cjs.map +1 -1
- package/dist/components/progress/progress.d.cts +4 -0
- package/dist/components/progress/progress.d.ts +4 -0
- package/dist/components/progress/progress.js +19 -7
- package/dist/components/progress/progress.js.map +1 -1
- package/dist/components/quote/index.d.cts +2 -0
- package/dist/components/quote/index.d.ts +2 -0
- package/dist/components/quote/quote.cjs +38 -0
- package/dist/components/quote/quote.cjs.map +1 -0
- package/dist/components/quote/quote.d.cts +19 -0
- package/dist/components/quote/quote.d.ts +19 -0
- package/dist/components/quote/quote.js +38 -0
- package/dist/components/quote/quote.js.map +1 -0
- package/dist/components/stat/index.d.cts +2 -0
- package/dist/components/stat/index.d.ts +2 -0
- package/dist/components/stat/stat.cjs +122 -0
- package/dist/components/stat/stat.cjs.map +1 -0
- package/dist/components/stat/stat.d.cts +51 -0
- package/dist/components/stat/stat.d.ts +51 -0
- package/dist/components/stat/stat.js +114 -0
- package/dist/components/stat/stat.js.map +1 -0
- package/dist/components/stat-group/index.d.cts +2 -0
- package/dist/components/stat-group/index.d.ts +2 -0
- package/dist/components/typography/heading.cjs +8 -2
- package/dist/components/typography/heading.cjs.map +1 -1
- package/dist/components/typography/heading.d.cts +8 -1
- package/dist/components/typography/heading.d.ts +8 -1
- package/dist/components/typography/heading.js +8 -2
- package/dist/components/typography/heading.js.map +1 -1
- package/dist/components/typography/index.d.cts +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/typography/paragraph.cjs +7 -2
- package/dist/components/typography/paragraph.cjs.map +1 -1
- package/dist/components/typography/paragraph.d.cts +8 -2
- package/dist/components/typography/paragraph.d.ts +8 -2
- package/dist/components/typography/paragraph.js +7 -2
- package/dist/components/typography/paragraph.js.map +1 -1
- package/dist/components/typography/text.cjs +6 -2
- package/dist/components/typography/text.cjs.map +1 -1
- package/dist/components/typography/text.d.cts +5 -0
- package/dist/components/typography/text.d.ts +5 -0
- package/dist/components/typography/text.js +6 -2
- package/dist/components/typography/text.js.map +1 -1
- package/dist/index.cjs +27 -0
- package/dist/index.d.cts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +10 -3
- package/dist/styled-system/recipes/alert.cjs +2 -1
- package/dist/styled-system/recipes/alert.cjs.map +1 -1
- package/dist/styled-system/recipes/alert.js +2 -1
- package/dist/styled-system/recipes/alert.js.map +1 -1
- package/dist/styled-system/recipes/aspect-ratio-box.cjs +25 -0
- package/dist/styled-system/recipes/aspect-ratio-box.cjs.map +1 -0
- package/dist/styled-system/recipes/aspect-ratio-box.js +25 -0
- package/dist/styled-system/recipes/aspect-ratio-box.js.map +1 -0
- package/dist/styled-system/recipes/badge.cjs +16 -6
- package/dist/styled-system/recipes/badge.cjs.map +1 -1
- package/dist/styled-system/recipes/badge.js +16 -6
- package/dist/styled-system/recipes/badge.js.map +1 -1
- package/dist/styled-system/recipes/code.cjs +33 -0
- package/dist/styled-system/recipes/code.cjs.map +1 -0
- package/dist/styled-system/recipes/code.js +33 -0
- package/dist/styled-system/recipes/code.js.map +1 -0
- package/dist/styled-system/recipes/figure.cjs +42 -0
- package/dist/styled-system/recipes/figure.cjs.map +1 -0
- package/dist/styled-system/recipes/figure.js +42 -0
- package/dist/styled-system/recipes/figure.js.map +1 -0
- package/dist/styled-system/recipes/heading.cjs +34 -9
- package/dist/styled-system/recipes/heading.cjs.map +1 -1
- package/dist/styled-system/recipes/heading.js +34 -9
- package/dist/styled-system/recipes/heading.js.map +1 -1
- package/dist/styled-system/recipes/image.cjs +56 -0
- package/dist/styled-system/recipes/image.cjs.map +1 -0
- package/dist/styled-system/recipes/image.js +56 -0
- package/dist/styled-system/recipes/image.js.map +1 -0
- package/dist/styled-system/recipes/kbd.cjs +39 -0
- package/dist/styled-system/recipes/kbd.cjs.map +1 -0
- package/dist/styled-system/recipes/kbd.js +39 -0
- package/dist/styled-system/recipes/kbd.js.map +1 -0
- package/dist/styled-system/recipes/paragraph.cjs +25 -2
- package/dist/styled-system/recipes/paragraph.cjs.map +1 -1
- package/dist/styled-system/recipes/paragraph.js +25 -2
- package/dist/styled-system/recipes/paragraph.js.map +1 -1
- package/dist/styled-system/recipes/progress.cjs +1 -0
- package/dist/styled-system/recipes/progress.cjs.map +1 -1
- package/dist/styled-system/recipes/progress.js +1 -0
- package/dist/styled-system/recipes/progress.js.map +1 -1
- package/dist/styled-system/recipes/quote.cjs +39 -0
- package/dist/styled-system/recipes/quote.cjs.map +1 -0
- package/dist/styled-system/recipes/quote.js +39 -0
- package/dist/styled-system/recipes/quote.js.map +1 -0
- package/dist/styled-system/recipes/stat-group.cjs +40 -0
- package/dist/styled-system/recipes/stat-group.cjs.map +1 -0
- package/dist/styled-system/recipes/stat-group.js +40 -0
- package/dist/styled-system/recipes/stat-group.js.map +1 -0
- package/dist/styled-system/recipes/stat.cjs +63 -0
- package/dist/styled-system/recipes/stat.cjs.map +1 -0
- package/dist/styled-system/recipes/stat.js +63 -0
- package/dist/styled-system/recipes/stat.js.map +1 -0
- package/dist/styled-system/recipes/text.cjs +23 -2
- package/dist/styled-system/recipes/text.cjs.map +1 -1
- package/dist/styled-system/recipes/text.js +23 -2
- package/dist/styled-system/recipes/text.js.map +1 -1
- package/dist/styles.css +1005 -81
- 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;
|
|
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;
|
|
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"}
|