@manamerge/mana-atomic-ui 0.0.41 → 0.0.44

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.
@@ -3,26 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.manamergeTheme = exports["default"] = exports.ManamergeStyles = void 0;
6
+ exports.manamergeTheme = exports["default"] = void 0;
7
7
  var _styledComponents = require("styled-components");
8
8
  var _breakpoints = _interopRequireDefault(require("./manamerge/breakpoints.js"));
9
- var _MetroSansBook = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Book.woff2"));
10
- var _MetroSansBoldItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Bold-Italic.woff2"));
11
- var _MetroSansBold = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Bold.woff2"));
12
- var _MetroSansBookItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Book-Italic.woff2"));
13
- var _MetroSansLightItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Light-Italic.woff2"));
14
- var _MetroSansLight = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Light.woff2"));
15
- var _MetroSansMediumItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Medium-Italic.woff2"));
16
- var _MetroSansMedium = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Medium.woff2"));
17
- var _MetroSansRegularItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Regular-Italic.woff2"));
18
- var _MetroSansRegular = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Regular.woff2"));
19
- var _MetroSansSemiBoldItalic = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Semi-Bold-Italic.woff2"));
20
- var _MetroSansSemiBold = _interopRequireDefault(require("./manamerge/fonts/Metro-Sans-Semi-Bold.woff2"));
21
- var _GilmerRegular = _interopRequireDefault(require("./manamerge/fonts/Gilmer-Regular.woff2"));
22
- var _GilmerBold = _interopRequireDefault(require("./manamerge/fonts/Gilmer-Bold.woff2"));
23
- var _GilmerHeavy = _interopRequireDefault(require("./manamerge/fonts/Gilmer-Heavy.woff2"));
24
- var _GilmerLight = _interopRequireDefault(require("./manamerge/fonts/Gilmer-Light.woff2"));
25
- var _GilmerMedium = _interopRequireDefault(require("./manamerge/fonts/Gilmer-Medium.woff2"));
26
9
  var _text = _interopRequireDefault(require("./manamerge/theme/text.js"));
27
10
  var _heading = _interopRequireDefault(require("./manamerge/theme/heading.js"));
28
11
  var _button = _interopRequireDefault(require("./manamerge/theme/button.js"));
