@blockend/widget 1.0.31 → 1.0.32

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 (162) hide show
  1. package/dist/AllRoutes-CPwuTwqd.js +2209 -0
  2. package/dist/Box-CIChapvH.js +55 -0
  3. package/dist/EstGas-CEFILtyf.js +12867 -0
  4. package/dist/Grow-DJZj9zjv.js +1656 -0
  5. package/dist/InputComp-DqF1JGIu.js +106 -0
  6. package/dist/LoadRoute-r3sHTYXM.js +126 -0
  7. package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
  8. package/dist/SwapAsset-07WvVwl-.js +64 -0
  9. package/dist/Tooltip-CNAsCF8n.js +572 -0
  10. package/dist/TxnButton-D2TTkFYA.js +207 -0
  11. package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
  12. package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
  13. package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
  14. package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
  15. package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
  16. package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
  17. package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
  18. package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
  19. package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
  20. package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
  21. package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
  22. package/dist/basic-CVc9xEvb.js +5783 -0
  23. package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
  24. package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
  25. package/dist/ccip-BLVGcR4A.js +228 -0
  26. package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
  27. package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
  28. package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
  29. package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
  30. package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
  31. package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
  32. package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
  33. package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
  34. package/dist/clockIcon-C2W5xvyt.js +76 -0
  35. package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
  36. package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
  37. package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
  38. package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
  39. package/dist/core-Bez9Ow7F.js +14967 -0
  40. package/dist/cursor-Cxq4Q9jk.js +7 -0
  41. package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
  42. package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
  43. package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
  44. package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
  45. package/dist/down-DP56YSKp.js +606 -0
  46. package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
  47. package/dist/ethertousd-CC_ezooz.js +6 -0
  48. package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
  49. package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
  50. package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
  51. package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
  52. package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
  53. package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
  54. package/dist/getChainIds-CJd2TZYT.js +1888 -0
  55. package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
  56. package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
  57. package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
  58. package/dist/hamburger-BzqwkUjE.js +3915 -0
  59. package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
  60. package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
  61. package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
  62. package/dist/index-CDq3vNnP.js +22 -0
  63. package/dist/index-CLzkn733.js +28223 -0
  64. package/dist/index-CjtwASJt.js +252 -0
  65. package/dist/index-CrC4B7xn.js +331 -0
  66. package/dist/index-D5hLIe-N.js +9 -0
  67. package/dist/index-DDk00SOL.js +159 -0
  68. package/dist/index-DTish3yr.js +1014 -0
  69. package/dist/index-DW3W7zaF.js +473 -0
  70. package/dist/index-DXdD3L9f.js +1460 -0
  71. package/dist/index-DaJ1272l.js +18613 -0
  72. package/dist/index-DxPp2gBS.js +992 -0
  73. package/dist/index-Dy_n2MPD.js +3010 -0
  74. package/dist/index-oc8HPfOF.js +13583 -0
  75. package/dist/index.es-Bsr7zP98.js +366 -0
  76. package/dist/index.es-C-j-Ghef.js +11678 -0
  77. package/dist/index.es.js +4 -4
  78. package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
  79. package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
  80. package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
  81. package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
  82. package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
  83. package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
  84. package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
  85. package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
  86. package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
  87. package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
  88. package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
  89. package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
  90. package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
  91. package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
  92. package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
  93. package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
  94. package/dist/secp256k1-DgmH1qVg.js +1251 -0
  95. package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
  96. package/dist/shareicon-D3Qj5j1T.js +262 -0
  97. package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
  98. package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
  99. package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
  100. package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
  101. package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
  102. package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
  103. package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
  104. package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
  105. package/dist/truncate-D9t92mVX.js +7 -0
  106. package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
  107. package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
  108. package/dist/unsupportedProp-BJVuEW_b.js +10 -0
  109. package/dist/useRegisterError-C_YLA1dw.js +9857 -0
  110. package/dist/validError-CDlJpg_f.js +6 -0
  111. package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
  112. package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
  113. package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
  114. package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
  115. package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
  116. package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
  117. package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
  118. package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
  119. package/package.json +1 -1
  120. package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
  121. package/dist/Box-e4gA-y_H.js +0 -60
  122. package/dist/EstGas-C5ihS0Mw.js +0 -17108
  123. package/dist/Grow-B4K-I-E-.js +0 -2212
  124. package/dist/InputComp-C_UUZxNU.js +0 -114
  125. package/dist/LoadRoute-CnDhVKdh.js +0 -142
  126. package/dist/QuotesProgress-DxgPgPJE.js +0 -29
  127. package/dist/SwapAsset-CmmuxeQF.js +0 -65
  128. package/dist/Tooltip-D8YjOOKU.js +0 -718
  129. package/dist/TxnButton-CF-TLZrD.js +0 -302
  130. package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
  131. package/dist/basic-Cx2xxgd9.js +0 -7109
  132. package/dist/ccip-BKpquA5i.js +0 -250
  133. package/dist/clockIcon-jSNFFrLy.js +0 -76
  134. package/dist/core-C-gr9X18.js +0 -17217
  135. package/dist/cursor-BTtIlTHP.js +0 -7
  136. package/dist/down-DDk8OoJG.js +0 -809
  137. package/dist/ethertousd-BOknTgU4.js +0 -7
  138. package/dist/getChainIds-6iugk2h0.js +0 -2431
  139. package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
  140. package/dist/hamburger-BYe_G11E.js +0 -4562
  141. package/dist/index-BAmjBHYR.js +0 -1087
  142. package/dist/index-BxHeZ9IF.js +0 -543
  143. package/dist/index-C7cb2O7r.js +0 -16078
  144. package/dist/index-CF9p4S_X.js +0 -11
  145. package/dist/index-C_vo1L7p.js +0 -24384
  146. package/dist/index-Ch7w83dW.js +0 -4217
  147. package/dist/index-Crhenmgw.js +0 -188
  148. package/dist/index-Cz5Dosd2.js +0 -412
  149. package/dist/index-D5OnT-__.js +0 -35858
  150. package/dist/index-DArR1lwi.js +0 -1759
  151. package/dist/index-hEJSpZe-.js +0 -308
  152. package/dist/index-m2O0cbD8.js +0 -1883
  153. package/dist/index-sLx4Edw4.js +0 -22
  154. package/dist/index.es-DIbGJsfa.js +0 -475
  155. package/dist/index.es-t6sHlseh.js +0 -12916
  156. package/dist/secp256k1-BkBK0mD5.js +0 -1681
  157. package/dist/shareicon-C88Wx-AM.js +0 -314
  158. package/dist/truncate-DSxFWEga.js +0 -7
  159. package/dist/unsupportedProp-DkeDzLfM.js +0 -14
  160. package/dist/useRegisterError-W_UfecIN.js +0 -19288
  161. package/dist/validError-rariWQ7G.js +0 -14
  162. package/dist/w3m-modal-Bl-DPlah.js +0 -1721
