wimui 0.71.0 → 0.73.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 (127) hide show
  1. package/dist/WimProvider.d.ts +5 -0
  2. package/dist/components/_internal/useAnnounce.d.ts +18 -1
  3. package/dist/components/data-display/AvatarGroup/AvatarGroup.cjs +1 -1
  4. package/dist/components/data-display/AvatarGroup/AvatarGroup.js +5 -5
  5. package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
  6. package/dist/components/data-display/Calendar/Calendar.js +258 -141
  7. package/dist/components/data-display/Calendar/calendar.module.cjs +1 -1
  8. package/dist/components/data-display/Calendar/calendar.module.js +16 -13
  9. package/dist/components/data-display/InfiniteScroll/InfiniteScroll.cjs +1 -1
  10. package/dist/components/data-display/InfiniteScroll/InfiniteScroll.js +4 -4
  11. package/dist/components/data-display/Kanban/Kanban.cjs +1 -1
  12. package/dist/components/data-display/Kanban/Kanban.d.ts +4 -1
  13. package/dist/components/data-display/Kanban/Kanban.js +142 -97
  14. package/dist/components/data-display/Kanban/kanban.module.cjs +1 -1
  15. package/dist/components/data-display/Kanban/kanban.module.js +7 -6
  16. package/dist/components/data-display/List/List.cjs +1 -1
  17. package/dist/components/data-display/List/List.d.ts +5 -1
  18. package/dist/components/data-display/List/List.js +3 -3
  19. package/dist/components/data-display/Table/useTableSort.d.ts +9 -3
  20. package/dist/components/feedback/Notification/Notification.d.ts +13 -0
  21. package/dist/components/feedback/Snackbar/Snackbar.d.ts +14 -0
  22. package/dist/components/feedback/Toast/Toast.d.ts +13 -0
  23. package/dist/components/media/Lightbox/Lightbox.cjs +1 -1
  24. package/dist/components/media/Lightbox/Lightbox.d.ts +2 -14
  25. package/dist/components/media/Lightbox/Lightbox.js +3 -3
  26. package/dist/components/overlay/Dialog/Dialog.cjs +1 -1
  27. package/dist/components/overlay/Dialog/Dialog.d.ts +0 -9
  28. package/dist/components/overlay/Dialog/Dialog.js +1 -1
  29. package/dist/components/overlay/Drawer/Drawer.cjs +1 -1
  30. package/dist/components/overlay/Drawer/Drawer.d.ts +0 -10
  31. package/dist/components/overlay/Drawer/Drawer.js +1 -1
  32. package/dist/hooks/useAutoResize.d.ts +8 -2
  33. package/dist/i18n/generated/data-display.cjs +1 -1
  34. package/dist/i18n/generated/data-display.d.ts +1 -1
  35. package/dist/i18n/generated/data-display.js +36 -3
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.js +232 -231
  39. package/dist/llms/AIResponseFeedback.md +3 -3
  40. package/dist/llms/AgentStatus.md +1 -1
  41. package/dist/llms/Alert.md +1 -1
  42. package/dist/llms/Avatar.md +2 -2
  43. package/dist/llms/AvatarGroup.md +1 -1
  44. package/dist/llms/Badge.md +2 -2
  45. package/dist/llms/Banner.md +1 -1
  46. package/dist/llms/Blockquote.md +1 -1
  47. package/dist/llms/Breadcrumb.md +1 -1
  48. package/dist/llms/Button.md +2 -2
  49. package/dist/llms/Calendar.md +1 -1
  50. package/dist/llms/Cascader.md +1 -1
  51. package/dist/llms/Chip.md +2 -2
  52. package/dist/llms/ColorInput.md +2 -2
  53. package/dist/llms/ColorPicker.md +2 -2
  54. package/dist/llms/CopyButton.md +1 -1
  55. package/dist/llms/Countdown.md +1 -1
  56. package/dist/llms/CounterTextarea.md +2 -2
  57. package/dist/llms/CreditCardInput.md +3 -3
  58. package/dist/llms/DatePicker.md +2 -2
  59. package/dist/llms/DescriptionList.md +1 -1
  60. package/dist/llms/FileUpload.md +1 -1
  61. package/dist/llms/FloatButton.md +2 -2
  62. package/dist/llms/HamburgerMenu.md +1 -1
  63. package/dist/llms/IconButton.md +2 -2
  64. package/dist/llms/Image.md +1 -1
  65. package/dist/llms/Indicator.md +1 -1
  66. package/dist/llms/Input.md +2 -2
  67. package/dist/llms/InputBase.md +2 -2
  68. package/dist/llms/InputMask.md +2 -2
  69. package/dist/llms/InteractiveArea.md +1 -1
  70. package/dist/llms/Kanban.md +2 -2
  71. package/dist/llms/Kbd.md +1 -1
  72. package/dist/llms/KeyboardShortcuts.md +1 -1
  73. package/dist/llms/Leaderboard.md +1 -1
  74. package/dist/llms/Link.md +1 -1
  75. package/dist/llms/LinkButton.md +2 -2
  76. package/dist/llms/List.md +1 -1
  77. package/dist/llms/Loader.md +1 -1
  78. package/dist/llms/ModelSelector.md +1 -1
  79. package/dist/llms/MultiSelect.md +1 -1
  80. package/dist/llms/Notification.md +1 -1
  81. package/dist/llms/PasswordInput.md +2 -2
  82. package/dist/llms/PasswordStrength.md +1 -1
  83. package/dist/llms/Popconfirm.md +1 -1
  84. package/dist/llms/Popover.md +1 -1
  85. package/dist/llms/Presence.md +1 -1
  86. package/dist/llms/Progress.md +2 -2
  87. package/dist/llms/ProgressRing.md +2 -2
  88. package/dist/llms/Rating.md +1 -1
  89. package/dist/llms/Reaction.md +1 -1
  90. package/dist/llms/Result.md +1 -1
  91. package/dist/llms/RichTextEditor.md +3 -3
  92. package/dist/llms/ScrollProgress.md +1 -1
  93. package/dist/llms/SearchInput.md +2 -2
  94. package/dist/llms/SegmentedControl.md +1 -1
  95. package/dist/llms/Select.md +2 -2
  96. package/dist/llms/SmartSearchInput.md +2 -2
  97. package/dist/llms/Snackbar.md +1 -1
  98. package/dist/llms/Span.md +2 -2
  99. package/dist/llms/Spinner.md +1 -1
  100. package/dist/llms/SplitButton.md +1 -1
  101. package/dist/llms/Switch.md +1 -1
  102. package/dist/llms/TabNavigation.md +1 -1
  103. package/dist/llms/Tag.md +2 -2
  104. package/dist/llms/TagInput.md +2 -2
  105. package/dist/llms/Text.md +2 -2
  106. package/dist/llms/Textarea.md +2 -2
  107. package/dist/llms/ThemeToggle.md +3 -3
  108. package/dist/llms/TimePicker.md +2 -2
  109. package/dist/llms/Toast.md +1 -1
  110. package/dist/llms/ToggleGroup.md +1 -1
  111. package/dist/llms/Toolbar.md +1 -1
  112. package/dist/llms/Tooltip.md +1 -1
  113. package/dist/llms/TreeSelect.md +1 -1
  114. package/dist/llms/UsageMeter.md +1 -1
  115. package/dist/llms-full.txt +201 -110
  116. package/dist/llms.txt +17 -1
  117. package/dist/locales/en/data-display.json +12 -1
  118. package/dist/locales/ja/data-display.json +12 -1
  119. package/dist/locales/pt/data-display.json +12 -1
  120. package/dist/media.cjs +1 -1
  121. package/dist/media.js +4 -4
  122. package/dist/overlay.cjs +1 -1
  123. package/dist/overlay.js +11 -11
  124. package/dist/styles.css +1 -1
  125. package/dist/wimui.umd.css +1 -1
  126. package/dist/wimui.umd.js +5 -5
  127. package/package.json +7 -5
