wimui 0.51.2 → 0.52.2
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/AIResponseFeedback/airesponse-feedback.module.cjs +1 -1
- package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.js +1 -1
- 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/CodeBlock/code-block.module.cjs +1 -1
- package/dist/components/ai/CodeBlock/code-block.module.js +1 -1
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.cjs +2 -2
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.js +105 -104
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.cjs +1 -1
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.js +2 -2
- 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/Terminal/terminal.module.cjs +1 -1
- package/dist/components/ai/Terminal/terminal.module.js +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.cjs +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.js +4 -4
- package/dist/components/ai/ThreadList/ThreadList.cjs +1 -1
- package/dist/components/ai/ThreadList/ThreadList.js +58 -57
- package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
- package/dist/components/ai/ThreadList/thread-list.module.js +1 -1
- 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/Calendar/calendar.module.cjs +1 -1
- package/dist/components/data-display/Calendar/calendar.module.js +1 -1
- 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/Carousel/carousel.module.cjs +1 -1
- package/dist/components/data-display/Carousel/carousel.module.js +1 -1
- 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/Comment/comment.module.cjs +1 -1
- package/dist/components/data-display/Comment/comment.module.js +1 -1
- 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/JsonViewer/json-viewer.module.cjs +1 -1
- package/dist/components/data-display/JsonViewer/json-viewer.module.js +3 -3
- 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/NodeGraph/node-graph.module.cjs +1 -1
- package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
- 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/PivotTable/pivot-table.module.cjs +1 -1
- package/dist/components/data-display/PivotTable/pivot-table.module.js +1 -1
- 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/Tag/tag.module.cjs +1 -1
- package/dist/components/data-display/Tag/tag.module.js +1 -1
- 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/TreeDiagram/tree-diagram.module.cjs +1 -1
- package/dist/components/data-display/TreeDiagram/tree-diagram.module.js +1 -1
- 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/Banner/banner.module.cjs +1 -1
- package/dist/components/feedback/Banner/banner.module.js +2 -2
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.cjs +1 -1
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.js +35 -34
- package/dist/components/feedback/Notification/notification.module.cjs +1 -1
- package/dist/components/feedback/Notification/notification.module.js +2 -2
- 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/Combobox/combobox.module.cjs +1 -1
- package/dist/components/form/Combobox/combobox.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/DatePicker/date-picker.module.cjs +1 -1
- package/dist/components/form/DatePicker/date-picker.module.js +1 -1
- 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/InlineEdit/inline-edit.module.cjs +1 -1
- package/dist/components/form/InlineEdit/inline-edit.module.js +1 -1
- 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/Mentions/mentions.module.cjs +1 -1
- package/dist/components/form/Mentions/mentions.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/PhoneInput/phone-input.module.cjs +1 -1
- package/dist/components/form/PhoneInput/phone-input.module.js +1 -1
- 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/Rating/rating.module.cjs +1 -1
- package/dist/components/form/Rating/rating.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/RichTextEditor/rich-text-editor.module.cjs +1 -1
- package/dist/components/form/RichTextEditor/rich-text-editor.module.js +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.js +7 -7
- package/dist/components/form/SegmentedControl/segmented-control.module.cjs +1 -1
- package/dist/components/form/SegmentedControl/segmented-control.module.js +1 -1
- package/dist/components/form/Select/Select.cjs +1 -1
- package/dist/components/form/Select/Select.js +112 -111
- package/dist/components/form/Select/select.module.cjs +1 -1
- package/dist/components/form/Select/select.module.js +1 -1
- 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/ToggleGroup/toggle-group.module.cjs +1 -1
- package/dist/components/form/ToggleGroup/toggle-group.module.js +1 -1
- 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/CommandPalette/command-palette.module.cjs +1 -1
- package/dist/components/navigation/CommandPalette/command-palette.module.js +1 -1
- 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/HamburgerMenu/hamburger-menu.module.cjs +1 -1
- package/dist/components/navigation/HamburgerMenu/hamburger-menu.module.js +1 -1
- package/dist/components/navigation/Menubar/menubar.module.cjs +1 -1
- package/dist/components/navigation/Menubar/menubar.module.js +1 -1
- 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 +50 -47
- package/dist/components/navigation/TabBar/tab-bar.module.cjs +1 -1
- package/dist/components/navigation/TabBar/tab-bar.module.js +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.cjs +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.js +1 -1
- 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/components/typography/Spoiler/spoiler.module.cjs +1 -1
- package/dist/components/typography/Spoiler/spoiler.module.js +1 -1
- 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/locales/en/common.json +1 -1
- package/dist/locales/ja/common.json +1 -1
- package/dist/locales/pt/common.json +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.2 — 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.2 — 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
|
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
"speed_dial_best_practice_1": "Place in a consistent location, typically the bottom-right corner.",
|
|
329
329
|
"speed_dial_best_practice_2": "Ensure sufficient contrast between the button and the background.",
|
|
330
330
|
"speed_dial_responsive_desc": "Maintains position relative to viewport or container. Scales well on smaller screens.",
|
|
331
|
-
"speed_dial_keyboard_desc": "
|
|
331
|
+
"speed_dial_keyboard_desc": "Enter or Space on the trigger opens the menu and moves focus to the first action. Running an action from the keyboard closes the menu and returns focus to the trigger. Escape closes the menu.",
|
|
332
332
|
"speed_dial_i18n_desc": "Action labels and tooltips are localized via translation keys.",
|
|
333
333
|
"swipe_action_design_intent": "Offer a mobile-native gesture-based way to perform quick actions on list items.",
|
|
334
334
|
"swipe_action_choice_matrix_desc": "Use for common list actions like delete or archive in mobile-first applications.",
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"speed_dial_desc": "ホバーまたはクリックでサブアクションを展開する、フローティングアクションボタン。",
|
|
336
336
|
"speed_dial_design_intent": "モバイルや高密度なUIで、主要なアクションを省スペースで表示するための手段を提供します。",
|
|
337
337
|
"speed_dial_i18n_desc": "アクションのラベルやツールチップは、翻訳キーを介してローカライズされます。",
|
|
338
|
-
"speed_dial_keyboard_desc": "
|
|
338
|
+
"speed_dial_keyboard_desc": "引き金で Enter か Space を押すとメニューが開き、最初のアクションへフォーカスが移ります。キーボードでアクションを実行すると、メニューが閉じて引き金へフォーカスが戻ります。Escape キーでもメニューを閉じることができます。",
|
|
339
339
|
"speed_dial_motion_desc": "アクションボタンが順次展開・格納されるスタッガードアニメーションにより、プレミアムな操作感を実現します。",
|
|
340
340
|
"speed_dial_responsive_desc": "ビューポートまたはコンテナに対する相対位置を維持します。小さな画面でも適切にスケールします。",
|
|
341
341
|
"speed_dial_scenario_1": "写真、動画、アンケートなど、異なるメディアタイプを選択して投稿を作成する場合。",
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
"speed_dial_desc": "Botão de ação flutuante que expande sub-ações ao passar o mouse ou clicar.",
|
|
335
335
|
"speed_dial_design_intent": "Fornecer uma forma econômica de espaço para exibir ações principais em uma UI móvel ou de alta densidade.",
|
|
336
336
|
"speed_dial_i18n_desc": "Rótulos de ação e tooltips são localizados via chaves de tradução.",
|
|
337
|
-
"speed_dial_keyboard_desc": "
|
|
337
|
+
"speed_dial_keyboard_desc": "Enter ou Espaço no botão principal abre o menu e move o foco para a primeira ação. Executar uma ação pelo teclado fecha o menu e devolve o foco ao botão principal. Escape fecha o menu.",
|
|
338
338
|
"speed_dial_motion_desc": "Animações de entrada/saída escalonadas para os botões de ação, criando uma sensação premium.",
|
|
339
339
|
"speed_dial_responsive_desc": "Mantém a posição em relação à viewport ou ao contêiner. Escala bem em telas menores.",
|
|
340
340
|
"speed_dial_scenario_1": "Criação de publicações em redes sociais com diferentes tipos de mídia (foto, vídeo, enquete).",
|