@@ -1,314 +0,0 @@
1
- import { q as formatMuiErrorMessage, p as process$1, Z as clamp, g as generateUtilityClass, _ as _objectWithoutPropertiesLoose, b as _extends, P as PropTypes } from "./index-D5OnT-__.js";
2
- import * as React from "react";
3
- import { g as generateUtilityClasses, d as useDefaultProps, s as styled, c as clsx, a as composeClasses, N as css, A as keyframes } from "./useRegisterError-W_UfecIN.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- function clampWrapper(value, min = 0, max = 1) {
6
- if (process$1.env.NODE_ENV !== "production") {
7
- if (value < min || value > max) {
8
- }
9
- }
10
- return clamp(value, min, max);
11
- }
12
- function hexToRgb(color) {
13
- color = color.slice(1);
14
- const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, "g");
15
- let colors = color.match(re);
16
- if (colors && colors[0].length === 1) {
17
- colors = colors.map((n) => n + n);
18
- }
19
- return colors ? `rgb${colors.length === 4 ? "a" : ""}(${colors.map((n, index) => {
20
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
21
- }).join(", ")})` : "";
22
- }
23
- function decomposeColor(color) {
24
- if (color.type) {
25
- return color;
26
- }
27
- if (color.charAt(0) === "#") {
28
- return decomposeColor(hexToRgb(color));
29
- }
30
- const marker = color.indexOf("(");
31
- const type = color.substring(0, marker);
32
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(type) === -1) {
33
- throw new Error(process$1.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.
34
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : formatMuiErrorMessage(9, color));
35
- }
36
- let values = color.substring(marker + 1, color.length - 1);
37
- let colorSpace;
38
- if (type === "color") {
39
- values = values.split(" ");
40
- colorSpace = values.shift();
41
- if (values.length === 4 && values[3].charAt(0) === "/") {
42
- values[3] = values[3].slice(1);
43
- }
44
- if (["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(colorSpace) === -1) {
45
- throw new Error(process$1.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.
46
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : formatMuiErrorMessage(10, colorSpace));
47
- }
48
- } else {
49
- values = values.split(",");
50
- }
51
- values = values.map((value) => parseFloat(value));
52
- return {
53
- type,
54
- values,
55
- colorSpace
56
- };
57
- }
58
- function recomposeColor(color) {
59
- const {
60
- type,
61
- colorSpace
62
- } = color;
63
- let {
64
- values
65
- } = color;
66
- if (type.indexOf("rgb") !== -1) {
67
- values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);
68
- } else if (type.indexOf("hsl") !== -1) {
69
- values[1] = `${values[1]}%`;
70
- values[2] = `${values[2]}%`;
71
- }
72
- if (type.indexOf("color") !== -1) {
73
- values = `${colorSpace} ${values.join(" ")}`;
74
- } else {
75
- values = `${values.join(", ")}`;
76
- }
77
- return `${type}(${values})`;
78
- }
79
- function alpha(color, value) {
80
- color = decomposeColor(color);
81
- value = clampWrapper(value);
82
- if (color.type === "rgb" || color.type === "hsl") {
83
- color.type += "a";
84
- }
85
- if (color.type === "color") {
86
- color.values[3] = `/${value}`;
87
- } else {
88
- color.values[3] = value;
89
- }
90
- return recomposeColor(color);
91
- }
92
- function getUnit(input) {
93
- return String(input).match(/[\d.\-+]*\s*(.*)/)[1] || "";
94
- }
95
- function toUnitless(length) {
96
- return parseFloat(length);
97
- }
98
- function getSkeletonUtilityClass(slot) {
99
- return generateUtilityClass("MuiSkeleton", slot);
100
- }
101
- generateUtilityClasses("MuiSkeleton", ["root", "text", "rectangular", "rounded", "circular", "pulse", "wave", "withChildren", "fitContent", "heightAuto"]);
102
- const _excluded = ["animation", "className", "component", "height", "style", "variant", "width"];
103
- let _ = (t) => t, _t, _t2, _t3, _t4;
104
- const useUtilityClasses = (ownerState) => {
105
- const {
106
- classes,
107
- variant,
108
- animation,
109
- hasChildren,
110
- width,
111
- height
112
- } = ownerState;
113
- const slots = {
114
- root: ["root", variant, animation, hasChildren && "withChildren", hasChildren && !width && "fitContent", hasChildren && !height && "heightAuto"]
115
- };
116
- return composeClasses(slots, getSkeletonUtilityClass, classes);
117
- };
118
- const pulseKeyframe = keyframes(_t || (_t = _`
119
- 0% {
120
- opacity: 1;
121
- }
122
-
123
- 50% {
124
- opacity: 0.4;
125
- }
126
-
127
- 100% {
128
- opacity: 1;
129
- }
130
- `));
131
- const waveKeyframe = keyframes(_t2 || (_t2 = _`
132
- 0% {
133
- transform: translateX(-100%);
134
- }
135
-
136
- 50% {
137
- /* +0.5s of delay between each loop */
138
- transform: translateX(100%);
139
- }
140
-
141
- 100% {
142
- transform: translateX(100%);
143
- }
144
- `));
145
- const SkeletonRoot = styled("span", {
146
- name: "MuiSkeleton",
147
- slot: "Root",
148
- overridesResolver: (props, styles) => {
149
- const {
150
- ownerState
151
- } = props;
152
- return [styles.root, styles[ownerState.variant], ownerState.animation !== false && styles[ownerState.animation], ownerState.hasChildren && styles.withChildren, ownerState.hasChildren && !ownerState.width && styles.fitContent, ownerState.hasChildren && !ownerState.height && styles.heightAuto];
153
- }
154
- })(({
155
- theme,
156
- ownerState
157
- }) => {
158
- const radiusUnit = getUnit(theme.shape.borderRadius) || "px";
159
- const radiusValue = toUnitless(theme.shape.borderRadius);
160
- return _extends({
161
- display: "block",
162
- // Create a "on paper" color with sufficient contrast retaining the color
163
- backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : alpha(theme.palette.text.primary, theme.palette.mode === "light" ? 0.11 : 0.13),
164
- height: "1.2em"
165
- }, ownerState.variant === "text" && {
166
- marginTop: 0,
167
- marginBottom: 0,
168
- height: "auto",
169
- transformOrigin: "0 55%",
170
- transform: "scale(1, 0.60)",
171
- borderRadius: `${radiusValue}${radiusUnit}/${Math.round(radiusValue / 0.6 * 10) / 10}${radiusUnit}`,
172
- "&:empty:before": {
173
- content: '"\\00a0"'
174
- }
175
- }, ownerState.variant === "circular" && {
176
- borderRadius: "50%"
177
- }, ownerState.variant === "rounded" && {
178
- borderRadius: (theme.vars || theme).shape.borderRadius
179
- }, ownerState.hasChildren && {
180
- "& > *": {
181
- visibility: "hidden"
182
- }
183
- }, ownerState.hasChildren && !ownerState.width && {
184
- maxWidth: "fit-content"
185
- }, ownerState.hasChildren && !ownerState.height && {
186
- height: "auto"
187
- });
188
- }, ({
189
- ownerState
190
- }) => ownerState.animation === "pulse" && css(_t3 || (_t3 = _`
191
- animation: ${0} 2s ease-in-out 0.5s infinite;
192
- `), pulseKeyframe), ({
193
- ownerState,
194
- theme
195
- }) => ownerState.animation === "wave" && css(_t4 || (_t4 = _`
196
- position: relative;
197
- overflow: hidden;
198
-
199
- /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
200
- -webkit-mask-image: -webkit-radial-gradient(white, black);
201
-
202
- &::after {
203
- animation: ${0} 2s linear 0.5s infinite;
204
- background: linear-gradient(
205
- 90deg,
206
- transparent,
207
- ${0},
208
- transparent
209
- );
210
- content: '';
211
- position: absolute;
212
- transform: translateX(-100%); /* Avoid flash during server-side hydration */
213
- bottom: 0;
214
- left: 0;
215
- right: 0;
216
- top: 0;
217
- }
218
- `), waveKeyframe, (theme.vars || theme).palette.action.hover));
219
- const Skeleton = /* @__PURE__ */ React.forwardRef(function Skeleton2(inProps, ref) {
220
- const props = useDefaultProps({
221
- props: inProps,
222
- name: "MuiSkeleton"
223
- });
224
- const {
225
- animation = "pulse",
226
- className,
227
- component = "span",
228
- height,
229
- style,
230
- variant = "text",
231
- width
232
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded);
233
- const ownerState = _extends({}, props, {
234
- animation,
235
- component,
236
- variant,
237
- hasChildren: Boolean(other.children)
238
- });
239
- const classes = useUtilityClasses(ownerState);
240
- return /* @__PURE__ */ jsx(SkeletonRoot, _extends({
241
- as: component,
242
- ref,
243
- className: clsx(classes.root, className),
244
- ownerState
245
- }, other, {
246
- style: _extends({
247
- width,
248
- height
249
- }, style)
250
- }));
251
- });
252
- process$1.env.NODE_ENV !== "production" ? Skeleton.propTypes = {
253
- // ┌────────────────────────────── Warning ──────────────────────────────┐
254
- // │ These PropTypes are generated from the TypeScript type definitions. │
255
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
256
- // └─────────────────────────────────────────────────────────────────────┘
257
- /**
258
- * The animation.
259
- * If `false` the animation effect is disabled.
260
- * @default 'pulse'
261
- */
262
- animation: PropTypes.oneOf(["pulse", "wave", false]),
263
- /**
264
- * Optional children to infer width and height from.
265
- */
266
- children: PropTypes.node,
267
- /**
268
- * Override or extend the styles applied to the component.
269
- */
270
- classes: PropTypes.object,
271
- /**
272
- * @ignore
273
- */
274
- className: PropTypes.string,
275
- /**
276
- * The component used for the root node.
277
- * Either a string to use a HTML element or a component.
278
- */
279
- component: PropTypes.elementType,
280
- /**
281
- * Height of the skeleton.
282
- * Useful when you don't want to adapt the skeleton to a text element but for instance a card.
283
- */
284
- height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
285
- /**
286
- * @ignore
287
- */
288
- style: PropTypes.object,
289
- /**
290
- * The system prop that allows defining system overrides as well as additional CSS styles.
291
- */
292
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
293
- /**
294
- * The type of content that will be rendered.
295
- * @default 'text'
296
- */
297
- variant: PropTypes.oneOfType([PropTypes.oneOf(["circular", "rectangular", "rounded", "text"]), PropTypes.string]),
298
- /**
299
- * Width of the skeleton.
300
- * Useful when the skeleton is inside an inline element with no width of its own.
301
- */
302
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
303
- } : void 0;
304
- function ShareIcon({ fill }) {
305
- return /* @__PURE__ */ jsxs("svg", { width: "13", height: "13", viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
306
- /* @__PURE__ */ jsx("path", { d: "M6 2H2C1.44772 2 1 2.44772 1 3V11C1 11.5523 1.44772 12 2 12H10C10.5523 12 11 11.5523 11 11V7", stroke: fill, "stroke-linecap": "round" }),
307
- /* @__PURE__ */ jsx("path", { d: "M4.64645 8.14645C4.45118 8.34171 4.45118 8.65829 4.64645 8.85355C4.84171 9.04882 5.15829 9.04882 5.35355 8.85355L4.64645 8.14645ZM13 1C13 0.723858 12.7761 0.5 12.5 0.5H8C7.72386 0.5 7.5 0.723858 7.5 1C7.5 1.27614 7.72386 1.5 8 1.5H12V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V1ZM5.35355 8.85355L12.8536 1.35355L12.1464 0.646447L4.64645 8.14645L5.35355 8.85355Z", fill })
308
- ] });
309
- }
310
- export {
311
- ShareIcon as S,
312
- Skeleton as a,
313
- alpha as b
314
- };
@@ -1,7 +0,0 @@
1
- function truncate(number, decimal) {
2
- let pow = Math.pow(10, decimal);
3
- return Math.trunc(number * pow) / pow;
4
- }
5
- export {
6
- truncate as t
7
- };
@@ -1,14 +0,0 @@
1
- import { p as process$1 } from "./index-D5OnT-__.js";
2
- function unsupportedProp(props, propName, componentName, location, propFullName) {
3
- if (process$1.env.NODE_ENV === "production") {
4
- return null;
5
- }
6
- const propFullNameSafe = propFullName || propName;
7
- if (typeof props[propName] !== "undefined") {
8
- return new Error(`The prop \`${propFullNameSafe}\` is not supported. Please remove it.`);
9
- }
10
- return null;
11
- }
12
- export {
13
- unsupportedProp as u
14
- };