wimui 0.71.0 → 0.72.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.
Files changed (84) hide show
  1. package/dist/components/data-display/List/List.cjs +1 -1
  2. package/dist/components/data-display/List/List.d.ts +5 -1
  3. package/dist/components/data-display/List/List.js +3 -3
  4. package/dist/components/media/Lightbox/Lightbox.cjs +1 -1
  5. package/dist/components/media/Lightbox/Lightbox.d.ts +2 -1
  6. package/dist/components/media/Lightbox/Lightbox.js +3 -3
  7. package/dist/llms/AIResponseFeedback.md +3 -3
  8. package/dist/llms/AgentStatus.md +1 -1
  9. package/dist/llms/Alert.md +1 -1
  10. package/dist/llms/Avatar.md +2 -2
  11. package/dist/llms/AvatarGroup.md +1 -1
  12. package/dist/llms/Badge.md +2 -2
  13. package/dist/llms/Banner.md +1 -1
  14. package/dist/llms/Blockquote.md +1 -1
  15. package/dist/llms/Breadcrumb.md +1 -1
  16. package/dist/llms/Button.md +2 -2
  17. package/dist/llms/Cascader.md +1 -1
  18. package/dist/llms/Chip.md +2 -2
  19. package/dist/llms/ColorInput.md +2 -2
  20. package/dist/llms/ColorPicker.md +2 -2
  21. package/dist/llms/CopyButton.md +1 -1
  22. package/dist/llms/Countdown.md +1 -1
  23. package/dist/llms/CounterTextarea.md +2 -2
  24. package/dist/llms/CreditCardInput.md +3 -3
  25. package/dist/llms/DatePicker.md +2 -2
  26. package/dist/llms/DescriptionList.md +1 -1
  27. package/dist/llms/FileUpload.md +1 -1
  28. package/dist/llms/FloatButton.md +2 -2
  29. package/dist/llms/HamburgerMenu.md +1 -1
  30. package/dist/llms/IconButton.md +2 -2
  31. package/dist/llms/Image.md +1 -1
  32. package/dist/llms/Indicator.md +1 -1
  33. package/dist/llms/Input.md +2 -2
  34. package/dist/llms/InputBase.md +2 -2
  35. package/dist/llms/InputMask.md +2 -2
  36. package/dist/llms/InteractiveArea.md +1 -1
  37. package/dist/llms/Kbd.md +1 -1
  38. package/dist/llms/KeyboardShortcuts.md +1 -1
  39. package/dist/llms/Leaderboard.md +1 -1
  40. package/dist/llms/Link.md +1 -1
  41. package/dist/llms/LinkButton.md +2 -2
  42. package/dist/llms/List.md +1 -1
  43. package/dist/llms/Loader.md +1 -1
  44. package/dist/llms/ModelSelector.md +1 -1
  45. package/dist/llms/MultiSelect.md +1 -1
  46. package/dist/llms/Notification.md +1 -1
  47. package/dist/llms/PasswordInput.md +2 -2
  48. package/dist/llms/PasswordStrength.md +1 -1
  49. package/dist/llms/Popconfirm.md +1 -1
  50. package/dist/llms/Popover.md +1 -1
  51. package/dist/llms/Presence.md +1 -1
  52. package/dist/llms/Progress.md +2 -2
  53. package/dist/llms/ProgressRing.md +2 -2
  54. package/dist/llms/Rating.md +1 -1
  55. package/dist/llms/Reaction.md +1 -1
  56. package/dist/llms/Result.md +1 -1
  57. package/dist/llms/RichTextEditor.md +3 -3
  58. package/dist/llms/ScrollProgress.md +1 -1
  59. package/dist/llms/SearchInput.md +2 -2
  60. package/dist/llms/SegmentedControl.md +1 -1
  61. package/dist/llms/Select.md +2 -2
  62. package/dist/llms/SmartSearchInput.md +2 -2
  63. package/dist/llms/Snackbar.md +1 -1
  64. package/dist/llms/Span.md +2 -2
  65. package/dist/llms/Spinner.md +1 -1
  66. package/dist/llms/SplitButton.md +1 -1
  67. package/dist/llms/Switch.md +1 -1
  68. package/dist/llms/TabNavigation.md +1 -1
  69. package/dist/llms/Tag.md +2 -2
  70. package/dist/llms/TagInput.md +2 -2
  71. package/dist/llms/Text.md +2 -2
  72. package/dist/llms/Textarea.md +2 -2
  73. package/dist/llms/ThemeToggle.md +3 -3
  74. package/dist/llms/TimePicker.md +2 -2
  75. package/dist/llms/Toast.md +1 -1
  76. package/dist/llms/ToggleGroup.md +1 -1
  77. package/dist/llms/Toolbar.md +1 -1
  78. package/dist/llms/Tooltip.md +1 -1
  79. package/dist/llms/TreeSelect.md +1 -1
  80. package/dist/llms/UsageMeter.md +1 -1
  81. package/dist/llms-full.txt +109 -109
  82. package/dist/llms.txt +1 -1
  83. package/dist/wimui.umd.js +5 -5
  84. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../media/Icon/Icon.cjs"),r=require("../../_internal/mergeRefs.cjs"),i=require("./list.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=(0,a.createContext)({size:`md`}),l=a.default.forwardRef(({asChild:e=!1,size:n=`md`,spacing:a=`normal`,bordered:l=!1,fullWidth:u=!1,hoverable:d=!1,children:f,className:p,...m},h)=>{let g=e?t.Root:`ul`;return(0,s.jsx)(c.Provider,{value:{size:n},children:(0,s.jsx)(g,{className:(0,o.default)(`wim-list`,i.default.root,i.default[n],i.default[`spacing-${a}`],l&&i.default.bordered,u&&i.default.fullWidth,d&&i.default.hoverable,p),ref:r.mergeRefs(h),...m,children:(0,s.jsx)(t.Slottable,{children:f})})})}),u=a.default.forwardRef(({asChild:e=!1,children:r,className:l,iconName:u,iconPosition:d=`left`,iconColor:f,selected:p=!1,...m},h)=>{let{size:g}=(0,a.useContext)(c);return(0,s.jsx)(e?t.Root:`li`,{className:(0,o.default)(i.default.item,u&&i.default.withIcon,p&&i.default.selected,l),ref:h,...m,children:u?(0,s.jsxs)(`div`,{className:i.default.itemContent,children:[d===`left`&&(0,s.jsx)(`div`,{className:i.default.iconContainer,children:(0,s.jsx)(n.Icon,{name:u,size:g,color:f,className:i.default.icon})}),(0,s.jsx)(`div`,{className:i.default.text,children:(0,s.jsx)(t.Slottable,{children:r})}),d===`right`&&(0,s.jsx)(`div`,{className:i.default.iconContainer,children:(0,s.jsx)(n.Icon,{name:u,size:g,color:f,className:i.default.icon})})]}):(0,s.jsx)(t.Slottable,{children:r})})});l.displayName=`List`,u.displayName=`List.Item`,exports.List=l,exports.ListItem=u;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../media/Icon/Icon.cjs"),r=require("../../_internal/mergeRefs.cjs"),i=require("./list.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=(0,a.createContext)({size:`md`}),l=a.default.forwardRef(({asChild:e=!1,size:n=`md`,spacing:a=`normal`,bordered:l=!1,fullWidth:u=!1,hoverable:d=!1,children:f,className:p,...m},h)=>{let g=e?t.Root:`ul`;return(0,s.jsx)(c.Provider,{value:{size:n},children:(0,s.jsx)(g,{className:(0,o.default)(`wim-list`,i.default.root,i.default[n],i.default[`spacing-${a}`],l&&i.default.bordered,u&&i.default.fullWidth,d&&i.default.hoverable,p),ref:r.mergeRefs(h),...m,children:(0,s.jsx)(t.Slottable,{children:f})})})}),u=a.default.forwardRef(({asChild:e=!1,children:r,className:l,iconName:u,iconPosition:d=`left`,iconColor:f,selected:p=!1,...m},h)=>{let{size:g}=(0,a.useContext)(c);return(0,s.jsx)(e?t.Root:`li`,{className:(0,o.default)(i.default.item,u&&i.default.withIcon,p&&i.default.selected,l),ref:h,...m,children:u?(0,s.jsxs)(`div`,{className:i.default.itemContent,children:[d===`left`&&(0,s.jsx)(`div`,{className:i.default.iconContainer,children:(0,s.jsx)(n.Icon,{name:u,size:g,color:f,className:i.default.icon})}),(0,s.jsx)(`div`,{className:i.default.text,children:(0,s.jsx)(t.Slottable,{children:r})}),d===`right`&&(0,s.jsx)(`div`,{className:i.default.iconContainer,children:(0,s.jsx)(n.Icon,{name:u,size:g,color:f,className:i.default.icon})})]}):(0,s.jsx)(t.Slottable,{children:r})})}),d=l;d.Item=u,l.displayName=`List`,u.displayName=`List.Item`,exports.List=d,exports.ListItem=u;
