@opencode/ui 2.2.5 → 2.2.7
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/actions/button/button.d.ts +2 -2
- package/dist/actions/icon-button/icon-button.d.ts +1 -1
- package/dist/components/animated-number-machine.d.ts +95 -0
- package/dist/components/file-icon-machine.d.ts +40 -0
- package/dist/components/file-icon.d.ts +0 -2
- package/dist/components/file-icons/choose-icon-name.d.ts +2 -0
- package/dist/components/image-flight-machine.d.ts +135 -0
- package/dist/components/image-zoom-machine.d.ts +95 -0
- package/dist/components/image-zoom.d.ts +6 -3
- package/dist/components/list.d.ts +2 -6
- package/dist/components/menu-scroll.d.ts +9 -3
- package/dist/components/popover-machine.d.ts +96 -0
- package/dist/components/popover.d.ts +2 -2
- package/dist/components/resize-handle-machine.d.ts +71 -0
- package/dist/components/resize-handle.d.ts +2 -0
- package/dist/components/scroll-view-machine.d.ts +68 -0
- package/dist/components/scroll-view.d.ts +2 -2
- package/dist/components/spinner.d.ts +11 -3
- package/dist/components/text-field-machine.d.ts +62 -0
- package/dist/components/text-reveal-machine.d.ts +90 -0
- package/dist/components/typewriter-machine.d.ts +62 -0
- package/dist/context/dialog-machine.d.ts +125 -0
- package/dist/context/dialog.d.ts +17 -16
- package/dist/data-display/line-comment/machine.d.ts +157 -0
- package/dist/data-display/project-avatar/animation-machine.d.ts +62 -0
- package/dist/data-display/project-avatar/animation.d.ts +1 -1
- package/dist/feedback/activity-ring/activity-ring.d.ts +2 -1
- package/dist/feedback/toast/machine.d.ts +57 -0
- package/dist/feedback/toast/toast.d.ts +1 -1
- package/dist/forms/checkbox/checkbox.d.ts +6 -1
- package/dist/forms/select/machine.d.ts +45 -0
- package/dist/forms/select/select.d.ts +4 -0
- package/dist/forms/typeahead/machine.d.ts +85 -0
- package/dist/hooks/auto-scroll-machine.d.ts +89 -0
- package/dist/hooks/create-auto-scroll.d.ts +1 -1
- package/dist/hooks/list-machine.d.ts +150 -0
- package/dist/hooks/use-filtered-list.d.ts +21 -35
- package/dist/i18n/en.d.ts +5 -0
- package/dist/icons/catalog.d.ts +8 -0
- package/dist/navigation/menu/machine.d.ts +49 -0
- package/dist/navigation/menu/menu.d.ts +5 -3
- package/dist/navigation/segmented-control/machine.d.ts +46 -0
- package/dist/overlays/mcp-sign-in/machine.d.ts +184 -0
- package/dist/overlays/mcp-sign-in/mcp-sign-in.d.ts +40 -0
- package/dist/overlays/tooltip/machine.d.ts +146 -0
- package/dist/theme/context.d.ts +38 -14
- package/dist/theme/machine.d.ts +174 -0
- package/dist/typography/text-shimmer/machine.d.ts +48 -0
- package/package.json +128 -111
- package/src/actions/button/button.tsx +11 -6
- package/src/actions/icon-button/icon-button.tsx +17 -4
- package/src/components/animated-number-machine.ts +214 -0
- package/src/components/animated-number.tsx +134 -83
- package/src/components/file-icon-machine.ts +78 -0
- package/src/components/file-icon.tsx +96 -579
- package/src/components/file-icons/choose-icon-name.ts +574 -0
- package/src/components/image-flight-machine.ts +247 -0
- package/src/components/image-preview.css +5 -2
- package/src/components/image-preview.tsx +390 -252
- package/src/components/image-zoom-machine.ts +191 -0
- package/src/components/image-zoom.ts +22 -14
- package/src/components/list.tsx +46 -137
- package/src/components/menu-scroll.css +19 -8
- package/src/components/menu-scroll.tsx +111 -34
- package/src/components/popover-machine.ts +198 -0
- package/src/components/popover.tsx +157 -89
- package/src/components/resize-handle-machine.ts +174 -0
- package/src/components/resize-handle.tsx +116 -67
- package/src/components/scroll-view-machine.ts +244 -0
- package/src/components/scroll-view.tsx +163 -116
- package/src/components/spinner.css +18 -5
- package/src/components/spinner.tsx +28 -14
- package/src/components/text-field-machine.ts +102 -0
- package/src/components/text-field.tsx +78 -24
- package/src/components/text-reveal-machine.ts +184 -0
- package/src/components/text-reveal.tsx +96 -93
- package/src/components/typewriter-machine.ts +134 -0
- package/src/components/typewriter.tsx +50 -39
- package/src/context/dialog-machine.ts +280 -0
- package/src/context/dialog.tsx +168 -177
- package/src/data-display/line-comment/line-comment.tsx +157 -178
- package/src/data-display/line-comment/machine.ts +391 -0
- package/src/data-display/project-avatar/animation-machine.ts +182 -0
- package/src/data-display/project-avatar/animation.ts +67 -38
- package/src/feedback/activity-ring/activity-ring.tsx +1 -1
- package/src/feedback/toast/machine.ts +115 -0
- package/src/feedback/toast/toast.tsx +59 -59
- package/src/forms/checkbox/checkbox-compact.css +169 -0
- package/src/forms/checkbox/checkbox.tsx +93 -31
- package/src/forms/inline-input/inline-input.css +0 -1
- package/src/forms/search-list/search-list.css +5 -1
- package/src/forms/search-list/search-list.tsx +18 -10
- package/src/forms/select/machine.ts +81 -0
- package/src/forms/select/select.css +59 -17
- package/src/forms/select/select.tsx +74 -32
- package/src/forms/typeahead/machine.ts +253 -0
- package/src/forms/typeahead/typeahead.tsx +70 -62
- package/src/hooks/auto-scroll-machine.ts +261 -0
- package/src/hooks/create-auto-scroll.tsx +110 -205
- package/src/hooks/list-machine.ts +359 -0
- package/src/hooks/use-filtered-list.tsx +101 -112
- package/src/i18n/en.ts +6 -1
- package/src/i18n/uk.ts +3 -3
- package/src/icons/catalog.ts +8 -0
- package/src/navigation/menu/machine.ts +109 -0
- package/src/navigation/menu/menu.tsx +133 -22
- package/src/navigation/segmented-control/machine.ts +72 -0
- package/src/navigation/segmented-control/segmented-control.tsx +46 -46
- package/src/overlays/dialog/dialog.tsx +7 -1
- package/src/overlays/mcp-sign-in/machine.ts +343 -0
- package/src/overlays/mcp-sign-in/mcp-sign-in.ts +159 -0
- package/src/overlays/tooltip/machine.ts +303 -0
- package/src/overlays/tooltip/tooltip.tsx +159 -92
- package/src/styles/theme.css +10 -2
- package/src/theme/context.tsx +192 -269
- package/src/theme/machine.ts +508 -0
- package/src/typography/text-shimmer/machine.ts +90 -0
- package/src/typography/text-shimmer/text-shimmer.css +71 -39
- package/src/typography/text-shimmer/text-shimmer.tsx +41 -24
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { DesktopTheme } from "./types";
|
|
2
|
+
export type ColorScheme = "light" | "dark" | "system";
|
|
3
|
+
export type ResolvedMode = "light" | "dark";
|
|
4
|
+
export declare const DEFAULT_THEME_ID = "oc-2";
|
|
5
|
+
/** A bundled theme import that has not settled by then shows the default theme until it arrives. */
|
|
6
|
+
export declare const THEME_LOAD_TIMEOUT_MS = 5000;
|
|
7
|
+
export type ThemeSelection = {
|
|
8
|
+
readonly themeId: string;
|
|
9
|
+
readonly scheme: ColorScheme;
|
|
10
|
+
};
|
|
11
|
+
/** Overrides one or both axes of the committed selection; a preview with neither is `committed`. */
|
|
12
|
+
export type ThemePreview = {
|
|
13
|
+
readonly themeId?: string;
|
|
14
|
+
readonly scheme?: ColorScheme;
|
|
15
|
+
};
|
|
16
|
+
/** What the window shows. `preload` is a registered theme that may still arrive: the cached colors stay on screen. */
|
|
17
|
+
export type AppliedTheme = {
|
|
18
|
+
readonly kind: "theme";
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly theme: DesktopTheme;
|
|
21
|
+
readonly mode: ResolvedMode;
|
|
22
|
+
readonly scheme: ColorScheme;
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: "preload";
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly mode: ResolvedMode;
|
|
27
|
+
readonly scheme: ColorScheme;
|
|
28
|
+
};
|
|
29
|
+
/** The colors in localStorage that the next start paints before the app loads. `unknown` keeps the last run's. */
|
|
30
|
+
export type CachedTheme = {
|
|
31
|
+
readonly status: "unknown";
|
|
32
|
+
} | {
|
|
33
|
+
readonly status: "cleared";
|
|
34
|
+
} | {
|
|
35
|
+
readonly status: "cached";
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly theme: DesktopTheme;
|
|
38
|
+
};
|
|
39
|
+
type ThemeData = {
|
|
40
|
+
readonly committed: ThemeSelection;
|
|
41
|
+
readonly systemMode: ResolvedMode;
|
|
42
|
+
/** `settled` once every theme source has registered what it will: a missing registered theme is not coming. */
|
|
43
|
+
readonly registration: "pending" | "settled";
|
|
44
|
+
/** Loaded bundled themes and registered themes, by id. */
|
|
45
|
+
readonly themes: Readonly<Record<string, DesktopTheme>>;
|
|
46
|
+
/** The attempt of each bundled theme import in flight, including one that timed out and may still arrive. */
|
|
47
|
+
readonly loads: Readonly<Record<string, number>>;
|
|
48
|
+
/**
|
|
49
|
+
* Bundled themes the window shows the default theme for: the import failed, or timed out and may still arrive.
|
|
50
|
+
* Selecting, previewing or preloading one tries again.
|
|
51
|
+
*/
|
|
52
|
+
readonly failed: Readonly<Record<string, true>>;
|
|
53
|
+
readonly issued: number;
|
|
54
|
+
readonly applied: AppliedTheme | undefined;
|
|
55
|
+
readonly cached: CachedTheme;
|
|
56
|
+
};
|
|
57
|
+
export type ThemeMachineState = ({
|
|
58
|
+
readonly status: "committed";
|
|
59
|
+
} & ThemeData) | ({
|
|
60
|
+
readonly status: "previewing";
|
|
61
|
+
readonly preview: ThemePreview;
|
|
62
|
+
} & ThemeData) | ({
|
|
63
|
+
readonly status: "disposed";
|
|
64
|
+
} & ThemeData);
|
|
65
|
+
export type ThemeEvent = {
|
|
66
|
+
readonly type: "theme.selected";
|
|
67
|
+
readonly id: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly type: "scheme.selected";
|
|
70
|
+
readonly scheme: ColorScheme;
|
|
71
|
+
} | {
|
|
72
|
+
readonly type: "preview.theme";
|
|
73
|
+
readonly id: string;
|
|
74
|
+
} | {
|
|
75
|
+
readonly type: "preview.scheme";
|
|
76
|
+
readonly scheme: ColorScheme;
|
|
77
|
+
} | {
|
|
78
|
+
readonly type: "preview.committed";
|
|
79
|
+
} | {
|
|
80
|
+
readonly type: "preview.cancelled";
|
|
81
|
+
} | {
|
|
82
|
+
readonly type: "theme.registered";
|
|
83
|
+
readonly theme: DesktopTheme;
|
|
84
|
+
} | {
|
|
85
|
+
readonly type: "theme.unregistered";
|
|
86
|
+
readonly theme: DesktopTheme;
|
|
87
|
+
} | {
|
|
88
|
+
readonly type: "settled";
|
|
89
|
+
} | {
|
|
90
|
+
readonly type: "themes.preload";
|
|
91
|
+
} | {
|
|
92
|
+
readonly type: "theme.loaded";
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly attempt: number;
|
|
95
|
+
readonly theme: DesktopTheme;
|
|
96
|
+
} | {
|
|
97
|
+
readonly type: "theme.load.failed";
|
|
98
|
+
readonly id: string;
|
|
99
|
+
readonly attempt: number;
|
|
100
|
+
} | {
|
|
101
|
+
readonly type: "theme.load.timed-out";
|
|
102
|
+
readonly id: string;
|
|
103
|
+
readonly attempt: number;
|
|
104
|
+
} | {
|
|
105
|
+
readonly type: "system.mode.changed";
|
|
106
|
+
readonly mode: ResolvedMode;
|
|
107
|
+
} | {
|
|
108
|
+
readonly type: "storage.theme.changed";
|
|
109
|
+
readonly id: string;
|
|
110
|
+
} | {
|
|
111
|
+
readonly type: "storage.scheme.changed";
|
|
112
|
+
readonly scheme: ColorScheme;
|
|
113
|
+
} | {
|
|
114
|
+
readonly type: "disposed";
|
|
115
|
+
};
|
|
116
|
+
export type ThemeEffect = {
|
|
117
|
+
readonly type: "load-theme";
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly attempt: number;
|
|
120
|
+
readonly timeoutMs: number;
|
|
121
|
+
} | {
|
|
122
|
+
readonly type: "cancel-load-timer";
|
|
123
|
+
readonly attempt: number;
|
|
124
|
+
} | {
|
|
125
|
+
readonly type: "cancel-all-loads";
|
|
126
|
+
} | {
|
|
127
|
+
readonly type: "persist-theme";
|
|
128
|
+
readonly id: string;
|
|
129
|
+
} | {
|
|
130
|
+
readonly type: "persist-scheme";
|
|
131
|
+
readonly scheme: ColorScheme;
|
|
132
|
+
} | {
|
|
133
|
+
readonly type: "cache-theme";
|
|
134
|
+
readonly id: string;
|
|
135
|
+
readonly theme: DesktopTheme;
|
|
136
|
+
} | {
|
|
137
|
+
readonly type: "clear-cache";
|
|
138
|
+
} | {
|
|
139
|
+
readonly type: "apply-theme";
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly theme: DesktopTheme;
|
|
142
|
+
readonly mode: ResolvedMode;
|
|
143
|
+
readonly scheme: ColorScheme;
|
|
144
|
+
} | {
|
|
145
|
+
readonly type: "notify-applied";
|
|
146
|
+
readonly mode: ResolvedMode;
|
|
147
|
+
readonly scheme: ColorScheme;
|
|
148
|
+
} | {
|
|
149
|
+
readonly type: "warn-missing-theme";
|
|
150
|
+
readonly id: string;
|
|
151
|
+
};
|
|
152
|
+
export type ThemeTransition = {
|
|
153
|
+
readonly state: ThemeMachineState;
|
|
154
|
+
readonly effects: readonly ThemeEffect[];
|
|
155
|
+
};
|
|
156
|
+
export declare function parseColorScheme(value: string | null | undefined): ColorScheme;
|
|
157
|
+
export declare function createThemeState(input: {
|
|
158
|
+
readonly themeId: string;
|
|
159
|
+
readonly scheme: ColorScheme;
|
|
160
|
+
readonly systemMode: ResolvedMode;
|
|
161
|
+
readonly defaultTheme: DesktopTheme;
|
|
162
|
+
readonly bundled: ReadonlySet<string>;
|
|
163
|
+
}): ThemeTransition;
|
|
164
|
+
export declare function transitionTheme(state: ThemeMachineState, event: ThemeEvent, bundled: ReadonlySet<string>): ThemeTransition;
|
|
165
|
+
/** The theme the window should show when nothing is previewed. */
|
|
166
|
+
export declare function selectCommittedThemeId(state: ThemeMachineState, bundled: ReadonlySet<string>): string;
|
|
167
|
+
export declare function selectThemeId(state: ThemeMachineState, bundled: ReadonlySet<string>): string;
|
|
168
|
+
/** The scheme the user chose; a preview does not change it. */
|
|
169
|
+
export declare function selectColorScheme(state: ThemeMachineState): ColorScheme;
|
|
170
|
+
/** The light or dark mode the window shows, preview included. */
|
|
171
|
+
export declare function selectMode(state: ThemeMachineState): ResolvedMode;
|
|
172
|
+
/** An import is still within its timeout. */
|
|
173
|
+
export declare function selectThemesLoading(state: ThemeMachineState): boolean;
|
|
174
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Matches the opacity crossfade in `text-shimmer.css`; the sweep keeps running until the shimmer layer has faded. */
|
|
2
|
+
export declare const TEXT_SHIMMER_SWAP_MS = 220;
|
|
3
|
+
/**
|
|
4
|
+
* `active` shows the shimmer layer and runs its sweep. `fading` has already crossfaded back to the plain text and only
|
|
5
|
+
* keeps the sweep running until the fade ends, so the layer never freezes mid-fade. `inactive` runs nothing.
|
|
6
|
+
*/
|
|
7
|
+
export type TextShimmerState = {
|
|
8
|
+
readonly status: "inactive";
|
|
9
|
+
readonly attempts: number;
|
|
10
|
+
} | {
|
|
11
|
+
readonly status: "active";
|
|
12
|
+
readonly attempts: number;
|
|
13
|
+
} | {
|
|
14
|
+
readonly status: "fading";
|
|
15
|
+
readonly attempt: number;
|
|
16
|
+
} | {
|
|
17
|
+
readonly status: "disposed";
|
|
18
|
+
};
|
|
19
|
+
export type TextShimmerEvent = {
|
|
20
|
+
readonly type: "sync";
|
|
21
|
+
readonly active: boolean;
|
|
22
|
+
readonly reducedMotion: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
readonly type: "settled";
|
|
25
|
+
readonly attempt: number;
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "disposed";
|
|
28
|
+
};
|
|
29
|
+
export declare const INITIAL_INACTIVE_TEXT_SHIMMER_STATE: TextShimmerState;
|
|
30
|
+
export declare const INITIAL_ACTIVE_TEXT_SHIMMER_STATE: TextShimmerState;
|
|
31
|
+
export declare const DISPOSED_TEXT_SHIMMER_STATE: TextShimmerState;
|
|
32
|
+
export declare const DISPOSED_TEXT_SHIMMER_EVENT: TextShimmerEvent;
|
|
33
|
+
export declare function syncTextShimmerEvent(active: boolean, reducedMotion: boolean): TextShimmerEvent;
|
|
34
|
+
export declare function createTextShimmerState(active: boolean): TextShimmerState;
|
|
35
|
+
export declare function transitionTextShimmer(state: TextShimmerState, event: TextShimmerEvent): TextShimmerState;
|
|
36
|
+
/** Whether the shimmer layer is shown; drives the opacity crossfade. */
|
|
37
|
+
export declare function selectTextShimmerActive(state: TextShimmerState): state is {
|
|
38
|
+
readonly status: "active";
|
|
39
|
+
readonly attempts: number;
|
|
40
|
+
};
|
|
41
|
+
/** Whether the sweep animation runs; it outlives `active` by the crossfade. */
|
|
42
|
+
export declare function selectTextShimmerRunning(state: TextShimmerState): state is {
|
|
43
|
+
readonly status: "active";
|
|
44
|
+
readonly attempts: number;
|
|
45
|
+
} | {
|
|
46
|
+
readonly status: "fading";
|
|
47
|
+
readonly attempt: number;
|
|
48
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,228 +36,245 @@
|
|
|
36
36
|
"exports": {
|
|
37
37
|
"./package.json": "./package.json",
|
|
38
38
|
"./accordion": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"types": "./dist/data-display/accordion/accordion.d.ts",
|
|
40
|
+
"import": "./src/data-display/accordion/accordion.tsx"
|
|
41
41
|
},
|
|
42
42
|
"./activity-ring": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"types": "./dist/feedback/activity-ring/activity-ring.d.ts",
|
|
44
|
+
"import": "./src/feedback/activity-ring/activity-ring.tsx"
|
|
45
45
|
},
|
|
46
46
|
"./avatar": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"types": "./dist/data-display/avatar/avatar.d.ts",
|
|
48
|
+
"import": "./src/data-display/avatar/avatar.tsx"
|
|
49
49
|
},
|
|
50
50
|
"./badge": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"types": "./dist/data-display/badge/badge.d.ts",
|
|
52
|
+
"import": "./src/data-display/badge/badge.tsx"
|
|
53
53
|
},
|
|
54
54
|
"./button": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"types": "./dist/actions/button/button.d.ts",
|
|
56
|
+
"import": "./src/actions/button/button.tsx"
|
|
57
57
|
},
|
|
58
58
|
"./button.css": "./src/actions/button/button.css",
|
|
59
59
|
"./checkbox": {
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"types": "./dist/forms/checkbox/checkbox.d.ts",
|
|
61
|
+
"import": "./src/forms/checkbox/checkbox.tsx"
|
|
62
62
|
},
|
|
63
63
|
"./dialog": {
|
|
64
|
-
"
|
|
65
|
-
"
|
|
64
|
+
"types": "./dist/overlays/dialog/dialog.d.ts",
|
|
65
|
+
"import": "./src/overlays/dialog/dialog.tsx"
|
|
66
66
|
},
|
|
67
67
|
"./diff-changes": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
68
|
+
"types": "./dist/data-display/diff-changes/diff-changes.d.ts",
|
|
69
|
+
"import": "./src/data-display/diff-changes/diff-changes.tsx"
|
|
70
70
|
},
|
|
71
71
|
"./divider": {
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"types": "./dist/layout/divider/divider.d.ts",
|
|
73
|
+
"import": "./src/layout/divider/divider.tsx"
|
|
74
74
|
},
|
|
75
75
|
"./document-surface.css": "./src/components/document-surface.css",
|
|
76
76
|
"./field": {
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"types": "./dist/forms/field/field.d.ts",
|
|
78
|
+
"import": "./src/forms/field/field.tsx"
|
|
79
79
|
},
|
|
80
80
|
"./file-tree.css": "./src/styles/file-tree.css",
|
|
81
81
|
"./icon": {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
82
|
+
"types": "./dist/icons/icon/icon.d.ts",
|
|
83
|
+
"import": "./src/icons/icon/icon.tsx"
|
|
84
84
|
},
|
|
85
85
|
"./icons/catalog": {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
86
|
+
"types": "./dist/icons/catalog.d.ts",
|
|
87
|
+
"import": "./src/icons/catalog.ts"
|
|
88
88
|
},
|
|
89
89
|
"./icon-button": {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
90
|
+
"types": "./dist/actions/icon-button/icon-button.d.ts",
|
|
91
|
+
"import": "./src/actions/icon-button/icon-button.tsx"
|
|
92
92
|
},
|
|
93
93
|
"./inline-input": {
|
|
94
|
-
"
|
|
95
|
-
"
|
|
94
|
+
"types": "./dist/forms/inline-input/inline-input.d.ts",
|
|
95
|
+
"import": "./src/forms/inline-input/inline-input.tsx"
|
|
96
96
|
},
|
|
97
97
|
"./keybind": {
|
|
98
|
-
"
|
|
99
|
-
"
|
|
98
|
+
"types": "./dist/data-display/keybind/keybind.d.ts",
|
|
99
|
+
"import": "./src/data-display/keybind/keybind.tsx"
|
|
100
100
|
},
|
|
101
101
|
"./line-comment": {
|
|
102
|
-
"
|
|
103
|
-
"
|
|
102
|
+
"types": "./dist/data-display/line-comment/line-comment.d.ts",
|
|
103
|
+
"import": "./src/data-display/line-comment/line-comment.tsx"
|
|
104
|
+
},
|
|
105
|
+
"./line-comment/machine": {
|
|
106
|
+
"types": "./dist/data-display/line-comment/machine.d.ts",
|
|
107
|
+
"import": "./src/data-display/line-comment/machine.ts"
|
|
104
108
|
},
|
|
105
109
|
"./loader": {
|
|
106
|
-
"
|
|
107
|
-
"
|
|
110
|
+
"types": "./dist/feedback/loader/loader.d.ts",
|
|
111
|
+
"import": "./src/feedback/loader/loader.tsx"
|
|
112
|
+
},
|
|
113
|
+
"./mcp-sign-in": {
|
|
114
|
+
"types": "./dist/overlays/mcp-sign-in/mcp-sign-in.d.ts",
|
|
115
|
+
"import": "./src/overlays/mcp-sign-in/mcp-sign-in.ts"
|
|
116
|
+
},
|
|
117
|
+
"./mcp-sign-in/machine": {
|
|
118
|
+
"types": "./dist/overlays/mcp-sign-in/machine.d.ts",
|
|
119
|
+
"import": "./src/overlays/mcp-sign-in/machine.ts"
|
|
108
120
|
},
|
|
109
121
|
"./menu": {
|
|
110
|
-
"
|
|
111
|
-
"
|
|
122
|
+
"types": "./dist/navigation/menu/menu.d.ts",
|
|
123
|
+
"import": "./src/navigation/menu/menu.tsx"
|
|
112
124
|
},
|
|
113
125
|
"./motion": {
|
|
114
|
-
"
|
|
115
|
-
"
|
|
126
|
+
"types": "./dist/motion/index.d.ts",
|
|
127
|
+
"import": "./src/motion/index.ts"
|
|
116
128
|
},
|
|
117
129
|
"./motion/solid": {
|
|
118
|
-
"
|
|
119
|
-
"
|
|
130
|
+
"types": "./dist/motion/solid.d.ts",
|
|
131
|
+
"import": "./src/motion/solid.ts"
|
|
120
132
|
},
|
|
121
133
|
"./motion-tuning": {
|
|
122
|
-
"
|
|
123
|
-
"
|
|
134
|
+
"types": "./dist/motion-tuning.d.ts",
|
|
135
|
+
"import": "./src/motion-tuning.ts"
|
|
124
136
|
},
|
|
125
137
|
"./motion-tuning-features": {
|
|
126
|
-
"
|
|
127
|
-
"
|
|
138
|
+
"types": "./dist/motion-tuning-features.d.ts",
|
|
139
|
+
"import": "./src/motion-tuning-features.ts"
|
|
128
140
|
},
|
|
129
141
|
"./motion-tuning-fields": {
|
|
130
|
-
"
|
|
131
|
-
"
|
|
142
|
+
"types": "./dist/motion-tuning-fields.d.ts",
|
|
143
|
+
"import": "./src/motion-tuning-fields.ts"
|
|
132
144
|
},
|
|
133
145
|
"./progress-circle": {
|
|
134
|
-
"
|
|
135
|
-
"
|
|
146
|
+
"types": "./dist/feedback/progress-circle/progress-circle.d.ts",
|
|
147
|
+
"import": "./src/feedback/progress-circle/progress-circle.tsx"
|
|
136
148
|
},
|
|
137
149
|
"./project-avatar": {
|
|
138
|
-
"
|
|
139
|
-
"
|
|
150
|
+
"types": "./dist/data-display/project-avatar/project-avatar.d.ts",
|
|
151
|
+
"import": "./src/data-display/project-avatar/project-avatar.tsx"
|
|
140
152
|
},
|
|
141
153
|
"./radio": {
|
|
142
|
-
"
|
|
143
|
-
"
|
|
154
|
+
"types": "./dist/forms/radio/radio.d.ts",
|
|
155
|
+
"import": "./src/forms/radio/radio.tsx"
|
|
144
156
|
},
|
|
145
157
|
"./search-list": {
|
|
146
|
-
"
|
|
147
|
-
"
|
|
158
|
+
"types": "./dist/forms/search-list/search-list.d.ts",
|
|
159
|
+
"import": "./src/forms/search-list/search-list.tsx"
|
|
148
160
|
},
|
|
149
161
|
"./segmented-control": {
|
|
150
|
-
"
|
|
151
|
-
"
|
|
162
|
+
"types": "./dist/navigation/segmented-control/segmented-control.d.ts",
|
|
163
|
+
"import": "./src/navigation/segmented-control/segmented-control.tsx"
|
|
152
164
|
},
|
|
153
165
|
"./select": {
|
|
154
|
-
"
|
|
155
|
-
"
|
|
166
|
+
"types": "./dist/forms/select/select.d.ts",
|
|
167
|
+
"import": "./src/forms/select/select.tsx"
|
|
156
168
|
},
|
|
169
|
+
"./select.css": "./src/forms/select/select.css",
|
|
157
170
|
"./split-button": {
|
|
158
|
-
"
|
|
159
|
-
"
|
|
171
|
+
"types": "./dist/actions/split-button/split-button.d.ts",
|
|
172
|
+
"import": "./src/actions/split-button/split-button.tsx"
|
|
160
173
|
},
|
|
161
174
|
"./switch": {
|
|
162
|
-
"
|
|
163
|
-
"
|
|
175
|
+
"types": "./dist/forms/switch/switch.d.ts",
|
|
176
|
+
"import": "./src/forms/switch/switch.tsx"
|
|
164
177
|
},
|
|
165
178
|
"./tab-state-indicator": {
|
|
166
|
-
"
|
|
167
|
-
"
|
|
179
|
+
"types": "./dist/navigation/tab-state-indicator.d.ts",
|
|
180
|
+
"import": "./src/navigation/tab-state-indicator.tsx"
|
|
168
181
|
},
|
|
169
182
|
"./tabs": {
|
|
170
|
-
"
|
|
171
|
-
"
|
|
183
|
+
"types": "./dist/navigation/tabs/tabs.d.ts",
|
|
184
|
+
"import": "./src/navigation/tabs/tabs.tsx"
|
|
172
185
|
},
|
|
173
186
|
"./text-input": {
|
|
174
|
-
"
|
|
175
|
-
"
|
|
187
|
+
"types": "./dist/forms/text-input/text-input.d.ts",
|
|
188
|
+
"import": "./src/forms/text-input/text-input.tsx"
|
|
176
189
|
},
|
|
177
190
|
"./text-input.css": "./src/forms/text-input/text-input.css",
|
|
178
191
|
"./textarea": {
|
|
179
|
-
"
|
|
180
|
-
"
|
|
192
|
+
"types": "./dist/forms/textarea/textarea.d.ts",
|
|
193
|
+
"import": "./src/forms/textarea/textarea.tsx"
|
|
181
194
|
},
|
|
182
195
|
"./typeahead": {
|
|
183
|
-
"
|
|
184
|
-
"
|
|
196
|
+
"types": "./dist/forms/typeahead/typeahead.d.ts",
|
|
197
|
+
"import": "./src/forms/typeahead/typeahead.tsx"
|
|
185
198
|
},
|
|
186
199
|
"./slash": {
|
|
187
|
-
"
|
|
188
|
-
"
|
|
200
|
+
"types": "./dist/typography/slash/slash.d.ts",
|
|
201
|
+
"import": "./src/typography/slash/slash.tsx"
|
|
189
202
|
},
|
|
190
203
|
"./text-shimmer": {
|
|
191
|
-
"
|
|
192
|
-
"
|
|
204
|
+
"types": "./dist/typography/text-shimmer/text-shimmer.d.ts",
|
|
205
|
+
"import": "./src/typography/text-shimmer/text-shimmer.tsx"
|
|
193
206
|
},
|
|
194
207
|
"./toast": {
|
|
195
|
-
"
|
|
196
|
-
"
|
|
208
|
+
"types": "./dist/feedback/toast/toast.d.ts",
|
|
209
|
+
"import": "./src/feedback/toast/toast.tsx"
|
|
197
210
|
},
|
|
198
211
|
"./tooltip": {
|
|
199
|
-
"
|
|
200
|
-
"
|
|
212
|
+
"types": "./dist/overlays/tooltip/tooltip.d.ts",
|
|
213
|
+
"import": "./src/overlays/tooltip/tooltip.tsx"
|
|
201
214
|
},
|
|
202
215
|
"./wordmark": {
|
|
203
|
-
"
|
|
204
|
-
"
|
|
216
|
+
"types": "./dist/typography/wordmark/wordmark.d.ts",
|
|
217
|
+
"import": "./src/typography/wordmark/wordmark.tsx"
|
|
205
218
|
},
|
|
206
219
|
"./*": {
|
|
207
|
-
"
|
|
208
|
-
"
|
|
220
|
+
"types": "./dist/components/*.d.ts",
|
|
221
|
+
"import": "./src/components/*.tsx"
|
|
209
222
|
},
|
|
210
223
|
"./i18n/*": {
|
|
211
|
-
"
|
|
212
|
-
"
|
|
224
|
+
"types": "./dist/i18n/*.d.ts",
|
|
225
|
+
"import": "./src/i18n/*.ts"
|
|
213
226
|
},
|
|
214
227
|
"./hooks": {
|
|
215
|
-
"
|
|
216
|
-
"
|
|
228
|
+
"types": "./dist/hooks/index.d.ts",
|
|
229
|
+
"import": "./src/hooks/index.ts"
|
|
217
230
|
},
|
|
218
231
|
"./context": {
|
|
219
|
-
"
|
|
220
|
-
"
|
|
232
|
+
"types": "./dist/context/index.d.ts",
|
|
233
|
+
"import": "./src/context/index.ts"
|
|
221
234
|
},
|
|
222
235
|
"./context/*": {
|
|
223
|
-
"
|
|
224
|
-
"
|
|
236
|
+
"types": "./dist/context/*.d.ts",
|
|
237
|
+
"import": "./src/context/*.tsx"
|
|
225
238
|
},
|
|
226
239
|
"./storybook/scaffold": {
|
|
227
|
-
"
|
|
228
|
-
"
|
|
240
|
+
"types": "./dist/storybook/scaffold.d.ts",
|
|
241
|
+
"import": "./src/storybook/scaffold.tsx"
|
|
229
242
|
},
|
|
230
243
|
"./storybook/fixtures": {
|
|
231
|
-
"
|
|
232
|
-
"
|
|
244
|
+
"types": "./dist/storybook/fixtures.d.ts",
|
|
245
|
+
"import": "./src/storybook/fixtures.ts"
|
|
233
246
|
},
|
|
234
247
|
"./styles": "./src/styles/index.css",
|
|
235
248
|
"./styles/tokens": "./src/styles/tokens/index.css",
|
|
236
249
|
"./styles/tokens/*": "./src/styles/tokens/*",
|
|
237
250
|
"./styles/tailwind": "./src/styles/tailwind/index.css",
|
|
238
251
|
"./theme": {
|
|
239
|
-
"
|
|
240
|
-
"
|
|
252
|
+
"types": "./dist/theme/index.d.ts",
|
|
253
|
+
"import": "./src/theme/index.ts"
|
|
241
254
|
},
|
|
242
255
|
"./theme/*": {
|
|
243
|
-
"
|
|
244
|
-
"
|
|
256
|
+
"types": "./dist/theme/*.d.ts",
|
|
257
|
+
"import": "./src/theme/*.ts"
|
|
245
258
|
},
|
|
246
259
|
"./theme/context": {
|
|
247
|
-
"
|
|
248
|
-
"
|
|
260
|
+
"types": "./dist/theme/context.d.ts",
|
|
261
|
+
"import": "./src/theme/context.tsx"
|
|
249
262
|
},
|
|
250
263
|
"./icons/provider": {
|
|
251
|
-
"
|
|
252
|
-
"
|
|
264
|
+
"types": "./dist/components/provider-icons/types.d.ts",
|
|
265
|
+
"import": "./src/components/provider-icons/types.ts"
|
|
253
266
|
},
|
|
254
267
|
"./icons/file-type": {
|
|
255
|
-
"
|
|
256
|
-
"
|
|
268
|
+
"types": "./dist/components/file-icons/types.d.ts",
|
|
269
|
+
"import": "./src/components/file-icons/types.ts"
|
|
270
|
+
},
|
|
271
|
+
"./icons/file-type-name": {
|
|
272
|
+
"types": "./dist/components/file-icons/choose-icon-name.d.ts",
|
|
273
|
+
"import": "./src/components/file-icons/choose-icon-name.ts"
|
|
257
274
|
},
|
|
258
275
|
"./icons/app": {
|
|
259
|
-
"
|
|
260
|
-
"
|
|
276
|
+
"types": "./dist/components/app-icons/types.d.ts",
|
|
277
|
+
"import": "./src/components/app-icons/types.ts"
|
|
261
278
|
},
|
|
262
279
|
"./fonts/*": "./src/assets/fonts/*",
|
|
263
280
|
"./audio/*": "./src/assets/audio/*"
|
|
@@ -269,11 +286,11 @@
|
|
|
269
286
|
"typecheck:tsc": "tsc --noEmit",
|
|
270
287
|
"test": "bun test src --only-failures",
|
|
271
288
|
"dev": "vite",
|
|
272
|
-
"bench:motion": "bun script/motion-bench.ts",
|
|
273
289
|
"generate:tailwind": "bun run script/tailwind.ts",
|
|
274
290
|
"generate:v2-oc2": "bun run script/build-oc2-v2-overrides.ts"
|
|
275
291
|
},
|
|
276
292
|
"devDependencies": {
|
|
293
|
+
"@hona/strobe": "0.28.0",
|
|
277
294
|
"@solidjs/meta": "0.29.4",
|
|
278
295
|
"@tsconfig/node22": "22.0.2",
|
|
279
296
|
"@types/bun": "1.4.3",
|
|
@@ -288,7 +305,7 @@
|
|
|
288
305
|
"dependencies": {
|
|
289
306
|
"@kitlangton/solid-motion": "0.2.2",
|
|
290
307
|
"@kobalte/core": "0.13.13",
|
|
291
|
-
"@opencode/util": "2.2.
|
|
308
|
+
"@opencode/util": "2.2.7",
|
|
292
309
|
"@pierre/diffs": "1.6.1",
|
|
293
310
|
"@pierre/highlights": "0.2.0",
|
|
294
311
|
"@solid-primitives/event-listener": "2.4.6",
|