wimui 0.51.2 → 0.52.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/FeedbackCloseButton.cjs +1 -1
- package/dist/components/_internal/FeedbackCloseButton.js +14 -13
- package/dist/components/_internal/FieldLabelContent.cjs +1 -1
- package/dist/components/_internal/FieldLabelContent.js +18 -17
- package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.cjs +1 -1
- package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.js +46 -45
- package/dist/components/ai/AgentStatus/AgentStatus.cjs +1 -1
- package/dist/components/ai/AgentStatus/AgentStatus.js +24 -23
- package/dist/components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs +1 -1
- package/dist/components/ai/ArtifactsOverlay/ArtifactsOverlay.js +47 -45
- package/dist/components/ai/ChatUI/ChatUI.cjs +1 -1
- package/dist/components/ai/ChatUI/ChatUI.js +82 -81
- package/dist/components/ai/CodeBlock/CodeBlock.cjs +3 -3
- package/dist/components/ai/CodeBlock/CodeBlock.js +53 -52
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.cjs +2 -2
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.js +105 -104
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.cjs +1 -1
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.js +60 -59
- package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.js +83 -82
- package/dist/components/ai/ModelSelector/model-selector.module.cjs +1 -1
- package/dist/components/ai/ModelSelector/model-selector.module.js +1 -1
- package/dist/components/ai/PromptInput/PromptInput.cjs +1 -1
- package/dist/components/ai/PromptInput/PromptInput.js +76 -75
- package/dist/components/ai/SourceCitation/SourceCitation.cjs +1 -1
- package/dist/components/ai/SourceCitation/SourceCitation.js +39 -38
- package/dist/components/ai/Terminal/Terminal.cjs +2 -2
- package/dist/components/ai/Terminal/Terminal.js +65 -64
- package/dist/components/ai/ThreadList/ThreadList.cjs +1 -1
- package/dist/components/ai/ThreadList/ThreadList.js +58 -57
- package/dist/components/data-display/Barcode/Barcode.cjs +1 -1
- package/dist/components/data-display/Barcode/Barcode.js +76 -75
- package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
- package/dist/components/data-display/Calendar/Calendar.js +75 -74
- package/dist/components/data-display/CalendarHeatmap/CalendarHeatmap.cjs +1 -1
- package/dist/components/data-display/CalendarHeatmap/CalendarHeatmap.js +54 -52
- package/dist/components/data-display/Carousel/Carousel.cjs +1 -1
- package/dist/components/data-display/Carousel/Carousel.js +62 -61
- package/dist/components/data-display/Chip/Chip.cjs +1 -1
- package/dist/components/data-display/Chip/Chip.js +36 -35
- package/dist/components/data-display/Comment/Comment.cjs +1 -1
- package/dist/components/data-display/Comment/Comment.js +58 -57
- package/dist/components/data-display/Countdown/Countdown.cjs +1 -1
- package/dist/components/data-display/Countdown/Countdown.js +56 -55
- package/dist/components/data-display/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/data-display/DataGrid/DataGrid.js +128 -127
- package/dist/components/data-display/JsonViewer/JsonViewer.cjs +1 -1
- package/dist/components/data-display/JsonViewer/JsonViewer.js +153 -152
- package/dist/components/data-display/Kanban/Kanban.cjs +1 -1
- package/dist/components/data-display/Kanban/Kanban.js +95 -94
- package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
- package/dist/components/data-display/NodeGraph/NodeGraph.js +62 -61
- package/dist/components/data-display/PivotTable/PivotTable.cjs +1 -1
- package/dist/components/data-display/PivotTable/PivotTable.js +153 -152
- package/dist/components/data-display/Presence/Presence.cjs +1 -1
- package/dist/components/data-display/Presence/Presence.js +28 -27
- package/dist/components/data-display/PullToRefresh/PullToRefresh.cjs +1 -1
- package/dist/components/data-display/PullToRefresh/PullToRefresh.js +73 -72
- package/dist/components/data-display/Reaction/Reaction.cjs +1 -1
- package/dist/components/data-display/Reaction/Reaction.js +31 -30
- package/dist/components/data-display/ScheduleView/ScheduleView.cjs +1 -1
- package/dist/components/data-display/ScheduleView/ScheduleView.js +49 -48
- package/dist/components/data-display/SortableList/SortableList.cjs +1 -1
- package/dist/components/data-display/SortableList/SortableList.js +44 -43
- package/dist/components/data-display/Tag/Tag.cjs +1 -1
- package/dist/components/data-display/Tag/Tag.js +29 -28
- package/dist/components/data-display/TreeDiagram/TreeDiagram.cjs +1 -1
- package/dist/components/data-display/TreeDiagram/TreeDiagram.js +85 -84
- package/dist/components/data-display/TreeView/TreeView.cjs +1 -1
- package/dist/components/data-display/TreeView/TreeView.js +123 -122
- package/dist/components/feedback/Autosave/Autosave.cjs +1 -1
- package/dist/components/feedback/Autosave/Autosave.js +32 -31
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.cjs +1 -1
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.js +35 -34
- package/dist/components/feedback/ScrollProgress/ScrollProgress.cjs +1 -1
- package/dist/components/feedback/ScrollProgress/ScrollProgress.js +21 -20
- package/dist/components/feedback/Tour/Tour.cjs +1 -1
- package/dist/components/feedback/Tour/Tour.js +98 -97
- package/dist/components/form/Button/Button.cjs +1 -1
- package/dist/components/form/Button/Button.js +55 -54
- package/dist/components/form/ColorInput/ColorInput.cjs +1 -1
- package/dist/components/form/ColorInput/ColorInput.js +30 -29
- package/dist/components/form/ColorPicker/color-picker.module.cjs +1 -1
- package/dist/components/form/ColorPicker/color-picker.module.js +1 -1
- package/dist/components/form/CopyButton/CopyButton.cjs +1 -1
- package/dist/components/form/CopyButton/CopyButton.js +27 -26
- package/dist/components/form/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/form/DatePicker/DatePicker.js +47 -46
- package/dist/components/form/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/form/DateRangePicker/DateRangePicker.js +36 -35
- package/dist/components/form/Dropzone/Dropzone.cjs +1 -1
- package/dist/components/form/Dropzone/Dropzone.js +56 -55
- package/dist/components/form/FileUpload/FileUpload.cjs +1 -1
- package/dist/components/form/FileUpload/FileUpload.js +47 -46
- package/dist/components/form/FloatButton/FloatButton.cjs +1 -1
- package/dist/components/form/FloatButton/FloatButton.d.ts +4 -1
- package/dist/components/form/FloatButton/FloatButton.js +6 -6
- package/dist/components/form/ImageCropper/ImageCropper.cjs +1 -1
- package/dist/components/form/ImageCropper/ImageCropper.js +101 -99
- package/dist/components/form/InlineEdit/InlineEdit.cjs +1 -1
- package/dist/components/form/InlineEdit/InlineEdit.js +66 -65
- package/dist/components/form/Input/Input.cjs +1 -1
- package/dist/components/form/Input/Input.js +45 -44
- package/dist/components/form/InputBase/InputBase.cjs +1 -1
- package/dist/components/form/InputBase/InputBase.js +51 -50
- package/dist/components/form/InputBase/input-base.module.cjs +1 -1
- package/dist/components/form/InputBase/input-base.module.js +1 -1
- package/dist/components/form/MultiSelect/multiselect.module.cjs +1 -1
- package/dist/components/form/MultiSelect/multiselect.module.js +1 -1
- package/dist/components/form/PasswordStrength/PasswordStrength.cjs +1 -1
- package/dist/components/form/PasswordStrength/PasswordStrength.js +27 -26
- package/dist/components/form/PhoneInput/PhoneInput.cjs +1 -1
- package/dist/components/form/PhoneInput/PhoneInput.js +10 -10
- package/dist/components/form/QueryBuilder/QueryBuilder.cjs +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.js +90 -89
- package/dist/components/form/RangeSlider/RangeSlider.cjs +1 -1
- package/dist/components/form/RangeSlider/RangeSlider.js +30 -29
- package/dist/components/form/RichTextEditor/RichTextEditor.cjs +1 -1
- package/dist/components/form/RichTextEditor/RichTextEditor.js +223 -222
- package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.js +7 -7
- package/dist/components/form/Select/Select.cjs +1 -1
- package/dist/components/form/Select/Select.js +112 -111
- package/dist/components/form/SignaturePad/SignaturePad.cjs +1 -1
- package/dist/components/form/SignaturePad/SignaturePad.js +86 -79
- package/dist/components/form/SmartSearchInput/SmartSearchInput.cjs +1 -1
- package/dist/components/form/SmartSearchInput/SmartSearchInput.js +63 -62
- package/dist/components/form/TagInput/TagInput.cjs +1 -1
- package/dist/components/form/TagInput/TagInput.js +68 -67
- package/dist/components/form/ThemeToggle/ThemeToggle.cjs +1 -1
- package/dist/components/form/ThemeToggle/ThemeToggle.js +68 -67
- package/dist/components/form/ThemeToggle/theme-toggle.module.cjs +1 -1
- package/dist/components/form/ThemeToggle/theme-toggle.module.js +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.cjs +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.js +6 -6
- package/dist/components/form/Transfer/Transfer.cjs +1 -1
- package/dist/components/form/Transfer/Transfer.js +127 -126
- package/dist/components/form/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/form/TreeSelect/TreeSelect.js +6 -6
- package/dist/components/layout/Dashboard/Dashboard.cjs +1 -1
- package/dist/components/layout/Dashboard/Dashboard.js +90 -89
- package/dist/components/layout/Navbar/Navbar.cjs +1 -1
- package/dist/components/layout/Navbar/Navbar.d.ts +1 -1
- package/dist/components/layout/Navbar/Navbar.js +1 -1
- package/dist/components/layout/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/layout/Splitter/Splitter.cjs +1 -1
- package/dist/components/layout/Splitter/Splitter.js +40 -39
- package/dist/components/layout/Toolbar/Toolbar.cjs +1 -1
- package/dist/components/layout/Toolbar/Toolbar.js +66 -39
- package/dist/components/media/Audio/Audio.cjs +1 -1
- package/dist/components/media/Audio/Audio.js +90 -89
- package/dist/components/media/Audio/components/AudioCustomControls.cjs +1 -1
- package/dist/components/media/Audio/components/AudioCustomControls.js +115 -114
- package/dist/components/media/Gallery/Gallery.cjs +1 -1
- package/dist/components/media/Gallery/Gallery.js +132 -131
- package/dist/components/media/ImageCompare/ImageCompare.cjs +1 -1
- package/dist/components/media/ImageCompare/ImageCompare.js +72 -71
- package/dist/components/media/Lightbox/Lightbox.cjs +1 -1
- package/dist/components/media/Lightbox/Lightbox.js +128 -127
- package/dist/components/media/Video/Video.cjs +1 -1
- package/dist/components/media/Video/Video.js +56 -55
- package/dist/components/media/Video/components/VideoAdvancedMenu.cjs +1 -1
- package/dist/components/media/Video/components/VideoAdvancedMenu.js +136 -135
- package/dist/components/media/Video/components/VideoControls.cjs +1 -1
- package/dist/components/media/Video/components/VideoControls.js +103 -102
- package/dist/components/navigation/BackTop/BackTop.cjs +1 -1
- package/dist/components/navigation/BackTop/BackTop.js +37 -36
- package/dist/components/navigation/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/navigation/Breadcrumb/Breadcrumb.js +41 -40
- package/dist/components/navigation/CommandPalette/CommandPalette.cjs +1 -1
- package/dist/components/navigation/CommandPalette/CommandPalette.js +100 -99
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.cjs +1 -1
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.d.ts +6 -0
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.js +32 -22
- package/dist/components/navigation/Pagination/Pagination.cjs +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +39 -38
- package/dist/components/navigation/SpeedDial/SpeedDial.cjs +1 -1
- package/dist/components/navigation/SpeedDial/SpeedDial.js +44 -43
- package/dist/components/overlay/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/overlay/Popover/Popover.cjs +1 -1
- package/dist/components/overlay/Popover/Popover.js +63 -62
- package/dist/components/typography/Spoiler/Spoiler.cjs +1 -1
- package/dist/components/typography/Spoiler/Spoiler.js +38 -37
- package/dist/i18n/generated/common.cjs +2 -0
- package/dist/i18n/generated/common.d.ts +3 -0
- package/dist/i18n/generated/common.js +570 -0
- package/dist/i18n/generated/components.cjs +2 -0
- package/dist/i18n/generated/components.d.ts +3 -0
- package/dist/i18n/generated/components.js +399 -0
- package/dist/i18n/generated/data-display.cjs +2 -0
- package/dist/i18n/generated/data-display.d.ts +3 -0
- package/dist/i18n/generated/data-display.js +12 -0
- package/dist/i18n/generated/form.cjs +2 -0
- package/dist/i18n/generated/form.d.ts +3 -0
- package/dist/i18n/generated/form.js +321 -0
- package/dist/i18n/generated/keys.d.ts +5 -1
- package/dist/i18n/generated/locales.cjs +2 -0
- package/dist/i18n/generated/locales.d.ts +1 -0
- package/dist/i18n/generated/locales.js +9 -0
- package/dist/i18n/instance.cjs +1 -1
- package/dist/i18n/instance.d.ts +18 -3
- package/dist/i18n/instance.js +24 -26
- package/dist/i18n/useWimTranslation.cjs +1 -1
- package/dist/i18n/useWimTranslation.d.ts +7 -8
- package/dist/i18n/useWimTranslation.js +6 -5
- package/dist/llms-full.txt +7 -3
- package/dist/llms.txt +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +10 -10
- package/dist/i18n/generated/resources.cjs +0 -2
- package/dist/i18n/generated/resources.d.ts +0 -4
- package/dist/i18n/generated/resources.js +0 -1283
package/dist/i18n/instance.js
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { wimLocales as e } from "./generated/locales.js";
|
|
3
3
|
//#region src/i18n/instance.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return
|
|
4
|
+
var t = "en", n = e.includes(t) ? t : e[0] ?? t, r = /* @__PURE__ */ new Set();
|
|
5
|
+
function i() {
|
|
6
|
+
return n;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
for (let e of
|
|
8
|
+
function a(t) {
|
|
9
|
+
let i = typeof t == "string" ? t.split("-")[0] : "", a = e.includes(t) ? t : e.includes(i) ? i : t;
|
|
10
|
+
if (a !== n) {
|
|
11
|
+
n = a;
|
|
12
|
+
for (let e of r) e();
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function o(e) {
|
|
16
|
+
return r.add(e), () => r.delete(e);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function s(e, t) {
|
|
19
19
|
return t.split(".").reduce((e, t) => {
|
|
20
20
|
if (e && typeof e == "object") return e[t];
|
|
21
21
|
}, e);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let e = r.slice(0, a), t = r.slice(a + 1), n = u(i[e], t);
|
|
29
|
-
if (n !== void 0) return n;
|
|
23
|
+
function c(e, t, n) {
|
|
24
|
+
let r = n.indexOf(":");
|
|
25
|
+
if (r !== -1) {
|
|
26
|
+
let i = s(t.find((e) => e.name === n.slice(0, r))?.resources[e], n.slice(r + 1));
|
|
27
|
+
if (i !== void 0) return i;
|
|
30
28
|
}
|
|
31
|
-
for (let
|
|
32
|
-
let t =
|
|
29
|
+
for (let r of t) {
|
|
30
|
+
let t = s(r.resources[e], n);
|
|
33
31
|
if (t !== void 0) return t;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
function
|
|
34
|
+
function l(e, t) {
|
|
37
35
|
return t ? e.replace(/\{\{\s*([\w.]+)\s*\}\}/g, (e, n) => {
|
|
38
36
|
let r = t[n];
|
|
39
37
|
return r == null ? e : String(r);
|
|
40
38
|
}) : e;
|
|
41
39
|
}
|
|
42
|
-
function
|
|
43
|
-
let
|
|
44
|
-
return
|
|
40
|
+
function u(e, r, i) {
|
|
41
|
+
let a = c(n, e, r);
|
|
42
|
+
return a === void 0 && n !== t && (a = c(t, e, r)), typeof a == "string" ? l(a, i) : i?.defaultValue ?? r;
|
|
45
43
|
}
|
|
46
44
|
//#endregion
|
|
47
|
-
export {
|
|
45
|
+
export { i as getWimLocale, a as setWimLocale, o as subscribeWimLocale, u as wimTranslate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("./instance.cjs");let t=require("react");function
|
|
2
|
+
const e=require("./instance.cjs");let t=require("react");var n=[];function r(r){let i=(0,t.useSyncExternalStore)(e.subscribeWimLocale,e.getWimLocale,e.getWimLocale),a=r==null?n:Array.isArray(r)?r:[r],o=a.map(e=>e.name).join(`,`);return{t:(0,t.useCallback)((t,n)=>e.wimTranslate(a,t,n),[o]),i18n:{language:i,changeLanguage:e.setWimLocale}}}exports.useWimTranslation=r;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { setWimLocale, WimTranslateOptions } from './instance';
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
export interface WimTFunction {
|
|
5
|
-
(key:
|
|
1
|
+
import { setWimLocale, WimNamespace, WimTranslateOptions } from './instance';
|
|
2
|
+
/** 名前空間が受けるキー(bare と "ns:key" の両方)。 */
|
|
3
|
+
export type WimKeyOf<N> = N extends WimNamespace<infer Name, infer Key> ? Key | `${Name}:${Key}` : never;
|
|
4
|
+
export interface WimTFunction<Key extends string = string> {
|
|
5
|
+
(key: Key, options?: WimTranslateOptions): string;
|
|
6
6
|
}
|
|
7
|
-
export declare function useWimTranslation(ns?:
|
|
8
|
-
t: WimTFunction
|
|
7
|
+
export declare function useWimTranslation<N extends WimNamespace = never>(ns?: N | readonly N[]): {
|
|
8
|
+
t: WimTFunction<WimKeyOf<N>>;
|
|
9
9
|
i18n: {
|
|
10
10
|
language: string;
|
|
11
11
|
changeLanguage: typeof setWimLocale;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export {};
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
import { getWimLocale as e, setWimLocale as t, subscribeWimLocale as n, wimTranslate as r } from "./instance.js";
|
|
3
3
|
import { useCallback as i, useSyncExternalStore as a } from "react";
|
|
4
4
|
//#region src/i18n/useWimTranslation.ts
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var o = [];
|
|
6
|
+
function s(s) {
|
|
7
|
+
let c = a(n, e, e), l = s == null ? o : Array.isArray(s) ? s : [s], u = l.map((e) => e.name).join(",");
|
|
7
8
|
return {
|
|
8
|
-
t: i((e, t) => r(
|
|
9
|
+
t: i((e, t) => r(l, e, t), [u]),
|
|
9
10
|
i18n: {
|
|
10
|
-
language:
|
|
11
|
+
language: c,
|
|
11
12
|
changeLanguage: t
|
|
12
13
|
}
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export {
|
|
17
|
+
export { s as useWimTranslation };
|
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.52.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
|
|
|
@@ -835,7 +835,7 @@ does:
|
|
|
835
835
|
```tsx
|
|
836
836
|
const [open, setOpen] = useState(false);
|
|
837
837
|
|
|
838
|
-
<HamburgerMenu visibleBelow="md" open={open}
|
|
838
|
+
<HamburgerMenu visibleBelow="md" open={open} onOpenChange={setOpen} />
|
|
839
839
|
<Sidebar mobileOpen={open} onOverlayClick={() => setOpen(false)}>…</Sidebar>
|
|
840
840
|
```
|
|
841
841
|
|
|
@@ -1240,7 +1240,8 @@ SCSS には誰も付けない `.default_intent` が「temporary name」のまま
|
|
|
1240
1240
|
- `visibilityHeight: number` = 400 — Visibility threshold for backTop (in pixels)
|
|
1241
1241
|
- `className: string` — Additional class names
|
|
1242
1242
|
- `style: React.CSSProperties` — Style attribute
|
|
1243
|
-
- `aria-label: string` —
|
|
1243
|
+
- `aria-label: string` — Accessible name. Required when there is no string `label`: an icon-only button has no
|
|
1244
|
+
text to take a name from, and the icon name is not used as one.
|
|
1244
1245
|
- **IconButton** — A square button containing only an icon without a text label.
|
|
1245
1246
|
- `iconName: React.ComponentProps<typeof Icon>["name"]` (required) — Icon name to display
|
|
1246
1247
|
- `aria-label: string` (required) — Accessible label for the icon-only button
|
|
@@ -2120,6 +2121,9 @@ follows the theme and never needs a hand-mixed colour.
|
|
|
2120
2121
|
- `asChild: boolean` = false — If true, merge button props onto the child element.
|
|
2121
2122
|
- `open: boolean` = false — Whether the menu is open
|
|
2122
2123
|
- `onClick: React.MouseEventHandler<HTMLButtonElement>` — Callback function when the menu is toggled
|
|
2124
|
+
- `onOpenChange: (open: boolean) => void` — Called with the next open state: the opposite of `open` when the button is pressed, and
|
|
2125
|
+
false when Escape is pressed while the menu is open. Escape also moves focus back to the
|
|
2126
|
+
button. Without this callback the button cannot close on Escape, because `open` is controlled.
|
|
2123
2127
|
- `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the hamburger menu
|
|
2124
2128
|
- `color: string` — Color of the bars
|
|
2125
2129
|
- `visibleBelow: "xs" | "sm" | "md" | "lg" | "xl"` — Show only below the given breakpoint (e.g. "md" matches Sidebar's mobile drawer range)
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.52.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
|
|