@manamerge/mana-atomic-ui 1.0.45 → 1.0.47
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 -5
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/themes/{DavidWebTheme.js → themes/DavidWebTheme.ts} +27 -1
- package/dist/themes/{ManamergeTheme.js → themes/ManamergeTheme.ts} +40 -7
- package/dist/themes/themes/davidWeb/fonts/index.js +15 -44
- package/dist/themes/themes/davidWeb/images/icons/modal/closeicon.svg.js +42 -37
- package/dist/themes/themes/davidWeb/images/icons/navigation/notification.svg.js +49 -48
- package/dist/themes/themes/davidWeb/images/icons/navigation/profile.svg.js +31 -27
- package/dist/themes/themes/davidWeb/images/icons/navigation/user.svg.js +33 -29
- package/dist/themes/themes/davidWeb/styling/chat-theme.css.js +14 -80
- package/dist/themes/themes/davidWeb/styling/filter-list-theme.css.js +12 -47
- package/dist/themes/themes/davidWeb/styling/notification-theme.css.js +22 -166
- package/dist/themes/themes/manamerge/fonts/index.js +17 -55
- package/dist/themes/themes/manamerge/images/icons/modal/closeicon.svg.js +42 -37
- package/dist/themes/themes/manamerge/images/icons/navigation/notification.svg.js +49 -48
- package/dist/themes/themes/manamerge/images/icons/navigation/profile.svg.js +31 -27
- package/dist/themes/themes/manamerge/images/icons/navigation/user.svg.js +33 -29
- package/dist/themes/themes/manamerge/miscellaneous/colorpalette.ts +7 -6
- package/dist/themes/themes/manamerge/miscellaneous/fontsizes.ts +4 -2
- package/dist/themes/themes/manamerge/styling/chat-theme.css.js +14 -80
- package/dist/themes/themes/manamerge/styling/filter-list-theme.css.js +12 -47
- package/dist/themes/themes/manamerge/styling/notification-theme.css.js +22 -166
- package/dist/types/components/Atoms/Heading/Heading.d.ts +1 -1
- package/dist/types/components/Atoms/Text/Text.d.ts +2 -4
- package/dist/types/themes/ManamergeTheme.d.ts +167 -167
- package/dist/types/themes/manamerge/atoms/button.d.ts +18 -18
- package/dist/types/themes/manamerge/atoms/divider.d.ts +3 -3
- package/dist/types/themes/manamerge/atoms/gradient.d.ts +6 -6
- package/dist/types/themes/manamerge/atoms/heading.d.ts +36 -36
- package/dist/types/themes/manamerge/atoms/link.d.ts +30 -30
- package/dist/types/themes/manamerge/atoms/text.d.ts +14 -14
- package/dist/types/themes/manamerge/miscellaneous/colorpalette.d.ts +24 -29
- package/dist/types/themes/manamerge/miscellaneous/fontsizes.d.ts +8 -9
- package/dist/types/themes/manamerge/molecules/cardBanner.d.ts +2 -2
- package/package.json +2 -3
- package/dist/themes/davidWeb/atoms/button.js +0 -107
- package/dist/themes/davidWeb/atoms/checkbox.js +0 -72
- package/dist/themes/davidWeb/atoms/divider.js +0 -24
- package/dist/themes/davidWeb/atoms/gradient.js +0 -18
- package/dist/themes/davidWeb/atoms/heading.js +0 -141
- package/dist/themes/davidWeb/atoms/icon.js +0 -30
- package/dist/themes/davidWeb/atoms/link.js +0 -78
- package/dist/themes/davidWeb/atoms/text.js +0 -38
- package/dist/themes/davidWeb/layouts/pint3.js +0 -13
- package/dist/themes/davidWeb/miscellaneous/breakpoints.js +0 -14
- package/dist/themes/davidWeb/molecules/accordion.js +0 -29
- package/dist/themes/davidWeb/molecules/breakerTape.js +0 -30
- package/dist/themes/davidWeb/molecules/cardBanner.js +0 -26
- package/dist/themes/davidWeb/molecules/cardSimpleRender.js +0 -34
- package/dist/themes/davidWeb/molecules/cardTeaser.js +0 -69
- package/dist/themes/davidWeb/molecules/footer.js +0 -26
- package/dist/themes/davidWeb/molecules/header.js +0 -94
- package/dist/themes/davidWeb/molecules/navigation.js +0 -53
- package/dist/themes/manamerge/atoms/button.js +0 -108
- package/dist/themes/manamerge/atoms/checkbox.js +0 -72
- package/dist/themes/manamerge/atoms/divider.js +0 -25
- package/dist/themes/manamerge/atoms/gradient.js +0 -19
- package/dist/themes/manamerge/atoms/heading.js +0 -280
- package/dist/themes/manamerge/atoms/icon.js +0 -30
- package/dist/themes/manamerge/atoms/link.js +0 -124
- package/dist/themes/manamerge/atoms/text.js +0 -62
- package/dist/themes/manamerge/layouts/pint3.js +0 -13
- package/dist/themes/manamerge/miscellaneous/breakpoints.js +0 -14
- package/dist/themes/manamerge/miscellaneous/colorpalette.js +0 -31
- package/dist/themes/manamerge/miscellaneous/fontsizes.js +0 -11
- package/dist/themes/manamerge/molecules/accordion.js +0 -29
- package/dist/themes/manamerge/molecules/breakerTape.js +0 -30
- package/dist/themes/manamerge/molecules/cardBanner.js +0 -26
- package/dist/themes/manamerge/molecules/cardSimpleRender.js +0 -35
- package/dist/themes/manamerge/molecules/cardTeaser.js +0 -69
- package/dist/themes/manamerge/molecules/footer.js +0 -26
- package/dist/themes/manamerge/molecules/header.js +0 -86
- package/dist/themes/manamerge/molecules/navigation.js +0 -53
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ReactNode, FunctionComponent, SVGProps, AnchorHTMLAttributes, ElementType } from 'react';
|
|
2
|
-
import { PaletteColor } from 'themes/manamerge/miscellaneous/colorpalette';
|
|
3
2
|
|
|
4
3
|
interface ButtonTypes {
|
|
5
4
|
disabled?: boolean;
|
|
@@ -19,12 +18,11 @@ interface TextTypes {
|
|
|
19
18
|
htmlFor?: string;
|
|
20
19
|
margin?: string;
|
|
21
20
|
color?: string;
|
|
22
|
-
fontSize?: string;
|
|
23
21
|
lineHeight?: string;
|
|
24
22
|
fontWeight?: string | number;
|
|
25
23
|
tag?: keyof JSX.IntrinsicElements;
|
|
26
|
-
vColor?:
|
|
27
|
-
vFontSize?: "sm" | "md" | "lg" | "xl" | "xxl" | "
|
|
24
|
+
vColor?: string;
|
|
25
|
+
vFontSize?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxxl";
|
|
28
26
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
29
27
|
}
|
|
30
28
|
declare const Text: React.FC<TextTypes>;
|
|
@@ -32,7 +30,7 @@ declare const Text: React.FC<TextTypes>;
|
|
|
32
30
|
interface HeadingTypes {
|
|
33
31
|
variant?: string;
|
|
34
32
|
children: ReactNode;
|
|
35
|
-
as
|
|
33
|
+
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
36
34
|
}
|
|
37
35
|
declare const Heading: React.FC<HeadingTypes>;
|
|
38
36
|
|
package/dist/index.js
CHANGED
|
@@ -143,16 +143,15 @@ const TextContainer = styled.p `
|
|
|
143
143
|
var _b, _c;
|
|
144
144
|
var { variant = "regular", theme } = _a, props = __rest(_a, ["variant", "theme"]);
|
|
145
145
|
const textStyles = ((_b = theme === null || theme === void 0 ? void 0 : theme.text) === null || _b === void 0 ? void 0 : _b[variant]) || {};
|
|
146
|
-
console.log("----", theme);
|
|
147
146
|
return css `
|
|
148
147
|
margin: ${(props === null || props === void 0 ? void 0 : props.margin) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.margin)};
|
|
149
|
-
font-size: ${((_c = theme
|
|
148
|
+
font-size: ${((_c = theme.fontsizes) === null || _c === void 0 ? void 0 : _c[props === null || props === void 0 ? void 0 : props.vFontSize]) ||
|
|
150
149
|
(textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
|
|
151
150
|
line-height: ${(props === null || props === void 0 ? void 0 : props.lineHeight) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.lineHeight)};
|
|
152
151
|
font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
|
|
153
152
|
(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||
|
|
154
153
|
"regular"};
|
|
155
|
-
font-family: ${
|
|
154
|
+
font-family: ${textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily};
|
|
156
155
|
font-style: ${(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontStyle) || "normal"};
|
|
157
156
|
color: ${(props === null || props === void 0 ? void 0 : props.vColor) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vColor) || "inherit"};
|
|
158
157
|
`;
|
|
@@ -178,16 +177,18 @@ const TextContainerLabel = styled.label `
|
|
|
178
177
|
`;
|
|
179
178
|
|
|
180
179
|
const Text = (_a) => {
|
|
181
|
-
var { variant, children, htmlFor, margin, vColor, vFontSize,
|
|
180
|
+
var { variant, children, htmlFor, margin, vColor, vFontSize, lineHeight, fontWeight, tag, onClick } = _a, props = __rest(_a, ["variant", "children", "htmlFor", "margin", "vColor", "vFontSize", "lineHeight", "fontWeight", "tag", "onClick"]);
|
|
182
181
|
// Determine which component to use
|
|
183
182
|
const Wrapper = htmlFor
|
|
184
183
|
? TextContainerLabel
|
|
185
184
|
: TextContainer;
|
|
186
|
-
return (jsx(Wrapper, Object.assign({ as: tag, className: classNames("Text-", variant), variant: "Text-" + variant, htmlFor: htmlFor, vColor: vColor, vFontSize: vFontSize,
|
|
185
|
+
return (jsx(Wrapper, Object.assign({ as: tag, className: classNames("Text-", variant), variant: "Text-" + variant, htmlFor: htmlFor, vColor: vColor, vFontSize: vFontSize,
|
|
186
|
+
// ? WIP - erase in line styles card nº 159
|
|
187
|
+
style: { margin, lineHeight, fontWeight }, onClick: onClick }, props, { children: children })));
|
|
187
188
|
};
|
|
188
189
|
|
|
189
190
|
const HeadingContainer = styled.h1 `
|
|
190
|
-
${({ variant, theme }) => {
|
|
191
|
+
${({ variant = "h1", theme }) => {
|
|
191
192
|
const { media, heading } = theme;
|
|
192
193
|
const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
|
|
193
194
|
const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
|