@luxfi/ui 8.2.7 → 8.2.8
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/3d-model-viewer.cjs +25 -421
- package/dist/3d-model-viewer.js +20 -416
- package/dist/accordion.cjs +3 -10
- package/dist/accordion.js +2 -10
- package/dist/advanced-navigation-bar.cjs +5 -401
- package/dist/advanced-navigation-bar.js +5 -401
- package/dist/ai-agents.cjs +45 -890
- package/dist/ai-agents.js +8 -834
- package/dist/ai-assistant.cjs +13 -740
- package/dist/ai-assistant.js +10 -738
- package/dist/ai-chat.cjs +24 -770
- package/dist/ai-chat.js +18 -765
- package/dist/ai-code.cjs +67 -923
- package/dist/ai-code.js +49 -905
- package/dist/ai-playground.cjs +25 -801
- package/dist/ai-playground.js +18 -795
- package/dist/ai-tools.cjs +22 -767
- package/dist/ai-tools.js +15 -761
- package/dist/ai-vision.cjs +41 -993
- package/dist/ai-vision.js +30 -983
- package/dist/ai-voice-settings.cjs +35 -1006
- package/dist/ai-voice-settings.js +32 -1004
- package/dist/ai-voice.cjs +51 -1024
- package/dist/ai-voice.js +9 -963
- package/dist/alert.cjs +11 -129
- package/dist/alert.js +8 -127
- package/dist/announcement.cjs +6 -402
- package/dist/announcement.js +6 -402
- package/dist/app-switcher-navigation-bar.cjs +5 -401
- package/dist/app-switcher-navigation-bar.js +5 -401
- package/dist/apple-cards-carousel.cjs +84 -480
- package/dist/apple-cards-carousel.js +19 -415
- package/dist/auth.cjs +10 -387
- package/dist/auth.js +7 -385
- package/dist/avatar.cjs +2 -9
- package/dist/avatar.js +2 -10
- package/dist/badge.cjs +8 -228
- package/dist/badge.js +5 -210
- package/dist/button.cjs +14 -67
- package/dist/button.js +12 -65
- package/dist/chrome.cjs +29 -493
- package/dist/chrome.js +9 -474
- package/dist/code-block.cjs +16 -664
- package/dist/code-block.js +13 -662
- package/dist/code-compare.cjs +28 -1302
- package/dist/code-compare.js +18 -1293
- package/dist/code-diff.cjs +21 -669
- package/dist/code-diff.js +17 -666
- package/dist/code-editor.cjs +13 -409
- package/dist/code-editor.js +12 -408
- package/dist/code-explorer.cjs +14 -456
- package/dist/code-explorer.js +13 -456
- package/dist/code-preview.cjs +31 -983
- package/dist/code-preview.js +23 -976
- package/dist/code-snippet.cjs +19 -667
- package/dist/code-snippet.js +14 -663
- package/dist/code-terminal.cjs +24 -485
- package/dist/code-terminal.js +19 -481
- package/dist/collapsible.cjs +13 -347
- package/dist/collapsible.js +11 -330
- package/dist/color-picker.cjs +8 -450
- package/dist/color-picker.js +7 -450
- package/dist/combobox.cjs +6 -402
- package/dist/combobox.js +6 -402
- package/dist/communication-navigation-bar.cjs +7 -403
- package/dist/communication-navigation-bar.js +5 -401
- package/dist/dashboard-navigation-bar.cjs +6 -402
- package/dist/dashboard-navigation-bar.js +5 -401
- package/dist/dialog-stack.cjs +5 -401
- package/dist/dialog-stack.js +5 -401
- package/dist/dialog.cjs +13 -70
- package/dist/dialog.js +13 -70
- package/dist/drawer.cjs +23 -99
- package/dist/drawer.js +19 -96
- package/dist/e-commerce-navigation-bar.cjs +7 -403
- package/dist/e-commerce-navigation-bar.js +5 -401
- package/dist/editor.cjs +9 -405
- package/dist/editor.js +6 -402
- package/dist/iam.cjs +2 -123
- package/dist/iam.js +1 -122
- package/dist/icon-button.cjs +2 -56
- package/dist/icon-button.js +1 -55
- package/dist/identity.cjs +28 -242
- package/dist/identity.js +20 -235
- package/dist/image-crop.cjs +10 -406
- package/dist/image-crop.js +7 -403
- package/dist/image.cjs +14 -83
- package/dist/image.js +13 -67
- package/dist/index.cjs +1868 -38770
- package/dist/index.js +174 -38320
- package/dist/input-group.cjs +3 -10
- package/dist/input-group.js +2 -10
- package/dist/item.cjs +2 -27
- package/dist/item.js +1 -22
- package/dist/kanban.cjs +25 -751
- package/dist/kanban.js +15 -742
- package/dist/limelight-nav.cjs +10 -452
- package/dist/limelight-nav.js +9 -452
- package/dist/link.cjs +11 -80
- package/dist/link.js +6 -60
- package/dist/lux.config.cjs +14 -32
- package/dist/lux.config.js +3 -26
- package/dist/menu.cjs +5 -13
- package/dist/menu.js +1 -9
- package/dist/message-dock.cjs +5 -401
- package/dist/message-dock.js +5 -401
- package/dist/mini-calendar.cjs +7 -403
- package/dist/mini-calendar.js +6 -402
- package/dist/music-player.cjs +30 -528
- package/dist/music-player.js +22 -520
- package/dist/next.cjs +8 -89
- package/dist/next.js +3 -86
- package/dist/popover.cjs +17 -74
- package/dist/popover.js +16 -73
- package/dist/progress-circle.cjs +3 -10
- package/dist/progress-circle.js +2 -10
- package/dist/provider.cjs +7 -176
- package/dist/provider.js +4 -174
- package/dist/select.cjs +36 -89
- package/dist/select.js +35 -88
- package/dist/sidebar.cjs +22 -493
- package/dist/sidebar.js +17 -489
- package/dist/site/commerce/ui/context.cjs +9 -214
- package/dist/site/commerce/ui/context.js +6 -215
- package/dist/site/components/analytics.cjs +2 -42
- package/dist/site/components/analytics.js +1 -37
- package/dist/site/components/auth/callback.cjs +2 -8
- package/dist/site/components/auth/callback.js +1 -7
- package/dist/site/components/auth/login-panel.cjs +15 -74
- package/dist/site/components/auth/login-panel.js +12 -73
- package/dist/site/components/auth/login.cjs +2 -6
- package/dist/site/components/auth/login.js +1 -5
- package/dist/site/components/auth/widget.cjs +2 -6
- package/dist/site/components/auth/widget.js +1 -5
- package/dist/site/components/commerce/bag-button.cjs +2 -3
- package/dist/site/components/commerce/bag-button.js +2 -3
- package/dist/site/components/commerce/buy-button.cjs +2 -11
- package/dist/site/components/commerce/buy-button.js +1 -10
- package/dist/site/components/commerce/checkout-button.cjs +2 -3
- package/dist/site/components/commerce/checkout-button.js +2 -3
- package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +15 -173
- package/dist/site/components/commerce/checkout-panel/desktop-cp.js +14 -174
- package/dist/site/components/commerce/checkout-panel/index.cjs +9 -400
- package/dist/site/components/commerce/checkout-panel/index.js +10 -403
- package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +15 -236
- package/dist/site/components/commerce/checkout-panel/mobile-cp.js +13 -237
- package/dist/site/components/commerce/desktop-bag-popup.cjs +7 -8
- package/dist/site/components/commerce/desktop-bag-popup.js +3 -8
- package/dist/site/components/commerce/drawer/index.cjs +15 -289
- package/dist/site/components/commerce/drawer/index.js +10 -290
- package/dist/site/components/commerce/drawer/micro.cjs +8 -115
- package/dist/site/components/commerce/drawer/micro.js +4 -115
- package/dist/site/components/commerce/drawer/shell.cjs +2 -10
- package/dist/site/components/commerce/drawer/shell.js +2 -10
- package/dist/site/components/contact-dialog/index.cjs +6 -69
- package/dist/site/components/contact-dialog/index.js +7 -71
- package/dist/site/components/drawer-margin.cjs +2 -10
- package/dist/site/components/drawer-margin.js +2 -10
- package/dist/site/components/footer.cjs +11 -81
- package/dist/site/components/footer.js +8 -80
- package/dist/site/components/header/desktop.cjs +18 -374
- package/dist/site/components/header/desktop.js +12 -355
- package/dist/site/components/header/index.cjs +9 -674
- package/dist/site/components/header/index.js +8 -657
- package/dist/site/components/header/mobile-bag-drawer.cjs +6 -71
- package/dist/site/components/header/mobile-bag-drawer.js +5 -74
- package/dist/site/components/header/mobile-nav-menu-ai.cjs +25 -28
- package/dist/site/components/header/mobile-nav-menu-ai.js +24 -27
- package/dist/site/components/header/mobile-nav-menu-item.cjs +6 -60
- package/dist/site/components/header/mobile-nav-menu-item.js +6 -61
- package/dist/site/components/header/mobile-nav-menu.cjs +7 -110
- package/dist/site/components/header/mobile-nav-menu.js +7 -112
- package/dist/site/components/header/mobile.cjs +48 -330
- package/dist/site/components/header/mobile.js +42 -330
- package/dist/site/components/icons/index.cjs +34 -35
- package/dist/site/components/icons/index.js +5 -33
- package/dist/site/components/index.cjs +118 -1961
- package/dist/site/components/index.js +23 -1951
- package/dist/site/components/mini-chart/index.cjs +7 -90
- package/dist/site/components/mini-chart/index.js +1 -92
- package/dist/site/components/mini-chart/wrapper.cjs +7 -76
- package/dist/site/components/mini-chart/wrapper.js +4 -77
- package/dist/site/components/not-found/index.cjs +9 -819
- package/dist/site/components/not-found/index.js +8 -802
- package/dist/site/components/security/index.cjs +9 -819
- package/dist/site/components/security/index.js +8 -802
- package/dist/site/next/analytics/index.cjs +16 -49
- package/dist/site/next/analytics/index.js +3 -49
- package/dist/site/next/analytics/pixel-analytics.cjs +23 -8
- package/dist/site/next/analytics/pixel-analytics.js +4 -8
- package/dist/site/next/index.cjs +13 -140
- package/dist/site/next/index.js +2 -140
- package/dist/site/root-layout/index.cjs +12 -1435
- package/dist/site/root-layout/index.css +0 -133
- package/dist/site/root-layout/index.js +12 -1416
- package/dist/site/site-def/footer/community.cjs +11 -27
- package/dist/site/site-def/footer/community.js +2 -18
- package/dist/site/site-def/footer/index.cjs +38 -218
- package/dist/site/site-def/footer/index.js +14 -215
- package/dist/site/site-def/index.cjs +28 -620
- package/dist/site/site-def/index.js +3 -624
- package/dist/table.cjs +20 -338
- package/dist/table.js +19 -338
- package/dist/tabs.cjs +3 -10
- package/dist/tabs.js +1 -9
- package/dist/tag.cjs +9 -270
- package/dist/tag.js +6 -268
- package/dist/tags.cjs +6 -314
- package/dist/tags.js +5 -314
- package/dist/textarea.cjs +4 -50
- package/dist/textarea.js +3 -49
- package/dist/tooltip.cjs +15 -34
- package/dist/tooltip.js +13 -33
- package/dist/vite.cjs +3 -82
- package/dist/vite.js +1 -80
- package/package.json +1 -1
- package/dist/index.css +0 -132
- package/dist/site/components/auth/login-panel.css +0 -4
- package/dist/site/components/commerce/bag-button.css +0 -4
- package/dist/site/components/commerce/checkout-button.css +0 -4
- package/dist/site/components/commerce/checkout-panel/desktop-cp.css +0 -132
- package/dist/site/components/commerce/checkout-panel/index.css +0 -132
- package/dist/site/components/commerce/checkout-panel/mobile-cp.css +0 -132
- package/dist/site/components/commerce/desktop-bag-popup.css +0 -4
- package/dist/site/components/commerce/drawer/index.css +0 -132
- package/dist/site/components/commerce/drawer/micro.css +0 -4
- package/dist/site/components/header/desktop.css +0 -4
- package/dist/site/components/header/index.css +0 -132
- package/dist/site/components/header/mobile-bag-drawer.css +0 -4
- package/dist/site/components/header/mobile-nav-menu-ai.css +0 -132
- package/dist/site/components/header/mobile-nav-menu-item.css +0 -132
- package/dist/site/components/header/mobile-nav-menu.css +0 -132
- package/dist/site/components/header/mobile.css +0 -132
- package/dist/site/components/icons/index.css +0 -4
- package/dist/site/components/index.css +0 -132
- package/dist/site/components/not-found/index.css +0 -132
- package/dist/site/components/security/index.css +0 -132
- package/dist/site/site-def/footer/community.css +0 -4
- package/dist/site/site-def/footer/index.css +0 -4
- package/dist/site/site-def/index.css +0 -4
package/dist/textarea.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var input_js = require('./input.js');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -10,53 +11,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
10
11
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
12
|
|
|
12
13
|
var SIZE = {
|
|
13
|
-
xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
|
|
14
|
-
sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
|
|
15
|
-
md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
|
|
16
|
-
lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
|
|
17
|
-
"2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
|
|
18
|
-
};
|
|
19
|
-
var VARIANT = {
|
|
20
|
-
outline: { borderWidth: 1, borderStyle: "solid" },
|
|
21
|
-
filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
|
|
22
|
-
unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
|
|
23
|
-
};
|
|
24
|
-
var CONTROL = {
|
|
25
|
-
width: "100%",
|
|
26
|
-
outlineWidth: 0,
|
|
27
|
-
backgroundColor: "var(--color-input-bg)",
|
|
28
|
-
color: "var(--color-input-fg)",
|
|
29
|
-
borderColor: "var(--color-input-border)",
|
|
30
|
-
hoverStyle: { borderColor: "var(--color-input-border-hover)" },
|
|
31
|
-
focusStyle: { borderColor: "var(--color-input-border-focus)" },
|
|
32
|
-
disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
|
|
33
|
-
};
|
|
34
|
-
var Input = React__default.default.forwardRef(
|
|
35
|
-
({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
|
|
36
|
-
const handleChange = React__default.default.useCallback(
|
|
37
|
-
(event) => {
|
|
38
|
-
onChange?.(event);
|
|
39
|
-
onChangeText?.(event.target.value);
|
|
40
|
-
},
|
|
41
|
-
[onChange, onChangeText]
|
|
42
|
-
);
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
gui.Input,
|
|
45
|
-
{
|
|
46
|
-
ref,
|
|
47
|
-
unstyled: true,
|
|
48
|
-
className: className ? `lux-control ${className}` : "lux-control",
|
|
49
|
-
...CONTROL,
|
|
50
|
-
...SIZE[size],
|
|
51
|
-
...VARIANT[variant],
|
|
52
|
-
...rest,
|
|
53
|
-
onChange: handleChange
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
Input.displayName = "Input";
|
|
59
|
-
var SIZE2 = {
|
|
60
14
|
xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
|
|
61
15
|
sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
|
|
62
16
|
md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
|
|
@@ -78,9 +32,9 @@ var Textarea = React__default.default.forwardRef(
|
|
|
78
32
|
ref,
|
|
79
33
|
unstyled: true,
|
|
80
34
|
className: className ? `lux-control ${className}` : "lux-control",
|
|
81
|
-
...CONTROL,
|
|
82
|
-
...
|
|
83
|
-
...VARIANT[variant],
|
|
35
|
+
...input_js.CONTROL,
|
|
36
|
+
...SIZE[size],
|
|
37
|
+
...input_js.VARIANT[variant],
|
|
84
38
|
...rest,
|
|
85
39
|
onChange: handleChange
|
|
86
40
|
}
|
package/dist/textarea.js
CHANGED
|
@@ -1,56 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { TextArea } from '@hanzo/gui';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { VARIANT, CONTROL } from './input.js';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
var SIZE = {
|
|
7
|
-
xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
|
|
8
|
-
sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
|
|
9
|
-
md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
|
|
10
|
-
lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
|
|
11
|
-
"2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
|
|
12
|
-
};
|
|
13
|
-
var VARIANT = {
|
|
14
|
-
outline: { borderWidth: 1, borderStyle: "solid" },
|
|
15
|
-
filled: { borderWidth: 0, backgroundColor: "var(--color-input-filled-bg)" },
|
|
16
|
-
unstyled: { borderWidth: 0, backgroundColor: "transparent", padding: 0, height: "auto" }
|
|
17
|
-
};
|
|
18
|
-
var CONTROL = {
|
|
19
|
-
width: "100%",
|
|
20
|
-
outlineWidth: 0,
|
|
21
|
-
backgroundColor: "var(--color-input-bg)",
|
|
22
|
-
color: "var(--color-input-fg)",
|
|
23
|
-
borderColor: "var(--color-input-border)",
|
|
24
|
-
hoverStyle: { borderColor: "var(--color-input-border-hover)" },
|
|
25
|
-
focusStyle: { borderColor: "var(--color-input-border-focus)" },
|
|
26
|
-
disabledStyle: { opacity: 0.4, cursor: "not-allowed" }
|
|
27
|
-
};
|
|
28
|
-
var Input = React.forwardRef(
|
|
29
|
-
({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
|
|
30
|
-
const handleChange = React.useCallback(
|
|
31
|
-
(event) => {
|
|
32
|
-
onChange?.(event);
|
|
33
|
-
onChangeText?.(event.target.value);
|
|
34
|
-
},
|
|
35
|
-
[onChange, onChangeText]
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
Input$1,
|
|
39
|
-
{
|
|
40
|
-
ref,
|
|
41
|
-
unstyled: true,
|
|
42
|
-
className: className ? `lux-control ${className}` : "lux-control",
|
|
43
|
-
...CONTROL,
|
|
44
|
-
...SIZE[size],
|
|
45
|
-
...VARIANT[variant],
|
|
46
|
-
...rest,
|
|
47
|
-
onChange: handleChange
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
Input.displayName = "Input";
|
|
53
|
-
var SIZE2 = {
|
|
54
8
|
xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
|
|
55
9
|
sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
|
|
56
10
|
md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
|
|
@@ -73,7 +27,7 @@ var Textarea = React.forwardRef(
|
|
|
73
27
|
unstyled: true,
|
|
74
28
|
className: className ? `lux-control ${className}` : "lux-control",
|
|
75
29
|
...CONTROL,
|
|
76
|
-
...
|
|
30
|
+
...SIZE[size],
|
|
77
31
|
...VARIANT[variant],
|
|
78
32
|
...rest,
|
|
79
33
|
onChange: handleChange
|
package/dist/tooltip.cjs
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var usehooks = require('@uidotdev/usehooks');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var ink_js = require('./ink.js');
|
|
8
|
+
var useNarrow_js = require('./use-narrow.js');
|
|
7
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
10
|
|
|
9
11
|
function _interopNamespace(e) {
|
|
@@ -24,34 +26,13 @@ function _interopNamespace(e) {
|
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
var
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
30
|
|
|
29
|
-
var ink = (children, Wrap = gui.Text, props = {}) => {
|
|
30
|
-
let hasText = false;
|
|
31
|
-
React2.Children.forEach(children, (child) => {
|
|
32
|
-
if (typeof child === "string" || typeof child === "number") hasText = true;
|
|
33
|
-
});
|
|
34
|
-
if (!hasText) return children;
|
|
35
|
-
return React2.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React2.createElement(Wrap, props, child) : child);
|
|
36
|
-
};
|
|
37
|
-
var TOUCH_PX = 1024;
|
|
38
|
-
function useBelow(px) {
|
|
39
|
-
const [below, setBelow] = React2__namespace.useState(false);
|
|
40
|
-
React2__namespace.useEffect(() => {
|
|
41
|
-
const mql = window.matchMedia(`(max-width: ${px - 1}px)`);
|
|
42
|
-
const apply = () => setBelow(mql.matches);
|
|
43
|
-
apply();
|
|
44
|
-
mql.addEventListener("change", apply);
|
|
45
|
-
return () => mql.removeEventListener("change", apply);
|
|
46
|
-
}, [px]);
|
|
47
|
-
return below;
|
|
48
|
-
}
|
|
49
|
-
var useIsTouch = () => useBelow(TOUCH_PX);
|
|
50
31
|
function mapPlacement(p) {
|
|
51
32
|
if (!p) return void 0;
|
|
52
33
|
return p;
|
|
53
34
|
}
|
|
54
|
-
var Tooltip =
|
|
35
|
+
var Tooltip = React__namespace.forwardRef(
|
|
55
36
|
function Tooltip2(props, ref) {
|
|
56
37
|
const {
|
|
57
38
|
showArrow: showArrowProp,
|
|
@@ -70,28 +51,28 @@ var Tooltip = React2__namespace.forwardRef(
|
|
|
70
51
|
interactive,
|
|
71
52
|
positioning
|
|
72
53
|
} = props;
|
|
73
|
-
const [open, setOpen] =
|
|
74
|
-
const timeoutRef =
|
|
75
|
-
const isMobile = useIsTouch();
|
|
76
|
-
const handleOpenChange =
|
|
54
|
+
const [open, setOpen] = React__namespace.useState(defaultOpen);
|
|
55
|
+
const timeoutRef = React__namespace.useRef(null);
|
|
56
|
+
const isMobile = useNarrow_js.useIsTouch();
|
|
57
|
+
const handleOpenChange = React__namespace.useCallback((nextOpen) => {
|
|
77
58
|
setOpen(nextOpen);
|
|
78
59
|
onOpenChange?.({ open: nextOpen });
|
|
79
60
|
}, [onOpenChange]);
|
|
80
|
-
const handleOpenChangeManual =
|
|
61
|
+
const handleOpenChangeManual = React__namespace.useCallback((nextOpen) => {
|
|
81
62
|
timeoutRef.current && window.clearTimeout(timeoutRef.current);
|
|
82
63
|
timeoutRef.current = window.setTimeout(() => {
|
|
83
64
|
setOpen(nextOpen);
|
|
84
65
|
onOpenChange?.({ open: nextOpen });
|
|
85
66
|
}, nextOpen ? openDelay : closeDelay);
|
|
86
67
|
}, [closeDelay, openDelay, onOpenChange]);
|
|
87
|
-
const handleClickAway =
|
|
68
|
+
const handleClickAway = React__namespace.useCallback(() => {
|
|
88
69
|
if (open) handleOpenChangeManual(false);
|
|
89
70
|
}, [open, handleOpenChangeManual]);
|
|
90
71
|
const triggerRef = usehooks.useClickAway(handleClickAway);
|
|
91
|
-
const handleTriggerClick =
|
|
72
|
+
const handleTriggerClick = React__namespace.useCallback(() => {
|
|
92
73
|
handleOpenChangeManual(!open);
|
|
93
74
|
}, [handleOpenChangeManual, open]);
|
|
94
|
-
const handleContentClick =
|
|
75
|
+
const handleContentClick = React__namespace.useCallback((event) => {
|
|
95
76
|
event.stopPropagation();
|
|
96
77
|
if (interactive) {
|
|
97
78
|
const closestLink = event.target?.closest("a");
|
|
@@ -100,7 +81,7 @@ var Tooltip = React2__namespace.forwardRef(
|
|
|
100
81
|
}
|
|
101
82
|
}
|
|
102
83
|
}, [interactive, handleOpenChangeManual]);
|
|
103
|
-
|
|
84
|
+
React__namespace.useEffect(() => {
|
|
104
85
|
return () => {
|
|
105
86
|
if (timeoutRef.current) {
|
|
106
87
|
clearTimeout(timeoutRef.current);
|
|
@@ -164,7 +145,7 @@ var Tooltip = React2__namespace.forwardRef(
|
|
|
164
145
|
backgroundColor: isPopover ? "var(--color-popover-bg)" : "var(--color-tooltip-bg)"
|
|
165
146
|
}
|
|
166
147
|
),
|
|
167
|
-
ink(content, void 0, {
|
|
148
|
+
ink_js.ink(content, void 0, {
|
|
168
149
|
fontSize: 14,
|
|
169
150
|
color: isPopover ? "var(--color-text-primary)" : "var(--color-tooltip-fg)"
|
|
170
151
|
})
|
package/dist/tooltip.js
CHANGED
|
@@ -1,36 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { TooltipGroup, Tooltip as Tooltip$1
|
|
2
|
+
import { TooltipGroup, Tooltip as Tooltip$1 } from '@hanzo/gui';
|
|
3
3
|
import { useClickAway } from '@uidotdev/usehooks';
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ink } from './ink.js';
|
|
6
|
+
import { useIsTouch } from './use-narrow.js';
|
|
6
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
|
-
var ink = (children, Wrap = Text, props = {}) => {
|
|
9
|
-
let hasText = false;
|
|
10
|
-
Children.forEach(children, (child) => {
|
|
11
|
-
if (typeof child === "string" || typeof child === "number") hasText = true;
|
|
12
|
-
});
|
|
13
|
-
if (!hasText) return children;
|
|
14
|
-
return Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? createElement(Wrap, props, child) : child);
|
|
15
|
-
};
|
|
16
|
-
var TOUCH_PX = 1024;
|
|
17
|
-
function useBelow(px) {
|
|
18
|
-
const [below, setBelow] = React2.useState(false);
|
|
19
|
-
React2.useEffect(() => {
|
|
20
|
-
const mql = window.matchMedia(`(max-width: ${px - 1}px)`);
|
|
21
|
-
const apply = () => setBelow(mql.matches);
|
|
22
|
-
apply();
|
|
23
|
-
mql.addEventListener("change", apply);
|
|
24
|
-
return () => mql.removeEventListener("change", apply);
|
|
25
|
-
}, [px]);
|
|
26
|
-
return below;
|
|
27
|
-
}
|
|
28
|
-
var useIsTouch = () => useBelow(TOUCH_PX);
|
|
29
9
|
function mapPlacement(p) {
|
|
30
10
|
if (!p) return void 0;
|
|
31
11
|
return p;
|
|
32
12
|
}
|
|
33
|
-
var Tooltip =
|
|
13
|
+
var Tooltip = React.forwardRef(
|
|
34
14
|
function Tooltip2(props, ref) {
|
|
35
15
|
const {
|
|
36
16
|
showArrow: showArrowProp,
|
|
@@ -49,28 +29,28 @@ var Tooltip = React2.forwardRef(
|
|
|
49
29
|
interactive,
|
|
50
30
|
positioning
|
|
51
31
|
} = props;
|
|
52
|
-
const [open, setOpen] =
|
|
53
|
-
const timeoutRef =
|
|
32
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
33
|
+
const timeoutRef = React.useRef(null);
|
|
54
34
|
const isMobile = useIsTouch();
|
|
55
|
-
const handleOpenChange =
|
|
35
|
+
const handleOpenChange = React.useCallback((nextOpen) => {
|
|
56
36
|
setOpen(nextOpen);
|
|
57
37
|
onOpenChange?.({ open: nextOpen });
|
|
58
38
|
}, [onOpenChange]);
|
|
59
|
-
const handleOpenChangeManual =
|
|
39
|
+
const handleOpenChangeManual = React.useCallback((nextOpen) => {
|
|
60
40
|
timeoutRef.current && window.clearTimeout(timeoutRef.current);
|
|
61
41
|
timeoutRef.current = window.setTimeout(() => {
|
|
62
42
|
setOpen(nextOpen);
|
|
63
43
|
onOpenChange?.({ open: nextOpen });
|
|
64
44
|
}, nextOpen ? openDelay : closeDelay);
|
|
65
45
|
}, [closeDelay, openDelay, onOpenChange]);
|
|
66
|
-
const handleClickAway =
|
|
46
|
+
const handleClickAway = React.useCallback(() => {
|
|
67
47
|
if (open) handleOpenChangeManual(false);
|
|
68
48
|
}, [open, handleOpenChangeManual]);
|
|
69
49
|
const triggerRef = useClickAway(handleClickAway);
|
|
70
|
-
const handleTriggerClick =
|
|
50
|
+
const handleTriggerClick = React.useCallback(() => {
|
|
71
51
|
handleOpenChangeManual(!open);
|
|
72
52
|
}, [handleOpenChangeManual, open]);
|
|
73
|
-
const handleContentClick =
|
|
53
|
+
const handleContentClick = React.useCallback((event) => {
|
|
74
54
|
event.stopPropagation();
|
|
75
55
|
if (interactive) {
|
|
76
56
|
const closestLink = event.target?.closest("a");
|
|
@@ -79,7 +59,7 @@ var Tooltip = React2.forwardRef(
|
|
|
79
59
|
}
|
|
80
60
|
}
|
|
81
61
|
}, [interactive, handleOpenChangeManual]);
|
|
82
|
-
|
|
62
|
+
React.useEffect(() => {
|
|
83
63
|
return () => {
|
|
84
64
|
if (timeoutRef.current) {
|
|
85
65
|
clearTimeout(timeoutRef.current);
|
package/dist/vite.cjs
CHANGED
|
@@ -1,88 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
var GUI_PACKAGES = [
|
|
6
|
-
"@hanzo/gui",
|
|
7
|
-
"@hanzogui/accordion",
|
|
8
|
-
"@hanzogui/adapt",
|
|
9
|
-
"@hanzogui/alert-dialog",
|
|
10
|
-
"@hanzogui/animate",
|
|
11
|
-
"@hanzogui/animate-presence",
|
|
12
|
-
"@hanzogui/avatar",
|
|
13
|
-
"@hanzogui/button",
|
|
14
|
-
"@hanzogui/card",
|
|
15
|
-
"@hanzogui/checkbox",
|
|
16
|
-
"@hanzogui/collapsible",
|
|
17
|
-
"@hanzogui/component-helpers",
|
|
18
|
-
"@hanzogui/compose-refs",
|
|
19
|
-
"@hanzogui/config",
|
|
20
|
-
"@hanzogui/context-menu",
|
|
21
|
-
"@hanzogui/core",
|
|
22
|
-
"@hanzogui/create-context",
|
|
23
|
-
"@hanzogui/create-menu",
|
|
24
|
-
"@hanzogui/dialog",
|
|
25
|
-
"@hanzogui/dismissable",
|
|
26
|
-
"@hanzogui/element",
|
|
27
|
-
"@hanzogui/elements",
|
|
28
|
-
"@hanzogui/floating",
|
|
29
|
-
"@hanzogui/focus-scope",
|
|
30
|
-
"@hanzogui/font-size",
|
|
31
|
-
"@hanzogui/form",
|
|
32
|
-
"@hanzogui/get-token",
|
|
33
|
-
"@hanzogui/group",
|
|
34
|
-
"@hanzogui/helpers",
|
|
35
|
-
"@hanzogui/image",
|
|
36
|
-
"@hanzogui/input",
|
|
37
|
-
"@hanzogui/label",
|
|
38
|
-
"@hanzogui/list-item",
|
|
39
|
-
"@hanzogui/menu",
|
|
40
|
-
"@hanzogui/popover",
|
|
41
|
-
"@hanzogui/popper",
|
|
42
|
-
"@hanzogui/portal",
|
|
43
|
-
"@hanzogui/progress",
|
|
44
|
-
"@hanzogui/radio-group",
|
|
45
|
-
"@hanzogui/react-native-media-driver",
|
|
46
|
-
"@hanzogui/remove-scroll",
|
|
47
|
-
"@hanzogui/scroll-view",
|
|
48
|
-
"@hanzogui/select",
|
|
49
|
-
"@hanzogui/separator",
|
|
50
|
-
"@hanzogui/shapes",
|
|
51
|
-
"@hanzogui/sheet",
|
|
52
|
-
"@hanzogui/slider",
|
|
53
|
-
"@hanzogui/spacer",
|
|
54
|
-
"@hanzogui/spinner",
|
|
55
|
-
"@hanzogui/stacks",
|
|
56
|
-
"@hanzogui/switch",
|
|
57
|
-
"@hanzogui/tabs",
|
|
58
|
-
"@hanzogui/text",
|
|
59
|
-
"@hanzogui/theme",
|
|
60
|
-
"@hanzogui/toast",
|
|
61
|
-
"@hanzogui/toggle-group",
|
|
62
|
-
"@hanzogui/tooltip",
|
|
63
|
-
"@hanzogui/use-controllable-state",
|
|
64
|
-
"@hanzogui/use-debounce",
|
|
65
|
-
"@hanzogui/use-force-update",
|
|
66
|
-
"@hanzogui/use-presence",
|
|
67
|
-
"@hanzogui/use-window-dimensions",
|
|
68
|
-
"@hanzogui/visually-hidden",
|
|
69
|
-
"@hanzogui/web",
|
|
70
|
-
"@hanzogui/z-index-stack",
|
|
71
|
-
"@luxfi/ui"
|
|
72
|
-
];
|
|
73
|
-
var GUI_DEFINES = {
|
|
74
|
-
"process.env.EXPO_OS": JSON.stringify("web"),
|
|
75
|
-
"process.env.IS_WEB": JSON.stringify("true")
|
|
76
|
-
};
|
|
77
|
-
var ENGINE_DEDUPE = [
|
|
78
|
-
"react",
|
|
79
|
-
"react-dom",
|
|
80
|
-
"@tanstack/react-query",
|
|
81
|
-
...GUI_PACKAGES
|
|
82
|
-
];
|
|
4
|
+
var engine_js = require('./engine.js');
|
|
83
5
|
|
|
84
|
-
|
|
85
|
-
var DEDUPE = ENGINE_DEDUPE;
|
|
6
|
+
var DEDUPE = engine_js.ENGINE_DEDUPE;
|
|
86
7
|
var INCLUDE = [
|
|
87
8
|
"react-native-web",
|
|
88
9
|
"@react-native/normalize-color",
|
|
@@ -96,7 +17,7 @@ function luxUi(options = {}) {
|
|
|
96
17
|
config: () => ({
|
|
97
18
|
// The engine branches on these at module scope; without them it takes the
|
|
98
19
|
// native path in a browser bundle. (./engine)
|
|
99
|
-
define: { ...GUI_DEFINES },
|
|
20
|
+
define: { ...engine_js.GUI_DEFINES },
|
|
100
21
|
resolve: {
|
|
101
22
|
alias: { "react-native": "react-native-web" },
|
|
102
23
|
dedupe: [.../* @__PURE__ */ new Set([...DEDUPE, ...options.dedupe ?? []])]
|
package/dist/vite.js
CHANGED
|
@@ -1,85 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
var GUI_PACKAGES = [
|
|
4
|
-
"@hanzo/gui",
|
|
5
|
-
"@hanzogui/accordion",
|
|
6
|
-
"@hanzogui/adapt",
|
|
7
|
-
"@hanzogui/alert-dialog",
|
|
8
|
-
"@hanzogui/animate",
|
|
9
|
-
"@hanzogui/animate-presence",
|
|
10
|
-
"@hanzogui/avatar",
|
|
11
|
-
"@hanzogui/button",
|
|
12
|
-
"@hanzogui/card",
|
|
13
|
-
"@hanzogui/checkbox",
|
|
14
|
-
"@hanzogui/collapsible",
|
|
15
|
-
"@hanzogui/component-helpers",
|
|
16
|
-
"@hanzogui/compose-refs",
|
|
17
|
-
"@hanzogui/config",
|
|
18
|
-
"@hanzogui/context-menu",
|
|
19
|
-
"@hanzogui/core",
|
|
20
|
-
"@hanzogui/create-context",
|
|
21
|
-
"@hanzogui/create-menu",
|
|
22
|
-
"@hanzogui/dialog",
|
|
23
|
-
"@hanzogui/dismissable",
|
|
24
|
-
"@hanzogui/element",
|
|
25
|
-
"@hanzogui/elements",
|
|
26
|
-
"@hanzogui/floating",
|
|
27
|
-
"@hanzogui/focus-scope",
|
|
28
|
-
"@hanzogui/font-size",
|
|
29
|
-
"@hanzogui/form",
|
|
30
|
-
"@hanzogui/get-token",
|
|
31
|
-
"@hanzogui/group",
|
|
32
|
-
"@hanzogui/helpers",
|
|
33
|
-
"@hanzogui/image",
|
|
34
|
-
"@hanzogui/input",
|
|
35
|
-
"@hanzogui/label",
|
|
36
|
-
"@hanzogui/list-item",
|
|
37
|
-
"@hanzogui/menu",
|
|
38
|
-
"@hanzogui/popover",
|
|
39
|
-
"@hanzogui/popper",
|
|
40
|
-
"@hanzogui/portal",
|
|
41
|
-
"@hanzogui/progress",
|
|
42
|
-
"@hanzogui/radio-group",
|
|
43
|
-
"@hanzogui/react-native-media-driver",
|
|
44
|
-
"@hanzogui/remove-scroll",
|
|
45
|
-
"@hanzogui/scroll-view",
|
|
46
|
-
"@hanzogui/select",
|
|
47
|
-
"@hanzogui/separator",
|
|
48
|
-
"@hanzogui/shapes",
|
|
49
|
-
"@hanzogui/sheet",
|
|
50
|
-
"@hanzogui/slider",
|
|
51
|
-
"@hanzogui/spacer",
|
|
52
|
-
"@hanzogui/spinner",
|
|
53
|
-
"@hanzogui/stacks",
|
|
54
|
-
"@hanzogui/switch",
|
|
55
|
-
"@hanzogui/tabs",
|
|
56
|
-
"@hanzogui/text",
|
|
57
|
-
"@hanzogui/theme",
|
|
58
|
-
"@hanzogui/toast",
|
|
59
|
-
"@hanzogui/toggle-group",
|
|
60
|
-
"@hanzogui/tooltip",
|
|
61
|
-
"@hanzogui/use-controllable-state",
|
|
62
|
-
"@hanzogui/use-debounce",
|
|
63
|
-
"@hanzogui/use-force-update",
|
|
64
|
-
"@hanzogui/use-presence",
|
|
65
|
-
"@hanzogui/use-window-dimensions",
|
|
66
|
-
"@hanzogui/visually-hidden",
|
|
67
|
-
"@hanzogui/web",
|
|
68
|
-
"@hanzogui/z-index-stack",
|
|
69
|
-
"@luxfi/ui"
|
|
70
|
-
];
|
|
71
|
-
var GUI_DEFINES = {
|
|
72
|
-
"process.env.EXPO_OS": JSON.stringify("web"),
|
|
73
|
-
"process.env.IS_WEB": JSON.stringify("true")
|
|
74
|
-
};
|
|
75
|
-
var ENGINE_DEDUPE = [
|
|
76
|
-
"react",
|
|
77
|
-
"react-dom",
|
|
78
|
-
"@tanstack/react-query",
|
|
79
|
-
...GUI_PACKAGES
|
|
80
|
-
];
|
|
2
|
+
import { GUI_DEFINES, ENGINE_DEDUPE } from './engine.js';
|
|
81
3
|
|
|
82
|
-
// src/vite.ts
|
|
83
4
|
var DEDUPE = ENGINE_DEDUPE;
|
|
84
5
|
var INCLUDE = [
|
|
85
6
|
"react-native-web",
|
package/package.json
CHANGED
package/dist/index.css
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/* src/site/components/icons/social-svg.css */
|
|
2
|
-
.social-icon svg {
|
|
3
|
-
transform: scale(1.25);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/* src/site/style/drawer-handle-overrides.css */
|
|
7
|
-
[vaul-drawer] {
|
|
8
|
-
touch-action: none;
|
|
9
|
-
transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
10
|
-
}
|
|
11
|
-
[vaul-drawer][vaul-drawer-direction=bottom] {
|
|
12
|
-
transform: translate3d(0, 100%, 0);
|
|
13
|
-
}
|
|
14
|
-
[vaul-drawer][vaul-drawer-direction=top] {
|
|
15
|
-
transform: translate3d(0, -100%, 0);
|
|
16
|
-
}
|
|
17
|
-
[vaul-drawer][vaul-drawer-direction=left] {
|
|
18
|
-
transform: translate3d(-100%, 0, 0);
|
|
19
|
-
}
|
|
20
|
-
[vaul-drawer][vaul-drawer-direction=right] {
|
|
21
|
-
transform: translate3d(100%, 0, 0);
|
|
22
|
-
}
|
|
23
|
-
.vaul-dragging .vaul-scrollable [vault-drawer-direction=top] {
|
|
24
|
-
overflow-y: hidden !important;
|
|
25
|
-
}
|
|
26
|
-
.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom] {
|
|
27
|
-
overflow-y: hidden !important;
|
|
28
|
-
}
|
|
29
|
-
.vaul-dragging .vaul-scrollable [vault-drawer-direction=left] {
|
|
30
|
-
overflow-x: hidden !important;
|
|
31
|
-
}
|
|
32
|
-
.vaul-dragging .vaul-scrollable [vault-drawer-direction=right] {
|
|
33
|
-
overflow-x: hidden !important;
|
|
34
|
-
}
|
|
35
|
-
[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top] {
|
|
36
|
-
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
37
|
-
}
|
|
38
|
-
[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom] {
|
|
39
|
-
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
40
|
-
}
|
|
41
|
-
[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left] {
|
|
42
|
-
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
43
|
-
}
|
|
44
|
-
[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right] {
|
|
45
|
-
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
46
|
-
}
|
|
47
|
-
[vaul-overlay] {
|
|
48
|
-
opacity: 0;
|
|
49
|
-
transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
50
|
-
}
|
|
51
|
-
[vaul-overlay][vaul-drawer-visible=true] {
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
[vaul-drawer]::after {
|
|
55
|
-
content: "";
|
|
56
|
-
position: absolute;
|
|
57
|
-
background: inherit;
|
|
58
|
-
background-color: inherit;
|
|
59
|
-
}
|
|
60
|
-
[vaul-drawer][vaul-drawer-direction=top]::after {
|
|
61
|
-
top: initial;
|
|
62
|
-
bottom: 100%;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
height: 200%;
|
|
66
|
-
}
|
|
67
|
-
[vaul-drawer][vaul-drawer-direction=bottom]::after {
|
|
68
|
-
top: 100%;
|
|
69
|
-
bottom: initial;
|
|
70
|
-
left: 0;
|
|
71
|
-
right: 0;
|
|
72
|
-
height: 200%;
|
|
73
|
-
}
|
|
74
|
-
[vaul-drawer][vaul-drawer-direction=left]::after {
|
|
75
|
-
left: initial;
|
|
76
|
-
right: 100%;
|
|
77
|
-
top: 0;
|
|
78
|
-
bottom: 0;
|
|
79
|
-
width: 200%;
|
|
80
|
-
}
|
|
81
|
-
[vaul-drawer][vaul-drawer-direction=right]::after {
|
|
82
|
-
left: 100%;
|
|
83
|
-
right: initial;
|
|
84
|
-
top: 0;
|
|
85
|
-
bottom: 0;
|
|
86
|
-
width: 200%;
|
|
87
|
-
}
|
|
88
|
-
[vaul-handle] {
|
|
89
|
-
touch-action: pan-y;
|
|
90
|
-
cursor: grab;
|
|
91
|
-
}
|
|
92
|
-
[vaul-handle]:active {
|
|
93
|
-
opacity: 1;
|
|
94
|
-
}
|
|
95
|
-
[vaul-handle]:active {
|
|
96
|
-
cursor: grabbing;
|
|
97
|
-
}
|
|
98
|
-
[vaul-handle]:focus-visible {
|
|
99
|
-
outline: none;
|
|
100
|
-
}
|
|
101
|
-
[vaul-handle-hitarea] {
|
|
102
|
-
position: absolute;
|
|
103
|
-
left: 50%;
|
|
104
|
-
top: 50%;
|
|
105
|
-
transform: translate(-50%, -50%);
|
|
106
|
-
width: max(100%, 2.75rem);
|
|
107
|
-
height: max(100%, 2.75rem);
|
|
108
|
-
touch-action: inherit;
|
|
109
|
-
}
|
|
110
|
-
[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]) {
|
|
111
|
-
opacity: 0;
|
|
112
|
-
}
|
|
113
|
-
[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]) {
|
|
114
|
-
opacity: 1;
|
|
115
|
-
}
|
|
116
|
-
@keyframes fake-animation {
|
|
117
|
-
from {
|
|
118
|
-
}
|
|
119
|
-
to {
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
@media (pointer: fine) {
|
|
123
|
-
[vaul-handle-hitarea] {
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
@media (hover: hover) and (pointer: fine) {
|
|
129
|
-
[vaul-drawer] {
|
|
130
|
-
user-select: none;
|
|
131
|
-
}
|
|
132
|
-
}
|