@axos-web-dev/shared-components 0.0.46 → 0.0.48

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.
@@ -1,2 +1,5 @@
1
- import { FC } from "react";
2
- export declare const ApyCalculator: FC;
1
+ import { FC, ReactNode } from "react";
2
+ export interface ApyCalculatorProps {
3
+ header: ReactNode | string;
4
+ }
5
+ export declare const ApyCalculator: FC<ApyCalculatorProps>;
@@ -8,7 +8,7 @@ import { vars } from "../themes/axos.css.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import { apy_calculator, calculator_section, section_header, apy_calculator_form, errorTag, fieldset, field_row, relative, label_symbol, cash, prefix_pad, percent, submit_section, span_12, form_disclosure, marketing, marketing_tile, cta_section, marketing_table } from "./ApyCalculator.css.js";
11
- const ApyCalculator = () => {
11
+ const ApyCalculator = ({ header }) => {
12
12
  const [initialDeposit, setInititalDeposit] = useState(1e3);
13
13
  const [APR, setAPR] = useState(2.32);
14
14
  const [APY, setAPY] = useState(2.35);
@@ -97,10 +97,7 @@ const ApyCalculator = () => {
97
97
  children: /* @__PURE__ */ jsxs("div", { className: `${apy_calculator} containment flex between`, children: [
98
98
  /* @__PURE__ */ jsxs("div", { className: `${calculator_section}`, children: [
99
99
  /* @__PURE__ */ jsxs("div", { className: `${section_header}`, children: [
100
- /* @__PURE__ */ jsxs("h1", { className: "header_1", children: [
101
- "APY Interest Calculator",
102
- /* @__PURE__ */ jsx("sup", { children: "3" })
103
- ] }),
100
+ /* @__PURE__ */ jsx("h1", { className: "header_1", children: header }),
104
101
  /* @__PURE__ */ jsx("p", { className: "push_up", children: "Calculate how much interest you can earn on your money with our APY Interest Calculator." })
105
102
  ] }),
106
103
  /* @__PURE__ */ jsxs("form", { id: "calculator_form", className: `${apy_calculator_form}`, children: [
@@ -4,6 +4,6 @@
4
4
  background-color: var(--_1073cm86);
5
5
  }
6
6
  .dg9gpl1 {
7
- max-height: 20rem !important;
7
+ max-height: 100rem!important;
8
8
  color: var(--_1073cm82);
9
9
  }
package/package.json CHANGED
@@ -1,107 +1,107 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "0.0.46",
5
- "type": "module",
6
- "module": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "dist/assets/**/*.css"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig.build.json && vite build",
17
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
- "preview": "vite preview",
19
- "prepublishOnly": "npm run build",
20
- "check-types": "tsc --pretty --noEmit",
21
- "check-format": "prettier --check .",
22
- "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
- "format": "prettier --write .",
24
- "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
- "prepare": "husky install",
26
- "storybook": "storybook dev -p 6006",
27
- "build-storybook": "storybook build",
28
- "npm:link": "npm run build && npm link"
29
- },
30
- "dependencies": {
31
- "@hookform/resolvers": "^3.3.4",
32
- "@react-input/mask": "^1.2.0",
33
- "@storybook/builder-vite": "^7.6.19",
34
- "@storybook/preview-api": "^7.6.19",
35
- "@vanilla-extract/css": "^1.15.1",
36
- "@vanilla-extract/recipes": "^0.5.1",
37
- "clsx": "^2.1.1",
38
- "react-hook-form": "^7.51.3",
39
- "react-markdown": "^9.0.1",
40
- "react-use": "^17.5.0",
41
- "typed-css-modules": "^0.9.1",
42
- "vite-plugin-svgr": "^4.2.0",
43
- "zod": "^3.23.5",
44
- "zustand": "^4.5.2"
45
- },
46
- "peerDependencies": {
47
- "@vanilla-extract/css": "^1.14.1",
48
- "@vanilla-extract/css-utils": "^0.1.3",
49
- "@vanilla-extract/recipes": "^0.5.1",
50
- "@vanilla-extract/vite-plugin": "^4.0.3",
51
- "next": "^14.1.4",
52
- "react": "^18.2.0",
53
- "react-dom": "^18.2.0"
54
- },
55
- "devDependencies": {
56
- "@rollup/plugin-alias": "^5.1.0",
57
- "@storybook/addon-essentials": "^7.6.19",
58
- "@storybook/addon-interactions": "^7.6.19",
59
- "@storybook/addon-links": "^7.6.19",
60
- "@storybook/addon-onboarding": "^8.0.9",
61
- "@storybook/addon-themes": "^7.6.19",
62
- "@storybook/blocks": "^7.6.19",
63
- "@storybook/react": "^7.6.19",
64
- "@storybook/react-vite": "^7.6.19",
65
- "@storybook/test": "^7.6.19",
66
- "@svgr/core": "^8.1.0",
67
- "@svgr/plugin-prettier": "^8.1.0",
68
- "@svgr/plugin-svgo": "^8.1.0",
69
- "@types/node": "^20.12.8",
70
- "@types/react": "^18.3.1",
71
- "@types/react-dom": "^18.3.0",
72
- "@typescript-eslint/eslint-plugin": "^7.8.0",
73
- "@typescript-eslint/parser": "^7.8.0",
74
- "@vanilla-extract/css-utils": "^0.1.3",
75
- "@vanilla-extract/recipes": "^0.5.2",
76
- "@vanilla-extract/vite-plugin": "^4.0.9",
77
- "@vitejs/plugin-react-swc": "^3.6.0",
78
- "esbuild-vanilla-image-loader": "^0.1.3",
79
- "eslint": "^8.57.0",
80
- "eslint-plugin-react-hooks": "^4.6.2",
81
- "eslint-plugin-react-refresh": "^0.4.6",
82
- "eslint-plugin-storybook": "^0.8.0",
83
- "glob": "^10.3.12",
84
- "husky": "^9.0.11",
85
- "next": "^14.1.4",
86
- "prettier": "3.2.5",
87
- "react": "^18.3.1",
88
- "react-dom": "^18.3.1",
89
- "rollup-plugin-preserve-directives": "^0.4.0",
90
- "rollup-plugin-svg-import": "^3.0.0",
91
- "rollup-plugin-svgo": "^2.0.0",
92
- "storybook": "^7.6.19",
93
- "typescript": "^5.2.2",
94
- "typescript-plugin-css-modules": "^5.1.0",
95
- "vite": "^5.2.10",
96
- "vite-plugin-dts": "^3.9.0",
97
- "vite-plugin-lib-inject-css": "^2.0.1",
98
- "vite-plugin-setting-css-module": "^1.1.4",
99
- "vite-tsconfig-paths": "^4.3.2"
100
- },
101
- "main": "index.js",
102
- "directories": {
103
- "lib": "lib"
104
- },
105
- "author": "axos-web-dev",
106
- "license": "ISC"
107
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "0.0.48",
5
+ "type": "module",
6
+ "module": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "dist/assets/**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc --p ./tsconfig.build.json && vite build",
17
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
+ "preview": "vite preview",
19
+ "prepublishOnly": "npm run build",
20
+ "check-types": "tsc --pretty --noEmit",
21
+ "check-format": "prettier --check .",
22
+ "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
+ "format": "prettier --write .",
24
+ "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
+ "prepare": "husky install",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
28
+ "npm:link": "npm run build && npm link"
29
+ },
30
+ "dependencies": {
31
+ "@hookform/resolvers": "^3.3.4",
32
+ "@react-input/mask": "^1.2.0",
33
+ "@storybook/builder-vite": "^7.6.19",
34
+ "@storybook/preview-api": "^7.6.19",
35
+ "@vanilla-extract/css": "^1.15.1",
36
+ "@vanilla-extract/recipes": "^0.5.1",
37
+ "clsx": "^2.1.1",
38
+ "react-hook-form": "^7.51.3",
39
+ "react-markdown": "^9.0.1",
40
+ "react-use": "^17.5.0",
41
+ "typed-css-modules": "^0.9.1",
42
+ "vite-plugin-svgr": "^4.2.0",
43
+ "zod": "^3.23.5",
44
+ "zustand": "^4.5.2"
45
+ },
46
+ "peerDependencies": {
47
+ "@vanilla-extract/css": "^1.14.1",
48
+ "@vanilla-extract/css-utils": "^0.1.3",
49
+ "@vanilla-extract/recipes": "^0.5.1",
50
+ "@vanilla-extract/vite-plugin": "^4.0.3",
51
+ "next": "^14.1.4",
52
+ "react": "^18.2.0",
53
+ "react-dom": "^18.2.0"
54
+ },
55
+ "devDependencies": {
56
+ "@rollup/plugin-alias": "^5.1.0",
57
+ "@storybook/addon-essentials": "^7.6.19",
58
+ "@storybook/addon-interactions": "^7.6.19",
59
+ "@storybook/addon-links": "^7.6.19",
60
+ "@storybook/addon-onboarding": "^8.0.9",
61
+ "@storybook/addon-themes": "^7.6.19",
62
+ "@storybook/blocks": "^7.6.19",
63
+ "@storybook/react": "^7.6.19",
64
+ "@storybook/react-vite": "^7.6.19",
65
+ "@storybook/test": "^7.6.19",
66
+ "@svgr/core": "^8.1.0",
67
+ "@svgr/plugin-prettier": "^8.1.0",
68
+ "@svgr/plugin-svgo": "^8.1.0",
69
+ "@types/node": "^20.12.8",
70
+ "@types/react": "^18.3.1",
71
+ "@types/react-dom": "^18.3.0",
72
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
73
+ "@typescript-eslint/parser": "^7.8.0",
74
+ "@vanilla-extract/css-utils": "^0.1.3",
75
+ "@vanilla-extract/recipes": "^0.5.2",
76
+ "@vanilla-extract/vite-plugin": "^4.0.9",
77
+ "@vitejs/plugin-react-swc": "^3.6.0",
78
+ "esbuild-vanilla-image-loader": "^0.1.3",
79
+ "eslint": "^8.57.0",
80
+ "eslint-plugin-react-hooks": "^4.6.2",
81
+ "eslint-plugin-react-refresh": "^0.4.6",
82
+ "eslint-plugin-storybook": "^0.8.0",
83
+ "glob": "^10.3.12",
84
+ "husky": "^9.0.11",
85
+ "next": "^14.1.4",
86
+ "prettier": "3.2.5",
87
+ "react": "^18.3.1",
88
+ "react-dom": "^18.3.1",
89
+ "rollup-plugin-preserve-directives": "^0.4.0",
90
+ "rollup-plugin-svg-import": "^3.0.0",
91
+ "rollup-plugin-svgo": "^2.0.0",
92
+ "storybook": "^7.6.19",
93
+ "typescript": "^5.2.2",
94
+ "typescript-plugin-css-modules": "^5.1.0",
95
+ "vite": "^5.2.10",
96
+ "vite-plugin-dts": "^3.9.0",
97
+ "vite-plugin-lib-inject-css": "^2.0.1",
98
+ "vite-plugin-setting-css-module": "^1.1.4",
99
+ "vite-tsconfig-paths": "^4.3.2"
100
+ },
101
+ "main": "index.js",
102
+ "directories": {
103
+ "lib": "lib"
104
+ },
105
+ "author": "axos-web-dev",
106
+ "license": "ISC"
107
+ }