wimui 0.51.1 → 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 +122 -120
- 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 +64 -62
- package/dist/components/data-display/Accordion/accordion.module.cjs +1 -1
- package/dist/components/data-display/Accordion/accordion.module.js +1 -1
- 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 +24 -23
- 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 +67 -66
- 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 +52 -50
- 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 +127 -101
- 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/OtpInput/otp-input.module.cjs +1 -1
- package/dist/components/form/OtpInput/otp-input.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 +121 -119
- package/dist/components/form/RangeSlider/range-slider.module.cjs +1 -1
- package/dist/components/form/RangeSlider/range-slider.module.js +1 -1
- 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 +69 -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.d.ts +1 -1
- package/dist/components/form/Transfer/Transfer.js +155 -154
- package/dist/components/form/Transfer/transfer.module.cjs +1 -1
- package/dist/components/form/Transfer/transfer.module.js +6 -6
- 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 +91 -90
- package/dist/components/media/Audio/components/AudioCustomControls.cjs +1 -1
- package/dist/components/media/Audio/components/AudioCustomControls.js +116 -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 +75 -73
- 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 +73 -71
- package/dist/components/media/Video/components/VideoAdvancedMenu.cjs +1 -1
- package/dist/components/media/Video/components/VideoAdvancedMenu.js +140 -138
- 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/navigation/Tabs/tabs.module.cjs +1 -1
- package/dist/components/navigation/Tabs/tabs.module.js +1 -1
- 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 +10 -6
- package/dist/llms.txt +1 -1
- package/dist/locales/en/common.json +53 -4
- package/dist/locales/en/components.json +3 -1
- package/dist/locales/ja/common.json +53 -4
- package/dist/locales/ja/components.json +3 -1
- package/dist/locales/pt/common.json +53 -4
- package/dist/locales/pt/components.json +3 -1
- package/dist/styles.css +2 -2
- 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 -1103
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
|
|
@@ -1821,7 +1822,7 @@ so the unit does not have to be repeated in the label.
|
|
|
1821
1822
|
- `dataSource: TransferItem[]` = [] — All items shown across the two lists
|
|
1822
1823
|
- `targetKeys: string[]` — Keys of the items in the target (right) list
|
|
1823
1824
|
- `onChange: ( targetKeys: string[], direction: "toLeft" | "toRight", moveKeys: string[], ) => void` — Callback when items are moved between the lists
|
|
1824
|
-
- `titles: [React.ReactNode, React.ReactNode]`
|
|
1825
|
+
- `titles: [React.ReactNode, React.ReactNode]` — Titles of the source and target lists
|
|
1825
1826
|
- `className: string` — Additional class names
|
|
1826
1827
|
- `style: React.CSSProperties` — Inline styles
|
|
1827
1828
|
- `disabled: boolean` = false — Whether the component is disabled
|
|
@@ -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)
|
|
@@ -2522,7 +2526,7 @@ When omitted, both Backspace and Delete work.
|
|
|
2522
2526
|
- `fitViewOptions: FitViewOptions` — Options for the initial fit-view behavior
|
|
2523
2527
|
- `defaultEdgeOptions: DefaultEdgeOptions` — Default options applied to new edges
|
|
2524
2528
|
- `className: string` — Additional CSS class
|
|
2525
|
-
- `aria-label: string`
|
|
2529
|
+
- `aria-label: string` — Accessible label for the graph region
|
|
2526
2530
|
- **PivotTable** — Draws aggregated data as a table with multi-level row and column headings, subtotals and grand totals. (aka Pivot, Cross Tab, Crosstab)
|
|
2527
2531
|
- `rows: PivotTableAxisNode[]` (required) — The row axis as a tree. Groups are drawn as an outline: one indented row per node.
|
|
2528
2532
|
- `columns: PivotTableAxisNode[]` (required) — The column axis as a tree. Groups become headings that span their columns.
|
|
@@ -2632,7 +2636,7 @@ renders inline, next to whatever follows it.
|
|
|
2632
2636
|
- `locale: string` = "en" — Locale string, e.g. "ja", "pt"
|
|
2633
2637
|
- `unselectAuto: boolean` = true — Whether clicking elsewhere on the page will clear the current selection
|
|
2634
2638
|
- `className: string` — Additional CSS class
|
|
2635
|
-
- `aria-label: string`
|
|
2639
|
+
- `aria-label: string` — Accessible label for the schedule region
|
|
2636
2640
|
- **SortableList** — Item rearrangement and reordering
|
|
2637
2641
|
- `asChild: boolean` = false — If true, the component will be rendered as its child.
|
|
2638
2642
|
- `onSortEnd: (oldIndex: number, newIndex: number) => void` — Callback called when reordering is completed.
|
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
|
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"next": "Next",
|
|
78
78
|
"save": "Save",
|
|
79
79
|
"search": "Search",
|
|
80
|
-
"submit": "Submit"
|
|
80
|
+
"submit": "Submit",
|
|
81
|
+
"previous": "Previous"
|
|
81
82
|
},
|
|
82
83
|
"chat": {
|
|
83
84
|
"attachment_prefix": "Attached: {{fileName}}",
|
|
@@ -85,7 +86,9 @@
|
|
|
85
86
|
"placeholder_interactive": "What time is the meeting tomorrow?",
|
|
86
87
|
"ai_assistant": "AI Assistant",
|
|
87
88
|
"you": "You",
|
|
88
|
-
"support": "Support"
|
|
89
|
+
"support": "Support",
|
|
90
|
+
"send": "Send",
|
|
91
|
+
"user_avatar": "User avatar"
|
|
89
92
|
},
|
|
90
93
|
"analytics": "Analytics",
|
|
91
94
|
"aspect": {
|
|
@@ -477,7 +480,8 @@
|
|
|
477
480
|
"search": "Quarterly report"
|
|
478
481
|
},
|
|
479
482
|
"playback": {
|
|
480
|
-
"rate": "Playback rate"
|
|
483
|
+
"rate": "Playback rate",
|
|
484
|
+
"speed": "Playback Speed"
|
|
481
485
|
},
|
|
482
486
|
"processing": "Processing...",
|
|
483
487
|
"profile": "Profile",
|
|
@@ -632,7 +636,8 @@
|
|
|
632
636
|
"nodeGraph": {
|
|
633
637
|
"add_node": "Add",
|
|
634
638
|
"new_node": "Node",
|
|
635
|
-
"node_name": "Node name"
|
|
639
|
+
"node_name": "Node name",
|
|
640
|
+
"label": "Node graph"
|
|
636
641
|
},
|
|
637
642
|
"reaction": {
|
|
638
643
|
"aria_label": "Reactions",
|
|
@@ -667,5 +672,49 @@
|
|
|
667
672
|
"delete": "Delete",
|
|
668
673
|
"edited": "Edited",
|
|
669
674
|
"action_context": "on {{name}}'s comment"
|
|
675
|
+
},
|
|
676
|
+
"threadList": {
|
|
677
|
+
"new_thread": "New conversation",
|
|
678
|
+
"empty": "No conversations yet",
|
|
679
|
+
"delete": "Delete conversation",
|
|
680
|
+
"label": "Conversation history"
|
|
681
|
+
},
|
|
682
|
+
"modelSelector": {
|
|
683
|
+
"placeholder": "Select a model",
|
|
684
|
+
"context": "Context",
|
|
685
|
+
"input": "In",
|
|
686
|
+
"output": "Out"
|
|
687
|
+
},
|
|
688
|
+
"scheduleView": {
|
|
689
|
+
"label": "Schedule"
|
|
690
|
+
},
|
|
691
|
+
"rangeSlider": {
|
|
692
|
+
"start": "Start",
|
|
693
|
+
"end": "End",
|
|
694
|
+
"start_of": "Start {{label}}",
|
|
695
|
+
"end_of": "End {{label}}"
|
|
696
|
+
},
|
|
697
|
+
"theme": {
|
|
698
|
+
"system": "System",
|
|
699
|
+
"toggle": "Toggle theme"
|
|
700
|
+
},
|
|
701
|
+
"audio": {
|
|
702
|
+
"unknown_title": "Unknown Title",
|
|
703
|
+
"unknown_artist": "Unknown Artist",
|
|
704
|
+
"repeat_off": "Repeat Off",
|
|
705
|
+
"repeat_single": "Repeat One",
|
|
706
|
+
"repeat_all": "Repeat All",
|
|
707
|
+
"shuffle": "Shuffle",
|
|
708
|
+
"bass_boost": "Bass Boost"
|
|
709
|
+
},
|
|
710
|
+
"imageCompare": {
|
|
711
|
+
"handle": "Drag to compare"
|
|
712
|
+
},
|
|
713
|
+
"video": {
|
|
714
|
+
"label": "Video",
|
|
715
|
+
"fit_contain": "Contain",
|
|
716
|
+
"fit_cover": "Cover",
|
|
717
|
+
"fit_fill": "Fill",
|
|
718
|
+
"fit_scale_down": "Scale Down"
|
|
670
719
|
}
|
|
671
720
|
}
|
|
@@ -697,6 +697,8 @@
|
|
|
697
697
|
"slide": "Slide {{number}}",
|
|
698
698
|
"prev_slide": "Previous slide",
|
|
699
699
|
"next_slide": "Next slide",
|
|
700
|
-
"go_to_slide": "Go to slide {{number}}"
|
|
700
|
+
"go_to_slide": "Go to slide {{number}}",
|
|
701
|
+
"roledescription": "carousel",
|
|
702
|
+
"slide_roledescription": "slide"
|
|
701
703
|
}
|
|
702
704
|
}
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"next": "次へ",
|
|
78
78
|
"save": "保存",
|
|
79
79
|
"search": "検索",
|
|
80
|
-
"submit": "送信"
|
|
80
|
+
"submit": "送信",
|
|
81
|
+
"previous": "前へ"
|
|
81
82
|
},
|
|
82
83
|
"analytics": "分析",
|
|
83
84
|
"aspect": {
|
|
@@ -98,7 +99,9 @@
|
|
|
98
99
|
"placeholder": "こんにちは!",
|
|
99
100
|
"placeholder_interactive": "明日の会議は何時ですか?",
|
|
100
101
|
"support": "サポート",
|
|
101
|
-
"you": "あなた"
|
|
102
|
+
"you": "あなた",
|
|
103
|
+
"send": "送信",
|
|
104
|
+
"user_avatar": "ユーザーのアバター"
|
|
102
105
|
},
|
|
103
106
|
"common": {
|
|
104
107
|
"all": "すべて",
|
|
@@ -451,7 +454,8 @@
|
|
|
451
454
|
"nodeGraph": {
|
|
452
455
|
"add_node": "追加",
|
|
453
456
|
"new_node": "ノード",
|
|
454
|
-
"node_name": "ノード名"
|
|
457
|
+
"node_name": "ノード名",
|
|
458
|
+
"label": "ノードグラフ"
|
|
455
459
|
},
|
|
456
460
|
"language": {
|
|
457
461
|
"en": "英語",
|
|
@@ -498,7 +502,8 @@
|
|
|
498
502
|
"search": "四半期レポート"
|
|
499
503
|
},
|
|
500
504
|
"playback": {
|
|
501
|
-
"rate": "再生速度"
|
|
505
|
+
"rate": "再生速度",
|
|
506
|
+
"speed": "再生速度"
|
|
502
507
|
},
|
|
503
508
|
"processing": "処理中...",
|
|
504
509
|
"profile": "プロフィール",
|
|
@@ -667,5 +672,49 @@
|
|
|
667
672
|
"delete": "削除",
|
|
668
673
|
"edited": "編集済み",
|
|
669
674
|
"action_context": "{{name}} のコメントに対して"
|
|
675
|
+
},
|
|
676
|
+
"threadList": {
|
|
677
|
+
"new_thread": "新しい会話",
|
|
678
|
+
"empty": "会話はまだありません",
|
|
679
|
+
"delete": "会話を削除",
|
|
680
|
+
"label": "会話の履歴"
|
|
681
|
+
},
|
|
682
|
+
"modelSelector": {
|
|
683
|
+
"placeholder": "モデルを選択",
|
|
684
|
+
"context": "コンテキスト",
|
|
685
|
+
"input": "入力",
|
|
686
|
+
"output": "出力"
|
|
687
|
+
},
|
|
688
|
+
"scheduleView": {
|
|
689
|
+
"label": "スケジュール"
|
|
690
|
+
},
|
|
691
|
+
"rangeSlider": {
|
|
692
|
+
"start": "開始",
|
|
693
|
+
"end": "終了",
|
|
694
|
+
"start_of": "{{label}}(開始)",
|
|
695
|
+
"end_of": "{{label}}(終了)"
|
|
696
|
+
},
|
|
697
|
+
"theme": {
|
|
698
|
+
"system": "システム",
|
|
699
|
+
"toggle": "テーマを切り替え"
|
|
700
|
+
},
|
|
701
|
+
"audio": {
|
|
702
|
+
"unknown_title": "不明なタイトル",
|
|
703
|
+
"unknown_artist": "不明なアーティスト",
|
|
704
|
+
"repeat_off": "リピートなし",
|
|
705
|
+
"repeat_single": "1 曲リピート",
|
|
706
|
+
"repeat_all": "全曲リピート",
|
|
707
|
+
"shuffle": "シャッフル",
|
|
708
|
+
"bass_boost": "低音ブースト"
|
|
709
|
+
},
|
|
710
|
+
"imageCompare": {
|
|
711
|
+
"handle": "ドラッグして比較"
|
|
712
|
+
},
|
|
713
|
+
"video": {
|
|
714
|
+
"label": "動画",
|
|
715
|
+
"fit_contain": "全体を表示",
|
|
716
|
+
"fit_cover": "画面を埋める",
|
|
717
|
+
"fit_fill": "引き伸ばす",
|
|
718
|
+
"fit_scale_down": "縮小のみ"
|
|
670
719
|
}
|
|
671
720
|
}
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"next": "Próximo",
|
|
78
78
|
"save": "Salvar",
|
|
79
79
|
"search": "Pesquisar",
|
|
80
|
-
"submit": "Enviar"
|
|
80
|
+
"submit": "Enviar",
|
|
81
|
+
"previous": "Anterior"
|
|
81
82
|
},
|
|
82
83
|
"analytics": "Análise",
|
|
83
84
|
"aspect": {
|
|
@@ -98,7 +99,9 @@
|
|
|
98
99
|
"placeholder": "Olá!",
|
|
99
100
|
"placeholder_interactive": "A que horas é a reunião amanhã?",
|
|
100
101
|
"support": "Suporte",
|
|
101
|
-
"you": "Você"
|
|
102
|
+
"you": "Você",
|
|
103
|
+
"send": "Enviar",
|
|
104
|
+
"user_avatar": "Avatar do usuário"
|
|
102
105
|
},
|
|
103
106
|
"common": {
|
|
104
107
|
"all": "Todos",
|
|
@@ -451,7 +454,8 @@
|
|
|
451
454
|
"nodeGraph": {
|
|
452
455
|
"add_node": "Adicionar",
|
|
453
456
|
"new_node": "Nó",
|
|
454
|
-
"node_name": "Nome do nó"
|
|
457
|
+
"node_name": "Nome do nó",
|
|
458
|
+
"label": "Grafo de nós"
|
|
455
459
|
},
|
|
456
460
|
"language": {
|
|
457
461
|
"en": "Inglês",
|
|
@@ -498,7 +502,8 @@
|
|
|
498
502
|
"search": "Relatório trimestral"
|
|
499
503
|
},
|
|
500
504
|
"playback": {
|
|
501
|
-
"rate": "Velocidade de Reprodução"
|
|
505
|
+
"rate": "Velocidade de Reprodução",
|
|
506
|
+
"speed": "Velocidade de reprodução"
|
|
502
507
|
},
|
|
503
508
|
"processing": "Processando...",
|
|
504
509
|
"profile": "Perfil",
|
|
@@ -667,5 +672,49 @@
|
|
|
667
672
|
"delete": "Excluir",
|
|
668
673
|
"edited": "Editado",
|
|
669
674
|
"action_context": "no comentário de {{name}}"
|
|
675
|
+
},
|
|
676
|
+
"threadList": {
|
|
677
|
+
"new_thread": "Nova conversa",
|
|
678
|
+
"empty": "Ainda não há conversas",
|
|
679
|
+
"delete": "Excluir conversa",
|
|
680
|
+
"label": "Histórico de conversas"
|
|
681
|
+
},
|
|
682
|
+
"modelSelector": {
|
|
683
|
+
"placeholder": "Selecione um modelo",
|
|
684
|
+
"context": "Contexto",
|
|
685
|
+
"input": "Entrada",
|
|
686
|
+
"output": "Saída"
|
|
687
|
+
},
|
|
688
|
+
"scheduleView": {
|
|
689
|
+
"label": "Agenda"
|
|
690
|
+
},
|
|
691
|
+
"rangeSlider": {
|
|
692
|
+
"start": "Início",
|
|
693
|
+
"end": "Fim",
|
|
694
|
+
"start_of": "Início: {{label}}",
|
|
695
|
+
"end_of": "Fim: {{label}}"
|
|
696
|
+
},
|
|
697
|
+
"theme": {
|
|
698
|
+
"system": "Sistema",
|
|
699
|
+
"toggle": "Alternar tema"
|
|
700
|
+
},
|
|
701
|
+
"audio": {
|
|
702
|
+
"unknown_title": "Título desconhecido",
|
|
703
|
+
"unknown_artist": "Artista desconhecido",
|
|
704
|
+
"repeat_off": "Repetição desativada",
|
|
705
|
+
"repeat_single": "Repetir uma",
|
|
706
|
+
"repeat_all": "Repetir todas",
|
|
707
|
+
"shuffle": "Aleatório",
|
|
708
|
+
"bass_boost": "Reforço de graves"
|
|
709
|
+
},
|
|
710
|
+
"imageCompare": {
|
|
711
|
+
"handle": "Arraste para comparar"
|
|
712
|
+
},
|
|
713
|
+
"video": {
|
|
714
|
+
"label": "Vídeo",
|
|
715
|
+
"fit_contain": "Conter",
|
|
716
|
+
"fit_cover": "Cobrir",
|
|
717
|
+
"fit_fill": "Preencher",
|
|
718
|
+
"fit_scale_down": "Reduzir"
|
|
670
719
|
}
|
|
671
720
|
}
|
|
@@ -697,6 +697,8 @@
|
|
|
697
697
|
"slide": "Slide {{number}}",
|
|
698
698
|
"prev_slide": "Slide anterior",
|
|
699
699
|
"next_slide": "Próximo slide",
|
|
700
|
-
"go_to_slide": "Ir para o slide {{number}}"
|
|
700
|
+
"go_to_slide": "Ir para o slide {{number}}",
|
|
701
|
+
"roledescription": "carrossel",
|
|
702
|
+
"slide_roledescription": "slide"
|
|
701
703
|
}
|
|
702
704
|
}
|