@vvedantb/ui 0.27.0 → 0.28.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/README.md +54 -2
- package/fonts/InstrumentSans-Italic-latin-ext.woff2 +0 -0
- package/fonts/InstrumentSans-Italic-latin.woff2 +0 -0
- package/fonts/InstrumentSans-latin-ext.woff2 +0 -0
- package/fonts/InstrumentSans-latin.woff2 +0 -0
- package/fonts/OFL.txt +93 -0
- package/fonts/instrument-sans.css +73 -0
- package/package.json +10 -3
- package/scripts/build-brand-assets.mjs +12 -3
- package/src/client.ts +393 -0
package/README.md
CHANGED
|
@@ -4,13 +4,16 @@ Shared React 19 web UI. Source-exported: no build step.
|
|
|
4
4
|
|
|
5
5
|
| Import | What it is |
|
|
6
6
|
| --- | --- |
|
|
7
|
-
| `@vvedantb/ui` | The
|
|
7
|
+
| `@vvedantb/ui` | The main JavaScript entry. Primitives (Radix-based), AI elements, audio (`playChime`, `useReplyChime`, `playTone`), `toast` and `SonnerToaster`, the composer (`InputArea`, deprecated 0.3 `Composer`), shell (`SidebarHeader`, `SidebarUpgradeCard`, `PillTabs`, `SessionsHoverCard`, and the app shell: `AppShell`, `AppSidebar`, `SidebarRail`, `RailTile`, `SidebarPanel`, `SidebarAccountMenu`, `SignOutDialog` and related helpers), app helpers (confirm skip, update watcher, settings chrome, `useStableAuth`, and from 0.8.0 `createThemeProvider`, `createPageTitleContext`, `PageMotionProvider` and `formatCompactRelativeTime`), marketing pieces from 0.9.0 (`createLandingKit` and the `Landing*` parts, `SiteFooter`, `PricingModal`), animated nav icons from 0.11.0 (`MemoryIcon`, `BoardIcon`, ... and `NavIconBase`; `SettingsIcon` `variant` from 0.12.0), artifact viewers from 0.13.0 (`ArtifactFrame`, `ArtifactList`, `ArtifactViewer`, ...), date pickers from 0.14.0 (`Calendar`, `DatePicker`, `DateTimePicker`, `MonthPicker`), `cn`, and the native tokens `tokens` and `Tokens`. See `app/README.md` in the repository for the app helpers. |
|
|
8
|
+
| `@vvedantb/ui/client` | The root without `@vvedantb/server`, convex or Clerk, for Chrome extensions (0.28.0). Leaves out the artifact viewers, `ConvexClerkProvider`, `useStableAuth`, `createUseStableAuth`, `resetStableAuthSession` and `useEnsureUser`. See [Chrome extensions](#chrome-extensions-0280). |
|
|
9
|
+
| `@vvedantb/ui/brand` | App icons (`Icon*`, `APP_ICONS`), `AppWordmark`, deprecated `AppMark`, raw SVG strings and `FAMILY_APPS`. Also in the root and `/client`. |
|
|
8
10
|
| `@vvedantb/ui/tokens` | `tokens.css`: colour, radius, shadow, ease and font tokens for Tailwind v4. CSS. |
|
|
9
11
|
| `@vvedantb/ui/tokens/tokens.css` | Same file as `@vvedantb/ui/tokens`. CSS. |
|
|
10
12
|
| `@vvedantb/ui/tokens/css/*.css` | `index`, `base`, `dialog`, `modal`, `tabs`, `tabs-pills`, `utilities`, `scrollbar-thin`, `clear-input`, `motion`, `animations`, `nav-icons`, `compat-shadcn-rgb`, `border-beam` (opt-in, for `BorderBeam`), `markdown` (opt-in, for `Markdown`). CSS. `tokens.css` imports `scrollbar-thin`, `clear-input` and `motion`. |
|
|
11
13
|
| `@vvedantb/ui/tokens/compat/shadcn-rgb.css` | Same file as `tokens/css/compat-shadcn-rgb.css`. CSS. |
|
|
12
14
|
| `@vvedantb/ui/tokens/tailwind-preset` | Tailwind preset (`.mjs`) for `@config "@vvedantb/ui/tokens/tailwind-preset"`. Kept as a build-tool entry: Tailwind needs a resolvable package path, and it is not a React API. |
|
|
13
15
|
| `@vvedantb/ui/landing.css` | Landing page classes (`landing-wordmark-text` for `AppWordmark`, `landing-atmosphere`, `landing-grain`, `landing-pulse-dot`, ambient graph and preview animations, smooth `#top` scrolling). CSS. |
|
|
16
|
+
| `@vvedantb/ui/fonts/instrument-sans.css` | Instrument Sans `@font-face` rules over packaged woff2 files, and the Clerk Inter override, for extension pages (0.28.0). Opt-in. CSS. |
|
|
14
17
|
| `@vvedantb/ui/package.json` | Package metadata. |
|
|
15
18
|
|
|
16
19
|
Removed in 0.4.0-rc.1: the `/cn`, `/sonner`, `/audio`, `/shell`, `/app`, `/composer` and `/tokens/native` subpaths. Import from `@vvedantb/ui`. See [`MIGRATION.md`](MIGRATION.md).
|
|
@@ -910,7 +913,7 @@ Shared marketing wordmark for product app names across Project V sites: the `Ico
|
|
|
910
913
|
|
|
911
914
|
Never use `AppWordmark` for `projectv` (the type rejects it).
|
|
912
915
|
|
|
913
|
-
Setup.
|
|
916
|
+
Setup. `--font-sans` comes from the package tokens. Load Instrument Sans in the app, as for the rest of the UI, if it is not already loaded. Extension pages can import `@vvedantb/ui/fonts/instrument-sans.css` (0.28.0); web apps keep their own font loading.
|
|
914
917
|
|
|
915
918
|
```css
|
|
916
919
|
@import "@vvedantb/ui/landing.css"; /* provides .landing-wordmark-text */
|
|
@@ -1209,6 +1212,55 @@ import {
|
|
|
1209
1212
|
- Hooks: `useMediaQuery(query)`, `useDocumentVisible()`, `useIdleCallback(ms, fn)` (trailing debounce; `createIdleCallback` is the React-free core), `useSingleFlight(fn)` (one call at a time, latest args run next), `usePersistedScrollParent(storageKey)` (restores a container's `scrollTop` from `sessionStorage`).
|
|
1210
1213
|
- Convex: `convexErrorMessage(error, fallback)` reads `ConvexError` data first; `userFacingErrorMessage(error, fallback)` strips the client envelope and stack. `useHeldResult(result, key)` keeps the last result while a query is skipped (`key` `null`). None of these import `convex`.
|
|
1211
1214
|
|
|
1215
|
+
## Chrome extensions (0.28.0)
|
|
1216
|
+
|
|
1217
|
+
Extension pages (popup, side panel, options, welcome) run under the MV3 extension-page CSP, which blocks remote font stylesheets, and should not load `@vvedantb/server`. Three pieces cover them. Web apps change nothing unless they opt in.
|
|
1218
|
+
|
|
1219
|
+
### Fonts
|
|
1220
|
+
|
|
1221
|
+
```css
|
|
1222
|
+
@import "tailwindcss";
|
|
1223
|
+
@import "@vvedantb/ui/tokens";
|
|
1224
|
+
@import "@vvedantb/ui/fonts/instrument-sans.css";
|
|
1225
|
+
@source "../node_modules/@vvedantb/ui/src/**/*.{ts,tsx}";
|
|
1226
|
+
```
|
|
1227
|
+
|
|
1228
|
+
`instrument-sans.css` has four `@font-face` rules: variable weight 400-700, normal and italic, latin and latin-ext. The `url()`s are relative, so Vite and WXT copy the woff2 files into the build. The licence is `fonts/OFL.txt`. The file ends with the rule both extensions carried in `globals.css`:
|
|
1229
|
+
|
|
1230
|
+
```css
|
|
1231
|
+
html,
|
|
1232
|
+
body {
|
|
1233
|
+
font-family: var(--font-sans);
|
|
1234
|
+
}
|
|
1235
|
+
```
|
|
1236
|
+
|
|
1237
|
+
Clerk injects an unlayered `body { font-family: Inter }`, which beats the `@layer base` rule in the tokens; this rule is unlayered too. `tokens.css` does not import the file. Once an extension imports it, it can drop its own copy of the fonts, the CSS and the override.
|
|
1238
|
+
|
|
1239
|
+
### `@vvedantb/ui/client`
|
|
1240
|
+
|
|
1241
|
+
```tsx
|
|
1242
|
+
import { AppWordmark, Button, Card, Tabs, TabsList, TabsTrigger, cn, createThemeProvider } from "@vvedantb/ui/client";
|
|
1243
|
+
```
|
|
1244
|
+
|
|
1245
|
+
The root's exports, without:
|
|
1246
|
+
|
|
1247
|
+
- the artifact viewers (`src/artifacts`: `ArtifactFrame`, `ArtifactViewer`, ...), which import `@vvedantb/server`;
|
|
1248
|
+
- `ConvexClerkProvider`, `useStableAuth`, `createUseStableAuth`, `resetStableAuthSession` and `useEnsureUser`, which import `convex` or `@clerk/clerk-react`.
|
|
1249
|
+
|
|
1250
|
+
Every other name is the same binding as in the root. `src/client-exports.test.ts` keeps the two in step, and `app/tests-node/client-graph.test.mjs` checks that the entry's module graph has no `@vvedantb/server`, convex, Clerk or `node:` import. The root is unchanged.
|
|
1251
|
+
|
|
1252
|
+
### Icons
|
|
1253
|
+
|
|
1254
|
+
`scripts/build-brand-assets.mjs` ships in the package and writes `<out>/<app>/extension/icon-{16,32,48,128}.png` (the tile at 16, 32 and 48 px, `appExtension128Svg` at 128 px). Copy them into the extension's public folder:
|
|
1255
|
+
|
|
1256
|
+
```sh
|
|
1257
|
+
out=$(mktemp -d)
|
|
1258
|
+
node node_modules/@vvedantb/ui/scripts/build-brand-assets.mjs --out "$out" --app vmem
|
|
1259
|
+
mkdir -p public/icons && cp "$out"/vmem/extension/icon-*.png public/icons/
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
PNGs need `rsvg-convert` (librsvg); without it the script writes only the SVGs and says so. It needs Node 22.18 or later. Under `node_modules` it strips the types from `src/brand/svg.ts` itself, because Node will not, and Node prints an `ExperimentalWarning` for that. `defineVExtensionConfig` in `@vvedantb/config/extension` points the manifest `icons` and `action.default_icon` at `icons/icon-{16,32,48,128}.png`.
|
|
1263
|
+
|
|
1212
1264
|
## Slider (0.16.0, dark contrast and className props 0.16.1)
|
|
1213
1265
|
|
|
1214
1266
|
shadcn's slider on `@radix-ui/react-slider` (a peer dependency), with package tokens.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/fonts/OFL.txt
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @vvedantb/ui/fonts/instrument-sans.css: Instrument Sans for chrome-extension
|
|
3
|
+
* pages (popup, welcome). Opt-in: tokens.css does not import it, so web apps
|
|
4
|
+
* are unchanged.
|
|
5
|
+
*
|
|
6
|
+
* @import "@vvedantb/ui/fonts/instrument-sans.css";
|
|
7
|
+
*
|
|
8
|
+
* @vvedantb/ui/tokens only names the family; MV3 extension-page CSP cannot load
|
|
9
|
+
* remote webfont stylesheets, so the files ship here. Variable weight 400-700,
|
|
10
|
+
* normal and italic, latin and latin-ext. The url()s are relative, so Vite and
|
|
11
|
+
* WXT copy the woff2 files into the build. Licence: OFL.txt in this folder.
|
|
12
|
+
*
|
|
13
|
+
* The last rule sets html and body to --font-sans (from @vvedantb/ui/tokens).
|
|
14
|
+
* It is unlayered on purpose: see the comment above it.
|
|
15
|
+
*/
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "Instrument Sans";
|
|
18
|
+
font-style: italic;
|
|
19
|
+
font-weight: 400 700;
|
|
20
|
+
font-stretch: 100%;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
src: url("./InstrumentSans-Italic-latin-ext.woff2") format("woff2");
|
|
23
|
+
unicode-range:
|
|
24
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
25
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
26
|
+
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "Instrument Sans";
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 400 700;
|
|
33
|
+
font-stretch: 100%;
|
|
34
|
+
font-display: swap;
|
|
35
|
+
src: url("./InstrumentSans-Italic-latin.woff2") format("woff2");
|
|
36
|
+
unicode-range:
|
|
37
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
|
|
38
|
+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
|
|
39
|
+
U+2215, U+FEFF, U+FFFD;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-family: "Instrument Sans";
|
|
44
|
+
font-style: normal;
|
|
45
|
+
font-weight: 400 700;
|
|
46
|
+
font-stretch: 100%;
|
|
47
|
+
font-display: swap;
|
|
48
|
+
src: url("./InstrumentSans-latin-ext.woff2") format("woff2");
|
|
49
|
+
unicode-range:
|
|
50
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
51
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
52
|
+
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@font-face {
|
|
56
|
+
font-family: "Instrument Sans";
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 400 700;
|
|
59
|
+
font-stretch: 100%;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: url("./InstrumentSans-latin.woff2") format("woff2");
|
|
62
|
+
unicode-range:
|
|
63
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
|
|
64
|
+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
|
|
65
|
+
U+2215, U+FEFF, U+FFFD;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Clerk injects unlayered `body { font-family: Inter }` which beats
|
|
69
|
+
* `@layer base` from @vvedantb/ui/tokens. Keep extension pages on Instrument Sans. */
|
|
70
|
+
html,
|
|
71
|
+
body {
|
|
72
|
+
font-family: var(--font-sans);
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "Shared React 19 UI for web apps: one JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), design-token CSS, shared Tailwind v4 CSS
|
|
5
|
+
"description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -45,7 +45,12 @@
|
|
|
45
45
|
"types": "./src/brand/index.ts",
|
|
46
46
|
"default": "./src/brand/index.ts"
|
|
47
47
|
},
|
|
48
|
+
"./client": {
|
|
49
|
+
"types": "./src/client.ts",
|
|
50
|
+
"default": "./src/client.ts"
|
|
51
|
+
},
|
|
48
52
|
"./landing.css": "./src/marketing/landing.css",
|
|
53
|
+
"./fonts/instrument-sans.css": "./fonts/instrument-sans.css",
|
|
49
54
|
"./package.json": "./package.json"
|
|
50
55
|
},
|
|
51
56
|
"types": "./src/index.ts",
|
|
@@ -55,6 +60,7 @@
|
|
|
55
60
|
"app/src",
|
|
56
61
|
"tokens/src",
|
|
57
62
|
"tokens/examples",
|
|
63
|
+
"fonts",
|
|
58
64
|
"scripts/build-brand-assets.mjs",
|
|
59
65
|
"README.md",
|
|
60
66
|
"LICENSE",
|
|
@@ -63,7 +69,8 @@
|
|
|
63
69
|
],
|
|
64
70
|
"sideEffects": [
|
|
65
71
|
"./src/ui/sonner.css",
|
|
66
|
-
"./src/marketing/landing.css"
|
|
72
|
+
"./src/marketing/landing.css",
|
|
73
|
+
"./fonts/instrument-sans.css"
|
|
67
74
|
],
|
|
68
75
|
"scripts": {
|
|
69
76
|
"check:tokens": "node tokens/scripts/check-component-tokens.mjs",
|
|
@@ -5,10 +5,19 @@
|
|
|
5
5
|
// SVGs are always written. PNGs and favicon.ico need `rsvg-convert`; without it they are skipped
|
|
6
6
|
// with a message. Layout: <dir>/<app>/{mark,icon,favicon,icon-light}.svg, PNGs, extension/, android/.
|
|
7
7
|
import { spawnSync } from "node:child_process";
|
|
8
|
-
import { mkdirSync, writeFileSync } from "node:fs";
|
|
9
|
-
import { dirname, join } from "node:path";
|
|
8
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
9
|
+
import { dirname, join, sep } from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
// Node does not strip types from files under node_modules, so an installed copy
|
|
13
|
+
// of this script strips svg.ts itself (svg.ts has no imports).
|
|
14
|
+
async function loadSvg() {
|
|
15
|
+
const url = new URL("../src/brand/svg.ts", import.meta.url);
|
|
16
|
+
if (!fileURLToPath(url).split(sep).includes("node_modules")) return import(url.href);
|
|
17
|
+
const { stripTypeScriptTypes } = await import("node:module");
|
|
18
|
+
return import(`data:text/javascript,${encodeURIComponent(stripTypeScriptTypes(readFileSync(url, "utf8")))}`);
|
|
19
|
+
}
|
|
20
|
+
const { APP_NAMES, appAdaptiveSvg, appExtension128Svg, appMarkSvg, appTileSvg } = await loadSvg();
|
|
12
21
|
|
|
13
22
|
/** Whether `rsvg-convert` can be run. */
|
|
14
23
|
export function hasRsvg() {
|
package/src/client.ts
ADDED
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
// @vvedantb/ui/client: the root without `@vvedantb/server`, convex or Clerk, for
|
|
2
|
+
// Chrome extensions and other pages that cannot load them. It leaves out the
|
|
3
|
+
// artifact viewers (`src/artifacts`), `ConvexClerkProvider`, `useStableAuth`
|
|
4
|
+
// and `useEnsureUser`; everything else matches the root. Keep it in step with
|
|
5
|
+
// src/index.ts: src/client-exports.test.ts compares the two, and
|
|
6
|
+
// app/tests-node/client-graph.test.mjs checks the module graph.
|
|
7
|
+
export { cn } from "./utils/cn";
|
|
8
|
+
export { UiConfigProvider, useUiConfig } from "./ui/ui-config";
|
|
9
|
+
export type { UiConfig, UiConfigProviderProps } from "./ui/ui-config";
|
|
10
|
+
export { floatingSurfaceClass } from "./ui/_menu-classes";
|
|
11
|
+
export { fieldFocusClass, fieldFocusWithinClass } from "./ui/_field-classes";
|
|
12
|
+
export * from "./ui/surface-classes";
|
|
13
|
+
export * from "./motion/presets";
|
|
14
|
+
export * from "./motion/panel-transition";
|
|
15
|
+
export { ListEnter, useFirstPaintGate } from "./motion/list-enter";
|
|
16
|
+
export type { ListEnterProps } from "./motion/list-enter";
|
|
17
|
+
// Gesture physics and animation budget helpers (shared clock, on-screen and
|
|
18
|
+
// page-visibility pausing for infinite animations).
|
|
19
|
+
export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture";
|
|
20
|
+
export {
|
|
21
|
+
bindRuntimeAnimation,
|
|
22
|
+
ensureRuntimeVisibility,
|
|
23
|
+
observeAnimVisibility,
|
|
24
|
+
useAnimOffscreenRef,
|
|
25
|
+
} from "./utils/runtimeVisibility";
|
|
26
|
+
export { msUntilNextBoundary, quantizedSnapshot, subscribeQuantized } from "./utils/sharedClock";
|
|
27
|
+
export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./utils/cat-color";
|
|
28
|
+
export type { CatColorClasses, CatSlot } from "./utils/cat-color";
|
|
29
|
+
export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius";
|
|
30
|
+
export { restoreModalScrollLock } from "./ui/overlay-a11y";
|
|
31
|
+
// Generic hooks: media query, page visibility, trailing debounce,
|
|
32
|
+
// single-flight async calls and a persisted scroll container.
|
|
33
|
+
export * from "./hooks";
|
|
34
|
+
export { ErrorBoundary } from "./ui/error-boundary";
|
|
35
|
+
export type { ErrorBoundaryProps } from "./ui/error-boundary";
|
|
36
|
+
export { CountPop, countLabel, UnreadDot } from "./ui/count-pop";
|
|
37
|
+
export { MarqueeOnHover } from "./ui/marquee-on-hover";
|
|
38
|
+
export { RelativeDateTime } from "./ui/relative-date-time";
|
|
39
|
+
export type { RelativeDateTimeProps } from "./ui/relative-date-time";
|
|
40
|
+
export { ImageLightbox } from "./ui/image-lightbox";
|
|
41
|
+
export type { GalleryImage } from "./ui/image-lightbox";
|
|
42
|
+
export { ImageGalleryPreview, ScreenshotPreview, VideoPreview } from "./ui/media-preview";
|
|
43
|
+
|
|
44
|
+
export * from "./ui/avatar";
|
|
45
|
+
export * from "./ui/badge";
|
|
46
|
+
export * from "./ui/border-beam";
|
|
47
|
+
export * from "./ui/breadcrumb";
|
|
48
|
+
export * from "./ui/button";
|
|
49
|
+
export * from "./ui/button-group";
|
|
50
|
+
export * from "./ui/card";
|
|
51
|
+
export * from "./ui/carousel";
|
|
52
|
+
export * from "./ui/centered-spinner";
|
|
53
|
+
export * from "./ui/checkbox";
|
|
54
|
+
export * from "./ui/collapsible";
|
|
55
|
+
export * from "./ui/command";
|
|
56
|
+
export * from "./ui/context-menu";
|
|
57
|
+
export * from "./ui/crossfade-icon";
|
|
58
|
+
export * from "./ui/dialog";
|
|
59
|
+
export * from "./ui/alert-dialog";
|
|
60
|
+
export * from "./ui/confirm-dialog";
|
|
61
|
+
export * from "./ui/dropdown-menu";
|
|
62
|
+
export * from "./ui/empty-state";
|
|
63
|
+
export * from "./ui/hover-card";
|
|
64
|
+
export * from "./ui/input";
|
|
65
|
+
export * from "./ui/label";
|
|
66
|
+
export * from "./ui/labeled-slider-row";
|
|
67
|
+
export * from "./ui/labeled-switch-row";
|
|
68
|
+
export * from "./ui/list-row";
|
|
69
|
+
export * from "./ui/loading-state";
|
|
70
|
+
export * from "./ui/pagination";
|
|
71
|
+
export * from "./ui/popover";
|
|
72
|
+
export * from "./ui/progress";
|
|
73
|
+
export * from "./ui/refresh-spin-icon";
|
|
74
|
+
export {
|
|
75
|
+
Select as RadixSelect,
|
|
76
|
+
SelectContent as RadixSelectContent,
|
|
77
|
+
SelectGroup as RadixSelectGroup,
|
|
78
|
+
SelectItem as RadixSelectItem,
|
|
79
|
+
SelectLabel as RadixSelectLabel,
|
|
80
|
+
SelectScrollDownButton as RadixSelectScrollDownButton,
|
|
81
|
+
SelectScrollUpButton as RadixSelectScrollUpButton,
|
|
82
|
+
SelectSeparator as RadixSelectSeparator,
|
|
83
|
+
SelectTrigger as RadixSelectTrigger,
|
|
84
|
+
SelectValue as RadixSelectValue,
|
|
85
|
+
} from "./ui/radix-select";
|
|
86
|
+
export * from "./ui/search-input";
|
|
87
|
+
export * from "./ui/select";
|
|
88
|
+
export * from "./ui/select-field";
|
|
89
|
+
export * from "./ui/separator";
|
|
90
|
+
export * from "./ui/skeleton";
|
|
91
|
+
export * from "./ui/slide-over-panel";
|
|
92
|
+
export * from "./ui/slider";
|
|
93
|
+
export * from "./ui/sonner";
|
|
94
|
+
export * from "./ui/spinner";
|
|
95
|
+
export * from "./ui/status-dot";
|
|
96
|
+
export * from "./ui/surface";
|
|
97
|
+
export * from "./ui/switch";
|
|
98
|
+
export * from "./ui/table";
|
|
99
|
+
export * from "./ui/tabs";
|
|
100
|
+
export * from "./ui/textarea";
|
|
101
|
+
export * from "./ui/toolbar-search-input";
|
|
102
|
+
export * from "./ui/time-picker";
|
|
103
|
+
export * from "./ui/calendar";
|
|
104
|
+
export * from "./ui/date-picker";
|
|
105
|
+
export * from "./ui/tooltip";
|
|
106
|
+
export * from "./ui/kbd";
|
|
107
|
+
export * from "./ui/sheet";
|
|
108
|
+
export * from "./ui/visually-hidden";
|
|
109
|
+
export * from "./ui/clearInputDissolve";
|
|
110
|
+
|
|
111
|
+
// Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
|
|
112
|
+
export * from "./icons";
|
|
113
|
+
|
|
114
|
+
// Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
|
|
115
|
+
// (accordion, clear input, input group) wrap the main parts with the old markup.
|
|
116
|
+
export * from "./ui/accordion";
|
|
117
|
+
export {
|
|
118
|
+
AccordionAlt,
|
|
119
|
+
AccordionItemAlt,
|
|
120
|
+
AccordionTriggerAlt,
|
|
121
|
+
AccordionContentAlt,
|
|
122
|
+
} from "./ui/accordion.alt";
|
|
123
|
+
export * from "./ui/clear-input";
|
|
124
|
+
export { ClearInputAlt } from "./ui/clear-input.alt";
|
|
125
|
+
export * from "./ui/input-group";
|
|
126
|
+
export {
|
|
127
|
+
InputGroupAlt,
|
|
128
|
+
InputGroupAddonAlt,
|
|
129
|
+
InputGroupButtonAlt,
|
|
130
|
+
InputGroupTextAlt,
|
|
131
|
+
InputGroupInputAlt,
|
|
132
|
+
InputGroupTextareaAlt,
|
|
133
|
+
} from "./ui/input-group.alt";
|
|
134
|
+
export * from "./ui/scroll-area";
|
|
135
|
+
export {
|
|
136
|
+
ScrollArea as ScrollAreaAlt,
|
|
137
|
+
ScrollBar as ScrollBarAlt,
|
|
138
|
+
} from "./ui/scroll-area.alt";
|
|
139
|
+
|
|
140
|
+
export * from "./ai-elements/artifact";
|
|
141
|
+
export * from "./ai-elements/attachments";
|
|
142
|
+
export * from "./ai-elements/chain-of-thought";
|
|
143
|
+
export * from "./ai-elements/code-block";
|
|
144
|
+
export * from "./ai-elements/conversation";
|
|
145
|
+
export * from "./ai-elements/file-chip";
|
|
146
|
+
export * from "./ai-elements/image";
|
|
147
|
+
export * from "./ai-elements/inline-citation";
|
|
148
|
+
export * from "./ai-elements/jump-rail";
|
|
149
|
+
export * from "./ai-elements/jump-rail-geometry";
|
|
150
|
+
export * from "./ai-elements/chat-jump-rail";
|
|
151
|
+
export * from "./ai-elements/message";
|
|
152
|
+
export * from "./ai-elements/model-selector";
|
|
153
|
+
export * from "./ai-elements/prompt-input";
|
|
154
|
+
export * from "./ai-elements/prompt-input-settings";
|
|
155
|
+
export * from "./ai-elements/prompt-input-speech";
|
|
156
|
+
export * from "./ai-elements/prompt-input-traits";
|
|
157
|
+
export * from "./ai-elements/queue";
|
|
158
|
+
export * from "./ai-elements/reasoning";
|
|
159
|
+
export * from "./ai-elements/shimmer";
|
|
160
|
+
export * from "./ai-elements/sources";
|
|
161
|
+
export * from "./ai-elements/speech-input";
|
|
162
|
+
export * from "./ai-elements/suggestion";
|
|
163
|
+
|
|
164
|
+
// Agent activity and run surfaces (moved from an app): the activity timeline and
|
|
165
|
+
// its step model, Trace lines, plan, test results, web preview, context usage
|
|
166
|
+
// and the model picker.
|
|
167
|
+
export * from "./ai-elements/activity-shared";
|
|
168
|
+
export * from "./ai-elements/activity-question";
|
|
169
|
+
export * from "./ai-elements/activity-tasks";
|
|
170
|
+
export * from "./ai-elements/trace";
|
|
171
|
+
export * from "./ai-elements/use-streaming-disclosure";
|
|
172
|
+
export * from "./ai-elements/plan";
|
|
173
|
+
export * from "./ai-elements/test-results";
|
|
174
|
+
export * from "./ai-elements/web-preview";
|
|
175
|
+
export * from "./ai-elements/context";
|
|
176
|
+
export * from "./ai-elements/model-picker";
|
|
177
|
+
export * from "./ai-elements/provider-icon";
|
|
178
|
+
|
|
179
|
+
// Kibo UI blocks: gantt, kanban, list, contribution graph, video player,
|
|
180
|
+
// cursor, avatar stack, theme switcher. Kanban, list and gantt drag with
|
|
181
|
+
// `useDragSensors`, the shared dnd-kit sensor split.
|
|
182
|
+
export * from "./kibo";
|
|
183
|
+
export { useDragSensors } from "./utils/useDragSensors";
|
|
184
|
+
|
|
185
|
+
// Markdown renderer (Streamdown + code blocks, callouts, links, KaTeX).
|
|
186
|
+
// Styles: `@vvedantb/ui/tokens/css/markdown.css`.
|
|
187
|
+
export * from "./markdown";
|
|
188
|
+
|
|
189
|
+
export * from "./audio";
|
|
190
|
+
|
|
191
|
+
export * from "./composer";
|
|
192
|
+
export { toast } from "sonner";
|
|
193
|
+
|
|
194
|
+
// Shell: router-free pieces. Shell's own `cn` and `ClassValue` are not re-exported;
|
|
195
|
+
// use the root `cn` (clsx + tailwind-merge).
|
|
196
|
+
export { SidebarHeader } from "../shell/src/SidebarHeader";
|
|
197
|
+
export type { SidebarHeaderProps } from "../shell/src/SidebarHeader";
|
|
198
|
+
export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard";
|
|
199
|
+
export type { SidebarUpgradeCardProps } from "../shell/src/SidebarUpgradeCard";
|
|
200
|
+
export { PillTabs } from "../shell/src/PillTabs";
|
|
201
|
+
export type { PillTabItem, PillTabsProps } from "../shell/src/PillTabs";
|
|
202
|
+
export { SessionsHoverCard } from "../shell/src/SessionsHoverCard";
|
|
203
|
+
export type {
|
|
204
|
+
SessionsHoverCardContext,
|
|
205
|
+
SessionsHoverCardProps,
|
|
206
|
+
SessionsHoverCardSurface,
|
|
207
|
+
} from "../shell/src/SessionsHoverCard";
|
|
208
|
+
|
|
209
|
+
// App shell: sidebar and main page layout. Widths come from the
|
|
210
|
+
// `--app-shell-*` CSS variables that `AppShell` sets.
|
|
211
|
+
export { AppShell } from "../shell/src/AppShell";
|
|
212
|
+
export type {
|
|
213
|
+
AppShellContentProps,
|
|
214
|
+
AppShellMainProps,
|
|
215
|
+
AppShellProps,
|
|
216
|
+
AppShellRootProps,
|
|
217
|
+
AppShellSkipLinkProps,
|
|
218
|
+
} from "../shell/src/AppShell";
|
|
219
|
+
export { AppSidebar } from "../shell/src/AppSidebar";
|
|
220
|
+
export type { AppSidebarProps } from "../shell/src/AppSidebar";
|
|
221
|
+
// Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
|
|
222
|
+
export * from "../shell/src/Sidebar";
|
|
223
|
+
export { SidebarRail, RailTile, RailDivider, RailCollapseTile } from "../shell/src/SidebarRail";
|
|
224
|
+
export type {
|
|
225
|
+
SidebarRailProps,
|
|
226
|
+
RailTileProps,
|
|
227
|
+
RailDividerProps,
|
|
228
|
+
RailCollapseTileProps,
|
|
229
|
+
} from "../shell/src/SidebarRail";
|
|
230
|
+
export { SidebarResizeHandle, useAppShellResize } from "../shell/src/SidebarResize";
|
|
231
|
+
export type {
|
|
232
|
+
AppShellResize,
|
|
233
|
+
SidebarResizeHandleProps,
|
|
234
|
+
SidebarResizeOptions,
|
|
235
|
+
} from "../shell/src/SidebarResize";
|
|
236
|
+
export { SidebarIconTooltip } from "../shell/src/SidebarIconTooltip";
|
|
237
|
+
export type { SidebarIconTooltipProps } from "../shell/src/SidebarIconTooltip";
|
|
238
|
+
export { SidebarPanel } from "../shell/src/SidebarPanel";
|
|
239
|
+
export type { SidebarPanelProps } from "../shell/src/SidebarPanel";
|
|
240
|
+
export { SidebarAccountMenu, SidebarAccountMenuPlaceholder } from "../shell/src/SidebarAccountMenu";
|
|
241
|
+
export type {
|
|
242
|
+
SidebarAccountMenuProps,
|
|
243
|
+
SidebarAccountMenuPlaceholderProps,
|
|
244
|
+
} from "../shell/src/SidebarAccountMenu";
|
|
245
|
+
export { SignOutDialog } from "../shell/src/SignOutDialog";
|
|
246
|
+
export type { SignOutDialogProps } from "../shell/src/SignOutDialog";
|
|
247
|
+
export {
|
|
248
|
+
railBadgeClass,
|
|
249
|
+
railTileClass,
|
|
250
|
+
railTileStateClass,
|
|
251
|
+
sidebarNavIconClass,
|
|
252
|
+
sidebarNavItemActionsClass,
|
|
253
|
+
sidebarNavItemClass,
|
|
254
|
+
sidebarNavItemIndentStyle,
|
|
255
|
+
sidebarNavItemLabelClass,
|
|
256
|
+
sidebarNavItemLeadingClass,
|
|
257
|
+
sidebarNavItemSubtitleClass,
|
|
258
|
+
sidebarNavItemTrailingClass,
|
|
259
|
+
sidebarNavLinkTextClass,
|
|
260
|
+
sidebarNavRowClass,
|
|
261
|
+
sidebarSectionLabelClass,
|
|
262
|
+
} from "../shell/src/app-shell-classes";
|
|
263
|
+
export type { SidebarNavItemClassOptions } from "../shell/src/app-shell-classes";
|
|
264
|
+
|
|
265
|
+
// Marketing: landing kit, site footer and pricing dialog. Router- and Motion-free;
|
|
266
|
+
// `createLandingKit` takes the app's `motion`. Styles: `@vvedantb/ui/landing.css`.
|
|
267
|
+
export {
|
|
268
|
+
LandingFeatureCard,
|
|
269
|
+
LandingFooter,
|
|
270
|
+
LandingLattice,
|
|
271
|
+
LandingNavMenu,
|
|
272
|
+
LandingPageLayout,
|
|
273
|
+
LandingSection,
|
|
274
|
+
LandingSectionHeading,
|
|
275
|
+
landingItemVariants,
|
|
276
|
+
} from "./marketing/landing";
|
|
277
|
+
export type {
|
|
278
|
+
LandingFeature,
|
|
279
|
+
LandingFooterProps,
|
|
280
|
+
LandingLatticeProps,
|
|
281
|
+
LandingLink,
|
|
282
|
+
LandingNavMenuProps,
|
|
283
|
+
LandingPageLayoutProps,
|
|
284
|
+
LandingSectionHeadingProps,
|
|
285
|
+
LandingSectionProps,
|
|
286
|
+
} from "./marketing/landing";
|
|
287
|
+
export { createLandingKit } from "./marketing/createLandingKit";
|
|
288
|
+
export type {
|
|
289
|
+
LandingCtaProps,
|
|
290
|
+
LandingHeroProps,
|
|
291
|
+
LandingKit,
|
|
292
|
+
LandingKitOptions,
|
|
293
|
+
LandingMotion,
|
|
294
|
+
LandingNavProps,
|
|
295
|
+
LandingRevealItemProps,
|
|
296
|
+
LandingRevealProps,
|
|
297
|
+
} from "./marketing/createLandingKit";
|
|
298
|
+
export {
|
|
299
|
+
landingFooterButtonClass,
|
|
300
|
+
landingFooterLinkClass,
|
|
301
|
+
landingPanelClass,
|
|
302
|
+
landingShellClass,
|
|
303
|
+
} from "./marketing/marketing-classes";
|
|
304
|
+
export type { PricingModalTone, SiteFooterVariant } from "./marketing/marketing-classes";
|
|
305
|
+
export { SiteFooter } from "./marketing/SiteFooter";
|
|
306
|
+
export type { SiteFooterLink, SiteFooterProps, SiteFooterSocial } from "./marketing/SiteFooter";
|
|
307
|
+
export { PricingModal, V_PRO_APP_BENEFITS } from "./marketing/PricingModal";
|
|
308
|
+
export type {
|
|
309
|
+
PricingModalLegacyProps,
|
|
310
|
+
PricingModalMultiProps,
|
|
311
|
+
PricingModalPeriod,
|
|
312
|
+
PricingModalProps,
|
|
313
|
+
PricingPlan,
|
|
314
|
+
PricingPlanAppBenefit,
|
|
315
|
+
PricingPlanBenefit,
|
|
316
|
+
} from "./marketing/PricingModal";
|
|
317
|
+
|
|
318
|
+
// App helpers: confirm skip, update watcher, settings chrome, theme, page title,
|
|
319
|
+
// page motion, time, VITE env and error messages. Not here: `ConvexClerkProvider`,
|
|
320
|
+
// `useStableAuth` and `useEnsureUser`, which import convex or Clerk.
|
|
321
|
+
export {
|
|
322
|
+
bindToWindow,
|
|
323
|
+
createAltHeldStore,
|
|
324
|
+
getAltHeld,
|
|
325
|
+
useAltHeld,
|
|
326
|
+
type AltHeldBinding,
|
|
327
|
+
type AltHeldSignals,
|
|
328
|
+
type AltHeldStore,
|
|
329
|
+
type AltKeyEvent,
|
|
330
|
+
} from "../app/src/confirm/useAltHeld";
|
|
331
|
+
export { requestConfirm, shouldSkipConfirm } from "../app/src/confirm/confirmSkip";
|
|
332
|
+
export { useRequestConfirm } from "../app/src/confirm/useRequestConfirm";
|
|
333
|
+
export { ConfirmSkipHint, skipConfirmTitle } from "../app/src/confirm/ConfirmSkipHint";
|
|
334
|
+
export { fetchDeployFingerprint, fingerprintFromHtml } from "../app/src/update/deployFingerprint";
|
|
335
|
+
export {
|
|
336
|
+
startUpdateAvailableWatcher,
|
|
337
|
+
type UpdateAvailableWatcherOptions,
|
|
338
|
+
type UpdateToastOptions,
|
|
339
|
+
} from "../app/src/update/updateWatcher";
|
|
340
|
+
export { SettingsSection, type SettingsSectionConfig } from "../app/src/settings/SettingsSection";
|
|
341
|
+
export { SettingsField } from "../app/src/settings/SettingsField";
|
|
342
|
+
export { SettingsStack } from "../app/src/settings/SettingsStack";
|
|
343
|
+
export { SettingsToggleRow } from "../app/src/settings/SettingsToggleRow";
|
|
344
|
+
export { SettingsEmptyState, type SettingsEmptyStateConfig } from "../app/src/settings/SettingsEmptyState";
|
|
345
|
+
export {
|
|
346
|
+
DefaultSettingsLayout,
|
|
347
|
+
SettingsPage,
|
|
348
|
+
type SettingsLayoutProps,
|
|
349
|
+
type SettingsPageProps,
|
|
350
|
+
} from "../app/src/settings/SettingsPage";
|
|
351
|
+
export {
|
|
352
|
+
applyThemeClass,
|
|
353
|
+
createThemeProvider,
|
|
354
|
+
getSystemTheme,
|
|
355
|
+
type ThemeAttribute,
|
|
356
|
+
type ThemeProviderKit,
|
|
357
|
+
type ThemeProviderOptions,
|
|
358
|
+
type ThemeProviderProps,
|
|
359
|
+
type ThemeState,
|
|
360
|
+
} from "../app/src/theme/createThemeProvider";
|
|
361
|
+
export {
|
|
362
|
+
createPageTitleContext,
|
|
363
|
+
type DocumentTitleOptions,
|
|
364
|
+
type PageTitleContextKit,
|
|
365
|
+
type PageTitleContextOptions,
|
|
366
|
+
type PageTitleValue,
|
|
367
|
+
} from "../app/src/page-title/createPageTitleContext";
|
|
368
|
+
export {
|
|
369
|
+
PageMotionProvider,
|
|
370
|
+
useDisablePageMotion,
|
|
371
|
+
type PageMotionConfigProps,
|
|
372
|
+
type PageMotionProviderProps,
|
|
373
|
+
} from "../app/src/page-motion/PageMotionProvider";
|
|
374
|
+
export { formatCompactRelativeTime, type CompactRelativeTimeOptions } from "../app/src/time/compactRelativeTime";
|
|
375
|
+
export {
|
|
376
|
+
parseClientEnv,
|
|
377
|
+
VITE_ENV_NAMES,
|
|
378
|
+
type ClientEnv,
|
|
379
|
+
type ClientEnvOptions,
|
|
380
|
+
type ClientEnvSource,
|
|
381
|
+
type ClientEnvWithoutViteEnv,
|
|
382
|
+
type ViteEnvMode,
|
|
383
|
+
type ViteEnvName,
|
|
384
|
+
} from "../app/src/convex/env";
|
|
385
|
+
export { convexErrorMessage, userFacingErrorMessage } from "../app/src/convex/errorMessage";
|
|
386
|
+
export { useHeldResult } from "../app/src/convex/useHeldResult";
|
|
387
|
+
|
|
388
|
+
// Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
|
|
389
|
+
export * from "./brand";
|
|
390
|
+
|
|
391
|
+
// Native tokens (JS values that match tokens.css).
|
|
392
|
+
export { tokens } from "../tokens/src/native";
|
|
393
|
+
export type { Tokens } from "../tokens/src/native";
|