@smg-automotive/components 25.11.0-dbojovic-vsst-4428-migrate-time-picker.2 → 25.11.0-dbojovic-radio-export-fix.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.
@@ -43,6 +43,7 @@ export * from './pagination';
43
43
  export * from './rangeFilterInput';
44
44
  export * from './rangeSlider';
45
45
  export * from './rating';
46
+ export * from './radio';
46
47
  export * from './section';
47
48
  export * from './select';
48
49
  export * from './separator';
@@ -57,7 +58,6 @@ export * from './text';
57
58
  export * from './text/HighlightedText';
58
59
  export * from './text/marked';
59
60
  export * from './themeProvider';
60
- export * from './timePicker';
61
61
  export * from './topListingBadge';
62
62
  export * from './topVehicleSharedBadge';
63
63
  export * from './vehicleReference';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,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,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { ChangeEvent } from 'react';
2
2
  import { RecipeVariantProps } from '@chakra-ui/react';
3
3
  import { radioRecipe } from 'src/themes/shared/slotRecipes/radio';
4
- export type Props = RecipeVariantProps<typeof radioRecipe> & {
4
+ export type RadioProps = RecipeVariantProps<typeof radioRecipe> & {
5
5
  value: string;
6
6
  label?: string;
7
7
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAc,MAAM,OAAO,CAAC;AACvD,OAAO,EAEL,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,WAAW,CAAC,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,KAAK;;;;WATT,MAAM;YACL,MAAM;WACP,MAAM;cACH,OAAO;eACN,OAAO;cACR,OAAO;eACN,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI;0CAqDzD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAc,MAAM,OAAO,CAAC;AACvD,OAAO,EAEL,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,WAAW,CAAC,GAAG;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,KAAK;;;;WATT,MAAM;YACL,MAAM;WACP,MAAM;cACH,OAAO;eACN,OAAO;cACR,OAAO;eACN,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI;0CAqDzD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
2
+ import React, { forwardRef } from 'react';
3
+ import { useSlotRecipe, RadioGroup } from '@chakra-ui/react';
4
+
5
+ var Radio = forwardRef(function (props, ref) {
6
+ var recipe = useSlotRecipe({ key: 'radio' });
7
+ var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
8
+ var styles = recipe(recipeProps);
9
+ var value = restProps.value, _b = restProps.label, label = _b === void 0 ? 'Radio' : _b, name = restProps.name, _c = restProps.checked, checked = _c === void 0 ? false : _c, _d = restProps.disabled, disabled = _d === void 0 ? false : _d, _e = restProps.invalid, invalid = _e === void 0 ? false : _e, onChange = restProps.onChange, rootDomProps = __rest(restProps, ["value", "label", "name", "checked", "disabled", "invalid", "onChange"]);
10
+ var isChecked = !!checked;
11
+ return (React.createElement(RadioGroup.Root, __assign({ name: name, value: isChecked ? value : undefined, onValueChange: function () {
12
+ if (!onChange)
13
+ return;
14
+ var target = {
15
+ value: value,
16
+ checked: !isChecked,
17
+ name: name,
18
+ };
19
+ onChange({ target: target });
20
+ }, css: styles.root }, rootDomProps),
21
+ React.createElement(RadioGroup.Item, { value: value, disabled: disabled, invalid: invalid, css: styles.item },
22
+ React.createElement(RadioGroup.ItemControl, { css: styles.control },
23
+ React.createElement(RadioGroup.ItemIndicator, { css: styles.indicator })),
24
+ React.createElement(RadioGroup.ItemText, { css: styles.label }, label),
25
+ React.createElement(RadioGroup.ItemHiddenInput, { ref: ref }))));
26
+ });
27
+
28
+ export { Radio };
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/radio/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;IAqBa,KAAK,GAAG,UAAU,CAA+B,UAAC,KAAK,EAAE,GAAG,EAAA;IACvE,IAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAExC,IAAA,IAAA,EAAA,GAA2B,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAzD,WAAW,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,SAAS,QAAmC;AAEhE,IAAA,IAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;IAGhC,IAAA,KAAK,GAQH,SAAS,CAAA,KARN,EACL,EAAA,GAOE,SAAS,CAAA,KAPI,EAAf,KAAK,GAAA,EAAA,KAAA,MAAA,GAAG,OAAO,GAAA,EAAA,EACf,IAAI,GAMF,SAAS,CAAA,IANP,EACJ,EAAA,GAKE,SAAS,CAAA,OALI,EAAf,OAAO,GAAA,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EAAE,MAAM,CAAC,SAAS,EAAA,CAAI,CAC5B;YACzB,KAAA,CAAA,aAAA,CAAC,UAAU,CAAC,QAAQ,EAAA,EAAC,GAAG,EAAE,MAAM,CAAC,KAAK,EAAA,EAAG,KAAK,CAAuB;YACrE,KAAA,CAAA,aAAA,CAAC,UAAU,CAAC,eAAe,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA,CAAI,CACxB,CACF;AAEtB,CAAC;;;;"}
package/dist/esm/index.js CHANGED
@@ -281,6 +281,7 @@ export { Pagination } from './components/pagination/index.js';
281
281
  export { RangeFilterInput } from './components/rangeFilterInput/index.js';
282
282
  export { RangeSlider } from './components/rangeSlider/index.js';
283
283
  export { Rating } from './components/rating/index.js';
284
+ export { Radio } from './components/radio/index.js';
284
285
  export { Section } from './components/section/index.js';
285
286
  export { Select } from './components/select/index.js';
286
287
  export { Separator } from './components/separator/index.js';
@@ -295,7 +296,6 @@ export { Text } from './components/text/index.js';
295
296
  export { HighlightedText } from './components/text/HighlightedText.js';
296
297
  export { MarkedText } from './components/text/marked/index.js';
297
298
  export { ThemeProvider } from './components/themeProvider/index.js';
298
- export { TimePicker } from './components/timePicker/index.js';
299
299
  export { TopListingBadge } from './components/topListingBadge/index.js';
300
300
  export { TopVehicleSharedBadge } from './components/topVehicleSharedBadge/index.js';
301
301
  export { VehicleReference } from './components/vehicleReference/index.js';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ 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, InputProps as InputProps$1, CollapsibleRootProps, CenterProps as CenterProps$1, CheckboxCheckedChangeDetails, Switch as Switch$1, UseDialogProps, DrawerContentProps, DrawerBodyProps, DrawerRootProps, FlexProps as FlexProps$1, HeadingProps as HeadingProps$1, LinkProps as LinkProps$2, List as List$1, ConditionalValue, MenuTriggerProps, MenuContentProps, MenuRootProps, Accordion as Accordion$1, NumberInput, Slider, NativeSelectRootProps, NativeSelectFieldProps, SeparatorProps, SimpleGridProps, StackProps as StackProps$1, TabsTriggerProps, TabsListProps, TabsContentProps, TabsRootProps, Table as Table$1, TextProps } from '@chakra-ui/react';
4
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
- import React__default, { FocusEventHandler, ChangeEventHandler, FC, PropsWithChildren, ReactNode, ReactElement, ElementType, ComponentProps, JSX } from 'react';
6
+ import React__default, { FocusEventHandler, ChangeEventHandler, FC, PropsWithChildren, ReactNode, ReactElement, ElementType, ComponentProps, JSX, ChangeEvent } from 'react';
7
7
  export { PropsWithChildren as FullHeightProps } from 'react';
8
8
  import * as node_modules__chakra_ui_react_dist_types_styled_system_generated_system_gen from 'node_modules/@chakra-ui/react/dist/types/styled-system/generated/system.gen';
9
9
  import * as node_modules__chakra_ui_react_dist_types_styled_system_generated_prop_types_gen from 'node_modules/@chakra-ui/react/dist/types/styled-system/generated/prop-types.gen';
@@ -506,13 +506,13 @@ declare const inputSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "f
506
506
  };
