wimui 0.5.0 → 0.5.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/ai/ChatUI/chat-ui.module.cjs +1 -1
- package/dist/components/ai/ChatUI/chat-ui.module.js +2 -2
- package/dist/components/ai/InteractiveGraph/InteractiveGraph.cjs +1 -1
- package/dist/components/ai/InteractiveGraph/InteractiveGraph.js +37 -23
- package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
- package/dist/components/ai/InteractiveGraph/interactive-graph.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/charts/Heatmap/Heatmap.cjs +1 -1
- package/dist/components/charts/Heatmap/Heatmap.d.ts +1 -1
- package/dist/components/charts/Heatmap/Heatmap.js +1 -1
- package/dist/components/charts/Sparkline/Sparkline.cjs +1 -1
- package/dist/components/charts/Sparkline/Sparkline.js +1 -1
- package/dist/components/data-display/Badge/badge.module.cjs +1 -1
- package/dist/components/data-display/Badge/badge.module.js +1 -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/Card/card.module.cjs +1 -1
- package/dist/components/data-display/Card/card.module.js +12 -9
- package/dist/components/data-display/Chip/chip.module.cjs +1 -1
- package/dist/components/data-display/Chip/chip.module.js +2 -2
- 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/feedback/Alert/Alert.cjs +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +1 -1
- package/dist/components/feedback/Alert/Alert.js +3 -3
- package/dist/components/feedback/Alert/alert.module.cjs +1 -1
- package/dist/components/feedback/Alert/alert.module.js +2 -1
- package/dist/components/feedback/Banner/Banner.cjs +1 -1
- package/dist/components/feedback/Banner/Banner.d.ts +1 -1
- package/dist/components/feedback/Banner/Banner.js +46 -43
- package/dist/components/feedback/Banner/banner.module.cjs +1 -1
- package/dist/components/feedback/Banner/banner.module.js +2 -1
- package/dist/components/feedback/Notification/Notification.cjs +1 -1
- package/dist/components/feedback/Notification/Notification.d.ts +1 -0
- package/dist/components/feedback/Notification/Notification.js +16 -14
- package/dist/components/feedback/Notification/notification.module.cjs +1 -1
- package/dist/components/feedback/Notification/notification.module.js +2 -1
- package/dist/components/feedback/Result/Result.cjs +1 -1
- package/dist/components/feedback/Result/Result.d.ts +2 -1
- package/dist/components/feedback/Result/Result.js +6 -2
- package/dist/components/feedback/Result/result.module.cjs +1 -1
- package/dist/components/feedback/Result/result.module.js +1 -1
- package/dist/components/feedback/Snackbar/Snackbar.cjs +1 -1
- package/dist/components/feedback/Snackbar/Snackbar.d.ts +1 -1
- package/dist/components/feedback/Snackbar/Snackbar.js +2 -2
- package/dist/components/feedback/Snackbar/snackbar.module.cjs +1 -1
- package/dist/components/feedback/Snackbar/snackbar.module.js +7 -7
- 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 +2 -2
- package/dist/components/feedback/Toast/toast.module.cjs +1 -1
- package/dist/components/feedback/Toast/toast.module.js +8 -7
- package/dist/components/form/Cascader/cascader.module.cjs +1 -1
- package/dist/components/form/Cascader/cascader.module.js +6 -6
- package/dist/components/form/Dropzone/Dropzone.cjs +1 -1
- package/dist/components/form/Dropzone/Dropzone.js +18 -18
- package/dist/components/form/Dropzone/dropzone.module.cjs +1 -1
- package/dist/components/form/Dropzone/dropzone.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 +2 -5
- package/dist/components/form/PasswordStrength/password-strength.module.cjs +1 -1
- package/dist/components/form/PasswordStrength/password-strength.module.js +4 -5
- package/dist/components/form/TagInput/tag-input.module.cjs +1 -1
- package/dist/components/form/TagInput/tag-input.module.js +1 -1
- package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
- package/dist/components/form/TreeSelect/tree-select.module.js +6 -6
- package/dist/components/helpers.cjs +1 -1
- package/dist/components/helpers.d.ts +1 -0
- package/dist/components/helpers.js +12 -12
- package/dist/components/layout/InteractiveArea/InteractiveArea.cjs +1 -1
- package/dist/components/layout/InteractiveArea/InteractiveArea.js +9 -7
- package/dist/components/layout/InteractiveArea/interactive-area.module.cjs +1 -1
- package/dist/components/layout/InteractiveArea/interactive-area.module.js +9 -8
- package/dist/components/media/Icon/icon.module.cjs +1 -1
- package/dist/components/media/Icon/icon.module.js +10 -10
- package/dist/components/typography/Title/title.module.cjs +1 -1
- package/dist/components/typography/Title/title.module.js +1 -1
- package/dist/llms-full.txt +16 -14
- package/dist/llms.txt +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/generated-intents.d.ts +2 -2
- package/dist/types/generated-tokens.d.ts +1 -1
- package/dist/types/tokens.d.ts +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +3 -3
- package/package.json +127 -21
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/helpers.ts
|
|
3
3
|
var e = [
|
|
4
|
-
"var(--wim-color-primary)",
|
|
5
|
-
"var(--wim-color-info)",
|
|
6
|
-
"var(--wim-color-success)",
|
|
7
|
-
"var(--wim-color-warning)",
|
|
8
|
-
"var(--wim-color-danger)",
|
|
9
|
-
"var(--wim-color-secondary)",
|
|
4
|
+
"var(--wim-color-chart-primary)",
|
|
5
|
+
"var(--wim-color-chart-info)",
|
|
6
|
+
"var(--wim-color-chart-success)",
|
|
7
|
+
"var(--wim-color-chart-warning)",
|
|
8
|
+
"var(--wim-color-chart-danger)",
|
|
9
|
+
"var(--wim-color-chart-secondary)",
|
|
10
10
|
"var(--wim-color-text-tertiary)",
|
|
11
11
|
"var(--wim-color-disabled)"
|
|
12
12
|
], t = [
|
|
13
|
-
"var(--wim-color-text-on-primary)",
|
|
14
|
-
"var(--wim-color-text-on-info)",
|
|
15
|
-
"var(--wim-color-text-on-success)",
|
|
16
|
-
"var(--wim-color-text-on-warning)",
|
|
17
|
-
"var(--wim-color-text-on-danger)",
|
|
18
|
-
"var(--wim-color-text-on-secondary)",
|
|
13
|
+
"var(--wim-color-text-on-chart-primary)",
|
|
14
|
+
"var(--wim-color-text-on-chart-info)",
|
|
15
|
+
"var(--wim-color-text-on-chart-success)",
|
|
16
|
+
"var(--wim-color-text-on-chart-warning)",
|
|
17
|
+
"var(--wim-color-text-on-chart-danger)",
|
|
18
|
+
"var(--wim-color-text-on-chart-secondary)",
|
|
19
19
|
"var(--wim-color-text-primary)",
|
|
20
20
|
"var(--wim-color-text-primary)"
|
|
21
21
|
], n = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./interactive-area.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");var a=n.default.forwardRef(({title:e,description:n,icon:a,actions:o,variant:s=`dashed`,bgVariant:c=`default`,size:l=`md`,isDragging:u=!1,isClickable:d=!1,disabled:f=!1,className:p,children:m,styles:h,...g},_)=>(0,i.jsx)(`div`,{ref:_,className:(0,r.default)(`wim-interactive-area`,t.default.root,t.default[s],t.default[c],t.default[l],u&&t.default.dragging,d&&!f&&t.default.clickable,f&&t.default.disabled,p),"data-variant":s,"data-bg-variant":c,"data-size":l,"data-disabled":f,"data-dragging":u,role:d&&!f?`button`:void 0,tabIndex:d&&!f?0:void 0,"aria-disabled":f||void 0,onKeyDown:e=>{d&&!f&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click()),g.onKeyDown?.(e)},...g,onClick:e=>{if(f){e.preventDefault();return}g.onClick?.(e)},children:(0,i.jsxs)(`div`,{className:(0,r.default)(t.default.inner,h?.inner),children:[a&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.icon,h?.icon),children:a}),e&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.title,h?.title),children:e}),n&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.description,h?.description),children:n}),m&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.content,h?.content),children:m}),o&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.actions,h?.actions),children:o})]})}));a.displayName=`InteractiveArea`,exports.InteractiveArea=a;
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("./interactive-area.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");var a=n.default.forwardRef(({title:e,description:n,icon:a,actions:o,variant:s=`dashed`,bgVariant:c=`default`,size:l=`md`,isDragging:u=!1,isClickable:d=!1,disabled:f=!1,className:p,children:m,styles:h,...g},_)=>(0,i.jsx)(`div`,{ref:_,className:(0,r.default)(`wim-interactive-area`,t.default.root,t.default[s],t.default[c],t.default[l],u&&t.default.dragging,d&&!f&&t.default.clickable,f&&t.default.disabled,p),"data-variant":s,"data-bg-variant":c,"data-size":l,"data-disabled":f,"data-dragging":u,role:d&&!f?`button`:void 0,tabIndex:d&&!f?0:void 0,"aria-disabled":f||void 0,onKeyDown:e=>{d&&!f&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click()),g.onKeyDown?.(e)},...g,onClick:e=>{if(f){e.preventDefault();return}g.onClick?.(e)},children:(0,i.jsxs)(`div`,{className:(0,r.default)(t.default.inner,h?.inner),children:[a&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.icon,h?.icon),children:a}),(e||n)&&(0,i.jsxs)(`div`,{className:t.default.text,children:[e&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.title,h?.title),children:e}),n&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.description,h?.description),children:n})]}),m&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.content,h?.content),children:m}),o&&(0,i.jsx)(`div`,{className:(0,r.default)(t.default.actions,h?.actions),children:o})]})}));a.displayName=`InteractiveArea`,exports.InteractiveArea=a;
|
|
@@ -33,13 +33,15 @@ var a = t.forwardRef(({ title: t, description: a, icon: o, actions: s, variant:
|
|
|
33
33
|
className: n(e.icon, g?.icon),
|
|
34
34
|
children: o
|
|
35
35
|
}),
|
|
36
|
-
t && /* @__PURE__ */
|
|
37
|
-
className:
|
|
38
|
-
children: t
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
(t || a) && /* @__PURE__ */ i("div", {
|
|
37
|
+
className: e.text,
|
|
38
|
+
children: [t && /* @__PURE__ */ r("div", {
|
|
39
|
+
className: n(e.title, g?.title),
|
|
40
|
+
children: t
|
|
41
|
+
}), a && /* @__PURE__ */ r("div", {
|
|
42
|
+
className: n(e.description, g?.description),
|
|
43
|
+
children: a
|
|
44
|
+
})]
|
|
43
45
|
}),
|
|
44
46
|
h && /* @__PURE__ */ r("div", {
|
|
45
47
|
className: n(e.content, g?.content),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1eoto_1`,t=`_dashed_1eoto_18`,n=`_solid_1eoto_21`,r=`_none_1eoto_24`,i=`_transparent_1eoto_30`,a=`_muted_1eoto_33`,o=`_sm_1eoto_36`,s=`_md_1eoto_42`,c=`_lg_1eoto_48`,l=`_dragging_1eoto_54`,u=`_clickable_1eoto_58`,d=`_disabled_1eoto_69`,f=`_inner_1eoto_74`,p=`_text_1eoto_84`,m=`_icon_1eoto_91`,h=`_title_1eoto_99`,g=`_description_1eoto_105`,_=`_content_1eoto_110`,v=`_actions_1eoto_114`,y={root:e,dashed:t,solid:n,none:r,default:`_default_1eoto_27`,transparent:i,muted:a,sm:o,md:s,lg:c,dragging:l,clickable:u,disabled:d,inner:f,text:p,icon:m,title:h,description:g,content:_,actions:v};exports.actions=v,exports.clickable=u,exports.content=_,exports.dashed=t,exports.default=y,exports.description=g,exports.disabled=d,exports.dragging=l,exports.icon=m,exports.inner=f,exports.lg=c,exports.md=s,exports.muted=a,exports.none=r,exports.root=e,exports.sm=o,exports.solid=n,exports.text=p,exports.title=h,exports.transparent=i;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/layout/InteractiveArea/interactive-area.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1eoto_1", t = "_dashed_1eoto_18", n = "_solid_1eoto_21", r = "_none_1eoto_24", i = "_transparent_1eoto_30", a = "_muted_1eoto_33", o = "_sm_1eoto_36", s = "_md_1eoto_42", c = "_lg_1eoto_48", l = "_dragging_1eoto_54", u = "_clickable_1eoto_58", d = "_disabled_1eoto_69", f = "_inner_1eoto_74", p = "_text_1eoto_84", m = "_icon_1eoto_91", h = "_title_1eoto_99", g = "_description_1eoto_105", _ = "_content_1eoto_110", v = "_actions_1eoto_114", y = {
|
|
4
4
|
root: e,
|
|
5
5
|
dashed: t,
|
|
6
6
|
solid: n,
|
|
7
7
|
none: r,
|
|
8
|
-
default: "
|
|
8
|
+
default: "_default_1eoto_27",
|
|
9
9
|
transparent: i,
|
|
10
10
|
muted: a,
|
|
11
11
|
sm: o,
|
|
@@ -15,11 +15,12 @@ var e = "_root_1dvlo_1", t = "_dashed_1dvlo_13", n = "_solid_1dvlo_16", r = "_no
|
|
|
15
15
|
clickable: u,
|
|
16
16
|
disabled: d,
|
|
17
17
|
inner: f,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
text: p,
|
|
19
|
+
icon: m,
|
|
20
|
+
title: h,
|
|
21
|
+
description: g,
|
|
22
|
+
content: _,
|
|
23
|
+
actions: v
|
|
23
24
|
};
|
|
24
25
|
//#endregion
|
|
25
|
-
export {
|
|
26
|
+
export { v as actions, u as clickable, _ as content, t as dashed, y as default, g as description, d as disabled, l as dragging, m as icon, f as inner, c as lg, s as md, a as muted, r as none, e as root, o as sm, n as solid, p as text, h as title, i as transparent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_1ccaa_3`,t=`_danger_1ccaa_62`,n=`_success_1ccaa_65`,r=`_warning_1ccaa_68`,i=`_primary_1ccaa_71`,a=`_secondary_1ccaa_74`,o=`_tertiary_1ccaa_77`,s=`_disabled_1ccaa_80`,c=`_info_1ccaa_83`,l=`_loading_1ccaa_86`,u=`_rotate_1ccaa_1`,d={root:e,"size-xs":`_size-xs_1ccaa_35`,"size-sm":`_size-sm_1ccaa_38`,"size-md":`_size-md_1ccaa_41`,"size-lg":`_size-lg_1ccaa_44`,"size-xl":`_size-xl_1ccaa_47`,"size-2xl":`_size-2xl_1ccaa_50`,"size-3xl":`_size-3xl_1ccaa_53`,"size-4xl":`_size-4xl_1ccaa_56`,"size-5xl":`_size-5xl_1ccaa_59`,danger:t,success:n,warning:r,primary:i,secondary:a,tertiary:o,disabled:s,info:c,loading:l,rotate:u};exports.danger=t,exports.default=d,exports.disabled=s,exports.info=c,exports.loading=l,exports.primary=i,exports.root=e,exports.rotate=u,exports.secondary=a,exports.success=n,exports.tertiary=o,exports.warning=r;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/media/Icon/icon.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_1ccaa_3", t = "_danger_1ccaa_62", n = "_success_1ccaa_65", r = "_warning_1ccaa_68", i = "_primary_1ccaa_71", a = "_secondary_1ccaa_74", o = "_tertiary_1ccaa_77", s = "_disabled_1ccaa_80", c = "_info_1ccaa_83", l = "_loading_1ccaa_86", u = "_rotate_1ccaa_1", d = {
|
|
4
4
|
root: e,
|
|
5
|
-
"size-xs": "_size-
|
|
6
|
-
"size-sm": "_size-
|
|
7
|
-
"size-md": "_size-
|
|
8
|
-
"size-lg": "_size-
|
|
9
|
-
"size-xl": "_size-
|
|
10
|
-
"size-2xl": "_size-
|
|
11
|
-
"size-3xl": "_size-
|
|
12
|
-
"size-4xl": "_size-
|
|
13
|
-
"size-5xl": "_size-
|
|
5
|
+
"size-xs": "_size-xs_1ccaa_35",
|
|
6
|
+
"size-sm": "_size-sm_1ccaa_38",
|
|
7
|
+
"size-md": "_size-md_1ccaa_41",
|
|
8
|
+
"size-lg": "_size-lg_1ccaa_44",
|
|
9
|
+
"size-xl": "_size-xl_1ccaa_47",
|
|
10
|
+
"size-2xl": "_size-2xl_1ccaa_50",
|
|
11
|
+
"size-3xl": "_size-3xl_1ccaa_53",
|
|
12
|
+
"size-4xl": "_size-4xl_1ccaa_56",
|
|
13
|
+
"size-5xl": "_size-5xl_1ccaa_59",
|
|
14
14
|
danger: t,
|
|
15
15
|
success: n,
|
|
16
16
|
warning: r,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_4sas6_7`,t=`_xs_4sas6_28`,n=`_sm_4sas6_28`,r=`_xl_4sas6_34`,i=`_xl2_4sas6_34`,a=`_xl3_4sas6_34`,o=`_xl4_4sas6_34`,s=`_md_4sas6_13`,c=`_lg_4sas6_55`,l=`_left_4sas6_73`,u=`_center_4sas6_76`,d=`_right_4sas6_79`,f=`_danger_4sas6_85`,p=`_primary_4sas6_88`,m=`_success_4sas6_91`,h=`_warning_4sas6_94`,g=`_info_4sas6_97`,_=`_underline_4sas6_103`,v=`_highlight_4sas6_109`,y={root:e,xs:t,sm:n,xl:r,xl2:i,xl3:a,xl4:o,md:s,lg:c,left:l,center:u,right:d,danger:f,primary:p,success:m,warning:h,info:g,underline:_,highlight:v};exports.center=u,exports.danger=f,exports.default=y,exports.highlight=v,exports.info=g,exports.left=l,exports.lg=c,exports.md=s,exports.primary=p,exports.right=d,exports.root=e,exports.sm=n,exports.success=m,exports.underline=_,exports.warning=h,exports.xl=r,exports.xl2=i,exports.xl3=a,exports.xl4=o,exports.xs=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/typography/Title/title.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_4sas6_7", t = "_xs_4sas6_28", n = "_sm_4sas6_28", r = "_xl_4sas6_34", i = "_xl2_4sas6_34", a = "_xl3_4sas6_34", o = "_xl4_4sas6_34", s = "_md_4sas6_13", c = "_lg_4sas6_55", l = "_left_4sas6_73", u = "_center_4sas6_76", d = "_right_4sas6_79", f = "_danger_4sas6_85", p = "_primary_4sas6_88", m = "_success_4sas6_91", h = "_warning_4sas6_94", g = "_info_4sas6_97", _ = "_underline_4sas6_103", v = "_highlight_4sas6_109", y = {
|
|
4
4
|
root: e,
|
|
5
5
|
xs: t,
|
|
6
6
|
sm: n,
|
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.5.
|
|
7
|
+
**wimui** v0.5.2 — a React 19 component library: 216 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
|
|
|
@@ -1679,8 +1679,8 @@ Useful for using the button styles with Link components (e.g. from React Router
|
|
|
1679
1679
|
- `titleTag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"` = "h4" — HTML tag used for the alert title
|
|
1680
1680
|
@default "h4"
|
|
1681
1681
|
- `description: React.ReactNode` — Description text of the alert
|
|
1682
|
-
- `intent: FeedbackIntent` = "
|
|
1683
|
-
@default "
|
|
1682
|
+
- `intent: FeedbackIntent` = "default" — Intent (semantic state) of the alert
|
|
1683
|
+
@default "default"
|
|
1684
1684
|
- `icon: React.ReactNode` — Custom icon. When omitted, a default icon matching the intent is displayed.
|
|
1685
1685
|
- `onClose: () => void` — Called when the close button is clicked. Providing it shows the close button.
|
|
1686
1686
|
- `className: string` — Additional CSS class name
|
|
@@ -1692,8 +1692,8 @@ Useful for using the button styles with Link components (e.g. from React Router
|
|
|
1692
1692
|
- **Banner** — Top prominent messages
|
|
1693
1693
|
- `title: React.ReactNode` — Title of the banner
|
|
1694
1694
|
- `description: React.ReactNode` — Description text of the banner
|
|
1695
|
-
- `intent: FeedbackIntent` = "
|
|
1696
|
-
@default "
|
|
1695
|
+
- `intent: FeedbackIntent` = "default" — Intent (semantic state) of the banner
|
|
1696
|
+
@default "default"
|
|
1697
1697
|
- `icon: boolean | React.ReactNode` = true — Whether to show the icon, or a custom icon element
|
|
1698
1698
|
@default true
|
|
1699
1699
|
- `extra: React.ReactNode` — Action element (e.g. a Button component)
|
|
@@ -1751,7 +1751,8 @@ When a function is passed, it is called as (error, errorInfo, reset) => ReactNod
|
|
|
1751
1751
|
- `title: ReactNode` (required) — The title of notification
|
|
1752
1752
|
- `description: ReactNode` — The description of notification
|
|
1753
1753
|
- `icon: ReactNode` — The icon of notification
|
|
1754
|
-
- `intent: FeedbackIntent` — The intent of notification
|
|
1754
|
+
- `intent: FeedbackIntent` = "default" — The intent of notification
|
|
1755
|
+
@default "default"
|
|
1755
1756
|
- `onClose: (id?: string) => void` — Callback when notification is closed
|
|
1756
1757
|
- `closable: boolean` = true — Whether to show close button
|
|
1757
1758
|
- `className: string` — Additional class name
|
|
@@ -1770,7 +1771,8 @@ When a function is passed, it is called as (error, errorInfo, reset) => ReactNod
|
|
|
1770
1771
|
- `indeterminate: boolean` = false — If true, shows an indeterminate animation instead of a value.
|
|
1771
1772
|
@default false
|
|
1772
1773
|
- **Result** — Task status indicator
|
|
1773
|
-
- `intent: Extract<WimIntent, "success" | "danger" | "info" | "warning">` = "
|
|
1774
|
+
- `intent: Extract< WimIntent, "default" | "success" | "danger" | "info" | "warning" >` = "default" — Semantic intent — determines the icon and color.
|
|
1775
|
+
@default "default"
|
|
1774
1776
|
- `status: "404" | "403" | "500"` — HTTP error status — adds a status-specific CSS class and shows a neutral icon.
|
|
1775
1777
|
Use for error pages (404, 403, 500).
|
|
1776
1778
|
- `title: ReactNode` — The title
|
|
@@ -1800,8 +1802,8 @@ Use for error pages (404, 403, 500).
|
|
|
1800
1802
|
- `message: string` (required) — Message displayed in the snackbar
|
|
1801
1803
|
- `open: boolean` = false — Whether the snackbar is shown
|
|
1802
1804
|
@default false
|
|
1803
|
-
- `intent: FeedbackIntent` = "
|
|
1804
|
-
@default "
|
|
1805
|
+
- `intent: FeedbackIntent` = "default" — Intent (semantic state)
|
|
1806
|
+
@default "default"
|
|
1805
1807
|
- `position: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right"` = "bottom-center" — Position on the screen
|
|
1806
1808
|
@default "bottom-center"
|
|
1807
1809
|
- `autoHideDuration: number` = 5000 — Time in milliseconds before the snackbar closes automatically. Set 0 to disable auto-close.
|
|
@@ -1824,8 +1826,8 @@ Use for error pages (404, 403, 500).
|
|
|
1824
1826
|
- `id: string` — Identifier of the toast, passed to onClose. Used by ToastProvider to manage a stack.
|
|
1825
1827
|
- `title: string` — Title of the toast.
|
|
1826
1828
|
- `description: string` — Description text displayed below the title.
|
|
1827
|
-
- `intent: FeedbackIntent` = "
|
|
1828
|
-
@default "
|
|
1829
|
+
- `intent: FeedbackIntent` = "default" — Intent (semantic state) of the toast.
|
|
1830
|
+
@default "default"
|
|
1829
1831
|
- `duration: number` = 3000 — Time in milliseconds before the toast closes automatically. Set 0 to disable auto-close.
|
|
1830
1832
|
@default 3000
|
|
1831
1833
|
- `open: boolean` = true — Whether the toast is shown.
|
|
@@ -2726,8 +2728,8 @@ Defaults to the localized `form.optional` string.
|
|
|
2726
2728
|
- `width: string | number` = "100%" — The width of the chart (e.g., "100%", 500).
|
|
2727
2729
|
@default "100%"
|
|
2728
2730
|
- `title: string` — Optional title displayed above the chart.
|
|
2729
|
-
- `colorRange: [string, string]` = ["var(--wim-color-surface-variant)", "var(--wim-color-primary)"] — Colors used for the lowest and highest values.
|
|
2730
|
-
@default ["var(--wim-color-surface-variant)", "var(--wim-color-primary)"]
|
|
2731
|
+
- `colorRange: [string, string]` = ["var(--wim-color-surface-variant)", "var(--wim-color-chart-primary)"] — Colors used for the lowest and highest values.
|
|
2732
|
+
@default ["var(--wim-color-surface-variant)", "var(--wim-color-chart-primary)"]
|
|
2731
2733
|
- `animated: boolean` = false — Whether to animate the cells on mount.
|
|
2732
2734
|
@default false
|
|
2733
2735
|
- **LineChart** — Line charts
|
|
@@ -2783,7 +2785,7 @@ Defaults to the localized `form.optional` string.
|
|
|
2783
2785
|
- `type: "line" | "area" | "bar"` = "line" — Visual form of the sparkline
|
|
2784
2786
|
- `width: number | string` = 100 — Width of the sparkline (number in px, or a CSS value such as "100%")
|
|
2785
2787
|
- `height: number` = 24 — Height of the sparkline in px
|
|
2786
|
-
- `color: string` = "var(--wim-color-primary)" — Stroke/fill color (defaults to the primary chart color)
|
|
2788
|
+
- `color: string` = "var(--wim-color-chart-primary)" — Stroke/fill color (defaults to the primary chart color)
|
|
2787
2789
|
- `strokeWidth: number` = 2 — Stroke width for line and area types
|
|
2788
2790
|
- `showLastDot: boolean` = false — Whether to emphasize the last data point with a dot (line and area only)
|
|
2789
2791
|
- `min: number` — Lower bound of the y-axis domain (defaults to the data minimum)
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.5.
|
|
7
|
+
**wimui** v0.5.2 — a React 19 component library: 216 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
|
|