@pollinations/ui 0.1.0-alpha.3 → 0.1.0-alpha.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/README.md +21 -10
- package/dist/{Button-CO3Dpbkj.d.cts → Button-ByKwRtdw.d.cts} +1 -1
- package/dist/{Button-CO3Dpbkj.d.ts → Button-ByKwRtdw.d.ts} +1 -1
- package/dist/{Dialog-yXzIFrDg.d.cts → Dialog-D3Nqt8cE.d.cts} +4 -1
- package/dist/{Dialog-yXzIFrDg.d.ts → Dialog-D3Nqt8cE.d.ts} +4 -1
- package/dist/app-user-menu/sdk.cjs +193 -133
- package/dist/app-user-menu/sdk.cjs.map +1 -1
- package/dist/app-user-menu/sdk.d.cts +17 -1
- package/dist/app-user-menu/sdk.d.ts +17 -1
- package/dist/app-user-menu/sdk.js +182 -122
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/app.css +6 -0
- package/dist/auth/index.cjs +233 -223
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +6 -3
- package/dist/auth/index.d.ts +6 -3
- package/dist/auth/index.js +226 -216
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.cjs +13 -8
- package/dist/auth/sdk.cjs.map +1 -1
- package/dist/auth/sdk.d.cts +1 -1
- package/dist/auth/sdk.d.ts +1 -1
- package/dist/auth/sdk.js +13 -8
- package/dist/auth/sdk.js.map +1 -1
- package/dist/brand/lockup-horizontal-black.png +0 -0
- package/dist/brand/lockup-horizontal-black.svg +3 -3
- package/dist/brand/lockup-horizontal-white.png +0 -0
- package/dist/brand/lockup-horizontal-white.svg +3 -3
- package/dist/brand/lockup-horizontal.svg +4 -1
- package/dist/brand/lockup-stacked-black.png +0 -0
- package/dist/brand/lockup-stacked-black.svg +1 -1
- package/dist/brand/lockup-stacked-white.png +0 -0
- package/dist/brand/lockup-stacked-white.svg +1 -1
- package/dist/brand/lockup-stacked.svg +1 -1
- package/dist/brand/mark-black.png +0 -0
- package/dist/brand/mark-black.svg +1 -3
- package/dist/brand/mark-white.png +0 -0
- package/dist/brand/mark-white.svg +1 -3
- package/dist/brand/mark.svg +1 -1
- package/dist/gen/index.cjs +47 -18
- package/dist/gen/index.cjs.map +1 -1
- package/dist/gen/index.d.cts +5 -1
- package/dist/gen/index.d.ts +5 -1
- package/dist/gen/index.js +57 -30
- package/dist/gen/index.js.map +1 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +1032 -816
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -27
- package/dist/index.d.ts +73 -27
- package/dist/index.js +1052 -841
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +13 -8
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.js +13 -8
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +3 -8
- package/dist/wallet/index.cjs +45 -31
- package/dist/wallet/index.cjs.map +1 -1
- package/dist/wallet/index.d.cts +1 -0
- package/dist/wallet/index.d.ts +1 -0
- package/dist/wallet/index.js +45 -31
- package/dist/wallet/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -130,16 +130,27 @@ Wallet colors and utilities are bundled into the main stylesheet
|
|
|
130
130
|
|
|
131
131
|
## Dialog layout
|
|
132
132
|
|
|
133
|
-
`Dialog`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
`Dialog` keeps rounded corners at every width. Below 480px it spans the phone
|
|
134
|
+
width with an 8px vertical gap; larger viewports have a 16px outer inset and use
|
|
135
|
+
the `size` width limit. Height follows the content, capped by the available
|
|
136
|
+
viewport. Confirmations and completed results follow the same phone-width rule.
|
|
137
|
+
|
|
138
|
+
Use `DialogHeader`, `DialogBody` (scrolling content), and `DialogFooter` for
|
|
139
|
+
consistent spacing and actions. The frame uses Enter's themed panel color;
|
|
140
|
+
inner cards use the neutral `Surface` default. `AuthModal` uses the same frame
|
|
141
|
+
for standalone pages. Content such as document previews can request a height,
|
|
142
|
+
which remains capped by the shared frame.
|
|
143
|
+
|
|
144
|
+
Enter's `ResourceDialog` keeps expandable forms top-aligned at every width;
|
|
145
|
+
completed results use the centered `Dialog`. Both inherit the same viewport sizing.
|
|
146
|
+
|
|
147
|
+
Actions that write server data use a bordered button (`intent="commit"`).
|
|
148
|
+
Navigation and export actions, including device Continue and Copy and close,
|
|
149
|
+
use the default filled style. Sign-in uses `intent="brand"`; destructive
|
|
150
|
+
confirmations use `intent="danger"`. Cancel/Decline/Close actions use the muted,
|
|
151
|
+
borderless `intent="neutral"` style.
|
|
152
|
+
Saved-card checkout preserves its dedicated footer: full-width Confirm with
|
|
153
|
+
Cancel and the alternative payment-method link on the line below.
|
|
143
154
|
|
|
144
155
|
## What's exported
|
|
145
156
|
|
|
@@ -9,7 +9,7 @@ declare const pillSizes: {
|
|
|
9
9
|
readonly xs: "polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none";
|
|
10
10
|
readonly sm: "polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1";
|
|
11
11
|
readonly md: "polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2";
|
|
12
|
-
readonly lg: "polli:min-h-12 polli:px-6 polli:py-3";
|
|
12
|
+
readonly lg: "polli:min-h-12 polli:px-6 polli:py-3 polli:text-base";
|
|
13
13
|
};
|
|
14
14
|
type BaseButtonProps = {
|
|
15
15
|
icon?: ReactNode;
|
|
@@ -9,7 +9,7 @@ declare const pillSizes: {
|
|
|
9
9
|
readonly xs: "polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none";
|
|
10
10
|
readonly sm: "polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1";
|
|
11
11
|
readonly md: "polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2";
|
|
12
|
-
readonly lg: "polli:min-h-12 polli:px-6 polli:py-3";
|
|
12
|
+
readonly lg: "polli:min-h-12 polli:px-6 polli:py-3 polli:text-base";
|
|
13
13
|
};
|
|
14
14
|
type BaseButtonProps = {
|
|
15
15
|
icon?: ReactNode;
|
|
@@ -56,7 +56,10 @@ type DialogBodyProps = ScrollAreaProps & {
|
|
|
56
56
|
footnote?: ReactNode;
|
|
57
57
|
bodyClassName?: string;
|
|
58
58
|
};
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Scroll area whose actions follow the content and stay pinned to the bottom
|
|
61
|
+
* once the content scrolls, so a short screen never opens a gap above them.
|
|
62
|
+
*/
|
|
60
63
|
declare function DialogBody({ children, actions, footnote, bodyClassName, className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
|
|
61
64
|
declare const DialogFooter: FC<DialogFooterProps>;
|
|
62
65
|
|
|
@@ -56,7 +56,10 @@ type DialogBodyProps = ScrollAreaProps & {
|
|
|
56
56
|
footnote?: ReactNode;
|
|
57
57
|
bodyClassName?: string;
|
|
58
58
|
};
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Scroll area whose actions follow the content and stay pinned to the bottom
|
|
61
|
+
* once the content scrolls, so a short screen never opens a gap above them.
|
|
62
|
+
*/
|
|
60
63
|
declare function DialogBody({ children, actions, footnote, bodyClassName, className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
|
|
61
64
|
declare const DialogFooter: FC<DialogFooterProps>;
|
|
62
65
|
|