@orz/ui 0.0.0-stage → 0.0.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/LICENSE +29 -0
- package/README.md +541 -2
- package/dist/components/avatar.d.ts +14 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +23 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +10 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +26 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button.d.ts +11 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +40 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +12 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +25 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/color-picker.d.ts +58 -0
- package/dist/components/color-picker.d.ts.map +1 -0
- package/dist/components/color-picker.js +950 -0
- package/dist/components/color-picker.js.map +1 -0
- package/dist/components/confirm-dialog.d.ts +26 -0
- package/dist/components/confirm-dialog.d.ts.map +1 -0
- package/dist/components/confirm-dialog.js +18 -0
- package/dist/components/confirm-dialog.js.map +1 -0
- package/dist/components/dialog.d.ts +26 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +149 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +30 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +100 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/filter-menu.d.ts +98 -0
- package/dist/components/filter-menu.d.ts.map +1 -0
- package/dist/components/filter-menu.js +745 -0
- package/dist/components/filter-menu.js.map +1 -0
- package/dist/components/highlighted-input.d.ts +40 -0
- package/dist/components/highlighted-input.d.ts.map +1 -0
- package/dist/components/highlighted-input.js +95 -0
- package/dist/components/highlighted-input.js.map +1 -0
- package/dist/components/hover-card.d.ts +7 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +22 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +7 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +5 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +8 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/link-chip.d.ts +67 -0
- package/dist/components/link-chip.d.ts.map +1 -0
- package/dist/components/link-chip.js +71 -0
- package/dist/components/link-chip.js.map +1 -0
- package/dist/components/load-failure.d.ts +24 -0
- package/dist/components/load-failure.d.ts.map +1 -0
- package/dist/components/load-failure.js +27 -0
- package/dist/components/load-failure.js.map +1 -0
- package/dist/components/load-more.d.ts +15 -0
- package/dist/components/load-more.d.ts.map +1 -0
- package/dist/components/load-more.js +25 -0
- package/dist/components/load-more.js.map +1 -0
- package/dist/components/media-controls.d.ts +50 -0
- package/dist/components/media-controls.d.ts.map +1 -0
- package/dist/components/media-controls.js +71 -0
- package/dist/components/media-controls.js.map +1 -0
- package/dist/components/popover.d.ts +9 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +82 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/query-box.d.ts +78 -0
- package/dist/components/query-box.d.ts.map +1 -0
- package/dist/components/query-box.js +332 -0
- package/dist/components/query-box.js.map +1 -0
- package/dist/components/query-highlight.d.ts +14 -0
- package/dist/components/query-highlight.d.ts.map +1 -0
- package/dist/components/query-highlight.js +132 -0
- package/dist/components/query-highlight.js.map +1 -0
- package/dist/components/select.d.ts +19 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +38 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +5 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +9 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +16 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +41 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.d.ts +3 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +7 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +8 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +14 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +26 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/switch.d.ts +5 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +8 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +28 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +8 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +18 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +7 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/theme-editor/draft.d.ts +235 -0
- package/dist/components/theme-editor/draft.d.ts.map +1 -0
- package/dist/components/theme-editor/draft.js +638 -0
- package/dist/components/theme-editor/draft.js.map +1 -0
- package/dist/components/theme-editor/export-panel.d.ts +14 -0
- package/dist/components/theme-editor/export-panel.d.ts.map +1 -0
- package/dist/components/theme-editor/export-panel.js +39 -0
- package/dist/components/theme-editor/export-panel.js.map +1 -0
- package/dist/components/theme-editor/form.d.ts +69 -0
- package/dist/components/theme-editor/form.d.ts.map +1 -0
- package/dist/components/theme-editor/form.js +350 -0
- package/dist/components/theme-editor/form.js.map +1 -0
- package/dist/components/theme-editor/import-panel.d.ts +21 -0
- package/dist/components/theme-editor/import-panel.d.ts.map +1 -0
- package/dist/components/theme-editor/import-panel.js +117 -0
- package/dist/components/theme-editor/import-panel.js.map +1 -0
- package/dist/components/theme-editor/theme-list.d.ts +23 -0
- package/dist/components/theme-editor/theme-list.d.ts.map +1 -0
- package/dist/components/theme-editor/theme-list.js +42 -0
- package/dist/components/theme-editor/theme-list.js.map +1 -0
- package/dist/components/theme-editor/token-list.d.ts +30 -0
- package/dist/components/theme-editor/token-list.d.ts.map +1 -0
- package/dist/components/theme-editor/token-list.js +124 -0
- package/dist/components/theme-editor/token-list.js.map +1 -0
- package/dist/components/theme-editor/tokens.d.ts +37 -0
- package/dist/components/theme-editor/tokens.d.ts.map +1 -0
- package/dist/components/theme-editor/tokens.js +155 -0
- package/dist/components/theme-editor/tokens.js.map +1 -0
- package/dist/components/theme-editor.d.ts +26 -0
- package/dist/components/theme-editor.d.ts.map +1 -0
- package/dist/components/theme-editor.js +467 -0
- package/dist/components/theme-editor.js.map +1 -0
- package/dist/components/theme-menu.d.ts +28 -0
- package/dist/components/theme-menu.d.ts.map +1 -0
- package/dist/components/theme-menu.js +308 -0
- package/dist/components/theme-menu.js.map +1 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/unsaved-changes-dialog.d.ts +39 -0
- package/dist/components/unsaved-changes-dialog.d.ts.map +1 -0
- package/dist/components/unsaved-changes-dialog.js +46 -0
- package/dist/components/unsaved-changes-dialog.js.map +1 -0
- package/dist/hooks/scroll-insets.d.ts +89 -0
- package/dist/hooks/scroll-insets.d.ts.map +1 -0
- package/dist/hooks/scroll-insets.js +265 -0
- package/dist/hooks/scroll-insets.js.map +1 -0
- package/dist/hooks/use-element-height.d.ts +11 -0
- package/dist/hooks/use-element-height.d.ts.map +1 -0
- package/dist/hooks/use-element-height.js +33 -0
- package/dist/hooks/use-element-height.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +22 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +38 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-overlay-scrollbars.d.ts +31 -0
- package/dist/hooks/use-overlay-scrollbars.d.ts.map +1 -0
- package/dist/hooks/use-overlay-scrollbars.js +80 -0
- package/dist/hooks/use-overlay-scrollbars.js.map +1 -0
- package/dist/hooks/use-paged-append.d.ts +7 -0
- package/dist/hooks/use-paged-append.d.ts.map +1 -0
- package/dist/hooks/use-paged-append.js +53 -0
- package/dist/hooks/use-paged-append.js.map +1 -0
- package/dist/hooks/use-query-completion.d.ts +27 -0
- package/dist/hooks/use-query-completion.d.ts.map +1 -0
- package/dist/hooks/use-query-completion.js +100 -0
- package/dist/hooks/use-query-completion.js.map +1 -0
- package/dist/hooks/use-slash-shortcut.d.ts +9 -0
- package/dist/hooks/use-slash-shortcut.d.ts.map +1 -0
- package/dist/hooks/use-slash-shortcut.js +38 -0
- package/dist/hooks/use-slash-shortcut.js.map +1 -0
- package/dist/hooks/viewport-chrome.d.ts +50 -0
- package/dist/hooks/viewport-chrome.d.ts.map +1 -0
- package/dist/hooks/viewport-chrome.js +170 -0
- package/dist/hooks/viewport-chrome.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cell-width-table.d.ts +3 -0
- package/dist/lib/cell-width-table.d.ts.map +1 -0
- package/dist/lib/cell-width-table.js +6 -0
- package/dist/lib/cell-width-table.js.map +1 -0
- package/dist/lib/cell-width.d.ts +7 -0
- package/dist/lib/cell-width.d.ts.map +1 -0
- package/dist/lib/cell-width.js +50 -0
- package/dist/lib/cell-width.js.map +1 -0
- package/dist/lib/clipboard.d.ts +8 -0
- package/dist/lib/clipboard.d.ts.map +1 -0
- package/dist/lib/clipboard.js +19 -0
- package/dist/lib/clipboard.js.map +1 -0
- package/dist/lib/color.d.ts +40 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +177 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/scroll-map.d.ts +20 -0
- package/dist/lib/scroll-map.d.ts.map +1 -0
- package/dist/lib/scroll-map.js +46 -0
- package/dist/lib/scroll-map.js.map +1 -0
- package/dist/lib/text-metrics.d.ts +33 -0
- package/dist/lib/text-metrics.d.ts.map +1 -0
- package/dist/lib/text-metrics.js +89 -0
- package/dist/lib/text-metrics.js.map +1 -0
- package/dist/lib/theme-file.d.ts +51 -0
- package/dist/lib/theme-file.d.ts.map +1 -0
- package/dist/lib/theme-file.js +511 -0
- package/dist/lib/theme-file.js.map +1 -0
- package/dist/lib/unsaved-guard.d.ts +33 -0
- package/dist/lib/unsaved-guard.d.ts.map +1 -0
- package/dist/lib/unsaved-guard.js +37 -0
- package/dist/lib/unsaved-guard.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/theme/custom.d.ts +8 -0
- package/dist/theme/custom.d.ts.map +1 -0
- package/dist/theme/custom.js +56 -0
- package/dist/theme/custom.js.map +1 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +5 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/paint-guard.d.ts +20 -0
- package/dist/theme/paint-guard.d.ts.map +1 -0
- package/dist/theme/paint-guard.js +120 -0
- package/dist/theme/paint-guard.js.map +1 -0
- package/dist/theme/picks.d.ts +22 -0
- package/dist/theme/picks.d.ts.map +1 -0
- package/dist/theme/picks.js +43 -0
- package/dist/theme/picks.js.map +1 -0
- package/dist/theme/pref.d.ts +39 -0
- package/dist/theme/pref.d.ts.map +1 -0
- package/dist/theme/pref.js +129 -0
- package/dist/theme/pref.js.map +1 -0
- package/dist/theme/provider.d.ts +41 -0
- package/dist/theme/provider.d.ts.map +1 -0
- package/dist/theme/provider.js +103 -0
- package/dist/theme/provider.js.map +1 -0
- package/dist/theme/store.d.ts +104 -0
- package/dist/theme/store.d.ts.map +1 -0
- package/dist/theme/store.js +509 -0
- package/dist/theme/store.js.map +1 -0
- package/package.json +94 -3
- package/styles.css +79 -0
- package/theme.css +186 -0
- package/vendor/shadcn-tailwind.css +664 -0
package/package.json
CHANGED
|
@@ -1,6 +1,97 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orz/ui",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Shared React components, hooks and theme for orz projects",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/orzFly/ui.git",
|
|
9
|
+
"directory": "packages/ui"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"@orz/source": "./src/index.ts",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./components/*": {
|
|
22
|
+
"@orz/source": "./src/components/*.tsx",
|
|
23
|
+
"types": "./dist/components/*.d.ts",
|
|
24
|
+
"default": "./dist/components/*.js"
|
|
25
|
+
},
|
|
26
|
+
"./hooks/*": {
|
|
27
|
+
"@orz/source": "./src/hooks/*.ts",
|
|
28
|
+
"types": "./dist/hooks/*.d.ts",
|
|
29
|
+
"default": "./dist/hooks/*.js"
|
|
30
|
+
},
|
|
31
|
+
"./lib/*": {
|
|
32
|
+
"@orz/source": "./src/lib/*.ts",
|
|
33
|
+
"types": "./dist/lib/*.d.ts",
|
|
34
|
+
"default": "./dist/lib/*.js"
|
|
35
|
+
},
|
|
36
|
+
"./theme": {
|
|
37
|
+
"@orz/source": "./src/theme/index.ts",
|
|
38
|
+
"types": "./dist/theme/index.d.ts",
|
|
39
|
+
"default": "./dist/theme/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./styles.css": "./styles.css",
|
|
42
|
+
"./theme.css": "./theme.css"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"styles.css",
|
|
47
|
+
"theme.css",
|
|
48
|
+
"vendor"
|
|
49
|
+
],
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"lucide-react": "^1",
|
|
55
|
+
"overlayscrollbars": "^2",
|
|
56
|
+
"radix-ui": "^1",
|
|
57
|
+
"react": "^19",
|
|
58
|
+
"react-dom": "^19",
|
|
59
|
+
"sonner": "^2"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"overlayscrollbars": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"class-variance-authority": "^0.7.1",
|
|
68
|
+
"clsx": "^2.1.1",
|
|
69
|
+
"culori": "^4.0.2",
|
|
70
|
+
"tailwind-merge": "^3.7.0",
|
|
71
|
+
"tw-animate-css": "^1.4.0",
|
|
72
|
+
"@orz/query": "^0.0.0",
|
|
73
|
+
"@orz/themes": "^0.0.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@testing-library/react": "^16.3.2",
|
|
77
|
+
"@types/culori": "^4.0.1",
|
|
78
|
+
"@types/node": "^22.20.5",
|
|
79
|
+
"@types/react": "^19.2.18",
|
|
80
|
+
"@types/react-dom": "^19.2.4",
|
|
81
|
+
"happy-dom": "^21.0.3",
|
|
82
|
+
"lucide-react": "^1.31.0",
|
|
83
|
+
"overlayscrollbars": "^2.16.0",
|
|
84
|
+
"radix-ui": "^1.6.7",
|
|
85
|
+
"react": "^19.2.8",
|
|
86
|
+
"react-dom": "^19.2.8",
|
|
87
|
+
"shadcn": "^4.16.2",
|
|
88
|
+
"sonner": "^2.0.8",
|
|
89
|
+
"vite": "^8.3.4",
|
|
90
|
+
"vitest": "^5.0.5"
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json",
|
|
94
|
+
"typecheck": "tsc --noEmit",
|
|
95
|
+
"test": "vitest run"
|
|
96
|
+
}
|
|
6
97
|
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@import "./theme.css";
|
|
2
|
+
|
|
3
|
+
/* Tailwind resolves an imported file's @source against that file, so a
|
|
4
|
+
consumer importing this stylesheet scans the classes in the package's
|
|
5
|
+
shipped JS without writing an @source of its own. */
|
|
6
|
+
@source "./dist";
|
|
7
|
+
|
|
8
|
+
/* The overlayscrollbars theme useOverlayScrollbars applies. Mixing off
|
|
9
|
+
--foreground is what makes one class serve both palettes: the token flips
|
|
10
|
+
under .dark, so nothing has to re-set scrollbars.theme when the theme
|
|
11
|
+
changes.
|
|
12
|
+
|
|
13
|
+
The three sizes are measured against a p-2 (8px) gutter, and they are a
|
|
14
|
+
hit-testing result, not a drawing one: --os-size is the whole bar's box, so
|
|
15
|
+
8px is the gutter exactly, --os-padding-perpendicular shrinks the drawn
|
|
16
|
+
handle to 6px inside it, and any interactive-area-offset pushes the bar's
|
|
17
|
+
hit area back over the content. At 10px/2px/4px the handle draws flush with
|
|
18
|
+
the content edge and still eats 6px of it (T-395). A container with a
|
|
19
|
+
different gutter overrides these on its own class. */
|
|
20
|
+
.os-theme-orz {
|
|
21
|
+
--os-size: 8px;
|
|
22
|
+
--os-padding-perpendicular: 1px;
|
|
23
|
+
--os-padding-axis: 2px;
|
|
24
|
+
--os-handle-interactive-area-offset: 0;
|
|
25
|
+
--os-track-bg: transparent;
|
|
26
|
+
--os-handle-border-radius: 6px;
|
|
27
|
+
--os-handle-bg: color-mix(in oklab, var(--foreground) 20%, transparent);
|
|
28
|
+
--os-handle-bg-hover: color-mix(in oklab, var(--foreground) 32%, transparent);
|
|
29
|
+
--os-handle-bg-active: color-mix(
|
|
30
|
+
in oklab,
|
|
31
|
+
var(--foreground) 45%,
|
|
32
|
+
transparent
|
|
33
|
+
);
|
|
34
|
+
--os-handle-min-size: 24px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@layer base {
|
|
38
|
+
* {
|
|
39
|
+
@apply border-border outline-ring/50;
|
|
40
|
+
}
|
|
41
|
+
body {
|
|
42
|
+
@apply bg-background text-foreground;
|
|
43
|
+
}
|
|
44
|
+
html {
|
|
45
|
+
@apply font-sans;
|
|
46
|
+
}
|
|
47
|
+
/* Stacked timestamps line up digit for digit. A date or time a component
|
|
48
|
+
renders is a <time>; a range that is not one instant carries
|
|
49
|
+
tabular-nums itself. */
|
|
50
|
+
time {
|
|
51
|
+
@apply tabular-nums;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* revealBlock's landing highlight (T-38): a short flash that fades out. */
|
|
56
|
+
@layer components {
|
|
57
|
+
.anchor-flash {
|
|
58
|
+
animation: anchor-flash 2s ease-out both;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@keyframes anchor-flash {
|
|
63
|
+
0%,
|
|
64
|
+
40% {
|
|
65
|
+
background-color: color-mix(in oklab, var(--primary) 10%, transparent);
|
|
66
|
+
box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 40%, transparent);
|
|
67
|
+
}
|
|
68
|
+
100% {
|
|
69
|
+
background-color: transparent;
|
|
70
|
+
box-shadow: 0 0 0 2px transparent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* useAutoHideHeader: once scrolling stops, the header (and whatever rides
|
|
75
|
+
under it) settles fully in or out. Only then — while a finger drives it, a
|
|
76
|
+
transition would trail the finger. */
|
|
77
|
+
html[data-header-settling] [data-header-follow] {
|
|
78
|
+
transition: top 150ms ease-out;
|
|
79
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@import "tw-animate-css";
|
|
2
|
+
@import "./vendor/shadcn-tailwind.css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--font-heading: var(--font-sans);
|
|
8
|
+
--font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
|
|
9
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
10
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
11
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
12
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
13
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
14
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
15
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
16
|
+
--color-sidebar: var(--sidebar);
|
|
17
|
+
--color-chart-5: var(--chart-5);
|
|
18
|
+
--color-chart-4: var(--chart-4);
|
|
19
|
+
--color-chart-3: var(--chart-3);
|
|
20
|
+
--color-chart-2: var(--chart-2);
|
|
21
|
+
--color-chart-1: var(--chart-1);
|
|
22
|
+
--color-ring: var(--ring);
|
|
23
|
+
--color-input: var(--input);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-destructive: var(--destructive);
|
|
26
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
27
|
+
--color-accent: var(--accent);
|
|
28
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
29
|
+
--color-muted: var(--muted);
|
|
30
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
33
|
+
--color-primary: var(--primary);
|
|
34
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
35
|
+
--color-popover: var(--popover);
|
|
36
|
+
--color-card-foreground: var(--card-foreground);
|
|
37
|
+
--color-card: var(--card);
|
|
38
|
+
--color-foreground: var(--foreground);
|
|
39
|
+
--color-background: var(--background);
|
|
40
|
+
--color-terminal-background: var(--terminal-background);
|
|
41
|
+
--color-terminal-foreground: var(--terminal-foreground);
|
|
42
|
+
--color-terminal-cursor: var(--terminal-cursor);
|
|
43
|
+
--color-terminal-selection: var(--terminal-selection);
|
|
44
|
+
--color-ansi-black: var(--ansi-black);
|
|
45
|
+
--color-ansi-red: var(--ansi-red);
|
|
46
|
+
--color-ansi-green: var(--ansi-green);
|
|
47
|
+
--color-ansi-yellow: var(--ansi-yellow);
|
|
48
|
+
--color-ansi-blue: var(--ansi-blue);
|
|
49
|
+
--color-ansi-magenta: var(--ansi-magenta);
|
|
50
|
+
--color-ansi-cyan: var(--ansi-cyan);
|
|
51
|
+
--color-ansi-white: var(--ansi-white);
|
|
52
|
+
--color-ansi-bright-black: var(--ansi-bright-black);
|
|
53
|
+
--color-ansi-bright-red: var(--ansi-bright-red);
|
|
54
|
+
--color-ansi-bright-green: var(--ansi-bright-green);
|
|
55
|
+
--color-ansi-bright-yellow: var(--ansi-bright-yellow);
|
|
56
|
+
--color-ansi-bright-blue: var(--ansi-bright-blue);
|
|
57
|
+
--color-ansi-bright-magenta: var(--ansi-bright-magenta);
|
|
58
|
+
--color-ansi-bright-cyan: var(--ansi-bright-cyan);
|
|
59
|
+
--color-ansi-bright-white: var(--ansi-bright-white);
|
|
60
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
61
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
62
|
+
--radius-lg: var(--radius);
|
|
63
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
64
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
65
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
66
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:root {
|
|
70
|
+
color-scheme: light;
|
|
71
|
+
/* Projection of @pierre/diffs 1.3.5 / @shikijs/themes 4.4.3:
|
|
72
|
+
gitDecoration → terminal ANSI → Pierre's light/dark fallback. */
|
|
73
|
+
--diff-addition: #18a46c;
|
|
74
|
+
--diff-deletion: #d52c36;
|
|
75
|
+
--background: oklch(1 0 0);
|
|
76
|
+
--foreground: oklch(0.145 0 0);
|
|
77
|
+
--card: oklch(1 0 0);
|
|
78
|
+
--card-foreground: oklch(0.145 0 0);
|
|
79
|
+
--popover: oklch(1 0 0);
|
|
80
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
81
|
+
--primary: oklch(0.205 0 0);
|
|
82
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
83
|
+
--secondary: oklch(0.97 0 0);
|
|
84
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
85
|
+
--muted: oklch(0.97 0 0);
|
|
86
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
87
|
+
--accent: oklch(0.97 0 0);
|
|
88
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
89
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
90
|
+
--border: oklch(0.922 0 0);
|
|
91
|
+
--input: oklch(0.922 0 0);
|
|
92
|
+
--ring: oklch(0.708 0 0);
|
|
93
|
+
--chart-1: oklch(0.87 0 0);
|
|
94
|
+
--chart-2: oklch(0.556 0 0);
|
|
95
|
+
--chart-3: oklch(0.439 0 0);
|
|
96
|
+
--chart-4: oklch(0.371 0 0);
|
|
97
|
+
--chart-5: oklch(0.269 0 0);
|
|
98
|
+
--radius: 0.625rem;
|
|
99
|
+
--sidebar: oklch(0.985 0 0);
|
|
100
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
101
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
102
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
103
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
104
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
105
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
106
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
107
|
+
/* The terminal and ANSI-escape surfaces: VS Code Light+ / Dark+ defaults,
|
|
108
|
+
on this palette's own background and foreground. */
|
|
109
|
+
--terminal-background: #ffffff;
|
|
110
|
+
--terminal-foreground: #0a0a0a;
|
|
111
|
+
--terminal-cursor: #0a0a0a;
|
|
112
|
+
--terminal-selection: #add6ff;
|
|
113
|
+
--ansi-black: #000000;
|
|
114
|
+
--ansi-red: #cd3131;
|
|
115
|
+
--ansi-green: #107c10;
|
|
116
|
+
--ansi-yellow: #949800;
|
|
117
|
+
--ansi-blue: #0451a5;
|
|
118
|
+
--ansi-magenta: #bc05bc;
|
|
119
|
+
--ansi-cyan: #0598bc;
|
|
120
|
+
--ansi-white: #555555;
|
|
121
|
+
--ansi-bright-black: #666666;
|
|
122
|
+
--ansi-bright-red: #f14c4c;
|
|
123
|
+
--ansi-bright-green: #14ce14;
|
|
124
|
+
--ansi-bright-yellow: #b5ba00;
|
|
125
|
+
--ansi-bright-blue: #3b8eea;
|
|
126
|
+
--ansi-bright-magenta: #d670d6;
|
|
127
|
+
--ansi-bright-cyan: #29b8db;
|
|
128
|
+
--ansi-bright-white: #a5a5a5;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.dark {
|
|
132
|
+
color-scheme: dark;
|
|
133
|
+
--diff-addition: #07c480;
|
|
134
|
+
--diff-deletion: #ff2e3f;
|
|
135
|
+
--background: oklch(0.145 0 0);
|
|
136
|
+
--foreground: oklch(0.985 0 0);
|
|
137
|
+
--card: oklch(0.205 0 0);
|
|
138
|
+
--card-foreground: oklch(0.985 0 0);
|
|
139
|
+
--popover: oklch(0.205 0 0);
|
|
140
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
141
|
+
--primary: oklch(0.922 0 0);
|
|
142
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
143
|
+
--secondary: oklch(0.269 0 0);
|
|
144
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
145
|
+
--muted: oklch(0.269 0 0);
|
|
146
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
147
|
+
--accent: oklch(0.269 0 0);
|
|
148
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
149
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
150
|
+
--border: oklch(1 0 0 / 10%);
|
|
151
|
+
--input: oklch(1 0 0 / 15%);
|
|
152
|
+
--ring: oklch(0.556 0 0);
|
|
153
|
+
--chart-1: oklch(0.87 0 0);
|
|
154
|
+
--chart-2: oklch(0.556 0 0);
|
|
155
|
+
--chart-3: oklch(0.439 0 0);
|
|
156
|
+
--chart-4: oklch(0.371 0 0);
|
|
157
|
+
--chart-5: oklch(0.269 0 0);
|
|
158
|
+
--sidebar: oklch(0.205 0 0);
|
|
159
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
160
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
161
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
162
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
163
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
164
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
165
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
166
|
+
--terminal-background: #0a0a0a;
|
|
167
|
+
--terminal-foreground: #fafafa;
|
|
168
|
+
--terminal-cursor: #fafafa;
|
|
169
|
+
--terminal-selection: #264f78;
|
|
170
|
+
--ansi-black: #000000;
|
|
171
|
+
--ansi-red: #cd3131;
|
|
172
|
+
--ansi-green: #0dbc79;
|
|
173
|
+
--ansi-yellow: #e5e510;
|
|
174
|
+
--ansi-blue: #2472c8;
|
|
175
|
+
--ansi-magenta: #bc3fbc;
|
|
176
|
+
--ansi-cyan: #11a8cd;
|
|
177
|
+
--ansi-white: #e5e5e5;
|
|
178
|
+
--ansi-bright-black: #666666;
|
|
179
|
+
--ansi-bright-red: #f14c4c;
|
|
180
|
+
--ansi-bright-green: #23d18b;
|
|
181
|
+
--ansi-bright-yellow: #f5f543;
|
|
182
|
+
--ansi-bright-blue: #3b8eea;
|
|
183
|
+
--ansi-bright-magenta: #d670d6;
|
|
184
|
+
--ansi-bright-cyan: #29b8db;
|
|
185
|
+
--ansi-bright-white: #e5e5e5;
|
|
186
|
+
}
|