@smg-automotive/components 25.11.0-ST-1552-migrate-drawer.1 → 25.11.0-ST-1552-migrate-drawer.2

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.
@@ -1,5 +1,9 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  import { DrawerRootProps as DrawerProps } from '@chakra-ui/react';
3
- export declare const Drawer: FC<PropsWithChildren<DrawerProps>>;
4
- export type { DrawerProps };
3
+ interface DrawerComponentProps extends Omit<DrawerProps, 'open' | 'onOpenChange'> {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ }
7
+ export declare const Drawer: FC<PropsWithChildren<DrawerComponentProps>>;
8
+ export type { DrawerComponentProps };
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAQrD,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,UAAU,oBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAQ9D,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -3,8 +3,8 @@ import React from 'react';
3
3
  import { Drawer as Drawer$1, Portal } from '@chakra-ui/react';
4
4
 
5
5
  var Drawer = function (props) {
6
- var children = props.children, drawerProps = __rest(props, ["children"]);
7
- return (React.createElement(Drawer$1.Root, __assign({}, drawerProps),
6
+ var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
7
+ return (React.createElement(Drawer$1.Root, __assign({ open: isOpen, onOpenChange: onClose }, drawerProps),
8
8
  React.createElement(Portal, null, children)));
9
9
  };
10
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/drawer/index.tsx"],"sourcesContent":[null],"names":["ChakraDrawer"],"mappings":";;;;AAUO,IAAM,MAAM,GAAuC,UAAC,KAAK,EAAA;IACtD,IAAA,QAAQ,GAAqB,KAAK,CAAA,QAA1B,EAAK,WAAW,GAAA,MAAA,CAAK,KAAK,EAApC,CAAA,UAAA,CAA4B,CAAF;AAEhC,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,QAAY,CAAC,IAAI,eAAK,WAAW,CAAA;AAChC,QAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,IAAA,EAAE,QAAQ,CAAU,CACT;AAExB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/drawer/index.tsx"],"sourcesContent":[null],"names":["ChakraDrawer"],"mappings":";;;;AAgBO,IAAM,MAAM,GAAgD,UAAC,KAAK,EAAA;IAC/D,IAAA,QAAQ,GAAsC,KAAK,CAAA,QAA3C,EAAE,MAAM,GAA8B,KAAK,CAAA,MAAnC,EAAE,OAAO,GAAqB,KAAK,QAA1B,EAAK,WAAW,UAAK,KAAK,EAArD,CAAA,UAAA,EAAA,QAAA,EAAA,SAAA,CAA6C,CAAF;AAEjD,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,QAAY,CAAC,IAAI,EAAA,QAAA,CAAA,EAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,IAAM,WAAW,CAAA;AACrE,QAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,IAAA,EAAE,QAAQ,CAAU,CACT;AAExB;;;;"}
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
3
  import { UseMediaQueryOptions, AccordionRootProps, RecipeVariantProps, BoxProps, BadgeProps as BadgeProps$1, BreadcrumbRootProps, ButtonProps, Card as Card$1, CenterProps as CenterProps$1, CheckboxCheckedChangeDetails, InputProps as InputProps$1, Switch as Switch$1, UseDialogProps, DrawerRootProps, FlexProps as FlexProps$1, HeadingProps as HeadingProps$1, LinkProps as LinkProps$2, List as List$1, MenuTriggerProps, MenuRootProps, Accordion as Accordion$1, NativeSelectRootProps, NativeSelectFieldProps, SeparatorProps, SimpleGridProps, StackProps as StackProps$1, Table as Table$1, TextProps, NumberInput } from '@chakra-ui/react';
4
- export { AspectRatioProps, Box, BoxProps, CardBodyProps, CardFooterProps, CardHeaderProps, DrawerRootProps as DrawerProps, GridItemProps, GridProps, ListItemProps, ListRootProps, SeparatorProps, StackSeparator, TableBodyProps, TableCaptionProps, TableCellProps, TableColumnGroupProps, TableColumnHeaderProps, TableColumnProps, TableFooterProps, TableHeaderProps, TableRootProps, TableRowProps, TableScrollAreaProps, TextProps, useBreakpointValue, useChakraContext, useDisclosure } from '@chakra-ui/react';
4
+ export { AspectRatioProps, Box, BoxProps, CardBodyProps, CardFooterProps, CardHeaderProps, GridItemProps, GridProps, ListItemProps, ListRootProps, SeparatorProps, StackSeparator, TableBodyProps, TableCaptionProps, TableCellProps, TableColumnGroupProps, TableColumnHeaderProps, TableColumnProps, TableFooterProps, TableHeaderProps, TableRootProps, TableRowProps, TableScrollAreaProps, TextProps, useBreakpointValue, useChakraContext, useDisclosure } from '@chakra-ui/react';
5
5
  import * as React from 'react';
6
6
  import React__default, { FocusEventHandler, ChangeEventHandler, FC, PropsWithChildren, ReactNode, ReactElement, ElementType, ComponentProps, JSX } from 'react';
7
7
  export { PropsWithChildren as FullHeightProps } from 'react';
@@ -430,7 +430,7 @@ type DatePickerProps = Pick<InputProps$1, 'onFocus' | 'onBlur' | 'onChange'> & I
430
430
  value?: string;
431
431
  invalid?: boolean;
432
432
  };
433
- declare const DatePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onChange" | "onBlur" | "onFocus"> & {
433
+ declare const DatePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onFocus" | "onBlur" | "onChange"> & {
434
434
  variant?: _chakra_ui_react.ConditionalValue<"outline" | undefined>;
435
435
  size?: _chakra_ui_react.ConditionalValue<"md" | "lg" | undefined>;
436
436
  } & {
@@ -1738,7 +1738,11 @@ type DialogProps = DialogRootProps & {
1738
1738
  };
1739
1739
  declare const Dialog: FC<PropsWithChildren<DialogProps>>;
1740
1740
 
1741
- declare const Drawer: FC<PropsWithChildren<DrawerRootProps>>;
1741
+ interface DrawerComponentProps extends Omit<DrawerRootProps, 'open' | 'onOpenChange'> {
1742
+ isOpen: boolean;
1743
+ onClose: () => void;
1744
+ }
1745
+ declare const Drawer: FC<PropsWithChildren<DrawerComponentProps>>;
1742
1746
 
1743
1747
  declare const energyLabelRecipe: _chakra_ui_react.SlotRecipeDefinition<"text" | "root" | "triangle" | "textWrapper", {
1744
1748
  efficiency: {
@@ -2573,4 +2577,4 @@ declare class Logger {
2573
2577
  declare const logger: Logger;
2574
2578
 
2575
2579
  export { Accordion, AddPhotoIcon, AdvancedSearchIcon, AndroidIcon, AppleIcon, ArrowCircleIcon, ArrowDiagonalIcon, ArrowDownCircleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpCircleIcon, ArrowUpIcon, ArticleTeaser, AspectRatio, AutoScout24AppLogo, AutoScout24Icon, Avatar, AvatarIcon, AvatarWithNotificationIcon, Badge, BankNotesIcon, BatteryIcon, BookmarkIcon, Breadcrumbs, BulbIcon, Button, CabrioletIcon, CalculatorIcon, CalendarIcon, CallIcon, CamperIcon, CarConditionIcon, CarIcon, Card, Body$1 as CardBody, Footer$2 as CardFooter, Header$1 as CardHeader, Root$2 as CardRoot, CartIcon, CategoryAIcon, CategoryAMinusIcon, CategoryAOneIcon, Center, ChartIcon, ChatBubbleIcon, CheckShieldIcon, Checkbox, CheckboxGroup, CheckmarkCircleColorIcon, CheckmarkCircleIcon, CheckmarkIcon, ChevronDownLargeIcon, ChevronDownSmallIcon, ChevronLeftLargeIcon, ChevronLeftSmallIcon, ChevronRightLargeIcon, ChevronRightSmallIcon, ChevronRightTinyIcon, ChevronUpLargeIcon, ChevronUpSmallIcon, ChfCurrencyIcon, Chip, CloseIcon, CollapseIcon, CompareIcon, ConsumptionIcon, CopyIcon, Count, CoupeIcon, CreditCardIcon, CreditIcon, DatePicker, DaylightIcon, DeleteIcon, DevOverlay, Dialog, DigitalContractIcon, DiscreteSlider, DocumentCheckIcon, DocumentIcon, DoubleChevronDownIcon, DoubleChevronUpIcon, DoubleLineIcon, DownloadIcon, DragIcon, Drawer, DriveSystemIcon, DriveSystemLargeIcon, DriveTypeIcon, EnergyLabel, EquipmentIcon, ErrorIcon, ErrorPage, ExchangeIcon, ExpandIcon, EyeCrossedIcon, EyeIcon, FacebookIcon, FlagIcon, FlameIcon, FlashIcon, Flex, Footer$1 as Footer, FormControlSection, ForwardIcon, FullHeight, GalleryHeader, GarageIcon, GasStationIcon, GlobeIcon, GoogleIcon, Grid, GridItem, H1, H2, H3, H4, H5, H6, HamburgerMenuIcon, HeartIcon, HighlightedText, HistoryClockIcon, HouseIcon, ImageIcon, InfinityCircleIcon, InfoIcon, InformationBubbleIcon, InformationIcon, Input, InstagramIcon, InteriorIcon, LabelIcon, LayoutWithVehicleReference, Link, LinkedinIcon, List, ListIcon, Item as ListItem, Root$1 as ListRoot, LocationPinIcon, LockIcon, LogoutIcon, MagnifierIcon, MagnifierLargeIcon, MarkedText, Menu, MessageIcon, MiniVanIcon, MinusIcon, MissingImage, MissingImageIcon, MobileOnlyAccordion, MotoScout24AppLogo, MotoScout24Icon, MotorcycleIcon, NoPhotoIcon, NotAvailableIcon, NotAvailableSquareIcon, OptimizerIcon, OverflowVerticalIcon, PageLayout, Pagination, PartialClockIcon, PenIcon, PickUpIcon, PlusCircleIcon, PlusIcon, PrintIcon, QualitySealIcon, RangeFilterInput, RangeIcon, Rating, RoadIcon, RocketIcon, RotateIcon, SafeNumberIcon, SaveSearchIcon, ScreenIcon, Section, SedanIcon, Select, Separator, ShareIcon, SimpleGrid, SimpleHeader, SingleColumnCenteredLayout, SmallCarIcon, SortIcon, SpeakerIcon, Stack, StarCircleIcon, StarIcon, SteeringWheelIcon, SuvIcon, SwissFlagIcon, Switch, Table, Body as TableBody, Caption as TableCaption, Cell as TableCell, Column as TableColumn, ColumnGroup as TableColumnGroup, ColumnHeader as TableColumnHeader, Footer as TableFooter, Header as TableHeader, Root as TableRoot, Row as TableRow, ScrollArea as TableScrollArea, Text, ThemeProvider, ThreeSixtyIcon, ThumbsDownIcon, ThumbsUpIcon, TiltedRectangleIcon, TimeIcon, TooltipIcon, TopListingBadge, TopListingIcon, TopVehicleSharedBadge, TrailerIcon, TransmissionIcon, TrashIcon, TriangleIcon, TruckIcon, TwitterIcon, TwoColumnsLayout, UtilityVehicleIcon, VanIcon, VehiclePowerIcon, VehicleReference, VehicleTypesMotorcycleIcon, VehicleTypesMotorcycleStarIcon, VideoCameraIcon, VideoIcon, ViewCarIcon, ViewMotorcycleIcon, WagonIcon, WarningIcon, WarrantyIcon, WhatsAppIcon, WindowsIcon, YoutubeIcon, autoScout24Config, _default as autoScout24System, breakpoints, convertRemEmToPx, logger, motoScout24Config, _default$1 as motoScout24System, repeatArea, useDebouncedOnChange, useMediaQuery, useToken };
2576
- export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, DiscreteSliderMark, DiscreteSliderProps, EnergyLabelProps, ErrorPageProps, FlexProps, BaseProps as FormControlSectionProps, GalleryHeaderProps, HeadingProps, HighlightedTextProps, InputProps, LinkProps, MarkedTextProps, MenuProps, MissingImageProps, MobileOnlyAccordionProps, Option, PaginationProps, PickedNumberInputProps, Props$2 as Props, RangeFilterInputField, RatingProps, SectionProps, SelectProps, SimpleHeaderProps, StackProps, SwitchProps, ThemeProviderProps, UnifiedButtonProps, VehicleReferenceProps };
2580
+ export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, DiscreteSliderMark, DiscreteSliderProps, DrawerComponentProps, EnergyLabelProps, ErrorPageProps, FlexProps, BaseProps as FormControlSectionProps, GalleryHeaderProps, HeadingProps, HighlightedTextProps, InputProps, LinkProps, MarkedTextProps, MenuProps, MissingImageProps, MobileOnlyAccordionProps, Option, PaginationProps, PickedNumberInputProps, Props$2 as Props, RangeFilterInputField, RatingProps, SectionProps, SelectProps, SimpleHeaderProps, StackProps, SwitchProps, ThemeProviderProps, UnifiedButtonProps, VehicleReferenceProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smg-automotive/components",
3
- "version": "25.11.0-ST-1552-migrate-drawer.1",
3
+ "version": "25.11.0-ST-1552-migrate-drawer.2",
4
4
  "description": "SMG Automotive components library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",