@@ -15,7 +15,7 @@ export interface ListProps extends React.HTMLAttributes<HTMLElement> {
15
15
  /** Whether items highlight on hover */
16
16
  hoverable?: boolean;
17
17
  }
18
- export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLElement>>;
18
+ declare const ListRoot: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLElement>>;
19
19
  export interface ListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
20
20
  /** Whether to render as a child element. */
21
21
  asChild?: boolean;
@@ -31,3 +31,7 @@ export interface ListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
31
31
  selected?: boolean;
32
32
  }
33
33
  export declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
34
+ export declare const List: typeof ListRoot & {
35
+ Item: typeof ListItem;
36
+ };
37
+ export {};
@@ -52,7 +52,7 @@ var d = o({ size: "md" }), f = a.forwardRef(({ asChild: n = !1, size: a = "md",
52
52
  ]
53
53
  }) : /* @__PURE__ */ l(t, { children: a })
54
54
  });
55
- });
56
- f.displayName = "List", p.displayName = "List.Item";
55
+ }), m = f;
56
+ m.Item = p, f.displayName = "List", p.displayName = "List.Item";
57
57
  //#endregion
58
- export { f as List, p as ListItem };
58
+ export { m as List, p as ListItem };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../../i18n/useWimTranslation.cjs"),r=require("../../_internal/OverlayBase.cjs"),i=require("../../../i18n/generated/components.cjs"),a=require("../../../icon/chevron-left.cjs"),o=require("../../../icon/chevron-right.cjs"),s=require("../../../icon/close.cjs"),c=require("../../../icon/minus.cjs"),l=require("../../../icon/plus.cjs"),u=require("../Icon/Icon.cjs"),d=require("../../_internal/useAnnounce.cjs"),f=require("./lightbox.module.cjs");let p=require("react");p=e.__toESM(p,1);let m=require("classnames");m=e.__toESM(m,1);let h=require("react/jsx-runtime");var g=(0,p.createContext)(void 0),_=()=>{let e=(0,p.useContext)(g);if(!e)throw Error(`Lightbox components must be used within Lightbox`);return e},v=({children:e,open:t,onOpenChange:n,defaultOpen:r=!1,defaultIndex:i=0})=>{let[a,o]=(0,p.useState)(r),[s,c]=(0,p.useState)(i),[l,u]=(0,p.useState)([]),[d,f]=(0,p.useState)(null);if(d!==null){let e=l.findIndex(e=>e.src===d);e!==-1&&(f(null),e!==s&&c(e))}let m=t!==void 0,_=m?t:a,v=(0,p.useCallback)(e=>{m||o(e),n?.(e)},[m,n]),y=(0,p.useCallback)(e=>{let t=-1;return u(n=>(t=n.length,[...n,e])),t},[]),b=(0,p.useCallback)(e=>{u(t=>t.some(t=>t.src===e.src)?t:[...t,e]),f(e.src),v(!0)},[v]),x=(0,p.useCallback)(e=>{},[]);return(0,h.jsx)(g.Provider,{value:{open:_,setOpen:v,currentIndex:s,setCurrentIndex:c,items:l,openItem:b,setItems:u,registerItem:y,unregisterItem:x},children:e})},y=({children:e,className:r,onClick:a,asChild:o=!1,index:s,src:c,alt:l,caption:u,...d})=>{let{setOpen:p,setCurrentIndex:g,items:v,openItem:y}=_(),{t:b}=n.useWimTranslation(i.componentsNs),x=e=>{a?.(e),c&&s===void 0?y({src:c,alt:l,caption:u}):(s!==void 0&&g(s),p(!0))},S=o?t.Root:`button`,C=s===void 0?void 0:v[s]?.alt,w=d[`aria-label`]!==void 0||d[`aria-labelledby`]!==void 0,T=l??C,E=w?void 0:T?b(`lightbox.open_named`,{name:T}):b(`lightbox.open`);return(0,h.jsx)(S,{type:`button`,className:(0,m.default)(f.default.trigger,r),onClick:x,"aria-label":E,...d,children:(0,h.jsx)(t.Slottable,{children:e})})},b=({className:e,showCloseButton:t=!0,showNavigation:g=!0,showCounter:v=!0,closeOnOverlayClick:y=!0,...b})=>{let{open:x,setOpen:S,currentIndex:C,setCurrentIndex:w,items:T}=_(),{t:E}=n.useWimTranslation(i.componentsNs),[D,O]=(0,p.useState)(1),{announce:k,clear:A,region:j}=d.useAnnounce();(0,p.useEffect)(()=>{x||A()},[x,A]);let M=(0,p.useCallback)(e=>{let t=T[e],n=t?.title||t?.alt,r=E(`lightbox.image_status`,{current:e+1,total:T.length});k(n?`${r}: ${n}`:r),w(e),O(1)},[T,w,E,k]),N=(0,p.useCallback)(()=>{M((C-1+T.length)%T.length)},[C,T.length,M]),P=(0,p.useCallback)(()=>{M((C+1)%T.length)},[C,T.length,M]),F=()=>{O(e=>e===1?2:1)};(0,p.useEffect)(()=>{if(!x)return;let e=e=>{e.key===`ArrowLeft`&&N(),e.key===`ArrowRight`&&P(),e.key===`Escape`&&S(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x,N,P,S]);let I=T[C];return I?(0,h.jsx)(r.OverlayBase,{...b,open:x,onOpenChange:S,closeOnOverlayClick:y,overlayClassName:f.default.overlay,className:(0,m.default)(`wim-lightbox`,f.default.contentRoot,e),"aria-label":b[`aria-labelledby`]?void 0:b[`aria-label`]??(I.title||I.alt||E(`lightbox.dialog`)),transitionProps:{preset:`fade`,enter:f.default.contentEnter,enterFrom:f.default.contentEnterFrom,enterTo:f.default.contentEnterTo},children:(0,h.jsxs)(`div`,{className:f.default.container,children:[j,(0,h.jsxs)(`div`,{className:f.default.header,children:[v&&T.length>1&&(0,h.jsx)(`div`,{className:f.default.counter,children:E(`lightbox.counter`,{current:C+1,total:T.length})}),(0,h.jsxs)(`div`,{className:f.default.controls,children:[(0,h.jsx)(`button`,{className:f.default.iconButton,onClick:F,"aria-label":E(D>1?`lightbox.zoom_out`:`lightbox.zoom_in`),children:D>1?(0,h.jsx)(u.Icon,{component:c.default}):(0,h.jsx)(u.Icon,{component:l.default})}),t&&(0,h.jsx)(`button`,{className:f.default.iconButton,onClick:()=>S(!1),"aria-label":E(`lightbox.close`),children:(0,h.jsx)(u.Icon,{component:s.default})})]})]}),(0,h.jsxs)(`div`,{className:f.default.viewport,children:[g&&T.length>1&&(0,h.jsx)(`button`,{className:(0,m.default)(f.default.navButton,f.default.prev),onClick:N,"aria-label":E(`lightbox.previous`),children:(0,h.jsx)(u.Icon,{component:a.default})}),(0,h.jsx)(`div`,{className:f.default.mediaWrapper,style:{transform:`scale(${D})`},children:(0,h.jsx)(`img`,{src:I.src,alt:I.alt||``,className:f.default.image})}),g&&T.length>1&&(0,h.jsx)(`button`,{className:(0,m.default)(f.default.navButton,f.default.next),onClick:P,"aria-label":E(`lightbox.next`),children:(0,h.jsx)(u.Icon,{component:o.default})})]}),(I.title||I.caption)&&(0,h.jsxs)(`div`,{className:f.default.footer,children:[I.title&&(0,h.jsx)(`h3`,{className:f.default.title,children:I.title}),I.caption&&(0,h.jsx)(`p`,{className:f.default.caption,children:I.caption})]})]})}):null},x=({items:e,children:t})=>{let{setItems:n}=_();return(0,p.useEffect)(()=>{n(e)},[e,n]),(0,h.jsx)(`div`,{className:f.default.gallery,children:t})},S=v;S.Trigger=y,S.Content=b,S.Gallery=x,S.displayName=`Lightbox`,y.displayName=`Lightbox.Trigger`,b.displayName=`Lightbox.Content`,x.displayName=`Lightbox.Gallery`,exports.Lightbox=v,exports.LightboxContent=b,exports.LightboxGallery=x,exports.LightboxRoot=S,exports.default=S,exports.LightboxTrigger=y,exports.useLightbox=_;
2
+ const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../../i18n/useWimTranslation.cjs"),r=require("../../_internal/OverlayBase.cjs"),i=require("../../../i18n/generated/components.cjs"),a=require("../../../icon/chevron-left.cjs"),o=require("../../../icon/chevron-right.cjs"),s=require("../../../icon/close.cjs"),c=require("../../../icon/minus.cjs"),l=require("../../../icon/plus.cjs"),u=require("../Icon/Icon.cjs"),d=require("../../_internal/useAnnounce.cjs"),f=require("./lightbox.module.cjs");let p=require("react");p=e.__toESM(p,1);let m=require("classnames");m=e.__toESM(m,1);let h=require("react/jsx-runtime");var g=(0,p.createContext)(void 0),_=()=>{let e=(0,p.useContext)(g);if(!e)throw Error(`Lightbox components must be used within Lightbox`);return e},v=({children:e,open:t,onOpenChange:n,defaultOpen:r=!1,defaultIndex:i=0})=>{let[a,o]=(0,p.useState)(r),[s,c]=(0,p.useState)(i),[l,u]=(0,p.useState)([]),[d,f]=(0,p.useState)(null);if(d!==null){let e=l.findIndex(e=>e.src===d);e!==-1&&(f(null),e!==s&&c(e))}let m=t!==void 0,_=m?t:a,v=(0,p.useCallback)(e=>{m||o(e),n?.(e)},[m,n]),y=(0,p.useCallback)(e=>{let t=-1;return u(n=>(t=n.length,[...n,e])),t},[]),b=(0,p.useCallback)(e=>{u(t=>t.some(t=>t.src===e.src)?t:[...t,e]),f(e.src),v(!0)},[v]),x=(0,p.useCallback)(e=>{},[]);return(0,h.jsx)(g.Provider,{value:{open:_,setOpen:v,currentIndex:s,setCurrentIndex:c,items:l,openItem:b,setItems:u,registerItem:y,unregisterItem:x},children:e})},y=({children:e,className:r,onClick:a,asChild:o=!1,index:s,src:c,alt:l,caption:u,...d})=>{let{setOpen:p,setCurrentIndex:g,items:v,openItem:y}=_(),{t:b}=n.useWimTranslation(i.componentsNs),x=e=>{a?.(e),c&&s===void 0?y({src:c,alt:l,caption:u}):(s!==void 0&&g(s),p(!0))},S=o?t.Root:`button`,C=s===void 0?void 0:v[s]?.alt,w=d[`aria-label`]!==void 0||d[`aria-labelledby`]!==void 0,T=l??C,E=w?void 0:T?b(`lightbox.open_named`,{name:T}):b(`lightbox.open`);return(0,h.jsx)(S,{type:`button`,className:(0,m.default)(f.default.trigger,r),onClick:x,"aria-label":E,...d,children:(0,h.jsx)(t.Slottable,{children:e})})},b=({className:e,showCloseButton:t=!0,showNavigation:g=!0,showCounter:v=!0,closeOnOverlayClick:y=!0,...b})=>{let{open:x,setOpen:S,currentIndex:C,setCurrentIndex:w,items:T}=_(),{t:E}=n.useWimTranslation(i.componentsNs),[D,O]=(0,p.useState)(1),{announce:k,clear:A,region:j}=d.useAnnounce();(0,p.useEffect)(()=>{x||A()},[x,A]);let M=(0,p.useCallback)(e=>{let t=T[e],n=t?.title||t?.alt,r=E(`lightbox.image_status`,{current:e+1,total:T.length});k(n?`${r}: ${n}`:r),w(e),O(1)},[T,w,E,k]),N=(0,p.useCallback)(()=>{M((C-1+T.length)%T.length)},[C,T.length,M]),P=(0,p.useCallback)(()=>{M((C+1)%T.length)},[C,T.length,M]),F=()=>{O(e=>e===1?2:1)};(0,p.useEffect)(()=>{if(!x)return;let e=e=>{e.key===`ArrowLeft`&&N(),e.key===`ArrowRight`&&P(),e.key===`Escape`&&S(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x,N,P,S]);let I=T[C];return I?(0,h.jsx)(r.OverlayBase,{...b,open:x,onOpenChange:S,closeOnOverlayClick:y,overlayClassName:f.default.overlay,className:(0,m.default)(`wim-lightbox`,f.default.contentRoot,e),"aria-label":b[`aria-labelledby`]?void 0:b[`aria-label`]??(I.title||I.alt||E(`lightbox.dialog`)),transitionProps:{preset:`fade`,enter:f.default.contentEnter,enterFrom:f.default.contentEnterFrom,enterTo:f.default.contentEnterTo},children:(0,h.jsxs)(`div`,{className:f.default.container,children:[j,(0,h.jsxs)(`div`,{className:f.default.header,children:[v&&T.length>1&&(0,h.jsx)(`div`,{className:f.default.counter,children:E(`lightbox.counter`,{current:C+1,total:T.length})}),(0,h.jsxs)(`div`,{className:f.default.controls,children:[(0,h.jsx)(`button`,{className:f.default.iconButton,onClick:F,"aria-label":E(D>1?`lightbox.zoom_out`:`lightbox.zoom_in`),children:D>1?(0,h.jsx)(u.Icon,{component:c.default}):(0,h.jsx)(u.Icon,{component:l.default})}),t&&(0,h.jsx)(`button`,{className:f.default.iconButton,onClick:()=>S(!1),"aria-label":E(`lightbox.close`),children:(0,h.jsx)(u.Icon,{component:s.default})})]})]}),(0,h.jsxs)(`div`,{className:f.default.viewport,children:[g&&T.length>1&&(0,h.jsx)(`button`,{className:(0,m.default)(f.default.navButton,f.default.prev),onClick:N,"aria-label":E(`lightbox.previous`),children:(0,h.jsx)(u.Icon,{component:a.default})}),(0,h.jsx)(`div`,{className:f.default.mediaWrapper,style:{transform:`scale(${D})`},children:(0,h.jsx)(`img`,{src:I.src,alt:I.alt||``,className:f.default.image})}),g&&T.length>1&&(0,h.jsx)(`button`,{className:(0,m.default)(f.default.navButton,f.default.next),onClick:P,"aria-label":E(`lightbox.next`),children:(0,h.jsx)(u.Icon,{component:o.default})})]}),(I.title||I.caption)&&(0,h.jsxs)(`div`,{className:f.default.footer,children:[I.title&&(0,h.jsx)(`h3`,{className:f.default.title,children:I.title}),I.caption&&(0,h.jsx)(`p`,{className:f.default.caption,children:I.caption})]})]})}):null},x=({items:e,children:t})=>{let{setItems:n}=_();return(0,p.useEffect)(()=>{n(e)},[e,n]),(0,h.jsx)(`div`,{className:f.default.gallery,children:t})},S=v,C=S;S.Trigger=y,S.Content=b,S.Gallery=x,v.displayName=`Lightbox`,y.displayName=`Lightbox.Trigger`,b.displayName=`Lightbox.Content`,x.displayName=`Lightbox.Gallery`,exports.Lightbox=S,exports.LightboxContent=b,exports.LightboxGallery=x,exports.LightboxRoot=C,exports.default=C,exports.LightboxTrigger=y,exports.useLightbox=_;
@@ -31,7 +31,6 @@ export interface LightboxProps {
31
31
  /** Index of the item shown first */
32
32
  defaultIndex?: number;
33
33
  }
