@almanaclabs/blaze-ui 0.11.0 → 0.13.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/dist/components/app-shell/app-shell.d.ts +11 -2
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +30 -25
- package/dist/components/approval-card/approval-card.d.ts +19 -0
- package/dist/components/approval-card/approval-card.d.ts.map +1 -0
- package/dist/components/approval-card/approval-card.js +42 -0
- package/dist/components/approval-card/index.d.ts +2 -0
- package/dist/components/approval-card/index.d.ts.map +1 -0
- package/dist/components/filter-chips/filter-chips.d.ts +23 -0
- package/dist/components/filter-chips/filter-chips.d.ts.map +1 -0
- package/dist/components/filter-chips/filter-chips.js +34 -0
- package/dist/components/filter-chips/index.d.ts +2 -0
- package/dist/components/filter-chips/index.d.ts.map +1 -0
- package/dist/components/item/item.d.ts +1 -1
- package/dist/components/item/item.d.ts.map +1 -1
- package/dist/components/item/item.js +3 -2
- package/dist/components/platform-icon/channel-color.d.ts +15 -0
- package/dist/components/platform-icon/channel-color.d.ts.map +1 -0
- package/dist/components/platform-icon/channel-color.js +20 -0
- package/dist/components/platform-icon/index.d.ts +1 -0
- package/dist/components/platform-icon/index.d.ts.map +1 -1
- package/dist/components/platform-icon/platform-icon.d.ts +7 -2
- package/dist/components/platform-icon/platform-icon.d.ts.map +1 -1
- package/dist/components/platform-icon/platform-icon.js +138 -35
- package/dist/components/status-indicator/index.d.ts +2 -0
- package/dist/components/status-indicator/index.d.ts.map +1 -0
- package/dist/components/status-indicator/status-indicator.d.ts +21 -0
- package/dist/components/status-indicator/status-indicator.d.ts.map +1 -0
- package/dist/components/status-indicator/status-indicator.js +30 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -59
- package/package.json +1 -1
- package/src/styles/globals.css +181 -0
|
@@ -58,12 +58,21 @@ type AppSidebarProps = Omit<React.ComponentProps<'aside'>, 'onSelect'> & {
|
|
|
58
58
|
onNavigate?: (item: AppSidebarItem) => void;
|
|
59
59
|
/** The navigation landmark's name. */
|
|
60
60
|
navLabel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Renders a row that has an `href`, for a router's own link (an Inertia or Next `Link`, say). Return the element
|
|
63
|
+
* with its `href` set; the row merges its classes, state and click handler onto it. Defaults to a plain `<a>`.
|
|
64
|
+
*/
|
|
65
|
+
renderLink?: AppSidebarRenderLink;
|
|
61
66
|
};
|
|
67
|
+
/** Builds the link element for a sidebar row with an `href`. */
|
|
68
|
+
type AppSidebarRenderLink = (item: AppSidebarItem & {
|
|
69
|
+
href: string;
|
|
70
|
+
}) => React.ReactElement;
|
|
62
71
|
/**
|
|
63
72
|
* The application's left navigation: a workspace switcher, a plain "New" row, labelled sections of destinations with
|
|
64
73
|
* optional counts, and a group pinned to the bottom. The current destination is the raised white row.
|
|
65
74
|
*/
|
|
66
|
-
declare function AppSidebar({ workspace, newItem, sections, bottomItems, activeId, onNavigate, navLabel, className, ...props }: AppSidebarProps): React.JSX.Element;
|
|
75
|
+
declare function AppSidebar({ workspace, newItem, sections, bottomItems, activeId, onNavigate, navLabel, renderLink, className, ...props }: AppSidebarProps): React.JSX.Element;
|
|
67
76
|
type AppSidebarWorkspaceProps = {
|
|
68
77
|
/** The workspace or business name. */
|
|
69
78
|
name: string;
|
|
@@ -77,5 +86,5 @@ type AppSidebarWorkspaceProps = {
|
|
|
77
86
|
};
|
|
78
87
|
/** The workspace switcher at the top of `AppSidebar`: the logo and name, opening a menu. */
|
|
79
88
|
declare function AppSidebarWorkspace({ name, logo, children, triggerLabel, className, }: AppSidebarWorkspaceProps): React.JSX.Element;
|
|
80
|
-
export { AppShell, AppSidebar, AppSidebarWorkspace, AppTopBar, type AppShellProps, type AppSidebarIcon, type AppSidebarItem, type AppSidebarProps, type AppSidebarSection, type AppSidebarWorkspaceProps, type AppTopBarProps, };
|
|
89
|
+
export { AppShell, AppSidebar, AppSidebarWorkspace, AppTopBar, type AppShellProps, type AppSidebarIcon, type AppSidebarItem, type AppSidebarProps, type AppSidebarRenderLink, type AppSidebarSection, type AppSidebarWorkspaceProps, type AppTopBarProps, };
|
|
81
90
|
//# sourceMappingURL=app-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../src/components/app-shell/app-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuB9B,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD,oEAAoE;IACpE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,gEAAgE;IAChE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,EAChB,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,qBAuBf;AAID,KAAK,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACrD,iEAAiE;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA;AAED,+FAA+F;AAC/F,iBAAS,SAAS,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,qBAoBxE;AAID,KAAK,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC;IACxC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,KAAK,cAAc,GAAG;IACpB,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,KAAK,CAA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F;AAC5F,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,GACV,EAAE,wBAAwB,qBAsC1B;AAED,OAAO,EACL,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,GACpB,CAAA"}
|
|
@@ -38,26 +38,30 @@ function v({ end: t, className: n, children: r, ...i }) {
|
|
|
38
38
|
}) : null]
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
var y = (e) => /* @__PURE__ */ p("a", { href: e.href });
|
|
42
|
+
function b({ item: e, active: t, onNavigate: n, renderLink: r }) {
|
|
43
|
+
let i = e.icon, a = () => {
|
|
44
|
+
e.onSelect?.(), n?.(e);
|
|
45
|
+
};
|
|
43
46
|
return /* @__PURE__ */ m(d, {
|
|
44
47
|
"data-slot": "app-sidebar-item",
|
|
45
48
|
children: [/* @__PURE__ */ m(u, {
|
|
46
49
|
variant: "raised",
|
|
47
50
|
isActive: t,
|
|
48
51
|
"aria-current": t ? "page" : void 0,
|
|
49
|
-
render: e.href ?
|
|
50
|
-
|
|
51
|
-
e.
|
|
52
|
-
},
|
|
53
|
-
|
|
52
|
+
render: e.href ? r({
|
|
53
|
+
...e,
|
|
54
|
+
href: e.href
|
|
55
|
+
}) : void 0,
|
|
56
|
+
onClick: a,
|
|
57
|
+
children: [i ? /* @__PURE__ */ p(i, { "aria-hidden": "true" }) : null, /* @__PURE__ */ p("span", { children: e.label })]
|
|
54
58
|
}), e.count ? /* @__PURE__ */ p(l, {
|
|
55
59
|
className: "top-1.5 rounded-full bg-primary/10 font-semibold text-primary",
|
|
56
60
|
children: e.count
|
|
57
61
|
}) : null]
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
|
-
function
|
|
64
|
+
function x({ label: e, children: t }) {
|
|
61
65
|
return /* @__PURE__ */ m(a, {
|
|
62
66
|
className: "p-0",
|
|
63
67
|
children: [e ? /* @__PURE__ */ p(s, {
|
|
@@ -69,19 +73,20 @@ function b({ label: e, children: t }) {
|
|
|
69
73
|
}) })]
|
|
70
74
|
});
|
|
71
75
|
}
|
|
72
|
-
function
|
|
73
|
-
let
|
|
76
|
+
function S({ workspace: t, newItem: n, sections: r, bottomItems: i, activeId: a, onNavigate: o, navLabel: s = "Workspace", renderLink: c = y, className: l, ...u }) {
|
|
77
|
+
let d = (e) => /* @__PURE__ */ p(b, {
|
|
74
78
|
item: e,
|
|
75
79
|
active: e.id === a,
|
|
76
|
-
onNavigate: o
|
|
77
|
-
|
|
80
|
+
onNavigate: o,
|
|
81
|
+
renderLink: c
|
|
82
|
+
}, e.id), h = n ? d({
|
|
78
83
|
...n,
|
|
79
84
|
icon: n.icon ?? g
|
|
80
|
-
}) : null, [
|
|
85
|
+
}) : null, [_, ...v] = r, S = !!(h && _ && !_.label);
|
|
81
86
|
return /* @__PURE__ */ p("aside", {
|
|
82
87
|
"data-slot": "app-sidebar",
|
|
83
|
-
className: e("sticky top-0 row-span-2 flex h-screen flex-col self-start overflow-y-auto pt-2.5 pb-3",
|
|
84
|
-
...
|
|
88
|
+
className: e("sticky top-0 row-span-2 flex h-screen flex-col self-start overflow-y-auto pt-2.5 pb-3", l),
|
|
89
|
+
...u,
|
|
85
90
|
children: /* @__PURE__ */ m(f, {
|
|
86
91
|
className: "contents",
|
|
87
92
|
children: [
|
|
@@ -90,27 +95,27 @@ function x({ workspace: t, newItem: n, sections: r, bottomItems: i, activeId: a,
|
|
|
90
95
|
"aria-label": s,
|
|
91
96
|
className: "flex flex-col gap-4",
|
|
92
97
|
children: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
label:
|
|
96
|
-
children: [
|
|
97
|
-
},
|
|
98
|
-
|
|
98
|
+
h && !S ? /* @__PURE__ */ p(x, { children: h }) : null,
|
|
99
|
+
_ ? /* @__PURE__ */ m(x, {
|
|
100
|
+
label: _.label,
|
|
101
|
+
children: [S ? h : null, _.items.map(d)]
|
|
102
|
+
}, _.id) : null,
|
|
103
|
+
v.map((e) => /* @__PURE__ */ p(x, {
|
|
99
104
|
label: e.label,
|
|
100
|
-
children: e.items.map(
|
|
105
|
+
children: e.items.map(d)
|
|
101
106
|
}, e.id))
|
|
102
107
|
]
|
|
103
108
|
}),
|
|
104
109
|
i?.length ? /* @__PURE__ */ p("div", {
|
|
105
110
|
"data-slot": "app-sidebar-bottom",
|
|
106
111
|
className: "mt-auto pt-4",
|
|
107
|
-
children: /* @__PURE__ */ p(
|
|
112
|
+
children: /* @__PURE__ */ p(x, { children: i.map(d) })
|
|
108
113
|
}) : null
|
|
109
114
|
]
|
|
110
115
|
})
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
|
-
function
|
|
118
|
+
function C({ name: a, logo: o, children: s, triggerLabel: c, className: l }) {
|
|
114
119
|
return /* @__PURE__ */ m(n, { children: [/* @__PURE__ */ m(i, {
|
|
115
120
|
render: /* @__PURE__ */ p(t, {
|
|
116
121
|
type: "button",
|
|
@@ -141,4 +146,4 @@ function S({ name: a, logo: o, children: s, triggerLabel: c, className: l }) {
|
|
|
141
146
|
}) : null] });
|
|
142
147
|
}
|
|
143
148
|
//#endregion
|
|
144
|
-
export { _ as AppShell,
|
|
149
|
+
export { _ as AppShell, S as AppSidebar, C as AppSidebarWorkspace, v as AppTopBar };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type ApprovalCardProps = Omit<React.ComponentProps<'article'>, 'title'> & {
|
|
3
|
+
/** A small line above the title naming where the request comes from. */
|
|
4
|
+
eyebrow?: React.ReactNode;
|
|
5
|
+
/** What the owner is asked to do. */
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
/** One muted line saying why. */
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
/** The primary action at the right, usually a `Button`. */
|
|
10
|
+
action?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A request waiting for the owner, as in a "For your approval" list: an
|
|
14
|
+
* eyebrow, a title, one muted line, and the action at the right. `children`
|
|
15
|
+
* sit under the description, for a preview or extra detail.
|
|
16
|
+
*/
|
|
17
|
+
declare function ApprovalCard({ eyebrow, title, description, action, className, children, ...props }: ApprovalCardProps): React.JSX.Element;
|
|
18
|
+
export { ApprovalCard, type ApprovalCardProps };
|
|
19
|
+
//# sourceMappingURL=approval-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-card.d.ts","sourceRoot":"","sources":["../../../src/components/approval-card/approval-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,GAAG;IACxE,wEAAwE;IACxE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,qCAAqC;IACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iCAAiC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EACpB,OAAO,EACP,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAiDnB;AAED,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/approval-card/approval-card.tsx
|
|
5
|
+
function i({ eyebrow: i, title: a, description: o, action: s, className: c, children: l, ...u }) {
|
|
6
|
+
let d = t.useId();
|
|
7
|
+
return /* @__PURE__ */ r("article", {
|
|
8
|
+
"data-slot": "approval-card",
|
|
9
|
+
"aria-labelledby": d,
|
|
10
|
+
className: e("flex flex-col gap-4 rounded-xl border border-border-subtle bg-card p-4 text-card-foreground sm:flex-row sm:items-center sm:gap-6", c),
|
|
11
|
+
...u,
|
|
12
|
+
children: [/* @__PURE__ */ r("div", {
|
|
13
|
+
"data-slot": "approval-card-content",
|
|
14
|
+
className: "min-w-0 flex-1",
|
|
15
|
+
children: [
|
|
16
|
+
i ? /* @__PURE__ */ n("p", {
|
|
17
|
+
"data-slot": "approval-card-eyebrow",
|
|
18
|
+
className: "type-meta text-muted-foreground",
|
|
19
|
+
children: i
|
|
20
|
+
}) : null,
|
|
21
|
+
/* @__PURE__ */ n("h3", {
|
|
22
|
+
id: d,
|
|
23
|
+
"data-slot": "approval-card-title",
|
|
24
|
+
className: "type-item-title font-medium",
|
|
25
|
+
children: a
|
|
26
|
+
}),
|
|
27
|
+
o ? /* @__PURE__ */ n("p", {
|
|
28
|
+
"data-slot": "approval-card-description",
|
|
29
|
+
className: "type-body mt-1 text-muted-foreground",
|
|
30
|
+
children: o
|
|
31
|
+
}) : null,
|
|
32
|
+
l
|
|
33
|
+
]
|
|
34
|
+
}), s ? /* @__PURE__ */ n("div", {
|
|
35
|
+
"data-slot": "approval-card-action",
|
|
36
|
+
className: "flex flex-none items-center gap-2",
|
|
37
|
+
children: s
|
|
38
|
+
}) : null]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { i as ApprovalCard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/approval-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type FilterChipOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
/** Shown after the label, such as how many rows the filter keeps. */
|
|
6
|
+
count?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type FilterChipsProps = Omit<React.ComponentProps<'div'>, 'onChange' | 'defaultValue'> & {
|
|
10
|
+
options: readonly FilterChipOption[];
|
|
11
|
+
/** The selected option's value. One option is always selected. */
|
|
12
|
+
value: string;
|
|
13
|
+
onValueChange: (value: string) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A single-select row of rounded filter chips, such as All, Connected and
|
|
18
|
+
* Email above a list. The selected chip is filled with the foreground color.
|
|
19
|
+
* Arrow keys move between chips; picking the selected chip again keeps it.
|
|
20
|
+
*/
|
|
21
|
+
declare function FilterChips({ options, value, onValueChange, disabled, className, 'aria-label': ariaLabel, ...props }: FilterChipsProps): React.JSX.Element;
|
|
22
|
+
export { FilterChips, type FilterChipOption, type FilterChipsProps };
|
|
23
|
+
//# sourceMappingURL=filter-chips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-chips.d.ts","sourceRoot":"","sources":["../../../src/components/filter-chips/filter-chips.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,KAAK,gBAAgB,GAAG,IAAI,CAC1B,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC3B,UAAU,GAAG,cAAc,CAC5B,GAAG;IACF,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACpC,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,EACnB,OAAO,EACP,KAAK,EACL,aAAa,EACb,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAoB,EAClC,GAAG,KAAK,EACT,EAAE,gBAAgB,qBAgClB;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
|
+
import { Toggle as r } from "@base-ui/react/toggle";
|
|
6
|
+
import { ToggleGroup as i } from "@base-ui/react/toggle-group";
|
|
7
|
+
//#region src/components/filter-chips/filter-chips.tsx
|
|
8
|
+
function a({ options: a, value: o, onValueChange: s, disabled: c, className: l, "aria-label": u = "Filter", ...d }) {
|
|
9
|
+
return /* @__PURE__ */ t(i, {
|
|
10
|
+
"data-slot": "filter-chips",
|
|
11
|
+
"aria-label": u,
|
|
12
|
+
value: [o],
|
|
13
|
+
onValueChange: (e) => {
|
|
14
|
+
let t = e[0];
|
|
15
|
+
t !== void 0 && t !== o && s(t);
|
|
16
|
+
},
|
|
17
|
+
disabled: c,
|
|
18
|
+
className: e("flex flex-wrap items-center gap-2", l),
|
|
19
|
+
...d,
|
|
20
|
+
children: a.map((e) => /* @__PURE__ */ n(r, {
|
|
21
|
+
value: e.value,
|
|
22
|
+
disabled: e.disabled,
|
|
23
|
+
"data-slot": "filter-chip",
|
|
24
|
+
className: "type-body inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-full border border-border bg-card px-3.5 whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-surface-subtle hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-pressed:border-foreground data-pressed:bg-foreground data-pressed:text-background",
|
|
25
|
+
children: [e.label, e.count === void 0 ? null : /* @__PURE__ */ t("span", {
|
|
26
|
+
"data-slot": "filter-chip-count",
|
|
27
|
+
className: "opacity-70",
|
|
28
|
+
children: e.count
|
|
29
|
+
})]
|
|
30
|
+
}, e.value))
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as FilterChips };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/filter-chips/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -10,7 +10,7 @@ declare const itemVariants: (props?: ({
|
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<'div'> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
12
12
|
declare const itemMediaVariants: (props?: ({
|
|
13
|
-
variant?: "image" | "default" | "icon" | "photo" | null | undefined;
|
|
13
|
+
variant?: "image" | "default" | "icon" | "photo" | "tile" | null | undefined;
|
|
14
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
15
|
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
|
|
16
16
|
declare function ItemContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/item/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK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
24
24
|
}
|
|
25
|
-
var c = n("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted", {
|
|
25
|
+
var c = n("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted [button]:cursor-pointer [button]:text-left [button]:transition-colors [button]:hover:bg-muted [button]:disabled:pointer-events-none [button]:disabled:opacity-50", {
|
|
26
26
|
variants: {
|
|
27
27
|
variant: {
|
|
28
28
|
default: "border-transparent",
|
|
@@ -61,7 +61,8 @@ var u = n("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=
|
|
|
61
61
|
default: "bg-transparent",
|
|
62
62
|
icon: "[--icon-stroke-width:var(--icon-stroke-16)] [&_svg:not([class*='size-'])]:size-4",
|
|
63
63
|
image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover",
|
|
64
|
-
photo: "size-13 overflow-hidden rounded-sm bg-surface-subtle [&_img]:size-full [&_img]:object-cover"
|
|
64
|
+
photo: "size-13 overflow-hidden rounded-sm bg-surface-subtle [&_img]:size-full [&_img]:object-cover",
|
|
65
|
+
tile: "size-9 rounded-md border border-border-subtle bg-card [--icon-stroke-width:var(--icon-stroke-18)] [&_svg:not([class*='size-'])]:size-[18px]"
|
|
65
66
|
} },
|
|
66
67
|
defaultVariants: { variant: "default" }
|
|
67
68
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Platform } from './platform-icon';
|
|
2
|
+
/** The social channels that have a chart color (ADR 0026). */
|
|
3
|
+
type Channel = Extract<Platform, 'x' | 'threads' | 'instagram' | 'facebook' | 'bluesky' | 'linkedin' | 'tiktok' | 'youtube' | 'google' | 'beehiiv' | 'reddit'>;
|
|
4
|
+
declare const CHANNELS: readonly Channel[];
|
|
5
|
+
type ChannelColor = {
|
|
6
|
+
/** The series color, for bars, lines and legend swatches. */
|
|
7
|
+
color: string;
|
|
8
|
+
/** Readable text on `tint`, such as a pressed series toggle. */
|
|
9
|
+
foreground: string;
|
|
10
|
+
/** The 10% tint (16% in dark mode). */
|
|
11
|
+
tint: string;
|
|
12
|
+
};
|
|
13
|
+
declare const CHANNEL_COLOR: Record<Channel, ChannelColor>;
|
|
14
|
+
export { CHANNELS, CHANNEL_COLOR, type Channel, type ChannelColor };
|
|
15
|
+
//# sourceMappingURL=channel-color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-color.d.ts","sourceRoot":"","sources":["../../../src/components/platform-icon/channel-color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,8DAA8D;AAC9D,KAAK,OAAO,GAAG,OAAO,CACpB,QAAQ,EACN,GAAG,GACH,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,UAAU,GACV,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,CACX,CAAA;AAED,QAAA,MAAM,QAAQ,EAAE,SAAS,OAAO,EAY/B,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;IACb,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAOD,QAAA,MAAM,aAAa,EASd,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/components/platform-icon/channel-color.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"x",
|
|
4
|
+
"threads",
|
|
5
|
+
"instagram",
|
|
6
|
+
"facebook",
|
|
7
|
+
"bluesky",
|
|
8
|
+
"linkedin",
|
|
9
|
+
"tiktok",
|
|
10
|
+
"youtube",
|
|
11
|
+
"google",
|
|
12
|
+
"beehiiv",
|
|
13
|
+
"reddit"
|
|
14
|
+
], t = Object.fromEntries(e.map((e) => [e, {
|
|
15
|
+
color: `var(--channel-${e})`,
|
|
16
|
+
foreground: `var(--channel-${e}-foreground)`,
|
|
17
|
+
tint: `var(--channel-${e}-soft)`
|
|
18
|
+
}]));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as CHANNELS, t as CHANNEL_COLOR };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/platform-icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/platform-icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type Platform = 'x' | 'threads' | 'instagram' | 'facebook' | 'bluesky' | 'linkedin' | 'tiktok' | 'youtube' | 'google' | 'beehiiv' | 'reddit';
|
|
2
|
+
type Platform = 'x' | 'threads' | 'instagram' | 'facebook' | 'bluesky' | 'linkedin' | 'tiktok' | 'youtube' | 'google' | 'beehiiv' | 'reddit' | 'gmail' | 'outlook' | 'microsoft' | 'email' | 'phone';
|
|
3
3
|
declare const PLATFORMS: readonly Platform[];
|
|
4
4
|
declare const PLATFORM_COLOR: Record<Platform, string>;
|
|
5
5
|
declare const PLATFORM_LABEL: Record<Platform, string>;
|
|
@@ -20,6 +20,11 @@ declare const BrandBluesky: BrandIcon;
|
|
|
20
20
|
declare const BrandInstagram: BrandIcon;
|
|
21
21
|
declare const BrandGoogle: BrandIcon;
|
|
22
22
|
declare const BrandBeehiiv: BrandIcon;
|
|
23
|
+
declare const BrandGmail: BrandIcon;
|
|
24
|
+
declare const BrandOutlook: BrandIcon;
|
|
25
|
+
declare const BrandMicrosoft: BrandIcon;
|
|
26
|
+
declare const BrandEmail: BrandIcon;
|
|
27
|
+
declare const BrandPhone: BrandIcon;
|
|
23
28
|
declare const PLATFORM_ICON: Record<Platform, BrandIcon>;
|
|
24
29
|
type PlatformIconProps = Omit<BrandIconProps, 'size'> & {
|
|
25
30
|
platform: Platform;
|
|
@@ -29,5 +34,5 @@ type PlatformIconProps = Omit<BrandIconProps, 'size'> & {
|
|
|
29
34
|
title?: string;
|
|
30
35
|
};
|
|
31
36
|
declare function PlatformIcon({ platform, size, className, style, ...props }: PlatformIconProps): React.JSX.Element;
|
|
32
|
-
export { PlatformIcon, PLATFORMS, PLATFORM_COLOR, PLATFORM_ICON, PLATFORM_LABEL, BrandX, BrandThreads, BrandInstagram, BrandFacebook, BrandBluesky, BrandLinkedin, BrandTiktok, BrandYoutube, BrandGoogle, BrandBeehiiv, BrandReddit, type BrandIcon, type BrandIconProps, type Platform, type PlatformIconProps, };
|
|
37
|
+
export { PlatformIcon, PLATFORMS, PLATFORM_COLOR, PLATFORM_ICON, PLATFORM_LABEL, BrandX, BrandThreads, BrandInstagram, BrandFacebook, BrandBluesky, BrandLinkedin, BrandTiktok, BrandYoutube, BrandGoogle, BrandBeehiiv, BrandReddit, BrandGmail, BrandOutlook, BrandMicrosoft, BrandEmail, BrandPhone, type BrandIcon, type BrandIconProps, type Platform, type PlatformIconProps, };
|
|
33
38
|
//# sourceMappingURL=platform-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-icon.d.ts","sourceRoot":"","sources":["../../../src/components/platform-icon/platform-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"platform-icon.d.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AM,WAAW,WAmBf,CAAA;AAGF,QAAA,MAAM,YAAY,WAYhB,CAAA;AAGF,QAAA,MAAM,UAAU,WAcd,CAAA;AAGF,QAAA,MAAM,YAAY,WA4BhB,CAAA;AAGF,QAAA,MAAM,cAAc,WAOlB,CAAA;AAGF,QAAA,MAAM,UAAU,WAAkD,CAAA;AAClE,QAAA,MAAM,UAAU,WAAmD,CAAA;AAEnE,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAiB9C,CAAA;AAED,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IACtD,QAAQ,EAAE,QAAQ,CAAA;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,IAAS,EACT,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAanB;AAED,OAAO,EACL,YAAY,EACZ,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,MAAM,EACN,YAAY,EACZ,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,GACvB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
import { IconBrandBluesky as a, IconBrandFacebookFilled as o, IconBrandLinkedinFilled as s, IconBrandReddit as c, IconBrandThreads as l, IconBrandTiktokFilled as u, IconBrandXFilled as d, IconBrandYoutubeFilled as f } from "@tabler/icons-react";
|
|
4
|
+
import { IconBrandBluesky as a, IconBrandFacebookFilled as o, IconBrandLinkedinFilled as s, IconBrandReddit as c, IconBrandThreads as l, IconBrandTiktokFilled as u, IconBrandXFilled as d, IconBrandYoutubeFilled as f, IconMail as p, IconPhone as m } from "@tabler/icons-react";
|
|
5
5
|
//#region src/components/platform-icon/platform-icon.tsx
|
|
6
|
-
var
|
|
6
|
+
var h = [
|
|
7
7
|
"x",
|
|
8
8
|
"threads",
|
|
9
9
|
"instagram",
|
|
@@ -14,20 +14,30 @@ var p = [
|
|
|
14
14
|
"youtube",
|
|
15
15
|
"google",
|
|
16
16
|
"beehiiv",
|
|
17
|
-
"reddit"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
"reddit",
|
|
18
|
+
"gmail",
|
|
19
|
+
"outlook",
|
|
20
|
+
"microsoft",
|
|
21
|
+
"email",
|
|
22
|
+
"phone"
|
|
23
|
+
], g = "var(--foreground, #000000)", _ = {
|
|
24
|
+
x: g,
|
|
25
|
+
threads: g,
|
|
21
26
|
instagram: "#E1306C",
|
|
22
27
|
facebook: "#1877F2",
|
|
23
28
|
bluesky: "#1185FE",
|
|
24
29
|
linkedin: "#0A66C2",
|
|
25
|
-
tiktok:
|
|
30
|
+
tiktok: g,
|
|
26
31
|
youtube: "#FF0000",
|
|
27
32
|
google: "#4285F4",
|
|
28
33
|
beehiiv: "#FFC300",
|
|
29
|
-
reddit: "#FF4500"
|
|
30
|
-
|
|
34
|
+
reddit: "#FF4500",
|
|
35
|
+
gmail: "#EA4335",
|
|
36
|
+
outlook: "#0078D4",
|
|
37
|
+
microsoft: "#00A4EF",
|
|
38
|
+
email: g,
|
|
39
|
+
phone: g
|
|
40
|
+
}, v = {
|
|
31
41
|
x: "X",
|
|
32
42
|
threads: "Threads",
|
|
33
43
|
instagram: "Instagram",
|
|
@@ -38,20 +48,25 @@ var p = [
|
|
|
38
48
|
youtube: "YouTube",
|
|
39
49
|
google: "Google",
|
|
40
50
|
beehiiv: "beehiiv",
|
|
41
|
-
reddit: "Reddit"
|
|
51
|
+
reddit: "Reddit",
|
|
52
|
+
gmail: "Gmail",
|
|
53
|
+
outlook: "Outlook",
|
|
54
|
+
microsoft: "Microsoft",
|
|
55
|
+
email: "Email",
|
|
56
|
+
phone: "Phone"
|
|
42
57
|
};
|
|
43
|
-
function
|
|
58
|
+
function y(e) {
|
|
44
59
|
return e ? {
|
|
45
60
|
role: "img",
|
|
46
61
|
"aria-label": e
|
|
47
62
|
} : { "aria-hidden": !0 };
|
|
48
63
|
}
|
|
49
|
-
function
|
|
64
|
+
function b(e, n, i, a) {
|
|
50
65
|
let o = e, s = t.forwardRef(({ style: e, title: t, ...s }, c) => /* @__PURE__ */ r(o, {
|
|
51
66
|
ref: c,
|
|
52
67
|
"data-platform-mark": i,
|
|
53
68
|
...a ? { fill: a } : {},
|
|
54
|
-
...
|
|
69
|
+
...y(t),
|
|
55
70
|
...s,
|
|
56
71
|
style: {
|
|
57
72
|
...e,
|
|
@@ -60,8 +75,8 @@ function v(e, n, i, a) {
|
|
|
60
75
|
}));
|
|
61
76
|
return s.displayName = `Brand${i}`, s;
|
|
62
77
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
78
|
+
var x = b(d, _.x, "X"), S = b(l, _.threads, "Threads"), C = b(o, _.facebook, "Facebook"), w = b(s, _.linkedin, "Linkedin"), T = b(u, _.tiktok, "Tiktok"), E = b(f, _.youtube, "Youtube"), D = b(c, _.reddit, "Reddit"), O = b(a, _.bluesky, "Bluesky", _.bluesky);
|
|
79
|
+
function k(e, n, i) {
|
|
65
80
|
let a = t.forwardRef(({ size: a = 24, title: o, className: s, style: c, ...l }, u) => {
|
|
66
81
|
let d = `${e.toLowerCase()}${t.useId().replace(/:/g, "")}`;
|
|
67
82
|
return /* @__PURE__ */ r("svg", {
|
|
@@ -73,14 +88,14 @@ function D(e, n, i) {
|
|
|
73
88
|
"data-platform-mark": e,
|
|
74
89
|
className: s,
|
|
75
90
|
style: c,
|
|
76
|
-
...
|
|
91
|
+
...y(o),
|
|
77
92
|
...l,
|
|
78
93
|
children: i(d)
|
|
79
94
|
});
|
|
80
95
|
});
|
|
81
96
|
return a.displayName = `Brand${e}`, a;
|
|
82
97
|
}
|
|
83
|
-
var
|
|
98
|
+
var A = k("Instagram", "0 0 24 24", (e) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ i("radialGradient", {
|
|
84
99
|
id: e,
|
|
85
100
|
cx: "0.3",
|
|
86
101
|
cy: "1.07",
|
|
@@ -110,7 +125,7 @@ var O = D("Instagram", "0 0 24 24", (e) => /* @__PURE__ */ i(n, { children: [/*
|
|
|
110
125
|
}) }), /* @__PURE__ */ r("path", {
|
|
111
126
|
fill: `url(#${e})`,
|
|
112
127
|
d: "M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1"
|
|
113
|
-
})] })),
|
|
128
|
+
})] })), j = k("Google", "-2 -2 52 52", () => /* @__PURE__ */ i(n, { children: [
|
|
114
129
|
/* @__PURE__ */ r("path", {
|
|
115
130
|
fill: "#EA4335",
|
|
116
131
|
d: "M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"
|
|
@@ -127,31 +142,119 @@ var O = D("Instagram", "0 0 24 24", (e) => /* @__PURE__ */ i(n, { children: [/*
|
|
|
127
142
|
fill: "#34A853",
|
|
128
143
|
d: "M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"
|
|
129
144
|
})
|
|
130
|
-
] })),
|
|
145
|
+
] })), M = k("Beehiiv", "0 0 24 24", () => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("rect", {
|
|
131
146
|
x: "2",
|
|
132
147
|
y: "2",
|
|
133
148
|
width: "20",
|
|
134
149
|
height: "20",
|
|
135
150
|
rx: "5",
|
|
136
|
-
fill:
|
|
151
|
+
fill: _.beehiiv
|
|
137
152
|
}), /* @__PURE__ */ r("path", {
|
|
138
153
|
fill: "#111111",
|
|
139
154
|
d: "M12 6.5l4.76 2.75v5.5L12 17.5l-4.76-2.75v-5.5z"
|
|
140
|
-
})] })),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
})] })), N = k("Gmail", "-2 -7 56 56", () => /* @__PURE__ */ i(n, { children: [
|
|
156
|
+
/* @__PURE__ */ r("path", {
|
|
157
|
+
fill: "#4285F4",
|
|
158
|
+
d: "M3.5 42h8V22.6L0 13.9v24.6C0 40.4 1.6 42 3.5 42z"
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ r("path", {
|
|
161
|
+
fill: "#34A853",
|
|
162
|
+
d: "M40.5 42h8c1.9 0 3.5-1.6 3.5-3.5V13.9l-11.5 8.6z"
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ r("path", {
|
|
165
|
+
fill: "#FBBC04",
|
|
166
|
+
d: "M40.5 7.6v14.9L52 13.9V9.3c0-4.3-4.9-6.7-8.3-4.2z"
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ r("path", {
|
|
169
|
+
fill: "#EA4335",
|
|
170
|
+
d: "M11.5 22.6V7.6L26 18.5l14.5-10.9v14.9L26 33.4z"
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ r("path", {
|
|
173
|
+
fill: "#C5221F",
|
|
174
|
+
d: "M0 9.3v4.6l11.5 8.6V7.6L8.3 5.2C4.9 2.6 0 5.1 0 9.3z"
|
|
175
|
+
})
|
|
176
|
+
] })), P = k("Outlook", "0 0 24 24", () => /* @__PURE__ */ i(n, { children: [
|
|
177
|
+
/* @__PURE__ */ r("rect", {
|
|
178
|
+
x: "8",
|
|
179
|
+
y: "5",
|
|
180
|
+
width: "14",
|
|
181
|
+
height: "14",
|
|
182
|
+
rx: "2",
|
|
183
|
+
fill: "#28A8EA"
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ r("path", {
|
|
186
|
+
d: "M8.5 8.5l6.75 4.5 6.25-4.5",
|
|
187
|
+
fill: "none",
|
|
188
|
+
stroke: "#FFFFFF",
|
|
189
|
+
strokeWidth: "1.2",
|
|
190
|
+
strokeLinejoin: "round"
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ r("rect", {
|
|
193
|
+
x: "2",
|
|
194
|
+
y: "3",
|
|
195
|
+
width: "12",
|
|
196
|
+
height: "18",
|
|
197
|
+
rx: "2",
|
|
198
|
+
fill: _.outlook
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ r("ellipse", {
|
|
201
|
+
cx: "8",
|
|
202
|
+
cy: "12",
|
|
203
|
+
rx: "2.9",
|
|
204
|
+
ry: "3.6",
|
|
205
|
+
fill: "none",
|
|
206
|
+
stroke: "#FFFFFF",
|
|
207
|
+
strokeWidth: "1.8"
|
|
208
|
+
})
|
|
209
|
+
] })), F = k("Microsoft", "0 0 24 24", () => /* @__PURE__ */ i(n, { children: [
|
|
210
|
+
/* @__PURE__ */ r("rect", {
|
|
211
|
+
x: "2.5",
|
|
212
|
+
y: "2.5",
|
|
213
|
+
width: "9",
|
|
214
|
+
height: "9",
|
|
215
|
+
fill: "#F25022"
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ r("rect", {
|
|
218
|
+
x: "12.5",
|
|
219
|
+
y: "2.5",
|
|
220
|
+
width: "9",
|
|
221
|
+
height: "9",
|
|
222
|
+
fill: "#7FBA00"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ r("rect", {
|
|
225
|
+
x: "2.5",
|
|
226
|
+
y: "12.5",
|
|
227
|
+
width: "9",
|
|
228
|
+
height: "9",
|
|
229
|
+
fill: "#00A4EF"
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ r("rect", {
|
|
232
|
+
x: "12.5",
|
|
233
|
+
y: "12.5",
|
|
234
|
+
width: "9",
|
|
235
|
+
height: "9",
|
|
236
|
+
fill: "#FFB900"
|
|
237
|
+
})
|
|
238
|
+
] })), I = b(p, _.email, "Email"), L = b(m, _.phone, "Phone"), R = {
|
|
239
|
+
x,
|
|
240
|
+
threads: S,
|
|
241
|
+
instagram: A,
|
|
242
|
+
facebook: C,
|
|
243
|
+
bluesky: O,
|
|
244
|
+
linkedin: w,
|
|
245
|
+
tiktok: T,
|
|
246
|
+
youtube: E,
|
|
247
|
+
google: j,
|
|
248
|
+
beehiiv: M,
|
|
249
|
+
reddit: D,
|
|
250
|
+
gmail: N,
|
|
251
|
+
outlook: P,
|
|
252
|
+
microsoft: F,
|
|
253
|
+
email: I,
|
|
254
|
+
phone: L
|
|
152
255
|
};
|
|
153
|
-
function
|
|
154
|
-
let s =
|
|
256
|
+
function z({ platform: t, size: n = 16, className: i, style: a, ...o }) {
|
|
257
|
+
let s = R[t];
|
|
155
258
|
return /* @__PURE__ */ r(s, {
|
|
156
259
|
"data-slot": "platform-icon",
|
|
157
260
|
"data-platform": t,
|
|
@@ -166,4 +269,4 @@ function M({ platform: t, size: n = 16, className: i, style: a, ...o }) {
|
|
|
166
269
|
});
|
|
167
270
|
}
|
|
168
271
|
//#endregion
|
|
169
|
-
export {
|
|
272
|
+
export { M as BrandBeehiiv, O as BrandBluesky, I as BrandEmail, C as BrandFacebook, N as BrandGmail, j as BrandGoogle, A as BrandInstagram, w as BrandLinkedin, F as BrandMicrosoft, P as BrandOutlook, L as BrandPhone, D as BrandReddit, S as BrandThreads, T as BrandTiktok, x as BrandX, E as BrandYoutube, h as PLATFORMS, _ as PLATFORM_COLOR, R as PLATFORM_ICON, v as PLATFORM_LABEL, z as PlatformIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/status-indicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* - `success`: working, such as a connected account.
|
|
5
|
+
* - `warning`: working but needs the owner.
|
|
6
|
+
* - `danger`: broken or failed.
|
|
7
|
+
* - `neutral`: off or not started.
|
|
8
|
+
* - `none`: no dot, for a plain state such as "Not set up".
|
|
9
|
+
*/
|
|
10
|
+
type StatusTone = 'success' | 'warning' | 'danger' | 'neutral' | 'none';
|
|
11
|
+
declare const statusDotVariants: (props?: ({
|
|
12
|
+
tone?: "none" | "success" | "warning" | "neutral" | "danger" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
type StatusIndicatorProps = React.ComponentProps<'span'> & VariantProps<typeof statusDotVariants>;
|
|
15
|
+
/**
|
|
16
|
+
* A state in words with a small colored dot before it, such as "Connected" or
|
|
17
|
+
* "Needs attention". The label carries the meaning; the dot is decorative.
|
|
18
|
+
*/
|
|
19
|
+
declare function StatusIndicator({ tone, className, children, ...props }: StatusIndicatorProps): React.JSX.Element;
|
|
20
|
+
export { StatusIndicator, statusDotVariants, type StatusIndicatorProps, type StatusTone, };
|
|
21
|
+
//# sourceMappingURL=status-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-indicator.d.ts","sourceRoot":"","sources":["../../../src/components/status-indicator/status-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE;;;;;;GAMG;AACH,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;AAEvE,QAAA,MAAM,iBAAiB;;8EAWrB,CAAA;AAEF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GACtD,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAExC;;;GAGG;AACH,iBAAS,eAAe,CAAC,EACvB,IAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAmBtB;AAED,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,KAAK,UAAU,GAChB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cva as t } from "class-variance-authority";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/status-indicator/status-indicator.tsx
|
|
6
|
+
var i = t("size-1.5 flex-none rounded-full", {
|
|
7
|
+
variants: { tone: {
|
|
8
|
+
success: "bg-success",
|
|
9
|
+
warning: "bg-warning",
|
|
10
|
+
danger: "bg-destructive",
|
|
11
|
+
neutral: "bg-muted-foreground/50",
|
|
12
|
+
none: "hidden"
|
|
13
|
+
} },
|
|
14
|
+
defaultVariants: { tone: "neutral" }
|
|
15
|
+
});
|
|
16
|
+
function a({ tone: t = "neutral", className: a, children: o, ...s }) {
|
|
17
|
+
return /* @__PURE__ */ r("span", {
|
|
18
|
+
"data-slot": "status-indicator",
|
|
19
|
+
"data-tone": t,
|
|
20
|
+
className: e("type-body inline-flex flex-none items-center gap-1.5 whitespace-nowrap text-muted-foreground", a),
|
|
21
|
+
...s,
|
|
22
|
+
children: [/* @__PURE__ */ n("span", {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
"data-slot": "status-indicator-dot",
|
|
25
|
+
className: i({ tone: t })
|
|
26
|
+
}), o]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as StatusIndicator, i as statusDotVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './components/accordion';
|
|
|
8
8
|
export * from './components/alert';
|
|
9
9
|
export * from './components/alert-dialog';
|
|
10
10
|
export * from './components/app-shell';
|
|
11
|
+
export * from './components/approval-card';
|
|
11
12
|
export * from './components/aspect-ratio';
|
|
12
13
|
export * from './components/attachment';
|
|
13
14
|
export * from './components/avatar';
|
|
@@ -31,6 +32,7 @@ export * from './components/dropdown-menu';
|
|
|
31
32
|
export * from './components/editable-text';
|
|
32
33
|
export * from './components/empty';
|
|
33
34
|
export * from './components/face-stack-button';
|
|
35
|
+
export * from './components/filter-chips';
|
|
34
36
|
export * from './components/goal-card';
|
|
35
37
|
export * from './components/hover-card';
|
|
36
38
|
export * from './components/identity-mark';
|
|
@@ -61,6 +63,7 @@ export * from './components/slider';
|
|
|
61
63
|
export * from './components/source-avatar';
|
|
62
64
|
export * from './components/spinner';
|
|
63
65
|
export * from './components/state-banner';
|
|
66
|
+
export * from './components/status-indicator';
|
|
64
67
|
export * from './components/suggest-chips';
|
|
65
68
|
export * from './components/stacked-bar-chart';
|
|
66
69
|
export * from './components/switch';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,IAAI,EACJ,UAAU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
CHANGED
|
@@ -14,62 +14,66 @@ import { Skeleton as pe } from "./components/skeleton/skeleton.js";
|
|
|
14
14
|
import { Tooltip as me, TooltipContent as he, TooltipProvider as ge, TooltipTrigger as _e } from "./components/tooltip/tooltip.js";
|
|
15
15
|
import { Sidebar as ve, SidebarContent as ye, SidebarFooter as be, SidebarGroup as xe, SidebarGroupAction as Se, SidebarGroupContent as Ce, SidebarGroupLabel as we, SidebarHeader as Te, SidebarInput as Ee, SidebarInset as De, SidebarMenu as Oe, SidebarMenuAction as ke, SidebarMenuBadge as Ae, SidebarMenuButton as je, SidebarMenuItem as Me, SidebarMenuSkeleton as Ne, SidebarMenuSub as Pe, SidebarMenuSubButton as Fe, SidebarMenuSubItem as Ie, SidebarProvider as Le, SidebarRail as Re, SidebarSeparator as ze, SidebarTrigger as Be, useSidebar as Ve } from "./components/sidebar/sidebar.js";
|
|
16
16
|
import { AppShell as He, AppSidebar as Ue, AppSidebarWorkspace as We, AppTopBar as Ge } from "./components/app-shell/app-shell.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
|
|
17
|
+
import { ApprovalCard as Ke } from "./components/approval-card/approval-card.js";
|
|
18
|
+
import { AspectRatio as qe } from "./components/aspect-ratio/aspect-ratio.js";
|
|
19
|
+
import { Attachment as Je, AttachmentAction as Ye, AttachmentActions as Xe, AttachmentContent as Ze, AttachmentDescription as Qe, AttachmentGroup as $e, AttachmentMedia as et, AttachmentTitle as tt, AttachmentTrigger as nt } from "./components/attachment/attachment.js";
|
|
20
|
+
import { Avatar as rt, AvatarBadge as it, AvatarFallback as at, AvatarGroup as ot, AvatarGroupCount as st, AvatarImage as ct } from "./components/avatar/avatar.js";
|
|
21
|
+
import { Badge as lt, badgeVariants as ut } from "./components/badge/badge.js";
|
|
22
|
+
import { Breadcrumb as dt, BreadcrumbEllipsis as ft, BreadcrumbItem as pt, BreadcrumbLink as mt, BreadcrumbList as ht, BreadcrumbPage as gt, BreadcrumbSeparator as _t } from "./components/breadcrumb/breadcrumb.js";
|
|
23
|
+
import { Bubble as vt, BubbleContent as yt, BubbleGroup as bt, BubbleReactions as xt } from "./components/bubble/bubble.js";
|
|
24
|
+
import { ButtonGroup as St, ButtonGroupSeparator as Ct, ButtonGroupText as wt, buttonGroupVariants as Tt } from "./components/button-group/button-group.js";
|
|
25
|
+
import { Calendar as Et, CalendarDayButton as Dt } from "./components/calendar/calendar.js";
|
|
26
|
+
import { Carousel as Ot, CarouselContent as kt, CarouselItem as At, CarouselNext as jt, CarouselPrevious as Mt, useCarousel as Nt } from "./components/carousel/carousel.js";
|
|
27
|
+
import { ChartContainer as Pt, ChartLegend as Ft, ChartLegendContent as It, ChartStyle as Lt, ChartTooltip as Rt, ChartTooltipContent as zt } from "./components/chart/chart.js";
|
|
28
|
+
import { ChatBar as Bt, chatBarFormVariants as Vt } from "./components/chat-bar/chat-bar.js";
|
|
29
|
+
import { Checkbox as Ht } from "./components/checkbox/checkbox.js";
|
|
30
|
+
import { Collapsible as Ut, CollapsibleContent as Wt, CollapsibleTrigger as Gt } from "./components/collapsible/collapsible.js";
|
|
31
|
+
import { Textarea as Kt } from "./components/textarea/textarea.js";
|
|
32
|
+
import { InputGroup as qt, InputGroupAddon as Jt, InputGroupButton as Yt, InputGroupInput as Xt, InputGroupText as Zt, InputGroupTextarea as Qt } from "./components/input-group/input-group.js";
|
|
33
|
+
import { Combobox as $t, ComboboxChip as en, ComboboxChips as tn, ComboboxChipsInput as nn, ComboboxCollection as rn, ComboboxContent as an, ComboboxEmpty as on, ComboboxGroup as sn, ComboboxInput as cn, ComboboxItem as ln, ComboboxLabel as un, ComboboxList as dn, ComboboxSeparator as fn, ComboboxTrigger as pn, ComboboxValue as mn, useComboboxAnchor as hn } from "./components/combobox/combobox.js";
|
|
34
|
+
import { Table as gn, TableBody as _n, TableCaption as vn, TableCell as yn, TableFooter as bn, TableHead as xn, TableHeader as Sn, TableRow as Cn } from "./components/table/table.js";
|
|
35
|
+
import { DataTable as wn } from "./components/data-table/data-table.js";
|
|
36
|
+
import { Popover as Tn, PopoverContent as En, PopoverDescription as Dn, PopoverHeader as On, PopoverTitle as kn, PopoverTrigger as An } from "./components/popover/popover.js";
|
|
37
|
+
import { DatePicker as jn } from "./components/date-picker/date-picker.js";
|
|
38
|
+
import { DenseTable as Mn, DenseTableCell as Nn, DenseTableRow as Pn } from "./components/dense-table/dense-table.js";
|
|
39
|
+
import { Dialog as Fn, DialogClose as In, DialogContent as Ln, DialogDescription as Rn, DialogFooter as zn, DialogHeader as Bn, DialogOverlay as Vn, DialogPortal as Hn, DialogTitle as Un, DialogTrigger as Wn } from "./components/dialog/dialog.js";
|
|
40
|
+
import { Drawer as Gn, DrawerClose as Kn, DrawerContent as qn, DrawerDescription as Jn, DrawerFooter as Yn, DrawerHeader as Xn, DrawerOverlay as Zn, DrawerPortal as Qn, DrawerSwipeHandle as $n, DrawerTitle as er, DrawerTrigger as tr } from "./components/drawer/drawer.js";
|
|
41
|
+
import { EditableText as nr } from "./components/editable-text/editable-text.js";
|
|
42
|
+
import { Empty as rr, EmptyContent as ir, EmptyDescription as ar, EmptyHeader as or, EmptyMedia as sr, EmptyTitle as cr } from "./components/empty/empty.js";
|
|
43
|
+
import { BrandBeehiiv as lr, BrandBluesky as ur, BrandEmail as dr, BrandFacebook as fr, BrandGmail as pr, BrandGoogle as mr, BrandInstagram as hr, BrandLinkedin as gr, BrandMicrosoft as _r, BrandOutlook as vr, BrandPhone as yr, BrandReddit as br, BrandThreads as xr, BrandTiktok as Sr, BrandX as Cr, BrandYoutube as wr, PLATFORMS as Tr, PLATFORM_COLOR as Er, PLATFORM_ICON as Dr, PLATFORM_LABEL as Or, PlatformIcon as kr } from "./components/platform-icon/platform-icon.js";
|
|
44
|
+
import { PlatformAvatar as Ar } from "./components/platform-avatar/platform-avatar.js";
|
|
45
|
+
import { FaceStackButton as jr } from "./components/face-stack-button/face-stack-button.js";
|
|
46
|
+
import { FilterChips as Mr } from "./components/filter-chips/filter-chips.js";
|
|
47
|
+
import { Progress as Nr, ProgressIndicator as Pr, ProgressLabel as Fr, ProgressTrack as Ir, ProgressValue as Lr } from "./components/progress/progress.js";
|
|
48
|
+
import { GoalCard as Rr, PaceBadge as zr, PaceMeter as Br, paceStatusOf as Vr } from "./components/goal-card/goal-card.js";
|
|
49
|
+
import { HoverCard as Hr, HoverCardContent as Ur, HoverCardTrigger as Wr } from "./components/hover-card/hover-card.js";
|
|
50
|
+
import { IdentityMark as Gr, IdentityMarkImage as Kr } from "./components/identity-mark/identity-mark.js";
|
|
51
|
+
import { Item as qr, ItemActions as Jr, ItemContent as Yr, ItemDescription as Xr, ItemFooter as Zr, ItemGroup as Qr, ItemHeader as $r, ItemMedia as ei, ItemSeparator as ti, ItemTitle as ni } from "./components/item/item.js";
|
|
52
|
+
import { Marker as ri, MarkerContent as ii, MarkerIcon as ai, markerVariants as oi } from "./components/marker/marker.js";
|
|
53
|
+
import { MediaThumbnail as si, mediaThumbnailVariants as ci } from "./components/media-thumbnail/media-thumbnail.js";
|
|
54
|
+
import { Message as li, MessageAvatar as ui, MessageContent as di, MessageFooter as fi, MessageGroup as pi, MessageHeader as mi } from "./components/message/message.js";
|
|
55
|
+
import { MetricOverview as hi } from "./components/metric-overview/metric-overview.js";
|
|
56
|
+
import { MetricTile as gi, metricTileVariants as _i } from "./components/metric-tile/metric-tile.js";
|
|
57
|
+
import { NativeSelect as vi, NativeSelectOptGroup as yi, NativeSelectOption as bi } from "./components/native-select/native-select.js";
|
|
58
|
+
import { NavigationAction as xi, navigationActionVariants as Si } from "./components/navigation-action/navigation-action.js";
|
|
59
|
+
import { PageHeader as Ci } from "./components/page-header/page-header.js";
|
|
60
|
+
import { Pagination as wi, PaginationContent as Ti, PaginationEllipsis as Ei, PaginationItem as Di, PaginationLink as Oi, PaginationNext as ki, PaginationPrevious as Ai } from "./components/pagination/pagination.js";
|
|
61
|
+
import { CHANNELS as ji, CHANNEL_COLOR as Mi } from "./components/platform-icon/channel-color.js";
|
|
62
|
+
import { Questionnaire as Ni, QuestionnaireActions as Pi, QuestionnaireChoice as Fi, QuestionnaireChoiceDescription as Ii, QuestionnaireChoices as Li, QuestionnaireDescription as Ri, QuestionnaireError as zi, QuestionnaireInput as Bi, QuestionnaireItem as Vi, QuestionnaireNext as Hi, QuestionnairePrevious as Ui, QuestionnaireProgress as Wi, QuestionnaireSkip as Gi, QuestionnaireSubmit as Ki, QuestionnaireTitle as qi } from "./components/questionnaire/questionnaire.js";
|
|
63
|
+
import { RadioGroup as Ji, RadioGroupItem as Yi } from "./components/radio-group/radio-group.js";
|
|
64
|
+
import { ScrollArea as Xi, ScrollBar as Zi } from "./components/scroll-area/scroll-area.js";
|
|
65
|
+
import { Select as Qi, SelectContent as $i, SelectGroup as ea, SelectItem as ta, SelectLabel as na, SelectScrollDownButton as ra, SelectScrollUpButton as ia, SelectSeparator as aa, SelectTrigger as oa, SelectValue as sa } from "./components/select/select.js";
|
|
66
|
+
import { SignalDots as ca, SignalStrip as la } from "./components/signal-strip/signal-strip.js";
|
|
67
|
+
import { Slider as ua } from "./components/slider/slider.js";
|
|
68
|
+
import { SourceAvatar as da } from "./components/source-avatar/source-avatar.js";
|
|
69
|
+
import { Spinner as fa } from "./components/spinner/spinner.js";
|
|
70
|
+
import { StaleBanner as pa, StateBanner as ma, stateBannerVariants as ha } from "./components/state-banner/state-banner.js";
|
|
71
|
+
import { StatusIndicator as ga, statusDotVariants as _a } from "./components/status-indicator/status-indicator.js";
|
|
72
|
+
import { SuggestChips as va } from "./components/suggest-chips/suggest-chips.js";
|
|
73
|
+
import { Tabs as ya, TabsContent as ba, TabsList as xa, TabsTrigger as Sa, tabsListVariants as Ca } from "./components/tabs/tabs.js";
|
|
74
|
+
import { Toggle as wa, toggleVariants as Ta } from "./components/toggle/toggle.js";
|
|
75
|
+
import { StackedBarChart as Ea } from "./components/stacked-bar-chart/stacked-bar-chart.js";
|
|
76
|
+
import { Switch as Da } from "./components/switch/switch.js";
|
|
77
|
+
import { Toast as Oa, ToastAction as ka, ToastClose as Aa, ToastContent as ja, ToastDescription as Ma, ToastPortal as Na, ToastProvider as Pa, ToastTitle as Fa, ToastViewport as Ia, Toaster as La, createToastManager as Ra, toast as za, useToastManager as Ba } from "./components/toast/toast.js";
|
|
78
|
+
import { ToggleGroup as Va, ToggleGroupItem as Ha } from "./components/toggle-group/toggle-group.js";
|
|
79
|
+
export { w as Accordion, T as AccordionContent, E as AccordionItem, D as AccordionTrigger, O as Alert, k as AlertAction, A as AlertDescription, M as AlertDialog, N as AlertDialogAction, P as AlertDialogCancel, F as AlertDialogContent, I as AlertDialogDescription, L as AlertDialogFooter, R as AlertDialogHeader, z as AlertDialogMedia, B as AlertDialogOverlay, V as AlertDialogPortal, H as AlertDialogTitle, U as AlertDialogTrigger, j as AlertTitle, He as AppShell, Ue as AppSidebar, We as AppSidebarWorkspace, Ge as AppTopBar, Ke as ApprovalCard, qe as AspectRatio, Je as Attachment, Ye as AttachmentAction, Xe as AttachmentActions, Ze as AttachmentContent, Qe as AttachmentDescription, $e as AttachmentGroup, et as AttachmentMedia, tt as AttachmentTitle, nt as AttachmentTrigger, rt as Avatar, it as AvatarBadge, at as AvatarFallback, ot as AvatarGroup, st as AvatarGroupCount, ct as AvatarImage, lt as Badge, lr as BrandBeehiiv, ur as BrandBluesky, dr as BrandEmail, fr as BrandFacebook, pr as BrandGmail, mr as BrandGoogle, hr as BrandInstagram, gr as BrandLinkedin, _r as BrandMicrosoft, vr as BrandOutlook, yr as BrandPhone, br as BrandReddit, xr as BrandThreads, Sr as BrandTiktok, Cr as BrandX, wr as BrandYoutube, dt as Breadcrumb, ft as BreadcrumbEllipsis, pt as BreadcrumbItem, mt as BreadcrumbLink, ht as BreadcrumbList, gt as BreadcrumbPage, _t as BreadcrumbSeparator, vt as Bubble, yt as BubbleContent, bt as BubbleGroup, xt as BubbleReactions, t as Button, St as ButtonGroup, Ct as ButtonGroupSeparator, wt as ButtonGroupText, n as ButtonLabel, ji as CHANNELS, Mi as CHANNEL_COLOR, Et as Calendar, Dt as CalendarDayButton, i as Card, a as CardAction, o as CardContent, s as CardDescription, c as CardFooter, l as CardHeader, u as CardTitle, Ot as Carousel, kt as CarouselContent, At as CarouselItem, jt as CarouselNext, Mt as CarouselPrevious, Pt as ChartContainer, Ft as ChartLegend, It as ChartLegendContent, Lt as ChartStyle, Rt as ChartTooltip, zt as ChartTooltipContent, Bt as ChatBar, Ht as Checkbox, Ut as Collapsible, Wt as CollapsibleContent, Gt as CollapsibleTrigger, $t as Combobox, en as ComboboxChip, tn as ComboboxChips, nn as ComboboxChipsInput, rn as ComboboxCollection, an as ComboboxContent, on as ComboboxEmpty, sn as ComboboxGroup, cn as ComboboxInput, ln as ComboboxItem, un as ComboboxLabel, dn as ComboboxList, fn as ComboboxSeparator, pn as ComboboxTrigger, mn as ComboboxValue, wn as DataTable, jn as DatePicker, Mn as DenseTable, Nn as DenseTableCell, Pn as DenseTableRow, Fn as Dialog, In as DialogClose, Ln as DialogContent, Rn as DialogDescription, zn as DialogFooter, Bn as DialogHeader, Vn as DialogOverlay, Hn as DialogPortal, Un as DialogTitle, Wn as DialogTrigger, Gn as Drawer, Kn as DrawerClose, qn as DrawerContent, Jn as DrawerDescription, Yn as DrawerFooter, Xn as DrawerHeader, Zn as DrawerOverlay, Qn as DrawerPortal, $n as DrawerSwipeHandle, er as DrawerTitle, tr as DrawerTrigger, W as DropdownMenu, G as DropdownMenuCheckboxItem, K as DropdownMenuContent, q as DropdownMenuGroup, J as DropdownMenuItem, Y as DropdownMenuLabel, X as DropdownMenuPortal, Z as DropdownMenuRadioGroup, Q as DropdownMenuRadioItem, $ as DropdownMenuSeparator, ee as DropdownMenuShortcut, te as DropdownMenuSub, ne as DropdownMenuSubContent, re as DropdownMenuSubTrigger, ie as DropdownMenuTrigger, nr as EditableText, rr as Empty, ir as EmptyContent, ar as EmptyDescription, or as EmptyHeader, sr as EmptyMedia, cr as EmptyTitle, jr as FaceStackButton, p as Field, m as FieldContent, h as FieldDescription, g as FieldError, _ as FieldGroup, v as FieldLabel, y as FieldLegend, b as FieldSeparator, x as FieldSet, S as FieldTitle, Mr as FilterChips, Rr as GoalCard, Hr as HoverCard, Ur as HoverCardContent, Wr as HoverCardTrigger, Gr as IdentityMark, Kr as IdentityMarkImage, C as Input, qt as InputGroup, Jt as InputGroupAddon, Yt as InputGroupButton, Xt as InputGroupInput, Zt as InputGroupText, Qt as InputGroupTextarea, qr as Item, Jr as ItemActions, Yr as ItemContent, Xr as ItemDescription, Zr as ItemFooter, Qr as ItemGroup, $r as ItemHeader, ei as ItemMedia, ti as ItemSeparator, ni as ItemTitle, d as Label, ri as Marker, ii as MarkerContent, ai as MarkerIcon, si as MediaThumbnail, li as Message, ui as MessageAvatar, di as MessageContent, fi as MessageFooter, pi as MessageGroup, mi as MessageHeader, hi as MetricOverview, gi as MetricTile, vi as NativeSelect, yi as NativeSelectOptGroup, bi as NativeSelectOption, xi as NavigationAction, Tr as PLATFORMS, Er as PLATFORM_COLOR, Dr as PLATFORM_ICON, Or as PLATFORM_LABEL, zr as PaceBadge, Br as PaceMeter, Ci as PageHeader, wi as Pagination, Ti as PaginationContent, Ei as PaginationEllipsis, Di as PaginationItem, Oi as PaginationLink, ki as PaginationNext, Ai as PaginationPrevious, Ar as PlatformAvatar, kr as PlatformIcon, Tn as Popover, En as PopoverContent, Dn as PopoverDescription, On as PopoverHeader, kn as PopoverTitle, An as PopoverTrigger, Nr as Progress, Pr as ProgressIndicator, Fr as ProgressLabel, Ir as ProgressTrack, Lr as ProgressValue, Ni as Questionnaire, Pi as QuestionnaireActions, Fi as QuestionnaireChoice, Ii as QuestionnaireChoiceDescription, Li as QuestionnaireChoices, Ri as QuestionnaireDescription, zi as QuestionnaireError, Bi as QuestionnaireInput, Vi as QuestionnaireItem, Hi as QuestionnaireNext, Ui as QuestionnairePrevious, Wi as QuestionnaireProgress, Gi as QuestionnaireSkip, Ki as QuestionnaireSubmit, qi as QuestionnaireTitle, Ji as RadioGroup, Yi as RadioGroupItem, Xi as ScrollArea, Zi as ScrollBar, Qi as Select, $i as SelectContent, ea as SelectGroup, ta as SelectItem, na as SelectLabel, ra as SelectScrollDownButton, ia as SelectScrollUpButton, aa as SelectSeparator, oa as SelectTrigger, sa as SelectValue, f as Separator, ae as Sheet, oe as SheetClose, se as SheetContent, ce as SheetDescription, le as SheetFooter, ue as SheetHeader, de as SheetTitle, fe as SheetTrigger, ve as Sidebar, ye as SidebarContent, be as SidebarFooter, xe as SidebarGroup, Se as SidebarGroupAction, Ce as SidebarGroupContent, we as SidebarGroupLabel, Te as SidebarHeader, Ee as SidebarInput, De as SidebarInset, Oe as SidebarMenu, ke as SidebarMenuAction, Ae as SidebarMenuBadge, je as SidebarMenuButton, Me as SidebarMenuItem, Ne as SidebarMenuSkeleton, Pe as SidebarMenuSub, Fe as SidebarMenuSubButton, Ie as SidebarMenuSubItem, Le as SidebarProvider, Re as SidebarRail, ze as SidebarSeparator, Be as SidebarTrigger, ca as SignalDots, la as SignalStrip, pe as Skeleton, ua as Slider, da as SourceAvatar, fa as Spinner, Ea as StackedBarChart, pa as StaleBanner, ma as StateBanner, ga as StatusIndicator, va as SuggestChips, Da as Switch, gn as Table, _n as TableBody, vn as TableCaption, yn as TableCell, bn as TableFooter, xn as TableHead, Sn as TableHeader, Cn as TableRow, ya as Tabs, ba as TabsContent, xa as TabsList, Sa as TabsTrigger, Kt as Textarea, Oa as Toast, ka as ToastAction, Aa as ToastClose, ja as ToastContent, Ma as ToastDescription, Na as ToastPortal, Pa as ToastProvider, Fa as ToastTitle, Ia as ToastViewport, La as Toaster, wa as Toggle, Va as ToggleGroup, Ha as ToggleGroupItem, me as Tooltip, he as TooltipContent, ge as TooltipProvider, _e as TooltipTrigger, ut as badgeVariants, Tt as buttonGroupVariants, r as buttonVariants, Vt as chatBarFormVariants, e as cn, Ra as createToastManager, oi as markerVariants, ci as mediaThumbnailVariants, _i as metricTileVariants, Si as navigationActionVariants, Vr as paceStatusOf, ha as stateBannerVariants, _a as statusDotVariants, Ca as tabsListVariants, za as toast, Ta as toggleVariants, Nt as useCarousel, hn as useComboboxAnchor, Ve as useSidebar, Ba as useToastManager };
|
package/package.json
CHANGED
package/src/styles/globals.css
CHANGED
|
@@ -44,6 +44,39 @@
|
|
|
44
44
|
--color-area-reviews: var(--area-reviews);
|
|
45
45
|
--color-area-reviews-soft: var(--area-reviews-soft);
|
|
46
46
|
--color-area-reviews-foreground: var(--area-reviews-foreground);
|
|
47
|
+
--color-channel-x: var(--channel-x);
|
|
48
|
+
--color-channel-x-soft: var(--channel-x-soft);
|
|
49
|
+
--color-channel-x-foreground: var(--channel-x-foreground);
|
|
50
|
+
--color-channel-threads: var(--channel-threads);
|
|
51
|
+
--color-channel-threads-soft: var(--channel-threads-soft);
|
|
52
|
+
--color-channel-threads-foreground: var(--channel-threads-foreground);
|
|
53
|
+
--color-channel-instagram: var(--channel-instagram);
|
|
54
|
+
--color-channel-instagram-soft: var(--channel-instagram-soft);
|
|
55
|
+
--color-channel-instagram-foreground: var(--channel-instagram-foreground);
|
|
56
|
+
--color-channel-facebook: var(--channel-facebook);
|
|
57
|
+
--color-channel-facebook-soft: var(--channel-facebook-soft);
|
|
58
|
+
--color-channel-facebook-foreground: var(--channel-facebook-foreground);
|
|
59
|
+
--color-channel-bluesky: var(--channel-bluesky);
|
|
60
|
+
--color-channel-bluesky-soft: var(--channel-bluesky-soft);
|
|
61
|
+
--color-channel-bluesky-foreground: var(--channel-bluesky-foreground);
|
|
62
|
+
--color-channel-linkedin: var(--channel-linkedin);
|
|
63
|
+
--color-channel-linkedin-soft: var(--channel-linkedin-soft);
|
|
64
|
+
--color-channel-linkedin-foreground: var(--channel-linkedin-foreground);
|
|
65
|
+
--color-channel-tiktok: var(--channel-tiktok);
|
|
66
|
+
--color-channel-tiktok-soft: var(--channel-tiktok-soft);
|
|
67
|
+
--color-channel-tiktok-foreground: var(--channel-tiktok-foreground);
|
|
68
|
+
--color-channel-youtube: var(--channel-youtube);
|
|
69
|
+
--color-channel-youtube-soft: var(--channel-youtube-soft);
|
|
70
|
+
--color-channel-youtube-foreground: var(--channel-youtube-foreground);
|
|
71
|
+
--color-channel-google: var(--channel-google);
|
|
72
|
+
--color-channel-google-soft: var(--channel-google-soft);
|
|
73
|
+
--color-channel-google-foreground: var(--channel-google-foreground);
|
|
74
|
+
--color-channel-beehiiv: var(--channel-beehiiv);
|
|
75
|
+
--color-channel-beehiiv-soft: var(--channel-beehiiv-soft);
|
|
76
|
+
--color-channel-beehiiv-foreground: var(--channel-beehiiv-foreground);
|
|
77
|
+
--color-channel-reddit: var(--channel-reddit);
|
|
78
|
+
--color-channel-reddit-soft: var(--channel-reddit-soft);
|
|
79
|
+
--color-channel-reddit-foreground: var(--channel-reddit-foreground);
|
|
47
80
|
--color-tone-blue: var(--tone-blue);
|
|
48
81
|
--color-tone-blue-soft: var(--tone-blue-soft);
|
|
49
82
|
--color-tone-violet: var(--tone-violet);
|
|
@@ -217,6 +250,81 @@
|
|
|
217
250
|
--area-ads-soft: color-mix(in srgb, var(--area-ads) 10%, transparent);
|
|
218
251
|
--area-calls-soft: color-mix(in srgb, var(--area-calls) 10%, transparent);
|
|
219
252
|
--area-reviews-soft: color-mix(in srgb, var(--area-reviews) 10%, transparent);
|
|
253
|
+
/* One color per social channel, for chart series and legends (ADR 0026).
|
|
254
|
+
-foreground is the readable text shade on the -soft tint. */
|
|
255
|
+
--channel-x: #0284c7;
|
|
256
|
+
--channel-threads: #ca8a04;
|
|
257
|
+
--channel-instagram: #db2777;
|
|
258
|
+
--channel-facebook: #9333ea;
|
|
259
|
+
--channel-bluesky: #0d9488;
|
|
260
|
+
--channel-linkedin: #16a34a;
|
|
261
|
+
--channel-tiktok: #4f46e5;
|
|
262
|
+
--channel-youtube: #dc2626;
|
|
263
|
+
--channel-google: #ea580c;
|
|
264
|
+
--channel-beehiiv: #65a30d;
|
|
265
|
+
--channel-reddit: #475569;
|
|
266
|
+
--channel-x-foreground: #0369a1;
|
|
267
|
+
--channel-threads-foreground: #854d0e;
|
|
268
|
+
--channel-instagram-foreground: #be185d;
|
|
269
|
+
--channel-facebook-foreground: #7e22ce;
|
|
270
|
+
--channel-bluesky-foreground: #0f766e;
|
|
271
|
+
--channel-linkedin-foreground: #166534;
|
|
272
|
+
--channel-tiktok-foreground: #4338ca;
|
|
273
|
+
--channel-youtube-foreground: #b91c1c;
|
|
274
|
+
--channel-google-foreground: #9a3412;
|
|
275
|
+
--channel-beehiiv-foreground: #3f6212;
|
|
276
|
+
--channel-reddit-foreground: #334155;
|
|
277
|
+
--channel-x-soft: color-mix(in srgb, var(--channel-x) 10%, transparent);
|
|
278
|
+
--channel-threads-soft: color-mix(
|
|
279
|
+
in srgb,
|
|
280
|
+
var(--channel-threads) 10%,
|
|
281
|
+
transparent
|
|
282
|
+
);
|
|
283
|
+
--channel-instagram-soft: color-mix(
|
|
284
|
+
in srgb,
|
|
285
|
+
var(--channel-instagram) 10%,
|
|
286
|
+
transparent
|
|
287
|
+
);
|
|
288
|
+
--channel-facebook-soft: color-mix(
|
|
289
|
+
in srgb,
|
|
290
|
+
var(--channel-facebook) 10%,
|
|
291
|
+
transparent
|
|
292
|
+
);
|
|
293
|
+
--channel-bluesky-soft: color-mix(
|
|
294
|
+
in srgb,
|
|
295
|
+
var(--channel-bluesky) 10%,
|
|
296
|
+
transparent
|
|
297
|
+
);
|
|
298
|
+
--channel-linkedin-soft: color-mix(
|
|
299
|
+
in srgb,
|
|
300
|
+
var(--channel-linkedin) 10%,
|
|
301
|
+
transparent
|
|
302
|
+
);
|
|
303
|
+
--channel-tiktok-soft: color-mix(
|
|
304
|
+
in srgb,
|
|
305
|
+
var(--channel-tiktok) 10%,
|
|
306
|
+
transparent
|
|
307
|
+
);
|
|
308
|
+
--channel-youtube-soft: color-mix(
|
|
309
|
+
in srgb,
|
|
310
|
+
var(--channel-youtube) 10%,
|
|
311
|
+
transparent
|
|
312
|
+
);
|
|
313
|
+
--channel-google-soft: color-mix(
|
|
314
|
+
in srgb,
|
|
315
|
+
var(--channel-google) 10%,
|
|
316
|
+
transparent
|
|
317
|
+
);
|
|
318
|
+
--channel-beehiiv-soft: color-mix(
|
|
319
|
+
in srgb,
|
|
320
|
+
var(--channel-beehiiv) 10%,
|
|
321
|
+
transparent
|
|
322
|
+
);
|
|
323
|
+
--channel-reddit-soft: color-mix(
|
|
324
|
+
in srgb,
|
|
325
|
+
var(--channel-reddit) 10%,
|
|
326
|
+
transparent
|
|
327
|
+
);
|
|
220
328
|
/*
|
|
221
329
|
* Category tones: a color and its soft tint for consumer-defined categories
|
|
222
330
|
* (kinds of idea, content types) that are not product areas. The color is the
|
|
@@ -302,6 +410,79 @@
|
|
|
302
410
|
--area-ads-soft: color-mix(in srgb, var(--area-ads) 16%, transparent);
|
|
303
411
|
--area-calls-soft: color-mix(in srgb, var(--area-calls) 16%, transparent);
|
|
304
412
|
--area-reviews-soft: color-mix(in srgb, var(--area-reviews) 16%, transparent);
|
|
413
|
+
--channel-x: #38bdf8;
|
|
414
|
+
--channel-threads: #facc15;
|
|
415
|
+
--channel-instagram: #f472b6;
|
|
416
|
+
--channel-facebook: #a855f7;
|
|
417
|
+
--channel-bluesky: #2dd4bf;
|
|
418
|
+
--channel-linkedin: #4ade80;
|
|
419
|
+
--channel-tiktok: #818cf8;
|
|
420
|
+
--channel-youtube: #f87171;
|
|
421
|
+
--channel-google: #fb923c;
|
|
422
|
+
--channel-beehiiv: #a3e635;
|
|
423
|
+
--channel-reddit: #94a3b8;
|
|
424
|
+
--channel-x-foreground: #7dd3fc;
|
|
425
|
+
--channel-threads-foreground: #fde047;
|
|
426
|
+
--channel-instagram-foreground: #f9a8d4;
|
|
427
|
+
--channel-facebook-foreground: #d8b4fe;
|
|
428
|
+
--channel-bluesky-foreground: #5eead4;
|
|
429
|
+
--channel-linkedin-foreground: #86efac;
|
|
430
|
+
--channel-tiktok-foreground: #a5b4fc;
|
|
431
|
+
--channel-youtube-foreground: #fca5a5;
|
|
432
|
+
--channel-google-foreground: #fdba74;
|
|
433
|
+
--channel-beehiiv-foreground: #bef264;
|
|
434
|
+
--channel-reddit-foreground: #cbd5e1;
|
|
435
|
+
--channel-x-soft: color-mix(in srgb, var(--channel-x) 16%, transparent);
|
|
436
|
+
--channel-threads-soft: color-mix(
|
|
437
|
+
in srgb,
|
|
438
|
+
var(--channel-threads) 16%,
|
|
439
|
+
transparent
|
|
440
|
+
);
|
|
441
|
+
--channel-instagram-soft: color-mix(
|
|
442
|
+
in srgb,
|
|
443
|
+
var(--channel-instagram) 16%,
|
|
444
|
+
transparent
|
|
445
|
+
);
|
|
446
|
+
--channel-facebook-soft: color-mix(
|
|
447
|
+
in srgb,
|
|
448
|
+
var(--channel-facebook) 16%,
|
|
449
|
+
transparent
|
|
450
|
+
);
|
|
451
|
+
--channel-bluesky-soft: color-mix(
|
|
452
|
+
in srgb,
|
|
453
|
+
var(--channel-bluesky) 16%,
|
|
454
|
+
transparent
|
|
455
|
+
);
|
|
456
|
+
--channel-linkedin-soft: color-mix(
|
|
457
|
+
in srgb,
|
|
458
|
+
var(--channel-linkedin) 16%,
|
|
459
|
+
transparent
|
|
460
|
+
);
|
|
461
|
+
--channel-tiktok-soft: color-mix(
|
|
462
|
+
in srgb,
|
|
463
|
+
var(--channel-tiktok) 16%,
|
|
464
|
+
transparent
|
|
465
|
+
);
|
|
466
|
+
--channel-youtube-soft: color-mix(
|
|
467
|
+
in srgb,
|
|
468
|
+
var(--channel-youtube) 16%,
|
|
469
|
+
transparent
|
|
470
|
+
);
|
|
471
|
+
--channel-google-soft: color-mix(
|
|
472
|
+
in srgb,
|
|
473
|
+
var(--channel-google) 16%,
|
|
474
|
+
transparent
|
|
475
|
+
);
|
|
476
|
+
--channel-beehiiv-soft: color-mix(
|
|
477
|
+
in srgb,
|
|
478
|
+
var(--channel-beehiiv) 16%,
|
|
479
|
+
transparent
|
|
480
|
+
);
|
|
481
|
+
--channel-reddit-soft: color-mix(
|
|
482
|
+
in srgb,
|
|
483
|
+
var(--channel-reddit) 16%,
|
|
484
|
+
transparent
|
|
485
|
+
);
|
|
305
486
|
--tone-blue: #8ab0f4;
|
|
306
487
|
--tone-blue-soft: color-mix(in srgb, var(--tone-blue) 16%, transparent);
|
|
307
488
|
--tone-violet: #c4b5fd;
|