@axos-web-dev/shared-components 2.0.0-dev.18-apy → 2.0.0-dev.19

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 (46) hide show
  1. package/README.md +111 -111
  2. package/dist/Avatar/Avatar.module.js +7 -7
  3. package/dist/Blockquote/Blockquote.module.js +3 -3
  4. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +3 -20
  5. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +16 -51
  6. package/dist/Calculators/ApyCalculator/index.js +294 -410
  7. package/dist/Carousel/index.js +1 -1
  8. package/dist/FdicCallout/FdicCallout.module.js +2 -2
  9. package/dist/Forms/ApplyNow.js +1 -1
  10. package/dist/Forms/BoatMooringLocation.d.ts +4 -1
  11. package/dist/Forms/BoatMooringLocation.js +89 -8
  12. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  13. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  14. package/dist/Forms/SuccesForm.js +1 -1
  15. package/dist/ImageLink/ImageLink.js +1 -1
  16. package/dist/Insight/Featured/CategorySelector.js +1 -1
  17. package/dist/Insight/Featured/Featured.js +1 -1
  18. package/dist/Insight/Featured/Header.js +1 -1
  19. package/dist/Interstitial/Interstitial.module.js +10 -10
  20. package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
  21. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
  22. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
  23. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +27 -27
  24. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
  25. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  26. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  27. package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
  28. package/dist/SetContainer/SetContainer.js +1 -1
  29. package/dist/WalnutIframe/wrapper.module.js +3 -3
  30. package/dist/assets/Avatar/Avatar.css +59 -59
  31. package/dist/assets/Blockquote/Blockquote.css +72 -72
  32. package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +56 -230
  33. package/dist/assets/FdicCallout/FdicCallout.css +48 -48
  34. package/dist/assets/Interstitial/Interstitial.css +142 -142
  35. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +264 -264
  36. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +609 -609
  37. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +630 -630
  38. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css +353 -353
  39. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +445 -445
  40. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css +484 -484
  41. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css +427 -427
  42. package/dist/assets/NavigationMenu/LaVictoire/NavBar.css +429 -429
  43. package/dist/assets/WalnutIframe/wrapper.css +48 -48
  44. package/dist/assets/utils/optimizeImage/optimizeImage.css +47 -47
  45. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  46. package/package.json +148 -148