34
- export declare const Lightbox: ({ children, open: controlledOpen, onOpenChange, defaultOpen, defaultIndex, }: LightboxProps) => React.JSX.Element;
35
34
  export interface LightboxTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
36
35
  asChild?: boolean;
37
36
  index?: number;
@@ -84,5 +83,7 @@ export interface LightboxComponent extends React.FC<LightboxProps> {
84
83
  Content: typeof LightboxContent;
85
84
  Gallery: typeof LightboxGallery;
86
85
  }
86
+ export declare const Lightbox: LightboxComponent;
87
+ /** Same as `Lightbox`. Kept for existing imports. */
87
88
  export declare const LightboxRoot: LightboxComponent;
88
89
  export default LightboxRoot;
@@ -195,7 +195,7 @@ var x = p(void 0), S = () => {
195
195
  className: f.gallery,
196
196
  children: t
197
197
  });
198
- }, D = C;
199
- D.Trigger = w, D.Content = T, D.Gallery = E, D.displayName = "Lightbox", w.displayName = "Lightbox.Trigger", T.displayName = "Lightbox.Content", E.displayName = "Lightbox.Gallery";
198
+ }, D = C, O = D;
199
+ D.Trigger = w, D.Content = T, D.Gallery = E, C.displayName = "Lightbox", w.displayName = "Lightbox.Trigger", T.displayName = "Lightbox.Content", E.displayName = "Lightbox.Gallery";
200
200
  //#endregion