@@ -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
@@ -28,7 +28,7 @@ import { Calendar } from "wimui/data-display";
28
28
 
29
29
  ## Design tokens it reads
30
30
 
31
- `--wim-border-width-thin`, `--wim-calendar-day-height`, `--wim-calendar-nav-size`, `--wim-calendar-weekday-height`, `--wim-calendar-width`, `--wim-color-line`, `--wim-color-primary`, `--wim-color-surface`, `--wim-color-surface-hover`, `--wim-color-surface-variant-alpha`, `--wim-color-text-accent`, `--wim-color-text-danger`, `--wim-color-text-disabled`, `--wim-color-text-info`, `--wim-color-text-on-primary`, `--wim-color-text-primary`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-duration-base`, `--wim-easing-standard`, `--wim-font-family-default`, `--wim-font-size-md`, `--wim-font-size-xs`, `--wim-font-weight-bold`, `--wim-font-weight-semibold`, `--wim-height-xs`, `--wim-opacity-disabled`, `--wim-radius-component`, `--wim-radius-sm`, `--wim-spacing-3xs`, `--wim-spacing-5xl`, `--wim-spacing-md`, `--wim-spacing-xs`, `--wim-tap-target-min`, `--wim-transition-fast`
31
+ `--wim-border-width-thin`, `--wim-calendar-day-height`, `--wim-calendar-nav-size`, `--wim-calendar-weekday-height`, `--wim-calendar-width`, `--wim-color-line`, `--wim-color-primary`, `--wim-color-surface`, `--wim-color-surface-hover`, `--wim-color-surface-variant-alpha`, `--wim-color-text-accent`, `--wim-color-text-danger`, `--wim-color-text-disabled`, `--wim-color-text-info`, `--wim-color-text-on-primary`, `--wim-color-text-primary`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-duration-base`, `--wim-easing-standard`, `--wim-font-family-default`, `--wim-font-size-md`, `--wim-font-size-xs`, `--wim-font-weight-bold`, `--wim-font-weight-semibold`, `--wim-height-md`, `--wim-height-xs`, `--wim-opacity-disabled`, `--wim-radius-component`, `--wim-radius-sm`, `--wim-spacing-2xs`, `--wim-spacing-3xs`, `--wim-spacing-5xl`, `--wim-spacing-md`, `--wim-spacing-sm`, `--wim-spacing-xs`, `--wim-tap-target-min`, `--wim-transition-fast`
32
32
 