package/README.md CHANGED
@@ -1,111 +1,111 @@
1
- # Installation
2
-
3
- Using npm:
4
-
5
- ```shell
6
- $ npm install @axos-web-dev/shared-components
7
- ```
8
-
9
- To import components
10
- In Node.js:
11
-
12
- ```js
13
- // Import Components
14
- import {
15
- AlertBanner,
16
- CallToActionBar,
17
- DownloadTile,
18
- ImageBillboard,
19
- SecondaryFooter,
20
- } from "@axos-web-dev/shared-components";
21
-
22
- // Import Types/Interfaces
23
-
24
- import { AlertBannerInterface } from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
25
- ```
26
-
27
- In css files:
28
-
29
- ```css
30
- /*** Import styles ***/
31
-
32
- @import "@axos-web-dev/shared-components/dist/assets/AlertBanner/AlertBanner.css";
33
- ```
34
-
35
- # Shared components
36
-
37
- This project is develop using `React + TypeScript + Vite + Storybook + Vanilla-extract` to building custom components for internal use.
38
-
39
- ## How to add new component
40
-
41
- For add a new component use the `src/lib` folder and create a folder for the component. After that you should register an export in `src/lib/main.ts` file.
42
-
43
- Also you need create a storie for the new component. Go to `src/stories` and create a new file or folder.
44
-
45
- ```shell
46
- git clone bofaz@vs-ssh.visualstudio.com:v3/bofaz/Axos%20Marketing%20Cloud/Shared%20Components shared-components
47
-
48
- cd shared-components
49
-
50
- npm install
51
-
52
- # for using storybook
53
- npm run storybook
54
-
55
- # for build
56
- npm run build
57
-
58
- # for testing in other projects
59
- npm run build
60
-
61
- npm link
62
-
63
- ```
64
-
65
- For publishing we need to udpate the version we are using [semantic versioning](https://semver.org/)
66
-
67
- ```
68
- Given a version number MAJOR.MINOR.PATCH, increment the:
69
-
70
- MAJOR version when you make incompatible API changes
71
- MINOR version when you add functionality in a backward compatible manner
72
- PATCH version when you make backward compatible bug fixes
73
-
74
- Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
75
- ```
76
-
77
- we can update the version with the following commands:
78
-
79
- ```shell
80
- # bumps the patch number like 0.0.0 -> 0.0.1
81
- npm version patch
82
-
83
- # bumps the patch number like 0.0.0 -> 0.1.0
84
- npm version minor
85
-
86
- # bumps the patch number like 0.0.0 -> 1.0.0
87
- npm version major
88
-
89
-
90
-
91
- ```
92
-
93
- ## How to publish new library version to npm
94
-
95
- First update the version as previously described
96
-
97
- ```shell
98
- npm version [...]
99
- ```
100
-
101
- Then you will need to login into npm to do that write:
102
-
103
- ```shell
104
- npm login --scope=@my-org
105
- ```
106
-
107
- Last you to publish the new version:
108
-
109
- ```shell
110
- npm publish
111
- ```
1
+ # Installation
2
+
3
+ Using npm:
4
+
5
+ ```shell
6
+ $ npm install @axos-web-dev/shared-components
7
+ ```
8
+
9
+ To import components
10
+ In Node.js:
11
+
12
+ ```js
13
+ // Import Components
14
+ import {
15
+ AlertBanner,
16
+ CallToActionBar,
17
+ DownloadTile,
18
+ ImageBillboard,
19
+ SecondaryFooter,
20
+ } from "@axos-web-dev/shared-components";
21
+
22
+ // Import Types/Interfaces
23
+
24
+ import { AlertBannerInterface } from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
25
+ ```
26
+
27
+ In css files:
28
+
29
+ ```css
30
+ /*** Import styles ***/
31
+
32
+ @import "@axos-web-dev/shared-components/dist/assets/AlertBanner/AlertBanner.css";
33
+ ```
34
+
35
+ # Shared components
36
+
37
+ This project is develop using `React + TypeScript + Vite + Storybook + Vanilla-extract` to building custom components for internal use.
38
+
39
+ ## How to add new component
40
+
41
+ For add a new component use the `src/lib` folder and create a folder for the component. After that you should register an export in `src/lib/main.ts` file.
42
+
43
+ Also you need create a storie for the new component. Go to `src/stories` and create a new file or folder.
44
+
45
+ ```shell
46
+ git clone bofaz@vs-ssh.visualstudio.com:v3/bofaz/Axos%20Marketing%20Cloud/Shared%20Components shared-components
47
+
48
+ cd shared-components
49
+
50
+ npm install
51
+
52
+ # for using storybook
53
+ npm run storybook
54
+
55
+ # for build
56
+ npm run build
57
+
58
+ # for testing in other projects
59
+ npm run build
60
+
61
+ npm link
62
+
63
+ ```
64
+
65
+ For publishing we need to udpate the version we are using [semantic versioning](https://semver.org/)
66
+
67
+ ```
68
+ Given a version number MAJOR.MINOR.PATCH, increment the:
69
+
70
+ MAJOR version when you make incompatible API changes
71
+ MINOR version when you add functionality in a backward compatible manner
72
+ PATCH version when you make backward compatible bug fixes
73
+
74
+ Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
75
+ ```
76
+
77
+ we can update the version with the following commands:
78
+
79
+ ```shell
80
+ # bumps the patch number like 0.0.0 -> 0.0.1
81
+ npm version patch
82
+
83
+ # bumps the patch number like 0.0.0 -> 0.1.0
84
+ npm version minor
85
+
86
+ # bumps the patch number like 0.0.0 -> 1.0.0
87
+ npm version major
88
+
89
+
90
+
91
+ ```
92
+
93
+ ## How to publish new library version to npm
94
+
95
+ First update the version as previously described
96
+
97
+ ```shell
98
+ npm version [...]
99
+ ```
100
+
101
+ Then you will need to login into npm to do that write:
102
+
103
+ ```shell
104
+ npm login --scope=@my-org
105
+ ```
106
+
107
+ Last you to publish the new version:
108
+
109
+ ```shell
110
+ npm publish
111
+ ```
@@ -1,10 +1,10 @@
1
- import '../assets/Avatar/Avatar.css';const avatar_sec = "_avatar_sec_1clr6_1";
2
- const container = "_container_1clr6_5";
3
- const image = "_image_1clr6_14";
4
- const text = "_text_1clr6_23";
5
- const name = "_name_1clr6_29";
6
- const title = "_title_1clr6_37";
7
- const description = "_description_1clr6_44";
1
+ import '../assets/Avatar/Avatar.css';const avatar_sec = "_avatar_sec_q4a8z_1";
2
+ const container = "_container_q4a8z_9";
3
+ const image = "_image_q4a8z_27";
4
+ const text = "_text_q4a8z_45";
5
+ const name = "_name_q4a8z_57";
6
+ const title = "_title_q4a8z_73";
7
+ const description = "_description_q4a8z_87";
8
8
  const css = {
9
9
  avatar_sec,
10
10
  container,
@@ -1,6 +1,6 @@
1
- import '../assets/Blockquote/Blockquote.css';const quote_spacer = "_quote_spacer_ovx4r_1";
2
- const author = "_author_ovx4r_7";
3
- const quote = "_quote_ovx4r_1";
1
+ import '../assets/Blockquote/Blockquote.css';const quote_spacer = "_quote_spacer_lqs2u_1";
2
+ const author = "_author_lqs2u_13";
3
+ const quote = "_quote_lqs2u_1";
4
4
  const css = {
5
5
  quote_spacer,
6
6
  author,
@@ -25,18 +25,17 @@ export declare const apy_calculator_form: string;
25
25
  export declare const errorTag: string;
26
26
  export declare const fieldset: string;
27
27
  export declare const field_row: string;
28
- export declare const field_label: string;
29
- export declare const field_row_input: string;
30
- export declare const field_row_input_error: string;
31
- export declare const field_error: string;
32
28
  export declare const relative: string;
33
29
  export declare const label_symbol: string;
30
+ export declare const cash: string;
34
31
  export declare const percent: string;
35
32
  export declare const prefix_pad: string;
36
33
  export declare const submit_section: string;
37
34
  export declare const span_12: string;
38
35
  export declare const form_disclosure: string;
39
36
  export declare const marketing: string;
37
+ export declare const marketingTile: string;
38
+ export declare const bodyContent: string;
40
39
  export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<{
41
40
  variant: {
42
41
  primary: {
@@ -55,19 +54,3 @@ export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<
55
54
  }>;
56
55
  export declare const mt_8: string;
57
56
  export declare const pis_0: string;
58
- export declare const listbox_button: string;
59
- export declare const chevron_icon: string;
60
- export declare const listbox_options: string;
61
- export declare const listbox_option: string;
62
- export declare const results_wrapper: string;
63
- export declare const optional_badge: string;
64
- export declare const scrambling: string;
65
- export declare const result_card: string;
66
- export declare const result_section: string;
67
- export declare const result_value_label: string;
68
- export declare const result_value: string;
69
- export declare const result_item: string;
70
- export declare const result_item_label: string;
71
- export declare const result_item_value: string;
72
- export declare const marketingTile: string;
73
- export declare const bodyContent: string;
@@ -1,8 +1,7 @@
1
- import '../../assets/Calculators/ApyCalculator/ApyCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/ufb.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
1
+ import '../../assets/Calculators/ApyCalculator/ApyCalculator.css';import '../../assets/themes/victorie.css';import '../../assets/themes/ufb.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- /* empty css */
6
5
  /* empty css */
7
6
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
8
7
  var container = createRuntimeFn({ defaultClassName: "_1vox1xj0", variantClassNames: { variant: { primary: "_1vox1xj1", secondary: "_1vox1xj2", tertiary: "_1vox1xj3", quaternary: "_1vox1xj4" } }, defaultVariants: {}, compoundVariants: [] });
@@ -13,74 +12,40 @@ var apy_calculator_form = "_1vox1xj8";
13
12
  var errorTag = "_1vox1xj9";
14
13
  var fieldset = "_1vox1xja";
15
14
  var field_row = "_1vox1xjb";
16
- var field_label = "_1vox1xjc";
17
- var field_row_input = "_1vox1xjd";
18
- var field_row_input_error = "_1vox1xje";
19
- var field_error = "_1vox1xjf";
20
- var relative = "_1vox1xjg";
21
- var label_symbol = "_1vox1xjh";
22
- var percent = "_1vox1xji";
23
- var prefix_pad = "_1vox1xjj";
24
- var submit_section = "_1vox1xjk";
25
- var span_12 = "_1vox1xjl";
26
- var form_disclosure = "_1vox1xjm";
27
- var marketing = "_1vox1xjn";
28
- var header_theme = createRuntimeFn({ defaultClassName: "_1vox1xjo", variantClassNames: { variant: { primary: "_1vox1xjp", secondary: "_1vox1xjq", tertiary: "_1vox1xjr", quaternary: "_1vox1xjs" } }, defaultVariants: {}, compoundVariants: [] });
29
- var mt_8 = "_1vox1xjt";
30
- var pis_0 = "_1vox1xju";
31
- var listbox_button = "_1vox1xjv";
32
- var chevron_icon = "_1vox1xjw";
33
- var listbox_options = "_1vox1xjx";
34
- var listbox_option = "_1vox1xjy";
35
- var results_wrapper = "_1vox1xjz";
36
- var optional_badge = "_1vox1xj10";
37
- var scrambling = "_1vox1xj12";
38
- var result_card = "_1vox1xj13";
39
- var result_section = "_1vox1xj14";
40
- var result_value_label = "_1vox1xj15";
41
- var result_value = "_1vox1xj16";
42
- var result_item = "_1vox1xj17";
43
- var result_item_label = "_1vox1xj18";
44
- var result_item_value = "_1vox1xj19";
45
- var marketingTile = "_1vox1xj1a";
46
- var bodyContent = "_1vox1xj1b";
15
+ var relative = "_1vox1xjc";
16
+ var label_symbol = "_1vox1xjd";
17
+ var cash = "_1vox1xje";
18
+ var percent = "_1vox1xjf";
19
+ var prefix_pad = "_1vox1xjg";
20
+ var submit_section = "_1vox1xjh";
21
+ var span_12 = "_1vox1xji";
22
+ var form_disclosure = "_1vox1xjj";
23
+ var marketing = "_1vox1xjk";
24
+ var marketingTile = "_1vox1xjl";
25
+ var bodyContent = "_1vox1xjm";
26
+ var header_theme = createRuntimeFn({ defaultClassName: "_1vox1xjn", variantClassNames: { variant: { primary: "_1vox1xjo", secondary: "_1vox1xjp", tertiary: "_1vox1xjq", quaternary: "_1vox1xjr" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var mt_8 = "_1vox1xjs";
28
+ var pis_0 = "_1vox1xjt";
47
29
  export {
48
30
  apy_calculator,
49
31
  apy_calculator_form,
50
32
  bodyContent,
51
33
  calculator_section,
52
- chevron_icon,
34
+ cash,
53
35
  container,
54
36
  errorTag,
55
- field_error,
56
- field_label,
57
37
  field_row,
58
- field_row_input,
59
- field_row_input_error,
60
38
  fieldset,
61
39
  form_disclosure,
62
40
  header_theme,
63
41
  label_symbol,
64
- listbox_button,
65
- listbox_option,
66
- listbox_options,
67
42
  marketing,
68
43
  marketingTile,
69
44
  mt_8,
70
- optional_badge,
71
45
  percent,
72
46
  pis_0,
73
47
  prefix_pad,
74
48
  relative,
75
- result_card,
76
- result_item,
77
- result_item_label,
78
- result_item_value,
79
- result_section,
80
- result_value,
81
- result_value_label,
82
- results_wrapper,
83
- scrambling,
84
49
  section_header,
85
50
  span_12,
86
51
  submit_section