@arcanejs/toolkit 1.0.0 → 1.0.1
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/frontend/entrypoint.js +1 -17
- package/dist/frontend/entrypoint.js.map +3 -3
- package/dist/frontend/index.js +0 -20
- package/dist/frontend/index.mjs +0 -20
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/frontend/index.js
CHANGED
|
@@ -18,25 +18,6 @@ var _styledcomponents = require('styled-components');
|
|
|
18
18
|
|
|
19
19
|
var _styling = require('@arcanejs/toolkit-frontend/styling');
|
|
20
20
|
var _toolkitfrontend = require('@arcanejs/toolkit-frontend');
|
|
21
|
-
|
|
22
|
-
// src/frontend/styling.ts
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// src/shared/static.ts
|
|
26
|
-
var FONTS = {
|
|
27
|
-
materialSymbolsOutlined: "material-symbols-outlined.woff2"
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// src/frontend/styling.ts
|
|
31
|
-
var MaterialFontStyle = _styledcomponents.createGlobalStyle`
|
|
32
|
-
@font-face {
|
|
33
|
-
font-family: 'Material Symbols Outlined';
|
|
34
|
-
font-style: normal;
|
|
35
|
-
src: url(${FONTS.materialSymbolsOutlined}) format('woff');
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
// src/frontend/stage.tsx
|
|
40
21
|
var _jsxruntime = require('react/jsx-runtime');
|
|
41
22
|
var Stage = ({ className, renderers }) => {
|
|
42
23
|
const [root, setRoot] = _react.useState.call(void 0,
|
|
@@ -123,7 +104,6 @@ function rootComponent(props) {
|
|
|
123
104
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
124
105
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _styling.BaseStyle, {}),
|
|
125
106
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _styling.GlobalStyle, {}),
|
|
126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaterialFontStyle, {}),
|
|
127
107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _styledcomponents.ThemeProvider, { theme: _styling.THEME, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StyledStage, { ...props }) })
|
|
128
108
|
] });
|
|
129
109
|
}
|
package/dist/frontend/index.mjs
CHANGED
|
@@ -18,25 +18,6 @@ import {
|
|
|
18
18
|
THEME
|
|
19
19
|
} from "@arcanejs/toolkit-frontend/styling";
|
|
20
20
|
import { GroupStateWrapper, StageContext } from "@arcanejs/toolkit-frontend";
|
|
21
|
-
|
|
22
|
-
// src/frontend/styling.ts
|
|
23
|
-
import { createGlobalStyle } from "styled-components";
|
|
24
|
-
|
|
25
|
-
// src/shared/static.ts
|
|
26
|
-
var FONTS = {
|
|
27
|
-
materialSymbolsOutlined: "material-symbols-outlined.woff2"
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// src/frontend/styling.ts
|
|
31
|
-
var MaterialFontStyle = createGlobalStyle`
|
|
32
|
-
@font-face {
|
|
33
|
-
font-family: 'Material Symbols Outlined';
|
|
34
|
-
font-style: normal;
|
|
35
|
-
src: url(${FONTS.materialSymbolsOutlined}) format('woff');
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
|
|
39
|
-
// src/frontend/stage.tsx
|
|
40
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
41
22
|
var Stage = ({ className, renderers }) => {
|
|
42
23
|
const [root, setRoot] = useState(
|
|
@@ -123,7 +104,6 @@ function rootComponent(props) {
|
|
|
123
104
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
124
105
|
/* @__PURE__ */ jsx(BaseStyle, {}),
|
|
125
106
|
/* @__PURE__ */ jsx(GlobalStyle, {}),
|
|
126
|
-
/* @__PURE__ */ jsx(MaterialFontStyle, {}),
|
|
127
107
|
/* @__PURE__ */ jsx(ThemeProvider, { theme: THEME, children: /* @__PURE__ */ jsx(StyledStage, { ...props }) })
|
|
128
108
|
] });
|
|
129
109
|
}
|
package/dist/index.js
CHANGED
|
@@ -107,6 +107,13 @@ var Server = (_class = class {
|
|
|
107
107
|
<head>
|
|
108
108
|
<title>Light Desk</title>
|
|
109
109
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
110
|
+
<style type="text/css">
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: 'Material Symbols Outlined';
|
|
113
|
+
font-style: normal;
|
|
114
|
+
src: url(${FONTS.materialSymbolsOutlined}) format('woff');
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
110
117
|
</head>
|
|
111
118
|
<body>
|
|
112
119
|
<div id="root"></div>
|
package/dist/index.mjs
CHANGED
|
@@ -107,6 +107,13 @@ var Server = class {
|
|
|
107
107
|
<head>
|
|
108
108
|
<title>Light Desk</title>
|
|
109
109
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
110
|
+
<style type="text/css">
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: 'Material Symbols Outlined';
|
|
113
|
+
font-style: normal;
|
|
114
|
+
src: url(${FONTS.materialSymbolsOutlined}) format('woff');
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
110
117
|
</head>
|
|
111
118
|
<body>
|
|
112
119
|
<div id="root"></div>
|