@bolio-ui/core 3.0.3 → 3.0.5
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/README.md +5 -1
- package/dist/BolioUIProvider/index.js +3 -3
- package/dist/Command/index.js +5 -5
- package/dist/ContextMenu/index.js +5 -5
- package/dist/Drawer/index.js +4 -4
- package/dist/Mention/index.js +2 -2
- package/dist/Menu/index.js +4 -4
- package/dist/Modal/index.js +4 -4
- package/dist/Popover/index.js +4 -4
- package/dist/Select/index.js +4 -4
- package/dist/Snippet/index.js +4 -4
- package/dist/Tooltip/index.js +3 -3
- package/dist/Tour/index.js +3 -3
- package/dist/{chunk-Y432C24Z.js → chunk-5JLE7KAC.js} +2 -2
- package/dist/{chunk-M64V32WO.js → chunk-7NJHU7YY.js} +2 -2
- package/dist/{chunk-SJVWKNGY.js → chunk-A62SPU5Q.js} +2 -2
- package/dist/{chunk-FSO65ZAH.js → chunk-BXEBNLJ4.js} +3 -2
- package/dist/{chunk-C3ZZPIUO.js → chunk-C3PVEUSC.js} +2 -2
- package/dist/{chunk-IL7L3BEL.js → chunk-CINBZSC5.js} +2 -2
- package/dist/{chunk-FLUNRVVG.js → chunk-F6VL2XEN.js} +2 -2
- package/dist/{chunk-DYYSUJ35.js → chunk-IO52KTWP.js} +2 -2
- package/dist/{chunk-XUNC7RB7.js → chunk-M4EFMVFG.js} +2 -2
- package/dist/{chunk-6ASDJ72V.js → chunk-NSXQR57Q.js} +2 -2
- package/dist/{chunk-CGEUUDJ4.js → chunk-PG6T7LDC.js} +2 -2
- package/dist/{chunk-WCTANCLG.js → chunk-ROBEGHM5.js} +2 -2
- package/dist/{chunk-BXDUHMWS.js → chunk-S5PYSYVR.js} +2 -3
- package/dist/{chunk-XKJDF225.js → chunk-TWT6F7A7.js} +21 -1
- package/dist/{chunk-CU6SNPIM.js → chunk-VTLQ3YLX.js} +15 -21
- package/dist/{chunk-25NFUHLR.js → chunk-ZGGVVMSG.js} +25 -18
- package/dist/css/Mention.css +12 -0
- package/dist/css/NumberInput.css +10 -1
- package/dist/index.js +17 -17
- package/dist/styles.css +22 -1
- package/dist/use-clipboard/index.js +3 -3
- package/dist/utils/use-dialog-focus.d.ts +3 -0
- package/esm/BolioUIProvider/index.js +2 -2
- package/esm/Command/index.js +4 -4
- package/esm/ContextMenu/index.js +4 -4
- package/esm/Drawer/index.js +3 -3
- package/esm/Mention/index.js +1 -1
- package/esm/Menu/index.js +3 -3
- package/esm/Modal/index.js +3 -3
- package/esm/Popover/index.js +3 -3
- package/esm/Select/index.js +3 -3
- package/esm/Snippet/index.js +3 -3
- package/esm/Tooltip/index.js +2 -2
- package/esm/Tour/index.js +2 -2
- package/esm/{chunk-Y432C24Z.js → chunk-5JLE7KAC.js} +1 -1
- package/esm/{chunk-M64V32WO.js → chunk-7NJHU7YY.js} +1 -1
- package/esm/{chunk-SJVWKNGY.js → chunk-A62SPU5Q.js} +1 -1
- package/esm/{chunk-FSO65ZAH.js → chunk-BXEBNLJ4.js} +3 -2
- package/esm/{chunk-C3ZZPIUO.js → chunk-C3PVEUSC.js} +1 -1
- package/esm/{chunk-IL7L3BEL.js → chunk-CINBZSC5.js} +1 -1
- package/esm/{chunk-FLUNRVVG.js → chunk-F6VL2XEN.js} +1 -1
- package/esm/{chunk-DYYSUJ35.js → chunk-IO52KTWP.js} +1 -1
- package/esm/{chunk-XUNC7RB7.js → chunk-M4EFMVFG.js} +1 -1
- package/esm/{chunk-6ASDJ72V.js → chunk-NSXQR57Q.js} +1 -1
- package/esm/{chunk-CGEUUDJ4.js → chunk-PG6T7LDC.js} +1 -1
- package/esm/{chunk-WCTANCLG.js → chunk-ROBEGHM5.js} +1 -1
- package/esm/{chunk-BXDUHMWS.js → chunk-S5PYSYVR.js} +3 -4
- package/esm/{chunk-XKJDF225.js → chunk-TWT6F7A7.js} +20 -0
- package/esm/{chunk-CU6SNPIM.js → chunk-VTLQ3YLX.js} +11 -17
- package/esm/{chunk-25NFUHLR.js → chunk-ZGGVVMSG.js} +24 -17
- package/esm/css/Mention.css +12 -0
- package/esm/css/NumberInput.css +10 -1
- package/esm/index.js +16 -16
- package/esm/styles.css +22 -1
- package/esm/use-clipboard/index.js +2 -2
- package/esm/utils/use-dialog-focus.d.ts +3 -0
- package/package.json +2 -3
package/esm/Tooltip/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Tooltip_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CINBZSC5.js";
|
|
5
5
|
import "../chunk-V57PNXMD.js";
|
|
6
6
|
import "../chunk-JJFOGZ6V.js";
|
|
7
7
|
import "../chunk-LDTDMDE6.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-S5PYSYVR.js";
|
|
9
9
|
import "../chunk-ZRORQ2WH.js";
|
|
10
10
|
import "../chunk-GJZT47MP.js";
|
|
11
11
|
import "../chunk-DGXZP4VJ.js";
|
package/esm/Tour/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Tour_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-A62SPU5Q.js";
|
|
5
5
|
import "../chunk-AXYDJGTN.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-S5PYSYVR.js";
|
|
7
7
|
import "../chunk-ZRORQ2WH.js";
|
|
8
8
|
import "../chunk-TPZUTHTQ.js";
|
|
9
9
|
import "../chunk-BSDZWWUS.js";
|
|
@@ -27,7 +27,7 @@ import React, {
|
|
|
27
27
|
} from "react";
|
|
28
28
|
|
|
29
29
|
// css-module-source:/Users/brunnoandrade/Desktop/BolioUI/bolio-ui/core/Mention/Mention.module.css.bolio-css-module-source
|
|
30
|
-
var Mention_module_css_default = { "mention": "Mention-module_mention__R3-5t", "field": "Mention-module_field__U5FXf", "list": "Mention-module_list__QQ5RM", "empty": "Mention-module_empty__YkZOO", "option": "Mention-module_option__8CupI", "active": "Mention-module_active__8GmDl", "disabled": "Mention-module_disabled__4PL94" };
|
|
30
|
+
var Mention_module_css_default = { "mention": "Mention-module_mention__R3-5t", "field": "Mention-module_field__U5FXf", "list": "Mention-module_list__QQ5RM", "empty": "Mention-module_empty__YkZOO", "option": "Mention-module_option__8CupI", "active": "Mention-module_active__8GmDl", "disabled": "Mention-module_disabled__4PL94", "srOnly": "Mention-module_srOnly__AuP1L" };
|
|
31
31
|
|
|
32
32
|
// core/Mention/Mention.tsx
|
|
33
33
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -231,7 +231,8 @@ var MentionComponent = React.forwardRef(
|
|
|
231
231
|
},
|
|
232
232
|
option.value
|
|
233
233
|
)) }),
|
|
234
|
-
open && visible.length === 0 && /* @__PURE__ */ jsx("div", { className: Mention_module_css_default.empty, children: emptyText })
|
|
234
|
+
open && visible.length === 0 && /* @__PURE__ */ jsx("div", { className: Mention_module_css_default.empty, children: emptyText }),
|
|
235
|
+
/* @__PURE__ */ jsx("div", { role: "status", className: Mention_module_css_default.srOnly, children: expanded ? `${visible.length} result${visible.length === 1 ? "" : "s"} available` : "" })
|
|
235
236
|
]
|
|
236
237
|
}
|
|
237
238
|
);
|
|
@@ -2,12 +2,11 @@ import {
|
|
|
2
2
|
use_latest_default
|
|
3
3
|
} from "./chunk-ZRORQ2WH.js";
|
|
4
4
|
import {
|
|
5
|
-
getId,
|
|
6
5
|
isBrowser
|
|
7
6
|
} from "./chunk-UX2B3G6U.js";
|
|
8
7
|
|
|
9
8
|
// core/utils/use-portal.ts
|
|
10
|
-
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
9
|
+
import { useEffect as useEffect2, useId, useState as useState2 } from "react";
|
|
11
10
|
|
|
12
11
|
// core/utils/use-ssr.ts
|
|
13
12
|
import { useEffect, useState } from "react";
|
|
@@ -30,7 +29,7 @@ var createElement = (id) => {
|
|
|
30
29
|
return el;
|
|
31
30
|
};
|
|
32
31
|
var usePortal = (selectId, getContainer) => {
|
|
33
|
-
const
|
|
32
|
+
const generatedId = useId();
|
|
34
33
|
const id = `bolio-ui-${selectId != null ? selectId : generatedId}`;
|
|
35
34
|
const { isBrowser: isBrowser2 } = use_ssr_default();
|
|
36
35
|
const [elSnapshot, setElSnapshot] = useState2(
|
|
@@ -41,7 +40,7 @@ var usePortal = (selectId, getContainer) => {
|
|
|
41
40
|
const getContainer2 = getContainerRef.current;
|
|
42
41
|
const customContainer = getContainer2 ? getContainer2() : null;
|
|
43
42
|
const parentElement = customContainer || document.body;
|
|
44
|
-
const hasElement = parentElement.querySelector(
|
|
43
|
+
const hasElement = parentElement.querySelector(`[id="${id}"]`);
|
|
45
44
|
const el = hasElement || createElement(id);
|
|
46
45
|
if (!hasElement) {
|
|
47
46
|
parentElement.appendChild(el);
|
|
@@ -11,6 +11,9 @@ import {
|
|
|
11
11
|
use_scale_default,
|
|
12
12
|
with_scale_default
|
|
13
13
|
} from "./chunk-MAICNLTY.js";
|
|
14
|
+
import {
|
|
15
|
+
isChildElement
|
|
16
|
+
} from "./chunk-UX2B3G6U.js";
|
|
14
17
|
import {
|
|
15
18
|
use_theme_default
|
|
16
19
|
} from "./chunk-V5I4ORQQ.js";
|
|
@@ -206,9 +209,26 @@ BackdropComponent.displayName = "BolioUIBackdrop";
|
|
|
206
209
|
var Backdrop = React2.memo(BackdropComponent);
|
|
207
210
|
var backdrop_default = Backdrop;
|
|
208
211
|
|
|
212
|
+
// core/utils/use-dialog-focus.ts
|
|
213
|
+
import { useEffect } from "react";
|
|
214
|
+
var useDialogFocus = (visible, dialog) => {
|
|
215
|
+
useEffect(() => {
|
|
216
|
+
var _a;
|
|
217
|
+
if (!visible) return;
|
|
218
|
+
const active = document.activeElement;
|
|
219
|
+
if (isChildElement(dialog.current, active)) return;
|
|
220
|
+
(_a = dialog.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
221
|
+
return () => {
|
|
222
|
+
if (active == null ? void 0 : active.isConnected) active.focus({ preventScroll: true });
|
|
223
|
+
};
|
|
224
|
+
}, [visible, dialog]);
|
|
225
|
+
};
|
|
226
|
+
var use_dialog_focus_default = useDialogFocus;
|
|
227
|
+
|
|
209
228
|
export {
|
|
210
229
|
use_body_scroll_default2 as use_body_scroll_default,
|
|
211
230
|
backdrop_default,
|
|
231
|
+
use_dialog_focus_default,
|
|
212
232
|
ModalContext,
|
|
213
233
|
useModalContext,
|
|
214
234
|
ModalTitle_default,
|
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
ModalTitle_default,
|
|
6
6
|
backdrop_default,
|
|
7
7
|
useModalContext,
|
|
8
|
-
use_body_scroll_default
|
|
9
|
-
|
|
8
|
+
use_body_scroll_default,
|
|
9
|
+
use_dialog_focus_default
|
|
10
|
+
} from "./chunk-TWT6F7A7.js";
|
|
10
11
|
import {
|
|
11
12
|
use_keyboard_default
|
|
12
13
|
} from "./chunk-F3AL4TQZ.js";
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
} from "./chunk-LDTDMDE6.js";
|
|
16
17
|
import {
|
|
17
18
|
use_portal_default
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S5PYSYVR.js";
|
|
19
20
|
import {
|
|
20
21
|
Button_default
|
|
21
22
|
} from "./chunk-TPZUTHTQ.js";
|
|
@@ -28,7 +29,6 @@ import {
|
|
|
28
29
|
} from "./chunk-MAICNLTY.js";
|
|
29
30
|
import {
|
|
30
31
|
hasChild,
|
|
31
|
-
isChildElement,
|
|
32
32
|
pickChild
|
|
33
33
|
} from "./chunk-UX2B3G6U.js";
|
|
34
34
|
import {
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
// core/Modal/Modal.tsx
|
|
42
42
|
import React4, {
|
|
43
43
|
useCallback,
|
|
44
|
-
useEffect as
|
|
44
|
+
useEffect as useEffect2,
|
|
45
45
|
useId,
|
|
46
46
|
useMemo as useMemo2,
|
|
47
47
|
useState as useState2
|
|
@@ -49,7 +49,7 @@ import React4, {
|
|
|
49
49
|
import { createPortal } from "react-dom";
|
|
50
50
|
|
|
51
51
|
// core/Modal/ModalWrapper.tsx
|
|
52
|
-
import React, {
|
|
52
|
+
import React, { useImperativeHandle, useRef } from "react";
|
|
53
53
|
|
|
54
54
|
// css-module-source:/Users/brunnoandrade/Desktop/BolioUI/bolio-ui/core/Modal/ModalWrapper.module.css.bolio-css-module-source
|
|
55
55
|
var ModalWrapper_module_css_default = { "wrapper": "ModalWrapper-module_wrapper__DGcJw", "hideTab": "ModalWrapper-module_hideTab__PCR9O" };
|
|
@@ -63,19 +63,13 @@ var ModalWrapper = React.forwardRef(({ className = "", children, visible = false
|
|
|
63
63
|
useImperativeHandle(ref, () => modalContent.current);
|
|
64
64
|
const tabStart = useRef(null);
|
|
65
65
|
const tabEnd = useRef(null);
|
|
66
|
-
|
|
67
|
-
if (!visible) return;
|
|
68
|
-
const activeElement = document.activeElement;
|
|
69
|
-
const isChild = isChildElement(modalContent.current, activeElement);
|
|
70
|
-
if (isChild) return;
|
|
71
|
-
if (tabStart.current) tabStart.current.focus();
|
|
72
|
-
}, [visible]);
|
|
66
|
+
use_dialog_focus_default(visible, modalContent);
|
|
73
67
|
const onKeyDown = (event) => {
|
|
74
68
|
const isTabDown = event.keyCode === 9;
|
|
75
69
|
if (!visible || !isTabDown) return;
|
|
76
70
|
const activeElement = document.activeElement;
|
|
77
71
|
if (event.shiftKey) {
|
|
78
|
-
if (activeElement === tabStart.current) {
|
|
72
|
+
if (activeElement === tabStart.current || activeElement === modalContent.current) {
|
|
79
73
|
if (tabEnd.current) tabEnd.current.focus();
|
|
80
74
|
}
|
|
81
75
|
} else {
|
|
@@ -211,7 +205,7 @@ var ModalAction = with_scale_default(ModalActionComponent);
|
|
|
211
205
|
var ModalAction_default = ModalAction;
|
|
212
206
|
|
|
213
207
|
// core/Modal/ModalActions.tsx
|
|
214
|
-
import React3, { useEffect
|
|
208
|
+
import React3, { useEffect, useRef as useRef3, useState } from "react";
|
|
215
209
|
|
|
216
210
|
// css-module-source:/Users/brunnoandrade/Desktop/BolioUI/bolio-ui/core/Modal/ModalActions.module.css.bolio-css-module-source
|
|
217
211
|
var ModalActions_module_css_default = { "footer": "ModalActions-module_footer__gDr-2", "spacer": "ModalActions-module_spacer__zek5w" };
|
|
@@ -226,7 +220,7 @@ var ModalActionsComponent = ({
|
|
|
226
220
|
const ref = useRef3(null);
|
|
227
221
|
const border = theme.type === "dark" ? theme.palette.accents_4 : theme.palette.border;
|
|
228
222
|
const [height, setHeight] = useState("auto");
|
|
229
|
-
|
|
223
|
+
useEffect(() => {
|
|
230
224
|
if (!ref.current) return;
|
|
231
225
|
setHeight(`${ref.current.clientHeight}px`);
|
|
232
226
|
}, [ref]);
|
|
@@ -289,7 +283,7 @@ var ModalComponent = React4.forwardRef(
|
|
|
289
283
|
setVisible(false);
|
|
290
284
|
setBodyHidden(false);
|
|
291
285
|
}, [onClose, setBodyHidden]);
|
|
292
|
-
|
|
286
|
+
useEffect2(() => {
|
|
293
287
|
if (typeof customVisible === "undefined") return;
|
|
294
288
|
setVisible(customVisible);
|
|
295
289
|
setBodyHidden(customVisible);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalContent_default,
|
|
3
|
+
ModalContext,
|
|
3
4
|
ModalSubtitle_default,
|
|
4
5
|
ModalTitle_default,
|
|
5
6
|
backdrop_default,
|
|
6
|
-
use_body_scroll_default
|
|
7
|
-
|
|
7
|
+
use_body_scroll_default,
|
|
8
|
+
use_dialog_focus_default
|
|
9
|
+
} from "./chunk-TWT6F7A7.js";
|
|
8
10
|
import {
|
|
9
11
|
use_keyboard_default
|
|
10
12
|
} from "./chunk-F3AL4TQZ.js";
|
|
@@ -13,7 +15,7 @@ import {
|
|
|
13
15
|
} from "./chunk-LDTDMDE6.js";
|
|
14
16
|
import {
|
|
15
17
|
use_portal_default
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S5PYSYVR.js";
|
|
17
19
|
import {
|
|
18
20
|
getSurface
|
|
19
21
|
} from "./chunk-EUYSKHRS.js";
|
|
@@ -22,7 +24,7 @@ import {
|
|
|
22
24
|
with_scale_default
|
|
23
25
|
} from "./chunk-MAICNLTY.js";
|
|
24
26
|
import {
|
|
25
|
-
|
|
27
|
+
hasChild
|
|
26
28
|
} from "./chunk-UX2B3G6U.js";
|
|
27
29
|
import {
|
|
28
30
|
use_theme_default
|
|
@@ -32,11 +34,11 @@ import {
|
|
|
32
34
|
} from "./chunk-5KUROAEP.js";
|
|
33
35
|
|
|
34
36
|
// core/Drawer/Drawer.tsx
|
|
35
|
-
import React2, { useEffect as
|
|
37
|
+
import React2, { useEffect, useId, useMemo as useMemo2, useState } from "react";
|
|
36
38
|
import { createPortal } from "react-dom";
|
|
37
39
|
|
|
38
40
|
// core/Drawer/DrawerWrapper.tsx
|
|
39
|
-
import React, {
|
|
41
|
+
import React, { useImperativeHandle, useMemo, useRef } from "react";
|
|
40
42
|
|
|
41
43
|
// core/Drawer/helper.ts
|
|
42
44
|
var getDrawerTransform = (placement) => {
|
|
@@ -108,19 +110,13 @@ var DrawerWrapper = React.forwardRef(({ className = "", children, visible = fals
|
|
|
108
110
|
"--drawer-wrapper-transform-hidden": transform.hidden,
|
|
109
111
|
"--drawer-wrapper-transform-visible": transform.visible
|
|
110
112
|
};
|
|
111
|
-
|
|
112
|
-
if (!visible) return;
|
|
113
|
-
const activeElement = document.activeElement;
|
|
114
|
-
const isChild = isChildElement(modalContent.current, activeElement);
|
|
115
|
-
if (isChild) return;
|
|
116
|
-
if (tabStart.current) tabStart.current.focus();
|
|
117
|
-
}, [visible]);
|
|
113
|
+
use_dialog_focus_default(visible, modalContent);
|
|
118
114
|
const onKeyDown = (event) => {
|
|
119
115
|
const isTabDown = event.keyCode === 9;
|
|
120
116
|
if (!visible || !isTabDown) return;
|
|
121
117
|
const activeElement = document.activeElement;
|
|
122
118
|
if (event.shiftKey) {
|
|
123
|
-
if (activeElement === tabStart.current) {
|
|
119
|
+
if (activeElement === tabStart.current || activeElement === modalContent.current) {
|
|
124
120
|
if (tabEnd.current) tabEnd.current.focus();
|
|
125
121
|
}
|
|
126
122
|
} else {
|
|
@@ -179,9 +175,14 @@ var DrawerComponent = React2.forwardRef(
|
|
|
179
175
|
placement,
|
|
180
176
|
onClose,
|
|
181
177
|
onContentClick,
|
|
178
|
+
"aria-labelledby": ariaLabelledby,
|
|
179
|
+
"aria-describedby": ariaDescribedby,
|
|
182
180
|
...props
|
|
183
181
|
}, ref) => {
|
|
184
182
|
const portal = use_portal_default("drawer");
|
|
183
|
+
const baseId = useId();
|
|
184
|
+
const titleId = `${baseId}-title`;
|
|
185
|
+
const descriptionId = `${baseId}-description`;
|
|
185
186
|
const [visible, setVisible] = useState(false);
|
|
186
187
|
const [, setBodyHidden] = use_body_scroll_default(null, { delayReset: 300 });
|
|
187
188
|
const closeDrawer = () => {
|
|
@@ -189,7 +190,7 @@ var DrawerComponent = React2.forwardRef(
|
|
|
189
190
|
setVisible(false);
|
|
190
191
|
setBodyHidden(false);
|
|
191
192
|
};
|
|
192
|
-
|
|
193
|
+
useEffect(() => {
|
|
193
194
|
if (typeof customVisible === "undefined") return;
|
|
194
195
|
setVisible(customVisible);
|
|
195
196
|
setBodyHidden(customVisible);
|
|
@@ -207,9 +208,13 @@ var DrawerComponent = React2.forwardRef(
|
|
|
207
208
|
if (disableBackdropClick) return;
|
|
208
209
|
closeDrawer();
|
|
209
210
|
};
|
|
211
|
+
const modalConfig = useMemo2(
|
|
212
|
+
() => ({ titleId, descriptionId }),
|
|
213
|
+
[titleId, descriptionId]
|
|
214
|
+
);
|
|
210
215
|
if (!portal) return null;
|
|
211
216
|
return createPortal(
|
|
212
|
-
/* @__PURE__ */ jsx2(
|
|
217
|
+
/* @__PURE__ */ jsx2(ModalContext.Provider, { value: modalConfig, children: /* @__PURE__ */ jsx2(
|
|
213
218
|
backdrop_default,
|
|
214
219
|
{
|
|
215
220
|
onClick: closeFromBackdrop,
|
|
@@ -224,12 +229,14 @@ var DrawerComponent = React2.forwardRef(
|
|
|
224
229
|
visible,
|
|
225
230
|
className: wrapClassName,
|
|
226
231
|
placement,
|
|
232
|
+
"aria-labelledby": ariaLabelledby || (hasChild(children, ModalTitle_default) ? titleId : void 0),
|
|
233
|
+
"aria-describedby": ariaDescribedby || (hasChild(children, ModalSubtitle_default) ? descriptionId : void 0),
|
|
227
234
|
...props,
|
|
228
235
|
children
|
|
229
236
|
}
|
|
230
237
|
)
|
|
231
238
|
}
|
|
232
|
-
),
|
|
239
|
+
) }),
|
|
233
240
|
portal
|
|
234
241
|
);
|
|
235
242
|
}
|
package/esm/css/Mention.css
CHANGED
|
@@ -90,4 +90,16 @@
|
|
|
90
90
|
color: var(--mention-empty-color);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
.Mention-module_srOnly__AuP1L {
|
|
94
|
+
position: absolute;
|
|
95
|
+
width: 1px;
|
|
96
|
+
height: 1px;
|
|
97
|
+
margin: -1px;
|
|
98
|
+
padding: 0;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
clip: rect(0, 0, 0, 0);
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
border: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
93
105
|
}
|
package/esm/css/NumberInput.css
CHANGED
|
@@ -61,8 +61,9 @@
|
|
|
61
61
|
padding: 0;
|
|
62
62
|
font: inherit;
|
|
63
63
|
color: var(--control-color);
|
|
64
|
-
background-color:
|
|
64
|
+
background-color: transparent;
|
|
65
65
|
border: 0;
|
|
66
|
+
border-radius: calc(var(--input-radius) - 1px);
|
|
66
67
|
appearance: none;
|
|
67
68
|
-webkit-appearance: none;
|
|
68
69
|
cursor: pointer;
|
|
@@ -72,6 +73,14 @@
|
|
|
72
73
|
color: var(--control-hover-color);
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
.NumberInput-module_control__mog-- svg {
|
|
77
|
+
transition: transform 0.1s ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.NumberInput-module_control__mog--:active:not(:disabled) svg {
|
|
81
|
+
transform: scale(0.8);
|
|
82
|
+
}
|
|
83
|
+
|
|
75
84
|
.NumberInput-module_control__mog--:disabled {
|
|
76
85
|
color: var(--control-disabled-color);
|
|
77
86
|
cursor: not-allowed;
|
package/esm/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-Q3I54DUS.js";
|
|
32
32
|
import {
|
|
33
33
|
Tour_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-A62SPU5Q.js";
|
|
35
35
|
import {
|
|
36
36
|
Spinner_default
|
|
37
37
|
} from "./chunk-TZ7TOEP3.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-2A4BSQ66.js";
|
|
69
69
|
import {
|
|
70
70
|
Select_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-M4EFMVFG.js";
|
|
72
72
|
import {
|
|
73
73
|
Skeleton_default
|
|
74
74
|
} from "./chunk-67WAS5AY.js";
|
|
@@ -77,13 +77,13 @@ import {
|
|
|
77
77
|
} from "./chunk-IUZV5Y27.js";
|
|
78
78
|
import {
|
|
79
79
|
Snippet_default
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-PG6T7LDC.js";
|
|
81
81
|
import {
|
|
82
82
|
use_toasts_default
|
|
83
83
|
} from "./chunk-NCUSKYUE.js";
|
|
84
84
|
import {
|
|
85
85
|
use_clipboard_default
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-C3PVEUSC.js";
|
|
87
87
|
import {
|
|
88
88
|
Spacer_default
|
|
89
89
|
} from "./chunk-QCE3XFHZ.js";
|
|
@@ -101,10 +101,10 @@ import {
|
|
|
101
101
|
} from "./chunk-X4TPC7HS.js";
|
|
102
102
|
import {
|
|
103
103
|
Popover_default
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-5JLE7KAC.js";
|
|
105
105
|
import {
|
|
106
106
|
Tooltip_default
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-CINBZSC5.js";
|
|
108
108
|
import {
|
|
109
109
|
Progress_default
|
|
110
110
|
} from "./chunk-NLJHFKAN.js";
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
} from "./chunk-TJUNBMNF.js";
|
|
120
120
|
import {
|
|
121
121
|
Mention_default
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-BXEBNLJ4.js";
|
|
123
123
|
import {
|
|
124
124
|
Note_default
|
|
125
125
|
} from "./chunk-CGS2MT3G.js";
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
} from "./chunk-7N7PEBRB.js";
|
|
165
165
|
import {
|
|
166
166
|
Drawer_default
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-ZGGVVMSG.js";
|
|
168
168
|
import {
|
|
169
169
|
Col_default
|
|
170
170
|
} from "./chunk-RZSTPJ76.js";
|
|
@@ -183,17 +183,17 @@ import {
|
|
|
183
183
|
} from "./chunk-KRSISARC.js";
|
|
184
184
|
import {
|
|
185
185
|
Command_default
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-7NJHU7YY.js";
|
|
187
187
|
import {
|
|
188
188
|
Modal_default
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-VTLQ3YLX.js";
|
|
190
190
|
import {
|
|
191
191
|
Input_default
|
|
192
192
|
} from "./chunk-NEG5UNM6.js";
|
|
193
193
|
import {
|
|
194
194
|
Textarea_default
|
|
195
195
|
} from "./chunk-ISLUC2SD.js";
|
|
196
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-TWT6F7A7.js";
|
|
197
197
|
import {
|
|
198
198
|
KeyCode,
|
|
199
199
|
KeyMod,
|
|
@@ -209,11 +209,11 @@ import {
|
|
|
209
209
|
} from "./chunk-GJ77XHZ3.js";
|
|
210
210
|
import {
|
|
211
211
|
ContextMenu_default
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-IO52KTWP.js";
|
|
213
213
|
import {
|
|
214
214
|
Menu_default
|
|
215
|
-
} from "./chunk-
|
|
216
|
-
import "./chunk-
|
|
215
|
+
} from "./chunk-F6VL2XEN.js";
|
|
216
|
+
import "./chunk-ROBEGHM5.js";
|
|
217
217
|
import {
|
|
218
218
|
useRect
|
|
219
219
|
} from "./chunk-DSX6YDJM.js";
|
|
@@ -260,7 +260,7 @@ import {
|
|
|
260
260
|
} from "./chunk-RD4CEB5S.js";
|
|
261
261
|
import {
|
|
262
262
|
BolioUIProvider_default
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-NSXQR57Q.js";
|
|
264
264
|
import "./chunk-5HRVN7L7.js";
|
|
265
265
|
import "./chunk-A3BIV2QM.js";
|
|
266
266
|
import "./chunk-33BUV2RX.js";
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
use_current_state_default
|
|
269
269
|
} from "./chunk-GGD4BGH2.js";
|
|
270
270
|
import "./chunk-LDTDMDE6.js";
|
|
271
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-S5PYSYVR.js";
|
|
272
272
|
import "./chunk-ZRORQ2WH.js";
|
|
273
273
|
import {
|
|
274
274
|
Breadcrumbs_default
|
package/esm/styles.css
CHANGED
|
@@ -3175,6 +3175,18 @@ body:has(.ImageZoom-module_dialog__TjA9E[open]) {
|
|
|
3175
3175
|
color: var(--mention-empty-color);
|
|
3176
3176
|
}
|
|
3177
3177
|
|
|
3178
|
+
.Mention-module_srOnly__AuP1L {
|
|
3179
|
+
position: absolute;
|
|
3180
|
+
width: 1px;
|
|
3181
|
+
height: 1px;
|
|
3182
|
+
margin: -1px;
|
|
3183
|
+
padding: 0;
|
|
3184
|
+
overflow: hidden;
|
|
3185
|
+
clip: rect(0, 0, 0, 0);
|
|
3186
|
+
white-space: nowrap;
|
|
3187
|
+
border: 0;
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3178
3190
|
}
|
|
3179
3191
|
|
|
3180
3192
|
@layer Menu {
|
|
@@ -3507,8 +3519,9 @@ body:has(.ImageZoom-module_dialog__TjA9E[open]) {
|
|
|
3507
3519
|
padding: 0;
|
|
3508
3520
|
font: inherit;
|
|
3509
3521
|
color: var(--control-color);
|
|
3510
|
-
background-color:
|
|
3522
|
+
background-color: transparent;
|
|
3511
3523
|
border: 0;
|
|
3524
|
+
border-radius: calc(var(--input-radius) - 1px);
|
|
3512
3525
|
appearance: none;
|
|
3513
3526
|
-webkit-appearance: none;
|
|
3514
3527
|
cursor: pointer;
|
|
@@ -3518,6 +3531,14 @@ body:has(.ImageZoom-module_dialog__TjA9E[open]) {
|
|
|
3518
3531
|
color: var(--control-hover-color);
|
|
3519
3532
|
}
|
|
3520
3533
|
|
|
3534
|
+
.NumberInput-module_control__mog-- svg {
|
|
3535
|
+
transition: transform 0.1s ease;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
.NumberInput-module_control__mog--:active:not(:disabled) svg {
|
|
3539
|
+
transform: scale(0.8);
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3521
3542
|
.NumberInput-module_control__mog--:disabled {
|
|
3522
3543
|
color: var(--control-disabled-color);
|
|
3523
3544
|
cursor: not-allowed;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
use_clipboard_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-C3PVEUSC.js";
|
|
5
5
|
import "../chunk-AXYDJGTN.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-S5PYSYVR.js";
|
|
7
7
|
import "../chunk-ZRORQ2WH.js";
|
|
8
8
|
import "../chunk-UX2B3G6U.js";
|
|
9
9
|
export {
|