@caspeco/casper-ui-library 5.6.0 → 5.6.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/tag-theme.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,yBAAyB,EAG9B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tag-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/tag-theme.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,yBAAyB,EAG9B,MAAM,kBAAkB,CAAC;AAoK1B,eAAO,MAAM,SAAS,EAAE,yBAQtB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createMultiStyleConfigHelpers as h } from "@chakra-ui/react";
|
|
2
|
-
import { ThemeColorVariable as o, ThemeIconSizeVariable as t, ThemeFontSizeVariable as d,
|
|
2
|
+
import { ThemeColorVariable as o, ThemeIconSizeVariable as t, ThemeFontSizeVariable as d, ThemeSpaceVariable as l, ThemeFontVariable as b, ThemeRadiusVariable as f } from "../../theme-types.js";
|
|
3
3
|
import { tagAnatomy as C } from "../../../packages/casper-ui-library/node_modules/@chakra-ui/anatomy/dist/esm/components.js";
|
|
4
4
|
const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warning"], a = ".tag-dot", u = ".tag-icon", { definePartsStyle: n, defineMultiStyleConfig: p } = h(C.keys), x = g.reduce(
|
|
5
|
-
(
|
|
6
|
-
const i =
|
|
7
|
-
return i[
|
|
5
|
+
(c, e) => {
|
|
6
|
+
const i = c, s = `${e.toLowerCase()}Solid`, m = e, r = `On${e}`;
|
|
7
|
+
return i[s] = n({
|
|
8
8
|
container: {
|
|
9
|
-
backgroundColor: o[
|
|
9
|
+
backgroundColor: o[m],
|
|
10
10
|
color: o[r],
|
|
11
11
|
[a]: {
|
|
12
12
|
backgroundColor: o[r]
|
|
@@ -16,14 +16,14 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
16
16
|
},
|
|
17
17
|
{}
|
|
18
18
|
), y = g.reduce(
|
|
19
|
-
(
|
|
20
|
-
const i =
|
|
21
|
-
return i[
|
|
19
|
+
(c, e) => {
|
|
20
|
+
const i = c, s = `${e.toLowerCase()}`, m = e, r = `${e}Container`, S = `On${e}Container`;
|
|
21
|
+
return i[s] = n({
|
|
22
22
|
container: {
|
|
23
23
|
color: o[S],
|
|
24
24
|
backgroundColor: o[r],
|
|
25
25
|
[a]: {
|
|
26
|
-
backgroundColor: o[
|
|
26
|
+
backgroundColor: o[m]
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}), i;
|
|
@@ -35,8 +35,8 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
35
35
|
alignContent: "center",
|
|
36
36
|
justifyContent: "flex-start",
|
|
37
37
|
width: "fit-content",
|
|
38
|
-
gap:
|
|
39
|
-
px:
|
|
38
|
+
gap: l.XSmall,
|
|
39
|
+
px: l.XSmall,
|
|
40
40
|
bg: o.NeutralContainer,
|
|
41
41
|
color: o.OnNeutralContainer,
|
|
42
42
|
borderRadius: f.Small
|
|
@@ -45,7 +45,7 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
45
45
|
alignItems: "center",
|
|
46
46
|
fontWeight: "500",
|
|
47
47
|
lineHeight: "150%",
|
|
48
|
-
mx:
|
|
48
|
+
mx: l.XSmall,
|
|
49
49
|
letterSpacing: "0.0125em",
|
|
50
50
|
font: b.Body
|
|
51
51
|
},
|
|
@@ -92,6 +92,7 @@ const g = ["Primary", "Secondary", "Success", "Error", "Info", "Neutral", "Warni
|
|
|
92
92
|
}), M = n({
|
|
93
93
|
container: {
|
|
94
94
|
minHeight: "40px",
|
|
95
|
+
px: l.Small,
|
|
95
96
|
[a]: {
|
|
96
97
|
width: "14px",
|
|
97
98
|
height: "14px"
|