@pollinations/ui 0.1.0-alpha.4 → 0.1.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -8
- package/dist/{Button-ByKwRtdw.d.cts → Button-Bt_eMnOx.d.ts} +4 -2
- package/dist/app-user-menu/sdk.d.ts +17 -5
- package/dist/app-user-menu/sdk.js +104 -774
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/app.css +21 -0
- package/dist/auth/index.d.ts +12 -5
- package/dist/auth/index.js +170 -1159
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.d.ts +1 -1
- package/dist/auth/sdk.js +9 -205
- package/dist/auth/sdk.js.map +1 -1
- package/dist/brand/badge-made-with.svg +1 -0
- package/dist/brand/polli/polli-lockup-horizontal-black.png +0 -0
- package/dist/brand/polli/polli-lockup-horizontal-white.png +0 -0
- package/dist/brand/polli/polli.png +0 -0
- package/dist/chunk-B7T42IY2.js +255 -0
- package/dist/chunk-B7T42IY2.js.map +1 -0
- package/dist/chunk-DFYLQTCM.js +107 -0
- package/dist/chunk-DFYLQTCM.js.map +1 -0
- package/dist/chunk-EHOK3XKM.js +112 -0
- package/dist/chunk-EHOK3XKM.js.map +1 -0
- package/dist/chunk-FZXMS7HJ.js +93 -0
- package/dist/chunk-FZXMS7HJ.js.map +1 -0
- package/dist/chunk-KLAOGE6Y.js +125 -0
- package/dist/chunk-KLAOGE6Y.js.map +1 -0
- package/dist/chunk-KTGSOTNW.js +534 -0
- package/dist/chunk-KTGSOTNW.js.map +1 -0
- package/dist/chunk-LAZ5O2ZK.js +105 -0
- package/dist/chunk-LAZ5O2ZK.js.map +1 -0
- package/dist/chunk-MS2GGEMU.js +311 -0
- package/dist/chunk-MS2GGEMU.js.map +1 -0
- package/dist/chunk-MU7JQOTF.js +170 -0
- package/dist/chunk-MU7JQOTF.js.map +1 -0
- package/dist/chunk-OWQ2HDQB.js +50 -0
- package/dist/chunk-OWQ2HDQB.js.map +1 -0
- package/dist/chunk-QPNEXTZ5.js +88 -0
- package/dist/chunk-QPNEXTZ5.js.map +1 -0
- package/dist/{app-user-menu/sdk.cjs → chunk-R3RMENGN.js} +114 -773
- package/dist/chunk-R3RMENGN.js.map +1 -0
- package/dist/chunk-WV4XTYMU.js +58 -0
- package/dist/chunk-WV4XTYMU.js.map +1 -0
- package/dist/chunk-WVDV47XQ.js +651 -0
- package/dist/chunk-WVDV47XQ.js.map +1 -0
- package/dist/connect.js +100 -0
- package/dist/connect.js.map +1 -0
- package/dist/gen/index.d.ts +14 -7
- package/dist/gen/index.js +59 -474
- package/dist/gen/index.js.map +1 -1
- package/dist/index-BR4r9rhQ.d.ts +90 -0
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +195 -103
- package/dist/index.js +1051 -2801
- package/dist/index.js.map +1 -1
- package/dist/licenses/Octicons-MIT.txt +21 -0
- package/dist/markdown.d.ts +3 -1
- package/dist/markdown.js +69 -598
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +12 -0
- package/dist/types-CCy9JNu9.d.ts +6 -0
- package/dist/wallet/index.d.ts +20 -1
- package/dist/wallet/index.js +19 -370
- package/dist/wallet/index.js.map +1 -1
- package/package.json +18 -22
- package/dist/Button-ByKwRtdw.d.ts +0 -29
- package/dist/Chip-v-ADv6cz.d.cts +0 -18
- package/dist/Dialog-D3Nqt8cE.d.cts +0 -66
- package/dist/app-user-menu/sdk.cjs.map +0 -1
- package/dist/app-user-menu/sdk.d.cts +0 -33
- package/dist/auth/index.cjs +0 -1512
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -112
- package/dist/auth/sdk.cjs +0 -244
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -40
- package/dist/gen/index.cjs +0 -687
- package/dist/gen/index.cjs.map +0 -1
- package/dist/gen/index.d.cts +0 -84
- package/dist/index.cjs +0 -5183
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -933
- package/dist/markdown.cjs +0 -826
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.d.cts +0 -16
- package/dist/wallet/index.cjs +0 -429
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -53
package/dist/gen/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import {
|
|
2
|
+
import { ReactNode, ComponentType, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { ModelCategory, ModelInfo } from '@pollinations/sdk';
|
|
4
|
+
import { I as IconProps } from '../types-CCy9JNu9.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* A `Chip` colored as a model modality: faint modality background + a readable
|
|
@@ -35,18 +36,24 @@ type ModalityTabOwnProps = {
|
|
|
35
36
|
size?: "sm" | "md" | "lg";
|
|
36
37
|
disabled?: boolean;
|
|
37
38
|
className?: string;
|
|
39
|
+
/** Leading icon, drawn before the label. */
|
|
40
|
+
icon?: ComponentType<IconProps>;
|
|
41
|
+
/** Tints the icon of an idle, unhovered tab in this modality's colour. */
|
|
42
|
+
modality?: ModelCategory;
|
|
38
43
|
};
|
|
39
44
|
/**
|
|
40
|
-
* A model-filter tab.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* `bg-subtle`, and hover darkens to `bg-hover` like any button.
|
|
45
|
+
* A model-filter tab. Borderless — it renders the app's `soft` TabButton, so
|
|
46
|
+
* it uses exactly the same tokens as the dashboard tabs: selected is
|
|
47
|
+
* `bg-active` (the resting button fill, no hover), idle is the quiet
|
|
48
|
+
* `bg-subtle`, and hover darkens to `bg-hover` like any button. With
|
|
49
|
+
* `modality`, only an idle tab's icon carries the modality colour; selection
|
|
50
|
+
* and hover stay monochrome, so amber remains the only selection signal.
|
|
44
51
|
*
|
|
45
52
|
* Rest props (including a runtime-injected ref) pass through to the button —
|
|
46
53
|
* required when the tab is a popover trigger, where the positioner's anchor
|
|
47
54
|
* ref arrives via asChild and a closed prop set would silently drop it.
|
|
48
55
|
*/
|
|
49
|
-
declare function ModalityTab({ active, onClick, children, size, disabled, className, ...rest }: ModalityTabOwnProps & Omit<ComponentPropsWithoutRef<"button">, keyof ModalityTabOwnProps>): react_jsx_runtime.JSX.Element;
|
|
56
|
+
declare function ModalityTab({ active, onClick, children, size, disabled, className, icon: Icon, modality, ...rest }: ModalityTabOwnProps & Omit<ComponentPropsWithoutRef<"button">, keyof ModalityTabOwnProps>): react_jsx_runtime.JSX.Element;
|
|
50
57
|
|
|
51
58
|
type ModelAccessIconProps = {
|
|
52
59
|
paidOnly?: boolean;
|