201
- export { C as Lightbox, T as LightboxContent, E as LightboxGallery, D as LightboxRoot, D as default, w as LightboxTrigger, S as useLightbox };
201
+ export { D as Lightbox, T as LightboxContent, E as LightboxGallery, O as LightboxRoot, O as default, w as LightboxTrigger, S as useLightbox };
@@ -11,9 +11,9 @@ import { AIResponseFeedback } from "wimui/ai";
11
11
 
12
12
  ## Props
13
13
 
14
- - `feedback: AIFeedbackValue | null` — Currently selected feedback value (controlled)
15
- - `defaultFeedback: AIFeedbackValue | null` = null — Default feedback value (uncontrolled)
16
- - `onFeedback: (value: AIFeedbackValue | null) => void` — Called when user clicks a feedback button. Passes null when deselected.
14
+ - `feedback: ("positive" | "negative") | null` — Currently selected feedback value (controlled)
15
+ - `defaultFeedback: ("positive" | "negative") | null` = null — Default feedback value (uncontrolled)
16
+ - `onFeedback: (value: ("positive" | "negative") | null) => void` — Called when user clicks a feedback button. Passes null when deselected.
17
17
  - `showRegenerate: boolean` = false — Whether to show the regenerate button
18
18
  - `onRegenerate: () => void` — Called when the regenerate button is clicked
19
19
  - `disabled: boolean` = false — Whether all buttons are disabled
@@ -13,7 +13,7 @@ import { AgentStatus } from "wimui/ai";
13
13
 
14
14
  - `status: "idle" | "thinking" | "running" | "waiting" | "done" | "error"` (required) — Current state of the agent
