@smg-automotive/components 25.10.0-gallery-header-v3-migrate.1 → 25.10.0-talamcol-menu.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/components/index.d.ts +1 -1
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/menu/index.d.ts +21 -0
- package/dist/cjs/components/menu/index.d.ts.map +1 -0
- package/dist/cjs/index.js +88 -82
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/themes/shared/index.d.ts +1 -1
- package/dist/cjs/themes/shared/slotRecipes/index.d.ts +1 -1
- package/dist/cjs/themes/shared/slotRecipes/menu.d.ts +2 -0
- package/dist/cjs/themes/shared/slotRecipes/menu.d.ts.map +1 -0
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/menu/index.d.ts +21 -0
- package/dist/esm/components/menu/index.d.ts.map +1 -0
- package/dist/esm/components/{galleryHeader → menu}/index.js +23 -30
- package/dist/esm/components/menu/index.js.map +1 -0
- package/dist/esm/components/themeProvider/index.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/themes/shared/index.d.ts +1 -1
- package/dist/esm/themes/shared/slotRecipes/index.d.ts +1 -1
- package/dist/esm/themes/shared/slotRecipes/index.js +2 -2
- package/dist/esm/themes/shared/slotRecipes/index.js.map +1 -1
- package/dist/esm/themes/shared/slotRecipes/menu.d.ts +2 -0
- package/dist/esm/themes/shared/slotRecipes/menu.d.ts.map +1 -0
- package/dist/esm/themes/shared/slotRecipes/menu.js +64 -0
- package/dist/esm/themes/shared/slotRecipes/menu.js.map +1 -0
- package/dist/index.d.ts +28 -18
- package/package.json +1 -1
- package/dist/cjs/components/galleryHeader/index.d.ts +0 -10
- package/dist/cjs/components/galleryHeader/index.d.ts.map +0 -1
- package/dist/cjs/themes/shared/slotRecipes/galleryHeader.d.ts +0 -2
- package/dist/cjs/themes/shared/slotRecipes/galleryHeader.d.ts.map +0 -1
- package/dist/esm/components/galleryHeader/index.d.ts +0 -10
- package/dist/esm/components/galleryHeader/index.d.ts.map +0 -1
- package/dist/esm/components/galleryHeader/index.js.map +0 -1
- package/dist/esm/themes/shared/slotRecipes/galleryHeader.d.ts +0 -2
- package/dist/esm/themes/shared/slotRecipes/galleryHeader.d.ts.map +0 -1
- package/dist/esm/themes/shared/slotRecipes/galleryHeader.js +0 -54
- package/dist/esm/themes/shared/slotRecipes/galleryHeader.js.map +0 -1
|
@@ -306,7 +306,6 @@ export declare const getSharedConfig: () => {
|
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
}>;
|
|
309
|
-
galleryHeader: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
310
309
|
list: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
|
311
310
|
size: {
|
|
312
311
|
md: {
|
|
@@ -1918,6 +1917,7 @@ export declare const getSharedConfig: () => {
|
|
|
1918
1917
|
};
|
|
1919
1918
|
}>;
|
|
1920
1919
|
pagination: import("@chakra-ui/react").SlotRecipeDefinition<"paginationContainer" | "paginationButton" | "dots", import("@chakra-ui/react").SlotRecipeVariantRecord<"paginationContainer" | "paginationButton" | "dots">>;
|
|
1920
|
+
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "trigger" | "item", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "trigger" | "item">>;
|
|
1921
1921
|
};
|
|
1922
1922
|
tokens: {
|
|
1923
1923
|
zIndex: {
|
|
@@ -107,7 +107,6 @@ export declare const slotRecipes: {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
|
-
galleryHeader: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
111
110
|
list: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
|
112
111
|
size: {
|
|
113
112
|
md: {
|
|
@@ -1719,5 +1718,6 @@ export declare const slotRecipes: {
|
|
|
1719
1718
|
};
|
|
1720
1719
|
}>;
|
|
1721
1720
|
pagination: import("@chakra-ui/react").SlotRecipeDefinition<"paginationContainer" | "paginationButton" | "dots", import("@chakra-ui/react").SlotRecipeVariantRecord<"paginationContainer" | "paginationButton" | "dots">>;
|
|
1721
|
+
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "trigger" | "item", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "trigger" | "item">>;
|
|
1722
1722
|
};
|
|
1723
1723
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/themes/shared/slotRecipes/menu.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,UAAU,qKAQrB,CAAC"}
|
|
@@ -18,7 +18,6 @@ export * from './energyLabel';
|
|
|
18
18
|
export * from './errorPage';
|
|
19
19
|
export * from './flex';
|
|
20
20
|
export * from './fullHeight';
|
|
21
|
-
export * from './galleryHeader';
|
|
22
21
|
export * from './grid';
|
|
23
22
|
export * from './heading';
|
|
24
23
|
export * from './icons';
|
|
@@ -27,6 +26,7 @@ export * from './layout';
|
|
|
27
26
|
export * from './link';
|
|
28
27
|
export * from './list';
|
|
29
28
|
export * from './chip';
|
|
29
|
+
export * from './menu';
|
|
30
30
|
export * from './missingImage';
|
|
31
31
|
export * from './mobileOnlyAccordion';
|
|
32
32
|
export * from './navigation/footer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings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,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, JSX, ReactElement } from 'react';
|
|
2
|
+
import { MenuRootProps, MenuTriggerProps } from '@chakra-ui/react';
|
|
3
|
+
interface MenuItem {
|
|
4
|
+
text: JSX.Element | string;
|
|
5
|
+
value: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface MenuProps {
|
|
9
|
+
title: string | ReactElement;
|
|
10
|
+
items: MenuItem[];
|
|
11
|
+
fontWeightTitle?: MenuTriggerProps['fontWeight'];
|
|
12
|
+
offset?: [number, number];
|
|
13
|
+
menuColor?: MenuTriggerProps['color'];
|
|
14
|
+
showChevron?: boolean;
|
|
15
|
+
icon?: ReactElement;
|
|
16
|
+
iconSpacing?: MenuTriggerProps['gap'];
|
|
17
|
+
placement?: Exclude<MenuRootProps['positioning'], undefined>['placement'];
|
|
18
|
+
}
|
|
19
|
+
export declare const Menu: FC<MenuProps>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAEL,aAAa,EACb,gBAAgB,EAGjB,MAAM,kBAAkB,CAAC;AAI1B,UAAU,QAAQ;IAChB,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;IAC7B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,SAAS,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,WAAW,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;CAC3E;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA0D9B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { __assign } from '../../node_modules/tslib/tslib.es6.js';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { useSlotRecipe, Box } from '@chakra-ui/react';
|
|
4
|
-
import { TranslationProvider } from '../translationProvider/index.js';
|
|
3
|
+
import { useSlotRecipe, Menu as Menu$1, Portal } from '@chakra-ui/react';
|
|
5
4
|
import '../icons/AdvancedSearchIcon.js';
|
|
6
5
|
import '../icons/ArrowCircleIcon.js';
|
|
7
6
|
import '../icons/ArrowDiagonalIcon.js';
|
|
@@ -26,7 +25,7 @@ import '../icons/CheckmarkIcon.js';
|
|
|
26
25
|
import '../icons/CheckmarkCircleIcon.js';
|
|
27
26
|
import '../icons/CheckShieldIcon.js';
|
|
28
27
|
import '../icons/ChevronDownLargeIcon.js';
|
|
29
|
-
import '../icons/ChevronDownSmallIcon.js';
|
|
28
|
+
import { ChevronDownSmallIcon } from '../icons/ChevronDownSmallIcon.js';
|
|
30
29
|
import '../icons/ChevronLeftLargeIcon.js';
|
|
31
30
|
import '../icons/ChevronLeftSmallIcon.js';
|
|
32
31
|
import '../icons/ChevronRightLargeIcon.js';
|
|
@@ -34,7 +33,7 @@ import '../icons/ChevronRightSmallIcon.js';
|
|
|
34
33
|
import '../icons/ChevronRightTinyIcon.js';
|
|
35
34
|
import '../icons/ChevronUpLargeIcon.js';
|
|
36
35
|
import '../icons/ChevronUpSmallIcon.js';
|
|
37
|
-
import
|
|
36
|
+
import '../icons/CloseIcon.js';
|
|
38
37
|
import '../icons/CompareIcon.js';
|
|
39
38
|
import '../icons/ConsumptionIcon.js';
|
|
40
39
|
import '../icons/CreditIcon.js';
|
|
@@ -168,33 +167,27 @@ import '../icons/QualitySealIcon.js';
|
|
|
168
167
|
import '../icons/ExpandIcon.js';
|
|
169
168
|
import '../icons/CollapseIcon.js';
|
|
170
169
|
import '../icons/ForwardIcon.js';
|
|
171
|
-
import { SimpleGrid } from '../simpleGrid/index.js';
|
|
172
|
-
import { Link } from '../link/index.js';
|
|
173
170
|
|
|
174
|
-
var
|
|
175
|
-
var
|
|
176
|
-
var recipe = useSlotRecipe({ key: '
|
|
171
|
+
var Menu = function (_a) {
|
|
172
|
+
var title = _a.title, items = _a.items, _b = _a.fontWeightTitle, fontWeightTitle = _b === void 0 ? 'regular' : _b, _c = _a.offset, offset = _c === void 0 ? [8, 0] : _c, menuColor = _a.menuColor, _d = _a.showChevron, showChevron = _d === void 0 ? true : _d, icon = _a.icon, _e = _a.iconSpacing, iconSpacing = _e === void 0 ? 'sm' : _e, placement = _a.placement;
|
|
173
|
+
var recipe = useSlotRecipe({ key: 'menu' });
|
|
177
174
|
var styles = recipe();
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
React.createElement(Box, { css: styles.closeContainer },
|
|
194
|
-
React.createElement(Link, { "aria-label": "Close gallery", onClick: function () { return onClose(); } },
|
|
195
|
-
React.createElement(CloseIcon, { color: "white" })))))));
|
|
196
|
-
})));
|
|
175
|
+
var _f = offset[0], mainAxis = _f === void 0 ? 0 : _f, _g = offset[1], crossAxis = _g === void 0 ? 0 : _g;
|
|
176
|
+
return (React.createElement(Menu$1.Root, { positioning: { placement: placement, offset: { mainAxis: mainAxis, crossAxis: crossAxis } } },
|
|
177
|
+
React.createElement(Menu$1.Context, null, function (_a) {
|
|
178
|
+
var open = _a.open;
|
|
179
|
+
return (React.createElement(Menu$1.Trigger, { css: styles.trigger, gap: iconSpacing, fontWeight: fontWeightTitle, color: open ? 'blue.700' : menuColor },
|
|
180
|
+
icon,
|
|
181
|
+
title,
|
|
182
|
+
showChevron ? (React.createElement(ChevronDownSmallIcon, { transition: "transform", transform: open ? 'rotate(180deg)' : 'rotate(0deg)' })) : null));
|
|
183
|
+
}),
|
|
184
|
+
React.createElement(Portal, null,
|
|
185
|
+
React.createElement(Menu$1.Positioner, null,
|
|
186
|
+
React.createElement(Menu$1.Content, { css: styles.content }, items.map(function (_a) {
|
|
187
|
+
var onClick = _a.onClick, text = _a.text, value = _a.value;
|
|
188
|
+
return (React.createElement(Menu$1.Item, __assign({ key: "menuItem-".concat(value), value: value, onSelect: onClick, css: styles.item }, (menuColor && { color: menuColor })), text));
|
|
189
|
+
}))))));
|
|
197
190
|
};
|
|
198
191
|
|
|
199
|
-
export {
|
|
192
|
+
export { Menu };
|
|
200
193
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/menu/index.tsx"],"sourcesContent":[null],"names":["ChakraMenu"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,IAAM,IAAI,GAAkB,UAAC,EAUnC,EAAA;QATC,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,EAAA,GAAA,EAAA,CAAA,eAA2B,EAA3B,eAAe,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,KAAA,EAC3B,EAAA,GAAA,EAAA,CAAA,MAAe,EAAf,MAAM,GAAA,EAAA,KAAA,MAAA,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAA,EAAA,EACf,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,EAAA,GAAA,EAAA,CAAA,WAAkB,EAAlB,WAAW,GAAA,EAAA,KAAA,MAAA,GAAG,IAAI,KAAA,EAClB,IAAI,UAAA,EACJ,EAAA,GAAA,EAAA,CAAA,WAAkB,EAAlB,WAAW,GAAA,EAAA,KAAA,MAAA,GAAG,IAAI,GAAA,EAAA,EAClB,SAAS,GAAA,EAAA,CAAA,SAAA;IAET,IAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAC7C,IAAA,IAAM,MAAM,GAAG,MAAM,EAAE;AAChB,IAAA,IAAA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AA,EAAA,CAAA,KAAA;AAChC,oBAAA,QACE,KAAA,CAAA,aAAA,CAACA,MAAU,CAAC,IAAI,aACd,GAAG,EAAE,WAAA,CAAA,MAAA,CAAY,KAAK,CAAE,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,OAAO,EACjB,GAAG,EAAE,MAAM,CAAC,IAAI,EAAA,GACX,SAAS,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAErC,IAAI,CACW;AAEtB,gBAAA,CAAC,CAAC,CACiB,CACC,CACjB,CACO;AAEtB;;;;"}
|
|
@@ -31,10 +31,10 @@ import '../../themes/shared/slotRecipes/radio.js';
|
|
|
31
31
|
import '../../themes/shared/slotRecipes/popoverFilter.js';
|
|
32
32
|
import '../../themes/shared/slotRecipes/pagination.js';
|
|
33
33
|
import '../../themes/shared/slotRecipes/numberInput.js';
|
|
34
|
+
import '../../themes/shared/slotRecipes/menu.js';
|
|
34
35
|
import '../../themes/shared/slotRecipes/markedText.js';
|
|
35
36
|
import '../../themes/shared/slotRecipes/list.js';
|
|
36
37
|
import '../../themes/shared/slotRecipes/input.js';
|
|
37
|
-
import '../../themes/shared/slotRecipes/galleryHeader.js';
|
|
38
38
|
import '../../themes/shared/slotRecipes/field.js';
|
|
39
39
|
import '../../themes/shared/slotRecipes/energyLabel.js';
|
|
40
40
|
import '../../themes/shared/slotRecipes/dialogFilter.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -30,10 +30,10 @@ import './themes/shared/slotRecipes/radio.js';
|
|
|
30
30
|
import './themes/shared/slotRecipes/popoverFilter.js';
|
|
31
31
|
import './themes/shared/slotRecipes/pagination.js';
|
|
32
32
|
import './themes/shared/slotRecipes/numberInput.js';
|
|
33
|
+
import './themes/shared/slotRecipes/menu.js';
|
|
33
34
|
import './themes/shared/slotRecipes/markedText.js';
|
|
34
35
|
import './themes/shared/slotRecipes/list.js';
|
|
35
36
|
import './themes/shared/slotRecipes/input.js';
|
|
36
|
-
import './themes/shared/slotRecipes/galleryHeader.js';
|
|
37
37
|
import './themes/shared/slotRecipes/field.js';
|
|
38
38
|
import './themes/shared/slotRecipes/energyLabel.js';
|
|
39
39
|
import './themes/shared/slotRecipes/dialogFilter.js';
|
|
@@ -82,7 +82,6 @@ export { EnergyLabel } from './components/energyLabel/index.js';
|
|
|
82
82
|
export { ErrorPage } from './components/errorPage/index.js';
|
|
83
83
|
export { Flex } from './components/flex/index.js';
|
|
84
84
|
export { FullHeight } from './components/fullHeight/index.js';
|
|
85
|
-
export { GalleryHeader } from './components/galleryHeader/index.js';
|
|
86
85
|
export { Grid, GridItem } from './components/grid/index.js';
|
|
87
86
|
export { H1, H2, H3, H4, H5, H6 } from './components/heading/index.js';
|
|
88
87
|
export { AdvancedSearchIcon } from './components/icons/AdvancedSearchIcon.js';
|
|
@@ -260,6 +259,7 @@ export { LayoutWithVehicleReference } from './components/layout/WithVehicleRefer
|
|
|
260
259
|
export { Link } from './components/link/index.js';
|
|
261
260
|
export { List, ListItem, ListRoot } from './components/list/index.js';
|
|
262
261
|
export { Chip } from './components/chip/index.js';
|
|
262
|
+
export { Menu } from './components/menu/index.js';
|
|
263
263
|
export { MissingImage } from './components/missingImage/index.js';
|
|
264
264
|
export { MobileOnlyAccordion } from './components/mobileOnlyAccordion/index.js';
|
|
265
265
|
export { Footer } from './components/navigation/footer/index.js';
|
|
@@ -306,7 +306,6 @@ export declare const getSharedConfig: () => {
|
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
}>;
|
|
309
|
-
galleryHeader: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
310
309
|
list: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
|
311
310
|
size: {
|
|
312
311
|
md: {
|
|
@@ -1918,6 +1917,7 @@ export declare const getSharedConfig: () => {
|
|
|
1918
1917
|
};
|
|
1919
1918
|
}>;
|
|
1920
1919
|
pagination: import("@chakra-ui/react").SlotRecipeDefinition<"paginationContainer" | "paginationButton" | "dots", import("@chakra-ui/react").SlotRecipeVariantRecord<"paginationContainer" | "paginationButton" | "dots">>;
|
|
1920
|
+
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "trigger" | "item", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "trigger" | "item">>;
|
|
1921
1921
|
};
|
|
1922
1922
|
tokens: {
|
|
1923
1923
|
zIndex: {
|
|
@@ -107,7 +107,6 @@ export declare const slotRecipes: {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
|
-
galleryHeader: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
111
110
|
list: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "item" | "itemLabel" | "itemValue", {
|
|
112
111
|
size: {
|
|
113
112
|
md: {
|
|
@@ -1719,5 +1718,6 @@ export declare const slotRecipes: {
|
|
|
1719
1718
|
};
|
|
1720
1719
|
}>;
|
|
1721
1720
|
pagination: import("@chakra-ui/react").SlotRecipeDefinition<"paginationContainer" | "paginationButton" | "dots", import("@chakra-ui/react").SlotRecipeVariantRecord<"paginationContainer" | "paginationButton" | "dots">>;
|
|
1721
|
+
menu: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "trigger" | "item", import("@chakra-ui/react").SlotRecipeVariantRecord<"content" | "trigger" | "item">>;
|
|
1722
1722
|
};
|
|
1723
1723
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,10 +9,10 @@ import { radioRecipe } from './radio.js';
|
|
|
9
9
|
import { popoverFilterRecipe } from './popoverFilter.js';
|
|
10
10
|
import { paginationRecipe } from './pagination.js';
|
|
11
11
|
import { numberInputRecipe } from './numberInput.js';
|
|
12
|
+
import { menuRecipe } from './menu.js';
|
|
12
13
|
import { markedTextRecipe } from './markedText.js';
|
|
13
14
|
import { listRecipe } from './list.js';
|
|
14
15
|
import { inputSlotRecipe } from './input.js';
|
|
15
|
-
import { galleryHeaderRecipe } from './galleryHeader.js';
|
|
16
16
|
import { fieldSlotRecipe } from './field.js';
|
|
17
17
|
import { energyLabelRecipe } from './energyLabel.js';
|
|
18
18
|
import { dialogFilterRecipe } from './dialogFilter.js';
|
|
@@ -30,7 +30,6 @@ var slotRecipes = {
|
|
|
30
30
|
breadcrumbs: breadcrumbsRecipe,
|
|
31
31
|
card: cardRecipe,
|
|
32
32
|
energyLabel: energyLabelRecipe,
|
|
33
|
-
galleryHeader: galleryHeaderRecipe,
|
|
34
33
|
list: listRecipe,
|
|
35
34
|
markedText: markedTextRecipe,
|
|
36
35
|
dialog: dialogRecipe,
|
|
@@ -50,6 +49,7 @@ var slotRecipes = {
|
|
|
50
49
|
numberInput: numberInputRecipe,
|
|
51
50
|
radio: radioRecipe,
|
|
52
51
|
pagination: paginationRecipe,
|
|
52
|
+
menu: menuRecipe,
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export { slotRecipes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/themes/shared/slotRecipes/index.ts"],"sourcesContent":[null],"names":["articleTeaser","accordion","breadcrumbs","card","energyLabel","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/themes/shared/slotRecipes/index.ts"],"sourcesContent":[null],"names":["articleTeaser","accordion","breadcrumbs","card","energyLabel","list","markedText","dialog","simpleHeader","table","vehicleReference","tooltip","field","section","checkbox","input","select","dialogFilter","alert","popoverFilter","numberInput","radio","pagination","menu"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,IAAM,WAAW,GAAG;AACzB,IAAA,aAAa,EAAAA,mBAAA;AACb,IAAA,SAAS,EAAAC,eAAA;AACT,IAAA,WAAW,EAAAC,iBAAA;AACX,IAAA,IAAI,EAAAC,UAAA;AACJ,IAAA,WAAW,EAAAC,iBAAA;AACX,IAAA,IAAI,EAAAC,UAAA;AACJ,IAAA,UAAU,EAAAC,gBAAA;AACV,IAAA,MAAM,EAAAC,YAAA;AACN,IAAA,YAAY,EAAAC,kBAAA;AACZ,IAAA,KAAK,EAAAC,WAAA;AACL,IAAA,gBAAgB,EAAAC,sBAAA;AAChB,IAAA,OAAO,EAAAC,iBAAA;AACP,IAAA,KAAK,EAAAC,eAAA;AACL,IAAA,OAAO,EAAAC,aAAA;AACP,IAAA,QAAQ,EAAAC,cAAA;AACR,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,KAAK,EAAAC,eAAA;AACL,IAAA,MAAM,EAAAC,gBAAA;AACN,IAAA,YAAY,EAAAC,kBAAA;AACZ,IAAA,KAAK,EAAAC,WAAA;AACL,IAAA,aAAa,EAAAC,mBAAA;AACb,IAAA,WAAW,EAAAC,iBAAA;AACX,IAAA,KAAK,EAAAC,WAAA;AACL,IAAA,UAAU,EAAAC,gBAAA;AACV,IAAA,IAAI,EAAAC,UAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../src/themes/shared/slotRecipes/menu.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,UAAU,qKAQrB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineStyle, defineSlotRecipe } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
var maximumScrollbarWidth = 20;
|
|
4
|
+
var content = defineStyle({
|
|
5
|
+
'--max-width': "calc(100vw - ".concat(maximumScrollbarWidth, "px)"),
|
|
6
|
+
bg: 'white',
|
|
7
|
+
boxShadow: 'sm',
|
|
8
|
+
color: 'inherit',
|
|
9
|
+
minW: '4xl',
|
|
10
|
+
maxW: 'var(--max-width)',
|
|
11
|
+
py: 'xxs',
|
|
12
|
+
zIndex: 'dropdown',
|
|
13
|
+
borderRadius: 'sm',
|
|
14
|
+
border: '1px',
|
|
15
|
+
borderColor: 'gray.200',
|
|
16
|
+
cursor: 'pointer',
|
|
17
|
+
_focusVisible: {
|
|
18
|
+
outline: 'none',
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
var item = defineStyle({
|
|
22
|
+
paddingY: 'md',
|
|
23
|
+
paddingX: 'lg',
|
|
24
|
+
cursor: 'pointer',
|
|
25
|
+
_focus: {
|
|
26
|
+
bg: 'gray.100',
|
|
27
|
+
},
|
|
28
|
+
_focusVisible: {
|
|
29
|
+
outline: 'none',
|
|
30
|
+
},
|
|
31
|
+
_active: {
|
|
32
|
+
bg: 'blue.100',
|
|
33
|
+
},
|
|
34
|
+
_expanded: {
|
|
35
|
+
bg: 'gray.100',
|
|
36
|
+
},
|
|
37
|
+
_hover: {
|
|
38
|
+
bg: 'gray.100',
|
|
39
|
+
},
|
|
40
|
+
_disabled: {
|
|
41
|
+
opacity: '40',
|
|
42
|
+
cursor: 'notAllowed',
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
var trigger = defineStyle({
|
|
46
|
+
display: 'inline-flex',
|
|
47
|
+
padding: '0',
|
|
48
|
+
cursor: 'pointer',
|
|
49
|
+
_focusVisible: {
|
|
50
|
+
outline: 'none',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
var menuRecipe = defineSlotRecipe({
|
|
54
|
+
slots: ['content', 'item', 'trigger'],
|
|
55
|
+
className: 'chakra-menu',
|
|
56
|
+
base: {
|
|
57
|
+
content: content,
|
|
58
|
+
item: item,
|
|
59
|
+
trigger: trigger,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export { menuRecipe };
|
|
64
|
+
//# sourceMappingURL=menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.js","sources":["../../../../../../src/themes/shared/slotRecipes/menu.ts"],"sourcesContent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AM,EAAE,SAAS;AACjB,IAAA,aAAa,EAAE;AACb,QAAA,OAAO,EAAE,MAAM;AAChB,KAAA;AACF,CAAA,CAAC;AAEK,IAAM,UAAU,GAAG,gBAAgB,CAAC;AACzC,IAAA,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC;AACrC,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAA,OAAA;AACP,QAAA,IAAI,EAAA,IAAA;AACJ,QAAA,OAAO,EAAA,OAAA;AACR,KAAA;AACF,CAAA;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { keyframes } from '@emotion/react';
|
|
2
2
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
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, FlexProps as FlexProps$1, HeadingProps as HeadingProps$1, LinkProps as LinkProps$2, List as List$1, Accordion as Accordion$1, NativeSelectRootProps, NativeSelectFieldProps, SeparatorProps, SimpleGridProps, StackProps as StackProps$1, Table as Table$1, TextProps, NumberInput } from '@chakra-ui/react';
|
|
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, 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
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 } from 'react';
|
|
6
|
+
import React__default, { FocusEventHandler, ChangeEventHandler, FC, PropsWithChildren, ReactNode, ReactElement, ElementType, ComponentProps, JSX } 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';
|
|
@@ -53,7 +53,7 @@ declare const useDebouncedOnChange: ({ onChange, onBlur, debounce, }: {
|
|
|
53
53
|
|
|
54
54
|
declare const useToken: (scale: string, token: string[], fallback?: string[]) => string[];
|
|
55
55
|
|
|
56
|
-
declare const accordionRecipe: _chakra_ui_react.SlotRecipeDefinition<"
|
|
56
|
+
declare const accordionRecipe: _chakra_ui_react.SlotRecipeDefinition<"content" | "body" | "button" | "item" | "indicator", {
|
|
57
57
|
variant: {
|
|
58
58
|
light: {
|
|
59
59
|
item: {
|
|
@@ -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, "
|
|
433
|
+
declare const DatePicker: React__default.ForwardRefExoticComponent<Pick<InputProps$1, "onChange" | "onBlur" | "onFocus"> & {
|
|
434
434
|
variant?: _chakra_ui_react.ConditionalValue<"outline" | undefined>;
|
|
435
435
|
size?: _chakra_ui_react.ConditionalValue<"md" | "lg" | undefined>;
|
|
436
436
|
} & {
|
|
@@ -544,7 +544,7 @@ declare const sizes: {
|
|
|
544
544
|
};
|
|
545
545
|
};
|
|
546
546
|
|
|
547
|
-
declare const dialogRecipe: _chakra_ui_react.SlotRecipeDefinition<"content" | "body" | "
|
|
547
|
+
declare const dialogRecipe: _chakra_ui_react.SlotRecipeDefinition<"content" | "body" | "header" | "footer" | "backdrop" | "positioner" | "closeTrigger", {
|
|
548
548
|
overlayColor: {
|
|
549
549
|
gray: {
|
|
550
550
|
backdrop: {
|
|
@@ -1793,16 +1793,6 @@ declare const Flex: FC<FlexProps>;
|
|
|
1793
1793
|
|
|
1794
1794
|
declare const FullHeight: FC<PropsWithChildren>;
|
|
1795
1795
|
|
|
1796
|
-
type Language = 'de' | 'fr' | 'it' | 'en';
|
|
1797
|
-
|
|
1798
|
-
interface GalleryHeaderProps {
|
|
1799
|
-
currentSlide: number;
|
|
1800
|
-
slidesCount: number;
|
|
1801
|
-
onClose: () => void;
|
|
1802
|
-
language: Language;
|
|
1803
|
-
}
|
|
1804
|
-
declare const GalleryHeader: FC<PropsWithChildren<GalleryHeaderProps>>;
|
|
1805
|
-
|
|
1806
1796
|
declare const Grid: React.ForwardRefExoticComponent<_chakra_ui_react.GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
1807
1797
|
declare const GridItem: React.ForwardRefExoticComponent<_chakra_ui_react.GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1808
1798
|
|
|
@@ -2284,6 +2274,24 @@ type ChipProps = {
|
|
|
2284
2274
|
} & RecipeVariantProps<typeof chipRecipe>;
|
|
2285
2275
|
declare const Chip: FC<PropsWithChildren<ChipProps>>;
|
|
2286
2276
|
|
|
2277
|
+
interface MenuItem {
|
|
2278
|
+
text: JSX.Element | string;
|
|
2279
|
+
value: string;
|
|
2280
|
+
onClick: () => void;
|
|
2281
|
+
}
|
|
2282
|
+
interface MenuProps {
|
|
2283
|
+
title: string | ReactElement;
|
|
2284
|
+
items: MenuItem[];
|
|
2285
|
+
fontWeightTitle?: MenuTriggerProps['fontWeight'];
|
|
2286
|
+
offset?: [number, number];
|
|
2287
|
+
menuColor?: MenuTriggerProps['color'];
|
|
2288
|
+
showChevron?: boolean;
|
|
2289
|
+
icon?: ReactElement;
|
|
2290
|
+
iconSpacing?: MenuTriggerProps['gap'];
|
|
2291
|
+
placement?: Exclude<MenuRootProps['positioning'], undefined>['placement'];
|
|
2292
|
+
}
|
|
2293
|
+
declare const Menu: FC<MenuProps>;
|
|
2294
|
+
|
|
2287
2295
|
type MissingImageProps = Pick<BoxProps, 'width' | 'height' | 'aspectRatio'>;
|
|
2288
2296
|
declare const MissingImage: FC<MissingImageProps>;
|
|
2289
2297
|
|
|
@@ -2292,6 +2300,8 @@ declare const MobileOnlyAccordion: FC<PropsWithChildren<MobileOnlyAccordionProps
|
|
|
2292
2300
|
|
|
2293
2301
|
type Project = 'listings-web' | 'seller-web';
|
|
2294
2302
|
|
|
2303
|
+
type Language = 'de' | 'fr' | 'it' | 'en';
|
|
2304
|
+
|
|
2295
2305
|
type Environment = 'production' | 'preprod';
|
|
2296
2306
|
|
|
2297
2307
|
interface FooterProps {
|
|
@@ -2363,7 +2373,7 @@ type SectionProps = SectionVariantProps & {
|
|
|
2363
2373
|
};
|
|
2364
2374
|
declare const Section: FC<SectionProps>;
|
|
2365
2375
|
|
|
2366
|
-
declare const selectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"indicator" | "
|
|
2376
|
+
declare const selectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"indicator" | "root" | "field", {
|
|
2367
2377
|
variant: {
|
|
2368
2378
|
outline: {
|
|
2369
2379
|
field: _chakra_ui_react.SystemStyleObject;
|
|
@@ -2531,5 +2541,5 @@ declare class Logger {
|
|
|
2531
2541
|
}
|
|
2532
2542
|
declare const logger: Logger;
|
|
2533
2543
|
|
|
2534
|
-
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, DocumentCheckIcon, DocumentIcon, DoubleChevronDownIcon, DoubleChevronUpIcon, DoubleLineIcon, DownloadIcon, DragIcon, DriveSystemIcon, DriveSystemLargeIcon, DriveTypeIcon, EnergyLabel, EquipmentIcon, ErrorIcon, ErrorPage, ExchangeIcon, ExpandIcon, EyeCrossedIcon, EyeIcon, FacebookIcon, FlagIcon, FlameIcon, FlashIcon, Flex, Footer$1 as Footer, FormControlSection, ForwardIcon, FullHeight,
|
|
2535
|
-
export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, EnergyLabelProps, ErrorPageProps, FlexProps, BaseProps as FormControlSectionProps,
|
|
2544
|
+
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, DocumentCheckIcon, DocumentIcon, DoubleChevronDownIcon, DoubleChevronUpIcon, DoubleLineIcon, DownloadIcon, DragIcon, DriveSystemIcon, DriveSystemLargeIcon, DriveTypeIcon, EnergyLabel, EquipmentIcon, ErrorIcon, ErrorPage, ExchangeIcon, ExpandIcon, EyeCrossedIcon, EyeIcon, FacebookIcon, FlagIcon, FlameIcon, FlashIcon, Flex, Footer$1 as Footer, FormControlSection, ForwardIcon, FullHeight, 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, 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 };
|
|
2545
|
+
export type { AccordionProps, ArticleTeaserProps, AvatarProps, BadgeProps, BaseButtonProps, BaseProps, BreadcrumbsPropsExtended, ButtonSharedProps, CenterProps, ChangeCallback, CheckboxGroupProps, CheckboxProps, ChipProps, CountProps, DatePickerProps, DevOverlayProps, DevOverlayVariables, DialogProps, EnergyLabelProps, ErrorPageProps, FlexProps, BaseProps as FormControlSectionProps, HeadingProps, HighlightedTextProps, InputProps, LinkProps, MarkedTextProps, MenuProps, MissingImageProps, MobileOnlyAccordionProps, Option, PaginationProps, PickedNumberInputProps, Props$1 as Props, RangeFilterInputField, RatingProps, SectionProps, SelectProps, SimpleHeaderProps, StackProps, SwitchProps, ThemeProviderProps, UnifiedButtonProps, VehicleReferenceProps };
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { Language } from 'src/types/language';
|
|
3
|
-
export interface GalleryHeaderProps {
|
|
4
|
-
currentSlide: number;
|
|
5
|
-
slidesCount: number;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
language: Language;
|
|
8
|
-
}
|
|
9
|
-
export declare const GalleryHeader: FC<PropsWithChildren<GalleryHeaderProps>>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/galleryHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAQ9C,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CA8CnE,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const galleryHeaderRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
2
|
-
//# sourceMappingURL=galleryHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"galleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/themes/shared/slotRecipes/galleryHeader.ts"],"names":[],"mappings":"AA8CA,eAAO,MAAM,mBAAmB,yQAU9B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { Language } from 'src/types/language';
|
|
3
|
-
export interface GalleryHeaderProps {
|
|
4
|
-
currentSlide: number;
|
|
5
|
-
slidesCount: number;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
language: Language;
|
|
8
|
-
}
|
|
9
|
-
export declare const GalleryHeader: FC<PropsWithChildren<GalleryHeaderProps>>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/galleryHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAQ9C,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CA8CnE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/galleryHeader/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBO,IAAM,aAAa,GAA8C,UAAC,EAMxE,EAAA;AALC,IAAA,IAAA,YAAY,GAAA,EAAA,CAAA,YAAA,EACZ,WAAW,GAAA,EAAA,CAAA,WAAA,EACX,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,QAAQ,GAAA,EAAA,CAAA,QAAA;IAER,IAAM,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;AACtD,IAAA,IAAM,MAAM,GAAG,MAAM,EAAE;AAEvB,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,mBAAmB,EAAA,EAAC,QAAQ,EAAE,QAAQ,EA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,CACT,CACF;QA5BI,CA6BX,CACoB,CACH;AAE1B;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const galleryHeaderRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer", import("@chakra-ui/react").SlotRecipeVariantRecord<"container" | "grid" | "childrenContainer" | "countContainer" | "closeContainer">>;
|
|
2
|
-
//# sourceMappingURL=galleryHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"galleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/themes/shared/slotRecipes/galleryHeader.ts"],"names":[],"mappings":"AA8CA,eAAO,MAAM,mBAAmB,yQAU9B,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineStyle, defineSlotRecipe } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
var baseStyleContainer = defineStyle({
|
|
4
|
-
color: 'white',
|
|
5
|
-
px: '2xl',
|
|
6
|
-
py: 'lg',
|
|
7
|
-
position: {
|
|
8
|
-
base: 'fixed',
|
|
9
|
-
md: 'static',
|
|
10
|
-
},
|
|
11
|
-
top: '0',
|
|
12
|
-
left: '0',
|
|
13
|
-
right: '0',
|
|
14
|
-
zIndex: 'docked',
|
|
15
|
-
});
|
|
16
|
-
var baseStyleGrid = defineStyle({
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
});
|
|
19
|
-
var baseStyleChildrenContainer = defineStyle({
|
|
20
|
-
// This will be shown only above md breakpoint
|
|
21
|
-
});
|
|
22
|
-
var baseStyleCountContainer = defineStyle({
|
|
23
|
-
textAlign: {
|
|
24
|
-
base: 'left',
|
|
25
|
-
md: 'center',
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
var baseStyleCloseContainer = defineStyle({
|
|
29
|
-
textAlign: 'right',
|
|
30
|
-
display: 'flex',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
justifyContent: 'flex-end',
|
|
33
|
-
});
|
|
34
|
-
var slots = [
|
|
35
|
-
'container',
|
|
36
|
-
'grid',
|
|
37
|
-
'childrenContainer',
|
|
38
|
-
'countContainer',
|
|
39
|
-
'closeContainer',
|
|
40
|
-
];
|
|
41
|
-
var galleryHeaderRecipe = defineSlotRecipe({
|
|
42
|
-
slots: slots,
|
|
43
|
-
className: 'chakra-gallery-header',
|
|
44
|
-
base: {
|
|
45
|
-
container: baseStyleContainer,
|
|
46
|
-
grid: baseStyleGrid,
|
|
47
|
-
childrenContainer: baseStyleChildrenContainer,
|
|
48
|
-
countContainer: baseStyleCountContainer,
|
|
49
|
-
closeContainer: baseStyleCloseContainer,
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export { galleryHeaderRecipe };
|
|
54
|
-
//# sourceMappingURL=galleryHeader.js.map
|