@iyulab/data-components 0.1.2 → 0.1.4
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.
|
@@ -175,6 +175,85 @@ const styles = css`
|
|
|
175
175
|
color: var(--u-txt-color-weak);
|
|
176
176
|
font-size: 1rem;
|
|
177
177
|
}
|
|
178
|
+
|
|
179
|
+
/* ── Dark mode ──
|
|
180
|
+
외부에서 --u-* CSS 변수가 제공되면 그 값을 사용하고,
|
|
181
|
+
제공되지 않으면 자체 dark fallback 값을 적용한다. */
|
|
182
|
+
|
|
183
|
+
:host-context([theme="dark"]) .toolbar {
|
|
184
|
+
background: var(--u-bg-color, #121212);
|
|
185
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host-context([theme="dark"]) .view-toggles u-button[active] {
|
|
189
|
+
background: var(--u-blue-600, #87B8F5);
|
|
190
|
+
color: var(--u-neutral-0, #000000);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host-context([theme="dark"]) .info {
|
|
194
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host-context([theme="dark"]) .card {
|
|
198
|
+
background: var(--u-bg-color, #121212);
|
|
199
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host-context([theme="dark"]) .card:hover {
|
|
203
|
+
border-color: var(--u-blue-600, #87B8F5);
|
|
204
|
+
box-shadow: 0 4px 12px var(--u-shadow-color-weak, rgba(0, 0, 0, 0.25));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:host-context([theme="dark"]) .card.selected {
|
|
208
|
+
border-color: var(--u-blue-600, #87B8F5);
|
|
209
|
+
background: var(--u-bg-color-active, #3D3D3D);
|
|
210
|
+
box-shadow: 0 0 0 3px var(--u-blue-200, #2B4F7E);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host-context([theme="dark"]) .card-field .label {
|
|
214
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host-context([theme="dark"]) .card-field .value {
|
|
218
|
+
color: var(--u-txt-color, #D4D4D4);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host-context([theme="dark"]) .table-wrapper {
|
|
222
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:host-context([theme="dark"]) table {
|
|
226
|
+
background: var(--u-bg-color, #121212);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:host-context([theme="dark"]) thead {
|
|
230
|
+
background: var(--u-neutral-50, #0A0A0A);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:host-context([theme="dark"]) th {
|
|
234
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
235
|
+
border-bottom-color: var(--u-border-color, #3D3D3D);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host-context([theme="dark"]) tbody tr:hover {
|
|
239
|
+
background: var(--u-bg-color-hover, #2A2A2A);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host-context([theme="dark"]) tbody tr.selected {
|
|
243
|
+
background: var(--u-bg-color-active, #3D3D3D);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:host-context([theme="dark"]) tbody tr:not(:last-child) {
|
|
247
|
+
border-bottom-color: var(--u-border-color-weak, #2A2A2A);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host-context([theme="dark"]) td {
|
|
251
|
+
color: var(--u-txt-color, #D4D4D4);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
:host-context([theme="dark"]) .empty {
|
|
255
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
256
|
+
}
|
|
178
257
|
`;
|
|
179
258
|
|
|
180
259
|
export { styles };
|
|
@@ -203,30 +203,63 @@ const styles = css`
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
/* ── Dark mode ──
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
외부에서 --u-* CSS 변수가 제공되면 그 값을 사용하고,
|
|
207
|
+
제공되지 않으면 자체 dark fallback 값을 적용한다. */
|
|
208
|
+
|
|
209
|
+
:host-context([theme="dark"]) .sheet-container {
|
|
210
|
+
background: var(--u-bg-color, #121212);
|
|
211
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
212
|
+
}
|
|
208
213
|
|
|
209
214
|
:host-context([theme="dark"]) .sheet-container:focus-within {
|
|
210
215
|
border-color: var(--u-blue-500, #6ba3e3);
|
|
211
216
|
box-shadow: 0 0 0 2px var(--u-blue-100, #1e3a5f);
|
|
212
217
|
}
|
|
213
218
|
|
|
219
|
+
:host-context([theme="dark"]) .corner {
|
|
220
|
+
background: var(--u-neutral-100, #121212);
|
|
221
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host-context([theme="dark"]) .corner:hover {
|
|
225
|
+
background: var(--u-neutral-200, #1E1E1E);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:host-context([theme="dark"]) .col-header {
|
|
229
|
+
background: var(--u-neutral-100, #121212);
|
|
230
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
231
|
+
border-color: var(--u-border-color, #3D3D3D);
|
|
232
|
+
}
|
|
233
|
+
|
|
214
234
|
:host-context([theme="dark"]) .col-header.col-selected {
|
|
215
235
|
background: var(--u-blue-100, #1e3a5f);
|
|
216
236
|
color: var(--u-blue-800, #c2deff);
|
|
217
237
|
}
|
|
218
238
|
|
|
239
|
+
:host-context([theme="dark"]) .row-num {
|
|
240
|
+
background: var(--u-neutral-50, #0A0A0A);
|
|
241
|
+
color: var(--u-txt-color-weak, #8A8A8A);
|
|
242
|
+
border-right-color: var(--u-border-color, #3D3D3D);
|
|
243
|
+
border-bottom-color: var(--u-border-color-weak, #2A2A2A);
|
|
244
|
+
}
|
|
245
|
+
|
|
219
246
|
:host-context([theme="dark"]) .row-num.row-selected {
|
|
220
247
|
background: var(--u-blue-100, #1e3a5f);
|
|
221
248
|
color: var(--u-blue-800, #c2deff);
|
|
222
249
|
}
|
|
223
250
|
|
|
251
|
+
:host-context([theme="dark"]) .cell {
|
|
252
|
+
color: var(--u-txt-color, #D4D4D4);
|
|
253
|
+
border-right-color: var(--u-border-color-weak, #2A2A2A);
|
|
254
|
+
border-bottom-color: var(--u-border-color-weak, #2A2A2A);
|
|
255
|
+
}
|
|
256
|
+
|
|
224
257
|
:host-context([theme="dark"]) .cell.selected {
|
|
225
258
|
background: var(--u-blue-0, #0a1e3d);
|
|
226
259
|
}
|
|
227
260
|
|
|
228
261
|
:host-context([theme="dark"]) .cell.anchor {
|
|
229
|
-
background: var(--u-bg-color);
|
|
262
|
+
background: var(--u-bg-color, #121212);
|
|
230
263
|
outline-color: var(--u-blue-500, #6ba3e3);
|
|
231
264
|
}
|
|
232
265
|
|
|
@@ -235,8 +268,8 @@ const styles = css`
|
|
|
235
268
|
}
|
|
236
269
|
|
|
237
270
|
:host-context([theme="dark"]) .cell-input {
|
|
238
|
-
background: var(--u-bg-color);
|
|
239
|
-
color: var(--u-txt-color);
|
|
271
|
+
background: var(--u-bg-color, #121212);
|
|
272
|
+
color: var(--u-txt-color, #D4D4D4);
|
|
240
273
|
outline-color: var(--u-blue-500, #6ba3e3);
|
|
241
274
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
|
|
242
275
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { UDataGrid } from './components/data-grid/UDataGrid.js';
|
|
2
|
+
import './components/data-view/UDataView.js';
|
|
3
|
+
import './components/simple-sheet/USimpleSheet.js';
|
|
2
4
|
export { UDataView } from './components/data-view/UDataView.component.js';
|
|
3
5
|
export { USimpleSheet } from './components/simple-sheet/USimpleSheet.component.js';
|