15
15
  - `message: string` — Optional description of what the agent is doing; falls back to the localized status label
16
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size variant
16
+ - `size: "sm" | "md" | "lg"` = "md" — Size variant
17
17
  - `showLabel: boolean` = true — Whether to show the text label next to the indicator
18
18
  - `className: string` — Additional CSS class
19
19
 
@@ -14,7 +14,7 @@ import { Alert } from "wimui/feedback";
14
14
  - `title: React.ReactNode` — Title of the alert
15
15
  - `titleTag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "p" | "strong" | "span"` = "div" — HTML tag used for the alert title. The default is a `div`: an alert is a notice, not a section of the document, so its title does not belong in the heading outline. Making it one also breaks `heading-order` as soon as the alert sits under anything other than an `h3`. Pass a heading only when the alert really does head a section of the page. @default "div"
16
16
  - `description: React.ReactNode` — Description text of the alert
17
- - `intent: FeedbackIntent` = "default" — Intent (semantic state) of the alert @default "default"
17
+ - `intent: "default" | "info" | "success" | "warning" | "danger"` = "default" — Intent (semantic state) of the alert @default "default"
18
18
  - `icon: React.ReactNode` — Custom icon. When omitted, a default icon matching the intent is displayed.
19
19
  - `onClose: () => void` — Called when the close button is clicked. Providing it shows the close button.
20
20
  - `className: string` — Additional CSS class name
@@ -15,9 +15,9 @@ import { Avatar } from "wimui/data-display";
15
15
  - `alt: string` = "" — Alternative text for the image
16
16
  - `initials: string` — Initials shown as a fallback when no image is available
17
17
  - `icon: React.ReactNode` — Icon shown as a fallback when no image or initials are available
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the avatar
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the avatar
19
19
  - `shape: "circle" | "rounded"` = "circle" — Shape of the avatar
20
- - `intent: IndicatorIntent` — Intent (semantic color) applied to the avatar
20
+ - `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` — Intent (semantic color) applied to the avatar
21
21
 
22
22
  ## Design tokens it reads
23
23
 
@@ -15,7 +15,7 @@ import { AvatarGroup } from "wimui/data-display";
15
15
 
16
16
  - `children: React.ReactNode` (required) — Avatar elements to group
17
17
  - `max: number` — Maximum number of avatars to show before collapsing into a count. Ignored with `overflow="collapse"`.
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size applied to the avatars
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size applied to the avatars
19
19
  - `total: number` — Total number of avatars (used to compute the overflow count). Ignored with `overflow="collapse"`.
20
20
  - `overflow: "count" | "collapse"` = "count" — How the avatars that do not fit are handled. `"count"` cuts them by `max` / `total` and shows "+N" as text; `"collapse"` shows as many as fit the width and turns "+N" into a button that lists the hidden people by name. @default "count"
21
21
  - `className: string` — Additional class names
@@ -15,9 +15,9 @@ import { Badge } from "wimui/data-display";
15
15
  - `children: React.ReactNode` — Content to display
16
16
  - `content: React.ReactNode` — Content to display (alternative to children)
17
17
  - `icon: React.ReactNode` — Icon
18
- - `intent: IndicatorIntent` — Intent (semantic state)
18
+ - `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` — Intent (semantic state)
19
19
  - `variant: "solid" | "outline" | "subtle"` — Visual style variant
20
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` — Size
20
+ - `size: "sm" | "md" | "lg"` — Size
21
21
  - `interactive: boolean` = false — Whether to enable the interactive state
22
22
 
23
23
  ## Design tokens it reads
@@ -13,7 +13,7 @@ import { Banner } from "wimui/feedback";
13
13
 
14
14
  - `title: React.ReactNode` — Title of the banner
15
15
  - `description: React.ReactNode` — Description text of the banner
16
- - `intent: FeedbackIntent` = "default" — Intent (semantic state) of the banner @default "default"
16
+ - `intent: "default" | "info" | "success" | "warning" | "danger"` = "default" — Intent (semantic state) of the banner @default "default"
17
17
  - `icon: boolean | React.ReactNode` = true — Whether to show the icon, or a custom icon element @default true
18
18
  - `extra: React.ReactNode` — Action element (e.g. a Button component)
19
19
  - `onClose: () => void` — Called when the close button is clicked. Providing it shows the close button.
@@ -12,7 +12,7 @@ import { Blockquote } from "wimui/typography";
12
12
  ## Props
13
13
 
14
14
  - `asChild: boolean` = false — If true, the blockquote will be rendered as its child, merging its props onto that child.
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Font size of the quote. @default "md"
15
+ - `size: "sm" | "md" | "lg"` = "md" — Font size of the quote. @default "md"
16
16
  - `color: T | (string & {})` — Text color. Accepts a design token color name or any CSS color value.
17
17
  - `content: React.ReactNode` — Quoted content. Alternative to children.
18
18
  - `cite: React.ReactNode` — Source of the quote, rendered in a `<cite>` element.
@@ -15,7 +15,7 @@ import { Breadcrumb } from "wimui/navigation";
15
15
 
16
16
  - `items: BreadcrumbItem[]` (required) — Items to display, from the root to the current page.
17
17
  - `separator: React.ReactNode` — Separator displayed between items. Defaults to a chevron icon.
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the breadcrumb. @default "md"
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the breadcrumb. @default "md"
19
19
  - `overflow: "wrap" | "collapse"` = "wrap" — What happens when the items do not fit on one line. `"wrap"` moves them onto more lines; `"collapse"` keeps the first item and the current page and folds the levels in between into a "…" button that lists them. @default "wrap"
20
20
  - `moreLabel: (count: number) => string` — Accessible name of the "…" button, from the number of hidden levels. Defaults to a localized "Show hidden levels (n)".
21
21
  - `className: string` — Additional CSS class name for the container.
@@ -13,9 +13,9 @@ import { Button } from "wimui/form";
13
13
 
14
14
  - `asChild: boolean` = false — If true, the button will be rendered as its child, merging its props onto that child. Useful for using the button styles with Link components (e.g. from React Router or Next.js).
15
15
  - `backgroundColor: T | (string & {})` — Overrides the button background color with a design token. Usually the `variant` prop is enough; use this prop only as a last resort.
16
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
16
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
17
17
  - `variant: "solid" | "outline" | "ghost"` = "outline" — Visual style variant of the button
18
- - `intent: ButtonIntent` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
18
+ - `intent: "default" | "danger" | "success"` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
19
19
  - `icon: React.ComponentProps<typeof Icon>["name"] | React.ReactNode` — Icon name or custom icon element. An icon-only button (no children) needs `aria-label` or `aria-labelledby`: the icon name is not used as the accessible name.
20
20
  - `iconPosition: "left" | "right"` = "left" — Position of the icon relative to the label
21
21
  - `loading: boolean` = false — Whether to show a loading indicator and disable interaction
@@ -29,7 +29,7 @@ import { Cascader } from "wimui/form";
29
29
  - `separator: string` = " / " — Custom separator for the display value
30
30
  - `allowClear: boolean` = false — Whether to show a clear button when a value is selected
31
31
  - `aria-label: string` — Accessible label for the trigger when no visible label is provided
32
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
32
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
33
33
  - `fullWidth: boolean` = false — Whether to take full width of parent
34
34
 
35
35
  ## Design tokens it reads
package/dist/llms/Chip.md CHANGED
@@ -22,9 +22,9 @@ import { Chip } from "wimui/data-display";
22
22
  - `icon: React.ReactNode` — Icon
23
23
  - `selected: boolean` = false — Whether the chip is selected
24
24
  - `disabled: boolean` = false — Whether the chip is disabled
25
- - `intent: IndicatorIntent` = "neutral" — Intent (semantic state)
25
+ - `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` = "neutral" — Intent (semantic state)
26
26
  - `variant: "solid" | "outline" | "subtle"` = "solid" — Visual style variant
27
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size
27
+ - `size: "sm" | "md" | "lg"` = "md" — Size
28
28
  - `deleteAriaLabel: string` — Accessible label for the delete button
29
29
  - `className: string` — Additional class names
30
30
 
@@ -13,7 +13,7 @@ import { ColorInput } from "wimui/form";
13
13
 
14
14
  ## Props
15
15
 
16
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
16
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
17
17
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
18
18
  - `fullWidth: boolean` = false — Whether to take full width of parent
19
19
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -26,7 +26,7 @@ import { ColorInput } from "wimui/form";
26
26
  - `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
