@flatwork-ui/react 0.0.0-stage → 0.1.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 +79 -2
- package/dist/index.cjs +1261 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +598 -0
- package/dist/index.d.ts +598 -0
- package/dist/index.js +1166 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/flatwork-saas/flatwork-saas.css +454 -0
- package/dist/styles/flatwork-saas/fonts/geist-400.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/geist-500.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/geist-600.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/plex-mono-400.woff2 +0 -0
- package/dist/styles/flatwork-saas/tokens.css +126 -0
- package/dist/styles/flatwork-saas/tokens.json +124 -0
- package/package.json +54 -4
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("./fonts/geist-400.woff2") format("woff2"); }
|
|
2
|
+
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("./fonts/geist-500.woff2") format("woff2"); }
|
|
3
|
+
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("./fonts/geist-600.woff2") format("woff2"); }
|
|
4
|
+
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("./fonts/plex-mono-400.woff2") format("woff2"); }
|
|
5
|
+
/* Generated from flatwork-saas/tokens.json — do not edit. */
|
|
6
|
+
.fw {
|
|
7
|
+
--fw-font: 'Geist', ui-sans-serif, system-ui, sans-serif;
|
|
8
|
+
--fw-mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
9
|
+
--fw-r-xs: 4px;
|
|
10
|
+
--fw-r-sm: 6px;
|
|
11
|
+
--fw-r-md: 9px;
|
|
12
|
+
--fw-r-lg: 12px;
|
|
13
|
+
--fw-r-full: 999px;
|
|
14
|
+
--fw-space-1: 4px;
|
|
15
|
+
--fw-space-2: 8px;
|
|
16
|
+
--fw-space-3: 12px;
|
|
17
|
+
--fw-space-4: 16px;
|
|
18
|
+
--fw-space-5: 20px;
|
|
19
|
+
--fw-space-6: 24px;
|
|
20
|
+
--fw-space-8: 32px;
|
|
21
|
+
--fw-space-12: 48px;
|
|
22
|
+
--fw-motion-fast: 120ms;
|
|
23
|
+
--fw-motion-normal: 220ms;
|
|
24
|
+
--fw-easing: ease-out;
|
|
25
|
+
color-scheme: dark;
|
|
26
|
+
--fw-bg: #1b1818;
|
|
27
|
+
--fw-surface: #221e1e;
|
|
28
|
+
--fw-surface-2: #2a2525;
|
|
29
|
+
--fw-input: #1b1818;
|
|
30
|
+
--fw-border: #3a3434;
|
|
31
|
+
--fw-border-strong: #4a4444;
|
|
32
|
+
--fw-heading: #ece9e9;
|
|
33
|
+
--fw-text: #c4c1c1;
|
|
34
|
+
--fw-muted: #9a9595;
|
|
35
|
+
--fw-accent: #8aa1a8;
|
|
36
|
+
--fw-accent-hover: #9bb2b9;
|
|
37
|
+
--fw-on-accent: #141212;
|
|
38
|
+
--fw-link: #a5bbc2;
|
|
39
|
+
--fw-focus: #a5bbc2;
|
|
40
|
+
--fw-danger: #c97070;
|
|
41
|
+
--fw-on-danger: #141212;
|
|
42
|
+
--fw-error: #d88a8a;
|
|
43
|
+
--fw-error-bg: #2a1e1e;
|
|
44
|
+
--fw-error-border: #5c3434;
|
|
45
|
+
--fw-success: #9dbca8;
|
|
46
|
+
--fw-success-bg: #1d2520;
|
|
47
|
+
--fw-success-border: #384c3f;
|
|
48
|
+
--fw-warning: #cdae88;
|
|
49
|
+
--fw-warning-bg: #28221b;
|
|
50
|
+
--fw-warning-border: #54452f;
|
|
51
|
+
--fw-info: #a5bbc2;
|
|
52
|
+
--fw-info-bg: #1d2326;
|
|
53
|
+
--fw-info-border: #3b494e;
|
|
54
|
+
--fw-overlay: rgb(10 8 8 / .62);
|
|
55
|
+
--fw-shadow-pop: 0 12px 32px rgb(0 0 0 / .35);
|
|
56
|
+
--fw-border-hover: #5a5353;
|
|
57
|
+
--fw-mark: rgb(138 161 168 / .28);
|
|
58
|
+
}
|
|
59
|
+
.fw[data-theme="light"] {
|
|
60
|
+
color-scheme: light;
|
|
61
|
+
--fw-bg: #f6f5f5;
|
|
62
|
+
--fw-surface: #ffffff;
|
|
63
|
+
--fw-surface-2: #f1efef;
|
|
64
|
+
--fw-input: #ffffff;
|
|
65
|
+
--fw-border: #e4e0e0;
|
|
66
|
+
--fw-border-strong: #d3cdcd;
|
|
67
|
+
--fw-heading: #1b1818;
|
|
68
|
+
--fw-text: #3a3535;
|
|
69
|
+
--fw-muted: #625c5c;
|
|
70
|
+
--fw-accent: #4b6670;
|
|
71
|
+
--fw-accent-hover: #3f5961;
|
|
72
|
+
--fw-on-accent: #ffffff;
|
|
73
|
+
--fw-link: #3f5961;
|
|
74
|
+
--fw-focus: #4b6670;
|
|
75
|
+
--fw-danger: #a33b3b;
|
|
76
|
+
--fw-on-danger: #ffffff;
|
|
77
|
+
--fw-error: #a33b3b;
|
|
78
|
+
--fw-error-bg: #fbf0f0;
|
|
79
|
+
--fw-error-border: #efcaca;
|
|
80
|
+
--fw-success: #3c6a4b;
|
|
81
|
+
--fw-success-bg: #eef5f0;
|
|
82
|
+
--fw-success-border: #c9dfd0;
|
|
83
|
+
--fw-warning: #7a5626;
|
|
84
|
+
--fw-warning-bg: #faf4ea;
|
|
85
|
+
--fw-warning-border: #ead8bb;
|
|
86
|
+
--fw-info: #3f5961;
|
|
87
|
+
--fw-info-bg: #eef3f5;
|
|
88
|
+
--fw-info-border: #cbd9de;
|
|
89
|
+
--fw-overlay: rgb(27 24 24 / .38);
|
|
90
|
+
--fw-shadow-pop: 0 12px 32px rgb(27 24 24 / .12);
|
|
91
|
+
--fw-border-hover: #bdb6b6;
|
|
92
|
+
--fw-mark: rgb(75 102 112 / .2);
|
|
93
|
+
}
|
|
94
|
+
@media (prefers-color-scheme: light) {
|
|
95
|
+
.fw[data-theme="system"] {
|
|
96
|
+
color-scheme: light;
|
|
97
|
+
--fw-bg: #f6f5f5;
|
|
98
|
+
--fw-surface: #ffffff;
|
|
99
|
+
--fw-surface-2: #f1efef;
|
|
100
|
+
--fw-input: #ffffff;
|
|
101
|
+
--fw-border: #e4e0e0;
|
|
102
|
+
--fw-border-strong: #d3cdcd;
|
|
103
|
+
--fw-heading: #1b1818;
|
|
104
|
+
--fw-text: #3a3535;
|
|
105
|
+
--fw-muted: #625c5c;
|
|
106
|
+
--fw-accent: #4b6670;
|
|
107
|
+
--fw-accent-hover: #3f5961;
|
|
108
|
+
--fw-on-accent: #ffffff;
|
|
109
|
+
--fw-link: #3f5961;
|
|
110
|
+
--fw-focus: #4b6670;
|
|
111
|
+
--fw-danger: #a33b3b;
|
|
112
|
+
--fw-on-danger: #ffffff;
|
|
113
|
+
--fw-error: #a33b3b;
|
|
114
|
+
--fw-error-bg: #fbf0f0;
|
|
115
|
+
--fw-error-border: #efcaca;
|
|
116
|
+
--fw-success: #3c6a4b;
|
|
117
|
+
--fw-success-bg: #eef5f0;
|
|
118
|
+
--fw-success-border: #c9dfd0;
|
|
119
|
+
--fw-warning: #7a5626;
|
|
120
|
+
--fw-warning-bg: #faf4ea;
|
|
121
|
+
--fw-warning-border: #ead8bb;
|
|
122
|
+
--fw-info: #3f5961;
|
|
123
|
+
--fw-info-bg: #eef3f5;
|
|
124
|
+
--fw-info-border: #cbd9de;
|
|
125
|
+
--fw-overlay: rgb(27 24 24 / .38);
|
|
126
|
+
--fw-shadow-pop: 0 12px 32px rgb(27 24 24 / .12);
|
|
127
|
+
--fw-border-hover: #bdb6b6;
|
|
128
|
+
--fw-mark: rgb(75 102 112 / .2);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* flatwork-saas component library.
|
|
133
|
+
Needs the theme's tokens first (tokens.css, generated from ../tokens.json);
|
|
134
|
+
the bundled flatwork-saas.css in the theme package already includes them. */
|
|
135
|
+
/* Base: the .fw root, resets, inline elements and type scale.
|
|
136
|
+
Everything in the library only renders correctly inside an element with class="fw". */
|
|
137
|
+
.fw{background:var(--fw-bg); color:var(--fw-text); font:400 14px/1.5 var(--fw-font); -webkit-font-smoothing:antialiased}
|
|
138
|
+
.fw *, .fw *::before, .fw *::after{box-sizing:border-box}
|
|
139
|
+
.fw a{color:var(--fw-link); text-decoration:none}
|
|
140
|
+
.fw a:hover{text-decoration:underline}
|
|
141
|
+
.fw :focus-visible{outline:2px solid var(--fw-focus); outline-offset:2px}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
.fw-t-display{font-size:28px; line-height:1.2; font-weight:600; letter-spacing:-.02em; color:var(--fw-heading); margin:0}
|
|
145
|
+
.fw-t-title{font-size:22px; line-height:1.25; font-weight:600; letter-spacing:-.02em; color:var(--fw-heading); margin:0}
|
|
146
|
+
.fw-t-heading{font-size:16px; line-height:1.35; font-weight:600; letter-spacing:-.01em; color:var(--fw-heading); margin:0}
|
|
147
|
+
.fw-t-body{font-size:14px; line-height:1.5; margin:0}
|
|
148
|
+
.fw-t-label{font-size:13px; line-height:1.4; font-weight:500; color:var(--fw-heading); margin:0}
|
|
149
|
+
.fw-t-caption{font-size:12px; line-height:1.4; color:var(--fw-muted); margin:0}
|
|
150
|
+
.fw-t-mono{font-family:var(--fw-mono); font-size:13px}
|
|
151
|
+
.fw-t-muted{color:var(--fw-muted)}
|
|
152
|
+
.fw mark{background:var(--fw-mark); color:var(--fw-heading); padding:0 2px; border-radius:2px}
|
|
153
|
+
|
|
154
|
+
.fw-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 16px;
|
|
155
|
+
border:1px solid transparent; border-radius:var(--fw-r-sm); font:inherit; font-size:14px; font-weight:500;
|
|
156
|
+
white-space:nowrap; cursor:pointer; text-decoration:none !important; transition:background-color .12s ease-out, border-color .12s ease-out, color .12s ease-out}
|
|
157
|
+
.fw-btn svg{width:16px; height:16px; flex:none}
|
|
158
|
+
.fw-btn-primary{background:var(--fw-accent); border-color:var(--fw-accent); color:var(--fw-on-accent); font-weight:600}
|
|
159
|
+
.fw-btn-primary:hover, .fw-btn-primary.is-hover{background:var(--fw-accent-hover); border-color:var(--fw-accent-hover)}
|
|
160
|
+
.fw-btn-secondary{background:var(--fw-input); border-color:var(--fw-border-strong); color:var(--fw-heading)}
|
|
161
|
+
.fw-btn-secondary:hover, .fw-btn-secondary.is-hover{background:var(--fw-surface-2)}
|
|
162
|
+
.fw-btn-ghost{background:transparent; color:var(--fw-text)}
|
|
163
|
+
.fw-btn-ghost:hover, .fw-btn-ghost.is-hover{background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
164
|
+
.fw-btn-danger{background:var(--fw-danger); border-color:var(--fw-danger); color:var(--fw-on-danger); font-weight:600}
|
|
165
|
+
.fw-btn-danger:hover, .fw-btn-danger.is-hover{filter:brightness(1.08)}
|
|
166
|
+
.fw-btn-link{background:transparent; height:auto; padding:0; color:var(--fw-link)}
|
|
167
|
+
.fw-btn-link:hover, .fw-btn-link.is-hover{text-decoration:underline !important}
|
|
168
|
+
.fw-btn.is-focus{outline:2px solid var(--fw-focus); outline-offset:2px}
|
|
169
|
+
.fw-btn:disabled, .fw-btn.is-disabled{opacity:.45; cursor:not-allowed}
|
|
170
|
+
.fw-btn-sm{height:32px; padding:0 12px; font-size:13px}
|
|
171
|
+
.fw-btn-lg{height:44px; padding:0 20px}
|
|
172
|
+
.fw-btn-icon{width:40px; padding:0}
|
|
173
|
+
.fw-btn-icon.fw-btn-sm{width:32px}
|
|
174
|
+
.fw-btn-icon.fw-btn-lg{width:44px}
|
|
175
|
+
.fw-btn-block{width:100%}
|
|
176
|
+
.fw-btn-group{display:inline-flex}
|
|
177
|
+
.fw-btn-group .fw-btn{border-radius:0}
|
|
178
|
+
.fw-btn-group .fw-btn + .fw-btn{margin-left:-1px}
|
|
179
|
+
.fw-btn-group .fw-btn:first-child{border-radius:var(--fw-r-sm) 0 0 var(--fw-r-sm)}
|
|
180
|
+
.fw-btn-group .fw-btn:last-child{border-radius:0 var(--fw-r-sm) var(--fw-r-sm) 0}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
.fw-spinner{display:inline-block; width:16px; height:16px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; opacity:.85; animation:fw-spin .7s linear infinite}
|
|
184
|
+
.fw-spinner-lg{width:24px; height:24px}
|
|
185
|
+
@keyframes fw-spin{to{transform:rotate(360deg)}}
|
|
186
|
+
|
|
187
|
+
.fw-field{display:flex; flex-direction:column; gap:6px; min-width:0}
|
|
188
|
+
.fw-label{font-size:13px; font-weight:500; color:var(--fw-heading)}
|
|
189
|
+
.fw-label .fw-opt{font-weight:400; color:var(--fw-muted)}
|
|
190
|
+
.fw-help{font-size:12px; color:var(--fw-muted)}
|
|
191
|
+
.fw-field-error{font-size:12px; color:var(--fw-error)}
|
|
192
|
+
.fw-input, .fw-textarea, .fw-select{width:100%; height:40px; padding:0 12px; border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-sm);
|
|
193
|
+
background:var(--fw-input); color:var(--fw-heading); font:inherit; font-size:14px; transition:border-color .12s ease-out}
|
|
194
|
+
.fw-input::placeholder, .fw-textarea::placeholder{color:var(--fw-muted); opacity:1}
|
|
195
|
+
.fw-input:hover, .fw-input.is-hover{border-color:var(--fw-border-hover)}
|
|
196
|
+
.fw-input:focus, .fw-input.is-focus, .fw-textarea.is-focus, .fw-select.is-focus{border-color:var(--fw-focus); outline:2px solid var(--fw-focus); outline-offset:1px}
|
|
197
|
+
.fw-input.is-error, .fw-textarea.is-error{border-color:var(--fw-error)}
|
|
198
|
+
.fw-input:disabled, .fw-textarea:disabled, .fw-select:disabled{opacity:.5; cursor:not-allowed}
|
|
199
|
+
.fw-input[readonly]{background:var(--fw-surface-2); color:var(--fw-text)}
|
|
200
|
+
.fw-input.is-mono{font-family:var(--fw-mono); font-size:13px}
|
|
201
|
+
.fw-input-sm{height:32px; font-size:13px; padding:0 10px}
|
|
202
|
+
.fw-textarea{height:auto; min-height:96px; padding:10px 12px; line-height:1.5; resize:vertical}
|
|
203
|
+
.fw-select-wrap{position:relative; display:block}
|
|
204
|
+
.fw-select{appearance:none; padding-right:36px; cursor:pointer}
|
|
205
|
+
.fw-select-wrap > svg{position:absolute; right:12px; top:50%; width:14px; height:14px; margin-top:-7px; color:var(--fw-muted); pointer-events:none}
|
|
206
|
+
.fw-input-affix{display:flex; align-items:center; height:40px; border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-sm); background:var(--fw-input); overflow:hidden}
|
|
207
|
+
.fw-input-affix > .fw-input{border:0; border-radius:0; height:38px; outline:0}
|
|
208
|
+
.fw-input-affix .fw-affix{display:flex; align-items:center; gap:6px; height:100%; padding:0 12px; color:var(--fw-muted); font-size:13px; white-space:nowrap}
|
|
209
|
+
.fw-input-affix .fw-affix-box{background:var(--fw-surface-2); border-right:1px solid var(--fw-border-strong); font-family:var(--fw-mono); font-size:12px}
|
|
210
|
+
.fw-input-affix .fw-affix-box.fw-end{border-right:0; border-left:1px solid var(--fw-border-strong)}
|
|
211
|
+
.fw-input-affix svg{width:16px; height:16px}
|
|
212
|
+
.fw-input-affix.is-focus{border-color:var(--fw-focus); outline:2px solid var(--fw-focus); outline-offset:1px}
|
|
213
|
+
|
|
214
|
+
.fw-check{display:inline-flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:14px; color:var(--fw-text); min-height:24px; line-height:20px}
|
|
215
|
+
.fw-check small{display:block; font-size:12px; color:var(--fw-muted); line-height:1.4}
|
|
216
|
+
.fw-checkbox, .fw-radio{appearance:none; flex:none; width:16px; height:16px; margin:2px 0 0; border:1px solid var(--fw-border-strong); background:var(--fw-input);
|
|
217
|
+
display:grid; place-content:center; cursor:pointer}
|
|
218
|
+
.fw-checkbox{border-radius:var(--fw-r-xs)}
|
|
219
|
+
.fw-radio{border-radius:50%}
|
|
220
|
+
.fw-checkbox:checked, .fw-checkbox.is-indeterminate{background:var(--fw-accent); border-color:var(--fw-accent)}
|
|
221
|
+
.fw-checkbox:checked::after{content:""; width:4px; height:8px; border:solid var(--fw-on-accent); border-width:0 2px 2px 0; transform:translateY(-1px) rotate(45deg)}
|
|
222
|
+
.fw-checkbox.is-indeterminate::after{content:""; width:8px; height:2px; background:var(--fw-on-accent); border:0; transform:none}
|
|
223
|
+
.fw-radio:checked{border-color:var(--fw-accent); border-width:5px}
|
|
224
|
+
.fw-checkbox:disabled, .fw-radio:disabled, .fw-switch:disabled{opacity:.45; cursor:not-allowed}
|
|
225
|
+
.fw-switch{appearance:none; flex:none; position:relative; width:36px; height:20px; margin:0; border-radius:var(--fw-r-full); background:var(--fw-border-strong); cursor:pointer; transition:background-color .12s ease-out}
|
|
226
|
+
.fw-switch::after{content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--fw-heading); transition:transform .12s ease-out}
|
|
227
|
+
.fw-switch:checked{background:var(--fw-accent)}
|
|
228
|
+
.fw-switch:checked::after{transform:translateX(16px); background:var(--fw-on-accent)}
|
|
229
|
+
.fw-range{appearance:none; width:100%; height:20px; background:transparent; margin:0}
|
|
230
|
+
.fw-range::-webkit-slider-runnable-track{height:4px; border-radius:var(--fw-r-full); background:linear-gradient(var(--fw-accent),var(--fw-accent)) 0/var(--fw-fill,50%) 100% no-repeat, var(--fw-border-strong)}
|
|
231
|
+
.fw-range::-moz-range-track{height:4px; border-radius:var(--fw-r-full); background:var(--fw-border-strong)}
|
|
232
|
+
.fw-range::-moz-range-progress{height:4px; border-radius:var(--fw-r-full); background:var(--fw-accent)}
|
|
233
|
+
.fw-range::-webkit-slider-thumb{appearance:none; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:var(--fw-heading); border:2px solid var(--fw-accent)}
|
|
234
|
+
.fw-range::-moz-range-thumb{width:12px; height:12px; border-radius:50%; background:var(--fw-heading); border:2px solid var(--fw-accent)}
|
|
235
|
+
.fw-dropzone{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:28px; border:1px dashed var(--fw-border-strong); border-radius:var(--fw-r-md); background:var(--fw-input); text-align:center; color:var(--fw-muted); font-size:13px}
|
|
236
|
+
.fw-dropzone svg{width:20px; height:20px; color:var(--fw-text)}
|
|
237
|
+
.fw-dropzone strong{color:var(--fw-heading); font-weight:500}
|
|
238
|
+
.fw-fieldset{margin:0; padding:20px; border:1px solid var(--fw-border); border-radius:var(--fw-r-md); display:flex; flex-direction:column; gap:14px}
|
|
239
|
+
.fw-fieldset legend{padding:0 6px; margin-left:-6px; font-size:13px; font-weight:600; color:var(--fw-heading)}
|
|
240
|
+
|
|
241
|
+
/* The group draws the focus ring, not the input inside it. */
|
|
242
|
+
.fw .fw-input-affix > .fw-input:focus-visible{outline:0}
|
|
243
|
+
.fw-input-affix:focus-within{border-color:var(--fw-focus); outline:2px solid var(--fw-focus); outline-offset:1px}
|
|
244
|
+
|
|
245
|
+
.fw-badge{display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-xs);
|
|
246
|
+
background:var(--fw-surface-2); color:var(--fw-text); font-size:12px; font-weight:500; white-space:nowrap}
|
|
247
|
+
.fw-badge-accent{background:var(--fw-info-bg); border-color:var(--fw-info-border); color:var(--fw-info)}
|
|
248
|
+
.fw-badge-success{background:var(--fw-success-bg); border-color:var(--fw-success-border); color:var(--fw-success)}
|
|
249
|
+
.fw-badge-warning{background:var(--fw-warning-bg); border-color:var(--fw-warning-border); color:var(--fw-warning)}
|
|
250
|
+
.fw-badge-error{background:var(--fw-error-bg); border-color:var(--fw-error-border); color:var(--fw-error)}
|
|
251
|
+
.fw-badge .fw-dot{width:6px; height:6px; border-radius:50%; background:currentColor}
|
|
252
|
+
.fw-badge-count{min-width:20px; height:20px; padding:0 6px; justify-content:center; border-radius:var(--fw-r-full); background:var(--fw-accent); border-color:var(--fw-accent); color:var(--fw-on-accent); font-family:var(--fw-mono); font-size:11px}
|
|
253
|
+
.fw-tag{display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 4px 0 10px; border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-sm); font-size:13px; color:var(--fw-heading); background:var(--fw-input)}
|
|
254
|
+
.fw-tag button{display:grid; place-content:center; width:20px; height:20px; border:0; border-radius:var(--fw-r-xs); background:transparent; color:var(--fw-muted); cursor:pointer; padding:0}
|
|
255
|
+
.fw-tag button svg{width:12px; height:12px}
|
|
256
|
+
|
|
257
|
+
.fw-alert{display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border:1px solid var(--fw-info-border); border-radius:var(--fw-r-sm); background:var(--fw-info-bg); color:var(--fw-info); font-size:13px}
|
|
258
|
+
.fw-alert > svg{width:16px; height:16px; flex:none; margin-top:2px}
|
|
259
|
+
.fw-alert-body{display:flex; flex-direction:column; gap:2px; flex:1; min-width:0}
|
|
260
|
+
.fw-alert-title{font-weight:600}
|
|
261
|
+
.fw-alert-text{color:var(--fw-text)}
|
|
262
|
+
.fw-alert-success{border-color:var(--fw-success-border); background:var(--fw-success-bg); color:var(--fw-success)}
|
|
263
|
+
.fw-alert-warning{border-color:var(--fw-warning-border); background:var(--fw-warning-bg); color:var(--fw-warning)}
|
|
264
|
+
.fw-alert-error{border-color:var(--fw-error-border); background:var(--fw-error-bg); color:var(--fw-error)}
|
|
265
|
+
.fw-alert-neutral{border-color:var(--fw-border); background:var(--fw-surface); color:var(--fw-heading)}
|
|
266
|
+
.fw-toast{display:flex; gap:12px; align-items:flex-start; width:360px; padding:14px 16px; background:var(--fw-surface); border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-md); box-shadow:var(--fw-shadow-pop); font-size:13px}
|
|
267
|
+
.fw-toast > svg{width:16px; height:16px; flex:none; margin-top:2px}
|
|
268
|
+
.fw-toast .fw-alert-body{color:var(--fw-text)}
|
|
269
|
+
.fw-toast .fw-alert-title{color:var(--fw-heading)}
|
|
270
|
+
.fw-toast-actions{display:flex; gap:12px; margin-top:6px}
|
|
271
|
+
|
|
272
|
+
/* Toast stack: bottom-right, 8px gap (rendered by <ToastProvider>). */
|
|
273
|
+
.fw-toaster{position:fixed; right:16px; bottom:16px; z-index:60; display:flex; flex-direction:column; gap:8px; max-width:calc(100vw - 32px)}
|
|
274
|
+
.fw-toaster .fw-toast{max-width:100%}
|
|
275
|
+
|
|
276
|
+
.fw-progress{width:100%; height:6px; border-radius:var(--fw-r-full); background:var(--fw-surface-2); overflow:hidden; border:1px solid var(--fw-border)}
|
|
277
|
+
.fw-progress > span{display:block; height:100%; background:var(--fw-accent); border-radius:var(--fw-r-full)}
|
|
278
|
+
.fw-progress.is-success > span{background:var(--fw-success)}
|
|
279
|
+
.fw-progress.is-warning > span{background:var(--fw-warning)}
|
|
280
|
+
.fw-progress.is-error > span{background:var(--fw-error)}
|
|
281
|
+
.fw-progress-indeterminate > span{width:35%; animation:fw-indet 1.2s ease-in-out infinite}
|
|
282
|
+
@keyframes fw-indet{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
|
|
283
|
+
.fw-skeleton{background:var(--fw-surface-2); border-radius:var(--fw-r-xs); animation:fw-pulse 1.6s ease-in-out infinite}
|
|
284
|
+
@keyframes fw-pulse{50%{opacity:.55}}
|
|
285
|
+
|
|
286
|
+
.fw-tooltip{position:relative; display:inline-block; padding:6px 8px; border-radius:var(--fw-r-sm); background:var(--fw-heading); color:var(--fw-bg); font-size:12px; font-weight:500; line-height:1.3; white-space:nowrap}
|
|
287
|
+
.fw-tooltip::after{content:""; position:absolute; left:50%; bottom:-4px; width:8px; height:8px; margin-left:-4px; background:var(--fw-heading); transform:rotate(45deg)}
|
|
288
|
+
.fw-tooltip kbd{font-family:var(--fw-mono); font-size:11px; opacity:.7; margin-left:6px}
|
|
289
|
+
.fw-popover{width:300px; padding:16px; background:var(--fw-surface); border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-md); box-shadow:var(--fw-shadow-pop); display:flex; flex-direction:column; gap:12px}
|
|
290
|
+
|
|
291
|
+
/* Anchoring: a trigger plus its floating layer. Tooltips sit 8px above, popovers and menus 8px below. */
|
|
292
|
+
.fw-anchor{position:relative; display:inline-flex}
|
|
293
|
+
.fw-anchor > .fw-tooltip{position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); z-index:70; pointer-events:none}
|
|
294
|
+
.fw-anchor > .fw-popover, .fw-anchor > .fw-menu{position:absolute; top:calc(100% + 8px); left:0; z-index:50}
|
|
295
|
+
.fw-anchor > .is-end{left:auto; right:0}
|
|
296
|
+
|
|
297
|
+
.fw-tabs{display:flex; gap:24px; border-bottom:1px solid var(--fw-border)}
|
|
298
|
+
.fw-tab{position:relative; display:inline-flex; align-items:center; gap:8px; height:40px; padding:0; border:0; background:transparent; color:var(--fw-muted); font:inherit; font-size:14px; font-weight:500; cursor:pointer}
|
|
299
|
+
.fw-tab:hover{color:var(--fw-heading)}
|
|
300
|
+
.fw-tab.is-active{color:var(--fw-heading)}
|
|
301
|
+
.fw-tab.is-active::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--fw-accent)}
|
|
302
|
+
.fw-tab .fw-badge{height:18px; padding:0 6px; font-size:11px}
|
|
303
|
+
.fw-segmented{display:inline-flex; gap:2px; padding:3px; border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-sm); background:var(--fw-input)}
|
|
304
|
+
.fw-seg{height:30px; padding:0 12px; border:0; border-radius:var(--fw-r-xs); background:transparent; color:var(--fw-muted); font:inherit; font-size:13px; font-weight:500; cursor:pointer; display:inline-flex; align-items:center; gap:6px}
|
|
305
|
+
.fw-seg svg{width:14px; height:14px}
|
|
306
|
+
.fw-seg.is-active{background:var(--fw-surface-2); color:var(--fw-heading); box-shadow:inset 0 0 0 1px var(--fw-border-strong)}
|
|
307
|
+
|
|
308
|
+
.fw-breadcrumb{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0; list-style:none; font-size:13px}
|
|
309
|
+
.fw-breadcrumb a{color:var(--fw-muted)}
|
|
310
|
+
.fw-breadcrumb a:hover{color:var(--fw-heading)}
|
|
311
|
+
.fw-breadcrumb .fw-sep{color:var(--fw-border-strong); width:14px; height:14px}
|
|
312
|
+
.fw-breadcrumb [aria-current]{color:var(--fw-heading); font-weight:500}
|
|
313
|
+
.fw-pagination{display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0}
|
|
314
|
+
.fw-page{display:grid; place-content:center; min-width:32px; height:32px; padding:0 8px; border:1px solid transparent; border-radius:var(--fw-r-sm); background:transparent; color:var(--fw-text); font-family:var(--fw-mono); font-size:13px; cursor:pointer; text-decoration:none !important}
|
|
315
|
+
.fw-page:hover{background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
316
|
+
.fw-page.is-active{border-color:var(--fw-border-strong); background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
317
|
+
.fw-page svg{width:16px; height:16px}
|
|
318
|
+
.fw-page:disabled{opacity:.4; cursor:not-allowed}
|
|
319
|
+
.fw-stepper{display:flex; align-items:center; gap:12px; list-style:none; margin:0; padding:0}
|
|
320
|
+
.fw-step{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--fw-muted); white-space:nowrap}
|
|
321
|
+
.fw-step-n{display:grid; place-content:center; width:24px; height:24px; border:1px solid var(--fw-border-strong); border-radius:50%; font-family:var(--fw-mono); font-size:12px}
|
|
322
|
+
.fw-step.is-done .fw-step-n{background:var(--fw-accent); border-color:var(--fw-accent); color:var(--fw-on-accent)}
|
|
323
|
+
.fw-step.is-done .fw-step-n svg{width:12px; height:12px}
|
|
324
|
+
.fw-step.is-active{color:var(--fw-heading); font-weight:500}
|
|
325
|
+
.fw-step.is-active .fw-step-n{border-color:var(--fw-accent); color:var(--fw-heading)}
|
|
326
|
+
.fw-step-line{flex:1; min-width:32px; height:1px; background:var(--fw-border-strong)}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
.fw-topnav{display:flex; align-items:center; gap:24px; height:56px; padding:0 20px; background:var(--fw-surface); border:1px solid var(--fw-border); border-radius:var(--fw-r-md)}
|
|
330
|
+
.fw-topnav .fw-brand{display:flex; align-items:center; gap:10px; font-weight:600; color:var(--fw-heading)}
|
|
331
|
+
.fw-logo-mark{width:24px; height:24px; border-radius:var(--fw-r-sm); background:var(--fw-accent); display:grid; place-content:center; color:var(--fw-on-accent)}
|
|
332
|
+
.fw-logo-mark svg{width:14px; height:14px}
|
|
333
|
+
.fw-topnav nav{display:flex; gap:4px}
|
|
334
|
+
.fw-topnav nav a{height:32px; display:inline-flex; align-items:center; padding:0 10px; border-radius:var(--fw-r-sm); color:var(--fw-muted); font-size:13px; font-weight:500; text-decoration:none}
|
|
335
|
+
.fw-topnav nav a:hover{color:var(--fw-heading); background:var(--fw-surface-2)}
|
|
336
|
+
.fw-topnav nav a[aria-current]{color:var(--fw-heading); background:var(--fw-surface-2)}
|
|
337
|
+
.fw-topnav .fw-end{margin-left:auto; display:flex; align-items:center; gap:8px}
|
|
338
|
+
.fw-sidenav{width:248px; padding:12px; background:var(--fw-surface); border:1px solid var(--fw-border); border-radius:var(--fw-r-md); display:flex; flex-direction:column; gap:2px}
|
|
339
|
+
.fw-sidenav .fw-group-label{padding:14px 10px 6px; font-size:12px; font-weight:500; color:var(--fw-muted)}
|
|
340
|
+
.fw-nav-item{display:flex; align-items:center; gap:10px; height:36px; padding:0 10px; border-radius:var(--fw-r-sm); color:var(--fw-text); font-size:13px; font-weight:500; text-decoration:none !important}
|
|
341
|
+
.fw-nav-item svg{width:16px; height:16px; color:var(--fw-muted); flex:none}
|
|
342
|
+
.fw-nav-item:hover{background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
343
|
+
.fw-nav-item[aria-current]{background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
344
|
+
.fw-nav-item[aria-current] svg{color:var(--fw-accent)}
|
|
345
|
+
.fw-nav-item .fw-badge{margin-left:auto; height:18px; padding:0 6px; font-size:11px}
|
|
346
|
+
|
|
347
|
+
.fw-menu{width:240px; padding:4px; background:var(--fw-surface); border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-md); box-shadow:var(--fw-shadow-pop); display:flex; flex-direction:column; list-style:none; margin:0}
|
|
348
|
+
.fw-menu-label{padding:8px 8px 4px; font-size:12px; font-weight:500; color:var(--fw-muted)}
|
|
349
|
+
.fw-menu-item{display:flex; align-items:center; gap:10px; height:34px; padding:0 8px; border:0; border-radius:var(--fw-r-xs); background:transparent; color:var(--fw-text); font:inherit; font-size:13px; text-align:left; cursor:pointer; width:100%}
|
|
350
|
+
.fw-menu-item svg{width:15px; height:15px; color:var(--fw-muted); flex:none}
|
|
351
|
+
.fw-menu-item:hover, .fw-menu-item.is-hover{background:var(--fw-surface-2); color:var(--fw-heading)}
|
|
352
|
+
.fw-menu-item.is-selected{color:var(--fw-heading)}
|
|
353
|
+
.fw-menu-item .fw-end{margin-left:auto; font-family:var(--fw-mono); font-size:11px; color:var(--fw-muted)}
|
|
354
|
+
.fw-menu-item.is-danger{color:var(--fw-error)}
|
|
355
|
+
.fw-menu-item.is-danger svg{color:var(--fw-error)}
|
|
356
|
+
.fw-menu-sep{height:1px; margin:4px -4px; background:var(--fw-border)}
|
|
357
|
+
|
|
358
|
+
.fw-avatar{display:inline-grid; place-content:center; width:32px; height:32px; border-radius:50%; background:var(--fw-surface-2); border:1px solid var(--fw-border-strong); color:var(--fw-heading); font-size:12px; font-weight:600; flex:none}
|
|
359
|
+
.fw-avatar-sm{width:24px; height:24px; font-size:10px}
|
|
360
|
+
.fw-avatar-lg{width:40px; height:40px; font-size:14px}
|
|
361
|
+
.fw-avatar-sq{border-radius:var(--fw-r-sm)}
|
|
362
|
+
.fw-avatar-group{display:flex}
|
|
363
|
+
.fw-avatar-group .fw-avatar{border:2px solid var(--fw-surface); margin-left:-8px}
|
|
364
|
+
.fw-avatar-group .fw-avatar:first-child{margin-left:0}
|
|
365
|
+
.fw-presence{position:relative}
|
|
366
|
+
.fw-presence::after{content:""; position:absolute; right:-1px; bottom:-1px; width:10px; height:10px; border-radius:50%; background:var(--fw-success); border:2px solid var(--fw-surface)}
|
|
367
|
+
|
|
368
|
+
.fw-card{background:var(--fw-surface); border:1px solid var(--fw-border); border-radius:var(--fw-r-md); display:flex; flex-direction:column; min-width:0}
|
|
369
|
+
.fw-card-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px 0}
|
|
370
|
+
.fw-card-title{margin:0; font-size:15px; font-weight:600; color:var(--fw-heading)}
|
|
371
|
+
.fw-card-sub{margin:2px 0 0; font-size:13px; color:var(--fw-muted)}
|
|
372
|
+
.fw-card-body{padding:16px 20px; display:flex; flex-direction:column; gap:12px}
|
|
373
|
+
.fw-card-foot{display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid var(--fw-border)}
|
|
374
|
+
.fw-stat-value{font-family:var(--fw-mono); font-size:24px; color:var(--fw-heading); letter-spacing:-.01em}
|
|
375
|
+
|
|
376
|
+
.fw-table-wrap{border:1px solid var(--fw-border); border-radius:var(--fw-r-md); overflow:auto; background:var(--fw-surface)}
|
|
377
|
+
.fw-table{width:100%; border-collapse:collapse; font-size:13px}
|
|
378
|
+
.fw-table caption{caption-side:top; text-align:left; padding:14px 16px; font-weight:600; color:var(--fw-heading); font-size:14px; border-bottom:1px solid var(--fw-border)}
|
|
379
|
+
.fw-table th{height:40px; padding:0 16px; text-align:left; font-size:12px; font-weight:500; color:var(--fw-muted); border-bottom:1px solid var(--fw-border); background:var(--fw-surface); white-space:nowrap}
|
|
380
|
+
.fw-table th.fw-sortable{cursor:pointer}
|
|
381
|
+
.fw-table th.fw-sortable svg{width:12px; height:12px; vertical-align:-2px; margin-left:4px}
|
|
382
|
+
.fw-table td{height:48px; padding:0 16px; border-bottom:1px solid var(--fw-border); color:var(--fw-text); white-space:nowrap}
|
|
383
|
+
.fw-table tbody tr:last-child td{border-bottom:0}
|
|
384
|
+
.fw-table tbody tr:hover td{background:var(--fw-surface-2)}
|
|
385
|
+
.fw-table tr.is-selected td{background:var(--fw-info-bg)}
|
|
386
|
+
.fw-table .fw-num{text-align:right; font-family:var(--fw-mono)}
|
|
387
|
+
.fw-table .fw-mono{font-family:var(--fw-mono); font-size:12px}
|
|
388
|
+
.fw-table .fw-cell-user{display:flex; align-items:center; gap:10px; color:var(--fw-heading)}
|
|
389
|
+
.fw-table-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-top:1px solid var(--fw-border); font-size:12px; color:var(--fw-muted)}
|
|
390
|
+
|
|
391
|
+
.fw-list{list-style:none; margin:0; padding:0; border:1px solid var(--fw-border); border-radius:var(--fw-r-md); background:var(--fw-surface)}
|
|
392
|
+
.fw-list li{display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--fw-border)}
|
|
393
|
+
.fw-list li:last-child{border-bottom:0}
|
|
394
|
+
.fw-list .fw-grow{flex:1; min-width:0; display:flex; flex-direction:column}
|
|
395
|
+
.fw-list .fw-title{color:var(--fw-heading); font-weight:500; font-size:14px}
|
|
396
|
+
.fw-list .fw-meta{color:var(--fw-muted); font-size:12px}
|
|
397
|
+
.fw ul.fw-prose, .fw ol.fw-prose{margin:0; padding-left:20px; display:flex; flex-direction:column; gap:4px}
|
|
398
|
+
.fw ul.fw-prose li::marker{color:var(--fw-muted)}
|
|
399
|
+
.fw ol.fw-prose li::marker{color:var(--fw-muted); font-family:var(--fw-mono); font-size:12px}
|
|
400
|
+
.fw-dl{display:grid; grid-template-columns:160px minmax(0,1fr); margin:0; border:1px solid var(--fw-border); border-radius:var(--fw-r-md); background:var(--fw-surface)}
|
|
401
|
+
.fw-dl dt, .fw-dl dd{margin:0; padding:12px 16px; border-bottom:1px solid var(--fw-border); font-size:13px}
|
|
402
|
+
.fw-dl dt{color:var(--fw-muted)}
|
|
403
|
+
.fw-dl dd{color:var(--fw-heading)}
|
|
404
|
+
.fw-dl dt:nth-last-of-type(1), .fw-dl dd:last-of-type{border-bottom:0}
|
|
405
|
+
.fw-dl dd.fw-mono{font-family:var(--fw-mono); font-size:12px}
|
|
406
|
+
.fw code{font-family:var(--fw-mono); font-size:12.5px; padding:1px 5px; border-radius:var(--fw-r-xs); background:var(--fw-surface-2); border:1px solid var(--fw-border); color:var(--fw-heading)}
|
|
407
|
+
.fw-code-block{margin:0; padding:16px; border:1px solid var(--fw-border); border-radius:var(--fw-r-md); background:var(--fw-input); font-family:var(--fw-mono); font-size:12.5px; line-height:1.7; color:var(--fw-text); overflow:auto}
|
|
408
|
+
.fw-code-block .fw-k{color:var(--fw-accent)} .fw-code-block .fw-s{color:var(--fw-success)} .fw-code-block .fw-c{color:var(--fw-muted)}
|
|
409
|
+
.fw kbd{display:inline-grid; place-content:center; min-width:22px; height:22px; padding:0 6px; border:1px solid var(--fw-border-strong); border-bottom-width:2px; border-radius:var(--fw-r-xs); background:var(--fw-surface-2); color:var(--fw-heading); font-family:var(--fw-mono); font-size:11px}
|
|
410
|
+
.fw blockquote{margin:0; padding:2px 0 2px 16px; border-left:2px solid var(--fw-border-strong); color:var(--fw-text)}
|
|
411
|
+
.fw blockquote cite{display:block; margin-top:6px; font-style:normal; font-size:12px; color:var(--fw-muted)}
|
|
412
|
+
.fw hr{border:0; height:1px; background:var(--fw-border); margin:0}
|
|
413
|
+
.fw-accordion{border:1px solid var(--fw-border); border-radius:var(--fw-r-md); background:var(--fw-surface)}
|
|
414
|
+
.fw-accordion details{border-bottom:1px solid var(--fw-border)}
|
|
415
|
+
.fw-accordion details:last-child{border-bottom:0}
|
|
416
|
+
.fw-accordion summary{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; cursor:pointer; list-style:none; color:var(--fw-heading); font-weight:500}
|
|
417
|
+
.fw-accordion summary::-webkit-details-marker{display:none}
|
|
418
|
+
.fw-accordion summary svg{width:16px; height:16px; color:var(--fw-muted); transition:transform .22s ease-out}
|
|
419
|
+
.fw-accordion details[open] summary svg{transform:rotate(180deg)}
|
|
420
|
+
.fw-accordion .fw-acc-body{padding:0 16px 16px; color:var(--fw-text); font-size:13px}
|
|
421
|
+
.fw-empty{display:flex; flex-direction:column; align-items:center; gap:8px; padding:40px 24px; border:1px dashed var(--fw-border-strong); border-radius:var(--fw-r-md); text-align:center}
|
|
422
|
+
.fw-empty-icon{display:grid; place-content:center; width:40px; height:40px; border-radius:var(--fw-r-sm); background:var(--fw-surface-2); color:var(--fw-text); margin-bottom:4px}
|
|
423
|
+
.fw-empty-icon svg{width:20px; height:20px}
|
|
424
|
+
|
|
425
|
+
.fw-backdrop{position:absolute; inset:0; background:var(--fw-overlay); display:flex; align-items:center; justify-content:center; padding:24px}
|
|
426
|
+
.fw-dialog{width:440px; max-width:100%; background:var(--fw-surface); border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-lg); box-shadow:var(--fw-shadow-pop); display:flex; flex-direction:column}
|
|
427
|
+
.fw-dialog-head{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 24px 0}
|
|
428
|
+
.fw-dialog-title{margin:0; font-size:17px; font-weight:600; letter-spacing:-.01em; color:var(--fw-heading)}
|
|
429
|
+
.fw-dialog-body{padding:12px 24px 20px; color:var(--fw-text); display:flex; flex-direction:column; gap:14px}
|
|
430
|
+
.fw-dialog-foot{display:flex; justify-content:flex-end; gap:8px; padding:14px 24px; border-top:1px solid var(--fw-border)}
|
|
431
|
+
.fw-drawer{position:absolute; top:0; right:0; bottom:0; width:380px; max-width:100%; background:var(--fw-surface); border-left:1px solid var(--fw-border-strong); box-shadow:var(--fw-shadow-pop); display:flex; flex-direction:column}
|
|
432
|
+
.fw-drawer .fw-dialog-body{flex:1}
|
|
433
|
+
.fw-command{width:560px; max-width:100%; background:var(--fw-surface); border:1px solid var(--fw-border-strong); border-radius:var(--fw-r-lg); box-shadow:var(--fw-shadow-pop); overflow:hidden}
|
|
434
|
+
.fw-command-input{display:flex; align-items:center; gap:10px; height:52px; padding:0 16px; border-bottom:1px solid var(--fw-border); color:var(--fw-muted)}
|
|
435
|
+
.fw-command-input svg{width:16px; height:16px}
|
|
436
|
+
.fw-command-input input{flex:1; height:100%; border:0; background:transparent; color:var(--fw-heading); font:inherit; font-size:15px; outline:0}
|
|
437
|
+
.fw-command .fw-menu{width:100%; border:0; box-shadow:none; border-radius:0; padding:6px}
|
|
438
|
+
.fw-command-foot{display:flex; gap:16px; padding:10px 16px; border-top:1px solid var(--fw-border); font-size:12px; color:var(--fw-muted)}
|
|
439
|
+
.fw-command-foot span{display:inline-flex; align-items:center; gap:6px}
|
|
440
|
+
|
|
441
|
+
/* Native <dialog> versions of the overlays above. showModal() gives the focus trap,
|
|
442
|
+
Esc to close and focus return; the backdrop replaces .fw-backdrop. */
|
|
443
|
+
dialog.fw-dialog, dialog.fw-drawer, dialog.fw-command{padding:0; color:var(--fw-text); max-height:calc(100% - 48px); overflow:auto}
|
|
444
|
+
dialog.fw-dialog:not([open]), dialog.fw-drawer:not([open]), dialog.fw-command:not([open]){display:none}
|
|
445
|
+
dialog.fw-dialog::backdrop, dialog.fw-drawer::backdrop, dialog.fw-command::backdrop{background:var(--fw-overlay)}
|
|
446
|
+
dialog.fw-drawer{position:fixed; inset:0 0 0 auto; height:100%; max-height:100%; margin:0; border-top:0; border-right:0; border-bottom:0}
|
|
447
|
+
dialog.fw-command{margin:15vh auto auto}
|
|
448
|
+
@media (prefers-reduced-motion:no-preference){
|
|
449
|
+
dialog.fw-dialog[open], dialog.fw-command[open]{animation:fw-fade var(--fw-motion-normal) var(--fw-easing)}
|
|
450
|
+
dialog.fw-drawer[open]{animation:fw-slide var(--fw-motion-normal) var(--fw-easing)}
|
|
451
|
+
}
|
|
452
|
+
@keyframes fw-fade{from{opacity:0; transform:translateY(4px)}}
|
|
453
|
+
@keyframes fw-slide{from{transform:translateX(16px); opacity:0}}
|
|
454
|
+
.fw .fw-command-input input:focus-visible{outline:0}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* Generated from flatwork-saas/tokens.json — do not edit. */
|
|
2
|
+
.fw {
|
|
3
|
+
--fw-font: 'Geist', ui-sans-serif, system-ui, sans-serif;
|
|
4
|
+
--fw-mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
5
|
+
--fw-r-xs: 4px;
|
|
6
|
+
--fw-r-sm: 6px;
|
|
7
|
+
--fw-r-md: 9px;
|
|
8
|
+
--fw-r-lg: 12px;
|
|
9
|
+
--fw-r-full: 999px;
|
|
10
|
+
--fw-space-1: 4px;
|
|
11
|
+
--fw-space-2: 8px;
|
|
12
|
+
--fw-space-3: 12px;
|
|
13
|
+
--fw-space-4: 16px;
|
|
14
|
+
--fw-space-5: 20px;
|
|
15
|
+
--fw-space-6: 24px;
|
|
16
|
+
--fw-space-8: 32px;
|
|
17
|
+
--fw-space-12: 48px;
|
|
18
|
+
--fw-motion-fast: 120ms;
|
|
19
|
+
--fw-motion-normal: 220ms;
|
|
20
|
+
--fw-easing: ease-out;
|
|
21
|
+
color-scheme: dark;
|
|
22
|
+
--fw-bg: #1b1818;
|
|
23
|
+
--fw-surface: #221e1e;
|
|
24
|
+
--fw-surface-2: #2a2525;
|
|
25
|
+
--fw-input: #1b1818;
|
|
26
|
+
--fw-border: #3a3434;
|
|
27
|
+
--fw-border-strong: #4a4444;
|
|
28
|
+
--fw-heading: #ece9e9;
|
|
29
|
+
--fw-text: #c4c1c1;
|
|
30
|
+
--fw-muted: #9a9595;
|
|
31
|
+
--fw-accent: #8aa1a8;
|
|
32
|
+
--fw-accent-hover: #9bb2b9;
|
|
33
|
+
--fw-on-accent: #141212;
|
|
34
|
+
--fw-link: #a5bbc2;
|
|
35
|
+
--fw-focus: #a5bbc2;
|
|
36
|
+
--fw-danger: #c97070;
|
|
37
|
+
--fw-on-danger: #141212;
|
|
38
|
+
--fw-error: #d88a8a;
|
|
39
|
+
--fw-error-bg: #2a1e1e;
|
|
40
|
+
--fw-error-border: #5c3434;
|
|
41
|
+
--fw-success: #9dbca8;
|
|
42
|
+
--fw-success-bg: #1d2520;
|
|
43
|
+
--fw-success-border: #384c3f;
|
|
44
|
+
--fw-warning: #cdae88;
|
|
45
|
+
--fw-warning-bg: #28221b;
|
|
46
|
+
--fw-warning-border: #54452f;
|
|
47
|
+
--fw-info: #a5bbc2;
|
|
48
|
+
--fw-info-bg: #1d2326;
|
|
49
|
+
--fw-info-border: #3b494e;
|
|
50
|
+
--fw-overlay: rgb(10 8 8 / .62);
|
|
51
|
+
--fw-shadow-pop: 0 12px 32px rgb(0 0 0 / .35);
|
|
52
|
+
--fw-border-hover: #5a5353;
|
|
53
|
+
--fw-mark: rgb(138 161 168 / .28);
|
|
54
|
+
}
|
|
55
|
+
.fw[data-theme="light"] {
|
|
56
|
+
color-scheme: light;
|
|
57
|
+
--fw-bg: #f6f5f5;
|
|
58
|
+
--fw-surface: #ffffff;
|
|
59
|
+
--fw-surface-2: #f1efef;
|
|
60
|
+
--fw-input: #ffffff;
|
|
61
|
+
--fw-border: #e4e0e0;
|
|
62
|
+
--fw-border-strong: #d3cdcd;
|
|
63
|
+
--fw-heading: #1b1818;
|
|
64
|
+
--fw-text: #3a3535;
|
|
65
|
+
--fw-muted: #625c5c;
|
|
66
|
+
--fw-accent: #4b6670;
|
|
67
|
+
--fw-accent-hover: #3f5961;
|
|
68
|
+
--fw-on-accent: #ffffff;
|
|
69
|
+
--fw-link: #3f5961;
|
|
70
|
+
--fw-focus: #4b6670;
|
|
71
|
+
--fw-danger: #a33b3b;
|
|
72
|
+
--fw-on-danger: #ffffff;
|
|
73
|
+
--fw-error: #a33b3b;
|
|
74
|
+
--fw-error-bg: #fbf0f0;
|
|
75
|
+
--fw-error-border: #efcaca;
|
|
76
|
+
--fw-success: #3c6a4b;
|
|
77
|
+
--fw-success-bg: #eef5f0;
|
|
78
|
+
--fw-success-border: #c9dfd0;
|
|
79
|
+
--fw-warning: #7a5626;
|
|
80
|
+
--fw-warning-bg: #faf4ea;
|
|
81
|
+
--fw-warning-border: #ead8bb;
|
|
82
|
+
--fw-info: #3f5961;
|
|
83
|
+
--fw-info-bg: #eef3f5;
|
|
84
|
+
--fw-info-border: #cbd9de;
|
|
85
|
+
--fw-overlay: rgb(27 24 24 / .38);
|
|
86
|
+
--fw-shadow-pop: 0 12px 32px rgb(27 24 24 / .12);
|
|
87
|
+
--fw-border-hover: #bdb6b6;
|
|
88
|
+
--fw-mark: rgb(75 102 112 / .2);
|
|
89
|
+
}
|
|
90
|
+
@media (prefers-color-scheme: light) {
|
|
91
|
+
.fw[data-theme="system"] {
|
|
92
|
+
color-scheme: light;
|
|
93
|
+
--fw-bg: #f6f5f5;
|
|
94
|
+
--fw-surface: #ffffff;
|
|
95
|
+
--fw-surface-2: #f1efef;
|
|
96
|
+
--fw-input: #ffffff;
|
|
97
|
+
--fw-border: #e4e0e0;
|
|
98
|
+
--fw-border-strong: #d3cdcd;
|
|
99
|
+
--fw-heading: #1b1818;
|
|
100
|
+
--fw-text: #3a3535;
|
|
101
|
+
--fw-muted: #625c5c;
|
|
102
|
+
--fw-accent: #4b6670;
|
|
103
|
+
--fw-accent-hover: #3f5961;
|
|
104
|
+
--fw-on-accent: #ffffff;
|
|
105
|
+
--fw-link: #3f5961;
|
|
106
|
+
--fw-focus: #4b6670;
|
|
107
|
+
--fw-danger: #a33b3b;
|
|
108
|
+
--fw-on-danger: #ffffff;
|
|
109
|
+
--fw-error: #a33b3b;
|
|
110
|
+
--fw-error-bg: #fbf0f0;
|
|
111
|
+
--fw-error-border: #efcaca;
|
|
112
|
+
--fw-success: #3c6a4b;
|
|
113
|
+
--fw-success-bg: #eef5f0;
|
|
114
|
+
--fw-success-border: #c9dfd0;
|
|
115
|
+
--fw-warning: #7a5626;
|
|
116
|
+
--fw-warning-bg: #faf4ea;
|
|
117
|
+
--fw-warning-border: #ead8bb;
|
|
118
|
+
--fw-info: #3f5961;
|
|
119
|
+
--fw-info-bg: #eef3f5;
|
|
120
|
+
--fw-info-border: #cbd9de;
|
|
121
|
+
--fw-overlay: rgb(27 24 24 / .38);
|
|
122
|
+
--fw-shadow-pop: 0 12px 32px rgb(27 24 24 / .12);
|
|
123
|
+
--fw-border-hover: #bdb6b6;
|
|
124
|
+
--fw-mark: rgb(75 102 112 / .2);
|
|
125
|
+
}
|
|
126
|
+
}
|