@lightsparkdev/ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-NRXJA2PM.js → chunk-3EVAP5JT.js} +1 -1
- package/dist/{chunk-4KWTXZRY.js → chunk-3GS5EFXV.js} +1 -1
- package/dist/{chunk-WTO7C7WA.js → chunk-5POPBNPS.js} +1 -1
- package/dist/{chunk-UWN53KLJ.js → chunk-7C4MHI6Q.js} +3 -3
- package/dist/{chunk-6FHLZM6N.js → chunk-7T36JGTC.js} +2 -2
- package/dist/{chunk-YPB5SA65.js → chunk-A4FQBEYU.js} +6 -6
- package/dist/{chunk-SZVMKB4E.js → chunk-ATUH6SXK.js} +19 -8
- package/dist/{chunk-U6XT5JKC.js → chunk-DQRN4E5G.js} +1 -1
- package/dist/{chunk-36C653MV.js → chunk-E3AOYBY5.js} +1 -1
- package/dist/{chunk-MAMSU2XB.js → chunk-EEFNW7NS.js} +3 -3
- package/dist/{chunk-2YB7653N.js → chunk-FCZJILMW.js} +1 -1
- package/dist/{chunk-ZYHA6MJC.js → chunk-H3RW6JSU.js} +1 -1
- package/dist/chunk-IPAXAP6K.js +119 -0
- package/dist/{chunk-BAO4T4G5.js → chunk-J4FJQ3FN.js} +1 -1
- package/dist/{chunk-HNVQIY5U.js → chunk-JK4BP73A.js} +39 -30
- package/dist/{chunk-ZSUX6RLD.js → chunk-KMR5C25B.js} +1 -1
- package/dist/{chunk-2JM7UTAZ.js → chunk-NFSAJ5GJ.js} +8 -8
- package/dist/{chunk-DAVVD7YE.js → chunk-NM7UW54G.js} +18 -21
- package/dist/chunk-P3EUPXFA.js +150 -0
- package/dist/chunk-PBRN7MJY.js +315 -0
- package/dist/{chunk-CW3W2VTZ.js → chunk-PVQCLQNA.js} +1 -1
- package/dist/{chunk-VHW2KROZ.js → chunk-RWIZ7Q74.js} +1 -1
- package/dist/{chunk-744FBGRP.js → chunk-XP2MX2AA.js} +1 -1
- package/dist/{chunk-XAZ6NZ6I.js → chunk-XZR237JJ.js} +1 -1
- package/dist/{chunk-FN5PM3HQ.js → chunk-Y37DCY7Y.js} +6 -6
- package/dist/{chunk-76Q4BK35.js → chunk-ZANLDY2W.js} +5 -5
- package/dist/components/Badge.cjs +38 -24
- package/dist/components/Badge.js +2 -2
- package/dist/components/Button.cjs +38 -24
- package/dist/components/Button.js +6 -6
- package/dist/components/ButtonRow.cjs +42 -28
- package/dist/components/ButtonRow.js +8 -8
- package/dist/components/CardPage.cjs +1921 -0
- package/dist/components/CardPage.d.cts +54 -0
- package/dist/components/CardPage.d.ts +54 -0
- package/dist/components/CardPage.js +33 -0
- package/dist/components/Collapsible.cjs +38 -24
- package/dist/components/Collapsible.js +4 -4
- package/dist/components/ContentTable.cjs +38 -24
- package/dist/components/ContentTable.js +3 -3
- package/dist/components/CopyToClipboardButton.cjs +38 -24
- package/dist/components/CopyToClipboardButton.js +5 -5
- package/dist/components/CurrencyAmount.cjs +38 -24
- package/dist/components/CurrencyAmount.js +3 -3
- package/dist/components/FileInput.cjs +38 -24
- package/dist/components/FileInput.js +7 -7
- package/dist/components/GradientCardHeader.cjs +177 -0
- package/dist/components/GradientCardHeader.d.cts +10 -0
- package/dist/components/GradientCardHeader.d.ts +10 -0
- package/dist/components/GradientCardHeader.js +8 -0
- package/dist/components/Icon.cjs +38 -24
- package/dist/components/Icon.js +2 -2
- package/dist/components/LightTooltip.cjs +38 -24
- package/dist/components/LightTooltip.js +2 -2
- package/dist/components/LightsparkProvider.cjs +38 -24
- package/dist/components/LightsparkProvider.js +3 -3
- package/dist/components/Loading.cjs +38 -24
- package/dist/components/Loading.js +3 -3
- package/dist/components/Modal.cjs +46 -34
- package/dist/components/Modal.js +9 -9
- package/dist/components/Pill.cjs +38 -24
- package/dist/components/Pill.js +6 -6
- package/dist/components/ProgressBar.cjs +38 -24
- package/dist/components/ProgressBar.js +2 -2
- package/dist/components/SecretContainer.cjs +38 -24
- package/dist/components/SecretContainer.js +6 -6
- package/dist/components/TextIconAligner.cjs +38 -24
- package/dist/components/TextIconAligner.js +3 -3
- package/dist/components/UnstyledButton.cjs +38 -24
- package/dist/components/UnstyledButton.js +2 -2
- package/dist/components/documentation/AnchorLinkHeader.cjs +38 -24
- package/dist/components/documentation/AnchorLinkHeader.js +3 -3
- package/dist/components/documentation/index.cjs +38 -24
- package/dist/components/documentation/index.js +3 -3
- package/dist/components/index.cjs +737 -185
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +51 -32
- package/dist/icons/ArrowCornerDownRight.cjs +49 -0
- package/dist/icons/ArrowCornerDownRight.d.cts +5 -0
- package/dist/icons/ArrowCornerDownRight.d.ts +5 -0
- package/dist/icons/ArrowCornerDownRight.js +30 -0
- package/dist/icons/Sort.cjs +48 -0
- package/dist/icons/Sort.d.cts +5 -0
- package/dist/icons/Sort.d.ts +5 -0
- package/dist/icons/Sort.js +29 -0
- package/dist/icons/index.cjs +38 -24
- package/dist/icons/index.js +2 -2
- package/dist/styles/common.cjs +38 -34
- package/dist/styles/common.d.cts +10 -7
- package/dist/styles/common.d.ts +10 -7
- package/dist/styles/common.js +1 -11
- package/dist/styles/fields.cjs +56 -31
- package/dist/styles/fields.d.cts +4 -3
- package/dist/styles/fields.d.ts +4 -3
- package/dist/styles/fields.js +2 -2
- package/dist/styles/fonts/typography/Article.cjs +38 -24
- package/dist/styles/fonts/typography/Article.js +6 -6
- package/dist/styles/fonts/typography/index.cjs +38 -24
- package/dist/styles/fonts/typography/index.js +11 -11
- package/dist/styles/global.cjs +38 -24
- package/dist/styles/global.js +2 -2
- package/dist/styles/type.cjs +38 -24
- package/dist/styles/type.js +8 -144
- package/dist/styles/utils.cjs +38 -24
- package/dist/styles/utils.js +2 -2
- package/package.json +7 -4
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
firstChild,
|
|
3
|
+
pxToRems
|
|
4
|
+
} from "./chunk-FCZJILMW.js";
|
|
5
|
+
import {
|
|
6
|
+
bp
|
|
7
|
+
} from "./chunk-JSGRNWSB.js";
|
|
8
|
+
import {
|
|
9
|
+
__spreadValues
|
|
10
|
+
} from "./chunk-CIGAQ47A.js";
|
|
11
|
+
|
|
12
|
+
// src/styles/type.tsx
|
|
13
|
+
import { css, useTheme } from "@emotion/react";
|
|
14
|
+
import styled from "@emotion/styled";
|
|
15
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
16
|
+
var defaultHeadingSizes = {
|
|
17
|
+
h1: {
|
|
18
|
+
size: 32,
|
|
19
|
+
sizeSm: 21
|
|
20
|
+
},
|
|
21
|
+
h2: {
|
|
22
|
+
size: 24,
|
|
23
|
+
sizeSm: 18
|
|
24
|
+
},
|
|
25
|
+
h3: {
|
|
26
|
+
size: 21,
|
|
27
|
+
sizeSm: 18
|
|
28
|
+
},
|
|
29
|
+
h4: {
|
|
30
|
+
size: 14,
|
|
31
|
+
sizeSm: 14
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var defaultHeadingMargins = {
|
|
35
|
+
h1: {
|
|
36
|
+
mt: 24,
|
|
37
|
+
mb: 24,
|
|
38
|
+
mtSm: 24,
|
|
39
|
+
mbSm: 24
|
|
40
|
+
},
|
|
41
|
+
h2: {
|
|
42
|
+
mt: 24,
|
|
43
|
+
mb: 24,
|
|
44
|
+
mtSm: 24,
|
|
45
|
+
mbSm: 24
|
|
46
|
+
},
|
|
47
|
+
h3: {
|
|
48
|
+
mt: 24,
|
|
49
|
+
mb: 24,
|
|
50
|
+
mtSm: 24,
|
|
51
|
+
mbSm: 24
|
|
52
|
+
},
|
|
53
|
+
h4: {
|
|
54
|
+
mt: 16,
|
|
55
|
+
mb: 16,
|
|
56
|
+
mtSm: 16,
|
|
57
|
+
mbSm: 16
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var baseHeading = ({ mt, mb, mtSm, mbSm, theme }) => css`
|
|
61
|
+
line-height: 1.214em;
|
|
62
|
+
|
|
63
|
+
margin-bottom: ${mb}px;
|
|
64
|
+
margin-top: ${mt}px;
|
|
65
|
+
|
|
66
|
+
${bp.sm(`
|
|
67
|
+
margin-top: ${mtSm}px;
|
|
68
|
+
margin-bottom: ${mbSm}px;
|
|
69
|
+
`)}
|
|
70
|
+
`;
|
|
71
|
+
var firstChildStyles = firstChild(`margin-top: 0;`);
|
|
72
|
+
var headings = {
|
|
73
|
+
h1: styled.h1`
|
|
74
|
+
${(props) => baseHeading(props)}
|
|
75
|
+
${firstChildStyles}
|
|
76
|
+
|
|
77
|
+
font-size: ${pxToRems(defaultHeadingSizes.h1.size)};
|
|
78
|
+
font-weight: ${({ light }) => light ? 400 : 800}};
|
|
79
|
+
${bp.sm(`
|
|
80
|
+
font-size: ${pxToRems(defaultHeadingSizes.h1.sizeSm)};
|
|
81
|
+
`)}
|
|
82
|
+
`,
|
|
83
|
+
h2: styled.h2`
|
|
84
|
+
${(props) => baseHeading(props)}
|
|
85
|
+
${firstChildStyles}
|
|
86
|
+
|
|
87
|
+
font-size: ${pxToRems(defaultHeadingSizes.h2.size)};
|
|
88
|
+
font-weight: ${({ light }) => light ? 400 : 700}};
|
|
89
|
+
${bp.sm(`
|
|
90
|
+
font-size: ${pxToRems(defaultHeadingSizes.h2.sizeSm)};
|
|
91
|
+
`)}
|
|
92
|
+
`,
|
|
93
|
+
h3: styled.h3`
|
|
94
|
+
${(props) => baseHeading(props)}
|
|
95
|
+
${firstChildStyles}
|
|
96
|
+
|
|
97
|
+
font-size: ${pxToRems(defaultHeadingSizes.h3.size)};
|
|
98
|
+
font-weight: ${({ light }) => light ? 400 : 700}};
|
|
99
|
+
${bp.sm(`
|
|
100
|
+
font-size: ${pxToRems(defaultHeadingSizes.h3.sizeSm)};
|
|
101
|
+
`)}
|
|
102
|
+
`,
|
|
103
|
+
h4: styled.h4`
|
|
104
|
+
${(props) => baseHeading(props)}
|
|
105
|
+
${firstChildStyles}
|
|
106
|
+
|
|
107
|
+
font-size: ${pxToRems(defaultHeadingSizes.h4.size)};
|
|
108
|
+
font-weight: ${({ light }) => light ? 400 : 600}};
|
|
109
|
+
${bp.sm(`
|
|
110
|
+
font-size: ${pxToRems(defaultHeadingSizes.h4.sizeSm)};
|
|
111
|
+
`)}
|
|
112
|
+
`
|
|
113
|
+
};
|
|
114
|
+
function Heading({
|
|
115
|
+
children,
|
|
116
|
+
type = "h2",
|
|
117
|
+
id,
|
|
118
|
+
mt = defaultHeadingMargins[type].mt,
|
|
119
|
+
mb = defaultHeadingMargins[type].mb,
|
|
120
|
+
mtSm = defaultHeadingMargins[type].mtSm,
|
|
121
|
+
mbSm = defaultHeadingMargins[type].mbSm,
|
|
122
|
+
m0 = false,
|
|
123
|
+
light = false
|
|
124
|
+
}) {
|
|
125
|
+
const StyledHeading = headings[type];
|
|
126
|
+
const theme = useTheme();
|
|
127
|
+
const heading = /* @__PURE__ */ jsx(
|
|
128
|
+
StyledHeading,
|
|
129
|
+
{
|
|
130
|
+
id,
|
|
131
|
+
mt: m0 ? 0 : mt,
|
|
132
|
+
mb: m0 ? 0 : mb,
|
|
133
|
+
mtSm: m0 ? 0 : mtSm,
|
|
134
|
+
mbSm: m0 ? 0 : mbSm,
|
|
135
|
+
light,
|
|
136
|
+
theme,
|
|
137
|
+
children: id ? /* @__PURE__ */ jsx("a", { href: `#${id}`, css: { color: "inherit" }, children }) : children
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
return heading;
|
|
141
|
+
}
|
|
142
|
+
function headingWithDefaults(defaultProps) {
|
|
143
|
+
return (props) => /* @__PURE__ */ jsx(Heading, __spreadValues(__spreadValues({}, defaultProps), props));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export {
|
|
147
|
+
headings,
|
|
148
|
+
Heading,
|
|
149
|
+
headingWithDefaults
|
|
150
|
+
};
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Heading
|
|
3
|
+
} from "./chunk-P3EUPXFA.js";
|
|
4
|
+
import {
|
|
5
|
+
ButtonRowContainer
|
|
6
|
+
} from "./chunk-NFSAJ5GJ.js";
|
|
7
|
+
import {
|
|
8
|
+
z
|
|
9
|
+
} from "./chunk-55OQPFLF.js";
|
|
10
|
+
import {
|
|
11
|
+
flexCenter,
|
|
12
|
+
overflowAutoWithoutScrollbars,
|
|
13
|
+
size
|
|
14
|
+
} from "./chunk-FCZJILMW.js";
|
|
15
|
+
import {
|
|
16
|
+
cardBorderRadiusPx,
|
|
17
|
+
darkGradientBg,
|
|
18
|
+
headingContentMarginPx,
|
|
19
|
+
standardBorderRadius,
|
|
20
|
+
standardCardShadow,
|
|
21
|
+
standardContentInset
|
|
22
|
+
} from "./chunk-JK4BP73A.js";
|
|
23
|
+
import {
|
|
24
|
+
themeOr
|
|
25
|
+
} from "./chunk-2VBDEO6M.js";
|
|
26
|
+
import {
|
|
27
|
+
bp,
|
|
28
|
+
useBreakpoints
|
|
29
|
+
} from "./chunk-JSGRNWSB.js";
|
|
30
|
+
|
|
31
|
+
// src/components/CardPage.tsx
|
|
32
|
+
import styled from "@emotion/styled";
|
|
33
|
+
import { Fragment, useEffect, useRef, useState } from "react";
|
|
34
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
35
|
+
function CardPage(props) {
|
|
36
|
+
const initiallyExpanded = useRef(Boolean(props.expandRight));
|
|
37
|
+
const [wasExpanded, setWasExpanded] = useState(Boolean(props.expandRight));
|
|
38
|
+
const bp2 = useBreakpoints();
|
|
39
|
+
const header = props.title ? /* @__PURE__ */ jsx(CardPageHeader, { children: /* @__PURE__ */ jsx(Heading, { type: "h1", m0: true, children: props.title }) }) : null;
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (props.expandRight) {
|
|
42
|
+
setWasExpanded(true);
|
|
43
|
+
}
|
|
44
|
+
}, [props.expandRight]);
|
|
45
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
46
|
+
CardPageContainer,
|
|
47
|
+
{
|
|
48
|
+
id: props.id,
|
|
49
|
+
bp: bp2,
|
|
50
|
+
hasRightContent: Boolean(props.rightContent),
|
|
51
|
+
wasExpanded,
|
|
52
|
+
expandRight: Boolean(props.expandRight),
|
|
53
|
+
minContentHeight: props.minContentHeight,
|
|
54
|
+
initiallyExpanded: initiallyExpanded.current,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx("div", { css: props.minContentWidth ? overflowAutoWithoutScrollbars : null, children: /* @__PURE__ */ jsxs(
|
|
57
|
+
CardPageContent,
|
|
58
|
+
{
|
|
59
|
+
hasPreHeaderContent: Boolean(props.preHeaderContent),
|
|
60
|
+
minContentHeight: props.minContentHeight,
|
|
61
|
+
maxContentWidth: props.maxContentWidth,
|
|
62
|
+
children: [
|
|
63
|
+
props.preHeaderContent,
|
|
64
|
+
header,
|
|
65
|
+
props.children
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) }),
|
|
69
|
+
props.rightContent && /* @__PURE__ */ jsx(CardPageRightContent, { children: /* @__PURE__ */ jsx(
|
|
70
|
+
CardPageRightContentInner,
|
|
71
|
+
{
|
|
72
|
+
hasRightContent: Boolean(props.rightContent),
|
|
73
|
+
children: props.rightContent
|
|
74
|
+
}
|
|
75
|
+
) })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
) });
|
|
79
|
+
}
|
|
80
|
+
CardPage.defaultProps = {
|
|
81
|
+
minContentHeight: void 0,
|
|
82
|
+
minContentWidth: void 0,
|
|
83
|
+
maxContentWidth: void 0
|
|
84
|
+
};
|
|
85
|
+
var CardPageFullContent = styled.div``;
|
|
86
|
+
var CardPageFullWidth = styled.div``;
|
|
87
|
+
var CardPageRightContentInner = styled.div`
|
|
88
|
+
${flexCenter}
|
|
89
|
+
height: 100%;
|
|
90
|
+
padding: 150px 25px;
|
|
91
|
+
${({ hasRightContent }) => hasRightContent && `justify-content: space-evenly;`}
|
|
92
|
+
`;
|
|
93
|
+
var CardPageRightContent = styled.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
position: relative;
|
|
96
|
+
${CardPageRightContentInner} {
|
|
97
|
+
${darkGradientBg};
|
|
98
|
+
position: relative;
|
|
99
|
+
height: calc(100% + 80px);
|
|
100
|
+
margin-top: -40px;
|
|
101
|
+
margin-bottom: -40px;
|
|
102
|
+
margin-right: -40px;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
width: 100%;
|
|
105
|
+
|
|
106
|
+
${bp.minSm(`
|
|
107
|
+
${standardBorderRadius([0, cardBorderRadiusPx, cardBorderRadiusPx, 0])};
|
|
108
|
+
`)}
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
var vCardPaddingPx = 40;
|
|
112
|
+
var expandTiming = `0.65s ease-in-out`;
|
|
113
|
+
var CardPageContainer = styled.div`
|
|
114
|
+
${standardContentInset.css}
|
|
115
|
+
${({ theme }) => themeOr(`background-color: ${theme.bg}`, "transparent")({ theme })};
|
|
116
|
+
position: relative;
|
|
117
|
+
z-index: ${z.card};
|
|
118
|
+
|
|
119
|
+
${({ minContentHeight }) => `
|
|
120
|
+
min-height: ${minContentHeight !== void 0 && minContentHeight !== null ? `${minContentHeight}px` : "250px"};
|
|
121
|
+
`}
|
|
122
|
+
|
|
123
|
+
${bp.sm(`
|
|
124
|
+
width: 100% !important;
|
|
125
|
+
`)}
|
|
126
|
+
|
|
127
|
+
& > * {
|
|
128
|
+
${standardContentInset.css}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& ${CardPageFullContent}, & ${CardPageFullWidth} {
|
|
132
|
+
${bp.sm(`
|
|
133
|
+
width: calc(100% + ${standardContentInset.smPx * 2}px);
|
|
134
|
+
margin-left: -${standardContentInset.smPx}px;
|
|
135
|
+
`)}
|
|
136
|
+
|
|
137
|
+
${bp.minSmMaxLg(`
|
|
138
|
+
width: calc(100% + ${standardContentInset.minSmMaxLgPx * 2}px);
|
|
139
|
+
margin-left: -${standardContentInset.minSmMaxLgPx}px;
|
|
140
|
+
`)}
|
|
141
|
+
|
|
142
|
+
${bp.lg(`
|
|
143
|
+
width: calc(100% + ${standardContentInset.lgPx * 2}px);
|
|
144
|
+
margin-left: -${standardContentInset.lgPx}px;
|
|
145
|
+
`)}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
& ${CardPageFullContent} {
|
|
149
|
+
& > * {
|
|
150
|
+
padding-top: ${vCardPaddingPx}px;
|
|
151
|
+
padding-bottom: ${vCardPaddingPx}px;
|
|
152
|
+
${bp.sm(`
|
|
153
|
+
padding-top: 0;
|
|
154
|
+
padding-bottom: 0;
|
|
155
|
+
`)}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
margin-top: -${vCardPaddingPx}px;
|
|
159
|
+
${bp.sm(`margin-top: 0;`)}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
${bp.minSm(`
|
|
163
|
+
${standardCardShadow.styles};
|
|
164
|
+
padding: ${vCardPaddingPx}px 0;
|
|
165
|
+
${standardBorderRadius(cardBorderRadiusPx)}
|
|
166
|
+
`)}
|
|
167
|
+
|
|
168
|
+
&:not(:last-child) {
|
|
169
|
+
margin-bottom: 30px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@keyframes rightSideExpand {
|
|
173
|
+
0% {
|
|
174
|
+
width: 50%;
|
|
175
|
+
}
|
|
176
|
+
100% {
|
|
177
|
+
width: 100%;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@keyframes rightSideCollapse {
|
|
182
|
+
0% {
|
|
183
|
+
width: 100%;
|
|
184
|
+
}
|
|
185
|
+
100% {
|
|
186
|
+
width: 50%;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@keyframes leftSideCollapse {
|
|
191
|
+
0% {
|
|
192
|
+
width: 50%;
|
|
193
|
+
height: auto;
|
|
194
|
+
opacity: 1;
|
|
195
|
+
}
|
|
196
|
+
30% {
|
|
197
|
+
opacity: 0;
|
|
198
|
+
}
|
|
199
|
+
100% {
|
|
200
|
+
height: 0px;
|
|
201
|
+
width: 0%;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@keyframes leftSideExpand {
|
|
206
|
+
0% {
|
|
207
|
+
width: 0%;
|
|
208
|
+
opacity: 0;
|
|
209
|
+
}
|
|
210
|
+
50% {
|
|
211
|
+
opacity: 0;
|
|
212
|
+
}
|
|
213
|
+
100% {
|
|
214
|
+
width: 50%;
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
${({ hasRightContent }) => hasRightContent && `
|
|
220
|
+
display: flex;
|
|
221
|
+
& > * {
|
|
222
|
+
width: 50%;
|
|
223
|
+
${bp.sm(`width: 100%;`)}
|
|
224
|
+
|
|
225
|
+
&:first-of-type > * {
|
|
226
|
+
${bp.minSmMaxLg(`
|
|
227
|
+
width: calc(100% - ${standardContentInset.minSmMaxLgPx * 2}px);
|
|
228
|
+
margin-left: ${standardContentInset.minSmMaxLgPx}px;
|
|
229
|
+
`)}
|
|
230
|
+
${bp.lg(`
|
|
231
|
+
width: calc(100% - ${standardContentInset.lgPx * 3}px);
|
|
232
|
+
margin-left: ${standardContentInset.lgPx}px;
|
|
233
|
+
`)}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`}
|
|
237
|
+
|
|
238
|
+
& > :not(${CardPageRightContent}) {
|
|
239
|
+
${({ expandRight, wasExpanded, initiallyExpanded }) => expandRight && wasExpanded ? bp.minSm(`
|
|
240
|
+
width: 0%;
|
|
241
|
+
height: 0px;
|
|
242
|
+
${initiallyExpanded ? "" : `animation: leftSideCollapse ${expandTiming};`}
|
|
243
|
+
overflow: hidden;
|
|
244
|
+
margin: 0%;
|
|
245
|
+
opacity: 0;
|
|
246
|
+
`) : wasExpanded ? bp.minSm(`
|
|
247
|
+
width: 50%;
|
|
248
|
+
animation: leftSideExpand ${expandTiming};
|
|
249
|
+
`) : ""}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
& > ${CardPageRightContent} {
|
|
253
|
+
${({ expandRight, wasExpanded, initiallyExpanded }) => expandRight && wasExpanded ? bp.minSm(`
|
|
254
|
+
width: 100%;
|
|
255
|
+
${initiallyExpanded ? "" : `animation: rightSideExpand ${expandTiming};`}
|
|
256
|
+
margin: 0%;
|
|
257
|
+
& > ${CardPageRightContentInner.toString()} {
|
|
258
|
+
border-radius: ${cardBorderRadiusPx}px !important;
|
|
259
|
+
}
|
|
260
|
+
`) : wasExpanded ? bp.minSm(`
|
|
261
|
+
width: 50%;
|
|
262
|
+
animation: rightSideCollapse ${expandTiming};
|
|
263
|
+
`) : ""}
|
|
264
|
+
}
|
|
265
|
+
`;
|
|
266
|
+
var CardPageSubtitle = styled.p`
|
|
267
|
+
color: ${({ theme }) => theme.mcNeutral};
|
|
268
|
+
font-size: ${size.px14};
|
|
269
|
+
line-height: ${size.px18};
|
|
270
|
+
font-weight: 600;
|
|
271
|
+
margin: 0;
|
|
272
|
+
`;
|
|
273
|
+
var CardPageHeader = styled.div`
|
|
274
|
+
align-items: center;
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-direction: row;
|
|
277
|
+
justify-content: space-between;
|
|
278
|
+
position: relative;
|
|
279
|
+
|
|
280
|
+
& + *:not(${CardPageSubtitle}):not(${ButtonRowContainer}) {
|
|
281
|
+
margin-top: ${headingContentMarginPx}px !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
& + ${CardPageSubtitle} {
|
|
285
|
+
margin-top: 5px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
& + ${ButtonRowContainer} {
|
|
289
|
+
margin-top: 16px;
|
|
290
|
+
}
|
|
291
|
+
`;
|
|
292
|
+
var CardPageContent = styled.div`
|
|
293
|
+
${({
|
|
294
|
+
maxContentWidth,
|
|
295
|
+
minContentHeight,
|
|
296
|
+
minContentWidth,
|
|
297
|
+
hasPreHeaderContent
|
|
298
|
+
}) => `
|
|
299
|
+
max-width: ${maxContentWidth ? `${maxContentWidth}px` : "initial"};
|
|
300
|
+
min-width: ${minContentWidth ? `${minContentWidth}px` : "initial"};
|
|
301
|
+
${CardPageHeader.toString()} {
|
|
302
|
+
margin-top: ${hasPreHeaderContent ? "25px" : "0"};
|
|
303
|
+
}
|
|
304
|
+
min-height: ${minContentHeight !== void 0 && minContentHeight !== null ? `${minContentHeight}px` : "400px"};
|
|
305
|
+
`}
|
|
306
|
+
`;
|
|
307
|
+
|
|
308
|
+
export {
|
|
309
|
+
CardPage,
|
|
310
|
+
CardPageFullContent,
|
|
311
|
+
CardPageFullWidth,
|
|
312
|
+
CardPageRightContentInner,
|
|
313
|
+
CardPageSubtitle,
|
|
314
|
+
CardPageContent
|
|
315
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StyledTitle
|
|
3
3
|
} from "./chunk-FHNYQLMF.js";
|
|
4
|
+
import {
|
|
5
|
+
StyledBody
|
|
6
|
+
} from "./chunk-LD5LZXUP.js";
|
|
4
7
|
import {
|
|
5
8
|
StyledCode
|
|
6
9
|
} from "./chunk-BCFRW7CV.js";
|
|
7
10
|
import {
|
|
8
11
|
displaySelector
|
|
9
12
|
} from "./chunk-QGGOMPHZ.js";
|
|
10
|
-
import {
|
|
11
|
-
StyledBody
|
|
12
|
-
} from "./chunk-LD5LZXUP.js";
|
|
13
13
|
import {
|
|
14
14
|
ALL_HEADLINE_SELECTORS,
|
|
15
15
|
headlineSelector
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
} from "./chunk-YMNSXZ5D.js";
|
|
20
20
|
import {
|
|
21
21
|
overflowAutoWithoutScrollbars
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FCZJILMW.js";
|
|
23
23
|
import {
|
|
24
24
|
StyledContentTable
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XP2MX2AA.js";
|
|
26
26
|
import {
|
|
27
27
|
standardBorderRadius
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JK4BP73A.js";
|
|
29
29
|
import {
|
|
30
30
|
colors
|
|
31
31
|
} from "./chunk-2VBDEO6M.js";
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-YMNSXZ5D.js";
|
|
7
7
|
import {
|
|
8
8
|
Loading
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J4FJQ3FN.js";
|
|
10
10
|
import {
|
|
11
11
|
UnstyledButton
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3GS5EFXV.js";
|
|
13
13
|
import {
|
|
14
14
|
LightTooltip
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3EVAP5JT.js";
|
|
16
16
|
import {
|
|
17
17
|
Icon
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RWIZ7Q74.js";
|
|
19
19
|
import {
|
|
20
20
|
getFocusOutline
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JK4BP73A.js";
|
|
22
22
|
import {
|
|
23
23
|
colors,
|
|
24
24
|
themeOr
|
|
@@ -1263,36 +1263,50 @@ var import_react4 = require("@emotion/react");
|
|
|
1263
1263
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
1264
1264
|
var rootFontSizePx = 12;
|
|
1265
1265
|
var rootFontSizeRems = rootFontSizePx / 16;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1266
|
+
function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
1267
|
+
const smCSS = import_react4.css`
|
|
1268
|
+
${bp.sm(`
|
|
1269
|
+
margin-left: auto;
|
|
1270
|
+
margin-right: auto;
|
|
1271
|
+
width: calc(100% - ${smPx * 2}px);
|
|
1272
|
+
`)}
|
|
1273
|
+
`;
|
|
1274
|
+
const minSmMaxLgCSS = import_react4.css`
|
|
1275
|
+
${bp.minSmMaxLg(`
|
|
1276
|
+
margin-left: auto;
|
|
1277
|
+
margin-right: auto;
|
|
1278
|
+
width: calc(100% - ${minSmMaxLgPx * 2}px);
|
|
1279
|
+
`)}
|
|
1280
|
+
`;
|
|
1281
|
+
const lgCSS = import_react4.css`
|
|
1282
|
+
${bp.lg(`
|
|
1283
|
+
margin-left: auto;
|
|
1284
|
+
margin-right: auto;
|
|
1285
|
+
width: calc(100% - ${lgPx * 2}px);
|
|
1286
|
+
max-width: 1280px;
|
|
1287
|
+
`)}
|
|
1288
|
+
`;
|
|
1289
|
+
return {
|
|
1290
|
+
smPx,
|
|
1291
|
+
minSmMaxLgPx,
|
|
1292
|
+
lgPx,
|
|
1293
|
+
smCSS,
|
|
1294
|
+
minSmMaxLgCSS,
|
|
1295
|
+
lgCSS,
|
|
1296
|
+
css: import_react4.css`
|
|
1297
|
+
${lgCSS}
|
|
1298
|
+
${smCSS}
|
|
1299
|
+
${minSmMaxLgCSS}
|
|
1300
|
+
`
|
|
1301
|
+
};
|
|
1302
|
+
}
|
|
1303
|
+
var standardContentInset = buildStandardContentInset(16, 24, 32);
|
|
1269
1304
|
var standardBorderRadius = (radius) => {
|
|
1270
1305
|
const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
|
|
1271
1306
|
return `
|
|
1272
1307
|
border-radius: ${borderRadiusPx};
|
|
1273
1308
|
`;
|
|
1274
1309
|
};
|
|
1275
|
-
var smContentInset = import_react4.css`
|
|
1276
|
-
${bp.sm(`
|
|
1277
|
-
margin-left: auto;
|
|
1278
|
-
margin-right: auto;
|
|
1279
|
-
width: calc(100% - ${standardContentInsetSmPx * 2}px);
|
|
1280
|
-
`)}
|
|
1281
|
-
`;
|
|
1282
|
-
var minSmMaxLgContentInset = import_react4.css`
|
|
1283
|
-
${bp.minSmMaxLg(`
|
|
1284
|
-
width: calc(100% - ${standardContentInsetMdPx * 2}px);
|
|
1285
|
-
`)}
|
|
1286
|
-
`;
|
|
1287
|
-
var standardContentInset = import_react4.css`
|
|
1288
|
-
margin-left: auto;
|
|
1289
|
-
margin-right: auto;
|
|
1290
|
-
width: calc(100% - ${standardContentInsetPx * 2}px);
|
|
1291
|
-
max-width: 1280px;
|
|
1292
|
-
|
|
1293
|
-
${smContentInset}
|
|
1294
|
-
${minSmMaxLgContentInset}
|
|
1295
|
-
`;
|
|
1296
1310
|
var standardCardShadow = import_react4.css`
|
|
1297
1311
|
box-shadow:
|
|
1298
1312
|
0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Badge,
|
|
3
3
|
badgeVPadding
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DQRN4E5G.js";
|
|
5
|
+
import "../chunk-JK4BP73A.js";
|
|
6
6
|
import "../chunk-2VBDEO6M.js";
|
|
7
7
|
import "../chunk-E4EXM4SY.js";
|
|
8
8
|
import "../chunk-JSGRNWSB.js";
|