@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.
- package/dist/foundation-ui.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/lib/components/Button/Button.d.ts +1 -1
- package/dist/types/lib/components/Button/Button.types.d.ts +1 -0
- package/dist/types/lib/components/Card/Card.types.d.ts +1 -0
- package/dist/types/lib/components/Card/types/CardBasic/CardBasic.d.ts +1 -1
- package/dist/types/lib/components/Carousel/Carousel.d.ts +1 -1
- package/dist/types/lib/components/Carousel/Carousel.types.d.ts +1 -1
- package/dist/types/lib/components/Cart/Cart.d.ts +8 -0
- package/dist/types/lib/components/Cart/Cart.types.d.ts +4 -0
- package/dist/types/lib/components/Cart/index.d.ts +1 -0
- package/dist/types/lib/context/App/index.d.ts +1 -0
- package/dist/types/lib/context/Cart/index.d.ts +43 -0
- package/dist/types/lib/context/index.d.ts +2 -0
- package/dist/types/lib/translations/en.d.ts +85 -0
- package/dist/types/packages/default/theme/styles/fonts/fonts.themes.d.ts +1 -1
- package/dist/types/packages/gamma/theme/index.d.ts +1 -1
- package/dist/types/packages/gamma/theme/styles/fonts/fonts.themes.d.ts +1 -1
- package/dist/types/packages/gamma/theme/styles/settings/settings.themes.d.ts +29 -29
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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,
|
|
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 @@
|
|
|
1
|
+
export { default } from './Cart';
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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.
|
|
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": "
|
|
42
|
+
"gitHead": "8bec41ed3de7e9d1a8deb2795c6cf2c00b231b34",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@elastic/datemath": "^5.0.3",
|
|
45
45
|
"@elastic/react-search-ui": "^1.21.5",
|