@taxbit/react-sdk 0.3.1 → 0.3.2

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/dist/basic.css CHANGED
@@ -1,17 +1,4 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 24px;
4
- font-weight: 400;
5
-
6
- color: #12263f;
7
- font-synthesis: none;
8
- text-rendering: optimizeLegibility;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- -webkit-text-size-adjust: 100%;
12
- }
13
-
14
- button {
1
+ button.taxbit-button {
15
2
  border-radius: 8px;
16
3
  border: 1px solid transparent;
17
4
  padding: 0.5em 1em;
@@ -21,8 +8,8 @@ button {
21
8
  transition: all 0.1s ease-in-out;
22
9
  }
23
10
 
24
- button:focus,
25
- button:focus-visible {
11
+ button.taxbit-button:focus,
12
+ button.taxbit-button:focus-visible {
26
13
  outline: 4px auto -webkit-focus-ring-color;
27
14
  }
28
15
 
package/dist/index.css CHANGED
@@ -1,16 +1,16 @@
1
1
  :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 24px;
4
- font-weight: 400;
2
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
+ line-height: 24px;
4
+ font-weight: 400;
5
5
 
6
- color: #12263F;
7
- font-synthesis: none;
8
- text-rendering: optimizeLegibility;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- -webkit-text-size-adjust: 100%;
6
+ color: #12263f;
7
+ font-synthesis: none;
8
+ text-rendering: optimizeLegibility;
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ -webkit-text-size-adjust: 100%;
12
12
  }
13
13
 
14
14
  html {
15
- padding-bottom: 60px;
15
+ padding-bottom: 60px;
16
16
  }
package/dist/inline.css CHANGED
@@ -1,17 +1,4 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 24px;
4
- font-weight: 400;
5
-
6
- color: #12263f;
7
- font-synthesis: none;
8
- text-rendering: optimizeLegibility;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- -webkit-text-size-adjust: 100%;
12
- }
13
-
14
- button {
1
+ button.taxbit-button {
15
2
  border-radius: 8px;
16
3
  border: 1px solid transparent;
17
4
  padding: 0.5em 1em;
@@ -21,8 +8,8 @@ button {
21
8
  transition: all 0.1s ease-in-out;
22
9
  }
23
10
 
24
- button:focus,
25
- button:focus-visible {
11
+ button.taxbit-button:focus,
12
+ button.taxbit-button:focus-visible {
26
13
  outline: 4px auto -webkit-focus-ring-color;
27
14
  }
28
15
 
package/dist/minimal.css CHANGED
@@ -1,16 +1,3 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 24px;
4
- font-weight: 400;
5
-
6
- color: #12263F;
7
- font-synthesis: none;
8
- text-rendering: optimizeLegibility;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- -webkit-text-size-adjust: 100%;
12
- }
13
-
14
1
  .taxbit-page {
15
2
  max-width: 600px;
16
3
  padding: 12px;
@@ -23,12 +10,13 @@
23
10
  .taxbit-error-message {
24
11
  color: red;
25
12
  }
13
+
26
14
  .taxbit-notification {
27
15
  color: blue;
28
16
  }
29
17
 
30
18
  .taxbit-step-actions {
31
- display: flex;
32
- justify-content: space-between;
33
- margin-top: 20px;
34
- }
19
+ display: flex;
20
+ justify-content: space-between;
21
+ margin-top: 20px;
22
+ }
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { TaxDocumentationKey } from "types/TaxDocumentation";
1
+ import React from 'react';
2
+ import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
3
  export type ActionButtonProps = {
4
4
  name: TaxDocumentationKey;
5
5
  onClick: () => void;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export type HideShowButtonProps = {
3
3
  onClick: () => void;
4
4
  };
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { TaxDocumentationKey } from "types/TaxDocumentation";
1
+ import React from 'react';
2
+ import { TaxDocumentationKey } from 'types/TaxDocumentation';
3
3
  export type ToggleButtonProps = {
4
4
  name: TaxDocumentationKey;
5
5
  };
@@ -690,7 +690,7 @@ const Va = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
690
690
  $a(n)
691
691
  ]
692
692
  )
693
- ), qt = "0.3.1", G = (e) => e === void 0 ? void 0 : e === "yes", Yt = (e) => {
693
+ ), qt = "0.3.2", G = (e) => e === void 0 ? void 0 : e === "yes", Yt = (e) => {
694
694
  const a = {
695
695
  city: e.accountHolderAddressCity,
696
696
  country: e.accountHolderAddressCountry,
@@ -19288,6 +19288,7 @@ const ur = {
19288
19288
  {
19289
19289
  onClick: s,
19290
19290
  className: ce(
19291
+ "taxbit-button",
19291
19292
  "taxbit-row-edit-button",
19292
19293
  "taxbit-row-action-button"
19293
19294
  ),
@@ -19337,13 +19338,29 @@ const ur = {
19337
19338
  const { isErrorFree: o, exposeErrors: d, getLocalButton: u } = O(), m = o ? n : d, l = o ? r : d;
19338
19339
  return /* @__PURE__ */ i.jsxs("footer", { className: "taxbit-step-actions", children: [
19339
19340
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-secondary-actions", children: [
19340
- a && /* @__PURE__ */ i.jsx("button", { onClick: a, type: "button", children: u("cancel") }),
19341
- e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", children: u("back") }),
19342
- s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", children: u("reset") })
19341
+ a && /* @__PURE__ */ i.jsx("button", { onClick: a, type: "button", className: "taxbit-button", children: u("cancel") }),
19342
+ e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", className: "taxbit-button", children: u("back") }),
19343
+ s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", className: "taxbit-button", children: u("reset") })
19343
19344
  ] }),
19344
19345
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-primary-actions", children: [
19345
- n && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children: u("next") }),
19346
- r && /* @__PURE__ */ i.jsx("button", { onClick: l, type: "button", children: u("submit") })
19346
+ n && /* @__PURE__ */ i.jsx(
19347
+ "button",
19348
+ {
19349
+ onClick: m,
19350
+ type: "button",
19351
+ className: "taxbit-button",
19352
+ children: u("next")
19353
+ }
19354
+ ),
19355
+ r && /* @__PURE__ */ i.jsx(
19356
+ "button",
19357
+ {
19358
+ onClick: l,
19359
+ type: "button",
19360
+ className: "taxbit-button",
19361
+ children: u("submit")
19362
+ }
19363
+ )
19347
19364
  ] })
19348
19365
  ] });
19349
19366
  }, so = ({ label: e, subLabel: a, name: n, onClick: r }) => {
@@ -19585,7 +19602,7 @@ const ur = {
19585
19602
  id: e,
19586
19603
  name: e,
19587
19604
  onClick: o,
19588
- className: "taxbit-row-action-button",
19605
+ className: "taxbit-button taxbit-row-action-button",
19589
19606
  children: r(e)
19590
19607
  }
19591
19608
  ) }),
@@ -19603,6 +19620,7 @@ const ur = {
19603
19620
  name: s,
19604
19621
  onClick: o,
19605
19622
  className: ce(
19623
+ "taxbit-button",
19606
19624
  "taxbit-row-action-button",
19607
19625
  `taxbit-${n ? "show" : "hide"}-button`
19608
19626
  ),