@crystaldesign/landing-page 24.1.0-latesttest.0 → 24.1.0-rc.0
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.
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import Button from '@material-ui/core/Button';
|
|
3
|
+
import Typography from '@material-ui/core/Typography';
|
|
4
|
+
import { useTranslation, useDivaCore } from '@crystaldesign/diva-core';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
(function() {
|
|
8
|
+
const env = {"STAGE":"production"};
|
|
9
|
+
try {
|
|
10
|
+
if (process) {
|
|
11
|
+
process.env = Object.assign({}, process.env);
|
|
12
|
+
Object.assign(process.env, env);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
} catch (e) {} // avoid ReferenceError: process is not defined
|
|
16
|
+
globalThis.process = { env:env };
|
|
17
|
+
})();
|
|
18
|
+
|
|
19
|
+
var StartPage = function StartPage(_ref) {
|
|
20
|
+
var settings = _ref.settings;
|
|
21
|
+
var _useTranslation = useTranslation(),
|
|
22
|
+
t = _useTranslation.t;
|
|
23
|
+
var _useDivaCore = useDivaCore(),
|
|
24
|
+
openComponent = _useDivaCore.actions.openComponent;
|
|
25
|
+
return /*#__PURE__*/jsxs("div", {
|
|
26
|
+
style: {
|
|
27
|
+
backgroundImage: "url(".concat(settings === null || settings === void 0 ? void 0 : settings.image, ")"),
|
|
28
|
+
height: '100%',
|
|
29
|
+
backgroundSize: 'cover'
|
|
30
|
+
},
|
|
31
|
+
children: [(settings === null || settings === void 0 ? void 0 : settings.title) && /*#__PURE__*/jsx(Typography, {
|
|
32
|
+
style: {
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: 50,
|
|
35
|
+
textAlign: 'center',
|
|
36
|
+
width: '100%'
|
|
37
|
+
},
|
|
38
|
+
variant: "h4",
|
|
39
|
+
children: t(settings.title)
|
|
40
|
+
}), (settings === null || settings === void 0 ? void 0 : settings.buttonAction) && /*#__PURE__*/jsx(Button, {
|
|
41
|
+
variant: "contained",
|
|
42
|
+
color: "primary",
|
|
43
|
+
style: {
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
bottom: 50,
|
|
46
|
+
right: 70
|
|
47
|
+
},
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
return openComponent(settings.buttonAction);
|
|
50
|
+
},
|
|
51
|
+
children: t((settings === null || settings === void 0 ? void 0 : settings.buttonText) || '')
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
var componentConfig = {
|
|
56
|
+
name: 'START_PAGE',
|
|
57
|
+
renderFunction: StartPage
|
|
58
|
+
};
|
|
59
|
+
//changes
|
|
60
|
+
|
|
61
|
+
export { componentConfig as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { ComponentDefinition, Action } from '@crystaldesign/diva-core';
|
|
4
|
+
interface Config {
|
|
5
|
+
buttonText: string;
|
|
6
|
+
image: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
buttonAction?: Action;
|
|
9
|
+
}
|
|
10
|
+
declare const componentConfig: ComponentDefinition<Config>;
|
|
11
|
+
export default componentConfig;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
13
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,EAA+B,MAAM,0BAA0B,CAAC;AAEpH,UAAU,MAAM;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA2CD,QAAA,MAAM,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAGhD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/landing-page",
|
|
3
|
-
"version": "24.1.0-
|
|
3
|
+
"version": "24.1.0-rc.0",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"lodash.debounce": "^4.0.8"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "a3a5c323e376b73d7f7eecb59542ee9680033743"
|
|
23
23
|
}
|