33
33
  ---
34
34
  Setup, composition rules and the full catalog: `llms.txt` / `llms-full.txt` in the same package.
@@ -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
@@ -14,12 +14,12 @@ import { Kanban } from "wimui/data-display";
14
14
  - `columns: KanbanColumnData[]` — Kanban column data (for prop-driven usage).
15
15
  - `onMove: (itemId: string, fromColumnId: string, toColumnId: string) => void` — Callback when a card is moved.
16
16
  - `onCardMove: (itemId: string, fromColumnId: string, toColumnId: string) => void` — Callback when a card is moved (legacy / alternative name).
17
- - `forceMobileUI: boolean` = false — Whether to force the touch-device UI.
17
+ - `forceMobileUI: boolean` = false — Whether to force the touch-device UI (the move button as a full-width bar under each card). Without it, pointer devices show the move button in the card's corner on hover or focus.
18
18
  - `asChild: boolean` = false — Whether to render as a child element.
19
19
 
20
20
  ## Design tokens it reads
21
21
 
22
- `--wim-border-width-thin`, `--wim-color-border`, `--wim-color-primary`, `--wim-color-surface`, `--wim-color-surface-hover`, `--wim-color-surface-subtle`, `--wim-color-surface-variant`, `--wim-color-text-primary`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-duration-fast`, `--wim-easing-standard`, `--wim-focus-outline-width`, `--wim-font-size-md`, `--wim-font-size-sm`, `--wim-font-weight-semibold`, `--wim-opacity-dim`, `--wim-opacity-disabled`, `--wim-radius-component`, `--wim-radius-container`, `--wim-radius-full`, `--wim-shadow-md`, `--wim-shadow-sm`, `--wim-spacing-2xl`, `--wim-spacing-2xs`
22
+ `--wim-border-width-thin`, `--wim-color-border`, `--wim-color-focus-outline`, `--wim-color-primary`, `--wim-color-surface`, `--wim-color-surface-hover`, `--wim-color-surface-subtle`, `--wim-color-surface-variant`, `--wim-color-text-primary`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-duration-fast`, `--wim-easing-standard`, `--wim-focus-outline-offset`, `--wim-focus-outline-width`, `--wim-font-size-md`, `--wim-font-size-sm`, `--wim-font-weight-semibold`, `--wim-height-sm`, `--wim-opacity-dim`, `--wim-opacity-disabled`, `--wim-radius-component`, `--wim-radius-container`, `--wim-radius-full`, `--wim-shadow-md`, `--wim-shadow-sm`, `--wim-spacing-2xl`
23
23
 
