@neetechs/ui 0.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/README.md +640 -0
- package/dist/ai/ai-action-button/ai-action-button.css +270 -0
- package/dist/ai/ai-approval-card/ai-approval-card.css +321 -0
- package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +404 -0
- package/dist/ai/ai-prompt-input/ai-prompt-input.css +378 -0
- package/dist/ai/ai-proposal-card/ai-proposal-card.css +359 -0
- package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +294 -0
- package/dist/ai/ai-tool-call/ai-tool-call.css +256 -0
- package/dist/ai/index.css +7 -0
- package/dist/behaviors/dialog.d.ts +27 -0
- package/dist/behaviors/dialog.d.ts.map +1 -0
- package/dist/behaviors/dialog.js +97 -0
- package/dist/behaviors/dialog.js.map +1 -0
- package/dist/behaviors/drawer.d.ts +29 -0
- package/dist/behaviors/drawer.d.ts.map +1 -0
- package/dist/behaviors/drawer.js +102 -0
- package/dist/behaviors/drawer.js.map +1 -0
- package/dist/behaviors/dropdown.d.ts +26 -0
- package/dist/behaviors/dropdown.d.ts.map +1 -0
- package/dist/behaviors/dropdown.js +178 -0
- package/dist/behaviors/dropdown.js.map +1 -0
- package/dist/behaviors/focus-trap.d.ts +26 -0
- package/dist/behaviors/focus-trap.d.ts.map +1 -0
- package/dist/behaviors/focus-trap.js +170 -0
- package/dist/behaviors/focus-trap.js.map +1 -0
- package/dist/behaviors/ids.d.ts +6 -0
- package/dist/behaviors/ids.d.ts.map +1 -0
- package/dist/behaviors/ids.js +30 -0
- package/dist/behaviors/ids.js.map +1 -0
- package/dist/behaviors/index.d.ts +8 -0
- package/dist/behaviors/index.d.ts.map +1 -0
- package/dist/behaviors/index.js +8 -0
- package/dist/behaviors/index.js.map +1 -0
- package/dist/behaviors/keyboard.d.ts +28 -0
- package/dist/behaviors/keyboard.d.ts.map +1 -0
- package/dist/behaviors/keyboard.js +199 -0
- package/dist/behaviors/keyboard.js.map +1 -0
- package/dist/behaviors/overlay.d.ts +21 -0
- package/dist/behaviors/overlay.d.ts.map +1 -0
- package/dist/behaviors/overlay.js +145 -0
- package/dist/behaviors/overlay.js.map +1 -0
- package/dist/components/alert/alert.css +217 -0
- package/dist/components/avatar/avatar.css +219 -0
- package/dist/components/badge/badge.css +175 -0
- package/dist/components/breadcrumb/breadcrumb.css +205 -0
- package/dist/components/button/button.css +167 -0
- package/dist/components/card/card.css +220 -0
- package/dist/components/checkbox/checkbox.css +187 -0
- package/dist/components/chip/chip.css +268 -0
- package/dist/components/data-grid/data-grid.css +369 -0
- package/dist/components/dialog/dialog.css +275 -0
- package/dist/components/drawer/drawer.css +403 -0
- package/dist/components/dropdown/dropdown.css +298 -0
- package/dist/components/icon-button/icon-button.css +158 -0
- package/dist/components/index.css +30 -0
- package/dist/components/input/input.css +163 -0
- package/dist/components/menu/menu.css +314 -0
- package/dist/components/modal/modal.css +318 -0
- package/dist/components/pagination/pagination.css +250 -0
- package/dist/components/panel/panel.css +283 -0
- package/dist/components/progress/progress.css +248 -0
- package/dist/components/radio/radio.css +164 -0
- package/dist/components/segmented-control/segmented-control.css +205 -0
- package/dist/components/select/select.css +103 -0
- package/dist/components/skeleton/skeleton.css +263 -0
- package/dist/components/split-button/split-button.css +285 -0
- package/dist/components/switch/switch.css +181 -0
- package/dist/components/table/table.css +0 -0
- package/dist/components/tabs/tabs.css +289 -0
- package/dist/components/textarea/textarea.css +86 -0
- package/dist/components/toast/toast.css +323 -0
- package/dist/components/tooltip/tooltip.css +255 -0
- package/dist/domain/billing/index.css +498 -0
- package/dist/domain/calendar/day-slice/day-slice.css +383 -0
- package/dist/domain/calendar/day-timeline/day-timeline.css +324 -0
- package/dist/domain/calendar/event-card/event-card.css +337 -0
- package/dist/domain/calendar/index.css +5 -0
- package/dist/domain/calendar/month-grid/month-grid.css +420 -0
- package/dist/domain/calendar/week-grid/week-grid.css +470 -0
- package/dist/domain/companies/index.css +526 -0
- package/dist/domain/index.css +3 -0
- package/dist/index.css +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/patterns/command-palette/command-palette.css +439 -0
- package/dist/patterns/company-switcher/company-switcher.css +363 -0
- package/dist/patterns/empty-state/empty-state.css +259 -0
- package/dist/patterns/error-state/error-state.css +272 -0
- package/dist/patterns/index.css +9 -0
- package/dist/patterns/loading-state/loading-state.css +288 -0
- package/dist/patterns/notification-center/notification-center.css +438 -0
- package/dist/patterns/profile-menu/profile-menu.css +297 -0
- package/dist/patterns/search-bar/search-bar.css +444 -0
- package/dist/patterns/workspace-switcher/workspace-switcher.css +380 -0
- package/dist/shell/app-shell/app-shell.css +68 -0
- package/dist/shell/content-frame/content-frame.css +94 -0
- package/dist/shell/header/header.css +178 -0
- package/dist/shell/index.css +6 -0
- package/dist/shell/mobile-nav/mobile-nav.css +171 -0
- package/dist/shell/right-drawer/right-drawer.css +108 -0
- package/dist/shell/sidebar/sidebar.css +146 -0
- package/dist/styles/animations/motion.css +162 -0
- package/dist/styles/base.css +82 -0
- package/dist/styles/index.css +21 -0
- package/dist/styles/reset.css +51 -0
- package/dist/styles/themes/dark.css +120 -0
- package/dist/styles/themes/high-contrast.css +119 -0
- package/dist/styles/themes/light.css +119 -0
- package/dist/styles/tokens/breakpoints.css +15 -0
- package/dist/styles/tokens/color.css +97 -0
- package/dist/styles/tokens/elevation.css +32 -0
- package/dist/styles/tokens/index.css +8 -0
- package/dist/styles/tokens/motion.css +36 -0
- package/dist/styles/tokens/radius.css +21 -0
- package/dist/styles/tokens/spacing.css +50 -0
- package/dist/styles/tokens/typography.css +84 -0
- package/dist/styles/tokens/z-index.css +15 -0
- package/dist/styles/utilities/layout.css +135 -0
- package/dist/styles/utilities/text.css +152 -0
- package/dist/styles/utilities/visibility.css +48 -0
- package/dist/types/index.d.ts +65 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/docs/accessibility.md +0 -0
- package/docs/component-guidelines.md +0 -0
- package/docs/migration.md +0 -0
- package/docs/theming.md +0 -0
- package/package.json +85 -0
- package/src/ai/ai-action-button/ai-action-button.css +270 -0
- package/src/ai/ai-approval-card/ai-approval-card.css +321 -0
- package/src/ai/ai-conversation-panel/ai-conversation-panel.css +404 -0
- package/src/ai/ai-prompt-input/ai-prompt-input.css +378 -0
- package/src/ai/ai-proposal-card/ai-proposal-card.css +359 -0
- package/src/ai/ai-suggestion-card/ai-suggestion-card.css +294 -0
- package/src/ai/ai-tool-call/ai-tool-call.css +256 -0
- package/src/ai/index.css +7 -0
- package/src/behaviors/dialog.ts +168 -0
- package/src/behaviors/drawer.ts +177 -0
- package/src/behaviors/dropdown.ts +281 -0
- package/src/behaviors/focus-trap.ts +261 -0
- package/src/behaviors/ids.ts +48 -0
- package/src/behaviors/index.ts +7 -0
- package/src/behaviors/keyboard.ts +303 -0
- package/src/behaviors/overlay.ts +231 -0
- package/src/components/alert/alert.css +217 -0
- package/src/components/avatar/avatar.css +219 -0
- package/src/components/badge/badge.css +175 -0
- package/src/components/breadcrumb/breadcrumb.css +205 -0
- package/src/components/button/button.css +167 -0
- package/src/components/card/card.css +220 -0
- package/src/components/checkbox/checkbox.css +187 -0
- package/src/components/chip/chip.css +268 -0
- package/src/components/data-grid/data-grid.css +369 -0
- package/src/components/dialog/dialog.css +275 -0
- package/src/components/drawer/drawer.css +403 -0
- package/src/components/dropdown/dropdown.css +298 -0
- package/src/components/icon-button/icon-button.css +158 -0
- package/src/components/index.css +30 -0
- package/src/components/input/input.css +163 -0
- package/src/components/menu/menu.css +314 -0
- package/src/components/modal/modal.css +318 -0
- package/src/components/pagination/pagination.css +250 -0
- package/src/components/panel/panel.css +283 -0
- package/src/components/progress/progress.css +248 -0
- package/src/components/radio/radio.css +164 -0
- package/src/components/segmented-control/segmented-control.css +205 -0
- package/src/components/select/select.css +103 -0
- package/src/components/skeleton/skeleton.css +263 -0
- package/src/components/split-button/split-button.css +285 -0
- package/src/components/switch/switch.css +181 -0
- package/src/components/table/table.css +0 -0
- package/src/components/tabs/tabs.css +289 -0
- package/src/components/textarea/textarea.css +86 -0
- package/src/components/toast/toast.css +323 -0
- package/src/components/tooltip/tooltip.css +255 -0
- package/src/domain/billing/index.css +498 -0
- package/src/domain/calendar/day-slice/day-slice.css +383 -0
- package/src/domain/calendar/day-timeline/day-timeline.css +324 -0
- package/src/domain/calendar/event-card/event-card.css +337 -0
- package/src/domain/calendar/index.css +5 -0
- package/src/domain/calendar/month-grid/month-grid.css +420 -0
- package/src/domain/calendar/week-grid/week-grid.css +470 -0
- package/src/domain/companies/index.css +526 -0
- package/src/domain/index.css +3 -0
- package/src/index.css +6 -0
- package/src/index.ts +5 -0
- package/src/patterns/command-palette/command-palette.css +439 -0
- package/src/patterns/company-switcher/company-switcher.css +363 -0
- package/src/patterns/empty-state/empty-state.css +259 -0
- package/src/patterns/error-state/error-state.css +272 -0
- package/src/patterns/index.css +9 -0
- package/src/patterns/loading-state/loading-state.css +288 -0
- package/src/patterns/notification-center/notification-center.css +438 -0
- package/src/patterns/profile-menu/profile-menu.css +297 -0
- package/src/patterns/search-bar/search-bar.css +444 -0
- package/src/patterns/workspace-switcher/workspace-switcher.css +380 -0
- package/src/shell/app-shell/app-shell.css +68 -0
- package/src/shell/content-frame/content-frame.css +94 -0
- package/src/shell/header/header.css +178 -0
- package/src/shell/index.css +6 -0
- package/src/shell/mobile-nav/mobile-nav.css +171 -0
- package/src/shell/right-drawer/right-drawer.css +108 -0
- package/src/shell/sidebar/sidebar.css +146 -0
- package/src/styles/animations/motion.css +162 -0
- package/src/styles/base.css +82 -0
- package/src/styles/index.css +21 -0
- package/src/styles/reset.css +51 -0
- package/src/styles/themes/dark.css +120 -0
- package/src/styles/themes/high-contrast.css +119 -0
- package/src/styles/themes/light.css +119 -0
- package/src/styles/tokens/breakpoints.css +15 -0
- package/src/styles/tokens/color.css +97 -0
- package/src/styles/tokens/elevation.css +32 -0
- package/src/styles/tokens/index.css +8 -0
- package/src/styles/tokens/motion.css +36 -0
- package/src/styles/tokens/radius.css +21 -0
- package/src/styles/tokens/spacing.css +50 -0
- package/src/styles/tokens/typography.css +84 -0
- package/src/styles/tokens/z-index.css +15 -0
- package/src/styles/utilities/layout.css +135 -0
- package/src/styles/utilities/text.css +152 -0
- package/src/styles/utilities/visibility.css +48 -0
- package/src/types/index.ts +125 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
.nt-icon-button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: var(--nt-control-height-md);
|
|
6
|
+
height: var(--nt-control-height-md);
|
|
7
|
+
min-width: var(--nt-control-height-md);
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: 1px solid transparent;
|
|
10
|
+
border-radius: var(--nt-radius-button);
|
|
11
|
+
background: transparent;
|
|
12
|
+
color: var(--nt-icon-secondary);
|
|
13
|
+
font: var(--nt-text-label-md);
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
user-select: none;
|
|
17
|
+
appearance: none;
|
|
18
|
+
transition: var(--nt-motion-button);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.nt-icon-button:focus-visible {
|
|
22
|
+
outline: 2px solid var(--nt-focus-ring);
|
|
23
|
+
outline-offset: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nt-icon-button:not(:disabled):active {
|
|
27
|
+
transform: translateY(1px);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nt-icon-button:disabled,
|
|
31
|
+
.nt-icon-button[aria-disabled='true'],
|
|
32
|
+
.nt-icon-button--disabled,
|
|
33
|
+
.nt-icon-button--loading {
|
|
34
|
+
background: var(--nt-disabled-bg);
|
|
35
|
+
border-color: var(--nt-disabled-border);
|
|
36
|
+
color: var(--nt-disabled-text);
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
transform: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Sizes */
|
|
43
|
+
|
|
44
|
+
.nt-icon-button--sm {
|
|
45
|
+
width: var(--nt-control-height-sm);
|
|
46
|
+
height: var(--nt-control-height-sm);
|
|
47
|
+
min-width: var(--nt-control-height-sm);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nt-icon-button--md {
|
|
51
|
+
width: var(--nt-control-height-md);
|
|
52
|
+
height: var(--nt-control-height-md);
|
|
53
|
+
min-width: var(--nt-control-height-md);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nt-icon-button--lg {
|
|
57
|
+
width: var(--nt-control-height-lg);
|
|
58
|
+
height: var(--nt-control-height-lg);
|
|
59
|
+
min-width: var(--nt-control-height-lg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Variants */
|
|
63
|
+
|
|
64
|
+
.nt-icon-button--primary {
|
|
65
|
+
background: var(--nt-accent);
|
|
66
|
+
border-color: var(--nt-accent);
|
|
67
|
+
color: var(--nt-accent-contrast);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nt-icon-button--primary:not(:disabled):not(.nt-icon-button--disabled):not(.nt-icon-button--loading):hover {
|
|
71
|
+
background: var(--nt-accent-hover);
|
|
72
|
+
border-color: var(--nt-accent-hover);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nt-icon-button--secondary {
|
|
76
|
+
background: var(--nt-control-bg);
|
|
77
|
+
border-color: var(--nt-control-border);
|
|
78
|
+
color: var(--nt-icon-primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.nt-icon-button--secondary:not(:disabled):not(.nt-icon-button--disabled):not(.nt-icon-button--loading):hover {
|
|
82
|
+
background: var(--nt-control-bg-hover);
|
|
83
|
+
border-color: var(--nt-control-border-hover);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.nt-icon-button--ghost {
|
|
87
|
+
background: transparent;
|
|
88
|
+
border-color: transparent;
|
|
89
|
+
color: var(--nt-icon-secondary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nt-icon-button--ghost:not(:disabled):not(.nt-icon-button--disabled):not(.nt-icon-button--loading):hover {
|
|
93
|
+
background: var(--nt-bg-surface-hover);
|
|
94
|
+
color: var(--nt-icon-primary);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.nt-icon-button--danger {
|
|
98
|
+
background: var(--nt-danger-bg);
|
|
99
|
+
border-color: var(--nt-danger-border);
|
|
100
|
+
color: var(--nt-danger-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nt-icon-button--danger:not(:disabled):not(.nt-icon-button--disabled):not(.nt-icon-button--loading):hover {
|
|
104
|
+
background: var(--nt-danger);
|
|
105
|
+
border-color: var(--nt-danger);
|
|
106
|
+
color: var(--nt-bg-app);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nt-icon-button--ai {
|
|
110
|
+
background: var(--nt-ai-bg);
|
|
111
|
+
border-color: var(--nt-ai-border);
|
|
112
|
+
color: var(--nt-ai-accent);
|
|
113
|
+
box-shadow: 0 0 0 1px var(--nt-ai-glow);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.nt-icon-button--ai:not(:disabled):not(.nt-icon-button--disabled):not(.nt-icon-button--loading):hover {
|
|
117
|
+
background: var(--nt-ai-bg-raised);
|
|
118
|
+
border-color: var(--nt-ai-accent);
|
|
119
|
+
color: var(--nt-ai-accent-hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Internals */
|
|
123
|
+
|
|
124
|
+
.nt-icon-button__icon {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
width: var(--nt-icon-size-md);
|
|
129
|
+
height: var(--nt-icon-size-md);
|
|
130
|
+
flex: 0 0 auto;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nt-icon-button--sm .nt-icon-button__icon {
|
|
134
|
+
width: var(--nt-icon-size-sm);
|
|
135
|
+
height: var(--nt-icon-size-sm);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nt-icon-button--lg .nt-icon-button__icon {
|
|
139
|
+
width: var(--nt-icon-size-lg);
|
|
140
|
+
height: var(--nt-icon-size-lg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.nt-icon-button__spinner {
|
|
144
|
+
width: 1em;
|
|
145
|
+
height: 1em;
|
|
146
|
+
border: 2px solid currentColor;
|
|
147
|
+
border-top-color: transparent;
|
|
148
|
+
border-radius: var(--nt-radius-full);
|
|
149
|
+
animation: nt-spinner 720ms linear infinite;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (prefers-reduced-motion: reduce) {
|
|
153
|
+
.nt-icon-button,
|
|
154
|
+
.nt-icon-button__spinner {
|
|
155
|
+
animation: none !important;
|
|
156
|
+
transition: none !important;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import './button/button.css';
|
|
2
|
+
@import './icon-button/icon-button.css';
|
|
3
|
+
@import './input/input.css';
|
|
4
|
+
@import './textarea/textarea.css';
|
|
5
|
+
@import './select/select.css';
|
|
6
|
+
@import './checkbox/checkbox.css';
|
|
7
|
+
@import './radio/radio.css';
|
|
8
|
+
@import './switch/switch.css';
|
|
9
|
+
@import './card/card.css';
|
|
10
|
+
@import './badge/badge.css';
|
|
11
|
+
@import './avatar/avatar.css';
|
|
12
|
+
@import './table/table.css';
|
|
13
|
+
@import './dialog/dialog.css';
|
|
14
|
+
@import './dropdown/dropdown.css';
|
|
15
|
+
@import './tabs/tabs.css';
|
|
16
|
+
@import './toast/toast.css';
|
|
17
|
+
@import './tooltip/tooltip.css';
|
|
18
|
+
@import './alert/alert.css';
|
|
19
|
+
@import './progress/progress.css';
|
|
20
|
+
@import './segmented-control/segmented-control.css';
|
|
21
|
+
@import './skeleton/skeleton.css';
|
|
22
|
+
@import './split-button/split-button.css';
|
|
23
|
+
@import './pagination/pagination.css';
|
|
24
|
+
@import './breadcrumb/breadcrumb.css';
|
|
25
|
+
@import './chip/chip.css';
|
|
26
|
+
@import './data-grid/data-grid.css';
|
|
27
|
+
@import './drawer/drawer.css';
|
|
28
|
+
@import './menu/menu.css';
|
|
29
|
+
@import './modal/modal.css';
|
|
30
|
+
@import './panel/panel.css';
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.nt-field {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--nt-space-1-5);
|
|
5
|
+
min-width: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.nt-field__label {
|
|
9
|
+
color: var(--nt-text-secondary);
|
|
10
|
+
font: var(--nt-text-label-md);
|
|
11
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nt-field__label-required {
|
|
15
|
+
color: var(--nt-danger);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nt-field__help {
|
|
19
|
+
margin: 0;
|
|
20
|
+
color: var(--nt-text-muted);
|
|
21
|
+
font: var(--nt-text-caption);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nt-field__error {
|
|
25
|
+
margin: 0;
|
|
26
|
+
color: var(--nt-danger-text);
|
|
27
|
+
font: var(--nt-text-caption);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nt-input {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: var(--nt-control-height-md);
|
|
35
|
+
min-width: 0;
|
|
36
|
+
padding-inline: var(--nt-space-3);
|
|
37
|
+
border: 1px solid var(--nt-control-border);
|
|
38
|
+
border-radius: var(--nt-radius-input);
|
|
39
|
+
background: var(--nt-control-bg);
|
|
40
|
+
color: var(--nt-text-primary);
|
|
41
|
+
font: var(--nt-text-body-sm);
|
|
42
|
+
appearance: none;
|
|
43
|
+
outline: none;
|
|
44
|
+
transition: var(--nt-transition-colors);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nt-input::placeholder {
|
|
48
|
+
color: var(--nt-text-subtle);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nt-input:hover {
|
|
52
|
+
background: var(--nt-control-bg-hover);
|
|
53
|
+
border-color: var(--nt-control-border-hover);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nt-input:focus,
|
|
57
|
+
.nt-input:focus-visible {
|
|
58
|
+
border-color: var(--nt-control-border-focus);
|
|
59
|
+
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nt-input:disabled,
|
|
63
|
+
.nt-input[aria-disabled='true'],
|
|
64
|
+
.nt-input--disabled {
|
|
65
|
+
background: var(--nt-disabled-bg);
|
|
66
|
+
border-color: var(--nt-disabled-border);
|
|
67
|
+
color: var(--nt-disabled-text);
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.nt-input[readonly],
|
|
72
|
+
.nt-input--readonly {
|
|
73
|
+
background: var(--nt-bg-surface-muted);
|
|
74
|
+
border-color: var(--nt-border-subtle);
|
|
75
|
+
color: var(--nt-text-secondary);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nt-input[aria-invalid='true'],
|
|
79
|
+
.nt-input--error {
|
|
80
|
+
border-color: var(--nt-danger-border);
|
|
81
|
+
box-shadow: 0 0 0 3px var(--nt-danger-bg);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nt-input--sm {
|
|
85
|
+
height: var(--nt-control-height-sm);
|
|
86
|
+
padding-inline: var(--nt-space-2-5);
|
|
87
|
+
font: var(--nt-text-body-xs);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nt-input--md {
|
|
91
|
+
height: var(--nt-control-height-md);
|
|
92
|
+
padding-inline: var(--nt-space-3);
|
|
93
|
+
font: var(--nt-text-body-sm);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nt-input--lg {
|
|
97
|
+
height: var(--nt-control-height-lg);
|
|
98
|
+
padding-inline: var(--nt-space-4);
|
|
99
|
+
font: var(--nt-text-body-md);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nt-input-group {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
width: 100%;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
border: 1px solid var(--nt-control-border);
|
|
108
|
+
border-radius: var(--nt-radius-input);
|
|
109
|
+
background: var(--nt-control-bg);
|
|
110
|
+
color: var(--nt-text-primary);
|
|
111
|
+
transition: var(--nt-transition-colors);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nt-input-group:hover {
|
|
115
|
+
background: var(--nt-control-bg-hover);
|
|
116
|
+
border-color: var(--nt-control-border-hover);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.nt-input-group:focus-within {
|
|
120
|
+
border-color: var(--nt-control-border-focus);
|
|
121
|
+
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nt-input-group--error {
|
|
125
|
+
border-color: var(--nt-danger-border);
|
|
126
|
+
box-shadow: 0 0 0 3px var(--nt-danger-bg);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nt-input-group__prefix,
|
|
130
|
+
.nt-input-group__suffix {
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
flex: 0 0 auto;
|
|
135
|
+
color: var(--nt-text-muted);
|
|
136
|
+
font: var(--nt-text-body-sm);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nt-input-group__prefix {
|
|
140
|
+
padding-inline-start: var(--nt-space-3);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.nt-input-group__suffix {
|
|
144
|
+
padding-inline-end: var(--nt-space-3);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.nt-input-group .nt-input {
|
|
148
|
+
border: 0;
|
|
149
|
+
background: transparent;
|
|
150
|
+
box-shadow: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.nt-input-group .nt-input:focus,
|
|
154
|
+
.nt-input-group .nt-input:focus-visible {
|
|
155
|
+
box-shadow: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (prefers-reduced-motion: reduce) {
|
|
159
|
+
.nt-input,
|
|
160
|
+
.nt-input-group {
|
|
161
|
+
transition: none !important;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
.nt-menu {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--nt-space-1);
|
|
5
|
+
min-width: 0;
|
|
6
|
+
padding: var(--nt-space-1);
|
|
7
|
+
color: var(--nt-text-primary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.nt-menu__section {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--nt-space-0-5);
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nt-menu__label {
|
|
18
|
+
padding: var(--nt-space-2) var(--nt-space-2-5) var(--nt-space-1);
|
|
19
|
+
color: var(--nt-text-muted);
|
|
20
|
+
font: var(--nt-text-label-xs);
|
|
21
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nt-menu__item {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--nt-space-2);
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
min-height: var(--nt-control-height-sm);
|
|
32
|
+
padding: var(--nt-space-2) var(--nt-space-2-5);
|
|
33
|
+
border: 1px solid transparent;
|
|
34
|
+
border-radius: var(--nt-radius-md);
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: var(--nt-text-primary);
|
|
37
|
+
font: var(--nt-text-body-sm);
|
|
38
|
+
text-align: start;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: var(--nt-transition-colors);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nt-menu__item:hover,
|
|
45
|
+
.nt-menu__item[data-highlighted='true'] {
|
|
46
|
+
background: var(--nt-bg-surface-hover);
|
|
47
|
+
color: var(--nt-text-primary);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nt-menu__item:focus-visible {
|
|
51
|
+
outline: none;
|
|
52
|
+
border-color: var(--nt-control-border-focus);
|
|
53
|
+
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nt-menu__item[aria-current='page'],
|
|
57
|
+
.nt-menu__item[aria-selected='true'],
|
|
58
|
+
.nt-menu__item[data-state='active'],
|
|
59
|
+
.nt-menu__item--active {
|
|
60
|
+
background: var(--nt-accent-bg);
|
|
61
|
+
color: var(--nt-accent-text);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nt-menu__item[aria-disabled='true'],
|
|
65
|
+
.nt-menu__item:disabled,
|
|
66
|
+
.nt-menu__item--disabled {
|
|
67
|
+
color: var(--nt-disabled-text);
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.nt-menu__item--danger {
|
|
73
|
+
color: var(--nt-danger-text);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nt-menu__item--danger:hover,
|
|
77
|
+
.nt-menu__item--danger[data-highlighted='true'] {
|
|
78
|
+
background: var(--nt-danger-bg);
|
|
79
|
+
color: var(--nt-danger-text);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nt-menu__item--success {
|
|
83
|
+
color: var(--nt-success-text);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.nt-menu__item--success:hover,
|
|
87
|
+
.nt-menu__item--success[data-highlighted='true'] {
|
|
88
|
+
background: var(--nt-success-bg);
|
|
89
|
+
color: var(--nt-success-text);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nt-menu__item--warning {
|
|
93
|
+
color: var(--nt-warning-text);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nt-menu__item--warning:hover,
|
|
97
|
+
.nt-menu__item--warning[data-highlighted='true'] {
|
|
98
|
+
background: var(--nt-warning-bg);
|
|
99
|
+
color: var(--nt-warning-text);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nt-menu__item-icon {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
flex: 0 0 auto;
|
|
107
|
+
width: 1rem;
|
|
108
|
+
height: 1rem;
|
|
109
|
+
color: var(--nt-text-muted);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nt-menu__item:hover .nt-menu__item-icon,
|
|
113
|
+
.nt-menu__item[data-highlighted='true'] .nt-menu__item-icon,
|
|
114
|
+
.nt-menu__item[aria-current='page'] .nt-menu__item-icon,
|
|
115
|
+
.nt-menu__item[aria-selected='true'] .nt-menu__item-icon,
|
|
116
|
+
.nt-menu__item[data-state='active'] .nt-menu__item-icon,
|
|
117
|
+
.nt-menu__item--active .nt-menu__item-icon {
|
|
118
|
+
color: currentColor;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.nt-menu__item-main {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex: 1 1 auto;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: var(--nt-space-0-5);
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nt-menu__item-title {
|
|
130
|
+
min-width: 0;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
color: inherit;
|
|
133
|
+
font: var(--nt-text-label-sm);
|
|
134
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nt-menu__item-description {
|
|
140
|
+
min-width: 0;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
color: var(--nt-text-muted);
|
|
143
|
+
font: var(--nt-text-caption);
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.nt-menu__item-meta {
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: flex-end;
|
|
152
|
+
flex: 0 0 auto;
|
|
153
|
+
gap: var(--nt-space-1);
|
|
154
|
+
color: var(--nt-text-subtle);
|
|
155
|
+
font: var(--nt-text-caption);
|
|
156
|
+
font-variant-numeric: tabular-nums;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nt-menu__shortcut {
|
|
160
|
+
color: var(--nt-text-subtle);
|
|
161
|
+
font: var(--nt-text-caption);
|
|
162
|
+
font-variant-numeric: tabular-nums;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nt-menu__chevron {
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
flex: 0 0 auto;
|
|
170
|
+
width: 1rem;
|
|
171
|
+
height: 1rem;
|
|
172
|
+
color: var(--nt-text-subtle);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.nt-menu__check {
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
flex: 0 0 auto;
|
|
180
|
+
width: 1rem;
|
|
181
|
+
height: 1rem;
|
|
182
|
+
color: var(--nt-accent);
|
|
183
|
+
opacity: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.nt-menu__item[aria-checked='true'] .nt-menu__check,
|
|
187
|
+
.nt-menu__item[data-checked='true'] .nt-menu__check {
|
|
188
|
+
opacity: 1;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nt-menu__separator {
|
|
192
|
+
height: 1px;
|
|
193
|
+
margin: var(--nt-space-1);
|
|
194
|
+
border: 0;
|
|
195
|
+
background: var(--nt-border-subtle);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.nt-menu__empty {
|
|
199
|
+
padding: var(--nt-space-4);
|
|
200
|
+
color: var(--nt-text-muted);
|
|
201
|
+
font: var(--nt-text-body-sm);
|
|
202
|
+
text-align: center;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.nt-menu__group {
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
gap: var(--nt-space-1);
|
|
209
|
+
min-width: 0;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.nt-menu__group-title {
|
|
213
|
+
padding: var(--nt-space-2) var(--nt-space-2-5) var(--nt-space-1);
|
|
214
|
+
color: var(--nt-text-muted);
|
|
215
|
+
font: var(--nt-text-label-xs);
|
|
216
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
217
|
+
text-transform: uppercase;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.nt-menu__sub {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
gap: var(--nt-space-0-5);
|
|
224
|
+
margin-inline-start: var(--nt-space-4);
|
|
225
|
+
padding-inline-start: var(--nt-space-2);
|
|
226
|
+
border-inline-start: 1px solid var(--nt-border-subtle);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nt-menu--boxed {
|
|
230
|
+
border: 1px solid var(--nt-border-subtle);
|
|
231
|
+
border-radius: var(--nt-radius-xl);
|
|
232
|
+
background: var(--nt-bg-surface);
|
|
233
|
+
box-shadow: var(--nt-shadow-sm);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.nt-menu--elevated {
|
|
237
|
+
border: 1px solid var(--nt-border-subtle);
|
|
238
|
+
border-radius: var(--nt-radius-xl);
|
|
239
|
+
background: var(--nt-bg-surface);
|
|
240
|
+
box-shadow: var(--nt-shadow-xl);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.nt-menu--muted {
|
|
244
|
+
border-radius: var(--nt-radius-xl);
|
|
245
|
+
background: var(--nt-bg-muted);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.nt-menu--compact {
|
|
249
|
+
gap: var(--nt-space-0-5);
|
|
250
|
+
padding: var(--nt-space-0-5);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.nt-menu--compact .nt-menu__item {
|
|
254
|
+
min-height: 2rem;
|
|
255
|
+
padding: var(--nt-space-1-5) var(--nt-space-2);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.nt-menu--compact .nt-menu__label,
|
|
259
|
+
.nt-menu--compact .nt-menu__group-title {
|
|
260
|
+
padding: var(--nt-space-1-5) var(--nt-space-2) var(--nt-space-0-5);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.nt-menu--spacious {
|
|
264
|
+
gap: var(--nt-space-2);
|
|
265
|
+
padding: var(--nt-space-2);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.nt-menu--spacious .nt-menu__item {
|
|
269
|
+
min-height: var(--nt-control-height-md);
|
|
270
|
+
padding: var(--nt-space-3);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.nt-menu--horizontal {
|
|
274
|
+
flex-direction: row;
|
|
275
|
+
align-items: center;
|
|
276
|
+
gap: var(--nt-space-1);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.nt-menu--horizontal .nt-menu__section,
|
|
280
|
+
.nt-menu--horizontal .nt-menu__group {
|
|
281
|
+
flex-direction: row;
|
|
282
|
+
align-items: center;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.nt-menu--horizontal .nt-menu__separator {
|
|
286
|
+
width: 1px;
|
|
287
|
+
height: 1.5rem;
|
|
288
|
+
margin: 0 var(--nt-space-1);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.nt-menu--block {
|
|
292
|
+
width: 100%;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.nt-menu--block .nt-menu__item {
|
|
296
|
+
width: 100%;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@media (max-width: 640px) {
|
|
300
|
+
.nt-menu--horizontal {
|
|
301
|
+
flex-wrap: wrap;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.nt-menu__item-description,
|
|
305
|
+
.nt-menu__shortcut {
|
|
306
|
+
display: none;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@media (prefers-reduced-motion: reduce) {
|
|
311
|
+
.nt-menu__item {
|
|
312
|
+
transition: none !important;
|
|
313
|
+
}
|
|
314
|
+
}
|