@smg-automotive/components 27.3.1 → 27.3.2-components-cleanup.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/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/aspectRatio/index.js.map +1 -1
- package/dist/esm/components/avatar/index.js.map +1 -1
- package/dist/esm/components/card/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/grid/index.js.map +1 -1
- package/dist/esm/components/list/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/stack/index.js.map +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/utilities/staticImage.js +6 -0
- package/dist/esm/utilities/staticImage.js.map +1 -0
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/page-layout.d.mts +96 -0
- package/dist/page-layout.d.ts +96 -0
- package/package.json +68 -84
- 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
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Image } from '@chakra-ui/react';
|
|
3
|
+
import { getStaticImageSource } from '../../utilities/staticImage.js';
|
|
3
4
|
import { useI18n } from '../../utilities/i18nInit.js';
|
|
4
5
|
import { Text } from '../text/index.js';
|
|
5
6
|
import { H1 } from '../heading/index.js';
|
|
6
7
|
import { Button } from '../button/index.js';
|
|
7
8
|
import img from './tenantSelectionIllustration.png.js';
|
|
8
9
|
import { TenantSelectionModalLayout } from './ModalLayout.js';
|
|
9
|
-
import { createTenantLabel } from './
|
|
10
|
+
import { createTenantLabel } from './CreateTenantLabel.js';
|
|
10
11
|
|
|
11
12
|
const TenantSelectionOverview = ({ tenantSelection, setTenantSelection, user, selectTenant, }) => {
|
|
12
13
|
const { t } = useI18n();
|
|
@@ -18,7 +19,7 @@ const TenantSelectionOverview = ({ tenantSelection, setTenantSelection, user, se
|
|
|
18
19
|
});
|
|
19
20
|
return createTenantLabel(selectedManagedSeller);
|
|
20
21
|
};
|
|
21
|
-
return (jsxs(TenantSelectionModalLayout, { children: [jsx(Image, { src: img, alt: "tenant selection illustration", width: "3xl", height: "3xl", loading: "lazy" }), jsx(H1, { textStyle: "heading3", children: t('auth.tenantSelection.title') }), jsx(Text, { textAlign: "center", children: t('auth.tenantSelection.description') }), jsx(Button, { variant: "secondary", onClick: () => {
|
|
22
|
+
return (jsxs(TenantSelectionModalLayout, { children: [jsx(Image, { src: getStaticImageSource(img), alt: "tenant selection illustration", width: "3xl", height: "3xl", loading: "lazy" }), jsx(H1, { textStyle: "heading3", children: t('auth.tenantSelection.title') }), jsx(Text, { textAlign: "center", children: t('auth.tenantSelection.description') }), jsx(Button, { variant: "secondary", onClick: () => {
|
|
22
23
|
setTenantSelection((currentState) => {
|
|
23
24
|
return { ...currentState, showSelection: true };
|
|
24
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.js","sources":["../../../../../src/components/tenantSelection/Overview.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","tenantImage"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Overview.js","sources":["../../../../../src/components/tenantSelection/Overview.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","tenantImage"],"mappings":";;;;;;;;;;;AA8BO,MAAM,uBAAuB,GAA6B,CAAC,EAChE,eAAe,EACf,kBAAkB,EAClB,IAAI,EACJ,YAAY,GACb,KAAI;AACH,IAAA,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE;IAEvB,MAAM,oBAAoB,GAAG,MAAK;QAChC,IAAI,CAAC,eAAe,CAAC,cAAc;AACjC,YAAA,OAAO,CAAC,CAAC,mCAAmC,CAAC;QAE/C,MAAM,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,aAAa,KAAI;AACvE,YAAA,OAAO,aAAa,CAAC,EAAE,KAAK,eAAe,CAAC,cAAc;AAC5D,QAAA,CAAC,CAAC;AAEF,QAAA,OAAO,iBAAiB,CAAC,qBAAqB,CAAC;AACjD,IAAA,CAAC;AAED,IAAA,QACEA,IAAA,CAAC,0BAA0B,EAAA,EAAA,QAAA,EAAA,CACzBC,GAAA,CAAC,KAAK,EAAA,EACJ,GAAG,EAAE,oBAAoB,CAACC,GAAW,CAAC,EACtC,GAAG,EAAC,+BAA+B,EACnC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,MAAM,EAAA,CACd,EACFD,GAAA,CAAC,EAAE,EAAA,EAAC,SAAS,EAAC,UAAU,EAAA,QAAA,EAAE,CAAC,CAAC,4BAA4B,CAAC,EAAA,CAAM,EAC/DA,GAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,QAAQ,EAAA,QAAA,EAAE,CAAC,CAAC,kCAAkC,CAAC,EAAA,CAAQ,EACvEA,IAAC,MAAM,EAAA,EACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,MAAK;AACZ,oBAAA,kBAAkB,CAAC,CAAC,YAAY,KAAI;wBAClC,OAAO,EAAE,GAAG,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE;AACjD,oBAAA,CAAC,CAAC;gBACJ,CAAC,EACD,KAAK,EAAC,MAAM,YAEX,oBAAoB,EAAE,EAAA,CAChB,EACTA,GAAA,CAAC,MAAM,IACL,QAAQ,EAAE,CAAC,eAAe,CAAC,cAAc,EACzC,OAAO,EAAE,MAAK;oBACZ,IAAI,CAAC,eAAe,CAAC,cAAc;wBAAE;AACrC,oBAAA,YAAY,CAAC,eAAe,CAAC,cAAc,CAAC;AAC9C,gBAAA,CAAC,EACD,KAAK,EAAC,MAAM,EAAA,QAAA,EAEX,CAAC,CAAC,kCAAkC,CAAC,EAAA,CAC/B,CAAA,EAAA,CACkB;AAEjC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { createTenantLabel } from '../
|
|
3
|
+
import { createTenantLabel } from '../CreateTenantLabel.js';
|
|
4
4
|
import { SearchableList } from '../../list/SearchableList.js';
|
|
5
5
|
import { H1 } from '../../heading/index.js';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/hooks/useMediaQuery/index.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/hooks/useMediaQuery/index.tsx"],"sourcesContent":[null],"names":["breakpoints","useChakraMediaQuery"],"mappings":";;;;AAsBA,MAAM,QAAQ,GAAG,CAAC,EAAU,KAAa,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;AAE9D,SAAS,oBAAoB,CAAC,KAA2B,EAAA;IACvD,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,GAAG,CAAA,YAAA,EAAeA,aAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA,CAAA,CAAG,GAAG,EAAE;AACzE,IAAA,MAAM,GAAG,GAAG,KAAK,CAAC;AAChB,UAAE,CAAA,YAAA,EAAe,QAAQ,CAACA,aAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAA,GAAA;UACxD,EAAE;IAEN,IAAI,GAAG,IAAI,GAAG;AAAE,QAAA,OAAO,CAAA,EAAG,GAAG,CAAA,KAAA,EAAQ,GAAG,EAAE;IAC1C,OAAO,GAAG,IAAI,GAAG;AACnB;AAEA,SAAS,eAAe,CAAC,KAAiB,EAAA;AACxC,IAAA,IAAI,YAAY,IAAI,KAAK,EAAE;QACzB,OAAO,KAAK,CAAC,UAAU;IACzB;AACA,IAAA,OAAO,oBAAoB,CAAC,KAAK,CAAC;AACpC;AAEA,MAAM,aAAa,GAAG,CACpB,KAAiB,EACjB,OAA8B,KACnB;AACX,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AAEjE,IAAA,MAAM,aAAa,GAAyB;AAC1C,QAAA,GAAG,EAAE,IAAI;QACT,QAAQ,EAAE,CAAC,KAAK,CAAC;AACjB,QAAA,GAAG,OAAO;KACX;AAED,IAAA,MAAM,CAAC,OAAO,CAAC,GAAGC,eAAmB,CAAC,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;AAClE,IAAA,OAAO,OAAO;AAChB;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { keyframes } from '@emotion/react';
|
|
2
|
-
export { LinkBox, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
2
|
+
export { LinkBox, Portal, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
3
3
|
export { default as useMediaQuery } from './hooks/useMediaQuery/index.js';
|
|
4
4
|
export { default as useDebouncedOnChange } from './hooks/useDebouncedOnChange.js';
|
|
5
5
|
export { default as useToken } from './hooks/useToken/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staticImage.js","sources":["../../../../src/utilities/staticImage.ts"],"sourcesContent":[null],"names":[],"mappings":"AAIO,MAAM,oBAAoB,GAAG,CAAC,KAA2B,KAAY;AAC1E,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG;AACtD;;;;"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { keyframes } from '@emotion/react';
|
|
2
2
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
-
import { UseMediaQueryOptions, AlertRootProps, RecipeVariantProps, AccordionRootProps, AccordionItemTriggerProps, AccordionItemProps as AccordionItemProps$1, AccordionItemBodyProps, BoxProps, ButtonProps, CheckboxCheckedChangeDetails, SeparatorProps, InputProps as InputProps$1, LinkProps as LinkProps$2, LinkOverlayProps as LinkOverlayProps$1, ListRootProps,
|
|
4
|
-
export { AspectRatioProps, CardBodyProps, CardFooterProps, CardHeaderProps, GridItemProps, GridProps, LinkBox, LinkBoxProps, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
3
|
+
import { UseMediaQueryOptions, AlertRootProps, RecipeVariantProps, AccordionRootProps, AccordionItemTriggerProps, AccordionItemProps as AccordionItemProps$1, AccordionItemBodyProps, BoxProps, ButtonProps, CheckboxCheckedChangeDetails, SeparatorProps, InputProps as InputProps$1, LinkProps as LinkProps$2, LinkOverlayProps as LinkOverlayProps$1, ListRootProps, UseDialogProps, CloseButtonProps, UsePopoverProps, IconProps as IconProps$1, NumberInput, NativeSelectRootProps, NativeSelectFieldProps, MenuTriggerProps, MenuContentProps, MenuRootProps, SimpleGridProps, SkeletonProps, StackProps, Switch as Switch$1, TabsTriggerProps, TabsRootProps, TableCellProps, TableColumnHeaderProps, TextProps, ConditionalValue, AspectRatioProps, BadgeProps as BadgeProps$1, BreadcrumbRootProps, BreadcrumbLinkProps as BreadcrumbLinkProps$1, Card, CardBodyProps, CardHeaderProps, CardFooterProps, CenterProps as CenterProps$1, CollapsibleRootProps, DrawerContentProps, DrawerBodyProps, DrawerRootProps, FlexProps as FlexProps$1, GridProps, GridItemProps, HeadingProps as HeadingProps$1, UseHoverCardProps, Accordion as Accordion$1, Slider, SpinnerProps as SpinnerProps$1, TabsListProps, TabsContentProps, HTMLChakraProps, CreateToasterReturn, TooltipRootProps, TooltipContentProps } from '@chakra-ui/react';
|
|
4
|
+
export { AspectRatioProps, CardBodyProps, CardFooterProps, CardHeaderProps, GridItemProps, GridProps, LinkBox, LinkBoxProps, Portal, PortalProps, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { FocusEventHandler, ChangeEventHandler, FC, ReactNode, RefObject, PropsWithChildren, ReactElement, ElementType as ElementType$1, KeyboardEventHandler, JSX, ChangeEvent, ComponentProps } from 'react';
|
|
7
7
|
export { PropsWithChildren as FullHeightProps } from 'react';
|
|
@@ -814,8 +814,6 @@ declare const UnorderedList: FC<PropsWithChildren<{
|
|
|
814
814
|
} & ListRootProps>>;
|
|
815
815
|
declare const OrderedList: FC<PropsWithChildren>;
|
|
816
816
|
|
|
817
|
-
declare const DialogCloseButton: React__default.ForwardRefExoticComponent<CloseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
818
|
-
|
|
819
817
|
type MotionPreset = 'none' | 'scale';
|
|
820
818
|
type DialogRootProps = {
|
|
821
819
|
size?: 'md' | 'lg' | 'auth0' | 'full';
|
|
@@ -837,6 +835,8 @@ type DialogProps = DialogRootProps & {
|
|
|
837
835
|
};
|
|
838
836
|
declare const Dialog: FC<PropsWithChildren<DialogProps>>;
|
|
839
837
|
|
|
838
|
+
declare const DialogCloseButton: React__default.ForwardRefExoticComponent<CloseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
839
|
+
|
|
840
840
|
type ModalCloseButtonProps = React__default.ComponentProps<typeof DialogCloseButton>;
|
|
841
841
|
declare const ModalCloseButton: FC<ModalCloseButtonProps>;
|
|
842
842
|
type Props$j = Omit<DialogProps, 'open'> & {
|
|
@@ -1296,7 +1296,7 @@ type ArticleTeaserProps = ArticleTeaserVariantProps & {
|
|
|
1296
1296
|
};
|
|
1297
1297
|
declare const ArticleTeaser: FC<ArticleTeaserProps>;
|
|
1298
1298
|
|
|
1299
|
-
declare const AspectRatio: React.ForwardRefExoticComponent<
|
|
1299
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
1300
1300
|
|
|
1301
1301
|
type AvatarProps = {
|
|
1302
1302
|
withNotification?: boolean;
|
|
@@ -1324,14 +1324,14 @@ type BreadcrumbLinkProps = Omit<BreadcrumbLinkProps$1, 'href'> & {
|
|
|
1324
1324
|
declare const BreadcrumbLink: FC<BreadcrumbLinkProps>;
|
|
1325
1325
|
|
|
1326
1326
|
declare const Root: React.ForwardRefExoticComponent<Card.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1327
|
-
declare const Header: React.ForwardRefExoticComponent<
|
|
1328
|
-
declare const Body: React.ForwardRefExoticComponent<
|
|
1329
|
-
declare const Footer$1: React.ForwardRefExoticComponent<
|
|
1327
|
+
declare const Header: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1328
|
+
declare const Body: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
1329
|
+
declare const Footer$1: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1330
1330
|
declare const CardComponents: {
|
|
1331
1331
|
Root: React.ForwardRefExoticComponent<Card.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1332
|
-
Body: React.ForwardRefExoticComponent<
|
|
1333
|
-
Header: React.ForwardRefExoticComponent<
|
|
1334
|
-
Footer: React.ForwardRefExoticComponent<
|
|
1332
|
+
Body: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
1333
|
+
Header: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1334
|
+
Footer: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1335
1335
|
};
|
|
1336
1336
|
|
|
1337
1337
|
type BreakpointKeys = keyof typeof breakpoints;
|
|
@@ -2036,8 +2036,8 @@ interface GalleryHeaderProps {
|
|
|
2036
2036
|
|
|
2037
2037
|
declare const GalleryHeader: React.FC<PropsWithChildren<GalleryHeaderProps>>;
|
|
2038
2038
|
|
|
2039
|
-
declare const Grid: React.ForwardRefExoticComponent<
|
|
2040
|
-
declare const GridItem: React.ForwardRefExoticComponent<
|
|
2039
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
2040
|
+
declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
2041
2041
|
|
|
2042
2042
|
type HeadingProps = Omit<HeadingProps$1, 'as' | 'asChild'>;
|
|
2043
2043
|
declare const H1: FC<HeadingProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { keyframes } from '@emotion/react';
|
|
2
2
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
-
import { UseMediaQueryOptions, AlertRootProps, RecipeVariantProps, AccordionRootProps, AccordionItemTriggerProps, AccordionItemProps as AccordionItemProps$1, AccordionItemBodyProps, BoxProps, ButtonProps, CheckboxCheckedChangeDetails, SeparatorProps, InputProps as InputProps$1, LinkProps as LinkProps$2, LinkOverlayProps as LinkOverlayProps$1, ListRootProps,
|
|
4
|
-
export { AspectRatioProps, CardBodyProps, CardFooterProps, CardHeaderProps, GridItemProps, GridProps, LinkBox, LinkBoxProps, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
3
|
+
import { UseMediaQueryOptions, AlertRootProps, RecipeVariantProps, AccordionRootProps, AccordionItemTriggerProps, AccordionItemProps as AccordionItemProps$1, AccordionItemBodyProps, BoxProps, ButtonProps, CheckboxCheckedChangeDetails, SeparatorProps, InputProps as InputProps$1, LinkProps as LinkProps$2, LinkOverlayProps as LinkOverlayProps$1, ListRootProps, UseDialogProps, CloseButtonProps, UsePopoverProps, IconProps as IconProps$1, NumberInput, NativeSelectRootProps, NativeSelectFieldProps, MenuTriggerProps, MenuContentProps, MenuRootProps, SimpleGridProps, SkeletonProps, StackProps, Switch as Switch$1, TabsTriggerProps, TabsRootProps, TableCellProps, TableColumnHeaderProps, TextProps, ConditionalValue, AspectRatioProps, BadgeProps as BadgeProps$1, BreadcrumbRootProps, BreadcrumbLinkProps as BreadcrumbLinkProps$1, Card, CardBodyProps, CardHeaderProps, CardFooterProps, CenterProps as CenterProps$1, CollapsibleRootProps, DrawerContentProps, DrawerBodyProps, DrawerRootProps, FlexProps as FlexProps$1, GridProps, GridItemProps, HeadingProps as HeadingProps$1, UseHoverCardProps, Accordion as Accordion$1, Slider, SpinnerProps as SpinnerProps$1, TabsListProps, TabsContentProps, HTMLChakraProps, CreateToasterReturn, TooltipRootProps, TooltipContentProps } from '@chakra-ui/react';
|
|
4
|
+
export { AspectRatioProps, CardBodyProps, CardFooterProps, CardHeaderProps, GridItemProps, GridProps, LinkBox, LinkBoxProps, Portal, PortalProps, useBreakpointValue, useChakraContext } from '@chakra-ui/react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { FocusEventHandler, ChangeEventHandler, FC, ReactNode, RefObject, PropsWithChildren, ReactElement, ElementType as ElementType$1, KeyboardEventHandler, JSX, ChangeEvent, ComponentProps } from 'react';
|
|
7
7
|
export { PropsWithChildren as FullHeightProps } from 'react';
|
|
@@ -814,8 +814,6 @@ declare const UnorderedList: FC<PropsWithChildren<{
|
|
|
814
814
|
} & ListRootProps>>;
|
|
815
815
|
declare const OrderedList: FC<PropsWithChildren>;
|
|
816
816
|
|
|
817
|
-
declare const DialogCloseButton: React__default.ForwardRefExoticComponent<CloseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
818
|
-
|
|
819
817
|
type MotionPreset = 'none' | 'scale';
|
|
820
818
|
type DialogRootProps = {
|
|
821
819
|
size?: 'md' | 'lg' | 'auth0' | 'full';
|
|
@@ -837,6 +835,8 @@ type DialogProps = DialogRootProps & {
|
|
|
837
835
|
};
|
|
838
836
|
declare const Dialog: FC<PropsWithChildren<DialogProps>>;
|
|
839
837
|
|
|
838
|
+
declare const DialogCloseButton: React__default.ForwardRefExoticComponent<CloseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
839
|
+
|
|
840
840
|
type ModalCloseButtonProps = React__default.ComponentProps<typeof DialogCloseButton>;
|
|
841
841
|
declare const ModalCloseButton: FC<ModalCloseButtonProps>;
|
|
842
842
|
type Props$j = Omit<DialogProps, 'open'> & {
|
|
@@ -1296,7 +1296,7 @@ type ArticleTeaserProps = ArticleTeaserVariantProps & {
|
|
|
1296
1296
|
};
|
|
1297
1297
|
declare const ArticleTeaser: FC<ArticleTeaserProps>;
|
|
1298
1298
|
|
|
1299
|
-
declare const AspectRatio: React.ForwardRefExoticComponent<
|
|
1299
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
1300
1300
|
|
|
1301
1301
|
type AvatarProps = {
|
|
1302
1302
|
withNotification?: boolean;
|
|
@@ -1324,14 +1324,14 @@ type BreadcrumbLinkProps = Omit<BreadcrumbLinkProps$1, 'href'> & {
|
|
|
1324
1324
|
declare const BreadcrumbLink: FC<BreadcrumbLinkProps>;
|
|
1325
1325
|
|
|
1326
1326
|
declare const Root: React.ForwardRefExoticComponent<Card.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1327
|
-
declare const Header: React.ForwardRefExoticComponent<
|
|
1328
|
-
declare const Body: React.ForwardRefExoticComponent<
|
|
1329
|
-
declare const Footer$1: React.ForwardRefExoticComponent<
|
|
1327
|
+
declare const Header: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1328
|
+
declare const Body: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
1329
|
+
declare const Footer$1: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1330
1330
|
declare const CardComponents: {
|
|
1331
1331
|
Root: React.ForwardRefExoticComponent<Card.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1332
|
-
Body: React.ForwardRefExoticComponent<
|
|
1333
|
-
Header: React.ForwardRefExoticComponent<
|
|
1334
|
-
Footer: React.ForwardRefExoticComponent<
|
|
1332
|
+
Body: React.ForwardRefExoticComponent<CardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
1333
|
+
Header: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1334
|
+
Footer: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1335
1335
|
};
|
|
1336
1336
|
|
|
1337
1337
|
type BreakpointKeys = keyof typeof breakpoints;
|
|
@@ -2036,8 +2036,8 @@ interface GalleryHeaderProps {
|
|
|
2036
2036
|
|
|
2037
2037
|
declare const GalleryHeader: React.FC<PropsWithChildren<GalleryHeaderProps>>;
|
|
2038
2038
|
|
|
2039
|
-
declare const Grid: React.ForwardRefExoticComponent<
|
|
2040
|
-
declare const GridItem: React.ForwardRefExoticComponent<
|
|
2039
|
+
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
2040
|
+
declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
2041
2041
|
|
|
2042
2042
|
type HeadingProps = Omit<HeadingProps$1, 'as' | 'asChild'>;
|
|
2043
2043
|
declare const H1: FC<HeadingProps>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const sizes: {
|
|
4
|
+
0: {
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
auto: {
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
xxs: {
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
xs: {
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
xl: {
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
'2xl': {
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
'3xl': {
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
'4xl': {
|
|
35
|
+
value: string;
|
|
36
|
+
};
|
|
37
|
+
'5xl': {
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
'6xl': {
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
'7xl': {
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
'8xl': {
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
half: {
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
full: {
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
fit: {
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
container: {
|
|
59
|
+
sm: {
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
md: {
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
xl: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
'2xl': {
|
|
72
|
+
value: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
'auth0-width': {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
'auth0-height': {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
'screen-height': {
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
interface Props {
|
|
87
|
+
header?: ReactNode;
|
|
88
|
+
maxContentWidth: keyof typeof sizes.container;
|
|
89
|
+
skyScraperAd?: ReactNode;
|
|
90
|
+
heroAd?: ReactNode;
|
|
91
|
+
footer?: ReactNode;
|
|
92
|
+
}
|
|
93
|
+
declare const PageLayout: FC<PropsWithChildren<Props>>;
|
|
94
|
+
|
|
95
|
+
export { PageLayout };
|
|
96
|
+
export type { Props };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const sizes: {
|
|
4
|
+
0: {
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
auto: {
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
xxs: {
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
xs: {
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
xl: {
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
'2xl': {
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
'3xl': {
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
'4xl': {
|
|
35
|
+
value: string;
|
|
36
|
+
};
|
|
37
|
+
'5xl': {
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
'6xl': {
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
'7xl': {
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
'8xl': {
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
half: {
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
full: {
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
fit: {
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
container: {
|
|
59
|
+
sm: {
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
md: {
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
68
|
+
xl: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
'2xl': {
|
|
72
|
+
value: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
'auth0-width': {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
'auth0-height': {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
'screen-height': {
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
interface Props {
|
|
87
|
+
header?: ReactNode;
|
|
88
|
+
maxContentWidth: keyof typeof sizes.container;
|
|
89
|
+
skyScraperAd?: ReactNode;
|
|
90
|
+
heroAd?: ReactNode;
|
|
91
|
+
footer?: ReactNode;
|
|
92
|
+
}
|
|
93
|
+
declare const PageLayout: FC<PropsWithChildren<Props>>;
|
|
94
|
+
|
|
95
|
+
export { PageLayout };
|
|
96
|
+
export type { Props };
|
package/package.json
CHANGED
|
@@ -1,105 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smg-automotive/components",
|
|
3
|
-
"version": "27.3.1",
|
|
3
|
+
"version": "27.3.2-components-cleanup.1",
|
|
4
4
|
"description": "SMG Automotive components library",
|
|
5
|
-
"main": "dist/cjs/index.js",
|
|
6
|
-
"module": "dist/esm/index.js",
|
|
7
5
|
"exports": {
|
|
8
6
|
".": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"require": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"default": "./dist/cjs/index.js"
|
|
16
|
-
}
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/esm/index.js",
|
|
9
|
+
"require": "./dist/cjs/index.js",
|
|
10
|
+
"default": "./dist/esm/index.js"
|
|
17
11
|
},
|
|
18
12
|
"./breakpoints": {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"require": {
|
|
24
|
-
"types": "./dist/breakpoints.d.ts",
|
|
25
|
-
"default": "./dist/cjs/breakpoints.js"
|
|
26
|
-
}
|
|
13
|
+
"types": "./dist/breakpoints.d.ts",
|
|
14
|
+
"import": "./dist/esm/breakpoints.js",
|
|
15
|
+
"require": "./dist/cjs/breakpoints.js",
|
|
16
|
+
"default": "./dist/esm/breakpoints.js"
|
|
27
17
|
},
|
|
28
18
|
"./fonts/hosted": {
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
"types": "./dist/fonts/esm/types/Hosted.d.ts",
|
|
20
|
+
"import": "./dist/fonts/esm/Hosted.js",
|
|
21
|
+
"require": "./dist/fonts/cjs/Hosted.js",
|
|
22
|
+
"default": "./dist/fonts/esm/Hosted.js"
|
|
23
|
+
},
|
|
24
|
+
"./page-layout": {
|
|
25
|
+
"types": "./dist/page-layout.d.ts",
|
|
26
|
+
"import": "./dist/esm/components/layout/Page.js",
|
|
27
|
+
"require": "./dist/cjs/page-layout.js",
|
|
28
|
+
"default": "./dist/esm/components/layout/Page.js"
|
|
37
29
|
},
|
|
38
30
|
"./theme-provider": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"require": {
|
|
44
|
-
"types": "./dist/theme-provider.d.ts",
|
|
45
|
-
"default": "./dist/cjs/theme-provider.js"
|
|
46
|
-
}
|
|
31
|
+
"types": "./dist/theme-provider.d.ts",
|
|
32
|
+
"import": "./dist/esm/themeProvider.js",
|
|
33
|
+
"require": "./dist/cjs/themeProvider.js",
|
|
34
|
+
"default": "./dist/esm/themeProvider.js"
|
|
47
35
|
},
|
|
48
36
|
"./theme-provider/autoscout24": {
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"require": {
|
|
54
|
-
"types": "./dist/theme-provider/autoscout24.d.ts",
|
|
55
|
-
"default": "./dist/cjs/theme-provider/autoscout24.js"
|
|
56
|
-
}
|
|
37
|
+
"types": "./dist/theme-provider/autoscout24.d.ts",
|
|
38
|
+
"import": "./dist/esm/components/themeProvider/AutoScout24ThemeProvider.js",
|
|
39
|
+
"require": "./dist/cjs/theme-provider/autoscout24.js",
|
|
40
|
+
"default": "./dist/esm/components/themeProvider/AutoScout24ThemeProvider.js"
|
|
57
41
|
},
|
|
58
42
|
"./theme-provider/motoscout24": {
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"require": {
|
|
64
|
-
"types": "./dist/theme-provider/motoscout24.d.ts",
|
|
65
|
-
"default": "./dist/cjs/theme-provider/motoscout24.js"
|
|
66
|
-
}
|
|
43
|
+
"types": "./dist/theme-provider/motoscout24.d.ts",
|
|
44
|
+
"import": "./dist/esm/components/themeProvider/MotoScout24ThemeProvider.js",
|
|
45
|
+
"require": "./dist/cjs/theme-provider/motoscout24.js",
|
|
46
|
+
"default": "./dist/esm/components/themeProvider/MotoScout24ThemeProvider.js"
|
|
67
47
|
},
|
|
68
48
|
"./themes": {
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"require": {
|
|
74
|
-
"types": "./dist/themes.d.ts",
|
|
75
|
-
"default": "./dist/cjs/themes.js"
|
|
76
|
-
}
|
|
49
|
+
"types": "./dist/themes.d.ts",
|
|
50
|
+
"import": "./dist/esm/themes/index.js",
|
|
51
|
+
"require": "./dist/cjs/themes.js",
|
|
52
|
+
"default": "./dist/esm/themes/index.js"
|
|
77
53
|
}
|
|
78
54
|
},
|
|
79
55
|
"imports": {},
|
|
80
|
-
"types": "dist/index.d.ts",
|
|
81
|
-
"typesVersions": {
|
|
82
|
-
"*": {
|
|
83
|
-
"breakpoints": [
|
|
84
|
-
"dist/breakpoints.d.ts"
|
|
85
|
-
],
|
|
86
|
-
"fonts/hosted": [
|
|
87
|
-
"dist/fonts/esm/types/Hosted"
|
|
88
|
-
],
|
|
89
|
-
"theme-provider": [
|
|
90
|
-
"dist/theme-provider.d.ts"
|
|
91
|
-
],
|
|
92
|
-
"theme-provider/autoscout24": [
|
|
93
|
-
"dist/theme-provider/autoscout24.d.ts"
|
|
94
|
-
],
|
|
95
|
-
"theme-provider/motoscout24": [
|
|
96
|
-
"dist/theme-provider/motoscout24.d.ts"
|
|
97
|
-
],
|
|
98
|
-
"themes": [
|
|
99
|
-
"dist/themes.d.ts"
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
56
|
"sideEffects": false,
|
|
104
57
|
"files": [
|
|
105
58
|
"dist/**/*"
|
|
@@ -112,6 +65,9 @@
|
|
|
112
65
|
},
|
|
113
66
|
"nx": {
|
|
114
67
|
"targets": {
|
|
68
|
+
"typegen": {
|
|
69
|
+
"parallelism": false
|
|
70
|
+
},
|
|
115
71
|
"typecheck": {
|
|
116
72
|
"dependsOn": [
|
|
117
73
|
"typegen"
|
|
@@ -199,7 +155,7 @@
|
|
|
199
155
|
"@testing-library/user-event": "14.6.1",
|
|
200
156
|
"@types/estree": "1.0.8",
|
|
201
157
|
"@types/jest": "30.0.0",
|
|
202
|
-
"@types/node": "24.13.
|
|
158
|
+
"@types/node": "24.13.3",
|
|
203
159
|
"@types/react": "19.2.17",
|
|
204
160
|
"@types/react-textarea-autosize": "8.0.0",
|
|
205
161
|
"@types/yargs": "17.0.35",
|
|
@@ -226,7 +182,7 @@
|
|
|
226
182
|
"rollup-plugin-dts": "6.4.1",
|
|
227
183
|
"rollup-plugin-executable": "1.6.3",
|
|
228
184
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
229
|
-
"semantic-release": "25.0.
|
|
185
|
+
"semantic-release": "25.0.6",
|
|
230
186
|
"space-separated-tokens": "2.0.2",
|
|
231
187
|
"storybook": "8.6.18",
|
|
232
188
|
"stream-http": "3.2.0",
|
|
@@ -276,5 +232,33 @@
|
|
|
276
232
|
"test:debug": "node --inspect-brk --inspect=127.0.0.1:9229 ./node_modules/jest/bin/jest.js --runInBand",
|
|
277
233
|
"pre-release": "CI_PULL_REQUEST= CIRCLE_PULL_REQUEST= semantic-release",
|
|
278
234
|
"release": "semantic-release"
|
|
235
|
+
},
|
|
236
|
+
"main": "dist/cjs/index.js",
|
|
237
|
+
"module": "dist/esm/index.js",
|
|
238
|
+
"types": "dist/index.d.ts",
|
|
239
|
+
"typesVersions": {
|
|
240
|
+
"*": {
|
|
241
|
+
"breakpoints": [
|
|
242
|
+
"dist/breakpoints.d.ts"
|
|
243
|
+
],
|
|
244
|
+
"fonts/hosted": [
|
|
245
|
+
"dist/fonts/esm/types/Hosted"
|
|
246
|
+
],
|
|
247
|
+
"page-layout": [
|
|
248
|
+
"dist/page-layout.d.ts"
|
|
249
|
+
],
|
|
250
|
+
"theme-provider": [
|
|
251
|
+
"dist/theme-provider.d.ts"
|
|
252
|
+
],
|
|
253
|
+
"theme-provider/autoscout24": [
|
|
254
|
+
"dist/theme-provider/autoscout24.d.ts"
|
|
255
|
+
],
|
|
256
|
+
"theme-provider/motoscout24": [
|
|
257
|
+
"dist/theme-provider/motoscout24.d.ts"
|
|
258
|
+
],
|
|
259
|
+
"themes": [
|
|
260
|
+
"dist/themes.d.ts"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
279
263
|
}
|
|
280
264
|
}
|