react-minolith 1.0.2 → 1.0.4
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/dist/backgrounds/Dot/Dot.d.ts.map +1 -1
- package/dist/backgrounds/Dot/Dot.js +4 -4
- package/dist/backgrounds/Dot/Dot.js.map +1 -1
- package/dist/backgrounds/Gingham/Gingham.d.ts.map +1 -1
- package/dist/backgrounds/Gingham/Gingham.js +6 -6
- package/dist/backgrounds/Gingham/Gingham.js.map +1 -1
- package/dist/backgrounds/Rhombus/Rhombus.d.ts.map +1 -1
- package/dist/backgrounds/Rhombus/Rhombus.js +4 -4
- package/dist/backgrounds/Rhombus/Rhombus.js.map +1 -1
- package/dist/backgrounds/Stripe/Stripe.d.ts.map +1 -1
- package/dist/backgrounds/Stripe/Stripe.js +4 -4
- package/dist/backgrounds/Stripe/Stripe.js.map +1 -1
- package/dist/backgrounds/Zigzag/Zigzag.d.ts.map +1 -1
- package/dist/backgrounds/Zigzag/Zigzag.js +9 -9
- package/dist/backgrounds/Zigzag/Zigzag.js.map +1 -1
- package/dist/base/Minolith/Minolith.d.ts.map +1 -1
- package/dist/base/Minolith/Minolith.js +23 -12
- package/dist/base/Minolith/Minolith.js.map +1 -1
- package/dist/base/MinolithStatic/MinolithStatic.js +10 -8
- package/dist/base/MinolithStatic/MinolithStatic.js.map +1 -1
- package/dist/base/Tabula/Tabula.d.ts.map +1 -1
- package/dist/base/Tabula/Tabula.js +8 -8
- package/dist/base/Tabula/Tabula.js.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +4 -4
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionDetails.d.ts.map +1 -1
- package/dist/components/Accordion/AccordionDetails.js +4 -4
- package/dist/components/Accordion/AccordionDetails.js.map +1 -1
- package/dist/components/Accordion/AccordionSummary.d.ts.map +1 -1
- package/dist/components/Accordion/AccordionSummary.js +1 -1
- package/dist/components/Accordion/AccordionSummary.js.map +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.d.ts.map +1 -1
- package/dist/components/Blockquote/Blockquote.js +4 -4
- package/dist/components/Blockquote/Blockquote.js.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.js +4 -4
- package/dist/components/Breadcrumbs/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsNav.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsNav.js +6 -6
- package/dist/components/Breadcrumbs/BreadcrumbsNav.js.map +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +4 -6
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +4 -4
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/CardBody.d.ts.map +1 -1
- package/dist/components/Card/CardBody.js +4 -4
- package/dist/components/Card/CardBody.js.map +1 -1
- package/dist/components/Card/CardFooter.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.js +1 -1
- package/dist/components/Card/CardFooter.js.map +1 -1
- package/dist/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.js +4 -4
- package/dist/components/Card/CardHeader.js.map +1 -1
- package/dist/components/Dialogue/Dialogue.d.ts.map +1 -1
- package/dist/components/Dialogue/Dialogue.js +4 -4
- package/dist/components/Dialogue/Dialogue.js.map +1 -1
- package/dist/components/Dialogue/DialogueAvatar.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueAvatar.js +4 -4
- package/dist/components/Dialogue/DialogueAvatar.js.map +1 -1
- package/dist/components/Dialogue/DialogueAvatarContainer.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueAvatarContainer.js +4 -4
- package/dist/components/Dialogue/DialogueAvatarContainer.js.map +1 -1
- package/dist/components/Dialogue/DialogueContentContainer.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueContentContainer.js +6 -6
- package/dist/components/Dialogue/DialogueContentContainer.js.map +1 -1
- package/dist/components/Dialogue/DialogueMessage.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueMessage.js +4 -4
- package/dist/components/Dialogue/DialogueMessage.js.map +1 -1
- package/dist/components/Dialogue/DialogueMessageInner.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueMessageInner.js +9 -9
- package/dist/components/Dialogue/DialogueMessageInner.js.map +1 -1
- package/dist/components/Dialogue/DialogueName.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueName.js +6 -6
- package/dist/components/Dialogue/DialogueName.js.map +1 -1
- package/dist/components/Div/Div.d.ts.map +1 -1
- package/dist/components/Div/Div.js +4 -4
- package/dist/components/Div/Div.js.map +1 -1
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/Footer.js +4 -4
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/Hamburger/Hamburger.js +4 -4
- package/dist/components/Hamburger/Hamburger.js.map +1 -1
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +4 -4
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.js +4 -4
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Label/Label.js +6 -6
- package/dist/components/Label/Label.js.map +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.js +8 -8
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Loader/Loader.d.ts.map +1 -1
- package/dist/components/Loader/Loader.js +6 -6
- package/dist/components/Loader/Loader.js.map +1 -1
- package/dist/components/Main/Main.d.ts.map +1 -1
- package/dist/components/Main/Main.js +6 -6
- package/dist/components/Main/Main.js.map +1 -1
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +6 -6
- package/dist/components/Message/Message.js.map +1 -1
- package/dist/components/Message/MessageBody.d.ts.map +1 -1
- package/dist/components/Message/MessageBody.js +4 -4
- package/dist/components/Message/MessageBody.js.map +1 -1
- package/dist/components/Message/MessageHeader.d.ts.map +1 -1
- package/dist/components/Message/MessageHeader.js +4 -4
- package/dist/components/Message/MessageHeader.js.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +10 -10
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/ModalContent.js +5 -5
- package/dist/components/Modal/ModalContent.js.map +1 -1
- package/dist/components/Nav/Nav.d.ts.map +1 -1
- package/dist/components/Nav/Nav.js +4 -4
- package/dist/components/Nav/Nav.js.map +1 -1
- package/dist/components/Nav/NavAccordion.d.ts.map +1 -1
- package/dist/components/Nav/NavAccordion.js +4 -4
- package/dist/components/Nav/NavAccordion.js.map +1 -1
- package/dist/components/Nav/NavBrand.d.ts.map +1 -1
- package/dist/components/Nav/NavBrand.js +1 -1
- package/dist/components/Nav/NavBrand.js.map +1 -1
- package/dist/components/Nav/NavBrandCenter.d.ts.map +1 -1
- package/dist/components/Nav/NavBrandCenter.js +4 -4
- package/dist/components/Nav/NavBrandCenter.js.map +1 -1
- package/dist/components/Nav/NavBrandLeft.d.ts.map +1 -1
- package/dist/components/Nav/NavBrandLeft.js +4 -4
- package/dist/components/Nav/NavBrandLeft.js.map +1 -1
- package/dist/components/Nav/NavBrandRight.d.ts.map +1 -1
- package/dist/components/Nav/NavBrandRight.js +1 -1
- package/dist/components/Nav/NavBrandRight.js.map +1 -1
- package/dist/components/Nav/NavMenu.d.ts.map +1 -1
- package/dist/components/Nav/NavMenu.js +4 -4
- package/dist/components/Nav/NavMenu.js.map +1 -1
- package/dist/components/Nav/NavMenuItem.d.ts.map +1 -1
- package/dist/components/Nav/NavMenuItem.js +1 -1
- package/dist/components/Nav/NavMenuItem.js.map +1 -1
- package/dist/components/Nav/NavStatic.d.ts.map +1 -1
- package/dist/components/Nav/NavStatic.js +4 -4
- package/dist/components/Nav/NavStatic.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/components/Paragraph/Paragraph.js +4 -4
- package/dist/components/Paragraph/Paragraph.js.map +1 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Progress/Progress.js +4 -4
- package/dist/components/Progress/Progress.js.map +1 -1
- package/dist/components/Ruby/Ruby.d.ts.map +1 -1
- package/dist/components/Ruby/Ruby.js +9 -9
- package/dist/components/Ruby/Ruby.js.map +1 -1
- package/dist/components/Ruby/RubyText.d.ts.map +1 -1
- package/dist/components/Ruby/RubyText.js +6 -6
- package/dist/components/Ruby/RubyText.js.map +1 -1
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Section/Section.js +6 -6
- package/dist/components/Section/Section.js.map +1 -1
- package/dist/components/Span/Span.d.ts.map +1 -1
- package/dist/components/Span/Span.js +4 -4
- package/dist/components/Span/Span.js.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +4 -4
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/layouts/Centering/Centering.d.ts.map +1 -1
- package/dist/layouts/Centering/Centering.js +4 -4
- package/dist/layouts/Centering/Centering.js.map +1 -1
- package/dist/layouts/Columns/Column.d.ts.map +1 -1
- package/dist/layouts/Columns/Column.js +4 -4
- package/dist/layouts/Columns/Column.js.map +1 -1
- package/dist/layouts/Columns/Columns.d.ts.map +1 -1
- package/dist/layouts/Columns/Columns.js +4 -4
- package/dist/layouts/Columns/Columns.js.map +1 -1
- package/dist/layouts/Container/Container.d.ts.map +1 -1
- package/dist/layouts/Container/Container.js +4 -4
- package/dist/layouts/Container/Container.js.map +1 -1
- package/dist/react-minolith.js +128 -126
- package/dist/react-minolith.js.map +1 -1
- package/dist/utilities/emotionStyleUtility.d.ts +11 -0
- package/dist/utilities/emotionStyleUtility.d.ts.map +1 -0
- package/dist/utilities/emotionStyleUtility.js +217 -0
- package/dist/utilities/emotionStyleUtility.js.map +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +6 -4
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts +0 -7
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +474 -684
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,830 +1,620 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`--${
|
|
8
|
-
),
|
|
9
|
-
`--${
|
|
10
|
-
),
|
|
11
|
-
`--${
|
|
12
|
-
),
|
|
13
|
-
`--${
|
|
14
|
-
),
|
|
15
|
-
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-placeholder: ${a.placeholder.startsWith("--") ? `var(${a.placeholder});` : `${a.placeholder};`}`
|
|
16
|
-
)), t;
|
|
1
|
+
const d = "minolith-";
|
|
2
|
+
function h(t, l, e, i) {
|
|
3
|
+
const s = [];
|
|
4
|
+
return l && (l.fore && s.push(
|
|
5
|
+
`--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-fore: ${l.fore.startsWith("--") ? `var(${l.fore});` : `${l.fore};`}`
|
|
6
|
+
), l.back && s.push(
|
|
7
|
+
`--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-back: ${l.back.startsWith("--") ? `var(${l.back});` : `${l.back};`}`
|
|
8
|
+
), l.border && s.push(
|
|
9
|
+
`--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-border: ${l.border.startsWith("--") ? `var(${l.border});` : `${l.border};`}`
|
|
10
|
+
), l.shadow && s.push(
|
|
11
|
+
`--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-shadow: ${l.shadow.startsWith("--") ? `var(${l.shadow});` : `${l.shadow};`}`
|
|
12
|
+
), l.placeholder && s.push(
|
|
13
|
+
`--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-placeholder: ${l.placeholder.startsWith("--") ? `var(${l.placeholder});` : `${l.placeholder};`}`
|
|
14
|
+
)), s;
|
|
17
15
|
}
|
|
18
|
-
function
|
|
16
|
+
function f(t, l, e) {
|
|
19
17
|
const i = [];
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
if (l.default) {
|
|
19
|
+
const s = h(
|
|
20
|
+
t,
|
|
21
|
+
l.default,
|
|
24
22
|
void 0,
|
|
25
|
-
|
|
23
|
+
e
|
|
26
24
|
);
|
|
27
|
-
|
|
25
|
+
s.length > 0 && i.push(...s);
|
|
28
26
|
}
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
if (l.hover) {
|
|
28
|
+
const s = h(
|
|
29
|
+
t,
|
|
30
|
+
l.hover,
|
|
33
31
|
"hover",
|
|
34
|
-
|
|
32
|
+
e
|
|
35
33
|
);
|
|
36
|
-
|
|
34
|
+
s.length > 0 && i.push(...s);
|
|
37
35
|
}
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
if (l.focus) {
|
|
37
|
+
const s = h(
|
|
38
|
+
t,
|
|
39
|
+
l.focus,
|
|
42
40
|
"focus",
|
|
43
|
-
|
|
41
|
+
e
|
|
44
42
|
);
|
|
45
|
-
|
|
43
|
+
s.length > 0 && i.push(...s);
|
|
46
44
|
}
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
if (l.active) {
|
|
46
|
+
const s = h(
|
|
47
|
+
t,
|
|
48
|
+
l.active,
|
|
51
49
|
"active",
|
|
52
|
-
|
|
50
|
+
e
|
|
53
51
|
);
|
|
54
|
-
|
|
52
|
+
s.length > 0 && i.push(...s);
|
|
55
53
|
}
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
if (l.disabled) {
|
|
55
|
+
const s = h(
|
|
56
|
+
t,
|
|
57
|
+
l.disabled,
|
|
60
58
|
"disabled",
|
|
61
|
-
|
|
59
|
+
e
|
|
62
60
|
);
|
|
63
|
-
|
|
61
|
+
s.length > 0 && i.push(...s);
|
|
64
62
|
}
|
|
65
63
|
return i;
|
|
66
64
|
}
|
|
67
|
-
function
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
const i =
|
|
65
|
+
function r(t, l) {
|
|
66
|
+
const e = [];
|
|
67
|
+
if (t.default) {
|
|
68
|
+
const i = f(
|
|
71
69
|
"default",
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
t.default,
|
|
71
|
+
l
|
|
74
72
|
);
|
|
75
|
-
i.length > 0 &&
|
|
73
|
+
i.length > 0 && e.push(...i);
|
|
76
74
|
}
|
|
77
|
-
if (
|
|
78
|
-
const i =
|
|
79
|
-
i.length > 0 &&
|
|
75
|
+
if (t.gray) {
|
|
76
|
+
const i = f("gray", t.gray, l);
|
|
77
|
+
i.length > 0 && e.push(...i);
|
|
80
78
|
}
|
|
81
|
-
if (
|
|
82
|
-
const i =
|
|
83
|
-
i.length > 0 &&
|
|
79
|
+
if (t.red) {
|
|
80
|
+
const i = f("red", t.red, l);
|
|
81
|
+
i.length > 0 && e.push(...i);
|
|
84
82
|
}
|
|
85
|
-
if (
|
|
86
|
-
const i =
|
|
87
|
-
i.length > 0 &&
|
|
83
|
+
if (t.coral) {
|
|
84
|
+
const i = f("coral", t.coral, l);
|
|
85
|
+
i.length > 0 && e.push(...i);
|
|
88
86
|
}
|
|
89
|
-
if (
|
|
90
|
-
const i =
|
|
91
|
-
i.length > 0 &&
|
|
87
|
+
if (t.orange) {
|
|
88
|
+
const i = f("orange", t.orange, l);
|
|
89
|
+
i.length > 0 && e.push(...i);
|
|
92
90
|
}
|
|
93
|
-
if (
|
|
94
|
-
const i =
|
|
95
|
-
i.length > 0 &&
|
|
91
|
+
if (t.yellow) {
|
|
92
|
+
const i = f("yellow", t.yellow, l);
|
|
93
|
+
i.length > 0 && e.push(...i);
|
|
96
94
|
}
|
|
97
|
-
if (
|
|
98
|
-
const i =
|
|
99
|
-
i.length > 0 &&
|
|
95
|
+
if (t.lime) {
|
|
96
|
+
const i = f("lime", t.lime, l);
|
|
97
|
+
i.length > 0 && e.push(...i);
|
|
100
98
|
}
|
|
101
|
-
if (
|
|
102
|
-
const i =
|
|
103
|
-
i.length > 0 &&
|
|
99
|
+
if (t.green) {
|
|
100
|
+
const i = f("green", t.green, l);
|
|
101
|
+
i.length > 0 && e.push(...i);
|
|
104
102
|
}
|
|
105
|
-
if (
|
|
106
|
-
const i =
|
|
107
|
-
i.length > 0 &&
|
|
103
|
+
if (t.cyan) {
|
|
104
|
+
const i = f("cyan", t.cyan, l);
|
|
105
|
+
i.length > 0 && e.push(...i);
|
|
108
106
|
}
|
|
109
|
-
if (
|
|
110
|
-
const i =
|
|
111
|
-
i.length > 0 &&
|
|
107
|
+
if (t.blue) {
|
|
108
|
+
const i = f("blue", t.blue, l);
|
|
109
|
+
i.length > 0 && e.push(...i);
|
|
112
110
|
}
|
|
113
|
-
if (
|
|
114
|
-
const i =
|
|
115
|
-
i.length > 0 &&
|
|
111
|
+
if (t.violet) {
|
|
112
|
+
const i = f("violet", t.violet, l);
|
|
113
|
+
i.length > 0 && e.push(...i);
|
|
116
114
|
}
|
|
117
|
-
if (
|
|
118
|
-
const i =
|
|
115
|
+
if (t.magenta) {
|
|
116
|
+
const i = f(
|
|
119
117
|
"magenta",
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
t.magenta,
|
|
119
|
+
l
|
|
122
120
|
);
|
|
123
|
-
i.length > 0 &&
|
|
121
|
+
i.length > 0 && e.push(...i);
|
|
124
122
|
}
|
|
125
|
-
return
|
|
123
|
+
return e;
|
|
126
124
|
}
|
|
127
|
-
function
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
const
|
|
131
|
-
|
|
125
|
+
function n(t) {
|
|
126
|
+
const l = [];
|
|
127
|
+
if (t.badge) {
|
|
128
|
+
const e = r(
|
|
129
|
+
t.badge,
|
|
132
130
|
"badge"
|
|
133
131
|
);
|
|
134
|
-
|
|
132
|
+
e.length > 0 && l.push(...e);
|
|
135
133
|
}
|
|
136
|
-
if (
|
|
137
|
-
const
|
|
138
|
-
|
|
134
|
+
if (t.accordion) {
|
|
135
|
+
const e = r(
|
|
136
|
+
t.accordion,
|
|
139
137
|
"accordion"
|
|
140
138
|
);
|
|
141
|
-
if (
|
|
142
|
-
const i =
|
|
143
|
-
|
|
139
|
+
if (e.length > 0 && l.push(...e), t.accordion.accordionSummary) {
|
|
140
|
+
const i = r(
|
|
141
|
+
t.accordion.accordionSummary,
|
|
144
142
|
"accordion-summary"
|
|
145
143
|
);
|
|
146
|
-
i.length > 0 &&
|
|
144
|
+
i.length > 0 && l.push(...i);
|
|
147
145
|
}
|
|
148
|
-
if (
|
|
149
|
-
const i =
|
|
150
|
-
|
|
146
|
+
if (t.accordion.accordionDetails) {
|
|
147
|
+
const i = r(
|
|
148
|
+
t.accordion.accordionDetails,
|
|
151
149
|
"accordion-details"
|
|
152
150
|
);
|
|
153
|
-
i.length > 0 &&
|
|
151
|
+
i.length > 0 && l.push(...i);
|
|
154
152
|
}
|
|
155
153
|
}
|
|
156
|
-
if (
|
|
157
|
-
const
|
|
158
|
-
|
|
154
|
+
if (t.button) {
|
|
155
|
+
const e = r(
|
|
156
|
+
t.button,
|
|
159
157
|
"button"
|
|
160
158
|
);
|
|
161
|
-
|
|
159
|
+
e.length > 0 && l.push(...e);
|
|
162
160
|
}
|
|
163
|
-
if (
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
166
|
-
const i =
|
|
167
|
-
|
|
161
|
+
if (t.card) {
|
|
162
|
+
const e = r(t.card, "card");
|
|
163
|
+
if (e.length > 0 && l.push(...e), t.card.cardHeader) {
|
|
164
|
+
const i = r(
|
|
165
|
+
t.card.cardHeader,
|
|
168
166
|
"card-header"
|
|
169
167
|
);
|
|
170
|
-
i.length > 0 &&
|
|
168
|
+
i.length > 0 && l.push(...i);
|
|
171
169
|
}
|
|
172
|
-
if (
|
|
173
|
-
const i =
|
|
174
|
-
|
|
170
|
+
if (t.card.cardBody) {
|
|
171
|
+
const i = r(
|
|
172
|
+
t.card.cardBody,
|
|
175
173
|
"card-body"
|
|
176
174
|
);
|
|
177
|
-
i.length > 0 &&
|
|
175
|
+
i.length > 0 && l.push(...i);
|
|
178
176
|
}
|
|
179
|
-
if (
|
|
180
|
-
const i =
|
|
181
|
-
|
|
177
|
+
if (t.card.cardFooter) {
|
|
178
|
+
const i = r(
|
|
179
|
+
t.card.cardFooter,
|
|
182
180
|
"card-footer"
|
|
183
181
|
);
|
|
184
|
-
i.length > 0 &&
|
|
182
|
+
i.length > 0 && l.push(...i);
|
|
185
183
|
}
|
|
186
184
|
}
|
|
187
|
-
if (
|
|
188
|
-
const
|
|
189
|
-
|
|
185
|
+
if (t.dialogue) {
|
|
186
|
+
const e = r(
|
|
187
|
+
t.dialogue,
|
|
190
188
|
"dialogue"
|
|
191
189
|
);
|
|
192
|
-
if (
|
|
193
|
-
const i =
|
|
194
|
-
|
|
190
|
+
if (e.length > 0 && l.push(...e), t.dialogue.dialogueAvatar) {
|
|
191
|
+
const i = r(
|
|
192
|
+
t.dialogue.dialogueAvatar,
|
|
195
193
|
"dialogue-avatar"
|
|
196
194
|
);
|
|
197
|
-
i.length > 0 &&
|
|
195
|
+
i.length > 0 && l.push(...i);
|
|
198
196
|
}
|
|
199
|
-
if (
|
|
200
|
-
const i =
|
|
201
|
-
|
|
197
|
+
if (t.dialogue.dialogueName) {
|
|
198
|
+
const i = r(
|
|
199
|
+
t.dialogue.dialogueName,
|
|
202
200
|
"dialogue-name"
|
|
203
201
|
);
|
|
204
|
-
i.length > 0 &&
|
|
202
|
+
i.length > 0 && l.push(...i);
|
|
205
203
|
}
|
|
206
|
-
if (
|
|
207
|
-
const i =
|
|
208
|
-
|
|
204
|
+
if (t.dialogue.dialogueMessage) {
|
|
205
|
+
const i = r(
|
|
206
|
+
t.dialogue.dialogueMessage,
|
|
209
207
|
"dialogue-message"
|
|
210
208
|
);
|
|
211
|
-
i.length > 0 &&
|
|
209
|
+
i.length > 0 && l.push(...i);
|
|
212
210
|
}
|
|
213
211
|
}
|
|
214
|
-
if (
|
|
215
|
-
const
|
|
216
|
-
|
|
212
|
+
if (t.header) {
|
|
213
|
+
const e = r(
|
|
214
|
+
t.header,
|
|
217
215
|
"header"
|
|
218
216
|
);
|
|
219
|
-
|
|
217
|
+
e.length > 0 && l.push(...e);
|
|
220
218
|
}
|
|
221
|
-
if (
|
|
222
|
-
const
|
|
223
|
-
|
|
219
|
+
if (t.label) {
|
|
220
|
+
const e = r(
|
|
221
|
+
t.label,
|
|
224
222
|
"label"
|
|
225
223
|
);
|
|
226
|
-
|
|
224
|
+
e.length > 0 && l.push(...e);
|
|
227
225
|
}
|
|
228
|
-
if (
|
|
229
|
-
const
|
|
230
|
-
|
|
226
|
+
if (t.link) {
|
|
227
|
+
const e = r(t.link, "link");
|
|
228
|
+
e.length > 0 && l.push(...e);
|
|
231
229
|
}
|
|
232
|
-
if (
|
|
233
|
-
const
|
|
234
|
-
|
|
230
|
+
if (t.loader) {
|
|
231
|
+
const e = r(
|
|
232
|
+
t.loader,
|
|
235
233
|
"loader"
|
|
236
234
|
);
|
|
237
|
-
|
|
235
|
+
e.length > 0 && l.push(...e);
|
|
238
236
|
}
|
|
239
|
-
if (
|
|
240
|
-
const
|
|
241
|
-
|
|
237
|
+
if (t.message) {
|
|
238
|
+
const e = r(
|
|
239
|
+
t.message,
|
|
242
240
|
"message"
|
|
243
241
|
);
|
|
244
|
-
if (
|
|
245
|
-
const i =
|
|
246
|
-
|
|
242
|
+
if (e.length > 0 && l.push(...e), t.message.messageHeader) {
|
|
243
|
+
const i = r(
|
|
244
|
+
t.message.messageHeader,
|
|
247
245
|
"message-header"
|
|
248
246
|
);
|
|
249
|
-
i.length > 0 &&
|
|
247
|
+
i.length > 0 && l.push(...i);
|
|
250
248
|
}
|
|
251
|
-
if (
|
|
252
|
-
const i =
|
|
253
|
-
|
|
249
|
+
if (t.message.messageBody) {
|
|
250
|
+
const i = r(
|
|
251
|
+
t.message.messageBody,
|
|
254
252
|
"message-body"
|
|
255
253
|
);
|
|
256
|
-
i.length > 0 &&
|
|
254
|
+
i.length > 0 && l.push(...i);
|
|
257
255
|
}
|
|
258
256
|
}
|
|
259
|
-
if (
|
|
260
|
-
const
|
|
261
|
-
|
|
257
|
+
if (t.progress) {
|
|
258
|
+
const e = r(
|
|
259
|
+
t.progress,
|
|
262
260
|
"progress"
|
|
263
261
|
);
|
|
264
|
-
|
|
262
|
+
e.length > 0 && l.push(...e);
|
|
265
263
|
}
|
|
266
|
-
return
|
|
264
|
+
return l;
|
|
267
265
|
}
|
|
268
|
-
function
|
|
269
|
-
const
|
|
270
|
-
return
|
|
266
|
+
function $(t) {
|
|
267
|
+
const l = [], e = o(t), i = y(t), s = c(t);
|
|
268
|
+
return e.length > 0 && l.push(`:root{${e.join("")}}`), i.length > 0 && l.push(`:root{${i.join("")}}`), i.length > 0 && l.push(
|
|
271
269
|
`[data-color-scheme="light"]{${i.join("")}}`
|
|
272
|
-
),
|
|
273
|
-
`[data-color-scheme="dark"]{${
|
|
274
|
-
),
|
|
270
|
+
), s.length > 0 && l.push(
|
|
271
|
+
`[data-color-scheme="dark"]{${s.join("")}}`
|
|
272
|
+
), l;
|
|
275
273
|
}
|
|
276
|
-
function
|
|
277
|
-
const
|
|
278
|
-
if (
|
|
279
|
-
if (
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
`--${
|
|
283
|
-
),
|
|
284
|
-
`--${
|
|
285
|
-
),
|
|
286
|
-
`--${
|
|
287
|
-
),
|
|
288
|
-
`--${
|
|
289
|
-
),
|
|
290
|
-
`--${
|
|
291
|
-
),
|
|
292
|
-
`--${
|
|
293
|
-
),
|
|
294
|
-
`--${
|
|
274
|
+
function o(t) {
|
|
275
|
+
const l = [];
|
|
276
|
+
if (t) {
|
|
277
|
+
if (t.animation) {
|
|
278
|
+
const e = t.animation;
|
|
279
|
+
e.speedHeavey && l.push(
|
|
280
|
+
`--${d}animation-speed-heavy: ${e.speedHeavey};`
|
|
281
|
+
), e.speedSlower && l.push(
|
|
282
|
+
`--${d}animation-speed-slower: ${e.speedSlower};`
|
|
283
|
+
), e.speedSlow && l.push(
|
|
284
|
+
`--${d}animation-speed-slow: ${e.speedSlow};`
|
|
285
|
+
), e.speedNormal && l.push(
|
|
286
|
+
`--${d}animation-speed-normal: ${e.speedNormal};`
|
|
287
|
+
), e.speedfFast && l.push(
|
|
288
|
+
`--${d}animation-speed-fast: ${e.speedfFast};`
|
|
289
|
+
), e.speedfFaster && l.push(
|
|
290
|
+
`--${d}animation-speed-faster: ${e.speedfFaster};`
|
|
291
|
+
), e.speedfFlash && l.push(
|
|
292
|
+
`--${d}animation-speed-flash: ${e.speedfFlash};`
|
|
295
293
|
);
|
|
296
294
|
}
|
|
297
|
-
if (
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
`--${
|
|
301
|
-
),
|
|
302
|
-
`--${
|
|
303
|
-
),
|
|
304
|
-
`--${
|
|
305
|
-
),
|
|
306
|
-
`--${
|
|
307
|
-
),
|
|
308
|
-
`--${
|
|
309
|
-
),
|
|
310
|
-
`--${
|
|
311
|
-
),
|
|
312
|
-
`--${
|
|
313
|
-
),
|
|
314
|
-
`--${
|
|
295
|
+
if (t.border) {
|
|
296
|
+
const e = t.border;
|
|
297
|
+
e.borderWidthXThin && l.push(
|
|
298
|
+
`--${d}border-width-xthin: ${e.borderWidthXThin};`
|
|
299
|
+
), e.borderWidthThin && l.push(
|
|
300
|
+
`--${d}border-width-thin: ${e.borderWidthThin};`
|
|
301
|
+
), e.borderWidthMedium && l.push(
|
|
302
|
+
`--${d}border-width-medium: ${e.borderWidthMedium};`
|
|
303
|
+
), e.borderWidthThick && l.push(
|
|
304
|
+
`--${d}border-width-thick: ${e.borderWidthThick};`
|
|
305
|
+
), e.borderWidthXThick && l.push(
|
|
306
|
+
`--${d}border-width-xthick: ${e.borderWidthXThick};`
|
|
307
|
+
), e.borderRadiusSmall && l.push(
|
|
308
|
+
`--${d}border-radius-small: ${e.borderRadiusSmall};`
|
|
309
|
+
), e.borderRadiusMedium && l.push(
|
|
310
|
+
`--${d}border-radius-medium: ${e.borderRadiusMedium};`
|
|
311
|
+
), e.borderRadiusLarge && l.push(
|
|
312
|
+
`--${d}border-radius-large: ${e.borderRadiusLarge};`
|
|
315
313
|
);
|
|
316
314
|
}
|
|
317
|
-
if (
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
`--${
|
|
323
|
-
),
|
|
324
|
-
`--${
|
|
315
|
+
if (t.color) {
|
|
316
|
+
const e = t.color, i = (s, a, g) => {
|
|
317
|
+
if (g) {
|
|
318
|
+
const u = `${g.lightness}% ${g.chroma} ${g.hue}`;
|
|
319
|
+
l.push(
|
|
320
|
+
`--${d}color-${s}-${a}-oklch: ${u};`
|
|
321
|
+
), l.push(
|
|
322
|
+
`--${d}color-${s}-${a}: oklch(${u});`
|
|
325
323
|
);
|
|
326
324
|
}
|
|
327
325
|
};
|
|
328
|
-
if (
|
|
329
|
-
const
|
|
330
|
-
i(
|
|
326
|
+
if (e.gray) {
|
|
327
|
+
const s = e.gray, a = "gray";
|
|
328
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
331
329
|
}
|
|
332
|
-
if (
|
|
333
|
-
const
|
|
334
|
-
i(
|
|
330
|
+
if (e.red) {
|
|
331
|
+
const s = e.red, a = "red";
|
|
332
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
335
333
|
}
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
i(
|
|
334
|
+
if (e.coral) {
|
|
335
|
+
const s = e.coral, a = "coral";
|
|
336
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
339
337
|
}
|
|
340
|
-
if (
|
|
341
|
-
const
|
|
342
|
-
i(
|
|
338
|
+
if (e.orange) {
|
|
339
|
+
const s = e.orange, a = "orange";
|
|
340
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
343
341
|
}
|
|
344
|
-
if (
|
|
345
|
-
const
|
|
346
|
-
i(
|
|
342
|
+
if (e.yellow) {
|
|
343
|
+
const s = e.yellow, a = "yellow";
|
|
344
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
347
345
|
}
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
i(
|
|
346
|
+
if (e.lime) {
|
|
347
|
+
const s = e.lime, a = "lime";
|
|
348
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
351
349
|
}
|
|
352
|
-
if (
|
|
353
|
-
const
|
|
354
|
-
i(
|
|
350
|
+
if (e.green) {
|
|
351
|
+
const s = e.green, a = "green";
|
|
352
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
355
353
|
}
|
|
356
|
-
if (
|
|
357
|
-
const
|
|
358
|
-
i(
|
|
354
|
+
if (e.cyan) {
|
|
355
|
+
const s = e.cyan, a = "cyan";
|
|
356
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
359
357
|
}
|
|
360
|
-
if (
|
|
361
|
-
const
|
|
362
|
-
i(
|
|
358
|
+
if (e.blue) {
|
|
359
|
+
const s = e.blue, a = "blue";
|
|
360
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
363
361
|
}
|
|
364
|
-
if (
|
|
365
|
-
const
|
|
366
|
-
i(
|
|
362
|
+
if (e.violet) {
|
|
363
|
+
const s = e.violet, a = "violet";
|
|
364
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
367
365
|
}
|
|
368
|
-
if (
|
|
369
|
-
const
|
|
370
|
-
i(
|
|
366
|
+
if (e.magenta) {
|
|
367
|
+
const s = e.magenta, a = "magenta";
|
|
368
|
+
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
371
369
|
}
|
|
372
370
|
}
|
|
373
|
-
if (
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
`--${
|
|
377
|
-
),
|
|
378
|
-
`--${
|
|
379
|
-
),
|
|
380
|
-
`--${
|
|
381
|
-
),
|
|
382
|
-
`--${
|
|
371
|
+
if (t.miscellaneous) {
|
|
372
|
+
const e = t.miscellaneous;
|
|
373
|
+
e.zIndexTabula && l.push(
|
|
374
|
+
`--${d}z-index-tabula: ${e.zIndexTabula};`
|
|
375
|
+
), e.zIndexModal && l.push(
|
|
376
|
+
`--${d}z-index-modal: ${e.zIndexModal};`
|
|
377
|
+
), e.zIndexModalContent && l.push(
|
|
378
|
+
`--${d}z-index-tabula-content: ${e.zIndexModalContent};`
|
|
379
|
+
), e.zIndexHeaderIsSticky && l.push(
|
|
380
|
+
`--${d}z-index-header-is-sticky: ${e.zIndexHeaderIsSticky};`
|
|
383
381
|
);
|
|
384
382
|
}
|
|
385
|
-
if (
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
`--${
|
|
389
|
-
),
|
|
390
|
-
`--${
|
|
391
|
-
),
|
|
392
|
-
`--${
|
|
393
|
-
),
|
|
394
|
-
`--${
|
|
395
|
-
),
|
|
396
|
-
`--${
|
|
397
|
-
),
|
|
398
|
-
`--${
|
|
399
|
-
)),
|
|
400
|
-
`--${
|
|
401
|
-
),
|
|
402
|
-
`--${
|
|
403
|
-
),
|
|
404
|
-
`--${
|
|
405
|
-
),
|
|
406
|
-
`--${
|
|
407
|
-
),
|
|
408
|
-
`--${
|
|
409
|
-
),
|
|
410
|
-
`--${
|
|
411
|
-
),
|
|
412
|
-
`--${
|
|
413
|
-
),
|
|
414
|
-
`--${
|
|
415
|
-
),
|
|
416
|
-
`--${
|
|
417
|
-
),
|
|
418
|
-
`--${
|
|
419
|
-
)),
|
|
420
|
-
`--${
|
|
421
|
-
),
|
|
422
|
-
`--${
|
|
423
|
-
),
|
|
424
|
-
`--${
|
|
425
|
-
),
|
|
426
|
-
`--${
|
|
427
|
-
),
|
|
428
|
-
`--${
|
|
383
|
+
if (t.typography) {
|
|
384
|
+
const e = t.typography;
|
|
385
|
+
e.fontFamily && (e.fontFamily.sansSerif && l.push(
|
|
386
|
+
`--${d}font-family-sans-serif: ${e.fontFamily.sansSerif};`
|
|
387
|
+
), e.fontFamily.serif && l.push(
|
|
388
|
+
`--${d}font-family-serif: ${e.fontFamily.serif};`
|
|
389
|
+
), e.fontFamily.monospace && l.push(
|
|
390
|
+
`--${d}font-family-monospace: ${e.fontFamily.monospace};`
|
|
391
|
+
), e.fontFamily.main && l.push(
|
|
392
|
+
`--${d}font-family-main: ${e.fontFamily.main};`
|
|
393
|
+
), e.fontFamily.heading && l.push(
|
|
394
|
+
`--${d}font-family-heading: ${e.fontFamily.heading};`
|
|
395
|
+
), e.fontFamily.code && l.push(
|
|
396
|
+
`--${d}font-family-code: ${e.fontFamily.code};`
|
|
397
|
+
)), e.fontSize && (e.fontSize.xsmall && l.push(
|
|
398
|
+
`--${d}font-size-xsmall: ${e.fontSize.xsmall};`
|
|
399
|
+
), e.fontSize.small && l.push(
|
|
400
|
+
`--${d}font-size-small: ${e.fontSize.small};`
|
|
401
|
+
), e.fontSize.normal && l.push(
|
|
402
|
+
`--${d}font-size-normal: ${e.fontSize.normal};`
|
|
403
|
+
), e.fontSize.medium && l.push(
|
|
404
|
+
`--${d}font-size-medium: ${e.fontSize.medium};`
|
|
405
|
+
), e.fontSize.large && l.push(
|
|
406
|
+
`--${d}font-size-large: ${e.fontSize.large};`
|
|
407
|
+
), e.fontSize.xlarge && l.push(
|
|
408
|
+
`--${d}font-size-xlarge: ${e.fontSize.xlarge};`
|
|
409
|
+
), e.fontSize.xxlarge && l.push(
|
|
410
|
+
`--${d}font-size-xxlarge: ${e.fontSize.xxlarge};`
|
|
411
|
+
), e.fontSize.xxxlarge && l.push(
|
|
412
|
+
`--${d}font-size-xxxlarge: ${e.fontSize.xxxlarge};`
|
|
413
|
+
), e.fontSize.xxxxlarge && l.push(
|
|
414
|
+
`--${d}font-size-xxxxlarge: ${e.fontSize.xxxxlarge};`
|
|
415
|
+
), e.fontSize.xxxxxlarge && l.push(
|
|
416
|
+
`--${d}font-size-xxxxxlarge: ${e.fontSize.xxxxxlarge};`
|
|
417
|
+
)), e.fontWeight && (e.fontWeight.light && l.push(
|
|
418
|
+
`--${d}font-weight-light: ${e.fontWeight.light};`
|
|
419
|
+
), e.fontWeight.normal && l.push(
|
|
420
|
+
`--${d}font-weight-normal: ${e.fontWeight.normal};`
|
|
421
|
+
), e.fontWeight.medium && l.push(
|
|
422
|
+
`--${d}font-weight-medium: ${e.fontWeight.medium};`
|
|
423
|
+
), e.fontWeight.semibold && l.push(
|
|
424
|
+
`--${d}font-weight-semibold: ${e.fontWeight.semibold};`
|
|
425
|
+
), e.fontWeight.bold && l.push(
|
|
426
|
+
`--${d}font-weight-bold: ${e.fontWeight.bold};`
|
|
429
427
|
));
|
|
430
428
|
}
|
|
431
|
-
if (
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
434
|
-
const i =
|
|
435
|
-
i.breadcrumbDivider &&
|
|
436
|
-
`--${
|
|
429
|
+
if (t.components) {
|
|
430
|
+
const e = t.components;
|
|
431
|
+
if (e.breadcrumbs) {
|
|
432
|
+
const i = e.breadcrumbs;
|
|
433
|
+
i.breadcrumbDivider && l.push(
|
|
434
|
+
`--${d}breadcrumb-divider: ${i.breadcrumbDivider};`
|
|
437
435
|
);
|
|
438
436
|
}
|
|
439
|
-
if (
|
|
440
|
-
const i =
|
|
441
|
-
i.paddingX &&
|
|
442
|
-
`--${
|
|
443
|
-
), i.paddingY &&
|
|
444
|
-
`--${
|
|
437
|
+
if (e.button) {
|
|
438
|
+
const i = e.button;
|
|
439
|
+
i.paddingX && l.push(
|
|
440
|
+
`--${d}button-padding-x: ${i.paddingX};`
|
|
441
|
+
), i.paddingY && l.push(
|
|
442
|
+
`--${d}button-padding-y: ${i.paddingY};`
|
|
445
443
|
);
|
|
446
444
|
}
|
|
447
|
-
if (
|
|
448
|
-
const i =
|
|
449
|
-
i.avatarSizeDefault &&
|
|
450
|
-
`--${
|
|
451
|
-
), i.avatarSizeSmall &&
|
|
452
|
-
`--${
|
|
453
|
-
), i.avatarSizeLarge &&
|
|
454
|
-
`--${
|
|
455
|
-
), i.avatarTopOffset &&
|
|
456
|
-
`--${
|
|
457
|
-
), i.nameFontSize && (i.nameFontSize.includes("rem"),
|
|
458
|
-
`--${
|
|
459
|
-
)), i.namePaddingX &&
|
|
460
|
-
`--${
|
|
461
|
-
), i.namePaddingY &&
|
|
462
|
-
`--${
|
|
463
|
-
), i.messageArrowHeight &&
|
|
464
|
-
`--${
|
|
465
|
-
), i.messageArrowWidth &&
|
|
466
|
-
`--${
|
|
467
|
-
), i.messageInnerPaddingX &&
|
|
468
|
-
`--${
|
|
469
|
-
), i.messageInnerPaddingY &&
|
|
470
|
-
`--${
|
|
445
|
+
if (e.dialogue) {
|
|
446
|
+
const i = e.dialogue;
|
|
447
|
+
i.avatarSizeDefault && l.push(
|
|
448
|
+
`--${d}dialogue-avatar-size-default: ${i.avatarSizeDefault};`
|
|
449
|
+
), i.avatarSizeSmall && l.push(
|
|
450
|
+
`--${d}dialogue-avatar-size-small: ${i.avatarSizeSmall};`
|
|
451
|
+
), i.avatarSizeLarge && l.push(
|
|
452
|
+
`--${d}dialogue-avatar-size-large: ${i.avatarSizeLarge};`
|
|
453
|
+
), i.avatarTopOffset && l.push(
|
|
454
|
+
`--${d}dialogue-avatar-top-offset: ${i.avatarTopOffset};`
|
|
455
|
+
), i.nameFontSize && (i.nameFontSize.includes("rem"), l.push(
|
|
456
|
+
`--${d}dialogue-name-font-size: ${i.nameFontSize};`
|
|
457
|
+
)), i.namePaddingX && l.push(
|
|
458
|
+
`--${d}dialogue-name-padding-x: ${i.namePaddingX};`
|
|
459
|
+
), i.namePaddingY && l.push(
|
|
460
|
+
`--${d}dialogue-name-padding-y: ${i.namePaddingY};`
|
|
461
|
+
), i.messageArrowHeight && l.push(
|
|
462
|
+
`--${d}dialogue-messege-arrow-height: ${i.messageArrowHeight};`
|
|
463
|
+
), i.messageArrowWidth && l.push(
|
|
464
|
+
`--${d}dialogue-messege-arrow-width: ${i.messageArrowWidth};`
|
|
465
|
+
), i.messageInnerPaddingX && l.push(
|
|
466
|
+
`--${d}dialogue-message-inner-padding-x: ${i.messageInnerPaddingX};`
|
|
467
|
+
), i.messageInnerPaddingY && l.push(
|
|
468
|
+
`--${d}dialogue-message-inner-padding-y: ${i.messageInnerPaddingY};`
|
|
471
469
|
);
|
|
472
470
|
}
|
|
473
|
-
if (
|
|
474
|
-
const i =
|
|
475
|
-
i.backdropFilter &&
|
|
476
|
-
`--${
|
|
477
|
-
), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ?
|
|
478
|
-
`--${
|
|
479
|
-
) :
|
|
480
|
-
`--${
|
|
481
|
-
)), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ?
|
|
482
|
-
`--${
|
|
483
|
-
) :
|
|
484
|
-
`--${
|
|
471
|
+
if (e.header) {
|
|
472
|
+
const i = e.header;
|
|
473
|
+
i.backdropFilter && l.push(
|
|
474
|
+
`--${d}header-backdrop-filter: ${i.backdropFilter};`
|
|
475
|
+
), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ? l.push(
|
|
476
|
+
`--${d}header-z-index-is-sticky: "auto";`
|
|
477
|
+
) : l.push(
|
|
478
|
+
`--${d}header-z-index-is-sticky: ${i.zIndexIsSticky};`
|
|
479
|
+
)), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ? l.push(
|
|
480
|
+
`--${d}header-z-index-is-fixed: "auto";`
|
|
481
|
+
) : l.push(
|
|
482
|
+
`--${d}header-z-index-is-fixed: ${i.zIndexIsFixed};`
|
|
485
483
|
));
|
|
486
484
|
}
|
|
487
|
-
if (
|
|
488
|
-
const i =
|
|
489
|
-
i.fontFamily &&
|
|
490
|
-
`--${
|
|
485
|
+
if (e.heading) {
|
|
486
|
+
const i = e.heading;
|
|
487
|
+
i.fontFamily && l.push(
|
|
488
|
+
`--${d}font-family-heading: ${i.fontFamily};`
|
|
491
489
|
);
|
|
492
490
|
}
|
|
493
491
|
}
|
|
494
492
|
}
|
|
495
|
-
return
|
|
493
|
+
return l;
|
|
496
494
|
}
|
|
497
|
-
function
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
const
|
|
501
|
-
if (
|
|
502
|
-
if (
|
|
503
|
-
const i =
|
|
504
|
-
i.length > 0 &&
|
|
505
|
-
}
|
|
506
|
-
if (
|
|
507
|
-
const i =
|
|
508
|
-
i.length > 0 &&
|
|
509
|
-
}
|
|
510
|
-
if (
|
|
511
|
-
const i =
|
|
512
|
-
i.length > 0 &&
|
|
513
|
-
}
|
|
514
|
-
if (
|
|
515
|
-
const i =
|
|
516
|
-
i.length > 0 &&
|
|
517
|
-
}
|
|
518
|
-
if (
|
|
519
|
-
const i =
|
|
520
|
-
i.length > 0 &&
|
|
521
|
-
}
|
|
522
|
-
if (
|
|
523
|
-
const i =
|
|
524
|
-
i.length > 0 &&
|
|
525
|
-
}
|
|
526
|
-
if (
|
|
527
|
-
const i =
|
|
528
|
-
i.length > 0 &&
|
|
529
|
-
}
|
|
530
|
-
if (
|
|
531
|
-
const i =
|
|
532
|
-
i.length > 0 &&
|
|
533
|
-
}
|
|
534
|
-
if (
|
|
535
|
-
const i =
|
|
536
|
-
i.length > 0 &&
|
|
537
|
-
}
|
|
538
|
-
if (
|
|
539
|
-
const i =
|
|
540
|
-
i.length > 0 &&
|
|
541
|
-
}
|
|
542
|
-
if (
|
|
543
|
-
const i =
|
|
544
|
-
i.length > 0 &&
|
|
545
|
-
}
|
|
546
|
-
if (
|
|
547
|
-
const i =
|
|
548
|
-
|
|
495
|
+
function y(t) {
|
|
496
|
+
const l = [];
|
|
497
|
+
if (t && t.color) {
|
|
498
|
+
const e = t.color;
|
|
499
|
+
if (e.light) {
|
|
500
|
+
if (e.light.default) {
|
|
501
|
+
const i = f("default", e.light.default);
|
|
502
|
+
i.length > 0 && l.push(...i);
|
|
503
|
+
}
|
|
504
|
+
if (e.light.gray) {
|
|
505
|
+
const i = f("gray", e.light.gray);
|
|
506
|
+
i.length > 0 && l.push(...i);
|
|
507
|
+
}
|
|
508
|
+
if (e.light.red) {
|
|
509
|
+
const i = f("red", e.light.red);
|
|
510
|
+
i.length > 0 && l.push(...i);
|
|
511
|
+
}
|
|
512
|
+
if (e.light.coral) {
|
|
513
|
+
const i = f("coral", e.light.coral);
|
|
514
|
+
i.length > 0 && l.push(...i);
|
|
515
|
+
}
|
|
516
|
+
if (e.light.orange) {
|
|
517
|
+
const i = f("orange", e.light.orange);
|
|
518
|
+
i.length > 0 && l.push(...i);
|
|
519
|
+
}
|
|
520
|
+
if (e.light.yellow) {
|
|
521
|
+
const i = f("yellow", e.light.yellow);
|
|
522
|
+
i.length > 0 && l.push(...i);
|
|
523
|
+
}
|
|
524
|
+
if (e.light.lime) {
|
|
525
|
+
const i = f("lime", e.light.lime);
|
|
526
|
+
i.length > 0 && l.push(...i);
|
|
527
|
+
}
|
|
528
|
+
if (e.light.green) {
|
|
529
|
+
const i = f("green", e.light.green);
|
|
530
|
+
i.length > 0 && l.push(...i);
|
|
531
|
+
}
|
|
532
|
+
if (e.light.cyan) {
|
|
533
|
+
const i = f("cyan", e.light.cyan);
|
|
534
|
+
i.length > 0 && l.push(...i);
|
|
535
|
+
}
|
|
536
|
+
if (e.light.blue) {
|
|
537
|
+
const i = f("blue", e.light.blue);
|
|
538
|
+
i.length > 0 && l.push(...i);
|
|
539
|
+
}
|
|
540
|
+
if (e.light.violet) {
|
|
541
|
+
const i = f("violet", e.light.violet);
|
|
542
|
+
i.length > 0 && l.push(...i);
|
|
543
|
+
}
|
|
544
|
+
if (e.light.components) {
|
|
545
|
+
const i = e.light.components, s = n(i);
|
|
546
|
+
s.length > 0 && l.push(...s);
|
|
549
547
|
}
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
|
-
return
|
|
550
|
+
return l;
|
|
553
551
|
}
|
|
554
|
-
function
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
const
|
|
558
|
-
if (
|
|
559
|
-
if (
|
|
560
|
-
const i =
|
|
561
|
-
i.length > 0 &&
|
|
562
|
-
}
|
|
563
|
-
if (
|
|
564
|
-
const i =
|
|
565
|
-
i.length > 0 &&
|
|
566
|
-
}
|
|
567
|
-
if (
|
|
568
|
-
const i =
|
|
569
|
-
i.length > 0 &&
|
|
570
|
-
}
|
|
571
|
-
if (
|
|
572
|
-
const i =
|
|
573
|
-
i.length > 0 &&
|
|
574
|
-
}
|
|
575
|
-
if (
|
|
576
|
-
const i =
|
|
577
|
-
i.length > 0 &&
|
|
578
|
-
}
|
|
579
|
-
if (
|
|
580
|
-
const i =
|
|
581
|
-
i.length > 0 &&
|
|
582
|
-
}
|
|
583
|
-
if (
|
|
584
|
-
const i =
|
|
585
|
-
i.length > 0 &&
|
|
586
|
-
}
|
|
587
|
-
if (
|
|
588
|
-
const i =
|
|
589
|
-
i.length > 0 &&
|
|
590
|
-
}
|
|
591
|
-
if (
|
|
592
|
-
const i =
|
|
593
|
-
i.length > 0 &&
|
|
594
|
-
}
|
|
595
|
-
if (
|
|
596
|
-
const i =
|
|
597
|
-
i.length > 0 &&
|
|
598
|
-
}
|
|
599
|
-
if (
|
|
600
|
-
const i =
|
|
601
|
-
i.length > 0 &&
|
|
602
|
-
}
|
|
603
|
-
if (
|
|
604
|
-
const i =
|
|
605
|
-
i.length > 0 &&
|
|
606
|
-
}
|
|
607
|
-
if (
|
|
608
|
-
const i =
|
|
609
|
-
|
|
552
|
+
function c(t) {
|
|
553
|
+
const l = [];
|
|
554
|
+
if (t && t.color) {
|
|
555
|
+
const e = t.color;
|
|
556
|
+
if (e.dark) {
|
|
557
|
+
if (e.dark.default) {
|
|
558
|
+
const i = f("default", e.dark.default);
|
|
559
|
+
i.length > 0 && l.push(...i);
|
|
560
|
+
}
|
|
561
|
+
if (e.dark.gray) {
|
|
562
|
+
const i = f("gray", e.dark.gray);
|
|
563
|
+
i.length > 0 && l.push(...i);
|
|
564
|
+
}
|
|
565
|
+
if (e.dark.red) {
|
|
566
|
+
const i = f("red", e.dark.red);
|
|
567
|
+
i.length > 0 && l.push(...i);
|
|
568
|
+
}
|
|
569
|
+
if (e.dark.coral) {
|
|
570
|
+
const i = f("coral", e.dark.coral);
|
|
571
|
+
i.length > 0 && l.push(...i);
|
|
572
|
+
}
|
|
573
|
+
if (e.dark.orange) {
|
|
574
|
+
const i = f("orange", e.dark.orange);
|
|
575
|
+
i.length > 0 && l.push(...i);
|
|
576
|
+
}
|
|
577
|
+
if (e.dark.yellow) {
|
|
578
|
+
const i = f("yellow", e.dark.yellow);
|
|
579
|
+
i.length > 0 && l.push(...i);
|
|
580
|
+
}
|
|
581
|
+
if (e.dark.lime) {
|
|
582
|
+
const i = f("lime", e.dark.lime);
|
|
583
|
+
i.length > 0 && l.push(...i);
|
|
584
|
+
}
|
|
585
|
+
if (e.dark.green) {
|
|
586
|
+
const i = f("green", e.dark.green);
|
|
587
|
+
i.length > 0 && l.push(...i);
|
|
588
|
+
}
|
|
589
|
+
if (e.dark.cyan) {
|
|
590
|
+
const i = f("cyan", e.dark.cyan);
|
|
591
|
+
i.length > 0 && l.push(...i);
|
|
592
|
+
}
|
|
593
|
+
if (e.dark.blue) {
|
|
594
|
+
const i = f("blue", e.dark.blue);
|
|
595
|
+
i.length > 0 && l.push(...i);
|
|
596
|
+
}
|
|
597
|
+
if (e.dark.violet) {
|
|
598
|
+
const i = f("violet", e.dark.violet);
|
|
599
|
+
i.length > 0 && l.push(...i);
|
|
600
|
+
}
|
|
601
|
+
if (e.dark.magenta) {
|
|
602
|
+
const i = f("magenta", e.dark.magenta);
|
|
603
|
+
i.length > 0 && l.push(...i);
|
|
604
|
+
}
|
|
605
|
+
if (e.dark.components) {
|
|
606
|
+
const i = e.dark.components, s = n(i);
|
|
607
|
+
s.length > 0 && l.push(...s);
|
|
610
608
|
}
|
|
611
609
|
}
|
|
612
610
|
}
|
|
613
|
-
return
|
|
611
|
+
return l;
|
|
614
612
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
hover: w(e.hover),
|
|
619
|
-
focus: w(e.focus),
|
|
620
|
-
active: w(e.active),
|
|
621
|
-
disabled: w(e.disabled)
|
|
622
|
-
} : {
|
|
623
|
-
default: x(e.default),
|
|
624
|
-
hover: x(e.hover),
|
|
625
|
-
focus: x(e.focus),
|
|
626
|
-
active: x(e.active),
|
|
627
|
-
disabled: x(e.disabled)
|
|
628
|
-
} : {
|
|
629
|
-
default: void 0,
|
|
630
|
-
hover: void 0,
|
|
631
|
-
focus: void 0,
|
|
632
|
-
active: void 0,
|
|
633
|
-
disabled: void 0
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
function x(e) {
|
|
637
|
-
if (e)
|
|
638
|
-
return e.name === "rainbow" ? "transparent !important" : `var(--${o}color-${e.name}-${e.lightness === 5 ? "05" : e.lightness}) !important`;
|
|
639
|
-
}
|
|
640
|
-
function w(e) {
|
|
641
|
-
if (e && e.name !== "rainbow")
|
|
642
|
-
return `linear-gradient(
|
|
643
|
-
transparent 66.66%,
|
|
644
|
-
var(--${o}color-${e.name}-${e.lightness}) 33.33%
|
|
645
|
-
)`;
|
|
646
|
-
}
|
|
647
|
-
function m(e) {
|
|
648
|
-
return e.foreColor || e.backColor || e.highlighter || e.borderColor ? {
|
|
649
|
-
color: e.foreColor,
|
|
650
|
-
backgroundColor: e.backColor,
|
|
651
|
-
backgroundImage: e.highlighter,
|
|
652
|
-
borderColor: e.borderColor,
|
|
653
|
-
borderTopColor: e.borderTopColor,
|
|
654
|
-
borderRightColor: e.borderRightColor,
|
|
655
|
-
borderBottomColor: e.borderBottomColor,
|
|
656
|
-
borderLeftColor: e.borderLeftColor
|
|
657
|
-
} : void 0;
|
|
658
|
-
}
|
|
659
|
-
function W({
|
|
660
|
-
foreColor: e,
|
|
661
|
-
backColor: a,
|
|
662
|
-
highlighter: r,
|
|
663
|
-
borderColor: i,
|
|
664
|
-
borderTopColor: t,
|
|
665
|
-
borderRightColor: d,
|
|
666
|
-
borderBottomColor: f,
|
|
667
|
-
borderLeftColor: s
|
|
668
|
-
}) {
|
|
669
|
-
return (e || a || r || i || t || d || f || s) && {
|
|
670
|
-
color: e && e.default,
|
|
671
|
-
backgroundColor: a && a.default,
|
|
672
|
-
backgroundImage: r && r.default,
|
|
673
|
-
borderColor: i && i.default,
|
|
674
|
-
borderTopColor: t && t.default,
|
|
675
|
-
borderRightColor: d && d.default,
|
|
676
|
-
borderBottomColor: f && f.default,
|
|
677
|
-
borderLeftColor: s && s.default,
|
|
678
|
-
":hover": m({
|
|
679
|
-
foreColor: e && e.hover,
|
|
680
|
-
backColor: a && a.hover,
|
|
681
|
-
highlighter: r && r.hover,
|
|
682
|
-
borderColor: i && i.hover,
|
|
683
|
-
borderTopColor: t && t.hover,
|
|
684
|
-
borderRightColor: d && d.hover,
|
|
685
|
-
borderBottomColor: f && f.hover,
|
|
686
|
-
borderLeftColor: s && s.hover
|
|
687
|
-
}),
|
|
688
|
-
":focus": m({
|
|
689
|
-
foreColor: e && e.focus,
|
|
690
|
-
backColor: a && a.focus,
|
|
691
|
-
highlighter: r && r.focus,
|
|
692
|
-
borderColor: i && i.focus,
|
|
693
|
-
borderTopColor: t && t.focus,
|
|
694
|
-
borderRightColor: d && d.focus,
|
|
695
|
-
borderBottomColor: f && f.focus,
|
|
696
|
-
borderLeftColor: s && s.focus
|
|
697
|
-
}),
|
|
698
|
-
":active": m({
|
|
699
|
-
foreColor: e && e.active,
|
|
700
|
-
backColor: a && a.active,
|
|
701
|
-
highlighter: r && r.active,
|
|
702
|
-
borderColor: i && i.active,
|
|
703
|
-
borderTopColor: t && t.active,
|
|
704
|
-
borderRightColor: d && d.active,
|
|
705
|
-
borderBottomColor: f && f.active,
|
|
706
|
-
borderLeftColor: s && s.active
|
|
707
|
-
}),
|
|
708
|
-
"[disabled]": m({
|
|
709
|
-
foreColor: e && e.disabled,
|
|
710
|
-
backColor: a && a.disabled,
|
|
711
|
-
highlighter: r && r.disabled,
|
|
712
|
-
borderColor: i && i.disabled,
|
|
713
|
-
borderTopColor: t && t.disabled,
|
|
714
|
-
borderRightColor: d && d.disabled,
|
|
715
|
-
borderBottomColor: f && f.disabled,
|
|
716
|
-
borderLeftColor: s && s.disabled
|
|
717
|
-
})
|
|
718
|
-
};
|
|
719
|
-
}
|
|
720
|
-
function p(e) {
|
|
721
|
-
if (Object.keys(e).filter(
|
|
722
|
-
(k) => k === "fore" || k === "back" || k === "highlighter" || k === "border" || k === "positioning" || k === "sizing" || k === "spacing"
|
|
723
|
-
).length === 0)
|
|
724
|
-
return e.css ? e.css : void 0;
|
|
725
|
-
const i = e.fore && g(e.fore.color), t = e.fore && e.fore.color && g(e.fore.color.light), d = e.fore && e.fore.color && g(e.fore.color.dark), f = e.fore && e.fore.fontSize ? `var(--${o}font-size-${e.fore.fontSize})` : void 0, s = e.fore && e.fore.fontWeight ? `var(--${o}font-weight-${e.fore.fontWeight})` : void 0, h = e.back && g(e.back.color), B = e.back && e.back.color && g(e.back.color.light), L = e.back && e.back.color && g(e.back.color.dark), c = e.highlighter && g(e.highlighter.color, "highlighter"), T = e.highlighter && e.highlighter.color && g(e.highlighter.color.light, "highlighter"), R = e.highlighter && e.highlighter.color && g(e.highlighter.color.dark, "highlighter"), u = e.border && g(e.border.color), b = e.border && e.border.top && g(e.border.top.color), $ = e.border && e.border.right && g(e.border.right.color), y = e.border && e.border.bottom && g(e.border.bottom.color), v = e.border && e.border.left && g(e.border.left.color), D = e.border && e.border.color && g(e.border.color.light), j = e.border && e.border.top && e.border.top.color && g(e.border.top.color.light), H = e.border && e.border.right && e.border.right.color && g(e.border.right.color.light), M = e.border && e.border.bottom && e.border.bottom.color && g(e.border.bottom.color.light), X = e.border && e.border.left && e.border.left.color && g(e.border.left.color.light), Y = e.border && e.border.color && g(e.border.color.dark), O = e.border && e.border.top && e.border.top.color && g(e.border.top.color.dark), K = e.border && e.border.right && e.border.right.color && g(e.border.right.color.dark), U = e.border && e.border.bottom && e.border.bottom.color && g(e.border.bottom.color.dark), E = e.border && e.border.left && e.border.left.color && g(e.border.left.color.dark), q = m({
|
|
726
|
-
foreColor: i && i.hover,
|
|
727
|
-
backColor: h && h.hover,
|
|
728
|
-
highlighter: c && c.hover,
|
|
729
|
-
borderColor: u && u.hover,
|
|
730
|
-
borderTopColor: b && b.hover,
|
|
731
|
-
borderRightColor: $ && $.hover,
|
|
732
|
-
borderBottomColor: y && y.hover,
|
|
733
|
-
borderLeftColor: v && v.hover
|
|
734
|
-
}), G = m({
|
|
735
|
-
foreColor: i && i.focus,
|
|
736
|
-
backColor: h && h.focus,
|
|
737
|
-
highlighter: c && c.focus,
|
|
738
|
-
borderColor: u && u.focus,
|
|
739
|
-
borderTopColor: b && b.focus,
|
|
740
|
-
borderRightColor: $ && $.focus,
|
|
741
|
-
borderBottomColor: y && y.focus,
|
|
742
|
-
borderLeftColor: v && v.focus
|
|
743
|
-
}), J = m({
|
|
744
|
-
foreColor: i && i.active,
|
|
745
|
-
backColor: h && h.active,
|
|
746
|
-
highlighter: c && c.active,
|
|
747
|
-
borderColor: u && u.active,
|
|
748
|
-
borderTopColor: b && b.active,
|
|
749
|
-
borderRightColor: $ && $.active,
|
|
750
|
-
borderBottomColor: y && y.active,
|
|
751
|
-
borderLeftColor: v && v.active
|
|
752
|
-
}), Q = m({
|
|
753
|
-
foreColor: i && i.disabled,
|
|
754
|
-
backColor: h && h.disabled,
|
|
755
|
-
highlighter: c && c.disabled,
|
|
756
|
-
borderColor: u && u.disabled,
|
|
757
|
-
borderTopColor: b && b.disabled,
|
|
758
|
-
borderRightColor: $ && $.disabled,
|
|
759
|
-
borderBottomColor: y && y.disabled,
|
|
760
|
-
borderLeftColor: v && v.disabled
|
|
761
|
-
}), Z = W({
|
|
762
|
-
foreColor: t,
|
|
763
|
-
backColor: B,
|
|
764
|
-
highlighter: T,
|
|
765
|
-
borderColor: D,
|
|
766
|
-
borderTopColor: j,
|
|
767
|
-
borderRightColor: H,
|
|
768
|
-
borderBottomColor: M,
|
|
769
|
-
borderLeftColor: X
|
|
770
|
-
}), _ = W({
|
|
771
|
-
foreColor: d,
|
|
772
|
-
backColor: L,
|
|
773
|
-
highlighter: R,
|
|
774
|
-
borderColor: Y,
|
|
775
|
-
borderTopColor: O,
|
|
776
|
-
borderRightColor: K,
|
|
777
|
-
borderBottomColor: U,
|
|
778
|
-
borderLeftColor: E
|
|
779
|
-
}), S = A({
|
|
780
|
-
color: i && i.default,
|
|
781
|
-
fontSize: f,
|
|
782
|
-
fontWeight: s,
|
|
783
|
-
backgroundColor: h && h.default,
|
|
784
|
-
backgroundImage: c && c.default,
|
|
785
|
-
borderColor: u && u.default,
|
|
786
|
-
borderCollapse: e.border && e.border.collapse ? e.border.collapse === "collapted" ? "collapse" : "separate" : void 0,
|
|
787
|
-
borderRadius: e.border && e.border.radius ? `var(--${o}border-radius-${e.border.radius})` : void 0,
|
|
788
|
-
borderStyle: e.border && e.border.style ? e.border.style : void 0,
|
|
789
|
-
borderWidth: e.border && e.border.width ? `var(--${o}border-width-${e.border.width})` : void 0,
|
|
790
|
-
borderTopColor: b && b.default,
|
|
791
|
-
borderTopStyle: e.border && e.border.top && e.border.top.style ? e.border.top.style : void 0,
|
|
792
|
-
borderTopWidth: e.border && e.border.top && e.border.top.width ? `var(--${o}border-width-${e.border.top.width})` : void 0,
|
|
793
|
-
borderRightColor: $ && $.default,
|
|
794
|
-
borderRightStyle: e.border && e.border.right && e.border.right.style ? e.border.right.style : void 0,
|
|
795
|
-
borderRightWidth: e.border && e.border.right && e.border.right.width ? `var(--${o}border-width-${e.border.right.width})` : void 0,
|
|
796
|
-
borderBottomColor: y && y.default,
|
|
797
|
-
borderBottomStyle: e.border && e.border.bottom && e.border.bottom.style ? e.border.bottom.style : void 0,
|
|
798
|
-
borderBottomWidth: e.border && e.border.bottom && e.border.bottom.width ? `var(--${o}border-width-${e.border.bottom.width})` : void 0,
|
|
799
|
-
borderLeftColor: v && v.default,
|
|
800
|
-
borderLeftStyle: e.border && e.border.left && e.border.left.style ? e.border.left.style : void 0,
|
|
801
|
-
borderLeftWidth: e.border && e.border.left && e.border.left.width ? `var(--${o}border-width-${e.border.left.width})` : void 0,
|
|
802
|
-
margin: e.spacing && e.spacing.margin ? typeof e.spacing.margin == "number" ? `${e.spacing.margin}rem` : typeof e.spacing.margin == "string" ? e.spacing.margin : void 0 : void 0,
|
|
803
|
-
marginTop: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.top ? typeof e.spacing.margin.top == "number" ? `${e.spacing.margin.top}rem` : e.spacing.margin.top : void 0,
|
|
804
|
-
marginRight: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.right ? typeof e.spacing.margin.right == "number" ? `${e.spacing.margin.right}rem` : e.spacing.margin.right : void 0,
|
|
805
|
-
marginBottom: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.bottom ? typeof e.spacing.margin.bottom == "number" ? `${e.spacing.margin.bottom}rem` : e.spacing.margin.bottom : void 0,
|
|
806
|
-
marginLeft: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.left ? typeof e.spacing.margin.left == "number" ? `${e.spacing.margin.left}rem` : e.spacing.margin.left : void 0,
|
|
807
|
-
padding: e.spacing && e.spacing.padding ? typeof e.spacing.padding == "number" ? `${e.spacing.padding}rem` : typeof e.spacing.padding == "string" ? e.spacing.padding : void 0 : void 0,
|
|
808
|
-
paddingTop: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.top ? typeof e.spacing.padding.top == "number" ? `${e.spacing.padding.top}rem` : e.spacing.padding.top : void 0,
|
|
809
|
-
paddingRight: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.right ? typeof e.spacing.padding.right == "number" ? `${e.spacing.padding.right}rem` : e.spacing.padding.right : void 0,
|
|
810
|
-
paddingBottom: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.bottom ? typeof e.spacing.padding.bottom == "number" ? `${e.spacing.padding.bottom}rem` : e.spacing.padding.bottom : void 0,
|
|
811
|
-
paddingLeft: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.left ? typeof e.spacing.padding.left == "number" ? `${e.spacing.padding.left}rem` : e.spacing.padding.left : void 0,
|
|
812
|
-
":hover": q,
|
|
813
|
-
":focus": G,
|
|
814
|
-
":active": J,
|
|
815
|
-
"[disabled]": Q,
|
|
816
|
-
"@media (prefers-color-scheme: light)": Z,
|
|
817
|
-
"@media (prefers-color-scheme: dark)": _
|
|
818
|
-
});
|
|
819
|
-
return e.css ? P(S, e.css) : S;
|
|
820
|
-
}
|
|
821
|
-
const ti = {
|
|
822
|
-
getMinolithCssVariableStyles: V,
|
|
823
|
-
getRootStyles: I,
|
|
824
|
-
getColorVariable: x,
|
|
825
|
-
getEmotionCss: p
|
|
613
|
+
const p = {
|
|
614
|
+
getMinolithCssVariableStyles: $,
|
|
615
|
+
getRootStyles: o
|
|
826
616
|
};
|
|
827
617
|
export {
|
|
828
|
-
|
|
618
|
+
p as default
|
|
829
619
|
};
|
|
830
620
|
//# sourceMappingURL=minolithStyleUtility.js.map
|