@oanda/labs-widget-common 1.0.219 → 1.0.221

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 (31) hide show
  1. package/CHANGELOG.md +1740 -0
  2. package/dist/main/components/Disclaimer/Disclaimer.js +30 -28
  3. package/dist/main/components/Disclaimer/Disclaimer.js.map +1 -1
  4. package/dist/main/components/WidgetWrapper/WidgetWrapper.js +7 -2
  5. package/dist/main/components/WidgetWrapper/WidgetWrapper.js.map +1 -1
  6. package/dist/main/tailwind/colors.js +3 -1
  7. package/dist/main/tailwind/colors.js.map +1 -1
  8. package/dist/main/tailwind/preset.js +2 -1
  9. package/dist/main/tailwind/preset.js.map +1 -1
  10. package/dist/main/utils/getLocale.js +8 -2
  11. package/dist/main/utils/getLocale.js.map +1 -1
  12. package/dist/module/components/Disclaimer/Disclaimer.js +28 -27
  13. package/dist/module/components/Disclaimer/Disclaimer.js.map +1 -1
  14. package/dist/module/components/WidgetWrapper/WidgetWrapper.js +7 -2
  15. package/dist/module/components/WidgetWrapper/WidgetWrapper.js.map +1 -1
  16. package/dist/module/tailwind/colors.js +3 -1
  17. package/dist/module/tailwind/colors.js.map +1 -1
  18. package/dist/module/tailwind/preset.js +2 -1
  19. package/dist/module/tailwind/preset.js.map +1 -1
  20. package/dist/module/utils/getLocale.js +8 -2
  21. package/dist/module/utils/getLocale.js.map +1 -1
  22. package/dist/types/components/Disclaimer/Disclaimer.d.ts +5 -1
  23. package/dist/types/components/WidgetWrapper/WidgetWrapper.d.ts +5 -0
  24. package/dist/types/tailwind/colors.d.ts +4 -0
  25. package/package.json +2 -2
  26. package/src/components/Disclaimer/Disclaimer.tsx +80 -42
  27. package/src/components/WidgetWrapper/WidgetWrapper.tsx +10 -0
  28. package/src/tailwind/colors.ts +2 -0
  29. package/src/tailwind/preset.ts +1 -0
  30. package/src/utils/getLocale.ts +18 -1
  31. package/test/utils/getLocale.test.ts +3 -3
@@ -4,64 +4,66 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Disclaimer = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _images = require("../../images");
9
9
  var _providers = require("../../providers");
10
10
  var _tailwind = require("../../tailwind");
11
11
  var _types = require("../../types");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const disclaimerStyles = {
14
- dark: {
15
- wrapperStyle: 'lw-h-6 lw-bg-[#262F3C]',
16
- borderStyle: 'lw-border-[#262F3C]'
17
- },
18
- light: {
19
- wrapperStyle: 'lw-shadow-[0_2px_8px_0_rgba(0,33,74,0.25)]',
20
- borderStyle: 'lw-border-[#e6e6e6]'
21
- }
22
- };
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
14
  const Disclaimer = _ref => {
24
15
  let {
25
16
  children,
26
17
  logoLink,
27
18
  brandingSpace,
28
19
  fitContent = false,
29
- linkArea = 'full'
20
+ linkArea = 'full',
21
+ text,
22
+ isSlim,
23
+ infoButtonPosition = 'top'
30
24
  } = _ref;
31
25
  const {
32
26
  theme
33
27
  } = (0, _providers.useLayoutProvider)();
34
- if (!logoLink) {
28
+ const isDark = theme === _types.Theme.Dark;
29
+ const [isLogoHovered, setIsLogoHovered] = (0, _react.useState)(false);
30
+ const [isInfoHovered, setIsInfoHovered] = (0, _react.useState)(false);
31
+ if (!logoLink && !text) {
35
32
  return children;
36
33
  }
37
- const isDark = theme !== 'light';
38
34
  const isClickable = linkArea === 'full';
39
- const {
40
- wrapperStyle,
41
- borderStyle
42
- } = disclaimerStyles[theme ?? _types.Theme.Light];
43
35
  return _react.default.createElement("div", {
44
- className: (0, _tailwind.cn)('lw-relative lw-overflow-hidden', isClickable && 'lw-cursor-pointer', brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-2', !!fitContent && 'lw-w-fit'),
36
+ className: (0, _tailwind.cn)('lw-relative lw-overflow-hidden', isClickable && 'lw-cursor-pointer', brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-0', !!fitContent && 'lw-w-fit'),
45
37
  "data-testid": "disclaimer-wrapper",
46
38
  role: "presentation",
47
39
  onClick: () => isClickable && window.open(logoLink, '_blank')
48
- }, children, _react.default.createElement("div", {
49
- className: (0, _tailwind.cn)('lw-absolute lw-z-20 lw-bottom-3 lw-right-1 lw-translate-x-[3.7rem] lw-rounded-l-full lw-transition lw-delay-150 lw-duration-300 lw-ease-in-out hover:lw-translate-x-2 [&:hover+div]:lw-translate-x-[3.7rem]', wrapperStyle)
50
- }, _react.default.createElement("div", {
51
- className: "lw-cursor-pointer",
40
+ }, children, text && _react.default.createElement("div", {
41
+ className: (0, _tailwind.cn)('lw-absolute lw-right-0 lw-top-0 lw-z-30 lw-flex lw-h-full lw-items-center lw-bg-border-primary lw-bg-opacity-90 lw-p-3 lw-text-sm lw-text-text-primary lw-delay-150 lw-duration-150 lw-ease-in-out', isInfoHovered && 'lw-opacity-100', !isInfoHovered && 'lw-opacity-0 lw-pointer-events-none'),
42
+ onBlur: () => setIsInfoHovered(false),
43
+ onMouseOut: () => setIsInfoHovered(false)
44
+ }, text), _react.default.createElement("div", {
45
+ className: (0, _tailwind.cn)('lw-absolute lw-bottom-3 lw-right-0 lw-z-20 lw-flex lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out', logoLink && !isLogoHovered && infoButtonPosition === 'left' && 'lw-translate-x-[55px]', isSlim && 'lw-bottom-[6px]', !isSlim && 'lw-bottom-2', infoButtonPosition === 'left' && 'lw-flex-row lw-items-center', infoButtonPosition === 'top' && 'lw-flex-col lw-items-end')
46
+ }, text && _react.default.createElement("div", {
47
+ className: (0, _tailwind.cn)('lw-flex lw-h-[20px] lw-w-[20px] lw-items-center lw-justify-center lw-rounded-full lw-border lw-border-border-primary lw-pb-0.5 lw-text-sm lw-font-bold lw-text-text-secondary lw-shadow-basic', isDark && 'lw-bg-dark-blue', !isDark && 'lw-bg-bg-primary', infoButtonPosition === 'top' && 'lw-mr-1', infoButtonPosition === 'top' && !!logoLink && 'lw-mb-3', infoButtonPosition === 'left' && 'lw-mr-2 '),
48
+ onFocus: () => setIsInfoHovered(true),
49
+ onMouseOver: () => setIsInfoHovered(true)
50
+ }, "i"), logoLink && _react.default.createElement("div", {
51
+ className: (0, _tailwind.cn)('lw-cursor-pointer lw-rounded-l-full lw-bg-bg-primary lw-shadow-basic', infoButtonPosition === 'top' && 'lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out', !isLogoHovered && infoButtonPosition === 'top' && 'lw-translate-x-[55px]'),
52
52
  "data-testid": "disclaimer-wrapper-logo",
53
53
  role: "presentation",
54
+ onBlur: () => setIsLogoHovered(false),
54
55
  onClick: e => {
55
56
  e.stopPropagation();
56
57
  window.open(logoLink, '_blank');
57
- }
58
+ },
59
+ onFocus: () => setIsLogoHovered(true),
60
+ onMouseOut: () => setIsLogoHovered(false),
61
+ onMouseOver: () => setIsLogoHovered(true)
58
62
  }, isDark ? _react.default.createElement(_images.OandaLogoDark, {
59
63
  "data-testid": "disclaimer-wrapper-logo-dark"
60
64
  }) : _react.default.createElement(_images.OandaLogoLight, {
61
65
  "data-testid": "disclaimer-wrapper-logo-light"
62
- }))), _react.default.createElement("div", {
63
- className: (0, _tailwind.cn)('lw-absolute lw-bottom-2.5 lw-right-0 lw-h-7 lw-w-px lw-translate-x-0 lw-transition lw-delay-150 lw-duration-300', borderStyle)
64
- }));
66
+ }))));
65
67
  };
66
68
  exports.Disclaimer = Disclaimer;
