@imfusion/web-ui 0.11.1-dev.5.g8a97f4f6 → 0.11.1-dev.53.g43897e72
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/CHANGELOG.md +139 -1
- package/dist/{code-NTcddiYk.js → code-BaLXMEMa.js} +13 -13
- package/dist/components/autocomplete/autocomplete.d.ts +144 -0
- package/dist/components/autocomplete/autocomplete.meta.d.ts +2 -0
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/checkbox/checkbox.cva.d.ts +3 -0
- package/dist/components/combobox/combobox.cva.d.ts +37 -0
- package/dist/components/combobox/combobox.d.ts +171 -0
- package/dist/components/combobox/combobox.meta.d.ts +2 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/file-drop-zone/collect-files.d.ts +56 -0
- package/dist/components/file-drop-zone/file-drop-zone-context.d.ts +15 -0
- package/dist/components/file-drop-zone/file-drop-zone.d.ts +185 -0
- package/dist/components/file-drop-zone/file-drop-zone.meta.d.ts +2 -0
- package/dist/components/file-drop-zone/format-bytes.d.ts +5 -0
- package/dist/components/file-drop-zone/index.d.ts +4 -0
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progress.d.ts +40 -0
- package/dist/components/progress/progress.meta.d.ts +2 -0
- package/dist/components/select/select.cva.d.ts +7 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/tab-nav/index.d.ts +2 -0
- package/dist/components/tab-nav/tab-nav.d.ts +26 -0
- package/dist/components/tab-nav/tab-nav.meta.d.ts +2 -0
- package/dist/components/table/table.d.ts +8 -0
- package/dist/components/tabs/tabs-underline.cva.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +13 -4
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +32 -0
- package/dist/components/textarea/textarea.meta.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +5 -1
- package/dist/docgen/component-sources.d.ts +4 -0
- package/dist/icon-button-roSB497o.js +171 -0
- package/dist/icons/catalog.gen.d.ts +28 -0
- package/dist/icons/icons.gen.d.ts +4 -0
- package/dist/{icons-BsK_o-Cb.js → icons-vc1WZCxX.js} +1027 -879
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +4336 -2930
- package/dist/integrations/code-highlight.js +2 -2
- package/dist/integrations/frame-selection.js +1 -1
- package/dist/integrations/image-display-options.js +73 -71
- package/dist/integrations/layout-mode/index.d.ts +2 -0
- package/dist/integrations/layout-mode/layout-mode-view.d.ts +32 -0
- package/dist/integrations/layout-mode/layout-mode.d.ts +13 -0
- package/dist/integrations/layout-mode/layout-mode.meta.d.ts +2 -0
- package/dist/integrations/layout-mode.js +103 -0
- package/dist/integrations/view-tools/index.d.ts +4 -0
- package/dist/integrations/view-tools/use-view-interaction.d.ts +21 -0
- package/dist/integrations/view-tools/view-tools-view.d.ts +23 -0
- package/dist/integrations/view-tools/view-tools.d.ts +14 -0
- package/dist/integrations/view-tools/view-tools.meta.d.ts +2 -0
- package/dist/integrations/view-tools.js +133 -0
- package/dist/{resolve-state-props-DQf9WiGv.js → rolldown-runtime-Dy4uBu1J.js} +1 -12
- package/dist/row-CImu8yXV.js +136 -0
- package/dist/{scroll-area-z9Lf9uIk.js → scroll-area-CXQ_SxPX.js} +2 -1
- package/dist/{slider-Bf274cMe.js → slider-CpIZMAFl.js} +2 -1
- package/dist/style.css +2 -1
- package/dist/tabs-BqgyMmo6.js +173 -0
- package/dist/toggle-group-Bhb3qicp.js +31 -0
- package/dist/toggle-group-eGr6_hgQ.js +125 -0
- package/dist/utils/email.d.ts +4 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/initials.d.ts +4 -0
- package/dist/utils/item-parts.d.ts +23 -0
- package/dist/utils/stable-popup-height.d.ts +10 -0
- package/dist/utils-J6vbjIt1.js +46 -0
- package/package.json +3 -3
- package/src/docgen/doc.gen.json +5187 -1669
- package/src/llms/icon-catalog.gen.json +32 -0
- package/src/llms/llms.gen.txt +47 -1
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +24 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +10 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +3 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +22 -1
- package/src/llms/tokens.gen.json +19 -1
- package/dist/tabs-CU46aGud.js +0 -376
package/CHANGELOG.md
CHANGED
|
@@ -4,23 +4,161 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- `Progress` is a new bar for the completion of a running task, adapted from Base UI. `size` runs from `xs` (a 2px hairline) to
|
|
8
|
+
`lg`, `layout` is `stacked` or `inline`, `value={null}` sweeps while the amount is unknown, and the fill turns positive at the
|
|
9
|
+
maximum. [Progress](src/components/progress/progress.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
10
|
+
- `FileDropZone` is a new zone that collects files or whole folders by drop or through its `Trigger` buttons, in sizes `sm`,
|
|
11
|
+
`md` and `lg`. It reports accepted and rejected files through `onFilesAdded`, scans folders recursively, and reads the
|
|
12
|
+
result out to screen readers. `FileDropZone.Upload` composes the zone with a file list, a skipped-files note, per-file and
|
|
13
|
+
overall `Progress`, and an upload button; the app owns the items and the upload, and `onRetry` adds a Retry button to
|
|
14
|
+
failed rows. A single-file zone shows its file with `FileDropZone.File` and `FileDropZone.Remove`, and the glyph changes to a
|
|
15
|
+
page.
|
|
16
|
+
[FileDropZone](src/components/file-drop-zone/file-drop-zone.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
17
|
+
- `@imfusion/web-ui/integrations/view-tools` adds `ViewTools`: Pan, Zoom, and Windowing toggles that limit the left mouse
|
|
18
|
+
button in the ImFusion main 2D and MPR views to one action, and a button that resets the view group. `orientation` lays
|
|
19
|
+
the tools out in a row (`"horizontal"`, the default) or a column (`"vertical"`). It needs `@imfusion/sdk` 1.3.0 or later. [ViewTools](src/integrations/view-tools/view-tools.mdx)
|
|
20
|
+
([WEBSDK-290](https://imfusion.atlassian.net/browse/WEBSDK-290)) — Stephan Wenninger <wenninger@imfusion.com>
|
|
21
|
+
- `useViewInteraction` from `@imfusion/web-ui/integrations/view-tools` reads and sets the active `ViewTools` tool, so the
|
|
22
|
+
app and the toolbar share one value. `setViewInteraction("Default")` releases the tool. [ViewTools](src/integrations/view-tools/view-tools.mdx)
|
|
23
|
+
([WEBSDK-290](https://imfusion.atlassian.net/browse/WEBSDK-290)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
24
|
+
- `TabNav` is a new row of links to routes with a bar under the current one, in the underline look of `Tabs`. `TabNav.Item`
|
|
25
|
+
renders an `<a>`, takes a router link as `render`, and sets `aria-current="page"` from `current`.
|
|
26
|
+
[TabNav](src/components/tab-nav/tab-nav.stories.tsx#InAProjectHeader) — Nikolaus Brunner <brunner@imfusion.com>
|
|
27
|
+
- `Tabs.Root` takes `appearance`: `"boxed"` (the default, unchanged) or `"underline"`, with mono labels, a 2px bar under the
|
|
28
|
+
active tab on a hairline rule, and an unframed panel. Underline is horizontal only; a vertical Tabs stays boxed.
|
|
29
|
+
[Tabs](src/components/tabs/tabs.stories.tsx#Underline) — Nikolaus Brunner <brunner@imfusion.com>
|
|
30
|
+
- `Textarea` is a new multi-line input adapted from Base UI, with the `Input` variants and sizes, a drag-to-resize corner, and
|
|
31
|
+
validation state from `Field`. [Textarea](src/components/textarea/textarea.mdx)
|
|
32
|
+
([WEBSDK-244](https://imfusion.atlassian.net/browse/WEBSDK-244)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
33
|
+
- `Table.RowButton` is a button that stands for its whole row, like `Table.RowLink`, for rows that open a drawer or run an
|
|
34
|
+
action instead of navigating. [Table](src/components/table/table.stories.tsx#RowButton) — Nikolaus Brunner
|
|
35
|
+
<brunner@imfusion.com>
|
|
36
|
+
- `Combobox` and `Autocomplete` are new inputs adapted from Base UI: a text field with a filterable list, for choosing one or
|
|
37
|
+
several options (`Combobox`) or suggesting options while keeping free text (`Autocomplete`). Multi-select lists show a
|
|
38
|
+
checkbox on every row. [Combobox](src/components/combobox/combobox.mdx),
|
|
39
|
+
[Autocomplete](src/components/autocomplete/autocomplete.mdx) ([WEBSDK-245](https://imfusion.atlassian.net/browse/WEBSDK-245))
|
|
40
|
+
— Nikolaus Brunner <brunner@imfusion.com>
|
|
7
41
|
- `minWidth` and the `BreakpointName` type are exported, so `useMediaQuery(minWidth("md"))` works as the `styling` topic
|
|
8
42
|
shows. — Nikolaus Brunner <brunner@imfusion.com>
|
|
43
|
+
- `@imfusion/web-ui/icons` adds four viewport layout icons in the Layout category: `LayoutAuto`, `LayoutRows`,
|
|
44
|
+
`LayoutFocusPlusStack`, and `LayoutFocusPlusRows`. [Iconography](src/icons/iconography.stories.tsx#Iconography)
|
|
45
|
+
— Stephan Wenninger <wenninger@imfusion.com>
|
|
46
|
+
- `LayoutMode` is new, from `@imfusion/web-ui/integrations/layout-mode`. It switches the ImFusion Web SDK viewer between
|
|
47
|
+
Auto, Rows, Focus + stack, and Focus + rows through `useLayoutMode`. `variant="compact"` is a row of icon toggles and
|
|
48
|
+
`variant="labeled"` a vertical list with each mode's name beside its icon; every name can be replaced through its label
|
|
49
|
+
prop. [LayoutMode](src/integrations/layout-mode/layout-mode.mdx)
|
|
50
|
+
([WEBSDK-292](https://imfusion.atlassian.net/browse/WEBSDK-292)) — Stephan Wenninger <wenninger@imfusion.com>
|
|
51
|
+
- `Typo.UnorderedList` takes `markerVariant` to colour its dash apart from the text, such as the brand dash on main text.
|
|
52
|
+
[Typo](src/components/typo/typo.stories.tsx#MarkerVariant) — Nikolaus Brunner <brunner@imfusion.com>
|
|
53
|
+
- Focus ring tokens: `--imf-ui-focus-ring-width`, `--imf-ui-focus-ring-color`, and two offsets for a ring outside the
|
|
54
|
+
element or inside it (`-offset`, `-offset-inset`).
|
|
55
|
+
([WEBSDK-274](https://imfusion.atlassian.net/browse/WEBSDK-274)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
56
|
+
- `initialsFromName` gives one or two initials from a display name for `Avatar.Fallback`: `Mona Keller` gives `MK`, a single
|
|
57
|
+
word gives its first two letters, and an empty name gives `?`. [Avatar](src/components/avatar/avatar.mdx) — Nikolaus
|
|
58
|
+
Brunner <brunner@imfusion.com>
|
|
9
59
|
|
|
10
60
|
### Changed
|
|
11
61
|
|
|
62
|
+
- `initialsFromEmail` gives the first two letters of a single-segment local part, `jkeller@…` gives `JK`, and `?` for an
|
|
63
|
+
empty one, the same rule as `initialsFromName`. [Avatar](src/components/avatar/avatar.mdx) — Nikolaus Brunner
|
|
64
|
+
<brunner@imfusion.com>
|
|
65
|
+
- `Input`, `Field.Control`, `NumberField`, `Select`, `Combobox`, and `Autocomplete` show focus by turning their 1px border
|
|
66
|
+
primary, with no outline. [Input](src/components/input/input.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
67
|
+
- `Drawer` draws no border by default; `borderColor` adds one, such as `borderColor="primary"` for the previous look.
|
|
68
|
+
[Drawer](src/components/drawer/drawer.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
69
|
+
- Focus ring ([WEBSDK-274](https://imfusion.atlassian.net/browse/WEBSDK-274)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
70
|
+
- Every component draws the same focus ring from the focus ring tokens, and popups draw none.
|
|
71
|
+
- Navigation items and toasts draw the ring fully inside the item.
|
|
72
|
+
- A focused `Toggle` draws no box: its icon turns bolder and its label underlined, in primary unless pressed.
|
|
73
|
+
- An open `Select` trigger keeps its surface and turns its border primary instead of filling with primary.
|
|
74
|
+
- A focused `Tabs.Tab` underlines its label instead of drawing a box that looks like the active indicator. A focused
|
|
75
|
+
`Tabs.Panel` tints together with the active tab instead of drawing a second line inside its border.
|
|
76
|
+
- The branded `AppShell` header and navbar draw a light ring. A focused `AppShell.NavItem` shows its active underline at
|
|
77
|
+
double thickness instead of an outline.
|
|
78
|
+
- A light ring shows on blue fills: an active or open `NavigationMenu` link or trigger, and the `oncolor` context of
|
|
79
|
+
`Button`, `AccountCard`, and `Typo`.
|
|
80
|
+
- `AppShell.Burger` draws the primary ring on default surfaces, where it used the text colour.
|
|
81
|
+
- A focused chamfered `Button` shows its hover state, and `Code.Block`'s copy button colours its icon; a ring cannot
|
|
82
|
+
show through their clip-path.
|
|
83
|
+
- `Code`'s inline copy button shows the ring in place of the browser default.
|
|
84
|
+
- `Typo.UnorderedList` draws its dash in the text colour by default; `markerVariant="primary"` gives the brand dash.
|
|
85
|
+
— Nikolaus Brunner <brunner@imfusion.com>
|
|
86
|
+
- `Callout.Root` defaults to `maxWidth="lg"`, keeps a minimum width of 15rem, and spaces its title, description, and list
|
|
87
|
+
items more evenly. [Callout](src/components/callout/callout.stories.tsx#WithList) — Nikolaus Brunner <brunner@imfusion.com>
|
|
88
|
+
- `Select` items have more room: 1rem padding at the sides and 0.75rem above, below, and between the indicator and text.
|
|
89
|
+
The trigger's focus ring sits on its border. [Select](src/components/select/select.mdx)
|
|
90
|
+
([WEBSDK-245](https://imfusion.atlassian.net/browse/WEBSDK-245)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
12
91
|
- Agent skills — Nikolaus Brunner <brunner@imfusion.com>
|
|
13
92
|
- `imf-web-ui-conventions` exempts React components from the explicit return type on exported functions.
|
|
14
93
|
- The `project-structure` topic keeps a route's only view, such as a form, in the route file and moves views to the `-`
|
|
15
94
|
folder only when the page composes several. `imf-web-ui-audit` reports by views, not line counts.
|
|
16
|
-
- The `imf-web-ui-conventions`
|
|
95
|
+
- The `imf-web-ui-conventions` `assets` topic encodes photographs as AVIF and WebP at 800 and 1600px and renders them
|
|
96
|
+
through `<picture>` with `srcSet` and `sizes`. Every `<img>` has `width` and `height`, below-the-fold images load
|
|
97
|
+
lazily, and only the largest paint gets `fetchpriority="high"`.
|
|
98
|
+
- The `imf-web-ui-conventions` `components` topic names the landmarks `AppShell` renders and asks for one `Typo.H1` per
|
|
99
|
+
page, `Button` for actions, and `Link` for destinations.
|
|
100
|
+
- The `imf-web-ui-conventions` `library-boundary` topic reports a native element or local function that duplicates a Web
|
|
101
|
+
UI component, part, or helper such as `initialsFromName`.
|
|
102
|
+
- `web-ui-dev-new-component`, `web-ui-dev-update-component`, and `web-ui-dev-design-component` draft on the shared
|
|
103
|
+
Web UI Component Drafts canvas: a block per component on its Storybook group's page, one row per fidelity rung.
|
|
104
|
+
- `web-ui-dev-new-component` and `web-ui-dev-update-component` wait for the user to approve the design on the canvas
|
|
105
|
+
before writing the plan.
|
|
106
|
+
- Agents verify visual work on their own Storybook, started with `npm run dev`, against the approved canvas design.
|
|
107
|
+
- `web-ui-dev-teardown-worktree` lands local base-branch commits together with the worktree branch, and a branch with
|
|
108
|
+
an open Bitbucket pull request merges in Bitbucket with `bkt pr merge`.
|
|
109
|
+
- `web-ui-dev-new-component` and `web-ui-dev-update-component` open a drafts-canvas block with an API table and short
|
|
110
|
+
usage snippets.
|
|
111
|
+
- `web-ui-dev-design-system-sync` leaves every story exported from `renderAll` out of the sync on its own, so a new
|
|
112
|
+
component's `All` story no longer breaks the next sync.
|
|
113
|
+
- The `imf-web-ui-conventions` `styling` topic shows a container setting a custom property that its child reads with
|
|
114
|
+
its own default as the fallback.
|
|
115
|
+
- `web-ui-dev-release` syncs the Claude Design system once npm serves the stable version.
|
|
116
|
+
- `web-ui-dev-record-clip` records every clip in light and dark, and release highlights list both files of each pair.
|
|
117
|
+
- Documentation — Nikolaus Brunner <brunner@imfusion.com>
|
|
118
|
+
- The Changelog page's screenshot carousel shows one file of each `-light`/`-dark` pair, the one for the page's color
|
|
119
|
+
scheme, and switches with the Storybook toolbar.
|
|
120
|
+
- `docs/design-system.md` describes the Web UI Component Drafts canvas, and `AGENTS.md` links it. A shipped component
|
|
121
|
+
keeps its block under an "Implemented" note that names its story.
|
|
122
|
+
- `docs/conventions.md` shows how a component declares its default as a custom-property fallback that a container
|
|
123
|
+
overrides.
|
|
124
|
+
- `design/DESIGN.md` says focus turns a field's hairline border primary: one line, same width, nothing outside it.
|
|
125
|
+
- Storybook — Nikolaus Brunner <brunner@imfusion.com>
|
|
126
|
+
- The Controls table lists a component's own props first, then the props it inherits from Base UI or React.
|
|
127
|
+
- `withFrame` draws its border only with `bordered: true`. Layout stories such as Stack and Row use it to show their bounds.
|
|
128
|
+
- Interaction tests live in hidden `Test-only:` stories, and default-open popups open only in the single-story view,
|
|
129
|
+
as `docs/story-conventions.md` describes.
|
|
130
|
+
- Combobox and Autocomplete stories start at the same top-left corner, so clicking through them does not shift the
|
|
131
|
+
layout. A story resizes its frame with `parameters.frame`, which `withFrame` reads.
|
|
132
|
+
- The Autocomplete interaction test reads the popup's height after it reopens, so it passes on every run.
|
|
17
133
|
|
|
18
134
|
### Fixed
|
|
19
135
|
|
|
136
|
+
- `Drawer.Title` wraps a long title instead of running past the panel edge.
|
|
137
|
+
[Drawer](src/components/drawer/drawer.stories.tsx#LongTitle) — Nikolaus Brunner <brunner@imfusion.com>
|
|
138
|
+
- `Card` describes its coloured fills correctly: they set the background, and their content takes `oncolor` variants. —
|
|
139
|
+
Nikolaus Brunner <brunner@imfusion.com>
|
|
140
|
+
- Typo inside `Callout.Description`, such as `Typo.UnorderedList` or `Typo.P`, matches the description's size and takes
|
|
141
|
+
the variant's colour. [Callout](src/components/callout/callout.stories.tsx#WithList) — Nikolaus Brunner <brunner@imfusion.com>
|
|
142
|
+
- A `Select` option with `Select.ItemDescription` is named by its text alone and reads the description as its accessible
|
|
143
|
+
description. ([WEBSDK-245](https://imfusion.atlassian.net/browse/WEBSDK-245)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
144
|
+
- Generated CSS module types skip `:global()` selectors instead of listing their names as classes. — Nikolaus Brunner
|
|
145
|
+
<brunner@imfusion.com>
|
|
20
146
|
- `Table.RowLink` covers its whole row: a click anywhere in the row follows the link, while buttons, checkboxes, switches,
|
|
21
147
|
links, and form fields in the row keep their own click. — Nikolaus Brunner <brunner@imfusion.com>
|
|
22
148
|
- `npm run dev` starts Storybook on the next free port again while another checkout's Storybook runs. — Nikolaus Brunner
|
|
23
149
|
<brunner@imfusion.com>
|
|
150
|
+
- A Storybook sidebar row's status icon stays in place on hover. — Nikolaus Brunner <brunner@imfusion.com>
|
|
151
|
+
- `npm run ci:status` lists queued and running builds beside finished ones. — Nikolaus Brunner <brunner@imfusion.com>
|
|
152
|
+
- Components — Nikolaus Brunner <brunner@imfusion.com>
|
|
153
|
+
- A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
|
|
154
|
+
- A `Popover.Trigger` rendered as another component keeps that component's styles, so `render={<Button />}` looks like a Button.
|
|
155
|
+
- `dist/style.css` opens with the layer order statement (`imf-ui.tokens`, `imf-ui.base`, `imf-ui.components`), so each
|
|
156
|
+
component's own focus style beats the base focus ring and a focused field shows only its primary border.
|
|
157
|
+
([WEBSDK-274](https://imfusion.atlassian.net/browse/WEBSDK-274)) — Nikolaus Brunner <brunner@imfusion.com>
|
|
158
|
+
- `Popover.Positioner` sets the popup 4px away from its trigger by default, as `Select` does, on whichever side it opens.
|
|
159
|
+
— Nikolaus Brunner <brunner@imfusion.com>
|
|
160
|
+
- `Button variant="primary"` hovers to a blue outline on any surface. Its hover fill was the `main` background, which showed as a
|
|
161
|
+
white box on a `support` card. [Button](src/components/button/button.stories.tsx#OnSupportCard) — Nikolaus Brunner <brunner@imfusion.com>
|
|
24
162
|
|
|
25
163
|
---
|
|
26
164
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Xo as t,
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Xo as t, _M as n, ja as r } from "./icons-vc1WZCxX.js";
|
|
3
3
|
import { t as i } from "./meta-V_KyLeGn.js";
|
|
4
|
-
import { a, i as o, n as s, o as c, s as l } from "./scroll-area-
|
|
4
|
+
import { a, i as o, n as s, o as c, s as l } from "./scroll-area-CXQ_SxPX.js";
|
|
5
5
|
import { cx as u } from "class-variance-authority";
|
|
6
6
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as m, useEffect as h, useRef as g, useState as _ } from "react";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { useRender as v } from "@base-ui/react/use-render";
|
|
9
|
+
import { mergeProps as y } from "@base-ui/react/merge-props";
|
|
10
10
|
//#region src/hooks/use-clipboard.ts
|
|
11
11
|
function b({ timeout: e = 1500 } = {}) {
|
|
12
12
|
let [t, n] = _(!1), r = g(void 0);
|
|
@@ -34,12 +34,12 @@ var x = {
|
|
|
34
34
|
InlineLink: () => w
|
|
35
35
|
});
|
|
36
36
|
function C({ copyable: e = !1, children: i, render: a, ...o }) {
|
|
37
|
-
let { copied: s, copy: c } = b(), l = g(null), u = s ?
|
|
38
|
-
return
|
|
37
|
+
let { copied: s, copy: c } = b(), l = g(null), u = s ? r : t;
|
|
38
|
+
return v({
|
|
39
39
|
defaultTagName: "code",
|
|
40
40
|
render: a,
|
|
41
41
|
props: {
|
|
42
|
-
...
|
|
42
|
+
...y(o, {
|
|
43
43
|
className: x.inline,
|
|
44
44
|
children: /* @__PURE__ */ p(d, { children: [
|
|
45
45
|
/* @__PURE__ */ f("span", {
|
|
@@ -53,7 +53,7 @@ function C({ copyable: e = !1, children: i, render: a, ...o }) {
|
|
|
53
53
|
"data-copied": s || void 0,
|
|
54
54
|
"aria-label": s ? "Copied" : "Copy",
|
|
55
55
|
onClick: () => c(l.current?.textContent ?? ""),
|
|
56
|
-
children: /* @__PURE__ */ f(
|
|
56
|
+
children: /* @__PURE__ */ f(n, {
|
|
57
57
|
glyph: u,
|
|
58
58
|
size: 12,
|
|
59
59
|
strokeWidth: 2,
|
|
@@ -72,11 +72,11 @@ function w({ kind: e = "external", ...t }) {
|
|
|
72
72
|
target: "_blank",
|
|
73
73
|
rel: "noreferrer"
|
|
74
74
|
} : {};
|
|
75
|
-
return
|
|
75
|
+
return v({
|
|
76
76
|
defaultTagName: "a",
|
|
77
77
|
render: t.render,
|
|
78
78
|
props: {
|
|
79
|
-
...
|
|
79
|
+
...y(n, t, {
|
|
80
80
|
className: u(x.inline, x.inlineLink, t.className),
|
|
81
81
|
children: t.children
|
|
82
82
|
}),
|
|
@@ -87,7 +87,7 @@ function w({ kind: e = "external", ...t }) {
|
|
|
87
87
|
}
|
|
88
88
|
w.displayName = "Code.InlineLink";
|
|
89
89
|
function T({ className: e, language: i, hideCopy: d = !1, children: m, ...h }) {
|
|
90
|
-
let { copied: _, copy: v } = b(), y = g(null), S = _ ?
|
|
90
|
+
let { copied: _, copy: v } = b(), y = g(null), S = _ ? r : t;
|
|
91
91
|
return /* @__PURE__ */ p("div", {
|
|
92
92
|
"data-imf-ui-component": "Code.Block",
|
|
93
93
|
className: u(x.block, e),
|
|
@@ -102,7 +102,7 @@ function T({ className: e, language: i, hideCopy: d = !1, children: m, ...h }) {
|
|
|
102
102
|
"data-copied": _ || void 0,
|
|
103
103
|
"aria-label": _ ? "Copied" : "Copy",
|
|
104
104
|
onClick: () => v(y.current?.textContent ?? ""),
|
|
105
|
-
children: /* @__PURE__ */ f(
|
|
105
|
+
children: /* @__PURE__ */ f(n, {
|
|
106
106
|
glyph: S,
|
|
107
107
|
size: 12,
|
|
108
108
|
strokeWidth: 2,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
2
|
+
import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { comboboxRoot } from '../combobox/combobox.cva';
|
|
5
|
+
type UpstreamItem = React.ComponentProps<typeof AutocompletePrimitive.Item>;
|
|
6
|
+
type RootProps<ItemValue> = Omit<AutocompletePrimitive.Root.Props<ItemValue>, "items"> & {
|
|
7
|
+
items?: readonly ItemValue[] | undefined;
|
|
8
|
+
/** Field width: `auto` keeps the compact minimum; `wide` raises it; `full` fills the parent. @default "auto" */
|
|
9
|
+
width?: VariantProps<typeof comboboxRoot>["width"];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Autocomplete.Root — text input that suggests options as you type and keeps free text.
|
|
13
|
+
*
|
|
14
|
+
* Wraps children in a div so the field and its label stack regardless of the parent's layout.
|
|
15
|
+
* Autocomplete.Portal is unaffected (it renders to document.body).
|
|
16
|
+
*
|
|
17
|
+
* @doc https://base-ui.com/react/components/autocomplete
|
|
18
|
+
* @llm https://base-ui.com/react/components/autocomplete.md
|
|
19
|
+
*/
|
|
20
|
+
export declare function Root<ItemValue = unknown>({ width, className, style, ...props }: RootProps<ItemValue> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace Root {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
/** Autocomplete.InputGroup — the field box that holds the input, clear button, and trigger. */
|
|
28
|
+
export declare function InputGroup(props: React.ComponentProps<typeof AutocompletePrimitive.InputGroup>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare namespace InputGroup {
|
|
30
|
+
var displayName: string;
|
|
31
|
+
}
|
|
32
|
+
/** Autocomplete.Input — the text input. Its text is the value. */
|
|
33
|
+
export declare function Input(props: React.ComponentProps<typeof AutocompletePrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare namespace Input {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/** Autocomplete.Trigger — button that opens the popup. Without children it draws a chevron. */
|
|
38
|
+
export declare function Trigger({ children, ...props }: React.ComponentProps<typeof AutocompletePrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare namespace Trigger {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
42
|
+
/** Autocomplete.Icon — visual indicator (chevron) inside the trigger. */
|
|
43
|
+
export declare function Icon(props: React.ComponentProps<typeof AutocompletePrimitive.Icon>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare namespace Icon {
|
|
45
|
+
var displayName: string;
|
|
46
|
+
}
|
|
47
|
+
/** Autocomplete.Clear — button that clears the text. Without children it draws a cross. */
|
|
48
|
+
export declare function Clear({ children, ...props }: React.ComponentProps<typeof AutocompletePrimitive.Clear>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare namespace Clear {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
/** Autocomplete.Value — renders the input text. */
|
|
53
|
+
export declare function Value(props: React.ComponentProps<typeof AutocompletePrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare namespace Value {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
/** Autocomplete.Portal — portals the popup tree to document.body (or a custom container). */
|
|
58
|
+
export declare function Portal(props: React.ComponentProps<typeof AutocompletePrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare namespace Portal {
|
|
60
|
+
var displayName: string;
|
|
61
|
+
}
|
|
62
|
+
/** Autocomplete.Backdrop — overlay behind the popup (visible only in modal mode). */
|
|
63
|
+
export declare function Backdrop(props: React.ComponentProps<typeof AutocompletePrimitive.Backdrop>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export declare namespace Backdrop {
|
|
65
|
+
var displayName: string;
|
|
66
|
+
}
|
|
67
|
+
/** Autocomplete.Positioner — positions the popup relative to the field. */
|
|
68
|
+
export declare function Positioner({ align, sideOffset, ...props }: React.ComponentProps<typeof AutocompletePrimitive.Positioner>): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare namespace Positioner {
|
|
70
|
+
var displayName: string;
|
|
71
|
+
}
|
|
72
|
+
/** Autocomplete.Popup — dropdown surface. It keeps the height it had when it opened while the list filters. */
|
|
73
|
+
export declare function Popup(props: React.ComponentProps<typeof AutocompletePrimitive.Popup>): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare namespace Popup {
|
|
75
|
+
var displayName: string;
|
|
76
|
+
}
|
|
77
|
+
/** Autocomplete.Arrow — pointer arrow attached to the popup. */
|
|
78
|
+
export declare function Arrow(props: React.ComponentProps<typeof AutocompletePrimitive.Arrow>): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
export declare namespace Arrow {
|
|
80
|
+
var displayName: string;
|
|
81
|
+
}
|
|
82
|
+
/** Autocomplete.Status — live-region line for loading and result counts, announced to screen readers. */
|
|
83
|
+
export declare function Status(props: React.ComponentProps<typeof AutocompletePrimitive.Status>): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export declare namespace Status {
|
|
85
|
+
var displayName: string;
|
|
86
|
+
}
|
|
87
|
+
/** Autocomplete.Empty — message shown while no item matches. */
|
|
88
|
+
export declare function Empty(props: React.ComponentProps<typeof AutocompletePrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
89
|
+
export declare namespace Empty {
|
|
90
|
+
var displayName: string;
|
|
91
|
+
}
|
|
92
|
+
/** Autocomplete.List — items container. An `inline` list keeps the height it had when it mounted while it filters. */
|
|
93
|
+
export declare function List(props: React.ComponentProps<typeof AutocompletePrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare namespace List {
|
|
95
|
+
var displayName: string;
|
|
96
|
+
}
|
|
97
|
+
/** Autocomplete.Row — one row of a `grid` list. */
|
|
98
|
+
export declare function Row(props: React.ComponentProps<typeof AutocompletePrimitive.Row>): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
export declare namespace Row {
|
|
100
|
+
var displayName: string;
|
|
101
|
+
}
|
|
102
|
+
/** Autocomplete.Collection — renders a list of items inside a group. */
|
|
103
|
+
export declare function Collection(props: React.ComponentProps<typeof AutocompletePrimitive.Collection>): import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
export declare namespace Collection {
|
|
105
|
+
var displayName: string;
|
|
106
|
+
}
|
|
107
|
+
interface ItemProps extends Omit<UpstreamItem, "value"> {
|
|
108
|
+
value: UpstreamItem["value"];
|
|
109
|
+
}
|
|
110
|
+
/** Autocomplete.Item — individual suggestion. It carries no selection state, so it has no indicator column. */
|
|
111
|
+
export declare function Item(props: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
export declare namespace Item {
|
|
113
|
+
var displayName: string;
|
|
114
|
+
}
|
|
115
|
+
/** Autocomplete.ItemText — text label for an item. */
|
|
116
|
+
export declare function ItemText(props: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
export declare namespace ItemText {
|
|
118
|
+
var displayName: string;
|
|
119
|
+
}
|
|
120
|
+
/** Autocomplete.ItemDescription — a muted second line under an item's text. */
|
|
121
|
+
export declare function ItemDescription(props: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
122
|
+
export declare namespace ItemDescription {
|
|
123
|
+
var displayName: string;
|
|
124
|
+
}
|
|
125
|
+
/** Autocomplete.Group — wrapper around a grouped set of items. */
|
|
126
|
+
export declare function Group(props: React.ComponentProps<typeof AutocompletePrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
export declare namespace Group {
|
|
128
|
+
var displayName: string;
|
|
129
|
+
}
|
|
130
|
+
/** Autocomplete.GroupLabel — heading for an Autocomplete.Group. */
|
|
131
|
+
export declare function GroupLabel(props: React.ComponentProps<typeof AutocompletePrimitive.GroupLabel>): import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
export declare namespace GroupLabel {
|
|
133
|
+
var displayName: string;
|
|
134
|
+
}
|
|
135
|
+
/** Autocomplete.Separator — thin divider between items. */
|
|
136
|
+
export declare function Separator(props: React.ComponentProps<typeof SeparatorPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
export declare namespace Separator {
|
|
138
|
+
var displayName: string;
|
|
139
|
+
}
|
|
140
|
+
/** The upstream hook that builds a `filter` function from locale and match options. */
|
|
141
|
+
export declare const useFilter: typeof import('@base-ui/react/internals/filter').getFilter;
|
|
142
|
+
/** Reads the filtered items inside an autocomplete, for a custom list renderer. */
|
|
143
|
+
export declare const useFilteredItems: typeof AutocompletePrimitive.useFilteredItems;
|
|
144
|
+
export {};
|
|
@@ -23,7 +23,7 @@ declare namespace Root {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Avatar.Fallback — the initials the consumer passes, one or two letters. Without children it shows a person glyph.
|
|
26
|
-
* It derives nothing from a name or email.
|
|
26
|
+
* It derives nothing from a name or email; `initialsFromName` and `initialsFromEmail` do.
|
|
27
27
|
*/
|
|
28
28
|
declare function Fallback({ children, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
declare namespace Fallback {
|
|
@@ -17,8 +17,9 @@ type RootProps = React.ComponentProps<"div"> & VariantProps<typeof root> & {
|
|
|
17
17
|
* `Card.Footer`. `density` sets one scale that drives both each slot's padding
|
|
18
18
|
* and the gap between slots. `variant` picks the look — neutral tonal surfaces
|
|
19
19
|
* (`main`/`support`/`minor`) carry a hairline border; coloured intent fills
|
|
20
|
-
* (`primary`/`brand`)
|
|
21
|
-
*
|
|
20
|
+
* (`primary`/`brand`) set the background only and are borderless. Put `oncolor`
|
|
21
|
+
* content inside them, e.g. `Typo variant="oncolor"` and `Button context="oncolor"`.
|
|
22
|
+
* `shadow` and `radius` layer on top. Also called a panel, tile, or paper.
|
|
22
23
|
*
|
|
23
24
|
* The image is always the first entry in the stack, so `orientation` just
|
|
24
25
|
* switches the stack between a column and a row without reordering slots.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Checkbox's box and mark styles, shared with primitives that draw the same visual on another element. */
|
|
2
|
+
export declare const checkboxRoot: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
|
+
export declare const checkboxIndicator: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class recipes for every Combobox part, shared with Autocomplete, which renders the same field and list.
|
|
3
|
+
* Popup, list, and item styles compose Select's.
|
|
4
|
+
*/
|
|
5
|
+
export declare const comboboxRoot: (props?: ({
|
|
6
|
+
width?: "auto" | "wide" | "full" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export declare const comboboxLabel: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
9
|
+
export declare const comboboxInputGroup: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
10
|
+
export declare const comboboxChips: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
11
|
+
export declare const comboboxInput: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
12
|
+
export declare const comboboxTrigger: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
13
|
+
export declare const comboboxIcon: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
14
|
+
export declare const comboboxClear: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
15
|
+
export declare const comboboxChip: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
16
|
+
export declare const comboboxChipRemove: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
17
|
+
export declare const comboboxBackdrop: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
18
|
+
export declare const comboboxPositioner: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
19
|
+
export declare const comboboxPopup: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
20
|
+
export declare const comboboxArrow: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
21
|
+
export declare const comboboxList: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
22
|
+
export declare const comboboxRow: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
23
|
+
export declare const comboboxStatus: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
24
|
+
export declare const comboboxEmpty: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
25
|
+
export declare const comboboxGroup: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
26
|
+
export declare const comboboxGroupLabel: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
27
|
+
export declare const comboboxSeparator: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
28
|
+
export declare const comboboxItem: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
29
|
+
export declare const comboboxItemIndicator: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
30
|
+
export declare const comboboxItemIndicatorBox: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
31
|
+
export declare const comboboxItemMark: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
32
|
+
export declare const comboboxItemText: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
33
|
+
export declare const comboboxItemDescription: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
34
|
+
/** Autocomplete items have no indicator column, so text and description start in the first one. */
|
|
35
|
+
export declare const autocompleteItem: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
36
|
+
export declare const autocompleteItemText: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
37
|
+
export declare const autocompleteItemDescription: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
|
|
2
|
+
import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { comboboxRoot } from './combobox.cva';
|
|
5
|
+
type UpstreamItem = React.ComponentProps<typeof ComboboxPrimitive.Item>;
|
|
6
|
+
interface RootProps<Value = unknown, Multiple extends boolean | undefined = false> extends React.ComponentProps<typeof ComboboxPrimitive.Root<Value, Multiple>> {
|
|
7
|
+
/** Field width: `auto` keeps the compact minimum; `wide` raises it; `full` fills the parent. @default "auto" */
|
|
8
|
+
width?: VariantProps<typeof comboboxRoot>["width"];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Combobox.Root — text input with a filterable list of options, for choosing one or several.
|
|
12
|
+
*
|
|
13
|
+
* Wraps children in a div so a sibling Combobox.Label stacks above the field regardless of the parent's layout.
|
|
14
|
+
* Combobox.Portal is unaffected (it renders to document.body).
|
|
15
|
+
*
|
|
16
|
+
* @doc https://base-ui.com/react/components/combobox
|
|
17
|
+
* @llm https://base-ui.com/react/components/combobox.md
|
|
18
|
+
*/
|
|
19
|
+
export declare function Root<Value = unknown, Multiple extends boolean | undefined = false>({ width, className, style, ...props }: RootProps<Value, Multiple> & {
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare namespace Root {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
26
|
+
/** Combobox.Label — visible label, for the trigger in the input-inside-popup pattern. Label an input with `Field.Label`. */
|
|
27
|
+
export declare function Label(props: React.ComponentProps<typeof ComboboxPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace Label {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
/** Combobox.InputGroup — the field box that holds the input, clear button, and trigger. */
|
|
32
|
+
export declare function InputGroup(props: React.ComponentProps<typeof ComboboxPrimitive.InputGroup>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare namespace InputGroup {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
/** Combobox.Input — the text input that filters the list. An `inline` list is always open, so `aria-expanded` defaults to true. */
|
|
37
|
+
export declare function Input(props: React.ComponentProps<typeof ComboboxPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace Input {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
41
|
+
/** Combobox.Trigger — button that opens the popup. Without children it draws a chevron. */
|
|
42
|
+
export declare function Trigger({ children, ...props }: React.ComponentProps<typeof ComboboxPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare namespace Trigger {
|
|
44
|
+
var displayName: string;
|
|
45
|
+
}
|
|
46
|
+
/** Combobox.Icon — visual indicator (chevron) inside the trigger. */
|
|
47
|
+
export declare function Icon(props: React.ComponentProps<typeof ComboboxPrimitive.Icon>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare namespace Icon {
|
|
49
|
+
var displayName: string;
|
|
50
|
+
}
|
|
51
|
+
/** Combobox.Clear — button that clears the value. Without children it draws a cross. */
|
|
52
|
+
export declare function Clear({ children, ...props }: React.ComponentProps<typeof ComboboxPrimitive.Clear>): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare namespace Clear {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
/** Combobox.Value — renders the selected value, or the placeholder. */
|
|
57
|
+
export declare function Value(props: React.ComponentProps<typeof ComboboxPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare namespace Value {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
/** Combobox.Chips — the field box of a multiple combobox, holding chips and the input. */
|
|
62
|
+
export declare function Chips(props: React.ComponentProps<typeof ComboboxPrimitive.Chips>): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare namespace Chips {
|
|
64
|
+
var displayName: string;
|
|
65
|
+
}
|
|
66
|
+
/** Combobox.Chip — one selected value in the field. */
|
|
67
|
+
export declare function Chip(props: React.ComponentProps<typeof ComboboxPrimitive.Chip>): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare namespace Chip {
|
|
69
|
+
var displayName: string;
|
|
70
|
+
}
|
|
71
|
+
/** Combobox.ChipRemove — button that removes its chip. Without children it draws a small cross; give it an `aria-label`. */
|
|
72
|
+
export declare function ChipRemove({ children, ...props }: React.ComponentProps<typeof ComboboxPrimitive.ChipRemove>): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export declare namespace ChipRemove {
|
|
74
|
+
var displayName: string;
|
|
75
|
+
}
|
|
76
|
+
/** Combobox.Portal — portals the popup tree to document.body (or a custom container). */
|
|
77
|
+
export declare function Portal(props: React.ComponentProps<typeof ComboboxPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
export declare namespace Portal {
|
|
79
|
+
var displayName: string;
|
|
80
|
+
}
|
|
81
|
+
/** Combobox.Backdrop — overlay behind the popup (visible only in modal mode). */
|
|
82
|
+
export declare function Backdrop(props: React.ComponentProps<typeof ComboboxPrimitive.Backdrop>): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
export declare namespace Backdrop {
|
|
84
|
+
var displayName: string;
|
|
85
|
+
}
|
|
86
|
+
/** Combobox.Positioner — positions the popup relative to the field. */
|
|
87
|
+
export declare function Positioner({ align, sideOffset, ...props }: React.ComponentProps<typeof ComboboxPrimitive.Positioner>): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export declare namespace Positioner {
|
|
89
|
+
var displayName: string;
|
|
90
|
+
}
|
|
91
|
+
/** Combobox.Popup — dropdown surface. It keeps the height it had when it opened while the list filters. */
|
|
92
|
+
export declare function Popup(props: React.ComponentProps<typeof ComboboxPrimitive.Popup>): import("react/jsx-runtime").JSX.Element;
|
|
93
|
+
export declare namespace Popup {
|
|
94
|
+
var displayName: string;
|
|
95
|
+
}
|
|
96
|
+
/** Combobox.Arrow — pointer arrow attached to the popup. */
|
|
97
|
+
export declare function Arrow(props: React.ComponentProps<typeof ComboboxPrimitive.Arrow>): import("react/jsx-runtime").JSX.Element;
|
|
98
|
+
export declare namespace Arrow {
|
|
99
|
+
var displayName: string;
|
|
100
|
+
}
|
|
101
|
+
/** Combobox.Status — live-region line for loading and result counts, announced to screen readers. */
|
|
102
|
+
export declare function Status(props: React.ComponentProps<typeof ComboboxPrimitive.Status>): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
export declare namespace Status {
|
|
104
|
+
var displayName: string;
|
|
105
|
+
}
|
|
106
|
+
/** Combobox.Empty — message shown while no item matches. */
|
|
107
|
+
export declare function Empty(props: React.ComponentProps<typeof ComboboxPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare namespace Empty {
|
|
109
|
+
var displayName: string;
|
|
110
|
+
}
|
|
111
|
+
/** Combobox.List — items container. An `inline` list keeps the height it had when it mounted while it filters. */
|
|
112
|
+
export declare function List(props: React.ComponentProps<typeof ComboboxPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
export declare namespace List {
|
|
114
|
+
var displayName: string;
|
|
115
|
+
}
|
|
116
|
+
/** Combobox.Row — one row of a `grid` list. */
|
|
117
|
+
export declare function Row(props: React.ComponentProps<typeof ComboboxPrimitive.Row>): import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
export declare namespace Row {
|
|
119
|
+
var displayName: string;
|
|
120
|
+
}
|
|
121
|
+
/** Combobox.Collection — renders a list of items inside a group. */
|
|
122
|
+
export declare function Collection(props: React.ComponentProps<typeof ComboboxPrimitive.Collection>): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
export declare namespace Collection {
|
|
124
|
+
var displayName: string;
|
|
125
|
+
}
|
|
126
|
+
interface ItemProps extends Omit<UpstreamItem, "value"> {
|
|
127
|
+
value: UpstreamItem["value"];
|
|
128
|
+
}
|
|
129
|
+
/** Combobox.Item — individual selectable option. */
|
|
130
|
+
export declare function Item(props: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
export declare namespace Item {
|
|
132
|
+
var displayName: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Combobox.ItemIndicator — marker inside the item. Without children a single combobox draws a check in the selected
|
|
136
|
+
* item, and a `multiple` combobox draws a checkbox box on every item, checked when selected.
|
|
137
|
+
*/
|
|
138
|
+
export declare function ItemIndicator({ children, keepMounted, render, ...props }: React.ComponentProps<typeof ComboboxPrimitive.ItemIndicator>): import("react/jsx-runtime").JSX.Element;
|
|
139
|
+
export declare namespace ItemIndicator {
|
|
140
|
+
var displayName: string;
|
|
141
|
+
}
|
|
142
|
+
/** Combobox.ItemText — text label for an item, beside the indicator. */
|
|
143
|
+
export declare function ItemText(props: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
export declare namespace ItemText {
|
|
145
|
+
var displayName: string;
|
|
146
|
+
}
|
|
147
|
+
/** Combobox.ItemDescription — a muted second line under an item's text, such as an email address. */
|
|
148
|
+
export declare function ItemDescription(props: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
149
|
+
export declare namespace ItemDescription {
|
|
150
|
+
var displayName: string;
|
|
151
|
+
}
|
|
152
|
+
/** Combobox.Group — wrapper around a grouped set of items. */
|
|
153
|
+
export declare function Group(props: React.ComponentProps<typeof ComboboxPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
154
|
+
export declare namespace Group {
|
|
155
|
+
var displayName: string;
|
|
156
|
+
}
|
|
157
|
+
/** Combobox.GroupLabel — heading for a Combobox.Group. */
|
|
158
|
+
export declare function GroupLabel(props: React.ComponentProps<typeof ComboboxPrimitive.GroupLabel>): import("react/jsx-runtime").JSX.Element;
|
|
159
|
+
export declare namespace GroupLabel {
|
|
160
|
+
var displayName: string;
|
|
161
|
+
}
|
|
162
|
+
/** Combobox.Separator — thin divider between items. */
|
|
163
|
+
export declare function Separator(props: React.ComponentProps<typeof SeparatorPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
164
|
+
export declare namespace Separator {
|
|
165
|
+
var displayName: string;
|
|
166
|
+
}
|
|
167
|
+
/** The upstream hook that builds a `filter` function from locale and match options. */
|
|
168
|
+
export declare const useFilter: typeof ComboboxPrimitive.useFilter;
|
|
169
|
+
/** Reads the filtered items inside a combobox, for a custom list renderer. */
|
|
170
|
+
export declare const useFilteredItems: typeof ComboboxPrimitive.useFilteredItems;
|
|
171
|
+
export {};
|