pith-ui 0.1.1 → 0.1.4
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/AI.md +12 -1
- package/API.md +347 -192
- package/README.md +3 -1
- package/dist/composer.d.ts.map +1 -1
- package/dist/composer.js +37 -27
- package/dist/composer.js.map +1 -1
- package/dist/content/conversation-reader.d.ts.map +1 -1
- package/dist/content/conversation-reader.js +8 -1
- package/dist/content/conversation-reader.js.map +1 -1
- package/dist/content/conversation-view.d.ts.map +1 -1
- package/dist/content/conversation-view.js +34 -8
- package/dist/content/conversation-view.js.map +1 -1
- package/dist/content/image-viewer.d.ts.map +1 -1
- package/dist/content/image-viewer.js +11 -3
- package/dist/content/image-viewer.js.map +1 -1
- package/dist/content/paged-preview.d.ts +1 -1
- package/dist/content/paged-preview.d.ts.map +1 -1
- package/dist/content/paged-preview.js +4 -2
- package/dist/content/paged-preview.js.map +1 -1
- package/dist/content/views.d.ts +3 -0
- package/dist/content/views.d.ts.map +1 -1
- package/dist/content/views.js +110 -41
- package/dist/content/views.js.map +1 -1
- package/dist/content/welcome.d.ts.map +1 -1
- package/dist/content/welcome.js +5 -2
- package/dist/content/welcome.js.map +1 -1
- package/dist/dom.js +1 -1
- package/dist/dom.js.map +1 -1
- package/dist/files/panels.d.ts +2 -0
- package/dist/files/panels.d.ts.map +1 -1
- package/dist/files/panels.js +202 -128
- package/dist/files/panels.js.map +1 -1
- package/dist/files/systems.d.ts.map +1 -1
- package/dist/files/systems.js +37 -64
- package/dist/files/systems.js.map +1 -1
- package/dist/forms/actions.d.ts +23 -2
- package/dist/forms/actions.d.ts.map +1 -1
- package/dist/forms/actions.js +53 -25
- package/dist/forms/actions.js.map +1 -1
- package/dist/forms/custom-connection.d.ts.map +1 -1
- package/dist/forms/custom-connection.js +3 -2
- package/dist/forms/custom-connection.js.map +1 -1
- package/dist/forms/history.d.ts +1 -1
- package/dist/forms/history.d.ts.map +1 -1
- package/dist/forms/history.js +78 -15
- package/dist/forms/history.js.map +1 -1
- package/dist/forms/identity.d.ts.map +1 -1
- package/dist/forms/identity.js +9 -25
- package/dist/forms/identity.js.map +1 -1
- package/dist/forms/model-editor.js +3 -3
- package/dist/forms/model-editor.js.map +1 -1
- package/dist/forms/panels.d.ts +9 -2
- package/dist/forms/panels.d.ts.map +1 -1
- package/dist/forms/panels.js +79 -88
- package/dist/forms/panels.js.map +1 -1
- package/dist/forms/provider-login.d.ts.map +1 -1
- package/dist/forms/provider-login.js +20 -36
- package/dist/forms/provider-login.js.map +1 -1
- package/dist/forms/resource-editor.js +5 -4
- package/dist/forms/resource-editor.js.map +1 -1
- package/dist/foundations.d.ts +1 -1
- package/dist/foundations.d.ts.map +1 -1
- package/dist/foundations.js +22 -38
- package/dist/foundations.js.map +1 -1
- package/dist/navigation/context-menu.d.ts +7 -1
- package/dist/navigation/context-menu.d.ts.map +1 -1
- package/dist/navigation/context-menu.js +60 -57
- package/dist/navigation/context-menu.js.map +1 -1
- package/dist/navigation/navigation.d.ts +13 -0
- package/dist/navigation/navigation.d.ts.map +1 -1
- package/dist/navigation/navigation.js +96 -130
- package/dist/navigation/navigation.js.map +1 -1
- package/dist/operation.d.ts +12 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +49 -0
- package/dist/operation.js.map +1 -0
- package/dist/primitives.d.ts +8 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +114 -143
- package/dist/primitives.js.map +1 -1
- package/dist/reconcile.d.ts +11 -0
- package/dist/reconcile.d.ts.map +1 -0
- package/dist/reconcile.js +36 -0
- package/dist/reconcile.js.map +1 -0
- package/dist/select.d.ts +14 -0
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +304 -0
- package/dist/select.js.map +1 -0
- package/dist/styles.css +435 -369
- package/dist/surface.d.ts +31 -0
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +193 -3
- package/dist/surface.js.map +1 -1
- package/dist/tasks/approval.d.ts.map +1 -1
- package/dist/tasks/approval.js +83 -45
- package/dist/tasks/approval.js.map +1 -1
- package/dist/tasks/permission-element.d.ts +3 -0
- package/dist/tasks/permission-element.d.ts.map +1 -0
- package/dist/tasks/permission-element.js +10 -0
- package/dist/tasks/permission-element.js.map +1 -0
- package/dist/tasks/permission.d.ts.map +1 -1
- package/dist/tasks/permission.js +37 -18
- package/dist/tasks/permission.js.map +1 -1
- package/dist/tasks/runtime.d.ts.map +1 -1
- package/dist/tasks/runtime.js +30 -13
- package/dist/tasks/runtime.js.map +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +93 -40
- package/dist/workspace.js.map +1 -1
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Public API reference
|
|
2
2
|
|
|
3
|
-
Generated for `pith-ui@0.1.
|
|
3
|
+
Generated for `pith-ui@0.1.4` by `node scripts/api-docs.ts` from TypeScript declaration emit. Do not edit this file by hand. The installed public declarations are authoritative; this reference reproduces every public declaration, including all 73 create/install/mount factories and their state, options, callback and handle types.
|
|
4
4
|
|
|
5
5
|
Use the [catalog](https://github.com/minifish-org/pith-ui/blob/main/docs/catalog.md) to choose a complete block first, then inspect its exact signature and linked types here. Gallery links are related experiences; adapter APIs may point to their preferred replacement. Source links point to the implementation, not a second usage contract.
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ Regenerate: `node scripts/api-docs.ts`. Verify without writing: `node scripts/ap
|
|
|
23
23
|
| [`createCompletionNotices`](#createcompletionnotices) | [completion-notices](https://minifish-org.github.io/pith-ui/?item=completion-notices) |
|
|
24
24
|
| [`createComposerView`](#createcomposerview) | [composer](https://minifish-org.github.io/pith-ui/?item=composer), [drop-feedback](https://minifish-org.github.io/pith-ui/?item=drop-feedback) |
|
|
25
25
|
| [`createConfirmDialog`](#createconfirmdialog) | [confirmation](https://minifish-org.github.io/pith-ui/?item=confirmation) |
|
|
26
|
-
| [`createContextMenu`](#createcontextmenu) | [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu) |
|
|
26
|
+
| [`createContextMenu`](#createcontextmenu) | [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu), [workspace-navigation](https://minifish-org.github.io/pith-ui/?item=workspace-navigation) |
|
|
27
27
|
| [`createConversationView`](#createconversationview) | [conversation-messages](https://minifish-org.github.io/pith-ui/?item=conversation-messages), [conversation-reader](https://minifish-org.github.io/pith-ui/?item=conversation-reader), [foundation-motion](https://minifish-org.github.io/pith-ui/?item=foundation-motion) |
|
|
28
28
|
| [`createCopyFeedback`](#createcopyfeedback) | [copy-feedback](https://minifish-org.github.io/pith-ui/?item=copy-feedback) |
|
|
29
29
|
| [`createCostLedger`](#createcostledger) | [cost-ledger](https://minifish-org.github.io/pith-ui/?item=cost-ledger) |
|
|
@@ -47,7 +47,7 @@ Regenerate: `node scripts/api-docs.ts`. Verify without writing: `node scripts/ap
|
|
|
47
47
|
| [`createListRow`](#createlistrow) | [collection-state](https://minifish-org.github.io/pith-ui/?item=collection-state), [list-row](https://minifish-org.github.io/pith-ui/?item=list-row) |
|
|
48
48
|
| [`createMCPConnectionList`](#createmcpconnectionlist) | [mcp-connections](https://minifish-org.github.io/pith-ui/?item=mcp-connections) |
|
|
49
49
|
| [`createMCPConnectionsPanel`](#createmcpconnectionspanel) | [mcp-connections](https://minifish-org.github.io/pith-ui/?item=mcp-connections) |
|
|
50
|
-
| [`createMenu`](#createmenu) | [menu](https://minifish-org.github.io/pith-ui/?item=menu) |
|
|
50
|
+
| [`createMenu`](#createmenu) | [foundation-focus](https://minifish-org.github.io/pith-ui/?item=foundation-focus), [menu](https://minifish-org.github.io/pith-ui/?item=menu) |
|
|
51
51
|
| [`createModelEditor`](#createmodeleditor) | [model-picker](https://minifish-org.github.io/pith-ui/?item=model-picker) |
|
|
52
52
|
| [`createModelPicker`](#createmodelpicker) | [model-picker](https://minifish-org.github.io/pith-ui/?item=model-picker) |
|
|
53
53
|
| [`createNotice`](#createnotice) | [notice](https://minifish-org.github.io/pith-ui/?item=notice) |
|
|
@@ -68,7 +68,7 @@ Regenerate: `node scripts/api-docs.ts`. Verify without writing: `node scripts/ap
|
|
|
68
68
|
| [`createScrollArea`](#createscrollarea) | [scroll-area](https://minifish-org.github.io/pith-ui/?item=scroll-area) |
|
|
69
69
|
| [`createSearchInput`](#createsearchinput) | [search-input](https://minifish-org.github.io/pith-ui/?item=search-input) |
|
|
70
70
|
| [`createSecretInput`](#createsecretinput) | [secret-input](https://minifish-org.github.io/pith-ui/?item=secret-input) |
|
|
71
|
-
| [`createSelect`](#createselect) | [foundation-
|
|
71
|
+
| [`createSelect`](#createselect) | [foundation-focus](https://minifish-org.github.io/pith-ui/?item=foundation-focus), [foundation-sizing](https://minifish-org.github.io/pith-ui/?item=foundation-sizing), [select](https://minifish-org.github.io/pith-ui/?item=select) |
|
|
72
72
|
| [`createSettingsPanel`](#createsettingspanel) | [settings-panel](https://minifish-org.github.io/pith-ui/?item=settings-panel) |
|
|
73
73
|
| [`createStatus`](#createstatus) | [status](https://minifish-org.github.io/pith-ui/?item=status) |
|
|
74
74
|
| [`createTaskFailure`](#createtaskfailure) | [task-failure](https://minifish-org.github.io/pith-ui/?item=task-failure) |
|
|
@@ -90,7 +90,7 @@ Regenerate: `node scripts/api-docs.ts`. Verify without writing: `node scripts/ap
|
|
|
90
90
|
|
|
91
91
|
### createAttachments
|
|
92
92
|
|
|
93
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
93
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L67)
|
|
94
94
|
|
|
95
95
|
```ts
|
|
96
96
|
export declare function createAttachments(options?: {
|
|
@@ -106,7 +106,7 @@ Related gallery: [attachments](https://minifish-org.github.io/pith-ui/?item=atta
|
|
|
106
106
|
|
|
107
107
|
### createDropFeedback
|
|
108
108
|
|
|
109
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
109
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L57)
|
|
110
110
|
|
|
111
111
|
```ts
|
|
112
112
|
export declare function createDropFeedback(options: {
|
|
@@ -123,7 +123,7 @@ Related gallery: [drop-feedback](https://minifish-org.github.io/pith-ui/?item=dr
|
|
|
123
123
|
|
|
124
124
|
### createPendingMessages
|
|
125
125
|
|
|
126
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
126
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L12)
|
|
127
127
|
|
|
128
128
|
```ts
|
|
129
129
|
export declare function createPendingMessages(options?: PendingMessagesOptions): UIBlock<PendingMessagesState>;
|
|
@@ -135,7 +135,7 @@ Related gallery: [pending-messages](https://minifish-org.github.io/pith-ui/?item
|
|
|
135
135
|
|
|
136
136
|
### AttachmentItem
|
|
137
137
|
|
|
138
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
138
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L55)
|
|
139
139
|
|
|
140
140
|
```ts
|
|
141
141
|
export interface AttachmentItem {
|
|
@@ -147,7 +147,7 @@ export interface AttachmentItem {
|
|
|
147
147
|
|
|
148
148
|
### AttachmentsState
|
|
149
149
|
|
|
150
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
150
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L66)
|
|
151
151
|
|
|
152
152
|
```ts
|
|
153
153
|
export interface AttachmentsState {
|
|
@@ -160,7 +160,7 @@ Referenced public types and APIs: [`AttachmentItem`](#attachmentitem).
|
|
|
160
160
|
|
|
161
161
|
### PendingMessage
|
|
162
162
|
|
|
163
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
163
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L6)
|
|
164
164
|
|
|
165
165
|
```ts
|
|
166
166
|
export interface PendingMessage {
|
|
@@ -173,7 +173,7 @@ export interface PendingMessage {
|
|
|
173
173
|
|
|
174
174
|
### PendingMessagesOptions
|
|
175
175
|
|
|
176
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
176
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L8)
|
|
177
177
|
|
|
178
178
|
```ts
|
|
179
179
|
export interface PendingMessagesOptions {
|
|
@@ -184,7 +184,7 @@ export interface PendingMessagesOptions {
|
|
|
184
184
|
|
|
185
185
|
### PendingMessagesState
|
|
186
186
|
|
|
187
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#
|
|
187
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/composer.ts#L7)
|
|
188
188
|
|
|
189
189
|
```ts
|
|
190
190
|
export interface PendingMessagesState {
|
|
@@ -386,7 +386,7 @@ Referenced public types and APIs: [`ConversationMessage`](#conversationmessage).
|
|
|
386
386
|
|
|
387
387
|
### createImageViewer
|
|
388
388
|
|
|
389
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#
|
|
389
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#L10)
|
|
390
390
|
|
|
391
391
|
```ts
|
|
392
392
|
/** A modal above either a generated-file preview or a conversation attachment. */
|
|
@@ -404,7 +404,7 @@ Related gallery: [image-viewer](https://minifish-org.github.io/pith-ui/?item=ima
|
|
|
404
404
|
|
|
405
405
|
### installImageViewer
|
|
406
406
|
|
|
407
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#
|
|
407
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#L94)
|
|
408
408
|
|
|
409
409
|
```ts
|
|
410
410
|
export declare function installImageViewer(dialog: HTMLDialogElement, options?: {
|
|
@@ -423,7 +423,7 @@ Related gallery: [image-viewer](https://minifish-org.github.io/pith-ui/?item=ima
|
|
|
423
423
|
|
|
424
424
|
### ImageViewerInput
|
|
425
425
|
|
|
426
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#
|
|
426
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#L6)
|
|
427
427
|
|
|
428
428
|
```ts
|
|
429
429
|
export interface ImageViewerInput {
|
|
@@ -435,7 +435,7 @@ export interface ImageViewerInput {
|
|
|
435
435
|
|
|
436
436
|
### ImageViewerOptions
|
|
437
437
|
|
|
438
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#
|
|
438
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/image-viewer.ts#L5)
|
|
439
439
|
|
|
440
440
|
```ts
|
|
441
441
|
export interface ImageViewerOptions {
|
|
@@ -522,7 +522,7 @@ Related gallery: [markdown-content](https://minifish-org.github.io/pith-ui/?item
|
|
|
522
522
|
```ts
|
|
523
523
|
export interface PagedPreviewOptions extends PagedPreviewState {
|
|
524
524
|
container?: HTMLElement;
|
|
525
|
-
onCopyCode?: (text: string) => void;
|
|
525
|
+
onCopyCode?: (text: string, button: HTMLButtonElement) => void;
|
|
526
526
|
}
|
|
527
527
|
```
|
|
528
528
|
|
|
@@ -572,7 +572,7 @@ export declare function previewPageRanges(bytes: Uint8Array, window?: number): A
|
|
|
572
572
|
|
|
573
573
|
### createWelcomeView
|
|
574
574
|
|
|
575
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#
|
|
575
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#L18)
|
|
576
576
|
|
|
577
577
|
```ts
|
|
578
578
|
export declare function createWelcomeView(options?: WelcomeOptions): UIBlock<WelcomeState>;
|
|
@@ -584,7 +584,7 @@ Related gallery: [welcome](https://minifish-org.github.io/pith-ui/?item=welcome)
|
|
|
584
584
|
|
|
585
585
|
### WelcomeOptions
|
|
586
586
|
|
|
587
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#
|
|
587
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#L11)
|
|
588
588
|
|
|
589
589
|
```ts
|
|
590
590
|
export interface WelcomeOptions {
|
|
@@ -597,7 +597,7 @@ export interface WelcomeOptions {
|
|
|
597
597
|
|
|
598
598
|
### WelcomeState
|
|
599
599
|
|
|
600
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#
|
|
600
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/content/welcome.ts#L5)
|
|
601
601
|
|
|
602
602
|
```ts
|
|
603
603
|
export interface WelcomeState {
|
|
@@ -742,7 +742,7 @@ export declare function element<K extends keyof HTMLElementTagNameMap>(tag: K, c
|
|
|
742
742
|
|
|
743
743
|
Referenced public types and APIs: [`DOMChild`](#domchild).
|
|
744
744
|
|
|
745
|
-
Related gallery: [actions](https://minifish-org.github.io/pith-ui/?item=actions), [artifact-panel](https://minifish-org.github.io/pith-ui/?item=artifact-panel), [button](https://minifish-org.github.io/pith-ui/?item=button), [collection-state](https://minifish-org.github.io/pith-ui/?item=collection-state), [completion-notices](https://minifish-org.github.io/pith-ui/?item=completion-notices), [composer](https://minifish-org.github.io/pith-ui/?item=composer), [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu), [conversation-
|
|
745
|
+
Related gallery: [actions](https://minifish-org.github.io/pith-ui/?item=actions), [artifact-panel](https://minifish-org.github.io/pith-ui/?item=artifact-panel), [button](https://minifish-org.github.io/pith-ui/?item=button), [collection-state](https://minifish-org.github.io/pith-ui/?item=collection-state), [completion-notices](https://minifish-org.github.io/pith-ui/?item=completion-notices), [composer](https://minifish-org.github.io/pith-ui/?item=composer), [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu), [conversation-reader](https://minifish-org.github.io/pith-ui/?item=conversation-reader), [copy-feedback](https://minifish-org.github.io/pith-ui/?item=copy-feedback), [dialog](https://minifish-org.github.io/pith-ui/?item=dialog), [disclosure](https://minifish-org.github.io/pith-ui/?item=disclosure), [drop-feedback](https://minifish-org.github.io/pith-ui/?item=drop-feedback), [feature-dialog](https://minifish-org.github.io/pith-ui/?item=feature-dialog), [file-preview](https://minifish-org.github.io/pith-ui/?item=file-preview), [form-section](https://minifish-org.github.io/pith-ui/?item=form-section), [foundation-borders](https://minifish-org.github.io/pith-ui/?item=foundation-borders), [foundation-colors](https://minifish-org.github.io/pith-ui/?item=foundation-colors), [foundation-focus](https://minifish-org.github.io/pith-ui/?item=foundation-focus), [foundation-motion](https://minifish-org.github.io/pith-ui/?item=foundation-motion), [foundation-sizing](https://minifish-org.github.io/pith-ui/?item=foundation-sizing), [foundation-spacing](https://minifish-org.github.io/pith-ui/?item=foundation-spacing), [foundation-surfaces](https://minifish-org.github.io/pith-ui/?item=foundation-surfaces), [foundation-typography](https://minifish-org.github.io/pith-ui/?item=foundation-typography), [icon-button](https://minifish-org.github.io/pith-ui/?item=icon-button), [icons](https://minifish-org.github.io/pith-ui/?item=icons), [image-viewer](https://minifish-org.github.io/pith-ui/?item=image-viewer), [list-row](https://minifish-org.github.io/pith-ui/?item=list-row), [mcp-connections](https://minifish-org.github.io/pith-ui/?item=mcp-connections), [pending-messages](https://minifish-org.github.io/pith-ui/?item=pending-messages), [permission-control](https://minifish-org.github.io/pith-ui/?item=permission-control), [popover](https://minifish-org.github.io/pith-ui/?item=popover), [provider-resource-actions](https://minifish-org.github.io/pith-ui/?item=provider-resource-actions), [resources-panel](https://minifish-org.github.io/pith-ui/?item=resources-panel), [runtime-panel](https://minifish-org.github.io/pith-ui/?item=runtime-panel), [scroll-area](https://minifish-org.github.io/pith-ui/?item=scroll-area), [toolbar](https://minifish-org.github.io/pith-ui/?item=toolbar), [updates](https://minifish-org.github.io/pith-ui/?item=updates), [workspace-navigation](https://minifish-org.github.io/pith-ui/?item=workspace-navigation).
|
|
746
746
|
|
|
747
747
|
### escape
|
|
748
748
|
|
|
@@ -817,7 +817,7 @@ Related gallery: [foundation-focus](https://minifish-org.github.io/pith-ui/?item
|
|
|
817
817
|
|
|
818
818
|
### createArtifactPanel
|
|
819
819
|
|
|
820
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
820
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L43)
|
|
821
821
|
|
|
822
822
|
```ts
|
|
823
823
|
export declare function createArtifactPanel(options: ArtifactPanelOptions): {
|
|
@@ -835,11 +835,12 @@ Related gallery: [artifact-panel](https://minifish-org.github.io/pith-ui/?item=a
|
|
|
835
835
|
|
|
836
836
|
### createFileActions
|
|
837
837
|
|
|
838
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
838
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L21)
|
|
839
839
|
|
|
840
840
|
```ts
|
|
841
841
|
export declare function createFileActions(options: FileActionOptions): {
|
|
842
842
|
element: HTMLElement;
|
|
843
|
+
setDisabled(disabled: boolean): void;
|
|
843
844
|
destroy(): void;
|
|
844
845
|
};
|
|
845
846
|
```
|
|
@@ -850,7 +851,7 @@ Related gallery: [file-actions](https://minifish-org.github.io/pith-ui/?item=fil
|
|
|
850
851
|
|
|
851
852
|
### createFilePreview
|
|
852
853
|
|
|
853
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
854
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L232)
|
|
854
855
|
|
|
855
856
|
```ts
|
|
856
857
|
export declare function createFilePreview(options?: FilePreviewOptions): {
|
|
@@ -872,7 +873,7 @@ Related gallery: [file-preview](https://minifish-org.github.io/pith-ui/?item=fil
|
|
|
872
873
|
|
|
873
874
|
### createResourcesPanel
|
|
874
875
|
|
|
875
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
876
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L113)
|
|
876
877
|
|
|
877
878
|
```ts
|
|
878
879
|
export declare function createResourcesPanel(options?: ResourcesPanelOptions): {
|
|
@@ -891,7 +892,7 @@ Related gallery: [resources-panel](https://minifish-org.github.io/pith-ui/?item=
|
|
|
891
892
|
|
|
892
893
|
### ArtifactPanelOptions
|
|
893
894
|
|
|
894
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
895
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L42)
|
|
895
896
|
|
|
896
897
|
```ts
|
|
897
898
|
export interface ArtifactPanelOptions {
|
|
@@ -906,7 +907,7 @@ export interface ArtifactPanelOptions {
|
|
|
906
907
|
|
|
907
908
|
### ArtifactPanelState
|
|
908
909
|
|
|
909
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
910
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L41)
|
|
910
911
|
|
|
911
912
|
```ts
|
|
912
913
|
export interface ArtifactPanelState {
|
|
@@ -923,7 +924,7 @@ export interface ArtifactPanelState {
|
|
|
923
924
|
|
|
924
925
|
### FileActionOptions
|
|
925
926
|
|
|
926
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
927
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L9)
|
|
927
928
|
|
|
928
929
|
```ts
|
|
929
930
|
export interface FileActionOptions {
|
|
@@ -938,7 +939,7 @@ export interface FileActionOptions {
|
|
|
938
939
|
|
|
939
940
|
### fileActionsMarkup
|
|
940
941
|
|
|
941
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
942
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L14)
|
|
942
943
|
|
|
943
944
|
```ts
|
|
944
945
|
export declare function fileActionsMarkup(options: FileActionOptions): string;
|
|
@@ -948,7 +949,7 @@ Referenced public types and APIs: [`FileActionOptions`](#fileactionoptions).
|
|
|
948
949
|
|
|
949
950
|
### FilePreviewOptions
|
|
950
951
|
|
|
951
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
952
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L231)
|
|
952
953
|
|
|
953
954
|
```ts
|
|
954
955
|
export interface FilePreviewOptions {
|
|
@@ -957,12 +958,13 @@ export interface FilePreviewOptions {
|
|
|
957
958
|
dialogId?: string;
|
|
958
959
|
bodyId?: string;
|
|
959
960
|
onClose?: () => void;
|
|
961
|
+
onCopyCode?: (text: string, button: HTMLButtonElement) => void;
|
|
960
962
|
}
|
|
961
963
|
```
|
|
962
964
|
|
|
963
965
|
### FilePreviewState
|
|
964
966
|
|
|
965
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
967
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L230)
|
|
966
968
|
|
|
967
969
|
```ts
|
|
968
970
|
export interface FilePreviewState {
|
|
@@ -979,7 +981,7 @@ Referenced public types and APIs: [`PreviewKind`](#previewkind).
|
|
|
979
981
|
|
|
980
982
|
### ResourceDisplayEntry
|
|
981
983
|
|
|
982
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
984
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L107)
|
|
983
985
|
|
|
984
986
|
```ts
|
|
985
987
|
export interface ResourceDisplayEntry {
|
|
@@ -994,7 +996,7 @@ export interface ResourceDisplayEntry {
|
|
|
994
996
|
|
|
995
997
|
### ResourcesPanelOptions
|
|
996
998
|
|
|
997
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
999
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L112)
|
|
998
1000
|
|
|
999
1001
|
```ts
|
|
1000
1002
|
export interface ResourcesPanelOptions {
|
|
@@ -1011,7 +1013,7 @@ export interface ResourcesPanelOptions {
|
|
|
1011
1013
|
|
|
1012
1014
|
### ResourcesPanelState
|
|
1013
1015
|
|
|
1014
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#
|
|
1016
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/panels.ts#L108)
|
|
1015
1017
|
|
|
1016
1018
|
```ts
|
|
1017
1019
|
export interface ResourcesPanelState {
|
|
@@ -1030,7 +1032,7 @@ Referenced public types and APIs: [`ResourceDisplayEntry`](#resourcedisplayentry
|
|
|
1030
1032
|
|
|
1031
1033
|
### createCompletionNotices
|
|
1032
1034
|
|
|
1033
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1035
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L119)
|
|
1034
1036
|
|
|
1035
1037
|
```ts
|
|
1036
1038
|
export declare function createCompletionNotices(options?: {
|
|
@@ -1046,7 +1048,7 @@ Related gallery: [completion-notices](https://minifish-org.github.io/pith-ui/?it
|
|
|
1046
1048
|
|
|
1047
1049
|
### createCopyFeedback
|
|
1048
1050
|
|
|
1049
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1051
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L157)
|
|
1050
1052
|
|
|
1051
1053
|
```ts
|
|
1052
1054
|
export declare function createCopyFeedback(options: {
|
|
@@ -1063,7 +1065,7 @@ Related gallery: [copy-feedback](https://minifish-org.github.io/pith-ui/?item=co
|
|
|
1063
1065
|
|
|
1064
1066
|
### createCostLedger
|
|
1065
1067
|
|
|
1066
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1068
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L24)
|
|
1067
1069
|
|
|
1068
1070
|
```ts
|
|
1069
1071
|
export declare function createCostLedger(options?: {
|
|
@@ -1084,7 +1086,7 @@ Related gallery: [cost-ledger](https://minifish-org.github.io/pith-ui/?item=cost
|
|
|
1084
1086
|
|
|
1085
1087
|
### createUpdatePanel
|
|
1086
1088
|
|
|
1087
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1089
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L78)
|
|
1088
1090
|
|
|
1089
1091
|
```ts
|
|
1090
1092
|
export declare function createUpdatePanel(options?: {
|
|
@@ -1109,7 +1111,7 @@ Related gallery: [settings-panel](https://minifish-org.github.io/pith-ui/?item=s
|
|
|
1109
1111
|
|
|
1110
1112
|
### CompletionNoticeDisplay
|
|
1111
1113
|
|
|
1112
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1114
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L112)
|
|
1113
1115
|
|
|
1114
1116
|
```ts
|
|
1115
1117
|
export interface CompletionNoticeDisplay {
|
|
@@ -1124,7 +1126,7 @@ Related gallery: [completion-notices](https://minifish-org.github.io/pith-ui/?it
|
|
|
1124
1126
|
|
|
1125
1127
|
### CostLedgerState
|
|
1126
1128
|
|
|
1127
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1129
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L23)
|
|
1128
1130
|
|
|
1129
1131
|
```ts
|
|
1130
1132
|
export interface CostLedgerState {
|
|
@@ -1137,7 +1139,7 @@ Referenced public types and APIs: [`CostRequestDisplay`](#costrequestdisplay).
|
|
|
1137
1139
|
|
|
1138
1140
|
### CostRequestDisplay
|
|
1139
1141
|
|
|
1140
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1142
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L18)
|
|
1141
1143
|
|
|
1142
1144
|
```ts
|
|
1143
1145
|
export interface CostRequestDisplay {
|
|
@@ -1167,7 +1169,7 @@ export interface CostRequestDisplay {
|
|
|
1167
1169
|
|
|
1168
1170
|
### CostSummaryDisplay
|
|
1169
1171
|
|
|
1170
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1172
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L9)
|
|
1171
1173
|
|
|
1172
1174
|
```ts
|
|
1173
1175
|
export interface CostSummaryDisplay {
|
|
@@ -1183,7 +1185,7 @@ export interface CostSummaryDisplay {
|
|
|
1183
1185
|
|
|
1184
1186
|
### formatCost
|
|
1185
1187
|
|
|
1186
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1188
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L10)
|
|
1187
1189
|
|
|
1188
1190
|
```ts
|
|
1189
1191
|
export declare function formatCost(cost: CostSummaryDisplay | undefined, latestTask?: boolean): string;
|
|
@@ -1193,7 +1195,7 @@ Referenced public types and APIs: [`CostSummaryDisplay`](#costsummarydisplay).
|
|
|
1193
1195
|
|
|
1194
1196
|
### historyStatusMarkup
|
|
1195
1197
|
|
|
1196
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1198
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L113)
|
|
1197
1199
|
|
|
1198
1200
|
```ts
|
|
1199
1201
|
export declare function historyStatusMarkup(status: 'approval' | 'running' | 'unread' | 'idle'): string;
|
|
@@ -1203,7 +1205,7 @@ Related gallery: [completion-notices](https://minifish-org.github.io/pith-ui/?it
|
|
|
1203
1205
|
|
|
1204
1206
|
### UpdatePanelState
|
|
1205
1207
|
|
|
1206
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#
|
|
1208
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/files/systems.ts#L77)
|
|
1207
1209
|
|
|
1208
1210
|
```ts
|
|
1209
1211
|
export interface UpdatePanelState {
|
|
@@ -1220,31 +1222,31 @@ export interface UpdatePanelState {
|
|
|
1220
1222
|
|
|
1221
1223
|
### createProviderActions
|
|
1222
1224
|
|
|
1223
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1225
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L38)
|
|
1224
1226
|
|
|
1225
1227
|
```ts
|
|
1226
|
-
export declare function createProviderActions(state: ProviderActionsState, options?:
|
|
1228
|
+
export declare function createProviderActions(state: ProviderActionsState, options?: ProviderActionOptions): UIBlock<ProviderActionsState>;
|
|
1227
1229
|
```
|
|
1228
1230
|
|
|
1229
|
-
Referenced public types and APIs: [`
|
|
1231
|
+
Referenced public types and APIs: [`ProviderActionOptions`](#provideractionoptions), [`ProviderActionsState`](#provideractionsstate), [`UIBlock`](#uiblock).
|
|
1230
1232
|
|
|
1231
1233
|
Related gallery: [provider-resource-actions](https://minifish-org.github.io/pith-ui/?item=provider-resource-actions).
|
|
1232
1234
|
|
|
1233
1235
|
### createResourceActions
|
|
1234
1236
|
|
|
1235
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1237
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L46)
|
|
1236
1238
|
|
|
1237
1239
|
```ts
|
|
1238
|
-
export declare function createResourceActions(state: ResourceActionsState, options?:
|
|
1240
|
+
export declare function createResourceActions(state: ResourceActionsState, options?: ResourceActionOptions): UIBlock<ResourceActionsState>;
|
|
1239
1241
|
```
|
|
1240
1242
|
|
|
1241
|
-
Referenced public types and APIs: [`
|
|
1243
|
+
Referenced public types and APIs: [`ResourceActionOptions`](#resourceactionoptions), [`ResourceActionsState`](#resourceactionsstate), [`UIBlock`](#uiblock).
|
|
1242
1244
|
|
|
1243
1245
|
Related gallery: [provider-resource-actions](https://minifish-org.github.io/pith-ui/?item=provider-resource-actions), [resources-panel](https://minifish-org.github.io/pith-ui/?item=resources-panel).
|
|
1244
1246
|
|
|
1245
1247
|
### FeatureActionOptions
|
|
1246
1248
|
|
|
1247
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1249
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L17)
|
|
1248
1250
|
|
|
1249
1251
|
```ts
|
|
1250
1252
|
export interface FeatureActionOptions {
|
|
@@ -1255,9 +1257,29 @@ export interface FeatureActionOptions {
|
|
|
1255
1257
|
|
|
1256
1258
|
Referenced public types and APIs: [`UIAction`](#uiaction).
|
|
1257
1259
|
|
|
1260
|
+
### ProviderAction
|
|
1261
|
+
|
|
1262
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L8)
|
|
1263
|
+
|
|
1264
|
+
```ts
|
|
1265
|
+
export type ProviderAction = 'login' | 'logout' | 'custom' | 'remove-connection';
|
|
1266
|
+
```
|
|
1267
|
+
|
|
1268
|
+
### ProviderActionOptions
|
|
1269
|
+
|
|
1270
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L18)
|
|
1271
|
+
|
|
1272
|
+
```ts
|
|
1273
|
+
export interface ProviderActionOptions extends FeatureActionOptions {
|
|
1274
|
+
onProviderAction?: (action: ProviderAction, target: ProviderActionTarget) => ReturnType<UIAction>;
|
|
1275
|
+
}
|
|
1276
|
+
```
|
|
1277
|
+
|
|
1278
|
+
Referenced public types and APIs: [`FeatureActionOptions`](#featureactionoptions), [`ProviderAction`](#provideraction), [`ProviderActionTarget`](#provideractiontarget), [`UIAction`](#uiaction).
|
|
1279
|
+
|
|
1258
1280
|
### providerActionsMarkup
|
|
1259
1281
|
|
|
1260
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1282
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L12)
|
|
1261
1283
|
|
|
1262
1284
|
```ts
|
|
1263
1285
|
export declare function providerActionsMarkup(provider: ProviderActionsState): string;
|
|
@@ -1267,7 +1289,7 @@ Referenced public types and APIs: [`ProviderActionsState`](#provideractionsstate
|
|
|
1267
1289
|
|
|
1268
1290
|
### ProviderActionsState
|
|
1269
1291
|
|
|
1270
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1292
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L5)
|
|
1271
1293
|
|
|
1272
1294
|
```ts
|
|
1273
1295
|
export interface ProviderActionsState {
|
|
@@ -1278,9 +1300,39 @@ export interface ProviderActionsState {
|
|
|
1278
1300
|
}
|
|
1279
1301
|
```
|
|
1280
1302
|
|
|
1303
|
+
### ProviderActionTarget
|
|
1304
|
+
|
|
1305
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L10)
|
|
1306
|
+
|
|
1307
|
+
```ts
|
|
1308
|
+
export interface ProviderActionTarget {
|
|
1309
|
+
readonly id: string;
|
|
1310
|
+
}
|
|
1311
|
+
```
|
|
1312
|
+
|
|
1313
|
+
### ResourceAction
|
|
1314
|
+
|
|
1315
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L9)
|
|
1316
|
+
|
|
1317
|
+
```ts
|
|
1318
|
+
export type ResourceAction = 'use-resource' | 'resource';
|
|
1319
|
+
```
|
|
1320
|
+
|
|
1321
|
+
### ResourceActionOptions
|
|
1322
|
+
|
|
1323
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L19)
|
|
1324
|
+
|
|
1325
|
+
```ts
|
|
1326
|
+
export interface ResourceActionOptions extends FeatureActionOptions {
|
|
1327
|
+
onResourceAction?: (action: ResourceAction, target: ResourceActionTarget) => ReturnType<UIAction>;
|
|
1328
|
+
}
|
|
1329
|
+
```
|
|
1330
|
+
|
|
1331
|
+
Referenced public types and APIs: [`FeatureActionOptions`](#featureactionoptions), [`ResourceAction`](#resourceaction), [`ResourceActionTarget`](#resourceactiontarget), [`UIAction`](#uiaction).
|
|
1332
|
+
|
|
1281
1333
|
### resourceActionsMarkup
|
|
1282
1334
|
|
|
1283
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1335
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L14)
|
|
1284
1336
|
|
|
1285
1337
|
```ts
|
|
1286
1338
|
export declare function resourceActionsMarkup(kind: string, resource: {
|
|
@@ -1291,7 +1343,7 @@ export declare function resourceActionsMarkup(kind: string, resource: {
|
|
|
1291
1343
|
|
|
1292
1344
|
### ResourceActionsState
|
|
1293
1345
|
|
|
1294
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#
|
|
1346
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L7)
|
|
1295
1347
|
|
|
1296
1348
|
```ts
|
|
1297
1349
|
export interface ResourceActionsState {
|
|
@@ -1304,6 +1356,30 @@ export interface ResourceActionsState {
|
|
|
1304
1356
|
}
|
|
1305
1357
|
```
|
|
1306
1358
|
|
|
1359
|
+
### ResourceActionTarget
|
|
1360
|
+
|
|
1361
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L11)
|
|
1362
|
+
|
|
1363
|
+
```ts
|
|
1364
|
+
export interface ResourceActionTarget {
|
|
1365
|
+
readonly workspaceId: string;
|
|
1366
|
+
readonly kind: string;
|
|
1367
|
+
readonly resource: {
|
|
1368
|
+
readonly name: string;
|
|
1369
|
+
readonly path: string;
|
|
1370
|
+
};
|
|
1371
|
+
readonly command?: string;
|
|
1372
|
+
}
|
|
1373
|
+
```
|
|
1374
|
+
|
|
1375
|
+
### ResourceKind
|
|
1376
|
+
|
|
1377
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/actions.ts#L6)
|
|
1378
|
+
|
|
1379
|
+
```ts
|
|
1380
|
+
export type ResourceKind = 'instructions' | 'skill' | 'template';
|
|
1381
|
+
```
|
|
1382
|
+
|
|
1307
1383
|
## src/forms/custom-connection.ts
|
|
1308
1384
|
|
|
1309
1385
|
### createCustomConnectionEditor
|
|
@@ -1528,10 +1604,10 @@ Referenced public types and APIs: [`DialogContent`](#dialogcontent).
|
|
|
1528
1604
|
|
|
1529
1605
|
### createBranchHistory
|
|
1530
1606
|
|
|
1531
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#
|
|
1607
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#L8)
|
|
1532
1608
|
|
|
1533
1609
|
```ts
|
|
1534
|
-
export declare function createBranchHistory(
|
|
1610
|
+
export declare function createBranchHistory(initial: BranchHistoryState, options?: {
|
|
1535
1611
|
onContinue?: (id: string) => void | Promise<void>;
|
|
1536
1612
|
}): UIBlock<BranchHistoryState>;
|
|
1537
1613
|
```
|
|
@@ -1542,7 +1618,7 @@ Related gallery: [branch-history](https://minifish-org.github.io/pith-ui/?item=b
|
|
|
1542
1618
|
|
|
1543
1619
|
### BranchHistoryNode
|
|
1544
1620
|
|
|
1545
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#
|
|
1621
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#L5)
|
|
1546
1622
|
|
|
1547
1623
|
```ts
|
|
1548
1624
|
export interface BranchHistoryNode {
|
|
@@ -1555,7 +1631,7 @@ export interface BranchHistoryNode {
|
|
|
1555
1631
|
|
|
1556
1632
|
### BranchHistoryState
|
|
1557
1633
|
|
|
1558
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#
|
|
1634
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/history.ts#L6)
|
|
1559
1635
|
|
|
1560
1636
|
```ts
|
|
1561
1637
|
export interface BranchHistoryState {
|
|
@@ -1675,19 +1751,19 @@ export declare function thinkingLabel(level: string): string;
|
|
|
1675
1751
|
|
|
1676
1752
|
### createMCPConnectionList
|
|
1677
1753
|
|
|
1678
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1754
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L202)
|
|
1679
1755
|
|
|
1680
1756
|
```ts
|
|
1681
|
-
export declare function createMCPConnectionList(initial: MCPConnectionListState): UIBlock<MCPConnectionListState>;
|
|
1757
|
+
export declare function createMCPConnectionList(initial: MCPConnectionListState, options?: MCPConnectionListOptions): UIBlock<MCPConnectionListState>;
|
|
1682
1758
|
```
|
|
1683
1759
|
|
|
1684
|
-
Referenced public types and APIs: [`MCPConnectionListState`](#mcpconnectionliststate), [`UIBlock`](#uiblock).
|
|
1760
|
+
Referenced public types and APIs: [`MCPConnectionListOptions`](#mcpconnectionlistoptions), [`MCPConnectionListState`](#mcpconnectionliststate), [`UIBlock`](#uiblock).
|
|
1685
1761
|
|
|
1686
1762
|
Related gallery: [mcp-connections](https://minifish-org.github.io/pith-ui/?item=mcp-connections).
|
|
1687
1763
|
|
|
1688
1764
|
### createMCPConnectionsPanel
|
|
1689
1765
|
|
|
1690
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1766
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L146)
|
|
1691
1767
|
|
|
1692
1768
|
```ts
|
|
1693
1769
|
export declare function createMCPConnectionsPanel(state?: MCPConnectionsState, options?: FormOptions & {
|
|
@@ -1701,7 +1777,7 @@ Related gallery: [mcp-connections](https://minifish-org.github.io/pith-ui/?item=
|
|
|
1701
1777
|
|
|
1702
1778
|
### createModelPicker
|
|
1703
1779
|
|
|
1704
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1780
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L182)
|
|
1705
1781
|
|
|
1706
1782
|
```ts
|
|
1707
1783
|
export declare function createModelPicker(state?: ModelPickerState, options?: FormOptions & {
|
|
@@ -1715,7 +1791,7 @@ Related gallery: [model-picker](https://minifish-org.github.io/pith-ui/?item=mod
|
|
|
1715
1791
|
|
|
1716
1792
|
### createSettingsPanel
|
|
1717
1793
|
|
|
1718
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1794
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L47)
|
|
1719
1795
|
|
|
1720
1796
|
```ts
|
|
1721
1797
|
export declare function createSettingsPanel(state: SettingsPanelState, options?: SettingsPanelOptions): SettingsPanel;
|
|
@@ -1727,7 +1803,7 @@ Related gallery: [settings-panel](https://minifish-org.github.io/pith-ui/?item=s
|
|
|
1727
1803
|
|
|
1728
1804
|
### FormDOMBlock
|
|
1729
1805
|
|
|
1730
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1806
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L11)
|
|
1731
1807
|
|
|
1732
1808
|
```ts
|
|
1733
1809
|
export interface FormDOMBlock<State extends FormFeedback> extends UIBlock<State> {
|
|
@@ -1740,7 +1816,7 @@ Referenced public types and APIs: [`FormFeedback`](#formfeedback), [`UIBlock`](#
|
|
|
1740
1816
|
|
|
1741
1817
|
### FormFeedback
|
|
1742
1818
|
|
|
1743
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1819
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L10)
|
|
1744
1820
|
|
|
1745
1821
|
```ts
|
|
1746
1822
|
export interface FormFeedback {
|
|
@@ -1751,7 +1827,7 @@ export interface FormFeedback {
|
|
|
1751
1827
|
|
|
1752
1828
|
### FormOptions
|
|
1753
1829
|
|
|
1754
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1830
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L41)
|
|
1755
1831
|
|
|
1756
1832
|
```ts
|
|
1757
1833
|
export interface FormOptions {
|
|
@@ -1759,9 +1835,17 @@ export interface FormOptions {
|
|
|
1759
1835
|
}
|
|
1760
1836
|
```
|
|
1761
1837
|
|
|
1838
|
+
### MCPConnectionAction
|
|
1839
|
+
|
|
1840
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L198)
|
|
1841
|
+
|
|
1842
|
+
```ts
|
|
1843
|
+
export type MCPConnectionAction = 'mcp-login' | 'mcp-logout' | 'mcp-edit' | 'mcp-toggle' | 'mcp-remove';
|
|
1844
|
+
```
|
|
1845
|
+
|
|
1762
1846
|
### MCPConnectionDraft
|
|
1763
1847
|
|
|
1764
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1848
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L143)
|
|
1765
1849
|
|
|
1766
1850
|
```ts
|
|
1767
1851
|
export interface MCPConnectionDraft {
|
|
@@ -1783,7 +1867,7 @@ export interface MCPConnectionDraft {
|
|
|
1783
1867
|
|
|
1784
1868
|
### MCPConnectionItem
|
|
1785
1869
|
|
|
1786
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1870
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L193)
|
|
1787
1871
|
|
|
1788
1872
|
```ts
|
|
1789
1873
|
export interface MCPConnectionItem {
|
|
@@ -1803,9 +1887,21 @@ export interface MCPConnectionItem {
|
|
|
1803
1887
|
}
|
|
1804
1888
|
```
|
|
1805
1889
|
|
|
1890
|
+
### MCPConnectionListOptions
|
|
1891
|
+
|
|
1892
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L200)
|
|
1893
|
+
|
|
1894
|
+
```ts
|
|
1895
|
+
export interface MCPConnectionListOptions {
|
|
1896
|
+
onAction?: (action: MCPConnectionAction, target: MCPConnectionTarget) => ReturnType<UIAction>;
|
|
1897
|
+
}
|
|
1898
|
+
```
|
|
1899
|
+
|
|
1900
|
+
Referenced public types and APIs: [`MCPConnectionAction`](#mcpconnectionaction), [`MCPConnectionTarget`](#mcpconnectiontarget), [`UIAction`](#uiaction).
|
|
1901
|
+
|
|
1806
1902
|
### MCPConnectionListState
|
|
1807
1903
|
|
|
1808
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1904
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L197)
|
|
1809
1905
|
|
|
1810
1906
|
```ts
|
|
1811
1907
|
export interface MCPConnectionListState extends FormFeedback {
|
|
@@ -1817,7 +1913,7 @@ Referenced public types and APIs: [`FormFeedback`](#formfeedback), [`MCPConnecti
|
|
|
1817
1913
|
|
|
1818
1914
|
### MCPConnectionsPanel
|
|
1819
1915
|
|
|
1820
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1916
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L145)
|
|
1821
1917
|
|
|
1822
1918
|
```ts
|
|
1823
1919
|
export interface MCPConnectionsPanel extends FormDOMBlock<MCPConnectionsState> {
|
|
@@ -1835,7 +1931,7 @@ Referenced public types and APIs: [`FormDOMBlock`](#formdomblock), [`MCPConnecti
|
|
|
1835
1931
|
|
|
1836
1932
|
### MCPConnectionsState
|
|
1837
1933
|
|
|
1838
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1934
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L144)
|
|
1839
1935
|
|
|
1840
1936
|
```ts
|
|
1841
1937
|
export interface MCPConnectionsState extends FormFeedback {
|
|
@@ -1845,9 +1941,19 @@ export interface MCPConnectionsState extends FormFeedback {
|
|
|
1845
1941
|
|
|
1846
1942
|
Referenced public types and APIs: [`FormFeedback`](#formfeedback).
|
|
1847
1943
|
|
|
1944
|
+
### MCPConnectionTarget
|
|
1945
|
+
|
|
1946
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L199)
|
|
1947
|
+
|
|
1948
|
+
```ts
|
|
1949
|
+
export interface MCPConnectionTarget {
|
|
1950
|
+
readonly name: string;
|
|
1951
|
+
}
|
|
1952
|
+
```
|
|
1953
|
+
|
|
1848
1954
|
### MCPEditorValue
|
|
1849
1955
|
|
|
1850
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1956
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L142)
|
|
1851
1957
|
|
|
1852
1958
|
```ts
|
|
1853
1959
|
export interface MCPEditorValue {
|
|
@@ -1867,7 +1973,7 @@ export interface MCPEditorValue {
|
|
|
1867
1973
|
|
|
1868
1974
|
### ModelPicker
|
|
1869
1975
|
|
|
1870
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1976
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L181)
|
|
1871
1977
|
|
|
1872
1978
|
```ts
|
|
1873
1979
|
export interface ModelPicker extends FormDOMBlock<ModelPickerState> {
|
|
@@ -1881,7 +1987,7 @@ Referenced public types and APIs: [`FormDOMBlock`](#formdomblock), [`ModelPicker
|
|
|
1881
1987
|
|
|
1882
1988
|
### ModelPickerState
|
|
1883
1989
|
|
|
1884
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
1990
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L180)
|
|
1885
1991
|
|
|
1886
1992
|
```ts
|
|
1887
1993
|
export interface ModelPickerState extends FormFeedback {
|
|
@@ -1894,7 +2000,7 @@ Referenced public types and APIs: [`FormFeedback`](#formfeedback), [`ModelEditor
|
|
|
1894
2000
|
|
|
1895
2001
|
### SettingsCredentialView
|
|
1896
2002
|
|
|
1897
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2003
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L44)
|
|
1898
2004
|
|
|
1899
2005
|
```ts
|
|
1900
2006
|
export interface SettingsCredentialView {
|
|
@@ -1910,7 +2016,7 @@ export interface SettingsCredentialView {
|
|
|
1910
2016
|
|
|
1911
2017
|
### SettingsDraft
|
|
1912
2018
|
|
|
1913
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2019
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L42)
|
|
1914
2020
|
|
|
1915
2021
|
```ts
|
|
1916
2022
|
export interface SettingsDraft {
|
|
@@ -1922,7 +2028,7 @@ export interface SettingsDraft {
|
|
|
1922
2028
|
|
|
1923
2029
|
### SettingsPanel
|
|
1924
2030
|
|
|
1925
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2031
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L45)
|
|
1926
2032
|
|
|
1927
2033
|
```ts
|
|
1928
2034
|
export interface SettingsPanel extends FormDOMBlock<SettingsPanelState> {
|
|
@@ -1944,7 +2050,7 @@ Referenced public types and APIs: [`FormDOMBlock`](#formdomblock), [`SettingsCre
|
|
|
1944
2050
|
|
|
1945
2051
|
### SettingsPanelOptions
|
|
1946
2052
|
|
|
1947
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2053
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L46)
|
|
1948
2054
|
|
|
1949
2055
|
```ts
|
|
1950
2056
|
export interface SettingsPanelOptions extends FormOptions {
|
|
@@ -1961,7 +2067,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult), [`FormOptions
|
|
|
1961
2067
|
|
|
1962
2068
|
### SettingsPanelState
|
|
1963
2069
|
|
|
1964
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2070
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L40)
|
|
1965
2071
|
|
|
1966
2072
|
```ts
|
|
1967
2073
|
export interface SettingsPanelState extends FormFeedback {
|
|
@@ -1985,7 +2091,7 @@ Referenced public types and APIs: [`FormFeedback`](#formfeedback).
|
|
|
1985
2091
|
|
|
1986
2092
|
### SettingsProviderOption
|
|
1987
2093
|
|
|
1988
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#
|
|
2094
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/panels.ts#L43)
|
|
1989
2095
|
|
|
1990
2096
|
```ts
|
|
1991
2097
|
export interface SettingsProviderOption {
|
|
@@ -2000,7 +2106,7 @@ export interface SettingsProviderOption {
|
|
|
2000
2106
|
|
|
2001
2107
|
### createProviderLoginPanel
|
|
2002
2108
|
|
|
2003
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/provider-login.ts#
|
|
2109
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/provider-login.ts#L8)
|
|
2004
2110
|
|
|
2005
2111
|
```ts
|
|
2006
2112
|
export declare function createProviderLoginPanel(initial: ProviderLoginState, options?: {
|
|
@@ -2017,7 +2123,7 @@ Related gallery: [provider-login](https://minifish-org.github.io/pith-ui/?item=p
|
|
|
2017
2123
|
|
|
2018
2124
|
### ProviderLoginState
|
|
2019
2125
|
|
|
2020
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/provider-login.ts#
|
|
2126
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/forms/provider-login.ts#L7)
|
|
2021
2127
|
|
|
2022
2128
|
```ts
|
|
2023
2129
|
export interface ProviderLoginState {
|
|
@@ -2092,7 +2198,7 @@ export interface ResourceEditorState {
|
|
|
2092
2198
|
|
|
2093
2199
|
### createContextMenu
|
|
2094
2200
|
|
|
2095
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#
|
|
2201
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#L11)
|
|
2096
2202
|
|
|
2097
2203
|
```ts
|
|
2098
2204
|
export declare function createContextMenu(options?: {
|
|
@@ -2100,18 +2206,18 @@ export declare function createContextMenu(options?: {
|
|
|
2100
2206
|
onDismiss?: (restoreFocus: boolean) => void;
|
|
2101
2207
|
onAction?: (item: ContextMenuItem) => void;
|
|
2102
2208
|
}): UIBlock<ContextMenuState> & {
|
|
2103
|
-
open(trigger: HTMLElement, state: ContextMenuState): void;
|
|
2209
|
+
open(trigger: HTMLElement, state: ContextMenuState, options?: ContextMenuOpenOptions): void;
|
|
2104
2210
|
close(restoreFocus?: boolean): void;
|
|
2105
2211
|
};
|
|
2106
2212
|
```
|
|
2107
2213
|
|
|
2108
|
-
Referenced public types and APIs: [`ContextMenuItem`](#contextmenuitem), [`ContextMenuState`](#contextmenustate), [`UIBlock`](#uiblock).
|
|
2214
|
+
Referenced public types and APIs: [`ContextMenuItem`](#contextmenuitem), [`ContextMenuOpenOptions`](#contextmenuopenoptions), [`ContextMenuState`](#contextmenustate), [`UIBlock`](#uiblock).
|
|
2109
2215
|
|
|
2110
|
-
Related gallery: [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu).
|
|
2216
|
+
Related gallery: [context-menu](https://minifish-org.github.io/pith-ui/?item=context-menu), [workspace-navigation](https://minifish-org.github.io/pith-ui/?item=workspace-navigation).
|
|
2111
2217
|
|
|
2112
2218
|
### ContextMenuItem
|
|
2113
2219
|
|
|
2114
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#
|
|
2220
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#L5)
|
|
2115
2221
|
|
|
2116
2222
|
```ts
|
|
2117
2223
|
export interface ContextMenuItem {
|
|
@@ -2128,9 +2234,22 @@ export interface ContextMenuItem {
|
|
|
2128
2234
|
}
|
|
2129
2235
|
```
|
|
2130
2236
|
|
|
2237
|
+
### ContextMenuOpenOptions
|
|
2238
|
+
|
|
2239
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#L10)
|
|
2240
|
+
|
|
2241
|
+
```ts
|
|
2242
|
+
export interface ContextMenuOpenOptions {
|
|
2243
|
+
point?: {
|
|
2244
|
+
x: number;
|
|
2245
|
+
y: number;
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
```
|
|
2249
|
+
|
|
2131
2250
|
### ContextMenuState
|
|
2132
2251
|
|
|
2133
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#
|
|
2252
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/context-menu.ts#L9)
|
|
2134
2253
|
|
|
2135
2254
|
```ts
|
|
2136
2255
|
export interface ContextMenuState {
|
|
@@ -2145,7 +2264,7 @@ Referenced public types and APIs: [`ContextMenuItem`](#contextmenuitem).
|
|
|
2145
2264
|
|
|
2146
2265
|
### createRenameConversation
|
|
2147
2266
|
|
|
2148
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2267
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L101)
|
|
2149
2268
|
|
|
2150
2269
|
```ts
|
|
2151
2270
|
export declare function createRenameConversation(initial: RenameConversationState, options?: RenameConversationOptions): RenameConversationBlock;
|
|
@@ -2157,7 +2276,7 @@ Related gallery: [rename-conversation](https://minifish-org.github.io/pith-ui/?i
|
|
|
2157
2276
|
|
|
2158
2277
|
### createWorkspaceNavigation
|
|
2159
2278
|
|
|
2160
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2279
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L17)
|
|
2161
2280
|
|
|
2162
2281
|
```ts
|
|
2163
2282
|
export declare function createWorkspaceNavigation(initial: WorkspaceNavigationState, options?: {
|
|
@@ -2165,16 +2284,17 @@ export declare function createWorkspaceNavigation(initial: WorkspaceNavigationSt
|
|
|
2165
2284
|
idPrefix?: string;
|
|
2166
2285
|
onToggle?: (id: string) => void;
|
|
2167
2286
|
onSelect?: (id: string) => void;
|
|
2287
|
+
onAction?: (action: WorkspaceNavigationAction) => void;
|
|
2168
2288
|
}): UIBlock<WorkspaceNavigationState>;
|
|
2169
2289
|
```
|
|
2170
2290
|
|
|
2171
|
-
Referenced public types and APIs: [`UIBlock`](#uiblock), [`WorkspaceNavigationState`](#workspacenavigationstate).
|
|
2291
|
+
Referenced public types and APIs: [`UIBlock`](#uiblock), [`WorkspaceNavigationAction`](#workspacenavigationaction), [`WorkspaceNavigationState`](#workspacenavigationstate).
|
|
2172
2292
|
|
|
2173
2293
|
Related gallery: [workspace-navigation](https://minifish-org.github.io/pith-ui/?item=workspace-navigation).
|
|
2174
2294
|
|
|
2175
2295
|
### createWorkspacePicker
|
|
2176
2296
|
|
|
2177
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2297
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L151)
|
|
2178
2298
|
|
|
2179
2299
|
```ts
|
|
2180
2300
|
export declare function createWorkspacePicker(initial: WorkspacePickerState, options?: WorkspacePickerOptions): WorkspacePickerBlock;
|
|
@@ -2186,7 +2306,7 @@ Related gallery: [workspace-picker](https://minifish-org.github.io/pith-ui/?item
|
|
|
2186
2306
|
|
|
2187
2307
|
### NavigationConversation
|
|
2188
2308
|
|
|
2189
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2309
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L8)
|
|
2190
2310
|
|
|
2191
2311
|
```ts
|
|
2192
2312
|
export interface NavigationConversation {
|
|
@@ -2200,7 +2320,7 @@ export interface NavigationConversation {
|
|
|
2200
2320
|
|
|
2201
2321
|
### NavigationWorkspace
|
|
2202
2322
|
|
|
2203
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2323
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L9)
|
|
2204
2324
|
|
|
2205
2325
|
```ts
|
|
2206
2326
|
export interface NavigationWorkspace {
|
|
@@ -2218,7 +2338,7 @@ Referenced public types and APIs: [`NavigationConversation`](#navigationconversa
|
|
|
2218
2338
|
|
|
2219
2339
|
### RenameConversationBlock
|
|
2220
2340
|
|
|
2221
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2341
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L92)
|
|
2222
2342
|
|
|
2223
2343
|
```ts
|
|
2224
2344
|
export interface RenameConversationBlock extends UIBlock<RenameConversationState> {
|
|
@@ -2236,7 +2356,7 @@ Referenced public types and APIs: [`RenameConversationDraft`](#renameconversatio
|
|
|
2236
2356
|
|
|
2237
2357
|
### RenameConversationDraft
|
|
2238
2358
|
|
|
2239
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2359
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L83)
|
|
2240
2360
|
|
|
2241
2361
|
```ts
|
|
2242
2362
|
export interface RenameConversationDraft {
|
|
@@ -2247,7 +2367,7 @@ export interface RenameConversationDraft {
|
|
|
2247
2367
|
|
|
2248
2368
|
### RenameConversationOptions
|
|
2249
2369
|
|
|
2250
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2370
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L84)
|
|
2251
2371
|
|
|
2252
2372
|
```ts
|
|
2253
2373
|
export interface RenameConversationOptions {
|
|
@@ -2264,7 +2384,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult), [`RenameConve
|
|
|
2264
2384
|
|
|
2265
2385
|
### RenameConversationState
|
|
2266
2386
|
|
|
2267
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2387
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L82)
|
|
2268
2388
|
|
|
2269
2389
|
```ts
|
|
2270
2390
|
export interface RenameConversationState {
|
|
@@ -2275,9 +2395,28 @@ export interface RenameConversationState {
|
|
|
2275
2395
|
}
|
|
2276
2396
|
```
|
|
2277
2397
|
|
|
2398
|
+
### WorkspaceNavigationAction
|
|
2399
|
+
|
|
2400
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L11)
|
|
2401
|
+
|
|
2402
|
+
```ts
|
|
2403
|
+
export type WorkspaceNavigationAction = {
|
|
2404
|
+
action: 'add-workspace';
|
|
2405
|
+
trigger: HTMLButtonElement;
|
|
2406
|
+
} | {
|
|
2407
|
+
action: 'new-conversation' | 'workspace-menu';
|
|
2408
|
+
workspaceId: string;
|
|
2409
|
+
trigger: HTMLButtonElement;
|
|
2410
|
+
} | {
|
|
2411
|
+
action: 'conversation-menu';
|
|
2412
|
+
conversationId: string;
|
|
2413
|
+
trigger: HTMLButtonElement;
|
|
2414
|
+
};
|
|
2415
|
+
```
|
|
2416
|
+
|
|
2278
2417
|
### WorkspaceNavigationState
|
|
2279
2418
|
|
|
2280
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2419
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L10)
|
|
2281
2420
|
|
|
2282
2421
|
```ts
|
|
2283
2422
|
export interface WorkspaceNavigationState {
|
|
@@ -2291,7 +2430,7 @@ Referenced public types and APIs: [`NavigationWorkspace`](#navigationworkspace).
|
|
|
2291
2430
|
|
|
2292
2431
|
### WorkspacePickerBlock
|
|
2293
2432
|
|
|
2294
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2433
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L141)
|
|
2295
2434
|
|
|
2296
2435
|
```ts
|
|
2297
2436
|
export interface WorkspacePickerBlock extends UIBlock<WorkspacePickerState> {
|
|
@@ -2312,7 +2451,7 @@ Referenced public types and APIs: [`UIBlock`](#uiblock), [`WorkspacePickerState`
|
|
|
2312
2451
|
|
|
2313
2452
|
### WorkspacePickerOptions
|
|
2314
2453
|
|
|
2315
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2454
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L131)
|
|
2316
2455
|
|
|
2317
2456
|
```ts
|
|
2318
2457
|
export interface WorkspacePickerOptions {
|
|
@@ -2334,7 +2473,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult).
|
|
|
2334
2473
|
|
|
2335
2474
|
### WorkspacePickerState
|
|
2336
2475
|
|
|
2337
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#
|
|
2476
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/navigation/navigation.ts#L130)
|
|
2338
2477
|
|
|
2339
2478
|
```ts
|
|
2340
2479
|
export interface WorkspacePickerState {
|
|
@@ -2352,7 +2491,7 @@ export interface WorkspacePickerState {
|
|
|
2352
2491
|
|
|
2353
2492
|
### createActions
|
|
2354
2493
|
|
|
2355
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2494
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L319)
|
|
2356
2495
|
|
|
2357
2496
|
```ts
|
|
2358
2497
|
export declare function createActions(options?: ActionsState & {
|
|
@@ -2366,7 +2505,7 @@ Related gallery: [actions](https://minifish-org.github.io/pith-ui/?item=actions)
|
|
|
2366
2505
|
|
|
2367
2506
|
### createButton
|
|
2368
2507
|
|
|
2369
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2508
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L27)
|
|
2370
2509
|
|
|
2371
2510
|
```ts
|
|
2372
2511
|
export declare function createButton(options: ButtonOptions): ButtonBlock;
|
|
@@ -2378,7 +2517,7 @@ Related gallery: [actions](https://minifish-org.github.io/pith-ui/?item=actions)
|
|
|
2378
2517
|
|
|
2379
2518
|
### createCheckbox
|
|
2380
2519
|
|
|
2381
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2520
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L272)
|
|
2382
2521
|
|
|
2383
2522
|
```ts
|
|
2384
2523
|
export declare function createCheckbox(options: CheckboxState & {
|
|
@@ -2393,7 +2532,7 @@ Related gallery: [checkbox](https://minifish-org.github.io/pith-ui/?item=checkbo
|
|
|
2393
2532
|
|
|
2394
2533
|
### createCollectionState
|
|
2395
2534
|
|
|
2396
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2535
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L356)
|
|
2397
2536
|
|
|
2398
2537
|
```ts
|
|
2399
2538
|
export declare function createCollectionState(options: CollectionState & {
|
|
@@ -2408,7 +2547,7 @@ Related gallery: [collection-state](https://minifish-org.github.io/pith-ui/?item
|
|
|
2408
2547
|
|
|
2409
2548
|
### createConfirmDialog
|
|
2410
2549
|
|
|
2411
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2550
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L472)
|
|
2412
2551
|
|
|
2413
2552
|
```ts
|
|
2414
2553
|
export declare function createConfirmDialog(options: ConfirmState & {
|
|
@@ -2431,7 +2570,7 @@ Related gallery: [confirmation](https://minifish-org.github.io/pith-ui/?item=con
|
|
|
2431
2570
|
|
|
2432
2571
|
### createDialog
|
|
2433
2572
|
|
|
2434
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2573
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L378)
|
|
2435
2574
|
|
|
2436
2575
|
```ts
|
|
2437
2576
|
export declare function createDialog(options: DialogOptions): DialogBlock;
|
|
@@ -2443,7 +2582,7 @@ Related gallery: [dialog](https://minifish-org.github.io/pith-ui/?item=dialog).
|
|
|
2443
2582
|
|
|
2444
2583
|
### createDisclosure
|
|
2445
2584
|
|
|
2446
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2585
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L327)
|
|
2447
2586
|
|
|
2448
2587
|
```ts
|
|
2449
2588
|
export declare function createDisclosure(options: DisclosureState & {
|
|
@@ -2459,7 +2598,7 @@ Related gallery: [disclosure](https://minifish-org.github.io/pith-ui/?item=discl
|
|
|
2459
2598
|
|
|
2460
2599
|
### createDivider
|
|
2461
2600
|
|
|
2462
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2601
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L75)
|
|
2463
2602
|
|
|
2464
2603
|
```ts
|
|
2465
2604
|
export declare function createDivider(state?: {
|
|
@@ -2475,7 +2614,7 @@ Related gallery: [divider](https://minifish-org.github.io/pith-ui/?item=divider)
|
|
|
2475
2614
|
|
|
2476
2615
|
### createField
|
|
2477
2616
|
|
|
2478
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2617
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L119)
|
|
2479
2618
|
|
|
2480
2619
|
```ts
|
|
2481
2620
|
export declare function createField(options: FieldState & {
|
|
@@ -2489,7 +2628,7 @@ Related gallery: [number-input](https://minifish-org.github.io/pith-ui/?item=num
|
|
|
2489
2628
|
|
|
2490
2629
|
### createFormSection
|
|
2491
2630
|
|
|
2492
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2631
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L311)
|
|
2493
2632
|
|
|
2494
2633
|
```ts
|
|
2495
2634
|
export declare function createFormSection(options: FormSectionState & {
|
|
@@ -2503,7 +2642,7 @@ Related gallery: [form-section](https://minifish-org.github.io/pith-ui/?item=for
|
|
|
2503
2642
|
|
|
2504
2643
|
### createIcon
|
|
2505
2644
|
|
|
2506
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2645
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L64)
|
|
2507
2646
|
|
|
2508
2647
|
```ts
|
|
2509
2648
|
export declare function createIcon(state: IconState): UIBlock<IconState>;
|
|
@@ -2515,7 +2654,7 @@ Related gallery: [foundation-sizing](https://minifish-org.github.io/pith-ui/?ite
|
|
|
2515
2654
|
|
|
2516
2655
|
### createIconButton
|
|
2517
2656
|
|
|
2518
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2657
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L42)
|
|
2519
2658
|
|
|
2520
2659
|
```ts
|
|
2521
2660
|
export declare function createIconButton(options: ButtonOptions & {
|
|
@@ -2529,7 +2668,7 @@ Related gallery: [icon-button](https://minifish-org.github.io/pith-ui/?item=icon
|
|
|
2529
2668
|
|
|
2530
2669
|
### createKeyValue
|
|
2531
2670
|
|
|
2532
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2671
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L82)
|
|
2533
2672
|
|
|
2534
2673
|
```ts
|
|
2535
2674
|
export declare function createKeyValue(options: KeyValueState): UIBlock<KeyValueState>;
|
|
@@ -2541,7 +2680,7 @@ Related gallery: [foundation-motion](https://minifish-org.github.io/pith-ui/?ite
|
|
|
2541
2680
|
|
|
2542
2681
|
### createListRow
|
|
2543
2682
|
|
|
2544
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2683
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L341)
|
|
2545
2684
|
|
|
2546
2685
|
```ts
|
|
2547
2686
|
export declare function createListRow(options: ListRowState & {
|
|
@@ -2555,19 +2694,19 @@ Related gallery: [collection-state](https://minifish-org.github.io/pith-ui/?item
|
|
|
2555
2694
|
|
|
2556
2695
|
### createMenu
|
|
2557
2696
|
|
|
2558
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2697
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L531)
|
|
2559
2698
|
|
|
2560
2699
|
```ts
|
|
2561
|
-
export declare function createMenu(options:
|
|
2700
|
+
export declare function createMenu(options: MenuOptions): PopoverBlock & UIBlock<MenuState>;
|
|
2562
2701
|
```
|
|
2563
2702
|
|
|
2564
|
-
Referenced public types and APIs: [`MenuState`](#menustate), [`PopoverBlock`](#popoverblock), [`UIBlock`](#uiblock).
|
|
2703
|
+
Referenced public types and APIs: [`MenuOptions`](#menuoptions), [`MenuState`](#menustate), [`PopoverBlock`](#popoverblock), [`UIBlock`](#uiblock).
|
|
2565
2704
|
|
|
2566
|
-
Related gallery: [menu](https://minifish-org.github.io/pith-ui/?item=menu).
|
|
2705
|
+
Related gallery: [foundation-focus](https://minifish-org.github.io/pith-ui/?item=foundation-focus), [menu](https://minifish-org.github.io/pith-ui/?item=menu).
|
|
2567
2706
|
|
|
2568
2707
|
### createNotice
|
|
2569
2708
|
|
|
2570
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2709
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L287)
|
|
2571
2710
|
|
|
2572
2711
|
```ts
|
|
2573
2712
|
export declare function createNotice(state: NoticeState): UIBlock<NoticeState>;
|
|
@@ -2579,7 +2718,7 @@ Related gallery: [notice](https://minifish-org.github.io/pith-ui/?item=notice).
|
|
|
2579
2718
|
|
|
2580
2719
|
### createNumberInput
|
|
2581
2720
|
|
|
2582
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2721
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L185)
|
|
2583
2722
|
|
|
2584
2723
|
```ts
|
|
2585
2724
|
export declare const createNumberInput: (options: InputOptions) => InputBlock;
|
|
@@ -2591,7 +2730,7 @@ Related gallery: [number-input](https://minifish-org.github.io/pith-ui/?item=num
|
|
|
2591
2730
|
|
|
2592
2731
|
### createPopover
|
|
2593
2732
|
|
|
2594
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2733
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L514)
|
|
2595
2734
|
|
|
2596
2735
|
```ts
|
|
2597
2736
|
export declare function createPopover(options: PopoverState & {
|
|
@@ -2606,7 +2745,7 @@ Related gallery: [popover](https://minifish-org.github.io/pith-ui/?item=popover)
|
|
|
2606
2745
|
|
|
2607
2746
|
### createProgress
|
|
2608
2747
|
|
|
2609
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2748
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L300)
|
|
2610
2749
|
|
|
2611
2750
|
```ts
|
|
2612
2751
|
export declare function createProgress(state: ProgressState): UIBlock<ProgressState>;
|
|
@@ -2618,7 +2757,7 @@ Related gallery: [progress](https://minifish-org.github.io/pith-ui/?item=progres
|
|
|
2618
2757
|
|
|
2619
2758
|
### createScrollArea
|
|
2620
2759
|
|
|
2621
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2760
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L102)
|
|
2622
2761
|
|
|
2623
2762
|
```ts
|
|
2624
2763
|
export declare function createScrollArea(options: ScrollAreaState & {
|
|
@@ -2632,7 +2771,7 @@ Related gallery: [scroll-area](https://minifish-org.github.io/pith-ui/?item=scro
|
|
|
2632
2771
|
|
|
2633
2772
|
### createSearchInput
|
|
2634
2773
|
|
|
2635
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2774
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L184)
|
|
2636
2775
|
|
|
2637
2776
|
```ts
|
|
2638
2777
|
export declare const createSearchInput: (options: InputOptions) => InputBlock;
|
|
@@ -2644,7 +2783,7 @@ Related gallery: [search-input](https://minifish-org.github.io/pith-ui/?item=sea
|
|
|
2644
2783
|
|
|
2645
2784
|
### createSecretInput
|
|
2646
2785
|
|
|
2647
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2786
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L188)
|
|
2648
2787
|
|
|
2649
2788
|
```ts
|
|
2650
2789
|
export declare function createSecretInput(options: InputOptions): InputBlock;
|
|
@@ -2656,7 +2795,7 @@ Related gallery: [secret-input](https://minifish-org.github.io/pith-ui/?item=sec
|
|
|
2656
2795
|
|
|
2657
2796
|
### createSelect
|
|
2658
2797
|
|
|
2659
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2798
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L226)
|
|
2660
2799
|
|
|
2661
2800
|
```ts
|
|
2662
2801
|
export declare function createSelect(options: SelectOptions): SelectBlock;
|
|
@@ -2664,11 +2803,11 @@ export declare function createSelect(options: SelectOptions): SelectBlock;
|
|
|
2664
2803
|
|
|
2665
2804
|
Referenced public types and APIs: [`SelectBlock`](#selectblock), [`SelectOptions`](#selectoptions).
|
|
2666
2805
|
|
|
2667
|
-
Related gallery: [foundation-
|
|
2806
|
+
Related gallery: [foundation-focus](https://minifish-org.github.io/pith-ui/?item=foundation-focus), [foundation-sizing](https://minifish-org.github.io/pith-ui/?item=foundation-sizing), [select](https://minifish-org.github.io/pith-ui/?item=select).
|
|
2668
2807
|
|
|
2669
2808
|
### createStatus
|
|
2670
2809
|
|
|
2671
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2810
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L293)
|
|
2672
2811
|
|
|
2673
2812
|
```ts
|
|
2674
2813
|
export declare function createStatus(state: StatusState): UIBlock<StatusState>;
|
|
@@ -2680,7 +2819,7 @@ Related gallery: [status](https://minifish-org.github.io/pith-ui/?item=status).
|
|
|
2680
2819
|
|
|
2681
2820
|
### createTextAction
|
|
2682
2821
|
|
|
2683
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2822
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L55)
|
|
2684
2823
|
|
|
2685
2824
|
```ts
|
|
2686
2825
|
export declare function createTextAction(options: ButtonOptions): ButtonBlock;
|
|
@@ -2692,7 +2831,7 @@ Related gallery: [text-action](https://minifish-org.github.io/pith-ui/?item=text
|
|
|
2692
2831
|
|
|
2693
2832
|
### createTextArea
|
|
2694
2833
|
|
|
2695
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2834
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L186)
|
|
2696
2835
|
|
|
2697
2836
|
```ts
|
|
2698
2837
|
export declare const createTextArea: (options: InputOptions) => InputBlock;
|
|
@@ -2704,7 +2843,7 @@ Related gallery: [foundation-typography](https://minifish-org.github.io/pith-ui/
|
|
|
2704
2843
|
|
|
2705
2844
|
### createTextEditDialog
|
|
2706
2845
|
|
|
2707
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2846
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L420)
|
|
2708
2847
|
|
|
2709
2848
|
```ts
|
|
2710
2849
|
export declare function createTextEditDialog(options?: TextEditOptions): TextEditBlock;
|
|
@@ -2716,7 +2855,7 @@ Related gallery: [pending-messages](https://minifish-org.github.io/pith-ui/?item
|
|
|
2716
2855
|
|
|
2717
2856
|
### createTextInput
|
|
2718
2857
|
|
|
2719
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2858
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L183)
|
|
2720
2859
|
|
|
2721
2860
|
```ts
|
|
2722
2861
|
export declare const createTextInput: (options: InputOptions) => InputBlock;
|
|
@@ -2728,7 +2867,7 @@ Related gallery: [form-section](https://minifish-org.github.io/pith-ui/?item=for
|
|
|
2728
2867
|
|
|
2729
2868
|
### createToolbar
|
|
2730
2869
|
|
|
2731
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2870
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L94)
|
|
2732
2871
|
|
|
2733
2872
|
```ts
|
|
2734
2873
|
export declare function createToolbar(options: ToolbarState & {
|
|
@@ -2742,7 +2881,7 @@ Related gallery: [button](https://minifish-org.github.io/pith-ui/?item=button),
|
|
|
2742
2881
|
|
|
2743
2882
|
### ActionsState
|
|
2744
2883
|
|
|
2745
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2884
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L318)
|
|
2746
2885
|
|
|
2747
2886
|
```ts
|
|
2748
2887
|
export interface ActionsState {
|
|
@@ -2752,7 +2891,7 @@ export interface ActionsState {
|
|
|
2752
2891
|
|
|
2753
2892
|
### ButtonBlock
|
|
2754
2893
|
|
|
2755
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2894
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L25)
|
|
2756
2895
|
|
|
2757
2896
|
```ts
|
|
2758
2897
|
export interface ButtonBlock extends UIBlock<ButtonState> {
|
|
@@ -2764,7 +2903,7 @@ Referenced public types and APIs: [`ButtonState`](#buttonstate), [`UIBlock`](#ui
|
|
|
2764
2903
|
|
|
2765
2904
|
### ButtonOptions
|
|
2766
2905
|
|
|
2767
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2906
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L20)
|
|
2768
2907
|
|
|
2769
2908
|
```ts
|
|
2770
2909
|
export interface ButtonOptions extends ButtonState {
|
|
@@ -2778,7 +2917,7 @@ Referenced public types and APIs: [`ButtonState`](#buttonstate), [`UIAction`](#u
|
|
|
2778
2917
|
|
|
2779
2918
|
### ButtonState
|
|
2780
2919
|
|
|
2781
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2920
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L9)
|
|
2782
2921
|
|
|
2783
2922
|
```ts
|
|
2784
2923
|
export interface ButtonState {
|
|
@@ -2798,7 +2937,7 @@ Referenced public types and APIs: [`Density`](#density), [`Intent`](#intent).
|
|
|
2798
2937
|
|
|
2799
2938
|
### CheckboxBlock
|
|
2800
2939
|
|
|
2801
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2940
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L266)
|
|
2802
2941
|
|
|
2803
2942
|
```ts
|
|
2804
2943
|
export interface CheckboxBlock extends UIBlock<CheckboxState> {
|
|
@@ -2813,7 +2952,7 @@ Referenced public types and APIs: [`CheckboxState`](#checkboxstate), [`UIBlock`]
|
|
|
2813
2952
|
|
|
2814
2953
|
### CheckboxState
|
|
2815
2954
|
|
|
2816
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2955
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L265)
|
|
2817
2956
|
|
|
2818
2957
|
```ts
|
|
2819
2958
|
export interface CheckboxState {
|
|
@@ -2825,7 +2964,7 @@ export interface CheckboxState {
|
|
|
2825
2964
|
|
|
2826
2965
|
### CollectionState
|
|
2827
2966
|
|
|
2828
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2967
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L355)
|
|
2829
2968
|
|
|
2830
2969
|
```ts
|
|
2831
2970
|
export interface CollectionState {
|
|
@@ -2837,7 +2976,7 @@ export interface CollectionState {
|
|
|
2837
2976
|
|
|
2838
2977
|
### ConfirmBlock
|
|
2839
2978
|
|
|
2840
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2979
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L471)
|
|
2841
2980
|
|
|
2842
2981
|
```ts
|
|
2843
2982
|
export interface ConfirmBlock extends UIBlock<ConfirmState> {
|
|
@@ -2854,7 +2993,7 @@ Referenced public types and APIs: [`ConfirmState`](#confirmstate), [`UIBlock`](#
|
|
|
2854
2993
|
|
|
2855
2994
|
### ConfirmState
|
|
2856
2995
|
|
|
2857
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
2996
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L470)
|
|
2858
2997
|
|
|
2859
2998
|
```ts
|
|
2860
2999
|
export interface ConfirmState extends DialogState {
|
|
@@ -2871,7 +3010,7 @@ Referenced public types and APIs: [`DialogState`](#dialogstate).
|
|
|
2871
3010
|
|
|
2872
3011
|
### DialogBlock
|
|
2873
3012
|
|
|
2874
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3013
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L372)
|
|
2875
3014
|
|
|
2876
3015
|
```ts
|
|
2877
3016
|
export interface DialogBlock extends UIBlock<DialogState> {
|
|
@@ -2886,7 +3025,7 @@ Referenced public types and APIs: [`DialogState`](#dialogstate), [`UIBlock`](#ui
|
|
|
2886
3025
|
|
|
2887
3026
|
### DialogOptions
|
|
2888
3027
|
|
|
2889
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3028
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L371)
|
|
2890
3029
|
|
|
2891
3030
|
```ts
|
|
2892
3031
|
export interface DialogOptions extends DialogState {
|
|
@@ -2902,7 +3041,7 @@ Referenced public types and APIs: [`DialogState`](#dialogstate).
|
|
|
2902
3041
|
|
|
2903
3042
|
### DialogState
|
|
2904
3043
|
|
|
2905
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3044
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L370)
|
|
2906
3045
|
|
|
2907
3046
|
```ts
|
|
2908
3047
|
export interface DialogState {
|
|
@@ -2915,7 +3054,7 @@ export interface DialogState {
|
|
|
2915
3054
|
|
|
2916
3055
|
### DisclosureBlock
|
|
2917
3056
|
|
|
2918
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3057
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L326)
|
|
2919
3058
|
|
|
2920
3059
|
```ts
|
|
2921
3060
|
export interface DisclosureBlock extends UIBlock<DisclosureState> {
|
|
@@ -2928,7 +3067,7 @@ Referenced public types and APIs: [`DisclosureState`](#disclosurestate), [`UIBlo
|
|
|
2928
3067
|
|
|
2929
3068
|
### DisclosureState
|
|
2930
3069
|
|
|
2931
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3070
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L325)
|
|
2932
3071
|
|
|
2933
3072
|
```ts
|
|
2934
3073
|
export interface DisclosureState {
|
|
@@ -2940,7 +3079,7 @@ export interface DisclosureState {
|
|
|
2940
3079
|
|
|
2941
3080
|
### FieldBlock
|
|
2942
3081
|
|
|
2943
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3082
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L115)
|
|
2944
3083
|
|
|
2945
3084
|
```ts
|
|
2946
3085
|
export interface FieldBlock extends UIBlock<FieldState> {
|
|
@@ -2952,7 +3091,7 @@ Referenced public types and APIs: [`FieldState`](#fieldstate), [`UIBlock`](#uibl
|
|
|
2952
3091
|
|
|
2953
3092
|
### FieldState
|
|
2954
3093
|
|
|
2955
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3094
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L108)
|
|
2956
3095
|
|
|
2957
3096
|
```ts
|
|
2958
3097
|
export interface FieldState {
|
|
@@ -2966,7 +3105,7 @@ export interface FieldState {
|
|
|
2966
3105
|
|
|
2967
3106
|
### FormSectionState
|
|
2968
3107
|
|
|
2969
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3108
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L310)
|
|
2970
3109
|
|
|
2971
3110
|
```ts
|
|
2972
3111
|
export interface FormSectionState {
|
|
@@ -2977,7 +3116,7 @@ export interface FormSectionState {
|
|
|
2977
3116
|
|
|
2978
3117
|
### IconState
|
|
2979
3118
|
|
|
2980
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3119
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L63)
|
|
2981
3120
|
|
|
2982
3121
|
```ts
|
|
2983
3122
|
export interface IconState {
|
|
@@ -2989,7 +3128,7 @@ export interface IconState {
|
|
|
2989
3128
|
|
|
2990
3129
|
### InputBlock
|
|
2991
3130
|
|
|
2992
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3131
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L154)
|
|
2993
3132
|
|
|
2994
3133
|
```ts
|
|
2995
3134
|
export interface InputBlock extends UIBlock<InputState> {
|
|
@@ -3004,7 +3143,7 @@ Referenced public types and APIs: [`InputState`](#inputstate), [`UIBlock`](#uibl
|
|
|
3004
3143
|
|
|
3005
3144
|
### InputOptions
|
|
3006
3145
|
|
|
3007
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3146
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L145)
|
|
3008
3147
|
|
|
3009
3148
|
```ts
|
|
3010
3149
|
export interface InputOptions extends InputState {
|
|
@@ -3022,7 +3161,7 @@ Referenced public types and APIs: [`InputState`](#inputstate).
|
|
|
3022
3161
|
|
|
3023
3162
|
### InputState
|
|
3024
3163
|
|
|
3025
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3164
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L140)
|
|
3026
3165
|
|
|
3027
3166
|
```ts
|
|
3028
3167
|
export interface InputState extends FieldState {
|
|
@@ -3036,7 +3175,7 @@ Referenced public types and APIs: [`Density`](#density), [`FieldState`](#fieldst
|
|
|
3036
3175
|
|
|
3037
3176
|
### KeyValueState
|
|
3038
3177
|
|
|
3039
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3178
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L81)
|
|
3040
3179
|
|
|
3041
3180
|
```ts
|
|
3042
3181
|
export interface KeyValueState {
|
|
@@ -3050,7 +3189,7 @@ export interface KeyValueState {
|
|
|
3050
3189
|
|
|
3051
3190
|
### ListRowState
|
|
3052
3191
|
|
|
3053
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3192
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L340)
|
|
3054
3193
|
|
|
3055
3194
|
```ts
|
|
3056
3195
|
export interface ListRowState {
|
|
@@ -3064,7 +3203,7 @@ export interface ListRowState {
|
|
|
3064
3203
|
|
|
3065
3204
|
### MenuItem
|
|
3066
3205
|
|
|
3067
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3206
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L528)
|
|
3068
3207
|
|
|
3069
3208
|
```ts
|
|
3070
3209
|
export interface MenuItem {
|
|
@@ -3079,9 +3218,21 @@ export interface MenuItem {
|
|
|
3079
3218
|
|
|
3080
3219
|
Referenced public types and APIs: [`Intent`](#intent), [`UIAction`](#uiaction).
|
|
3081
3220
|
|
|
3221
|
+
### MenuOptions
|
|
3222
|
+
|
|
3223
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L530)
|
|
3224
|
+
|
|
3225
|
+
```ts
|
|
3226
|
+
export interface MenuOptions extends MenuState {
|
|
3227
|
+
onError?: (message: string) => void;
|
|
3228
|
+
}
|
|
3229
|
+
```
|
|
3230
|
+
|
|
3231
|
+
Referenced public types and APIs: [`MenuState`](#menustate).
|
|
3232
|
+
|
|
3082
3233
|
### MenuState
|
|
3083
3234
|
|
|
3084
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3235
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L529)
|
|
3085
3236
|
|
|
3086
3237
|
```ts
|
|
3087
3238
|
export interface MenuState extends PopoverState {
|
|
@@ -3093,7 +3244,7 @@ Referenced public types and APIs: [`MenuItem`](#menuitem), [`PopoverState`](#pop
|
|
|
3093
3244
|
|
|
3094
3245
|
### NoticeState
|
|
3095
3246
|
|
|
3096
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3247
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L286)
|
|
3097
3248
|
|
|
3098
3249
|
```ts
|
|
3099
3250
|
export interface NoticeState {
|
|
@@ -3104,7 +3255,7 @@ export interface NoticeState {
|
|
|
3104
3255
|
|
|
3105
3256
|
### PopoverBlock
|
|
3106
3257
|
|
|
3107
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3258
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L507)
|
|
3108
3259
|
|
|
3109
3260
|
```ts
|
|
3110
3261
|
export interface PopoverBlock extends UIBlock<PopoverState> {
|
|
@@ -3120,7 +3271,7 @@ Referenced public types and APIs: [`PopoverState`](#popoverstate), [`UIBlock`](#
|
|
|
3120
3271
|
|
|
3121
3272
|
### PopoverState
|
|
3122
3273
|
|
|
3123
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3274
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L506)
|
|
3124
3275
|
|
|
3125
3276
|
```ts
|
|
3126
3277
|
export interface PopoverState {
|
|
@@ -3131,7 +3282,7 @@ export interface PopoverState {
|
|
|
3131
3282
|
|
|
3132
3283
|
### ProgressState
|
|
3133
3284
|
|
|
3134
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3285
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L299)
|
|
3135
3286
|
|
|
3136
3287
|
```ts
|
|
3137
3288
|
export interface ProgressState {
|
|
@@ -3143,7 +3294,7 @@ export interface ProgressState {
|
|
|
3143
3294
|
|
|
3144
3295
|
### ScrollAreaState
|
|
3145
3296
|
|
|
3146
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3297
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L101)
|
|
3147
3298
|
|
|
3148
3299
|
```ts
|
|
3149
3300
|
export interface ScrollAreaState {
|
|
@@ -3154,13 +3305,15 @@ export interface ScrollAreaState {
|
|
|
3154
3305
|
|
|
3155
3306
|
### SelectBlock
|
|
3156
3307
|
|
|
3157
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3308
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L218)
|
|
3158
3309
|
|
|
3159
3310
|
```ts
|
|
3160
3311
|
export interface SelectBlock extends UIBlock<SelectState> {
|
|
3161
3312
|
readonly control: HTMLSelectElement;
|
|
3162
3313
|
getValue(): string;
|
|
3314
|
+
getValues(): string[];
|
|
3163
3315
|
reset(value: string): void;
|
|
3316
|
+
resetValues(values: readonly string[]): void;
|
|
3164
3317
|
focus(): void;
|
|
3165
3318
|
}
|
|
3166
3319
|
```
|
|
@@ -3186,7 +3339,9 @@ export interface SelectOption {
|
|
|
3186
3339
|
```ts
|
|
3187
3340
|
export interface SelectOptions extends SelectState {
|
|
3188
3341
|
value?: string;
|
|
3342
|
+
values?: readonly string[];
|
|
3189
3343
|
onChange?: (value: string) => void;
|
|
3344
|
+
onValuesChange?: (values: readonly string[]) => void;
|
|
3190
3345
|
multiple?: boolean;
|
|
3191
3346
|
size?: number;
|
|
3192
3347
|
}
|
|
@@ -3209,7 +3364,7 @@ Referenced public types and APIs: [`Density`](#density), [`FieldState`](#fieldst
|
|
|
3209
3364
|
|
|
3210
3365
|
### StatusState
|
|
3211
3366
|
|
|
3212
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3367
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L292)
|
|
3213
3368
|
|
|
3214
3369
|
```ts
|
|
3215
3370
|
export interface StatusState {
|
|
@@ -3220,7 +3375,7 @@ export interface StatusState {
|
|
|
3220
3375
|
|
|
3221
3376
|
### TextEditBlock
|
|
3222
3377
|
|
|
3223
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3378
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L411)
|
|
3224
3379
|
|
|
3225
3380
|
```ts
|
|
3226
3381
|
export interface TextEditBlock extends Omit<UIBlock<TextEditState>, 'element'> {
|
|
@@ -3238,7 +3393,7 @@ Referenced public types and APIs: [`TextEditInput`](#texteditinput), [`TextEditS
|
|
|
3238
3393
|
|
|
3239
3394
|
### TextEditInput
|
|
3240
3395
|
|
|
3241
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3396
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L402)
|
|
3242
3397
|
|
|
3243
3398
|
```ts
|
|
3244
3399
|
export interface TextEditInput {
|
|
@@ -3251,7 +3406,7 @@ export interface TextEditInput {
|
|
|
3251
3406
|
|
|
3252
3407
|
### TextEditOptions
|
|
3253
3408
|
|
|
3254
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3409
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L403)
|
|
3255
3410
|
|
|
3256
3411
|
```ts
|
|
3257
3412
|
export interface TextEditOptions extends Partial<TextEditState> {
|
|
@@ -3275,7 +3430,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult), [`TextEditSta
|
|
|
3275
3430
|
|
|
3276
3431
|
### TextEditState
|
|
3277
3432
|
|
|
3278
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3433
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L401)
|
|
3279
3434
|
|
|
3280
3435
|
```ts
|
|
3281
3436
|
export interface TextEditState extends DialogState {
|
|
@@ -3292,7 +3447,7 @@ Referenced public types and APIs: [`DialogState`](#dialogstate).
|
|
|
3292
3447
|
|
|
3293
3448
|
### ToolbarState
|
|
3294
3449
|
|
|
3295
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#
|
|
3450
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/primitives.ts#L93)
|
|
3296
3451
|
|
|
3297
3452
|
```ts
|
|
3298
3453
|
export interface ToolbarState {
|
|
@@ -3359,7 +3514,7 @@ export interface ApprovalView {
|
|
|
3359
3514
|
|
|
3360
3515
|
### createFullAccessConfirmation
|
|
3361
3516
|
|
|
3362
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3517
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L9)
|
|
3363
3518
|
|
|
3364
3519
|
```ts
|
|
3365
3520
|
export declare function createFullAccessConfirmation(initial: FullAccessState, options?: FullAccessOptions): UIBlock<FullAccessState> & {
|
|
@@ -3373,7 +3528,7 @@ Related gallery: [full-access-confirmation](https://minifish-org.github.io/pith-
|
|
|
3373
3528
|
|
|
3374
3529
|
### createPermissionControl
|
|
3375
3530
|
|
|
3376
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3531
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L40)
|
|
3377
3532
|
|
|
3378
3533
|
```ts
|
|
3379
3534
|
export declare function createPermissionControl(initial: PermissionControlState, options?: {
|
|
@@ -3389,7 +3544,7 @@ Related gallery: [permission-control](https://minifish-org.github.io/pith-ui/?it
|
|
|
3389
3544
|
|
|
3390
3545
|
### createTaskFailure
|
|
3391
3546
|
|
|
3392
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3547
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L19)
|
|
3393
3548
|
|
|
3394
3549
|
```ts
|
|
3395
3550
|
export declare function createTaskFailure(initial: TaskFailureState, options?: {
|
|
@@ -3406,7 +3561,7 @@ Related gallery: [task-failure](https://minifish-org.github.io/pith-ui/?item=tas
|
|
|
3406
3561
|
|
|
3407
3562
|
### FullAccessOptions
|
|
3408
3563
|
|
|
3409
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3564
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L8)
|
|
3410
3565
|
|
|
3411
3566
|
```ts
|
|
3412
3567
|
export interface FullAccessOptions {
|
|
@@ -3419,7 +3574,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult).
|
|
|
3419
3574
|
|
|
3420
3575
|
### FullAccessState
|
|
3421
3576
|
|
|
3422
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3577
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L7)
|
|
3423
3578
|
|
|
3424
3579
|
```ts
|
|
3425
3580
|
export interface FullAccessState {
|
|
@@ -3431,7 +3586,7 @@ export interface FullAccessState {
|
|
|
3431
3586
|
|
|
3432
3587
|
### PermissionControlState
|
|
3433
3588
|
|
|
3434
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3589
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L39)
|
|
3435
3590
|
|
|
3436
3591
|
```ts
|
|
3437
3592
|
export interface PermissionControlState {
|
|
@@ -3443,7 +3598,7 @@ export interface PermissionControlState {
|
|
|
3443
3598
|
|
|
3444
3599
|
### TaskFailureState
|
|
3445
3600
|
|
|
3446
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#
|
|
3601
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/permission.ts#L18)
|
|
3447
3602
|
|
|
3448
3603
|
```ts
|
|
3449
3604
|
export interface TaskFailureState {
|
|
@@ -3459,7 +3614,7 @@ export interface TaskFailureState {
|
|
|
3459
3614
|
|
|
3460
3615
|
### createRuntimePanel
|
|
3461
3616
|
|
|
3462
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/runtime.ts#
|
|
3617
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/runtime.ts#L6)
|
|
3463
3618
|
|
|
3464
3619
|
```ts
|
|
3465
3620
|
export declare function createRuntimePanel(initial: RuntimePanelState, options?: {
|
|
@@ -3481,7 +3636,7 @@ Related gallery: [runtime-panel](https://minifish-org.github.io/pith-ui/?item=ru
|
|
|
3481
3636
|
|
|
3482
3637
|
### RuntimePanelState
|
|
3483
3638
|
|
|
3484
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/runtime.ts#
|
|
3639
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/tasks/runtime.ts#L5)
|
|
3485
3640
|
|
|
3486
3641
|
```ts
|
|
3487
3642
|
export interface RuntimePanelState {
|
|
@@ -3531,7 +3686,7 @@ Related gallery: [foundation-colors](https://minifish-org.github.io/pith-ui/?ite
|
|
|
3531
3686
|
|
|
3532
3687
|
### createComposerView
|
|
3533
3688
|
|
|
3534
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3689
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L33)
|
|
3535
3690
|
|
|
3536
3691
|
```ts
|
|
3537
3692
|
export declare function createComposerView(options?: ComposerViewOptions): {
|
|
@@ -3553,7 +3708,7 @@ Related gallery: [composer](https://minifish-org.github.io/pith-ui/?item=compose
|
|
|
3553
3708
|
|
|
3554
3709
|
### createWorkspaceShell
|
|
3555
3710
|
|
|
3556
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3711
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L121)
|
|
3557
3712
|
|
|
3558
3713
|
```ts
|
|
3559
3714
|
export declare function createWorkspaceShell(options: WorkspaceShellOptions): {
|
|
@@ -3586,7 +3741,7 @@ Related gallery: [workspace-chat](https://minifish-org.github.io/pith-ui/?item=w
|
|
|
3586
3741
|
|
|
3587
3742
|
### ActionScope
|
|
3588
3743
|
|
|
3589
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3744
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L118)
|
|
3590
3745
|
|
|
3591
3746
|
```ts
|
|
3592
3747
|
export interface ActionScope {
|
|
@@ -3597,7 +3752,7 @@ export interface ActionScope {
|
|
|
3597
3752
|
|
|
3598
3753
|
### ComposerViewOptions
|
|
3599
3754
|
|
|
3600
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3755
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L15)
|
|
3601
3756
|
|
|
3602
3757
|
```ts
|
|
3603
3758
|
export interface ComposerViewOptions {
|
|
@@ -3616,7 +3771,7 @@ Referenced public types and APIs: [`ActionResult`](#actionresult).
|
|
|
3616
3771
|
|
|
3617
3772
|
### ComposerViewState
|
|
3618
3773
|
|
|
3619
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3774
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L9)
|
|
3620
3775
|
|
|
3621
3776
|
```ts
|
|
3622
3777
|
export interface ComposerViewState {
|
|
@@ -3643,7 +3798,7 @@ export interface ComposerViewState {
|
|
|
3643
3798
|
|
|
3644
3799
|
### WorkspaceDialogName
|
|
3645
3800
|
|
|
3646
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3801
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L117)
|
|
3647
3802
|
|
|
3648
3803
|
```ts
|
|
3649
3804
|
export type WorkspaceDialogName = 'model' | 'settings' | 'workspace' | 'permissions' | 'delete' | 'rename' | 'queue-edit' | 'message-edit' | 'resources' | 'connections' | 'preview' | 'image';
|
|
@@ -3651,7 +3806,7 @@ export type WorkspaceDialogName = 'model' | 'settings' | 'workspace' | 'permissi
|
|
|
3651
3806
|
|
|
3652
3807
|
### WorkspaceShellOptions
|
|
3653
3808
|
|
|
3654
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3809
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L119)
|
|
3655
3810
|
|
|
3656
3811
|
```ts
|
|
3657
3812
|
export interface WorkspaceShellOptions {
|
|
@@ -3668,7 +3823,7 @@ Referenced public types and APIs: [`ComposerViewOptions`](#composerviewoptions),
|
|
|
3668
3823
|
|
|
3669
3824
|
### WorkspaceShellState
|
|
3670
3825
|
|
|
3671
|
-
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#
|
|
3826
|
+
[Source](https://github.com/minifish-org/pith-ui/blob/main/src/workspace.ts#L120)
|
|
3672
3827
|
|
|
3673
3828
|
```ts
|
|
3674
3829
|
export interface WorkspaceShellState {
|