react-minolith 0.0.30 → 1.0.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.
- package/README.md +7 -3
- package/dist/assets/Minolith.css +1 -1
- package/dist/backgrounds/Dot/Dot.d.ts.map +1 -1
- package/dist/backgrounds/Dot/Dot.js +18 -8
- 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 +18 -8
- 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 +16 -6
- 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 +20 -10
- 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 +20 -10
- 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 +14 -13
- package/dist/base/Minolith/Minolith.js.map +1 -1
- package/dist/base/Minolith/Minolith.stories.d.ts.map +1 -1
- package/dist/base/MinolithStatic/MinolithStatic.d.ts.map +1 -1
- package/dist/base/MinolithStatic/MinolithStatic.js +18 -13
- package/dist/base/MinolithStatic/MinolithStatic.js.map +1 -1
- package/dist/base/MinolithStatic/MinolithStatic.stories.d.ts.map +1 -1
- package/dist/base/Tabula/Tabula.d.ts.map +1 -1
- package/dist/base/Tabula/Tabula.js +21 -16
- package/dist/base/Tabula/Tabula.js.map +1 -1
- package/dist/common/models/BaseComponentProps.d.ts +16 -14
- package/dist/common/models/BaseComponentProps.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +21 -11
- 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 +25 -8
- 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 +18 -8
- 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 +26 -9
- 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 +20 -10
- 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 +12 -9
- 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 +13 -10
- 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 +14 -10
- 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 +10 -8
- 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 +24 -7
- 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 +24 -7
- 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 +25 -8
- 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 +24 -7
- 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 +25 -8
- 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 +25 -8
- 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 +27 -8
- 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 +27 -8
- 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 +25 -8
- 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 +25 -8
- 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 +26 -9
- 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 +19 -9
- 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 +18 -8
- 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 +17 -13
- 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 +19 -9
- 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 +62 -17
- 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 +20 -8
- 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 +18 -8
- 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 +19 -9
- 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 +19 -9
- 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 +14 -4
- 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 +17 -12
- 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 +16 -11
- 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 +16 -11
- 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 +18 -8
- 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 +16 -6
- 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 +23 -13
- 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 +23 -13
- 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 +17 -7
- 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 +19 -9
- 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 +18 -8
- 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 +19 -9
- 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 +17 -7
- 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 +25 -8
- 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 +23 -13
- 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 +12 -9
- 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 +18 -8
- 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 +14 -13
- 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 +21 -11
- 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 +19 -9
- 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 +19 -9
- 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 +19 -9
- 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 +20 -10
- 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 +21 -13
- 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 +20 -10
- 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 +19 -9
- package/dist/layouts/Container/Container.js.map +1 -1
- package/dist/react-minolith.d.ts +0 -2
- package/dist/react-minolith.d.ts.map +1 -1
- package/dist/react-minolith.js +127 -131
- package/dist/react-minolith.js.map +1 -1
- package/dist/utilities/classNameUtility.d.ts.map +1 -1
- package/dist/utilities/classNameUtility.js +83 -164
- package/dist/utilities/classNameUtility.js.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts +7 -4
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +684 -476
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +10 -1
- package/dist/assets/MinolithCssVariableStylesProvider.css +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.d.ts +0 -3
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.js +0 -15
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.js.map +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.d.ts +0 -6
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.js +0 -2
- package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.js.map +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/index.d.ts +0 -3
- package/dist/base/MinolithCssVariableStylesProvider/index.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProvider/index.js +0 -5
- package/dist/base/MinolithCssVariableStylesProvider/index.js.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.d.ts +0 -3
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.js +0 -17
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.js.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.d.ts +0 -6
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.js +0 -2
- package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.js.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/index.d.ts +0 -3
- package/dist/base/MinolithCssVariableStylesProviderStatic/index.d.ts.map +0 -1
- package/dist/base/MinolithCssVariableStylesProviderStatic/index.js +0 -5
- package/dist/base/MinolithCssVariableStylesProviderStatic/index.js.map +0 -1
|
@@ -1,622 +1,830 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`--${
|
|
8
|
-
),
|
|
9
|
-
`--${
|
|
10
|
-
),
|
|
11
|
-
`--${
|
|
12
|
-
),
|
|
13
|
-
`--${
|
|
14
|
-
)
|
|
1
|
+
import { css as A } from "@emotion/react";
|
|
2
|
+
import { merge as P } from "lodash";
|
|
3
|
+
const o = "minolith-";
|
|
4
|
+
function z(e, a, r, i) {
|
|
5
|
+
const t = [];
|
|
6
|
+
return a && (a.fore && t.push(
|
|
7
|
+
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-fore: ${a.fore.startsWith("--") ? `var(${a.fore});` : `${a.fore};`}`
|
|
8
|
+
), a.back && t.push(
|
|
9
|
+
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-back: ${a.back.startsWith("--") ? `var(${a.back});` : `${a.back};`}`
|
|
10
|
+
), a.border && t.push(
|
|
11
|
+
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-border: ${a.border.startsWith("--") ? `var(${a.border});` : `${a.border};`}`
|
|
12
|
+
), a.shadow && t.push(
|
|
13
|
+
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-shadow: ${a.shadow.startsWith("--") ? `var(${a.shadow});` : `${a.shadow};`}`
|
|
14
|
+
), a.placeholder && t.push(
|
|
15
|
+
`--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-placeholder: ${a.placeholder.startsWith("--") ? `var(${a.placeholder});` : `${a.placeholder};`}`
|
|
16
|
+
)), t;
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function l(e, a, r) {
|
|
17
19
|
const i = [];
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
if (a.default) {
|
|
21
|
+
const t = z(
|
|
22
|
+
e,
|
|
23
|
+
a.default,
|
|
22
24
|
void 0,
|
|
23
|
-
|
|
25
|
+
r
|
|
24
26
|
);
|
|
25
|
-
|
|
27
|
+
t.length > 0 && i.push(...t);
|
|
26
28
|
}
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
if (a.hover) {
|
|
30
|
+
const t = z(
|
|
31
|
+
e,
|
|
32
|
+
a.hover,
|
|
31
33
|
"hover",
|
|
32
|
-
|
|
34
|
+
r
|
|
33
35
|
);
|
|
34
|
-
|
|
36
|
+
t.length > 0 && i.push(...t);
|
|
35
37
|
}
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
if (a.focus) {
|
|
39
|
+
const t = z(
|
|
40
|
+
e,
|
|
41
|
+
a.focus,
|
|
40
42
|
"focus",
|
|
41
|
-
|
|
43
|
+
r
|
|
42
44
|
);
|
|
43
|
-
|
|
45
|
+
t.length > 0 && i.push(...t);
|
|
44
46
|
}
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
if (a.active) {
|
|
48
|
+
const t = z(
|
|
49
|
+
e,
|
|
50
|
+
a.active,
|
|
49
51
|
"active",
|
|
50
|
-
|
|
52
|
+
r
|
|
51
53
|
);
|
|
52
|
-
|
|
54
|
+
t.length > 0 && i.push(...t);
|
|
53
55
|
}
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if (a.disabled) {
|
|
57
|
+
const t = z(
|
|
58
|
+
e,
|
|
59
|
+
a.disabled,
|
|
58
60
|
"disabled",
|
|
59
|
-
|
|
61
|
+
r
|
|
60
62
|
);
|
|
61
|
-
|
|
63
|
+
t.length > 0 && i.push(...t);
|
|
62
64
|
}
|
|
63
65
|
return i;
|
|
64
66
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const i =
|
|
67
|
+
function n(e, a) {
|
|
68
|
+
const r = [];
|
|
69
|
+
if (e.default) {
|
|
70
|
+
const i = l(
|
|
69
71
|
"default",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
e.default,
|
|
73
|
+
a
|
|
72
74
|
);
|
|
73
|
-
i.length > 0 &&
|
|
75
|
+
i.length > 0 && r.push(...i);
|
|
74
76
|
}
|
|
75
|
-
if (
|
|
76
|
-
const i =
|
|
77
|
-
i.length > 0 &&
|
|
77
|
+
if (e.gray) {
|
|
78
|
+
const i = l("gray", e.gray, a);
|
|
79
|
+
i.length > 0 && r.push(...i);
|
|
78
80
|
}
|
|
79
|
-
if (
|
|
80
|
-
const i =
|
|
81
|
-
i.length > 0 &&
|
|
81
|
+
if (e.red) {
|
|
82
|
+
const i = l("red", e.red, a);
|
|
83
|
+
i.length > 0 && r.push(...i);
|
|
82
84
|
}
|
|
83
|
-
if (
|
|
84
|
-
const i =
|
|
85
|
-
i.length > 0 &&
|
|
85
|
+
if (e.coral) {
|
|
86
|
+
const i = l("coral", e.coral, a);
|
|
87
|
+
i.length > 0 && r.push(...i);
|
|
86
88
|
}
|
|
87
|
-
if (
|
|
88
|
-
const i =
|
|
89
|
-
i.length > 0 &&
|
|
89
|
+
if (e.orange) {
|
|
90
|
+
const i = l("orange", e.orange, a);
|
|
91
|
+
i.length > 0 && r.push(...i);
|
|
90
92
|
}
|
|
91
|
-
if (
|
|
92
|
-
const i =
|
|
93
|
-
i.length > 0 &&
|
|
93
|
+
if (e.yellow) {
|
|
94
|
+
const i = l("yellow", e.yellow, a);
|
|
95
|
+
i.length > 0 && r.push(...i);
|
|
94
96
|
}
|
|
95
|
-
if (
|
|
96
|
-
const i =
|
|
97
|
-
i.length > 0 &&
|
|
97
|
+
if (e.lime) {
|
|
98
|
+
const i = l("lime", e.lime, a);
|
|
99
|
+
i.length > 0 && r.push(...i);
|
|
98
100
|
}
|
|
99
|
-
if (
|
|
100
|
-
const i =
|
|
101
|
-
i.length > 0 &&
|
|
101
|
+
if (e.green) {
|
|
102
|
+
const i = l("green", e.green, a);
|
|
103
|
+
i.length > 0 && r.push(...i);
|
|
102
104
|
}
|
|
103
|
-
if (
|
|
104
|
-
const i =
|
|
105
|
-
i.length > 0 &&
|
|
105
|
+
if (e.cyan) {
|
|
106
|
+
const i = l("cyan", e.cyan, a);
|
|
107
|
+
i.length > 0 && r.push(...i);
|
|
106
108
|
}
|
|
107
|
-
if (
|
|
108
|
-
const i =
|
|
109
|
-
i.length > 0 &&
|
|
109
|
+
if (e.blue) {
|
|
110
|
+
const i = l("blue", e.blue, a);
|
|
111
|
+
i.length > 0 && r.push(...i);
|
|
110
112
|
}
|
|
111
|
-
if (
|
|
112
|
-
const i =
|
|
113
|
-
i.length > 0 &&
|
|
113
|
+
if (e.violet) {
|
|
114
|
+
const i = l("violet", e.violet, a);
|
|
115
|
+
i.length > 0 && r.push(...i);
|
|
114
116
|
}
|
|
115
|
-
if (
|
|
116
|
-
const i =
|
|
117
|
+
if (e.magenta) {
|
|
118
|
+
const i = l(
|
|
117
119
|
"magenta",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
e.magenta,
|
|
121
|
+
a
|
|
120
122
|
);
|
|
121
|
-
i.length > 0 &&
|
|
123
|
+
i.length > 0 && r.push(...i);
|
|
122
124
|
}
|
|
123
|
-
return
|
|
125
|
+
return r;
|
|
124
126
|
}
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
const
|
|
129
|
-
|
|
127
|
+
function F(e) {
|
|
128
|
+
const a = [];
|
|
129
|
+
if (e.badge) {
|
|
130
|
+
const r = n(
|
|
131
|
+
e.badge,
|
|
130
132
|
"badge"
|
|
131
133
|
);
|
|
132
|
-
|
|
134
|
+
r.length > 0 && a.push(...r);
|
|
133
135
|
}
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
|
|
136
|
+
if (e.accordion) {
|
|
137
|
+
const r = n(
|
|
138
|
+
e.accordion,
|
|
137
139
|
"accordion"
|
|
138
140
|
);
|
|
139
|
-
if (
|
|
140
|
-
const i =
|
|
141
|
-
|
|
141
|
+
if (r.length > 0 && a.push(...r), e.accordion.accordionSummary) {
|
|
142
|
+
const i = n(
|
|
143
|
+
e.accordion.accordionSummary,
|
|
142
144
|
"accordion-summary"
|
|
143
145
|
);
|
|
144
|
-
i.length > 0 &&
|
|
146
|
+
i.length > 0 && a.push(...i);
|
|
145
147
|
}
|
|
146
|
-
if (
|
|
147
|
-
const i =
|
|
148
|
-
|
|
148
|
+
if (e.accordion.accordionDetails) {
|
|
149
|
+
const i = n(
|
|
150
|
+
e.accordion.accordionDetails,
|
|
149
151
|
"accordion-details"
|
|
150
152
|
);
|
|
151
|
-
i.length > 0 &&
|
|
153
|
+
i.length > 0 && a.push(...i);
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
|
-
if (
|
|
155
|
-
const
|
|
156
|
-
|
|
156
|
+
if (e.button) {
|
|
157
|
+
const r = n(
|
|
158
|
+
e.button,
|
|
157
159
|
"button"
|
|
158
160
|
);
|
|
159
|
-
|
|
161
|
+
r.length > 0 && a.push(...r);
|
|
160
162
|
}
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const i =
|
|
165
|
-
|
|
163
|
+
if (e.card) {
|
|
164
|
+
const r = n(e.card, "card");
|
|
165
|
+
if (r.length > 0 && a.push(...r), e.card.cardHeader) {
|
|
166
|
+
const i = n(
|
|
167
|
+
e.card.cardHeader,
|
|
166
168
|
"card-header"
|
|
167
169
|
);
|
|
168
|
-
i.length > 0 &&
|
|
170
|
+
i.length > 0 && a.push(...i);
|
|
169
171
|
}
|
|
170
|
-
if (
|
|
171
|
-
const i =
|
|
172
|
-
|
|
172
|
+
if (e.card.cardBody) {
|
|
173
|
+
const i = n(
|
|
174
|
+
e.card.cardBody,
|
|
173
175
|
"card-body"
|
|
174
176
|
);
|
|
175
|
-
i.length > 0 &&
|
|
177
|
+
i.length > 0 && a.push(...i);
|
|
176
178
|
}
|
|
177
|
-
if (
|
|
178
|
-
const i =
|
|
179
|
-
|
|
179
|
+
if (e.card.cardFooter) {
|
|
180
|
+
const i = n(
|
|
181
|
+
e.card.cardFooter,
|
|
180
182
|
"card-footer"
|
|
181
183
|
);
|
|
182
|
-
i.length > 0 &&
|
|
184
|
+
i.length > 0 && a.push(...i);
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
187
|
-
|
|
187
|
+
if (e.dialogue) {
|
|
188
|
+
const r = n(
|
|
189
|
+
e.dialogue,
|
|
188
190
|
"dialogue"
|
|
189
191
|
);
|
|
190
|
-
if (
|
|
191
|
-
const i =
|
|
192
|
-
|
|
192
|
+
if (r.length > 0 && a.push(...r), e.dialogue.dialogueAvatar) {
|
|
193
|
+
const i = n(
|
|
194
|
+
e.dialogue.dialogueAvatar,
|
|
193
195
|
"dialogue-avatar"
|
|
194
196
|
);
|
|
195
|
-
i.length > 0 &&
|
|
197
|
+
i.length > 0 && a.push(...i);
|
|
196
198
|
}
|
|
197
|
-
if (
|
|
198
|
-
const i =
|
|
199
|
-
|
|
199
|
+
if (e.dialogue.dialogueName) {
|
|
200
|
+
const i = n(
|
|
201
|
+
e.dialogue.dialogueName,
|
|
200
202
|
"dialogue-name"
|
|
201
203
|
);
|
|
202
|
-
i.length > 0 &&
|
|
204
|
+
i.length > 0 && a.push(...i);
|
|
203
205
|
}
|
|
204
|
-
if (
|
|
205
|
-
const i =
|
|
206
|
-
|
|
206
|
+
if (e.dialogue.dialogueMessage) {
|
|
207
|
+
const i = n(
|
|
208
|
+
e.dialogue.dialogueMessage,
|
|
207
209
|
"dialogue-message"
|
|
208
210
|
);
|
|
209
|
-
i.length > 0 &&
|
|
211
|
+
i.length > 0 && a.push(...i);
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
|
-
if (
|
|
213
|
-
const
|
|
214
|
-
|
|
214
|
+
if (e.header) {
|
|
215
|
+
const r = n(
|
|
216
|
+
e.header,
|
|
215
217
|
"header"
|
|
216
218
|
);
|
|
217
|
-
|
|
219
|
+
r.length > 0 && a.push(...r);
|
|
218
220
|
}
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
|
|
221
|
+
if (e.label) {
|
|
222
|
+
const r = n(
|
|
223
|
+
e.label,
|
|
222
224
|
"label"
|
|
223
225
|
);
|
|
224
|
-
|
|
226
|
+
r.length > 0 && a.push(...r);
|
|
225
227
|
}
|
|
226
|
-
if (
|
|
227
|
-
const
|
|
228
|
-
|
|
228
|
+
if (e.link) {
|
|
229
|
+
const r = n(e.link, "link");
|
|
230
|
+
r.length > 0 && a.push(...r);
|
|
229
231
|
}
|
|
230
|
-
if (
|
|
231
|
-
const
|
|
232
|
-
|
|
232
|
+
if (e.loader) {
|
|
233
|
+
const r = n(
|
|
234
|
+
e.loader,
|
|
233
235
|
"loader"
|
|
234
236
|
);
|
|
235
|
-
|
|
237
|
+
r.length > 0 && a.push(...r);
|
|
236
238
|
}
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
239
|
-
|
|
239
|
+
if (e.message) {
|
|
240
|
+
const r = n(
|
|
241
|
+
e.message,
|
|
240
242
|
"message"
|
|
241
243
|
);
|
|
242
|
-
if (
|
|
243
|
-
const i =
|
|
244
|
-
|
|
244
|
+
if (r.length > 0 && a.push(...r), e.message.messageHeader) {
|
|
245
|
+
const i = n(
|
|
246
|
+
e.message.messageHeader,
|
|
245
247
|
"message-header"
|
|
246
248
|
);
|
|
247
|
-
i.length > 0 &&
|
|
249
|
+
i.length > 0 && a.push(...i);
|
|
248
250
|
}
|
|
249
|
-
if (
|
|
250
|
-
const i =
|
|
251
|
-
|
|
251
|
+
if (e.message.messageBody) {
|
|
252
|
+
const i = n(
|
|
253
|
+
e.message.messageBody,
|
|
252
254
|
"message-body"
|
|
253
255
|
);
|
|
254
|
-
i.length > 0 &&
|
|
256
|
+
i.length > 0 && a.push(...i);
|
|
255
257
|
}
|
|
256
258
|
}
|
|
257
|
-
if (
|
|
258
|
-
const
|
|
259
|
-
|
|
259
|
+
if (e.progress) {
|
|
260
|
+
const r = n(
|
|
261
|
+
e.progress,
|
|
260
262
|
"progress"
|
|
261
263
|
);
|
|
262
|
-
|
|
264
|
+
r.length > 0 && a.push(...r);
|
|
263
265
|
}
|
|
264
|
-
return
|
|
266
|
+
return a;
|
|
265
267
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
return
|
|
268
|
+
function V(e) {
|
|
269
|
+
const a = [], r = I(e), i = C(e), t = N(e);
|
|
270
|
+
return r.length > 0 && a.push(`:root{${r.join("")}}`), i.length > 0 && a.push(`:root{${i.join("")}}`), i.length > 0 && a.push(
|
|
269
271
|
`[data-color-scheme="light"]{${i.join("")}}`
|
|
270
|
-
),
|
|
271
|
-
`[data-color-scheme="dark"]{${
|
|
272
|
-
),
|
|
272
|
+
), t.length > 0 && a.push(
|
|
273
|
+
`[data-color-scheme="dark"]{${t.join("")}}`
|
|
274
|
+
), a;
|
|
273
275
|
}
|
|
274
|
-
function
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
`--${
|
|
281
|
-
),
|
|
282
|
-
`--${
|
|
283
|
-
),
|
|
284
|
-
`--${
|
|
285
|
-
),
|
|
286
|
-
`--${
|
|
287
|
-
),
|
|
288
|
-
`--${
|
|
289
|
-
),
|
|
290
|
-
`--${
|
|
291
|
-
),
|
|
292
|
-
`--${
|
|
276
|
+
function I(e) {
|
|
277
|
+
const a = [];
|
|
278
|
+
if (e) {
|
|
279
|
+
if (e.animation) {
|
|
280
|
+
const r = e.animation;
|
|
281
|
+
r.speedHeavey && a.push(
|
|
282
|
+
`--${o}animation-speed-heavy: ${r.speedHeavey};`
|
|
283
|
+
), r.speedSlower && a.push(
|
|
284
|
+
`--${o}animation-speed-slower: ${r.speedSlower};`
|
|
285
|
+
), r.speedSlow && a.push(
|
|
286
|
+
`--${o}animation-speed-slow: ${r.speedSlow};`
|
|
287
|
+
), r.speedNormal && a.push(
|
|
288
|
+
`--${o}animation-speed-normal: ${r.speedNormal};`
|
|
289
|
+
), r.speedfFast && a.push(
|
|
290
|
+
`--${o}animation-speed-fast: ${r.speedfFast};`
|
|
291
|
+
), r.speedfFaster && a.push(
|
|
292
|
+
`--${o}animation-speed-faster: ${r.speedfFaster};`
|
|
293
|
+
), r.speedfFlash && a.push(
|
|
294
|
+
`--${o}animation-speed-flash: ${r.speedfFlash};`
|
|
293
295
|
);
|
|
294
296
|
}
|
|
295
|
-
if (
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
`--${
|
|
299
|
-
),
|
|
300
|
-
`--${
|
|
301
|
-
),
|
|
302
|
-
`--${
|
|
303
|
-
),
|
|
304
|
-
`--${
|
|
305
|
-
),
|
|
306
|
-
`--${
|
|
307
|
-
),
|
|
308
|
-
`--${
|
|
309
|
-
),
|
|
310
|
-
`--${
|
|
311
|
-
),
|
|
312
|
-
`--${
|
|
297
|
+
if (e.border) {
|
|
298
|
+
const r = e.border;
|
|
299
|
+
r.borderWidthXThin && a.push(
|
|
300
|
+
`--${o}border-width-xthin: ${r.borderWidthXThin};`
|
|
301
|
+
), r.borderWidthThin && a.push(
|
|
302
|
+
`--${o}border-width-thin: ${r.borderWidthThin};`
|
|
303
|
+
), r.borderWidthMedium && a.push(
|
|
304
|
+
`--${o}border-width-medium: ${r.borderWidthMedium};`
|
|
305
|
+
), r.borderWidthThick && a.push(
|
|
306
|
+
`--${o}border-width-thick: ${r.borderWidthThick};`
|
|
307
|
+
), r.borderWidthXThick && a.push(
|
|
308
|
+
`--${o}border-width-xthick: ${r.borderWidthXThick};`
|
|
309
|
+
), r.borderRadiusSmall && a.push(
|
|
310
|
+
`--${o}border-radius-small: ${r.borderRadiusSmall};`
|
|
311
|
+
), r.borderRadiusMedium && a.push(
|
|
312
|
+
`--${o}border-radius-medium: ${r.borderRadiusMedium};`
|
|
313
|
+
), r.borderRadiusLarge && a.push(
|
|
314
|
+
`--${o}border-radius-large: ${r.borderRadiusLarge};`
|
|
313
315
|
);
|
|
314
316
|
}
|
|
315
|
-
if (
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
`--${
|
|
321
|
-
),
|
|
322
|
-
`--${
|
|
317
|
+
if (e.color) {
|
|
318
|
+
const r = e.color, i = (t, d, f) => {
|
|
319
|
+
if (f) {
|
|
320
|
+
const s = `${f.lightness}% ${f.chroma} ${f.hue}`;
|
|
321
|
+
a.push(
|
|
322
|
+
`--${o}color-${t}-${d}-oklch: ${s};`
|
|
323
|
+
), a.push(
|
|
324
|
+
`--${o}color-${t}-${d}: oklch(${s});`
|
|
323
325
|
);
|
|
324
326
|
}
|
|
325
327
|
};
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
328
|
-
i(
|
|
328
|
+
if (r.gray) {
|
|
329
|
+
const t = r.gray, d = "gray";
|
|
330
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
329
331
|
}
|
|
330
|
-
if (
|
|
331
|
-
const
|
|
332
|
-
i(
|
|
332
|
+
if (r.red) {
|
|
333
|
+
const t = r.red, d = "red";
|
|
334
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
333
335
|
}
|
|
334
|
-
if (
|
|
335
|
-
const
|
|
336
|
-
i(
|
|
336
|
+
if (r.coral) {
|
|
337
|
+
const t = r.coral, d = "coral";
|
|
338
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
337
339
|
}
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
i(
|
|
340
|
+
if (r.orange) {
|
|
341
|
+
const t = r.orange, d = "orange";
|
|
342
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
341
343
|
}
|
|
342
|
-
if (
|
|
343
|
-
const
|
|
344
|
-
i(
|
|
344
|
+
if (r.yellow) {
|
|
345
|
+
const t = r.yellow, d = "yellow";
|
|
346
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
345
347
|
}
|
|
346
|
-
if (
|
|
347
|
-
const
|
|
348
|
-
i(
|
|
348
|
+
if (r.lime) {
|
|
349
|
+
const t = r.lime, d = "lime";
|
|
350
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
349
351
|
}
|
|
350
|
-
if (
|
|
351
|
-
const
|
|
352
|
-
i(
|
|
352
|
+
if (r.green) {
|
|
353
|
+
const t = r.green, d = "green";
|
|
354
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
353
355
|
}
|
|
354
|
-
if (
|
|
355
|
-
const
|
|
356
|
-
i(
|
|
356
|
+
if (r.cyan) {
|
|
357
|
+
const t = r.cyan, d = "cyan";
|
|
358
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
357
359
|
}
|
|
358
|
-
if (
|
|
359
|
-
const
|
|
360
|
-
i(
|
|
360
|
+
if (r.blue) {
|
|
361
|
+
const t = r.blue, d = "blue";
|
|
362
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
361
363
|
}
|
|
362
|
-
if (
|
|
363
|
-
const
|
|
364
|
-
i(
|
|
364
|
+
if (r.violet) {
|
|
365
|
+
const t = r.violet, d = "violet";
|
|
366
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
365
367
|
}
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
i(
|
|
368
|
+
if (r.magenta) {
|
|
369
|
+
const t = r.magenta, d = "magenta";
|
|
370
|
+
i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
|
|
369
371
|
}
|
|
370
372
|
}
|
|
371
|
-
if (
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
`--${
|
|
375
|
-
),
|
|
376
|
-
`--${
|
|
377
|
-
),
|
|
378
|
-
`--${
|
|
379
|
-
),
|
|
380
|
-
`--${
|
|
373
|
+
if (e.miscellaneous) {
|
|
374
|
+
const r = e.miscellaneous;
|
|
375
|
+
r.zIndexTabula && a.push(
|
|
376
|
+
`--${o}z-index-tabula: ${r.zIndexTabula};`
|
|
377
|
+
), r.zIndexModal && a.push(
|
|
378
|
+
`--${o}z-index-modal: ${r.zIndexModal};`
|
|
379
|
+
), r.zIndexModalContent && a.push(
|
|
380
|
+
`--${o}z-index-tabula-content: ${r.zIndexModalContent};`
|
|
381
|
+
), r.zIndexHeaderIsSticky && a.push(
|
|
382
|
+
`--${o}z-index-header-is-sticky: ${r.zIndexHeaderIsSticky};`
|
|
381
383
|
);
|
|
382
384
|
}
|
|
383
|
-
if (
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
`--${
|
|
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
|
-
`--${
|
|
385
|
+
if (e.typography) {
|
|
386
|
+
const r = e.typography;
|
|
387
|
+
r.fontFamily && (r.fontFamily.sansSerif && a.push(
|
|
388
|
+
`--${o}font-family-sans-serif: ${r.fontFamily.sansSerif};`
|
|
389
|
+
), r.fontFamily.serif && a.push(
|
|
390
|
+
`--${o}font-family-serif: ${r.fontFamily.serif};`
|
|
391
|
+
), r.fontFamily.monospace && a.push(
|
|
392
|
+
`--${o}font-family-monospace: ${r.fontFamily.monospace};`
|
|
393
|
+
), r.fontFamily.main && a.push(
|
|
394
|
+
`--${o}font-family-main: ${r.fontFamily.main};`
|
|
395
|
+
), r.fontFamily.heading && a.push(
|
|
396
|
+
`--${o}font-family-heading: ${r.fontFamily.heading};`
|
|
397
|
+
), r.fontFamily.code && a.push(
|
|
398
|
+
`--${o}font-family-code: ${r.fontFamily.code};`
|
|
399
|
+
)), r.fontSize && (r.fontSize.xsmall && a.push(
|
|
400
|
+
`--${o}font-size-xsmall: ${r.fontSize.xsmall};`
|
|
401
|
+
), r.fontSize.small && a.push(
|
|
402
|
+
`--${o}font-size-small: ${r.fontSize.small};`
|
|
403
|
+
), r.fontSize.normal && a.push(
|
|
404
|
+
`--${o}font-size-normal: ${r.fontSize.normal};`
|
|
405
|
+
), r.fontSize.medium && a.push(
|
|
406
|
+
`--${o}font-size-medium: ${r.fontSize.medium};`
|
|
407
|
+
), r.fontSize.large && a.push(
|
|
408
|
+
`--${o}font-size-large: ${r.fontSize.large};`
|
|
409
|
+
), r.fontSize.xlarge && a.push(
|
|
410
|
+
`--${o}font-size-xlarge: ${r.fontSize.xlarge};`
|
|
411
|
+
), r.fontSize.xxlarge && a.push(
|
|
412
|
+
`--${o}font-size-xxlarge: ${r.fontSize.xxlarge};`
|
|
413
|
+
), r.fontSize.xxxlarge && a.push(
|
|
414
|
+
`--${o}font-size-xxxlarge: ${r.fontSize.xxxlarge};`
|
|
415
|
+
), r.fontSize.xxxxlarge && a.push(
|
|
416
|
+
`--${o}font-size-xxxxlarge: ${r.fontSize.xxxxlarge};`
|
|
417
|
+
), r.fontSize.xxxxxlarge && a.push(
|
|
418
|
+
`--${o}font-size-xxxxxlarge: ${r.fontSize.xxxxxlarge};`
|
|
419
|
+
)), r.fontWeight && (r.fontWeight.light && a.push(
|
|
420
|
+
`--${o}font-weight-light: ${r.fontWeight.light};`
|
|
421
|
+
), r.fontWeight.normal && a.push(
|
|
422
|
+
`--${o}font-weight-normal: ${r.fontWeight.normal};`
|
|
423
|
+
), r.fontWeight.medium && a.push(
|
|
424
|
+
`--${o}font-weight-medium: ${r.fontWeight.medium};`
|
|
425
|
+
), r.fontWeight.semibold && a.push(
|
|
426
|
+
`--${o}font-weight-semibold: ${r.fontWeight.semibold};`
|
|
427
|
+
), r.fontWeight.bold && a.push(
|
|
428
|
+
`--${o}font-weight-bold: ${r.fontWeight.bold};`
|
|
427
429
|
));
|
|
428
430
|
}
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
432
|
-
const i =
|
|
433
|
-
i.breadcrumbDivider &&
|
|
434
|
-
`--${
|
|
431
|
+
if (e.components) {
|
|
432
|
+
const r = e.components;
|
|
433
|
+
if (r.breadcrumbs) {
|
|
434
|
+
const i = r.breadcrumbs;
|
|
435
|
+
i.breadcrumbDivider && a.push(
|
|
436
|
+
`--${o}breadcrumb-divider: ${i.breadcrumbDivider};`
|
|
435
437
|
);
|
|
436
438
|
}
|
|
437
|
-
if (
|
|
438
|
-
const i =
|
|
439
|
-
i.paddingX &&
|
|
440
|
-
`--${
|
|
441
|
-
), i.paddingY &&
|
|
442
|
-
`--${
|
|
439
|
+
if (r.button) {
|
|
440
|
+
const i = r.button;
|
|
441
|
+
i.paddingX && a.push(
|
|
442
|
+
`--${o}button-padding-x: ${i.paddingX};`
|
|
443
|
+
), i.paddingY && a.push(
|
|
444
|
+
`--${o}button-padding-y: ${i.paddingY};`
|
|
443
445
|
);
|
|
444
446
|
}
|
|
445
|
-
if (
|
|
446
|
-
const i =
|
|
447
|
-
i.avatarSizeDefault &&
|
|
448
|
-
`--${
|
|
449
|
-
), i.avatarSizeSmall &&
|
|
450
|
-
`--${
|
|
451
|
-
), i.avatarSizeLarge &&
|
|
452
|
-
`--${
|
|
453
|
-
), i.avatarTopOffset &&
|
|
454
|
-
`--${
|
|
455
|
-
), i.nameFontSize && (i.nameFontSize.includes("rem"),
|
|
456
|
-
`--${
|
|
457
|
-
)), i.namePaddingX &&
|
|
458
|
-
`--${
|
|
459
|
-
), i.namePaddingY &&
|
|
460
|
-
`--${
|
|
461
|
-
), i.messageArrowHeight &&
|
|
462
|
-
`--${
|
|
463
|
-
), i.messageArrowWidth &&
|
|
464
|
-
`--${
|
|
465
|
-
), i.messageInnerPaddingX &&
|
|
466
|
-
`--${
|
|
467
|
-
), i.messageInnerPaddingY &&
|
|
468
|
-
`--${
|
|
447
|
+
if (r.dialogue) {
|
|
448
|
+
const i = r.dialogue;
|
|
449
|
+
i.avatarSizeDefault && a.push(
|
|
450
|
+
`--${o}dialogue-avatar-size-default: ${i.avatarSizeDefault};`
|
|
451
|
+
), i.avatarSizeSmall && a.push(
|
|
452
|
+
`--${o}dialogue-avatar-size-small: ${i.avatarSizeSmall};`
|
|
453
|
+
), i.avatarSizeLarge && a.push(
|
|
454
|
+
`--${o}dialogue-avatar-size-large: ${i.avatarSizeLarge};`
|
|
455
|
+
), i.avatarTopOffset && a.push(
|
|
456
|
+
`--${o}dialogue-avatar-top-offset: ${i.avatarTopOffset};`
|
|
457
|
+
), i.nameFontSize && (i.nameFontSize.includes("rem"), a.push(
|
|
458
|
+
`--${o}dialogue-name-font-size: ${i.nameFontSize};`
|
|
459
|
+
)), i.namePaddingX && a.push(
|
|
460
|
+
`--${o}dialogue-name-padding-x: ${i.namePaddingX};`
|
|
461
|
+
), i.namePaddingY && a.push(
|
|
462
|
+
`--${o}dialogue-name-padding-y: ${i.namePaddingY};`
|
|
463
|
+
), i.messageArrowHeight && a.push(
|
|
464
|
+
`--${o}dialogue-messege-arrow-height: ${i.messageArrowHeight};`
|
|
465
|
+
), i.messageArrowWidth && a.push(
|
|
466
|
+
`--${o}dialogue-messege-arrow-width: ${i.messageArrowWidth};`
|
|
467
|
+
), i.messageInnerPaddingX && a.push(
|
|
468
|
+
`--${o}dialogue-message-inner-padding-x: ${i.messageInnerPaddingX};`
|
|
469
|
+
), i.messageInnerPaddingY && a.push(
|
|
470
|
+
`--${o}dialogue-message-inner-padding-y: ${i.messageInnerPaddingY};`
|
|
469
471
|
);
|
|
470
472
|
}
|
|
471
|
-
if (
|
|
472
|
-
const i =
|
|
473
|
-
i.backdropFilter &&
|
|
474
|
-
`--${
|
|
475
|
-
), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ?
|
|
476
|
-
`--${
|
|
477
|
-
) :
|
|
478
|
-
`--${
|
|
479
|
-
)), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ?
|
|
480
|
-
`--${
|
|
481
|
-
) :
|
|
482
|
-
`--${
|
|
473
|
+
if (r.header) {
|
|
474
|
+
const i = r.header;
|
|
475
|
+
i.backdropFilter && a.push(
|
|
476
|
+
`--${o}header-backdrop-filter: ${i.backdropFilter};`
|
|
477
|
+
), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ? a.push(
|
|
478
|
+
`--${o}header-z-index-is-sticky: "auto";`
|
|
479
|
+
) : a.push(
|
|
480
|
+
`--${o}header-z-index-is-sticky: ${i.zIndexIsSticky};`
|
|
481
|
+
)), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ? a.push(
|
|
482
|
+
`--${o}header-z-index-is-fixed: "auto";`
|
|
483
|
+
) : a.push(
|
|
484
|
+
`--${o}header-z-index-is-fixed: ${i.zIndexIsFixed};`
|
|
483
485
|
));
|
|
484
486
|
}
|
|
485
|
-
if (
|
|
486
|
-
const i =
|
|
487
|
-
i.fontFamily &&
|
|
488
|
-
`--${
|
|
487
|
+
if (r.heading) {
|
|
488
|
+
const i = r.heading;
|
|
489
|
+
i.fontFamily && a.push(
|
|
490
|
+
`--${o}font-family-heading: ${i.fontFamily};`
|
|
489
491
|
);
|
|
490
492
|
}
|
|
491
493
|
}
|
|
492
494
|
}
|
|
493
|
-
return
|
|
495
|
+
return a;
|
|
494
496
|
}
|
|
495
|
-
function
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
if (
|
|
501
|
-
const i =
|
|
502
|
-
i.length > 0 &&
|
|
503
|
-
}
|
|
504
|
-
if (
|
|
505
|
-
const i =
|
|
506
|
-
i.length > 0 &&
|
|
507
|
-
}
|
|
508
|
-
if (
|
|
509
|
-
const i =
|
|
510
|
-
i.length > 0 &&
|
|
511
|
-
}
|
|
512
|
-
if (
|
|
513
|
-
const i =
|
|
514
|
-
i.length > 0 &&
|
|
515
|
-
}
|
|
516
|
-
if (
|
|
517
|
-
const i =
|
|
518
|
-
i.length > 0 &&
|
|
519
|
-
}
|
|
520
|
-
if (
|
|
521
|
-
const i =
|
|
522
|
-
i.length > 0 &&
|
|
523
|
-
}
|
|
524
|
-
if (
|
|
525
|
-
const i =
|
|
526
|
-
i.length > 0 &&
|
|
527
|
-
}
|
|
528
|
-
if (
|
|
529
|
-
const i =
|
|
530
|
-
i.length > 0 &&
|
|
531
|
-
}
|
|
532
|
-
if (
|
|
533
|
-
const i =
|
|
534
|
-
i.length > 0 &&
|
|
535
|
-
}
|
|
536
|
-
if (
|
|
537
|
-
const i =
|
|
538
|
-
i.length > 0 &&
|
|
539
|
-
}
|
|
540
|
-
if (
|
|
541
|
-
const i =
|
|
542
|
-
i.length > 0 &&
|
|
543
|
-
}
|
|
544
|
-
if (
|
|
545
|
-
const i =
|
|
546
|
-
|
|
497
|
+
function C(e) {
|
|
498
|
+
const a = [];
|
|
499
|
+
if (e && e.color) {
|
|
500
|
+
const r = e.color;
|
|
501
|
+
if (r.light) {
|
|
502
|
+
if (r.light.default) {
|
|
503
|
+
const i = l("default", r.light.default);
|
|
504
|
+
i.length > 0 && a.push(...i);
|
|
505
|
+
}
|
|
506
|
+
if (r.light.gray) {
|
|
507
|
+
const i = l("gray", r.light.gray);
|
|
508
|
+
i.length > 0 && a.push(...i);
|
|
509
|
+
}
|
|
510
|
+
if (r.light.red) {
|
|
511
|
+
const i = l("red", r.light.red);
|
|
512
|
+
i.length > 0 && a.push(...i);
|
|
513
|
+
}
|
|
514
|
+
if (r.light.coral) {
|
|
515
|
+
const i = l("coral", r.light.coral);
|
|
516
|
+
i.length > 0 && a.push(...i);
|
|
517
|
+
}
|
|
518
|
+
if (r.light.orange) {
|
|
519
|
+
const i = l("orange", r.light.orange);
|
|
520
|
+
i.length > 0 && a.push(...i);
|
|
521
|
+
}
|
|
522
|
+
if (r.light.yellow) {
|
|
523
|
+
const i = l("yellow", r.light.yellow);
|
|
524
|
+
i.length > 0 && a.push(...i);
|
|
525
|
+
}
|
|
526
|
+
if (r.light.lime) {
|
|
527
|
+
const i = l("lime", r.light.lime);
|
|
528
|
+
i.length > 0 && a.push(...i);
|
|
529
|
+
}
|
|
530
|
+
if (r.light.green) {
|
|
531
|
+
const i = l("green", r.light.green);
|
|
532
|
+
i.length > 0 && a.push(...i);
|
|
533
|
+
}
|
|
534
|
+
if (r.light.cyan) {
|
|
535
|
+
const i = l("cyan", r.light.cyan);
|
|
536
|
+
i.length > 0 && a.push(...i);
|
|
537
|
+
}
|
|
538
|
+
if (r.light.blue) {
|
|
539
|
+
const i = l("blue", r.light.blue);
|
|
540
|
+
i.length > 0 && a.push(...i);
|
|
541
|
+
}
|
|
542
|
+
if (r.light.violet) {
|
|
543
|
+
const i = l("violet", r.light.violet);
|
|
544
|
+
i.length > 0 && a.push(...i);
|
|
545
|
+
}
|
|
546
|
+
if (r.light.components) {
|
|
547
|
+
const i = r.light.components, t = F(i);
|
|
548
|
+
t.length > 0 && a.push(...t);
|
|
547
549
|
}
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
|
-
return
|
|
552
|
+
return a;
|
|
551
553
|
}
|
|
552
|
-
function
|
|
553
|
-
const
|
|
554
|
-
if (
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
if (
|
|
558
|
-
const i =
|
|
559
|
-
i.length > 0 &&
|
|
560
|
-
}
|
|
561
|
-
if (
|
|
562
|
-
const i =
|
|
563
|
-
i.length > 0 &&
|
|
564
|
-
}
|
|
565
|
-
if (
|
|
566
|
-
const i =
|
|
567
|
-
i.length > 0 &&
|
|
568
|
-
}
|
|
569
|
-
if (
|
|
570
|
-
const i =
|
|
571
|
-
i.length > 0 &&
|
|
572
|
-
}
|
|
573
|
-
if (
|
|
574
|
-
const i =
|
|
575
|
-
i.length > 0 &&
|
|
576
|
-
}
|
|
577
|
-
if (
|
|
578
|
-
const i =
|
|
579
|
-
i.length > 0 &&
|
|
580
|
-
}
|
|
581
|
-
if (
|
|
582
|
-
const i =
|
|
583
|
-
i.length > 0 &&
|
|
584
|
-
}
|
|
585
|
-
if (
|
|
586
|
-
const i =
|
|
587
|
-
i.length > 0 &&
|
|
588
|
-
}
|
|
589
|
-
if (
|
|
590
|
-
const i =
|
|
591
|
-
i.length > 0 &&
|
|
592
|
-
}
|
|
593
|
-
if (
|
|
594
|
-
const i =
|
|
595
|
-
i.length > 0 &&
|
|
596
|
-
}
|
|
597
|
-
if (
|
|
598
|
-
const i =
|
|
599
|
-
i.length > 0 &&
|
|
600
|
-
}
|
|
601
|
-
if (
|
|
602
|
-
const i =
|
|
603
|
-
i.length > 0 &&
|
|
604
|
-
}
|
|
605
|
-
if (
|
|
606
|
-
const i =
|
|
607
|
-
|
|
554
|
+
function N(e) {
|
|
555
|
+
const a = [];
|
|
556
|
+
if (e && e.color) {
|
|
557
|
+
const r = e.color;
|
|
558
|
+
if (r.dark) {
|
|
559
|
+
if (r.dark.default) {
|
|
560
|
+
const i = l("default", r.dark.default);
|
|
561
|
+
i.length > 0 && a.push(...i);
|
|
562
|
+
}
|
|
563
|
+
if (r.dark.gray) {
|
|
564
|
+
const i = l("gray", r.dark.gray);
|
|
565
|
+
i.length > 0 && a.push(...i);
|
|
566
|
+
}
|
|
567
|
+
if (r.dark.red) {
|
|
568
|
+
const i = l("red", r.dark.red);
|
|
569
|
+
i.length > 0 && a.push(...i);
|
|
570
|
+
}
|
|
571
|
+
if (r.dark.coral) {
|
|
572
|
+
const i = l("coral", r.dark.coral);
|
|
573
|
+
i.length > 0 && a.push(...i);
|
|
574
|
+
}
|
|
575
|
+
if (r.dark.orange) {
|
|
576
|
+
const i = l("orange", r.dark.orange);
|
|
577
|
+
i.length > 0 && a.push(...i);
|
|
578
|
+
}
|
|
579
|
+
if (r.dark.yellow) {
|
|
580
|
+
const i = l("yellow", r.dark.yellow);
|
|
581
|
+
i.length > 0 && a.push(...i);
|
|
582
|
+
}
|
|
583
|
+
if (r.dark.lime) {
|
|
584
|
+
const i = l("lime", r.dark.lime);
|
|
585
|
+
i.length > 0 && a.push(...i);
|
|
586
|
+
}
|
|
587
|
+
if (r.dark.green) {
|
|
588
|
+
const i = l("green", r.dark.green);
|
|
589
|
+
i.length > 0 && a.push(...i);
|
|
590
|
+
}
|
|
591
|
+
if (r.dark.cyan) {
|
|
592
|
+
const i = l("cyan", r.dark.cyan);
|
|
593
|
+
i.length > 0 && a.push(...i);
|
|
594
|
+
}
|
|
595
|
+
if (r.dark.blue) {
|
|
596
|
+
const i = l("blue", r.dark.blue);
|
|
597
|
+
i.length > 0 && a.push(...i);
|
|
598
|
+
}
|
|
599
|
+
if (r.dark.violet) {
|
|
600
|
+
const i = l("violet", r.dark.violet);
|
|
601
|
+
i.length > 0 && a.push(...i);
|
|
602
|
+
}
|
|
603
|
+
if (r.dark.magenta) {
|
|
604
|
+
const i = l("magenta", r.dark.magenta);
|
|
605
|
+
i.length > 0 && a.push(...i);
|
|
606
|
+
}
|
|
607
|
+
if (r.dark.components) {
|
|
608
|
+
const i = r.dark.components, t = F(i);
|
|
609
|
+
t.length > 0 && a.push(...t);
|
|
608
610
|
}
|
|
609
611
|
}
|
|
610
612
|
}
|
|
611
|
-
return
|
|
613
|
+
return a;
|
|
612
614
|
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
615
|
+
function g(e, a) {
|
|
616
|
+
return e ? a === "highlighter" ? {
|
|
617
|
+
default: w(e.default),
|
|
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
|
|
618
826
|
};
|
|
619
827
|
export {
|
|
620
|
-
|
|
828
|
+
ti as default
|
|
621
829
|
};
|
|
622
830
|
//# sourceMappingURL=minolithStyleUtility.js.map
|