@pollinations/ui 0.0.1 → 0.0.2

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 (48) hide show
  1. package/README.md +15 -10
  2. package/dist/{Button-DMJ2K6Gr.d.ts → Button-Bn8pGg6N.d.ts} +1 -1
  3. package/dist/{Button-CNzpisJf.d.cts → Button-CWUBCiIc.d.cts} +1 -1
  4. package/dist/{Chip-BS8ronOu.d.ts → Chip-C5impfYd.d.ts} +2 -2
  5. package/dist/{Chip-DyqWrq0r.d.cts → Chip-SM52sUbZ.d.cts} +2 -2
  6. package/dist/app.css +1 -1
  7. package/dist/auth/index.cjs +1 -9
  8. package/dist/auth/index.cjs.map +1 -1
  9. package/dist/auth/index.d.cts +1 -2
  10. package/dist/auth/index.d.ts +1 -2
  11. package/dist/auth/index.js +1 -9
  12. package/dist/auth/index.js.map +1 -1
  13. package/dist/auth/sdk.d.cts +2 -2
  14. package/dist/auth/sdk.d.ts +2 -2
  15. package/dist/index.cjs +354 -177
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +47 -9
  18. package/dist/index.d.ts +47 -9
  19. package/dist/index.js +346 -176
  20. package/dist/index.js.map +1 -1
  21. package/dist/modality/index.cjs +6 -38
  22. package/dist/modality/index.cjs.map +1 -1
  23. package/dist/modality/index.d.cts +7 -27
  24. package/dist/modality/index.d.ts +7 -27
  25. package/dist/modality/index.js +6 -37
  26. package/dist/modality/index.js.map +1 -1
  27. package/dist/styles.css +1 -1
  28. package/dist/theme-VMRlhqST.d.cts +9 -0
  29. package/dist/theme-VMRlhqST.d.ts +9 -0
  30. package/dist/wallet/index.cjs +4 -1
  31. package/dist/wallet/index.cjs.map +1 -1
  32. package/dist/wallet/index.d.cts +2 -2
  33. package/dist/wallet/index.d.ts +2 -2
  34. package/dist/wallet/index.js +4 -1
  35. package/dist/wallet/index.js.map +1 -1
  36. package/dist/wallet/sdk.cjs +4 -1
  37. package/dist/wallet/sdk.cjs.map +1 -1
  38. package/dist/wallet/sdk.js +4 -1
  39. package/dist/wallet/sdk.js.map +1 -1
  40. package/package.json +3 -8
  41. package/dist/showcase/index.cjs +0 -2851
  42. package/dist/showcase/index.cjs.map +0 -1
  43. package/dist/showcase/index.d.cts +0 -19
  44. package/dist/showcase/index.d.ts +0 -19
  45. package/dist/showcase/index.js +0 -2839
  46. package/dist/showcase/index.js.map +0 -1
  47. package/dist/theme-DfHMjWB7.d.cts +0 -16
  48. package/dist/theme-DfHMjWB7.d.ts +0 -16
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- export { B as Button, a as ButtonProps } from './Button-CNzpisJf.cjs';
2
1
  import * as react from 'react';
3
- import { FC, ReactNode, ButtonHTMLAttributes, ComponentPropsWithoutRef, PropsWithChildren, CSSProperties } from 'react';
4
- export { C as Chip } from './Chip-DyqWrq0r.cjs';
2
+ import { FC, ComponentPropsWithoutRef, ReactNode, ButtonHTMLAttributes, PropsWithChildren, CSSProperties } from 'react';
3
+ export { B as Button, a as ButtonProps } from './Button-CWUBCiIc.cjs';
4
+ export { C as Chip } from './Chip-SM52sUbZ.cjs';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Dialog as Dialog$1 } from '@ark-ui/react/dialog';
7
- import { T as ThemeName } from './theme-DfHMjWB7.cjs';
8
- export { t as themeColors, a as themes } from './theme-DfHMjWB7.cjs';
7
+ import { T as ThemeName } from './theme-VMRlhqST.cjs';
8
+ export { t as themes } from './theme-VMRlhqST.cjs';
9
9
  export { Field } from '@ark-ui/react/field';
10
10
 
