@dmsi/wedgekit-react 0.0.105 → 0.0.107
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/{chunk-X62XGQY7.js → chunk-2XOQII4G.js} +1 -1
- package/dist/{chunk-6UI5GABI.js → chunk-3JRVV6QY.js} +1 -1
- package/dist/{chunk-QNQ5K7NW.js → chunk-3NWBR3V3.js} +1 -1
- package/dist/chunk-4F6VQXKY.js +112 -0
- package/dist/{chunk-CG2NIXZE.js → chunk-6CS5ZBXO.js} +1 -1
- package/dist/{chunk-P242H6OU.js → chunk-IMN6I5NV.js} +1 -1
- package/dist/{chunk-VPEVXTBJ.js → chunk-KYMBBPEW.js} +9 -4
- package/dist/{chunk-H6LXXGX6.js → chunk-L364HTYC.js} +7 -5
- package/dist/{chunk-WVLT6XM7.js → chunk-OX3HKFIH.js} +2 -2
- package/dist/{chunk-D2YP2BTN.js → chunk-QIHDPSOM.js} +2 -2
- package/dist/{chunk-E5VEDZYV.js → chunk-ZEGVZ5NW.js} +2 -2
- package/dist/components/Button.cjs +7 -5
- package/dist/components/Button.js +1 -1
- package/dist/components/ContentTab.cjs +7 -5
- package/dist/components/ContentTab.js +2 -2
- package/dist/components/ContentTabs.cjs +7 -5
- package/dist/components/ContentTabs.js +2 -2
- package/dist/components/DataGridCell.cjs +2 -2
- package/dist/components/DataGridCell.js +1 -1
- package/dist/components/FilterGroup.cjs +7 -5
- package/dist/components/FilterGroup.js +2 -2
- package/dist/components/LoadingScrim.cjs +168 -0
- package/dist/components/LoadingScrim.js +27 -0
- package/dist/components/MobileDataGrid.cjs +7 -5
- package/dist/components/MobileDataGrid.js +1 -1
- package/dist/components/Modal.cjs +7 -5
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalButtons.cjs +7 -5
- package/dist/components/ModalButtons.js +2 -2
- package/dist/components/ModalHeader.cjs +7 -5
- package/dist/components/ModalHeader.js +2 -2
- package/dist/components/NavigationTab.cjs +7 -5
- package/dist/components/NavigationTab.js +2 -2
- package/dist/components/NavigationTabs.cjs +7 -5
- package/dist/components/NavigationTabs.js +2 -2
- package/dist/components/Notification.cjs +7 -5
- package/dist/components/Notification.js +1 -1
- package/dist/components/OptionPill.cjs +7 -5
- package/dist/components/OptionPill.js +2 -2
- package/dist/components/PDFViewer.cjs +7 -5
- package/dist/components/PDFViewer.js +4 -4
- package/dist/components/PaymentOnAccountModal.cjs +15 -8
- package/dist/components/PaymentOnAccountModal.js +6 -6
- package/dist/components/SelectPaymentMethod.cjs +15 -8
- package/dist/components/SelectPaymentMethod.js +2 -2
- package/dist/components/Spinner.cjs +136 -0
- package/dist/components/Spinner.js +7 -0
- package/dist/components/Stepper.cjs +7 -5
- package/dist/components/Stepper.js +1 -1
- package/dist/components/Toast.cjs +7 -5
- package/dist/components/Toast.js +1 -1
- package/dist/components/Upload.cjs +7 -5
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +19 -11
- package/dist/components/index.js +9 -8
- package/dist/index.css +40 -0
- package/package.json +1 -1
- package/src/components/Button.tsx +7 -5
- package/src/components/DataGrid/index.tsx +10 -4
- package/src/components/DataGridCell.tsx +2 -2
- package/src/components/LoadingScrim.tsx +32 -0
- package/src/components/SelectPaymentMethod.tsx +6 -2
- package/src/components/Spinner.tsx +102 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
type SpinnerProps = {
|
|
4
|
+
size?: "small" | "large";
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const Spinner: React.FC<SpinnerProps> = ({ size = "small" }) => {
|
|
8
|
+
const dimension = size === "large" ? 48 : 24;
|
|
9
|
+
return (
|
|
10
|
+
<svg
|
|
11
|
+
width={dimension}
|
|
12
|
+
height={dimension}
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
fill="#1D1E1E"
|
|
16
|
+
className={size === "large" ? "animate-spin" : ""}
|
|
17
|
+
aria-label="Loading"
|
|
18
|
+
>
|
|
19
|
+
<circle cx="12" cy="4" r="2" opacity="1">
|
|
20
|
+
<animate
|
|
21
|
+
attributeName="opacity"
|
|
22
|
+
begin="0s"
|
|
23
|
+
dur="1s"
|
|
24
|
+
from="1"
|
|
25
|
+
to="0"
|
|
26
|
+
repeatCount="indefinite"
|
|
27
|
+
/>
|
|
28
|
+
</circle>
|
|
29
|
+
<circle cx="17.666" cy="6.334" r="2" opacity="0.125">
|
|
30
|
+
<animate
|
|
31
|
+
attributeName="opacity"
|
|
32
|
+
begin="-0.875s"
|
|
33
|
+
dur="1s"
|
|
34
|
+
from="1"
|
|
35
|
+
to="0"
|
|
36
|
+
repeatCount="indefinite"
|
|
37
|
+
/>
|
|
38
|
+
</circle>
|
|
39
|
+
<circle cx="20" cy="12" r="2" opacity="0.25">
|
|
40
|
+
<animate
|
|
41
|
+
attributeName="opacity"
|
|
42
|
+
begin="-0.75s"
|
|
43
|
+
dur="1s"
|
|
44
|
+
from="1"
|
|
45
|
+
to="0"
|
|
46
|
+
repeatCount="indefinite"
|
|
47
|
+
/>
|
|
48
|
+
</circle>
|
|
49
|
+
<circle cx="17.666" cy="17.666" r="2" opacity="0.375">
|
|
50
|
+
<animate
|
|
51
|
+
attributeName="opacity"
|
|
52
|
+
begin="-0.625s"
|
|
53
|
+
dur="1s"
|
|
54
|
+
from="1"
|
|
55
|
+
to="0"
|
|
56
|
+
repeatCount="indefinite"
|
|
57
|
+
/>
|
|
58
|
+
</circle>
|
|
59
|
+
<circle cx="12" cy="20" r="2" opacity="0.5">
|
|
60
|
+
<animate
|
|
61
|
+
attributeName="opacity"
|
|
62
|
+
begin="-0.5s"
|
|
63
|
+
dur="1s"
|
|
64
|
+
from="1"
|
|
65
|
+
to="0"
|
|
66
|
+
repeatCount="indefinite"
|
|
67
|
+
/>
|
|
68
|
+
</circle>
|
|
69
|
+
<circle cx="6.334" cy="17.666" r="2" opacity="0.625">
|
|
70
|
+
<animate
|
|
71
|
+
attributeName="opacity"
|
|
72
|
+
begin="-0.375s"
|
|
73
|
+
dur="1s"
|
|
74
|
+
from="1"
|
|
75
|
+
to="0"
|
|
76
|
+
repeatCount="indefinite"
|
|
77
|
+
/>
|
|
78
|
+
</circle>
|
|
79
|
+
<circle cx="4" cy="12" r="2" opacity="0.75">
|
|
80
|
+
<animate
|
|
81
|
+
attributeName="opacity"
|
|
82
|
+
begin="-0.25s"
|
|
83
|
+
dur="1s"
|
|
84
|
+
from="1"
|
|
85
|
+
to="0"
|
|
86
|
+
repeatCount="indefinite"
|
|
87
|
+
/>
|
|
88
|
+
</circle>
|
|
89
|
+
<circle cx="6.334" cy="6.334" r="2" opacity="0.875">
|
|
90
|
+
<animate
|
|
91
|
+
attributeName="opacity"
|
|
92
|
+
begin="-0.125s"
|
|
93
|
+
dur="1s"
|
|
94
|
+
from="1"
|
|
95
|
+
to="0"
|
|
96
|
+
repeatCount="indefinite"
|
|
97
|
+
/>
|
|
98
|
+
</circle>
|
|
99
|
+
</svg>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
Spinner.displayName = "Spinner";
|