wimui 0.60.1 → 0.62.0
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/_internal/useInlineFloating.cjs +1 -1
- package/dist/components/_internal/useInlineFloating.js +2 -2
- package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.js +72 -69
- package/dist/components/form/SplitButton/SplitButton.cjs +1 -1
- package/dist/components/form/SplitButton/SplitButton.js +35 -31
- package/dist/components/navigation/Anchor/Anchor.cjs +1 -1
- package/dist/components/navigation/Anchor/Anchor.d.ts +5 -1
- package/dist/components/navigation/Anchor/Anchor.js +32 -29
- package/dist/components/navigation/CommandPalette/CommandPalette.cjs +1 -1
- package/dist/components/navigation/CommandPalette/CommandPalette.d.ts +5 -1
- package/dist/components/navigation/CommandPalette/CommandPalette.js +15 -13
- package/dist/components/navigation/Menubar/Menubar.cjs +1 -1
- package/dist/components/navigation/Menubar/Menubar.js +102 -92
- package/dist/components/navigation/Menubar/menubar.module.cjs +1 -1
- package/dist/components/navigation/Menubar/menubar.module.js +1 -1
- package/dist/components/overlay/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/overlay/BottomSheet/BottomSheet.d.ts +7 -1
- package/dist/components/overlay/BottomSheet/BottomSheet.js +7 -6
- package/dist/components/overlay/HoverCard/HoverCard.cjs +1 -1
- package/dist/components/overlay/HoverCard/HoverCard.js +49 -43
- package/dist/components/overlay/HoverCard/hover-card.module.cjs +1 -1
- package/dist/components/overlay/HoverCard/hover-card.module.js +1 -1
- package/dist/llms-full.txt +3 -1
- package/dist/llms.txt +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,70 +1,76 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import e from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { useMergedRef as e } from "../../../hooks/useMergedRef.js";
|
|
3
|
+
import { useInlineFloating as t } from "../../_internal/useInlineFloating.js";
|
|
4
|
+
import n from "./hover-card.module.js";
|
|
5
|
+
import r, { useState as i } from "react";
|
|
6
|
+
import a from "classnames";
|
|
7
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
8
|
+
import { safePolygon as s, useFloating as c, useFocus as l, useHover as u, useInteractions as d, useMergeRefs as f } from "@floating-ui/react";
|
|
7
9
|
//#region src/components/overlay/HoverCard/HoverCard.tsx
|
|
8
|
-
var
|
|
10
|
+
var p = r.createContext({
|
|
9
11
|
isOpen: !1,
|
|
10
12
|
refs: null,
|
|
11
13
|
getReferenceProps: () => ({}),
|
|
12
14
|
getFloatingProps: () => ({})
|
|
13
|
-
}),
|
|
14
|
-
let [g, _] =
|
|
15
|
+
}), m = ({ children: e, className: t, openDelay: r = 700, closeDelay: f = 300, open: m, onOpenChange: h }) => {
|
|
16
|
+
let [g, _] = i(!1), v = m !== void 0, y = v ? m : g, { refs: b, context: x } = c({
|
|
15
17
|
open: y,
|
|
16
18
|
onOpenChange: (e) => {
|
|
17
19
|
v || _(e), h?.(e);
|
|
18
20
|
}
|
|
19
|
-
}), S =
|
|
21
|
+
}), S = u(x, {
|
|
20
22
|
delay: {
|
|
21
|
-
open:
|
|
22
|
-
close:
|
|
23
|
+
open: r,
|
|
24
|
+
close: f
|
|
23
25
|
},
|
|
24
|
-
handleClose:
|
|
25
|
-
}), C =
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
handleClose: s({ requireIntent: !1 })
|
|
27
|
+
}), C = l(x), { getReferenceProps: w, getFloatingProps: T } = d([S, C]);
|
|
28
|
+
return /* @__PURE__ */ o(p.Provider, {
|
|
27
29
|
value: {
|
|
28
30
|
isOpen: y,
|
|
29
31
|
refs: b,
|
|
30
32
|
getReferenceProps: w,
|
|
31
33
|
getFloatingProps: T
|
|
32
34
|
},
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
className:
|
|
35
|
-
children:
|
|
35
|
+
children: /* @__PURE__ */ o("div", {
|
|
36
|
+
className: a("wim-hover-card", n.root, t),
|
|
37
|
+
children: e
|
|
36
38
|
})
|
|
37
39
|
});
|
|
38
|
-
},
|
|
39
|
-
let { refs: s, getReferenceProps: c } =
|
|
40
|
-
if (
|
|
41
|
-
let
|
|
42
|
-
ref:
|
|
43
|
-
...
|
|
44
|
-
className:
|
|
40
|
+
}, h = ({ children: e, className: t, asChild: i }) => {
|
|
41
|
+
let { refs: s, getReferenceProps: c } = r.useContext(p), l = e?.ref, u = f([s?.setReference ?? null, l ?? null]);
|
|
42
|
+
if (i && r.isValidElement(e)) {
|
|
43
|
+
let n = e.props, i = c({
|
|
44
|
+
ref: u,
|
|
45
|
+
...n,
|
|
46
|
+
className: a(t, n.className)
|
|
45
47
|
});
|
|
46
|
-
return
|
|
48
|
+
return r.cloneElement(e, i);
|
|
47
49
|
}
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
ref:
|
|
50
|
-
className:
|
|
50
|
+
return /* @__PURE__ */ o("div", {
|
|
51
|
+
ref: u,
|
|
52
|
+
className: a(n.trigger, t),
|
|
51
53
|
tabIndex: 0,
|
|
52
54
|
...c(),
|
|
53
|
-
children:
|
|
55
|
+
children: e
|
|
54
56
|
});
|
|
55
|
-
},
|
|
56
|
-
let { isOpen:
|
|
57
|
-
if (!
|
|
58
|
-
let
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
ref:
|
|
61
|
-
className:
|
|
62
|
-
"data-side":
|
|
63
|
-
"data-align":
|
|
64
|
-
...
|
|
65
|
-
|
|
57
|
+
}, g = ({ children: i, className: s, align: c = "center", side: l = "bottom", sideOffset: u = 8, ...d }) => {
|
|
58
|
+
let { isOpen: f, refs: m, getFloatingProps: h } = r.useContext(p), { setReference: g, setFloating: _, floatingProps: v } = t({ open: f }), y = e(m?.setFloating, g, _);
|
|
59
|
+
if (!f) return null;
|
|
60
|
+
let b = n[l], x = c === "left" ? n.alignLeft : c === "right" ? n.alignRight : "";
|
|
61
|
+
return /* @__PURE__ */ o("div", {
|
|
62
|
+
ref: y,
|
|
63
|
+
className: a(n.content, b, x, s),
|
|
64
|
+
"data-side": l,
|
|
65
|
+
"data-align": c,
|
|
66
|
+
...h(d),
|
|
67
|
+
style: {
|
|
68
|
+
...d.style,
|
|
69
|
+
...v.style
|
|
70
|
+
},
|
|
71
|
+
children: i
|
|
66
72
|
});
|
|
67
|
-
},
|
|
68
|
-
|
|
73
|
+
}, _ = (e) => /* @__PURE__ */ o(m, { ...e });
|
|
74
|
+
_.displayName = "HoverCard", _.Trigger = h, _.Content = g;
|
|
69
75
|
//#endregion
|
|
70
|
-
export {
|
|
76
|
+
export { _ as HoverCard, _ as default, g as HoverCardContent, h as HoverCardTrigger };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_qv2ae_23`,t=`_trigger_qv2ae_27`,n=`_content_qv2ae_50`,r=`_fadeIn_qv2ae_1`,i=`_top_qv2ae_70`,a=`_bottom_qv2ae_76`,o=`_left_qv2ae_82`,s=`_right_qv2ae_88`,c=`_alignLeft_qv2ae_94`,l=`_alignRight_qv2ae_104`,u={root:e,trigger:t,content:n,fadeIn:r,top:i,bottom:a,left:o,right:s,alignLeft:c,alignRight:l};exports.alignLeft=c,exports.alignRight=l,exports.bottom=a,exports.content=n,exports.default=u,exports.fadeIn=r,exports.left=o,exports.right=s,exports.root=e,exports.top=i,exports.trigger=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/overlay/HoverCard/hover-card.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_qv2ae_23", t = "_trigger_qv2ae_27", n = "_content_qv2ae_50", r = "_fadeIn_qv2ae_1", i = "_top_qv2ae_70", a = "_bottom_qv2ae_76", o = "_left_qv2ae_82", s = "_right_qv2ae_88", c = "_alignLeft_qv2ae_94", l = "_alignRight_qv2ae_104", u = {
|
|
4
4
|
root: e,
|
|
5
5
|
trigger: t,
|
|
6
6
|
content: n,
|
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.62.0 — a React 19 component library: 228 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|
|
@@ -2143,6 +2143,8 @@ follows the theme and never needs a hand-mixed colour.
|
|
|
2143
2143
|
- `direction: "vertical" | "horizontal"` = "vertical" — Orientation of the anchor links
|
|
2144
2144
|
- `className: string` — Additional class names
|
|
2145
2145
|
- `style: React.CSSProperties` — Style attribute
|
|
2146
|
+
- `aria-label: string` — Accessible name. When set, the anchor is exposed as a navigation landmark with this name.
|
|
2147
|
+
- `aria-labelledby: string` — ID of the element that labels the anchor. Takes precedence over `aria-label`.
|
|
2146
2148
|
- **BackTop** — Back to top button (aka Back to Top)
|
|
2147
2149
|
- `target: () => HTMLElement | Window | Document | null` = () => window — Target container that will be scrolled
|
|
2148
2150
|
- `visibilityHeight: number` = 400 — Scroll height after which the button becomes visible
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.62.0 — a React 19 component library: 228 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|