27
27
  - `rightIconClassName: string` — Additional class name for the right icon
28
28
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
29
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
29
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
30
30
  - `label: React.ReactNode` — Field label
31
31
  - `error: string` — Error message
32
32
  - `required: boolean` — Whether to show the required indicator
@@ -11,7 +11,7 @@ import { ColorPicker } from "wimui/form";
11
11
 
12
12
  ## Props
13
13
 
14
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
14
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
15
15
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
16
16
  - `fullWidth: boolean` = false — Whether to take full width of parent
17
17
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -24,7 +24,7 @@ import { ColorPicker } from "wimui/form";
24
24
  - `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
25
25
  - `rightIconClassName: string` — Additional class name for the right icon
26
26
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
27
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
27
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
28
28
  - `label: React.ReactNode` — Field label
29
29
  - `error: string` — Error message
30
30
  - `required: boolean` — Whether to show the required indicator
@@ -12,7 +12,7 @@ import { CopyButton } from "wimui/form";
12
12
  ## Props
13
13
 
14
14
  - `value: string` (required) — Text copied to the clipboard
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
15
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
16
16
  - `className: string` — Additional class names
17
17
  - `aria-label: string` — Accessible label for the button
18
18
  - `aria-labelledby: string` — ID of the element that labels the button. Takes precedence over `aria-label`.
@@ -14,7 +14,7 @@ import { Countdown } from "wimui/data-display";
14
14
  - `target: Date | string | number` (required) — The moment the countdown ends, as a Date object, ISO 8601 string, or epoch milliseconds.
15
15
  - `baseDate: Date | string | number` — Reference point used as "now". When set, the countdown is frozen at that instant (useful for snapshots and tests).
16
16
  - `variant: "digital" | "units"` = "digital" — "digital" renders a compact colon-separated clock (04:12:33); "units" renders one labeled segment per unit (days / hours / min / sec). @default "digital"
17
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the numbers and labels. @default "md"
17
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the numbers and labels. @default "md"
18
18
  - `locale: string` — BCP 47 locale override for unit labels (e.g. "en", "ja", "pt-BR"). @default current i18next language
19
19
  - `unitDisplay: "long" | "short" | "narrow"` = "short" — Length of the unit labels in the "units" variant. @default "short"
20
20
  - `paused: boolean` = false — Pauses the countdown while true. It resumes from the real remaining time (the target moment does not shift). @default false
@@ -12,7 +12,7 @@ import { CounterTextarea } from "wimui/form";
12
12
  ## Props
13
13
 
14
14
  - `asChild: boolean` — If true, the textarea element will be rendered as its child, merging its props onto that child.
15
- - `intent: FieldIntent` — Semantic intent of the field (e.g. error state)
15
+ - `intent: "default" | "danger"` — Semantic intent of the field (e.g. error state)
16
16
  - `variant: "outline" | "ghost"` — Visual style variant of the field
17
17
  - `fullWidth: boolean` = false — Whether to take full width of parent
18
18
  - `fieldSizing: "fixed" | "content"` — Sizing behavior: "fixed" keeps the height, "content" grows with the text
@@ -20,7 +20,7 @@ import { CounterTextarea } from "wimui/form";
20
20
  - `error: string` — Error message
21
21
  - `required: boolean` — Whether to show the required indicator
22
22
  - `layout: "vertical" | "horizontal"` — Layout direction of label and field
23
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
23
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
24
24
  - `showCount: boolean` = true — Whether to show the character count. @default true
25
25
  - `counterPosition: "bottom" | "overlay"` = "bottom" — Position of the counter. "bottom" (default) shows it below the textarea. "overlay" shows it inside the textarea (bottom-right). @default "bottom"
26
26
 
@@ -11,9 +11,9 @@ import { CreditCardInput } from "wimui/form";
11
11
 
12
12
  ## Props
13
13
 
14
- - `onBrandChange: (brand: CreditCardBrand) => void` — Callback when the card brand is detected.
14
+ - `onBrandChange: (brand: ("visa" | "mastercard" | "amex" | "discover" | "jcb" | "diners" | "generic")) => void` — Callback when the card brand is detected.
15
15
  - `asChild: boolean` = false — Whether to render as a child component.
16
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
16
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
17
17
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
18
18
  - `fullWidth: boolean` = false — Whether to take full width of parent
19
19
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -25,7 +25,7 @@ import { CreditCardInput } from "wimui/form";
25
25
  - `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
26
26
  - `rightIconClassName: string` — Additional class name for the right icon
27
27
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
28
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
28
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
29
29
  - `label: React.ReactNode` — Field label
30
30
  - `error: string` — Error message
31
31
  - `required: boolean` — Whether to show the required indicator
@@ -11,7 +11,7 @@ import { DatePicker } from "wimui/form";
11
11
 
12
12
  ## Props
13
13
 
14
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
14
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
15
15
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
16
16
  - `fullWidth: boolean` = false — Whether to take full width of parent
17
17
  - `value: Date | null` — Selected date value (`null` = cleared; omit/`undefined` = uncontrolled)
@@ -28,7 +28,7 @@ import { DatePicker } from "wimui/form";
28
28
  - `required: boolean` — Whether to show the required indicator
29
29
  - `layout: "vertical" | "horizontal"` — Layout direction of label and field
30
30
  - `labels: { placeholder?: string; }` — Labels for manual translation
31
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
31
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
32
32
  - `asChild: boolean` = false — Whether to render as a child element.
33
33
 
34
34
  ## Design tokens it reads
@@ -14,7 +14,7 @@ import { DescriptionList } from "wimui/data-display";
14
14
  - `children: React.ReactNode` (required) — DescriptionListItem elements