24
24
  ---
25
25
  Setup, composition rules and the full catalog: `llms.txt` / `llms-full.txt` in the same package.
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
@@ -15,7 +15,7 @@ import { ModelSelector } from "wimui/ai";
15
15
  - `value: string` — Selected model id (controlled)
16
16
  - `defaultValue: string` — Initially selected model id (uncontrolled)
17
17
  - `onChange: (id: string, model: ModelOption) => void` — Callback when the selected model changes
18
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the trigger
18
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the trigger
19
19
  - `disabled: boolean` = false — Whether the selector is disabled
20
20
  - `fullWidth: boolean` = false — Whether to take full width of parent
21
21
  - `showPricing: boolean` = true — Whether to show pricing metadata in the dropdown
@@ -27,7 +27,7 @@ import { MultiSelect } from "wimui/form";
27
27
  - `aria-label: string` — Accessible label for the trigger when no visible label is provided
28
28
  - `aria-labelledby: string` — ID of the element that labels the field
29
29
  - `aria-describedby: string` — ID of the element that describes the field
30
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
30
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
31
31
  - `fullWidth: boolean` = false — Whether to take full width of parent
32
32
 
33
33
  ## Design tokens it reads
@@ -15,7 +15,7 @@ import { Notification } from "wimui/feedback";
15
15
  - `title: ReactNode` (required) — The title of notification
16
16
  - `description: ReactNode` — The description of notification
17
17
  - `icon: ReactNode` — The icon of notification
18
- - `intent: FeedbackIntent` = "default" — The intent of notification @default "default"
18
+ - `intent: "default" | "info" | "success" | "warning" | "danger"` = "default" — The intent of notification @default "default"
19
19
  - `onClose: (id?: string) => void` — Callback when notification is closed
20
20
  - `closable: boolean` = true — Whether to show close button
21
21
  - `className: string` — Additional class name
@@ -11,7 +11,7 @@ import { PasswordInput } 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
@@ -21,7 +21,7 @@ import { PasswordInput } from "wimui/form";
21
21
  - `allowClear: boolean` = false — Whether to show a clear button when value is present
22
22
  - `rightIconClassName: string` — Additional class name for the right icon
23
23
  - `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
24
- - `width: FieldWidth | string | number` — Fixed width of the field (width token, CSS value, or number in px)
24
+ - `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
25
25
  - `label: React.ReactNode` — Field label
26
26
  - `error: string` — Error message
27
27
  - `required: boolean` — Whether to show the required indicator
@@ -16,7 +16,7 @@ import { PasswordStrength } from "wimui/form";
16
16
  - `password: string` = "" — Password string to evaluate
17
17
  - `score: 0 | 1 | 2 | 3 | 4` — Strength score (the default calculation is used when omitted) 0: very weak, 1: weak, 2: fair, 3: strong, 4: very strong
