@actioneer/ads 0.5.9 → 0.7.0
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/components/ai-elements/agent-trace.d.ts +2 -2
- package/components/ai-elements/agent-trace.js +163 -104
- package/components/ai-elements/chain-of-thought.d.ts +2 -2
- package/components/ai-elements/chain-of-thought.js +1 -1
- package/components/ai-elements/index.d.ts +0 -5
- package/components/ai-elements/inline-citation.js +1 -1
- package/components/alert.d.ts +6 -6
- package/components/alert.js +89 -53
- package/components/answer-sources.d.ts +2 -6
- package/components/answer-sources.js +58 -60
- package/components/answer.d.ts +5 -0
- package/components/answer.js +311 -271
- package/components/assistant-ui/composer-harness.js +11 -14
- package/components/assistant-ui/composer.d.ts +3 -1
- package/components/assistant-ui/composer.js +148 -144
- package/components/assistant-ui/index.d.ts +0 -3
- package/components/assistant-ui/thread-context.d.ts +3 -1
- package/components/assistant-ui/thread.js +50 -42
- package/components/avatar.js +42 -42
- package/components/badge.d.ts +5 -6
- package/components/badge.js +13 -76
- package/components/body-page-header.d.ts +15 -0
- package/components/body-page-header.js +24 -0
- package/components/brand-loader.d.ts +0 -3
- package/components/brand-loader.js +10 -32
- package/components/breadcrumbs.d.ts +1 -8
- package/components/breadcrumbs.js +65 -78
- package/components/button.d.ts +1 -1
- package/components/button.js +55 -49
- package/components/card.js +19 -18
- package/components/chart.js +526 -503
- package/components/chip.d.ts +13 -1
- package/components/chip.js +93 -80
- package/components/collection-header.d.ts +17 -0
- package/components/collection-header.js +31 -0
- package/components/connector-card.d.ts +6 -6
- package/components/connector-card.js +31 -32
- package/components/date-range-picker.d.ts +26 -0
- package/components/date-range-picker.js +223 -0
- package/components/drawer.d.ts +19 -3
- package/components/drawer.js +143 -116
- package/components/dropdown.d.ts +1 -2
- package/components/dropdown.js +88 -89
- package/components/field.js +39 -34
- package/components/file-dropzone.js +1 -1
- package/components/index.d.ts +5 -4
- package/components/index.js +501 -546
- package/components/infinite-canvas.js +24 -24
- package/components/input-field.d.ts +18 -3
- package/components/input-field.js +88 -72
- package/components/input.js +16 -15
- package/components/modal.d.ts +31 -3
- package/components/modal.js +243 -169
- package/components/number-field.js +45 -42
- package/components/page-body.d.ts +12 -0
- package/components/page-body.js +18 -0
- package/components/pagination.js +36 -36
- package/components/panel.js +31 -28
- package/components/select.d.ts +21 -0
- package/components/select.js +189 -148
- package/components/setting-row.d.ts +6 -5
- package/components/setting-row.js +33 -32
- package/components/sidebar.d.ts +2 -0
- package/components/sidebar.js +165 -155
- package/components/skeleton.js +8 -7
- package/components/slider.js +1 -1
- package/components/surface-loader.d.ts +11 -0
- package/components/surface-loader.js +35 -0
- package/components/table.d.ts +16 -10
- package/components/table.js +426 -410
- package/components/tabs.d.ts +2 -0
- package/components/tabs.js +159 -294
- package/components/textarea.js +9 -9
- package/components/toast.d.ts +1 -1
- package/components/toast.js +181 -118
- package/components/tree.d.ts +5 -1
- package/components/tree.js +96 -63
- package/components/typography.d.ts +4 -4
- package/components/typography.js +13 -13
- package/components/ui/button.d.ts +1 -1
- package/components/ui/dialog.js +33 -33
- package/components/viz-charts.js +186 -183
- package/demo/components/add-to-artifact.js +8 -10
- package/fonts.css +2 -0
- package/lib/cn.js +11 -4
- package/lib/icons.d.ts +4 -0
- package/lib/icons.js +107 -106
- package/lib/interactive.d.ts +1 -1
- package/llms.txt +115 -152
- package/manifest.json +13730 -1084
- package/package.json +4 -2
- package/styles.css +365 -225
- package/theme.css +315 -176
- package/components/agent-icon.d.ts +0 -76
- package/components/agent-icon.js +0 -265
- package/components/ai-elements/queue.d.ts +0 -60
- package/components/ai-elements/queue.js +0 -193
- package/components/ai-elements/speech-input.d.ts +0 -16
- package/components/ai-elements/speech-input.js +0 -151
- package/components/ai-elements/task-progress.d.ts +0 -41
- package/components/ai-elements/task-progress.js +0 -224
- package/components/ai-elements/task.d.ts +0 -39
- package/components/ai-elements/task.js +0 -105
- package/components/ai-elements/voice.d.ts +0 -90
- package/components/ai-elements/voice.js +0 -496
- package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
- package/components/assistant-ui/follow-up-suggestions.js +0 -72
- package/components/assistant-ui/suggestions.d.ts +0 -7
- package/components/assistant-ui/suggestions.js +0 -19
- package/components/assistant-ui/voice.d.ts +0 -18
- package/components/link.d.ts +0 -14
- package/components/link.js +0 -72
- package/components/navbar.d.ts +0 -15
- package/components/navbar.js +0 -68
- package/components/pixel-icon.d.ts +0 -37
- package/components/pixel-icon.js +0 -859
package/components/chip.d.ts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const chipVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "outline" | "solid" | null | undefined;
|
|
5
5
|
color?: "success" | "warning" | "danger" | "info" | "default" | "primary" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type ChipInteraction = "actionable" | "non-actionable";
|
|
7
8
|
export interface ChipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof chipVariants> {
|
|
9
|
+
/**
|
|
10
|
+
* Chips have two interaction types. Actionable chips render as native
|
|
11
|
+
* buttons for an independent action or setting; non-actionable chips remain
|
|
12
|
+
* descriptive inline labels. Use `aria-pressed` for a toggle such as
|
|
13
|
+
* "Alerts on/off". Use tabs or segmented controls for mutually exclusive
|
|
14
|
+
* selection.
|
|
15
|
+
*/
|
|
16
|
+
interaction?: ChipInteraction;
|
|
17
|
+
/** @deprecated Use `interaction="actionable"`. */
|
|
18
|
+
isPressable?: boolean;
|
|
8
19
|
onClose?: () => void;
|
|
9
20
|
startContent?: React.ReactNode;
|
|
10
21
|
avatar?: React.ReactNode;
|
|
22
|
+
showDot?: boolean;
|
|
11
23
|
}
|
|
12
24
|
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
13
25
|
export {};
|
package/components/chip.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { Close as
|
|
6
|
-
import { cn as
|
|
7
|
-
const
|
|
8
|
-
"inline-flex items-center gap-1
|
|
2
|
+
import { jsxs as x, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as N from "react";
|
|
4
|
+
import { cva as y } from "class-variance-authority";
|
|
5
|
+
import { Close as w } from "../lib/icons.js";
|
|
6
|
+
import { cn as i } from "../lib/cn.js";
|
|
7
|
+
const k = y(
|
|
8
|
+
"inline-flex h-6 items-center gap-1 whitespace-nowrap rounded-[4px] border px-2 py-0 text-s font-medium leading-[var(--text-s--line-height)]",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
solid: "",
|
|
13
|
-
|
|
14
|
-
outline: "bg-transparent border",
|
|
15
|
-
dot: "bg-transparent border border-border text-foreground"
|
|
13
|
+
outline: ""
|
|
16
14
|
},
|
|
17
15
|
color: {
|
|
18
16
|
default: "",
|
|
@@ -24,89 +22,104 @@ const b = u(
|
|
|
24
22
|
}
|
|
25
23
|
},
|
|
26
24
|
compoundVariants: [
|
|
27
|
-
// solid
|
|
28
|
-
{ variant: "solid", color: "default", className: "bg-
|
|
29
|
-
{ variant: "solid", color: "primary", className: "bg-
|
|
30
|
-
{ variant: "solid", color: "success", className: "bg-success text-success-
|
|
31
|
-
{ variant: "solid", color: "warning", className: "bg-warning text-warning-
|
|
32
|
-
{ variant: "solid", color: "danger", className: "bg-danger text-danger-
|
|
33
|
-
{ variant: "solid", color: "info", className: "bg-info text-info-
|
|
34
|
-
// soft
|
|
35
|
-
{ variant: "soft", color: "default", className: "bg-muted text-muted-foreground" },
|
|
36
|
-
{ variant: "soft", color: "primary", className: "bg-fill text-fill-foreground" },
|
|
37
|
-
{ variant: "soft", color: "success", className: "bg-success-50 text-success-700" },
|
|
38
|
-
{ variant: "soft", color: "warning", className: "bg-warning-50 text-warning-700" },
|
|
39
|
-
{ variant: "soft", color: "danger", className: "bg-danger-50 text-danger-700" },
|
|
40
|
-
{ variant: "soft", color: "info", className: "bg-info-50 text-info-700" },
|
|
25
|
+
// solid — the default tinted surface
|
|
26
|
+
{ variant: "solid", color: "default", className: "border-ng6 bg-ng2 text-muted-foreground" },
|
|
27
|
+
{ variant: "solid", color: "primary", className: "border-ng5 bg-fill text-fill-foreground" },
|
|
28
|
+
{ variant: "solid", color: "success", className: "border-success-400 bg-success-50 text-success-700" },
|
|
29
|
+
{ variant: "solid", color: "warning", className: "border-warning-300 bg-warning-50 text-warning-700" },
|
|
30
|
+
{ variant: "solid", color: "danger", className: "border-danger-300 bg-danger-50 text-danger-700" },
|
|
31
|
+
{ variant: "solid", color: "info", className: "border-info-300 bg-info-50 text-info-700" },
|
|
41
32
|
// outline
|
|
42
|
-
{ variant: "outline", color: "default", className: "border-border-strong text-foreground" },
|
|
43
|
-
{ variant: "outline", color: "primary", className: "border-border-strong text-foreground" },
|
|
44
|
-
{ variant: "outline", color: "success", className: "border-success-
|
|
45
|
-
{ variant: "outline", color: "warning", className: "border-warning-
|
|
46
|
-
{ variant: "outline", color: "danger", className: "border-danger-
|
|
47
|
-
{ variant: "outline", color: "info", className: "border-info-
|
|
33
|
+
{ variant: "outline", color: "default", className: "border-border-strong bg-card text-foreground" },
|
|
34
|
+
{ variant: "outline", color: "primary", className: "border-border-strong bg-card text-foreground" },
|
|
35
|
+
{ variant: "outline", color: "success", className: "border-success-400 bg-success-50 text-success-700" },
|
|
36
|
+
{ variant: "outline", color: "warning", className: "border-warning-400 bg-warning-50 text-warning-700" },
|
|
37
|
+
{ variant: "outline", color: "danger", className: "border-danger-400 bg-danger-50 text-danger-700" },
|
|
38
|
+
{ variant: "outline", color: "info", className: "border-info-400 bg-info-50 text-info-700" }
|
|
48
39
|
],
|
|
49
|
-
defaultVariants: { variant: "
|
|
40
|
+
defaultVariants: { variant: "solid", color: "default" }
|
|
50
41
|
}
|
|
51
|
-
),
|
|
42
|
+
), z = {
|
|
52
43
|
default: "bg-muted-foreground",
|
|
53
44
|
primary: "bg-foreground",
|
|
54
45
|
success: "bg-success",
|
|
55
46
|
warning: "bg-warning",
|
|
56
47
|
danger: "bg-danger",
|
|
57
48
|
info: "bg-info"
|
|
58
|
-
},
|
|
49
|
+
}, j = N.forwardRef(
|
|
59
50
|
({
|
|
60
|
-
className:
|
|
61
|
-
variant:
|
|
62
|
-
color:
|
|
63
|
-
|
|
51
|
+
className: u,
|
|
52
|
+
variant: b = "solid",
|
|
53
|
+
color: o = "default",
|
|
54
|
+
interaction: f,
|
|
55
|
+
isPressable: m = !1,
|
|
56
|
+
onClose: r,
|
|
64
57
|
startContent: t,
|
|
65
58
|
avatar: a,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
59
|
+
showDot: p = !1,
|
|
60
|
+
children: v,
|
|
61
|
+
...s
|
|
62
|
+
}, c) => {
|
|
63
|
+
const n = r ? "actionable" : f ?? (m ? "actionable" : "non-actionable"), l = n === "actionable" && !r, d = i(
|
|
64
|
+
k({ variant: b, color: o }),
|
|
65
|
+
a && "pl-1",
|
|
66
|
+
r && "pr-1.5",
|
|
67
|
+
l && "cursor-pointer select-none shadow-100 outline-none transition-[background,border,color,box-shadow,transform] duration-150 ease-out data-[interaction=actionable]:border-action-primary data-[interaction=actionable]:bg-card data-[interaction=actionable]:text-action-primary-text hover:-translate-y-px hover:bg-action-primary-soft hover:shadow-200 active:translate-y-0 active:scale-[0.97] active:bg-action-primary-soft aria-pressed:border-success-400! aria-pressed:bg-success-50! aria-pressed:text-success-700! focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background motion-reduce:transition-none motion-reduce:hover:translate-y-0 motion-reduce:active:scale-100",
|
|
68
|
+
u
|
|
69
|
+
), g = /* @__PURE__ */ x(h, { children: [
|
|
70
|
+
a && /* @__PURE__ */ e("span", { className: "-ml-0.5 inline-flex shrink-0", children: a }),
|
|
71
|
+
p && /* @__PURE__ */ e(
|
|
72
|
+
"span",
|
|
73
|
+
{
|
|
74
|
+
"aria-hidden": !0,
|
|
75
|
+
className: i(
|
|
76
|
+
"size-1.5",
|
|
77
|
+
"rounded-dot",
|
|
78
|
+
z[o ?? "default"]
|
|
79
|
+
)
|
|
80
|
+
}
|
|
77
81
|
),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
82
|
+
t && /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 [&_svg]:size-3.5", children: t }),
|
|
83
|
+
v,
|
|
84
|
+
r && /* @__PURE__ */ e(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
87
|
+
type: "button",
|
|
88
|
+
"aria-label": "Remove",
|
|
89
|
+
onClick: r,
|
|
90
|
+
className: i(
|
|
91
|
+
"inline-flex size-4 shrink-0 items-center justify-center rounded-full",
|
|
92
|
+
"opacity-60 transition-opacity hover:opacity-100",
|
|
93
|
+
"outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
94
|
+
"[&_svg]:size-3"
|
|
95
|
+
),
|
|
96
|
+
children: /* @__PURE__ */ e(w, { "aria-hidden": !0 })
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] });
|
|
100
|
+
return l ? /* @__PURE__ */ e(
|
|
101
|
+
"button",
|
|
102
|
+
{
|
|
103
|
+
ref: c,
|
|
104
|
+
type: "button",
|
|
105
|
+
"data-interaction": n,
|
|
106
|
+
className: d,
|
|
107
|
+
...s,
|
|
108
|
+
children: g
|
|
109
|
+
}
|
|
110
|
+
) : /* @__PURE__ */ e(
|
|
111
|
+
"span",
|
|
112
|
+
{
|
|
113
|
+
ref: c,
|
|
114
|
+
"data-interaction": n,
|
|
115
|
+
className: d,
|
|
116
|
+
...s,
|
|
117
|
+
children: g
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
108
121
|
);
|
|
109
|
-
|
|
122
|
+
j.displayName = "Chip";
|
|
110
123
|
export {
|
|
111
|
-
|
|
124
|
+
j as Chip
|
|
112
125
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface CollectionHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
3
|
+
/** Product or destination icon rendered before the title. */
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
/** Collection or top-level destination title. */
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
/** Optional compact metadata rendered beside the title. */
|
|
8
|
+
meta?: React.ReactNode;
|
|
9
|
+
/** Search and page-level actions rendered at the trailing edge. */
|
|
10
|
+
actions?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Canonical header for top-level collections and sidebar destinations.
|
|
14
|
+
* It aligns with the sidebar brand row, carries the destination icon, and
|
|
15
|
+
* owns the subtle bottom separator used by ADS product shells.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CollectionHeader: React.ForwardRefExoticComponent<CollectionHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { cn as d } from "../lib/cn.js";
|
|
5
|
+
const f = c.forwardRef(
|
|
6
|
+
({ className: n, icon: s, title: i, meta: r, actions: t, ...l }, o) => /* @__PURE__ */ a(
|
|
7
|
+
"header",
|
|
8
|
+
{
|
|
9
|
+
ref: o,
|
|
10
|
+
className: d(
|
|
11
|
+
"relative flex h-(--sidebar-header) shrink-0 items-center justify-between gap-4 px-6",
|
|
12
|
+
"after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-px",
|
|
13
|
+
"after:bg-[linear-gradient(to_right,var(--color-border)_0%,transparent_100%)] after:content-['']",
|
|
14
|
+
n
|
|
15
|
+
),
|
|
16
|
+
...l,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 text-foreground [&_svg]:size-4", "aria-hidden": "true", children: s }),
|
|
20
|
+
/* @__PURE__ */ e("h1", { className: "truncate text-base font-semibold text-foreground", children: i }),
|
|
21
|
+
r ? /* @__PURE__ */ e("span", { className: "shrink-0 text-xs tabular-nums text-secondary", children: r }) : null
|
|
22
|
+
] }),
|
|
23
|
+
t ? /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-2", children: t }) : null
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
f.displayName = "CollectionHeader";
|
|
29
|
+
export {
|
|
30
|
+
f as CollectionHeader
|
|
31
|
+
};
|
|
@@ -4,9 +4,9 @@ import * as React from "react";
|
|
|
4
4
|
* screen. Structure: identity row (logo + name + schema + connection status),
|
|
5
5
|
* a tinted health strip, and a recessed footer with a usage metric + action.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* The clickable state retains the flat `shadow-elevation` compatibility hook;
|
|
8
|
+
* add a numbered elevation utility only after an explicit user request. The
|
|
9
|
+
* health strip uses a soft status tint and the footer
|
|
10
10
|
* steps down to `bg-muted`.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
@@ -54,9 +54,9 @@ export interface ConnectionStatusProps {
|
|
|
54
54
|
label?: string;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
* the
|
|
59
|
-
* the same way.
|
|
57
|
+
* Muted sync label for healthy connections; exceptional disconnected states
|
|
58
|
+
* retain the stronger status-chip treatment. Exported so detail screens render
|
|
59
|
+
* the same status the same way.
|
|
60
60
|
*/
|
|
61
61
|
export declare function ConnectionStatus({ connected, lastSync, label: labelOverride, }: ConnectionStatusProps): React.JSX.Element;
|
|
62
62
|
export declare const ConnectorCard: React.ForwardRefExoticComponent<ConnectorCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, Fragment as f, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
3
|
+
import * as g from "react";
|
|
4
|
+
import { Chip as x } from "./chip.js";
|
|
5
|
+
import { Database as b, ChevronRight as p } from "../lib/icons.js";
|
|
5
6
|
import { cn as o } from "../lib/cn.js";
|
|
6
7
|
const u = {
|
|
7
8
|
issue: { band: "bg-linear-to-r from-danger-50 to-danger-50/0" },
|
|
8
9
|
healthy: { band: "bg-linear-to-r from-success-50 to-success-50/0" }
|
|
9
10
|
};
|
|
10
|
-
function
|
|
11
|
+
function y(s) {
|
|
11
12
|
const e = /* @__PURE__ */ new Date();
|
|
12
13
|
if (s.toDateString() === e.toDateString())
|
|
13
14
|
return `Last sync at ${s.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" })}`;
|
|
@@ -24,27 +25,27 @@ function p(s) {
|
|
|
24
25
|
}
|
|
25
26
|
return `Last sync from ${a}`;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function N({
|
|
28
29
|
connected: s,
|
|
29
30
|
lastSync: e,
|
|
30
31
|
label: n
|
|
31
32
|
}) {
|
|
32
|
-
const a = n ?? (s ? e ?
|
|
33
|
-
return /* @__PURE__ */ r("span", { className: "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs text-tertiary", children: [
|
|
34
|
-
/* @__PURE__ */ t(
|
|
35
|
-
"span",
|
|
36
|
-
{
|
|
37
|
-
"aria-hidden": !0,
|
|
38
|
-
className: o(
|
|
39
|
-
"size-2 rounded-dot",
|
|
40
|
-
s ? "bg-success" : "bg-danger"
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
),
|
|
33
|
+
const a = n ?? (s ? e ? y(e) : "Connected" : "Disconnected");
|
|
34
|
+
return s ? /* @__PURE__ */ r("span", { className: "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs text-tertiary", children: [
|
|
35
|
+
/* @__PURE__ */ t("span", { "aria-hidden": !0, className: "size-2 rounded-dot bg-success" }),
|
|
44
36
|
a
|
|
45
|
-
] })
|
|
37
|
+
] }) : /* @__PURE__ */ t(
|
|
38
|
+
x,
|
|
39
|
+
{
|
|
40
|
+
variant: "solid",
|
|
41
|
+
color: "danger",
|
|
42
|
+
showDot: !0,
|
|
43
|
+
className: "shrink-0",
|
|
44
|
+
children: a
|
|
45
|
+
}
|
|
46
|
+
);
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function v({ strip: s }) {
|
|
48
49
|
const e = u[s.tint] ?? u.issue;
|
|
49
50
|
return /* @__PURE__ */ t(
|
|
50
51
|
"div",
|
|
@@ -65,10 +66,10 @@ function N({ strip: s }) {
|
|
|
65
66
|
}
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const w = g.forwardRef(
|
|
69
70
|
({ className: s, card: e, onOpen: n, ...a }, i) => {
|
|
70
71
|
var m;
|
|
71
|
-
const c = !!n,
|
|
72
|
+
const c = !!n, h = ((m = e.action) == null ? void 0 : m.tone) === "reconnect", l = /* @__PURE__ */ r(f, { children: [
|
|
72
73
|
/* @__PURE__ */ r("div", { className: "rounded-t-xl p-[var(--card-padding)]", children: [
|
|
73
74
|
/* @__PURE__ */ r("div", { className: "mb-5 flex items-center gap-3.5", children: [
|
|
74
75
|
e.logo ? /* @__PURE__ */ t(
|
|
@@ -78,12 +79,12 @@ const v = h.forwardRef(
|
|
|
78
79
|
alt: "",
|
|
79
80
|
className: "size-10 shrink-0 rounded-md object-contain"
|
|
80
81
|
}
|
|
81
|
-
) : /* @__PURE__ */ t("span", { className: "grid size-10 shrink-0 place-items-center rounded-md bg-muted text-secondary", children: /* @__PURE__ */ t(
|
|
82
|
+
) : /* @__PURE__ */ t("span", { className: "grid size-10 shrink-0 place-items-center rounded-md bg-muted text-secondary", children: /* @__PURE__ */ t(b, { className: "size-5", "aria-hidden": !0 }) }),
|
|
82
83
|
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
|
|
83
84
|
/* @__PURE__ */ r("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
84
85
|
/* @__PURE__ */ t("div", { className: "min-w-0 truncate text-base font-medium leading-tight text-foreground", children: e.name }),
|
|
85
86
|
/* @__PURE__ */ t(
|
|
86
|
-
|
|
87
|
+
N,
|
|
87
88
|
{
|
|
88
89
|
connected: e.connected,
|
|
89
90
|
lastSync: e.lastSync
|
|
@@ -93,16 +94,14 @@ const v = h.forwardRef(
|
|
|
93
94
|
e.schema && /* @__PURE__ */ t("div", { className: "mt-0.5 truncate text-xs tabular-nums text-tertiary", children: e.schema })
|
|
94
95
|
] })
|
|
95
96
|
] }),
|
|
96
|
-
/* @__PURE__ */ t(
|
|
97
|
+
/* @__PURE__ */ t(v, { strip: e.strip })
|
|
97
98
|
] }),
|
|
98
99
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-3 rounded-b-xl bg-ink-100 px-[var(--card-padding)] py-3", children: [
|
|
99
100
|
/* @__PURE__ */ t(
|
|
100
101
|
"span",
|
|
101
102
|
{
|
|
102
|
-
className:
|
|
103
|
-
|
|
104
|
-
"text-secondary"
|
|
105
|
-
),
|
|
103
|
+
className: "min-w-0 truncate text-xs",
|
|
104
|
+
style: { color: "var(--text-secondary)" },
|
|
106
105
|
children: e.footer.text
|
|
107
106
|
}
|
|
108
107
|
),
|
|
@@ -111,11 +110,11 @@ const v = h.forwardRef(
|
|
|
111
110
|
{
|
|
112
111
|
className: o(
|
|
113
112
|
"inline-flex shrink-0 items-center gap-0.5 text-xs font-normal",
|
|
114
|
-
|
|
113
|
+
h ? "text-danger" : "text-foreground"
|
|
115
114
|
),
|
|
116
115
|
children: [
|
|
117
116
|
e.action.label,
|
|
118
|
-
/* @__PURE__ */ t(
|
|
117
|
+
/* @__PURE__ */ t(p, { strokeWidth: 2, className: "size-3.5" })
|
|
119
118
|
]
|
|
120
119
|
}
|
|
121
120
|
)
|
|
@@ -147,8 +146,8 @@ const v = h.forwardRef(
|
|
|
147
146
|
) : /* @__PURE__ */ t("div", { ref: i, className: d, ...a, children: l });
|
|
148
147
|
}
|
|
149
148
|
);
|
|
150
|
-
|
|
149
|
+
w.displayName = "ConnectorCard";
|
|
151
150
|
export {
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
N as ConnectionStatus,
|
|
152
|
+
w as ConnectorCard
|
|
154
153
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type DateRangeValue = {
|
|
3
|
+
start: string;
|
|
4
|
+
end: string;
|
|
5
|
+
};
|
|
6
|
+
export interface DateRangePickerProps {
|
|
7
|
+
value?: DateRangeValue | null;
|
|
8
|
+
defaultValue?: DateRangeValue | null;
|
|
9
|
+
onChange?: (value: DateRangeValue | null) => void;
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
errorMessage?: React.ReactNode;
|
|
13
|
+
/** @deprecated Date range fields use a single 32px control height. */
|
|
14
|
+
size?: "sm" | "md";
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
minValue?: string;
|
|
17
|
+
maxValue?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
"aria-label"?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* ADS date-range picker, adapted from HeroUI's composition-first pattern.
|
|
23
|
+
* React Aria owns keyboard, focus, locale, and range-selection behavior while
|
|
24
|
+
* ADS owns every visual token, state, radius, and elevation.
|
|
25
|
+
*/
|
|
26
|
+
export declare function DateRangePicker({ value, defaultValue, onChange, label, description, errorMessage, disabled, minValue, maxValue, className, "aria-label": ariaLabel, }: DateRangePickerProps): React.JSX.Element;
|