aplance-ui 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +29 -0
- package/dist/api.d.ts +175 -0
- package/dist/api.js +1954 -0
- package/dist/api.js.map +1 -0
- package/dist/frameworks/astro/astro.config.snippet.md +23 -0
- package/dist/frameworks/astro/postcss.config.mjs.template +20 -0
- package/dist/frameworks/astro/vite-inline.snippet.md +22 -0
- package/dist/frameworks/electron-vite/vite.config.snippet.md +44 -0
- package/dist/frameworks/next/layout-import.snippet.md +19 -0
- package/dist/frameworks/next/next.config.snippet.md +15 -0
- package/dist/frameworks/next/postcss.config.js.template +16 -0
- package/dist/frameworks/tanstack-start/postcss.config.ts.template +17 -0
- package/dist/frameworks/tanstack-start/vite-inline.snippet.md +22 -0
- package/dist/frameworks/vite-react/postcss.config.ts.template +16 -0
- package/dist/frameworks/vite-react/vite-inline.snippet.md +20 -0
- package/dist/frameworks/vite-react/vite.config.ts.template +48 -0
- package/dist/index.js +2047 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -0
- package/registry/components/primitives/icon/icon.module.css +63 -0
- package/registry/components/primitives/icon/icon.tsx +53 -0
- package/registry/components/primitives/modal/modal-context.ts +19 -0
- package/registry/components/primitives/modal/modal.module.css +415 -0
- package/registry/components/primitives/modal/modal.tsx +550 -0
- package/registry/components/primitives/popover/popover-context.ts +28 -0
- package/registry/components/primitives/popover/popover.module.css +28 -0
- package/registry/components/primitives/popover/popover.tsx +465 -0
- package/registry/components/ui/accordion/accordion.module.css +208 -0
- package/registry/components/ui/accordion/accordion.tsx +327 -0
- package/registry/components/ui/avatar/avatar.module.css +32 -0
- package/registry/components/ui/avatar/avatar.tsx +37 -0
- package/registry/components/ui/badge/badge.module.css +103 -0
- package/registry/components/ui/badge/badge.tsx +29 -0
- package/registry/components/ui/button/button.module.css +216 -0
- package/registry/components/ui/button/button.tsx +133 -0
- package/registry/components/ui/chart/chart.module.css +168 -0
- package/registry/components/ui/chart/chart.tsx +1293 -0
- package/registry/components/ui/chart/types.ts +210 -0
- package/registry/components/ui/chart/utils.ts +59 -0
- package/registry/components/ui/copy-button/copy-button.module.css +21 -0
- package/registry/components/ui/copy-button/copy-button.tsx +123 -0
- package/registry/components/ui/countdown/countdown.module.css +5 -0
- package/registry/components/ui/countdown/countdown.tsx +152 -0
- package/registry/components/ui/data-table/checkbox-column.tsx +59 -0
- package/registry/components/ui/data-table/data-table.module.css +594 -0
- package/registry/components/ui/data-table/data-table.tsx +1109 -0
- package/registry/components/ui/data-table/filter-bar.tsx +33 -0
- package/registry/components/ui/data-table/pagination-bar.tsx +125 -0
- package/registry/components/ui/data-table/types.ts +594 -0
- package/registry/components/ui/data-table/useDataTable.tsx +573 -0
- package/registry/components/ui/data-table/utils.ts +445 -0
- package/registry/components/ui/empty-state/empty-state.module.css +26 -0
- package/registry/components/ui/empty-state/empty-state.tsx +32 -0
- package/registry/components/ui/input-fields/color-picker/color-palette.module.css +102 -0
- package/registry/components/ui/input-fields/color-picker/color-palette.tsx +92 -0
- package/registry/components/ui/input-fields/color-picker/color-picker.module.css +29 -0
- package/registry/components/ui/input-fields/color-picker/color-picker.tsx +168 -0
- package/registry/components/ui/input-fields/common/field-message/field-message.module.css +28 -0
- package/registry/components/ui/input-fields/common/field-message/field-message.tsx +39 -0
- package/registry/components/ui/input-fields/common/input-field-common.module.css +318 -0
- package/registry/components/ui/input-fields/common/input-field-native.module.css +267 -0
- package/registry/components/ui/input-fields/common/picker-popover-common.module.css +40 -0
- package/registry/components/ui/input-fields/common/select-button/select-button.module.css +9 -0
- package/registry/components/ui/input-fields/common/select-button/select-button.tsx +171 -0
- package/registry/components/ui/input-fields/common/types.ts +38 -0
- package/registry/components/ui/input-fields/custom-select/custom-select.module.css +56 -0
- package/registry/components/ui/input-fields/custom-select/custom-select.tsx +403 -0
- package/registry/components/ui/input-fields/date-picker/calendar.module.css +311 -0
- package/registry/components/ui/input-fields/date-picker/calendar.tsx +186 -0
- package/registry/components/ui/input-fields/date-picker/date-picker.module.css +57 -0
- package/registry/components/ui/input-fields/date-picker/date-picker.tsx +945 -0
- package/registry/components/ui/input-fields/date-picker/types.ts +102 -0
- package/registry/components/ui/input-fields/date-picker/utils.ts +236 -0
- package/registry/components/ui/input-fields/emoji-picker/emoji-palette.module.css +90 -0
- package/registry/components/ui/input-fields/emoji-picker/emoji-palette.tsx +168 -0
- package/registry/components/ui/input-fields/emoji-picker/emoji-picker.module.css +8 -0
- package/registry/components/ui/input-fields/emoji-picker/emoji-picker.tsx +102 -0
- package/registry/components/ui/input-fields/emoji-picker/utils.ts +505 -0
- package/registry/components/ui/input-fields/field-group/field-group.module.css +86 -0
- package/registry/components/ui/input-fields/field-group/field-group.tsx +86 -0
- package/registry/components/ui/input-fields/input/input.tsx +319 -0
- package/registry/components/ui/input-fields/media-input/kind-icons.tsx +62 -0
- package/registry/components/ui/input-fields/media-input/media-input.module.css +294 -0
- package/registry/components/ui/input-fields/media-input/media-input.tsx +327 -0
- package/registry/components/ui/input-fields/media-input/media-preview.tsx +101 -0
- package/registry/components/ui/input-fields/media-input/types.ts +129 -0
- package/registry/components/ui/input-fields/media-input/useMediaUpload.tsx +302 -0
- package/registry/components/ui/input-fields/media-input/utils.ts +325 -0
- package/registry/components/ui/input-fields/otp-input/otp-input.module.css +24 -0
- package/registry/components/ui/input-fields/otp-input/otp-input.tsx +291 -0
- package/registry/components/ui/input-fields/select/select.tsx +118 -0
- package/registry/components/ui/input-fields/switch/switch.module.css +70 -0
- package/registry/components/ui/input-fields/switch/switch.tsx +59 -0
- package/registry/components/ui/input-fields/textarea/textarea.tsx +133 -0
- package/registry/components/ui/input-fields/time-picker/time-picker.module.css +57 -0
- package/registry/components/ui/input-fields/time-picker/time-picker.tsx +437 -0
- package/registry/components/ui/loader/loader.module.css +156 -0
- package/registry/components/ui/loader/loader.tsx +102 -0
- package/registry/components/ui/stepper/stepper.module.css +294 -0
- package/registry/components/ui/stepper/stepper.tsx +197 -0
- package/registry/components/ui/tabs/tabs.module.css +150 -0
- package/registry/components/ui/tabs/tabs.tsx +134 -0
- package/registry/components/ui/toast/toast.module.css +159 -0
- package/registry/components/ui/toast/toast.tsx +104 -0
- package/registry/components/ui/tooltip/tooltip.module.css +82 -0
- package/registry/components/ui/tooltip/tooltip.tsx +72 -0
- package/registry/global.d.ts +4 -0
- package/registry/hooks/useFocusOutside.tsx +33 -0
- package/registry/hooks/useResizeObserver.tsx +32 -0
- package/registry/lib/dom.ts +25 -0
- package/registry/lib/string.ts +23 -0
- package/registry/registry.json +719 -0
- package/registry/styles/app.css +240 -0
- package/registry/styles/components.css +78 -0
- package/registry/styles/fonts/geist-regular.woff2 +0 -0
- package/registry/styles/globals.css +7 -0
- package/registry/styles/media.css +25 -0
- package/registry/styles/utilities.css +90 -0
- package/registry/themes/colors/blue.css +37 -0
- package/registry/themes/colors/green.css +37 -0
- package/registry/themes/colors/rose.css +37 -0
- package/registry/themes/colors/slate.css +37 -0
- package/registry/themes/colors/stone.css +37 -0
- package/registry/themes/colors/violet.css +37 -0
- package/registry/themes/colors/zinc.css +37 -0
- package/registry/themes/radius/pill.css +8 -0
- package/registry/themes/radius/rounded.css +8 -0
- package/registry/themes/radius/sharp.css +8 -0
- package/registry/themes/spacing/compact.css +17 -0
- package/registry/themes/spacing/spacious.css +17 -0
- package/registry/tsconfig.json +25 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/* Load Geist Sans */
|
|
2
|
+
/* geist-regular - latin */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
|
5
|
+
font-family: 'Geist';
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
src: url('./fonts/geist-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
/* Typography */
|
|
13
|
+
--font-family-1: "Geist", sans-serif;
|
|
14
|
+
--font-family-2: ui-sans-serif, system-ui, sans-serif;
|
|
15
|
+
|
|
16
|
+
/* Font Sizes */
|
|
17
|
+
--font-size-xs: 0.75rem;
|
|
18
|
+
--font-size-sm: 0.875rem;
|
|
19
|
+
--font-size-md: 1rem;
|
|
20
|
+
--font-size-base: 1rem;
|
|
21
|
+
--font-size-lg: 1.125rem;
|
|
22
|
+
--font-size-xl: 1.25rem;
|
|
23
|
+
--font-size-2xl: 1.5rem;
|
|
24
|
+
--font-size-3xl: 1.875rem;
|
|
25
|
+
|
|
26
|
+
/* Font Weights */
|
|
27
|
+
--font-weight-light: 300;
|
|
28
|
+
--font-weight-normal: 400;
|
|
29
|
+
--font-weight-medium: 500;
|
|
30
|
+
--font-weight-semibold: 600;
|
|
31
|
+
--font-weight-bold: 700;
|
|
32
|
+
|
|
33
|
+
/* Letter Spacing */
|
|
34
|
+
--letter-spacing-tight: -0.025em;
|
|
35
|
+
--letter-spacing-normal: 0;
|
|
36
|
+
--letter-spacing-wide: 0.025em;
|
|
37
|
+
|
|
38
|
+
/* Line Height */
|
|
39
|
+
--line-height-sm: 1;
|
|
40
|
+
--line-height-md: 1.25;
|
|
41
|
+
--line-height-lg: 2;
|
|
42
|
+
|
|
43
|
+
/* Spacing Tokens (also used for height/width sizes) */
|
|
44
|
+
--spacing-0: 0;
|
|
45
|
+
--spacing-1: 0.125rem;
|
|
46
|
+
--spacing-2: 0.25rem;
|
|
47
|
+
--spacing-3: 0.375rem;
|
|
48
|
+
--spacing-4: 0.5rem;
|
|
49
|
+
--spacing-5: 0.625rem;
|
|
50
|
+
--spacing-6: 0.75rem;
|
|
51
|
+
--spacing-7: 0.875rem;
|
|
52
|
+
--spacing-8: 1rem;
|
|
53
|
+
--spacing-9: 1.25rem;
|
|
54
|
+
--spacing-10: 1.5rem;
|
|
55
|
+
--spacing-11: 2rem;
|
|
56
|
+
--spacing-12: 2.5rem;
|
|
57
|
+
--spacing-14: 3.5rem;
|
|
58
|
+
--spacing-container-max: 500px;
|
|
59
|
+
|
|
60
|
+
/* Border Radius */
|
|
61
|
+
--radius-none: 0;
|
|
62
|
+
--radius-sm: 0.25rem;
|
|
63
|
+
--radius-md: 0.375rem;
|
|
64
|
+
--radius-lg: 0.5rem;
|
|
65
|
+
--radius-xl: 0.75rem;
|
|
66
|
+
--radius-full: 9999px;
|
|
67
|
+
|
|
68
|
+
/* Border Width */
|
|
69
|
+
--border-0: 0px;
|
|
70
|
+
--border-1: 1px;
|
|
71
|
+
--border-2: 2px;
|
|
72
|
+
--border-4: 4px;
|
|
73
|
+
|
|
74
|
+
/* Outline Width */
|
|
75
|
+
--outline-0: 0px;
|
|
76
|
+
--outline-1: 1px;
|
|
77
|
+
--outline-2: 2px;
|
|
78
|
+
--outline-4: 4px;
|
|
79
|
+
|
|
80
|
+
/* Transitions */
|
|
81
|
+
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
+
--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
83
|
+
--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
84
|
+
|
|
85
|
+
/* Duration */
|
|
86
|
+
--duration-fast: 150ms;
|
|
87
|
+
--duration-slow: 300ms;
|
|
88
|
+
|
|
89
|
+
/* Easing */
|
|
90
|
+
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
91
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
92
|
+
|
|
93
|
+
/* Surface */
|
|
94
|
+
--color-background: oklch(1 0 0);
|
|
95
|
+
--color-foreground: oklch(14% 0.00002 271.152);
|
|
96
|
+
--color-muted: oklch(95% 0.003 264.79);
|
|
97
|
+
--color-muted-foreground: oklch(49% 0.003 264.79);
|
|
98
|
+
|
|
99
|
+
/* Brand */
|
|
100
|
+
--color-primary: oklch(15% 0.00003 271.15);
|
|
101
|
+
--color-primary-muted: oklch(25% 0.00003 271.15);
|
|
102
|
+
--color-primary-foreground: oklch(98% 0 0);
|
|
103
|
+
--color-secondary: oklch(97% 0 0);
|
|
104
|
+
--color-secondary-muted: oklch(92% 0 0);
|
|
105
|
+
--color-secondary-foreground: oklch(19% 0 0);
|
|
106
|
+
|
|
107
|
+
/* Charts */
|
|
108
|
+
--color-chart-primary: var(--color-primary);
|
|
109
|
+
--color-chart-secondary: color-mix(in oklch, var(--color-primary) 84%, var(--color-background));
|
|
110
|
+
--color-chart-tertiary: color-mix(in oklch, var(--color-primary) 68%, var(--color-background));
|
|
111
|
+
--color-chart-quaternary: color-mix(in oklch, var(--color-primary) 52%, var(--color-background));
|
|
112
|
+
--color-chart-quinary: color-mix(in oklch, var(--color-primary) 72%, var(--color-primary-muted));
|
|
113
|
+
--color-chart-muted: color-mix(in oklch, var(--color-muted-foreground) 80%, var(--color-foreground));
|
|
114
|
+
--color-chart-grid: color-mix(in oklch, var(--color-border) 76%, transparent);
|
|
115
|
+
--color-chart-cursor: color-mix(in oklch, var(--color-muted) 58%, transparent);
|
|
116
|
+
|
|
117
|
+
/* Lines / focus */
|
|
118
|
+
--color-border: oklch(90% 0.003 285.8);
|
|
119
|
+
--color-ring: oklch(85% 0.004 285.97);
|
|
120
|
+
|
|
121
|
+
/* Status - subtle tint + readable foreground (no bare variant) */
|
|
122
|
+
--color-success-subtle: oklch(0.92 0.05 145);
|
|
123
|
+
--color-success-foreground: oklch(0.38 0.15 145);
|
|
124
|
+
--color-warning-subtle: oklch(0.93 0.06 85);
|
|
125
|
+
--color-warning-foreground: oklch(0.44 0.14 75);
|
|
126
|
+
--color-error-subtle: oklch(0.93 0.05 25);
|
|
127
|
+
--color-error-foreground: oklch(0.45 0.15 25);
|
|
128
|
+
--color-info-subtle: oklch(0.93 0.04 240);
|
|
129
|
+
--color-info-foreground: oklch(0.42 0.14 240);
|
|
130
|
+
|
|
131
|
+
/* Overlay backdrop + text selection */
|
|
132
|
+
--color-overlay: rgba(0, 0, 0, 0.45);
|
|
133
|
+
--color-selection: #a28fff;
|
|
134
|
+
|
|
135
|
+
/* Shadows */
|
|
136
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
137
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
138
|
+
--shadow-lg:
|
|
139
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
140
|
+
--shadow-ring: 0 0 0 3px
|
|
141
|
+
color-mix(in srgb, var(--color-ring) 30%, transparent);
|
|
142
|
+
|
|
143
|
+
/* Blur */
|
|
144
|
+
--blur-sm: 4px;
|
|
145
|
+
--blur-md: 8px;
|
|
146
|
+
--blur-lg: 16px;
|
|
147
|
+
|
|
148
|
+
/* Z-index */
|
|
149
|
+
--z-index-popover: 1000;
|
|
150
|
+
--z-index-modal: 1400;
|
|
151
|
+
|
|
152
|
+
/* Aspect Ratio */
|
|
153
|
+
--aspect-photo: 4 / 3;
|
|
154
|
+
|
|
155
|
+
/* Order */
|
|
156
|
+
--order-header: 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Dark Theme */
|
|
160
|
+
[data-theme="dark"] {
|
|
161
|
+
--color-background: oklch(13.979% 0.00002 271.152);
|
|
162
|
+
--color-foreground: oklch(0.985 0 0);
|
|
163
|
+
--color-muted: oklch(23% 0.004 286);
|
|
164
|
+
--color-muted-foreground: oklch(70% 0.00008 271.15);
|
|
165
|
+
|
|
166
|
+
--color-primary: oklch(98% 0.0001 271.15);
|
|
167
|
+
--color-primary-muted: oklch(75% 0.00008 271.15);
|
|
168
|
+
--color-primary-foreground: oklch(15% 0.00002 271.15);
|
|
169
|
+
--color-secondary: oklch(25% 0 0);
|
|
170
|
+
--color-secondary-muted: oklch(32% 0 0);
|
|
171
|
+
--color-secondary-foreground: oklch(0.99 0 0);
|
|
172
|
+
|
|
173
|
+
--color-border: oklch(30% 0.00004 271.15);
|
|
174
|
+
--color-ring: oklch(36% 0.00004 271.15);
|
|
175
|
+
|
|
176
|
+
--color-success-subtle: oklch(0.22 0.07 145);
|
|
177
|
+
--color-success-foreground: oklch(0.79 0.21 147);
|
|
178
|
+
--color-warning-subtle: oklch(0.25 0.06 75);
|
|
179
|
+
--color-warning-foreground: oklch(0.83 0.12 85);
|
|
180
|
+
--color-error-subtle: oklch(0.22 0.07 25);
|
|
181
|
+
--color-error-foreground: oklch(0.66 0.21 24.86);
|
|
182
|
+
--color-info-subtle: oklch(0.22 0.04 250);
|
|
183
|
+
--color-info-foreground: oklch(0.73 0.14 244.72);
|
|
184
|
+
|
|
185
|
+
--color-overlay: rgba(0, 0, 0, 0.65);
|
|
186
|
+
--color-selection: oklch(0.55 0.15 275);
|
|
187
|
+
|
|
188
|
+
--shadow-sm: 0 1px 2px 0 rgba(41, 41, 41, 0.3);
|
|
189
|
+
--shadow-md:
|
|
190
|
+
0 4px 6px -1px rgba(32, 32, 32, 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
191
|
+
--shadow-lg:
|
|
192
|
+
0 10px 15px -3px rgba(34, 34, 34, 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@layer base {
|
|
196
|
+
*,
|
|
197
|
+
*::before,
|
|
198
|
+
*::after {
|
|
199
|
+
margin: 0;
|
|
200
|
+
padding: 0;
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Custom text selection colors */
|
|
205
|
+
::selection {
|
|
206
|
+
background-color: var(--color-selection);
|
|
207
|
+
color: var(--color-primary-foreground);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
::-moz-selection {
|
|
211
|
+
background-color: var(--color-selection);
|
|
212
|
+
color: var(--color-primary-foreground);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Global html element styles */
|
|
216
|
+
body {
|
|
217
|
+
background-color: var(--color-background);
|
|
218
|
+
color: var(--color-foreground);
|
|
219
|
+
font-family: var(--font-family-1);
|
|
220
|
+
line-height: 1.25;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
button {
|
|
224
|
+
outline: none;
|
|
225
|
+
border: none;
|
|
226
|
+
background-color: transparent;
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
line-height: 1;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
a {
|
|
232
|
+
text-decoration: none;
|
|
233
|
+
color: unset;
|
|
234
|
+
line-height: 1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
ul {
|
|
238
|
+
list-style: none;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* Action menus (popover with button items) */
|
|
3
|
+
.popover-action-menu {
|
|
4
|
+
min-width: 10rem;
|
|
5
|
+
padding: var(--spacing-2);
|
|
6
|
+
background-color: var(--color-background);
|
|
7
|
+
border: 1px solid var(--color-border);
|
|
8
|
+
border-radius: var(--radius-lg);
|
|
9
|
+
box-shadow: var(--shadow-lg);
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--spacing-1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Display read-only info field (label + value pair) */
|
|
16
|
+
.info-field {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--spacing-2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.info-field-label {
|
|
23
|
+
font-size: var(--font-size-xs);
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
color: var(--color-muted-foreground);
|
|
26
|
+
text-transform: uppercase;
|
|
27
|
+
letter-spacing: 0.04em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.info-field-value {
|
|
31
|
+
font-size: var(--font-size-sm);
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
color: var(--color-foreground);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* form */
|
|
37
|
+
.data-preview {
|
|
38
|
+
margin-top: 2rem;
|
|
39
|
+
padding: 1rem;
|
|
40
|
+
background-color: var(--color-muted);
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
|
|
43
|
+
> h4 {
|
|
44
|
+
margin-bottom: var(--spacing-6);
|
|
45
|
+
color: var(--color-muted-foreground);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> pre {
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-size: var(--font-size-sm);
|
|
51
|
+
color: var(--color-info-foreground);
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
text-wrap: wrap;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.form-fields {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: var(--spacing-11);
|
|
61
|
+
padding: var(--spacing-10);
|
|
62
|
+
border: 1px solid var(--color-border);
|
|
63
|
+
border-radius: var(--radius-lg);
|
|
64
|
+
|
|
65
|
+
.form-control {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: var(--spacing-11);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.form-actions {
|
|
74
|
+
display: flex;
|
|
75
|
+
gap: var(--spacing-3);
|
|
76
|
+
justify-content: flex-end;
|
|
77
|
+
margin-top: var(--spacing-8);
|
|
78
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Responsive Breakpoints */
|
|
2
|
+
@custom-media --xsm (width <= 350px);
|
|
3
|
+
@custom-media --sm (width <= 550px);
|
|
4
|
+
@custom-media --md (width <= 900px);
|
|
5
|
+
@custom-media --lg (width <= 1200px);
|
|
6
|
+
@custom-media --xl (width <= 1800px);
|
|
7
|
+
|
|
8
|
+
/* Theme Preferences */
|
|
9
|
+
@custom-media --dark (prefers-color-scheme: dark);
|
|
10
|
+
@custom-media --light (prefers-color-scheme: light);
|
|
11
|
+
|
|
12
|
+
/* Motion Preferences */
|
|
13
|
+
@custom-media --motion-safe (prefers-reduced-motion: no-preference);
|
|
14
|
+
@custom-media --motion-reduce (prefers-reduced-motion: reduce);
|
|
15
|
+
|
|
16
|
+
/* Contrast Preferences */
|
|
17
|
+
@custom-media --contrast-more (prefers-contrast: more);
|
|
18
|
+
@custom-media --contrast-less (prefers-contrast: less);
|
|
19
|
+
|
|
20
|
+
/* Orientation */
|
|
21
|
+
@custom-media --portrait (orientation: portrait);
|
|
22
|
+
@custom-media --landscape (orientation: landscape);
|
|
23
|
+
|
|
24
|
+
/* Print Media */
|
|
25
|
+
@custom-media --print (print);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@layer utilities-gen {
|
|
2
|
+
/* Generated utility classes will be auto injected here */
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@layer utilities {
|
|
6
|
+
/* truncate text should be in separate wrapper or parent element like span or p */
|
|
7
|
+
.truncate-text {
|
|
8
|
+
max-width: 8rem;
|
|
9
|
+
flex: 1;
|
|
10
|
+
text-align: left;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sr-only {
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 1px;
|
|
20
|
+
height: 1px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
clip: rect(0, 0, 0, 0);
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
border-width: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ── Page layout helpers ── */
|
|
30
|
+
|
|
31
|
+
/* Full-page scrollable content area (use on pages inside .main) */
|
|
32
|
+
.page-layout {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
height: 100%;
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Consistent page top row: title on left, action on right */
|
|
40
|
+
.page-header-row {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
margin-bottom: var(--spacing-9);
|
|
45
|
+
gap: var(--spacing-5);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Bold page title */
|
|
49
|
+
.page-title {
|
|
50
|
+
font-size: var(--font-size-xl);
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
letter-spacing: -0.01em;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Section heading within a page */
|
|
56
|
+
.section-title {
|
|
57
|
+
font-size: var(--font-size-base);
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
margin-bottom: var(--spacing-7);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Horizontal rule / divider for sections */
|
|
63
|
+
.section-divider {
|
|
64
|
+
height: 1px;
|
|
65
|
+
background: var(--color-border);
|
|
66
|
+
margin: var(--spacing-9) 0;
|
|
67
|
+
border: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.divider {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 1px;
|
|
73
|
+
background-color: var(--color-border);
|
|
74
|
+
border: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Inbox 3-column grid */
|
|
78
|
+
.inbox-grid {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-template-columns: minmax(260px, 1fr) minmax(320px, 2fr) minmax(240px, 1fr);
|
|
81
|
+
|
|
82
|
+
& > :first-child {
|
|
83
|
+
border-right: var(--border-1) solid var(--color-border);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
& > :last-child {
|
|
87
|
+
border-left: var(--border-1) solid var(--color-border);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: blue - blue primary over neutral surfaces. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.002 240);
|
|
5
|
+
--color-foreground: oklch(20% 0.02 260);
|
|
6
|
+
--color-muted: oklch(96% 0.005 250);
|
|
7
|
+
--color-muted-foreground: oklch(52% 0.015 250);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(55% 0.2 260);
|
|
10
|
+
--color-primary-muted: oklch(65% 0.17 260);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.005 240);
|
|
12
|
+
--color-secondary: oklch(96% 0.005 250);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.01 250);
|
|
14
|
+
--color-secondary-foreground: oklch(20% 0.02 260);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(90% 0.008 250);
|
|
17
|
+
--color-ring: oklch(55% 0.2 260);
|
|
18
|
+
--color-selection: oklch(78% 0.12 260);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(17% 0.015 260);
|
|
23
|
+
--color-foreground: oklch(97% 0.005 240);
|
|
24
|
+
--color-muted: oklch(26% 0.015 260);
|
|
25
|
+
--color-muted-foreground: oklch(72% 0.015 250);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(62% 0.2 260);
|
|
28
|
+
--color-primary-muted: oklch(50% 0.18 260);
|
|
29
|
+
--color-primary-foreground: oklch(98% 0.005 240);
|
|
30
|
+
--color-secondary: oklch(28% 0.015 260);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.02 260);
|
|
32
|
+
--color-secondary-foreground: oklch(97% 0.005 240);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(30% 0.015 260);
|
|
35
|
+
--color-ring: oklch(62% 0.2 260);
|
|
36
|
+
--color-selection: oklch(45% 0.18 260);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: green - green primary over neutral surfaces. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.003 150);
|
|
5
|
+
--color-foreground: oklch(20% 0.015 150);
|
|
6
|
+
--color-muted: oklch(96% 0.008 150);
|
|
7
|
+
--color-muted-foreground: oklch(52% 0.015 150);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(56% 0.17 150);
|
|
10
|
+
--color-primary-muted: oklch(66% 0.14 150);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.005 150);
|
|
12
|
+
--color-secondary: oklch(96% 0.008 150);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.012 150);
|
|
14
|
+
--color-secondary-foreground: oklch(20% 0.015 150);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(90% 0.01 150);
|
|
17
|
+
--color-ring: oklch(56% 0.17 150);
|
|
18
|
+
--color-selection: oklch(80% 0.1 150);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(17% 0.012 150);
|
|
23
|
+
--color-foreground: oklch(97% 0.005 150);
|
|
24
|
+
--color-muted: oklch(26% 0.015 150);
|
|
25
|
+
--color-muted-foreground: oklch(72% 0.015 150);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(64% 0.17 150);
|
|
28
|
+
--color-primary-muted: oklch(52% 0.15 150);
|
|
29
|
+
--color-primary-foreground: oklch(98% 0.005 150);
|
|
30
|
+
--color-secondary: oklch(28% 0.015 150);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.02 150);
|
|
32
|
+
--color-secondary-foreground: oklch(97% 0.005 150);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(30% 0.015 150);
|
|
35
|
+
--color-ring: oklch(64% 0.17 150);
|
|
36
|
+
--color-selection: oklch(45% 0.15 150);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: rose - warm pink-leaning primary over neutral surfaces. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.003 20);
|
|
5
|
+
--color-foreground: oklch(20% 0.015 20);
|
|
6
|
+
--color-muted: oklch(96% 0.005 20);
|
|
7
|
+
--color-muted-foreground: oklch(52% 0.015 20);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(64% 0.22 15);
|
|
10
|
+
--color-primary-muted: oklch(72% 0.18 15);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.005 20);
|
|
12
|
+
--color-secondary: oklch(96% 0.005 20);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.01 20);
|
|
14
|
+
--color-secondary-foreground: oklch(20% 0.015 20);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(90% 0.008 20);
|
|
17
|
+
--color-ring: oklch(64% 0.22 15);
|
|
18
|
+
--color-selection: oklch(80% 0.12 15);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(17% 0.012 20);
|
|
23
|
+
--color-foreground: oklch(97% 0.005 20);
|
|
24
|
+
--color-muted: oklch(26% 0.015 20);
|
|
25
|
+
--color-muted-foreground: oklch(72% 0.015 20);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(68% 0.2 15);
|
|
28
|
+
--color-primary-muted: oklch(58% 0.18 15);
|
|
29
|
+
--color-primary-foreground: oklch(98% 0.005 20);
|
|
30
|
+
--color-secondary: oklch(28% 0.015 20);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.018 20);
|
|
32
|
+
--color-secondary-foreground: oklch(97% 0.005 20);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(30% 0.015 20);
|
|
35
|
+
--color-ring: oklch(68% 0.2 15);
|
|
36
|
+
--color-selection: oklch(50% 0.18 15);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: slate - cool neutral with blue undertones. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.005 240);
|
|
5
|
+
--color-foreground: oklch(20% 0.02 260);
|
|
6
|
+
--color-muted: oklch(95% 0.01 250);
|
|
7
|
+
--color-muted-foreground: oklch(48% 0.02 255);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(28% 0.05 260);
|
|
10
|
+
--color-primary-muted: oklch(40% 0.06 260);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.005 240);
|
|
12
|
+
--color-secondary: oklch(96% 0.01 250);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.015 250);
|
|
14
|
+
--color-secondary-foreground: oklch(22% 0.04 260);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(88% 0.015 250);
|
|
17
|
+
--color-ring: oklch(65% 0.08 260);
|
|
18
|
+
--color-selection: oklch(70% 0.1 250);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(18% 0.02 260);
|
|
23
|
+
--color-foreground: oklch(96% 0.005 240);
|
|
24
|
+
--color-muted: oklch(26% 0.025 260);
|
|
25
|
+
--color-muted-foreground: oklch(70% 0.02 255);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(92% 0.02 250);
|
|
28
|
+
--color-primary-muted: oklch(72% 0.03 255);
|
|
29
|
+
--color-primary-foreground: oklch(20% 0.02 260);
|
|
30
|
+
--color-secondary: oklch(28% 0.025 260);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.03 260);
|
|
32
|
+
--color-secondary-foreground: oklch(96% 0.01 240);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(32% 0.025 260);
|
|
35
|
+
--color-ring: oklch(55% 0.08 260);
|
|
36
|
+
--color-selection: oklch(55% 0.12 255);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: stone - warm neutral with subtle earthy undertones. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.003 55);
|
|
5
|
+
--color-foreground: oklch(18% 0.01 55);
|
|
6
|
+
--color-muted: oklch(96% 0.005 60);
|
|
7
|
+
--color-muted-foreground: oklch(52% 0.01 60);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(22% 0.015 55);
|
|
10
|
+
--color-primary-muted: oklch(38% 0.015 55);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.003 55);
|
|
12
|
+
--color-secondary: oklch(96% 0.005 60);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.008 60);
|
|
14
|
+
--color-secondary-foreground: oklch(22% 0.015 55);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(90% 0.006 60);
|
|
17
|
+
--color-ring: oklch(68% 0.02 55);
|
|
18
|
+
--color-selection: oklch(72% 0.03 55);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(16% 0.008 55);
|
|
23
|
+
--color-foreground: oklch(97% 0.004 55);
|
|
24
|
+
--color-muted: oklch(26% 0.01 55);
|
|
25
|
+
--color-muted-foreground: oklch(70% 0.01 55);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(95% 0.008 55);
|
|
28
|
+
--color-primary-muted: oklch(76% 0.01 55);
|
|
29
|
+
--color-primary-foreground: oklch(22% 0.015 55);
|
|
30
|
+
--color-secondary: oklch(28% 0.01 55);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.012 55);
|
|
32
|
+
--color-secondary-foreground: oklch(97% 0.004 55);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(30% 0.01 55);
|
|
35
|
+
--color-ring: oklch(55% 0.02 55);
|
|
36
|
+
--color-selection: oklch(45% 0.03 55);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Color theme: violet - rich purple primary over neutral surfaces. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-background: oklch(99% 0.003 290);
|
|
5
|
+
--color-foreground: oklch(20% 0.02 290);
|
|
6
|
+
--color-muted: oklch(96% 0.008 290);
|
|
7
|
+
--color-muted-foreground: oklch(52% 0.015 290);
|
|
8
|
+
|
|
9
|
+
--color-primary: oklch(56% 0.22 295);
|
|
10
|
+
--color-primary-muted: oklch(66% 0.18 295);
|
|
11
|
+
--color-primary-foreground: oklch(98% 0.005 290);
|
|
12
|
+
--color-secondary: oklch(96% 0.008 290);
|
|
13
|
+
--color-secondary-muted: oklch(90% 0.012 290);
|
|
14
|
+
--color-secondary-foreground: oklch(20% 0.02 290);
|
|
15
|
+
|
|
16
|
+
--color-border: oklch(90% 0.01 290);
|
|
17
|
+
--color-ring: oklch(56% 0.22 295);
|
|
18
|
+
--color-selection: oklch(80% 0.12 295);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-theme="dark"] {
|
|
22
|
+
--color-background: oklch(17% 0.015 290);
|
|
23
|
+
--color-foreground: oklch(97% 0.005 290);
|
|
24
|
+
--color-muted: oklch(26% 0.018 290);
|
|
25
|
+
--color-muted-foreground: oklch(72% 0.015 290);
|
|
26
|
+
|
|
27
|
+
--color-primary: oklch(66% 0.22 295);
|
|
28
|
+
--color-primary-muted: oklch(54% 0.2 295);
|
|
29
|
+
--color-primary-foreground: oklch(98% 0.005 290);
|
|
30
|
+
--color-secondary: oklch(28% 0.018 290);
|
|
31
|
+
--color-secondary-muted: oklch(34% 0.022 290);
|
|
32
|
+
--color-secondary-foreground: oklch(97% 0.005 290);
|
|
33
|
+
|
|
34
|
+
--color-border: oklch(30% 0.018 290);
|
|
35
|
+
--color-ring: oklch(66% 0.22 295);
|
|
36
|
+
--color-selection: oklch(45% 0.2 295);
|
|
37
|
+
}
|