@smg-automotive/components 27.3.0 → 27.3.2-apps-switch-components-to-workspace.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/cjs/index.js +20 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layout-primitives.js +71 -0
- package/dist/cjs/layout-primitives.js.map +1 -0
- package/dist/cjs/page-layout.js +23 -0
- package/dist/cjs/page-layout.js.map +1 -0
- package/dist/cjs/{theme-provider.js → themeProvider.js} +1 -1
- package/dist/cjs/themeProvider.js.map +1 -0
- package/dist/esm/components/adapter/Input/index.js.map +1 -1
- package/dist/esm/components/adapter/Modal/index.js +1 -1
- package/dist/esm/components/avatar/index.js.map +1 -1
- package/dist/esm/components/errorPage/content/index.js +9 -8
- package/dist/esm/components/errorPage/content/index.js.map +1 -1
- package/dist/esm/components/navigation/{link.js → Link.js} +1 -1
- package/dist/esm/components/navigation/Link.js.map +1 -0
- package/dist/esm/components/navigation/footer/Apps.js +2 -1
- package/dist/esm/components/navigation/footer/Apps.js.map +1 -1
- package/dist/esm/components/navigation/footer/config/{factory.js → Factory.js} +2 -2
- package/dist/esm/components/navigation/footer/config/Factory.js.map +1 -0
- package/dist/esm/components/navigation/footer/index.js +1 -1
- package/dist/esm/components/navigation/header/NavigationLanguageMenu.js +1 -1
- package/dist/esm/components/navigation/header/{replaceLanguage.js → ReplaceLanguage.js} +1 -1
- package/dist/esm/components/navigation/header/ReplaceLanguage.js.map +1 -0
- package/dist/esm/components/navigation/header/{types.js → Types.js} +1 -1
- package/dist/esm/components/navigation/header/Types.js.map +1 -0
- package/dist/esm/components/navigation/header/config/HeaderNavigationConfig.js +2 -2
- package/dist/esm/components/navigation/header/config/{headerNavigationLink.js → HeaderNavigationLink.js} +2 -2
- package/dist/esm/components/navigation/header/config/HeaderNavigationLink.js.map +1 -0
- package/dist/esm/components/navigation/header/config/language.js +1 -1
- package/dist/esm/components/table/index.js.map +1 -1
- package/dist/esm/components/tenantSelection/{createTenantLabel.js → CreateTenantLabel.js} +1 -1
- package/dist/esm/components/tenantSelection/CreateTenantLabel.js.map +1 -0
- package/dist/esm/components/tenantSelection/Overview.js +3 -2
- package/dist/esm/components/tenantSelection/Overview.js.map +1 -1
- package/dist/esm/components/tenantSelection/select/List.js +1 -1
- package/dist/esm/hooks/useMediaQuery/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/layoutPrimitives.js +63 -0
- package/dist/esm/layoutPrimitives.js.map +1 -0
- package/dist/esm/utilities/staticImage.js +6 -0
- package/dist/esm/utilities/staticImage.js.map +1 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/layout-primitives.d.mts +40 -0
- package/dist/layout-primitives.d.ts +40 -0
- package/dist/page-layout.d.mts +96 -0
- package/dist/page-layout.d.ts +96 -0
- package/package.json +79 -86
- package/dist/cjs/theme-provider.js.map +0 -1
- package/dist/esm/components/navigation/footer/config/factory.js.map +0 -1
- package/dist/esm/components/navigation/header/config/headerNavigationLink.js.map +0 -1
- package/dist/esm/components/navigation/header/replaceLanguage.js.map +0 -1
- package/dist/esm/components/navigation/header/types.js.map +0 -1
- package/dist/esm/components/navigation/link.js.map +0 -1
- package/dist/esm/components/tenantSelection/createTenantLabel.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2978,8 +2978,6 @@ const OrderedList = ({ children }) => {
|
|
|
2978
2978
|
return (jsxRuntime.jsx(Root$2, { as: "ol", listStyleType: "decimal", children: children }));
|
|
2979
2979
|
};
|
|
2980
2980
|
|
|
2981
|
-
const DialogCloseButton = React.forwardRef((props, ref) => (jsxRuntime.jsx(react.CloseButton, { ref: ref, cursor: 'pointer', ...props })));
|
|
2982
|
-
|
|
2983
2981
|
const H1 = ({ textStyle = 'heading1', children, ...rest }) => (jsxRuntime.jsx(react.Heading, { as: "h1", textStyle: textStyle, ...rest, children: children }));
|
|
2984
2982
|
const H2 = ({ textStyle = 'heading2', children, ...rest }) => (jsxRuntime.jsx(react.Heading, { as: "h2", textStyle: textStyle, ...rest, children: children }));
|
|
2985
2983
|
const H3 = ({ textStyle = 'heading3', children, ...rest }) => (jsxRuntime.jsx(react.Heading, { as: "h3", textStyle: textStyle, ...rest, children: children }));
|
|
@@ -2987,6 +2985,8 @@ const H4 = ({ textStyle = 'heading4', children, ...rest }) => (jsxRuntime.jsx(re
|
|
|
2987
2985
|
const H5 = ({ textStyle = 'heading5', children, ...rest }) => (jsxRuntime.jsx(react.Heading, { as: "h5", textStyle: textStyle, ...rest, children: children }));
|
|
2988
2986
|
const H6 = ({ textStyle = 'heading6', children, ...rest }) => (jsxRuntime.jsx(react.Heading, { as: "h6", textStyle: textStyle, ...rest, children: children }));
|
|
2989
2987
|
|
|
2988
|
+
const DialogCloseButton = React.forwardRef((props, ref) => (jsxRuntime.jsx(react.CloseButton, { ref: ref, cursor: 'pointer', ...props })));
|
|
2989
|
+
|
|
2990
2990
|
const Dialog = ({ title, open, onOpenChange, primaryActionButton, secondaryActionButton, children, size, motionPreset = 'scale', variant, overlayColor, disableBodyPadding = false, ...props }) => {
|
|
2991
2991
|
const dialogSize = size || variant !== 'fullScreen' ? { xs: 'full', sm: size } : 'full';
|
|
2992
2992
|
const bothActionButtons = primaryActionButton && secondaryActionButton;
|
|
@@ -4924,6 +4924,10 @@ const EnergyLabel = (props) => {
|
|
|
4924
4924
|
return (jsxRuntime.jsxs(Flex, { css: styles.root, children: [jsxRuntime.jsx(react.Box, { css: styles.triangle }), jsxRuntime.jsx(Flex, { css: styles.textWrapper, children: jsxRuntime.jsx(Text$1, { css: styles.text, children: efficiency.toString() }) })] }));
|
|
4925
4925
|
};
|
|
4926
4926
|
|
|
4927
|
+
const getStaticImageSource = (image) => {
|
|
4928
|
+
return typeof image === 'string' ? image : image.src;
|
|
4929
|
+
};
|
|
4930
|
+
|
|
4927
4931
|
const PageLayout = ({ header, maxContentWidth, skyScraperAd, footer, heroAd, children, }) => {
|
|
4928
4932
|
return (jsxRuntime.jsx(BaseLayout, { header: header, footer: footer, skyScraperAd: skyScraperAd, heroAd: heroAd, maxContentWidth: maxContentWidth, children: children }));
|
|
4929
4933
|
};
|
|
@@ -4978,56 +4982,56 @@ const Nonce = () => {
|
|
|
4978
4982
|
};
|
|
4979
4983
|
const config = {
|
|
4980
4984
|
404: {
|
|
4981
|
-
illustration: img$5,
|
|
4985
|
+
illustration: getStaticImageSource(img$5),
|
|
4982
4986
|
buttonColumns: 1,
|
|
4983
4987
|
content: Nonce,
|
|
4984
4988
|
primaryAction: Nonce,
|
|
4985
4989
|
secondaryAction: BackToHomepageSecondary,
|
|
4986
4990
|
},
|
|
4987
4991
|
500: {
|
|
4988
|
-
illustration: img$6,
|
|
4992
|
+
illustration: getStaticImageSource(img$6),
|
|
4989
4993
|
buttonColumns: 1,
|
|
4990
4994
|
content: Nonce,
|
|
4991
4995
|
primaryAction: Nonce,
|
|
4992
4996
|
secondaryAction: BackToHomepageSecondary,
|
|
4993
4997
|
},
|
|
4994
4998
|
clientSide: {
|
|
4995
|
-
illustration: img$6,
|
|
4999
|
+
illustration: getStaticImageSource(img$6),
|
|
4996
5000
|
buttonColumns: 2,
|
|
4997
5001
|
content: Nonce,
|
|
4998
5002
|
primaryAction: Reload,
|
|
4999
5003
|
secondaryAction: BackToHomepageSecondary,
|
|
5000
5004
|
},
|
|
5001
5005
|
UNVERIFIED_EMAIL: {
|
|
5002
|
-
illustration: img$5,
|
|
5006
|
+
illustration: getStaticImageSource(img$5),
|
|
5003
5007
|
buttonColumns: 2,
|
|
5004
5008
|
content: Nonce,
|
|
5005
5009
|
primaryAction: BackToLogin,
|
|
5006
5010
|
secondaryAction: ContactSupport,
|
|
5007
5011
|
},
|
|
5008
5012
|
INITIAL_UNVERIFIED_EMAIL: {
|
|
5009
|
-
illustration: img$7,
|
|
5013
|
+
illustration: getStaticImageSource(img$7),
|
|
5010
5014
|
buttonColumns: 1,
|
|
5011
5015
|
content: Nonce,
|
|
5012
5016
|
primaryAction: BackToLogin,
|
|
5013
5017
|
secondaryAction: Nonce,
|
|
5014
5018
|
},
|
|
5015
5019
|
USER_BLOCKED: {
|
|
5016
|
-
illustration: img$5,
|
|
5020
|
+
illustration: getStaticImageSource(img$5),
|
|
5017
5021
|
buttonColumns: 1,
|
|
5018
5022
|
content: Nonce,
|
|
5019
5023
|
primaryAction: Nonce,
|
|
5020
5024
|
secondaryAction: ContactSupport,
|
|
5021
5025
|
},
|
|
5022
5026
|
UNKNOWN_AUTH_ERROR: {
|
|
5023
|
-
illustration: img$5,
|
|
5027
|
+
illustration: getStaticImageSource(img$5),
|
|
5024
5028
|
buttonColumns: 2,
|
|
5025
5029
|
content: Nonce,
|
|
5026
5030
|
primaryAction: BackToLogin,
|
|
5027
5031
|
secondaryAction: ContactSupport,
|
|
5028
5032
|
},
|
|
5029
5033
|
EMAIL_CHANGE_VERIFICATION_ERROR: {
|
|
5030
|
-
illustration: img$5,
|
|
5034
|
+
illustration: getStaticImageSource(img$5),
|
|
5031
5035
|
buttonColumns: 1,
|
|
5032
5036
|
content: EmailChangeVerificationErrorContent,
|
|
5033
5037
|
primaryAction: BackToHomepagePrimary,
|
|
@@ -5797,7 +5801,7 @@ var img$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAABQCAMAAADm+9r/A
|
|
|
5797
5801
|
|
|
5798
5802
|
const FooterApps = ({ config }) => {
|
|
5799
5803
|
const { t } = useI18n();
|
|
5800
|
-
return (jsxRuntime.jsx(GridItem, { children: jsxRuntime.jsxs(Stack$1, { paddingY: { base: '2xl', md: 'md' }, paddingX: { base: 'md', md: '0' }, gap: "md", children: [jsxRuntime.jsx(Text$1, { textStyle: "heading5", children: t('footer.apps.title') }), jsxRuntime.jsxs(Root$2, { children: [jsxRuntime.jsx(Item, { display: "flex", alignItems: "center", children: jsxRuntime.jsx(FooterLink, { linkInstance: config.apps.android[0], children: jsxRuntime.jsx(react.Image, { src: img$2, alt: 'Googleplay Icon', width: "3xl", height: "auto", loading: "lazy" }) }) }), jsxRuntime.jsx(Item, { display: "flex", alignItems: "center", mt: "md", children: jsxRuntime.jsx(FooterLink, { linkInstance: config.apps.apple[0], children: jsxRuntime.jsx(react.Image, { src: img$1, alt: 'Appsore Icon', width: "3xl", height: "auto", loading: "lazy" }) }) })] })] }) }));
|
|
5804
|
+
return (jsxRuntime.jsx(GridItem, { children: jsxRuntime.jsxs(Stack$1, { paddingY: { base: '2xl', md: 'md' }, paddingX: { base: 'md', md: '0' }, gap: "md", children: [jsxRuntime.jsx(Text$1, { textStyle: "heading5", children: t('footer.apps.title') }), jsxRuntime.jsxs(Root$2, { children: [jsxRuntime.jsx(Item, { display: "flex", alignItems: "center", children: jsxRuntime.jsx(FooterLink, { linkInstance: config.apps.android[0], children: jsxRuntime.jsx(react.Image, { src: getStaticImageSource(img$2), alt: 'Googleplay Icon', width: "3xl", height: "auto", loading: "lazy" }) }) }), jsxRuntime.jsx(Item, { display: "flex", alignItems: "center", mt: "md", children: jsxRuntime.jsx(FooterLink, { linkInstance: config.apps.apple[0], children: jsxRuntime.jsx(react.Image, { src: getStaticImageSource(img$1), alt: 'Appsore Icon', width: "3xl", height: "auto", loading: "lazy" }) }) })] })] }) }));
|
|
5801
5805
|
};
|
|
5802
5806
|
|
|
5803
5807
|
const FooterSectionGrid = ({ config }) => {
|
|
@@ -8543,7 +8547,7 @@ const TenantSelectionOverview = ({ tenantSelection, setTenantSelection, user, se
|
|
|
8543
8547
|
});
|
|
8544
8548
|
return createTenantLabel(selectedManagedSeller);
|
|
8545
8549
|
};
|
|
8546
|
-
return (jsxRuntime.jsxs(TenantSelectionModalLayout, { children: [jsxRuntime.jsx(react.Image, { src: img, alt: "tenant selection illustration", width: "3xl", height: "3xl", loading: "lazy" }), jsxRuntime.jsx(H1, { textStyle: "heading3", children: t('auth.tenantSelection.title') }), jsxRuntime.jsx(Text$1, { textAlign: "center", children: t('auth.tenantSelection.description') }), jsxRuntime.jsx(Button$1, { variant: "secondary", onClick: () => {
|
|
8550
|
+
return (jsxRuntime.jsxs(TenantSelectionModalLayout, { children: [jsxRuntime.jsx(react.Image, { src: getStaticImageSource(img), alt: "tenant selection illustration", width: "3xl", height: "3xl", loading: "lazy" }), jsxRuntime.jsx(H1, { textStyle: "heading3", children: t('auth.tenantSelection.title') }), jsxRuntime.jsx(Text$1, { textAlign: "center", children: t('auth.tenantSelection.description') }), jsxRuntime.jsx(Button$1, { variant: "secondary", onClick: () => {
|
|
8547
8551
|
setTenantSelection((currentState) => {
|
|
8548
8552
|
return { ...currentState, showSelection: true };
|
|
8549
8553
|
});
|
|
@@ -8642,6 +8646,10 @@ Object.defineProperty(exports, "LinkBox", {
|
|
|
8642
8646
|
enumerable: true,
|
|
8643
8647
|
get: function () { return react.LinkBox; }
|
|
8644
8648
|
});
|
|
8649
|
+
Object.defineProperty(exports, "Portal", {
|
|
8650
|
+
enumerable: true,
|
|
8651
|
+
get: function () { return react.Portal; }
|
|
8652
|
+
});
|
|
8645
8653
|
Object.defineProperty(exports, "useBreakpointValue", {
|
|
8646
8654
|
enumerable: true,
|
|
8647
8655
|
get: function () { return react.useBreakpointValue; }
|