@wayke-se/components-react 3.5.1 → 3.5.3-beta.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.
Files changed (42) hide show
  1. package/README.md +57 -49
  2. package/dist-node/index.js +93 -6
  3. package/dist-node/index.js.map +1 -1
  4. package/dist-src/components/FinancialOptions/index.js +1 -1
  5. package/dist-src/components/FinancialOptions/leasing.js +7 -6
  6. package/dist-src/components/Gallery/wrapper.js +70 -1
  7. package/dist-types/@types/codegen/types.d.ts +42 -42
  8. package/dist-types/@types/filter.d.ts +2 -2
  9. package/dist-types/State/Path/reducer.d.ts +2 -2
  10. package/dist-types/components/Content/index.d.ts +1 -1
  11. package/dist-types/components/Icon/index.d.ts +2 -2
  12. package/dist-types/components/InputCheckbox/index.d.ts +1 -1
  13. package/dist-types/components/InputSearch/index.d.ts +3 -3
  14. package/dist-types/components/InputText/index.d.ts +1 -1
  15. package/dist-types/components/Sphere/Sphere.d.ts +1 -1
  16. package/dist-types/components/Sphere/SphereLightbox.d.ts +1 -1
  17. package/dist-types/components/Sphere/SphereViewer.d.ts +1 -1
  18. package/dist-types/components/ThreeSixty/Rotation.d.ts +1 -1
  19. package/dist-types/components/ThreeSixty/ThreeSixtLightbox.d.ts +1 -1
  20. package/dist-types/components/ThreeSixty/ThreeSixty.d.ts +1 -1
  21. package/dist-types/components/Video/CustomPlayer.d.ts +1 -1
  22. package/dist-types/components/Video/EmbeddedVideoLightbox.d.ts +1 -1
  23. package/dist-types/components/Video/VimeoPlayer.d.ts +1 -1
  24. package/dist-types/components/Video/YoutubePlayer.d.ts +1 -1
  25. package/dist-types/layout/theme.d.ts +1 -1
  26. package/dist-types/layouts/WaykeComposite.d.ts +1 -1
  27. package/dist-types/providers/WaykeItemProvidet.d.ts +1 -1
  28. package/dist-types/providers/WaykeProvider.d.ts +1 -1
  29. package/dist-types/utils/pubsub/Actions.d.ts +5 -5
  30. package/dist-types/utils/pubsub/Events.d.ts +7 -7
  31. package/dist-types/utils/pubsub/pubsub.d.ts +2 -2
  32. package/dist-types/utils/sortOptions.d.ts +1 -1
  33. package/dist-types/utils/specification.d.ts +1 -1
  34. package/dist-web/index.js +78 -8
  35. package/dist-web/index.js.map +1 -1
  36. package/package.json +5 -4
  37. package/assets/ajax-loader.gif +0 -0
  38. package/assets/default.css +0 -1
  39. package/assets/fonts/slick.eot +0 -0
  40. package/assets/fonts/slick.svg +0 -14
  41. package/assets/fonts/slick.ttf +0 -0
  42. package/assets/fonts/slick.woff +0 -0
@@ -7,6 +7,6 @@ const FinancialOptions = ({ id, financialOptions }) => (React.createElement(Repe
7
7
  React.createElement(RepeatTiny, null,
8
8
  React.createElement(VisualHeading, null, "Andra finansieringsalternativ")),
9
9
  React.createElement(RepeatTiny, null, financialOptions.map((financialOption, index) => (React.createElement(Fragment, { key: index },
10
- financialOption.type === 'leasing' && React.createElement(Leasing, { financialOption: financialOption }),
10
+ (financialOption.type === 'leasing' || financialOption.type === 'business-leasing') && (React.createElement(Leasing, { financialOption: financialOption })),
11
11
  financialOption.type === 'loan' && React.createElement(Loan, { id: id, financialOption: financialOption })))))));
12
12
  export default FinancialOptions;
