wimui 0.73.0 → 0.74.1
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.d.ts +2 -1
- package/dist/components/_internal/FeedbackCloseButton.js +27 -15
- package/dist/components/_internal/OverlayBase.cjs +1 -1
- package/dist/components/_internal/OverlayBase.js +34 -38
- package/dist/components/_internal/bodyScrollLock.cjs +2 -0
- package/dist/components/_internal/bodyScrollLock.d.ts +11 -0
- package/dist/components/_internal/bodyScrollLock.js +29 -0
- package/dist/components/_internal/choice-label.module.cjs +1 -1
- package/dist/components/_internal/choice-label.module.js +1 -1
- package/dist/components/_internal/focusHandoff.cjs +2 -0
- package/dist/components/_internal/focusHandoff.d.ts +9 -0
- package/dist/components/_internal/focusHandoff.js +20 -0
- package/dist/components/_internal/weekStart.cjs +2 -0
- package/dist/components/_internal/weekStart.d.ts +6 -0
- package/dist/components/_internal/weekStart.js +18 -0
- 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/agent-status.module.cjs +1 -1
- package/dist/components/ai/AgentStatus/agent-status.module.js +3 -3
- 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/StreamingText/streaming-text.module.cjs +1 -1
- package/dist/components/ai/StreamingText/streaming-text.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 +80 -72
- package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
- package/dist/components/ai/ThreadList/thread-list.module.js +8 -8
- package/dist/components/ai/UsageMeter/usage-meter.module.cjs +1 -1
- package/dist/components/ai/UsageMeter/usage-meter.module.js +1 -1
- package/dist/components/charts/GanttChart/GanttChart.cjs +1 -1
- package/dist/components/charts/GanttChart/GanttChart.js +1 -2
- package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
- package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
- package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
- package/dist/components/data-display/Calendar/Calendar.d.ts +1 -1
- package/dist/components/data-display/Calendar/Calendar.js +179 -177
- package/dist/components/data-display/Calendar/RangeCalendar.d.ts +2 -1
- 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/Calendar/useCalendar.d.ts +5 -1
- package/dist/components/data-display/CalendarHeatmap/calendar-heatmap.module.cjs +1 -1
- package/dist/components/data-display/CalendarHeatmap/calendar-heatmap.module.js +1 -1
- 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/JsonViewer/JsonViewer.cjs +1 -1
- package/dist/components/data-display/JsonViewer/JsonViewer.js +5 -1
- package/dist/components/data-display/Reaction/reaction.module.cjs +1 -1
- package/dist/components/data-display/Reaction/reaction.module.js +1 -1
- package/dist/components/data-display/SwipeAction/SwipeAction.cjs +1 -1
- package/dist/components/data-display/SwipeAction/SwipeAction.js +75 -74
- package/dist/components/data-display/Timeline/timeline.module.cjs +1 -1
- package/dist/components/data-display/Timeline/timeline.module.js +1 -1
- package/dist/components/data-display/TreeDiagram/tree-diagram.module.cjs +1 -1
- package/dist/components/data-display/TreeDiagram/tree-diagram.module.js +9 -9
- package/dist/components/data-display/TreeView/tree-view.module.cjs +1 -1
- package/dist/components/data-display/TreeView/tree-view.module.js +9 -9
- package/dist/components/feedback/Alert/Alert.d.ts +1 -1
- package/dist/components/feedback/Banner/Banner.d.ts +1 -1
- package/dist/components/feedback/Indicator/indicator.module.cjs +1 -1
- package/dist/components/feedback/Indicator/indicator.module.js +6 -6
- package/dist/components/feedback/Loader/loader.module.cjs +1 -1
- package/dist/components/feedback/Loader/loader.module.js +4 -4
- package/dist/components/feedback/Notification/Notification.d.ts +1 -1
- package/dist/components/feedback/Progress/progress.module.cjs +1 -1
- package/dist/components/feedback/Progress/progress.module.js +2 -2
- package/dist/components/feedback/Toast/Toast.cjs +1 -1
- package/dist/components/feedback/Toast/Toast.d.ts +1 -1
- package/dist/components/feedback/Toast/Toast.js +42 -27
- package/dist/components/form/ColorPicker/ColorPicker.cjs +1 -1
- package/dist/components/form/ColorPicker/ColorPicker.d.ts +38 -1
- package/dist/components/form/ColorPicker/ColorPicker.js +75 -15
- package/dist/components/form/ColorPicker/color-picker.module.cjs +1 -1
- package/dist/components/form/ColorPicker/color-picker.module.js +8 -2
- package/dist/components/form/CopyButton/CopyButton.cjs +1 -1
- package/dist/components/form/CopyButton/CopyButton.js +1 -1
- package/dist/components/form/InputBase/InputBase.cjs +1 -1
- package/dist/components/form/InputBase/InputBase.js +3 -1
- package/dist/components/form/NumberInput/NumberInput.cjs +1 -1
- package/dist/components/form/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/form/NumberInput/NumberInput.js +18 -16
- package/dist/components/form/QueryBuilder/QueryBuilder.cjs +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.js +8 -7
- package/dist/components/form/Radio/radio.module.cjs +1 -1
- package/dist/components/form/Radio/radio.module.js +1 -1
- 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/SegmentedControl/segmented-control.module.cjs +1 -1
- package/dist/components/form/SegmentedControl/segmented-control.module.js +1 -1
- package/dist/components/form/Slider/slider.module.cjs +1 -1
- package/dist/components/form/Slider/slider.module.js +1 -1
- package/dist/components/form/Switch/switch.module.cjs +1 -1
- package/dist/components/form/Switch/switch.module.js +1 -1
- 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/toggle-group.module.cjs +1 -1
- package/dist/components/form/ToggleGroup/toggle-group.module.js +1 -1
- package/dist/components/layout/Dashboard/Dashboard.cjs +1 -1
- package/dist/components/layout/Dashboard/Dashboard.js +70 -68
- package/dist/components/media/ImageCompare/image-compare.module.cjs +1 -1
- package/dist/components/media/ImageCompare/image-compare.module.js +6 -6
- package/dist/components/navigation/Anchor/anchor.module.cjs +1 -1
- package/dist/components/navigation/Anchor/anchor.module.js +1 -1
- 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/Pagination/pagination.module.cjs +1 -1
- package/dist/components/navigation/Pagination/pagination.module.js +6 -6
- 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/BottomSheet/bottom-sheet.module.cjs +1 -1
- package/dist/components/overlay/BottomSheet/bottom-sheet.module.js +1 -1
- package/dist/components/overlay/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/overlay/Tooltip/Tooltip.js +99 -65
- package/dist/i18n/generated/form.cjs +1 -1
- package/dist/i18n/generated/form.d.ts +1 -1
- package/dist/i18n/generated/form.js +6 -3
- package/dist/i18n/instance.cjs +1 -1
- package/dist/i18n/instance.d.ts +6 -0
- package/dist/i18n/instance.js +21 -18
- package/dist/llms/Alert.md +1 -1
- package/dist/llms/Banner.md +1 -1
- package/dist/llms/Calendar.md +1 -1
- package/dist/llms/ColorPicker.md +3 -1
- package/dist/llms/Notification.md +1 -1
- package/dist/llms/NumberInput.md +1 -1
- package/dist/llms/RangeCalendar.md +1 -1
- package/dist/llms/Switch.md +1 -1
- package/dist/llms/Toast.md +1 -1
- package/dist/llms-full.txt +19 -8
- package/dist/llms.txt +1 -1
- package/dist/locales/en/form.json +3 -0
- package/dist/locales/ja/form.json +3 -0
- package/dist/locales/pt/form.json +3 -0
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +8 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/components.cjs"),
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../_internal/focusHandoff.cjs"),r=require("../../../i18n/generated/components.cjs"),i=require("../../../icon/close.cjs"),a=require("../../../icon/edit.cjs"),o=require("../../../icon/plus.cjs"),s=require("../../media/Icon/Icon.cjs"),c=require("../../data-display/Card/Card.cjs"),l=require("../../form/Button/Button.cjs"),u=require("./dashboard.module.cjs");let d=require("react");d=e.__toESM(d,1);let f=require("classnames");f=e.__toESM(f,1);let p=require("react/jsx-runtime");var m=(0,d.createContext)(null),h=()=>{let e=(0,d.useContext)(m);if(!e)throw Error(`Dashboard subcomponents must be used within Dashboard`);return e},g=d.default.forwardRef(({widgets:e,editable:n,defaultEditable:i=!1,onEditChange:c,onRemove:h,onAdd:g,columns:v=3,gap:y=`md`,showEditToggle:b,titleLevel:x=3,label:S,className:C,style:w,children:T,...E},D)=>{let{t:O}=t.useWimTranslation(r.componentsNs),k=n!==void 0,[A,j]=(0,d.useState)(i),M=k?n:A,N=(0,d.useCallback)(()=>{let e=!M;k||j(e),c?.(e)},[M,k,c]),P={"--dashboard-columns":v,...w},F=b??(n!==void 0||i||h!==void 0||g!==void 0),I=(0,d.useMemo)(()=>({editable:M??!1,onRemove:h,titleLevel:x}),[M,h,x]),L=`h${Math.max(2,x-1)}`;return(0,p.jsx)(m.Provider,{value:I,children:(0,p.jsxs)(`div`,{ref:D,className:(0,f.default)(`wim-dashboard`,u.default.root,C),role:`group`,"aria-label":S??O(`dashboard_widget.label`),...E,children:[(S||F)&&(0,p.jsxs)(`div`,{className:u.default.header,children:[S&&(0,p.jsx)(L,{className:u.default.heading,children:S}),F&&(0,p.jsx)(l.Button,{size:`sm`,variant:M?`solid`:`outline`,intent:`default`,className:void 0,onClick:N,"aria-pressed":M,"aria-label":O(M?`dashboard_widget.exit_edit`:`dashboard_widget.enter_edit`),icon:(0,p.jsx)(s.Icon,{component:a.default,size:`sm`}),children:O(M?`dashboard_widget.exit_edit`:`dashboard_widget.enter_edit`)})]}),(0,p.jsxs)(`div`,{className:(0,f.default)(u.default.grid,u.default[`gap-${y}`]),style:P,role:`region`,"aria-label":O(`dashboard_widget.grid_label`),children:[e?e.map(e=>(0,p.jsx)(_,{widget:e},e.id)):T,M&&g&&(0,p.jsx)(l.Button,{asChild:!0,className:u.default.addButton,onClick:g,"aria-label":O(`dashboard_widget.add_widget`),children:(0,p.jsxs)(`button`,{type:`button`,children:[(0,p.jsx)(s.Icon,{component:o.default,size:`md`}),(0,p.jsx)(`span`,{children:O(`dashboard_widget.add_widget`)})]})})]})]})})});g.displayName=`Dashboard`;var _=({widget:e,className:a,...o})=>{let{editable:m,onRemove:g,titleLevel:_}=h(),v=`h${_}`,{t:y}=t.useWimTranslation(r.componentsNs),{id:b,title:x,description:S,content:C,span:w=1,rowSpan:T=1}=e,E=(0,d.useRef)(null);return n.useFocusHandoff(E),(0,p.jsxs)(c.Card,{ref:E,variant:`outline`,padding:`md`,radius:`md`,className:(0,f.default)(u.default.widget,u.default[`span-${w}`],u.default[`row-${T}`],{[u.default.editMode]:m},a),...o,style:{"--widget-span":w,"--widget-row-span":T,...o.style},children:[(0,p.jsxs)(`div`,{className:u.default.widgetHeader,children:[(0,p.jsxs)(`div`,{className:u.default.widgetMeta,children:[(0,p.jsx)(v,{className:u.default.widgetTitle,children:x}),S&&(0,p.jsx)(`p`,{className:u.default.widgetDescription,children:S})]}),m&&g&&(0,p.jsx)(l.Button,{size:`sm`,variant:`ghost`,intent:`danger`,className:u.default.removeButton,onClick:()=>g(b),"aria-label":y(`dashboard_widget.remove_widget`,{title:x}),icon:(0,p.jsx)(s.Icon,{component:i.default,size:`sm`})})]}),(0,p.jsx)(`div`,{className:u.default.widgetContent,children:C})]})};_.displayName=`DashboardWidgetCard`,exports.Dashboard=g,exports.DashboardWidgetCard=_;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
|
|
3
|
-
import {
|
|
4
|
-
import n from "../../../
|
|
5
|
-
import r from "../../../icon/
|
|
6
|
-
import i from "../../../icon/
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import c from "
|
|
11
|
-
import l
|
|
12
|
-
import h from "
|
|
13
|
-
import
|
|
3
|
+
import { useFocusHandoff as t } from "../../_internal/focusHandoff.js";
|
|
4
|
+
import { componentsNs as n } from "../../../i18n/generated/components.js";
|
|
5
|
+
import r from "../../../icon/close.js";
|
|
6
|
+
import i from "../../../icon/edit.js";
|
|
7
|
+
import a from "../../../icon/plus.js";
|
|
8
|
+
import { Icon as o } from "../../media/Icon/Icon.js";
|
|
9
|
+
import { Card as s } from "../../data-display/Card/Card.js";
|
|
10
|
+
import { Button as c } from "../../form/Button/Button.js";
|
|
11
|
+
import l from "./dashboard.module.js";
|
|
12
|
+
import u, { createContext as d, useCallback as f, useContext as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
13
|
+
import _ from "classnames";
|
|
14
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
15
|
//#region src/components/layout/Dashboard/Dashboard.tsx
|
|
15
|
-
var
|
|
16
|
-
let e =
|
|
16
|
+
var b = d(null), x = () => {
|
|
17
|
+
let e = p(b);
|
|
17
18
|
if (!e) throw Error("Dashboard subcomponents must be used within Dashboard");
|
|
18
19
|
return e;
|
|
19
|
-
},
|
|
20
|
-
let { t: j } = e(
|
|
20
|
+
}, S = u.forwardRef(({ widgets: t, editable: r, defaultEditable: s = !1, onEditChange: u, onRemove: d, onAdd: p, columns: h = 3, gap: x = "md", showEditToggle: S, titleLevel: w = 3, label: T, className: E, style: D, children: O, ...k }, A) => {
|
|
21
|
+
let { t: j } = e(n), M = r !== void 0, [N, P] = g(s), F = M ? r : N, I = f(() => {
|
|
21
22
|
let e = !F;
|
|
22
23
|
M || P(e), u?.(e);
|
|
23
24
|
}, [
|
|
@@ -25,31 +26,31 @@ var v = u(null), y = () => {
|
|
|
25
26
|
M,
|
|
26
27
|
u
|
|
27
28
|
]), L = {
|
|
28
|
-
"--dashboard-columns":
|
|
29
|
+
"--dashboard-columns": h,
|
|
29
30
|
...D
|
|
30
|
-
}, R =
|
|
31
|
+
}, R = S ?? (r !== void 0 || s || d !== void 0 || p !== void 0), z = m(() => ({
|
|
31
32
|
editable: F ?? !1,
|
|
32
|
-
onRemove:
|
|
33
|
+
onRemove: d,
|
|
33
34
|
titleLevel: w
|
|
34
35
|
}), [
|
|
35
36
|
F,
|
|
36
|
-
|
|
37
|
+
d,
|
|
37
38
|
w
|
|
38
39
|
]), B = `h${Math.max(2, w - 1)}`;
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ v(b.Provider, {
|
|
40
41
|
value: z,
|
|
41
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ y("div", {
|
|
42
43
|
ref: A,
|
|
43
|
-
className:
|
|
44
|
+
className: _("wim-dashboard", l.root, E),
|
|
44
45
|
role: "group",
|
|
45
46
|
"aria-label": T ?? j("dashboard_widget.label"),
|
|
46
47
|
...k,
|
|
47
|
-
children: [(T || R) && /* @__PURE__ */
|
|
48
|
-
className:
|
|
49
|
-
children: [T && /* @__PURE__ */
|
|
50
|
-
className:
|
|
48
|
+
children: [(T || R) && /* @__PURE__ */ y("div", {
|
|
49
|
+
className: l.header,
|
|
50
|
+
children: [T && /* @__PURE__ */ v(B, {
|
|
51
|
+
className: l.heading,
|
|
51
52
|
children: T
|
|
52
|
-
}), R && /* @__PURE__ */
|
|
53
|
+
}), R && /* @__PURE__ */ v(c, {
|
|
53
54
|
size: "sm",
|
|
54
55
|
variant: F ? "solid" : "outline",
|
|
55
56
|
intent: "default",
|
|
@@ -57,77 +58,78 @@ var v = u(null), y = () => {
|
|
|
57
58
|
onClick: I,
|
|
58
59
|
"aria-pressed": F,
|
|
59
60
|
"aria-label": j(F ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit"),
|
|
60
|
-
icon: /* @__PURE__ */
|
|
61
|
-
component:
|
|
61
|
+
icon: /* @__PURE__ */ v(o, {
|
|
62
|
+
component: i,
|
|
62
63
|
size: "sm"
|
|
63
64
|
}),
|
|
64
65
|
children: j(F ? "dashboard_widget.exit_edit" : "dashboard_widget.enter_edit")
|
|
65
66
|
})]
|
|
66
|
-
}), /* @__PURE__ */
|
|
67
|
-
className:
|
|
67
|
+
}), /* @__PURE__ */ y("div", {
|
|
68
|
+
className: _(l.grid, l[`gap-${x}`]),
|
|
68
69
|
style: L,
|
|
69
70
|
role: "region",
|
|
70
71
|
"aria-label": j("dashboard_widget.grid_label"),
|
|
71
|
-
children: [
|
|
72
|
+
children: [t ? t.map((e) => /* @__PURE__ */ v(C, { widget: e }, e.id)) : O, F && p && /* @__PURE__ */ v(c, {
|
|
72
73
|
asChild: !0,
|
|
73
|
-
className:
|
|
74
|
-
onClick:
|
|
74
|
+
className: l.addButton,
|
|
75
|
+
onClick: p,
|
|
75
76
|
"aria-label": j("dashboard_widget.add_widget"),
|
|
76
|
-
children: /* @__PURE__ */
|
|
77
|
+
children: /* @__PURE__ */ y("button", {
|
|
77
78
|
type: "button",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
-
component:
|
|
79
|
+
children: [/* @__PURE__ */ v(o, {
|
|
80
|
+
component: a,
|
|
80
81
|
size: "md"
|
|
81
|
-
}), /* @__PURE__ */
|
|
82
|
+
}), /* @__PURE__ */ v("span", { children: j("dashboard_widget.add_widget") })]
|
|
82
83
|
})
|
|
83
84
|
})]
|
|
84
85
|
})]
|
|
85
86
|
})
|
|
86
87
|
});
|
|
87
88
|
});
|
|
88
|
-
|
|
89
|
-
var
|
|
90
|
-
let { editable:
|
|
91
|
-
return /* @__PURE__ */
|
|
89
|
+
S.displayName = "Dashboard";
|
|
90
|
+
var C = ({ widget: i, className: a, ...u }) => {
|
|
91
|
+
let { editable: d, onRemove: f, titleLevel: p } = x(), m = `h${p}`, { t: g } = e(n), { id: b, title: S, description: C, content: w, span: T = 1, rowSpan: E = 1 } = i, D = h(null);
|
|
92
|
+
return t(D), /* @__PURE__ */ y(s, {
|
|
93
|
+
ref: D,
|
|
92
94
|
variant: "outline",
|
|
93
95
|
padding: "md",
|
|
94
96
|
radius: "md",
|
|
95
|
-
className:
|
|
96
|
-
...
|
|
97
|
+
className: _(l.widget, l[`span-${T}`], l[`row-${E}`], { [l.editMode]: d }, a),
|
|
98
|
+
...u,
|
|
97
99
|
style: {
|
|
98
|
-
"--widget-span":
|
|
99
|
-
"--widget-row-span":
|
|
100
|
-
...
|
|
100
|
+
"--widget-span": T,
|
|
101
|
+
"--widget-row-span": E,
|
|
102
|
+
...u.style
|
|
101
103
|
},
|
|
102
|
-
children: [/* @__PURE__ */
|
|
103
|
-
className:
|
|
104
|
-
children: [/* @__PURE__ */
|
|
105
|
-
className:
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
-
className:
|
|
108
|
-
children:
|
|
109
|
-
}),
|
|
110
|
-
className:
|
|
111
|
-
children:
|
|
104
|
+
children: [/* @__PURE__ */ y("div", {
|
|
105
|
+
className: l.widgetHeader,
|
|
106
|
+
children: [/* @__PURE__ */ y("div", {
|
|
107
|
+
className: l.widgetMeta,
|
|
108
|
+
children: [/* @__PURE__ */ v(m, {
|
|
109
|
+
className: l.widgetTitle,
|
|
110
|
+
children: S
|
|
111
|
+
}), C && /* @__PURE__ */ v("p", {
|
|
112
|
+
className: l.widgetDescription,
|
|
113
|
+
children: C
|
|
112
114
|
})]
|
|
113
|
-
}),
|
|
115
|
+
}), d && f && /* @__PURE__ */ v(c, {
|
|
114
116
|
size: "sm",
|
|
115
117
|
variant: "ghost",
|
|
116
118
|
intent: "danger",
|
|
117
|
-
className:
|
|
118
|
-
onClick: () =>
|
|
119
|
-
"aria-label":
|
|
120
|
-
icon: /* @__PURE__ */
|
|
121
|
-
component:
|
|
119
|
+
className: l.removeButton,
|
|
120
|
+
onClick: () => f(b),
|
|
121
|
+
"aria-label": g("dashboard_widget.remove_widget", { title: S }),
|
|
122
|
+
icon: /* @__PURE__ */ v(o, {
|
|
123
|
+
component: r,
|
|
122
124
|
size: "sm"
|
|
123
125
|
})
|
|
124
126
|
})]
|
|
125
|
-
}), /* @__PURE__ */
|
|
126
|
-
className:
|
|
127
|
-
children:
|
|
127
|
+
}), /* @__PURE__ */ v("div", {
|
|
128
|
+
className: l.widgetContent,
|
|
129
|
+
children: w
|
|
128
130
|
})]
|
|
129
131
|
});
|
|
130
132
|
};
|
|
131
|
-
|
|
133
|
+
C.displayName = "DashboardWidgetCard";
|
|
132
134
|
//#endregion
|
|
133
|
-
export {
|
|
135
|
+
export { S as Dashboard, C as DashboardWidgetCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_bmhsl_24`,t=`_image_bmhsl_35`,n=`_beforeLayer_bmhsl_42`,r=`_label_bmhsl_52`,i=`_beforeLabel_bmhsl_63`,a=`_afterLabel_bmhsl_66`,o=`_divider_bmhsl_69`,s=`_line_bmhsl_80`,c=`_handle_bmhsl_97`,l=`_arrow_bmhsl_135`,u=`_vertical_bmhsl_140`,d={root:e,image:t,beforeLayer:n,label:r,beforeLabel:i,afterLabel:a,divider:o,line:s,handle:c,arrow:l,vertical:u,"radius-none":`_radius-none_bmhsl_161`,"radius-sm":`_radius-sm_bmhsl_164`,"radius-md":`_radius-md_bmhsl_167`,"radius-lg":`_radius-lg_bmhsl_170`,"radius-full":`_radius-full_bmhsl_173`};exports.afterLabel=a,exports.arrow=l,exports.beforeLabel=i,exports.beforeLayer=n,exports.default=d,exports.divider=o,exports.handle=c,exports.image=t,exports.label=r,exports.line=s,exports.root=e,exports.vertical=u;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/media/ImageCompare/image-compare.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_bmhsl_24", t = "_image_bmhsl_35", n = "_beforeLayer_bmhsl_42", r = "_label_bmhsl_52", i = "_beforeLabel_bmhsl_63", a = "_afterLabel_bmhsl_66", o = "_divider_bmhsl_69", s = "_line_bmhsl_80", c = "_handle_bmhsl_97", l = "_arrow_bmhsl_135", u = "_vertical_bmhsl_140", d = {
|
|
4
4
|
root: e,
|
|
5
5
|
image: t,
|
|
6
6
|
beforeLayer: n,
|
|
@@ -12,11 +12,11 @@ var e = "_root_478l8_24", t = "_image_478l8_35", n = "_beforeLayer_478l8_42", r
|
|
|
12
12
|
handle: c,
|
|
13
13
|
arrow: l,
|
|
14
14
|
vertical: u,
|
|
15
|
-
"radius-none": "_radius-
|
|
16
|
-
"radius-sm": "_radius-
|
|
17
|
-
"radius-md": "_radius-
|
|
18
|
-
"radius-lg": "_radius-
|
|
19
|
-
"radius-full": "_radius-
|
|
15
|
+
"radius-none": "_radius-none_bmhsl_161",
|
|
16
|
+
"radius-sm": "_radius-sm_bmhsl_164",
|
|
17
|
+
"radius-md": "_radius-md_bmhsl_167",
|
|
18
|
+
"radius-lg": "_radius-lg_bmhsl_170",
|
|
19
|
+
"radius-full": "_radius-full_bmhsl_173"
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
export { a as afterLabel, l as arrow, i as beforeLabel, n as beforeLayer, d as default, o as divider, c as handle, t as image, r as label, s as line, e as root, u as vertical };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_q36km_3`,t=`_horizontal_q36km_9`,n=`_ink_q36km_14`,r=`_inkBall_q36km_21`,i=`_list_q36km_59`,a=`_item_q36km_78`,o=`_link_q36km_82`,s=`_active_q36km_90`,c={root:e,horizontal:t,ink:n,inkBall:r,list:i,item:a,link:o,active:s};exports.active=s,exports.default=c,exports.horizontal=t,exports.ink=n,exports.inkBall=r,exports.item=a,exports.link=o,exports.list=i,exports.root=e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/navigation/Anchor/anchor.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_q36km_3", t = "_horizontal_q36km_9", n = "_ink_q36km_14", r = "_inkBall_q36km_21", i = "_list_q36km_59", a = "_item_q36km_78", o = "_link_q36km_82", s = "_active_q36km_90", c = {
|
|
4
4
|
root: e,
|
|
5
5
|
horizontal: t,
|
|
6
6
|
ink: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1guu2_5`,t=`_box_1guu2_26`,n=`_inner_1guu2_32`,r=`_sm_1guu2_65`,i=`_lg_1guu2_81`,a=`_visibleBelowXs_1guu2_100`,o=`_visibleBelowSm_1guu2_108`,s=`_visibleBelowMd_1guu2_116`,c=`_visibleBelowLg_1guu2_124`,l=`_visibleBelowXl_1guu2_132`,u=`_open_1guu2_140`,d={root:e,box:t,inner:n,sm:r,lg:i,visibleBelowXs:a,visibleBelowSm:o,visibleBelowMd:s,visibleBelowLg:c,visibleBelowXl:l,open:u};exports.box=t,exports.default=d,exports.inner=n,exports.lg=i,exports.open=u,exports.root=e,exports.sm=r,exports.visibleBelowLg=c,exports.visibleBelowMd=s,exports.visibleBelowSm=o,exports.visibleBelowXl=l,exports.visibleBelowXs=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/navigation/HamburgerMenu/hamburger-menu.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1guu2_5", t = "_box_1guu2_26", n = "_inner_1guu2_32", r = "_sm_1guu2_65", i = "_lg_1guu2_81", a = "_visibleBelowXs_1guu2_100", o = "_visibleBelowSm_1guu2_108", s = "_visibleBelowMd_1guu2_116", c = "_visibleBelowLg_1guu2_124", l = "_visibleBelowXl_1guu2_132", u = "_open_1guu2_140", d = {
|
|
4
4
|
root: e,
|
|
5
5
|
box: t,
|
|
6
6
|
inner: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_container_1b0we_24`,t=`_wrapper_1b0we_34`,n=`_root_1b0we_40`,r=`_simple_1b0we_48`,i=`_simplePager_1b0we_48`,a=`_item_1b0we_52`,o=`_disabled_1b0we_72`,s=`_active_1b0we_72`,c=`_button_1b0we_98`,l=`_ellipsis_1b0we_116`,u=`_mobileIndicator_1b0we_125`,d=`_number_1b0we_126`,f=`_total_1b0we_184`,p=`_sizeChanger_1b0we_188`,m=`_quickJumper_1b0we_194`,h={container:e,wrapper:t,root:n,simple:r,simplePager:i,item:a,disabled:o,active:s,button:c,ellipsis:l,mobileIndicator:u,number:d,total:f,sizeChanger:p,quickJumper:m};exports.active=s,exports.button=c,exports.container=e,exports.default=h,exports.disabled=o,exports.ellipsis=l,exports.item=a,exports.mobileIndicator=u,exports.number=d,exports.quickJumper=m,exports.root=n,exports.simple=r,exports.simplePager=i,exports.sizeChanger=p,exports.total=f,exports.wrapper=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/navigation/Pagination/pagination.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_container_1b0we_24", t = "_wrapper_1b0we_34", n = "_root_1b0we_40", r = "_simple_1b0we_48", i = "_simplePager_1b0we_48", a = "_item_1b0we_52", o = "_disabled_1b0we_72", s = "_active_1b0we_72", c = "_button_1b0we_98", l = "_ellipsis_1b0we_116", u = "_mobileIndicator_1b0we_125", d = "_number_1b0we_126", f = "_total_1b0we_184", p = "_sizeChanger_1b0we_188", m = "_quickJumper_1b0we_194", h = {
|
|
4
4
|
container: e,
|
|
5
5
|
wrapper: t,
|
|
6
6
|
root: n,
|
|
@@ -9,13 +9,13 @@ var e = "_container_1e6kn_24", t = "_wrapper_1e6kn_34", n = "_root_1e6kn_40", r
|
|
|
9
9
|
item: a,
|
|
10
10
|
disabled: o,
|
|
11
11
|
active: s,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
button: c,
|
|
13
|
+
ellipsis: l,
|
|
14
|
+
mobileIndicator: u,
|
|
15
|
+
number: d,
|
|
16
16
|
total: f,
|
|
17
17
|
sizeChanger: p,
|
|
18
18
|
quickJumper: m
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
|
-
export { s as active,
|
|
21
|
+
export { s as active, c as button, e as container, h as default, o as disabled, l as ellipsis, a as item, u as mobileIndicator, d as number, m as quickJumper, n as root, r as simple, i as simplePager, p as sizeChanger, f as total, t as wrapper };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_3nuj4_41`,t=`_list_3nuj4_51`,n=`_start_3nuj4_62`,r=`_center_3nuj4_65`,i=`_end_3nuj4_68`,a=`_justify_3nuj4_71`,o=`_item_3nuj4_74`,s=`_sm_3nuj4_81`,c=`_md_3nuj4_10`,l=`_lg_3nuj4_91`,u=`_disabled_3nuj4_127`,d=`_icon_3nuj4_155`,f=`_underline_3nuj4_162`,p=`_slider_3nuj4_165`,m=`_ready_3nuj4_186`,h=`_active_3nuj4_202`,g=`_pill_3nuj4_209`,_=`_contained_3nuj4_276`,v={root:e,list:t,start:n,center:r,end:i,justify:a,item:o,sm:s,md:c,lg:l,disabled:u,icon:d,underline:f,slider:p,ready:m,active:h,pill:g,contained:_};exports.active=h,exports.center=r,exports.contained=_,exports.default=v,exports.disabled=u,exports.end=i,exports.icon=d,exports.item=o,exports.justify=a,exports.lg=l,exports.list=t,exports.md=c,exports.pill=g,exports.ready=m,exports.root=e,exports.slider=p,exports.sm=s,exports.start=n,exports.underline=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/navigation/TabNavigation/tab-navigation.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_3nuj4_41", t = "_list_3nuj4_51", n = "_start_3nuj4_62", r = "_center_3nuj4_65", i = "_end_3nuj4_68", a = "_justify_3nuj4_71", o = "_item_3nuj4_74", s = "_sm_3nuj4_81", c = "_md_3nuj4_10", l = "_lg_3nuj4_91", u = "_disabled_3nuj4_127", d = "_icon_3nuj4_155", f = "_underline_3nuj4_162", p = "_slider_3nuj4_165", m = "_ready_3nuj4_186", h = "_active_3nuj4_202", g = "_pill_3nuj4_209", _ = "_contained_3nuj4_276", v = {
|
|
4
4
|
root: e,
|
|
5
5
|
list: t,
|
|
6
6
|
start: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_container_13hir_41`,t=`_root_13hir_55`,n=`_vertical_13hir_64`,r=`_list_13hir_72`,i=`_trigger_13hir_91`,a=`_active_13hir_113`,o=`_content_13hir_154`,s=`_dragging_13hir_182`,c=`_ready_13hir_186`,l=`_slider_13hir_186`,u={container:e,root:t,vertical:n,list:r,trigger:i,active:a,content:o,dragging:s,ready:c,slider:l};exports.active=a,exports.container=e,exports.content=o,exports.default=u,exports.dragging=s,exports.list=r,exports.ready=c,exports.root=t,exports.slider=l,exports.trigger=i,exports.vertical=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/navigation/Tabs/tabs.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_container_13hir_41", t = "_root_13hir_55", n = "_vertical_13hir_64", r = "_list_13hir_72", i = "_trigger_13hir_91", a = "_active_13hir_113", o = "_content_13hir_154", s = "_dragging_13hir_182", c = "_ready_13hir_186", l = "_slider_13hir_186", u = {
|
|
4
4
|
container: e,
|
|
5
5
|
root: t,
|
|
6
6
|
vertical: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_overlay_1hkq9_4`,t=`_overlayShow_1hkq9_1`,n=`_content_1hkq9_15`,r=`_handle_1hkq9_52`,i=`_header_1hkq9_68`,a=`_title_1hkq9_74`,o=`_description_1hkq9_80`,s=`_body_1hkq9_86`,c=`_footer_1hkq9_91`,l={overlay:e,overlayShow:t,content:n,handle:r,header:i,title:a,description:o,body:s,footer:c};exports.body=s,exports.content=n,exports.default=l,exports.description=o,exports.footer=c,exports.handle=r,exports.header=i,exports.overlay=e,exports.overlayShow=t,exports.title=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/overlay/BottomSheet/bottom-sheet.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_overlay_1hkq9_4", t = "_overlayShow_1hkq9_1", n = "_content_1hkq9_15", r = "_handle_1hkq9_52", i = "_header_1hkq9_68", a = "_title_1hkq9_74", o = "_description_1hkq9_80", s = "_body_1hkq9_86", c = "_footer_1hkq9_91", l = {
|
|
4
4
|
overlay: e,
|
|
5
5
|
overlayShow: t,
|
|
6
6
|
content: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./tooltip.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@floating-ui/react");
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./tooltip.module.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("classnames");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@floating-ui/react");function o(e){return e.replace(/\s+/g,` `).trim()}function s(e){if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(s).join(``);if(n.default.isValidElement(e)){let t=e.props;return s(t.children)}return``}function c(e,t){let n=e[`aria-labelledby`];if(typeof n==`string`&&n.trim()&&typeof document<`u`)return o(n.split(/\s+/).filter(Boolean).map(e=>document.getElementById(e)?.textContent??``).join(` `));let r=e[`aria-label`];return o(typeof r==`string`?r:s(t))}function l(e,t,n,r){if(!n||!r)return;let i=e[`aria-describedby`];if(typeof i!=`string`||!i.trim())return;let a=c(e,t);if(!a||a!==n)return;let o=i.split(/\s+/).filter(e=>e&&e!==r);o.length>0?e[`aria-describedby`]=o.join(` `):delete e[`aria-describedby`]}var u=n.default.createContext(null),d=({children:e,className:o,delay:s=200,open:c,onOpenChange:l,placement:d=`top`,variant:f=`default`})=>{let[p,m]=(0,n.useState)(!1),[h,g]=(0,n.useState)(``),_=c??p,v=e=>{c===void 0&&m(e),l?.(e)},y=(0,n.useRef)(null),{refs:b,floatingStyles:x,context:S,placement:C}=(0,a.useFloating)({open:_,onOpenChange:v,placement:d,whileElementsMounted:a.autoUpdate,middleware:[(0,a.offset)(8),(0,a.flip)({fallbackAxisSideDirection:`start`}),(0,a.shift)(),(0,a.arrow)({element:y})]}),w=(0,a.useHover)(S,{move:!1,delay:{open:s,close:100},handleClose:(0,a.safePolygon)()}),T=(0,a.useFocus)(S),E=(0,a.useDismiss)(S),D=(0,a.useRole)(S,{role:`tooltip`}),{getReferenceProps:O,getFloatingProps:k}=(0,a.useInteractions)([w,T,E,D]);return(0,i.jsx)(u.Provider,{value:{open:_,setOpen:v,refs:b,floatingStyles:x,context:S,getReferenceProps:O,getFloatingProps:k,arrowRef:y,placement:C,variant:f,descriptionText:h,setDescriptionText:g,floatingId:S.floatingId},children:(0,i.jsx)(`div`,{className:(0,r.default)(`wim-tooltip`,t.default.root,o),children:e})})},f=n.default.forwardRef(({children:e,className:o,asChild:s,...c},d)=>{let f=n.default.useContext(u);if(f==null)throw Error(`Tooltip components must be wrapped in <Tooltip />`);let p=e.ref,m=(0,a.useMergeRefs)([f.refs.setReference,d,p??null]);if(s&&n.default.isValidElement(e)){let t=e.props,i=f.getReferenceProps({ref:m,...c,...t,className:(0,r.default)(o,t.className)});return l(i,e,f.descriptionText,f.floatingId),n.default.cloneElement(e,{...i,"data-state":f.open?`open`:`closed`})}let h=f.getReferenceProps(c);return l(h,e,f.descriptionText,f.floatingId),(0,i.jsx)(`button`,{ref:m,type:`button`,className:(0,r.default)(t.default.trigger,o),"data-state":f.open?`open`:`closed`,...h,children:e})});f.displayName=`TooltipTrigger`;var p=n.default.forwardRef(({children:e,className:c,style:l,...d},f)=>{let p=n.default.useContext(u);if(p==null)throw Error(`Tooltip components must be wrapped in <Tooltip />`);let{context:m,open:h,refs:g,floatingStyles:_,getFloatingProps:v,arrowRef:y,setDescriptionText:b}=p,x=(0,a.useMergeRefs)([g.setFloating,f]),S=o(s(e));return(0,n.useLayoutEffect)(()=>{b(S)},[S,b]),h?(0,i.jsx)(a.FloatingPortal,{children:(0,i.jsxs)(`div`,{ref:x,style:{..._,...l},className:(0,r.default)(t.default.content,t.default[p.variant],c),...v(d),children:[e,(0,i.jsx)(a.FloatingArrow,{ref:y,context:m,fill:p.variant===`glass`?`var(--wim-color-glass-bg)`:`var(--wim-comp-tooltip-bg)`,strokeWidth:+(p.variant===`glass`),stroke:p.variant===`glass`?`var(--wim-color-glass-border)`:`transparent`,className:t.default.arrow})]})}):null});p.displayName=`TooltipContent`,exports.Tooltip=d,exports.TooltipContent=p,exports.TooltipTrigger=f;
|