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.
Files changed (82) hide show
  1. package/README.ja.md +2 -2
  2. package/README.md +2 -2
  3. package/dist/components/ai/InteractiveGraph/InteractiveGraph.cjs +1 -1
  4. package/dist/components/ai/InteractiveGraph/InteractiveGraph.js +22 -37
  5. package/dist/components/ai/InteractiveGraph/interactive-graph.module.cjs +1 -1
  6. package/dist/components/ai/InteractiveGraph/interactive-graph.module.js +1 -1
  7. package/dist/components/data-display/DataGrid/DataGrid.cjs +1 -1
  8. package/dist/components/data-display/DataGrid/DataGrid.js +136 -111
  9. package/dist/components/data-display/DataGrid/useDataGridKeyboard.cjs +1 -1
  10. package/dist/components/data-display/DataGrid/useDataGridKeyboard.js +23 -23
  11. package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
  12. package/dist/components/data-display/NodeGraph/NodeGraph.js +69 -66
  13. package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
  14. package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
  15. package/dist/components/data-display/Persona/Persona.cjs +2 -0
  16. package/dist/components/data-display/Persona/Persona.d.ts +71 -0
  17. package/dist/components/data-display/Persona/Persona.js +58 -0
  18. package/dist/components/data-display/Persona/persona.module.cjs +2 -0
  19. package/dist/components/data-display/Persona/persona.module.js +16 -0
  20. package/dist/components/form/Cascader/cascader.module.cjs +1 -1
  21. package/dist/components/form/Cascader/cascader.module.js +7 -6
  22. package/dist/components/form/OtpInput/OtpInput.cjs +1 -1
  23. package/dist/components/form/OtpInput/OtpInput.d.ts +5 -0
  24. package/dist/components/form/OtpInput/OtpInput.js +48 -41
  25. package/dist/components/form/SignaturePad/signature-pad.module.cjs +1 -1
  26. package/dist/components/form/SignaturePad/signature-pad.module.js +7 -6
  27. package/dist/components/form/Transfer/transfer.module.cjs +1 -1
  28. package/dist/components/form/Transfer/transfer.module.js +7 -6
  29. package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
  30. package/dist/components/form/TreeSelect/tree-select.module.js +7 -6
  31. package/dist/data-display-core.d.ts +1 -0
  32. package/dist/data-display.cjs +1 -1
  33. package/dist/data-display.js +4 -3
  34. package/dist/i18n/generated/components.d.ts +1 -1
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.js +43 -42
  37. package/dist/llms/Alert.md +3 -1
  38. package/dist/llms/Anchor.md +1 -1
  39. package/dist/llms/AvatarGroup.md +1 -1
  40. package/dist/llms/Breadcrumb.md +1 -1
  41. package/dist/llms/CodeDiffViewer.md +2 -0
  42. package/dist/llms/Combobox.md +1 -1
  43. package/dist/llms/CommandPalette.md +1 -1
  44. package/dist/llms/CopyButton.md +1 -1
  45. package/dist/llms/Countdown.md +2 -0
  46. package/dist/llms/DatePicker.md +4 -0
  47. package/dist/llms/DateRangePicker.md +4 -0
  48. package/dist/llms/DescriptionList.md +2 -0
  49. package/dist/llms/EmptyState.md +1 -1
  50. package/dist/llms/Group.md +2 -0
  51. package/dist/llms/Highlight.md +2 -0
  52. package/dist/llms/InlineEdit.md +1 -1
  53. package/dist/llms/InputGroup.md +2 -0
  54. package/dist/llms/JsonViewer.md +2 -0
  55. package/dist/llms/Kbd.md +2 -0
  56. package/dist/llms/KeyboardShortcuts.md +4 -0
  57. package/dist/llms/LinkButton.md +2 -0
  58. package/dist/llms/List.md +1 -1
  59. package/dist/llms/NumberInput.md +1 -1
  60. package/dist/llms/OtpInput.md +1 -0
  61. package/dist/llms/Persona.md +31 -0
  62. package/dist/llms/Presence.md +2 -0
  63. package/dist/llms/ProgressRing.md +2 -0
  64. package/dist/llms/Rating.md +1 -1
  65. package/dist/llms/SegmentedControl.md +1 -1
  66. package/dist/llms/Stepper.md +1 -1
  67. package/dist/llms/Switch.md +2 -0
  68. package/dist/llms/Table.md +1 -1
  69. package/dist/llms/TagInput.md +1 -1
  70. package/dist/llms/ThemeToggle.md +2 -0
  71. package/dist/llms/Title.md +2 -0
  72. package/dist/llms/TreeView.md +1 -1
  73. package/dist/llms-full.txt +60 -34
  74. package/dist/llms.txt +48 -34
  75. package/dist/locales/en/components.json +2 -1
  76. package/dist/locales/ja/components.json +2 -1
  77. package/dist/locales/pt/components.json +2 -1
  78. package/dist/reset.css +1 -1
  79. package/dist/styles.css +1 -1
  80. package/dist/wimui.umd.css +1 -1
  81. package/dist/wimui.umd.js +5 -5
  82. package/package.json +20 -17
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Select with search
4
4
 
