@oanda/labs-widget-common 1.0.222 → 1.0.224
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/CHANGELOG.md +1764 -0
- package/dist/main/chart/BaseChart.js +10 -8
- package/dist/main/chart/BaseChart.js.map +1 -1
- package/dist/main/chart/formatters.js +4 -4
- package/dist/main/chart/formatters.js.map +1 -1
- package/dist/main/chart/getGridLines.js +12 -14
- package/dist/main/chart/getGridLines.js.map +1 -1
- package/dist/main/components/Button/Button.js +7 -4
- package/dist/main/components/Button/Button.js.map +1 -1
- package/dist/main/components/Card/Card.js +1 -2
- package/dist/main/components/Card/Card.js.map +1 -1
- package/dist/main/components/Card/rows/PriceCardRow.js +1 -1
- package/dist/main/components/Card/rows/PriceCardRow.js.map +1 -1
- package/dist/main/components/Disclaimer/Disclaimer.js +1 -2
- package/dist/main/components/Disclaimer/Disclaimer.js.map +1 -1
- package/dist/main/components/Input/NumberInput.js +13 -10
- package/dist/main/components/Input/NumberInput.js.map +1 -1
- package/dist/main/components/InstrumentRate/InstrumentRate.js +4 -3
- package/dist/main/components/InstrumentRate/InstrumentRate.js.map +1 -1
- package/dist/main/components/InstrumentRate/InstrumentRateWithChart.js +1 -1
- package/dist/main/components/InstrumentRate/InstrumentRateWithChart.js.map +1 -1
- package/dist/main/components/InstrumentRate/utils.js +1 -1
- package/dist/main/components/InstrumentRate/utils.js.map +1 -1
- package/dist/main/components/Label/Label.js +6 -3
- package/dist/main/components/Label/Label.js.map +1 -1
- package/dist/main/components/LastUpdated/LastUpdated.js +1 -1
- package/dist/main/components/LastUpdated/LastUpdated.js.map +1 -1
- package/dist/main/components/LineChart/LineChart.js +2 -2
- package/dist/main/components/LineChart/LineChart.js.map +1 -1
- package/dist/main/components/LineChart/utils.js +2 -2
- package/dist/main/components/LineChart/utils.js.map +1 -1
- package/dist/main/components/Pagination/Pagination.js +2 -2
- package/dist/main/components/Pagination/Pagination.js.map +1 -1
- package/dist/main/components/Price/Price.js +1 -2
- package/dist/main/components/Price/Price.js.map +1 -1
- package/dist/main/components/Select/Select.js +3 -4
- package/dist/main/components/Select/Select.js.map +1 -1
- package/dist/main/components/Sentiment/Sentiment.js +7 -7
- package/dist/main/components/Sentiment/Sentiment.js.map +1 -1
- package/dist/main/components/Sentiment/SentimentError.js +1 -1
- package/dist/main/components/Sentiment/SentimentError.js.map +1 -1
- package/dist/main/components/Sentiment/SentimentLoader.js +1 -1
- package/dist/main/components/Sentiment/SentimentLoader.js.map +1 -1
- package/dist/main/components/Sentiment/utils.js +3 -3
- package/dist/main/components/Sentiment/utils.js.map +1 -1
- package/dist/main/components/Switch/Switch.js +4 -5
- package/dist/main/components/Switch/Switch.js.map +1 -1
- package/dist/main/components/Switch/SwitchItem.js +1 -2
- package/dist/main/components/Switch/SwitchItem.js.map +1 -1
- package/dist/main/components/Table/Table.js +1 -2
- package/dist/main/components/Table/Table.js.map +1 -1
- package/dist/main/components/Table/TableCell.js +1 -1
- package/dist/main/components/Table/TableCell.js.map +1 -1
- package/dist/main/components/Table/TableHeader.js +1 -1
- package/dist/main/components/Table/TableHeader.js.map +1 -1
- package/dist/main/components/Table/TableRow.js +1 -2
- package/dist/main/components/Table/TableRow.js.map +1 -1
- package/dist/main/components/TableWidget/CardRecordRow.js +2 -1
- package/dist/main/components/TableWidget/CardRecordRow.js.map +1 -1
- package/dist/main/components/TableWidget/CardRenderer.js +6 -3
- package/dist/main/components/TableWidget/CardRenderer.js.map +1 -1
- package/dist/main/components/TableWidget/Cards.js +1 -1
- package/dist/main/components/TableWidget/Cards.js.map +1 -1
- package/dist/main/components/TableWidget/ColumnRenderer.js +7 -4
- package/dist/main/components/TableWidget/ColumnRenderer.js.map +1 -1
- package/dist/main/components/TableWidget/TableWidget.js +1 -1
- package/dist/main/components/TableWidget/TableWidget.js.map +1 -1
- package/dist/main/components/Tabs/Tabs.js +1 -1
- package/dist/main/components/Tabs/Tabs.js.map +1 -1
- package/dist/main/components/TextInput/TextInput.js +4 -4
- package/dist/main/components/TextInput/TextInput.js.map +1 -1
- package/dist/main/components/Truncate/Truncate.js +2 -3
- package/dist/main/components/Truncate/Truncate.js.map +1 -1
- package/dist/main/components/WidgetWrapper/WidgetWrapper.js +2 -2
- package/dist/main/components/WidgetWrapper/WidgetWrapper.js.map +1 -1
- package/dist/main/hooks/useLiveRatesMessage.js +7 -7
- package/dist/main/hooks/useLiveRatesMessage.js.map +1 -1
- package/dist/main/hooks/useLiveRatesQuery.js +5 -3
- package/dist/main/hooks/useLiveRatesQuery.js.map +1 -1
- package/dist/main/hooks/useRecords.js +5 -5
- package/dist/main/hooks/useRecords.js.map +1 -1
- package/dist/main/hooks/useVisibleLiveDataRecord.js +10 -10
- package/dist/main/hooks/useVisibleLiveDataRecord.js.map +1 -1
- package/dist/main/providers/Layout/LayoutProvider.js +1 -2
- package/dist/main/providers/Layout/LayoutProvider.js.map +1 -1
- package/dist/main/providers/LiveRates/LiveRatesProvider.js +16 -13
- package/dist/main/providers/LiveRates/LiveRatesProvider.js.map +1 -1
- package/dist/main/providers/Widget/WidgetProvider.js +7 -6
- package/dist/main/providers/Widget/WidgetProvider.js.map +1 -1
- package/dist/main/tailwind/preset.js +7 -3
- package/dist/main/tailwind/preset.js.map +1 -1
- package/dist/main/tailwind/themes/themeColors.js +7 -5
- package/dist/main/tailwind/themes/themeColors.js.map +1 -1
- package/dist/main/tailwind/utils.js +7 -3
- package/dist/main/tailwind/utils.js.map +1 -1
- package/dist/main/testUtils/index.js +2 -2
- package/dist/main/testUtils/index.js.map +1 -1
- package/dist/main/utils/dateUtils.js +3 -3
- package/dist/main/utils/dateUtils.js.map +1 -1
- package/dist/main/utils/getLocale.js +1 -1
- package/dist/main/utils/getLocale.js.map +1 -1
- package/dist/main/utils/liveRates/buildUrl.js +11 -9
- package/dist/main/utils/liveRates/buildUrl.js.map +1 -1
- package/dist/main/utils/liveRates/calculatePriceChangeFromOpen.js +1 -1
- package/dist/main/utils/liveRates/calculatePriceChangeFromOpen.js.map +1 -1
- package/dist/module/chart/BaseChart.js +9 -6
- package/dist/module/chart/BaseChart.js.map +1 -1
- package/dist/module/chart/formatters.js +4 -4
- package/dist/module/chart/formatters.js.map +1 -1
- package/dist/module/chart/getGridLines.js +12 -14
- package/dist/module/chart/getGridLines.js.map +1 -1
- package/dist/module/components/Button/Button.js +7 -4
- package/dist/module/components/Button/Button.js.map +1 -1
- package/dist/module/components/Card/rows/PriceCardRow.js +1 -1
- package/dist/module/components/Card/rows/PriceCardRow.js.map +1 -1
- package/dist/module/components/Input/NumberInput.js +13 -10
- package/dist/module/components/Input/NumberInput.js.map +1 -1
- package/dist/module/components/InstrumentRate/InstrumentRate.js +4 -3
- package/dist/module/components/InstrumentRate/InstrumentRate.js.map +1 -1
- package/dist/module/components/InstrumentRate/InstrumentRateWithChart.js +1 -1
- package/dist/module/components/InstrumentRate/InstrumentRateWithChart.js.map +1 -1
- package/dist/module/components/InstrumentRate/utils.js +1 -1
- package/dist/module/components/InstrumentRate/utils.js.map +1 -1
- package/dist/module/components/Label/Label.js +6 -3
- package/dist/module/components/Label/Label.js.map +1 -1
- package/dist/module/components/LastUpdated/LastUpdated.js +1 -1
- package/dist/module/components/LastUpdated/LastUpdated.js.map +1 -1
- package/dist/module/components/LineChart/LineChart.js +2 -2
- package/dist/module/components/LineChart/LineChart.js.map +1 -1
- package/dist/module/components/LineChart/utils.js +2 -2
- package/dist/module/components/LineChart/utils.js.map +1 -1
- package/dist/module/components/Pagination/Pagination.js +2 -2
- package/dist/module/components/Pagination/Pagination.js.map +1 -1
- package/dist/module/components/Select/Select.js +2 -2
- package/dist/module/components/Select/Select.js.map +1 -1
- package/dist/module/components/Sentiment/Sentiment.js +7 -7
- package/dist/module/components/Sentiment/Sentiment.js.map +1 -1
- package/dist/module/components/Sentiment/SentimentError.js +1 -1
- package/dist/module/components/Sentiment/SentimentError.js.map +1 -1
- package/dist/module/components/Sentiment/SentimentLoader.js +1 -1
- package/dist/module/components/Sentiment/SentimentLoader.js.map +1 -1
- package/dist/module/components/Sentiment/utils.js +3 -3
- package/dist/module/components/Sentiment/utils.js.map +1 -1
- package/dist/module/components/Switch/Switch.js +3 -3
- package/dist/module/components/Switch/Switch.js.map +1 -1
- package/dist/module/components/Table/TableCell.js +1 -1
- package/dist/module/components/Table/TableCell.js.map +1 -1
- package/dist/module/components/Table/TableHeader.js +1 -1
- package/dist/module/components/Table/TableHeader.js.map +1 -1
- package/dist/module/components/TableWidget/CardRecordRow.js +2 -1
- package/dist/module/components/TableWidget/CardRecordRow.js.map +1 -1
- package/dist/module/components/TableWidget/CardRenderer.js +6 -3
- package/dist/module/components/TableWidget/CardRenderer.js.map +1 -1
- package/dist/module/components/TableWidget/Cards.js +1 -1
- package/dist/module/components/TableWidget/Cards.js.map +1 -1
- package/dist/module/components/TableWidget/ColumnRenderer.js +7 -4
- package/dist/module/components/TableWidget/ColumnRenderer.js.map +1 -1
- package/dist/module/components/TableWidget/TableWidget.js +1 -1
- package/dist/module/components/TableWidget/TableWidget.js.map +1 -1
- package/dist/module/components/Tabs/Tabs.js +1 -1
- package/dist/module/components/Tabs/Tabs.js.map +1 -1
- package/dist/module/components/TextInput/TextInput.js +3 -2
- package/dist/module/components/TextInput/TextInput.js.map +1 -1
- package/dist/module/components/Truncate/Truncate.js +1 -1
- package/dist/module/components/Truncate/Truncate.js.map +1 -1
- package/dist/module/components/WidgetWrapper/WidgetWrapper.js +2 -2
- package/dist/module/components/WidgetWrapper/WidgetWrapper.js.map +1 -1
- package/dist/module/hooks/useLiveRatesMessage.js +7 -7
- package/dist/module/hooks/useLiveRatesMessage.js.map +1 -1
- package/dist/module/hooks/useLiveRatesQuery.js +5 -3
- package/dist/module/hooks/useLiveRatesQuery.js.map +1 -1
- package/dist/module/hooks/useRecords.js +5 -5
- package/dist/module/hooks/useRecords.js.map +1 -1
- package/dist/module/hooks/useVisibleLiveDataRecord.js +10 -10
- package/dist/module/hooks/useVisibleLiveDataRecord.js.map +1 -1
- package/dist/module/providers/LiveRates/LiveRatesProvider.js +15 -11
- package/dist/module/providers/LiveRates/LiveRatesProvider.js.map +1 -1
- package/dist/module/providers/Widget/WidgetProvider.js +6 -4
- package/dist/module/providers/Widget/WidgetProvider.js.map +1 -1
- package/dist/module/tailwind/preset.js +7 -3
- package/dist/module/tailwind/preset.js.map +1 -1
- package/dist/module/tailwind/themes/themeColors.js +7 -5
- package/dist/module/tailwind/themes/themeColors.js.map +1 -1
- package/dist/module/tailwind/utils.js +7 -3
- package/dist/module/tailwind/utils.js.map +1 -1
- package/dist/module/testUtils/index.js +2 -2
- package/dist/module/testUtils/index.js.map +1 -1
- package/dist/module/utils/dateUtils.js +3 -3
- package/dist/module/utils/dateUtils.js.map +1 -1
- package/dist/module/utils/getLocale.js +1 -1
- package/dist/module/utils/getLocale.js.map +1 -1
- package/dist/module/utils/liveRates/buildUrl.js +11 -9
- package/dist/module/utils/liveRates/buildUrl.js.map +1 -1
- package/dist/module/utils/liveRates/calculatePriceChangeFromOpen.js +1 -1
- package/dist/module/utils/liveRates/calculatePriceChangeFromOpen.js.map +1 -1
- package/package.json +2 -2
|
@@ -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","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;
|
|
1
|
+
{"version":3,"file":"preset.js","names":["_colors","require","_themes","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","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":"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","ignoreList":[]}
|
|
@@ -9,10 +9,12 @@ var _utils = require("../utils");
|
|
|
9
9
|
var _background = require("./background");
|
|
10
10
|
var _border = require("./border");
|
|
11
11
|
var _text = require("./text");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
|
+
const themeColors = exports.themeColors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _text.textColors), _background.backgroundColors), _border.borderColors), {}, {
|
|
16
18
|
primary: {
|
|
17
19
|
dark: _colors.colorPalette.orange,
|
|
18
20
|
light: _colors.colorPalette.bottleGreenDark
|
|
@@ -33,6 +35,6 @@ const themeColors = exports.themeColors = {
|
|
|
33
35
|
dark: _colors.colorPalette.orange,
|
|
34
36
|
light: _colors.colorPalette.turquoiseLight
|
|
35
37
|
}
|
|
36
|
-
};
|
|
38
|
+
});
|
|
37
39
|
const twTheme = exports.twTheme = (0, _utils.toTwConfigKeys)(themeColors);
|
|
38
40
|
//# sourceMappingURL=themeColors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeColors.js","names":["_colors","require","_utils","_background","_border","_text","themeColors","exports","textColors","backgroundColors","borderColors","primary","dark","colorPalette","orange","light","bottleGreenDark","secondary","navyBlue","ok","greenLight","danger","raspberryLight","chart","turquoiseLight","twTheme","toTwConfigKeys"],"sources":["../../../../src/tailwind/themes/themeColors.ts"],"sourcesContent":["import { colorPalette } from '../colors';\nimport type { ThemeColor } from '../types';\nimport { toTwConfigKeys } from '../utils';\nimport { type BackgroundColorKeys, backgroundColors } from './background';\nimport { borderColors, type BorderColorsKeys } from './border';\nimport { textColors, type TextColorsKeys } from './text';\n\ntype ThemeKeys =\n | 'primary'\n | 'secondary'\n | 'ok'\n | 'danger'\n | 'chart'\n | BackgroundColorKeys\n | BorderColorsKeys\n | TextColorsKeys;\n\nexport const themeColors: Record<ThemeKeys, ThemeColor> = {\n ...textColors,\n ...backgroundColors,\n ...borderColors,\n primary: {\n dark: colorPalette.orange,\n light: colorPalette.bottleGreenDark,\n },\n secondary: {\n dark: colorPalette.orange,\n light: colorPalette.navyBlue,\n },\n ok: {\n dark: colorPalette.bottleGreenDark,\n light: colorPalette.greenLight,\n },\n danger: {\n dark: colorPalette.orange,\n light: colorPalette.raspberryLight,\n },\n chart: {\n dark: colorPalette.orange,\n light: colorPalette.turquoiseLight,\n },\n};\n\nexport const twTheme = toTwConfigKeys(themeColors);\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;
|
|
1
|
+
{"version":3,"file":"themeColors.js","names":["_colors","require","_utils","_background","_border","_text","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","themeColors","exports","textColors","backgroundColors","borderColors","primary","dark","colorPalette","orange","light","bottleGreenDark","secondary","navyBlue","ok","greenLight","danger","raspberryLight","chart","turquoiseLight","twTheme","toTwConfigKeys"],"sources":["../../../../src/tailwind/themes/themeColors.ts"],"sourcesContent":["import { colorPalette } from '../colors';\nimport type { ThemeColor } from '../types';\nimport { toTwConfigKeys } from '../utils';\nimport { type BackgroundColorKeys, backgroundColors } from './background';\nimport { borderColors, type BorderColorsKeys } from './border';\nimport { textColors, type TextColorsKeys } from './text';\n\ntype ThemeKeys =\n | 'primary'\n | 'secondary'\n | 'ok'\n | 'danger'\n | 'chart'\n | BackgroundColorKeys\n | BorderColorsKeys\n | TextColorsKeys;\n\nexport const themeColors: Record<ThemeKeys, ThemeColor> = {\n ...textColors,\n ...backgroundColors,\n ...borderColors,\n primary: {\n dark: colorPalette.orange,\n light: colorPalette.bottleGreenDark,\n },\n secondary: {\n dark: colorPalette.orange,\n light: colorPalette.navyBlue,\n },\n ok: {\n dark: colorPalette.bottleGreenDark,\n light: colorPalette.greenLight,\n },\n danger: {\n dark: colorPalette.orange,\n light: colorPalette.raspberryLight,\n },\n chart: {\n dark: colorPalette.orange,\n light: colorPalette.turquoiseLight,\n },\n};\n\nexport const twTheme = toTwConfigKeys(themeColors);\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -4,12 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.toTwConfigKeys = void 0;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
12
|
const toTwConfigKeys = obj => Object.keys(obj).reduce((result, key) => {
|
|
8
13
|
const kebabKey = key.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/([0-9]+)/g, '-$1').toLowerCase();
|
|
9
|
-
return {
|
|
10
|
-
...result,
|
|
14
|
+
return _objectSpread(_objectSpread({}, result), {}, {
|
|
11
15
|
[kebabKey]: obj[key]
|
|
12
|
-
};
|
|
16
|
+
});
|
|
13
17
|
}, {});
|
|
14
18
|
exports.toTwConfigKeys = toTwConfigKeys;
|
|
15
19
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["toTwConfigKeys","obj","Object","keys","reduce","result","key","kebabKey","replace","toLowerCase","exports"],"sources":["../../../src/tailwind/utils.ts"],"sourcesContent":["import type { ThemeColor } from './types';\n\ntype KebabCase<S extends string> = S extends `${infer Head}${infer Tail}`\n ? Tail extends Capitalize<Tail>\n ? `${Lowercase<Head>}-${KebabCase<Tail>}`\n : `${Head}${KebabCase<Tail>}`\n : S;\n\ntype KebabCaseKeys<T extends Record<string, string | ThemeColor>> = {\n [K in keyof T as KebabCase<K & string>]: T[K];\n};\n\nexport const toTwConfigKeys = <T extends Record<string, string | ThemeColor>>(\n obj: T\n): KebabCaseKeys<T> =>\n Object.keys(obj).reduce((result, key) => {\n const kebabKey = key\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .replace(/([0-9]+)/g, '-$1')\n .toLowerCase();\n return {\n ...result,\n [kebabKey]: obj[key],\n };\n }, {} as KebabCaseKeys<T>);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["toTwConfigKeys","obj","Object","keys","reduce","result","key","kebabKey","replace","toLowerCase","_objectSpread","exports"],"sources":["../../../src/tailwind/utils.ts"],"sourcesContent":["import type { ThemeColor } from './types';\n\ntype KebabCase<S extends string> = S extends `${infer Head}${infer Tail}`\n ? Tail extends Capitalize<Tail>\n ? `${Lowercase<Head>}-${KebabCase<Tail>}`\n : `${Head}${KebabCase<Tail>}`\n : S;\n\ntype KebabCaseKeys<T extends Record<string, string | ThemeColor>> = {\n [K in keyof T as KebabCase<K & string>]: T[K];\n};\n\nexport const toTwConfigKeys = <T extends Record<string, string | ThemeColor>>(\n obj: T\n): KebabCaseKeys<T> =>\n Object.keys(obj).reduce((result, key) => {\n const kebabKey = key\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .replace(/([0-9]+)/g, '-$1')\n .toLowerCase();\n return {\n ...result,\n [kebabKey]: obj[key],\n };\n }, {} as KebabCaseKeys<T>);\n"],"mappings":";;;;;;;;;;;AAYO,MAAMA,cAAc,GACzBC,GAAM,IAENC,MAAM,CAACC,IAAI,CAACF,GAAG,CAAC,CAACG,MAAM,CAAC,CAACC,MAAM,EAAEC,GAAG,KAAK;EACvC,MAAMC,QAAQ,GAAGD,GAAG,CACjBE,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,CACnCA,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAC3BC,WAAW,CAAC,CAAC;EAChB,OAAAC,aAAA,CAAAA,aAAA,KACKL,MAAM;IACT,CAACE,QAAQ,GAAGN,GAAG,CAACK,GAAG;EAAC;AAExB,CAAC,EAAE,CAAC,CAAqB,CAAC;AAACK,OAAA,CAAAX,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -16,8 +16,8 @@ const MockLayoutProvider = _ref => {
|
|
|
16
16
|
} = _ref;
|
|
17
17
|
return _react.default.createElement(_providers.LayoutContext.Provider, {
|
|
18
18
|
value: {
|
|
19
|
-
size: size
|
|
20
|
-
isDark: isDark
|
|
19
|
+
size: size !== null && size !== void 0 ? size : _types.Size.DESKTOP,
|
|
20
|
+
isDark: isDark !== null && isDark !== void 0 ? isDark : true,
|
|
21
21
|
theme: _types.Theme.Dark
|
|
22
22
|
}
|
|
23
23
|
}, children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_providers","_types","e","__esModule","default","MockLayoutProvider","_ref","children","size","isDark","createElement","LayoutContext","Provider","value","Size","DESKTOP","theme","Theme","Dark","exports"],"sources":["../../../src/testUtils/index.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { LayoutContextValue } from '../providers';\nimport { LayoutContext } from '../providers';\nimport { Size, Theme } from '../types';\n\nexport const MockLayoutProvider: FC<\n PropsWithChildren & Partial<LayoutContextValue>\n> = ({ children, size, isDark }) => (\n <LayoutContext.Provider\n value={{\n size: size ?? Size.DESKTOP,\n isDark: isDark ?? true,\n theme: Theme.Dark,\n }}\n >\n {children}\n </LayoutContext.Provider>\n);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAuC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,kBAEZ,GAAGC,IAAA;EAAA,IAAC;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAAH,IAAA;EAAA,OAC7BT,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,UAAA,CAAAW,aAAa,CAACC,QAAQ;IACrBC,KAAK,EAAE;MACLL,IAAI,EAAEA,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_providers","_types","e","__esModule","default","MockLayoutProvider","_ref","children","size","isDark","createElement","LayoutContext","Provider","value","Size","DESKTOP","theme","Theme","Dark","exports"],"sources":["../../../src/testUtils/index.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport type { LayoutContextValue } from '../providers';\nimport { LayoutContext } from '../providers';\nimport { Size, Theme } from '../types';\n\nexport const MockLayoutProvider: FC<\n PropsWithChildren & Partial<LayoutContextValue>\n> = ({ children, size, isDark }) => (\n <LayoutContext.Provider\n value={{\n size: size ?? Size.DESKTOP,\n isDark: isDark ?? true,\n theme: Theme.Dark,\n }}\n >\n {children}\n </LayoutContext.Provider>\n);\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAuC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,kBAEZ,GAAGC,IAAA;EAAA,IAAC;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAAH,IAAA;EAAA,OAC7BT,MAAA,CAAAO,OAAA,CAAAM,aAAA,CAACV,UAAA,CAAAW,aAAa,CAACC,QAAQ;IACrBC,KAAK,EAAE;MACLL,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAIM,WAAI,CAACC,OAAO;MAC1BN,MAAM,EAAEA,MAAM,aAANA,MAAM,cAANA,MAAM,GAAI,IAAI;MACtBO,KAAK,EAAEC,YAAK,CAACC;IACf;EAAE,GAEDX,QACqB,CAAC;AAAA,CAC1B;AAACY,OAAA,CAAAd,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -10,11 +10,11 @@ const formatTimezone = timestamp => {
|
|
|
10
10
|
const timezoneOffset = date.getTimezoneOffset();
|
|
11
11
|
const timezoneSymbol = timezoneOffset < 0 ? '+' : '';
|
|
12
12
|
const timezoneValue = timezoneOffset / -60;
|
|
13
|
-
return
|
|
13
|
+
return "(UTC".concat(timezoneSymbol).concat(timezoneOffset ? timezoneValue : '', ")");
|
|
14
14
|
};
|
|
15
15
|
const formatUpdatedTimestampTime = timestamp => {
|
|
16
16
|
const date = new Date(timestamp);
|
|
17
|
-
return
|
|
17
|
+
return "".concat(addLeadingZero(date.getHours()), ":").concat(addLeadingZero(date.getMinutes()), ":").concat(addLeadingZero(date.getSeconds()));
|
|
18
18
|
};
|
|
19
19
|
exports.formatUpdatedTimestampTime = formatUpdatedTimestampTime;
|
|
20
20
|
const formatUpdatedTimestampDate = (timestamp, dateLabel) => {
|
|
@@ -24,6 +24,6 @@ const formatUpdatedTimestampDate = (timestamp, dateLabel) => {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
exports.formatUpdatedTimestampDate = formatUpdatedTimestampDate;
|
|
27
|
-
const formatUpdatedTimestamp = (timestamp, dateLabel) => timestamp ?
|
|
27
|
+
const formatUpdatedTimestamp = (timestamp, dateLabel) => timestamp ? "".concat(formatUpdatedTimestampTime(timestamp), ", ").concat(formatUpdatedTimestampDate(timestamp, dateLabel), " ").concat(formatTimezone(timestamp), ".") : '';
|
|
28
28
|
exports.formatUpdatedTimestamp = formatUpdatedTimestamp;
|
|
29
29
|
//# sourceMappingURL=dateUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateUtils.js","names":["addLeadingZero","value","String","padStart","formatTimezone","timestamp","date","Date","timezoneOffset","getTimezoneOffset","timezoneSymbol","timezoneValue","formatUpdatedTimestampTime","getHours","getMinutes","getSeconds","exports","formatUpdatedTimestampDate","dateLabel","timestampDate","toDateString","toLocaleDateString","undefined","dateStyle","formatUpdatedTimestamp"],"sources":["../../../src/utils/dateUtils.ts"],"sourcesContent":["const addLeadingZero = (value: number) => String(value).padStart(2, '0');\n\nconst formatTimezone = (timestamp: string) => {\n const date = new Date(timestamp);\n const timezoneOffset = date.getTimezoneOffset();\n const timezoneSymbol = timezoneOffset < 0 ? '+' : '';\n const timezoneValue = timezoneOffset / -60;\n\n return `(UTC${timezoneSymbol}${timezoneOffset ? timezoneValue : ''})`;\n};\n\nconst formatUpdatedTimestampTime = (timestamp: string) => {\n const date = new Date(timestamp);\n\n return `${addLeadingZero(date.getHours())}:${addLeadingZero(\n date.getMinutes()\n )}:${addLeadingZero(date.getSeconds())}`;\n};\n\nconst formatUpdatedTimestampDate = (timestamp: string, dateLabel: string) => {\n const timestampDate = new Date(timestamp);\n\n return new Date().toDateString() === timestampDate.toDateString()\n ? dateLabel\n : timestampDate.toLocaleDateString(undefined, { dateStyle: 'short' });\n};\n\nconst formatUpdatedTimestamp = (timestamp: string, dateLabel: string) =>\n timestamp\n ? `${formatUpdatedTimestampTime(timestamp)}, ${formatUpdatedTimestampDate(timestamp, dateLabel)} ${formatTimezone(timestamp)}.`\n : '';\n\nexport {\n formatUpdatedTimestamp,\n formatUpdatedTimestampDate,\n formatUpdatedTimestampTime,\n};\n"],"mappings":";;;;;;AAAA,MAAMA,cAAc,GAAIC,KAAa,IAAKC,MAAM,CAACD,KAAK,CAAC,CAACE,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAExE,MAAMC,cAAc,GAAIC,SAAiB,IAAK;EAC5C,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAACF,SAAS,CAAC;EAChC,MAAMG,cAAc,GAAGF,IAAI,CAACG,iBAAiB,CAAC,CAAC;EAC/C,MAAMC,cAAc,GAAGF,cAAc,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE;EACpD,MAAMG,aAAa,GAAGH,cAAc,GAAG,CAAC,EAAE;EAE1C,
|
|
1
|
+
{"version":3,"file":"dateUtils.js","names":["addLeadingZero","value","String","padStart","formatTimezone","timestamp","date","Date","timezoneOffset","getTimezoneOffset","timezoneSymbol","timezoneValue","concat","formatUpdatedTimestampTime","getHours","getMinutes","getSeconds","exports","formatUpdatedTimestampDate","dateLabel","timestampDate","toDateString","toLocaleDateString","undefined","dateStyle","formatUpdatedTimestamp"],"sources":["../../../src/utils/dateUtils.ts"],"sourcesContent":["const addLeadingZero = (value: number) => String(value).padStart(2, '0');\n\nconst formatTimezone = (timestamp: string) => {\n const date = new Date(timestamp);\n const timezoneOffset = date.getTimezoneOffset();\n const timezoneSymbol = timezoneOffset < 0 ? '+' : '';\n const timezoneValue = timezoneOffset / -60;\n\n return `(UTC${timezoneSymbol}${timezoneOffset ? timezoneValue : ''})`;\n};\n\nconst formatUpdatedTimestampTime = (timestamp: string) => {\n const date = new Date(timestamp);\n\n return `${addLeadingZero(date.getHours())}:${addLeadingZero(\n date.getMinutes()\n )}:${addLeadingZero(date.getSeconds())}`;\n};\n\nconst formatUpdatedTimestampDate = (timestamp: string, dateLabel: string) => {\n const timestampDate = new Date(timestamp);\n\n return new Date().toDateString() === timestampDate.toDateString()\n ? dateLabel\n : timestampDate.toLocaleDateString(undefined, { dateStyle: 'short' });\n};\n\nconst formatUpdatedTimestamp = (timestamp: string, dateLabel: string) =>\n timestamp\n ? `${formatUpdatedTimestampTime(timestamp)}, ${formatUpdatedTimestampDate(timestamp, dateLabel)} ${formatTimezone(timestamp)}.`\n : '';\n\nexport {\n formatUpdatedTimestamp,\n formatUpdatedTimestampDate,\n formatUpdatedTimestampTime,\n};\n"],"mappings":";;;;;;AAAA,MAAMA,cAAc,GAAIC,KAAa,IAAKC,MAAM,CAACD,KAAK,CAAC,CAACE,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAExE,MAAMC,cAAc,GAAIC,SAAiB,IAAK;EAC5C,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAACF,SAAS,CAAC;EAChC,MAAMG,cAAc,GAAGF,IAAI,CAACG,iBAAiB,CAAC,CAAC;EAC/C,MAAMC,cAAc,GAAGF,cAAc,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE;EACpD,MAAMG,aAAa,GAAGH,cAAc,GAAG,CAAC,EAAE;EAE1C,cAAAI,MAAA,CAAcF,cAAc,EAAAE,MAAA,CAAGJ,cAAc,GAAGG,aAAa,GAAG,EAAE;AACpE,CAAC;AAED,MAAME,0BAA0B,GAAIR,SAAiB,IAAK;EACxD,MAAMC,IAAI,GAAG,IAAIC,IAAI,CAACF,SAAS,CAAC;EAEhC,UAAAO,MAAA,CAAUZ,cAAc,CAACM,IAAI,CAACQ,QAAQ,CAAC,CAAC,CAAC,OAAAF,MAAA,CAAIZ,cAAc,CACzDM,IAAI,CAACS,UAAU,CAAC,CAClB,CAAC,OAAAH,MAAA,CAAIZ,cAAc,CAACM,IAAI,CAACU,UAAU,CAAC,CAAC,CAAC;AACxC,CAAC;AAACC,OAAA,CAAAJ,0BAAA,GAAAA,0BAAA;AAEF,MAAMK,0BAA0B,GAAGA,CAACb,SAAiB,EAAEc,SAAiB,KAAK;EAC3E,MAAMC,aAAa,GAAG,IAAIb,IAAI,CAACF,SAAS,CAAC;EAEzC,OAAO,IAAIE,IAAI,CAAC,CAAC,CAACc,YAAY,CAAC,CAAC,KAAKD,aAAa,CAACC,YAAY,CAAC,CAAC,GAC7DF,SAAS,GACTC,aAAa,CAACE,kBAAkB,CAACC,SAAS,EAAE;IAAEC,SAAS,EAAE;EAAQ,CAAC,CAAC;AACzE,CAAC;AAACP,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAEF,MAAMO,sBAAsB,GAAGA,CAACpB,SAAiB,EAAEc,SAAiB,KAClEd,SAAS,MAAAO,MAAA,CACFC,0BAA0B,CAACR,SAAS,CAAC,QAAAO,MAAA,CAAKM,0BAA0B,CAACb,SAAS,EAAEc,SAAS,CAAC,OAAAP,MAAA,CAAIR,cAAc,CAACC,SAAS,CAAC,SAC1H,EAAE;AAACY,OAAA,CAAAQ,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.validateLocale = exports.getLocale = void 0;
|
|
|
7
7
|
var _monoI18n = require("@oanda/mono-i18n");
|
|
8
8
|
const validateLocale = locale => {
|
|
9
9
|
const locales = ['en', 'zh', 'es', 'th', 'fr', 'de', 'pt', 'it', 'zhCN', 'vi'];
|
|
10
|
-
return locales.includes(locale
|
|
10
|
+
return locales.includes(locale === null || locale === void 0 ? void 0 : locale.substring(0, 2));
|
|
11
11
|
};
|
|
12
12
|
exports.validateLocale = validateLocale;
|
|
13
13
|
const getLocale = locale => {
|
|
@@ -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","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,
|
|
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,aAANA,MAAM,uBAANA,MAAM,CAAEG,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":[]}
|
|
@@ -4,23 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.buildUrl = void 0;
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
12
|
const buildUrl = (url, query, options) => {
|
|
8
13
|
const [baseUrl, baseQueryString] = url.split('?');
|
|
9
14
|
if (!query && !baseQueryString) {
|
|
10
15
|
throw new Error('Instruments query is not provided!');
|
|
11
16
|
}
|
|
12
|
-
const queryParams = query && {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
dataSource: options.dataSource
|
|
17
|
-
} : {})
|
|
18
|
-
};
|
|
17
|
+
const queryParams = query && _objectSpread(_objectSpread({}, query), !query.division && options !== null && options !== void 0 && options.divisionCode ? {
|
|
18
|
+
division: options.divisionCode,
|
|
19
|
+
dataSource: options.dataSource
|
|
20
|
+
} : {});
|
|
19
21
|
const queryString = queryParams ? Object.entries(queryParams).map(_ref => {
|
|
20
22
|
let [key, value] = _ref;
|
|
21
|
-
return Array.isArray(value) ? value &&
|
|
23
|
+
return Array.isArray(value) ? value && "".concat(key, "=").concat(value.join(',')) : value && "".concat(key, "=").concat(value);
|
|
22
24
|
}).filter(Boolean).join('&') : baseQueryString;
|
|
23
|
-
return
|
|
25
|
+
return "".concat(baseUrl, "?").concat(queryString);
|
|
24
26
|
};
|
|
25
27
|
exports.buildUrl = buildUrl;
|
|
26
28
|
//# sourceMappingURL=buildUrl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildUrl.js","names":["buildUrl","url","query","options","baseUrl","baseQueryString","split","Error","queryParams","division","divisionCode","dataSource","queryString","Object","entries","map","_ref","key","value","Array","isArray","join","filter","Boolean","exports"],"sources":["../../../../src/utils/liveRates/buildUrl.ts"],"sourcesContent":["import type {\n LiveRatesProviderOptions,\n LiveRatesProviderQuery,\n} from '../../types';\n\nexport const buildUrl = (\n url: string,\n query?: LiveRatesProviderQuery,\n options?: LiveRatesProviderOptions\n): string => {\n const [baseUrl, baseQueryString] = url.split('?');\n\n if (!query && !baseQueryString) {\n throw new Error('Instruments query is not provided!');\n }\n\n const queryParams = query && {\n ...query,\n ...(!query.division && options?.divisionCode\n ? {\n division: options.divisionCode,\n dataSource: options.dataSource,\n }\n : {}),\n };\n\n const queryString = queryParams\n ? Object.entries(queryParams)\n .map(([key, value]) =>\n Array.isArray(value)\n ? value && `${key}=${value.join(',')}`\n : value && `${key}=${value}`\n )\n .filter(Boolean)\n .join('&')\n : baseQueryString;\n\n return `${baseUrl}?${queryString}`;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildUrl.js","names":["buildUrl","url","query","options","baseUrl","baseQueryString","split","Error","queryParams","_objectSpread","division","divisionCode","dataSource","queryString","Object","entries","map","_ref","key","value","Array","isArray","concat","join","filter","Boolean","exports"],"sources":["../../../../src/utils/liveRates/buildUrl.ts"],"sourcesContent":["import type {\n LiveRatesProviderOptions,\n LiveRatesProviderQuery,\n} from '../../types';\n\nexport const buildUrl = (\n url: string,\n query?: LiveRatesProviderQuery,\n options?: LiveRatesProviderOptions\n): string => {\n const [baseUrl, baseQueryString] = url.split('?');\n\n if (!query && !baseQueryString) {\n throw new Error('Instruments query is not provided!');\n }\n\n const queryParams = query && {\n ...query,\n ...(!query.division && options?.divisionCode\n ? {\n division: options.divisionCode,\n dataSource: options.dataSource,\n }\n : {}),\n };\n\n const queryString = queryParams\n ? Object.entries(queryParams)\n .map(([key, value]) =>\n Array.isArray(value)\n ? value && `${key}=${value.join(',')}`\n : value && `${key}=${value}`\n )\n .filter(Boolean)\n .join('&')\n : baseQueryString;\n\n return `${baseUrl}?${queryString}`;\n};\n"],"mappings":";;;;;;;;;;;AAKO,MAAMA,QAAQ,GAAGA,CACtBC,GAAW,EACXC,KAA8B,EAC9BC,OAAkC,KACvB;EACX,MAAM,CAACC,OAAO,EAAEC,eAAe,CAAC,GAAGJ,GAAG,CAACK,KAAK,CAAC,GAAG,CAAC;EAEjD,IAAI,CAACJ,KAAK,IAAI,CAACG,eAAe,EAAE;IAC9B,MAAM,IAAIE,KAAK,CAAC,oCAAoC,CAAC;EACvD;EAEA,MAAMC,WAAW,GAAGN,KAAK,IAAAO,aAAA,CAAAA,aAAA,KACpBP,KAAK,GACJ,CAACA,KAAK,CAACQ,QAAQ,IAAIP,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAEQ,YAAY,GACxC;IACED,QAAQ,EAAEP,OAAO,CAACQ,YAAY;IAC9BC,UAAU,EAAET,OAAO,CAACS;EACtB,CAAC,GACD,CAAC,CAAC,CACP;EAED,MAAMC,WAAW,GAAGL,WAAW,GAC3BM,MAAM,CAACC,OAAO,CAACP,WAAW,CAAC,CACxBQ,GAAG,CAACC,IAAA;IAAA,IAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,GAAAF,IAAA;IAAA,OAChBG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,GAChBA,KAAK,OAAAG,MAAA,CAAOJ,GAAG,OAAAI,MAAA,CAAIH,KAAK,CAACI,IAAI,CAAC,GAAG,CAAC,CAAE,GACpCJ,KAAK,OAAAG,MAAA,CAAOJ,GAAG,OAAAI,MAAA,CAAIH,KAAK,CAAE;EAAA,CAChC,CAAC,CACAK,MAAM,CAACC,OAAO,CAAC,CACfF,IAAI,CAAC,GAAG,CAAC,GACZlB,eAAe;EAEnB,UAAAiB,MAAA,CAAUlB,OAAO,OAAAkB,MAAA,CAAIT,WAAW;AAClC,CAAC;AAACa,OAAA,CAAA1B,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -15,7 +15,7 @@ const calculatePriceChangeFromOpen = (currentAsk, currentBid, prevAsk, prevBid)
|
|
|
15
15
|
const previousAverage = (prevAsk + prevBid) / 2;
|
|
16
16
|
const percentChange = Math.round((currentAverage - previousAverage) / previousAverage * 10000) / 100;
|
|
17
17
|
return {
|
|
18
|
-
percentChangeFromOpen: percentChange > 0 &&
|
|
18
|
+
percentChangeFromOpen: percentChange > 0 && "+".concat(percentChange.toFixed(2), "%") || percentChange < 0 && "".concat(percentChange.toFixed(2), "%") || noChange
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
exports.calculatePriceChangeFromOpen = calculatePriceChangeFromOpen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculatePriceChangeFromOpen.js","names":["calculatePriceChangeFromOpen","currentAsk","currentBid","prevAsk","prevBid","noChange","percentChangeFromOpen","currentAverage","previousAverage","percentChange","Math","round","toFixed","exports"],"sources":["../../../../src/utils/liveRates/calculatePriceChangeFromOpen.ts"],"sourcesContent":["import type { PriceChangeFromOpen } from '../../types';\n\nexport const calculatePriceChangeFromOpen = (\n currentAsk: number,\n currentBid: number,\n prevAsk?: number,\n prevBid?: number\n): PriceChangeFromOpen => {\n const noChange = '0%';\n\n if (!prevAsk || !prevBid) {\n return { percentChangeFromOpen: noChange };\n }\n\n const currentAverage = (currentAsk + currentBid) / 2;\n const previousAverage = (prevAsk + prevBid) / 2;\n const percentChange =\n Math.round(((currentAverage - previousAverage) / previousAverage) * 10000) /\n 100;\n\n return {\n percentChangeFromOpen:\n (percentChange > 0 && `+${percentChange.toFixed(2)}%`) ||\n (percentChange < 0 && `${percentChange.toFixed(2)}%`) ||\n noChange,\n };\n};\n"],"mappings":";;;;;;AAEO,MAAMA,4BAA4B,GAAGA,CAC1CC,UAAkB,EAClBC,UAAkB,EAClBC,OAAgB,EAChBC,OAAgB,KACQ;EACxB,MAAMC,QAAQ,GAAG,IAAI;EAErB,IAAI,CAACF,OAAO,IAAI,CAACC,OAAO,EAAE;IACxB,OAAO;MAAEE,qBAAqB,EAAED;IAAS,CAAC;EAC5C;EAEA,MAAME,cAAc,GAAG,CAACN,UAAU,GAAGC,UAAU,IAAI,CAAC;EACpD,MAAMM,eAAe,GAAG,CAACL,OAAO,GAAGC,OAAO,IAAI,CAAC;EAC/C,MAAMK,aAAa,GACjBC,IAAI,CAACC,KAAK,CAAE,CAACJ,cAAc,GAAGC,eAAe,IAAIA,eAAe,GAAI,KAAK,CAAC,GAC1E,GAAG;EAEL,OAAO;IACLF,qBAAqB,EAClBG,aAAa,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"calculatePriceChangeFromOpen.js","names":["calculatePriceChangeFromOpen","currentAsk","currentBid","prevAsk","prevBid","noChange","percentChangeFromOpen","currentAverage","previousAverage","percentChange","Math","round","concat","toFixed","exports"],"sources":["../../../../src/utils/liveRates/calculatePriceChangeFromOpen.ts"],"sourcesContent":["import type { PriceChangeFromOpen } from '../../types';\n\nexport const calculatePriceChangeFromOpen = (\n currentAsk: number,\n currentBid: number,\n prevAsk?: number,\n prevBid?: number\n): PriceChangeFromOpen => {\n const noChange = '0%';\n\n if (!prevAsk || !prevBid) {\n return { percentChangeFromOpen: noChange };\n }\n\n const currentAverage = (currentAsk + currentBid) / 2;\n const previousAverage = (prevAsk + prevBid) / 2;\n const percentChange =\n Math.round(((currentAverage - previousAverage) / previousAverage) * 10000) /\n 100;\n\n return {\n percentChangeFromOpen:\n (percentChange > 0 && `+${percentChange.toFixed(2)}%`) ||\n (percentChange < 0 && `${percentChange.toFixed(2)}%`) ||\n noChange,\n };\n};\n"],"mappings":";;;;;;AAEO,MAAMA,4BAA4B,GAAGA,CAC1CC,UAAkB,EAClBC,UAAkB,EAClBC,OAAgB,EAChBC,OAAgB,KACQ;EACxB,MAAMC,QAAQ,GAAG,IAAI;EAErB,IAAI,CAACF,OAAO,IAAI,CAACC,OAAO,EAAE;IACxB,OAAO;MAAEE,qBAAqB,EAAED;IAAS,CAAC;EAC5C;EAEA,MAAME,cAAc,GAAG,CAACN,UAAU,GAAGC,UAAU,IAAI,CAAC;EACpD,MAAMM,eAAe,GAAG,CAACL,OAAO,GAAGC,OAAO,IAAI,CAAC;EAC/C,MAAMK,aAAa,GACjBC,IAAI,CAACC,KAAK,CAAE,CAACJ,cAAc,GAAGC,eAAe,IAAIA,eAAe,GAAI,KAAK,CAAC,GAC1E,GAAG;EAEL,OAAO;IACLF,qBAAqB,EAClBG,aAAa,GAAG,CAAC,QAAAG,MAAA,CAAQH,aAAa,CAACI,OAAO,CAAC,CAAC,CAAC,MAAG,IACpDJ,aAAa,GAAG,CAAC,OAAAG,MAAA,CAAOH,aAAa,CAACI,OAAO,CAAC,CAAC,CAAC,MAAI,IACrDR;EACJ,CAAC;AACH,CAAC;AAACS,OAAA,CAAAd,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
const _excluded = ["isDark", "chartHeight"];
|
|
1
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
2
5
|
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
3
6
|
import React, { forwardRef, useEffect, useState } from 'react';
|
|
4
7
|
export const BaseChart = forwardRef((_ref, ref) => {
|
|
5
8
|
let {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
isDark,
|
|
10
|
+
chartHeight
|
|
11
|
+
} = _ref,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
13
|
const [ready, setReady] = useState(false);
|
|
11
14
|
useEffect(() => {
|
|
12
15
|
void document.fonts.ready.then(() => setReady(true));
|
|
@@ -15,7 +18,7 @@ export const BaseChart = forwardRef((_ref, ref) => {
|
|
|
15
18
|
ref: ref,
|
|
16
19
|
"data-testid": "charts-container",
|
|
17
20
|
style: {
|
|
18
|
-
height:
|
|
21
|
+
height: "".concat(chartHeight, "px"),
|
|
19
22
|
width: '100%'
|
|
20
23
|
},
|
|
21
24
|
theme: isDark ? 'dark_theme' : 'light_theme'
|
|
@@ -23,7 +26,7 @@ export const BaseChart = forwardRef((_ref, ref) => {
|
|
|
23
26
|
className: "lw-w-full",
|
|
24
27
|
"data-testid": "charts-placeholder",
|
|
25
28
|
style: {
|
|
26
|
-
height:
|
|
29
|
+
height: "".concat(chartHeight, "px")
|
|
27
30
|
}
|
|
28
31
|
}));
|
|
29
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChart.js","names":["ReactEChartsCore","React","forwardRef","useEffect","useState","BaseChart","_ref","ref","isDark","chartHeight","props","ready","setReady","document","fonts","then","createElement","Fragment","_extends","style","height","width","theme","className","displayName"],"sources":["../../../src/chart/BaseChart.tsx"],"sourcesContent":["import ReactEChartsCore from 'echarts-for-react/lib/core';\nimport type { EChartsReactProps } from 'echarts-for-react/lib/types';\nimport React, { forwardRef, useEffect, useState } from 'react';\n\nimport type { BaseChartRef } from './types';\n\ntype BaseChartProps = EChartsReactProps & {\n isDark: boolean;\n chartHeight: number;\n};\n\nexport const BaseChart = forwardRef<BaseChartRef, BaseChartProps>(\n ({ isDark, chartHeight, ...props }, ref) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n void document.fonts.ready.then(() => setReady(true));\n }, []);\n\n return (\n <>\n {ready ? (\n <ReactEChartsCore\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n ref={ref}\n data-testid=\"charts-container\"\n style={{\n height: `${chartHeight}px`,\n width: '100%',\n }}\n theme={isDark ? 'dark_theme' : 'light_theme'}\n />\n ) : (\n <div\n className=\"lw-w-full\"\n data-testid=\"charts-placeholder\"\n style={{ height: `${chartHeight}px` }}\n />\n )}\n </>\n );\n }\n);\n\nBaseChart.displayName = 'BaseChart';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseChart.js","names":["ReactEChartsCore","React","forwardRef","useEffect","useState","BaseChart","_ref","ref","isDark","chartHeight","props","_objectWithoutProperties","_excluded","ready","setReady","document","fonts","then","createElement","Fragment","_extends","style","height","concat","width","theme","className","displayName"],"sources":["../../../src/chart/BaseChart.tsx"],"sourcesContent":["import ReactEChartsCore from 'echarts-for-react/lib/core';\nimport type { EChartsReactProps } from 'echarts-for-react/lib/types';\nimport React, { forwardRef, useEffect, useState } from 'react';\n\nimport type { BaseChartRef } from './types';\n\ntype BaseChartProps = EChartsReactProps & {\n isDark: boolean;\n chartHeight: number;\n};\n\nexport const BaseChart = forwardRef<BaseChartRef, BaseChartProps>(\n ({ isDark, chartHeight, ...props }, ref) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n void document.fonts.ready.then(() => setReady(true));\n }, []);\n\n return (\n <>\n {ready ? (\n <ReactEChartsCore\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n ref={ref}\n data-testid=\"charts-container\"\n style={{\n height: `${chartHeight}px`,\n width: '100%',\n }}\n theme={isDark ? 'dark_theme' : 'light_theme'}\n />\n ) : (\n <div\n className=\"lw-w-full\"\n data-testid=\"charts-placeholder\"\n style={{ height: `${chartHeight}px` }}\n />\n )}\n </>\n );\n }\n);\n\nBaseChart.displayName = 'BaseChart';\n"],"mappings":";;;;AAAA,OAAOA,gBAAgB,MAAM,4BAA4B;AAEzD,OAAOC,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAS9D,OAAO,MAAMC,SAAS,GAAGH,UAAU,CACjC,CAAAI,IAAA,EAAoCC,GAAG,KAAK;EAAA,IAA3C;MAAEC,MAAM;MAAEC;IAAsB,CAAC,GAAAH,IAAA;IAAPI,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAC9B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGV,QAAQ,CAAC,KAAK,CAAC;EAEzCD,SAAS,CAAC,MAAM;IACd,KAAKY,QAAQ,CAACC,KAAK,CAACH,KAAK,CAACI,IAAI,CAAC,MAAMH,QAAQ,CAAC,IAAI,CAAC,CAAC;EACtD,CAAC,EAAE,EAAE,CAAC;EAEN,OACEb,KAAA,CAAAiB,aAAA,CAAAjB,KAAA,CAAAkB,QAAA,QACGN,KAAK,GACJZ,KAAA,CAAAiB,aAAA,CAAClB,gBAAgB,EAAAoB,QAAA,KAEXV,KAAK;IACTH,GAAG,EAAEA,GAAI;IACT,eAAY,kBAAkB;IAC9Bc,KAAK,EAAE;MACLC,MAAM,KAAAC,MAAA,CAAKd,WAAW,OAAI;MAC1Be,KAAK,EAAE;IACT,CAAE;IACFC,KAAK,EAAEjB,MAAM,GAAG,YAAY,GAAG;EAAc,EAC9C,CAAC,GAEFP,KAAA,CAAAiB,aAAA;IACEQ,SAAS,EAAC,WAAW;IACrB,eAAY,oBAAoB;IAChCL,KAAK,EAAE;MAAEC,MAAM,KAAAC,MAAA,CAAKd,WAAW;IAAK;EAAE,CACvC,CAEH,CAAC;AAEP,CACF,CAAC;AAEDJ,SAAS,CAACsB,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export const chartDateFormat = date =>
|
|
1
|
+
export const chartDateFormat = date => "".concat(new Date(date).toLocaleDateString(undefined, {
|
|
2
2
|
month: 'numeric',
|
|
3
3
|
day: 'numeric'
|
|
4
|
-
})
|
|
4
|
+
}));
|
|
5
5
|
export const chartDateTimeFormat = _ref => {
|
|
6
6
|
let {
|
|
7
7
|
date,
|
|
8
8
|
time
|
|
9
9
|
} = _ref;
|
|
10
|
-
return
|
|
10
|
+
return "".concat(new Date(date).toLocaleDateString(undefined, {
|
|
11
11
|
year: 'numeric',
|
|
12
12
|
month: 'numeric',
|
|
13
13
|
day: 'numeric'
|
|
14
|
-
})
|
|
14
|
+
}), ", ").concat(time, " UTC");
|
|
15
15
|
};
|
|
16
16
|
export const getChartDateAndTime = param => {
|
|
17
17
|
const dateAndTime = param.split('T');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.js","names":["chartDateFormat","date","Date","toLocaleDateString","undefined","month","day","chartDateTimeFormat","_ref","time","year","getChartDateAndTime","param","dateAndTime","split","substring"],"sources":["../../../src/chart/formatters.ts"],"sourcesContent":["export const chartDateFormat = (date: string) =>\n `${new Date(date).toLocaleDateString(undefined, { month: 'numeric', day: 'numeric' })}`;\n\nexport const chartDateTimeFormat = ({\n date,\n time,\n}: {\n date: string;\n time: string;\n}) =>\n `${new Date(date).toLocaleDateString(undefined, { year: 'numeric', month: 'numeric', day: 'numeric' })}, ${time} UTC`;\n\nexport const getChartDateAndTime = (param: string) => {\n const dateAndTime = param.split('T');\n\n return {\n date: dateAndTime[0],\n time: dateAndTime[1].substring(0, 5),\n };\n};\n"],"mappings":"AAAA,OAAO,MAAMA,eAAe,GAAIC,IAAY,
|
|
1
|
+
{"version":3,"file":"formatters.js","names":["chartDateFormat","date","concat","Date","toLocaleDateString","undefined","month","day","chartDateTimeFormat","_ref","time","year","getChartDateAndTime","param","dateAndTime","split","substring"],"sources":["../../../src/chart/formatters.ts"],"sourcesContent":["export const chartDateFormat = (date: string) =>\n `${new Date(date).toLocaleDateString(undefined, { month: 'numeric', day: 'numeric' })}`;\n\nexport const chartDateTimeFormat = ({\n date,\n time,\n}: {\n date: string;\n time: string;\n}) =>\n `${new Date(date).toLocaleDateString(undefined, { year: 'numeric', month: 'numeric', day: 'numeric' })}, ${time} UTC`;\n\nexport const getChartDateAndTime = (param: string) => {\n const dateAndTime = param.split('T');\n\n return {\n date: dateAndTime[0],\n time: dateAndTime[1].substring(0, 5),\n };\n};\n"],"mappings":"AAAA,OAAO,MAAMA,eAAe,GAAIC,IAAY,OAAAC,MAAA,CACvC,IAAIC,IAAI,CAACF,IAAI,CAAC,CAACG,kBAAkB,CAACC,SAAS,EAAE;EAAEC,KAAK,EAAE,SAAS;EAAEC,GAAG,EAAE;AAAU,CAAC,CAAC,CAAE;AAEzF,OAAO,MAAMC,mBAAmB,GAAGC,IAAA;EAAA,IAAC;IAClCR,IAAI;IACJS;EAIF,CAAC,GAAAD,IAAA;EAAA,UAAAP,MAAA,CACI,IAAIC,IAAI,CAACF,IAAI,CAAC,CAACG,kBAAkB,CAACC,SAAS,EAAE;IAAEM,IAAI,EAAE,SAAS;IAAEL,KAAK,EAAE,SAAS;IAAEC,GAAG,EAAE;EAAU,CAAC,CAAC,QAAAL,MAAA,CAAKQ,IAAI;AAAA,CAAM;AAEvH,OAAO,MAAME,mBAAmB,GAAIC,KAAa,IAAK;EACpD,MAAMC,WAAW,GAAGD,KAAK,CAACE,KAAK,CAAC,GAAG,CAAC;EAEpC,OAAO;IACLd,IAAI,EAAEa,WAAW,CAAC,CAAC,CAAC;IACpBJ,IAAI,EAAEI,WAAW,CAAC,CAAC,CAAC,CAACE,SAAS,CAAC,CAAC,EAAE,CAAC;EACrC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
6
|
import { getLineCommons } from './sharedOptions';
|
|
2
7
|
export const getGridLines = _ref => {
|
|
3
8
|
let {
|
|
@@ -11,8 +16,7 @@ export const getGridLines = _ref => {
|
|
|
11
16
|
marginBottom = 0,
|
|
12
17
|
yLabelMarinTop = 0
|
|
13
18
|
} = _ref;
|
|
14
|
-
return [{
|
|
15
|
-
...getLineCommons(isDark),
|
|
19
|
+
return [_objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
16
20
|
top: -2,
|
|
17
21
|
shape: {
|
|
18
22
|
x1: 0,
|
|
@@ -20,8 +24,7 @@ export const getGridLines = _ref => {
|
|
|
20
24
|
x2: chartWidth,
|
|
21
25
|
y2: 0
|
|
22
26
|
}
|
|
23
|
-
}, {
|
|
24
|
-
...getLineCommons(isDark),
|
|
27
|
+
}), _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
25
28
|
right: -2,
|
|
26
29
|
shape: {
|
|
27
30
|
x1: 0,
|
|
@@ -29,8 +32,7 @@ export const getGridLines = _ref => {
|
|
|
29
32
|
x2: 0,
|
|
30
33
|
y2: chartHeight - marginBottom
|
|
31
34
|
}
|
|
32
|
-
}, {
|
|
33
|
-
...getLineCommons(isDark),
|
|
35
|
+
}), _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
34
36
|
bottom: -2 + marginBottom,
|
|
35
37
|
shape: {
|
|
36
38
|
x1: 0,
|
|
@@ -38,8 +40,7 @@ export const getGridLines = _ref => {
|
|
|
38
40
|
x2: chartWidth,
|
|
39
41
|
y2: 0
|
|
40
42
|
}
|
|
41
|
-
}, {
|
|
42
|
-
...getLineCommons(isDark),
|
|
43
|
+
}), _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
43
44
|
left: -2,
|
|
44
45
|
shape: {
|
|
45
46
|
x1: 0,
|
|
@@ -47,8 +48,7 @@ export const getGridLines = _ref => {
|
|
|
47
48
|
x2: 0,
|
|
48
49
|
y2: chartHeight - marginBottom
|
|
49
50
|
}
|
|
50
|
-
}, {
|
|
51
|
-
...getLineCommons(isDark),
|
|
51
|
+
}), _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
52
52
|
right: yLabelSize - 3,
|
|
53
53
|
bottom: bottomLeftBox ? -2 + marginBottom : xLabelsSize - 3,
|
|
54
54
|
shape: {
|
|
@@ -57,8 +57,7 @@ export const getGridLines = _ref => {
|
|
|
57
57
|
x2: 0,
|
|
58
58
|
y2: chartHeight - yLabelMarinTop
|
|
59
59
|
}
|
|
60
|
-
}, {
|
|
61
|
-
...getLineCommons(isDark),
|
|
60
|
+
}), _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
62
61
|
bottom: xLabelsSize - 3,
|
|
63
62
|
shape: {
|
|
64
63
|
x1: 0,
|
|
@@ -66,8 +65,7 @@ export const getGridLines = _ref => {
|
|
|
66
65
|
x2: chartWidth,
|
|
67
66
|
y2: 0
|
|
68
67
|
}
|
|
69
|
-
}, ...additionalLines.map(item => ({
|
|
70
|
-
...getLineCommons(isDark),
|
|
68
|
+
}), ...additionalLines.map(item => _objectSpread(_objectSpread({}, getLineCommons(isDark)), {}, {
|
|
71
69
|
top: item.top,
|
|
72
70
|
bottom: item.bottom,
|
|
73
71
|
left: item.left,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getGridLines.js","names":["getLineCommons","getGridLines","_ref","isDark","chartWidth","chartHeight","xLabelsSize","yLabelSize","bottomLeftBox","additionalLines","marginBottom","yLabelMarinTop","top","shape","x1","y1","x2","y2","right","bottom","left","map","item"],"sources":["../../../src/chart/getGridLines.ts"],"sourcesContent":["import { getLineCommons } from './sharedOptions';\n\nexport const getGridLines = ({\n isDark,\n chartWidth,\n chartHeight,\n xLabelsSize,\n yLabelSize,\n bottomLeftBox = true,\n additionalLines = [],\n marginBottom = 0,\n yLabelMarinTop = 0,\n}: {\n isDark: boolean;\n chartWidth: number;\n chartHeight: number;\n xLabelsSize: number;\n yLabelSize: number;\n bottomLeftBox?: boolean;\n additionalLines?: {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n }[];\n marginBottom?: number;\n yLabelMarinTop?: number;\n}) => [\n // Top\n {\n ...getLineCommons(isDark),\n top: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n // Right\n {\n ...getLineCommons(isDark),\n right: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - marginBottom,\n },\n },\n // Bottom\n {\n ...getLineCommons(isDark),\n bottom: -2 + marginBottom,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n // Left\n {\n ...getLineCommons(isDark),\n left: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - marginBottom,\n },\n },\n // Y Label\n {\n ...getLineCommons(isDark),\n right: yLabelSize - 3,\n bottom: bottomLeftBox ? -2 + marginBottom : xLabelsSize - 3,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - yLabelMarinTop,\n },\n },\n // X Label\n {\n ...getLineCommons(isDark),\n bottom: xLabelsSize - 3,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n ...additionalLines.map((item) => ({\n ...getLineCommons(isDark),\n top: item.top,\n bottom: item.bottom,\n left: item.left,\n right: item.right,\n shape: {\n x1: item.x1,\n y1: item.y1,\n x2: item.x2,\n y2: item.y2,\n },\n })),\n];\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,iBAAiB;AAEhD,OAAO,MAAMC,YAAY,GAAGC,IAAA;EAAA,IAAC;IAC3BC,MAAM;IACNC,UAAU;IACVC,WAAW;IACXC,WAAW;IACXC,UAAU;IACVC,aAAa,GAAG,IAAI;IACpBC,eAAe,GAAG,EAAE;IACpBC,YAAY,GAAG,CAAC;IAChBC,cAAc,GAAG;EAoBnB,CAAC,GAAAT,IAAA;EAAA,OAAK,
|
|
1
|
+
{"version":3,"file":"getGridLines.js","names":["getLineCommons","getGridLines","_ref","isDark","chartWidth","chartHeight","xLabelsSize","yLabelSize","bottomLeftBox","additionalLines","marginBottom","yLabelMarinTop","_objectSpread","top","shape","x1","y1","x2","y2","right","bottom","left","map","item"],"sources":["../../../src/chart/getGridLines.ts"],"sourcesContent":["import { getLineCommons } from './sharedOptions';\n\nexport const getGridLines = ({\n isDark,\n chartWidth,\n chartHeight,\n xLabelsSize,\n yLabelSize,\n bottomLeftBox = true,\n additionalLines = [],\n marginBottom = 0,\n yLabelMarinTop = 0,\n}: {\n isDark: boolean;\n chartWidth: number;\n chartHeight: number;\n xLabelsSize: number;\n yLabelSize: number;\n bottomLeftBox?: boolean;\n additionalLines?: {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n }[];\n marginBottom?: number;\n yLabelMarinTop?: number;\n}) => [\n // Top\n {\n ...getLineCommons(isDark),\n top: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n // Right\n {\n ...getLineCommons(isDark),\n right: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - marginBottom,\n },\n },\n // Bottom\n {\n ...getLineCommons(isDark),\n bottom: -2 + marginBottom,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n // Left\n {\n ...getLineCommons(isDark),\n left: -2,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - marginBottom,\n },\n },\n // Y Label\n {\n ...getLineCommons(isDark),\n right: yLabelSize - 3,\n bottom: bottomLeftBox ? -2 + marginBottom : xLabelsSize - 3,\n shape: {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: chartHeight - yLabelMarinTop,\n },\n },\n // X Label\n {\n ...getLineCommons(isDark),\n bottom: xLabelsSize - 3,\n shape: {\n x1: 0,\n y1: 0,\n x2: chartWidth,\n y2: 0,\n },\n },\n ...additionalLines.map((item) => ({\n ...getLineCommons(isDark),\n top: item.top,\n bottom: item.bottom,\n left: item.left,\n right: item.right,\n shape: {\n x1: item.x1,\n y1: item.y1,\n x2: item.x2,\n y2: item.y2,\n },\n })),\n];\n"],"mappings":";;;;;AAAA,SAASA,cAAc,QAAQ,iBAAiB;AAEhD,OAAO,MAAMC,YAAY,GAAGC,IAAA;EAAA,IAAC;IAC3BC,MAAM;IACNC,UAAU;IACVC,WAAW;IACXC,WAAW;IACXC,UAAU;IACVC,aAAa,GAAG,IAAI;IACpBC,eAAe,GAAG,EAAE;IACpBC,YAAY,GAAG,CAAC;IAChBC,cAAc,GAAG;EAoBnB,CAAC,GAAAT,IAAA;EAAA,OAAK,CAAAU,aAAA,CAAAA,aAAA,KAGCZ,cAAc,CAACG,MAAM,CAAC;IACzBU,GAAG,EAAE,CAAC,CAAC;IACPC,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,UAAU;MACdc,EAAE,EAAE;IACN;EAAC,IAAAN,aAAA,CAAAA,aAAA,KAIEZ,cAAc,CAACG,MAAM,CAAC;IACzBgB,KAAK,EAAE,CAAC,CAAC;IACTL,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,WAAW,GAAGK;IACpB;EAAC,IAAAE,aAAA,CAAAA,aAAA,KAIEZ,cAAc,CAACG,MAAM,CAAC;IACzBiB,MAAM,EAAE,CAAC,CAAC,GAAGV,YAAY;IACzBI,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,UAAU;MACdc,EAAE,EAAE;IACN;EAAC,IAAAN,aAAA,CAAAA,aAAA,KAIEZ,cAAc,CAACG,MAAM,CAAC;IACzBkB,IAAI,EAAE,CAAC,CAAC;IACRP,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,WAAW,GAAGK;IACpB;EAAC,IAAAE,aAAA,CAAAA,aAAA,KAIEZ,cAAc,CAACG,MAAM,CAAC;IACzBgB,KAAK,EAAEZ,UAAU,GAAG,CAAC;IACrBa,MAAM,EAAEZ,aAAa,GAAG,CAAC,CAAC,GAAGE,YAAY,GAAGJ,WAAW,GAAG,CAAC;IAC3DQ,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,WAAW,GAAGM;IACpB;EAAC,IAAAC,aAAA,CAAAA,aAAA,KAIEZ,cAAc,CAACG,MAAM,CAAC;IACzBiB,MAAM,EAAEd,WAAW,GAAG,CAAC;IACvBQ,KAAK,EAAE;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAEb,UAAU;MACdc,EAAE,EAAE;IACN;EAAC,IAEH,GAAGT,eAAe,CAACa,GAAG,CAAEC,IAAI,IAAAX,aAAA,CAAAA,aAAA,KACvBZ,cAAc,CAACG,MAAM,CAAC;IACzBU,GAAG,EAAEU,IAAI,CAACV,GAAG;IACbO,MAAM,EAAEG,IAAI,CAACH,MAAM;IACnBC,IAAI,EAAEE,IAAI,CAACF,IAAI;IACfF,KAAK,EAAEI,IAAI,CAACJ,KAAK;IACjBL,KAAK,EAAE;MACLC,EAAE,EAAEQ,IAAI,CAACR,EAAE;MACXC,EAAE,EAAEO,IAAI,CAACP,EAAE;MACXC,EAAE,EAAEM,IAAI,CAACN,EAAE;MACXC,EAAE,EAAEK,IAAI,CAACL;IACX;EAAC,EACD,CAAC,CACJ;AAAA","ignoreList":[]}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
const _excluded = ["variant", "size"];
|
|
1
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
2
5
|
import classNames from 'classnames';
|
|
3
6
|
import React from 'react';
|
|
4
7
|
import { ButtonSize, ButtonVariant } from './types';
|
|
5
8
|
const Button = _ref => {
|
|
6
9
|
let {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
variant = ButtonVariant.primary,
|
|
11
|
+
size
|
|
12
|
+
} = _ref,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
14
|
return React.createElement("button", _extends({}, props, {
|
|
12
15
|
className: classNames('lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap', {
|
|
13
16
|
'lw-bg-secondary lw-text-text-negative lw-border-secondary': variant === ButtonVariant.primary,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["classNames","React","ButtonSize","ButtonVariant","Button","_ref","variant","primary","size","props","createElement","_extends","className","secondary","xs","full","type"],"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\n\nimport type { ButtonProps } from './types';\nimport { ButtonSize, ButtonVariant } from './types';\n\nconst Button = ({\n variant = ButtonVariant.primary,\n size,\n ...props\n}: ButtonProps) => (\n <button\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n className={classNames(\n 'lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap',\n {\n 'lw-bg-secondary lw-text-text-negative lw-border-secondary':\n variant === ButtonVariant.primary,\n 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary':\n variant === ButtonVariant.secondary,\n 'lw-w-[56px]': size === ButtonSize.xs,\n 'lw-w-full': size === ButtonSize.full,\n }\n )}\n data-testid=\"button\"\n type=\"button\"\n />\n);\n\nexport { Button };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","names":["classNames","React","ButtonSize","ButtonVariant","Button","_ref","variant","primary","size","props","_objectWithoutProperties","_excluded","createElement","_extends","className","secondary","xs","full","type"],"sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\n\nimport type { ButtonProps } from './types';\nimport { ButtonSize, ButtonVariant } from './types';\n\nconst Button = ({\n variant = ButtonVariant.primary,\n size,\n ...props\n}: ButtonProps) => (\n <button\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...props}\n className={classNames(\n 'lw-box-border lw-flex lw-justify-center lw-rounded lw-border lw-border-solid lw-px-4 lw-py-3 lw-text-center lw-font-sans lw-text-base lw-font-bold lw-leading-6 lw-tracking-normal focus:lw-outline-primary lw-whitespace-nowrap',\n {\n 'lw-bg-secondary lw-text-text-negative lw-border-secondary':\n variant === ButtonVariant.primary,\n 'lw-bg-bg-primary lw-text-text-primary lw-border-text-primary':\n variant === ButtonVariant.secondary,\n 'lw-w-[56px]': size === ButtonSize.xs,\n 'lw-w-full': size === ButtonSize.full,\n }\n )}\n data-testid=\"button\"\n type=\"button\"\n />\n);\n\nexport { Button };\n"],"mappings":";;;;AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AAGzB,SAASC,UAAU,EAAEC,aAAa,QAAQ,SAAS;AAEnD,MAAMC,MAAM,GAAGC,IAAA;EAAA,IAAC;MACdC,OAAO,GAAGH,aAAa,CAACI,OAAO;MAC/BC;IAEW,CAAC,GAAAH,IAAA;IADTI,KAAK,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAAA,OAERV,KAAA,CAAAW,aAAA,WAAAC,QAAA,KAEMJ,KAAK;IACTK,SAAS,EAAEd,UAAU,CACnB,kOAAkO,EAClO;MACE,2DAA2D,EACzDM,OAAO,KAAKH,aAAa,CAACI,OAAO;MACnC,8DAA8D,EAC5DD,OAAO,KAAKH,aAAa,CAACY,SAAS;MACrC,aAAa,EAAEP,IAAI,KAAKN,UAAU,CAACc,EAAE;MACrC,WAAW,EAAER,IAAI,KAAKN,UAAU,CAACe;IACnC,CACF,CAAE;IACF,eAAY,QAAQ;IACpBC,IAAI,EAAC;EAAQ,EACd,CAAC;AAAA,CACH;AAED,SAASd,MAAM","ignoreList":[]}
|
|
@@ -18,6 +18,6 @@ export const PriceCardRow = _ref => {
|
|
|
18
18
|
arrowPosition: ArrowPosition.left,
|
|
19
19
|
movementIndicator: "arrow",
|
|
20
20
|
priceMovement: priceMovement
|
|
21
|
-
}, React.createElement("span", null, price
|
|
21
|
+
}, React.createElement("span", null, price === null || price === void 0 ? void 0 : price.toFixed(displayPrecision))));
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=PriceCardRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceCardRow.js","names":["React","ArrowPosition","Price","CardRow","PriceCardRow","_ref","priceMovement","price","displayPrecision","isLoading","isError","label","createElement","undefined","arrowPosition","left","movementIndicator","toFixed"],"sources":["../../../../../src/components/Card/rows/PriceCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ArrowPosition, Price } from '../../Price';\nimport { CardRow } from '../Card';\n\ninterface PriceCardRowProps {\n priceMovement?: number;\n price?: number;\n displayPrecision?: number;\n isLoading?: boolean;\n isError: boolean;\n label: string;\n}\n\nexport const PriceCardRow = ({\n priceMovement,\n price,\n displayPrecision,\n isLoading,\n isError,\n label,\n}: PriceCardRowProps) => {\n return (\n <CardRow\n isError={isError}\n isLoading={isLoading || (price === undefined && !isError)}\n label={label}\n >\n <Price\n arrowPosition={ArrowPosition.left}\n movementIndicator=\"arrow\"\n priceMovement={priceMovement}\n >\n <span>{price?.toFixed(displayPrecision)}</span>\n </Price>\n </CardRow>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,EAAEC,KAAK,QAAQ,aAAa;AAClD,SAASC,OAAO,QAAQ,SAAS;AAWjC,OAAO,MAAMC,YAAY,GAAGC,IAAA,IAOH;EAAA,IAPI;IAC3BC,aAAa;IACbC,KAAK;IACLC,gBAAgB;IAChBC,SAAS;IACTC,OAAO;IACPC;EACiB,CAAC,GAAAN,IAAA;EAClB,OACEL,KAAA,CAAAY,aAAA,CAACT,OAAO;IACNO,OAAO,EAAEA,OAAQ;IACjBD,SAAS,EAAEA,SAAS,IAAKF,KAAK,KAAKM,SAAS,IAAI,CAACH,OAAS;IAC1DC,KAAK,EAAEA;EAAM,GAEbX,KAAA,CAAAY,aAAA,CAACV,KAAK;IACJY,aAAa,EAAEb,aAAa,CAACc,IAAK;IAClCC,iBAAiB,EAAC,OAAO;IACzBV,aAAa,EAAEA;EAAc,GAE7BN,KAAA,CAAAY,aAAA,eAAOL,KAAK,
|
|
1
|
+
{"version":3,"file":"PriceCardRow.js","names":["React","ArrowPosition","Price","CardRow","PriceCardRow","_ref","priceMovement","price","displayPrecision","isLoading","isError","label","createElement","undefined","arrowPosition","left","movementIndicator","toFixed"],"sources":["../../../../../src/components/Card/rows/PriceCardRow.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ArrowPosition, Price } from '../../Price';\nimport { CardRow } from '../Card';\n\ninterface PriceCardRowProps {\n priceMovement?: number;\n price?: number;\n displayPrecision?: number;\n isLoading?: boolean;\n isError: boolean;\n label: string;\n}\n\nexport const PriceCardRow = ({\n priceMovement,\n price,\n displayPrecision,\n isLoading,\n isError,\n label,\n}: PriceCardRowProps) => {\n return (\n <CardRow\n isError={isError}\n isLoading={isLoading || (price === undefined && !isError)}\n label={label}\n >\n <Price\n arrowPosition={ArrowPosition.left}\n movementIndicator=\"arrow\"\n priceMovement={priceMovement}\n >\n <span>{price?.toFixed(displayPrecision)}</span>\n </Price>\n </CardRow>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAa,EAAEC,KAAK,QAAQ,aAAa;AAClD,SAASC,OAAO,QAAQ,SAAS;AAWjC,OAAO,MAAMC,YAAY,GAAGC,IAAA,IAOH;EAAA,IAPI;IAC3BC,aAAa;IACbC,KAAK;IACLC,gBAAgB;IAChBC,SAAS;IACTC,OAAO;IACPC;EACiB,CAAC,GAAAN,IAAA;EAClB,OACEL,KAAA,CAAAY,aAAA,CAACT,OAAO;IACNO,OAAO,EAAEA,OAAQ;IACjBD,SAAS,EAAEA,SAAS,IAAKF,KAAK,KAAKM,SAAS,IAAI,CAACH,OAAS;IAC1DC,KAAK,EAAEA;EAAM,GAEbX,KAAA,CAAAY,aAAA,CAACV,KAAK;IACJY,aAAa,EAAEb,aAAa,CAACc,IAAK;IAClCC,iBAAiB,EAAC,OAAO;IACzBV,aAAa,EAAEA;EAAc,GAE7BN,KAAA,CAAAY,aAAA,eAAOL,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEU,OAAO,CAACT,gBAAgB,CAAQ,CACzC,CACA,CAAC;AAEd,CAAC","ignoreList":[]}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
const _excluded = ["label", "onIncrement", "onDecrement", "placeholder", "disabled", "decimalScale", "value", "withoutArrows"];
|
|
1
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { NumericFormat } from 'react-number-format';
|
|
4
7
|
import { ArrowDownIcon, ArrowUpIcon } from '../../images';
|
|
5
8
|
import { Label } from '../Label';
|
|
6
9
|
export const NumberInput = _ref => {
|
|
7
10
|
let {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
label,
|
|
12
|
+
onIncrement,
|
|
13
|
+
onDecrement,
|
|
14
|
+
placeholder,
|
|
15
|
+
disabled,
|
|
16
|
+
decimalScale = 2,
|
|
17
|
+
value,
|
|
18
|
+
withoutArrows
|
|
19
|
+
} = _ref,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
21
|
return React.createElement("div", {
|
|
19
22
|
className: "lw-group lw-grid lw-w-full lw-max-w-full lw-items-center lw-gap-2 lw-text-text-primary"
|
|
20
23
|
}, React.createElement(Label, {
|