@manamerge/mana-atomic-ui 1.0.160 → 1.0.162
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 +3 -3
- package/dist/index.js +22 -42
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/ManamergeTheme.ts +0 -5
- package/dist/themes/themes/manamerge/atoms/heading.ts +109 -72
- package/dist/themes/themes/manamerge/atoms/text.ts +14 -14
- package/dist/themes/themes/manamerge/molecules/breakerTape.ts +11 -7
- package/dist/themes/themes/manamerge/molecules/header.ts +14 -18
- package/dist/types/components/Atoms/Heading/Heading.d.ts +2 -1
- package/dist/types/components/Atoms/Text/Text.d.ts +1 -2
- package/dist/types/components/Molecules/Header/Header.css.d.ts +0 -3
- package/dist/types/themes/ManamergeTheme.d.ts +91 -50
- package/dist/types/themes/manamerge/atoms/heading.d.ts +36 -0
- package/dist/types/themes/manamerge/atoms/text.d.ts +14 -14
- package/dist/types/themes/manamerge/molecules/breakerTape.d.ts +2 -1
- package/dist/types/themes/manamerge/molecules/header.d.ts +3 -5
- package/package.json +1 -1
- 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/types/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy.d.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -13,11 +13,10 @@ interface ButtonTypes {
|
|
|
13
13
|
declare const Button: React.FC<ButtonTypes>;
|
|
14
14
|
|
|
15
15
|
interface TextTypes {
|
|
16
|
-
variant?:
|
|
16
|
+
variant?: "primary-light" | "primary-regular" | "primary-medium" | "primary-bold" | "primary-heavy" | "secondary-regular" | "secondary-italic";
|
|
17
17
|
children?: string;
|
|
18
18
|
htmlFor?: string;
|
|
19
19
|
margin?: string;
|
|
20
|
-
color?: string;
|
|
21
20
|
lineHeight?: string;
|
|
22
21
|
fontWeight?: string | number;
|
|
23
22
|
tag?: keyof JSX.IntrinsicElements;
|
|
@@ -30,7 +29,8 @@ declare const Text: React.FC<TextTypes>;
|
|
|
30
29
|
interface HeadingTypes {
|
|
31
30
|
variant?: string;
|
|
32
31
|
children: ReactNode;
|
|
33
|
-
|
|
32
|
+
vColor?: string;
|
|
33
|
+
asTag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
34
34
|
}
|
|
35
35
|
declare const Heading: React.FC<HeadingTypes>;
|
|
36
36
|
|
package/dist/index.js
CHANGED
|
@@ -153,7 +153,7 @@ const TextContainer = styled.p `
|
|
|
153
153
|
"regular"};
|
|
154
154
|
font-family: ${textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily};
|
|
155
155
|
font-style: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontStyle) || "normal"};
|
|
156
|
-
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.
|
|
156
|
+
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.color) || "inherit"};
|
|
157
157
|
`;
|
|
158
158
|
}};
|
|
159
159
|
`;
|
|
@@ -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.fontSize)};
|
|
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.color) || "inherit"};
|
|
175
175
|
`;
|
|
176
176
|
}};
|
|
177
177
|
`;
|
|
@@ -188,7 +188,8 @@ const Text = (_a) => {
|
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
const HeadingContainer = styled.h1 `
|
|
191
|
-
${(
|
|
191
|
+
${(_a) => {
|
|
192
|
+
var { variant, theme } = _a, props = __rest(_a, ["variant", "theme"]);
|
|
192
193
|
const { media, heading } = theme;
|
|
193
194
|
const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
|
|
194
195
|
const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
|
|
@@ -198,31 +199,34 @@ const HeadingContainer = styled.h1 `
|
|
|
198
199
|
font-size: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontSize};
|
|
199
200
|
font-weight: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontWeight};
|
|
200
201
|
line-height: ${mobile === null || mobile === void 0 ? void 0 : mobile.lineHeight};
|
|
201
|
-
color: ${mobile === null || mobile === void 0 ? void 0 : mobile.color};
|
|
202
|
+
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (mobile === null || mobile === void 0 ? void 0 : mobile.color)};
|
|
202
203
|
margin: ${mobile === null || mobile === void 0 ? void 0 : mobile.margin};
|
|
204
|
+
font-family: ${mobile === null || mobile === void 0 ? void 0 : mobile.fontFamily};
|
|
203
205
|
}
|
|
204
206
|
${largeMobileUp} {
|
|
205
207
|
font-size: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontSize};
|
|
206
208
|
font-weight: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontWeight};
|
|
207
209
|
line-height: ${tablet === null || tablet === void 0 ? void 0 : tablet.lineHeight};
|
|
208
|
-
color: ${tablet === null || tablet === void 0 ? void 0 : tablet.color};
|
|
210
|
+
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (tablet === null || tablet === void 0 ? void 0 : tablet.color)};
|
|
209
211
|
margin: ${tablet === null || tablet === void 0 ? void 0 : tablet.margin};
|
|
212
|
+
font-family: ${tablet === null || tablet === void 0 ? void 0 : tablet.fontFamily};
|
|
210
213
|
}
|
|
211
214
|
${superLargeDesktopUp} {
|
|
212
215
|
font-size: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontSize};
|
|
213
216
|
font-weight: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontWeight};
|
|
214
217
|
line-height: ${desktop === null || desktop === void 0 ? void 0 : desktop.lineHeight};
|
|
215
|
-
color: ${desktop === null || desktop === void 0 ? void 0 : desktop.color};
|
|
218
|
+
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (desktop === null || desktop === void 0 ? void 0 : desktop.color)};
|
|
216
219
|
margin: ${desktop === null || desktop === void 0 ? void 0 : desktop.margin};
|
|
220
|
+
font-family: ${desktop === null || desktop === void 0 ? void 0 : desktop.fontFamily};
|
|
217
221
|
}
|
|
218
222
|
`;
|
|
219
223
|
}}
|
|
220
224
|
`;
|
|
221
225
|
|
|
222
226
|
const Heading = (_a) => {
|
|
223
|
-
var { variant = "primary",
|
|
224
|
-
const headingVariant = `Heading-${variant}-${
|
|
225
|
-
return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant,
|
|
227
|
+
var { variant = "primary", asTag = "h1", vColor, children } = _a, props = __rest(_a, ["variant", "asTag", "vColor", "children"]);
|
|
228
|
+
const headingVariant = `Heading-${variant}-${asTag}`;
|
|
229
|
+
return (jsx(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: headingVariant, vColor: vColor, as: asTag }, props, { children: children })));
|
|
226
230
|
};
|
|
227
231
|
|
|
228
232
|
const StyledSvg = styled.svg `
|
|
@@ -499,24 +503,6 @@ const WrapperBackground = styled.div `
|
|
|
499
503
|
justify-content: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) || "center"};
|
|
500
504
|
height: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "unset"};
|
|
501
505
|
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%; */
|
|
520
506
|
|
|
521
507
|
/* Overlay */
|
|
522
508
|
${withOverlay &&
|
|
@@ -536,12 +522,12 @@ const WrapperBackground = styled.div `
|
|
|
536
522
|
"rgba(12, 178, 224, 0.7) 100%"}
|
|
537
523
|
);
|
|
538
524
|
|
|
539
|
-
opacity:
|
|
525
|
+
opacity: 1;
|
|
540
526
|
transition: opacity 0.7s ease;
|
|
541
527
|
pointer-events: none;
|
|
542
528
|
}
|
|
543
529
|
&:hover::before {
|
|
544
|
-
opacity:
|
|
530
|
+
opacity: 0;
|
|
545
531
|
}
|
|
546
532
|
`}
|
|
547
533
|
`;
|
|
@@ -559,6 +545,7 @@ const WrapperHeader = styled.div `
|
|
|
559
545
|
const thisTheme = ((_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.wrapperHeader) || {};
|
|
560
546
|
return css `
|
|
561
547
|
align-items: ${(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.alignItems) || "center"};
|
|
548
|
+
padding: ${thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding};
|
|
562
549
|
`;
|
|
563
550
|
}}
|
|
564
551
|
`;
|
|
@@ -618,25 +605,17 @@ const AtomIconDot = styled(Icon).attrs(({ theme, moleculeVariant }) => {
|
|
|
618
605
|
`;
|
|
619
606
|
}}
|
|
620
607
|
`;
|
|
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
|
-
}) ``;
|
|
628
608
|
const AtomHeading$3 = styled(Heading).attrs(({ theme, moleculeVariant }) => {
|
|
629
609
|
var _a, _b, _c, _d, _e, _f;
|
|
630
610
|
return ({
|
|
631
611
|
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
|
-
|
|
612
|
+
asTag: (_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.asTag
|
|
633
613
|
});
|
|
634
614
|
}) ``;
|
|
635
615
|
const AtomTextTitle = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
636
|
-
var _a, _b, _c
|
|
616
|
+
var _a, _b, _c;
|
|
637
617
|
return ({
|
|
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
|
|
618
|
+
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
|
|
640
619
|
});
|
|
641
620
|
}) ``;
|
|
642
621
|
const WrapperLineBottom = styled.div `
|
|
@@ -705,7 +684,7 @@ const WrapperTextTitle = styled.div `
|
|
|
705
684
|
|
|
706
685
|
const Header = ({ moleculeVariant = "primary", iconTop, iconDot, buttonLeftIcon, buttonRightIcon, textBanner, headingTitle, textTitle, buttonLeftText, buttonLeftClick, buttonRightText, buttonRightClick, imageURLBackground, withOverlay }) => {
|
|
707
686
|
const compVariant = `Header-${moleculeVariant}`;
|
|
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(
|
|
687
|
+
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(AtomTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textBanner }))] })))] }), headingTitle && (jsx(AtomHeading$3, Object.assign({ moleculeVariant: compVariant }, { children: headingTitle }))), jsx(WrapperTextTitle, Object.assign({ moleculeVariant: compVariant }, { children: textTitle &&
|
|
709
688
|
(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 }))] })))] })] })) })));
|
|
710
689
|
};
|
|
711
690
|
|
|
@@ -1235,6 +1214,7 @@ const TextBreakerTape = styled(Text).attrs(({ theme, moleculeVariant }) => {
|
|
|
1235
1214
|
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) || {};
|
|
1236
1215
|
return css `
|
|
1237
1216
|
color: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.color};
|
|
1217
|
+
font-size: ${textTheme === null || textTheme === void 0 ? void 0 : textTheme.fontSize};
|
|
1238
1218
|
`;
|
|
1239
1219
|
}}
|
|
1240
1220
|
`;
|