@4alldigital/foundation-ui--gamma 1.61.0 → 1.62.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.
@@ -1,6 +1,6 @@
1
1
  import { Props } from './Button.types';
2
2
  declare const Button: {
3
- ({ variant, size, type, wide, rounded, raised, uppercase, children, id, disabled, ariaLabel, onClick, icon, external, iconFirst, outline, testID, className, isLoading, }: Props): React.ReactElement;
3
+ ({ variant, size, type, wide, rounded, raised, uppercase, children, id, disabled, ariaLabel, onClick, icon, external, iconFirst, outline, testID, className, isLoading, offsetFont, }: Props): React.ReactElement;
4
4
  displayName: string;
5
5
  };
6
6
  export default Button;
@@ -36,4 +36,5 @@ export interface Props {
36
36
  className?: string;
37
37
  isLoading?: boolean;
38
38
  iconOnly?: boolean;
39
+ offsetFont?: boolean;
39
40
  }
@@ -63,6 +63,7 @@ export interface CardData {
63
63
  raised?: boolean;
64
64
  htmlDetails?: boolean;
65
65
  accessRestriced?: boolean;
66
+ titleOverlay?: boolean;
66
67
  }
67
68
  export interface Props {
68
69
  variant?: CardVariant;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './CardBasic.types';
3
3
  declare const CardBasic: {
4
- ({ id, title, description, image, className, metaData, actions, padded, scaleOnHover, onClick, htmlDetails, }: Props): React.ReactElement;
4
+ ({ id, title, description, image, className, metaData, actions, padded, scaleOnHover, onClick, htmlDetails, titleOverlay, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default CardBasic;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './Carousel.types';
3
3
  declare const Carousel: {
4
- ({ testID, data, onPressCallback, count, isCentered, carouselOptions, customRender, }: Props): React.ReactElement;
4
+ ({ testID, data, onPressCallback, isCentered, carouselOptions, customRender, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default Carousel;
@@ -3,10 +3,10 @@ export interface Props {
3
3
  testID?: string;
4
4
  data: CardProps[] | any[];
5
5
  onPressCallback?: (arg: any) => void;
6
- count?: number;
7
6
  isCentered?: boolean;
8
7
  carouselOptions?: {
9
8
  loop?: boolean;
9
+ slidesToShow?: number;
10
10
  vertical?: boolean;
11
11
  autoPlay?: boolean;
12
12
  scrollAnimationDuration?: number;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Cart.types';
3
+ declare const Cart: {
4
+ ({ testID, isCheckout }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Cart;
8
+ export type { Props };
@@ -0,0 +1,4 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ isCheckout?: boolean;
4
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Cart';
@@ -57,6 +57,7 @@ interface AppContextProps {
57
57
  loginCallback?: () => void;
58
58
  logoutCallback?: () => void;
59
59
  isAuthenticated?: boolean;
60
+ showCart?: boolean;
60
61
  };
61
62
  }
62
63
  export declare const AppContext: React.Context<AppContextProps>;
@@ -0,0 +1,43 @@
1
+ import { ReactNode } from 'react';
2
+ interface ContextProps {
3
+ value: {
4
+ items?: {
5
+ uuid: string;
6
+ title: string;
7
+ image: string;
8
+ options?: {
9
+ usage?: string | null;
10
+ selectedPrice?: number | null;
11
+ selectedLicense?: string | null;
12
+ };
13
+ }[];
14
+ taxRate?: {
15
+ country: string;
16
+ percentage: number;
17
+ };
18
+ taxAmount?: number;
19
+ promoCode?: {
20
+ code: string;
21
+ name: string;
22
+ discount: string;
23
+ discountedAmount: number;
24
+ };
25
+ currency?: {
26
+ symbol: string;
27
+ code: string;
28
+ showCode?: boolean;
29
+ };
30
+ cartTotal?: string;
31
+ };
32
+ handleRemoveFromCart?: (uuid: string) => void;
33
+ handleRemovePromoCode?: (uuid: string) => void;
34
+ handleCheckout?: () => void;
35
+ handleItemClick?: (uuid: string) => void;
36
+ }
37
+ interface CartProviderProps {
38
+ children: ReactNode;
39
+ data: ContextProps;
40
+ }
41
+ export declare const CartProvider: ({ children, data }: CartProviderProps) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const useCartContext: () => ContextProps;
43
+ export default CartProvider;
@@ -4,3 +4,5 @@ export * from './App';
4
4
  export { default as AppProvider } from './App';
5
5
  export * from './Amplify';
6
6
  export { default as AmplifyProvider } from './Amplify';
7
+ export * from './Cart';
8
+ export { default as CartProvider } from './Cart';
@@ -161,6 +161,73 @@ declare const strings: {
161
161
  AUTH_API_ERROR: string;
162
162
  AUTH_ACCOUNT_EXISTS_MESSAGE: string;
163
163
  };
164
+ CURRENCIES: {
165
+ USD: string;
166
+ GBP: string;
167
+ EUR: string;
168
+ AUD: string;
169
+ CAD: string;
170
+ NZD: string;
171
+ JPY: string;
172
+ CNY: string;
173
+ INR: string;
174
+ RUB: string;
175
+ ZAR: string;
176
+ BRL: string;
177
+ MXN: string;
178
+ ARS: string;
179
+ CLP: string;
180
+ COP: string;
181
+ PEN: string;
182
+ VEF: string;
183
+ UYU: string;
184
+ BOB: string;
185
+ PYG: string;
186
+ DOP: string;
187
+ GTQ: string;
188
+ HNL: string;
189
+ NIO: string;
190
+ CRC: string;
191
+ SVC: string;
192
+ BZD: string;
193
+ BSD: string;
194
+ JMD: string;
195
+ KYD: string;
196
+ TTD: string;
197
+ XCD: string;
198
+ ANG: string;
199
+ AWG: string;
200
+ BBD: string;
201
+ BMD: string;
202
+ BND: string;
203
+ FJD: string;
204
+ GYD: string;
205
+ LRD: string;
206
+ NAD: string;
207
+ PGK: string;
208
+ SBD: string;
209
+ SRD: string;
210
+ TWD: string;
211
+ VUV: string;
212
+ WST: string;
213
+ KHR: string;
214
+ LAK: string;
215
+ MMK: string;
216
+ MOP: string;
217
+ MVR: string;
218
+ NPR: string;
219
+ PKR: string;
220
+ PHP: string;
221
+ SCR: string;
222
+ LKR: string;
223
+ THB: string;
224
+ IDR: string;
225
+ MYR: string;
226
+ SGD: string;
227
+ KRW: string;
228
+ KZT: string;
229
+ UZS: string;
230
+ };
164
231
  UI: {
165
232
  NEXT_WEEKS_CLASS: string;
166
233
  SHOW: string;
@@ -530,6 +597,24 @@ declare const strings: {
530
597
  REQUEST_PROMO_INFO: string;
531
598
  LOGGING_OUT: string;
532
599
  LAUNCH_PLAYBACK: string;
600
+ WATCH_NOW: string;
601
+ PLAY_NOW: string;
602
+ WATCH_LIVE: string;
603
+ PLAY_LIVE: string;
604
+ WATCH: string;
605
+ PLAY: string;
606
+ VIEW_ALL: string;
607
+ VIEW_MORE: string;
608
+ VIEW_LESS: string;
609
+ VIEW_DETAILS: string;
610
+ CONTINUE_SHOPPING: string;
611
+ CHECKOUT: string;
612
+ TOTAL: string;
613
+ TAX: string;
614
+ TAX_DUE: string;
615
+ PROMO_CODE: string;
616
+ EMPTY: string;
617
+ ORDERING: string;
533
618
  };
534
619
  ERRORS: {
535
620
  GENERIC_ERROR: string;
@@ -2,8 +2,8 @@ declare const fonts: {
2
2
  sans: string[];
3
3
  serif: string[];
4
4
  mono: string[];
5
- display: string[];
6
5
  body: string[];
7
6
  heading: string[];
7
+ display: string[];
8
8
  };
9
9
  export default fonts;
@@ -3,10 +3,10 @@ declare const theme: {
3
3
  fontFamily: {
4
4
  body: string[];
5
5
  heading: string[];
6
+ display: string[];
6
7
  sans: string[];
7
8
  serif: string[];
8
9
  mono: string[];
9
- display: string[];
10
10
  };
11
11
  fontSize: {
12
12
  xs: (string | {
@@ -1,9 +1,9 @@
1
1
  declare const fonts: {
2
2
  body: string[];
3
3
  heading: string[];
4
+ display: string[];
4
5
  sans: string[];
5
6
  serif: string[];
6
7
  mono: string[];
7
- display: string[];
8
8
  };
9
9
  export default fonts;
@@ -173,35 +173,6 @@ declare const settings: {
173
173
  extrabold: string;
174
174
  black: string;
175
175
  };
176
- screens: {
177
- sm: string;
178
- md: string;
179
- lg: string;
180
- xl: string;
181
- };
182
- spacing: {
183
- px: string;
184
- 0: string;
185
- 1: string;
186
- 2: string;
187
- 3: string;
188
- 4: string;
189
- 5: string;
190
- 6: string;
191
- 8: string;
192
- 10: string;
193
- 11: string;
194
- 12: string;
195
- 16: string;
196
- 20: string;
197
- 24: string;
198
- 32: string;
199
- 40: string;
200
- 48: string;
201
- 56: string;
202
- 64: string;
203
- 128: string;
204
- };
205
176
  fontSize: {
206
177
  xs: (string | {
207
178
  lineHeight: string;
@@ -243,6 +214,35 @@ declare const settings: {
243
214
  lineHeight: string;
244
215
  })[];
245
216
  };
217
+ screens: {
218
+ sm: string;
219
+ md: string;
220
+ lg: string;
221
+ xl: string;
222
+ };
223
+ spacing: {
224
+ px: string;
225
+ 0: string;
226
+ 1: string;
227
+ 2: string;
228
+ 3: string;
229
+ 4: string;
230
+ 5: string;
231
+ 6: string;
232
+ 8: string;
233
+ 10: string;
234
+ 11: string;
235
+ 12: string;
236
+ 16: string;
237
+ 20: string;
238
+ 24: string;
239
+ 32: string;
240
+ 40: string;
241
+ 48: string;
242
+ 56: string;
243
+ 64: string;
244
+ 128: string;
245
+ };
246
246
  extend: {
247
247
  gridTemplateColumns: {
248
248
  headerMd: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.61.0",
3
+ "version": "1.62.0",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -39,7 +39,7 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "8360bbc0ac3ef9fdcda976b0b56f2dedd88cfcae",
42
+ "gitHead": "8bec41ed3de7e9d1a8deb2795c6cf2c00b231b34",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",