67
69
  //# sourceMappingURL=Disclaimer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Disclaimer.js","names":["_react","_interopRequireDefault","require","_images","_providers","_tailwind","_types","e","__esModule","default","disclaimerStyles","dark","wrapperStyle","borderStyle","light","Disclaimer","_ref","children","logoLink","brandingSpace","fitContent","linkArea","theme","useLayoutProvider","isDark","isClickable","Theme","Light","createElement","className","cn","role","onClick","window","open","stopPropagation","OandaLogoDark","OandaLogoLight","exports"],"sources":["../../../../src/components/Disclaimer/Disclaimer.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport { OandaLogoDark, OandaLogoLight } from '../../images';\nimport { useLayoutProvider } from '../../providers';\nimport { cn } from '../../tailwind';\nimport type { RenderComponentParams } from '../../types';\nimport { Theme } from '../../types';\n\nconst disclaimerStyles: Record<\n Theme,\n { wrapperStyle: string; borderStyle: string }\n> = {\n dark: {\n wrapperStyle: 'lw-h-6 lw-bg-[#262F3C]',\n borderStyle: 'lw-border-[#262F3C]',\n },\n light: {\n wrapperStyle: 'lw-shadow-[0_2px_8px_0_rgba(0,33,74,0.25)]',\n borderStyle: 'lw-border-[#e6e6e6]',\n },\n};\n\ntype DisclaimerProps = PropsWithChildren &\n Omit<RenderComponentParams, 'Component'>;\n\nexport const Disclaimer: FC<DisclaimerProps> = ({\n children,\n logoLink,\n brandingSpace,\n fitContent = false,\n linkArea = 'full',\n}) => {\n const { theme } = useLayoutProvider();\n\n if (!logoLink) {\n return children;\n }\n\n const isDark = theme !== 'light';\n const isClickable = linkArea === 'full';\n const { wrapperStyle, borderStyle } = disclaimerStyles[theme ?? Theme.Light];\n\n return (\n <div\n className={cn(\n 'lw-relative lw-overflow-hidden',\n isClickable && 'lw-cursor-pointer',\n brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-2',\n !!fitContent && 'lw-w-fit'\n )}\n data-testid=\"disclaimer-wrapper\"\n role=\"presentation\"\n onClick={() => isClickable && window.open(logoLink, '_blank')}\n >\n {children}\n <div\n className={cn(\n 'lw-absolute lw-z-20 lw-bottom-3 lw-right-1 lw-translate-x-[3.7rem] lw-rounded-l-full lw-transition lw-delay-150 lw-duration-300 lw-ease-in-out hover:lw-translate-x-2 [&:hover+div]:lw-translate-x-[3.7rem]',\n wrapperStyle\n )}\n >\n <div\n className=\"lw-cursor-pointer\"\n data-testid=\"disclaimer-wrapper-logo\"\n role=\"presentation\"\n onClick={(e) => {\n e.stopPropagation();\n window.open(logoLink, '_blank');\n }}\n >\n {isDark ? (\n <OandaLogoDark data-testid=\"disclaimer-wrapper-logo-dark\" />\n ) : (\n <OandaLogoLight data-testid=\"disclaimer-wrapper-logo-light\" />\n )}\n </div>\n </div>\n <div\n className={cn(\n 'lw-absolute lw-bottom-2.5 lw-right-0 lw-h-7 lw-w-px lw-translate-x-0 lw-transition lw-delay-150 lw-duration-300',\n borderStyle\n )}\n />\n </div>\n );\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAAoC,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC,MAAMG,gBAGL,GAAG;EACFC,IAAI,EAAE;IACJC,YAAY,EAAE,wBAAwB;IACtCC,WAAW,EAAE;EACf,CAAC;EACDC,KAAK,EAAE;IACLF,YAAY,EAAE,4CAA4C;IAC1DC,WAAW,EAAE;EACf;AACF,CAAC;AAKM,MAAME,UAA+B,GAAGC,IAAA,IAMzC;EAA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AA,CAACzB,OAAA,CAAAiC,aAAa;IAAC,eAAY;EAA8B,CAAE,CAAC,GAE5DpC,MAAA,CAAAS,OAAA,CAAAmB,aAAA,CAACzB,OAAA,CAAAkC,cAAc;IAAC,eAAY;EAA+B,CAAE,CAE5D,CACF,CAAC,EACNrC,MAAA,CAAAS,OAAA,CAAAmB,aAAA;IACEC,SAAS,EAAE,IAAAC,YAAE,EACX,iHAAiH,EACjHjB,WACF;EAAE,CACH,CACE,CAAC;AAEV,CAAC;AAACyB,OAAA,CAAAvB,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"file":"Disclaimer.js","names":["_react","_interopRequireWildcard","require","_images","_providers","_tailwind","_types","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Disclaimer","_ref","children","logoLink","brandingSpace","fitContent","linkArea","text","isSlim","infoButtonPosition","theme","useLayoutProvider","isDark","Theme","Dark","isLogoHovered","setIsLogoHovered","useState","isInfoHovered","setIsInfoHovered","isClickable","createElement","className","cn","role","onClick","window","open","onBlur","onMouseOut","onFocus","onMouseOver","stopPropagation","OandaLogoDark","OandaLogoLight","exports"],"sources":["../../../../src/components/Disclaimer/Disclaimer.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React, { useState } from 'react';\n\nimport { OandaLogoDark, OandaLogoLight } from '../../images';\nimport { useLayoutProvider } from '../../providers';\nimport { cn } from '../../tailwind';\nimport type { RenderComponentParams } from '../../types';\nimport { Theme } from '../../types';\n\ntype DisclaimerProps = PropsWithChildren &\n Omit<RenderComponentParams, 'Component'> & {\n text?: string;\n isSlim?: boolean;\n infoButtonPosition?: 'left' | 'top';\n };\n\nexport const Disclaimer: FC<DisclaimerProps> = ({\n children,\n logoLink,\n brandingSpace,\n fitContent = false,\n linkArea = 'full',\n text,\n isSlim,\n infoButtonPosition = 'top',\n}) => {\n const { theme } = useLayoutProvider();\n const isDark = theme === Theme.Dark;\n\n const [isLogoHovered, setIsLogoHovered] = useState(false);\n const [isInfoHovered, setIsInfoHovered] = useState(false);\n\n if (!logoLink && !text) {\n return children;\n }\n\n const isClickable = linkArea === 'full';\n\n return (\n <div\n className={cn(\n 'lw-relative lw-overflow-hidden',\n isClickable && 'lw-cursor-pointer',\n brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-0',\n !!fitContent && 'lw-w-fit'\n )}\n data-testid=\"disclaimer-wrapper\"\n role=\"presentation\"\n onClick={() => isClickable && window.open(logoLink, '_blank')}\n >\n {children}\n {text && (\n <div\n className={cn(\n 'lw-absolute lw-right-0 lw-top-0 lw-z-30 lw-flex lw-h-full lw-items-center lw-bg-border-primary lw-bg-opacity-90 lw-p-3 lw-text-sm lw-text-text-primary lw-delay-150 lw-duration-150 lw-ease-in-out',\n isInfoHovered && 'lw-opacity-100',\n !isInfoHovered && 'lw-opacity-0 lw-pointer-events-none'\n )}\n onBlur={() => setIsInfoHovered(false)}\n onMouseOut={() => setIsInfoHovered(false)}\n >\n {text}\n </div>\n )}\n <div\n className={cn(\n 'lw-absolute lw-bottom-3 lw-right-0 lw-z-20 lw-flex lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out',\n logoLink &&\n !isLogoHovered &&\n infoButtonPosition === 'left' &&\n 'lw-translate-x-[55px]',\n isSlim && 'lw-bottom-[6px]',\n !isSlim && 'lw-bottom-2',\n infoButtonPosition === 'left' && 'lw-flex-row lw-items-center',\n infoButtonPosition === 'top' && 'lw-flex-col lw-items-end'\n )}\n >\n {text && (\n <div\n className={cn(\n 'lw-flex lw-h-[20px] lw-w-[20px] lw-items-center lw-justify-center lw-rounded-full lw-border lw-border-border-primary lw-pb-0.5 lw-text-sm lw-font-bold lw-text-text-secondary lw-shadow-basic',\n isDark && 'lw-bg-dark-blue',\n !isDark && 'lw-bg-bg-primary',\n infoButtonPosition === 'top' && 'lw-mr-1',\n infoButtonPosition === 'top' && !!logoLink && 'lw-mb-3',\n infoButtonPosition === 'left' && 'lw-mr-2 '\n )}\n onFocus={() => setIsInfoHovered(true)}\n onMouseOver={() => setIsInfoHovered(true)}\n >\n i\n </div>\n )}\n {logoLink && (\n <div\n className={cn(\n 'lw-cursor-pointer lw-rounded-l-full lw-bg-bg-primary lw-shadow-basic',\n infoButtonPosition === 'top' &&\n 'lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out',\n !isLogoHovered &&\n infoButtonPosition === 'top' &&\n 'lw-translate-x-[55px]'\n )}\n data-testid=\"disclaimer-wrapper-logo\"\n role=\"presentation\"\n onBlur={() => setIsLogoHovered(false)}\n onClick={(e) => {\n e.stopPropagation();\n window.open(logoLink, '_blank');\n }}\n onFocus={() => setIsLogoHovered(true)}\n onMouseOut={() => setIsLogoHovered(false)}\n onMouseOver={() => setIsLogoHovered(true)}\n >\n {isDark ? (\n <OandaLogoDark data-testid=\"disclaimer-wrapper-logo-dark\" />\n ) : (\n <OandaLogoLight data-testid=\"disclaimer-wrapper-logo-light\" />\n )}\n </div>\n )}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAAoC,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAA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,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -15,13 +15,18 @@ const WidgetWrapper = _ref => {
15
15
  linkArea,
16
16
  brandingSpace,
17
17
  fitContent,
18
- isParamError
18
+ isParamError,
19
+ disclaimer,
20
+ isSlim
19
21
  } = _ref;
20
22
  return _react.default.createElement(_Disclaimer.Disclaimer, {
21
23
  brandingSpace: brandingSpace,
22
24
  fitContent: fitContent,
25
+ infoButtonPosition: disclaimer?.position,
26
+ isSlim: isSlim,
23
27
  linkArea: linkArea,
24
- logoLink: logoLink
28
+ logoLink: logoLink,
29
+ text: disclaimer?.text
25
30
  }, isParamError ? _react.default.createElement(_Error.WidgetError, null) : children);
26
31
  };
27
32
  exports.WidgetWrapper = WidgetWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetWrapper.js","names":["_react","_interopRequireDefault","require","_Disclaimer","_Error","e","__esModule","default","WidgetWrapper","_ref","children","logoLink","linkArea","brandingSpace","fitContent","isParamError","createElement","Disclaimer","WidgetError","exports"],"sources":["../../../../src/components/WidgetWrapper/WidgetWrapper.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { WidgetLink, WidgetStyling } from '../../types';\nimport { Disclaimer } from '../Disclaimer';\nimport { WidgetError } from '../Error';\n\nexport type WidgetWrapperProps = PropsWithChildren &\n WidgetLink & {\n isParamError?: boolean | undefined;\n } & Pick<WidgetStyling, 'brandingSpace' | 'fitContent'>;\n\nexport const WidgetWrapper: FC<WidgetWrapperProps> = ({\n children,\n logoLink,\n linkArea,\n brandingSpace,\n fitContent,\n isParamError,\n}) => (\n <Disclaimer\n brandingSpace={brandingSpace}\n fitContent={fitContent}\n linkArea={linkArea}\n logoLink={logoLink}\n >\n {isParamError ? <WidgetError /> : children}\n </Disclaimer>\n);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAuC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOhC,MAAMG,aAAqC,GAAGC,IAAA;EAAA,IAAC;IACpDC,QAAQ;IACRC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU;IACVC;EACF,CAAC,GAAAN,IAAA;EAAA,OACCT,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACb,WAAA,CAAAc,UAAU;IACTJ,aAAa,EAAEA,aAAc;IAC7BC,UAAU,EAAEA,UAAW;IACvBF,QAAQ,EAAEA,QAAS;IACnBD,QAAQ,EAAEA;EAAS,GAElBI,YAAY,GAAGf,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACZ,MAAA,CAAAc,WAAW,MAAE,CAAC,GAAGR,QACxB,CAAC;AAAA,CACd;AAACS,OAAA,CAAAX,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"WidgetWrapper.js","names":["_react","_interopRequireDefault","require","_Disclaimer","_Error","e","__esModule","default","WidgetWrapper","_ref","children","logoLink","linkArea","brandingSpace","fitContent","isParamError","disclaimer","isSlim","createElement","Disclaimer","infoButtonPosition","position","text","WidgetError","exports"],"sources":["../../../../src/components/WidgetWrapper/WidgetWrapper.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { WidgetLink, WidgetStyling } from '../../types';\nimport { Disclaimer } from '../Disclaimer';\nimport { WidgetError } from '../Error';\n\nexport type WidgetWrapperProps = PropsWithChildren &\n WidgetLink & {\n isParamError?: boolean | undefined;\n disclaimer?: {\n position?: 'left' | 'top';\n text?: string;\n };\n isSlim?: boolean;\n } & Pick<WidgetStyling, 'brandingSpace' | 'fitContent'>;\n\nexport const WidgetWrapper: FC<WidgetWrapperProps> = ({\n children,\n logoLink,\n linkArea,\n brandingSpace,\n fitContent,\n isParamError,\n disclaimer,\n isSlim,\n}) => (\n <Disclaimer\n brandingSpace={brandingSpace}\n fitContent={fitContent}\n infoButtonPosition={disclaimer?.position}\n isSlim={isSlim}\n linkArea={linkArea}\n logoLink={logoLink}\n text={disclaimer?.text}\n >\n {isParamError ? <WidgetError /> : children}\n </Disclaimer>\n);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAuC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAYhC,MAAMG,aAAqC,GAAGC,IAAA;EAAA,IAAC;IACpDC,QAAQ;IACRC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC;EACF,CAAC,GAAAR,IAAA;EAAA,OACCT,MAAA,CAAAO,OAAA,CAAAW,aAAA,CAACf,WAAA,CAAAgB,UAAU;IACTN,aAAa,EAAEA,aAAc;IAC7BC,UAAU,EAAEA,UAAW;IACvBM,kBAAkB,EAAEJ,UAAU,EAAEK,QAAS;IACzCJ,MAAM,EAAEA,MAAO;IACfL,QAAQ,EAAEA,QAAS;IACnBD,QAAQ,EAAEA,QAAS;IACnBW,IAAI,EAAEN,UAAU,EAAEM;EAAK,GAEtBP,YAAY,GAAGf,MAAA,CAAAO,OAAA,CAAAW,aAAA,CAACd,MAAA,CAAAmB,WAAW,MAAE,CAAC,GAAGb,QACxB,CAAC;AAAA,CACd;AAACc,OAAA,CAAAhB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -28,10 +28,12 @@ const colorPalette = exports.colorPalette = {
28
28
  white: '#FFFFFF',
29
29
  black: '#000000',
30
30
  grayLight: '#9EA4AC',
31
+ grayLight95: 'rgba(158, 164, 172, 0.95)',
31
32
  gray: '#7B8085',
32
33
  darkGray: '#1C1C1C',
33
34
  brightBlue: 'rgba(51, 88, 255, 0)',
34
- brightBlue30: 'rgba(51, 88, 255, 0.3)'
35
+ brightBlue30: 'rgba(51, 88, 255, 0.3)',
36
+ darkBlue: '#262f3c'
35
37
  };