@@ -11,10 +11,11 @@ import DataList from '../DataList/index';
11
11
  const Leasing = ({ financialOption }) => {
12
12
  const [modal, setModal] = useState(false);
13
13
  const toggleModal = useCallback(() => setModal(!modal), [modal]);
14
- const { image, description, monthlyCost, duration, mileage } = financialOption;
14
+ const { image, description, monthlyCost, duration, mileage, type, name } = financialOption;
15
+ const title = type === 'leasing' ? 'Privatleasa' : type === 'business-leasing' ? 'Företagsleasa' : type;
15
16
  return (React.createElement(React.Fragment, null,
16
- modal && (React.createElement(Modal, { title: "Privatleasing", onClose: toggleModal },
17
- image && React.createElement(Image, { src: image, alt: "Privatleasing" }),
17
+ modal && (React.createElement(Modal, { title: title, onClose: toggleModal },
18
+ image && React.createElement(Image, { src: image, alt: title }),
18
19
  description && React.createElement(Content, { dangerouslySetInnerHTML: { __html: description } }),
19
20
  React.createElement(ModalFoldout, null,
20
21
  React.createElement(ModalFoldoutBody, null,
@@ -36,7 +37,7 @@ const Leasing = ({ financialOption }) => {
36
37
  React.createElement(React.Fragment, null, monthlyCost !== null && monthlyCost !== undefined && (React.createElement(OptionBoxHeading, null, `ca ${numberSeparator(monthlyCost)} kr/mån`))),
37
38
  React.createElement(OptionBoxContent, null,
38
39
  React.createElement("p", null,
39
- "Privatleasing",
40
+ title,
40
41
  ' ',
41
42
  mileage?.current && duration?.current && (React.createElement(React.Fragment, null,
42
43
  React.createElement(UtilityTextPrimary, null,
@@ -49,7 +50,7 @@ const Leasing = ({ financialOption }) => {
49
50
  " m\u00E5n"),
50
51
  ".",
51
52
  ' '))),
52
- React.createElement("p", null,
53
- React.createElement(ButtonInline, { onClick: toggleModal }, "L\u00E4s mer"))))));
53
+ name && (React.createElement("p", null,
54
+ React.createElement(ButtonInline, { onClick: toggleModal }, "L\u00E4s mer")))))));
54
55
  };
55
56
  export default Leasing;
@@ -99,6 +99,76 @@ export const SliderWrapper = styled.div `
99
99
  bottom: 0;
100
100
  left: 0;
101
101
  right: 0;
102
+ user-select: none;
103
+ touch-action: pan-y;
104
+ -webkit-tap-highlight-color: transparent;
105
+
106
+ .slick-list,
107
+ .slick-track {
108
+ transform: translate3d(0, 0, 0);
109
+ }
110
+ }
111
+
112
+ .slick-list {
113
+ position: relative;
114
+ display: block;
115
+ margin: 0;
116
+ padding: 0;
117
+ overflow: hidden;
118
+
119
+ &:focus {
120
+ outline: none;
121
+ }
122
+
123
+ &.dragging {
124
+ cursor: pointer;
125
+ cursor: hand;
126
+ }
127
+ }
128
+
129
+ .slick-track {
130
+ position: relative;
131
+ top: 0;
132
+ left: 0;
133
+ display: block;
134
+ margin-left: auto;
135
+ margin-right: auto;
136
+
137
+ &::before,
138
+ &::after {
139
+ content: '';
140
+ display: table;
141
+ }
142
+
143
+ &::after {
144
+ clear: both;
145
+ }
146
+ }
147
+
148
+ .slick-slide {
149
+ display: none;
150
+ float: left;
151
+ min-height: 1px;
152
+ }
153
+
154
+ .slick-loading {
155
+ .slick-track {
156
+ visibility: hidden;
157
+ }
158
+
159
+ img {
160
+ display: none;
161
+ }
162
+ }
163
+
164
+ .slick-initialized {
165
+ .slick-slide {
166
+ display: block;
167
+ }
168
+ }
169
+
170
+ .slick-slide.dragging img {
171
+ pointer-events: none;
102
172
  }
103
173
 
104
174
  ${(props) => props.theme.breakpoint.LtMd} {
@@ -111,7 +181,6 @@ export const SliderWrapper = styled.div `
111
181
 
112
182
  .slick-slide {
113
183
  border-right: ${size(1)} solid ${(props) => props.theme.color.bg};
114
- //transform: scale(0.95);
115
184
  transform-origin: 0 50%;
116
185
  transition: transform 150ms ease;
117
186
  }
@@ -1,18 +1,18 @@
1
- export declare type Maybe<T> = T | null;
2
- export declare type InputMaybe<T> = Maybe<T>;
3
- export declare type Exact<T extends {
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = Maybe<T>;
3
+ export type Exact<T extends {
4
4
  [key: string]: unknown;
5
5
  }> = {
6
6
  [K in keyof T]: T[K];
7
7
  };
8
- export declare type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
8
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
9
  [SubKey in K]?: Maybe<T[SubKey]>;
10
10
  };
11
- export declare type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
11
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
12
  [SubKey in K]: Maybe<T[SubKey]>;
13
13
  };
14
14
  /** All built-in and custom scalars, mapped to their actual values */
15
- export declare type Scalars = {
15
+ export type Scalars = {
16
16
  ID: string;
17
17
  String: string;
18
18
  Boolean: boolean;
@@ -36,7 +36,7 @@ export declare type Scalars = {
36
36
  };
37
37
  VehicleDataPropertySet: any;
38
38
  };
39
- export declare type Branch = {
39
+ export type Branch = {
40
40
  __typename?: 'Branch';
41
41
  connections: Array<BranchConnection>;
42
42
  contact?: Maybe<ContactOptions>;
@@ -52,20 +52,20 @@ export declare type Branch = {
52
52
  promos: Array<Promo>;
53
53
  services: Array<Service>;
54
54
  };
55
- export declare type BranchConnection = {
55
+ export type BranchConnection = {
56
56
  __typename?: 'BranchConnection';
57
57
  id: Scalars['ID'];
58
58
  location?: Maybe<Location>;
59
59
  name?: Maybe<Scalars['String']>;
60
60
  };
61
- export declare type BranchFlags = {
61
+ export type BranchFlags = {
62
62
  __typename?: 'BranchFlags';
63
63
  authorizedReseller?: Maybe<Scalars['Boolean']>;
64
64
  centralStorage?: Maybe<Scalars['Boolean']>;
65
65
  ecommerce?: Maybe<Scalars['Boolean']>;
66
66
  mrf?: Maybe<Scalars['Boolean']>;
67
67
  };
68
- export declare type ContactOptions = {
68
+ export type ContactOptions = {
69
69
  __typename?: 'ContactOptions';
70
70
  avatar?: Maybe<Scalars['URL']>;
71
71
  email?: Maybe<Scalars['Email']>;
@@ -79,14 +79,14 @@ export declare enum DrivingDistance {
79
79
  Between2000And2500 = "BETWEEN2000AND2500",
80
80
  Over2500 = "OVER2500"
81
81
  }
82
- export declare type Ecommerce = {
82
+ export type Ecommerce = {
83
83
  __typename?: 'Ecommerce';
84
84
  enabled?: Maybe<Scalars['Boolean']>;
85
85
  reserved?: Maybe<Scalars['Boolean']>;
86
86
  withHomeDelivery?: Maybe<Scalars['Boolean']>;
87
87
  withTradeIn?: Maybe<Scalars['Boolean']>;
88
88
  };
89
- export declare type FinancialOption = {
89
+ export type FinancialOption = {
90
90
  __typename?: 'FinancialOption';
91
91
  administrationFee?: Maybe<Scalars['Float']>;
92
92
  description?: Maybe<Scalars['String']>;
@@ -111,7 +111,7 @@ export declare type FinancialOption = {
111
111
  type: Scalars['String'];
112
112
  url?: Maybe<Scalars['URL']>;
113
113
  };
114
- export declare type FinancialOptionDetail = {
114
+ export type FinancialOptionDetail = {
115
115
  __typename?: 'FinancialOptionDetail';
116
116
  current: Scalars['Float'];
117
117
  default: Scalars['Float'];
@@ -124,12 +124,12 @@ export declare enum FinancialOptionInclusion {
124
124
  IncludesService = "INCLUDES_SERVICE",
125
125
  IncludesWintertires = "INCLUDES_WINTERTIRES"
126
126
  }
127
- export declare type HoursOpen = {
127
+ export type HoursOpen = {
128
128
  __typename?: 'HoursOpen';
129
129
  from?: Maybe<Scalars['Time']>;
130
130
  until?: Maybe<Scalars['Time']>;
131
131
  };
132
- export declare type Insurance = {
132
+ export type Insurance = {
133
133
  __typename?: 'Insurance';
134
134
  addons: Array<InsuranceAddon>;
135
135
  description: Scalars['String'];
@@ -142,7 +142,7 @@ export declare type Insurance = {
142
142
  unit: Scalars['String'];
143
143
  url?: Maybe<Scalars['URL']>;
144
144
  };
145
- export declare type InsuranceAddon = {
145
+ export type InsuranceAddon = {
146
146
  __typename?: 'InsuranceAddon';
147
147
  description?: Maybe<Scalars['String']>;
148
148
  exclusions: Array<Scalars['String']>;
@@ -151,17 +151,17 @@ export declare type InsuranceAddon = {
151
151
  title?: Maybe<Scalars['String']>;
152
152
  unit: Scalars['String'];
153
153
  };
154
- export declare type InsuranceItem = {
154
+ export type InsuranceItem = {
155
155
  __typename?: 'InsuranceItem';
156
156
  description?: Maybe<Scalars['String']>;
157
157
  name?: Maybe<Scalars['String']>;
158
158
  };
159
- export declare type InsuranceLegality = {
159
+ export type InsuranceLegality = {
160
160
  __typename?: 'InsuranceLegality';
161
161
  description?: Maybe<Scalars['String']>;
162
162
  url?: Maybe<Scalars['URL']>;
163
163
  };
164
- export declare type InsuranceOption = {
164
+ export type InsuranceOption = {
165
165
  __typename?: 'InsuranceOption';
166
166
  description?: Maybe<Scalars['String']>;
167
167
  identifier?: Maybe<Scalars['String']>;
@@ -177,12 +177,12 @@ export declare type InsuranceOption = {
177
177
  terms?: Maybe<Scalars['URL']>;
178
178
  url?: Maybe<Scalars['URL']>;
179
179
  };
180
- export declare type Link = {
180
+ export type Link = {
181
181
  __typename?: 'Link';
182
182
  title?: Maybe<Scalars['String']>;
183
183
  url?: Maybe<Scalars['URL']>;
184
184
  };
185
- export declare type Location = {
185
+ export type Location = {
186
186
  __typename?: 'Location';
187
187
  city?: Maybe<Scalars['String']>;
188
188
  county?: Maybe<Scalars['String']>;
@@ -190,29 +190,29 @@ export declare type Location = {
190
190
  postalCode?: Maybe<Scalars['String']>;
191
191
  streetAddress?: Maybe<Scalars['String']>;
192
192
  };
193
- export declare type Manufacturer = {
193
+ export type Manufacturer = {
194
194
  __typename?: 'Manufacturer';
195
195
  description?: Maybe<Scalars['String']>;
196
196
  logotype?: Maybe<Scalars['URL']>;
197
197
  name: Scalars['String'];
198
198
  packageOption?: Maybe<PackageOption>;
199
199
  };
200
- export declare type Media = {
200
+ export type Media = {
201
201
  __typename?: 'Media';
202
202
  files: Array<MediaFile>;
203
203
  type: Scalars['String'];
204
204
  };
205
- export declare type MediaFile = {
205
+ export type MediaFile = {
206
206
  __typename?: 'MediaFile';
207
207
  formats: Array<Maybe<MediaFileFormat>>;
208
208
  url: Scalars['URL'];
209
209
  };
210
- export declare type MediaFileFormat = {
210
+ export type MediaFileFormat = {
211
211
  __typename?: 'MediaFileFormat';
212
212
  format: Scalars['String'];
213
213
  url: Scalars['URL'];
214
214
  };
215
- export declare type OpeningHours = {
215
+ export type OpeningHours = {
216
216
  __typename?: 'OpeningHours';
217
217
  friday?: Maybe<HoursOpen>;
218
218
  monday?: Maybe<HoursOpen>;
@@ -222,7 +222,7 @@ export declare type OpeningHours = {
222
222
  tuesday?: Maybe<HoursOpen>;
223
223
  wednesday?: Maybe<HoursOpen>;
224
224
  };
225
- export declare type Organization = {
225
+ export type Organization = {
226
226
  __typename?: 'Organization';
227
227
  branches: Array<Maybe<Branch>>;
228
228
  contact?: Maybe<ContactOptions>;
@@ -234,65 +234,65 @@ export declare type Organization = {
234
234
  name?: Maybe<Scalars['String']>;
235
235
  parent?: Maybe<Branch>;
236
236
  };
237
- export declare type PackageOption = {
237
+ export type PackageOption = {
238
238
  __typename?: 'PackageOption';
239
239
  description?: Maybe<Scalars['String']>;
240
240
  image?: Maybe<Scalars['URL']>;
241
241
  link?: Maybe<Link>;
242
242
  title?: Maybe<Scalars['String']>;
243
243
  };
244
- export declare type Position = {
244
+ export type Position = {
245
245
  __typename?: 'Position';
246
246
  latitude?: Maybe<Scalars['Float']>;
247
247
  longitude?: Maybe<Scalars['Float']>;
248
248
  };
249
- export declare type Promo = {
249
+ export type Promo = {
250
250
  __typename?: 'Promo';
251
251
  description?: Maybe<Scalars['String']>;
252
252
  image?: Maybe<Scalars['URL']>;
253
253
  link?: Maybe<Link>;
254
254
  title?: Maybe<Scalars['String']>;
255
255
  };
256
- export declare type Query = {
256
+ export type Query = {
257
257
  __typename?: 'Query';
258
258
  branch?: Maybe<Branch>;
259
259
  insurances: Array<Insurance>;
260
260
  loan?: Maybe<FinancialOption>;
261
261
  vehicle?: Maybe<Vehicle>;
262
262
  };
263
- export declare type QueryBranchArgs = {
263
+ export type QueryBranchArgs = {
264
264
  id: Scalars['ID'];
265
265
  };
266
- export declare type QueryInsurancesArgs = {
266
+ export type QueryInsurancesArgs = {
267
267
  branch?: InputMaybe<Scalars['ID']>;
268
268
  drivingDistance: DrivingDistance;
269
269
  id: Scalars['ID'];
270
270
  personalNumber: Scalars['PersonalNumber'];
271
271
  };
272
- export declare type QueryLoanArgs = {
272
+ export type QueryLoanArgs = {
273
273
  branch?: InputMaybe<Scalars['ID']>;
274
274
  downPayment: Scalars['Int'];
275
275
  duration: Scalars['Int'];
276
276
  id: Scalars['ID'];
277
277
  residual: Scalars['Float'];
278
278
  };
279
- export declare type QueryVehicleArgs = {
279
+ export type QueryVehicleArgs = {
280
280
  branch?: InputMaybe<Scalars['ID']>;
281
281
  id: Scalars['ID'];
282
282
  };
283
- export declare type SafetyOption = {
283
+ export type SafetyOption = {
284
284
  __typename?: 'SafetyOption';
285
285
  content?: Maybe<Scalars['String']>;
286
286
  image?: Maybe<Scalars['URL']>;
287
287
  name?: Maybe<Scalars['String']>;
288
288
  title?: Maybe<Scalars['String']>;
289
289
  };
290
- export declare type Service = {
290
+ export type Service = {
291
291
  __typename?: 'Service';
292
292
  markdown?: Maybe<Scalars['String']>;
293
293
  title?: Maybe<Scalars['String']>;
294
294
  };
295
- export declare type Vehicle = {
295
+ export type Vehicle = {
296
296
  __typename?: 'Vehicle';
297
297
  availableFrom?: Maybe<Scalars['DateTime']>;
298
298
  branch?: Maybe<Branch>;
@@ -316,7 +316,7 @@ export declare type Vehicle = {
316
316
  shortDescription?: Maybe<Scalars['String']>;
317
317
  title: Scalars['String'];
318
318
  };
319
- export declare type VehicleData = {
319
+ export type VehicleData = {
320
320
  __typename?: 'VehicleData';
321
321
  enginePower?: Maybe<Scalars['Float']>;
322
322
  equipmentLevel?: Maybe<Scalars['String']>;
@@ -336,17 +336,17 @@ export declare type VehicleData = {
336
336
  salesName?: Maybe<Scalars['String']>;
337
337
  vin?: Maybe<Scalars['String']>;
338
338
  };
339
- export declare type VehicleDataPropertySetArgs = {
339
+ export type VehicleDataPropertySetArgs = {
340
340
  category?: InputMaybe<Scalars['String']>;
341
341
  properties?: InputMaybe<Array<Scalars['String']>>;
342
342
  };
343
- export declare type VehicleFlags = {
343
+ export type VehicleFlags = {
344
344
  __typename?: 'VehicleFlags';
345
345
  auction?: Maybe<Scalars['Boolean']>;
346
346
  demoVersion?: Maybe<Scalars['Boolean']>;
347
347
  testDrive?: Maybe<Scalars['Boolean']>;
348
348
  };
349
- export declare type _Service = {
349
+ export type _Service = {
350
350
  __typename?: '_Service';
351
351
  sdl: Scalars['String'];
352
352
  };
@@ -1,5 +1,5 @@
1
- export declare type SearchFilterNameTypes = 'manufacturer' | 'modelSeries' | 'fuelType' | 'gearboxType' | 'branch' | 'color' | 'environmentClass' | 'properties.segment' | 'drivingWheel' | 'price' | 'mileage' | 'modelYear' | 'leasingPrice' | 'businessLeasingPrice';
2
- export declare type SearchFilterTypes = {
1
+ export type SearchFilterNameTypes = 'manufacturer' | 'modelSeries' | 'fuelType' | 'gearboxType' | 'branch' | 'color' | 'environmentClass' | 'properties.segment' | 'drivingWheel' | 'price' | 'mileage' | 'modelYear' | 'leasingPrice' | 'businessLeasingPrice';
2
+ export type SearchFilterTypes = {
3
3
  filterName: SearchFilterNameTypes;
4
4
  displayName?: string;
5
5
  };
@@ -1,9 +1,9 @@
1
1
  import { BaseAction } from '../../@types/action';
2
2
  export declare const SET_PATH = "SET_PATH";
3
- declare type SET_PATH_TYPE = BaseAction<typeof SET_PATH> & {
3
+ type SET_PATH_TYPE = BaseAction<typeof SET_PATH> & {
4
4
  path: string;
5
5
  };
6
- declare type PathAction = SET_PATH_TYPE;
6
+ type PathAction = SET_PATH_TYPE;
7
7
  interface PathState {
8
8
  path: string;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
2
+ type Props = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
3
3
  small?: boolean;
4
4
  };
5
5
  declare const Content: ({ children, small, dangerouslySetInnerHTML }: Props) => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- declare type SharedIconProps = {
2
+ type SharedIconProps = {
3
3
  block?: boolean;
4
4
  };
5
- declare type IconInfoProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & SharedIconProps;
5
+ type IconInfoProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & SharedIconProps;
6
6
  export declare const IconInfo: ({ block }: IconInfoProps) => JSX.Element;
7
7
  export declare const IconCancel: ({ block }: IconInfoProps) => JSX.Element;
8
8
  export declare const IconChevronDown: ({ block }: IconInfoProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
2
+ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
3
3
  id: string;
4
4
  children: React.ReactNode;
5
5
  };
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- declare type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
- declare type Props = InputProps & {
2
+ type InputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
+ type Props = InputProps & {
4
4
  placeholder: string;
5
5
  label: string;
6
6
  value?: string;
7
7
  id: string;
8
8
  onSearch: () => void;
9
9
  };
10
- declare const InputSearch: React.ForwardRefExoticComponent<Pick<Props, "label" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "onSearch"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const InputSearch: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
11
  export default InputSearch;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
2
+ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
3
3
  value: string;
4
4
  placeholder: string;
5
5
  label: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url: string;
4
4
  preview: string;
5
5
  navigationDisabled: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url: string;
4
4
  };
5
5
  declare const SphereLightbox: ({ url }: PropsType) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  id: string;
4
4
  src: string;
5
5
  preview: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  children: React.ReactNode;
4
4
  };
5
5
  declare const Rotation: ({ children }: PropsType) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  urls: string[];
4
4
  };
5
5
  declare const ThreeSixtyLightbox: ({ urls }: PropsType) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  urls: string[];
4
4
  navigationDisabled: boolean;
5
5
  visible: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url?: string;
4
4
  modal?: boolean;
5
5
  controls?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url: string;
4
4
  autoplay?: boolean;
5
5
  controls?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url: string;
4
4
  autoplay: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type PropsType = {
2
+ type PropsType = {
3
3
  url: string;
4
4
  autoplay: boolean;
5
5
  };
@@ -37,5 +37,5 @@ declare const theme: {
37
37
  containerMaxWidth: string;
38
38
  };
39
39
  };
40
- export declare type Theme = typeof theme;
40
+ export type Theme = typeof theme;
41
41
  export default theme;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { WaykeSearchProps } from './search/index';
3
3
  import { WaykeSearchItemProps } from './searchItem/index';
4
- export declare type WaykeCompositeProps = Omit<WaykeSearchProps & WaykeSearchItemProps, 'id'>;
4
+ export type WaykeCompositeProps = Omit<WaykeSearchProps & WaykeSearchItemProps, 'id'>;
5
5
  declare const WaykeComposite: ({ filterList, initialQueryParams, removeSearchBar, removeFilterOptions, disableResetScrollOnInit, placeholderImage, pathRoute, modifyDocumentTitleItem, modifyDocumentTitleSearch, displayBranchName, }: WaykeCompositeProps) => JSX.Element;
6
6
  export default WaykeComposite;
@@ -15,7 +15,7 @@ export interface WaykeItemProviderSettings {
15
15
  googleMapsApiKey?: string;
16
16
  googleMapsMarker?: string;
17
17
  }
18
- export declare type WaykeItemProviderProps = WaykeItemProviderSettings & {
18
+ export type WaykeItemProviderProps = WaykeItemProviderSettings & {
19
19
  children?: React.ReactNode;
20
20
  };
21
21
  declare const WaykeItemProvider: ({ url, urlMlt, apiKey, ecomSettings, graphQlUrl, googleMapsApiKey, googleMapsMarker, children, }: WaykeItemProviderProps) => JSX.Element;
@@ -17,7 +17,7 @@ export interface WaykeProviderSettings {
17
17
  useQueryParamsFromUrl?: boolean;
18
18
  pathRoute?: string;
19
19
  }
20
- export declare type WaykeProviderProps = WaykeProviderSettings & {
20
+ export type WaykeProviderProps = WaykeProviderSettings & {
21
21
  children?: React.ReactNode;
22
22
  };
23
23
  declare const WaykeProvider: ({ url, urlMlt, apiKey, ecomSettings, graphQlUrl, googleMapsApiKey, googleMapsMarker, useQueryParamsFromUrl, pathRoute, children, }: WaykeProviderProps) => JSX.Element;
@@ -2,15 +2,15 @@ interface ActionBase<Callback> {
2
2
  actionName: ActionNames;
3
3
  callback: Callback;
4
4
  }
5
- export declare type ActionCallbackEmpty = () => void;
6
- export declare type CallbackOnFilterUpdate = (query: string) => void;
5
+ export type ActionCallbackEmpty = () => void;
6
+ export type CallbackOnFilterUpdate = (query: string) => void;
7
7
  export interface ActionOnFilterUpdate extends ActionBase<CallbackOnFilterUpdate> {
8
8
  actionName: 'onFilterUpdate';
9
9
  }
10
- export declare type ActionCallbackAll = (eventName: Omit<ActionNames, 'All'>, data: any) => void;
10
+ export type ActionCallbackAll = (eventName: Omit<ActionNames, 'All'>, data: any) => void;
11
11
  export interface ActionAll extends ActionBase<ActionCallbackAll> {
12
12
  actionName: 'All';
13
13
  }
14
- export declare type ActionTypes = ActionOnFilterUpdate | ActionAll;
15
- export declare type ActionNames = Pick<ActionTypes, 'actionName'>['actionName'];
14
+ export type ActionTypes = ActionOnFilterUpdate | ActionAll;
15
+ export type ActionNames = Pick<ActionTypes, 'actionName'>['actionName'];
16
16
  export {};