@layerfi/components 0.1.43 → 0.1.45
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/.eslintrc.js +14 -1
- package/.idea/codeStyles/Project.xml +61 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/layer-react.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -6
- package/dist/index.js.map +3 -3
- package/package.json +2 -1
package/.eslintrc.js
CHANGED
|
@@ -18,7 +18,7 @@ module.exports = {
|
|
|
18
18
|
ecmaVersion: 'latest',
|
|
19
19
|
sourceType: 'module',
|
|
20
20
|
},
|
|
21
|
-
plugins: ['react', '@typescript-eslint', 'prettier'],
|
|
21
|
+
plugins: ['react', '@typescript-eslint', 'prettier', 'import'],
|
|
22
22
|
rules: {
|
|
23
23
|
'prettier/prettier': 'error',
|
|
24
24
|
indent: ['off', 2, { SwitchCase: 1 }],
|
|
@@ -37,4 +37,17 @@ module.exports = {
|
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
},
|
|
40
|
+
overrides: [
|
|
41
|
+
{
|
|
42
|
+
files: ['*.tsx'],
|
|
43
|
+
rules: {
|
|
44
|
+
'no-restricted-imports': [
|
|
45
|
+
'error',
|
|
46
|
+
{
|
|
47
|
+
patterns: ['*.css'],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
],
|
|
40
53
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
</HTMLCodeStyleSettings>
|
|
6
|
+
<JSCodeStyleSettings version="0">
|
|
7
|
+
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
8
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
9
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
10
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
11
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
12
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
13
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
14
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
15
|
+
</JSCodeStyleSettings>
|
|
16
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
17
|
+
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
18
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
19
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
20
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
21
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
22
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
23
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
24
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
25
|
+
</TypeScriptCodeStyleSettings>
|
|
26
|
+
<VueCodeStyleSettings>
|
|
27
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
28
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
29
|
+
</VueCodeStyleSettings>
|
|
30
|
+
<codeStyleSettings language="HTML">
|
|
31
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
32
|
+
<indentOptions>
|
|
33
|
+
<option name="INDENT_SIZE" value="2" />
|
|
34
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
35
|
+
<option name="TAB_SIZE" value="2" />
|
|
36
|
+
</indentOptions>
|
|
37
|
+
</codeStyleSettings>
|
|
38
|
+
<codeStyleSettings language="JavaScript">
|
|
39
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
40
|
+
<indentOptions>
|
|
41
|
+
<option name="INDENT_SIZE" value="2" />
|
|
42
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
43
|
+
<option name="TAB_SIZE" value="2" />
|
|
44
|
+
</indentOptions>
|
|
45
|
+
</codeStyleSettings>
|
|
46
|
+
<codeStyleSettings language="TypeScript">
|
|
47
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
48
|
+
<indentOptions>
|
|
49
|
+
<option name="INDENT_SIZE" value="2" />
|
|
50
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
51
|
+
<option name="TAB_SIZE" value="2" />
|
|
52
|
+
</indentOptions>
|
|
53
|
+
</codeStyleSettings>
|
|
54
|
+
<codeStyleSettings language="Vue">
|
|
55
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
56
|
+
<indentOptions>
|
|
57
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
58
|
+
</indentOptions>
|
|
59
|
+
</codeStyleSettings>
|
|
60
|
+
</code_scheme>
|
|
61
|
+
</component>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="corretto-19" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/layer-react.iml" filepath="$PROJECT_DIR$/.idea/layer-react.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/dist/esm/index.js
CHANGED
|
@@ -647,7 +647,7 @@ var DisplayState = /* @__PURE__ */ ((DisplayState2) => {
|
|
|
647
647
|
|
|
648
648
|
// src/types/categories.ts
|
|
649
649
|
function hasSuggestions(categorization) {
|
|
650
|
-
return categorization.suggestions !== void 0 && categorization.suggestions.length > 0;
|
|
650
|
+
return categorization != null && categorization.suggestions !== void 0 && categorization.suggestions.length > 0;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
// src/contexts/BankTransactionsContext/BankTransactionsContext.tsx
|
|
@@ -3979,14 +3979,14 @@ var LinkedAccountThumb = ({
|
|
|
3979
3979
|
className: "account-institution",
|
|
3980
3980
|
size: "sm"
|
|
3981
3981
|
},
|
|
3982
|
-
account.institution?.name
|
|
3982
|
+
account.institution?.name ? account.institution?.name : account.external_account_name
|
|
3983
3983
|
)), /* @__PURE__ */ React54.createElement("div", { className: "topbar-logo" }, account.institution?.logo != void 0 ? /* @__PURE__ */ React54.createElement(
|
|
3984
3984
|
"img",
|
|
3985
3985
|
{
|
|
3986
3986
|
width: 28,
|
|
3987
3987
|
height: 28,
|
|
3988
3988
|
src: `data:image/png;base64,${account.institution.logo}`,
|
|
3989
|
-
alt: account.institution?.name
|
|
3989
|
+
alt: account.institution?.name ? account.institution?.name : account.external_account_name
|
|
3990
3990
|
}
|
|
3991
3991
|
) : /* @__PURE__ */ React54.createElement(InstitutionIcon_default, null))), account.is_syncing ? /* @__PURE__ */ React54.createElement("div", { className: "loadingbar" }, /* @__PURE__ */ React54.createElement("div", { className: "loading-text Layer__text--sm" }, /* @__PURE__ */ React54.createElement("div", null, "Syncing account data"), /* @__PURE__ */ React54.createElement("div", { className: "syncing-data-description" }, "This may take up to 5 minutes")), /* @__PURE__ */ React54.createElement("div", { className: "loading-wrapper" }, /* @__PURE__ */ React54.createElement(Loader_default, { size: 11, className: "Layer__anim--rotating" }))) : /* @__PURE__ */ React54.createElement(React54.Fragment, null, !asWidget && /* @__PURE__ */ React54.createElement("div", { className: "middlebar" }, /* @__PURE__ */ React54.createElement(
|
|
3992
3992
|
Text,
|
|
@@ -7946,7 +7946,6 @@ var isDateAllowedToBrowse = (date, business) => {
|
|
|
7946
7946
|
// src/components/DatePicker/DatePicker.tsx
|
|
7947
7947
|
import React105, { useEffect as useEffect19, useRef as useRef13, useState as useState24 } from "react";
|
|
7948
7948
|
import ReactDatePicker from "react-datepicker";
|
|
7949
|
-
import "react-datepicker/dist/react-datepicker.css";
|
|
7950
7949
|
|
|
7951
7950
|
// src/components/DatePicker/DatePickerOptions.tsx
|
|
7952
7951
|
import React104 from "react";
|
|
@@ -8540,12 +8539,12 @@ var BankTransactionsHeader = ({
|
|
|
8540
8539
|
minDate: getEarliestDateToBrowse(business)
|
|
8541
8540
|
}
|
|
8542
8541
|
) : null),
|
|
8543
|
-
/* @__PURE__ */ React108.createElement("div", { className: "Layer__header__actions-wrapper" },
|
|
8542
|
+
/* @__PURE__ */ React108.createElement("div", { className: "Layer__header__actions-wrapper" }, /* @__PURE__ */ React108.createElement("div", { className: "Layer__header__actions" }, /* @__PURE__ */ React108.createElement(
|
|
8544
8543
|
DownloadButton,
|
|
8545
8544
|
{
|
|
8546
8545
|
downloadButtonTextOverride: stringOverrides?.downloadButton
|
|
8547
8546
|
}
|
|
8548
|
-
), /* @__PURE__ */ React108.createElement(
|
|
8547
|
+
), !categorizedOnly && !(mobileComponent == "mobileList" && listView) && categorizeView && /* @__PURE__ */ React108.createElement(
|
|
8549
8548
|
Toggle,
|
|
8550
8549
|
{
|
|
8551
8550
|
name: "bank-transaction-display",
|