36
38
  const twColorPallete = exports.twColorPallete = (0, _utils.toTwConfigKeys)(colorPalette);
37
39
  //# sourceMappingURL=colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","names":["_utils","require","colorPalette","exports","redDark","redLight","raspberryLight","raspberryDark","raspberryDark70","greenLight","greenLight10","turquoiseLight","violetLight","bottleGreenLight","bottleGreenLight70","bottleGreenLight75","bottleGreenDark","bottleGreenDark120","midnight75Lighter","gold","orange","orange70","navyBlue","white","black","grayLight","gray","darkGray","brightBlue","brightBlue30","twColorPallete","toTwConfigKeys"],"sources":["../../../src/tailwind/colors.ts"],"sourcesContent":["import type { ValueOf } from '../types';\nimport { toTwConfigKeys } from './utils';\n\nexport const colorPalette = {\n redDark: '#E41F37',\n redLight: '#FF5F73',\n raspberryLight: '#FE005B',\n raspberryDark: '#E5226E',\n raspberryDark70: 'rgba(229, 34, 110, 0.7)',\n greenLight: '#00D37E',\n greenLight10: 'rgba(0, 211, 126, 0.1)',\n turquoiseLight: '#309DCC',\n violetLight: '#C226C9',\n bottleGreenLight: '#00B89E',\n bottleGreenLight70: 'rgba(0, 184, 158, 0.7)',\n bottleGreenLight75: '#7FDBCE',\n bottleGreenDark: '#008573',\n bottleGreenDark120: '#00884E',\n midnight75Lighter: '#AC82D6',\n gold: '#FAB313',\n orange: '#DA6325',\n orange70: 'rgba(218, 100, 37, 0.7)',\n navyBlue: '#00214A',\n white: '#FFFFFF',\n black: '#000000',\n grayLight: '#9EA4AC',\n gray: '#7B8085',\n darkGray: '#1C1C1C',\n brightBlue: 'rgba(51, 88, 255, 0)',\n brightBlue30: 'rgba(51, 88, 255, 0.3)',\n};\n\nexport const twColorPallete = toTwConfigKeys(colorPalette);\n\nexport type ColorCode = ValueOf<typeof colorPalette>;\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,cAAc,EAAE,SAAS;EACzBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,yBAAyB;EAC1CC,UAAU,EAAE,SAAS;EACrBC,YAAY,EAAE,wBAAwB;EACtCC,cAAc,EAAE,SAAS;EACzBC,WAAW,EAAE,SAAS;EACtBC,gBAAgB,EAAE,SAAS;EAC3BC,kBAAkB,EAAE,wBAAwB;EAC5CC,kBAAkB,EAAE,SAAS;EAC7BC,eAAe,EAAE,SAAS;EAC1BC,kBAAkB,EAAE,SAAS;EAC7BC,iBAAiB,EAAE,SAAS;EAC5BC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,yBAAyB;EACnCC,QAAQ,EAAE,SAAS;EACnBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,SAAS,EAAE,SAAS;EACpBC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,sBAAsB;EAClCC,YAAY,EAAE;AAChB,CAAC;AAEM,MAAMC,cAAc,GAAA3B,OAAA,CAAA2B,cAAA,GAAG,IAAAC,qBAAc,EAAC7B,YAAY,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"colors.js","names":["_utils","require","colorPalette","exports","redDark","redLight","raspberryLight","raspberryDark","raspberryDark70","greenLight","greenLight10","turquoiseLight","violetLight","bottleGreenLight","bottleGreenLight70","bottleGreenLight75","bottleGreenDark","bottleGreenDark120","midnight75Lighter","gold","orange","orange70","navyBlue","white","black","grayLight","grayLight95","gray","darkGray","brightBlue","brightBlue30","darkBlue","twColorPallete","toTwConfigKeys"],"sources":["../../../src/tailwind/colors.ts"],"sourcesContent":["import type { ValueOf } from '../types';\nimport { toTwConfigKeys } from './utils';\n\nexport const colorPalette = {\n redDark: '#E41F37',\n redLight: '#FF5F73',\n raspberryLight: '#FE005B',\n raspberryDark: '#E5226E',\n raspberryDark70: 'rgba(229, 34, 110, 0.7)',\n greenLight: '#00D37E',\n greenLight10: 'rgba(0, 211, 126, 0.1)',\n turquoiseLight: '#309DCC',\n violetLight: '#C226C9',\n bottleGreenLight: '#00B89E',\n bottleGreenLight70: 'rgba(0, 184, 158, 0.7)',\n bottleGreenLight75: '#7FDBCE',\n bottleGreenDark: '#008573',\n bottleGreenDark120: '#00884E',\n midnight75Lighter: '#AC82D6',\n gold: '#FAB313',\n orange: '#DA6325',\n orange70: 'rgba(218, 100, 37, 0.7)',\n navyBlue: '#00214A',\n white: '#FFFFFF',\n black: '#000000',\n grayLight: '#9EA4AC',\n grayLight95: 'rgba(158, 164, 172, 0.95)',\n gray: '#7B8085',\n darkGray: '#1C1C1C',\n brightBlue: 'rgba(51, 88, 255, 0)',\n brightBlue30: 'rgba(51, 88, 255, 0.3)',\n darkBlue: '#262f3c',\n};\n\nexport const twColorPallete = toTwConfigKeys(colorPalette);\n\nexport type ColorCode = ValueOf<typeof colorPalette>;\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,cAAc,EAAE,SAAS;EACzBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,yBAAyB;EAC1CC,UAAU,EAAE,SAAS;EACrBC,YAAY,EAAE,wBAAwB;EACtCC,cAAc,EAAE,SAAS;EACzBC,WAAW,EAAE,SAAS;EACtBC,gBAAgB,EAAE,SAAS;EAC3BC,kBAAkB,EAAE,wBAAwB;EAC5CC,kBAAkB,EAAE,SAAS;EAC7BC,eAAe,EAAE,SAAS;EAC1BC,kBAAkB,EAAE,SAAS;EAC7BC,iBAAiB,EAAE,SAAS;EAC5BC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,yBAAyB;EACnCC,QAAQ,EAAE,SAAS;EACnBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,SAAS,EAAE,SAAS;EACpBC,WAAW,EAAE,2BAA2B;EACxCC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,sBAAsB;EAClCC,YAAY,EAAE,wBAAwB;EACtCC,QAAQ,EAAE;AACZ,CAAC;AAEM,MAAMC,cAAc,GAAA7B,OAAA,CAAA6B,cAAA,GAAG,IAAAC,qBAAc,EAAC/B,YAAY,CAAC","ignoreList":[]}
@@ -57,7 +57,8 @@ const sharedPreset = exports.sharedPreset = {
57
57
  },
58
58
  boxShadow: {
59
59
  innerBorder: 'inset 0 0 0 1px',
60
- innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))'
60
+ innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',
61
+ basic: '0 2px 8px 0 rgba(0, 33, 74, 0.25)'
61
62
  }
62
63
  },
