wimui 0.78.0 → 0.80.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/README.ja.md +2 -2
- package/README.md +2 -2
- package/dist/components/_internal/HiddenFormValue.cjs +2 -0
- package/dist/components/_internal/HiddenFormValue.d.ts +36 -0
- package/dist/components/_internal/HiddenFormValue.js +25 -0
- package/dist/components/ai/AILabel/AILabel.d.ts +1 -1
- package/dist/components/ai/InteractiveGraph/InteractiveGraph.cjs +1 -1
- package/dist/components/ai/InteractiveGraph/InteractiveGraph.js +22 -37
- package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
- package/dist/components/ai/InteractiveGraph/interactive-graph.module.js +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.js +4 -4
- package/dist/components/data-display/Barcode/Barcode.cjs +1 -1
- package/dist/components/data-display/Barcode/Barcode.js +4 -4
- package/dist/components/data-display/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/data-display/DataGrid/DataGrid.js +158 -129
- package/dist/components/data-display/DataGrid/useDataGridKeyboard.cjs +1 -1
- package/dist/components/data-display/DataGrid/useDataGridKeyboard.js +23 -23
- package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
- package/dist/components/data-display/NodeGraph/NodeGraph.js +69 -66
- package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
- package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
- package/dist/components/data-display/ScheduleView/ScheduleView.cjs +1 -1
- package/dist/components/data-display/ScheduleView/ScheduleView.js +3 -3
- package/dist/components/data-display/TreeView/tree-view.module.cjs +1 -1
- package/dist/components/data-display/TreeView/tree-view.module.js +1 -1
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.cjs +1 -1
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.js +5 -5
- package/dist/components/form/Button/Button.cjs +1 -1
- package/dist/components/form/Button/Button.js +7 -7
- package/dist/components/form/Cascader/Cascader.cjs +1 -1
- package/dist/components/form/Cascader/Cascader.d.ts +5 -1
- package/dist/components/form/Cascader/Cascader.js +61 -53
- package/dist/components/form/Cascader/cascader.module.cjs +1 -1
- package/dist/components/form/Cascader/cascader.module.js +7 -6
- package/dist/components/form/Dropzone/Dropzone.cjs +1 -1
- package/dist/components/form/Dropzone/Dropzone.js +4 -4
- package/dist/components/form/Input/Input.cjs +1 -1
- package/dist/components/form/Input/Input.js +3 -3
- package/dist/components/form/LinkButton/LinkButton.d.ts +1 -1
- package/dist/components/form/MultiSelect/MultiSelect.cjs +1 -1
- package/dist/components/form/MultiSelect/MultiSelect.d.ts +5 -1
- package/dist/components/form/MultiSelect/MultiSelect.js +71 -63
- package/dist/components/form/OtpInput/OtpInput.cjs +1 -1
- package/dist/components/form/OtpInput/OtpInput.d.ts +9 -0
- package/dist/components/form/OtpInput/OtpInput.js +81 -66
- package/dist/components/form/RangeSlider/RangeSlider.cjs +1 -1
- package/dist/components/form/RangeSlider/RangeSlider.js +109 -104
- package/dist/components/form/Rating/Rating.cjs +1 -1
- package/dist/components/form/Rating/Rating.d.ts +5 -1
- package/dist/components/form/Rating/Rating.js +78 -70
- package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.d.ts +4 -0
- package/dist/components/form/SegmentedControl/SegmentedControl.js +56 -51
- package/dist/components/form/Select/Select.cjs +1 -1
- package/dist/components/form/Select/Select.d.ts +4 -0
- package/dist/components/form/Select/Select.js +91 -84
- package/dist/components/form/Select/useSelect.cjs +1 -1
- package/dist/components/form/Select/useSelect.d.ts +1 -0
- package/dist/components/form/Select/useSelect.js +9 -6
- package/dist/components/form/SignaturePad/signature-pad.module.cjs +1 -1
- package/dist/components/form/SignaturePad/signature-pad.module.js +7 -6
- package/dist/components/form/Slider/Slider.cjs +1 -1
- package/dist/components/form/Slider/Slider.js +82 -77
- package/dist/components/form/TagInput/TagInput.cjs +1 -1
- package/dist/components/form/TagInput/TagInput.d.ts +4 -0
- package/dist/components/form/TagInput/TagInput.js +35 -27
- package/dist/components/form/Transfer/transfer.module.cjs +1 -1
- package/dist/components/form/Transfer/transfer.module.js +7 -6
- package/dist/components/form/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/form/TreeSelect/TreeSelect.d.ts +4 -0
- package/dist/components/form/TreeSelect/TreeSelect.js +91 -83
- package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
- package/dist/components/form/TreeSelect/tree-select.module.js +7 -6
- package/dist/components/layout/AppShell/AppShell.cjs +1 -1
- package/dist/components/layout/AppShell/AppShell.d.ts +5 -0
- package/dist/components/layout/AppShell/AppShell.js +107 -89
- package/dist/components/layout/OverflowList/OverflowList.cjs +1 -1
- package/dist/components/layout/OverflowList/OverflowList.js +4 -4
- package/dist/components/navigation/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/navigation/Breadcrumb/Breadcrumb.js +15 -15
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.cjs +1 -1
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.js +3 -3
- package/dist/components/navigation/SkipLink/SkipLink.cjs +2 -0
- package/dist/components/navigation/SkipLink/SkipLink.d.ts +39 -0
- package/dist/components/navigation/SkipLink/SkipLink.js +27 -0
- package/dist/components/navigation/SkipLink/skip-link.module.cjs +2 -0
- package/dist/components/navigation/SkipLink/skip-link.module.js +5 -0
- package/dist/components/overlay/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.js +92 -77
- package/dist/i18n/generated/components.d.ts +1 -1
- package/dist/i18n/generated/navigation.cjs +1 -1
- package/dist/i18n/generated/navigation.d.ts +1 -1
- package/dist/i18n/generated/navigation.js +12 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +300 -299
- package/dist/llms/AIResponseFeedback.md +2 -0
- package/dist/llms/Accordion.md +1 -1
- package/dist/llms/Alert.md +3 -1
- package/dist/llms/Anchor.md +1 -1
- package/dist/llms/AppShell.md +2 -1
- package/dist/llms/Audio.md +2 -0
- package/dist/llms/AvatarGroup.md +1 -1
- package/dist/llms/BackTop.md +1 -1
- package/dist/llms/Badge.md +1 -1
- package/dist/llms/Breadcrumb.md +1 -1
- package/dist/llms/ButtonGroup.md +1 -1
- package/dist/llms/Cascader.md +2 -1
- package/dist/llms/Charts.md +2 -0
- package/dist/llms/ChatUI.md +2 -0
- package/dist/llms/Code.md +2 -0
- package/dist/llms/CodeBlock.md +1 -1
- package/dist/llms/CodeDiffViewer.md +2 -0
- package/dist/llms/ColorPicker.md +1 -1
- package/dist/llms/Combobox.md +1 -1
- package/dist/llms/CommandPalette.md +1 -1
- package/dist/llms/Confirm.md +2 -0
- package/dist/llms/CopyButton.md +1 -1
- package/dist/llms/Countdown.md +2 -0
- package/dist/llms/DataGrid.md +1 -1
- package/dist/llms/DatePicker.md +4 -0
- package/dist/llms/DateRangePicker.md +4 -0
- package/dist/llms/DescriptionList.md +2 -0
- package/dist/llms/Drawer.md +1 -1
- package/dist/llms/Dropdown.md +1 -1
- package/dist/llms/EmptyState.md +1 -1
- package/dist/llms/FieldError.md +2 -0
- package/dist/llms/FieldTemplate.md +1 -1
- package/dist/llms/FileUpload.md +1 -1
- package/dist/llms/FloatButton.md +2 -0
- package/dist/llms/FocusTrap.md +2 -0
- package/dist/llms/Gallery.md +2 -0
- package/dist/llms/Grid.md +2 -0
- package/dist/llms/Group.md +2 -0
- package/dist/llms/Header.md +2 -0
- package/dist/llms/Highlight.md +2 -0
- package/dist/llms/HoverCard.md +2 -0
- package/dist/llms/IconButton.md +2 -0
- package/dist/llms/Image.md +2 -0
- package/dist/llms/ImageCompare.md +2 -0
- package/dist/llms/ImageCropper.md +2 -0
- package/dist/llms/Indicator.md +1 -1
- package/dist/llms/InfiniteScroll.md +2 -0
- package/dist/llms/InlineEdit.md +1 -1
- package/dist/llms/Input.md +1 -1
- package/dist/llms/InputGroup.md +2 -0
- package/dist/llms/InputMask.md +2 -0
- package/dist/llms/JsonViewer.md +2 -0
- package/dist/llms/Kbd.md +2 -0
- package/dist/llms/KeyboardShortcuts.md +4 -0
- package/dist/llms/LinkButton.md +2 -0
- package/dist/llms/List.md +1 -1
- package/dist/llms/LoadingOverlay.md +2 -0
- package/dist/llms/MarkdownRenderer.md +2 -0
- package/dist/llms/Marquee.md +1 -1
- package/dist/llms/Mentions.md +2 -0
- package/dist/llms/Menu.md +2 -0
- package/dist/llms/MultiSelect.md +2 -1
- package/dist/llms/NumberInput.md +1 -1
- package/dist/llms/OtpInput.md +3 -1
- package/dist/llms/PageHeader.md +2 -0
- package/dist/llms/Pagination.md +1 -1
- package/dist/llms/PasswordInput.md +2 -0
- package/dist/llms/Popconfirm.md +2 -0
- package/dist/llms/Popover.md +1 -1
- package/dist/llms/Presence.md +2 -0
- package/dist/llms/Progress.md +1 -1
- package/dist/llms/ProgressRing.md +2 -0
- package/dist/llms/PromptInput.md +2 -0
- package/dist/llms/RadioGroup.md +1 -1
- package/dist/llms/RangeSlider.md +2 -0
- package/dist/llms/Rating.md +2 -1
- package/dist/llms/RichTextEditor.md +2 -0
- package/dist/llms/ScrollArea.md +2 -0
- package/dist/llms/SegmentedControl.md +2 -1
- package/dist/llms/Select.md +2 -1
- package/dist/llms/SelectionBar.md +1 -1
- package/dist/llms/Sidebar.md +1 -1
- package/dist/llms/SimpleGrid.md +2 -0
- package/dist/llms/Skeleton.md +1 -1
- package/dist/llms/SkipLink.md +24 -0
- package/dist/llms/Slider.md +2 -0
- package/dist/llms/SortableList.md +2 -0
- package/dist/llms/Spinner.md +1 -1
- package/dist/llms/Splitter.md +1 -1
- package/dist/llms/Stack.md +2 -0
- package/dist/llms/Stats.md +1 -1
- package/dist/llms/Stepper.md +1 -1
- package/dist/llms/Switch.md +3 -1
- package/dist/llms/TabNavigation.md +2 -0
- package/dist/llms/Table.md +1 -1
- package/dist/llms/Tabs.md +1 -1
- package/dist/llms/Tag.md +1 -1
- package/dist/llms/TagInput.md +2 -1
- package/dist/llms/Text.md +1 -1
- package/dist/llms/Textarea.md +2 -0
- package/dist/llms/ThemeToggle.md +2 -0
- package/dist/llms/TimePicker.md +2 -0
- package/dist/llms/Title.md +2 -0
- package/dist/llms/Toast.md +1 -1
- package/dist/llms/ToggleGroup.md +2 -0
- package/dist/llms/Toolbar.md +2 -0
- package/dist/llms/Tooltip.md +1 -1
- package/dist/llms/Tour.md +3 -1
- package/dist/llms/Transfer.md +2 -0
- package/dist/llms/TreeDiagram.md +1 -1
- package/dist/llms/TreeSelect.md +1 -0
- package/dist/llms/TreeView.md +2 -2
- package/dist/llms/Treemap.md +2 -0
- package/dist/llms/Video.md +2 -0
- package/dist/llms/VirtualList.md +2 -0
- package/dist/llms-full.txt +179 -114
- package/dist/llms.txt +164 -114
- package/dist/locales/en/components.json +2 -1
- package/dist/locales/ja/components.json +2 -1
- package/dist/locales/pt/components.json +2 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +1 -0
- package/dist/navigation.js +17 -16
- package/dist/reset.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +21 -18
package/dist/llms/NumberInput.md
CHANGED
package/dist/llms/OtpInput.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> One-time password fields
|
|
4
4
|
|
|
5
|
-
Also known as: Pin Input, Input OTP, PIN Code Input
|
|
5
|
+
Also known as: Pin Input, Input OTP, PIN Code Input, One Time Password Field, OTP Field, Pin Code, Verification Code
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -19,11 +19,13 @@ import { OtpInput } from "wimui/form";
|
|
|
19
19
|
- `disabled: boolean` = false — Whether the input is disabled
|
|
20
20
|
- `error: string` — Error message
|
|
21
21
|
- `required: boolean` — Whether to show the required indicator
|
|
22
|
+
- `name: string` — Name submitted with a native `<form>`. The whole code is sent as one hidden input, and a form reset clears the boxes when uncontrolled.
|
|
22
23
|
- `label: React.ReactNode` — Field label
|
|
23
24
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
24
25
|
- `labels: { /** * Accessible name for one digit box. * * `position` is **1-based**: the first box is `1`, and the last is `length`. * It is meant to be read aloud ("Digit 3 of 6"), so it counts the way a person * would. Treating it as a 0-based index and adding one yields "Digit 2" for the * first box. * * @param position 1-based position of the box, from `1` to `length` * @default (position) => `Digit ${position}` */ digitAriaLabel?: (position: number) => string; }` = {} — Labels for internationalization. `digitAriaLabel(position)` names one digit box and receives a **1-based** position — the first box is `1`, not `0`.
|
|
25
26
|
- `asChild: boolean` = false — Whether to render as a child element.
|
|
26
27
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
28
|
+
- `inputMode: "numeric" | "text"` = "numeric" — Keyboard shown on touch devices. Use `"text"` for codes that contain letters. @default "numeric"
|
|
27
29
|
|
|
28
30
|
## Design tokens it reads
|
|
29
31
|
|
package/dist/llms/PageHeader.md
CHANGED
package/dist/llms/Pagination.md
CHANGED
package/dist/llms/Popconfirm.md
CHANGED
package/dist/llms/Popover.md
CHANGED
package/dist/llms/Presence.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Shows whether a person is online, away, busy, or offline.
|
|
4
4
|
|
|
5
|
+
⚠️ Not the same as elsewhere: In Ark UI and Chakra UI, "Presence" is the helper that animates an element in and out as it mounts and unmounts — that is `Transition` here. WIM's `Presence` shows whether a person is online, away, busy or offline.
|
|
6
|
+
|
|
5
7
|
## Import
|
|
6
8
|
|
|
7
9
|
```ts
|
package/dist/llms/Progress.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Progress bar
|
|
4
4
|
|
|
5
|
-
Also known as: Progress Bar
|
|
5
|
+
Also known as: Progress Bar, Progress Linear
|
|
6
6
|
|
|
7
7
|
⚠️ Not the same as elsewhere: Material's "Progress Indicator" covers indeterminate spinners as well. WIM's `Progress` is determinate and linear only — for the indeterminate case use `Spinner`.
|
|
8
8
|
|
package/dist/llms/PromptInput.md
CHANGED
package/dist/llms/RadioGroup.md
CHANGED
package/dist/llms/RangeSlider.md
CHANGED
package/dist/llms/Rating.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Star rating
|
|
4
4
|
|
|
5
|
-
Also known as: Star Rating, Rating Indicator, Rating Display
|
|
5
|
+
Also known as: Star Rating, Rating Indicator, Rating Display, Rating Group, Rate
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -25,6 +25,7 @@ import { Rating } from "wimui/form";
|
|
|
25
25
|
- `label: React.ReactNode` — Accessible label
|
|
26
26
|
- `error: string` — Error message
|
|
27
27
|
- `required: boolean` — Whether to show the required indicator
|
|
28
|
+
- `name: string` — Name submitted with a native `<form>`. The rating is sent as a hidden input, and a form reset restores `defaultValue` when uncontrolled.
|
|
28
29
|
- `layout: "vertical" | "horizontal"` = "vertical" — Layout direction of label and field
|
|
29
30
|
- `labels: { star?: (count: number) => string; readonly?: (value: number, max: number) => string; }` = {} — Labels for internationalization
|
|
30
31
|
- `asChild: boolean` = false — Whether to render as a child element.
|
package/dist/llms/ScrollArea.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Button-style controls for switching between a small set of mutually exclusive options
|
|
4
4
|
|
|
5
|
-
Also known as: Segmented Buttons, Segmented Picker, Content Switcher
|
|
5
|
+
Also known as: Segmented Buttons, Segmented Picker, Content Switcher, Segment Group, Select Button
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -22,6 +22,7 @@ import { SegmentedControl } from "wimui/form";
|
|
|
22
22
|
- `label: string` — Accessible label
|
|
23
23
|
- `error: string` — Error message
|
|
24
24
|
- `required: boolean` — Whether to show the required indicator
|
|
25
|
+
- `name: string` — Name submitted with a native `<form>`. The selected value is sent as a hidden input. The component is controlled, so a form reset leaves the value to you.
|
|
25
26
|
- `layout: "vertical" | "horizontal"` = "vertical" — Layout direction of label and field
|
|
26
27
|
- `disabled: boolean` = false — Whether the control is disabled
|
|
27
28
|
- `asChild: boolean` = false — If true, merge radiogroup props onto the child element.
|
package/dist/llms/Select.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> A dropdown menu for selecting one option from a predefined list
|
|
4
4
|
|
|
5
|
-
Also known as: Pop-Up Button, Select Menu
|
|
5
|
+
Also known as: Pop-Up Button, Select Menu, Picker
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -30,6 +30,7 @@ import { Select } from "wimui/form";
|
|
|
30
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
|
+
- `name: string` — Name submitted with a native `<form>`. The selected value is sent as a hidden input, and a form reset restores `defaultValue` when uncontrolled.
|
|
33
34
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
34
35
|
- `noOptionsFoundLabel: string` — Label shown when no options match the search
|
|
35
36
|
- `width: ("xs" | "sm" | "md" | "lg" | "xl") | string | number` — Fixed width of the field (width token, CSS value, or number in px)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Bar above a table that shows the number of selected rows, the actions for them and a way to clear the selection. Announces the count to screen readers.
|
|
4
4
|
|
|
5
|
-
Also known as: Bulk Actions, Batch Actions, Table Selection Toolbar
|
|
5
|
+
Also known as: Bulk Actions, Batch Actions, Table Selection Toolbar, Select All Actions
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
package/dist/llms/Sidebar.md
CHANGED
package/dist/llms/SimpleGrid.md
CHANGED
package/dist/llms/Skeleton.md
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SkipLink — wimui
|
|
2
|
+
|
|
3
|
+
> A link at the very top of the page that jumps past the header and navigation to the main content. It stays hidden until it receives keyboard focus. AppShell renders one by default.
|
|
4
|
+
|
|
5
|
+
Also known as: Skip Nav, Skip Navigation, Skip to Content, Bypass Block
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import "wimui/styles.css"; // once per app — required
|
|
11
|
+
import { SkipLink } from "wimui/navigation";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Props
|
|
15
|
+
|
|
16
|
+
- `href: string` = "#main" — The `id` of the element to jump to, as a fragment (`#main`). Pressing the link moves keyboard focus to that element. @default "#main"
|
|
17
|
+
- `asChild: boolean` = false — If true, the component will be rendered as its child, merging its props onto that child.
|
|
18
|
+
|
|
19
|
+
## Design tokens it reads
|
|
20
|
+
|
|
21
|
+
`--wim-border-width-thin`, `--wim-color-border`, `--wim-color-surface`, `--wim-color-text-primary`, `--wim-font-size-md`, `--wim-font-weight-bold`, `--wim-radius-overlay`, `--wim-shadow-overlay`, `--wim-spacing-md`, `--wim-spacing-sm`, `--wim-z-header`, `--wim-z-navbar`, `--wim-z-toast`
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
Setup, composition rules and the full catalog: `llms.txt` / `llms-full.txt` in the same package.
|
package/dist/llms/Slider.md
CHANGED
package/dist/llms/Spinner.md
CHANGED
package/dist/llms/Splitter.md
CHANGED
package/dist/llms/Stack.md
CHANGED
package/dist/llms/Stats.md
CHANGED
package/dist/llms/Stepper.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Visual sequence steps
|
|
4
4
|
|
|
5
|
-
Also known as: Progress Indicator
|
|
5
|
+
Also known as: Progress Indicator, Steps, Wizard, Progress Tracker
|
|
6
6
|
|
|
7
7
|
⚠️ Not the same as elsewhere: In Apple HIG and macOS, a "Stepper" is the control that increments a number — that is `NumberInput` here. WIM's `Stepper` shows progress through a sequence of steps, which is what Material calls a Stepper.
|
|
8
8
|
|
package/dist/llms/Switch.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> A binary switch for instantly toggling settings between on and off states
|
|
4
4
|
|
|
5
|
-
Also known as: Toggle, Toggle Switch
|
|
5
|
+
Also known as: Toggle, Toggle Switch, Input Switch
|
|
6
|
+
|
|
7
|
+
⚠️ Not the same as elsewhere: In Radix, shadcn/ui and Ark UI, a "Toggle" is a button that stays pressed (`aria-pressed`) — use a one-item `ToggleGroup` here. WIM's `Switch` is the on/off control that Apple and Material call a toggle.
|
|
6
8
|
|
|
7
9
|
## Import
|
|
8
10
|
|
package/dist/llms/Table.md
CHANGED
package/dist/llms/Tabs.md
CHANGED
package/dist/llms/Tag.md
CHANGED
package/dist/llms/TagInput.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Input field for creating free-form tags.
|
|
4
4
|
|
|
5
|
-
Also known as: Token Field, Chips Input
|
|
5
|
+
Also known as: Token Field, Chips Input, Tags Input, Text Input With Tokens, Input Tag
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -25,6 +25,7 @@ import { TagInput } from "wimui/form";
|
|
|
25
25
|
- `label: React.ReactNode` — Field label
|
|
26
26
|
- `error: string` — Error message
|
|
27
27
|
- `required: boolean` — Whether to show the required indicator
|
|
28
|
+
- `name: string` — Name submitted with a native `<form>`. Each tag is sent as its own hidden input (read them with `FormData.getAll`), and a form reset restores `defaultValue` when uncontrolled.
|
|
28
29
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
29
30
|
- `allowDelete: boolean` = true — Whether tags can be deleted
|
|
30
31
|
- `maxTags: number` — Maximum number of tags that can be entered
|
package/dist/llms/Text.md
CHANGED
package/dist/llms/Textarea.md
CHANGED
package/dist/llms/ThemeToggle.md
CHANGED
package/dist/llms/TimePicker.md
CHANGED
package/dist/llms/Title.md
CHANGED
package/dist/llms/Toast.md
CHANGED
package/dist/llms/ToggleGroup.md
CHANGED
package/dist/llms/Toolbar.md
CHANGED
package/dist/llms/Tooltip.md
CHANGED
package/dist/llms/Tour.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> Sequential guided walkthroughs to onboard users or highlight features
|
|
4
4
|
|
|
5
|
-
Also known as: Teaching Popover, Coach Mark
|
|
5
|
+
Also known as: Teaching Popover, Coach Mark, User Guide, Spotlight
|
|
6
|
+
|
|
7
|
+
⚠️ Not the same as elsewhere: In Atlassian's design system, "Spotlight" is the onboarding tour that highlights one element at a time — that is `Tour` here. Aceternity UI's Spotlight is a decorative lighting effect, which WIM does not provide.
|
|
6
8
|
|
|
7
9
|
## Import
|
|
8
10
|
|
package/dist/llms/Transfer.md
CHANGED
package/dist/llms/TreeDiagram.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Lays out a tree such as an org chart from the data alone, with parents centred over their children and collapsible subtrees.
|
|
4
4
|
|
|
5
|
-
Also known as: Org Chart, Tree Chart, Hierarchy Diagram
|
|
5
|
+
Also known as: Org Chart, Tree Chart, Hierarchy Diagram, Organization Chart
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
package/dist/llms/TreeSelect.md
CHANGED
|
@@ -18,6 +18,7 @@ import { TreeSelect } from "wimui/form";
|
|
|
18
18
|
- `label: React.ReactNode` — Field label
|
|
19
19
|
- `error: string` — Error message
|
|
20
20
|
- `required: boolean` — Whether to show the required indicator
|
|
21
|
+
- `name: string` — Name submitted with a native `<form>`. The selected value (each value when `multiple`) is sent as a hidden input, and a form reset clears the selection when uncontrolled.
|
|
21
22
|
- `layout: "vertical" | "horizontal"` — Layout direction of label and field
|
|
22
23
|
- `className: string` — Additional class names
|
|
23
24
|
- `disabled: boolean` = false — Whether the field is disabled
|
package/dist/llms/TreeView.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Hierarchical data
|
|
4
4
|
|
|
5
|
-
Also known as: Outline View, Tree, Flat Tree
|
|
5
|
+
Also known as: Outline View, Tree, Flat Tree, File Tree, Navigation Tree
|
|
6
6
|
|
|
7
7
|
## Import
|
|
8
8
|
|
|
@@ -44,7 +44,7 @@ import { TreeView } from "wimui/data-display";
|
|
|
44
44
|
|
|
45
45
|
## Design tokens it reads
|
|
46
46
|
|
|
47
|
-
`--wim-border-width-thin`, `--wim-color-border
|
|
47
|
+
`--wim-border-width-thin`, `--wim-color-border-secondary`, `--wim-color-focus-outline`, `--wim-color-primary`, `--wim-color-surface`, `--wim-color-surface-hover`, `--wim-color-text-disabled`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-duration-base`, `--wim-duration-fast`, `--wim-duration-slow`, `--wim-easing-standard`, `--wim-font-size-sm`, `--wim-radius-component`, `--wim-radius-sm`, `--wim-shadow-focus`, `--wim-spacing-2xs`, `--wim-spacing-3xl`, `--wim-spacing-3xs`, `--wim-spacing-md`, `--wim-spacing-sm`, `--wim-spacing-xl`, `--wim-spacing-xs`, `--wim-tap-target-min`, `--wim-transition-fast`, `--wim-tree-icon-size`, `--wim-tree-indent`
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
Setup, composition rules and the full catalog: `llms.txt` / `llms-full.txt` in the same package.
|
package/dist/llms/Treemap.md
CHANGED
package/dist/llms/Video.md
CHANGED