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.
Files changed (29) hide show
  1. package/dist/components/_internal/useInlineFloating.cjs +1 -1
  2. package/dist/components/_internal/useInlineFloating.js +2 -2
  3. package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
  4. package/dist/components/ai/ModelSelector/ModelSelector.js +72 -69
  5. package/dist/components/form/SplitButton/SplitButton.cjs +1 -1
  6. package/dist/components/form/SplitButton/SplitButton.js +35 -31
  7. package/dist/components/navigation/Anchor/Anchor.cjs +1 -1
  8. package/dist/components/navigation/Anchor/Anchor.d.ts +5 -1
  9. package/dist/components/navigation/Anchor/Anchor.js +32 -29
  10. package/dist/components/navigation/CommandPalette/CommandPalette.cjs +1 -1
  11. package/dist/components/navigation/CommandPalette/CommandPalette.d.ts +5 -1
  12. package/dist/components/navigation/CommandPalette/CommandPalette.js +15 -13
  13. package/dist/components/navigation/Menubar/Menubar.cjs +1 -1
  14. package/dist/components/navigation/Menubar/Menubar.js +102 -92
  15. package/dist/components/navigation/Menubar/menubar.module.cjs +1 -1
  16. package/dist/components/navigation/Menubar/menubar.module.js +1 -1
  17. package/dist/components/overlay/BottomSheet/BottomSheet.cjs +1 -1
  18. package/dist/components/overlay/BottomSheet/BottomSheet.d.ts +7 -1
  19. package/dist/components/overlay/BottomSheet/BottomSheet.js +7 -6
  20. package/dist/components/overlay/HoverCard/HoverCard.cjs +1 -1
  21. package/dist/components/overlay/HoverCard/HoverCard.js +49 -43
  22. package/dist/components/overlay/HoverCard/hover-card.module.cjs +1 -1
  23. package/dist/components/overlay/HoverCard/hover-card.module.js +1 -1
  24. package/dist/llms-full.txt +3 -1
  25. package/dist/llms.txt +1 -1
  26. package/dist/styles.css +1 -1
  27. package/dist/wimui.umd.css +1 -1
  28. package/dist/wimui.umd.js +2 -2
  29. package/package.json +1 -1
@@ -1,70 +1,76 @@
1
1
  "use client";
2
- import e from "./hover-card.module.js";
3
- import t, { useState as n } from "react";
4
- import r from "classnames";
5
- import { jsx as i } from "react/jsx-runtime";
6
- import { safePolygon as a, useFloating as o, useFocus as s, useHover as c, useInteractions as l, useMergeRefs as u } from "@floating-ui/react";
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 d = t.createContext({
10
+ var p = r.createContext({
9
11
  isOpen: !1,
10
12
  refs: null,
11
13
  getReferenceProps: () => ({}),
12
14
  getFloatingProps: () => ({})
13
- }), f = ({ children: t, className: u, openDelay: f = 700, closeDelay: p = 300, open: m, onOpenChange: h }) => {
14
- let [g, _] = n(!1), v = m !== void 0, y = v ? m : g, { refs: b, context: x } = o({
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 = c(x, {
21
+ }), S = u(x, {
20
22
  delay: {
21
- open: f,
22
- close: p
23
+ open: r,
24
+ close: f
23
25
  },
24
- handleClose: a({ requireIntent: !1 })
25
- }), C = s(x), { getReferenceProps: w, getFloatingProps: T } = l([S, C]);
26
- return /* @__PURE__ */ i(d.Provider, {
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__ */ i("div", {
34
- className: r("wim-hover-card", e.root, u),
35
- children: t
35
+ children: /* @__PURE__ */ o("div", {
36
+ className: a("wim-hover-card", n.root, t),
37
+ children: e
36
38
  })
37
39
  });
38
- }, p = ({ children: n, className: a, asChild: o }) => {
39
- let { refs: s, getReferenceProps: c } = t.useContext(d), l = n?.ref, f = u([s?.setReference ?? null, l ?? null]);
40
- if (o && t.isValidElement(n)) {
41
- let e = n.props, i = c({
42
- ref: f,
43
- ...e,
44
- className: r(a, e.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 t.cloneElement(n, i);
48
+ return r.cloneElement(e, i);
47
49
  }
48
- return /* @__PURE__ */ i("div", {
49
- ref: f,
50
- className: r(e.trigger, a),
50
+ return /* @__PURE__ */ o("div", {
51
+ ref: u,
52
+ className: a(n.trigger, t),
51
53
  tabIndex: 0,
52
54
  ...c(),
53
- children: n
55
+ children: e
54
56
  });
55
- }, m = ({ children: n, className: a, align: o = "center", side: s = "bottom", sideOffset: c = 8, ...l }) => {
56
- let { isOpen: u, refs: f, getFloatingProps: p } = t.useContext(d);
57
- if (!u) return null;
58
- let m = e[s], h = o === "left" ? e.alignLeft : o === "right" ? e.alignRight : "";
59
- return /* @__PURE__ */ i("div", {
60
- ref: f?.setFloating,
61
- className: r(e.content, m, h, a),
62
- "data-side": s,
63
- "data-align": o,
64
- ...p(l),
65
- children: n
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
- }, h = (e) => /* @__PURE__ */ i(f, { ...e });
68
- h.displayName = "HoverCard", h.Trigger = p, h.Content = m;
73
+ }, _ = (e) => /* @__PURE__ */ o(m, { ...e });
74
+ _.displayName = "HoverCard", _.Trigger = h, _.Content = g;
69
75
  //#endregion
70
- export { h as HoverCard, h as default, m as HoverCardContent, p as HoverCardTrigger };
76
+ export { _ as HoverCard, _ as default, g as HoverCardContent, h as HoverCardTrigger };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- var e=`_root_1q2cw_23`,t=`_trigger_1q2cw_27`,n=`_content_1q2cw_50`,r=`_fadeIn_1q2cw_1`,i=`_top_1q2cw_67`,a=`_bottom_1q2cw_73`,o=`_left_1q2cw_79`,s=`_right_1q2cw_85`,c=`_alignLeft_1q2cw_91`,l=`_alignRight_1q2cw_101`,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;
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 = "_root_1q2cw_23", t = "_trigger_1q2cw_27", n = "_content_1q2cw_50", r = "_fadeIn_1q2cw_1", i = "_top_1q2cw_67", a = "_bottom_1q2cw_73", o = "_left_1q2cw_79", s = "_right_1q2cw_85", c = "_alignLeft_1q2cw_91", l = "_alignRight_1q2cw_101", u = {
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,
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.60.1 — 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).
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.60.1 — 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).
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