@manamerge/mana-atomic-ui 1.0.159 → 1.0.160
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/index.d.ts +2 -2
- package/dist/index.js +40 -18
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/ManamergeTheme.ts +5 -0
- package/dist/themes/themes/manamerge/atoms/heading.ts +54 -91
- package/dist/themes/themes/manamerge/atoms/text.ts +14 -14
- package/dist/themes/themes/manamerge/fonts/Gilmer-Bold.woff2 +0 -0
- package/dist/themes/themes/manamerge/fonts/Gilmer-Heavy.woff2 +0 -0
- package/dist/themes/themes/manamerge/fonts/Gilmer-Light.woff2 +0 -0
- package/dist/themes/themes/manamerge/fonts/Gilmer-Medium.woff2 +0 -0
- package/dist/themes/themes/manamerge/fonts/Gilmer-Regular.woff2 +0 -0
- package/dist/themes/themes/manamerge/molecules/breakerTape.ts +7 -11
- package/dist/themes/themes/manamerge/molecules/header.ts +11 -5
- package/dist/types/components/Atoms/Heading/Heading.d.ts +0 -1
- package/dist/types/components/Atoms/Text/Text.d.ts +2 -1
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy.d.ts +11 -0
- package/dist/types/components/Molecules/Header/Header.css.d.ts +3 -0
- package/dist/types/themes/ManamergeTheme.d.ts +50 -89
- package/dist/types/themes/manamerge/atoms/heading.d.ts +0 -36
- package/dist/types/themes/manamerge/atoms/text.d.ts +14 -14
- package/dist/types/themes/manamerge/molecules/breakerTape.d.ts +1 -2
- package/dist/types/themes/manamerge/molecules/header.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,10 +13,11 @@ interface ButtonTypes {
|
|
|
13
13
|
declare const Button: React.FC<ButtonTypes>;
|
|
14
14
|
|
|
15
15
|
interface TextTypes {
|
|
16
|
-
variant?:
|
|
16
|
+
variant?: string;
|
|
17
17
|
children?: string;
|
|
18
18
|
htmlFor?: string;
|
|
19
19
|
margin?: string;
|
|
20
|
+
color?: string;
|
|
20
21
|
lineHeight?: string;
|
|
21
22
|
fontWeight?: string | number;
|
|
22
23
|
tag?: keyof JSX.IntrinsicElements;
|
|
@@ -29,7 +30,6 @@ declare const Text: React.FC<TextTypes>;
|
|
|
29
30
|
interface HeadingTypes {
|
|
30
31
|
variant?: string;
|
|
31
32
|
children: ReactNode;
|
|
32
|
-
vColor?: string;
|
|
33
33
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
34
34
|
}
|
|
35
35
|
declare const Heading: React.FC<HeadingTypes>;
|
package/dist/index.js
CHANGED
|
@@ -164,14 +164,14 @@ const TextContainerLabel = styled.label `
|
|
|
164
164
|
const textStyles = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b[variant]) || {};
|
|
165
165
|
return css `
|
|
166
166
|
margin: ${(props === null || props === void 0 ? void 0 : props.margin) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.margin)};
|
|
167
|
-
font-size: ${(props === null || props === void 0 ? void 0 : props.vFontSize) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.
|
|
167
|
+
font-size: ${(props === null || props === void 0 ? void 0 : props.vFontSize) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
|
|
168
168
|
line-height: ${(props === null || props === void 0 ? void 0 : props.lineHeight) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.lineHeight)};
|
|
169
169
|
font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
|
|
170
170
|
(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||
|
|
171
171
|
"regular"};
|
|
172
172
|
font-family: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily) || "inherit"};
|
|
173
173
|
font-style: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontStyle) || "normal"};
|
|
174
|
-
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.
|
|
174
|
+
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vColor) || "inherit"};
|
|
175
175
|
`;
|
|
176
176
|
}};
|
|
177
177
|
`;
|
|
@@ -188,8 +188,7 @@ const Text = (_a) => {
|
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
const HeadingContainer = styled.h1 `
|
|
191
|
-
${(
|
|
192
|
-
var { variant, theme } = _a, props = __rest(_a, ["variant", "theme"]);
|
|
191
|
+
${({ variant, theme }) => {
|
|
193
192
|
const { media, heading } = theme;
|
|
194
193
|
const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
|
|
195
194
|
const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
|
|
@@ -199,34 +198,31 @@ const HeadingContainer = styled.h1 `
|
|
|
199
198
|
font-size: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontSize};
|
|
200
199
|
font-weight: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontWeight};
|
|
201
200
|
line-height: ${mobile === null || mobile === void 0 ? void 0 : mobile.lineHeight};
|
|
202
|
-
color: ${
|
|
201
|
+
color: ${mobile === null || mobile === void 0 ? void 0 : mobile.color};
|
|
203
202
|
margin: ${mobile === null || mobile === void 0 ? void 0 : mobile.margin};
|
|
204
|
-
font-family: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontFamily};
|
|
205
203
|
}
|
|
206
204
|
${largeMobileUp} {
|
|
207
205
|
font-size: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontSize};
|
|
208
206
|
font-weight: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontWeight};
|
|
209
207
|
line-height: ${tablet === null || tablet === void 0 ? void 0 : tablet.lineHeight};
|
|
210
|
-
color: ${
|
|
208
|
+
color: ${tablet === null || tablet === void 0 ? void 0 : tablet.color};
|
|
211
209
|
margin: ${tablet === null || tablet === void 0 ? void 0 : tablet.margin};
|
|
212
|
-
font-family: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontFamily};
|
|
213
210
|
}
|
|
214
211
|
${superLargeDesktopUp} {
|
|
215
212
|
font-size: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontSize};
|
|
216
213
|
font-weight: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontWeight};
|
|
217
214
|
line-height: ${desktop === null || desktop === void 0 ? void 0 : desktop.lineHeight};
|
|
218
|
-
color: ${
|
|
215
|
+
color: ${desktop === null || desktop === void 0 ? void 0 : desktop.color};
|
|
219
216
|
margin: ${desktop === null || desktop === void 0 ? void 0 : desktop.margin};
|
|
220
|
-
font-family: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontFamily};
|
|
221
217
|
}
|
|
222
218
|
`;
|
|
223
219
|
}}
|
|
224
220
|
`;
|
|
225
221
|
|
|
226
222
|
const Heading = (_a) => {
|
|
227
|
-
var { variant = "primary", as = "h1",
|
|
223
|
+
var { variant = "primary", as = "h1", children } = _a, props = __rest(_a, ["variant", "as", "children"]);
|
|
228
224
|
const headingVariant = `Heading-${variant}-${as}`;
|
|
229
|
-
return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant,
|
|
225
|
+
return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant, as: as }, props, { children: children })));
|
|
230
226
|
};
|
|
231
227
|
|
|
232
228
|
const StyledSvg = styled.svg `
|
|
@@ -503,6 +499,24 @@ const WrapperBackground = styled.div `
|
|
|
503
499
|
justify-content: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) || "center"};
|
|
504
500
|
height: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "unset"};
|
|
505
501
|
background-color: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.backgroundColor) || "unset"};
|
|
502
|
+
/* background: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background}; */
|
|
503
|
+
/* background: radial-gradient(
|
|
504
|
+
circle at center,
|
|
505
|
+
#ff7e5f 0%,
|
|
506
|
+
#ff7e5f 30%,
|
|
507
|
+
#feb47b 60%,
|
|
508
|
+
transparent 100%
|
|
509
|
+
); */
|
|
510
|
+
/* background: radial-gradient(
|
|
511
|
+
circle at center,
|
|
512
|
+
rgba(255, 126, 95, 0.8) 0%,
|
|
513
|
+
rgba(255, 126, 95, 0.3) 40%,
|
|
514
|
+
rgba(255, 126, 95, 0) 70%,
|
|
515
|
+
transparent 100%
|
|
516
|
+
);
|
|
517
|
+
backdrop-filter: blur(20px);
|
|
518
|
+
aspect-ratio: 1 / 1; */
|
|
519
|
+
/* border-radius: 50%; */
|
|
506
520
|
|
|
507
521
|
/* Overlay */
|
|
508
522
|
${withOverlay &&
|
|
@@ -604,16 +618,25 @@ const AtomIconDot = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
|
604
618
|
`;
|
|
605
619
|
}}
|
|
606
620
|
`;
|
|
621
|
+
const AtomTextBanner = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
622
|
+
var _a, _b, _c, _d, _e, _f;
|
|
623
|
+
return ({
|
|
624
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextBanner) === null || _c === void 0 ? void 0 : _c.variant,
|
|
625
|
+
vColor: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomTextBanner) === null || _f === void 0 ? void 0 : _f.color
|
|
626
|
+
});
|
|
627
|
+
}) ``;
|
|
607
628
|
const AtomHeading$3 = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
608
|
-
var _a, _b, _c;
|
|
629
|
+
var _a, _b, _c, _d, _e, _f;
|
|
609
630
|
return ({
|
|
610
|
-
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomHeading) === null || _c === void 0 ? void 0 : _c.variant
|
|
631
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomHeading) === null || _c === void 0 ? void 0 : _c.variant,
|
|
632
|
+
as: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomHeading) === null || _f === void 0 ? void 0 : _f.as
|
|
611
633
|
});
|
|
612
634
|
}) ``;
|
|
613
635
|
const AtomTextTitle = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
614
|
-
var _a, _b, _c;
|
|
636
|
+
var _a, _b, _c, _d, _e, _f;
|
|
615
637
|
return ({
|
|
616
|
-
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextTitle) === null || _c === void 0 ? void 0 : _c.variant
|
|
638
|
+
variant: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.atomTextTitle) === null || _c === void 0 ? void 0 : _c.variant,
|
|
639
|
+
vColor: (_f = (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.header) === null || _d === void 0 ? void 0 : _d[moleculeVariant]) === null || _e === void 0 ? void 0 : _e.atomTextTitle) === null || _f === void 0 ? void 0 : _f.color
|
|
617
640
|
});
|
|
618
641
|
}) ``;
|
|
619
642
|
const WrapperLineBottom = styled.div `
|
|
@@ -682,7 +705,7 @@ const WrapperTextTitle = styled.div `
|
|
|
682
705
|
|
|
683
706
|
const Header = ({ moleculeVariant = "primary", iconTop, iconDot, buttonLeftIcon, buttonRightIcon, textBanner, headingTitle, textTitle, buttonLeftText, buttonLeftClick, buttonRightText, buttonRightClick, imageURLBackground, withOverlay }) => {
|
|
684
707
|
const compVariant = `Header-${moleculeVariant}`;
|
|
685
|
-
return (jsx(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, imageURLBackground: imageURLBackground, withOverlay: withOverlay }, { children: jsxs(WrapperHeader, Object.assign({ moleculeVariant: compVariant }, { children: [jsxs("div", { children: [iconTop && (jsx(AtomIconTop, { moleculeVariant: compVariant, svg: iconTop })), textBanner && (jsxs(WrapperLineTop, Object.assign({ moleculeVariant: compVariant }, { children: [iconDot && (jsx(AtomIconDot, { moleculeVariant: compVariant, svg: iconDot })), jsx(
|
|
708
|
+
return (jsx(WrapperBackground, Object.assign({ className: classNames(compVariant), moleculeVariant: compVariant, imageURLBackground: imageURLBackground, withOverlay: withOverlay }, { children: jsxs(WrapperHeader, Object.assign({ moleculeVariant: compVariant }, { children: [jsxs("div", { children: [iconTop && (jsx(AtomIconTop, { moleculeVariant: compVariant, svg: iconTop })), textBanner && (jsxs(WrapperLineTop, Object.assign({ moleculeVariant: compVariant }, { children: [iconDot && (jsx(AtomIconDot, { moleculeVariant: compVariant, svg: iconDot })), jsx(AtomTextBanner, Object.assign({ moleculeVariant: compVariant }, { children: textBanner }))] })))] }), headingTitle && (jsx(AtomHeading$3, Object.assign({ moleculeVariant: compVariant }, { children: headingTitle }))), jsx(WrapperTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textTitle &&
|
|
686
709
|
(textTitle === null || textTitle === void 0 ? void 0 : textTitle.map((text, i) => (jsx(AtomTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: text }), i)))) })), jsxs(WrapperLineBottom, { children: [(buttonLeftIcon || buttonLeftText) && (jsxs(AtomButtonLeft, Object.assign({ moleculeVariant: compVariant, onClick: buttonLeftClick }, { children: [buttonLeftIcon && (jsx(AtomIconLeft, { moleculeVariant: compVariant, svg: buttonLeftIcon })), buttonLeftText] }))), (buttonRightIcon || buttonRightText) && (jsxs(AtomButtonRight, Object.assign({ moleculeVariant: compVariant, onClick: buttonRightClick }, { children: [buttonRightText, buttonRightIcon && (jsx(AtomIconRight, { moleculeVariant: compVariant, svg: buttonRightIcon }))] })))] })] })) })));
|
|
687
710
|
};
|
|
688
711
|
|
|
@@ -1212,7 +1235,6 @@ const TextBreakerTape = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1212
1235
|
const textTheme = ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.breakerTape) === null || _a === void 0 ? void 0 : _a[moleculeVariant]) === null || _b === void 0 ? void 0 : _b.text) || {};
|
|
1213
1236
|
return css `
|
|
1214
1237
|
color: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.color};
|
|
1215
|
-
font-size: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.fontSize};
|
|
1216
1238
|
`;
|
|
1217
1239
|
}}
|
|
1218
1240
|
`;
|