@commercetools-frontend/application-components 0.0.0-CRAFT-1791-20251006162610
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/commercetools-frontend-application-components.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-application-components.cjs.dev.js +2303 -0
- package/dist/commercetools-frontend-application-components.cjs.js +7 -0
- package/dist/commercetools-frontend-application-components.cjs.prod.js +2108 -0
- package/dist/commercetools-frontend-application-components.esm.js +2236 -0
- package/dist/custom-views-selector-03d0524e.cjs.prod.js +245 -0
- package/dist/custom-views-selector-9f964e68.esm.js +245 -0
- package/dist/custom-views-selector-d167f024.cjs.dev.js +266 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +9 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +2 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/types.d.ts +12 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +186 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +171 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +52 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/index.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +191 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/confirmation-dialog.d.ts +110 -0
- package/dist/declarations/src/components/dialogs/confirmation-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +114 -0
- package/dist/declarations/src/components/dialogs/form-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/index.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/info-dialog/info-dialog.d.ts +19 -0
- package/dist/declarations/src/components/drawer/drawer.d.ts +153 -0
- package/dist/declarations/src/components/drawer/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +177 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +163 -0
- package/dist/declarations/src/components/main-pages/form-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/info-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +38 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/index.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +177 -0
- package/dist/declarations/src/components/maintenance-page-layout/index.d.ts +1 -0
- package/dist/declarations/src/components/maintenance-page-layout/maintenance-page-layout.d.ts +15 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +166 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +127 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +42 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +169 -0
- package/dist/declarations/src/components/modal-pages/utils/index.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/utils/modal-page-top-bar.d.ts +26 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-full/page-content-full.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-narrow/page-content-narrow.d.ts +6 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/index.d.ts +2 -0
- package/dist/declarations/src/components/page-content-containers/page-content-wide/page-content-wide.d.ts +9 -0
- package/dist/declarations/src/components/page-not-found/index.d.ts +1 -0
- package/dist/declarations/src/components/page-not-found/page-not-found.d.ts +5 -0
- package/dist/declarations/src/components/page-unauthorized/index.d.ts +1 -0
- package/dist/declarations/src/components/page-unauthorized/page-unauthorized.d.ts +5 -0
- package/dist/declarations/src/components/portals-container/index.d.ts +1 -0
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +44 -0
- package/dist/declarations/src/components/project-stamp/project-stamp.d.ts +9 -0
- package/dist/declarations/src/components/public-page-layout/index.d.ts +7 -0
- package/dist/declarations/src/components/tab-header/index.d.ts +1 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +36 -0
- package/dist/declarations/src/hooks/use-modal-state/index.d.ts +1 -0
- package/dist/declarations/src/hooks/use-modal-state/use-modal-state.d.ts +6 -0
- package/dist/declarations/src/index.d.ts +35 -0
- package/dist/declarations/src/theming.d.ts +15 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/public-page-layout-7d1cb99f.esm.js +94 -0
- package/dist/public-page-layout-b182d2dd.cjs.prod.js +94 -0
- package/dist/public-page-layout-b92fb7e4.cjs.dev.js +103 -0
- package/materials/media-queries.css +15 -0
- package/package.json +101 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
4
|
+
var react = require('@emotion/react');
|
|
5
|
+
var CommercetoolsLogoSmallSvg = require('@commercetools-frontend/assets/logos/commercetools_logo_small.svg');
|
|
6
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
7
|
+
var Spacings = require('@commercetools-uikit/spacings');
|
|
8
|
+
var Text = require('@commercetools-uikit/text');
|
|
9
|
+
var _styled = require('@emotion/styled/base');
|
|
10
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
var CommercetoolsLogoSmallSvg__default = /*#__PURE__*/_interopDefault(CommercetoolsLogoSmallSvg);
|
|
15
|
+
var Spacings__default = /*#__PURE__*/_interopDefault(Spacings);
|
|
16
|
+
var Text__default = /*#__PURE__*/_interopDefault(Text);
|
|
17
|
+
var _styled__default = /*#__PURE__*/_interopDefault(_styled);
|
|
18
|
+
|
|
19
|
+
const Container = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
20
|
+
target: "e1pnp02z2"
|
|
21
|
+
} : {
|
|
22
|
+
target: "e1pnp02z2",
|
|
23
|
+
label: "Container"
|
|
24
|
+
})("width:100%;min-height:100vh;display:flex;padding:", designSystem.designTokens.spacingXl, " 0;justify-content:center;background-size:cover;background-position:center;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR21DIiwiZmlsZSI6InB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgYXMgdWlLaXREZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAxMDAlO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgZGlzcGxheTogZmxleDtcbiAgcGFkZGluZzogJHt1aUtpdERlc2lnblRva2Vucy5zcGFjaW5nWGx9IDA7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyQ29sdW1uID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6IGNhbGMoJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTZ9IC8gMik7XG5gO1xuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbldpZGUgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTV9O1xuYDtcbiJdfQ== */"));
|
|
25
|
+
const ContainerColumn = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
26
|
+
target: "e1pnp02z1"
|
|
27
|
+
} : {
|
|
28
|
+
target: "e1pnp02z1",
|
|
29
|
+
label: "ContainerColumn"
|
|
30
|
+
})("width:calc(", designSystem.designTokens.constraint16, " / 2);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYXlDIiwiZmlsZSI6InB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgYXMgdWlLaXREZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiAxMDAlO1xuICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgZGlzcGxheTogZmxleDtcbiAgcGFkZGluZzogJHt1aUtpdERlc2lnblRva2Vucy5zcGFjaW5nWGx9IDA7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5gO1xuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyQ29sdW1uID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6IGNhbGMoJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTZ9IC8gMik7XG5gO1xuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbldpZGUgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogJHt1aUtpdERlc2lnblRva2Vucy5jb25zdHJhaW50MTV9O1xuYDtcbiJdfQ== */"));
|
|
31
|
+
const ContainerColumnWide = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
32
|
+
target: "e1pnp02z0"
|
|
33
|
+
} : {
|
|
34
|
+
target: "e1pnp02z0",
|
|
35
|
+
label: "ContainerColumnWide"
|
|
36
|
+
})("width:", designSystem.designTokens.constraint15, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0I2QyIsImZpbGUiOiJwdWJsaWMtcGFnZS1sYXlvdXQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZGVzaWduVG9rZW5zIGFzIHVpS2l0RGVzaWduVG9rZW5zIH0gZnJvbSAnQGNvbW1lcmNldG9vbHMtdWlraXQvZGVzaWduLXN5c3RlbSc7XG5cbmV4cG9ydCBjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICB3aWR0aDogMTAwJTtcbiAgbWluLWhlaWdodDogMTAwdmg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIHBhZGRpbmc6ICR7dWlLaXREZXNpZ25Ub2tlbnMuc3BhY2luZ1hsfSAwO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgYmFja2dyb3VuZC1zaXplOiBjb3ZlcjtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuYDtcblxuZXhwb3J0IGNvbnN0IENvbnRhaW5lckNvbHVtbiA9IHN0eWxlZC5kaXZgXG4gIHdpZHRoOiBjYWxjKCR7dWlLaXREZXNpZ25Ub2tlbnMuY29uc3RyYWludDE2fSAvIDIpO1xuYDtcbmV4cG9ydCBjb25zdCBDb250YWluZXJDb2x1bW5XaWRlID0gc3R5bGVkLmRpdmBcbiAgd2lkdGg6ICR7dWlLaXREZXNpZ25Ub2tlbnMuY29uc3RyYWludDE1fTtcbmA7XG4iXX0= */"));
|
|
37
|
+
|
|
38
|
+
const _excluded = ["contentScale"],
|
|
39
|
+
_excluded2 = ["contentScale"];
|
|
40
|
+
const year = new Date().getUTCFullYear();
|
|
41
|
+
const PublicPageLayoutContent = _ref => {
|
|
42
|
+
let _ref$contentScale = _ref.contentScale,
|
|
43
|
+
contentScale = _ref$contentScale === void 0 ? 'normal' : _ref$contentScale,
|
|
44
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
if (contentScale === 'wide') {
|
|
46
|
+
return jsxRuntime.jsx(ContainerColumnWide, {
|
|
47
|
+
children: props.children
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return jsxRuntime.jsx(ContainerColumn, {
|
|
51
|
+
children: props.children
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const PublicPageLayout = _ref2 => {
|
|
55
|
+
let _ref2$contentScale = _ref2.contentScale,
|
|
56
|
+
contentScale = _ref2$contentScale === void 0 ? 'normal' : _ref2$contentScale,
|
|
57
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
58
|
+
return jsxRuntime.jsx(Container, {
|
|
59
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
60
|
+
scale: "xl",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
children: [jsxRuntime.jsx(ContainerColumn, {
|
|
63
|
+
children: jsxRuntime.jsx(Spacings__default["default"].Inline, {
|
|
64
|
+
justifyContent: "center",
|
|
65
|
+
children: jsxRuntime.jsx("img", {
|
|
66
|
+
src: CommercetoolsLogoSmallSvg__default["default"],
|
|
67
|
+
alt: "commercetools logo"
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
}), props.welcomeMessage && jsxRuntime.jsx(ContainerColumn, {
|
|
71
|
+
children: jsxRuntime.jsx(Text__default["default"].Headline, {
|
|
72
|
+
as: "h2",
|
|
73
|
+
children: jsxRuntime.jsx("div", {
|
|
74
|
+
css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorSolid, ";text-align:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:PublicPageLayout;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInB1YmxpYy1wYWdlLWxheW91dC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0V3QiIsImZpbGUiOiJwdWJsaWMtcGFnZS1sYXlvdXQudHN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UHVibGljUGFnZUxheW91dDogRkM8VFByb3BzPiA9ICh7XG4gIGNvbnRlbnRTY2FsZSA9ICdub3JtYWwnLFxuICAuLi5wcm9wc1xufSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxDb250YWluZXI+XG4gICAgICA8U3BhY2luZ3MuU3RhY2sgc2NhbGU9XCJ4bFwiIGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgPENvbnRhaW5lckNvbHVtbj5cbiAgICAgICAgICA8U3BhY2luZ3MuSW5saW5lIGp1c3RpZnlDb250ZW50PVwiY2VudGVyXCI+XG4gICAgICAgICAgICA8aW1nIHNyYz17Q29tbWVyY2V0b29sc0xvZ29TbWFsbFN2Z30gYWx0PVwiY29tbWVyY2V0b29scyBsb2dvXCIgLz5cbiAgICAgICAgICA8L1NwYWNpbmdzLklubGluZT5cbiAgICAgICAgPC9Db250YWluZXJDb2x1bW4+XG4gICAgICAgIHtwcm9wcy53ZWxjb21lTWVzc2FnZSAmJiAoXG4gICAgICAgICAgPENvbnRhaW5lckNvbHVtbj5cbiAgICAgICAgICAgIDxUZXh0LkhlYWRsaW5lIGFzPVwiaDJcIj5cbiAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICAgICAgY29sb3I6ICR7dWlLaXREZXNpZ25Ub2tlbnMuY29sb3JTb2xpZH07XG4gICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgYH1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtwcm9wcy53ZWxjb21lTWVzc2FnZX1cbiAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L1RleHQuSGVhZGxpbmU+XG4gICAgICAgICAgPC9Db250YWluZXJDb2x1bW4+XG4gICAgICAgICl9XG4gICAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgICA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TGF5b3V0O1xuIl19 */"),
|
|
75
|
+
children: props.welcomeMessage
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
}), jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
79
|
+
scale: "xl",
|
|
80
|
+
children: [jsxRuntime.jsx(PublicPageLayoutContent, {
|
|
81
|
+
contentScale: contentScale,
|
|
82
|
+
children: props.children
|
|
83
|
+
}), jsxRuntime.jsx(PublicPageLayoutContent, {
|
|
84
|
+
contentScale: contentScale,
|
|
85
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
86
|
+
scale: "xs",
|
|
87
|
+
alignItems: contentScale === 'wide' ? 'center' : 'stretch',
|
|
88
|
+
children: [props.legalMessage && jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
89
|
+
tone: "secondary",
|
|
90
|
+
children: props.legalMessage
|
|
91
|
+
}), jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
92
|
+
tone: "secondary",
|
|
93
|
+
children: `${year} © commercetools`
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
PublicPageLayout.displayName = 'PublicPageLayout';
|
|
102
|
+
|
|
103
|
+
exports["default"] = PublicPageLayout;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* MAX-WIDTH */
|
|
2
|
+
|
|
3
|
+
@custom-media --screen-max-mobile (max-width: 767px); /* xsm */
|
|
4
|
+
@custom-media --screen-max-desktop (max-width: 1023px); /* sm */
|
|
5
|
+
@custom-media --screen-max-biggerdesktop (max-width: 1279px); /* md */
|
|
6
|
+
@custom-media --screen-max-giantdesktop (max-width: 1679px); /* lg */
|
|
7
|
+
@custom-media --screen-max-jumbodesktop (max-width: 1919px); /* xlg */
|
|
8
|
+
|
|
9
|
+
/* MIN-WIDTH */
|
|
10
|
+
|
|
11
|
+
@custom-media --screen-min-mobile (min-width: 768px); /* xsm */
|
|
12
|
+
@custom-media --screen-min-desktop (min-width: 1024px); /* sm */
|
|
13
|
+
@custom-media --screen-min-biggerdesktop (min-width: 1280px); /* md */
|
|
14
|
+
@custom-media --screen-min-giantdesktop (min-width: 1680px); /* lg */
|
|
15
|
+
@custom-media --screen-min-jumbodesktop (min-width: 1920px); /* xlg */
|
package/package.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@commercetools-frontend/application-components",
|
|
3
|
+
"version": "0.0.0-CRAFT-1791-20251006162610",
|
|
4
|
+
"description": "Generic components for building Merchant Center applications",
|
|
5
|
+
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
9
|
+
"directory": "packages/application-components"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://docs.commercetools.com/merchant-center-customizations/api-reference/commercetools-frontend-application-components",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"javascript",
|
|
14
|
+
"frontend",
|
|
15
|
+
"react",
|
|
16
|
+
"toolkit"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/commercetools-frontend-application-components.cjs.js",
|
|
23
|
+
"module": "dist/commercetools-frontend-application-components.esm.js",
|
|
24
|
+
"preconstruct": {
|
|
25
|
+
"entrypoints": [
|
|
26
|
+
"./index.ts"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"materials/media-queries.css",
|
|
32
|
+
"package.json",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@babel/runtime": "^7.22.15",
|
|
38
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
39
|
+
"@commercetools-frontend/actions-global": "0.0.0-CRAFT-1791-20251006162610",
|
|
40
|
+
"@commercetools-frontend/application-config": "0.0.0-CRAFT-1791-20251006162610",
|
|
41
|
+
"@commercetools-frontend/application-shell-connectors": "0.0.0-CRAFT-1791-20251006162610",
|
|
42
|
+
"@commercetools-frontend/assets": "0.0.0-CRAFT-1791-20251006162610",
|
|
43
|
+
"@commercetools-frontend/constants": "0.0.0-CRAFT-1791-20251006162610",
|
|
44
|
+
"@commercetools-frontend/i18n": "0.0.0-CRAFT-1791-20251006162610",
|
|
45
|
+
"@commercetools-frontend/l10n": "0.0.0-CRAFT-1791-20251006162610",
|
|
46
|
+
"@commercetools-frontend/sentry": "0.0.0-CRAFT-1791-20251006162610",
|
|
47
|
+
"@commercetools-uikit/accessible-button": "^20.2.3",
|
|
48
|
+
"@commercetools-uikit/card": "^20.2.3",
|
|
49
|
+
"@commercetools-uikit/constraints": "^20.2.3",
|
|
50
|
+
"@commercetools-uikit/design-system": "^20.2.3",
|
|
51
|
+
"@commercetools-uikit/flat-button": "^20.2.3",
|
|
52
|
+
"@commercetools-uikit/hooks": "^20.2.3",
|
|
53
|
+
"@commercetools-uikit/icon-button": "^20.2.3",
|
|
54
|
+
"@commercetools-uikit/icons": "^20.2.3",
|
|
55
|
+
"@commercetools-uikit/label": "^20.2.3",
|
|
56
|
+
"@commercetools-uikit/messages": "^20.2.3",
|
|
57
|
+
"@commercetools-uikit/primary-button": "^20.2.3",
|
|
58
|
+
"@commercetools-uikit/secondary-button": "^20.2.3",
|
|
59
|
+
"@commercetools-uikit/secondary-icon-button": "^20.2.3",
|
|
60
|
+
"@commercetools-uikit/spacings": "^20.2.3",
|
|
61
|
+
"@commercetools-uikit/stamp": "^20.2.3",
|
|
62
|
+
"@commercetools-uikit/text": "^20.2.3",
|
|
63
|
+
"@commercetools-uikit/utils": "^20.2.3",
|
|
64
|
+
"@emotion/react": "^11.14.0",
|
|
65
|
+
"@emotion/styled": "^11.14.0",
|
|
66
|
+
"@flopflip/react-broadcast": "15.1.2",
|
|
67
|
+
"@radix-ui/react-dialog": "1.1.14",
|
|
68
|
+
"@react-hook/latest": "1.0.3",
|
|
69
|
+
"@react-hook/resize-observer": "1.2.6",
|
|
70
|
+
"@types/history": "^4.7.11",
|
|
71
|
+
"@types/lodash": "^4.14.198",
|
|
72
|
+
"@types/prop-types": "^15.7.5",
|
|
73
|
+
"@types/react": "^19.0.3",
|
|
74
|
+
"@types/react-dom": "^19.0.2",
|
|
75
|
+
"@types/react-router-dom": "^5.3.3",
|
|
76
|
+
"history": "4.10.1",
|
|
77
|
+
"lodash": "4.17.21",
|
|
78
|
+
"prop-types": "15.8.1",
|
|
79
|
+
"raf-schd": "^4.0.3"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@apollo/client": "3.13.9",
|
|
83
|
+
"@testing-library/dom": "^10.4.0",
|
|
84
|
+
"@testing-library/react": "16.1.0",
|
|
85
|
+
"@types/jest": "^29.5.14",
|
|
86
|
+
"@types/raf-schd": "^4.0.1",
|
|
87
|
+
"@types/testing-library__jest-dom": "^5.14.9",
|
|
88
|
+
"jest": "29.7.0",
|
|
89
|
+
"msw": "^1.3.5",
|
|
90
|
+
"react": "19.0.0",
|
|
91
|
+
"react-dom": "19.0.0",
|
|
92
|
+
"react-intl": "^7.1.4",
|
|
93
|
+
"react-router-dom": "5.3.4"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"react": "19.x",
|
|
97
|
+
"react-dom": "19.x",
|
|
98
|
+
"react-intl": "7.x",
|
|
99
|
+
"react-router-dom": "5.x"
|
|
100
|
+
}
|
|
101
|
+
}
|