@blockend/widget 1.0.31 → 1.0.33
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/AllRoutes-B04uZfaa.js +2209 -0
- package/dist/Box-BWDJCGbI.js +55 -0
- package/dist/EstGas-QSPrdq3Y.js +12863 -0
- package/dist/Grow-37t11tle.js +1656 -0
- package/dist/InputComp-bKVjlcbT.js +106 -0
- package/dist/LoadRoute-C3vokLk0.js +126 -0
- package/dist/QuotesProgress-DlgLQ2zo.js +28 -0
- package/dist/SwapAsset-tD6wSJDD.js +64 -0
- package/dist/Tooltip-BqYgFn1F.js +572 -0
- package/dist/TxnButton-DefErcCE.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-B8AfyNIx.js → add-D32G_xKI.js} +3 -3
- package/dist/{all-wallets-BaLLU39i.js → all-wallets-LjjqiTnJ.js} +3 -3
- package/dist/{app-store-DNpoABj1.js → app-store-S7C23kTz.js} +3 -3
- package/dist/{apple-DzzHtaL4.js → apple-DMd4RArz.js} +3 -3
- package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-C0cVMl2n.js} +3 -3
- package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-veMvHYVR.js} +3 -3
- package/dist/{arrow-left-BI3rQkNI.js → arrow-left-B6VdOxSY.js} +3 -3
- package/dist/{arrow-right-rnMzhVod.js → arrow-right-CyrokJyU.js} +3 -3
- package/dist/{arrow-top-CfA6PVMz.js → arrow-top-S8qh5z92.js} +3 -3
- package/dist/{bank-CmpAmHgg.js → bank-B9ySjxm-.js} +3 -3
- package/dist/basic-BXha5sM_.js +5783 -0
- package/dist/{browser-mEcjgS1H.js → browser-CWmyZDF1.js} +3 -3
- package/dist/{card-DkgIWcMc.js → card-TzoSVbiE.js} +3 -3
- package/dist/ccip-B97isPV8.js +228 -0
- package/dist/{checkmark-B_A013n2.js → checkmark-Be4tNZY8.js} +3 -3
- package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-sAoooMoy.js} +3 -3
- package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-Cdd52Yir.js} +3 -3
- package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-Dp8rM2qD.js} +3 -3
- package/dist/{chevron-right-UFxJogOZ.js → chevron-right-kH3Pgt8h.js} +3 -3
- package/dist/{chevron-top-BbZs3eaC.js → chevron-top-lx-9iWm1.js} +3 -3
- package/dist/{chrome-store-B4F6hJmy.js → chrome-store-BGxPgdkC.js} +3 -3
- package/dist/{clock-BbAQ09uV.js → clock-B3r9UiFY.js} +3 -3
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-CY3oZP_D.js → close-Cc6SJ0A9.js} +3 -3
- package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-DqH2n2v1.js} +3 -3
- package/dist/{compass-CHS7RZFk.js → compass-CiKYczAi.js} +3 -3
- package/dist/{copy-CEd4nGhs.js → copy-DR0dlbF5.js} +3 -3
- package/dist/core-D9oRINim.js +14967 -0
- package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-BABlb938.js} +3 -3
- package/dist/cursor-vv-pXAzC.js +7 -0
- package/dist/{desktop-CrSyXZkL.js → desktop-aFWdAU4O.js} +3 -3
- package/dist/{disconnect-BooT10E1.js → disconnect-Cz0MwjuJ.js} +3 -3
- package/dist/{discord-B982Qaml.js → discord-BkNiORDh.js} +3 -3
- package/dist/down-BAe_uoMx.js +606 -0
- package/dist/{etherscan-CFL0IcNl.js → etherscan-4wT3rhj5.js} +3 -3
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-CSv7sjYs.js} +3 -3
- package/dist/{extension-C5WqJw73.js → extension-B4acJb16.js} +3 -3
- package/dist/{external-link-CcSxVDcd.js → external-link-zFdRyGh8.js} +3 -3
- package/dist/{facebook-DF0v9ED8.js → facebook-D2h4REjy.js} +3 -3
- package/dist/{farcaster-Boq7M4VK.js → farcaster-acRwWMSn.js} +3 -3
- package/dist/{filters-DfeymbPx.js → filters-DE1yHCJy.js} +3 -3
- package/dist/getChainIds-B4BLdhKd.js +1888 -0
- package/dist/getCosmosAddress-BfMdDDaH.js +9565 -0
- package/dist/{github-DQ8FV4bD.js → github-BrCBPjDS.js} +3 -3
- package/dist/{google-Dm8FDDZR.js → google-DYC6Um96.js} +3 -3
- package/dist/hamburger-sg42nvNd.js +3915 -0
- package/dist/{help-circle-CbgiAebR.js → help-circle-CKvIeM4J.js} +3 -3
- package/dist/{id-CzqxUksI.js → id-FXzF1V3L.js} +3 -3
- package/dist/{image-CsCGTIN-.js → image-rOZMtN9o.js} +3 -3
- package/dist/index-B0E-rGOh.js +159 -0
- package/dist/index-B5gV3APh.js +992 -0
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CIjTGwYH.js +9 -0
- package/dist/index-Cmj3dp3U.js +473 -0
- package/dist/index-DEovHqJS.js +3010 -0
- package/dist/index-DOcwHfd3.js +13583 -0
- package/dist/index-DSlXIHtr.js +28701 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-PIAjHNgG.js +18613 -0
- package/dist/index-SiMIoFT9.js +331 -0
- package/dist/index-Y94UWILI.js +1460 -0
- package/dist/index-baetUfmH.js +252 -0
- package/dist/index.es-D6RvS0tB.js +366 -0
- package/dist/index.es-TLoHC_Sf.js +11678 -0
- package/dist/index.es.js +4 -4
- package/dist/{info-circle-Bt350Yzj.js → info-circle-BYfEprqC.js} +3 -3
- package/dist/{info-fKCfLW0k.js → info-dh7qmm_R.js} +3 -3
- package/dist/{lightbulb-BL9YBxiA.js → lightbulb-3S8w5B31.js} +3 -3
- package/dist/{mail-_g6CHQeQ.js → mail-DgcPoOPs.js} +3 -3
- package/dist/{mobile-B-EQ4IcH.js → mobile-C8egRR0V.js} +3 -3
- package/dist/{more-C3rpOdUy.js → more-CU_oPwwY.js} +3 -3
- package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CqjaxlS7.js} +3 -3
- package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-D6mZlZmz.js} +3 -3
- package/dist/{off-DZjgI0eE.js → off-DHeUICx6.js} +3 -3
- package/dist/{play-store-DvRnagoF.js → play-store-DyGxjYv5.js} +3 -3
- package/dist/{plus-C2jN2huZ.js → plus-k4hEdLAH.js} +3 -3
- package/dist/{qr-code-B64HnZgi.js → qr-code-CkavLc0Z.js} +3 -3
- package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-YzkyX2fY.js} +3 -3
- package/dist/{refresh-J1Vw6QMA.js → refresh-E1vpdqCO.js} +3 -3
- package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-BZbc_-R6.js} +3 -3
- package/dist/{search-BC86wYXR.js → search-B9vQkIsQ.js} +3 -3
- package/dist/{send-BPA1bK5G.js → send-C9ROxhya.js} +3 -3
- package/dist/shareicon-CLveBf8l.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
- package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BhLDDuiL.js} +3 -3
- package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B1IxJLem.js} +3 -3
- package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium--fvn_6KH.js} +3 -3
- package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-fZowAp5m.js} +3 -3
- package/dist/{swapVertical-DlS0V6DD.js → swapVertical-CDwndQ4s.js} +3 -3
- package/dist/{telegram-UZ00kvIE.js → telegram-BLbguJ3E.js} +3 -3
- package/dist/{three-dots-D9zVXr1j.js → three-dots-DyIG0Aiq.js} +3 -3
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-CP6rpz4m.js → twitch-054mPrps.js} +3 -3
- package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-DrlgKmas.js} +3 -3
- package/dist/unsupportedProp-Dr6Tadlk.js +10 -0
- package/dist/useRegisterError-C52MuupC.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-filled-CfgydKPa.js → verify-filled-Dw1_4VEj.js} +3 -3
- package/dist/{verify-DuUE85WT.js → verify-uz7q7EMX.js} +3 -3
- package/dist/w3m-modal-CJM8um8G.js +1471 -0
- package/dist/{wallet-BC2LSDlF.js → wallet-a9cCMI05.js} +3 -3
- package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-Cqiz2_rA.js} +3 -3
- package/dist/{walletconnect-wayCaYfk.js → walletconnect-96twp7MP.js} +7 -9
- package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-C4mV6fIZ.js} +3 -3
- package/dist/{x-jggPFiy-.js → x-vRe7FHUS.js} +3 -3
- package/package.json +7 -19
- package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
- package/dist/Box-e4gA-y_H.js +0 -60
- package/dist/EstGas-C5ihS0Mw.js +0 -17108
- package/dist/Grow-B4K-I-E-.js +0 -2212
- package/dist/InputComp-C_UUZxNU.js +0 -114
- package/dist/LoadRoute-CnDhVKdh.js +0 -142
- package/dist/QuotesProgress-DxgPgPJE.js +0 -29
- package/dist/SwapAsset-CmmuxeQF.js +0 -65
- package/dist/Tooltip-D8YjOOKU.js +0 -718
- package/dist/TxnButton-CF-TLZrD.js +0 -302
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
- package/dist/basic-Cx2xxgd9.js +0 -7109
- package/dist/ccip-BKpquA5i.js +0 -250
- package/dist/clockIcon-jSNFFrLy.js +0 -76
- package/dist/core-C-gr9X18.js +0 -17217
- package/dist/cursor-BTtIlTHP.js +0 -7
- package/dist/down-DDk8OoJG.js +0 -809
- package/dist/ethertousd-BOknTgU4.js +0 -7
- package/dist/getChainIds-6iugk2h0.js +0 -2431
- package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
- package/dist/hamburger-BYe_G11E.js +0 -4562
- package/dist/index-BAmjBHYR.js +0 -1087
- package/dist/index-BxHeZ9IF.js +0 -543
- package/dist/index-C7cb2O7r.js +0 -16078
- package/dist/index-CF9p4S_X.js +0 -11
- package/dist/index-C_vo1L7p.js +0 -24384
- package/dist/index-Ch7w83dW.js +0 -4217
- package/dist/index-Crhenmgw.js +0 -188
- package/dist/index-Cz5Dosd2.js +0 -412
- package/dist/index-D5OnT-__.js +0 -35858
- package/dist/index-DArR1lwi.js +0 -1759
- package/dist/index-hEJSpZe-.js +0 -308
- package/dist/index-m2O0cbD8.js +0 -1883
- package/dist/index-sLx4Edw4.js +0 -22
- package/dist/index.es-DIbGJsfa.js +0 -475
- package/dist/index.es-t6sHlseh.js +0 -12916
- package/dist/secp256k1-BkBK0mD5.js +0 -1681
- package/dist/shareicon-C88Wx-AM.js +0 -314
- package/dist/truncate-DSxFWEga.js +0 -7
- package/dist/unsupportedProp-DkeDzLfM.js +0 -14
- package/dist/useRegisterError-W_UfecIN.js +0 -19288
- package/dist/validError-rariWQ7G.js +0 -14
- 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,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
|
-
};
|