63
64
  fontFamily: {
@@ -1 +1 @@
1
- {"version":3,"file":"preset.js","names":["_colors","require","_themes","sharedPreset","exports","prefix","plugins","themes","theme","extend","colors","twColorPallete","heatmap","empty","negative","neutral","positive","backgroundImage","loader","whiteWithShadow","lightGreyWithShadow","whiteOpacity","blackOpacity","keyframes","spinner","transform","transitionProperty","width","boxShadow","innerBorder","innerBorderBgColor","fontFamily","sans"],"sources":["../../../src/tailwind/preset.ts"],"sourcesContent":["import type { Config } from 'tailwindcss';\n\nimport { twColorPallete } from './colors';\nimport { themes } from './themes';\n\nexport const sharedPreset: Omit<Config, 'content'> = {\n prefix: 'lw-',\n plugins: [themes],\n theme: {\n extend: {\n colors: {\n ...twColorPallete,\n heatmap: {\n empty: '#D7D8D9',\n 'strong-negative': '#DA6325',\n negative: '#EBA463',\n 'weak-negative': '#F6E8C3',\n neutral: '#F5F5F5',\n 'weak-positive': '#C7EAE5',\n positive: '#70D2AF',\n 'strong-positive': '#008573',\n },\n },\n backgroundImage: {\n loader:\n 'linear-gradient(90deg, hsl(var(--twc-border-primary))0%, hsl(var(--twc-border-secondary)) 50%, hsl(var(--twc-border-primary)) 100%);',\n whiteWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #ffffff 10px)',\n lightGreyWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #f4f8fa 10px)',\n whiteOpacity:\n 'linear-gradient(to left, rgba(255,255,255,0.5), white 0.625rem)',\n blackOpacity:\n 'linear-gradient(to left, rgba(0,0,0,0.5), black 0.625rem)',\n },\n keyframes: {\n spinner: {\n '0%': { transform: 'rotate(0deg)' },\n '85%': { transform: 'rotate(360deg)' },\n '100%': { transform: 'rotate(360deg)' },\n },\n loader: {\n '0%': { transform: 'translateX(-100%)' },\n '100%': { transform: 'translateX(100%)' },\n },\n },\n transitionProperty: {\n width: 'width, transform',\n },\n boxShadow: {\n innerBorder: 'inset 0 0 0 1px',\n innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',\n },\n },\n fontFamily: {\n sans: ['Sofia W03', 'Helvetica Neue', 'Arial', 'sans-serif'],\n },\n },\n};\n"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEO,MAAME,YAAqC,GAAAC,OAAA,CAAAD,YAAA,GAAG;EACnDE,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,CAACC,cAAM,CAAC;EACjBC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,MAAM,EAAE;QACN,GAAGC,sBAAc;QACjBC,OAAO,EAAE;UACPC,KAAK,EAAE,SAAS;UAChB,iBAAiB,EAAE,SAAS;UAC5BC,QAAQ,EAAE,SAAS;UACnB,eAAe,EAAE,SAAS;UAC1BC,OAAO,EAAE,SAAS;UAClB,eAAe,EAAE,SAAS;UAC1BC,QAAQ,EAAE,SAAS;UACnB,iBAAiB,EAAE;QACrB;MACF,CAAC;MACDC,eAAe,EAAE;QACfC,MAAM,EACJ,sIAAsI;QACxIC,eAAe,EACb,kFAAkF;QACpFC,mBAAmB,EACjB,kFAAkF;QACpFC,YAAY,EACV,iEAAiE;QACnEC,YAAY,EACV;MACJ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE;UACP,IAAI,EAAE;YAAEC,SAAS,EAAE;UAAe,CAAC;UACnC,KAAK,EAAE;YAAEA,SAAS,EAAE;UAAiB,CAAC;UACtC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAiB;QACxC,CAAC;QACDP,MAAM,EAAE;UACN,IAAI,EAAE;YAAEO,SAAS,EAAE;UAAoB,CAAC;UACxC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAmB;QAC1C;MACF,CAAC;MACDC,kBAAkB,EAAE;QAClBC,KAAK,EAAE;MACT,CAAC;MACDC,SAAS,EAAE;QACTC,WAAW,EAAE,iBAAiB;QAC9BC,kBAAkB,EAAE;MACtB;IACF,CAAC;IACDC,UAAU,EAAE;MACVC,IAAI,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;IAC7D;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"preset.js","names":["_colors","require","_themes","sharedPreset","exports","prefix","plugins","themes","theme","extend","colors","twColorPallete","heatmap","empty","negative","neutral","positive","backgroundImage","loader","whiteWithShadow","lightGreyWithShadow","whiteOpacity","blackOpacity","keyframes","spinner","transform","transitionProperty","width","boxShadow","innerBorder","innerBorderBgColor","basic","fontFamily","sans"],"sources":["../../../src/tailwind/preset.ts"],"sourcesContent":["import type { Config } from 'tailwindcss';\n\nimport { twColorPallete } from './colors';\nimport { themes } from './themes';\n\nexport const sharedPreset: Omit<Config, 'content'> = {\n prefix: 'lw-',\n plugins: [themes],\n theme: {\n extend: {\n colors: {\n ...twColorPallete,\n heatmap: {\n empty: '#D7D8D9',\n 'strong-negative': '#DA6325',\n negative: '#EBA463',\n 'weak-negative': '#F6E8C3',\n neutral: '#F5F5F5',\n 'weak-positive': '#C7EAE5',\n positive: '#70D2AF',\n 'strong-positive': '#008573',\n },\n },\n backgroundImage: {\n loader:\n 'linear-gradient(90deg, hsl(var(--twc-border-primary))0%, hsl(var(--twc-border-secondary)) 50%, hsl(var(--twc-border-primary)) 100%);',\n whiteWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #ffffff 10px)',\n lightGreyWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #f4f8fa 10px)',\n whiteOpacity:\n 'linear-gradient(to left, rgba(255,255,255,0.5), white 0.625rem)',\n blackOpacity:\n 'linear-gradient(to left, rgba(0,0,0,0.5), black 0.625rem)',\n },\n keyframes: {\n spinner: {\n '0%': { transform: 'rotate(0deg)' },\n '85%': { transform: 'rotate(360deg)' },\n '100%': { transform: 'rotate(360deg)' },\n },\n loader: {\n '0%': { transform: 'translateX(-100%)' },\n '100%': { transform: 'translateX(100%)' },\n },\n },\n transitionProperty: {\n width: 'width, transform',\n },\n boxShadow: {\n innerBorder: 'inset 0 0 0 1px',\n innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',\n basic: '0 2px 8px 0 rgba(0, 33, 74, 0.25)',\n },\n },\n fontFamily: {\n sans: ['Sofia W03', 'Helvetica Neue', 'Arial', 'sans-serif'],\n },\n },\n};\n"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEO,MAAME,YAAqC,GAAAC,OAAA,CAAAD,YAAA,GAAG;EACnDE,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,CAACC,cAAM,CAAC;EACjBC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,MAAM,EAAE;QACN,GAAGC,sBAAc;QACjBC,OAAO,EAAE;UACPC,KAAK,EAAE,SAAS;UAChB,iBAAiB,EAAE,SAAS;UAC5BC,QAAQ,EAAE,SAAS;UACnB,eAAe,EAAE,SAAS;UAC1BC,OAAO,EAAE,SAAS;UAClB,eAAe,EAAE,SAAS;UAC1BC,QAAQ,EAAE,SAAS;UACnB,iBAAiB,EAAE;QACrB;MACF,CAAC;MACDC,eAAe,EAAE;QACfC,MAAM,EACJ,sIAAsI;QACxIC,eAAe,EACb,kFAAkF;QACpFC,mBAAmB,EACjB,kFAAkF;QACpFC,YAAY,EACV,iEAAiE;QACnEC,YAAY,EACV;MACJ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE;UACP,IAAI,EAAE;YAAEC,SAAS,EAAE;UAAe,CAAC;UACnC,KAAK,EAAE;YAAEA,SAAS,EAAE;UAAiB,CAAC;UACtC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAiB;QACxC,CAAC;QACDP,MAAM,EAAE;UACN,IAAI,EAAE;YAAEO,SAAS,EAAE;UAAoB,CAAC;UACxC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAmB;QAC1C;MACF,CAAC;MACDC,kBAAkB,EAAE;QAClBC,KAAK,EAAE;MACT,CAAC;MACDC,SAAS,EAAE;QACTC,WAAW,EAAE,iBAAiB;QAC9BC,kBAAkB,EAAE,4CAA4C;QAChEC,KAAK,EAAE;MACT;IACF,CAAC;IACDC,UAAU,EAAE;MACVC,IAAI,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;IAC7D;EACF;AACF,CAAC","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.validateLocale = exports.getLocale = void 0;
7
7
  var _monoI18n = require("@oanda/mono-i18n");
8
8
  const validateLocale = locale => {
9
- const locales = ['en', 'zh', 'es', 'th'];
9
+ const locales = ['en', 'zh', 'es', 'th', 'fr', 'de', 'pt', 'it', 'zhCN', 'vi'];
10
10
  return locales.includes(locale?.substring(0, 2));
11
11
  };
12
12
  exports.validateLocale = validateLocale;
@@ -15,7 +15,13 @@ const getLocale = locale => {
15
15
  en: _monoI18n.Locale.en,
16
16
  zh: _monoI18n.Locale.zhTW,
17
17
  es: _monoI18n.Locale.es,
18
- th: _monoI18n.Locale.th
18
+ th: _monoI18n.Locale.th,
19
+ fr: _monoI18n.Locale.fr,
20
+ de: _monoI18n.Locale.de,
21
+ pt: _monoI18n.Locale.pt,
22
+ it: _monoI18n.Locale.it,
23
+ ['zh-CN']: _monoI18n.Locale.zhCN,
24
+ vi: _monoI18n.Locale.vi
19
25
  };
20
26
  return languageCodeDictionary[locale] || languageCodeDictionary.en;
21
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.js","names":["_monoI18n","require","validateLocale","locale","locales","includes","substring","exports","getLocale","languageCodeDictionary","en","Locale","zh","zhTW","es","th"],"sources":["../../../src/utils/getLocale.ts"],"sourcesContent":["import { Locale } from '@oanda/mono-i18n';\n\nconst validateLocale = (locale?: string) => {\n const locales = ['en', 'zh', 'es', 'th'];\n\n return locales.includes(locale?.substring(0, 2)!);\n};\n\nconst getLocale = (locale?: string) => {\n const languageCodeDictionary: Record<string, Locale> = {\n en: Locale.en,\n zh: Locale.zhTW,\n es: Locale.es,\n th: Locale.th,\n };\n\n return languageCodeDictionary[locale!] || languageCodeDictionary.en;\n};\n\nexport { getLocale, validateLocale };\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,MAAMC,cAAc,GAAIC,MAAe,IAAK;EAC1C,MAAMC,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;EAExC,OAAOA,OAAO,CAACC,QAAQ,CAACF,MAAM,EAAEG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC;AACnD,CAAC;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAEF,MAAMM,SAAS,GAAIL,MAAe,IAAK;EACrC,MAAMM,sBAA8C,GAAG;IACrDC,EAAE,EAAEC,gBAAM,CAACD,EAAE;IACbE,EAAE,EAAED,gBAAM,CAACE,IAAI;IACfC,EAAE,EAAEH,gBAAM,CAACG,EAAE;IACbC,EAAE,EAAEJ,gBAAM,CAACI;EACb,CAAC;EAED,OAAON,sBAAsB,CAACN,MAAM,CAAE,IAAIM,sBAAsB,CAACC,EAAE;AACrE,CAAC;AAACH,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"file":"getLocale.js","names":["_monoI18n","require","validateLocale","locale","locales","includes","substring","exports","getLocale","languageCodeDictionary","en","Locale","zh","zhTW","es","th","fr","de","pt","it","zhCN","vi"],"sources":["../../../src/utils/getLocale.ts"],"sourcesContent":["import { Locale } from '@oanda/mono-i18n';\n\nconst validateLocale = (locale?: string) => {\n const locales = [\n 'en',\n 'zh',\n 'es',\n 'th',\n 'fr',\n 'de',\n 'pt',\n 'it',\n 'zhCN',\n 'vi',\n ];\n\n return locales.includes(locale?.substring(0, 2)!);\n};\n\nconst getLocale = (locale?: string) => {\n const languageCodeDictionary: Record<string, Locale> = {\n en: Locale.en,\n zh: Locale.zhTW,\n es: Locale.es,\n th: Locale.th,\n fr: Locale.fr,\n de: Locale.de,\n pt: Locale.pt,\n it: Locale.it,\n ['zh-CN']: Locale.zhCN,\n vi: Locale.vi,\n };\n\n return languageCodeDictionary[locale!] || languageCodeDictionary.en;\n};\n\nexport { getLocale, validateLocale };\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,MAAMC,cAAc,GAAIC,MAAe,IAAK;EAC1C,MAAMC,OAAO,GAAG,CACd,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,IAAI,CACL;EAED,OAAOA,OAAO,CAACC,QAAQ,CAACF,MAAM,EAAEG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC;AACnD,CAAC;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAEF,MAAMM,SAAS,GAAIL,MAAe,IAAK;EACrC,MAAMM,sBAA8C,GAAG;IACrDC,EAAE,EAAEC,gBAAM,CAACD,EAAE;IACbE,EAAE,EAAED,gBAAM,CAACE,IAAI;IACfC,EAAE,EAAEH,gBAAM,CAACG,EAAE;IACbC,EAAE,EAAEJ,gBAAM,CAACI,EAAE;IACbC,EAAE,EAAEL,gBAAM,CAACK,EAAE;IACbC,EAAE,EAAEN,gBAAM,CAACM,EAAE;IACbC,EAAE,EAAEP,gBAAM,CAACO,EAAE;IACbC,EAAE,EAAER,gBAAM,CAACQ,EAAE;IACb,CAAC,OAAO,GAAGR,gBAAM,CAACS,IAAI;IACtBC,EAAE,EAAEV,gBAAM,CAACU;EACb,CAAC;EAED,OAAOZ,sBAAsB,CAACN,MAAM,CAAE,IAAIM,sBAAsB,CAACC,EAAE;AACrE,CAAC;AAACH,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1,59 +1,60 @@
1
- import React from 'react';
1
+ import React, { useState } from 'react';
2
2
  import { OandaLogoDark, OandaLogoLight } from '../../images';
3
3
  import { useLayoutProvider } from '../../providers';
4
4
  import { cn } from '../../tailwind';
5
5
  import { Theme } from '../../types';
6
- const disclaimerStyles = {
7
- dark: {
8
- wrapperStyle: 'lw-h-6 lw-bg-[#262F3C]',
9
- borderStyle: 'lw-border-[#262F3C]'
10
- },
11
- light: {
12
- wrapperStyle: 'lw-shadow-[0_2px_8px_0_rgba(0,33,74,0.25)]',
13
- borderStyle: 'lw-border-[#e6e6e6]'
14
- }
15
- };
16
6
  export const Disclaimer = _ref => {
17
7
  let {
18
8
  children,
19
9
  logoLink,
20
10
  brandingSpace,
21
11
  fitContent = false,
22
- linkArea = 'full'
12
+ linkArea = 'full',
13
+ text,
14
+ isSlim,
15
+ infoButtonPosition = 'top'
23
16
  } = _ref;
24
17
  const {
25
18
  theme
26
19
  } = useLayoutProvider();
27
- if (!logoLink) {
20
+ const isDark = theme === Theme.Dark;
21
+ const [isLogoHovered, setIsLogoHovered] = useState(false);
22
+ const [isInfoHovered, setIsInfoHovered] = useState(false);
23
+ if (!logoLink && !text) {
28
24
  return children;
29
25
  }
30
- const isDark = theme !== 'light';
31
26
  const isClickable = linkArea === 'full';
32
- const {
33
- wrapperStyle,
34
- borderStyle
35
- } = disclaimerStyles[theme ?? Theme.Light];
36
27
  return React.createElement("div", {
37
- className: cn('lw-relative lw-overflow-hidden', isClickable && 'lw-cursor-pointer', brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-2', !!fitContent && 'lw-w-fit'),
28
+ className: cn('lw-relative lw-overflow-hidden', isClickable && 'lw-cursor-pointer', brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-0', !!fitContent && 'lw-w-fit'),
38
29
  "data-testid": "disclaimer-wrapper",
39
30
  role: "presentation",
40
31
  onClick: () => isClickable && window.open(logoLink, '_blank')
41
- }, children, React.createElement("div", {
42
- className: cn('lw-absolute lw-z-20 lw-bottom-3 lw-right-1 lw-translate-x-[3.7rem] lw-rounded-l-full lw-transition lw-delay-150 lw-duration-300 lw-ease-in-out hover:lw-translate-x-2 [&:hover+div]:lw-translate-x-[3.7rem]', wrapperStyle)
43
- }, React.createElement("div", {
44
- className: "lw-cursor-pointer",
32
+ }, children, text && React.createElement("div", {
33
+ className: cn('lw-absolute lw-right-0 lw-top-0 lw-z-30 lw-flex lw-h-full lw-items-center lw-bg-border-primary lw-bg-opacity-90 lw-p-3 lw-text-sm lw-text-text-primary lw-delay-150 lw-duration-150 lw-ease-in-out', isInfoHovered && 'lw-opacity-100', !isInfoHovered && 'lw-opacity-0 lw-pointer-events-none'),
34
+ onBlur: () => setIsInfoHovered(false),
35
+ onMouseOut: () => setIsInfoHovered(false)
36
+ }, text), React.createElement("div", {
37
+ className: cn('lw-absolute lw-bottom-3 lw-right-0 lw-z-20 lw-flex lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out', logoLink && !isLogoHovered && infoButtonPosition === 'left' && 'lw-translate-x-[55px]', isSlim && 'lw-bottom-[6px]', !isSlim && 'lw-bottom-2', infoButtonPosition === 'left' && 'lw-flex-row lw-items-center', infoButtonPosition === 'top' && 'lw-flex-col lw-items-end')
38
+ }, text && React.createElement("div", {
39
+ className: cn('lw-flex lw-h-[20px] lw-w-[20px] lw-items-center lw-justify-center lw-rounded-full lw-border lw-border-border-primary lw-pb-0.5 lw-text-sm lw-font-bold lw-text-text-secondary lw-shadow-basic', isDark && 'lw-bg-dark-blue', !isDark && 'lw-bg-bg-primary', infoButtonPosition === 'top' && 'lw-mr-1', infoButtonPosition === 'top' && !!logoLink && 'lw-mb-3', infoButtonPosition === 'left' && 'lw-mr-2 '),
40
+ onFocus: () => setIsInfoHovered(true),
41
+ onMouseOver: () => setIsInfoHovered(true)
42
+ }, "i"), logoLink && React.createElement("div", {
43
+ className: cn('lw-cursor-pointer lw-rounded-l-full lw-bg-bg-primary lw-shadow-basic', infoButtonPosition === 'top' && 'lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out', !isLogoHovered && infoButtonPosition === 'top' && 'lw-translate-x-[55px]'),
45
44
  "data-testid": "disclaimer-wrapper-logo",
46
45
  role: "presentation",
46
+ onBlur: () => setIsLogoHovered(false),
47
47
  onClick: e => {
48
48
  e.stopPropagation();
49
49
  window.open(logoLink, '_blank');
50
- }
50
+ },
51
+ onFocus: () => setIsLogoHovered(true),
52
+ onMouseOut: () => setIsLogoHovered(false),
53
+ onMouseOver: () => setIsLogoHovered(true)
51
54
  }, isDark ? React.createElement(OandaLogoDark, {
52
55
  "data-testid": "disclaimer-wrapper-logo-dark"
53
56
  }) : React.createElement(OandaLogoLight, {
54
57
  "data-testid": "disclaimer-wrapper-logo-light"
55
- }))), React.createElement("div", {
56
- className: cn('lw-absolute lw-bottom-2.5 lw-right-0 lw-h-7 lw-w-px lw-translate-x-0 lw-transition lw-delay-150 lw-duration-300', borderStyle)
57
- }));
58
+ }))));
58
59
  };
59
60
  //# sourceMappingURL=Disclaimer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Disclaimer.js","names":["React","OandaLogoDark","OandaLogoLight","useLayoutProvider","cn","Theme","disclaimerStyles","dark","wrapperStyle","borderStyle","light","Disclaimer","_ref","children","logoLink","brandingSpace","fitContent","linkArea","theme","isDark","isClickable","Light","createElement","className","role","onClick","window","open","e","stopPropagation"],"sources":["../../../../src/components/Disclaimer/Disclaimer.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport { OandaLogoDark, OandaLogoLight } from '../../images';\nimport { useLayoutProvider } from '../../providers';\nimport { cn } from '../../tailwind';\nimport type { RenderComponentParams } from '../../types';\nimport { Theme } from '../../types';\n\nconst disclaimerStyles: Record<\n Theme,\n { wrapperStyle: string; borderStyle: string }\n> = {\n dark: {\n wrapperStyle: 'lw-h-6 lw-bg-[#262F3C]',\n borderStyle: 'lw-border-[#262F3C]',\n },\n light: {\n wrapperStyle: 'lw-shadow-[0_2px_8px_0_rgba(0,33,74,0.25)]',\n borderStyle: 'lw-border-[#e6e6e6]',\n },\n};\n\ntype DisclaimerProps = PropsWithChildren &\n Omit<RenderComponentParams, 'Component'>;\n\nexport const Disclaimer: FC<DisclaimerProps> = ({\n children,\n logoLink,\n brandingSpace,\n fitContent = false,\n linkArea = 'full',\n}) => {\n const { theme } = useLayoutProvider();\n\n if (!logoLink) {\n return children;\n }\n\n const isDark = theme !== 'light';\n const isClickable = linkArea === 'full';\n const { wrapperStyle, borderStyle } = disclaimerStyles[theme ?? Theme.Light];\n\n return (\n <div\n className={cn(\n 'lw-relative lw-overflow-hidden',\n isClickable && 'lw-cursor-pointer',\n brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-2',\n !!fitContent && 'lw-w-fit'\n )}\n data-testid=\"disclaimer-wrapper\"\n role=\"presentation\"\n onClick={() => isClickable && window.open(logoLink, '_blank')}\n >\n {children}\n <div\n className={cn(\n 'lw-absolute lw-z-20 lw-bottom-3 lw-right-1 lw-translate-x-[3.7rem] lw-rounded-l-full lw-transition lw-delay-150 lw-duration-300 lw-ease-in-out hover:lw-translate-x-2 [&:hover+div]:lw-translate-x-[3.7rem]',\n wrapperStyle\n )}\n >\n <div\n className=\"lw-cursor-pointer\"\n data-testid=\"disclaimer-wrapper-logo\"\n role=\"presentation\"\n onClick={(e) => {\n e.stopPropagation();\n window.open(logoLink, '_blank');\n }}\n >\n {isDark ? (\n <OandaLogoDark data-testid=\"disclaimer-wrapper-logo-dark\" />\n ) : (\n <OandaLogoLight data-testid=\"disclaimer-wrapper-logo-light\" />\n )}\n </div>\n </div>\n <div\n className={cn(\n 'lw-absolute lw-bottom-2.5 lw-right-0 lw-h-7 lw-w-px lw-translate-x-0 lw-transition lw-delay-150 lw-duration-300',\n borderStyle\n )}\n />\n </div>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAC5D,SAASC,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,EAAE,QAAQ,gBAAgB;AAEnC,SAASC,KAAK,QAAQ,aAAa;AAEnC,MAAMC,gBAGL,GAAG;EACFC,IAAI,EAAE;IACJC,YAAY,EAAE,wBAAwB;IACtCC,WAAW,EAAE;EACf,CAAC;EACDC,KAAK,EAAE;IACLF,YAAY,EAAE,4CAA4C;IAC1DC,WAAW,EAAE;EACf;AACF,CAAC;AAKD,OAAO,MAAME,UAA+B,GAAGC,IAAA,IAMzC;EAAA,IAN0C;IAC9CC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU,GAAG,KAAK;IAClBC,QAAQ,GAAG;EACb,CAAC,GAAAL,IAAA;EACC,MAAM;IAAEM;EAAM,CAAC,GAAGf,iBAAiB,CAAC,CAAC;EAErC,IAAI,CAACW,QAAQ,EAAE;IACb,OAAO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aLogoDark","OandaLogoLight","useLayoutProvider","cn","Theme","Disclaimer","_ref","children","logoLink","brandingSpace","fitContent","linkArea","text","isSlim","infoButtonPosition","theme","isDark","Dark","isLogoHovered","setIsLogoHovered","isInfoHovered","setIsInfoHovered","isClickable","createElement","className","role","onClick","window","open","onBlur","onMouseOut","onFocus","onMouseOver","e","stopPropagation"],"sources":["../../../../src/components/Disclaimer/Disclaimer.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React, { useState } from 'react';\n\nimport { OandaLogoDark, OandaLogoLight } from '../../images';\nimport { useLayoutProvider } from '../../providers';\nimport { cn } from '../../tailwind';\nimport type { RenderComponentParams } from '../../types';\nimport { Theme } from '../../types';\n\ntype DisclaimerProps = PropsWithChildren &\n Omit<RenderComponentParams, 'Component'> & {\n text?: string;\n isSlim?: boolean;\n infoButtonPosition?: 'left' | 'top';\n };\n\nexport const Disclaimer: FC<DisclaimerProps> = ({\n children,\n logoLink,\n brandingSpace,\n fitContent = false,\n linkArea = 'full',\n text,\n isSlim,\n infoButtonPosition = 'top',\n}) => {\n const { theme } = useLayoutProvider();\n const isDark = theme === Theme.Dark;\n\n const [isLogoHovered, setIsLogoHovered] = useState(false);\n const [isInfoHovered, setIsInfoHovered] = useState(false);\n\n if (!logoLink && !text) {\n return children;\n }\n\n const isClickable = linkArea === 'full';\n\n return (\n <div\n className={cn(\n 'lw-relative lw-overflow-hidden',\n isClickable && 'lw-cursor-pointer',\n brandingSpace && brandingSpace === 'vertical' ? 'lw-pb-12' : 'lw-pb-0',\n !!fitContent && 'lw-w-fit'\n )}\n data-testid=\"disclaimer-wrapper\"\n role=\"presentation\"\n onClick={() => isClickable && window.open(logoLink, '_blank')}\n >\n {children}\n {text && (\n <div\n className={cn(\n 'lw-absolute lw-right-0 lw-top-0 lw-z-30 lw-flex lw-h-full lw-items-center lw-bg-border-primary lw-bg-opacity-90 lw-p-3 lw-text-sm lw-text-text-primary lw-delay-150 lw-duration-150 lw-ease-in-out',\n isInfoHovered && 'lw-opacity-100',\n !isInfoHovered && 'lw-opacity-0 lw-pointer-events-none'\n )}\n onBlur={() => setIsInfoHovered(false)}\n onMouseOut={() => setIsInfoHovered(false)}\n >\n {text}\n </div>\n )}\n <div\n className={cn(\n 'lw-absolute lw-bottom-3 lw-right-0 lw-z-20 lw-flex lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out',\n logoLink &&\n !isLogoHovered &&\n infoButtonPosition === 'left' &&\n 'lw-translate-x-[55px]',\n isSlim && 'lw-bottom-[6px]',\n !isSlim && 'lw-bottom-2',\n infoButtonPosition === 'left' && 'lw-flex-row lw-items-center',\n infoButtonPosition === 'top' && 'lw-flex-col lw-items-end'\n )}\n >\n {text && (\n <div\n className={cn(\n 'lw-flex lw-h-[20px] lw-w-[20px] lw-items-center lw-justify-center lw-rounded-full lw-border lw-border-border-primary lw-pb-0.5 lw-text-sm lw-font-bold lw-text-text-secondary lw-shadow-basic',\n isDark && 'lw-bg-dark-blue',\n !isDark && 'lw-bg-bg-primary',\n infoButtonPosition === 'top' && 'lw-mr-1',\n infoButtonPosition === 'top' && !!logoLink && 'lw-mb-3',\n infoButtonPosition === 'left' && 'lw-mr-2 '\n )}\n onFocus={() => setIsInfoHovered(true)}\n onMouseOver={() => setIsInfoHovered(true)}\n >\n i\n </div>\n )}\n {logoLink && (\n <div\n className={cn(\n 'lw-cursor-pointer lw-rounded-l-full lw-bg-bg-primary lw-shadow-basic',\n infoButtonPosition === 'top' &&\n 'lw-transition lw-delay-100 lw-duration-300 lw-ease-in-out',\n !isLogoHovered &&\n infoButtonPosition === 'top' &&\n 'lw-translate-x-[55px]'\n )}\n data-testid=\"disclaimer-wrapper-logo\"\n role=\"presentation\"\n onBlur={() => setIsLogoHovered(false)}\n onClick={(e) => {\n e.stopPropagation();\n window.open(logoLink, '_blank');\n }}\n onFocus={() => setIsLogoHovered(true)}\n onMouseOut={() => setIsLogoHovered(false)}\n onMouseOver={() => setIsLogoHovered(true)}\n >\n {isDark ? (\n <OandaLogoDark data-testid=\"disclaimer-wrapper-logo-dark\" />\n ) : (\n <OandaLogoLight data-testid=\"disclaimer-wrapper-logo-light\" />\n )}\n </div>\n )}\n </div>\n </div>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAC5D,SAASC,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,EAAE,QAAQ,gBAAgB;AAEnC,SAASC,KAAK,QAAQ,aAAa;AASnC,OAAO,MAAMC,UAA+B,GAAGC,IAAA,IASzC;EAAA,IAT0C;IAC9CC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU,GAAG,KAAK;IAClBC,QAAQ,GAAG,MAAM;IACjBC,IAAI;IACJC,MAAM;IACNC,kBAAkB,GAAG;EACvB,CAAC,GAAAR,IAAA;EACC,MAAM;IAAES;EAAM,CAAC,GAAGb,iBAAiB,CAAC,CAAC;EACrC,MAAMc,MAAM,GAAGD,KAAK,KAAKX,KAAK,CAACa,IAAI;EAEnC,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGpB,QAAQ,CAAC,KAAK,CAAC;EACzD,MAAM,CAACqB,aAAa,EAAEC,gBAAgB,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EAEzD,IAAI,CAACS,QAAQ,IAAI,CAACI,IAAI,EAAE;IACtB,OAAOL,QAAQ;EACjB;EAEA,MAAMe,WAAW,GAAGX,QAAQ,KAAK,MAAM;EAEvC,OACEb,KAAA,CAAAyB,aAAA;IACEC,SAAS,EAAErB,EAAE,CACX,gCAAgC,EAChCmB,WAAW,IAAI,mBAAmB,EAClCb,aAAa,IAAIA,aAAa,KAAK,UAAU,GAAG,UAAU,GAAG,SAAS,EACtE,CAAC,CAACC,UAAU,IAAI,UAClB,CAAE;IACF,eAAY,oBAAoB;IAChCe,IAAI,EAAC,cAAc;IACnBC,OAAO,EAAEA,CA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,IACZJ,kBAAkB,KAAK,KAAK,IAC5B,uBACJ,CAAE;IACF,eAAY,yBAAyB;IACrCW,IAAI,EAAC,cAAc;IACnBI,MAAM,EAAEA,CAAA,KAAMV,gBAAgB,CAAC,KAAK,CAAE;IACtCO,OAAO,EAAGO,CAAC,IAAK;MACdA,CAAC,CAACC,eAAe,CAAC,CAAC;MACnBP,MAAM,CAACC,IAAI,CAACpB,QAAQ,EAAE,QAAQ,CAAC;IACjC,CAAE;IACFuB,OAAO,EAAEA,CAAA,KAAMZ,gBAAgB,CAAC,IAAI,CAAE;IACtCW,UAAU,EAAEA,CAAA,KAAMX,gBAAgB,CAAC,KAAK,CAAE;IAC1Ca,WAAW,EAAEA,CAAA,KAAMb,gBAAgB,CAAC,IAAI;EAAE,GAEzCH,MAAM,GACLlB,KAAA,CAAAyB,aAAA,CAACvB,aAAa;IAAC,eAAY;EAA8B,CAAE,CAAC,GAE5DF,KAAA,CAAAyB,aAAA,CAACtB,cAAc;IAAC,eAAY;EAA+B,CAAE,CAE5D,CAEJ,CACF,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -8,13 +8,18 @@ export const WidgetWrapper = _ref => {
8
8
  linkArea,
9
9
  brandingSpace,
10
10
  fitContent,
11
- isParamError
11
+ isParamError,
12
+ disclaimer,
13
+ isSlim
12
14
  } = _ref;
13
15
  return React.createElement(Disclaimer, {
14
16
  brandingSpace: brandingSpace,
15
17
  fitContent: fitContent,
18
+ infoButtonPosition: disclaimer?.position,
19
+ isSlim: isSlim,
16
20
  linkArea: linkArea,
17
- logoLink: logoLink
21
+ logoLink: logoLink,
22
+ text: disclaimer?.text
18
23
  }, isParamError ? React.createElement(WidgetError, null) : children);
19
24
  };
20
25
  //# sourceMappingURL=WidgetWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetWrapper.js","names":["React","Disclaimer","WidgetError","WidgetWrapper","_ref","children","logoLink","linkArea","brandingSpace","fitContent","isParamError","createElement"],"sources":["../../../../src/components/WidgetWrapper/WidgetWrapper.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { WidgetLink, WidgetStyling } from '../../types';\nimport { Disclaimer } from '../Disclaimer';\nimport { WidgetError } from '../Error';\n\nexport type WidgetWrapperProps = PropsWithChildren &\n WidgetLink & {\n isParamError?: boolean | undefined;\n } & Pick<WidgetStyling, 'brandingSpace' | 'fitContent'>;\n\nexport const WidgetWrapper: FC<WidgetWrapperProps> = ({\n children,\n logoLink,\n linkArea,\n brandingSpace,\n fitContent,\n isParamError,\n}) => (\n <Disclaimer\n brandingSpace={brandingSpace}\n fitContent={fitContent}\n linkArea={linkArea}\n logoLink={logoLink}\n >\n {isParamError ? <WidgetError /> : children}\n </Disclaimer>\n);\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,WAAW,QAAQ,UAAU;AAOtC,OAAO,MAAMC,aAAqC,GAAGC,IAAA;EAAA,IAAC;IACpDC,QAAQ;IACRC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU;IACVC;EACF,CAAC,GAAAN,IAAA;EAAA,OACCJ,KAAA,CAAAW,aAAA,CAACV,UAAU;IACTO,aAAa,EAAEA,aAAc;IAC7BC,UAAU,EAAEA,UAAW;IACvBF,QAAQ,EAAEA,QAAS;IACnBD,QAAQ,EAAEA;EAAS,GAElBI,YAAY,GAAGV,KAAA,CAAAW,aAAA,CAACT,WAAW,MAAE,CAAC,GAAGG,QACxB,CAAC;AAAA,CACd","ignoreList":[]}
1
+ {"version":3,"file":"WidgetWrapper.js","names":["React","Disclaimer","WidgetError","WidgetWrapper","_ref","children","logoLink","linkArea","brandingSpace","fitContent","isParamError","disclaimer","isSlim","createElement","infoButtonPosition","position","text"],"sources":["../../../../src/components/WidgetWrapper/WidgetWrapper.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { WidgetLink, WidgetStyling } from '../../types';\nimport { Disclaimer } from '../Disclaimer';\nimport { WidgetError } from '../Error';\n\nexport type WidgetWrapperProps = PropsWithChildren &\n WidgetLink & {\n isParamError?: boolean | undefined;\n disclaimer?: {\n position?: 'left' | 'top';\n text?: string;\n };\n isSlim?: boolean;\n } & Pick<WidgetStyling, 'brandingSpace' | 'fitContent'>;\n\nexport const WidgetWrapper: FC<WidgetWrapperProps> = ({\n children,\n logoLink,\n linkArea,\n brandingSpace,\n fitContent,\n isParamError,\n disclaimer,\n isSlim,\n}) => (\n <Disclaimer\n brandingSpace={brandingSpace}\n fitContent={fitContent}\n infoButtonPosition={disclaimer?.position}\n isSlim={isSlim}\n linkArea={linkArea}\n logoLink={logoLink}\n text={disclaimer?.text}\n >\n {isParamError ? <WidgetError /> : children}\n </Disclaimer>\n);\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,WAAW,QAAQ,UAAU;AAYtC,OAAO,MAAMC,aAAqC,GAAGC,IAAA;EAAA,IAAC;IACpDC,QAAQ;IACRC,QAAQ;IACRC,QAAQ;IACRC,aAAa;IACbC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC;EACF,CAAC,GAAAR,IAAA;EAAA,OACCJ,KAAA,CAAAa,aAAA,CAACZ,UAAU;IACTO,aAAa,EAAEA,aAAc;IAC7BC,UAAU,EAAEA,UAAW;IACvBK,kBAAkB,EAAEH,UAAU,EAAEI,QAAS;IACzCH,MAAM,EAAEA,MAAO;IACfL,QAAQ,EAAEA,QAAS;IACnBD,QAAQ,EAAEA,QAAS;IACnBU,IAAI,EAAEL,UAAU,EAAEK;EAAK,GAEtBN,YAAY,GAAGV,KAAA,CAAAa,aAAA,CAACX,WAAW,MAAE,CAAC,GAAGG,QACxB,CAAC;AAAA,CACd","ignoreList":[]}
@@ -22,10 +22,12 @@ export const colorPalette = {
22
22
  white: '#FFFFFF',
23
23
  black: '#000000',
24
24
  grayLight: '#9EA4AC',
25
+ grayLight95: 'rgba(158, 164, 172, 0.95)',
25
26
  gray: '#7B8085',
26
27
  darkGray: '#1C1C1C',
27
28
  brightBlue: 'rgba(51, 88, 255, 0)',
28
- brightBlue30: 'rgba(51, 88, 255, 0.3)'
29
+ brightBlue30: 'rgba(51, 88, 255, 0.3)',
30
+ darkBlue: '#262f3c'
29
31
  };
30
32
  export const twColorPallete = toTwConfigKeys(colorPalette);
31
33
  //# sourceMappingURL=colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","names":["toTwConfigKeys","colorPalette","redDark","redLight","raspberryLight","raspberryDark","raspberryDark70","greenLight","greenLight10","turquoiseLight","violetLight","bottleGreenLight","bottleGreenLight70","bottleGreenLight75","bottleGreenDark","bottleGreenDark120","midnight75Lighter","gold","orange","orange70","navyBlue","white","black","grayLight","gray","darkGray","brightBlue","brightBlue30","twColorPallete"],"sources":["../../../src/tailwind/colors.ts"],"sourcesContent":["import type { ValueOf } from '../types';\nimport { toTwConfigKeys } from './utils';\n\nexport const colorPalette = {\n redDark: '#E41F37',\n redLight: '#FF5F73',\n raspberryLight: '#FE005B',\n raspberryDark: '#E5226E',\n raspberryDark70: 'rgba(229, 34, 110, 0.7)',\n greenLight: '#00D37E',\n greenLight10: 'rgba(0, 211, 126, 0.1)',\n turquoiseLight: '#309DCC',\n violetLight: '#C226C9',\n bottleGreenLight: '#00B89E',\n bottleGreenLight70: 'rgba(0, 184, 158, 0.7)',\n bottleGreenLight75: '#7FDBCE',\n bottleGreenDark: '#008573',\n bottleGreenDark120: '#00884E',\n midnight75Lighter: '#AC82D6',\n gold: '#FAB313',\n orange: '#DA6325',\n orange70: 'rgba(218, 100, 37, 0.7)',\n navyBlue: '#00214A',\n white: '#FFFFFF',\n black: '#000000',\n grayLight: '#9EA4AC',\n gray: '#7B8085',\n darkGray: '#1C1C1C',\n brightBlue: 'rgba(51, 88, 255, 0)',\n brightBlue30: 'rgba(51, 88, 255, 0.3)',\n};\n\nexport const twColorPallete = toTwConfigKeys(colorPalette);\n\nexport type ColorCode = ValueOf<typeof colorPalette>;\n"],"mappings":"AACA,SAASA,cAAc,QAAQ,SAAS;AAExC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,cAAc,EAAE,SAAS;EACzBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,yBAAyB;EAC1CC,UAAU,EAAE,SAAS;EACrBC,YAAY,EAAE,wBAAwB;EACtCC,cAAc,EAAE,SAAS;EACzBC,WAAW,EAAE,SAAS;EACtBC,gBAAgB,EAAE,SAAS;EAC3BC,kBAAkB,EAAE,wBAAwB;EAC5CC,kBAAkB,EAAE,SAAS;EAC7BC,eAAe,EAAE,SAAS;EAC1BC,kBAAkB,EAAE,SAAS;EAC7BC,iBAAiB,EAAE,SAAS;EAC5BC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,yBAAyB;EACnCC,QAAQ,EAAE,SAAS;EACnBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,SAAS,EAAE,SAAS;EACpBC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,sBAAsB;EAClCC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG5B,cAAc,CAACC,YAAY,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"colors.js","names":["toTwConfigKeys","colorPalette","redDark","redLight","raspberryLight","raspberryDark","raspberryDark70","greenLight","greenLight10","turquoiseLight","violetLight","bottleGreenLight","bottleGreenLight70","bottleGreenLight75","bottleGreenDark","bottleGreenDark120","midnight75Lighter","gold","orange","orange70","navyBlue","white","black","grayLight","grayLight95","gray","darkGray","brightBlue","brightBlue30","darkBlue","twColorPallete"],"sources":["../../../src/tailwind/colors.ts"],"sourcesContent":["import type { ValueOf } from '../types';\nimport { toTwConfigKeys } from './utils';\n\nexport const colorPalette = {\n redDark: '#E41F37',\n redLight: '#FF5F73',\n raspberryLight: '#FE005B',\n raspberryDark: '#E5226E',\n raspberryDark70: 'rgba(229, 34, 110, 0.7)',\n greenLight: '#00D37E',\n greenLight10: 'rgba(0, 211, 126, 0.1)',\n turquoiseLight: '#309DCC',\n violetLight: '#C226C9',\n bottleGreenLight: '#00B89E',\n bottleGreenLight70: 'rgba(0, 184, 158, 0.7)',\n bottleGreenLight75: '#7FDBCE',\n bottleGreenDark: '#008573',\n bottleGreenDark120: '#00884E',\n midnight75Lighter: '#AC82D6',\n gold: '#FAB313',\n orange: '#DA6325',\n orange70: 'rgba(218, 100, 37, 0.7)',\n navyBlue: '#00214A',\n white: '#FFFFFF',\n black: '#000000',\n grayLight: '#9EA4AC',\n grayLight95: 'rgba(158, 164, 172, 0.95)',\n gray: '#7B8085',\n darkGray: '#1C1C1C',\n brightBlue: 'rgba(51, 88, 255, 0)',\n brightBlue30: 'rgba(51, 88, 255, 0.3)',\n darkBlue: '#262f3c',\n};\n\nexport const twColorPallete = toTwConfigKeys(colorPalette);\n\nexport type ColorCode = ValueOf<typeof colorPalette>;\n"],"mappings":"AACA,SAASA,cAAc,QAAQ,SAAS;AAExC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,cAAc,EAAE,SAAS;EACzBC,aAAa,EAAE,SAAS;EACxBC,eAAe,EAAE,yBAAyB;EAC1CC,UAAU,EAAE,SAAS;EACrBC,YAAY,EAAE,wBAAwB;EACtCC,cAAc,EAAE,SAAS;EACzBC,WAAW,EAAE,SAAS;EACtBC,gBAAgB,EAAE,SAAS;EAC3BC,kBAAkB,EAAE,wBAAwB;EAC5CC,kBAAkB,EAAE,SAAS;EAC7BC,eAAe,EAAE,SAAS;EAC1BC,kBAAkB,EAAE,SAAS;EAC7BC,iBAAiB,EAAE,SAAS;EAC5BC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,yBAAyB;EACnCC,QAAQ,EAAE,SAAS;EACnBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,SAAS,EAAE,SAAS;EACpBC,WAAW,EAAE,2BAA2B;EACxCC,IAAI,EAAE,SAAS;EACfC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,sBAAsB;EAClCC,YAAY,EAAE,wBAAwB;EACtCC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG9B,cAAc,CAACC,YAAY,CAAC","ignoreList":[]}
@@ -51,7 +51,8 @@ export const sharedPreset = {
51
51
  },
52
52
  boxShadow: {
53
53
  innerBorder: 'inset 0 0 0 1px',
54
- innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))'
54
+ innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',
55
+ basic: '0 2px 8px 0 rgba(0, 33, 74, 0.25)'
55
56
  }
56
57
  },
