@crystaldesign/product-gallery 24.1.0-rctest.3 → 24.1.0

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.
@@ -0,0 +1,337 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
3
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
+ import _regeneratorRuntime from '@babel/runtime/regenerator';
5
+ import { debounce } from 'lodash';
6
+ import classNames from 'classnames';
7
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
8
+ import { useState, useEffect, useRef, useCallback } from 'react';
9
+ import { ContentBoxComponent } from '@crystaldesign/content-box';
10
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
+ import { useDivaCore } from '@crystaldesign/diva-core';
12
+ import ProductsComponent, { useProductState, createFilterParams, getFilterObject, Facets, ProductHeader } from '@crystaldesign/products-component';
13
+
14
+ (function() {
15
+ const env = {"STAGE":"production"};
16
+ try {
17
+ if (process) {
18
+ process.env = Object.assign({}, process.env);
19
+ Object.assign(process.env, env);
20
+ return;
21
+ }
22
+ } catch (e) {} // avoid ReferenceError: process is not defined
23
+ globalThis.process = { env:env };
24
+ })();
25
+
26
+ var _excluded = ["imageContentBoxSettings", "imageContents", "imageContentsMobile", "currentlyMobile", "productState"];
27
+ function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
+ var ImageSlider = function ImageSlider(_ref) {
30
+ var imageContentBoxSettings = _ref.imageContentBoxSettings,
31
+ imageContents = _ref.imageContents,
32
+ imageContentsMobile = _ref.imageContentsMobile,
33
+ currentlyMobile = _ref.currentlyMobile,
34
+ _ref$productState$fil = _slicedToArray(_ref.productState.filter, 1),
35
+ filterStates = _ref$productState$fil[0],
36
+ props = _objectWithoutProperties(_ref, _excluded);
37
+ var _useState = useState([]),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ swiperContent = _useState2[0],
40
+ setSwiperContent = _useState2[1];
41
+ useEffect(function () {
42
+ var contents = [];
43
+ var data = currentlyMobile && imageContentsMobile ? imageContentsMobile : imageContents;
44
+ for (var i = 0; i < data.length; i++) {
45
+ if (contents.length) break;
46
+ var entry = data[i];
47
+ for (var key in entry) {
48
+ var filter = entry[key];
49
+ var filterState = filterStates[key];
50
+ if (filterState) {
51
+ if (filterState.type == 'range') continue;
52
+ for (var _value in filter) {
53
+ if (filterState.type == 'multiSelect' && filterState.values.includes(_value) || filterState.type == 'singleSelect' && filterState.value == _value) {
54
+ contents = contents.concat(filter[_value].contents);
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ setSwiperContent(contents.map(function (cont) {
61
+ return {
62
+ content: cont
63
+ };
64
+ }));
65
+ }, [filterStates, currentlyMobile]);
66
+ return /*#__PURE__*/jsx("div", _objectSpread$2(_objectSpread$2({}, props), {}, {
67
+ children: /*#__PURE__*/jsx(ContentBoxComponent, {
68
+ settings: {
69
+ contentBoxProps: _objectSpread$2(_objectSpread$2({}, imageContentBoxSettings), {}, {
70
+ type: 'SliderContainer',
71
+ contents: swiperContent
72
+ })
73
+ }
74
+ })
75
+ }));
76
+ };
77
+
78
+ function styleInject(css, ref) {
79
+ if ( ref === void 0 ) ref = {};
80
+ var insertAt = ref.insertAt;
81
+
82
+ if (!css || typeof document === 'undefined') { return; }
83
+
84
+ var head = document.head || document.getElementsByTagName('head')[0];
85
+ var style = document.createElement('style');
86
+ style.type = 'text/css';
87
+
88
+ if (insertAt === 'top') {
89
+ if (head.firstChild) {
90
+ head.insertBefore(style, head.firstChild);
91
+ } else {
92
+ head.appendChild(style);
93
+ }
94
+ } else {
95
+ head.appendChild(style);
96
+ }
97
+
98
+ if (style.styleSheet) {
99
+ style.styleSheet.cssText = css;
100
+ } else {
101
+ style.appendChild(document.createTextNode(css));
102
+ }
103
+ }
104
+
105
+ var scrollerClass = "scroller-class-J6Z4Z";
106
+ var maxWidth = "max-width-XHcc4";
107
+ var parent = "parent-qDEav";
108
+ var rightSide = "right-side-VPkpL";
109
+ var disabled = "disabled-nOvnY";
110
+ var products = "products-Ui7d6";
111
+ var filter = "filter-DmVHL";
112
+ var topImage = "top-image-zf6oO";
113
+ var pdpOverlay = "pdp-overlay-O21gM";
114
+ var navigationVisible = "navigation-visible-omUqh";
115
+ var pdpBackground = "pdp-background-uw3-u";
116
+ var pdpContainer = "pdp-container--d0P1";
117
+ var isMobileClass = "is-mobile-class-3tbms";
118
+ var css_248z = ".scroller-class-J6Z4Z {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n}\n\n.max-width-XHcc4 {\n position: relative;\n max-width: 1600px;\n margin: auto;\n height: 100%;\n width: 100%;\n}\n\n.parent-qDEav {\n height: 100%;\n width: 100%;\n position: relative;\n display: flex;\n margin-top: 12px;\n}\n\n.parent-qDEav.is-mobile-class {\n flex-direction: column;\n margin-top: 0;\n margin-top: initial;\n}\n\n.right-side-VPkpL {\n height: 100%;\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n grid-template-rows: repeat(10, 1fr);\n grid-column-gap: 0px;\n padding-right: 12px;\n width: calc(100% - 12px);\n}\n\n.is-mobile-class .right-side-VPkpL {\n overflow: auto;\n padding-left: 6px;\n padding-right: 6px;\n width: calc(100% - 12px);\n}\n\n.disabled-nOvnY {\n pointer-events: none;\n}\n\n.products-Ui7d6 {\n grid-area: 5 / 1 / 11 / 6;\n}\n\n.filter-DmVHL {\n margin: 0 10px;\n min-width: 244px;\n max-width: 244px;\n z-index: 12;\n height: -moz-fit-content;\n height: fit-content;\n display: flex;\n flex-direction: column;\n /* gap: 12px; */\n}\n\n.is-mobile-class .filter-DmVHL {\n margin: 8px;\n width: calc(100% - 16px);\n}\n\n.top-image-zf6oO {\n grid-area: 1 / 1 / 5 / 6;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n z-index: 10;\n}\n\n.is-mobile-class .top-image-zf6oO {\n grid-area: 1 / 1 / 3 / 6;\n}\n.is-mobile-class .products-Ui7d6 {\n grid-area: 3 / 1 / 6 / 6;\n}\n\n.header-hidden-class .products-Ui7d6 {\n grid-area: 1 / 1 / 6 / 6;\n}\n.pdp-overlay-O21gM {\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 500;\n}\n.navigation-visible-omUqh.pdp-overlay-O21gM {\n position: absolute;\n}\n\n.pdp-background-uw3-u {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(244, 244, 244, 0.8);\n\n z-index: 540;\n}\n\n.pdp-container--d0P1 {\n z-index: 580;\n background-color: #fff;\n height: 100%;\n width: 100%;\n max-width: 1650px;\n max-height: 1000px;\n}\n\n.is-mobile-class-3tbms .pdp-container--d0P1 {\n max-width: none;\n max-width: initial;\n max-height: none;\n max-height: initial;\n}\n";
119
+ styleInject(css_248z);
120
+
121
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
122
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
123
+ var Gallery = function Gallery(_ref) {
124
+ var parameters = _ref.parameters,
125
+ _ref$filterObject = _ref.filterObject,
126
+ filterObject = _ref$filterObject === void 0 ? [] : _ref$filterObject,
127
+ imageContentBoxSettings = _ref.imageContentBoxSettings,
128
+ imageContents = _ref.imageContents,
129
+ imageContentsMobile = _ref.imageContentsMobile,
130
+ pdpSettings = _ref.pdpSettings;
131
+ var _useState = useState(!!(parameters !== null && parameters !== void 0 && parameters.id)),
132
+ _useState2 = _slicedToArray(_useState, 1),
133
+ initializedWithProductId = _useState2[0];
134
+ var curProductId = parameters === null || parameters === void 0 ? void 0 : parameters.id;
135
+ var _useDivaCore = useDivaCore(),
136
+ _useDivaCore$actions = _useDivaCore.actions,
137
+ openComponent = _useDivaCore$actions.openComponent,
138
+ setAbsoluteFullScreen = _useDivaCore$actions.setAbsoluteFullScreen,
139
+ _useDivaCore$state = _useDivaCore.state,
140
+ HeaderElement = _useDivaCore$state.headerInfos.HeaderElement,
141
+ _useDivaCore$state$di = _useDivaCore$state.dimensions,
142
+ isMobile = _useDivaCore$state$di.isMobile,
143
+ height = _useDivaCore$state$di.height,
144
+ isPortrait = _useDivaCore$state$di.isPortrait;
145
+ var portalHeaderHeight = HeaderElement === null || HeaderElement === void 0 ? void 0 : HeaderElement.getBoundingClientRect().height;
146
+ var productState = useProductState(parameters);
147
+ var filterHidden = filterObject.length === 0;
148
+ var headerHidden = Object.keys(imageContents !== null && imageContents !== void 0 ? imageContents : {}).length === 0;
149
+ var isMobileLandscape = isMobile && !isPortrait && height < 500;
150
+ var scroller = useRef(null);
151
+ var _useState3 = useState(),
152
+ _useState4 = _slicedToArray(_useState3, 2),
153
+ scroll = _useState4[0],
154
+ setScroll = _useState4[1];
155
+ var debouncedScroll = useCallback(debounce( /*#__PURE__*/function () {
156
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(e) {
157
+ var _e$target$getBounding, _e$target;
158
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
159
+ while (1) switch (_context.prev = _context.next) {
160
+ case 0:
161
+ setScroll({
162
+ scrollTop: e.target.scrollTop,
163
+ scrollHeight: e.target.scrollHeight,
164
+ clientHeight: e.target.clientHeight,
165
+ clientOffset: (_e$target$getBounding = (_e$target = e.target).getBoundingClientRect) === null || _e$target$getBounding === void 0 ? void 0 : _e$target$getBounding.call(_e$target).y
166
+ });
167
+ case 1:
168
+ case "end":
169
+ return _context.stop();
170
+ }
171
+ }, _callee);
172
+ }));
173
+ return function (_x) {
174
+ return _ref2.apply(this, arguments);
175
+ };
176
+ }(), 50), []);
177
+ var onClick = function onClick(product) {
178
+ if (product._id !== (parameters === null || parameters === void 0 ? void 0 : parameters.id)) {
179
+ openComponent({
180
+ type: 'PRODUCT_GALLERY',
181
+ parameters: _objectSpread$1({
182
+ id: product._id
183
+ }, createFilterParams(getFilterObject(productState.filter[0], productState.search[0]))),
184
+ breadcrumb: true
185
+ });
186
+ }
187
+ };
188
+ var escFunction = useCallback(function (e) {
189
+ if (e.key === 'ESC' || e.key === 'Escape') {
190
+ if (!curProductId) return;
191
+ closePdp();
192
+ }
193
+ }, []);
194
+ useEffect(function () {
195
+ document.addEventListener('keydown', escFunction, false);
196
+ return function () {
197
+ document.removeEventListener('keydown', escFunction, false);
198
+ };
199
+ }, []);
200
+ useEffect(function () {
201
+ productState.groups[1]([]);
202
+ }, [parameters === null || parameters === void 0 ? void 0 : parameters.update]);
203
+ var currentlyMobile = isMobile && isPortrait || height < 500;
204
+ var isLandscapeMobile = currentlyMobile && !isPortrait && height < 500;
205
+ var closePdp = function closePdp() {
206
+ openComponent({
207
+ type: 'PRODUCT_GALLERY',
208
+ parameters: createFilterParams(getFilterObject(productState.filter[0], productState.search[0])),
209
+ breadcrumb: true
210
+ });
211
+ };
212
+ var setCategoryFilter = function setCategoryFilter(filters) {
213
+ if (initializedWithProductId) {
214
+ var newState = _objectSpread$1({}, productState.filter[0]);
215
+ for (var _key in filters) {
216
+ var _value = filters[_key];
217
+ if (_value === undefined) delete newState[_key];else newState[_key] = {
218
+ type: 'singleSelect',
219
+ mustBeSelected: true,
220
+ value: _value
221
+ };
222
+ }
223
+ productState.filter[1](newState);
224
+ }
225
+ openComponent({
226
+ type: 'PRODUCT_GALLERY',
227
+ parameters: _objectSpread$1(_objectSpread$1({
228
+ id: curProductId
229
+ }, parameters !== null && parameters !== void 0 && parameters.update ? {
230
+ update: parameters.update
231
+ } : {}), createFilterParams(getFilterObject(productState.filter[0], productState.search[0]))),
232
+ breadcrumb: true
233
+ });
234
+ };
235
+ var ProductHeaderJSX = /*#__PURE__*/jsx(ProductHeader, {
236
+ filterObject: filterObject,
237
+ productState: productState,
238
+ parameters: parameters,
239
+ currentlyMobile: currentlyMobile
240
+ });
241
+ useEffect(function () {
242
+ if (curProductId) setAbsoluteFullScreen(true);else setAbsoluteFullScreen(false);
243
+ return function () {
244
+ return setAbsoluteFullScreen(false);
245
+ };
246
+ }, [curProductId]);
247
+ return /*#__PURE__*/jsxs(Fragment, {
248
+ children: [/*#__PURE__*/jsx("div", {
249
+ className: scrollerClass,
250
+ onScroll: debouncedScroll,
251
+ ref: scroller,
252
+ children: /*#__PURE__*/jsx("div", {
253
+ className: maxWidth,
254
+ children: /*#__PURE__*/jsxs("div", {
255
+ className: classNames(parent, currentlyMobile ? 'is-mobile-class' : undefined, isLandscapeMobile ? 'is-mobile-landscape-class' : undefined, headerHidden ? 'header-hidden-class' : undefined, curProductId ? disabled : undefined),
256
+ children: [!filterHidden && /*#__PURE__*/jsxs("div", {
257
+ className: filter,
258
+ children: [!currentlyMobile && /*#__PURE__*/jsx(Facets, {
259
+ productState: productState,
260
+ parameters: parameters
261
+ }), currentlyMobile && ProductHeaderJSX]
262
+ }, productState.categoryKey[0]), /*#__PURE__*/jsxs("div", {
263
+ className: rightSide,
264
+ children: [!isLandscapeMobile && !headerHidden && /*#__PURE__*/jsx(ImageSlider, {
265
+ productState: productState,
266
+ className: classNames(topImage),
267
+ currentlyMobile: currentlyMobile,
268
+ imageContents: imageContents,
269
+ imageContentsMobile: imageContentsMobile,
270
+ imageContentBoxSettings: imageContentBoxSettings
271
+ }), /*#__PURE__*/jsxs("div", {
272
+ className: products,
273
+ children: [!currentlyMobile && !filterHidden && ProductHeaderJSX, /*#__PURE__*/jsx(ProductsComponent, {
274
+ noFilter: filterHidden,
275
+ curProductId: curProductId,
276
+ onClickFunction: onClick,
277
+ productState: productState,
278
+ scroller: scroller,
279
+ scrollerState: [scroll, setScroll],
280
+ forcedFilter: "livingArea"
281
+ })]
282
+ })]
283
+ })]
284
+ })
285
+ })
286
+ }), curProductId && /*#__PURE__*/jsxs("div", {
287
+ className: classNames(pdpOverlay, currentlyMobile ? isMobileClass : undefined, !!portalHeaderHeight ? navigationVisible : undefined),
288
+ children: [!currentlyMobile && /*#__PURE__*/jsx("div", {
289
+ onClick: closePdp,
290
+ className: pdpBackground
291
+ }), /*#__PURE__*/jsx("div", {
292
+ className: pdpContainer,
293
+ children: /*#__PURE__*/jsx(ContentBoxComponent, {
294
+ onClose: closePdp,
295
+ settings: {
296
+ contentBoxProps: {
297
+ type: 'CloseButtonContainer',
298
+ switchCloseIconToLeftInPortrait: !!(pdpSettings !== null && pdpSettings !== void 0 && pdpSettings.marginLeftHeader),
299
+ hideCloseIconInPortrait: currentlyMobile && !(pdpSettings !== null && pdpSettings !== void 0 && pdpSettings.marginLeftHeader),
300
+ hideCloseIcon: isMobileLandscape,
301
+ content: _objectSpread$1(_objectSpread$1({}, pdpSettings), {}, {
302
+ type: 'PDP',
303
+ productId: curProductId,
304
+ groupVariantsByField: ['dc_color', 'dc_mainColor'],
305
+ breadcrumb: true,
306
+ setCategoryFilter: setCategoryFilter,
307
+ cta1Params: {
308
+ initMode: 'OPENCONFIGTABGROUP'
309
+ }
310
+ })
311
+ }
312
+ }
313
+ }, parameters.update)
314
+ })]
315
+ })]
316
+ });
317
+ };
318
+
319
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
320
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
321
+ var Main = function Main(_ref) {
322
+ var settings = _ref.settings,
323
+ parameters = _ref.parameters;
324
+ return /*#__PURE__*/jsx(Gallery, _objectSpread({
325
+ parameters: parameters
326
+ }, settings));
327
+ };
328
+ var GalleryComponent = function GalleryComponent(props) {
329
+ return /*#__PURE__*/jsx(Main, _objectSpread({}, props));
330
+ };
331
+ var ProductGallery = {
332
+ name: 'PRODUCT_GALLERY',
333
+ renderFunction: Main
334
+ };
335
+ //change
336
+
337
+ export { GalleryComponent, ProductGallery as default };
@@ -0,0 +1,36 @@
1
+
2
+
3
+ import React from 'react';
4
+ import { ContentBoxProps, SliderContainerProps } from '@crystaldesign/content-box';
5
+ import { ComponentDefinition } from '@crystaldesign/diva-core';
6
+ import { TextProps } from '@crystaldesign/products-component';
7
+ interface Props {
8
+ onClose?: () => void;
9
+ settings: Configuration;
10
+ }
11
+ interface Configuration {
12
+ filterObject: TextProps[];
13
+ imageContentBoxSettings: SliderContainerProps;
14
+ imageContents: {
15
+ [filterKey: string]: {
16
+ [value: string]: {
17
+ contents: ContentBoxProps[];
18
+ };
19
+ };
20
+ }[];
21
+ imageContentsMobile?: {
22
+ [filterKey: string]: {
23
+ [value: string]: {
24
+ contents: ContentBoxProps[];
25
+ };
26
+ };
27
+ }[];
28
+ pdpSettings?: {
29
+ ctaOpenInFullscreen?: boolean;
30
+ };
31
+ }
32
+ export declare const GalleryComponent: React.FC<Props>;
33
+ declare const ProductGallery: ComponentDefinition<Configuration>;
34
+ export default ProductGallery;
35
+ //# sourceMappingURL=index.d.ts.map
36
+
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAkB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,aAAa;IACrB,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,uBAAuB,EAAE,oBAAoB,CAAC;IAC9C,aAAa,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IAC/F,mBAAmB,CAAC,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACtG,WAAW,CAAC,EAAE;QAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACjD;AAMD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAE5C,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,mBAAmB,CAAC,aAAa,CAGtD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ComponentProps } from 'react';
2
+ import { ContentBoxProps, SliderContainerProps } from '@crystaldesign/content-box';
3
+ import { ProductState } from '@crystaldesign/products-component';
4
+ interface Props extends ComponentProps<'div'> {
5
+ imageContentBoxSettings: SliderContainerProps;
6
+ productState: ProductState;
7
+ currentlyMobile: boolean;
8
+ imageContents: {
9
+ [filterKey: string]: {
10
+ [value: string]: {
11
+ contents: ContentBoxProps[];
12
+ };
13
+ };
14
+ }[];
15
+ imageContentsMobile?: {
16
+ [filterKey: string]: {
17
+ [value: string]: {
18
+ contents: ContentBoxProps[];
19
+ };
20
+ };
21
+ }[];
22
+ }
23
+ declare const ImageSlider: ({ imageContentBoxSettings, imageContents, imageContentsMobile, currentlyMobile, productState: { filter: [filterStates], }, ...props }: Props) => JSX.Element;
24
+ export default ImageSlider;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/imageSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AACnE,OAAO,EAAgC,eAAe,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,UAAU,KAAM,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3C,uBAAuB,EAAE,oBAAoB,CAAC;IAC9C,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IAC/F,mBAAmB,CAAC,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;CACvG;AAED,QAAA,MAAM,WAAW,0IAUd,KAAK,gBAsCP,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ContentBoxProps } from '@crystaldesign/content-box';
2
+ export declare const content: {
3
+ [filterKey: string]: {
4
+ [value: string]: {
5
+ contents: ContentBoxProps[];
6
+ };
7
+ };
8
+ }[];
9
+ //# sourceMappingURL=textContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textContent.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/imageSlider/textContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,eAAO,MAAM,OAAO,EAAE;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG;YAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,EA+ClG,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { ContentBoxProps, SliderContainerProps } from '@crystaldesign/content-box';
2
+ import { TextProps } from '@crystaldesign/products-component';
3
+ type Props = {
4
+ filterObject: TextProps[];
5
+ imageContentBoxSettings: SliderContainerProps;
6
+ parameters: {
7
+ [key: string]: string;
8
+ } | undefined;
9
+ imageContents: {
10
+ [filterKey: string]: {
11
+ [value: string]: {
12
+ contents: ContentBoxProps[];
13
+ };
14
+ };
15
+ }[];
16
+ imageContentsMobile?: {
17
+ [filterKey: string]: {
18
+ [value: string]: {
19
+ contents: ContentBoxProps[];
20
+ };
21
+ };
22
+ }[];
23
+ pdpSettings?: {
24
+ ctaOpenInFullscreen?: boolean;
25
+ marginLeftHeader?: boolean;
26
+ absoluteFullscreen?: boolean;
27
+ };
28
+ };
29
+ declare const Gallery: ({ parameters, filterObject, imageContentBoxSettings, imageContents, imageContentsMobile, pdpSettings }: Props) => JSX.Element;
30
+ export default Gallery;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAuB,eAAe,EAAW,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAgBjH,OAA0B,EAMxB,SAAS,EACV,MAAM,mCAAmC,CAAC;AAE3C,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,uBAAuB,EAAE,oBAAoB,CAAC;IAC9C,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAClD,aAAa,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IAC/F,mBAAmB,CAAC,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG;YAAE,CAAC,KAAK,EAAE,MAAM,GAAG;gBAAE,QAAQ,EAAE,eAAe,EAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACtG,WAAW,CAAC,EAAE;QAAE,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC3G,CAAC;AAEF,QAAA,MAAM,OAAO,2GAAiH,KAAK,gBAgLlI,CAAC;AAEF,eAAe,OAAO,CAAC"}