11
11
  /** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
@@ -26,6 +26,18 @@ declare function periodBucketKeyToDate(bucketKey: string, granularity: PeriodGra
26
26
  */
27
27
  declare function useScrollLock(enabled?: boolean): void;
28
28
 
29
+ type AlertIntent = "info" | "success" | "warning" | "danger";
30
+ type AlertProps = ComponentPropsWithoutRef<"div"> & {
31
+ intent?: AlertIntent;
32
+ title?: ReactNode;
33
+ };
34
+ declare const Alert: FC<AlertProps>;
35
+
36
+ type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & {
37
+ wrap?: boolean;
38
+ };
39
+ declare const ButtonGroup: FC<ButtonGroupProps>;
40
+
29
41
  type ChevronIconProps = {
30
42
  /** Rotate 180° when expanded/open. */
31
43
  expanded?: boolean;
@@ -218,14 +230,12 @@ type PeriodPickerProps = {
218
230
  };
219
231
  declare const PeriodPicker: FC<PeriodPickerProps>;
220
232
 
221
- type ScrollAxis = "y" | "x" | "both";
233
+ type ScrollAxis = "y" | "x";
222
234
  type ScrollAreaOwnProps = {
223
235
  /** Override the ambient cascade theme for this scroller's thumb. */
224
236
  theme?: ThemeName;
225
237
  /** Scroll direction. Default `y`. */
226
238
  axis?: ScrollAxis;
227
- /** Idle time before the thumb fades out, in ms. Default `2000`. */
228
- hideDelayMs?: number;
229
239
  className?: string;
230
240
  };
231
241
  type ScrollAreaProps = PropsWithChildren<ScrollAreaOwnProps & Omit<ComponentPropsWithoutRef<"div">, keyof ScrollAreaOwnProps>>;
@@ -320,6 +330,34 @@ type TabButtonProps = {
320
330
  };
321
331
  declare const TabButton: FC<TabButtonProps>;
322
332
 
333
+ type Align = "left" | "center" | "right";
334
+ type RowIntent = "default" | "success" | "warning" | "danger";
335
+ type SortDirection = "asc" | "desc";
336
+ type TableProps = ComponentPropsWithoutRef<"table">;
337
+ declare const Table: FC<TableProps>;
338
+ type TableHeadProps = ComponentPropsWithoutRef<"thead">;
339
+ declare const TableHead: FC<TableHeadProps>;
340
+ type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
341
+ declare const TableBody: FC<TableBodyProps>;
342
+ type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
343
+ intent?: RowIntent;
344
+ };
345
+ declare const TableRow: FC<TableRowProps>;
346
+ type TableHeaderCellProps = Omit<ComponentPropsWithoutRef<"th">, "children"> & {
347
+ align?: Align;
348
+ active?: boolean;
349
+ sortDirection?: SortDirection;
350
+ onSort?: () => void;
351
+ children: ReactNode;
352
+ };
353
+ declare const TableHeaderCell: FC<TableHeaderCellProps>;
354
+ type TableCellProps = ComponentPropsWithoutRef<"td"> & {
355
+ align?: Align;
356
+ numeric?: boolean;
357
+ muted?: boolean;
358
+ };
359
+ declare const TableCell: FC<TableCellProps>;
360
+
323
361
  type TooltipProps = {
324
362
  children: ReactNode;
325
363
  content: ReactNode;
@@ -337,4 +375,4 @@ type TooltipProps = {
337
375
  };
338
376
  declare const Tooltip: FC<TooltipProps>;
339
377
 
340
- export { AppIcon, BeakerIcon, BookIcon, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, Collapsible, type CollapsibleProps, CopyButton, type CopyButtonProps, Dialog, type DialogProps, DialogTitle, DiscordIcon, DownloadIcon, Dropdown, type DropdownProps, ExternalLinkButton, type ExternalLinkButtonProps, ExternalLinkIcon, GenApiIcon, GitHubIcon, IconButton, type IconProps, ImageIcon, InfoTip, Input, type InputProps, LockIcon, MailIcon, McpIcon, MenuIcon, MultiSelect, type MultiSelectProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollArea, type ScrollAreaProps, Section, type SectionProps, Slider, type SliderProps, StatCard, type StatCardProps, Surface, Switch, type SwitchProps, type SwitchStatus, TabButton, type TabButtonProps, TerminalIcon, ThemeName, TokensIcon, Tooltip, TrendUpIcon, WalletIcon, XIcon, cn, currentPeriod, getPeriodBucketKeys, periodBucketKeyToDate, useScrollLock };
378
+ export { Alert, type AlertProps, AppIcon, BeakerIcon, BookIcon, ButtonGroup, type ButtonGroupProps, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, Collapsible, type CollapsibleProps, CopyButton, type CopyButtonProps, Dialog, type DialogProps, DialogTitle, DiscordIcon, DownloadIcon, Dropdown, type DropdownProps, ExternalLinkButton, type ExternalLinkButtonProps, ExternalLinkIcon, GenApiIcon, GitHubIcon, IconButton, type IconProps, ImageIcon, InfoTip, Input, type InputProps, LockIcon, MailIcon, McpIcon, MenuIcon, MultiSelect, type MultiSelectProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollArea, type ScrollAreaProps, Section, type SectionProps, Slider, type SliderProps, StatCard, type StatCardProps, Surface, Switch, type SwitchProps, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, TerminalIcon, ThemeName, TokensIcon, Tooltip, TrendUpIcon, WalletIcon, XIcon, cn, currentPeriod, getPeriodBucketKeys, periodBucketKeyToDate, useScrollLock };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export { B as Button, a as ButtonProps } from './Button-DMJ2K6Gr.js';
2
1
  import * as react from 'react';
3
- import { FC, ReactNode, ButtonHTMLAttributes, ComponentPropsWithoutRef, PropsWithChildren, CSSProperties } from 'react';
4
- export { C as Chip } from './Chip-BS8ronOu.js';
2
+ import { FC, ComponentPropsWithoutRef, ReactNode, ButtonHTMLAttributes, PropsWithChildren, CSSProperties } from 'react';
3
+ export { B as Button, a as ButtonProps } from './Button-Bn8pGg6N.js';
4
+ export { C as Chip } from './Chip-C5impfYd.js';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Dialog as Dialog$1 } from '@ark-ui/react/dialog';
7
- import { T as ThemeName } from './theme-DfHMjWB7.js';
8
- export { t as themeColors, a as themes } from './theme-DfHMjWB7.js';
7
+ import { T as ThemeName } from './theme-VMRlhqST.js';
8
+ export { t as themes } from './theme-VMRlhqST.js';
9
9
  export { Field } from '@ark-ui/react/field';