18
18
  - `showLabel: boolean` = true — Whether to show the strength label
19
- - `calculateLevel: (password: string) => PasswordStrengthLevel` = (password: string): PasswordStrengthLevel => {
19
+ - `calculateLevel: (password: string) => (0 | 1 | 2 | 3 | 4)` = (password: string): PasswordStrengthLevel => {
20
20
  if (!password) return 0;
21
21
  let score = 0;
22
22
  if (password.length >= 8) score++;
@@ -17,7 +17,7 @@ import { Popconfirm } from "wimui/overlay";
17
17
  - `onCancel: () => void` — Callback when the user clicks the cancel button
18
18
  - `okText: ReactNode` = "OK" — Text of the confirm button
19
19
  - `cancelText: ReactNode` = "Cancel" — Text of the cancel button
20
- - `okType: ButtonIntent` = "default" — Color role of the confirm button
20
+ - `okType: "default" | "danger" | "success"` = "default" — Color role of the confirm button
21
21
  - `children: ReactNode` (required) — The target element which the Popconfirm will be attached to
22
22
  - `icon: ReactNode` — Customize the icon
23
23
  - `disabled: boolean` = false — Whether to show the popconfirm
@@ -16,7 +16,7 @@ import { Popover } from "wimui/overlay";
16
16
  - `defaultOpen: boolean` = false — If true, the popover component will manage its own open state.
17
17
  - `open: boolean` — If provided, controls the open state.
18
18
  - `onOpenChange: (open: boolean) => void` — Callback when open state changes.
19
- - `placement: Placement` = "bottom-start" — Preferred placement of the popover.
19
+ - `placement: "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"` = "bottom-start" — Preferred placement of the popover.
20
20
  - `variant: "default" | "glass"` = "default" — The variant of the popover content.
21
21
 
22
22
  ## Design tokens it reads
@@ -14,7 +14,7 @@ import { Presence } from "wimui/data-display";
14
14
  - `status: "online" | "away" | "busy" | "offline"` (required) — Availability of the person or resource.
15
15
  - `label: string` — Text for the status. Defaults to the localized name of `status`.
16
16
  - `showLabel: boolean` = false — Whether the label is shown next to the dot. The label is always exposed to assistive technology; this only controls whether it is also visible. @default false
17
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the dot. @default "md"
17
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the dot. @default "md"
18
18
  - `position: "top-right" | "top-left" | "bottom-right" | "bottom-left"` = "bottom-right" — Corner the dot is placed at. Only applies when `children` is given. @default "bottom-right"
19
19
  - `children: React.ReactNode` — Element the dot is attached to, typically an `Avatar`. Without it the dot renders inline, next to whatever follows it.
20
20
 
@@ -15,8 +15,8 @@ import { Progress } from "wimui/feedback";
15
15
 
16
16
  - `value: number` = 0 — Current value of the progress bar. @default 0
17
17
  - `max: number` = 100 — Maximum value of the progress bar. @default 100
18
- - `intent: IndicatorIntent` = "primary" — Intent (semantic color) of the bar. @default "primary"
19
- - `size: Extract<ComponentSize, "sm" | "md" | "lg">` = "md" — Size of the bar. @default "md"
18
+ - `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` = "primary" — Intent (semantic color) of the bar. @default "primary"
19
+ - `size: "sm" | "md" | "lg"` = "md" — Size of the bar. @default "md"
20
20
  - `label: string` — Text label displayed above the bar. Also used as the accessible name unless `aria-label` / `aria-labelledby` is given. A progress bar always carries `role="progressbar"`, and a progressbar with no accessible name is a WCAG failure (axe `aria-progressbar-name`, serious). The type therefore requires one of `label` / `aria-label` / `aria-labelledby`.
21
21
  - `showValue: boolean` = false — Whether to display the current value as a percentage. @default false
22
22
  - `indeterminate: boolean` = false — If true, shows an indeterminate animation instead of a value. @default false