15
15
  - `className: string` — Additional class names
16
16
  - `layout: "horizontal" | "vertical" | "compact"` = "horizontal" — Layout of terms and descriptions
17
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the text
17
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the text
18
18
  - `border: boolean` = false — Whether to show borders (alias of bordered)
19
19
  - `bordered: boolean` = false — Whether to show borders
20
20
 
@@ -24,7 +24,7 @@ import { FileUpload } from "wimui/form";
24
24
  - `className: string` — Additional class names
25
25
  - `iconName: React.ComponentProps<typeof Icon>["name"]` — Icon name shown on the button
26
26
  - `iconPosition: "left" | "right"` — Position of the icon relative to the button label
27
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
27
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
28
28
  - `error: string` — Error message
29
29
  - `required: boolean` — Whether to show the required indicator
30
30
  - `layout: "vertical" | "horizontal"` = "vertical" — Layout direction of label and field
@@ -14,9 +14,9 @@ import { FloatButton } from "wimui/form";
14
14
  - `asChild: boolean` = false — If true, the button will be rendered as its child, merging its props onto that child.
15
15
  - `iconName: "CircleIcon" | "SquareIcon" | "LoadingIcon" | "ExternalLinkIcon" | "ArrowUpIcon" | string` = "CircleIcon" — Icon name from the library
16
16
  - `variant: "outline" | "glass"` — 見た目の強さ。既定(未指定)は intent の塗り。 以前は `"default" | "primary" | "glass"` だったが、3 つとも実態とずれていた(T114): `primary` は variant 未指定とまったく同じ規則に落ちる重複、 `default` は**既定の見た目ではなく枠線のある outline** で名前が逆、 SCSS には誰も付けない `.default_intent` が「temporary name」のまま残っていた。
17
- - `intent: ButtonIntent` = "default" — Intent of the button (semantic meaning)
17
+ - `intent: "default" | "danger" | "success"` = "default" — Intent of the button (semantic meaning)
18
18
  - `shape: "circle" | "square"` = "circle" — Shape of the button
19
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
19
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
20
20
  - `label: React.ReactNode` — Label text for extended FAB
21
21
  - `shrink: boolean` = false — Whether to shrink the extended FAB (hide label)
22
22
  - `position: "bottom-right" | "bottom-left" | "bottom-center" | "top-right" | "top-left" | "inline"` = "bottom-right" — Position of the button
@@ -17,7 +17,7 @@ import { HamburgerMenu } from "wimui/navigation";
17
17
  - `open: boolean` = false — Whether the menu is open
18
18
  - `onClick: React.MouseEventHandler<HTMLButtonElement>` — Callback function when the menu is toggled
19
19
  - `onOpenChange: (open: boolean) => void` — Called with the next open state: the opposite of `open` when the button is pressed, and false when Escape is pressed while the menu is open. Escape also moves focus back to the button. Without this callback the button cannot close on Escape, because `open` is controlled.
20
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the hamburger menu
20
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the hamburger menu
21
21
  - `color: string` — Color of the bars
