@olympusoss/canvas 2.20.2 → 3.2.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 +73 -35
- package/package.json +46 -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/atoms/avatar.css +22 -0
- package/styles/atoms/badge.css +83 -0
- package/styles/atoms/breadcrumb.css +35 -0
- package/styles/atoms/button-group.css +23 -0
- package/styles/atoms/button.css +107 -0
- package/styles/atoms/checkbox.css +55 -0
- package/styles/atoms/combobox.css +75 -0
- package/styles/atoms/dropdown.css +54 -0
- package/styles/atoms/icon.css +8 -0
- package/styles/atoms/input-group.css +45 -0
- package/styles/atoms/input.css +56 -0
- package/styles/atoms/kbd.css +15 -0
- package/styles/atoms/pagination.css +48 -0
- package/styles/atoms/popover.css +14 -0
- package/styles/atoms/radio.css +28 -0
- package/styles/atoms/select.css +57 -0
- package/styles/atoms/separator.css +32 -0
- package/styles/atoms/skeleton.css +32 -0
- package/styles/atoms/spinner.css +26 -0
- package/styles/atoms/switch.css +45 -0
- package/styles/atoms/textarea.css +31 -0
- package/styles/atoms/tooltip.css +53 -0
- package/styles/atoms/typography.css +105 -0
- package/styles/base.css +17 -0
- package/styles/canvas.css +77 -52
- package/styles/molecules/alert.css +66 -0
- package/styles/molecules/card.css +58 -0
- package/styles/molecules/code-block.css +18 -0
- package/styles/molecules/empty-state.css +17 -0
- package/styles/molecules/field.css +27 -0
- package/styles/molecules/form.css +27 -0
- package/styles/molecules/page-header.css +52 -0
- package/styles/molecules/section-card.css +49 -0
- package/styles/molecules/stat-card.css +71 -0
- package/styles/molecules/toast.css +95 -0
- package/styles/organisms/app-shell.css +46 -0
- package/styles/organisms/calendar.css +73 -0
- package/styles/organisms/command.css +94 -0
- package/styles/organisms/data-table.css +142 -0
- package/styles/organisms/dialog.css +72 -0
- package/styles/organisms/filter-panel.css +58 -0
- package/styles/organisms/row-menu.css +69 -0
- package/styles/organisms/sheet.css +70 -0
- package/styles/organisms/sidebar.css +146 -0
- package/styles/organisms/stepper.css +63 -0
- package/styles/organisms/tabs.css +40 -0
- package/styles/organisms/topbar.css +24 -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 -175
- package/styles/leaflet.css +0 -13
- package/styles/tokens.css +0 -317
- package/tailwind.config.ts +0 -70
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.badge {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
padding-left: 0.625rem;
|
|
6
|
+
padding-right: 0.625rem;
|
|
7
|
+
padding-top: 0.125rem;
|
|
8
|
+
padding-bottom: 0.125rem;
|
|
9
|
+
border-radius: var(--radius-md, 6px);
|
|
10
|
+
font-size: 0.75rem;
|
|
11
|
+
line-height: 1.4;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
border-width: 1px;
|
|
14
|
+
border-style: solid;
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.badge-default {
|
|
19
|
+
background-color: hsl(var(--primary));
|
|
20
|
+
color: hsl(var(--primary-foreground));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.badge-secondary {
|
|
24
|
+
background-color: hsl(var(--secondary));
|
|
25
|
+
color: hsl(var(--secondary-foreground));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.badge-outline {
|
|
29
|
+
color: hsl(var(--foreground));
|
|
30
|
+
border-color: hsl(var(--border));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.badge-destructive {
|
|
34
|
+
background-color: hsl(var(--destructive));
|
|
35
|
+
color: hsl(var(--destructive-foreground));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.status-badge {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 0.375rem;
|
|
42
|
+
padding-left: 0.625rem;
|
|
43
|
+
padding-right: 0.625rem;
|
|
44
|
+
padding-top: 0.125rem;
|
|
45
|
+
padding-bottom: 0.125rem;
|
|
46
|
+
border-radius: 9999px;
|
|
47
|
+
font-size: 0.75rem;
|
|
48
|
+
line-height: 1.4;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.status-badge .dot {
|
|
53
|
+
width: 0.375rem;
|
|
54
|
+
height: 0.375rem;
|
|
55
|
+
border-radius: 9999px;
|
|
56
|
+
background-color: currentColor;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sb-success {
|
|
60
|
+
background-color: hsl(var(--success-bg));
|
|
61
|
+
color: hsl(var(--success-fg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sb-warning {
|
|
65
|
+
background-color: hsl(var(--warning-bg));
|
|
66
|
+
color: hsl(var(--warning-fg));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.sb-error {
|
|
70
|
+
background-color: hsl(var(--error-bg));
|
|
71
|
+
color: hsl(var(--error-fg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sb-info {
|
|
75
|
+
background-color: hsl(var(--info-bg));
|
|
76
|
+
color: hsl(var(--info-fg));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sb-neutral {
|
|
80
|
+
background-color: hsl(var(--muted));
|
|
81
|
+
color: hsl(var(--muted-foreground));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.breadcrumb {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.375rem;
|
|
6
|
+
font-size: 0.875rem;
|
|
7
|
+
line-height: 1.25rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.breadcrumb-item {
|
|
11
|
+
color: hsl(var(--muted-foreground));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.breadcrumb-item a {
|
|
15
|
+
color: inherit;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.breadcrumb-item a:hover {
|
|
20
|
+
color: hsl(var(--foreground));
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
text-underline-offset: 4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.breadcrumb-item.active {
|
|
26
|
+
color: hsl(var(--foreground));
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.breadcrumb-sep {
|
|
31
|
+
color: hsl(var(--muted-foreground));
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.btn-group {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.btn-group > .btn {
|
|
7
|
+
border-radius: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.btn-group > .btn:first-child {
|
|
11
|
+
border-top-left-radius: var(--radius-md, 6px);
|
|
12
|
+
border-bottom-left-radius: var(--radius-md, 6px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.btn-group > .btn:last-child {
|
|
16
|
+
border-top-right-radius: var(--radius-md, 6px);
|
|
17
|
+
border-bottom-right-radius: var(--radius-md, 6px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.btn-group > .btn + .btn {
|
|
21
|
+
margin-left: -1px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.btn {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
font-size: 0.875rem;
|
|
9
|
+
line-height: 1.25rem;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
border-radius: var(--radius-md, 6px);
|
|
12
|
+
border-width: 1px;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-color: transparent;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
height: 2.25rem;
|
|
17
|
+
padding-left: 1rem;
|
|
18
|
+
padding-right: 1rem;
|
|
19
|
+
font-family: var(--font-sans);
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
transition-property: color, background-color, border-color,
|
|
22
|
+
text-decoration-color, fill, stroke;
|
|
23
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
24
|
+
transition-duration: 150ms;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.btn:focus-visible {
|
|
28
|
+
outline: 2px solid hsl(var(--ring));
|
|
29
|
+
outline-offset: 2px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.btn:disabled {
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.btn-default {
|
|
38
|
+
background-color: hsl(var(--primary));
|
|
39
|
+
color: hsl(var(--primary-foreground));
|
|
40
|
+
box-shadow: var(--shadow-xs);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.btn-default:hover {
|
|
44
|
+
background-color: hsl(var(--primary) / 0.9);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.btn-outline {
|
|
48
|
+
background-color: hsl(var(--background));
|
|
49
|
+
color: hsl(var(--foreground));
|
|
50
|
+
border-color: hsl(var(--input));
|
|
51
|
+
box-shadow: var(--shadow-xs);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.btn-outline:hover {
|
|
55
|
+
background-color: hsl(var(--accent));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.btn-secondary {
|
|
59
|
+
background-color: hsl(var(--secondary));
|
|
60
|
+
color: hsl(var(--secondary-foreground));
|
|
61
|
+
box-shadow: var(--shadow-xs);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.btn-ghost {
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
color: hsl(var(--foreground));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.btn-ghost:hover {
|
|
70
|
+
background-color: hsl(var(--accent));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.btn-destructive {
|
|
74
|
+
background-color: hsl(var(--destructive));
|
|
75
|
+
color: hsl(var(--destructive-foreground));
|
|
76
|
+
box-shadow: var(--shadow-xs);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.btn-link {
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
color: hsl(var(--primary));
|
|
82
|
+
height: auto;
|
|
83
|
+
padding: 0;
|
|
84
|
+
text-decoration-line: underline;
|
|
85
|
+
text-underline-offset: 4px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.btn-sm {
|
|
89
|
+
height: 2rem;
|
|
90
|
+
padding-left: 0.75rem;
|
|
91
|
+
padding-right: 0.75rem;
|
|
92
|
+
font-size: 0.75rem;
|
|
93
|
+
line-height: 1rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.btn-lg {
|
|
97
|
+
height: 2.5rem;
|
|
98
|
+
padding-left: 2rem;
|
|
99
|
+
padding-right: 2rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.btn-icon {
|
|
103
|
+
width: 2.25rem;
|
|
104
|
+
height: 2.25rem;
|
|
105
|
+
padding: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.checkbox {
|
|
3
|
+
appearance: none;
|
|
4
|
+
width: 1rem;
|
|
5
|
+
height: 1rem;
|
|
6
|
+
border: 1px solid hsl(var(--input));
|
|
7
|
+
border-radius: var(--radius-sm, 4px);
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
transition: background-color var(--duration-fast), border-color var(--duration-fast);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.checkbox:focus-visible {
|
|
15
|
+
outline: 2px solid hsl(var(--ring));
|
|
16
|
+
outline-offset: 2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.checkbox:checked {
|
|
20
|
+
background-color: hsl(var(--primary));
|
|
21
|
+
border-color: hsl(var(--primary));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.checkbox:checked::after {
|
|
25
|
+
content: "";
|
|
26
|
+
display: block;
|
|
27
|
+
width: 0.25rem;
|
|
28
|
+
height: 0.5rem;
|
|
29
|
+
margin: 1px auto 0;
|
|
30
|
+
border: solid hsl(var(--primary-foreground));
|
|
31
|
+
border-width: 0 2px 2px 0;
|
|
32
|
+
transform: rotate(45deg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.checkbox:disabled {
|
|
36
|
+
opacity: 0.5;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.checkbox-label {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
font-family: var(--font-sans);
|
|
45
|
+
font-size: 0.875rem;
|
|
46
|
+
line-height: 1.25rem;
|
|
47
|
+
color: hsl(var(--foreground));
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.checkbox-label:has(.checkbox:disabled) {
|
|
52
|
+
opacity: 0.5;
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -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,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,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
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.pagination {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.25rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.page-btn {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
min-width: 2rem;
|
|
13
|
+
height: 2rem;
|
|
14
|
+
border-radius: var(--radius-md, 6px);
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
line-height: 1.25rem;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
border: 1px solid transparent;
|
|
19
|
+
background: none;
|
|
20
|
+
color: hsl(var(--foreground));
|
|
21
|
+
padding: 0 0.25rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.page-btn:hover {
|
|
25
|
+
background-color: hsl(var(--accent));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.page-btn.active {
|
|
29
|
+
background-color: hsl(var(--primary));
|
|
30
|
+
color: hsl(var(--primary-foreground));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.page-btn:disabled {
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.page-ellipsis {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
width: 2rem;
|
|
43
|
+
height: 2rem;
|
|
44
|
+
text-align: center;
|
|
45
|
+
color: hsl(var(--muted-foreground));
|
|
46
|
+
font-size: 0.875rem;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.popover {
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: var(--z-popover);
|
|
5
|
+
background-color: hsl(var(--popover));
|
|
6
|
+
color: hsl(var(--popover-foreground));
|
|
7
|
+
border: 1px solid hsl(var(--border));
|
|
8
|
+
border-radius: var(--radius-lg, 8px);
|
|
9
|
+
box-shadow: var(--shadow-md);
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
min-width: 12rem;
|
|
12
|
+
animation: var(--animate-fade-in);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@layer canvas.components {
|
|
2
|
+
.radio {
|
|
3
|
+
appearance: none;
|
|
4
|
+
width: 1rem;
|
|
5
|
+
height: 1rem;
|
|
6
|
+
border-radius: 9999px;
|
|
7
|
+
border: 1px solid hsl(var(--input));
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.radio:focus-visible {
|
|
15
|
+
outline: 2px solid hsl(var(--ring));
|
|
16
|
+
outline-offset: 2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.radio:checked {
|
|
20
|
+
border-color: hsl(var(--primary));
|
|
21
|
+
box-shadow: inset 0 0 0 3px hsl(var(--background)), inset 0 0 0 6px hsl(var(--primary));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.radio:disabled {
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
}
|