10
10
 
11
11
  /** Class merge for apps consuming the unprefixed Tailwind bridge in app.css. */
@@ -26,6 +26,18 @@ declare function periodBucketKeyToDate(bucketKey: string, granularity: PeriodGra
26
26
  */
27
27
  declare function useScrollLock(enabled?: boolean): void;
28
28
 
29
+ type AlertIntent = "info" | "success" | "warning" | "danger";
30
+ type AlertProps = ComponentPropsWithoutRef<"div"> & {
31
+ intent?: AlertIntent;
32
+ title?: ReactNode;
33
+ };
34
+ declare const Alert: FC<AlertProps>;
35
+
36
+ type ButtonGroupProps = ComponentPropsWithoutRef<"div"> & {
37
+ wrap?: boolean;
38
+ };
39
+ declare const ButtonGroup: FC<ButtonGroupProps>;
40
+
29
41
  type ChevronIconProps = {
30
42
  /** Rotate 180° when expanded/open. */
31
43
  expanded?: boolean;
@@ -218,14 +230,12 @@ type PeriodPickerProps = {
218
230
  };
219
231
  declare const PeriodPicker: FC<PeriodPickerProps>;
220
232
 
221
- type ScrollAxis = "y" | "x" | "both";
233
+ type ScrollAxis = "y" | "x";
222
234
  type ScrollAreaOwnProps = {
223
235
  /** Override the ambient cascade theme for this scroller's thumb. */
224
236
  theme?: ThemeName;
225
237
  /** Scroll direction. Default `y`. */
226
238
  axis?: ScrollAxis;
227
- /** Idle time before the thumb fades out, in ms. Default `2000`. */
228
- hideDelayMs?: number;
229
239
  className?: string;
230
240
  };
231
241
  type ScrollAreaProps = PropsWithChildren<ScrollAreaOwnProps & Omit<ComponentPropsWithoutRef<"div">, keyof ScrollAreaOwnProps>>;
@@ -320,6 +330,34 @@ type TabButtonProps = {
320
330
  };
321
331
  declare const TabButton: FC<TabButtonProps>;
322
332
 
333
+ type Align = "left" | "center" | "right";
334
+ type RowIntent = "default" | "success" | "warning" | "danger";
335
+ type SortDirection = "asc" | "desc";
336
+ type TableProps = ComponentPropsWithoutRef<"table">;
337
+ declare const Table: FC<TableProps>;
338
+ type TableHeadProps = ComponentPropsWithoutRef<"thead">;
339
+ declare const TableHead: FC<TableHeadProps>;
340
+ type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
341
+ declare const TableBody: FC<TableBodyProps>;
342
+ type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
343
+ intent?: RowIntent;
344
+ };
345
+ declare const TableRow: FC<TableRowProps>;
346
+ type TableHeaderCellProps = Omit<ComponentPropsWithoutRef<"th">, "children"> & {
347
+ align?: Align;
348
+ active?: boolean;
349
+ sortDirection?: SortDirection;
350
+ onSort?: () => void;
351
+ children: ReactNode;
352
+ };
353
+ declare const TableHeaderCell: FC<TableHeaderCellProps>;
354
+ type TableCellProps = ComponentPropsWithoutRef<"td"> & {
355
+ align?: Align;
356
+ numeric?: boolean;
357
+ muted?: boolean;
358
+ };
359
+ declare const TableCell: FC<TableCellProps>;
360
+
323
361
  type TooltipProps = {
324
362
  children: ReactNode;
325
363
  content: ReactNode;
@@ -337,4 +375,4 @@ type TooltipProps = {
337
375
  };
338
376
  declare const Tooltip: FC<TooltipProps>;
339
377
 
340
- export { AppIcon, BeakerIcon, BookIcon, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, Collapsible, type CollapsibleProps, CopyButton, type CopyButtonProps, Dialog, type DialogProps, DialogTitle, DiscordIcon, DownloadIcon, Dropdown, type DropdownProps, ExternalLinkButton, type ExternalLinkButtonProps, ExternalLinkIcon, GenApiIcon, GitHubIcon, IconButton, type IconProps, ImageIcon, InfoTip, Input, type InputProps, LockIcon, MailIcon, McpIcon, MenuIcon, MultiSelect, type MultiSelectProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollArea, type ScrollAreaProps, Section, type SectionProps, Slider, type SliderProps, StatCard, type StatCardProps, Surface, Switch, type SwitchProps, type SwitchStatus, TabButton, type TabButtonProps, TerminalIcon, ThemeName, TokensIcon, Tooltip, TrendUpIcon, WalletIcon, XIcon, cn, currentPeriod, getPeriodBucketKeys, periodBucketKeyToDate, useScrollLock };
378
+ export { Alert, type AlertProps, AppIcon, BeakerIcon, BookIcon, ButtonGroup, type ButtonGroupProps, CheckIcon, ChevronIcon, ClipboardIcon, ClockIcon, Collapsible, type CollapsibleProps, CopyButton, type CopyButtonProps, Dialog, type DialogProps, DialogTitle, DiscordIcon, DownloadIcon, Dropdown, type DropdownProps, ExternalLinkButton, type ExternalLinkButtonProps, ExternalLinkIcon, GenApiIcon, GitHubIcon, IconButton, type IconProps, ImageIcon, InfoTip, Input, type InputProps, LockIcon, MailIcon, McpIcon, MenuIcon, MultiSelect, type MultiSelectProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollArea, type ScrollAreaProps, Section, type SectionProps, Slider, type SliderProps, StatCard, type StatCardProps, Surface, Switch, type SwitchProps, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, TerminalIcon, ThemeName, TokensIcon, Tooltip, TrendUpIcon, WalletIcon, XIcon, cn, currentPeriod, getPeriodBucketKeys, periodBucketKeyToDate, useScrollLock };