wimui 0.77.0 → 0.79.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/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/data-display/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/data-display/DataGrid/DataGrid.js +136 -111
- 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/Persona/Persona.cjs +2 -0
- package/dist/components/data-display/Persona/Persona.d.ts +71 -0
- package/dist/components/data-display/Persona/Persona.js +58 -0
- package/dist/components/data-display/Persona/persona.module.cjs +2 -0
- package/dist/components/data-display/Persona/persona.module.js +16 -0
- package/dist/components/form/Cascader/cascader.module.cjs +1 -1
- package/dist/components/form/Cascader/cascader.module.js +7 -6
- package/dist/components/form/OtpInput/OtpInput.cjs +1 -1
- package/dist/components/form/OtpInput/OtpInput.d.ts +5 -0
- package/dist/components/form/OtpInput/OtpInput.js +48 -41
- 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/Transfer/transfer.module.cjs +1 -1
- package/dist/components/form/Transfer/transfer.module.js +7 -6
- package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
- package/dist/components/form/TreeSelect/tree-select.module.js +7 -6
- package/dist/data-display-core.d.ts +1 -0
- package/dist/data-display.cjs +1 -1
- package/dist/data-display.js +4 -3
- package/dist/i18n/generated/components.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +43 -42
- package/dist/llms/Alert.md +3 -1
- package/dist/llms/Anchor.md +1 -1
- package/dist/llms/AvatarGroup.md +1 -1
- package/dist/llms/Breadcrumb.md +1 -1
- package/dist/llms/CodeDiffViewer.md +2 -0
- package/dist/llms/Combobox.md +1 -1
- package/dist/llms/CommandPalette.md +1 -1
- package/dist/llms/CopyButton.md +1 -1
- package/dist/llms/Countdown.md +2 -0
- package/dist/llms/DatePicker.md +4 -0
- package/dist/llms/DateRangePicker.md +4 -0
- package/dist/llms/DescriptionList.md +2 -0
- package/dist/llms/EmptyState.md +1 -1
- package/dist/llms/Group.md +2 -0
- package/dist/llms/Highlight.md +2 -0
- package/dist/llms/InlineEdit.md +1 -1
- package/dist/llms/InputGroup.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/NumberInput.md +1 -1
- package/dist/llms/OtpInput.md +1 -0
- package/dist/llms/Persona.md +31 -0
- package/dist/llms/Presence.md +2 -0
- package/dist/llms/ProgressRing.md +2 -0
- package/dist/llms/Rating.md +1 -1
- package/dist/llms/SegmentedControl.md +1 -1
- package/dist/llms/Stepper.md +1 -1
- package/dist/llms/Switch.md +2 -0
- package/dist/llms/Table.md +1 -1
- package/dist/llms/TagInput.md +1 -1
- package/dist/llms/ThemeToggle.md +2 -0
- package/dist/llms/Title.md +2 -0
- package/dist/llms/TreeView.md +1 -1
- package/dist/llms-full.txt +60 -34
- package/dist/llms.txt +48 -34
- 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/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 +20 -17
package/dist/llms/Combobox.md
CHANGED
package/dist/llms/CopyButton.md
CHANGED
package/dist/llms/Countdown.md
CHANGED
package/dist/llms/DatePicker.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> Date selection
|
|
4
4
|
|
|
5
|
+
Also known as: Date Input
|
|
6
|
+
|
|
7
|
+
⚠️ Not the same as elsewhere: In Blueprint, a "DatePicker" is the calendar panel shown inline — that is `Calendar` here. WIM's `DatePicker` is a text field that opens a calendar, which Blueprint calls DateInput.
|
|
8
|
+
|
|
5
9
|
## Import
|
|
6
10
|
|
|
7
11
|
```ts
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> Date range selection
|
|
4
4
|
|
|
5
|
+
Also known as: Date Range Input
|
|
6
|
+
|
|
7
|
+
⚠️ Not the same as elsewhere: In Blueprint, a "DateRangePicker" is the calendar panel for choosing a range — that is `RangeCalendar` here. WIM's `DateRangePicker` is a pair of date fields, which Blueprint calls DateRangeInput.
|
|
8
|
+
|
|
5
9
|
## Import
|
|
6
10
|
|
|
7
11
|
```ts
|
package/dist/llms/EmptyState.md
CHANGED
package/dist/llms/Group.md
CHANGED
package/dist/llms/Highlight.md
CHANGED
package/dist/llms/InlineEdit.md
CHANGED
package/dist/llms/InputGroup.md
CHANGED
package/dist/llms/JsonViewer.md
CHANGED
package/dist/llms/Kbd.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> Display a structured list of keyboard shortcuts
|
|
4
4
|
|
|
5
|
+
Also known as: Hotkeys
|
|
6
|
+
|
|
7
|
+
⚠️ Not the same as elsewhere: Blueprint's Hotkeys also registers the key bindings. WIM's `KeyboardShortcuts` only shows the list of shortcuts; bind the keys in your app.
|
|
8
|
+
|
|
5
9
|
## Import
|
|
6
10
|
|
|
7
11
|
```ts
|
package/dist/llms/LinkButton.md
CHANGED
package/dist/llms/List.md
CHANGED
package/dist/llms/NumberInput.md
CHANGED
package/dist/llms/OtpInput.md
CHANGED
|
@@ -24,6 +24,7 @@ import { OtpInput } from "wimui/form";
|
|
|
24
24
|
- `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
25
|
- `asChild: boolean` = false — Whether to render as a child element.
|
|
26
26
|
- `fullWidth: boolean` = false — Whether to take full width of parent
|
|
27
|
+
- `inputMode: "numeric" | "text"` = "numeric" — Keyboard shown on touch devices. Use `"text"` for codes that contain letters. @default "numeric"
|
|
27
28
|
|
|
28
29
|
## Design tokens it reads
|
|
29
30
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Persona — wimui
|
|
2
|
+
|
|
3
|
+
> Shows a person as one unit: avatar, name and up to two lines of description, with text sizes matched to the avatar. The name is read once.
|
|
4
|
+
|
|
5
|
+
## Import
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import "wimui/styles.css"; // once per app — required
|
|
9
|
+
import { Persona } from "wimui/data-display";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Props
|
|
13
|
+
|
|
14
|
+
- `name: React.ReactNode` (required) — The person's name. Read once; the avatar is never given the name as its alternative text.
|
|
15
|
+
- `description: React.ReactNode` — First line under the name, such as a role or a team.
|
|
16
|
+
- `secondaryDescription: React.ReactNode` — Second line under the name, smaller and quieter, such as a status or a time.
|
|
17
|
+
- `avatar: { /** Image source URL. */ src?: string; /** Initials shown when there is no image. */ initials?: string; /** Icon shown when there is no image and no initials. */ icon?: React.ReactNode; }` — What the avatar shows. The avatar is decorative: the name next to it already says who it is.
|
|
18
|
+
- `presence: "online" | "away" | "busy" | "offline"` — Presence shown on the avatar. Announced right after the name.
|
|
19
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the avatar. The name and description sizes and the gaps follow it. @default "md"
|
|
20
|
+
- `textPosition: "after" | "below"` = "after" — Where the text sits relative to the avatar. @default "after"
|
|
21
|
+
|
|
22
|
+
## Design tokens it reads
|
|
23
|
+
|
|
24
|
+
`--wim-color-text-primary`, `--wim-color-text-secondary`, `--wim-color-text-tertiary`, `--wim-font-size-lg`, `--wim-font-size-md`, `--wim-font-size-sm`, `--wim-font-size-xs`, `--wim-font-weight-semibold`, `--wim-line-height-snug`, `--wim-spacing-3xs`, `--wim-spacing-md`, `--wim-spacing-sm`, `--wim-spacing-xs`
|
|
25
|
+
|
|
26
|
+
## Parts (data-part)
|
|
27
|
+
|
|
28
|
+
Style an inner element from your own CSS written outside any `@layer` (it wins over the component layer): `[data-part="description"]`, `[data-part="name"]`, `[data-part="secondary-description"]`
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
Setup, composition rules and the full catalog: `llms.txt` / `llms-full.txt` in the same package.
|
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/Rating.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
|
|
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
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Also known as: Toggle, Toggle Switch
|
|
6
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.
|
|
8
|
+
|
|
7
9
|
## Import
|
|
8
10
|
|
|
9
11
|
```ts
|
package/dist/llms/Table.md
CHANGED
package/dist/llms/TagInput.md
CHANGED
package/dist/llms/ThemeToggle.md
CHANGED
package/dist/llms/Title.md
CHANGED