@pollinations/ui 0.1.0-alpha.22 → 0.1.0-alpha.24
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/dist/app-user-menu/sdk.d.ts +1 -1
- package/dist/app-user-menu/sdk.js +4 -4
- package/dist/auth/index.js +4 -4
- package/dist/{chunk-SJK5B7LK.js → chunk-2IIX44MN.js} +2 -2
- package/dist/{chunk-6JHDHH4B.js → chunk-7NTX3FPZ.js} +13 -2
- package/dist/{chunk-6JHDHH4B.js.map → chunk-7NTX3FPZ.js.map} +1 -1
- package/dist/{chunk-MLSAAT6D.js → chunk-FRHLA7LM.js} +2 -2
- package/dist/{chunk-E4CIH2Z7.js → chunk-KXWBNF64.js} +3 -3
- package/dist/{chunk-5SPNBGNW.js → chunk-LKOYOXBG.js} +2 -2
- package/dist/{chunk-COG4IB62.js → chunk-LRXUPEQM.js} +2 -2
- package/dist/connect.js.map +1 -1
- package/dist/gen/index.js +2 -1
- package/dist/gen/index.js.map +1 -1
- package/dist/{index-cN1wvU_m.d.ts → index-efnABLqH.d.ts} +3 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +24 -6
- package/dist/index.js +66 -31
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/wallet/index.js +3 -3
- package/package.json +5 -5
- /package/dist/{chunk-SJK5B7LK.js.map → chunk-2IIX44MN.js.map} +0 -0
- /package/dist/{chunk-MLSAAT6D.js.map → chunk-FRHLA7LM.js.map} +0 -0
- /package/dist/{chunk-E4CIH2Z7.js.map → chunk-KXWBNF64.js.map} +0 -0
- /package/dist/{chunk-5SPNBGNW.js.map → chunk-LKOYOXBG.js.map} +0 -0
- /package/dist/{chunk-COG4IB62.js.map → chunk-LRXUPEQM.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { S as ScrollAreaProps, D as DialogProps } from './Dialog-D3Nqt8cE.js';
|
|
|
5
5
|
export { a as Dialog, b as DialogBody, c as DialogBodyProps, d as DialogDescription, e as DialogFooter, f as DialogFooterProps, g as DialogHeader, h as DialogHeaderProps, i as DialogTitle, j as ScrollArea } from './Dialog-D3Nqt8cE.js';
|
|
6
6
|
import { B as ButtonProps, a as ButtonAppearance } from './Button-BGqClaBr.js';
|
|
7
7
|
export { b as Button } from './Button-BGqClaBr.js';
|
|
8
|
-
import { D as DiscordIcon, G as GitHubIcon } from './index-
|
|
9
|
-
export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitPullRequestIcon, x as GlobeIcon, y as GoogleIcon, z as GraduationCapIcon, I as ImageIcon, F as InstagramIcon, K as KeyIcon, L as LinkedInIcon, H as LockIcon, J as LogInIcon, M as LogOutIcon, N as MailIcon, O as McpIcon, P as MegaphoneIcon, Q as MenuIcon, R as MicIcon, S as MoonIcon, T as NewspaperIcon, U as PauseIcon, V as PencilIcon, W as PlayIcon, X as PlusIcon, Y as PowerIcon, Z as
|
|
8
|
+
import { D as DiscordIcon, G as GitHubIcon } from './index-efnABLqH.js';
|
|
9
|
+
export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitPullRequestIcon, x as GlobeIcon, y as GoogleIcon, z as GraduationCapIcon, I as ImageIcon, F as InstagramIcon, K as KeyIcon, L as LinkedInIcon, H as LockIcon, J as LogInIcon, M as LogOutIcon, N as MailIcon, O as McpIcon, P as MegaphoneIcon, Q as MenuIcon, R as MicIcon, S as MoonIcon, T as NewspaperIcon, U as PauseIcon, V as PencilIcon, W as PlayIcon, X as PlusIcon, Y as PowerIcon, Z as PulseIcon, _ as ReasoningIcon, $ as ReceiptIcon, a0 as RefreshIcon, a1 as RobotIcon, a2 as RocketIcon, a3 as SearchIcon, a4 as ShieldCheckIcon, a5 as SignOutIcon, a6 as SparkleIcon, a7 as SparklesIcon, a8 as SpeakerIcon, a9 as SproutIcon, aa as StarIcon, ab as SunIcon, ac as TargetIcon, ad as TerminalIcon, ae as TokensIcon, af as ToolIcon, ag as TrashIcon, ah as TrendUpIcon, ai as UsageIcon, aj as VideoIcon, ak as WalletIcon, al as WarningIcon, am as XIcon, an as XSocialIcon } from './index-efnABLqH.js';
|
|
10
10
|
export { C as Chip } from './Chip-v-ADv6cz.js';
|
|
11
11
|
export { Field } from '@ark-ui/react/field';
|
|
12
12
|
import { I as IconProps } from './types-CCy9JNu9.js';
|
|
@@ -756,6 +756,26 @@ declare function LoadingStatus({ children }: {
|
|
|
756
756
|
children: ReactNode;
|
|
757
757
|
}): react_jsx_runtime.JSX.Element;
|
|
758
758
|
|
|
759
|
+
type SegmentedControlOption<T extends string> = {
|
|
760
|
+
value: T;
|
|
761
|
+
label: ReactNode;
|
|
762
|
+
};
|
|
763
|
+
type SegmentedControlProps<T extends string> = {
|
|
764
|
+
options: readonly SegmentedControlOption<T>[];
|
|
765
|
+
value: T;
|
|
766
|
+
onChange: (value: T) => void;
|
|
767
|
+
/** Names the group for assistive tech; nothing is rendered visibly. */
|
|
768
|
+
ariaLabel: string;
|
|
769
|
+
className?: string;
|
|
770
|
+
};
|
|
771
|
+
/**
|
|
772
|
+
* One pill track holding mutually exclusive values, like the light/dark
|
|
773
|
+
* toggle: the chosen segment is filled, the others sit on the track. A value
|
|
774
|
+
* selector, so the choice shows by fill only — no border or ring, apart from
|
|
775
|
+
* the keyboard focus ring. Same height as a small TabButton.
|
|
776
|
+
*/
|
|
777
|
+
declare function SegmentedControl<T extends string>({ options, value, onChange, ariaLabel, className, }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
|
|
778
|
+
|
|
759
779
|
declare const shapeClasses: {
|
|
760
780
|
readonly card: "polli:rounded-card";
|
|
761
781
|
readonly text: "polli:rounded-md";
|
|
@@ -888,9 +908,7 @@ type TableProps = ComponentPropsWithoutRef<"table">;
|
|
|
888
908
|
declare const Table: FC<TableProps>;
|
|
889
909
|
type TableHeadProps = ComponentPropsWithoutRef<"thead">;
|
|
890
910
|
declare const TableHead: FC<TableHeadProps>;
|
|
891
|
-
type TableBodyProps = ComponentPropsWithoutRef<"tbody"
|
|
892
|
-
divider?: "themed" | "neutral";
|
|
893
|
-
};
|
|
911
|
+
type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
|
|
894
912
|
declare const TableBody: FC<TableBodyProps>;
|
|
895
913
|
type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
|
|
896
914
|
intent?: RowIntent;
|
|
@@ -971,4 +989,4 @@ type TextOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
|
971
989
|
type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
|
|
972
990
|
declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
973
991
|
|
|
974
|
-
export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useScrollLock };
|
|
992
|
+
export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useScrollLock };
|
package/dist/index.js
CHANGED
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
Switch,
|
|
13
13
|
setColorMode,
|
|
14
14
|
useColorMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRHLA7LM.js";
|
|
16
16
|
import {
|
|
17
17
|
AccountIdentity,
|
|
18
18
|
AccountIdentityLink,
|
|
19
19
|
AccountMenu,
|
|
20
20
|
BrandMark,
|
|
21
21
|
DropdownItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LKOYOXBG.js";
|
|
23
23
|
import {
|
|
24
24
|
TabButton
|
|
25
25
|
} from "./chunk-ZLD4VLUG.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
CodeBlock,
|
|
38
38
|
CopyButton,
|
|
39
39
|
Tooltip
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2IIX44MN.js";
|
|
41
41
|
import {
|
|
42
42
|
Heading,
|
|
43
43
|
Text
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
InlineLink,
|
|
50
50
|
isExternalHref
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LRXUPEQM.js";
|
|
52
52
|
import {
|
|
53
53
|
AccountIcon,
|
|
54
54
|
AppIcon,
|
|
@@ -101,12 +101,14 @@ import {
|
|
|
101
101
|
PlayIcon,
|
|
102
102
|
PlusIcon,
|
|
103
103
|
PowerIcon,
|
|
104
|
+
PulseIcon,
|
|
104
105
|
ReasoningIcon,
|
|
105
106
|
ReceiptIcon,
|
|
106
107
|
RefreshIcon,
|
|
107
108
|
RobotIcon,
|
|
108
109
|
RocketIcon,
|
|
109
110
|
SearchIcon,
|
|
111
|
+
ShieldCheckIcon,
|
|
110
112
|
SignOutIcon,
|
|
111
113
|
SparkleIcon,
|
|
112
114
|
SparklesIcon,
|
|
@@ -126,7 +128,7 @@ import {
|
|
|
126
128
|
WarningIcon,
|
|
127
129
|
XIcon,
|
|
128
130
|
XSocialIcon
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-7NTX3FPZ.js";
|
|
130
132
|
import {
|
|
131
133
|
cn
|
|
132
134
|
} from "./chunk-LKUZU37X.js";
|
|
@@ -2695,8 +2697,46 @@ function LiveDot({ className }) {
|
|
|
2695
2697
|
);
|
|
2696
2698
|
}
|
|
2697
2699
|
|
|
2698
|
-
// src/primitives/
|
|
2700
|
+
// src/primitives/SegmentedControl.tsx
|
|
2699
2701
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2702
|
+
function SegmentedControl({
|
|
2703
|
+
options,
|
|
2704
|
+
value,
|
|
2705
|
+
onChange,
|
|
2706
|
+
ariaLabel,
|
|
2707
|
+
className
|
|
2708
|
+
}) {
|
|
2709
|
+
return /* @__PURE__ */ jsx35(
|
|
2710
|
+
"fieldset",
|
|
2711
|
+
{
|
|
2712
|
+
"aria-label": ariaLabel,
|
|
2713
|
+
className: cn(
|
|
2714
|
+
"polli:m-0 polli:inline-flex polli:min-w-0 polli:items-center polli:gap-0.5 polli:rounded-full polli:border-0 polli:bg-theme-bg-subtle polli:p-0.5",
|
|
2715
|
+
className
|
|
2716
|
+
),
|
|
2717
|
+
children: options.map((option) => {
|
|
2718
|
+
const selected = option.value === value;
|
|
2719
|
+
return /* @__PURE__ */ jsx35(
|
|
2720
|
+
"button",
|
|
2721
|
+
{
|
|
2722
|
+
type: "button",
|
|
2723
|
+
"aria-pressed": selected,
|
|
2724
|
+
onClick: () => onChange(option.value),
|
|
2725
|
+
className: cn(
|
|
2726
|
+
"polli-control polli:rounded-full polli:px-3 polli:py-1 polli:text-sm polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",
|
|
2727
|
+
selected ? "polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
|
|
2728
|
+
),
|
|
2729
|
+
children: option.label
|
|
2730
|
+
},
|
|
2731
|
+
option.value
|
|
2732
|
+
);
|
|
2733
|
+
})
|
|
2734
|
+
}
|
|
2735
|
+
);
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
// src/primitives/Skeleton.tsx
|
|
2739
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2700
2740
|
var shapeClasses = {
|
|
2701
2741
|
// Stands in for a card or tile.
|
|
2702
2742
|
card: "polli:rounded-card",
|
|
@@ -2706,7 +2746,7 @@ var shapeClasses = {
|
|
|
2706
2746
|
media: ""
|
|
2707
2747
|
};
|
|
2708
2748
|
function Skeleton({ shape = "card", className }) {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2749
|
+
return /* @__PURE__ */ jsx36(
|
|
2710
2750
|
"span",
|
|
2711
2751
|
{
|
|
2712
2752
|
"aria-hidden": "true",
|
|
@@ -2721,7 +2761,7 @@ function Skeleton({ shape = "card", className }) {
|
|
|
2721
2761
|
|
|
2722
2762
|
// src/primitives/Slider.tsx
|
|
2723
2763
|
import { forwardRef as forwardRef6 } from "react";
|
|
2724
|
-
import { jsx as
|
|
2764
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2725
2765
|
var toNumber = (value) => {
|
|
2726
2766
|
if (typeof value === "number") return value;
|
|
2727
2767
|
if (typeof value !== "string" || value.trim() === "") return void 0;
|
|
@@ -2761,7 +2801,7 @@ var Slider = forwardRef6(
|
|
|
2761
2801
|
...style,
|
|
2762
2802
|
...progressPercent === void 0 ? null : { "--polli-slider-progress": `${progressPercent}%` }
|
|
2763
2803
|
};
|
|
2764
|
-
return /* @__PURE__ */
|
|
2804
|
+
return /* @__PURE__ */ jsx37(
|
|
2765
2805
|
"input",
|
|
2766
2806
|
{
|
|
2767
2807
|
ref,
|
|
@@ -2816,7 +2856,7 @@ function StableLabel({
|
|
|
2816
2856
|
}
|
|
2817
2857
|
|
|
2818
2858
|
// src/primitives/Table.tsx
|
|
2819
|
-
import { Fragment as Fragment9, jsx as
|
|
2859
|
+
import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2820
2860
|
var alignClasses = {
|
|
2821
2861
|
left: "polli:text-left",
|
|
2822
2862
|
center: "polli:text-center",
|
|
@@ -2827,7 +2867,7 @@ var rowIntentClasses = {
|
|
|
2827
2867
|
warning: "polli:bg-intent-warning-bg-light/65",
|
|
2828
2868
|
danger: "polli:bg-intent-danger-bg-light/65"
|
|
2829
2869
|
};
|
|
2830
|
-
var Table = ({ className, ...rest }) => /* @__PURE__ */
|
|
2870
|
+
var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx38(
|
|
2831
2871
|
"table",
|
|
2832
2872
|
{
|
|
2833
2873
|
...rest,
|
|
@@ -2837,7 +2877,7 @@ var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
|
2837
2877
|
)
|
|
2838
2878
|
}
|
|
2839
2879
|
);
|
|
2840
|
-
var TableHead = ({ className, ...rest }) => /* @__PURE__ */
|
|
2880
|
+
var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx38(
|
|
2841
2881
|
"thead",
|
|
2842
2882
|
{
|
|
2843
2883
|
...rest,
|
|
@@ -2847,26 +2887,18 @@ var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
|
2847
2887
|
)
|
|
2848
2888
|
}
|
|
2849
2889
|
);
|
|
2850
|
-
var TableBody = ({
|
|
2851
|
-
className,
|
|
2852
|
-
divider = "themed",
|
|
2853
|
-
...rest
|
|
2854
|
-
}) => /* @__PURE__ */ jsx37(
|
|
2890
|
+
var TableBody = ({ className, ...rest }) => /* @__PURE__ */ jsx38(
|
|
2855
2891
|
"tbody",
|
|
2856
2892
|
{
|
|
2857
2893
|
...rest,
|
|
2858
|
-
className: cn(
|
|
2859
|
-
"polli:divide-y",
|
|
2860
|
-
divider === "neutral" ? "polli:divide-divider" : "polli:divide-theme-border/65",
|
|
2861
|
-
className
|
|
2862
|
-
)
|
|
2894
|
+
className: cn("polli:divide-y polli:divide-divider", className)
|
|
2863
2895
|
}
|
|
2864
2896
|
);
|
|
2865
2897
|
var TableRow = ({
|
|
2866
2898
|
intent = "default",
|
|
2867
2899
|
className,
|
|
2868
2900
|
...rest
|
|
2869
|
-
}) => /* @__PURE__ */
|
|
2901
|
+
}) => /* @__PURE__ */ jsx38(
|
|
2870
2902
|
"tr",
|
|
2871
2903
|
{
|
|
2872
2904
|
...rest,
|
|
@@ -2887,8 +2919,8 @@ var TableHeaderCell = ({
|
|
|
2887
2919
|
...rest
|
|
2888
2920
|
}) => {
|
|
2889
2921
|
const content = /* @__PURE__ */ jsxs28(Fragment9, { children: [
|
|
2890
|
-
/* @__PURE__ */
|
|
2891
|
-
onSort && /* @__PURE__ */
|
|
2922
|
+
/* @__PURE__ */ jsx38("span", { children }),
|
|
2923
|
+
onSort && /* @__PURE__ */ jsx38(
|
|
2892
2924
|
"span",
|
|
2893
2925
|
{
|
|
2894
2926
|
"aria-hidden": "true",
|
|
@@ -2905,15 +2937,15 @@ var TableHeaderCell = ({
|
|
|
2905
2937
|
className
|
|
2906
2938
|
);
|
|
2907
2939
|
if (!onSort) {
|
|
2908
|
-
return /* @__PURE__ */
|
|
2940
|
+
return /* @__PURE__ */ jsx38("th", { ...rest, className: classes, children: content });
|
|
2909
2941
|
}
|
|
2910
|
-
return /* @__PURE__ */
|
|
2942
|
+
return /* @__PURE__ */ jsx38(
|
|
2911
2943
|
"th",
|
|
2912
2944
|
{
|
|
2913
2945
|
...rest,
|
|
2914
2946
|
"aria-sort": active && sortDirection ? sortDirection === "asc" ? "ascending" : "descending" : "none",
|
|
2915
2947
|
className: classes,
|
|
2916
|
-
children: /* @__PURE__ */
|
|
2948
|
+
children: /* @__PURE__ */ jsx38(
|
|
2917
2949
|
"button",
|
|
2918
2950
|
{
|
|
2919
2951
|
type: "button",
|
|
@@ -2935,7 +2967,7 @@ var TableCell = ({
|
|
|
2935
2967
|
muted = false,
|
|
2936
2968
|
className,
|
|
2937
2969
|
...rest
|
|
2938
|
-
}) => /* @__PURE__ */
|
|
2970
|
+
}) => /* @__PURE__ */ jsx38(
|
|
2939
2971
|
"td",
|
|
2940
2972
|
{
|
|
2941
2973
|
...rest,
|
|
@@ -2950,7 +2982,7 @@ var TableCell = ({
|
|
|
2950
2982
|
);
|
|
2951
2983
|
|
|
2952
2984
|
// src/primitives/TableDisclosureButton.tsx
|
|
2953
|
-
import { jsx as
|
|
2985
|
+
import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2954
2986
|
var TableDisclosureButton = ({
|
|
2955
2987
|
children,
|
|
2956
2988
|
disabled = false,
|
|
@@ -2970,7 +3002,7 @@ var TableDisclosureButton = ({
|
|
|
2970
3002
|
className
|
|
2971
3003
|
),
|
|
2972
3004
|
children: [
|
|
2973
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ jsx39(
|
|
2974
3006
|
ChevronIcon,
|
|
2975
3007
|
{
|
|
2976
3008
|
expanded,
|
|
@@ -3092,6 +3124,7 @@ export {
|
|
|
3092
3124
|
PlayIcon,
|
|
3093
3125
|
PlusIcon,
|
|
3094
3126
|
PowerIcon,
|
|
3127
|
+
PulseIcon,
|
|
3095
3128
|
ReasoningIcon,
|
|
3096
3129
|
ReceiptIcon,
|
|
3097
3130
|
RefreshIcon,
|
|
@@ -3100,6 +3133,8 @@ export {
|
|
|
3100
3133
|
ScrollArea,
|
|
3101
3134
|
SearchIcon,
|
|
3102
3135
|
Section,
|
|
3136
|
+
SegmentedControl,
|
|
3137
|
+
ShieldCheckIcon,
|
|
3103
3138
|
SignOutIcon,
|
|
3104
3139
|
Skeleton,
|
|
3105
3140
|
Slider,
|