wimui 0.76.3 → 0.78.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/ai-core.d.ts +1 -0
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +11 -10
- package/dist/components/ai/AILabel/AILabel.cjs +2 -0
- package/dist/components/ai/AILabel/AILabel.d.ts +68 -0
- package/dist/components/ai/AILabel/AILabel.js +51 -0
- package/dist/components/ai/AILabel/ai-label.module.cjs +2 -0
- package/dist/components/ai/AILabel/ai-label.module.js +15 -0
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.cjs +1 -1
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.js +11 -11
- package/dist/components/data-display/FAQSection/FAQSection.cjs +1 -1
- package/dist/components/data-display/FAQSection/FAQSection.js +10 -10
- 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/layout/PageHeader/PageHeader.cjs +2 -0
- package/dist/components/layout/PageHeader/PageHeader.d.ts +51 -0
- package/dist/components/layout/PageHeader/PageHeader.js +55 -0
- package/dist/components/layout/PageHeader/page-header.module.cjs +2 -0
- package/dist/components/layout/PageHeader/page-header.module.js +16 -0
- package/dist/components/overlay/Popover/Popover.cjs +1 -1
- package/dist/components/overlay/Popover/Popover.js +2 -2
- 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/ai.cjs +2 -0
- package/dist/i18n/generated/ai.d.ts +3 -0
- package/dist/i18n/generated/ai.js +21 -0
- package/dist/i18n/generated/components.d.ts +1 -1
- package/dist/i18n/generated/keys.d.ts +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +176 -173
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +1 -0
- package/dist/layout.js +2 -1
- package/dist/llms/AILabel.md +27 -0
- package/dist/llms/PageHeader.md +30 -0
- package/dist/llms/Persona.md +31 -0
- package/dist/llms-full.txt +33 -1
- package/dist/llms.txt +4 -1
- package/dist/locales/en/components.json +4 -1
- package/dist/locales/ja/components.json +4 -1
- package/dist/locales/pt/components.json +4 -1
- package/dist/styles.css +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +5 -5
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +5 -5
package/dist/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.78.0 — a React 19 component library: 234 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|
|
@@ -837,6 +837,15 @@ elements. Without it, the row is a `div`, which a list may not contain.
|
|
|
837
837
|
- `asChild: boolean` = false — If true, the list will be rendered as its child, merging its props onto that child.
|
|
838
838
|
- `children: React.ReactNode` — The element that becomes the root (in place of `div`) when `asChild` is set. The items are
|
|
839
839
|
rendered inside it. Ignored without `asChild`.
|
|
840
|
+
- **PageHeader** — Head of a page: breadcrumb, title (always h1), status, description, actions and tabs in a fixed order and spacing.
|
|
841
|
+
- `title: React.ReactNode` (required) — The page title. Always rendered as the page's `h1` at one fixed size; a
|
|
842
|
+
long title wraps instead of being cut.
|
|
843
|
+
- `breadcrumb: React.ReactNode` — Breadcrumb shown above the title (usually a `Breadcrumb`).
|
|
844
|
+
- `status: React.ReactNode` — A short status next to the title, such as a `Badge`.
|
|
845
|
+
- `description: React.ReactNode` — One or two lines under the title that say what is on the page.
|
|
846
|
+
- `actions: React.ReactNode` — Page actions, such as `Button`s. They sit to the right of the title and
|
|
847
|
+
move to their own line under it when the header is too narrow.
|
|
848
|
+
- `tabs: React.ReactNode` — Navigation between the page's views, such as `TabNavigation`, at the bottom.
|
|
840
849
|
- **ScrollArea** — A custom scrollbar component that provides high-performance, cross-browser consistent themes while maintaining a native-like feel.
|
|
841
850
|
- `text: React.ReactNode` — Content to display (alternative to children)
|
|
842
851
|
- `children: React.ReactNode` — Content to display
|
|
@@ -2651,6 +2660,17 @@ When omitted, both Backspace and Delete work.
|
|
|
2651
2660
|
- `defaultEdgeOptions: DefaultEdgeOptions` — Default options applied to new edges
|
|
2652
2661
|
- `className: string` — Additional CSS class
|
|
2653
2662
|
- `aria-label: string` — Accessible label for the graph region
|
|
2663
|
+
- **Persona** — 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.
|
|
2664
|
+
- `name: React.ReactNode` (required) — The person's name. Read once; the avatar is never given the name as its alternative text.
|
|
2665
|
+
- `description: React.ReactNode` — First line under the name, such as a role or a team.
|
|
2666
|
+
- `secondaryDescription: React.ReactNode` — Second line under the name, smaller and quieter, such as a status or a time.
|
|
2667
|
+
- `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
|
|
2668
|
+
already says who it is.
|
|
2669
|
+
- `presence: "online" | "away" | "busy" | "offline"` — Presence shown on the avatar. Announced right after the name.
|
|
2670
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the avatar. The name and description sizes and the gaps follow it.
|
|
2671
|
+
@default "md"
|
|
2672
|
+
- `textPosition: "after" | "below"` = "after" — Where the text sits relative to the avatar.
|
|
2673
|
+
@default "after"
|
|
2654
2674
|
- **PivotTable** — Draws aggregated data as a table with multi-level row and column headings, subtotals and grand totals. (aka Pivot, Cross Tab, Crosstab)
|
|
2655
2675
|
- `rows: PivotTableAxisNode[]` (required) — The row axis as a tree. Groups are drawn as an outline: one indented row per node.
|
|
2656
2676
|
- `columns: PivotTableAxisNode[]` (required) — The column axis as a tree. Groups become headings that span their columns.
|
|
@@ -3490,6 +3510,18 @@ enough on its own.
|
|
|
3490
3510
|
- `size: "sm" | "md" | "lg"` = "md" — Size variant
|
|
3491
3511
|
- `showLabel: boolean` = true — Whether to show the text label next to the indicator
|
|
3492
3512
|
- `className: string` — Additional CSS class
|
|
3513
|
+
- **AILabel** — Marks a value or a block as produced by AI. Pressing the mark opens an explanation of what the AI did.
|
|
3514
|
+
- `children: ReactNode` (required) — What the AI did, shown when the label is pressed — for example which model
|
|
3515
|
+
produced the value, from what, and how to check or replace it.
|
|
3516
|
+
- `title: ReactNode` — Heading of the explanation. Defaults to the localized "AI-generated".
|
|
3517
|
+
- `size: "sm" | "md" | "lg"` = "md" — Size of the mark. `sm` fits inside a field or a table cell; `md` sits next
|
|
3518
|
+
to a heading or in the corner of a card.
|
|
3519
|
+
@default "md"
|
|
3520
|
+
- `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 explanation.
|
|
3521
|
+
@default "bottom-start"
|
|
3522
|
+
- `defaultOpen: boolean` — Opens the explanation on the first render (uncontrolled).
|
|
3523
|
+
- `open: boolean` — Controls whether the explanation is open.
|
|
3524
|
+
- `onOpenChange: (open: boolean) => void` — Called when the explanation opens or closes.
|
|
3493
3525
|
- **AIResponseFeedback** — Thumbs-up/down feedback controls and regenerate button for AI responses.
|
|
3494
3526
|
- `feedback: ("positive" | "negative") | null` — Currently selected feedback value (controlled)
|
|
3495
3527
|
- `defaultFeedback: ("positive" | "negative") | null` = null — Default feedback value (uncontrolled)
|
package/dist/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What this is
|
|
6
6
|
|
|
7
|
-
**wimui** v0.
|
|
7
|
+
**wimui** v0.78.0 — a React 19 component library: 234 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
|
|
8
8
|
|
|
9
9
|
## Install & required setup
|
|
10
10
|
|
|
@@ -219,6 +219,7 @@ export function BillingOverview() {
|
|
|
219
219
|
- **Masonry** — Waterfall grid
|
|
220
220
|
- **Navbar** — Primary navigation
|
|
221
221
|
- **OverflowList** — Lays out items in one row and folds the ones that do not fit into a "+N" indicator. (aka Overflow, Overflow Handler)
|
|
222
|
+
- **PageHeader** — Head of a page: breadcrumb, title (always h1), status, description, actions and tabs in a fixed order and spacing.
|
|
222
223
|
- **ScrollArea** — A custom scrollbar component that provides high-performance, cross-browser consistent themes while maintaining a native-like feel.
|
|
223
224
|
- **Sidebar** — A collapsible navigation or informational panel on the side of the screen (aka Source List, Inspector, Nav Drawer)
|
|
224
225
|
- **SimpleGrid** — Responsive fixed grid
|
|
@@ -355,6 +356,7 @@ export function BillingOverview() {
|
|
|
355
356
|
- **Markdown** — A component for safely rendering text in Markdown format.
|
|
356
357
|
- **Marquee** — Scrolling text animation (aka Ticker)
|
|
357
358
|
- **NodeGraph** — Visualizes complex networks and relationships between nodes.
|
|
359
|
+
- **Persona** — 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.
|
|
358
360
|
- **PivotTable** — Draws aggregated data as a table with multi-level row and column headings, subtotals and grand totals. (aka Pivot, Cross Tab, Crosstab)
|
|
359
361
|
- **Presence** — Shows whether a person is online, away, busy, or offline.
|
|
360
362
|
- **PullToRefresh** — Pull-to-refresh utility for enhancing mobile user experience.
|
|
@@ -437,6 +439,7 @@ export function BillingOverview() {
|
|
|
437
439
|
### ai — `import { … } from "wimui/ai"`
|
|
438
440
|
|
|
439
441
|
- **AgentStatus** — Real-time agent state indicator (thinking / running / waiting)
|
|
442
|
+
- **AILabel** — Marks a value or a block as produced by AI. Pressing the mark opens an explanation of what the AI did.
|
|
440
443
|
- **AIResponseFeedback** — Thumbs-up/down feedback controls and regenerate button for AI responses.
|
|
441
444
|
- **ArtifactsOverlay** — ArtifactsOverlay is a specialized side-panel for displaying large AI-generated content (Artifacts) without interrupting the main chat context.
|
|
442
445
|
- **ChatUI** — A comprehensive set of components for building chat interfaces with support for messages, avatars, timestamps, and interactive input.
|
|
@@ -145,7 +145,10 @@
|
|
|
145
145
|
"pivotTable_desc": "Draws aggregated data as a table with multi-level row and column headings, subtotals and grand totals.",
|
|
146
146
|
"overflowList_desc": "Lays out items in one row and folds the ones that do not fit into a \"+N\" indicator.",
|
|
147
147
|
"selectionBar_desc": "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.",
|
|
148
|
-
"confirm_desc": "Opens a confirmation dialog from code with await confirm() and returns true or false."
|
|
148
|
+
"confirm_desc": "Opens a confirmation dialog from code with await confirm() and returns true or false.",
|
|
149
|
+
"aiLabel_desc": "Marks a value or a block as produced by AI. Pressing the mark opens an explanation of what the AI did.",
|
|
150
|
+
"pageHeader_desc": "Head of a page: breadcrumb, title (always h1), status, description, actions and tabs in a fixed order and spacing.",
|
|
151
|
+
"persona_desc": "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."
|
|
149
152
|
},
|
|
150
153
|
"cat": {
|
|
151
154
|
"ai": "AI"
|
|
@@ -217,7 +217,10 @@
|
|
|
217
217
|
"pivotTable_desc": "集計済みのデータを、多段の行見出し・列見出しと小計・総計を持つ表として描画します。",
|
|
218
218
|
"overflowList_desc": "項目を 1 行に並べ、入らない分を「+N」にまとめます。",
|
|
219
219
|
"selectionBar_desc": "表の上に置き、選んだ行の数・その行への操作・選択の解除を出すバー。件数の変化をスクリーンリーダーに伝える。",
|
|
220
|
-
"confirm_desc": "await confirm() でコードから確認のダイアログを開き、true か false を返します。"
|
|
220
|
+
"confirm_desc": "await confirm() でコードから確認のダイアログを開き、true か false を返します。",
|
|
221
|
+
"aiLabel_desc": "値やまとまりが AI の出力であることを示す印。押すと、AI が何をしたかの説明が開きます。",
|
|
222
|
+
"pageHeader_desc": "ページの頭。パンくず・題(いつも h1)・状態・説明・操作・タブを、決まった順番と間隔で並べます。",
|
|
223
|
+
"persona_desc": "人を 1 つのまとまりで出す(アバター・名前・2 行までの補足)。文字の大きさはアバターに合わせ、名前は 1 回だけ読まれます。"
|
|
221
224
|
},
|
|
222
225
|
"effects": {
|
|
223
226
|
"common_vars": "共通変数"
|
|
@@ -217,7 +217,10 @@
|
|
|
217
217
|
"pivotTable_desc": "Desenha dados agregados como uma tabela com cabeçalhos de linha e de coluna em vários níveis, subtotais e totais gerais.",
|
|
218
218
|
"overflowList_desc": "Organiza itens em uma única linha e agrupa os que não cabem em um indicador \"+N\".",
|
|
219
219
|
"selectionBar_desc": "Barra acima de uma tabela que mostra o número de linhas selecionadas, as ações para elas e uma forma de limpar a seleção. Anuncia a contagem para leitores de tela.",
|
|
220
|
-
"confirm_desc": "Abre uma caixa de diálogo de confirmação pelo código com await confirm() e devolve true ou false."
|
|
220
|
+
"confirm_desc": "Abre uma caixa de diálogo de confirmação pelo código com await confirm() e devolve true ou false.",
|
|
221
|
+
"aiLabel_desc": "Marca um valor ou um bloco como produzido por IA. Ao pressionar a marca, abre uma explicação do que a IA fez.",
|
|
222
|
+
"pageHeader_desc": "Topo de uma página: trilha, título (sempre h1), status, descrição, ações e abas em ordem e espaçamento fixos.",
|
|
223
|
+
"persona_desc": "Mostra uma pessoa como uma unidade: avatar, nome e até duas linhas de descrição, com o texto no tamanho do avatar. O nome é lido uma vez."
|
|
221
224
|
},
|
|
222
225
|
"effects": {
|
|
223
226
|
"common_vars": "Variáveis Comuns"
|