5
- Also known as: Autocomplete, Auto Complete
5
+ Also known as: Autocomplete, Auto Complete, Suggest
6
6
 
7
7
  ## Import
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Cmd+K search overlay
4
4
 
5
- Also known as: Command Bar, Quick Open
5
+ Also known as: Command Bar, Quick Open, Omnibar, Command
6
6
 
7
7
  ## Import
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Copy to clipboard
4
4
 
5
- Also known as: Copy
5
+ Also known as: Copy, Clipboard
6
6
 
7
7
  ## Import
8
8
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Display the remaining time until a target moment as a live ticking timer, for sale deadlines, OTP resend waits, and maintenance notices.
4
4
 
5
+ Also known as: Timer
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -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
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Key-value pairs
4
4
 
5
+ Also known as: Data List
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Missing data placeholder
4
4
 
5
- Also known as: Blank Slate, Zero State
5
+ Also known as: Blank Slate, Zero State, Non-Ideal State
6
6
 
7
7
  ## Import
8
8
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Flexible grouping
4
4
 
5
+ Also known as: Wrap
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Text highlighting
4
4
 
5
+ Also known as: Mark, Highlighter
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,7 +2,7 @@
2
2
 
3
3
  > A component that allows users to switch between a view-only mode and an editable mode in-place.
4
4
 
5
- Also known as: Editable Text, Edit In Place
5
+ Also known as: Editable Text, Edit In Place, Editable
6
6
 
7
7
  ## Import
8
8
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Inputs with icons/labels
4
4
 
5
+ Also known as: Control Group
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Recursive tree viewer and editor for JSON data.
4
4
 
5
+ Also known as: JSON Tree View
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
package/dist/llms/Kbd.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Keyboard shortcuts
4
4
 
5
+ Also known as: Key Combo
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -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
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Anchor styled as button
4
4
 
5
+ Also known as: Anchor Button
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
package/dist/llms/List.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Structurally organized items in bullet points or numbered formats
4
4
 
5
- Also known as: Contained List, Ordered List, Unordered List
5
+ Also known as: Contained List, Ordered List, Unordered List, Card List
6
6
 
7
7
  ## Import
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Input with step adjustments
4
4
 
5
- Also known as: Spin Button, Numeric Stepper
5
+ Also known as: Spin Button, Numeric Stepper, Numeric Input
6
6
 
7
7
  ## Import
8
8
 
@@ -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.
@@ -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
@@ -2,6 +2,8 @@
2
2
 
3
3
  > ProgressRing description.
4
4
 
5
+ Also known as: Progress Circle, Animated Circular Progress Bar
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -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
6
6
 
7
7
  ## Import
8
8
 
@@ -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
6
6
 
7
7
  ## Import
8
8
 
@@ -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
 
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Rows and columns for displaying structured data efficiently
4
4
 
5
- Also known as: Structured List
5
+ Also known as: Structured List, HTML Table
6
6
 
7
7
  ## Import
8
8
 
@@ -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
6
6
 
7
7
  ## Import
8
8
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Light / dark / system theme switcher
4
4
 
5
+ Also known as: Animated Theme Toggler
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Possesses visual weight (boldness/size) to indicate page structure.
4
4
 
5
+ Also known as: Heading
6
+
5
7
  ## Import
6
8
 
7
9
  ```ts
@@ -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
6
6
 
7
7
  ## Import
8
8