@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.
Files changed (66) hide show
  1. package/README.md +21 -10
  2. package/dist/{Button-CO3Dpbkj.d.cts → Button-ByKwRtdw.d.cts} +1 -1
  3. package/dist/{Button-CO3Dpbkj.d.ts → Button-ByKwRtdw.d.ts} +1 -1
  4. package/dist/{Dialog-yXzIFrDg.d.cts → Dialog-D3Nqt8cE.d.cts} +4 -1
  5. package/dist/{Dialog-yXzIFrDg.d.ts → Dialog-D3Nqt8cE.d.ts} +4 -1
  6. package/dist/app-user-menu/sdk.cjs +193 -133
  7. package/dist/app-user-menu/sdk.cjs.map +1 -1
  8. package/dist/app-user-menu/sdk.d.cts +17 -1
  9. package/dist/app-user-menu/sdk.d.ts +17 -1
  10. package/dist/app-user-menu/sdk.js +182 -122
  11. package/dist/app-user-menu/sdk.js.map +1 -1
  12. package/dist/app.css +6 -0
  13. package/dist/auth/index.cjs +233 -223
  14. package/dist/auth/index.cjs.map +1 -1
  15. package/dist/auth/index.d.cts +6 -3
  16. package/dist/auth/index.d.ts +6 -3
  17. package/dist/auth/index.js +226 -216
  18. package/dist/auth/index.js.map +1 -1
  19. package/dist/auth/sdk.cjs +13 -8
  20. package/dist/auth/sdk.cjs.map +1 -1
  21. package/dist/auth/sdk.d.cts +1 -1
  22. package/dist/auth/sdk.d.ts +1 -1
  23. package/dist/auth/sdk.js +13 -8
  24. package/dist/auth/sdk.js.map +1 -1
  25. package/dist/brand/lockup-horizontal-black.png +0 -0
  26. package/dist/brand/lockup-horizontal-black.svg +3 -3
  27. package/dist/brand/lockup-horizontal-white.png +0 -0
  28. package/dist/brand/lockup-horizontal-white.svg +3 -3
  29. package/dist/brand/lockup-horizontal.svg +4 -1
  30. package/dist/brand/lockup-stacked-black.png +0 -0
  31. package/dist/brand/lockup-stacked-black.svg +1 -1
  32. package/dist/brand/lockup-stacked-white.png +0 -0
  33. package/dist/brand/lockup-stacked-white.svg +1 -1
  34. package/dist/brand/lockup-stacked.svg +1 -1
  35. package/dist/brand/mark-black.png +0 -0
  36. package/dist/brand/mark-black.svg +1 -3
  37. package/dist/brand/mark-white.png +0 -0
  38. package/dist/brand/mark-white.svg +1 -3
  39. package/dist/brand/mark.svg +1 -1
  40. package/dist/gen/index.cjs +47 -18
  41. package/dist/gen/index.cjs.map +1 -1
  42. package/dist/gen/index.d.cts +5 -1
  43. package/dist/gen/index.d.ts +5 -1
  44. package/dist/gen/index.js +57 -30
  45. package/dist/gen/index.js.map +1 -1
  46. package/dist/index.browser.min.js +1 -1
  47. package/dist/index.browser.min.js.map +1 -1
  48. package/dist/index.cjs +1032 -816
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +73 -27
  51. package/dist/index.d.ts +73 -27
  52. package/dist/index.js +1052 -841
  53. package/dist/index.js.map +1 -1
  54. package/dist/markdown.cjs +13 -8
  55. package/dist/markdown.cjs.map +1 -1
  56. package/dist/markdown.js +13 -8
  57. package/dist/markdown.js.map +1 -1
  58. package/dist/styles.css +1 -1
  59. package/dist/theme.css +3 -8
  60. package/dist/wallet/index.cjs +45 -31
  61. package/dist/wallet/index.cjs.map +1 -1
  62. package/dist/wallet/index.d.cts +1 -0
  63. package/dist/wallet/index.d.ts +1 -0
  64. package/dist/wallet/index.js +45 -31
  65. package/dist/wallet/index.js.map +1 -1
  66. 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` uses one responsive frame for forms, confirmations, and results:
134
- full viewport without a border below 640px, contained with rounded corners on
135
- larger screens. `size` controls desktop width only. Use `DialogHeader`, `DialogBody` (scrolling content), and `DialogFooter`
136
- for consistent spacing and actions; avoid overriding viewport dimensions
137
- in consumers. The frame uses Enter’s themed panel color; inset cards use the
138
- neutral `Surface` default. `AuthModal` uses the same frame for standalone pages.
139
-
140
- Enter's `ResourceDialog` keeps dashboard forms and confirmations contained on
141
- mobile too, with viewport margins and scrollable content. Keep that exception
142
- in the shared dashboard wrapper rather than repeating dimensions in consumers.
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
- /** Full-height scroll area with floating actions and an optional bottom link. */
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
- /** Full-height scroll area with floating actions and an optional bottom link. */
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