507
507
  }>;
508
508
 
509
- type InputVariantProps$2 = RecipeVariantProps<typeof inputSlotRecipe>;
510
- type DatePickerProps = Pick<InputProps$1, 'onFocus' | 'onBlur' | 'onChange'> & InputVariantProps$2 & {
509
+ type InputVariantProps$1 = RecipeVariantProps<typeof inputSlotRecipe>;
510
+ type DatePickerProps = Pick<InputProps$1, 'onFocus' | 'onBlur' | 'onChange'> & InputVariantProps$1 & {
511
511
  min?: Date;
512
512
  value?: string;
513
513
  invalid?: boolean;
514
514
  };
515
- declare const DatePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onFocus" | "onBlur" | "onChange"> & {
515
+ declare const DatePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onChange" | "onBlur" | "onFocus"> & {
516
516
  variant?: _chakra_ui_react.ConditionalValue<"outline" | undefined>;
517
517
  size?: _chakra_ui_react.ConditionalValue<"md" | "lg" | undefined>;
518
518
  } & {
@@ -2270,8 +2270,8 @@ declare const CollapseIcon: React__default.ForwardRefExoticComponent<_chakra_ui_
2270
2270
 
2271
2271
  declare const ForwardIcon: React__default.ForwardRefExoticComponent<_chakra_ui_react.IconProps & React__default.RefAttributes<SVGSVGElement>>;
2272
2272
 
2273
- type InputVariantProps$1 = RecipeVariantProps<typeof inputSlotRecipe>;
2274
- type SharedProps$1 = InputVariantProps$1 & {
2273
+ type InputVariantProps = RecipeVariantProps<typeof inputSlotRecipe>;
2274
+ type SharedProps$1 = InputVariantProps & {
2275
2275
  placeholder?: string;
2276
2276
  disabled?: boolean;
2277
2277
  onBlur?: FocusEventHandler<HTMLInputElement>;
@@ -2596,6 +2596,71 @@ type RatingProps = RatingVariantProps & {
2596
2596
  };
2597
2597
  declare const Rating: FC<RatingProps>;
2598
2598
 
2599
+ declare const radioRecipe: _chakra_ui_react.SlotRecipeDefinition<"label" | "item" | "indicator" | "root" | "control", {
2600
+ variant: {
2601
+ fontRegular: {
2602
+ root: {};
2603
+ item: {};
2604
+ control: {};
2605
+ indicator: {};
2606
+ label: {
2607
+ fontWeight: "regular";
2608
+ };
2609
+ };
2610
+ fontBold: {
2611
+ root: {};
2612
+ item: {};
2613
+ control: {};
2614
+ indicator: {};
2615
+ label: {
2616
+ fontWeight: "bold";
2617
+ };
2618
+ };
2619
+ };
2620
+ size: {
2621
+ base: {
2622
+ root: {};
2623
+ item: {};
2624
+ control: {};
2625
+ indicator: {};
2626
+ label: {
2627
+ fontSize: "base";
2628
+ };
2629
+ };
2630
+ md: {
2631
+ root: {};
2632
+ item: {};
2633
+ control: {};
2634
+ indicator: {};
2635
+ label: {
2636
+ fontSize: "md";
2637
+ };
2638
+ };
2639
+ };
2640
+ }>;
2641
+
2642
+ type RadioProps = RecipeVariantProps<typeof radioRecipe> & {
2643
+ value: string;
2644
+ label?: string;
2645
+ name?: string;
2646
+ checked?: boolean;
2647
+ disabled?: boolean;
2648
+ invalid?: boolean;
2649
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
2650
+ };
2651
+ declare const Radio: React__default.ForwardRefExoticComponent<{
2652
+ variant?: _chakra_ui_react.ConditionalValue<"fontRegular" | "fontBold" | undefined>;
2653
+ size?: _chakra_ui_react.ConditionalValue<"base" | "md" | undefined>;
2654
+ } & {
2655
+ value: string;
2656
+ label?: string;
2657
+ name?: string;
2658
+ checked?: boolean;
2659
+ disabled?: boolean;
2660
+ invalid?: boolean;
2661
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
2662
+ } & React__default.RefAttributes<HTMLInputElement>>;
2663
+
2599
2664
  declare const sectionRecipe: _chakra_ui_react.SlotRecipeDefinition<"title" | "text" | "root" | "imageContainer" | "textContainer", {
2600
2665
  variant: {
2601
2666
  hero: {
@@ -2849,19 +2914,6 @@ type ThemeProviderProps = {
2849
2914
  };
2850
2915
  declare const ThemeProvider: FC<PropsWithChildren<ThemeProviderProps>>;
2851
2916
 
2852
- type InputVariantProps = RecipeVariantProps<typeof inputSlotRecipe>;
2853
- type TimePickerProps = Pick<InputProps$1, 'onFocus' | 'onBlur' | 'onChange'> & InputVariantProps & {
2854
- value?: string;
2855
- invalid?: boolean;
2856
- };
2857
- declare const TimePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onFocus" | "onBlur" | "onChange"> & {
2858
- variant?: _chakra_ui_react.ConditionalValue<"outline" | undefined>;
2859
- size?: _chakra_ui_react.ConditionalValue<"md" | "lg" | undefined>;
2860
- } & {
2861
- value?: string;
2862
- invalid?: boolean;
2863
- } & React__default.RefAttributes<HTMLInputElement>>;
2864
-
2865
2917
  type Props$1 = {
2866
2918
  aspectRatio?: number;
2867
2919
  };
@@ -2880,5 +2932,5 @@ declare class Logger {
2880
2932
  }
2881
2933
  declare const logger: Logger;
2882
2934
 
2883
- 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, Carousel, 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, Collapse, CollapseIcon, ColorPicker, CompareIcon, ConsumptionIcon, CopyIcon, Count, CoupeIcon, CreditCardIcon, CreditIcon, DatePicker, DaylightIcon, DeleteIcon, DevOverlay, Dialog, DigitalContractIcon, DiscreteSlider, DocumentCheckIcon, DocumentIcon, DoubleChevronDownIcon, DoubleChevronUpIcon, DoubleLineIcon, DownloadIcon, DragIcon, Drawer, DrawerBody, DrawerContent, DrawerOverlay, 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, Navigation, NoPhotoIcon, NotAvailableIcon, NotAvailableSquareIcon, OptimizerIcon, OverflowVerticalIcon, PageLayout, Pagination, PaginationType, PartialClockIcon, PenIcon, PickUpIcon, PlusCircleIcon, PlusIcon, PrintIcon, QualitySealIcon, RangeFilterInput, RangeIcon, RangeSlider, Rating, RoadIcon, RocketIcon, RotateIcon, SafeNumberIcon, SaveSearchIcon, ScreenIcon, SearchableList, Section, SedanIcon, Select, Separator, ShareIcon, SimpleGrid, SimpleHeader, SingleColumnCenteredLayout, SmallCarIcon, SortIcon, SpeakerIcon, Stack, StarCircleIcon, StarIcon, SteeringWheelIcon, SuvIcon, SwissFlagIcon, Switch, Tab, TabList, TabPanel, TabPanels, 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, Tabs, TenantSelection, Text, ThemeProvider, ThreeSixtyIcon, ThumbsDownIcon, ThumbsUpIcon, TiltedRectangleIcon, TimeIcon, TimePicker, 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 };
2884
- export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CarouselProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CollapseProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, DiscreteSliderMark, DiscreteSliderProps, DrawerProps, EnergyLabelProps, FlexProps, BaseProps as FormControlSectionProps, HeadingProps, HighlightedTextProps, InputProps, LinkProps, ListItemWithChildren, MarkedTextProps, MenuProps, MissingImageProps, MobileOnlyAccordionProps, NavigationProps, Option, PaginationProps, PickedNumberInputProps, Props$2 as Props, RangeFilterInputField, RangeSliderProps, RatingProps, SectionProps, SelectProps, SimpleHeaderProps, StackProps, SwitchProps, TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabsProps, TenantSelectionProps, TenantSelectionState, ThemeProviderProps, TimePickerProps, UnifiedButtonProps, VehicleReferenceProps };
2935
+ 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, Carousel, 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, Collapse, CollapseIcon, ColorPicker, CompareIcon, ConsumptionIcon, CopyIcon, Count, CoupeIcon, CreditCardIcon, CreditIcon, DatePicker, DaylightIcon, DeleteIcon, DevOverlay, Dialog, DigitalContractIcon, DiscreteSlider, DocumentCheckIcon, DocumentIcon, DoubleChevronDownIcon, DoubleChevronUpIcon, DoubleLineIcon, DownloadIcon, DragIcon, Drawer, DrawerBody, DrawerContent, DrawerOverlay, 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, Navigation, NoPhotoIcon, NotAvailableIcon, NotAvailableSquareIcon, OptimizerIcon, OverflowVerticalIcon, PageLayout, Pagination, PaginationType, PartialClockIcon, PenIcon, PickUpIcon, PlusCircleIcon, PlusIcon, PrintIcon, QualitySealIcon, Radio, RangeFilterInput, RangeIcon, RangeSlider, Rating, RoadIcon, RocketIcon, RotateIcon, SafeNumberIcon, SaveSearchIcon, ScreenIcon, SearchableList, Section, SedanIcon, Select, Separator, ShareIcon, SimpleGrid, SimpleHeader, SingleColumnCenteredLayout, SmallCarIcon, SortIcon, SpeakerIcon, Stack, StarCircleIcon, StarIcon, SteeringWheelIcon, SuvIcon, SwissFlagIcon, Switch, Tab, TabList, TabPanel, TabPanels, 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, Tabs, TenantSelection, 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 };
2936
+ export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CarouselProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CollapseProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, DiscreteSliderMark, DiscreteSliderProps, DrawerProps, EnergyLabelProps, FlexProps, BaseProps as FormControlSectionProps, HeadingProps, HighlightedTextProps, InputProps, LinkProps, ListItemWithChildren, MarkedTextProps, MenuProps, MissingImageProps, MobileOnlyAccordionProps, NavigationProps, Option, PaginationProps, PickedNumberInputProps, Props$2 as Props, RadioProps, RangeFilterInputField, RangeSliderProps, RatingProps, SectionProps, SelectProps, SimpleHeaderProps, StackProps, SwitchProps, TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabsProps, TenantSelectionProps, TenantSelectionState, ThemeProviderProps, UnifiedButtonProps, VehicleReferenceProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smg-automotive/components",
3
- "version": "25.11.0-dbojovic-vsst-4428-migrate-time-picker.2",
3
+ "version": "25.11.0-dbojovic-radio-export-fix.1",
4
4
  "description": "SMG Automotive components library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { InputProps, RecipeVariantProps } from '@chakra-ui/react';
3
- import { inputSlotRecipe } from 'src/themes/shared/slotRecipes/input';
4
- type InputVariantProps = RecipeVariantProps<typeof inputSlotRecipe>;
5
- export type TimePickerProps = Pick<InputProps, 'onFocus' | 'onBlur' | 'onChange'> & InputVariantProps & {
6
- value?: string;
7
- invalid?: boolean;
8
- };
9
- export declare const TimePicker: React.ForwardRefExoticComponent<Pick<InputProps, "onChange" | "onBlur" | "onFocus"> & {
10
- variant?: import("@chakra-ui/react").ConditionalValue<"outline" | undefined>;
11
- size?: import("@chakra-ui/react").ConditionalValue<"md" | "lg" | undefined>;
12
- } & {
13
- value?: string;
14
- invalid?: boolean;
15
- } & React.RefAttributes<HTMLInputElement>>;
16
- export {};
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/timePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAGL,UAAU,EACV,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,KAAK,iBAAiB,GAAG,kBAAkB,CAAC,OAAO,eAAe,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,UAAU,EACV,SAAS,GAAG,QAAQ,GAAG,UAAU,CAClC,GACC,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,eAAO,MAAM,UAAU;;;;YAJX,MAAM;cACJ,OAAO;0CAwBpB,CAAC"}
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { InputProps, RecipeVariantProps } from '@chakra-ui/react';
3
- import { inputSlotRecipe } from 'src/themes/shared/slotRecipes/input';
4
- type InputVariantProps = RecipeVariantProps<typeof inputSlotRecipe>;
5
- export type TimePickerProps = Pick<InputProps, 'onFocus' | 'onBlur' | 'onChange'> & InputVariantProps & {
6
- value?: string;
7
- invalid?: boolean;
8
- };
9
- export declare const TimePicker: React.ForwardRefExoticComponent<Pick<InputProps, "onChange" | "onBlur" | "onFocus"> & {
10
- variant?: import("@chakra-ui/react").ConditionalValue<"outline" | undefined>;
11
- size?: import("@chakra-ui/react").ConditionalValue<"md" | "lg" | undefined>;
12
- } & {
13
- value?: string;
14
- invalid?: boolean;
15
- } & React.RefAttributes<HTMLInputElement>>;
16
- export {};
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/timePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAGL,UAAU,EACV,kBAAkB,EAEnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,KAAK,iBAAiB,GAAG,kBAAkB,CAAC,OAAO,eAAe,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,UAAU,EACV,SAAS,GAAG,QAAQ,GAAG,UAAU,CAClC,GACC,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,eAAO,MAAM,UAAU;;;;YAJX,MAAM;cACJ,OAAO;0CAwBpB,CAAC"}
@@ -1,15 +0,0 @@
1
- import { __assign } from '../../node_modules/tslib/tslib.es6.js';
2
- import React, { forwardRef } from 'react';
3
- import { useSlotRecipe, Field, Input } from '@chakra-ui/react';
4
-
5
- var TimePicker = forwardRef(function (props, ref) {
6
- var recipe = useSlotRecipe({ key: 'input' });
7
- var recipeProps = recipe.splitVariantProps(props)[0];
8
- var styles = recipe(recipeProps);
9
- return (React.createElement(Field.Root, { invalid: props.invalid },
10
- React.createElement(Input, __assign({}, props, { css: __assign(__assign({}, styles.field), { display: 'block', textAlign: 'start' }), type: "time", ref: ref }))));
11
- });
12
- TimePicker.displayName = 'TimePicker';
13
-
14
- export { TimePicker };
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/timePicker/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;IAsBa,UAAU,GAAG,UAAU,CAClC,UAAC,KAAK,EAAE,GAAG,EAAA;IACT,IAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;IACvC,IAAA,WAAW,GAAI,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA,CAAA,CAAnC;AAClB,IAAA,IAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;IAElC,QACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAI,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAA;AAChC,QAAA,KAAA,CAAA,aAAA,CAAC,KAAK,EAAA,QAAA,CAAA,EAAA,EACA,KAAK,EAAA,EACT,GAAG,EAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EACE,MAAM,CAAC,KAAK,CAAA,EAAA,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,OAAO,EAAA,CAAA,EAEpB,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,GAAG,EAAA,CAAA,CACR,CACS;AAEjB,CAAC;AAEH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}