@smg-automotive/components 25.11.0-DM-5041-link-overlay.1 → 25.11.0-DM-5041-link-overlay.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.
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/radio/index.d.ts +1 -1
- package/dist/cjs/components/radio/index.d.ts.map +1 -1
- package/dist/cjs/components/timePicker/index.d.ts +17 -0
- package/dist/cjs/components/timePicker/index.d.ts.map +1 -0
- package/dist/cjs/hooks/index.d.ts +1 -0
- package/dist/cjs/hooks/index.d.ts.map +1 -1
- package/dist/cjs/hooks/useToast/index.d.ts +2 -1
- package/dist/cjs/hooks/useToast/index.d.ts.map +1 -1
- package/dist/cjs/index.js +167 -39
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/alert/Link.js +13 -0
- package/dist/esm/components/alert/Link.js.map +1 -0
- package/dist/esm/components/alert/index.js +27 -0
- package/dist/esm/components/alert/index.js.map +1 -0
- package/dist/esm/components/breadcrumbs/Item.js +10 -0
- package/dist/esm/components/breadcrumbs/Item.js.map +1 -0
- package/dist/esm/components/closeButton/index.js +12 -0
- package/dist/esm/components/closeButton/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +11 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/list/SearchableList.js +2 -0
- package/dist/esm/components/list/SearchableList.js.map +1 -1
- package/dist/esm/components/radio/index.d.ts +1 -1
- package/dist/esm/components/radio/index.d.ts.map +1 -1
- package/dist/esm/components/radio/index.js +29 -0
- package/dist/esm/components/radio/index.js.map +1 -0
- package/dist/esm/components/skeleton/index.js +7 -0
- package/dist/esm/components/skeleton/index.js.map +1 -0
- package/dist/esm/components/textarea/index.js +12 -0
- package/dist/esm/components/textarea/index.js.map +1 -0
- package/dist/esm/components/timePicker/index.d.ts +17 -0
- package/dist/esm/components/timePicker/index.d.ts.map +1 -0
- package/dist/esm/components/timePicker/index.js +15 -0
- package/dist/esm/components/timePicker/index.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +1 -0
- package/dist/esm/hooks/index.d.ts.map +1 -1
- package/dist/esm/hooks/useToast/Toast.js +11 -0
- package/dist/esm/hooks/useToast/Toast.js.map +1 -0
- package/dist/esm/hooks/useToast/TopRightToast.js +9 -0
- package/dist/esm/hooks/useToast/TopRightToast.js.map +1 -0
- package/dist/esm/hooks/useToast/TopToaster.js +9 -0
- package/dist/esm/hooks/useToast/TopToaster.js.map +1 -0
- package/dist/esm/hooks/useToast/index.d.ts +2 -1
- package/dist/esm/hooks/useToast/index.d.ts.map +1 -1
- package/dist/esm/hooks/useToast/index.js +33 -0
- package/dist/esm/hooks/useToast/index.js.map +1 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +220 -10
- package/package.json +1 -1
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from './accordion';
|
|
2
|
+
export * from './accordion/AccordionPanel';
|
|
3
|
+
export * from './accordion/AccordionItem';
|
|
4
|
+
export * from './accordion/AccordionButton';
|
|
5
|
+
export * from './alert';
|
|
2
6
|
export * from './articleTeaser';
|
|
3
7
|
export * from './aspectRatio';
|
|
4
8
|
export * from './avatar';
|
|
5
9
|
export * from './badge';
|
|
6
10
|
export * from './box';
|
|
7
11
|
export * from './breadcrumbs';
|
|
12
|
+
export * from './breadcrumbs/Item';
|
|
8
13
|
export * from './button';
|
|
9
14
|
export * from './card';
|
|
10
15
|
export * from './carousel';
|
|
@@ -44,6 +49,7 @@ export * from './pagination';
|
|
|
44
49
|
export * from './rangeFilterInput';
|
|
45
50
|
export * from './rangeSlider';
|
|
46
51
|
export * from './rating';
|
|
52
|
+
export * from './radio';
|
|
47
53
|
export * from './section';
|
|
48
54
|
export * from './select';
|
|
49
55
|
export * from './separator';
|
|
@@ -57,8 +63,13 @@ export * from './tenantSelection';
|
|
|
57
63
|
export * from './text';
|
|
58
64
|
export * from './text/HighlightedText';
|
|
59
65
|
export * from './text/marked';
|
|
66
|
+
export * from './textarea';
|
|
60
67
|
export * from './themeProvider';
|
|
68
|
+
export * from './timePicker';
|
|
69
|
+
export * from './tooltip';
|
|
61
70
|
export * from './topListingBadge';
|
|
62
71
|
export * from './topVehicleSharedBadge';
|
|
63
72
|
export * from './vehicleReference';
|
|
73
|
+
export * from './skeleton';
|
|
74
|
+
export * from './spinner';
|
|
64
75
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;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AAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,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
|
|
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,
|
|
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,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -3,4 +3,5 @@ export { default as useDisclosure } from './useDisclosure';
|
|
|
3
3
|
export { default as useDebouncedOnChange } from './useDebouncedOnChange';
|
|
4
4
|
export { default as useBreakpointValue } from './useBreakpointValue';
|
|
5
5
|
export { default as useToken } from './useToken';
|
|
6
|
+
export { default as useToast } from './useToast';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -3,7 +3,8 @@ export type ToastOptions = {
|
|
|
3
3
|
position?: 'top' | 'top-right';
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
} & SharedProps;
|
|
6
|
-
|
|
6
|
+
declare const useToast: () => (options: ToastOptions) => {
|
|
7
7
|
closeToast: () => void;
|
|
8
8
|
};
|
|
9
|
+
export default useToast;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useToast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMnD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,WAAW,CAAC;AAOhB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useToast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMnD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,WAAW,CAAC;AAOhB,QAAA,MAAM,QAAQ,SACJ,SAAS,YAAY;;CAgC9B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3759,6 +3759,62 @@ var useToken = function (scale, token, fallback) {
|
|
|
3759
3759
|
return value;
|
|
3760
3760
|
};
|
|
3761
3761
|
|
|
3762
|
+
var CloseButton = function (_a) {
|
|
3763
|
+
var _b = _a.disabled, disabled = _b === void 0 ? false : _b, onClick = _a.onClick;
|
|
3764
|
+
var recipe = react$1.useRecipe({ key: 'closeButton' });
|
|
3765
|
+
var styles = recipe();
|
|
3766
|
+
return (React.createElement(react$1.CloseButton, { css: styles, disabled: disabled, onClick: onClick }));
|
|
3767
|
+
};
|
|
3768
|
+
|
|
3769
|
+
var Link$1 = function (_a) {
|
|
3770
|
+
var isExternal = _a.isExternal, target = _a.target, rel = _a.rel, props = __rest(_a, ["isExternal", "target", "rel"]);
|
|
3771
|
+
return (React.createElement(react$1.Link, __assign({ target: target || (isExternal ? '_blank' : undefined), rel: rel || (isExternal ? 'noopener noreferrer' : undefined) }, props)));
|
|
3772
|
+
};
|
|
3773
|
+
|
|
3774
|
+
var AlertLink = function (_a) {
|
|
3775
|
+
var text = _a.text, props = __rest(_a, ["text"]);
|
|
3776
|
+
var linkProps = (props === null || props === void 0 ? void 0 : props.as) === 'button'
|
|
3777
|
+
? __assign(__assign({}, props), { textAlign: 'left' }) : __assign(__assign({}, props), { as: (props === null || props === void 0 ? void 0 : props.as) === 'link' ? 'a' : props === null || props === void 0 ? void 0 : props.as, href: props === null || props === void 0 ? void 0 : props.url });
|
|
3778
|
+
return (React.createElement(Link$1, __assign({}, linkProps, { display: "inline-block" }), text));
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
var toastConfig = {
|
|
3782
|
+
pauseOnPageIdle: true,
|
|
3783
|
+
max: 5,
|
|
3784
|
+
};
|
|
3785
|
+
|
|
3786
|
+
var topToaster = react$1.createToaster(__assign({ placement: 'top' }, toastConfig));
|
|
3787
|
+
|
|
3788
|
+
var topRightToaster = react$1.createToaster(__assign({ placement: 'top-end' }, toastConfig));
|
|
3789
|
+
|
|
3790
|
+
var toasterMap = {
|
|
3791
|
+
top: topToaster,
|
|
3792
|
+
'top-right': topRightToaster,
|
|
3793
|
+
};
|
|
3794
|
+
var useToast = function () {
|
|
3795
|
+
return function (options) {
|
|
3796
|
+
var _a = options.position, position = _a === void 0 ? 'top' : _a, icon = options.icon, title = options.title, description = options.description, link = options.link, type = options.type, onClose = options.onClose;
|
|
3797
|
+
var toasterInstance = toasterMap[position];
|
|
3798
|
+
var toasterId = crypto.randomUUID();
|
|
3799
|
+
toasterInstance.create({
|
|
3800
|
+
id: toasterId,
|
|
3801
|
+
title: title,
|
|
3802
|
+
description: description,
|
|
3803
|
+
closable: Boolean(onClose),
|
|
3804
|
+
meta: {
|
|
3805
|
+
type: type,
|
|
3806
|
+
link: link,
|
|
3807
|
+
icon: icon,
|
|
3808
|
+
onClose: function () {
|
|
3809
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
3810
|
+
toasterInstance.dismiss(toasterId);
|
|
3811
|
+
},
|
|
3812
|
+
},
|
|
3813
|
+
});
|
|
3814
|
+
return { closeToast: function () { return toasterInstance.dismiss(toasterId); } };
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
|
|
3762
3818
|
var Accordion = function (props) {
|
|
3763
3819
|
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
3764
3820
|
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
@@ -3772,6 +3828,59 @@ var Accordion = function (props) {
|
|
|
3772
3828
|
})));
|
|
3773
3829
|
};
|
|
3774
3830
|
|
|
3831
|
+
var AccordionPanel = function (props) {
|
|
3832
|
+
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
3833
|
+
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
3834
|
+
var styles = recipe(__assign({}, recipeProps));
|
|
3835
|
+
var children = restProps.children, pb = restProps.pb, rest = __rest(restProps, ["children", "pb"]);
|
|
3836
|
+
return (React.createElement(react$1.Accordion.ItemContent, { css: styles.content },
|
|
3837
|
+
React.createElement(react$1.Accordion.ItemBody, __assign({}, rest, { css: __assign(__assign({}, styles.body), (pb !== undefined && { pb: pb })) }), children)));
|
|
3838
|
+
};
|
|
3839
|
+
|
|
3840
|
+
var AccordionItem = function (props) {
|
|
3841
|
+
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
3842
|
+
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
3843
|
+
var styles = recipe(__assign({}, recipeProps));
|
|
3844
|
+
var children = restProps.children, rest = __rest(restProps, ["children"]);
|
|
3845
|
+
return (React.createElement(react$1.Accordion.Item, __assign({}, rest, { css: styles.item }), React.Children.map(children, function (child) {
|
|
3846
|
+
return React.isValidElement(child)
|
|
3847
|
+
? React.cloneElement(child, {
|
|
3848
|
+
variant: recipeProps.variant,
|
|
3849
|
+
})
|
|
3850
|
+
: child;
|
|
3851
|
+
})));
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3854
|
+
var AccordionButton = function (props) {
|
|
3855
|
+
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
3856
|
+
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
3857
|
+
var styles = recipe(__assign({}, recipeProps));
|
|
3858
|
+
var children = restProps.children, leftIcon = restProps.leftIcon, rest = __rest(restProps, ["children", "leftIcon"]);
|
|
3859
|
+
return (React.createElement(react$1.Accordion.ItemTrigger, __assign({}, rest, { css: styles.button }),
|
|
3860
|
+
leftIcon ? React.createElement(react$1.Box, { mr: "sm" }, leftIcon) : null,
|
|
3861
|
+
React.createElement(react$1.Box, { as: "span", flex: "1", textAlign: "left" }, children),
|
|
3862
|
+
React.createElement(react$1.Accordion.ItemIndicator, { css: styles.indicator })));
|
|
3863
|
+
};
|
|
3864
|
+
|
|
3865
|
+
var Alert = function (props) {
|
|
3866
|
+
var recipe = react$1.useSlotRecipe({ key: 'alert' });
|
|
3867
|
+
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
3868
|
+
var description = restProps.description, title = restProps.title, link = restProps.link, icon = restProps.icon, type = restProps.type, dismissible = restProps.dismissible, onDismiss = restProps.onDismiss;
|
|
3869
|
+
var styles = recipe(__assign({}, recipeProps));
|
|
3870
|
+
var _b = react$1.useDisclosure({ defaultOpen: true }), open = _b.open, onClose = _b.onClose;
|
|
3871
|
+
return open || !dismissible ? (React.createElement(react$1.Alert.Root, { css: styles.root, status: type },
|
|
3872
|
+
React.createElement(react$1.Alert.Indicator, { css: styles.indicator }, icon),
|
|
3873
|
+
React.createElement(react$1.Alert.Content, null,
|
|
3874
|
+
title ? (React.createElement(react$1.Alert.Title, { css: styles.title }, title)) : null,
|
|
3875
|
+
React.createElement(react$1.Alert.Description, { css: styles.description }, description),
|
|
3876
|
+
link ? React.createElement(AlertLink, __assign({}, link)) : null),
|
|
3877
|
+
dismissible ? (React.createElement(react$1.Box, { ml: "auto", position: "relative" },
|
|
3878
|
+
React.createElement(CloseButton, { onClick: function () {
|
|
3879
|
+
onClose();
|
|
3880
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
3881
|
+
} }))) : null)) : null;
|
|
3882
|
+
};
|
|
3883
|
+
|
|
3775
3884
|
var Stack = function (_a) {
|
|
3776
3885
|
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
3777
3886
|
return (React.createElement(react$1.Stack, __assign({}, rest), children));
|
|
@@ -5813,6 +5922,11 @@ var Breadcrumbs = function (_a) {
|
|
|
5813
5922
|
}))));
|
|
5814
5923
|
};
|
|
5815
5924
|
|
|
5925
|
+
var BreadcrumbsItem = function (_a) {
|
|
5926
|
+
var children = _a.children;
|
|
5927
|
+
return React.createElement(react$1.Breadcrumb.Item, null, children);
|
|
5928
|
+
};
|
|
5929
|
+
|
|
5816
5930
|
var buttonRecipe = react$1.defineRecipe({
|
|
5817
5931
|
className: 'chakra-button',
|
|
5818
5932
|
base: {
|
|
@@ -7585,11 +7699,6 @@ var FullHeight = function (_a) {
|
|
|
7585
7699
|
return (React.createElement(react$1.Box, { minHeight: "screen-height", height: "screen-height" }, children));
|
|
7586
7700
|
};
|
|
7587
7701
|
|
|
7588
|
-
var Link$1 = function (_a) {
|
|
7589
|
-
var isExternal = _a.isExternal, target = _a.target, rel = _a.rel, props = __rest(_a, ["isExternal", "target", "rel"]);
|
|
7590
|
-
return (React.createElement(react$1.Link, __assign({ target: target || (isExternal ? '_blank' : undefined), rel: rel || (isExternal ? 'noopener noreferrer' : undefined) }, props)));
|
|
7591
|
-
};
|
|
7592
|
-
|
|
7593
7702
|
var GalleryHeaderContent = function (_a) {
|
|
7594
7703
|
var currentSlide = _a.currentSlide, slidesCount = _a.slidesCount, onClose = _a.onClose, children = _a.children;
|
|
7595
7704
|
var t = useI18n().t;
|
|
@@ -8049,15 +8158,6 @@ var chunkArray = function (_a) {
|
|
|
8049
8158
|
return chunks;
|
|
8050
8159
|
};
|
|
8051
8160
|
|
|
8052
|
-
var AccordionPanel = function (props) {
|
|
8053
|
-
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
8054
|
-
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
8055
|
-
var styles = recipe(__assign({}, recipeProps));
|
|
8056
|
-
var children = restProps.children, pb = restProps.pb, rest = __rest(restProps, ["children", "pb"]);
|
|
8057
|
-
return (React.createElement(react$1.Accordion.ItemContent, { css: styles.content },
|
|
8058
|
-
React.createElement(react$1.Accordion.ItemBody, __assign({}, rest, { css: __assign(__assign({}, styles.body), (pb !== undefined && { pb: pb })) }), children)));
|
|
8059
|
-
};
|
|
8060
|
-
|
|
8061
8161
|
var MobileOnlyAccordionPanel = function (props) {
|
|
8062
8162
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
8063
8163
|
return (React.createElement(React.Fragment, null,
|
|
@@ -8066,37 +8166,12 @@ var MobileOnlyAccordionPanel = function (props) {
|
|
|
8066
8166
|
React.createElement(AccordionPanel, __assign({}, rest), children))));
|
|
8067
8167
|
};
|
|
8068
8168
|
|
|
8069
|
-
var AccordionItem = function (props) {
|
|
8070
|
-
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
8071
|
-
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
8072
|
-
var styles = recipe(__assign({}, recipeProps));
|
|
8073
|
-
var children = restProps.children, rest = __rest(restProps, ["children"]);
|
|
8074
|
-
return (React.createElement(react$1.Accordion.Item, __assign({}, rest, { css: styles.item }), React.Children.map(children, function (child) {
|
|
8075
|
-
return React.isValidElement(child)
|
|
8076
|
-
? React.cloneElement(child, {
|
|
8077
|
-
variant: recipeProps.variant,
|
|
8078
|
-
})
|
|
8079
|
-
: child;
|
|
8080
|
-
})));
|
|
8081
|
-
};
|
|
8082
|
-
|
|
8083
8169
|
var MobileOnlyAccordionItem = function (props) {
|
|
8084
8170
|
var children = props.children, style = props.style, rest = __rest(props, ["children", "style"]);
|
|
8085
8171
|
var isAboveMd = useMediaQuery({ above: 'md' });
|
|
8086
8172
|
return (React.createElement(AccordionItem, __assign({ style: isAboveMd ? { border: 'none' } : style }, rest), children));
|
|
8087
8173
|
};
|
|
8088
8174
|
|
|
8089
|
-
var AccordionButton = function (props) {
|
|
8090
|
-
var recipe = react$1.useSlotRecipe({ key: 'accordion' });
|
|
8091
|
-
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
8092
|
-
var styles = recipe(__assign({}, recipeProps));
|
|
8093
|
-
var children = restProps.children, leftIcon = restProps.leftIcon, rest = __rest(restProps, ["children", "leftIcon"]);
|
|
8094
|
-
return (React.createElement(react$1.Accordion.ItemTrigger, __assign({}, rest, { css: styles.button }),
|
|
8095
|
-
leftIcon ? React.createElement(react$1.Box, { mr: "sm" }, leftIcon) : null,
|
|
8096
|
-
React.createElement(react$1.Box, { as: "span", flex: "1", textAlign: "left" }, children),
|
|
8097
|
-
React.createElement(react$1.Accordion.ItemIndicator, { css: styles.indicator })));
|
|
8098
|
-
};
|
|
8099
|
-
|
|
8100
8175
|
var MobileOnlyAccordionButton = function (props) {
|
|
8101
8176
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
8102
8177
|
return (React.createElement(React.Fragment, null,
|
|
@@ -11306,6 +11381,29 @@ var Rating = function (_a) {
|
|
|
11306
11381
|
} }) }));
|
|
11307
11382
|
};
|
|
11308
11383
|
|
|
11384
|
+
var Radio = React.forwardRef(function (props, ref) {
|
|
11385
|
+
var recipe = react$1.useSlotRecipe({ key: 'radio' });
|
|
11386
|
+
var _a = recipe.splitVariantProps(props), recipeProps = _a[0], restProps = _a[1];
|
|
11387
|
+
var styles = recipe(recipeProps);
|
|
11388
|
+
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"]);
|
|
11389
|
+
var isChecked = !!checked;
|
|
11390
|
+
return (React.createElement(react$1.RadioGroup.Root, __assign({ name: name, value: isChecked ? value : undefined, onValueChange: function () {
|
|
11391
|
+
if (!onChange)
|
|
11392
|
+
return;
|
|
11393
|
+
var target = {
|
|
11394
|
+
value: value,
|
|
11395
|
+
checked: !isChecked,
|
|
11396
|
+
name: name,
|
|
11397
|
+
};
|
|
11398
|
+
onChange({ target: target });
|
|
11399
|
+
}, css: styles.root }, rootDomProps),
|
|
11400
|
+
React.createElement(react$1.RadioGroup.Item, { value: value, disabled: disabled, invalid: invalid, css: styles.item },
|
|
11401
|
+
React.createElement(react$1.RadioGroup.ItemControl, { css: styles.control },
|
|
11402
|
+
React.createElement(react$1.RadioGroup.ItemIndicator, { css: styles.indicator })),
|
|
11403
|
+
React.createElement(react$1.RadioGroup.ItemText, { css: styles.label }, label),
|
|
11404
|
+
React.createElement(react$1.RadioGroup.ItemHiddenInput, { ref: ref }))));
|
|
11405
|
+
});
|
|
11406
|
+
|
|
11309
11407
|
var Section = function (_a) {
|
|
11310
11408
|
var _b = _a.maxImgW, maxImgW = _b === void 0 ? '2xl' : _b, props = __rest(_a, ["maxImgW"]);
|
|
11311
11409
|
var recipe = react$1.useSlotRecipe({ key: 'section' });
|
|
@@ -11540,6 +11638,12 @@ var MarkedText = function (_a) {
|
|
|
11540
11638
|
React.createElement(react$1.Box, { css: styles.text }, children)));
|
|
11541
11639
|
};
|
|
11542
11640
|
|
|
11641
|
+
var Textarea = React.forwardRef(function (_a, ref) {
|
|
11642
|
+
var props = __rest(_a, []);
|
|
11643
|
+
return React.createElement(react$1.Textarea, __assign({}, props, { ref: ref }));
|
|
11644
|
+
});
|
|
11645
|
+
Textarea.displayName = 'Textarea';
|
|
11646
|
+
|
|
11543
11647
|
var _a$1;
|
|
11544
11648
|
var themes = (_a$1 = {},
|
|
11545
11649
|
_a$1[Brand.AutoScout24] = autoScout24System,
|
|
@@ -11550,6 +11654,15 @@ var ThemeProvider = function (_a) {
|
|
|
11550
11654
|
return React.createElement(react$1.ChakraProvider, { value: themes[theme] }, children);
|
|
11551
11655
|
};
|
|
11552
11656
|
|
|
11657
|
+
var TimePicker = React.forwardRef(function (props, ref) {
|
|
11658
|
+
var recipe = react$1.useSlotRecipe({ key: 'input' });
|
|
11659
|
+
var recipeProps = recipe.splitVariantProps(props)[0];
|
|
11660
|
+
var styles = recipe(recipeProps);
|
|
11661
|
+
return (React.createElement(react$1.Field.Root, { invalid: props.invalid },
|
|
11662
|
+
React.createElement(react$1.Input, __assign({}, props, { css: __assign(__assign({}, styles.field), { display: 'block', textAlign: 'start' }), type: "time", ref: ref }))));
|
|
11663
|
+
});
|
|
11664
|
+
TimePicker.displayName = 'TimePicker';
|
|
11665
|
+
|
|
11553
11666
|
var TopListingBadge = function (_a) {
|
|
11554
11667
|
var children = _a.children, aspectRatio = _a.aspectRatio;
|
|
11555
11668
|
return (React.createElement(react$1.Grid, null,
|
|
@@ -11570,6 +11683,9 @@ var TopVehicleSharedBadge = function (_a) {
|
|
|
11570
11683
|
aspectRatio ? (React.createElement(AspectRatio, { ratio: aspectRatio }, children)) : (children)));
|
|
11571
11684
|
};
|
|
11572
11685
|
|
|
11686
|
+
var Skeleton = react$1.Skeleton;
|
|
11687
|
+
Skeleton.displayName = 'Skeleton';
|
|
11688
|
+
|
|
11573
11689
|
Object.defineProperty(exports, "Box", {
|
|
11574
11690
|
enumerable: true,
|
|
11575
11691
|
get: function () { return react$1.Box; }
|
|
@@ -11603,8 +11719,12 @@ Object.defineProperty(exports, "keyframes", {
|
|
|
11603
11719
|
get: function () { return react.keyframes; }
|
|
11604
11720
|
});
|
|
11605
11721
|
exports.Accordion = Accordion;
|
|
11722
|
+
exports.AccordionButton = AccordionButton;
|
|
11723
|
+
exports.AccordionItem = AccordionItem;
|
|
11724
|
+
exports.AccordionPanel = AccordionPanel;
|
|
11606
11725
|
exports.AddPhotoIcon = AddPhotoIcon;
|
|
11607
11726
|
exports.AdvancedSearchIcon = AdvancedSearchIcon;
|
|
11727
|
+
exports.Alert = Alert;
|
|
11608
11728
|
exports.AndroidIcon = AndroidIcon;
|
|
11609
11729
|
exports.AppleIcon = AppleIcon;
|
|
11610
11730
|
exports.ArrowCircleIcon = ArrowCircleIcon;
|
|
@@ -11627,6 +11747,7 @@ exports.BankNotesIcon = BankNotesIcon;
|
|
|
11627
11747
|
exports.BatteryIcon = BatteryIcon;
|
|
11628
11748
|
exports.BookmarkIcon = BookmarkIcon;
|
|
11629
11749
|
exports.Breadcrumbs = Breadcrumbs;
|
|
11750
|
+
exports.BreadcrumbsItem = BreadcrumbsItem;
|
|
11630
11751
|
exports.BulbIcon = BulbIcon;
|
|
11631
11752
|
exports.Button = Button;
|
|
11632
11753
|
exports.CabrioletIcon = CabrioletIcon;
|
|
@@ -11780,6 +11901,7 @@ exports.PlusCircleIcon = PlusCircleIcon;
|
|
|
11780
11901
|
exports.PlusIcon = PlusIcon;
|
|
11781
11902
|
exports.PrintIcon = PrintIcon;
|
|
11782
11903
|
exports.QualitySealIcon = QualitySealIcon;
|
|
11904
|
+
exports.Radio = Radio;
|
|
11783
11905
|
exports.RangeFilterInput = RangeFilterInput;
|
|
11784
11906
|
exports.RangeIcon = RangeIcon;
|
|
11785
11907
|
exports.RangeSlider = RangeSlider;
|
|
@@ -11799,9 +11921,11 @@ exports.ShareIcon = ShareIcon;
|
|
|
11799
11921
|
exports.SimpleGrid = SimpleGrid;
|
|
11800
11922
|
exports.SimpleHeader = SimpleHeader;
|
|
11801
11923
|
exports.SingleColumnCenteredLayout = SingleColumnCenteredLayout;
|
|
11924
|
+
exports.Skeleton = Skeleton;
|
|
11802
11925
|
exports.SmallCarIcon = SmallCarIcon;
|
|
11803
11926
|
exports.SortIcon = SortIcon;
|
|
11804
11927
|
exports.SpeakerIcon = SpeakerIcon;
|
|
11928
|
+
exports.Spinner = Spinner;
|
|
11805
11929
|
exports.Stack = Stack;
|
|
11806
11930
|
exports.StarCircleIcon = StarCircleIcon;
|
|
11807
11931
|
exports.StarIcon = StarIcon;
|
|
@@ -11828,12 +11952,15 @@ exports.TableScrollArea = ScrollArea;
|
|
|
11828
11952
|
exports.Tabs = Tabs;
|
|
11829
11953
|
exports.TenantSelection = TenantSelection;
|
|
11830
11954
|
exports.Text = Text;
|
|
11955
|
+
exports.Textarea = Textarea;
|
|
11831
11956
|
exports.ThemeProvider = ThemeProvider;
|
|
11832
11957
|
exports.ThreeSixtyIcon = ThreeSixtyIcon;
|
|
11833
11958
|
exports.ThumbsDownIcon = ThumbsDownIcon;
|
|
11834
11959
|
exports.ThumbsUpIcon = ThumbsUpIcon;
|
|
11835
11960
|
exports.TiltedRectangleIcon = TiltedRectangleIcon;
|
|
11836
11961
|
exports.TimeIcon = TimeIcon;
|
|
11962
|
+
exports.TimePicker = TimePicker;
|
|
11963
|
+
exports.Tooltip = Tooltip;
|
|
11837
11964
|
exports.TooltipIcon = TooltipIcon;
|
|
11838
11965
|
exports.TopListingBadge = TopListingBadge;
|
|
11839
11966
|
exports.TopListingIcon = TopListingIcon;
|
|
@@ -11871,5 +11998,6 @@ exports.motoScout24System = motoScout24System;
|
|
|
11871
11998
|
exports.repeatArea = repeatArea;
|
|
11872
11999
|
exports.useDebouncedOnChange = useDebouncedOnChange;
|
|
11873
12000
|
exports.useMediaQuery = useMediaQuery;
|
|
12001
|
+
exports.useToast = useToast;
|
|
11874
12002
|
exports.useToken = useToken;
|
|
11875
12003
|
//# sourceMappingURL=index.js.map
|