@velora-dex/widget 0.0.12 → 0.0.13
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/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +25 -19
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/vaul/browser.d.ts +8 -0
- package/dist/components/ui/vaul/browser.d.ts.map +1 -0
- package/dist/components/ui/vaul/browser.js +37 -0
- package/dist/components/ui/vaul/browser.js.map +1 -0
- package/dist/components/ui/vaul/constants.d.ts +12 -0
- package/dist/components/ui/vaul/constants.d.ts.map +1 -0
- package/dist/components/ui/vaul/constants.js +24 -0
- package/dist/components/ui/vaul/constants.js.map +1 -0
- package/dist/components/ui/vaul/context.d.ts +38 -0
- package/dist/components/ui/vaul/context.d.ts.map +1 -0
- package/dist/components/ui/vaul/context.js +72 -0
- package/dist/components/ui/vaul/context.js.map +1 -0
- package/dist/components/ui/vaul/helpers.d.ts +17 -0
- package/dist/components/ui/vaul/helpers.d.ts.map +1 -0
- package/dist/components/ui/vaul/helpers.js +87 -0
- package/dist/components/ui/vaul/helpers.js.map +1 -0
- package/dist/components/ui/vaul/index.d.ts +140 -0
- package/dist/components/ui/vaul/index.d.ts.map +1 -0
- package/dist/components/ui/vaul/index.js +807 -0
- package/dist/components/ui/vaul/index.js.map +1 -0
- package/dist/components/ui/vaul/types.d.ts +7 -0
- package/dist/components/ui/vaul/types.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-composed-refs.d.ts +14 -0
- package/dist/components/ui/vaul/use-composed-refs.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-composed-refs.js +28 -0
- package/dist/components/ui/vaul/use-composed-refs.js.map +1 -0
- package/dist/components/ui/vaul/use-controllable-state.d.ts +9 -0
- package/dist/components/ui/vaul/use-controllable-state.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-controllable-state.js +134 -0
- package/dist/components/ui/vaul/use-controllable-state.js.map +1 -0
- package/dist/components/ui/vaul/use-position-fixed.d.ts +19 -0
- package/dist/components/ui/vaul/use-position-fixed.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-position-fixed.js +109 -0
- package/dist/components/ui/vaul/use-position-fixed.js.map +1 -0
- package/dist/components/ui/vaul/use-prevent-scroll.d.ts +18 -0
- package/dist/components/ui/vaul/use-prevent-scroll.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-prevent-scroll.js +182 -0
- package/dist/components/ui/vaul/use-prevent-scroll.js.map +1 -0
- package/dist/components/ui/vaul/use-scale-background.d.ts +2 -0
- package/dist/components/ui/vaul/use-scale-background.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-scale-background.js +68 -0
- package/dist/components/ui/vaul/use-scale-background.js.map +1 -0
- package/dist/components/ui/vaul/use-snap-points.d.ts +32 -0
- package/dist/components/ui/vaul/use-snap-points.d.ts.map +1 -0
- package/dist/components/ui/vaul/use-snap-points.js +222 -0
- package/dist/components/ui/vaul/use-snap-points.js.map +1 -0
- package/dist/components/web3/AccountButton.d.ts.map +1 -1
- package/dist/components/web3/AccountButton.js +26 -30
- package/dist/components/web3/AccountButton.js.map +1 -1
- package/dist/components/web3/ConnectWallets/index.d.ts.map +1 -1
- package/dist/components/web3/ConnectWallets/index.js +12 -64
- package/dist/components/web3/ConnectWallets/index.js.map +1 -1
- package/dist/components/widget/AppHeader/ActivityButton.d.ts +2 -0
- package/dist/components/widget/AppHeader/ActivityButton.d.ts.map +1 -0
- package/dist/components/widget/AppHeader/ActivityButton.js +46 -0
- package/dist/components/widget/AppHeader/ActivityButton.js.map +1 -0
- package/dist/components/widget/AppHeader/AppHeader.d.ts.map +1 -1
- package/dist/components/widget/AppHeader/AppHeader.js +35 -29
- package/dist/components/widget/AppHeader/AppHeader.js.map +1 -1
- package/dist/components/widget/Drawer/index.d.ts +1 -1
- package/dist/components/widget/Drawer/index.d.ts.map +1 -1
- package/dist/components/widget/Drawer/index.js +37 -30
- package/dist/components/widget/Drawer/index.js.map +1 -1
- package/dist/components/widget/Informative/Informative.d.ts +7 -0
- package/dist/components/widget/Informative/Informative.d.ts.map +1 -0
- package/dist/components/widget/Informative/Informative.js +33 -0
- package/dist/components/widget/Informative/Informative.js.map +1 -0
- package/dist/components/widget/PoweredBy/PoweredBy.d.ts +2 -0
- package/dist/components/widget/PoweredBy/PoweredBy.d.ts.map +1 -0
- package/dist/components/widget/PoweredBy/PoweredBy.js +31 -0
- package/dist/components/widget/PoweredBy/PoweredBy.js.map +1 -0
- package/dist/components/widget/PoweredBy/assets/velora.svg.js +12 -0
- package/dist/components/widget/PoweredBy/assets/velora.svg.js.map +1 -0
- package/dist/components/widget/ReceiverAddress/ReceiverAddress.js +35 -39
- package/dist/components/widget/ReceiverAddress/ReceiverAddress.js.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/receiverAddressAtom.js +1 -1
- package/dist/components/widget/SelectToken/SelectTokenButton.js +55 -65
- package/dist/components/widget/SelectToken/SelectTokenButton.js.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/state/swapModeActionsAtom.d.ts.map +1 -1
- package/dist/components/widget/SwapModeSwitcher/state/swapModeActionsAtom.js +1 -0
- package/dist/components/widget/SwapModeSwitcher/state/swapModeActionsAtom.js.map +1 -1
- package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/index.js +133 -103
- package/dist/components/widget/TokenInput/index.js.map +1 -1
- package/dist/components/widget/TokenInput/types.d.ts +4 -2
- package/dist/components/widget/TokenInput/types.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/Stepper.d.ts.map +1 -1
- package/dist/components/widget/TradeOverview/Stepper.js +38 -3
- package/dist/components/widget/TradeOverview/Stepper.js.map +1 -1
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.d.ts +2 -1
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.d.ts.map +1 -1
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.js +30 -29
- package/dist/components/widget/WrapEth/WrapEthDrawerButton.js.map +1 -1
- package/dist/hooks/gas/config.d.ts +6 -0
- package/dist/hooks/gas/config.d.ts.map +1 -0
- package/dist/hooks/gas/config.js +53 -0
- package/dist/hooks/gas/config.js.map +1 -0
- package/dist/hooks/gas/types.d.ts +43 -0
- package/dist/hooks/gas/types.d.ts.map +1 -0
- package/dist/hooks/gas/useGasPrices.d.ts +7 -0
- package/dist/hooks/gas/useGasPrices.d.ts.map +1 -0
- package/dist/hooks/gas/useGasPrices.js +118 -0
- package/dist/hooks/gas/useGasPrices.js.map +1 -0
- package/dist/hooks/gas/utils.d.ts +8 -0
- package/dist/hooks/gas/utils.d.ts.map +1 -0
- package/dist/hooks/gas/utils.js +21 -0
- package/dist/hooks/gas/utils.js.map +1 -0
- package/dist/hooks/getCode/useIsAccountContract.d.ts +2 -0
- package/dist/hooks/getCode/useIsAccountContract.d.ts.map +1 -0
- package/dist/hooks/getCode/useIsAccountContract.js +34 -0
- package/dist/hooks/getCode/useIsAccountContract.js.map +1 -0
- package/dist/hooks/permit/hooks/useGetPermitInfo.d.ts +27 -0
- package/dist/hooks/permit/hooks/useGetPermitInfo.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useGetPermitInfo.js +98 -0
- package/dist/hooks/permit/hooks/useGetPermitInfo.js.map +1 -0
- package/dist/hooks/permit/hooks/useGetSafePermitInfo.d.ts +31 -0
- package/dist/hooks/permit/hooks/useGetSafePermitInfo.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useGetSafePermitInfo.js +129 -0
- package/dist/hooks/permit/hooks/useGetSafePermitInfo.js.map +1 -0
- package/dist/hooks/permit/hooks/usePermit1Nonce.d.ts +38 -0
- package/dist/hooks/permit/hooks/usePermit1Nonce.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/usePermit1Nonce.js +153 -0
- package/dist/hooks/permit/hooks/usePermit1Nonce.js.map +1 -0
- package/dist/hooks/permit/hooks/useSignArbitraryTypedData.d.ts +18 -0
- package/dist/hooks/permit/hooks/useSignArbitraryTypedData.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useSignArbitraryTypedData.js +109 -0
- package/dist/hooks/permit/hooks/useSignArbitraryTypedData.js.map +1 -0
- package/dist/hooks/permit/hooks/useSignPermit.d.ts +13 -0
- package/dist/hooks/permit/hooks/useSignPermit.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useSignPermit.js +103 -0
- package/dist/hooks/permit/hooks/useSignPermit.js.map +1 -0
- package/dist/hooks/permit/hooks/useSignTokenFromPermit1.d.ts +50 -0
- package/dist/hooks/permit/hooks/useSignTokenFromPermit1.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useSignTokenFromPermit1.js +338 -0
- package/dist/hooks/permit/hooks/useSignTokenFromPermit1.js.map +1 -0
- package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.d.ts +10 -0
- package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.js +69 -0
- package/dist/hooks/permit/hooks/useTokenFromPermit1Nonce.js.map +1 -0
- package/dist/hooks/permit/hooks/useTokenFromPermitInfo.d.ts +10 -0
- package/dist/hooks/permit/hooks/useTokenFromPermitInfo.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useTokenFromPermitInfo.js +63 -0
- package/dist/hooks/permit/hooks/useTokenFromPermitInfo.js.map +1 -0
- package/dist/hooks/permit/hooks/useTryToSignPermit1.d.ts +16 -0
- package/dist/hooks/permit/hooks/useTryToSignPermit1.d.ts.map +1 -0
- package/dist/hooks/permit/hooks/useTryToSignPermit1.js +94 -0
- package/dist/hooks/permit/hooks/useTryToSignPermit1.js.map +1 -0
- package/dist/hooks/permit/utils/abi.d.ts +219 -0
- package/dist/hooks/permit/utils/abi.d.ts.map +1 -0
- package/dist/hooks/permit/utils/abi.js +204 -0
- package/dist/hooks/permit/utils/abi.js.map +1 -0
- package/dist/hooks/permit/utils/constants.d.ts +224 -0
- package/dist/hooks/permit/utils/constants.d.ts.map +1 -0
- package/dist/hooks/permit/utils/constants.js +229 -0
- package/dist/hooks/permit/utils/constants.js.map +1 -0
- package/dist/hooks/permit/utils/construct.d.ts +161 -0
- package/dist/hooks/permit/utils/construct.d.ts.map +1 -0
- package/dist/hooks/permit/utils/construct.js +227 -0
- package/dist/hooks/permit/utils/construct.js.map +1 -0
- package/dist/hooks/permit/utils/detect.d.ts +35 -0
- package/dist/hooks/permit/utils/detect.d.ts.map +1 -0
- package/dist/hooks/permit/utils/detect.js +241 -0
- package/dist/hooks/permit/utils/detect.js.map +1 -0
- package/dist/hooks/permit/utils/domainSeparator.d.ts +44 -0
- package/dist/hooks/permit/utils/domainSeparator.d.ts.map +1 -0
- package/dist/hooks/permit/utils/domainSeparator.js +216 -0
- package/dist/hooks/permit/utils/domainSeparator.js.map +1 -0
- package/dist/hooks/permit/utils/encodeArgs.d.ts +11 -0
- package/dist/hooks/permit/utils/encodeArgs.d.ts.map +1 -0
- package/dist/hooks/permit/utils/encodeArgs.js +29 -0
- package/dist/hooks/permit/utils/encodeArgs.js.map +1 -0
- package/dist/hooks/permit/utils/trySignPermit1.d.ts +42 -0
- package/dist/hooks/permit/utils/trySignPermit1.d.ts.map +1 -0
- package/dist/hooks/permit/utils/trySignPermit1.js +283 -0
- package/dist/hooks/permit/utils/trySignPermit1.js.map +1 -0
- package/dist/hooks/permit/utils/types.d.ts +77 -0
- package/dist/hooks/permit/utils/types.d.ts.map +1 -0
- package/dist/hooks/permit/utils/utils.d.ts +15 -0
- package/dist/hooks/permit/utils/utils.d.ts.map +1 -0
- package/dist/hooks/permit/utils/utils.js +44 -0
- package/dist/hooks/permit/utils/utils.js.map +1 -0
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.d.ts +1 -1
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.js +94 -0
- package/dist/hooks/swap/prices/delta/queries/useIsTokenSupportedInDelta.js.map +1 -0
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/useSwapPrices.d.ts +3 -0
- package/dist/hooks/swap/prices/useSwapPrices.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useSwapPrices.js +43 -29
- package/dist/hooks/swap/prices/useSwapPrices.js.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.d.ts +2 -10
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.d.ts.map +1 -1
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js +10 -10
- package/dist/hooks/swap/prices/useTokenInputsFromPrice.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/types.d.ts +15 -0
- package/dist/hooks/swap/tradeFlow/common/types.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts +2 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +433 -268
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js +4 -1
- package/dist/hooks/swap/tradeFlow/useDeltaSwapStep.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.d.ts +2 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js +411 -245
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js +4 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js.map +1 -1
- package/dist/hooks/tokens/allowance/types.d.ts +2 -0
- package/dist/hooks/tokens/allowance/types.d.ts.map +1 -1
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.d.ts +3 -1
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.d.ts.map +1 -1
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.js +4 -2
- package/dist/hooks/tokens/allowance/useGenericTokenAllowance.js.map +1 -1
- package/dist/hooks/tokens/allowance/useTokenAllowance.d.ts +1 -1
- package/dist/hooks/tokens/allowance/useTokenAllowance.d.ts.map +1 -1
- package/dist/hooks/tokens/allowance/useTokenAllowance.js +11 -8
- package/dist/hooks/tokens/allowance/useTokenAllowance.js.map +1 -1
- package/dist/hooks/tokens/balances/useInvalidateTokenData.d.ts +1 -0
- package/dist/hooks/tokens/balances/useInvalidateTokenData.d.ts.map +1 -1
- package/dist/hooks/tokens/balances/useInvalidateTokenData.js +32 -5
- package/dist/hooks/tokens/balances/useInvalidateTokenData.js.map +1 -1
- package/dist/hooks/txs/mutations/useSendTx.d.ts.map +1 -1
- package/dist/hooks/txs/mutations/useSendTx.js +48 -44
- package/dist/hooks/txs/mutations/useSendTx.js.map +1 -1
- package/dist/hooks/useIsCrosschainPossible.d.ts +12 -0
- package/dist/hooks/useIsCrosschainPossible.d.ts.map +1 -0
- package/dist/hooks/useIsCrosschainPossible.js +68 -0
- package/dist/hooks/useIsCrosschainPossible.js.map +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/utils/delta.d.ts +13 -0
- package/dist/lib/utils/delta.d.ts.map +1 -0
- package/dist/lib/utils/delta.js +35 -0
- package/dist/lib/utils/delta.js.map +1 -0
- package/dist/lib/utils/explorer.d.ts +2 -0
- package/dist/lib/utils/explorer.d.ts.map +1 -1
- package/dist/lib/utils/explorer.js +15 -1
- package/dist/lib/utils/explorer.js.map +1 -1
- package/dist/styles.css +317 -5
- package/dist/tokens/defaultTokens.js.map +1 -1
- package/dist/widget/Updaters.d.ts.map +1 -1
- package/dist/widget/Updaters.js +4 -0
- package/dist/widget/Updaters.js.map +1 -1
- package/dist/widget/button/hooks/useWidgetButtonExtraProps.d.ts +9 -0
- package/dist/widget/button/hooks/useWidgetButtonExtraProps.d.ts.map +1 -0
- package/dist/widget/button/hooks/useWidgetButtonExtraProps.js +81 -0
- package/dist/widget/button/hooks/useWidgetButtonExtraProps.js.map +1 -0
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +302 -259
- package/dist/widget/index.js.map +1 -1
- package/dist/widget/inputs/hooks/types.d.ts +4 -0
- package/dist/widget/inputs/hooks/types.d.ts.map +1 -0
- package/dist/widget/inputs/hooks/useTokenFromInputProps.d.ts +3 -1
- package/dist/widget/inputs/hooks/useTokenFromInputProps.d.ts.map +1 -1
- package/dist/widget/inputs/hooks/useTokenFromInputProps.js +160 -99
- package/dist/widget/inputs/hooks/useTokenFromInputProps.js.map +1 -1
- package/dist/widget/inputs/hooks/useTokenToInputProps.d.ts +2 -1
- package/dist/widget/inputs/hooks/useTokenToInputProps.d.ts.map +1 -1
- package/dist/widget/inputs/hooks/useTokenToInputProps.js +136 -105
- package/dist/widget/inputs/hooks/useTokenToInputProps.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
globalThis.jotaiAtomCache = globalThis.jotaiAtomCache || {
|
|
2
|
+
cache: /* @__PURE__ */ new Map(),
|
|
3
|
+
get(name, inst) {
|
|
4
|
+
if (this.cache.has(name)) {
|
|
5
|
+
return this.cache.get(name);
|
|
6
|
+
}
|
|
7
|
+
this.cache.set(name, inst);
|
|
8
|
+
return inst;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const cache = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
function set(el, styles, ignoreCache = false) {
|
|
13
|
+
if (!el || !(el instanceof HTMLElement)) return;
|
|
14
|
+
const originalStyles = {};
|
|
15
|
+
Object.entries(styles).forEach(([key, value]) => {
|
|
16
|
+
if (key.startsWith("--")) {
|
|
17
|
+
el.style.setProperty(key, value);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
originalStyles[key] = el.style[key];
|
|
21
|
+
el.style[key] = value;
|
|
22
|
+
});
|
|
23
|
+
if (ignoreCache) return;
|
|
24
|
+
cache.set(el, originalStyles);
|
|
25
|
+
}
|
|
26
|
+
function reset(el, prop) {
|
|
27
|
+
if (!el || !(el instanceof HTMLElement)) return;
|
|
28
|
+
const originalStyles = cache.get(el);
|
|
29
|
+
if (!originalStyles) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
{
|
|
33
|
+
el.style[prop] = originalStyles[prop];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const isVertical = (direction) => {
|
|
37
|
+
switch (direction) {
|
|
38
|
+
case "top":
|
|
39
|
+
case "bottom":
|
|
40
|
+
return true;
|
|
41
|
+
case "left":
|
|
42
|
+
case "right":
|
|
43
|
+
return false;
|
|
44
|
+
default:
|
|
45
|
+
return direction;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function getTranslate(element, direction) {
|
|
49
|
+
if (!element) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
const style = window.getComputedStyle(element);
|
|
53
|
+
const transform = (
|
|
54
|
+
// @ts-expect-error mozTransform does not exist
|
|
55
|
+
style.transform || style.webkitTransform || style.mozTransform
|
|
56
|
+
);
|
|
57
|
+
let mat = transform.match(/^matrix3d\((.+)\)$/);
|
|
58
|
+
if (mat) {
|
|
59
|
+
return parseFloat(mat[1].split(", ")[isVertical(direction) ? 13 : 12]);
|
|
60
|
+
}
|
|
61
|
+
mat = transform.match(/^matrix\((.+)\)$/);
|
|
62
|
+
return mat ? parseFloat(mat[1].split(", ")[isVertical(direction) ? 5 : 4]) : null;
|
|
63
|
+
}
|
|
64
|
+
function dampenValue(v) {
|
|
65
|
+
return 8 * (Math.log(v + 1) - 2);
|
|
66
|
+
}
|
|
67
|
+
function assignStyle(element, style) {
|
|
68
|
+
if (!element) return () => {
|
|
69
|
+
};
|
|
70
|
+
const prevStyle = element.style.cssText;
|
|
71
|
+
Object.assign(element.style, style);
|
|
72
|
+
return () => {
|
|
73
|
+
element.style.cssText = prevStyle;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function chain(...fns) {
|
|
77
|
+
return (...args) => {
|
|
78
|
+
for (const fn of fns) {
|
|
79
|
+
if (typeof fn === "function") {
|
|
80
|
+
fn(...args);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { assignStyle, chain, dampenValue, getTranslate, isVertical, reset, set };
|
|
87
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../src/components/ui/vaul/helpers.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { AnyFunction, DrawerDirection } from \"./types\";\n\ninterface Style {\n [key: string]: string;\n}\n\nconst cache = new WeakMap();\n\nexport function isInView(el: HTMLElement): boolean {\n const rect = el.getBoundingClientRect();\n\n if (!window.visualViewport) return false;\n\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n // Need + 40 for safari detection\n rect.bottom <= window.visualViewport.height - 40 &&\n rect.right <= window.visualViewport.width\n );\n}\n\nexport function set(\n el: Element | HTMLElement | null | undefined,\n styles: Style,\n ignoreCache = false\n) {\n if (!el || !(el instanceof HTMLElement)) return;\n const originalStyles: Style = {};\n\n Object.entries(styles).forEach(([key, value]: [string, string]) => {\n if (key.startsWith(\"--\")) {\n el.style.setProperty(key, value);\n return;\n }\n\n originalStyles[key] = (el.style as any)[key];\n (el.style as any)[key] = value;\n });\n\n if (ignoreCache) return;\n\n cache.set(el, originalStyles);\n}\n\nexport function reset(el: Element | HTMLElement | null, prop?: string) {\n if (!el || !(el instanceof HTMLElement)) return;\n const originalStyles = cache.get(el);\n\n if (!originalStyles) {\n return;\n }\n\n if (prop) {\n (el.style as any)[prop] = originalStyles[prop];\n } else {\n Object.entries(originalStyles).forEach(([key, value]) => {\n (el.style as any)[key] = value;\n });\n }\n}\n\nexport const isVertical = (direction: DrawerDirection) => {\n switch (direction) {\n case \"top\":\n case \"bottom\":\n return true;\n case \"left\":\n case \"right\":\n return false;\n default:\n return direction satisfies never;\n }\n};\n\nexport function getTranslate(\n element: HTMLElement,\n direction: DrawerDirection\n): number | null {\n if (!element) {\n return null;\n }\n const style = window.getComputedStyle(element);\n const transform =\n // @ts-expect-error mozTransform does not exist\n style.transform || style.webkitTransform || style.mozTransform;\n let mat = transform.match(/^matrix3d\\((.+)\\)$/);\n if (mat) {\n // https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix3d\n return parseFloat(mat[1].split(\", \")[isVertical(direction) ? 13 : 12]);\n }\n // https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix\n mat = transform.match(/^matrix\\((.+)\\)$/);\n return mat\n ? parseFloat(mat[1].split(\", \")[isVertical(direction) ? 5 : 4])\n : null;\n}\n\nexport function dampenValue(v: number) {\n return 8 * (Math.log(v + 1) - 2);\n}\n\nexport function assignStyle(\n element: HTMLElement | null | undefined,\n style: Partial<CSSStyleDeclaration>\n) {\n if (!element) return () => {};\n\n const prevStyle = element.style.cssText;\n Object.assign(element.style, style);\n\n return () => {\n element.style.cssText = prevStyle;\n };\n}\n\n/**\n * Receives functions as arguments and returns a new function that calls all.\n */\nexport function chain<T>(...fns: T[]) {\n return (...args: T extends AnyFunction ? Parameters<T> : never) => {\n for (const fn of fns) {\n if (typeof fn === \"function\") {\n fn(...args);\n }\n }\n };\n}\n"],"names":["cache","WeakMap","set","el","styles","ignoreCache","HTMLElement","originalStyles","Object","entries","forEach","key","value","startsWith","style","setProperty","reset","prop","get","isVertical","direction","getTranslate","element","window","getComputedStyle","transform","webkitTransform","mozTransform","mat","match","parseFloat","split","dampenValue","v","Math","log","assignStyle","prevStyle","cssText","assign","chain","fns","args","fn"],"mappings":";;;;;;;;;;AAOA,MAAMA,KAAAA,uBAAYC,OAAAA,EAAQ;AAgBnB,SAASC,GAAAA,CACdC,EAAAA,EACAC,MAAAA,EACAC,WAAAA,GAAc,KAAA,EACd;AACA,EAAA,IAAI,CAACF,EAAAA,IAAM,EAAEA,EAAAA,YAAcG,WAAAA,CAAAA,EAAc;AACzC,EAAA,MAAMC,iBAAwB,EAAC;AAE/BC,EAAAA,MAAAA,CAAOC,OAAAA,CAAQL,MAAM,CAAA,CAAEM,OAAAA,CAAQ,CAAC,CAACC,GAAAA,EAAKC,KAAK,CAAA,KAAwB;AACjE,IAAA,IAAID,GAAAA,CAAIE,UAAAA,CAAW,IAAI,CAAA,EAAG;AACxBV,MAAAA,EAAAA,CAAGW,KAAAA,CAAMC,WAAAA,CAAYJ,GAAAA,EAAKC,KAAK,CAAA;AAC/B,MAAA;AAAA;AAGFL,IAAAA,cAAAA,CAAeI,GAAG,CAAA,GAAKR,EAAAA,CAAGW,KAAAA,CAAcH,GAAG,CAAA;AAC3C,IAACR,EAAAA,CAAGW,KAAAA,CAAcH,GAAG,CAAA,GAAIC,KAAAA;AAAAA,GAC1B,CAAA;AAED,EAAA,IAAIP,WAAAA,EAAa;AAEjBL,EAAAA,KAAAA,CAAME,GAAAA,CAAIC,IAAII,cAAc,CAAA;AAC9B;AAEO,SAASS,KAAAA,CAAMb,IAAkCc,IAAAA,EAAe;AACrE,EAAA,IAAI,CAACd,EAAAA,IAAM,EAAEA,EAAAA,YAAcG,WAAAA,CAAAA,EAAc;AACzC,EAAA,MAAMC,cAAAA,GAAiB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CAAEZ,UAAAA,CAAWC,SAAS,CAAA,GAAI,CAAA,GAAI,CAAC,CAAC,CAAA,GAC5D,IAAA;AACN;AAEO,SAASY,YAAYC,CAAAA,EAAW;AACrC,EAAA,OAAO,CAAA,IAAKC,IAAAA,CAAKC,GAAAA,CAAIF,CAAAA,GAAI,CAAC,CAAA,GAAI,CAAA,CAAA;AAChC;AAEO,SAASG,WAAAA,CACdd,SACAR,KAAAA,EACA;AACA,EAAA,IAAI,CAACQ,OAAAA,EAAS,OAAO,MAAM;AAAA,GAAC;AAE5B,EAAA,MAAMe,SAAAA,GAAYf,QAAQR,KAAAA,CAAMwB,OAAAA;AAChC9B,EAAAA,MAAAA,CAAO+B,MAAAA,CAAOjB,OAAAA,CAAQR,KAAAA,EAAOA,KAAK,CAAA;AAElC,EAAA,OAAO,MAAM;AACXQ,IAAAA,OAAAA,CAAQR,MAAMwB,OAAAA,GAAUD,SAAAA;AAAAA,GAC1B;AACF;AAKO,SAASG,SAAYC,GAAAA,EAAU;AACpC,EAAA,OAAO,IAAIC,IAAAA,KAAwD;AACjE,IAAA,KAAA,MAAWC,MAAMF,GAAAA,EAAK;AACpB,MAAA,IAAI,OAAOE,OAAO,UAAA,EAAY;AAC5BA,QAAAA,EAAAA,CAAG,GAAGD,IAAI,CAAA;AAAA;AACZ;AACF,GACF;AACF;;;;"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
export interface WithFadeFromProps {
|
|
4
|
+
/**
|
|
5
|
+
* Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up.
|
|
6
|
+
* Should go from least visible. Example `[0.2, 0.5, 0.8]`.
|
|
7
|
+
* You can also use px values, which doesn't take screen height into account.
|
|
8
|
+
*/
|
|
9
|
+
snapPoints: (number | string)[];
|
|
10
|
+
/**
|
|
11
|
+
* Index of a `snapPoint` from which the overlay fade should be applied. Defaults to the last snap point.
|
|
12
|
+
*/
|
|
13
|
+
fadeFromIndex: number;
|
|
14
|
+
}
|
|
15
|
+
export interface WithoutFadeFromProps {
|
|
16
|
+
/**
|
|
17
|
+
* Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up.
|
|
18
|
+
* Should go from least visible. Example `[0.2, 0.5, 0.8]`.
|
|
19
|
+
* You can also use px values, which doesn't take screen height into account.
|
|
20
|
+
*/
|
|
21
|
+
snapPoints?: (number | string)[];
|
|
22
|
+
fadeFromIndex?: never;
|
|
23
|
+
}
|
|
24
|
+
export type DialogProps = {
|
|
25
|
+
activeSnapPoint?: number | string | null;
|
|
26
|
+
setActiveSnapPoint?: (snapPoint: number | string | null) => void;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
open?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Number between 0 and 1 that determines when the drawer should be closed.
|
|
31
|
+
* Example: threshold of 0.5 would close the drawer if the user swiped for 50% of the height of the drawer or more.
|
|
32
|
+
* @default 0.25
|
|
33
|
+
*/
|
|
34
|
+
closeThreshold?: number;
|
|
35
|
+
/**
|
|
36
|
+
* When `true` the `body` doesn't get any styles assigned from Vaul
|
|
37
|
+
*/
|
|
38
|
+
noBodyStyles?: boolean;
|
|
39
|
+
onOpenChange?: (open: boolean) => void;
|
|
40
|
+
shouldScaleBackground?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* When `false` we don't change body's background color when the drawer is open.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
setBackgroundColorOnScale?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Duration for which the drawer is not draggable after scrolling content inside of the drawer.
|
|
48
|
+
* @default 500ms
|
|
49
|
+
*/
|
|
50
|
+
scrollLockTimeout?: number;
|
|
51
|
+
/**
|
|
52
|
+
* When `true`, don't move the drawer upwards if there's space, but rather only change it's height so it's fully scrollable when the keyboard is open
|
|
53
|
+
*/
|
|
54
|
+
fixed?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When `true` only allows the drawer to be dragged by the `<Drawer.Handle />` component.
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
handleOnly?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* When `false` dragging, clicking outside, pressing esc, etc. will not close the drawer.
|
|
62
|
+
* Use this in comination with the `open` prop, otherwise you won't be able to open/close the drawer.
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
dismissible?: boolean;
|
|
66
|
+
onDrag?: (event: React.PointerEvent<HTMLDivElement>, percentageDragged: number) => void;
|
|
67
|
+
onRelease?: (event: React.PointerEvent<HTMLDivElement>, open: boolean) => void;
|
|
68
|
+
/**
|
|
69
|
+
* When `false` it allows to interact with elements outside of the drawer without closing it.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
modal?: boolean;
|
|
73
|
+
nested?: boolean;
|
|
74
|
+
onClose?: () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Direction of the drawer. Can be `top` or `bottom`, `left`, `right`.
|
|
77
|
+
* @default 'bottom'
|
|
78
|
+
*/
|
|
79
|
+
direction?: "top" | "bottom" | "left" | "right";
|
|
80
|
+
/**
|
|
81
|
+
* Opened by default, skips initial enter animation. Still reacts to `open` state changes
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
defaultOpen?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* When set to `true` prevents scrolling on the document body on mount, and restores it on unmount.
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
disablePreventScroll?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* When `true` Vaul will reposition inputs rather than scroll then into view if the keyboard is in the way.
|
|
92
|
+
* Setting it to `false` will fall back to the default browser behavior.
|
|
93
|
+
* @default true when {@link snapPoints} is defined
|
|
94
|
+
*/
|
|
95
|
+
repositionInputs?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Disabled velocity based swiping for snap points.
|
|
98
|
+
* This means that a snap point won't be skipped even if the velocity is high enough.
|
|
99
|
+
* Useful if each snap point in a drawer is equally important.
|
|
100
|
+
* @default false
|
|
101
|
+
*/
|
|
102
|
+
snapToSequentialPoint?: boolean;
|
|
103
|
+
container?: HTMLElement | null;
|
|
104
|
+
/**
|
|
105
|
+
* Gets triggered after the open or close animation ends, it receives an `open` argument with the `open` state of the drawer by the time the function was triggered.
|
|
106
|
+
* Useful to revert any state changes for example.
|
|
107
|
+
*/
|
|
108
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
109
|
+
preventScrollRestoration?: boolean;
|
|
110
|
+
autoFocus?: boolean;
|
|
111
|
+
} & (WithFadeFromProps | WithoutFadeFromProps);
|
|
112
|
+
export declare function Root({ open: openProp, onOpenChange, children, onDrag: onDragProp, onRelease: onReleaseProp, snapPoints, shouldScaleBackground, setBackgroundColorOnScale, closeThreshold, scrollLockTimeout, dismissible, handleOnly, fadeFromIndex, activeSnapPoint: activeSnapPointProp, setActiveSnapPoint: setActiveSnapPointProp, fixed, modal, onClose, nested, noBodyStyles, direction, defaultOpen, disablePreventScroll, snapToSequentialPoint, preventScrollRestoration, repositionInputs, onAnimationEnd, container, autoFocus, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
export declare const Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
export type ContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
|
|
115
|
+
export declare const Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
116
|
+
export type HandleProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
117
|
+
preventCycle?: boolean;
|
|
118
|
+
};
|
|
119
|
+
export declare const Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
120
|
+
preventCycle?: boolean;
|
|
121
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
122
|
+
export declare function NestedRoot({ onDrag, onOpenChange, open: nestedIsOpen, ...rest }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
type PortalProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
|
|
124
|
+
export declare function Portal(props: PortalProps): import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
export declare const Drawer: {
|
|
126
|
+
Root: typeof Root;
|
|
127
|
+
NestedRoot: typeof NestedRoot;
|
|
128
|
+
Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
+
Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
131
|
+
Portal: typeof Portal;
|
|
132
|
+
Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
133
|
+
preventCycle?: boolean;
|
|
134
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
136
|
+
Title: React.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
137
|
+
Description: React.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
138
|
+
};
|
|
139
|
+
export {};
|
|
140
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 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