@olympusoss/canvas 2.20.2 → 4.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/package.json +41 -177
- package/src/cn.ts +3 -0
- package/src/index.ts +12 -603
- package/src/theme.ts +41 -0
- package/src/tokens.ts +11 -0
- package/styles/base.css +17 -0
- package/styles/canvas.css +69 -52
- package/styles/components/alert.css +66 -0
- package/styles/components/app-shell.css +46 -0
- package/styles/components/avatar.css +15 -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 +38 -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/tsconfig.json +20 -21
- package/README.md +0 -60
- 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 -175
- package/styles/leaflet.css +0 -13
- package/styles/tokens.css +0 -317
- package/tailwind.config.ts +0 -70
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.codeblock {
|
|
3
|
+
background-color: hsl(var(--muted) / 0.5);
|
|
4
|
+
border: 1px solid hsl(var(--border));
|
|
5
|
+
border-radius: var(--radius-lg, 8px);
|
|
6
|
+
padding-left: 0.875rem;
|
|
7
|
+
padding-right: 0.875rem;
|
|
8
|
+
padding-top: 0.75rem;
|
|
9
|
+
padding-bottom: 0.75rem;
|
|
10
|
+
font-family: var(--font-mono);
|
|
11
|
+
font-size: 0.75rem;
|
|
12
|
+
line-height: 1.6;
|
|
13
|
+
color: hsl(var(--foreground));
|
|
14
|
+
white-space: pre-wrap;
|
|
15
|
+
overflow-wrap: break-word;
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.combobox {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.combobox-input {
|
|
8
|
+
height: 2.25rem;
|
|
9
|
+
padding: 0.25rem 0.75rem;
|
|
10
|
+
border: 1px solid hsl(var(--input));
|
|
11
|
+
border-radius: var(--radius-md, 6px);
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
color: hsl(var(--foreground));
|
|
14
|
+
font-family: var(--font-sans);
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
line-height: 1.25rem;
|
|
17
|
+
box-shadow: var(--shadow-xs);
|
|
18
|
+
outline: none;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.combobox-input::placeholder {
|
|
23
|
+
color: hsl(var(--muted-foreground));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.combobox-input:focus-visible {
|
|
27
|
+
outline: 2px solid hsl(var(--ring));
|
|
28
|
+
outline-offset: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.combobox-list {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 100%;
|
|
34
|
+
left: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
margin-top: 4px;
|
|
37
|
+
max-height: 15rem;
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
background-color: hsl(var(--popover));
|
|
40
|
+
color: hsl(var(--popover-foreground));
|
|
41
|
+
border: 1px solid hsl(var(--border));
|
|
42
|
+
border-radius: var(--radius-md, 6px);
|
|
43
|
+
box-shadow: var(--shadow-md);
|
|
44
|
+
z-index: var(--z-dropdown);
|
|
45
|
+
padding: 4px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.combobox-item {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
padding: 0.375rem 0.5rem;
|
|
52
|
+
border-radius: var(--radius-sm, 4px);
|
|
53
|
+
font-size: 0.875rem;
|
|
54
|
+
line-height: 1.25rem;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
user-select: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.combobox-item:hover {
|
|
60
|
+
background-color: hsl(var(--accent));
|
|
61
|
+
color: hsl(var(--accent-foreground));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.combobox-item.selected {
|
|
65
|
+
background-color: hsl(var(--accent));
|
|
66
|
+
color: hsl(var(--accent-foreground));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.combobox-empty {
|
|
70
|
+
padding: 1.5rem 0.5rem;
|
|
71
|
+
text-align: center;
|
|
72
|
+
font-size: 0.875rem;
|
|
73
|
+
color: hsl(var(--muted-foreground));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.command-overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
background: rgb(0 0 0 / 0.5);
|
|
6
|
+
z-index: var(--z-modal);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.command-dialog {
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 20%;
|
|
12
|
+
left: 50%;
|
|
13
|
+
transform: translateX(-50%);
|
|
14
|
+
z-index: var(--z-modal);
|
|
15
|
+
width: 32rem;
|
|
16
|
+
max-width: calc(100% - 2rem);
|
|
17
|
+
background-color: hsl(var(--popover));
|
|
18
|
+
border: 1px solid hsl(var(--border));
|
|
19
|
+
border-radius: var(--radius-xl, 12px);
|
|
20
|
+
box-shadow: var(--shadow-lg);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
animation: var(--animate-modal-in);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.command-input {
|
|
26
|
+
width: 100%;
|
|
27
|
+
padding: 0.75rem 1rem;
|
|
28
|
+
border: none;
|
|
29
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
30
|
+
background: transparent;
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
outline: none;
|
|
33
|
+
color: hsl(var(--foreground));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.command-input::placeholder {
|
|
37
|
+
color: hsl(var(--muted-foreground));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.command-list {
|
|
41
|
+
max-height: 20rem;
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
padding: 0.25rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.command-group {
|
|
47
|
+
padding: 0.25rem 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.command-group-label {
|
|
51
|
+
padding: 0.375rem 0.5rem;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
color: hsl(var(--muted-foreground));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.command-item {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 0.5rem;
|
|
61
|
+
padding: 0.5rem;
|
|
62
|
+
border-radius: var(--radius-md);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.command-item:hover {
|
|
68
|
+
background-color: hsl(var(--accent));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.command-item.selected {
|
|
72
|
+
background-color: hsl(var(--accent));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.command-sep {
|
|
76
|
+
height: 1px;
|
|
77
|
+
margin: 0.25rem 0;
|
|
78
|
+
background-color: hsl(var(--border));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.command-empty {
|
|
82
|
+
padding: 1.5rem;
|
|
83
|
+
text-align: center;
|
|
84
|
+
color: hsl(var(--muted-foreground));
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.command-shortcut {
|
|
89
|
+
margin-left: auto;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
color: hsl(var(--muted-foreground));
|
|
92
|
+
font-family: var(--font-mono);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.dt-wrap {
|
|
3
|
+
background-color: hsl(var(--card));
|
|
4
|
+
border: 1px solid hsl(var(--border));
|
|
5
|
+
border-radius: var(--radius-xl, 12px);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
box-shadow: var(--shadow-elevated);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dark .dt-wrap {
|
|
11
|
+
box-shadow: var(--shadow-elevated);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dt-scroll {
|
|
15
|
+
overflow-x: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dt-toolbar {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 0.625rem;
|
|
22
|
+
padding-left: 1rem;
|
|
23
|
+
padding-right: 1rem;
|
|
24
|
+
padding-top: 0.875rem;
|
|
25
|
+
padding-bottom: 0.875rem;
|
|
26
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dt-toolbar .input {
|
|
31
|
+
height: 34px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dt-table {
|
|
35
|
+
width: 100%;
|
|
36
|
+
border-collapse: collapse;
|
|
37
|
+
min-width: 720px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dt-table th {
|
|
41
|
+
padding-left: 1rem;
|
|
42
|
+
padding-right: 1rem;
|
|
43
|
+
padding-top: 0.625rem;
|
|
44
|
+
padding-bottom: 0.625rem;
|
|
45
|
+
text-align: left;
|
|
46
|
+
font-size: 0.75rem;
|
|
47
|
+
line-height: 1rem;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
color: hsl(var(--muted-foreground));
|
|
50
|
+
letter-spacing: 0.02em;
|
|
51
|
+
line-height: 1.4;
|
|
52
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
background: hsl(var(--muted) / 0.4);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dt-table td {
|
|
58
|
+
padding-left: 1rem;
|
|
59
|
+
padding-right: 1rem;
|
|
60
|
+
padding-top: 0.75rem;
|
|
61
|
+
padding-bottom: 0.75rem;
|
|
62
|
+
font-size: 13px;
|
|
63
|
+
line-height: 1.4;
|
|
64
|
+
color: hsl(var(--foreground));
|
|
65
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dt-table td.wrap {
|
|
71
|
+
white-space: normal;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dt-table tr:last-child td {
|
|
75
|
+
border-bottom-width: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dt-table tbody tr {
|
|
79
|
+
transition-property: color, background-color, border-color;
|
|
80
|
+
transition-duration: 150ms;
|
|
81
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dt-table tbody tr.clickable {
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dt-table tbody tr.clickable:hover {
|
|
89
|
+
background: hsl(var(--muted) / 0.4);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dt-footer {
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
align-items: center;
|
|
96
|
+
padding-left: 1rem;
|
|
97
|
+
padding-right: 1rem;
|
|
98
|
+
padding-top: 0.625rem;
|
|
99
|
+
padding-bottom: 0.625rem;
|
|
100
|
+
border-top: 1px solid hsl(var(--border));
|
|
101
|
+
font-size: 0.75rem;
|
|
102
|
+
line-height: 1rem;
|
|
103
|
+
color: hsl(var(--muted-foreground));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dt-table th.sortable {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
user-select: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dt-table th.sortable:hover {
|
|
112
|
+
background: hsl(var(--accent));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dt-sort-icon {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
margin-left: 0.25rem;
|
|
118
|
+
opacity: 0.4;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dt-table th.sorted .dt-sort-icon {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dt-table th.sticky-col,
|
|
126
|
+
.dt-table td.sticky-col {
|
|
127
|
+
position: sticky;
|
|
128
|
+
left: 0;
|
|
129
|
+
z-index: 1;
|
|
130
|
+
background: inherit;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dt-expand-row td {
|
|
134
|
+
padding: 0;
|
|
135
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.dt-expand-content {
|
|
139
|
+
padding: 0.75rem 1rem;
|
|
140
|
+
background: hsl(var(--muted) / 0.3);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.dialog-overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
background-color: rgb(0 0 0 / 0.5);
|
|
6
|
+
z-index: var(--z-modal);
|
|
7
|
+
animation: var(--animate-fade-in);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dialog {
|
|
11
|
+
position: fixed;
|
|
12
|
+
top: 50%;
|
|
13
|
+
left: 50%;
|
|
14
|
+
transform: translate(-50%, -50%);
|
|
15
|
+
z-index: var(--z-modal);
|
|
16
|
+
max-width: 32rem;
|
|
17
|
+
width: calc(100% - 2rem);
|
|
18
|
+
background-color: hsl(var(--popover));
|
|
19
|
+
color: hsl(var(--popover-foreground));
|
|
20
|
+
border: 1px solid hsl(var(--border));
|
|
21
|
+
border-radius: var(--radius-xl, 12px);
|
|
22
|
+
box-shadow: var(--shadow-lg);
|
|
23
|
+
animation: var(--animate-modal-in);
|
|
24
|
+
padding: 1.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dialog-header {
|
|
28
|
+
margin-bottom: 1rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dialog-title {
|
|
32
|
+
font-size: 1.125rem;
|
|
33
|
+
line-height: 1.5rem;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dialog-desc {
|
|
38
|
+
font-size: 0.875rem;
|
|
39
|
+
line-height: 1.25rem;
|
|
40
|
+
color: hsl(var(--muted-foreground));
|
|
41
|
+
margin-top: 0.25rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dialog-footer {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: flex-end;
|
|
47
|
+
gap: 0.5rem;
|
|
48
|
+
margin-top: 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dialog-close {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 1rem;
|
|
54
|
+
right: 1rem;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
width: 1.5rem;
|
|
59
|
+
height: 1.5rem;
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: var(--radius-sm, 4px);
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
color: hsl(var(--muted-foreground));
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dialog-close:hover {
|
|
69
|
+
background-color: hsl(var(--accent));
|
|
70
|
+
color: hsl(var(--foreground));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.dropdown {
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: var(--z-dropdown);
|
|
5
|
+
background-color: hsl(var(--popover));
|
|
6
|
+
color: hsl(var(--popover-foreground));
|
|
7
|
+
border: 1px solid hsl(var(--border));
|
|
8
|
+
border-radius: var(--radius-md, 6px);
|
|
9
|
+
box-shadow: var(--shadow-md);
|
|
10
|
+
padding: 0.25rem;
|
|
11
|
+
min-width: 10rem;
|
|
12
|
+
animation: var(--animate-fade-in);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dropdown-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
padding: 0.375rem 0.5rem;
|
|
21
|
+
border-radius: var(--radius-sm, 4px);
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
line-height: 1.25rem;
|
|
25
|
+
color: hsl(var(--foreground));
|
|
26
|
+
background: none;
|
|
27
|
+
border: none;
|
|
28
|
+
width: 100%;
|
|
29
|
+
text-align: left;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dropdown-item:hover {
|
|
33
|
+
background-color: hsl(var(--accent));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dropdown-item.disabled {
|
|
37
|
+
opacity: 0.5;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dropdown-sep {
|
|
42
|
+
height: 1px;
|
|
43
|
+
margin: 0.25rem -0.25rem;
|
|
44
|
+
background-color: hsl(var(--border));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dropdown-label {
|
|
48
|
+
padding: 0.375rem 0.5rem;
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
line-height: 1rem;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: hsl(var(--muted-foreground));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.empty-card {
|
|
3
|
+
padding-left: 1.5rem;
|
|
4
|
+
padding-right: 1.5rem;
|
|
5
|
+
padding-top: 3rem;
|
|
6
|
+
padding-bottom: 3rem;
|
|
7
|
+
text-align: center;
|
|
8
|
+
color: hsl(var(--muted-foreground));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.empty-card .title {
|
|
12
|
+
font-size: 15px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
color: hsl(var(--foreground));
|
|
15
|
+
margin-bottom: 0.375rem;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.field {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: 180px 1fr;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
padding-top: 0.5rem;
|
|
7
|
+
padding-bottom: 0.5rem;
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.field-label {
|
|
12
|
+
font-size: 13px;
|
|
13
|
+
color: hsl(var(--muted-foreground));
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.field-value {
|
|
18
|
+
font-size: 13px;
|
|
19
|
+
color: hsl(var(--foreground));
|
|
20
|
+
overflow-wrap: break-word;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.field-value.mono {
|
|
24
|
+
font-family: var(--font-mono);
|
|
25
|
+
font-size: 12.5px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.filter-panel {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.filter-group {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.filter-group-label {
|
|
15
|
+
font-size: 13px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
color: hsl(var(--foreground));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.filter-group-content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 0.25rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.filter-chip {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 0.25rem;
|
|
30
|
+
padding: 0.25rem 0.625rem;
|
|
31
|
+
border-radius: 9999px;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
border: 1px solid hsl(var(--border));
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
background: transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.filter-chip:hover {
|
|
39
|
+
background-color: hsl(var(--accent));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.filter-chip.active {
|
|
43
|
+
background-color: hsl(var(--primary));
|
|
44
|
+
color: hsl(var(--primary-foreground));
|
|
45
|
+
border-color: hsl(var(--primary));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.filter-chip-remove {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
margin-left: 0.125rem;
|
|
51
|
+
opacity: 0.6;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.filter-chip-remove:hover {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.form-group {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.375rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.form-row {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: 1fr 1fr;
|
|
11
|
+
gap: 1rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.form-actions {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
gap: 0.5rem;
|
|
18
|
+
margin-top: 1.5rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.form-error {
|
|
22
|
+
font-size: 0.75rem;
|
|
23
|
+
line-height: 1rem;
|
|
24
|
+
color: hsl(var(--destructive));
|
|
25
|
+
margin-top: 0.25rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.input-group {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.input-group .input {
|
|
8
|
+
border-radius: 0;
|
|
9
|
+
flex: 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.input-group .input:first-child {
|
|
13
|
+
border-top-left-radius: var(--radius-md, 6px);
|
|
14
|
+
border-bottom-left-radius: var(--radius-md, 6px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input-group .input:last-child {
|
|
18
|
+
border-top-right-radius: var(--radius-md, 6px);
|
|
19
|
+
border-bottom-right-radius: var(--radius-md, 6px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.input-addon {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
padding: 0 0.75rem;
|
|
26
|
+
background-color: hsl(var(--muted));
|
|
27
|
+
border: 1px solid hsl(var(--input));
|
|
28
|
+
font-size: 0.875rem;
|
|
29
|
+
line-height: 1.25rem;
|
|
30
|
+
color: hsl(var(--muted-foreground));
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.input-addon:first-child {
|
|
35
|
+
border-top-left-radius: var(--radius-md, 6px);
|
|
36
|
+
border-bottom-left-radius: var(--radius-md, 6px);
|
|
37
|
+
border-right: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.input-addon:last-child {
|
|
41
|
+
border-top-right-radius: var(--radius-md, 6px);
|
|
42
|
+
border-bottom-right-radius: var(--radius-md, 6px);
|
|
43
|
+
border-left: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.input {
|
|
3
|
+
height: 2.25rem;
|
|
4
|
+
padding: 0.25rem 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.25rem;
|
|
12
|
+
box-shadow: var(--shadow-xs);
|
|
13
|
+
outline: none;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input::placeholder {
|
|
18
|
+
color: hsl(var(--muted-foreground));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.label {
|
|
22
|
+
display: block;
|
|
23
|
+
margin-bottom: 0.375rem;
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
line-height: 1.25rem;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
color: hsl(var(--foreground));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.field-helper {
|
|
31
|
+
margin-top: 0.375rem;
|
|
32
|
+
font-size: 0.75rem;
|
|
33
|
+
line-height: 1rem;
|
|
34
|
+
color: hsl(var(--muted-foreground));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.input-icon {
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 0.625rem;
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
color: hsl(var(--muted-foreground));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.input-icon.right {
|
|
49
|
+
left: auto;
|
|
50
|
+
right: 0.625rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.input-with-icon {
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.kbd {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding-left: 0.375rem;
|
|
6
|
+
padding-right: 0.375rem;
|
|
7
|
+
padding-top: 0.125rem;
|
|
8
|
+
padding-bottom: 0.125rem;
|
|
9
|
+
font-family: var(--font-mono);
|
|
10
|
+
font-size: 11px;
|
|
11
|
+
border-radius: 0.125rem;
|
|
12
|
+
color: hsl(var(--muted-foreground));
|
|
13
|
+
background: hsl(var(--muted) / 0.6);
|
|
14
|
+
}
|
|
15
|
+
}
|