22
22
  - `visibleBelow: "xs" | "sm" | "md" | "lg" | "xl"` — Show only below the given breakpoint (e.g. "md" matches Sidebar's mobile drawer range)
23
23
  - `className: string` — Custom class name
@@ -15,9 +15,9 @@ import { IconButton } from "wimui/form";
15
15
  - `aria-label: string` (required) — Accessible label for the icon-only button
16
16
  - `asChild: unknown` = false
17
17
  - `backgroundColor: T | (string & {})` — Overrides the button background color with a design token. Usually the `variant` prop is enough; use this prop only as a last resort.
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
19
19
  - `variant: "solid" | "outline" | "ghost"` = "outline" — Visual style variant of the button
20
- - `intent: ButtonIntent` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
20
+ - `intent: "default" | "danger" | "success"` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
21
21
  - `icon: React.ComponentProps<typeof Icon>["name"] | React.ReactNode` — Icon name or custom icon element. An icon-only button (no children) needs `aria-label` or `aria-labelledby`: the icon name is not used as the accessible name.
22
22
  - `loading: boolean` = false — Whether to show a loading indicator and disable interaction
23
23
  - `justify: "start" | "center" | "end" | "between"` = "center" — Horizontal alignment of the button content
@@ -26,7 +26,7 @@ import { Image } from "wimui/media";
26
26
  - `backdropFilter: ImageFilterOptions` — Filter applied to the background (effective with transparent images)
27
27
  - `hoverBackdropFilter: ImageFilterOptions` — Filter applied to the background on hover
28
28
  - `transition: "none" | "fast" | "normal" | "slow"` = "normal" — Animation speed when switching filters
29
- - `noise: ComponentSize | "none"` — Intensity of the film-grain (noise) effect
29
+ - `noise: ("xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl") | "none"` — Intensity of the film-grain (noise) effect
30
30
  - `duotone: ImageDuotoneOptions` — Duotone settings
31
31
  - `overlay: ImageOverlayOptions` — Overlay settings
32
32
  - `zoom: boolean | number` = false — Zoom factor on hover (e.g. 1.1) or true (defaults to 1.05)
@@ -13,7 +13,7 @@ import { Indicator } from "wimui/feedback";
13
13
 
14
14
  - `children: React.ReactNode` — Element the indicator dot is attached to. If omitted, only the dot is rendered.
15
15
  - `color: T | (string & {})` = "primary" — Color of the dot. Accepts a design token color name or any CSS color value. @default "primary"
16
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the dot. @default "md"
16
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the dot. @default "md"
17
17
  - `position: "top-right" | "top-left" | "bottom-right" | "bottom-left"` = "top-right" — Corner of the children the dot is placed at. @default "top-right"
18
18
  - `pulse: boolean` = false — If true, the dot pulses to draw attention. @default false
19
19
  - `inline: boolean` = false — If true, renders the dot inline instead of positioning it on a corner. @default false
@@ -11,7 +11,7 @@ import { Input } from "wimui/form";
11
11
 
12
12
  ## Props
13
13
 
14
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
14
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
15
15
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
16
16
  - `fullWidth: boolean` = false — Whether to take full width of parent
17
17
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -24,7 +24,7 @@ import { Input } from "wimui/form";
24
24
  - `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
25
25
  - `rightIconClassName: string` — Additional class name for the right icon
26
26
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
27
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
27
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
28
28
  - `label: React.ReactNode` — Field label
29
29
  - `error: string` — Error message
30
30
  - `required: boolean` — Whether to show the required indicator
@@ -12,10 +12,10 @@ import { InputBase } from "wimui/form";
12
12
  ## Props
13
13
 
14
14
  - `children: React.ReactNode` (required) — Inner form control element(s) wrapped by the shell
15
- - `intent: FieldIntent | WimIntent` = "default" — Semantic intent of the field (e.g. error state)
15
+ - `intent: ("default" | "danger") | ("primary" | "success" | "warning" | "danger" | "info" | "neutral" | "default")` = "default" — Semantic intent of the field (e.g. error state)
16
16
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
17
17
  - `fullWidth: boolean` = false — Whether to take full width of parent
18
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
18
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
19
19
  - `className: string` — Additional class names
20
20
  - `disabled: boolean` — Whether the field is disabled
21
21
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -13,7 +13,7 @@ import { InputMask } from "wimui/form";
13
13
 
14
14
  - `mask: string` (required) — Mask pattern ('9': digit, 'a': letter, '*': alphanumeric; other characters are shown as-is)
15
15
  - `maskChar: string` = "_" — Placeholder character for unfilled mask positions
16
- - `intent: FieldIntent` = "default" — Semantic intent of the field (e.g. error state)
16
+ - `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
17
17
  - `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
18
18
  - `fullWidth: boolean` = false — Whether to take full width of parent
19
19
  - `leftIcon: React.ComponentProps<typeof Icon>["name"]` — Icon name to display on the left side
@@ -26,7 +26,7 @@ import { InputMask } from "wimui/form";
26
26
  - `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
27
27
  - `rightIconClassName: string` — Additional class name for the right icon
28
28
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
29
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
29
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
30
30
  - `label: React.ReactNode` — Field label
31
31
  - `error: string` — Error message
32
32
  - `required: boolean` — Whether to show the required indicator
@@ -17,7 +17,7 @@ import { InteractiveArea } from "wimui/layout";
17
17
  - `actions: ReactNode` — Action elements (buttons, etc.)
18
18
  - `variant: "dashed" | "solid" | "none"` = "dashed" — Border variant
19
19
  - `bgVariant: "default" | "transparent" | "muted"` = "default" — Background variant
20
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size variation
20
+ - `size: "sm" | "md" | "lg"` = "md" — Size variation
21
21
  - `align: "start" | "center"` = "center" — Horizontal alignment of the icon, text and actions. Centred content only reads as deliberate when the area is the one thing in its region — a drop target or a whole result page. Inside a card, a table or a column of prose, use `"start"` so the block lines up with the text around it. @default "center"
22
22
  - `isDragging: boolean` = false — Whether the area is currently in a dragging state (for dropzone)
23
23
  - `isClickable: boolean` = false — Whether the area is clickable
package/dist/llms/Kbd.md CHANGED
@@ -12,7 +12,7 @@ import { Kbd } from "wimui/typography";
12
12
  ## Props
13
13
 
14
14
  - `asChild: boolean` = false — If true, the Kbd will be rendered as its child, merging its props onto that child.
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the key cap. @default "md"
15
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the key cap. @default "md"
16
16
  - `children: React.ReactNode` — Key label(s) to display.
17
17
 
18
18
  ## Design tokens it reads
@@ -15,7 +15,7 @@ import { KeyboardShortcuts } from "wimui/navigation";
15
15
  - `title: string` — Section title
16
16
  - `titleLevel: 2 | 3 | 4 | 5 | 6` — `title` を見出しとして描くときの段(T211)。渡さなければ見出しにならず `p` のまま。 ショートカット一覧は「編集」「移動」のように節ごとに積んで使うので、段で辿れると 効く。ただし既定を見出しにはしない ── 段を決め打つとページに `h1` / `h2` がある 場合に段が飛び、axe の `heading-order` が鳴る(T191 で `Footer` が実際に踏んだ)。 段を決めるのはページ側の構造を知っている呼び出し元の仕事で、`Alert` の `titleTag` (既定 `div`)と同じ形。
17
17
  - `separator: string` = "+" — Separator displayed between keys @default "+"
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the list @default "md"
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the list @default "md"
19
19
 
20
20
  ## Design tokens it reads
21
21
 
@@ -13,7 +13,7 @@ import { Leaderboard } from "wimui/data-display";
13
13
 
14
14
  - `entries: LeaderboardEntry[]` (required) — List of ranking entries
15
15
  - `unit: string` — Label for the score unit
16
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size
16
+ - `size: "sm" | "md" | "lg"` = "md" — Size
17
17
  - `showMedals: boolean` = false — Whether to paint the rank badges of the top three in gold, silver and bronze (off by default: the number and the order already say the rank)
18
18
 
19
19
  ## Design tokens it reads
package/dist/llms/Link.md CHANGED
@@ -13,7 +13,7 @@ import { Link } from "wimui/navigation";
13
13
 
14
14
  - `asChild: boolean` = false — If true, the link will be rendered as its child, merging its props onto that child. Useful for using the link styles with Link components from React Router or Next.js.
15
15
  - `label: React.ReactNode` — Link text or element. Alternative to children.
16
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Font size of the link. @default "md"
16
+ - `size: "sm" | "md" | "lg"` = "md" — Font size of the link. @default "md"
17
17
  - `priority: "primary" | "secondary" | "tertiary"` = "primary" — Visual emphasis of the link. @default "primary"
18
18
  - `iconName: React.ComponentProps<typeof Icon>["name"]` — Name of the icon displayed alongside the label.
19
19
  - `iconPosition: "left" | "right"` = "left" — Position of the icon relative to the label. @default "left"
@@ -12,9 +12,9 @@ import { LinkButton } from "wimui/form";
12
12
  ## Props
13
13
 
14
14
  - `iconPosition: "left" | "right"` = "left" — Position of the icon relative to the label
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the button
15
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the button
16
16
  - `variant: "solid" | "outline" | "ghost"` = "outline" — Visual style variant of the button
17
- - `intent: ButtonIntent` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
17
+ - `intent: "default" | "danger" | "success"` = "default" — Design intent of the button (visual / semantic state). Unrelated to the ARIA role attribute.
18
18
  - `justify: "start" | "center" | "end" | "between"` = "center" — Horizontal alignment of the button content
19
19
  - `fullWidth: boolean` = false — Whether the button should take up the full width of its container
20
20
  - `asChild: unknown` = false
package/dist/llms/List.md CHANGED
@@ -12,7 +12,7 @@ import { List } from "wimui/data-display";
12
12
  ## Props
13
13
 
14
14
  - `asChild: boolean` = false — Whether to render as a child element.
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the list items
15
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the list items
16
16
  - `spacing: "tight" | "normal" | "loose"` = "normal" — Spacing between items
17
17
  - `bordered: boolean` = false — Whether to show borders between items
18
18
  - `fullWidth: boolean` = false — Whether to take full width of parent
@@ -12,7 +12,7 @@ import { Loader } from "wimui/feedback";
12
12
  ## Props
13
13
 
14
14
  - `variant: "bars" | "dots" | "pulse"` = "bars" — Animation style of the loader. @default "bars"
15
- - `size: Extract<ComponentSize, "sm" | "md" | "lg" | "xl">` = "md" — Size of the loader. @default "md"
15
+ - `size: "sm" | "md" | "lg" | "xl"` = "md" — Size of the loader. @default "md"
16
16
  - `color: "currentColor" | WimColor` = "primary" — Color of the loader. Accepts a design token color name or "currentColor". @default "primary"
17
17
 
18
18
  ## Design tokens it reads