@manamerge/mana-atomic-ui 1.0.45 → 1.0.46
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 -4
- package/dist/index.js +2 -4
- 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} +36 -5
- 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 +6 -6
- package/dist/themes/themes/manamerge/miscellaneous/fontsizes.ts +3 -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 -3
- package/dist/types/themes/ManamergeTheme.d.ts +155 -155
- 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;
|
|
@@ -23,8 +22,8 @@ interface TextTypes {
|
|
|
23
22
|
lineHeight?: string;
|
|
24
23
|
fontWeight?: string | number;
|
|
25
24
|
tag?: keyof JSX.IntrinsicElements;
|
|
26
|
-
vColor?:
|
|
27
|
-
vFontSize?: "sm" | "md" | "lg" | "xl" | "xxl" | "
|
|
25
|
+
vColor?: string;
|
|
26
|
+
vFontSize?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxxl";
|
|
28
27
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
29
28
|
}
|
|
30
29
|
declare const Text: React.FC<TextTypes>;
|
|
@@ -32,7 +31,7 @@ declare const Text: React.FC<TextTypes>;
|
|
|
32
31
|
interface HeadingTypes {
|
|
33
32
|
variant?: string;
|
|
34
33
|
children: ReactNode;
|
|
35
|
-
as
|
|
34
|
+
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
36
35
|
}
|
|
37
36
|
declare const Heading: React.FC<HeadingTypes>;
|
|
38
37
|
|
package/dist/index.js
CHANGED
|
@@ -143,11 +143,9 @@ 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 === null ||
|
|
150
|
-
(textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
|
|
148
|
+
font-size: ${((_c = theme.fontsizes) === null || _c === void 0 ? void 0 : _c[props === null || props === void 0 ? void 0 : props.vFontSize]) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.vFontSize)};
|
|
151
149
|
line-height: ${(props === null || props === void 0 ? void 0 : props.lineHeight) || (textStyles === null || textStyles === void 0 ? void 0 : textStyles.lineHeight)};
|
|
152
150
|
font-weight: ${(props === null || props === void 0 ? void 0 : props.fontWeight) ||
|
|
153
151
|
(textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontWeight) ||
|
|
@@ -187,7 +185,7 @@ const Text = (_a) => {
|
|
|
187
185
|
};
|
|
188
186
|
|
|
189
187
|
const HeadingContainer = styled.h1 `
|
|
190
|
-
${({ variant, theme }) => {
|
|
188
|
+
${({ variant = "h1", theme }) => {
|
|
191
189
|
const { media, heading } = theme;
|
|
192
190
|
const { tinyMobileUp, largeMobileUp, superLargeDesktopUp } = media;
|
|
193
191
|
const headingStyles = (heading === null || heading === void 0 ? void 0 : heading[variant]) || {};
|