57
58
  fontFamily: {
@@ -1 +1 @@
1
- {"version":3,"file":"preset.js","names":["twColorPallete","themes","sharedPreset","prefix","plugins","theme","extend","colors","heatmap","empty","negative","neutral","positive","backgroundImage","loader","whiteWithShadow","lightGreyWithShadow","whiteOpacity","blackOpacity","keyframes","spinner","transform","transitionProperty","width","boxShadow","innerBorder","innerBorderBgColor","fontFamily","sans"],"sources":["../../../src/tailwind/preset.ts"],"sourcesContent":["import type { Config } from 'tailwindcss';\n\nimport { twColorPallete } from './colors';\nimport { themes } from './themes';\n\nexport const sharedPreset: Omit<Config, 'content'> = {\n prefix: 'lw-',\n plugins: [themes],\n theme: {\n extend: {\n colors: {\n ...twColorPallete,\n heatmap: {\n empty: '#D7D8D9',\n 'strong-negative': '#DA6325',\n negative: '#EBA463',\n 'weak-negative': '#F6E8C3',\n neutral: '#F5F5F5',\n 'weak-positive': '#C7EAE5',\n positive: '#70D2AF',\n 'strong-positive': '#008573',\n },\n },\n backgroundImage: {\n loader:\n 'linear-gradient(90deg, hsl(var(--twc-border-primary))0%, hsl(var(--twc-border-secondary)) 50%, hsl(var(--twc-border-primary)) 100%);',\n whiteWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #ffffff 10px)',\n lightGreyWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #f4f8fa 10px)',\n whiteOpacity:\n 'linear-gradient(to left, rgba(255,255,255,0.5), white 0.625rem)',\n blackOpacity:\n 'linear-gradient(to left, rgba(0,0,0,0.5), black 0.625rem)',\n },\n keyframes: {\n spinner: {\n '0%': { transform: 'rotate(0deg)' },\n '85%': { transform: 'rotate(360deg)' },\n '100%': { transform: 'rotate(360deg)' },\n },\n loader: {\n '0%': { transform: 'translateX(-100%)' },\n '100%': { transform: 'translateX(100%)' },\n },\n },\n transitionProperty: {\n width: 'width, transform',\n },\n boxShadow: {\n innerBorder: 'inset 0 0 0 1px',\n innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',\n },\n },\n fontFamily: {\n sans: ['Sofia W03', 'Helvetica Neue', 'Arial', 'sans-serif'],\n },\n },\n};\n"],"mappings":"AAEA,SAASA,cAAc,QAAQ,UAAU;AACzC,SAASC,MAAM,QAAQ,UAAU;AAEjC,OAAO,MAAMC,YAAqC,GAAG;EACnDC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,CAACH,MAAM,CAAC;EACjBI,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,MAAM,EAAE;QACN,GAAGP,cAAc;QACjBQ,OAAO,EAAE;UACPC,KAAK,EAAE,SAAS;UAChB,iBAAiB,EAAE,SAAS;UAC5BC,QAAQ,EAAE,SAAS;UACnB,eAAe,EAAE,SAAS;UAC1BC,OAAO,EAAE,SAAS;UAClB,eAAe,EAAE,SAAS;UAC1BC,QAAQ,EAAE,SAAS;UACnB,iBAAiB,EAAE;QACrB;MACF,CAAC;MACDC,eAAe,EAAE;QACfC,MAAM,EACJ,sIAAsI;QACxIC,eAAe,EACb,kFAAkF;QACpFC,mBAAmB,EACjB,kFAAkF;QACpFC,YAAY,EACV,iEAAiE;QACnEC,YAAY,EACV;MACJ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE;UACP,IAAI,EAAE;YAAEC,SAAS,EAAE;UAAe,CAAC;UACnC,KAAK,EAAE;YAAEA,SAAS,EAAE;UAAiB,CAAC;UACtC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAiB;QACxC,CAAC;QACDP,MAAM,EAAE;UACN,IAAI,EAAE;YAAEO,SAAS,EAAE;UAAoB,CAAC;UACxC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAmB;QAC1C;MACF,CAAC;MACDC,kBAAkB,EAAE;QAClBC,KAAK,EAAE;MACT,CAAC;MACDC,SAAS,EAAE;QACTC,WAAW,EAAE,iBAAiB;QAC9BC,kBAAkB,EAAE;MACtB;IACF,CAAC;IACDC,UAAU,EAAE;MACVC,IAAI,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;IAC7D;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"preset.js","names":["twColorPallete","themes","sharedPreset","prefix","plugins","theme","extend","colors","heatmap","empty","negative","neutral","positive","backgroundImage","loader","whiteWithShadow","lightGreyWithShadow","whiteOpacity","blackOpacity","keyframes","spinner","transform","transitionProperty","width","boxShadow","innerBorder","innerBorderBgColor","basic","fontFamily","sans"],"sources":["../../../src/tailwind/preset.ts"],"sourcesContent":["import type { Config } from 'tailwindcss';\n\nimport { twColorPallete } from './colors';\nimport { themes } from './themes';\n\nexport const sharedPreset: Omit<Config, 'content'> = {\n prefix: 'lw-',\n plugins: [themes],\n theme: {\n extend: {\n colors: {\n ...twColorPallete,\n heatmap: {\n empty: '#D7D8D9',\n 'strong-negative': '#DA6325',\n negative: '#EBA463',\n 'weak-negative': '#F6E8C3',\n neutral: '#F5F5F5',\n 'weak-positive': '#C7EAE5',\n positive: '#70D2AF',\n 'strong-positive': '#008573',\n },\n },\n backgroundImage: {\n loader:\n 'linear-gradient(90deg, hsl(var(--twc-border-primary))0%, hsl(var(--twc-border-secondary)) 50%, hsl(var(--twc-border-primary)) 100%);',\n whiteWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #ffffff 10px)',\n lightGreyWithShadow:\n 'linear-gradient(270deg, transparent 0, rgba(215,217,221,0.5) 10px, #f4f8fa 10px)',\n whiteOpacity:\n 'linear-gradient(to left, rgba(255,255,255,0.5), white 0.625rem)',\n blackOpacity:\n 'linear-gradient(to left, rgba(0,0,0,0.5), black 0.625rem)',\n },\n keyframes: {\n spinner: {\n '0%': { transform: 'rotate(0deg)' },\n '85%': { transform: 'rotate(360deg)' },\n '100%': { transform: 'rotate(360deg)' },\n },\n loader: {\n '0%': { transform: 'translateX(-100%)' },\n '100%': { transform: 'translateX(100%)' },\n },\n },\n transitionProperty: {\n width: 'width, transform',\n },\n boxShadow: {\n innerBorder: 'inset 0 0 0 1px',\n innerBorderBgColor: 'inset 0 0 0 2px hsl(var(--twc-bg-primary))',\n basic: '0 2px 8px 0 rgba(0, 33, 74, 0.25)',\n },\n },\n fontFamily: {\n sans: ['Sofia W03', 'Helvetica Neue', 'Arial', 'sans-serif'],\n },\n },\n};\n"],"mappings":"AAEA,SAASA,cAAc,QAAQ,UAAU;AACzC,SAASC,MAAM,QAAQ,UAAU;AAEjC,OAAO,MAAMC,YAAqC,GAAG;EACnDC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,CAACH,MAAM,CAAC;EACjBI,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,MAAM,EAAE;QACN,GAAGP,cAAc;QACjBQ,OAAO,EAAE;UACPC,KAAK,EAAE,SAAS;UAChB,iBAAiB,EAAE,SAAS;UAC5BC,QAAQ,EAAE,SAAS;UACnB,eAAe,EAAE,SAAS;UAC1BC,OAAO,EAAE,SAAS;UAClB,eAAe,EAAE,SAAS;UAC1BC,QAAQ,EAAE,SAAS;UACnB,iBAAiB,EAAE;QACrB;MACF,CAAC;MACDC,eAAe,EAAE;QACfC,MAAM,EACJ,sIAAsI;QACxIC,eAAe,EACb,kFAAkF;QACpFC,mBAAmB,EACjB,kFAAkF;QACpFC,YAAY,EACV,iEAAiE;QACnEC,YAAY,EACV;MACJ,CAAC;MACDC,SAAS,EAAE;QACTC,OAAO,EAAE;UACP,IAAI,EAAE;YAAEC,SAAS,EAAE;UAAe,CAAC;UACnC,KAAK,EAAE;YAAEA,SAAS,EAAE;UAAiB,CAAC;UACtC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAiB;QACxC,CAAC;QACDP,MAAM,EAAE;UACN,IAAI,EAAE;YAAEO,SAAS,EAAE;UAAoB,CAAC;UACxC,MAAM,EAAE;YAAEA,SAAS,EAAE;UAAmB;QAC1C;MACF,CAAC;MACDC,kBAAkB,EAAE;QAClBC,KAAK,EAAE;MACT,CAAC;MACDC,SAAS,EAAE;QACTC,WAAW,EAAE,iBAAiB;QAC9BC,kBAAkB,EAAE,4CAA4C;QAChEC,KAAK,EAAE;MACT;IACF,CAAC;IACDC,UAAU,EAAE;MACVC,IAAI,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;IAC7D;EACF;AACF,CAAC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import { Locale } from '@oanda/mono-i18n';
2
2
  const validateLocale = locale => {
3
- const locales = ['en', 'zh', 'es', 'th'];
3
+ const locales = ['en', 'zh', 'es', 'th', 'fr', 'de', 'pt', 'it', 'zhCN', 'vi'];
4
4
  return locales.includes(locale?.substring(0, 2));
5
5
  };
6
6
  const getLocale = locale => {
@@ -8,7 +8,13 @@ const getLocale = locale => {
8
8
  en: Locale.en,
9
9
  zh: Locale.zhTW,
10
10
  es: Locale.es,
11
- th: Locale.th
11
+ th: Locale.th,
12
+ fr: Locale.fr,
13
+ de: Locale.de,
14
+ pt: Locale.pt,
15
+ it: Locale.it,
16
+ ['zh-CN']: Locale.zhCN,
17
+ vi: Locale.vi
12
18
  };
13
19
  return languageCodeDictionary[locale] || languageCodeDictionary.en;
14
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getLocale.js","names":["Locale","validateLocale","locale","locales","includes","substring","getLocale","languageCodeDictionary","en","zh","zhTW","es","th"],"sources":["../../../src/utils/getLocale.ts"],"sourcesContent":["import { Locale } from '@oanda/mono-i18n';\n\nconst validateLocale = (locale?: string) => {\n const locales = ['en', 'zh', 'es', 'th'];\n\n return locales.includes(locale?.substring(0, 2)!);\n};\n\nconst getLocale = (locale?: string) => {\n const languageCodeDictionary: Record<string, Locale> = {\n en: Locale.en,\n zh: Locale.zhTW,\n es: Locale.es,\n th: Locale.th,\n };\n\n return languageCodeDictionary[locale!] || languageCodeDictionary.en;\n};\n\nexport { getLocale, validateLocale };\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,kBAAkB;AAEzC,MAAMC,cAAc,GAAIC,MAAe,IAAK;EAC1C,MAAMC,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;EAExC,OAAOA,OAAO,CAACC,QAAQ,CAACF,MAAM,EAAEG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC;AACnD,CAAC;AAED,MAAMC,SAAS,GAAIJ,MAAe,IAAK;EACrC,MAAMK,sBAA8C,GAAG;IACrDC,EAAE,EAAER,MAAM,CAACQ,EAAE;IACbC,EAAE,EAAET,MAAM,CAACU,IAAI;IACfC,EAAE,EAAEX,MAAM,CAACW,EAAE;IACbC,EAAE,EAAEZ,MAAM,CAACY;EACb,CAAC;EAED,OAAOL,sBAAsB,CAACL,MAAM,CAAE,IAAIK,sBAAsB,CAACC,EAAE;AACrE,CAAC;AAED,SAASF,SAAS,EAAEL,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"getLocale.js","names":["Locale","validateLocale","locale","locales","includes","substring","getLocale","languageCodeDictionary","en","zh","zhTW","es","th","fr","de","pt","it","zhCN","vi"],"sources":["../../../src/utils/getLocale.ts"],"sourcesContent":["import { Locale } from '@oanda/mono-i18n';\n\nconst validateLocale = (locale?: string) => {\n const locales = [\n 'en',\n 'zh',\n 'es',\n 'th',\n 'fr',\n 'de',\n 'pt',\n 'it',\n 'zhCN',\n 'vi',\n ];\n\n return locales.includes(locale?.substring(0, 2)!);\n};\n\nconst getLocale = (locale?: string) => {\n const languageCodeDictionary: Record<string, Locale> = {\n en: Locale.en,\n zh: Locale.zhTW,\n es: Locale.es,\n th: Locale.th,\n fr: Locale.fr,\n de: Locale.de,\n pt: Locale.pt,\n it: Locale.it,\n ['zh-CN']: Locale.zhCN,\n vi: Locale.vi,\n };\n\n return languageCodeDictionary[locale!] || languageCodeDictionary.en;\n};\n\nexport { getLocale, validateLocale };\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,kBAAkB;AAEzC,MAAMC,cAAc,GAAIC,MAAe,IAAK;EAC1C,MAAMC,OAAO,GAAG,CACd,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,IAAI,CACL;EAED,OAAOA,OAAO,CAACC,QAAQ,CAACF,MAAM,EAAEG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAE,CAAC;AACnD,CAAC;AAED,MAAMC,SAAS,GAAIJ,MAAe,IAAK;EACrC,MAAMK,sBAA8C,GAAG;IACrDC,EAAE,EAAER,MAAM,CAACQ,EAAE;IACbC,EAAE,EAAET,MAAM,CAACU,IAAI;IACfC,EAAE,EAAEX,MAAM,CAACW,EAAE;IACbC,EAAE,EAAEZ,MAAM,CAACY,EAAE;IACbC,EAAE,EAAEb,MAAM,CAACa,EAAE;IACbC,EAAE,EAAEd,MAAM,CAACc,EAAE;IACbC,EAAE,EAAEf,MAAM,CAACe,EAAE;IACbC,EAAE,EAAEhB,MAAM,CAACgB,EAAE;IACb,CAAC,OAAO,GAAGhB,MAAM,CAACiB,IAAI;IACtBC,EAAE,EAAElB,MAAM,CAACkB;EACb,CAAC;EAED,OAAOX,sBAAsB,CAACL,MAAM,CAAE,IAAIK,sBAAsB,CAACC,EAAE;AACrE,CAAC;AAED,SAASF,SAAS,EAAEL,cAAc","ignoreList":[]}
@@ -1,5 +1,9 @@
1
1
  import type { FC, PropsWithChildren } from 'react';
2
2
  import type { RenderComponentParams } from '../../types';
3
- type DisclaimerProps = PropsWithChildren & Omit<RenderComponentParams, 'Component'>;
3
+ type DisclaimerProps = PropsWithChildren & Omit<RenderComponentParams, 'Component'> & {
4
+ text?: string;
5
+ isSlim?: boolean;
6
+ infoButtonPosition?: 'left' | 'top';
7
+ };
4
8
  export declare const Disclaimer: FC<DisclaimerProps>;
5
9
  export {};
@@ -2,5 +2,10 @@ import type { FC, PropsWithChildren } from 'react';
2
2
  import type { WidgetLink, WidgetStyling } from '../../types';
3
3
  export type WidgetWrapperProps = PropsWithChildren & WidgetLink & {
4
4
  isParamError?: boolean | undefined;
5
+ disclaimer?: {
6
+ position?: 'left' | 'top';
7
+ text?: string;
8
+ };
9
+ isSlim?: boolean;
5
10
  } & Pick<WidgetStyling, 'brandingSpace' | 'fitContent'>;
6
11
  export declare const WidgetWrapper: FC<WidgetWrapperProps>;
@@ -22,10 +22,12 @@ export declare const colorPalette: {
22
22
  white: string;
23
23
  black: string;
24
24
  grayLight: string;
25
+ grayLight95: string;
25
26
  gray: string;
26
27
  darkGray: string;
27
28
  brightBlue: string;
28
29
  brightBlue30: string;
30
+ darkBlue: string;
29
31
  };
30
32
  export declare const twColorPallete: {
31
33
  "red-Dark-": string;
@@ -50,9 +52,11 @@ export declare const twColorPallete: {
50
52
  "white-": string;
51
53
  "black-": string;
52
54
  "gray-Light-": string;
55
+ "gray-Light-9-5-": string;
53
56
  "gray-": string;
54
57
  "dark-Gray-": string;
55
58
  "bright-Blue-": string;
56
59
  "bright-Blue-3-0-": string;
60
+ "dark-Blue-": string;
57
61
  };
58
62
  export type ColorCode = ValueOf<typeof colorPalette>;