@@ -82,20 +65,24 @@ var _github2 = _interopRequireDefault(require("./manamerge/social/white/github.s
82
65
  var _instagram2 = _interopRequireDefault(require("./manamerge/social/white/instagram.svg"));
83
66
  var _twitter2 = _interopRequireDefault(require("./manamerge/social/white/twitter.svg"));
84
67
  var _website2 = _interopRequireDefault(require("./manamerge/social/white/website.svg"));
85
- var _templateObject;
86
- /* stylelint-disable */
68
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
87
69
  // Global
70
+
88
71
  // Breakpoints
89
- // Fonts
72
+
90
73
  // Generic
74
+
91
75
  // Styling
76
+
92
77
  // Icons
78
+
93
79
  //import navigationUserIcon from './manamerge/images/icons/navigation/user.svg';
94
80
  //import navigationCalendarIcon from './manamerge/images/icons/navigation/calendar.svg';
81
+
95
82
  // Images
83
+
96
84
  // Social icons
97
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
98
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
85
+
99
86
  var tinyMobileUp = _breakpoints["default"].tinyMobileUp,
100
87
  smallMobileUp = _breakpoints["default"].smallMobileUp,
101
88
  mobileUp = _breakpoints["default"].mobileUp,
@@ -462,8 +449,7 @@ var manamergeTheme = exports.manamergeTheme = {
462
449
  }
463
450
  },
464
451
  fonts: {
465
- "default": 'ManamergeMetro, sans-serif',
466
- secondary: 'ManamergeGilmer, sans-serif'
452
+ "default": 'ManamergeGilmer, sans-serif'
467
453
  },
468
454
  borderRadius: {
469
455
  button: '0',
@@ -669,8 +655,4 @@ var manamergeTheme = exports.manamergeTheme = {
669
655
  height: '52px'
670
656
  }
671
657
  };
672
-
673
- // Add font base here.
674
- var ManamergeStyles = exports.ManamergeStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 350;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 700;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 700;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 350;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 300;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 300;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 500;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 500;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 400;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 400;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: italic;\n font-weight: 600;\n }\n\n @font-face {\n font-family: ManamergeMetro;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 600;\n }\n\n * {\n font-family: ManamergeMetro, sans-serif;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 400;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 700;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 900;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 500;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 300;\n }\n\n"])), _MetroSansBook["default"], _MetroSansBoldItalic["default"], _MetroSansBold["default"], _MetroSansBookItalic["default"], _MetroSansLightItalic["default"], _MetroSansLight["default"], _MetroSansMediumItalic["default"], _MetroSansMedium["default"], _MetroSansRegularItalic["default"], _MetroSansRegular["default"], _MetroSansSemiBoldItalic["default"], _MetroSansSemiBold["default"], _GilmerRegular["default"], _GilmerBold["default"], _GilmerHeavy["default"], _GilmerMedium["default"], _GilmerLight["default"]);
675
- var _default = exports["default"] = manamergeTheme;
676
- /* stylelint-enable */
658
+ var _default = exports["default"] = manamergeTheme;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ManamergeStyles = void 0;
7
+ var _styledComponents = require("styled-components");
8
+ var _GilmerRegular = _interopRequireDefault(require("./Gilmer-Regular.woff2"));
9
+ var _GilmerBold = _interopRequireDefault(require("./Gilmer-Bold.woff2"));
10
+ var _GilmerHeavy = _interopRequireDefault(require("./Gilmer-Heavy.woff2"));
11
+ var _GilmerLight = _interopRequireDefault(require("./Gilmer-Light.woff2"));
12
+ var _GilmerMedium = _interopRequireDefault(require("./Gilmer-Medium.woff2"));
13
+ var _templateObject; // Fonts
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
16
+ var ManamergeStyles = exports.ManamergeStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 300;\n }\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 400;\n }\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 500;\n }\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 700;\n }\n\n @font-face {\n font-family: ManamergeGilmer;\n src: url(", ") format('woff2');\n font-style: normal;\n font-weight: 900;\n }\n * {\n font-family: ManamergeGilmer, sans-serif;\n }\n"])), _GilmerLight["default"], _GilmerRegular["default"], _GilmerMedium["default"], _GilmerBold["default"], _GilmerHeavy["default"]);
@@ -5,20 +5,35 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var text = {
8
- small: {
9
- fontSize: '13px',
10
- lineHeight: '18px',
11
- fontWeight: 400
8
+ "Text light": {
9
+ fontSize: "13px",
10
+ lineHeight: "18px",
11
+ fontWeight: 300,
12
+ color: "#13021f"
12
13
  },
13
- medium: {
14
- fontSize: '15px',
15
- lineHeight: '25px',
16
- fontWeight: 400
14
+ "Text regular": {
15
+ fontSize: "15px",
16
+ lineHeight: "25px",
17
+ fontWeight: 400,
18
+ color: "#13021f"
17
19
  },
18
- large: {
19
- fontSize: '17px',
20
- lineHeight: '28px',
21
- fontWeight: 400
20
+ "Text medium": {
21
+ fontSize: "17px",
22
+ lineHeight: "28px",
23
+ fontWeight: "500",
24
+ color: "#13021f"
25
+ },
26
+ "Text bold": {
27
+ fontSize: "17px",
28
+ lineHeight: "28px",
29
+ fontWeight: 700,
30
+ color: "#13021f"
31
+ },
32
+ "Text heavy": {
33
+ fontSize: "17px",
34
+ lineHeight: "28px",
35
+ fontWeight: 900,
36
+ color: "#13021f"
22
37
  }
23
38
  };
24
39
  var _default = exports["default"] = text;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TextTypes } from "./Text";
3
+ export declare const TextContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, TextTypes>> & string;
4
+ export declare const TextContainerLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, TextTypes>> & string;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface TextTypes {
3
+ className: string;
4
+ children?: string;
5
+ htmlFor?: string;
6
+ margin?: string;
7
+ color?: string;
8
+ fontSize?: string;
9
+ lineHeight?: string;
10
+ fontWeight?: string;
11
+ tag?: keyof JSX.IntrinsicElements;
12
+ onClick?: React.MouseEventHandler<HTMLElement>;
13
+ }
14
+ export declare const Text: React.FC<TextTypes>;
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { TextTypes } from "./Text";
3
+ declare const meta: Meta<any>;
4
+ export default meta;
5
+ type Story = StoryObj<TextTypes>;
6
+ export declare const Light: Story;
7
+ export declare const Regular: Story;
8
+ export declare const Medium: Story;
9
+ export declare const Bold: Story;
10
+ export declare const Heavy: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manamerge/mana-atomic-ui",
3
- "version": "0.0.41",
3
+ "version": "0.0.44",
4
4
  "description": "Mana Merge design system",
5
5
  "scripts": {
6
6
  "build": "rollup -c",
@@ -13,29 +13,31 @@
13
13
  "@babel/core": "^7.26.0",
14
14
  "@babel/preset-env": "^7.26.0",
15
15
  "@babel/preset-react": "^7.25.9",
16
- "@chromatic-com/storybook": "^1.5.0",
16
+ "@chromatic-com/storybook": "^3.2.2",
17
17
  "@rollup/plugin-commonjs": "^24.0.1",
18
18
  "@rollup/plugin-node-resolve": "^15.0.1",
19
19
  "@rollup/plugin-typescript": "^11.0.0",
20
- "@storybook/addon-essentials": "^8.1.8",
21
- "@storybook/addon-interactions": "^8.1.8",
22
- "@storybook/addon-links": "^8.1.8",
23
- "@storybook/addon-onboarding": "^8.1.8",
24
- "@storybook/addon-themes": "^8.4.5",
20
+ "@storybook/addon-essentials": "^8.4.5",
21
+ "@storybook/addon-interactions": "^8.4.5",
22
+ "@storybook/addon-links": "^8.4.5",
23
+ "@storybook/addon-onboarding": "^8.4.5",
25
24
  "@storybook/addon-webpack5-compiler-swc": "^1.0.3",
26
- "@storybook/blocks": "^8.1.8",
27
- "@storybook/react": "^8.1.8",
28
- "@storybook/react-webpack5": "^8.1.8",
29
- "@storybook/test": "^8.1.8",
25
+ "@storybook/blocks": "^8.4.5",
26
+ "@storybook/react": "^8.4.5",
27
+ "@storybook/react-webpack5": "^8.4.5",
28
+ "@storybook/test": "^8.4.5",
30
29
  "@types/react": "^18.0.27",
30
+ "@types/sanitize-html": "^2.13.0",
31
31
  "@types/styled-components": "^5.1.34",
32
32
  "babel-plugin-styled-components": "^2.1.4",
33
+ "marked": "^15.0.2",
33
34
  "react": "^18.2.0",
34
35
  "react-dom": "^18.2.0",
35
36
  "rollup": "^3.14.0",
36
37
  "rollup-plugin-copy": "^3.5.0",
37
38
  "rollup-plugin-dts": "^5.1.1",
38
- "storybook": "^8.1.8",
39
+ "sanitize-html": "^2.13.1",
40
+ "storybook": "^8.4.5",
39
41
  "tslib": "^2.5.0",
40
42
  "typescript": "^4.9.5",
41
43
  "typescript-plugin-styled-components": "^3.0.0"
@@ -51,6 +53,7 @@
51
53
  ],
52
54
  "types": "dist/index.d.ts",
53
55
  "dependencies": {
56
+ "@storybook/addon-themes": "^8.4.5",
54
57
  "classnames": "^2.5.1",
55
58
  "styled-components": "^6.1.11"
56
59
  }