@olympusoss/canvas 2.20.1 → 3.1.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 +69 -35
- package/package.json +45 -177
- package/src/cn.ts +3 -0
- package/src/index.ts +12 -603
- package/src/theme.ts +62 -0
- package/src/tokens.ts +11 -0
- package/styles/base.css +17 -0
- package/styles/canvas.css +77 -52
- package/styles/components/alert.css +66 -0
- package/styles/components/app-shell.css +46 -0
- package/styles/components/avatar.css +22 -0
- package/styles/components/badge.css +83 -0
- package/styles/components/breadcrumb.css +35 -0
- package/styles/components/button-group.css +23 -0
- package/styles/components/button.css +107 -0
- package/styles/components/calendar.css +73 -0
- package/styles/components/card.css +58 -0
- package/styles/components/checkbox.css +55 -0
- package/styles/components/code-block.css +18 -0
- package/styles/components/combobox.css +75 -0
- package/styles/components/command.css +94 -0
- package/styles/components/data-table.css +142 -0
- package/styles/components/dialog.css +72 -0
- package/styles/components/dropdown.css +54 -0
- package/styles/components/empty-state.css +17 -0
- package/styles/components/field.css +27 -0
- package/styles/components/filter-panel.css +58 -0
- package/styles/components/form.css +27 -0
- package/styles/components/icon.css +8 -0
- package/styles/components/input-group.css +45 -0
- package/styles/components/input.css +56 -0
- package/styles/components/kbd.css +15 -0
- package/styles/components/page-header.css +52 -0
- package/styles/components/pagination.css +48 -0
- package/styles/components/popover.css +14 -0
- package/styles/components/radio.css +28 -0
- package/styles/components/row-menu.css +69 -0
- package/styles/components/section-card.css +49 -0
- package/styles/components/select.css +57 -0
- package/styles/components/separator.css +32 -0
- package/styles/components/sheet.css +70 -0
- package/styles/components/sidebar.css +146 -0
- package/styles/components/skeleton.css +32 -0
- package/styles/components/spinner.css +26 -0
- package/styles/components/stat-card.css +71 -0
- package/styles/components/stepper.css +63 -0
- package/styles/components/switch.css +45 -0
- package/styles/components/tabs.css +40 -0
- package/styles/components/textarea.css +31 -0
- package/styles/components/toast.css +95 -0
- package/styles/components/tooltip.css +53 -0
- package/styles/components/topbar.css +24 -0
- package/styles/components/typography.css +105 -0
- package/styles/patterns/backdrops.css +35 -0
- package/styles/patterns/density.css +66 -0
- package/styles/patterns/focus.css +22 -0
- package/styles/patterns/glass.css +85 -0
- package/styles/patterns/high-contrast.css +70 -0
- package/styles/patterns/reduced-motion.css +12 -0
- package/styles/patterns/scrollbar.css +10 -0
- package/styles/reset.css +89 -0
- package/styles/tokens/colors.css +106 -0
- package/styles/tokens/motion.css +33 -0
- package/styles/tokens/radius.css +10 -0
- package/styles/tokens/shadows.css +35 -0
- package/styles/tokens/spacing.css +19 -0
- package/styles/tokens/typography.css +6 -0
- package/styles/tokens/z-index.css +12 -0
- package/styles/utilities/display.css +66 -0
- package/styles/utilities/flexbox.css +240 -0
- package/styles/utilities/gap.css +288 -0
- package/styles/utilities/grid.css +138 -0
- package/styles/utilities/position.css +78 -0
- package/styles/utilities/sizing.css +138 -0
- package/tsconfig.json +20 -21
- package/src/components/atoms/README.md +0 -11
- package/src/components/atoms/aspect-ratio.tsx +0 -32
- package/src/components/atoms/avatar.tsx +0 -98
- package/src/components/atoms/badge.tsx +0 -44
- package/src/components/atoms/brand-mark.tsx +0 -74
- package/src/components/atoms/button.tsx +0 -105
- package/src/components/atoms/checkbox.tsx +0 -63
- package/src/components/atoms/flex-box.tsx +0 -105
- package/src/components/atoms/icon.tsx +0 -34
- package/src/components/atoms/input.tsx +0 -92
- package/src/components/atoms/label.tsx +0 -41
- package/src/components/atoms/logo.tsx +0 -89
- package/src/components/atoms/progress.tsx +0 -55
- package/src/components/atoms/radio-group.tsx +0 -122
- package/src/components/atoms/scroll-area.tsx +0 -106
- package/src/components/atoms/section.tsx +0 -48
- package/src/components/atoms/separator.tsx +0 -45
- package/src/components/atoms/skeleton.tsx +0 -17
- package/src/components/atoms/slider.tsx +0 -93
- package/src/components/atoms/spinner.tsx +0 -47
- package/src/components/atoms/switch.tsx +0 -60
- package/src/components/atoms/textarea.tsx +0 -78
- package/src/components/atoms/toggle.tsx +0 -80
- package/src/components/charts/activity-heatmap.tsx +0 -186
- package/src/components/charts/axes.tsx +0 -21
- package/src/components/charts/chart-container.tsx +0 -254
- package/src/components/charts/chart-legend.tsx +0 -67
- package/src/components/charts/chart-tooltip.tsx +0 -161
- package/src/components/charts/chart-types.tsx +0 -49
- package/src/components/charts/containers.tsx +0 -11
- package/src/components/charts/data.tsx +0 -16
- package/src/components/charts/details.tsx +0 -25
- package/src/components/charts/dot-pulse.tsx +0 -61
- package/src/components/charts/gauge.tsx +0 -106
- package/src/components/charts/grids.tsx +0 -8
- package/src/components/charts/index.ts +0 -62
- package/src/components/charts/labeled-bar-list.tsx +0 -85
- package/src/components/charts/metric-breakdown.tsx +0 -316
- package/src/components/charts/references.tsx +0 -8
- package/src/components/charts/service-health-list.tsx +0 -85
- package/src/components/charts/sparkline-area.tsx +0 -80
- package/src/components/charts/sparkline.tsx +0 -52
- package/src/components/charts/stacked-bar.tsx +0 -104
- package/src/components/charts/text.tsx +0 -10
- package/src/components/charts/world-heat-map-inner.tsx +0 -317
- package/src/components/charts/world-heat-map.tsx +0 -184
- package/src/components/molecules/README.md +0 -12
- package/src/components/molecules/action-bar.tsx +0 -73
- package/src/components/molecules/activity-item.tsx +0 -74
- package/src/components/molecules/alert.tsx +0 -86
- package/src/components/molecules/animated-background.tsx +0 -92
- package/src/components/molecules/auth-shell.tsx +0 -95
- package/src/components/molecules/brand-lockup.tsx +0 -48
- package/src/components/molecules/breadcrumb.tsx +0 -157
- package/src/components/molecules/button-group.tsx +0 -104
- package/src/components/molecules/calendar.tsx +0 -217
- package/src/components/molecules/card.tsx +0 -102
- package/src/components/molecules/client-brand.tsx +0 -95
- package/src/components/molecules/code-block.tsx +0 -86
- package/src/components/molecules/countdown-button.tsx +0 -92
- package/src/components/molecules/empty-state.tsx +0 -56
- package/src/components/molecules/error-state.tsx +0 -42
- package/src/components/molecules/field-display.tsx +0 -35
- package/src/components/molecules/input-otp.tsx +0 -74
- package/src/components/molecules/launcher-card.tsx +0 -152
- package/src/components/molecules/loading-state.tsx +0 -36
- package/src/components/molecules/notification-item.tsx +0 -67
- package/src/components/molecules/notification-list.tsx +0 -45
- package/src/components/molecules/number-badge.tsx +0 -53
- package/src/components/molecules/or-separator.tsx +0 -38
- package/src/components/molecules/page-header.tsx +0 -88
- package/src/components/molecules/page-tabs.tsx +0 -94
- package/src/components/molecules/pagination.tsx +0 -150
- package/src/components/molecules/password-input.tsx +0 -83
- package/src/components/molecules/password-strength-meter.tsx +0 -104
- package/src/components/molecules/phone-input.tsx +0 -200
- package/src/components/molecules/search-bar.tsx +0 -64
- package/src/components/molecules/secret-field.tsx +0 -158
- package/src/components/molecules/section-card.tsx +0 -91
- package/src/components/molecules/social-buttons.tsx +0 -165
- package/src/components/molecules/stat-card.tsx +0 -100
- package/src/components/molecules/status-badge.tsx +0 -42
- package/src/components/molecules/stepper.tsx +0 -96
- package/src/components/molecules/table.tsx +0 -157
- package/src/components/molecules/terminal.tsx +0 -74
- package/src/components/molecules/toggle-group.tsx +0 -145
- package/src/components/molecules/tooltip.tsx +0 -155
- package/src/components/molecules/user-avatar-chip.tsx +0 -71
- package/src/components/organisms/README.md +0 -14
- package/src/components/organisms/accordion.tsx +0 -154
- package/src/components/organisms/alert-dialog.tsx +0 -277
- package/src/components/organisms/carousel.tsx +0 -244
- package/src/components/organisms/collapsible.tsx +0 -69
- package/src/components/organisms/command.tsx +0 -144
- package/src/components/organisms/context-menu.tsx +0 -339
- package/src/components/organisms/dashboard-grid.tsx +0 -369
- package/src/components/organisms/data-table.tsx +0 -330
- package/src/components/organisms/dialog.tsx +0 -312
- package/src/components/organisms/drawer.tsx +0 -123
- package/src/components/organisms/dropdown-menu.tsx +0 -440
- package/src/components/organisms/editors/code-editor.tsx +0 -144
- package/src/components/organisms/editors/index.ts +0 -4
- package/src/components/organisms/editors/markdown-editor.tsx +0 -153
- package/src/components/organisms/editors/markdown-renderer.ts +0 -27
- package/src/components/organisms/editors/prose-canvas-classes.ts +0 -45
- package/src/components/organisms/editors/rich-text-editor.tsx +0 -126
- package/src/components/organisms/editors/toolbar/md-toolbar.tsx +0 -129
- package/src/components/organisms/editors/toolbar/rte-toolbar.tsx +0 -211
- package/src/components/organisms/editors/toolbar/toolbar-shell.tsx +0 -45
- package/src/components/organisms/editors/use-codemirror-theme.ts +0 -61
- package/src/components/organisms/error-boundary.tsx +0 -61
- package/src/components/organisms/form.tsx +0 -174
- package/src/components/organisms/hover-card.tsx +0 -115
- package/src/components/organisms/menubar.tsx +0 -498
- package/src/components/organisms/navbar.tsx +0 -104
- package/src/components/organisms/navigation-menu.tsx +0 -235
- package/src/components/organisms/popover.tsx +0 -149
- package/src/components/organisms/resizable.tsx +0 -58
- package/src/components/organisms/schema-form.tsx +0 -232
- package/src/components/organisms/select.tsx +0 -309
- package/src/components/organisms/sheet.tsx +0 -265
- package/src/components/organisms/sidebar.tsx +0 -1040
- package/src/components/organisms/sonner.tsx +0 -96
- package/src/components/organisms/tabs.tsx +0 -133
- package/src/components/organisms/theme-provider.tsx +0 -101
- package/src/hooks/use-mobile.tsx +0 -19
- package/src/lib/portal-container.tsx +0 -35
- package/src/lib/utils.ts +0 -6
- package/src/native.ts +0 -23
- package/src/tokens/colors.ts +0 -91
- package/src/tokens/index.ts +0 -3
- package/src/tokens/spacing.ts +0 -55
- package/src/tokens/typography.ts +0 -27
- package/styles/dashboard-grid.css +0 -47
- package/styles/fonts/Roboto-VariableFont_wdth_wght.ttf +0 -0
- package/styles/glass.css +0 -171
- package/styles/leaflet.css +0 -13
- package/styles/tokens.css +0 -317
- package/tailwind.config.ts +0 -70
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.stepper {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.step {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.step-indicator {
|
|
15
|
+
width: 2rem;
|
|
16
|
+
height: 2rem;
|
|
17
|
+
border-radius: 9999px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
border: 2px solid hsl(var(--border));
|
|
24
|
+
color: hsl(var(--muted-foreground));
|
|
25
|
+
background-color: hsl(var(--background));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.step.completed .step-indicator {
|
|
29
|
+
background-color: hsl(var(--primary));
|
|
30
|
+
color: hsl(var(--primary-foreground));
|
|
31
|
+
border-color: hsl(var(--primary));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.step.active .step-indicator {
|
|
35
|
+
border-color: hsl(var(--primary));
|
|
36
|
+
color: hsl(var(--primary));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.step-label {
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
color: hsl(var(--muted-foreground));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.step.active .step-label {
|
|
45
|
+
color: hsl(var(--foreground));
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.step.completed .step-label {
|
|
50
|
+
color: hsl(var(--foreground));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.step-connector {
|
|
54
|
+
flex: 1;
|
|
55
|
+
height: 2px;
|
|
56
|
+
background-color: hsl(var(--border));
|
|
57
|
+
margin: 0 0.5rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.step.completed + .step-connector {
|
|
61
|
+
background-color: hsl(var(--primary));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.switch {
|
|
3
|
+
appearance: none;
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 2.25rem;
|
|
6
|
+
height: 1.25rem;
|
|
7
|
+
border-radius: var(--radius-full, 9999px);
|
|
8
|
+
background-color: hsl(var(--muted));
|
|
9
|
+
border: none;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
transition: background-color var(--duration-fast);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.switch::after {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 2px;
|
|
19
|
+
left: 2px;
|
|
20
|
+
width: 0.875rem;
|
|
21
|
+
height: 0.875rem;
|
|
22
|
+
border-radius: 9999px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
box-shadow: var(--shadow-xs);
|
|
25
|
+
transition: transform var(--duration-fast);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.switch:checked {
|
|
29
|
+
background-color: hsl(var(--primary));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.switch:checked::after {
|
|
33
|
+
transform: translateX(1rem);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.switch:focus-visible {
|
|
37
|
+
outline: 2px solid hsl(var(--ring));
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.switch:disabled {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.tabs-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tab {
|
|
9
|
+
padding: 0.5rem 1rem;
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
line-height: 1.25rem;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
color: hsl(var(--muted-foreground));
|
|
14
|
+
border: none;
|
|
15
|
+
border-bottom: 2px solid transparent;
|
|
16
|
+
background: none;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition-property: color, border-color;
|
|
19
|
+
transition-duration: var(--duration-fast);
|
|
20
|
+
transition-timing-function: ease;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tab:hover {
|
|
24
|
+
color: hsl(var(--foreground));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tab.active {
|
|
28
|
+
color: hsl(var(--foreground));
|
|
29
|
+
border-bottom-color: hsl(var(--primary));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tab:disabled {
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tabs-content {
|
|
38
|
+
padding-top: 1rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.textarea {
|
|
3
|
+
min-height: 5rem;
|
|
4
|
+
padding: 0.5rem 0.75rem;
|
|
5
|
+
border: 1px solid hsl(var(--input));
|
|
6
|
+
border-radius: var(--radius-md, 6px);
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
color: hsl(var(--foreground));
|
|
9
|
+
font-family: var(--font-sans);
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
line-height: 1.5;
|
|
12
|
+
resize: vertical;
|
|
13
|
+
box-shadow: var(--shadow-xs);
|
|
14
|
+
outline: none;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.textarea::placeholder {
|
|
19
|
+
color: hsl(var(--muted-foreground));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.textarea:focus-visible {
|
|
23
|
+
outline: 2px solid hsl(var(--ring));
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.textarea:disabled {
|
|
28
|
+
opacity: 0.5;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.toast-viewport {
|
|
3
|
+
position: fixed;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
z-index: var(--z-toast);
|
|
7
|
+
padding: 1.5rem;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 0.5rem;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
max-width: 420px;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.toast {
|
|
17
|
+
background-color: hsl(var(--popover));
|
|
18
|
+
color: hsl(var(--popover-foreground));
|
|
19
|
+
border: 1px solid hsl(var(--border));
|
|
20
|
+
border-radius: var(--radius-lg, 8px);
|
|
21
|
+
box-shadow: var(--shadow-lg);
|
|
22
|
+
padding: 1rem;
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
position: relative;
|
|
25
|
+
animation: var(--animate-toast-in);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.toast-title {
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 0.875rem;
|
|
31
|
+
line-height: 1.25rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.toast-desc {
|
|
35
|
+
font-size: 0.8125rem;
|
|
36
|
+
line-height: 1.25rem;
|
|
37
|
+
color: hsl(var(--muted-foreground));
|
|
38
|
+
margin-top: 0.125rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.toast-close {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0.5rem;
|
|
44
|
+
right: 0.5rem;
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
width: 1.5rem;
|
|
49
|
+
height: 1.5rem;
|
|
50
|
+
border: none;
|
|
51
|
+
border-radius: var(--radius-sm, 4px);
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
color: hsl(var(--muted-foreground));
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
padding: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.toast-close:hover {
|
|
59
|
+
background-color: hsl(var(--accent));
|
|
60
|
+
color: hsl(var(--foreground));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.toast-action {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
background-color: hsl(var(--background));
|
|
68
|
+
color: hsl(var(--foreground));
|
|
69
|
+
border: 1px solid hsl(var(--input));
|
|
70
|
+
border-radius: var(--radius-md, 6px);
|
|
71
|
+
box-shadow: var(--shadow-xs);
|
|
72
|
+
height: 2rem;
|
|
73
|
+
padding-left: 0.75rem;
|
|
74
|
+
padding-right: 0.75rem;
|
|
75
|
+
font-size: 0.75rem;
|
|
76
|
+
line-height: 1rem;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
margin-top: 0.5rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.toast-action:hover {
|
|
84
|
+
background-color: hsl(var(--accent));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.toast-destructive {
|
|
88
|
+
border-color: hsl(var(--destructive) / 0.5);
|
|
89
|
+
color: hsl(var(--destructive));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.toast-destructive .toast-desc {
|
|
93
|
+
color: hsl(var(--destructive) / 0.7);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.tooltip {
|
|
3
|
+
position: absolute;
|
|
4
|
+
padding: 6px 12px;
|
|
5
|
+
border-radius: var(--radius-md, 6px);
|
|
6
|
+
background-color: hsl(var(--primary));
|
|
7
|
+
color: hsl(var(--primary-foreground));
|
|
8
|
+
font-family: var(--font-sans);
|
|
9
|
+
font-size: 0.75rem;
|
|
10
|
+
line-height: 1.4;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
z-index: var(--z-popover);
|
|
13
|
+
box-shadow: var(--shadow-sm);
|
|
14
|
+
animation: var(--animate-fade-in);
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tooltip-arrow {
|
|
19
|
+
position: absolute;
|
|
20
|
+
width: 8px;
|
|
21
|
+
height: 8px;
|
|
22
|
+
background-color: hsl(var(--primary));
|
|
23
|
+
transform: rotate(45deg);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tooltip-arrow.bottom {
|
|
27
|
+
top: 100%;
|
|
28
|
+
left: 50%;
|
|
29
|
+
margin-top: -4px;
|
|
30
|
+
margin-left: -4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tooltip-arrow.top {
|
|
34
|
+
bottom: 100%;
|
|
35
|
+
left: 50%;
|
|
36
|
+
margin-bottom: -4px;
|
|
37
|
+
margin-left: -4px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tooltip-arrow.left {
|
|
41
|
+
right: 100%;
|
|
42
|
+
top: 50%;
|
|
43
|
+
margin-right: -4px;
|
|
44
|
+
margin-top: -4px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tooltip-arrow.right {
|
|
48
|
+
left: 100%;
|
|
49
|
+
top: 50%;
|
|
50
|
+
margin-left: -4px;
|
|
51
|
+
margin-top: -4px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.topbar {
|
|
3
|
+
height: 3.5rem;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
padding-left: 1rem;
|
|
8
|
+
padding-right: 1rem;
|
|
9
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
10
|
+
background-color: hsl(var(--background) / 0.7);
|
|
11
|
+
backdrop-filter: blur(12px);
|
|
12
|
+
position: sticky;
|
|
13
|
+
top: 0;
|
|
14
|
+
z-index: var(--z-sticky);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (min-width: 640px) {
|
|
18
|
+
.topbar {
|
|
19
|
+
gap: 0.75rem;
|
|
20
|
+
padding-left: 1.5rem;
|
|
21
|
+
padding-right: 1.5rem;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.display,
|
|
3
|
+
.h1 {
|
|
4
|
+
font-size: 36px;
|
|
5
|
+
line-height: 40px;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
letter-spacing: -0.02em;
|
|
8
|
+
color: hsl(var(--foreground));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.h2 {
|
|
12
|
+
font-size: 30px;
|
|
13
|
+
line-height: 2.25rem;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
letter-spacing: -0.02em;
|
|
16
|
+
color: hsl(var(--foreground));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.h3,
|
|
20
|
+
.page-title {
|
|
21
|
+
font-size: 1.5rem;
|
|
22
|
+
line-height: 2rem;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
letter-spacing: -0.015em;
|
|
25
|
+
color: hsl(var(--foreground));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.h4,
|
|
29
|
+
.card-title {
|
|
30
|
+
font-size: 1.125rem;
|
|
31
|
+
line-height: 1.75rem;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
letter-spacing: -0.01em;
|
|
34
|
+
color: hsl(var(--foreground));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.h5 {
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
line-height: 1.5rem;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
color: hsl(var(--foreground));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.p,
|
|
45
|
+
.body {
|
|
46
|
+
font-size: 1rem;
|
|
47
|
+
line-height: 1.5rem;
|
|
48
|
+
color: hsl(var(--foreground));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.small,
|
|
52
|
+
.muted {
|
|
53
|
+
font-size: 0.875rem;
|
|
54
|
+
line-height: 1.25rem;
|
|
55
|
+
color: hsl(var(--muted-foreground));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tiny,
|
|
59
|
+
.caption {
|
|
60
|
+
font-size: 0.75rem;
|
|
61
|
+
line-height: 1rem;
|
|
62
|
+
color: hsl(var(--muted-foreground));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mono {
|
|
66
|
+
font-family: var(--font-mono);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.code {
|
|
70
|
+
font-family: var(--font-mono);
|
|
71
|
+
font-size: 0.9em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
code:not(pre code) {
|
|
75
|
+
background-color: hsl(var(--muted));
|
|
76
|
+
padding-inline: 0.35em;
|
|
77
|
+
padding-block: 0.125em;
|
|
78
|
+
border-radius: 0.125rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Color helpers */
|
|
82
|
+
.fg1 {
|
|
83
|
+
color: hsl(var(--foreground));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.fg2 {
|
|
87
|
+
color: hsl(var(--muted-foreground));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.bg1 {
|
|
91
|
+
background-color: hsl(var(--background));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bg2 {
|
|
95
|
+
background-color: hsl(var(--muted));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.bg-card {
|
|
99
|
+
background-color: hsl(var(--card));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.muted-fg {
|
|
103
|
+
color: hsl(var(--muted-foreground));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
html, body {
|
|
3
|
+
background-color: hsl(var(--background));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
background-image:
|
|
8
|
+
radial-gradient(70% 55% at 50% -10%, hsl(var(--primary) / 0.28), transparent 60%);
|
|
9
|
+
background-size: 100% 100%;
|
|
10
|
+
background-attachment: fixed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dark body {
|
|
14
|
+
background-image:
|
|
15
|
+
radial-gradient(70% 55% at 50% -10%, hsl(var(--primary) / 0.40), transparent 60%);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
html[data-surface="glass"] body {
|
|
19
|
+
background:
|
|
20
|
+
radial-gradient(60% 50% at 12% 10%, hsl(28 100% 80% / 0.55), transparent 60%),
|
|
21
|
+
radial-gradient(55% 55% at 88% 8%, hsl(210 100% 78% / 0.55), transparent 60%),
|
|
22
|
+
radial-gradient(70% 60% at 50% 100%, hsl(270 90% 82% / 0.45), transparent 65%),
|
|
23
|
+
hsl(220 30% 97%);
|
|
24
|
+
background-attachment: fixed;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
html[data-surface="glass"].dark body {
|
|
28
|
+
background:
|
|
29
|
+
radial-gradient(55% 50% at 10% 8%, hsl(245 90% 60% / 0.40), transparent 60%),
|
|
30
|
+
radial-gradient(50% 55% at 92% 12%, hsl(280 85% 55% / 0.35), transparent 60%),
|
|
31
|
+
radial-gradient(70% 60% at 50% 100%, hsl(190 90% 45% / 0.28), transparent 70%),
|
|
32
|
+
hsl(222 30% 6%);
|
|
33
|
+
background-attachment: fixed;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
html[data-density="compact"] .app-content {
|
|
3
|
+
padding-left: 0.75rem;
|
|
4
|
+
padding-right: 0.75rem;
|
|
5
|
+
padding-top: 0.75rem;
|
|
6
|
+
padding-bottom: 2rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html[data-density="comfy"] .app-content {
|
|
10
|
+
padding-left: 1.5rem;
|
|
11
|
+
padding-right: 1.5rem;
|
|
12
|
+
padding-top: 2rem;
|
|
13
|
+
padding-bottom: 4rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (min-width: 1024px) {
|
|
17
|
+
html[data-density="comfy"] .app-content {
|
|
18
|
+
padding-left: 2.25rem;
|
|
19
|
+
padding-right: 2.25rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html[data-density="compact"] .dt-toolbar {
|
|
24
|
+
padding-left: 0.75rem;
|
|
25
|
+
padding-right: 0.75rem;
|
|
26
|
+
padding-top: 0.625rem;
|
|
27
|
+
padding-bottom: 0.625rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
html[data-density="comfy"] .dt-toolbar {
|
|
31
|
+
padding-left: 1.25rem;
|
|
32
|
+
padding-right: 1.25rem;
|
|
33
|
+
padding-top: 18px;
|
|
34
|
+
padding-bottom: 18px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
html[data-density="compact"] .dt-table th {
|
|
38
|
+
padding-left: 0.75rem;
|
|
39
|
+
padding-right: 0.75rem;
|
|
40
|
+
padding-top: 0.5rem;
|
|
41
|
+
padding-bottom: 0.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
html[data-density="comfy"] .dt-table th {
|
|
45
|
+
padding-left: 18px;
|
|
46
|
+
padding-right: 18px;
|
|
47
|
+
padding-top: 0.875rem;
|
|
48
|
+
padding-bottom: 0.875rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
html[data-density="compact"] .dt-table td {
|
|
52
|
+
padding-left: 0.75rem;
|
|
53
|
+
padding-right: 0.75rem;
|
|
54
|
+
padding-top: 0.5rem;
|
|
55
|
+
padding-bottom: 0.5rem;
|
|
56
|
+
font-size: 12.5px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
html[data-density="comfy"] .dt-table td {
|
|
60
|
+
padding-left: 18px;
|
|
61
|
+
padding-right: 18px;
|
|
62
|
+
padding-top: 1rem;
|
|
63
|
+
padding-bottom: 1rem;
|
|
64
|
+
font-size: 13.5px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
:where(
|
|
3
|
+
.input:focus,
|
|
4
|
+
input:focus,
|
|
5
|
+
textarea:focus,
|
|
6
|
+
select:focus,
|
|
7
|
+
.focus-pulse-within:focus-within
|
|
8
|
+
):not(.no-focus-pulse),
|
|
9
|
+
.canvas-focus-pulse {
|
|
10
|
+
outline: none;
|
|
11
|
+
animation: canvasFocusPulse 1.2s ease-out infinite;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.focus-pulse-within :focus {
|
|
15
|
+
animation: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes canvasFocusPulse {
|
|
19
|
+
0% { box-shadow: 0 0 0 0px hsl(var(--ring) / 0.7); }
|
|
20
|
+
100% { box-shadow: 0 0 0 5px hsl(var(--ring) / 0); }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@layer canvas.patterns {
|
|
2
|
+
html[data-surface="glass"] { --glass-tint: 222 22% 100%; --glass-tint-a: 0.55; --glass-edge-a: 0.45; --glass-hi-a: 0.55; --glass-shadow: 220 30% 20%; }
|
|
3
|
+
html[data-surface="glass"].dark { --glass-tint: 222 22% 18%; --glass-tint-a: 0.55; --glass-edge-a: 0.10; --glass-hi-a: 0.10; --glass-shadow: 222 60% 4%; }
|
|
4
|
+
|
|
5
|
+
html[data-surface="glass"] .app-shell { background-color: transparent; }
|
|
6
|
+
|
|
7
|
+
html[data-surface="glass"] .stat-card,
|
|
8
|
+
html[data-surface="glass"] .section-card,
|
|
9
|
+
html[data-surface="glass"] .dt-wrap,
|
|
10
|
+
html[data-surface="glass"] .empty-card,
|
|
11
|
+
html[data-surface="glass"] .topbar,
|
|
12
|
+
html[data-surface="glass"] .sidebar {
|
|
13
|
+
backdrop-filter: blur(18px) saturate(1.4);
|
|
14
|
+
background-color: hsl(var(--glass-tint) / var(--glass-tint-a));
|
|
15
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
16
|
+
box-shadow:
|
|
17
|
+
inset 0 1px 0 hsl(255 100% 100% / var(--glass-hi-a)),
|
|
18
|
+
0 1px 2px hsl(var(--glass-shadow) / 0.06),
|
|
19
|
+
0 8px 24px -12px hsl(var(--glass-shadow) / 0.18);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html[data-surface="glass"] .sidebar {
|
|
23
|
+
background-color: hsl(var(--glass-tint) / calc(var(--glass-tint-a) - 0.10));
|
|
24
|
+
border-right-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
25
|
+
}
|
|
26
|
+
html[data-surface="glass"] .topbar {
|
|
27
|
+
background-color: hsl(var(--glass-tint) / calc(var(--glass-tint-a) - 0.10));
|
|
28
|
+
border-bottom-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
29
|
+
}
|
|
30
|
+
html[data-surface="glass"] .sidebar-brand,
|
|
31
|
+
html[data-surface="glass"] .sidebar-group-label {
|
|
32
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
33
|
+
}
|
|
34
|
+
html[data-surface="glass"] .sidebar-item:hover,
|
|
35
|
+
html[data-surface="glass"] .sidebar-item.active {
|
|
36
|
+
background-color: hsl(255 100% 100% / 0.18);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html[data-surface="glass"] .dt-toolbar,
|
|
40
|
+
html[data-surface="glass"] .dt-footer {
|
|
41
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
42
|
+
}
|
|
43
|
+
html[data-surface="glass"] .dt-table th {
|
|
44
|
+
background-color: hsl(255 100% 100% / 0.10);
|
|
45
|
+
border-bottom-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
46
|
+
}
|
|
47
|
+
html[data-surface="glass"] .dt-table td {
|
|
48
|
+
border-bottom-color: hsl(255 100% 100% / calc(var(--glass-edge-a) - 0.20));
|
|
49
|
+
}
|
|
50
|
+
html[data-surface="glass"] .dt-table tbody tr.clickable:hover {
|
|
51
|
+
background-color: hsl(255 100% 100% / 0.10);
|
|
52
|
+
}
|
|
53
|
+
html[data-surface="glass"] .section-card-divider {
|
|
54
|
+
background-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
html[data-surface="glass"] .input,
|
|
58
|
+
html[data-surface="glass"] textarea.input,
|
|
59
|
+
html[data-surface="glass"] select.input {
|
|
60
|
+
backdrop-filter: blur(8px);
|
|
61
|
+
background-color: hsl(var(--glass-tint) / 0.35);
|
|
62
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
63
|
+
}
|
|
64
|
+
html[data-surface="glass"] .kbd,
|
|
65
|
+
html[data-surface="glass"] .codeblock {
|
|
66
|
+
background-color: hsl(255 100% 100% / 0.10);
|
|
67
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
html[data-surface="glass"]:not(.dark) .btn-secondary,
|
|
71
|
+
html[data-surface="glass"]:not(.dark) .btn-outline {
|
|
72
|
+
backdrop-filter: blur(8px);
|
|
73
|
+
background-color: hsl(var(--glass-tint) / 0.55);
|
|
74
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
html[data-surface="glass"] [role="menu"],
|
|
78
|
+
html[data-surface="glass"] .popover,
|
|
79
|
+
html[data-surface="glass"] .rowmenu-portal,
|
|
80
|
+
html[data-surface="glass"] .slide-over-panel {
|
|
81
|
+
backdrop-filter: blur(20px) saturate(1.4);
|
|
82
|
+
background-color: hsl(var(--glass-tint) / 0.85);
|
|
83
|
+
border-color: hsl(255 100% 100% / var(--glass-edge-a));
|
|
84
|
+
}
|
|
85
|
+
}
|