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.
- package/dist/components/data-display/List/List.cjs +1 -1
- package/dist/components/data-display/List/List.d.ts +5 -1
- package/dist/components/data-display/List/List.js +3 -3
- package/dist/components/media/Lightbox/Lightbox.cjs +1 -1
- package/dist/components/media/Lightbox/Lightbox.d.ts +2 -1
- package/dist/components/media/Lightbox/Lightbox.js +3 -3
- package/dist/llms/AIResponseFeedback.md +3 -3
- package/dist/llms/AgentStatus.md +1 -1
- package/dist/llms/Alert.md +1 -1
- package/dist/llms/Avatar.md +2 -2
- package/dist/llms/AvatarGroup.md +1 -1
- package/dist/llms/Badge.md +2 -2
- package/dist/llms/Banner.md +1 -1
- package/dist/llms/Blockquote.md +1 -1
- package/dist/llms/Breadcrumb.md +1 -1
- package/dist/llms/Button.md +2 -2
- package/dist/llms/Cascader.md +1 -1
- package/dist/llms/Chip.md +2 -2
- package/dist/llms/ColorInput.md +2 -2
- package/dist/llms/ColorPicker.md +2 -2
- package/dist/llms/CopyButton.md +1 -1
- package/dist/llms/Countdown.md +1 -1
- package/dist/llms/CounterTextarea.md +2 -2
- package/dist/llms/CreditCardInput.md +3 -3
- package/dist/llms/DatePicker.md +2 -2
- package/dist/llms/DescriptionList.md +1 -1
- package/dist/llms/FileUpload.md +1 -1
- package/dist/llms/FloatButton.md +2 -2
- package/dist/llms/HamburgerMenu.md +1 -1
- package/dist/llms/IconButton.md +2 -2
- package/dist/llms/Image.md +1 -1
- package/dist/llms/Indicator.md +1 -1
- package/dist/llms/Input.md +2 -2
- package/dist/llms/InputBase.md +2 -2
- package/dist/llms/InputMask.md +2 -2
- package/dist/llms/InteractiveArea.md +1 -1
- package/dist/llms/Kbd.md +1 -1
- package/dist/llms/KeyboardShortcuts.md +1 -1
- package/dist/llms/Leaderboard.md +1 -1
- package/dist/llms/Link.md +1 -1
- package/dist/llms/LinkButton.md +2 -2
- package/dist/llms/List.md +1 -1
- package/dist/llms/Loader.md +1 -1
- package/dist/llms/ModelSelector.md +1 -1
- package/dist/llms/MultiSelect.md +1 -1
- package/dist/llms/Notification.md +1 -1
- package/dist/llms/PasswordInput.md +2 -2
- package/dist/llms/PasswordStrength.md +1 -1
- package/dist/llms/Popconfirm.md +1 -1
- package/dist/llms/Popover.md +1 -1
- package/dist/llms/Presence.md +1 -1
- package/dist/llms/Progress.md +2 -2
- package/dist/llms/ProgressRing.md +2 -2
- package/dist/llms/Rating.md +1 -1
- package/dist/llms/Reaction.md +1 -1
- package/dist/llms/Result.md +1 -1
- package/dist/llms/RichTextEditor.md +3 -3
- package/dist/llms/ScrollProgress.md +1 -1
- package/dist/llms/SearchInput.md +2 -2
- package/dist/llms/SegmentedControl.md +1 -1
- package/dist/llms/Select.md +2 -2
- package/dist/llms/SmartSearchInput.md +2 -2
- package/dist/llms/Snackbar.md +1 -1
- package/dist/llms/Span.md +2 -2
- package/dist/llms/Spinner.md +1 -1
- package/dist/llms/SplitButton.md +1 -1
- package/dist/llms/Switch.md +1 -1
- package/dist/llms/TabNavigation.md +1 -1
- package/dist/llms/Tag.md +2 -2
- package/dist/llms/TagInput.md +2 -2
- package/dist/llms/Text.md +2 -2
- package/dist/llms/Textarea.md +2 -2
- package/dist/llms/ThemeToggle.md +3 -3
- package/dist/llms/TimePicker.md +2 -2
- package/dist/llms/Toast.md +1 -1
- package/dist/llms/ToggleGroup.md +1 -1
- package/dist/llms/Toolbar.md +1 -1
- package/dist/llms/Tooltip.md +1 -1
- package/dist/llms/TreeSelect.md +1 -1
- package/dist/llms/UsageMeter.md +1 -1
- package/dist/llms-full.txt +109 -109
- package/dist/llms.txt +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +1 -1
|
@@ -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:
|
|
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
|
package/dist/llms/MultiSelect.md
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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) =>
|
|
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++;
|
package/dist/llms/Popconfirm.md
CHANGED
|
@@ -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:
|
|
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
|
package/dist/llms/Popover.md
CHANGED
|
@@ -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:
|
|
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
|
package/dist/llms/Presence.md
CHANGED
|
@@ -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:
|
|
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
|
|
package/dist/llms/Progress.md
CHANGED
|
@@ -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:
|
|
19
|
-
- `size:
|
|
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
|
|
@@ -13,8 +13,8 @@ import { ProgressRing } from "wimui/feedback";
|
|
|
13
13
|
|
|
14
14
|
- `value: number` = 0 — Current value of the progress ring. @default 0
|
|
15
15
|
- `max: number` = 100 — Maximum value of the progress ring. @default 100
|
|
16
|
-
- `intent:
|
|
17
|
-
- `size:
|
|
16
|
+
- `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` = "primary" — Intent (semantic color) of the ring. @default "primary"
|
|
17
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the ring. @default "md"
|
|
18
18
|
- `label: string` — Text label displayed below the ring. Also used as the accessible name unless `aria-label` / `aria-labelledby` is given. A progress ring 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`.
|
|
19
19
|
- `showValue: boolean` = false — Whether to display the current value as a percentage inside the ring. @default false
|
|
20
20
|
- `indeterminate: boolean` = false — If true, shows an indeterminate animation instead of a value. @default false
|
package/dist/llms/Rating.md
CHANGED
|
@@ -19,7 +19,7 @@ import { Rating } from "wimui/form";
|
|
|
19
19
|
- `allowHalf: boolean` = false — Whether to allow half stars
|
|
20
20
|
- `disabled: boolean` = false — Whether the rating is disabled
|
|
21
21
|
- `readOnly: boolean` = false — Read-only flag (display only; unlike disabled it is not grayed out)
|
|
22
|
-
- `size:
|
|
22
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the stars
|
|
23
23
|
- `onChange: (value: number) => void` — Callback when the value changes
|
|
24
24
|
- `className: string` — Additional class names
|
|
25
25
|
- `label: React.ReactNode` — Accessible label
|
package/dist/llms/Reaction.md
CHANGED
|
@@ -15,7 +15,7 @@ import { Reaction } from "wimui/data-display";
|
|
|
15
15
|
- `onReact: (emoji: string, active: boolean) => void` — Callback when a reaction is added or removed
|
|
16
16
|
- `showAddButton: boolean` = false — Whether to show the add button
|
|
17
17
|
- `onAdd: () => void` — Callback when the add button is clicked
|
|
18
|
-
- `size:
|
|
18
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size
|
|
19
19
|
- `disabled: boolean` = false — Whether the component is disabled
|
|
20
20
|
|
|
21
21
|
## Design tokens it reads
|
package/dist/llms/Result.md
CHANGED
|
@@ -11,7 +11,7 @@ import { Result } from "wimui/feedback";
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
- `intent:
|
|
14
|
+
- `intent: "default" | "success" | "danger" | "info" | "warning"` = "default" — Semantic intent — determines the icon and color. `default` draws no icon unless `icon` is passed. @default "default"
|
|
15
15
|
- `status: "404" | "403" | "500"` — HTTP error status — adds a status-specific CSS class and shows a neutral icon. Use for error pages (404, 403, 500).
|
|
16
16
|
- `title: ReactNode` — The title
|
|
17
17
|
- `description: ReactNode` — The description
|
|
@@ -17,10 +17,10 @@ import { RichTextEditor } from "wimui/form";
|
|
|
17
17
|
- `format: "html" | "markdown"` = "html" — Format of `value`, `defaultValue` and `onChange`. With `"markdown"`, the editor reads and writes Markdown and has no underline (Markdown has no syntax for it): the underline button is hidden and underlined input keeps only its text. Read when the editor is created; changing it later does not convert the content.
|
|
18
18
|
- `placeholder: string` — Placeholder shown when the editor is empty
|
|
19
19
|
- `disabled: boolean` — Whether the editor is disabled
|
|
20
|
-
- `intent:
|
|
20
|
+
- `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
|
|
21
21
|
- `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
|
|
22
22
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
23
|
-
- `width:
|
|
23
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
24
24
|
- `minHeight: number | string` = 200 — Minimum height of the editing area
|
|
25
25
|
- `label: React.ReactNode` — Field label
|
|
26
26
|
- `error: string` — Error message
|
|
@@ -28,7 +28,7 @@ import { RichTextEditor } from "wimui/form";
|
|
|
28
28
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
29
29
|
- `className: string` — Additional class names
|
|
30
30
|
- `id: string` — Unique ID for the component
|
|
31
|
-
- `toolbar:
|
|
31
|
+
- `toolbar: ("bold" | "italic" | "underline" | "strikethrough" | "h1" | "h2" | "h3" | "ul" | "ol" | "link" | "unlink" | "image" | "removeFormat" | "separator")[]` = [
|
|
32
32
|
"bold",
|
|
33
33
|
"italic",
|
|
34
34
|
"underline",
|
|
@@ -11,7 +11,7 @@ import { ScrollProgress } from "wimui/feedback";
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
- `intent:
|
|
14
|
+
- `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` = "primary" — 意味の軸。兄弟の `Progress` / `ProgressRing` と同じ語彙にそろえてある。 以前は `color` という名前で、値も独自(`secondary` を含む)だった。 塗っているものは `Progress.intent` と構造まで同一だったので、prop 名だけが ずれていた(T114)。
|
|
15
15
|
- `target: React.RefObject<HTMLElement | null>` — Element whose scroll position is tracked. Defaults to `window`.
|
|
16
16
|
|
|
17
17
|
## Design tokens it reads
|
package/dist/llms/SearchInput.md
CHANGED
|
@@ -13,7 +13,7 @@ import { SearchInput } from "wimui/form";
|
|
|
13
13
|
|
|
14
14
|
## Props
|
|
15
15
|
|
|
16
|
-
- `intent:
|
|
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 { SearchInput } 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:
|
|
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
|
|
@@ -16,7 +16,7 @@ import { SegmentedControl } from "wimui/form";
|
|
|
16
16
|
- `options: Option[]` (required) — List of segment options
|
|
17
17
|
- `value: string` (required) — Selected value
|
|
18
18
|
- `onChange: (value: string) => void` (required) — Callback when the selected value changes
|
|
19
|
-
- `size:
|
|
19
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the control
|
|
20
20
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
21
21
|
- `className: string` — Additional class names
|
|
22
22
|
- `label: string` — Accessible label
|
package/dist/llms/Select.md
CHANGED
|
@@ -27,12 +27,12 @@ import { Select } from "wimui/form";
|
|
|
27
27
|
- `allowClear: boolean` = false — Whether to show a clear button when a value is selected
|
|
28
28
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
29
29
|
- `id: string` — Unique ID for the component
|
|
30
|
-
- `intent:
|
|
30
|
+
- `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
|
|
31
31
|
- `error: string` — Error message
|
|
32
32
|
- `required: boolean` — Whether to show the required indicator
|
|
33
33
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
34
34
|
- `noOptionsFoundLabel: string` — Label shown when no options match the search
|
|
35
|
-
- `width:
|
|
35
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
36
36
|
- `asChild: boolean` = false — Whether to render as a child element.
|
|
37
37
|
- `styles: { root?: string; trigger?: string; value?: string; dropdown?: string; list?: string; option?: string; search?: string; searchInput?: string; groupLabel?: string; separator?: string; empty?: string; inputBase?: React.ComponentProps<typeof InputBase>["styles"]; }` — Custom styles for internal parts
|
|
38
38
|
|
|
@@ -11,10 +11,10 @@ import { SmartSearchInput } from "wimui/form";
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
- `intent:
|
|
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
|
-
- `width:
|
|
17
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
18
18
|
- `label: React.ReactNode` — Field label
|
|
19
19
|
- `error: string` — Error message
|
|
20
20
|
- `required: boolean` — Whether to show the required indicator
|
package/dist/llms/Snackbar.md
CHANGED
|
@@ -13,7 +13,7 @@ import { Snackbar } from "wimui/feedback";
|
|
|
13
13
|
|
|
14
14
|
- `message: string` (required) — Message displayed in the snackbar
|
|
15
15
|
- `open: boolean` = false — Whether the snackbar is shown @default false
|
|
16
|
-
- `intent:
|
|
16
|
+
- `intent: "default" | "info" | "success" | "warning" | "danger"` = "default" — Intent (semantic state) @default "default"
|
|
17
17
|
- `position: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right"` = "bottom-center" — Position on the screen @default "bottom-center"
|
|
18
18
|
- `autoHideDuration: number` = 5000 — Time in milliseconds before the snackbar closes automatically. Set 0 to disable auto-close. @default 5000
|
|
19
19
|
- `showCloseButton: boolean` = false — Whether to show a close button @default false
|
package/dist/llms/Span.md
CHANGED
|
@@ -12,9 +12,9 @@ import { Span } from "wimui/typography";
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
14
|
- `asChild: boolean` = false — If true, the span will be rendered as its child, merging its props onto that child.
|
|
15
|
-
- `size:
|
|
15
|
+
- `size: "xs" | "sm" | "md" | "lg" | "xl"` = "md" — Font size of the text. @default "md"
|
|
16
16
|
- `color: T | (string & {})` — Text color. Accepts a design token color name or any CSS color value.
|
|
17
|
-
- `weight:
|
|
17
|
+
- `weight: "bold" | "medium" | "normal" | "semibold"` = "normal" — Font weight. @default "normal"
|
|
18
18
|
- `fontStyle: "normal" | "italic"` = "normal" — Font style. @default "normal"
|
|
19
19
|
- `decoration: "line-through" | "underline" | "highlight" | "none"` = "none" — Visual decoration applied to the text. @default "none"
|
|
20
20
|
- `content: React.ReactNode` — Content of the span. Alternative to children.
|
package/dist/llms/Spinner.md
CHANGED
|
@@ -13,7 +13,7 @@ import { Spinner } from "wimui/feedback";
|
|
|
13
13
|
|
|
14
14
|
## Props
|
|
15
15
|
|
|
16
|
-
- `size:
|
|
16
|
+
- `size: "sm" | "md" | "lg" | "xl"` = "md" — Size of the spinner. @default "md"
|
|
17
17
|
- `color: "currentColor" | WimColor` = "primary" — Color of the spinner. Accepts a design token color name or "currentColor". @default "primary"
|
|
18
18
|
- `label: string` — Text label displayed next to the spinner.
|
|
19
19
|
- `labelPosition: "right" | "bottom"` = "right" — Position of the label relative to the spinner. @default "right"
|
package/dist/llms/SplitButton.md
CHANGED
|
@@ -16,7 +16,7 @@ import { SplitButton } from "wimui/form";
|
|
|
16
16
|
- `actions: SplitButtonAction[]` (required) — Secondary actions listed behind the toggle.
|
|
17
17
|
- `variant: "solid" | "outline" | "ghost"` = "solid" — Visual style, applied to both halves so they read as one control.
|
|
18
18
|
- `intent: "default" | "danger" | "success"` = "default" — Intent (semantic color), applied to both halves.
|
|
19
|
-
- `size:
|
|
19
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of both halves.
|
|
20
20
|
- `disabled: boolean` = false — Disable the whole control.
|
|
21
21
|
- `loading: boolean` = false — Show a loading state on the main action.
|
|
22
22
|
- `toggleLabel: string` (required) — Accessible name for the toggle half. The main half is named by its own text, but the toggle only shows a chevron, so it needs one of its own.
|
package/dist/llms/Switch.md
CHANGED
|
@@ -14,7 +14,7 @@ import { Switch } from "wimui/form";
|
|
|
14
14
|
## Props
|
|
15
15
|
|
|
16
16
|
- `asChild: boolean` = false — If true, the component will be rendered as its child, merging its props onto that child.
|
|
17
|
-
- `size:
|
|
17
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the switch
|
|
18
18
|
- `className: string` — Additional class names
|
|
19
19
|
- `children: React.ReactNode` — Label content rendered next to the switch
|
|
20
20
|
- `error: boolean` = false — Whether to display as an error state (aria-invalid is applied)
|
|
@@ -13,7 +13,7 @@ import { TabNavigation } from "wimui/navigation";
|
|
|
13
13
|
|
|
14
14
|
- `variant: "underline" | "pill" | "contained"` = "underline" — Visual style of the tabs
|
|
15
15
|
- `align: "start" | "center" | "end" | "justify"` = "start" — Alignment of the tabs
|
|
16
|
-
- `size:
|
|
16
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the tabs
|
|
17
17
|
|
|
18
18
|
## TabNavigation.Item
|
|
19
19
|
|
package/dist/llms/Tag.md
CHANGED
|
@@ -14,9 +14,9 @@ import { Tag } from "wimui/data-display";
|
|
|
14
14
|
- `asChild: boolean` = false — If true, the tag will be rendered as its child, merging its props onto that child. Cannot be combined with `onDelete` — the delete control is a second element, and `asChild` requires a single React element child (T99).
|
|
15
15
|
- `children: React.ReactNode` — Content to display
|
|
16
16
|
- `content: React.ReactNode` — Content to display (alternative to children)
|
|
17
|
-
- `intent:
|
|
17
|
+
- `intent: "primary" | "success" | "warning" | "danger" | "info" | "neutral"` — Intent (semantic state)
|
|
18
18
|
- `variant: "solid" | "outline" | "subtle"` — Visual style variant
|
|
19
|
-
- `size:
|
|
19
|
+
- `size: "sm" | "md" | "lg"` — Size
|
|
20
20
|
- `icon: React.ReactNode` — Icon
|
|
21
21
|
- `onDelete: (e: React.MouseEvent<HTMLButtonElement>) => void` — Delete event. When provided, a × button is shown. Incompatible with `asChild`.
|
|
22
22
|
- `disabled: boolean` — Whether the tag is disabled
|
package/dist/llms/TagInput.md
CHANGED
|
@@ -18,10 +18,10 @@ import { TagInput } from "wimui/form";
|
|
|
18
18
|
- `onChange: (tags: string[]) => void` — Callback when the tags change
|
|
19
19
|
- `placeholder: string` — Placeholder for the input
|
|
20
20
|
- `disabled: boolean` = false — Whether the input is disabled
|
|
21
|
-
- `intent:
|
|
21
|
+
- `intent: "default" | "danger"` = "default" — Semantic intent of the field (e.g. error state)
|
|
22
22
|
- `variant: "outline" | "ghost"` = "outline" — Visual style variant of the field
|
|
23
23
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
24
|
-
- `width:
|
|
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
|
package/dist/llms/Text.md
CHANGED
|
@@ -12,9 +12,9 @@ import { Text } from "wimui/typography";
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
14
|
- `asChild: boolean` = false — If true, the text will be rendered as its child, merging its props onto that child.
|
|
15
|
-
- `size:
|
|
15
|
+
- `size: "xs" | "sm" | "md" | "lg" | "xl"` = "md" — Font size of the text. @default "md"
|
|
16
16
|
- `color: T | (string & {})` — Text color. Accepts a design token color name or any CSS color value.
|
|
17
|
-
- `weight:
|
|
17
|
+
- `weight: "bold" | "medium" | "normal" | "semibold"` = "normal" — Font weight. @default "normal"
|
|
18
18
|
- `lineHeight: T | (string & {})` — Line height. Accepts a design token name or any CSS line-height value.
|
|
19
19
|
- `fontStyle: "normal" | "italic"` = "normal" — Font style. @default "normal"
|
|
20
20
|
- `decoration: "line-through" | "underline" | "highlight" | "none"` = "none" — Visual decoration applied to the text. @default "none"
|
package/dist/llms/Textarea.md
CHANGED
|
@@ -12,7 +12,7 @@ import { Textarea } from "wimui/form";
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
14
|
- `asChild: boolean` = false — If true, the textarea element will be rendered as its child, merging its props onto that child.
|
|
15
|
-
- `intent:
|
|
15
|
+
- `intent: "default" | "danger"` = "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
18
|
- `fieldSizing: "fixed" | "content"` = "fixed" — Sizing behavior: "fixed" keeps the height, "content" grows with the text
|
|
@@ -20,7 +20,7 @@ import { Textarea } 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:
|
|
23
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
24
24
|
|
|
25
25
|
## Design tokens it reads
|
|
26
26
|
|
package/dist/llms/ThemeToggle.md
CHANGED
|
@@ -13,10 +13,10 @@ import { ThemeToggle } from "wimui/form";
|
|
|
13
13
|
|
|
14
14
|
- `value: "light" | "dark" | "system"` — Selected mode (controlled)
|
|
15
15
|
- `defaultValue: "light" | "dark" | "system"` = "system" — Initially selected mode (uncontrolled)
|
|
16
|
-
- `onChange: (mode:
|
|
17
|
-
- `modes:
|
|
16
|
+
- `onChange: (mode: ("light" | "dark" | "system")) => void` — Callback when the mode changes
|
|
17
|
+
- `modes: ("light" | "dark" | "system")[]` = ["light", "dark"] — Modes to offer, in cycle order
|
|
18
18
|
- `variant: "icon" | "segmented"` = "icon" — "icon" cycles modes on a single button; "segmented" shows one button per mode
|
|
19
|
-
- `size:
|
|
19
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the control
|
|
20
20
|
- `storageKey: string | null` = "wim-theme" — localStorage key used to persist the choice; pass null to disable persistence
|
|
21
21
|
- `applyToDocument: boolean` = true — Whether to apply the selected mode to the document root as `data-theme`
|
|
22
22
|
- `labels: { /** Label for the light mode */ light?: string; /** Label for the dark mode */ dark?: string; /** Label for the system (auto) mode */ system?: string; /** Accessible label / group label for the control */ toggle?: string; }` — Labels for internationalization
|
package/dist/llms/TimePicker.md
CHANGED
|
@@ -11,7 +11,7 @@ import { TimePicker } from "wimui/form";
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
- `intent:
|
|
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
|
- `allowClear: boolean` = true — Whether to show a clear button when value is present
|
|
@@ -23,7 +23,7 @@ import { TimePicker } from "wimui/form";
|
|
|
23
23
|
- `showPasswordToggle: boolean` = true — Whether to show the visibility toggle when type is "password"
|
|
24
24
|
- `rightIconClassName: string` — Additional class name for the right icon
|
|
25
25
|
- `rightIconRotated: boolean` — Whether to rotate the right icon 180 degrees (e.g. for an open state)
|
|
26
|
-
- `width:
|
|
26
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
27
27
|
- `label: React.ReactNode` — Field label
|
|
28
28
|
- `error: string` — Error message
|
|
29
29
|
- `required: boolean` — Whether to show the required indicator
|
package/dist/llms/Toast.md
CHANGED
|
@@ -16,7 +16,7 @@ import { Toast } from "wimui/feedback";
|
|
|
16
16
|
- `id: string` — Identifier of the toast, passed to onClose. Used by ToastProvider to manage a stack.
|
|
17
17
|
- `title: string` — Title of the toast.
|
|
18
18
|
- `description: string` — Description text displayed below the title.
|
|
19
|
-
- `intent:
|
|
19
|
+
- `intent: "default" | "info" | "success" | "warning" | "danger"` = "default" — Intent (semantic state) of the toast. @default "default"
|
|
20
20
|
- `duration: number` = 3000 — Time in milliseconds before the toast closes automatically. Set 0 to disable auto-close. @default 3000
|
|
21
21
|
- `open: boolean` = true — Whether the toast is shown. @default true
|
|
22
22
|
- `onClose: (id?: string) => void` — Called with the toast id when the toast is closed.
|
package/dist/llms/ToggleGroup.md
CHANGED
|
@@ -16,7 +16,7 @@ import { ToggleGroup } from "wimui/form";
|
|
|
16
16
|
- `defaultValue: string | string[]` — Initially selected value(s) (uncontrolled)
|
|
17
17
|
- `onChange: (value: string | string[]) => void` — Callback when the selection changes
|
|
18
18
|
- `selectionMode: "single" | "multiple"` = "single" — Whether one or multiple options can be selected
|
|
19
|
-
- `size:
|
|
19
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the toggle buttons
|
|
20
20
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
21
21
|
- `className: string` — Additional class names
|
|
22
22
|
- `disabled: boolean` = false — Whether the group is disabled
|
package/dist/llms/Toolbar.md
CHANGED
|
@@ -14,7 +14,7 @@ import { Toolbar } from "wimui/layout";
|
|
|
14
14
|
## Props
|
|
15
15
|
|
|
16
16
|
- `asChild: boolean` = false — If true, the component will be rendered as its child, merging its props onto that child.
|
|
17
|
-
- `size:
|
|
17
|
+
- `size: "lg" | "md" | "sm"` = "md" — Visual density for padding and gap. @default "md"
|
|
18
18
|
- `orientation: "horizontal" | "vertical"` = "horizontal" — Layout axis of the toolbar. @default "horizontal"
|
|
19
19
|
- `overflow: "wrap" | "collapse"` = "wrap" — How the controls that do not fit on one line are handled. `"wrap"` wraps them onto the next line; `"collapse"` keeps one line and moves the trailing children that do not fit behind a "…" button, which opens them in a panel next to it. Each direct child (a whole `Toolbar.Group`) is collapsed as one unit. Horizontal toolbars only, and not with `asChild`. A control remounts when it moves into the panel, so keep its state controlled. @default "wrap"
|
|
20
20
|
- `moreLabel: (count: number) => string` — Accessible name of the "…" button with `overflow="collapse"`, from the number of hidden children. Defaults to the built-in "Show hidden tools (n)" (en / ja / pt).
|
package/dist/llms/Tooltip.md
CHANGED
|
@@ -18,7 +18,7 @@ import { Tooltip } from "wimui/overlay";
|
|
|
18
18
|
- `delay: number` = 200 — Delay before showing the tooltip in ms.
|
|
19
19
|
- `open: boolean` — If provided, controls the open state.
|
|
20
20
|
- `onOpenChange: (open: boolean) => void` — Callback when open state changes.
|
|
21
|
-
- `placement:
|
|
21
|
+
- `placement: "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"` = "top" — Preferred placement of the tooltip.
|
|
22
22
|
- `variant: "default" | "glass"` = "default" — The variant of the tooltip content.
|
|
23
23
|
|
|
24
24
|
## Design tokens it reads
|
package/dist/llms/TreeSelect.md
CHANGED
|
@@ -32,7 +32,7 @@ import { TreeSelect } from "wimui/form";
|
|
|
32
32
|
- `aria-label: string` — Accessible label for the trigger when no visible label is provided
|
|
33
33
|
- `aria-labelledby: string` — ID of the element that labels the field
|
|
34
34
|
- `aria-describedby: string` — ID of the element that describes the field
|
|
35
|
-
- `width:
|
|
35
|
+
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
36
36
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
37
37
|
|
|
38
38
|
## Design tokens it reads
|
package/dist/llms/UsageMeter.md
CHANGED
|
@@ -15,7 +15,7 @@ import { UsageMeter } from "wimui/ai";
|
|
|
15
15
|
|
|
16
16
|
- `used: number` (required) — Number of tokens used so far
|
|
17
17
|
- `max: number` — Maximum available tokens (e.g. the context window). Omit for a counter-only display.
|
|
18
|
-
- `size:
|
|
18
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the meter
|
|
19
19
|
- `showBar: boolean` = true — Whether to render the progress bar (requires `max`)
|
|
20
20
|
- `showPercentage: boolean` = false — Whether to show the percentage instead of the raw count in the readout
|
|
21
21
|
- `warnThreshold: number` = 0.75 — Fraction (0–1) at which the meter turns to the warning color
|