@openwarelabs/ui 0.11.1 → 0.12.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/dist/components/AppShell/AppShell.context.d.cts +21 -0
- package/dist/components/AppShell/AppShell.context.d.ts +21 -0
- package/dist/components/AppShell/AppShell.d.cts +17 -0
- package/dist/components/AppShell/AppShell.d.ts +17 -0
- package/dist/components/AppShell/AppShell.types.d.cts +46 -0
- package/dist/components/AppShell/AppShell.types.d.ts +46 -0
- package/dist/components/Chart/BarChart.d.cts +6 -0
- package/dist/components/Chart/BarChart.d.ts +6 -0
- package/dist/components/Chart/Cartesian.d.cts +8 -0
- package/dist/components/Chart/Cartesian.d.ts +8 -0
- package/dist/components/Chart/Chart.d.cts +5 -0
- package/dist/components/Chart/Chart.d.ts +5 -0
- package/dist/components/Chart/Chart.types.d.cts +83 -0
- package/dist/components/Chart/Chart.types.d.ts +83 -0
- package/dist/components/Chart/ChartParts.d.cts +16 -0
- package/dist/components/Chart/ChartParts.d.ts +16 -0
- package/dist/components/Chart/DonutChart.d.cts +6 -0
- package/dist/components/Chart/DonutChart.d.ts +6 -0
- package/dist/components/Chart/LineChart.d.cts +6 -0
- package/dist/components/Chart/LineChart.d.ts +6 -0
- package/dist/components/Chart/Sparkline.d.cts +6 -0
- package/dist/components/Chart/Sparkline.d.ts +6 -0
- package/dist/components/Chart/chartUtils.d.cts +13 -0
- package/dist/components/Chart/chartUtils.d.ts +13 -0
- package/dist/components/NavList/NavList.d.cts +6 -24
- package/dist/components/NavList/NavList.d.ts +6 -24
- package/dist/components/NavList/NavList.types.d.cts +23 -0
- package/dist/components/NavList/NavList.types.d.ts +23 -0
- package/dist/components.css +511 -0
- package/dist/icons.d.cts +3 -0
- package/dist/icons.d.ts +3 -0
- package/dist/index.cjs +1299 -729
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1281 -711
- package/dist/index.js.map +4 -4
- package/dist/openware-ui.iife.js +8 -8
- package/dist/styles.css +541 -0
- package/dist/tailwind.css +10 -0
- package/dist/tokens.css +30 -0
- package/dist/tokens.json +80 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -85,6 +85,16 @@
|
|
|
85
85
|
--ow-knob: #ffffff;
|
|
86
86
|
--ow-meter-track: var(--ow-gray-200);
|
|
87
87
|
--ow-progress: var(--ow-brand-600);
|
|
88
|
+
--ow-chart-1: #5856ad;
|
|
89
|
+
--ow-chart-2: #eb6834;
|
|
90
|
+
--ow-chart-3: #1baf7a;
|
|
91
|
+
--ow-chart-4: #eda100;
|
|
92
|
+
--ow-chart-5: #e87ba4;
|
|
93
|
+
--ow-chart-6: #008300;
|
|
94
|
+
--ow-chart-7: #2a78d6;
|
|
95
|
+
--ow-chart-8: #e34948;
|
|
96
|
+
--ow-chart-grid: var(--ow-gray-200);
|
|
97
|
+
--ow-chart-axis: var(--ow-gray-300);
|
|
88
98
|
--ow-code-block: #15171c;
|
|
89
99
|
--ow-code-block-header: #1c1f26;
|
|
90
100
|
--ow-code-block-border: #15171c;
|
|
@@ -162,6 +172,16 @@
|
|
|
162
172
|
--ow-knob: #e4e7ec;
|
|
163
173
|
--ow-meter-track: #2c313a;
|
|
164
174
|
--ow-progress: var(--ow-brand-400);
|
|
175
|
+
--ow-chart-1: #898cd0;
|
|
176
|
+
--ow-chart-2: #d95926;
|
|
177
|
+
--ow-chart-3: #199e70;
|
|
178
|
+
--ow-chart-4: #c98500;
|
|
179
|
+
--ow-chart-5: #d55181;
|
|
180
|
+
--ow-chart-6: #008300;
|
|
181
|
+
--ow-chart-7: #3987e5;
|
|
182
|
+
--ow-chart-8: #e66767;
|
|
183
|
+
--ow-chart-grid: #2c313a;
|
|
184
|
+
--ow-chart-axis: #3a404b;
|
|
165
185
|
--ow-code-block-border: #2c313a;
|
|
166
186
|
--ow-backdrop: rgba(0,0,0,0.6);
|
|
167
187
|
--ow-dot: rgba(255,255,255,0.09);
|
|
@@ -235,6 +255,16 @@
|
|
|
235
255
|
--ow-knob: #e4e7ec;
|
|
236
256
|
--ow-meter-track: #2c313a;
|
|
237
257
|
--ow-progress: var(--ow-brand-400);
|
|
258
|
+
--ow-chart-1: #898cd0;
|
|
259
|
+
--ow-chart-2: #d95926;
|
|
260
|
+
--ow-chart-3: #199e70;
|
|
261
|
+
--ow-chart-4: #c98500;
|
|
262
|
+
--ow-chart-5: #d55181;
|
|
263
|
+
--ow-chart-6: #008300;
|
|
264
|
+
--ow-chart-7: #3987e5;
|
|
265
|
+
--ow-chart-8: #e66767;
|
|
266
|
+
--ow-chart-grid: #2c313a;
|
|
267
|
+
--ow-chart-axis: #3a404b;
|
|
238
268
|
--ow-code-block-border: #2c313a;
|
|
239
269
|
--ow-backdrop: rgba(0,0,0,0.6);
|
|
240
270
|
--ow-dot: rgba(255,255,255,0.09);
|
|
@@ -6264,6 +6294,283 @@
|
|
|
6264
6294
|
transform: translate(-50%, -50%);
|
|
6265
6295
|
}
|
|
6266
6296
|
|
|
6297
|
+
/* components/Chart/Chart.css */
|
|
6298
|
+
/* Charts: thin marks in the chart palette (--ow-chart-1 to 8), hairline grids, text in text colours, never the series'. */
|
|
6299
|
+
|
|
6300
|
+
.ow-chart {
|
|
6301
|
+
display: grid;
|
|
6302
|
+
min-width: 0;
|
|
6303
|
+
gap: var(--ow-space-lg);
|
|
6304
|
+
margin: 0;
|
|
6305
|
+
}
|
|
6306
|
+
|
|
6307
|
+
.ow-chart__legend {
|
|
6308
|
+
display: flex;
|
|
6309
|
+
flex-wrap: wrap;
|
|
6310
|
+
gap: var(--ow-space-xs) var(--ow-space-2xl);
|
|
6311
|
+
margin: 0;
|
|
6312
|
+
padding: 0;
|
|
6313
|
+
list-style: none;
|
|
6314
|
+
}
|
|
6315
|
+
|
|
6316
|
+
.ow-chart__legend-item {
|
|
6317
|
+
display: inline-flex;
|
|
6318
|
+
align-items: center;
|
|
6319
|
+
gap: var(--ow-space-sm);
|
|
6320
|
+
color: var(--ow-text-soft);
|
|
6321
|
+
font-size: 13px;
|
|
6322
|
+
}
|
|
6323
|
+
|
|
6324
|
+
.ow-chart__legend-value {
|
|
6325
|
+
color: var(--ow-text-muted);
|
|
6326
|
+
font-variant-numeric: tabular-nums;
|
|
6327
|
+
}
|
|
6328
|
+
|
|
6329
|
+
.ow-chart__key {
|
|
6330
|
+
flex-shrink: 0;
|
|
6331
|
+
}
|
|
6332
|
+
|
|
6333
|
+
.ow-chart__key--line {
|
|
6334
|
+
width: 14px;
|
|
6335
|
+
height: 2px;
|
|
6336
|
+
border-radius: 1px;
|
|
6337
|
+
}
|
|
6338
|
+
|
|
6339
|
+
.ow-chart__key--square {
|
|
6340
|
+
width: 10px;
|
|
6341
|
+
height: 10px;
|
|
6342
|
+
border-radius: 3px;
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
.ow-chart__plot {
|
|
6346
|
+
position: relative;
|
|
6347
|
+
min-width: 0;
|
|
6348
|
+
border-radius: var(--ow-radius-md);
|
|
6349
|
+
touch-action: pan-y;
|
|
6350
|
+
}
|
|
6351
|
+
|
|
6352
|
+
.ow-chart__plot:focus-visible,
|
|
6353
|
+
.ow-chart__donut:focus-visible {
|
|
6354
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6355
|
+
outline-offset: 4px;
|
|
6356
|
+
}
|
|
6357
|
+
|
|
6358
|
+
.ow-chart__svg {
|
|
6359
|
+
display: block;
|
|
6360
|
+
overflow: visible;
|
|
6361
|
+
}
|
|
6362
|
+
|
|
6363
|
+
.ow-chart__grid {
|
|
6364
|
+
stroke: var(--ow-chart-grid);
|
|
6365
|
+
stroke-width: 1px;
|
|
6366
|
+
shape-rendering: crispEdges;
|
|
6367
|
+
}
|
|
6368
|
+
|
|
6369
|
+
.ow-chart__baseline {
|
|
6370
|
+
stroke: var(--ow-chart-axis);
|
|
6371
|
+
stroke-width: 1px;
|
|
6372
|
+
shape-rendering: crispEdges;
|
|
6373
|
+
}
|
|
6374
|
+
|
|
6375
|
+
.ow-chart__tick {
|
|
6376
|
+
fill: var(--ow-text-muted);
|
|
6377
|
+
font-family: var(--ow-font-sans);
|
|
6378
|
+
font-size: 11.5px;
|
|
6379
|
+
font-variant-numeric: tabular-nums;
|
|
6380
|
+
}
|
|
6381
|
+
|
|
6382
|
+
.ow-chart__line {
|
|
6383
|
+
fill: none;
|
|
6384
|
+
stroke-width: 2px;
|
|
6385
|
+
stroke-linecap: round;
|
|
6386
|
+
stroke-linejoin: round;
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
.ow-chart__area {
|
|
6390
|
+
fill-opacity: 0.1;
|
|
6391
|
+
}
|
|
6392
|
+
|
|
6393
|
+
.ow-chart__point {
|
|
6394
|
+
stroke: var(--ow-surface);
|
|
6395
|
+
stroke-width: 2px;
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6398
|
+
.ow-chart__crosshair {
|
|
6399
|
+
stroke: var(--ow-chart-axis);
|
|
6400
|
+
stroke-width: 1px;
|
|
6401
|
+
shape-rendering: crispEdges;
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6404
|
+
.ow-chart__band {
|
|
6405
|
+
fill: var(--ow-surface-muted);
|
|
6406
|
+
}
|
|
6407
|
+
|
|
6408
|
+
.ow-chart__hit {
|
|
6409
|
+
fill: transparent;
|
|
6410
|
+
cursor: crosshair;
|
|
6411
|
+
}
|
|
6412
|
+
|
|
6413
|
+
.ow-chart--bar .ow-chart__hit {
|
|
6414
|
+
cursor: default;
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
/* The readout for the hovered or focused point. */
|
|
6418
|
+
.ow-chart__readout {
|
|
6419
|
+
position: absolute;
|
|
6420
|
+
top: 4px;
|
|
6421
|
+
z-index: 1;
|
|
6422
|
+
display: grid;
|
|
6423
|
+
min-width: 140px;
|
|
6424
|
+
gap: 6px;
|
|
6425
|
+
border: 1px solid var(--ow-border);
|
|
6426
|
+
border-radius: var(--ow-radius-lg);
|
|
6427
|
+
background: var(--ow-surface);
|
|
6428
|
+
box-shadow: var(--ow-shadow-menu);
|
|
6429
|
+
padding: 9px 12px 10px;
|
|
6430
|
+
pointer-events: none;
|
|
6431
|
+
}
|
|
6432
|
+
|
|
6433
|
+
.ow-chart__readout-title {
|
|
6434
|
+
color: var(--ow-text-muted);
|
|
6435
|
+
font-size: 12px;
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
.ow-chart__readout-row {
|
|
6439
|
+
display: flex;
|
|
6440
|
+
align-items: center;
|
|
6441
|
+
gap: 8px;
|
|
6442
|
+
color: var(--ow-text-muted);
|
|
6443
|
+
font-size: 12.5px;
|
|
6444
|
+
white-space: nowrap;
|
|
6445
|
+
}
|
|
6446
|
+
|
|
6447
|
+
.ow-chart__readout-label {
|
|
6448
|
+
flex: 1;
|
|
6449
|
+
}
|
|
6450
|
+
|
|
6451
|
+
.ow-chart__readout-row strong {
|
|
6452
|
+
margin-left: 12px;
|
|
6453
|
+
color: var(--ow-text);
|
|
6454
|
+
font-size: 13.5px;
|
|
6455
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6456
|
+
font-variant-numeric: tabular-nums;
|
|
6457
|
+
}
|
|
6458
|
+
|
|
6459
|
+
/* Donut: the ring with the total in its middle, the legend beside it. */
|
|
6460
|
+
.ow-chart--donut {
|
|
6461
|
+
display: flex;
|
|
6462
|
+
flex-wrap: wrap;
|
|
6463
|
+
align-items: center;
|
|
6464
|
+
gap: var(--ow-space-4xl) 32px;
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6467
|
+
.ow-chart--donut .ow-chart__legend {
|
|
6468
|
+
display: grid;
|
|
6469
|
+
gap: var(--ow-space-sm);
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
.ow-chart__donut {
|
|
6473
|
+
position: relative;
|
|
6474
|
+
flex-shrink: 0;
|
|
6475
|
+
border-radius: 50%;
|
|
6476
|
+
}
|
|
6477
|
+
|
|
6478
|
+
.ow-chart__donut svg {
|
|
6479
|
+
display: block;
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
.ow-chart__slice {
|
|
6483
|
+
transition: opacity var(--ow-duration-base) var(--ow-ease-standard);
|
|
6484
|
+
}
|
|
6485
|
+
|
|
6486
|
+
.ow-chart__slice--dim {
|
|
6487
|
+
opacity: 0.35;
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
.ow-chart__empty {
|
|
6491
|
+
fill: none;
|
|
6492
|
+
stroke: var(--ow-meter-track);
|
|
6493
|
+
}
|
|
6494
|
+
|
|
6495
|
+
.ow-chart__center {
|
|
6496
|
+
position: absolute;
|
|
6497
|
+
inset: 0;
|
|
6498
|
+
display: grid;
|
|
6499
|
+
place-content: center;
|
|
6500
|
+
gap: 2px;
|
|
6501
|
+
padding: 0 22%;
|
|
6502
|
+
text-align: center;
|
|
6503
|
+
pointer-events: none;
|
|
6504
|
+
}
|
|
6505
|
+
|
|
6506
|
+
.ow-chart__center-value {
|
|
6507
|
+
color: var(--ow-text);
|
|
6508
|
+
font-size: 20px;
|
|
6509
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6510
|
+
font-variant-numeric: tabular-nums;
|
|
6511
|
+
letter-spacing: -0.01em;
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
.ow-chart__center-label {
|
|
6515
|
+
overflow: hidden;
|
|
6516
|
+
color: var(--ow-text-muted);
|
|
6517
|
+
font-size: 12px;
|
|
6518
|
+
text-overflow: ellipsis;
|
|
6519
|
+
white-space: nowrap;
|
|
6520
|
+
}
|
|
6521
|
+
|
|
6522
|
+
/* Sparkline */
|
|
6523
|
+
.ow-sparkline {
|
|
6524
|
+
position: relative;
|
|
6525
|
+
display: inline-block;
|
|
6526
|
+
flex-shrink: 0;
|
|
6527
|
+
vertical-align: middle;
|
|
6528
|
+
}
|
|
6529
|
+
|
|
6530
|
+
.ow-sparkline svg {
|
|
6531
|
+
display: block;
|
|
6532
|
+
width: 100%;
|
|
6533
|
+
height: 100%;
|
|
6534
|
+
overflow: visible;
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
.ow-sparkline__area {
|
|
6538
|
+
fill: var(--ow-sparkline-color);
|
|
6539
|
+
fill-opacity: 0.1;
|
|
6540
|
+
}
|
|
6541
|
+
|
|
6542
|
+
.ow-sparkline__line {
|
|
6543
|
+
fill: none;
|
|
6544
|
+
stroke: var(--ow-sparkline-color);
|
|
6545
|
+
stroke-width: 1.75px;
|
|
6546
|
+
stroke-linejoin: round;
|
|
6547
|
+
stroke-linecap: round;
|
|
6548
|
+
}
|
|
6549
|
+
|
|
6550
|
+
.ow-sparkline__end {
|
|
6551
|
+
position: absolute;
|
|
6552
|
+
width: 8px;
|
|
6553
|
+
height: 8px;
|
|
6554
|
+
box-sizing: border-box;
|
|
6555
|
+
border: 2px solid var(--ow-surface);
|
|
6556
|
+
border-radius: 50%;
|
|
6557
|
+
background: var(--ow-sparkline-color);
|
|
6558
|
+
transform: translate(-50%, -50%);
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6562
|
+
.ow-chart__slice {
|
|
6563
|
+
transition: none;
|
|
6564
|
+
}
|
|
6565
|
+
}
|
|
6566
|
+
|
|
6567
|
+
@media (forced-colors: active) {
|
|
6568
|
+
.ow-chart__line,
|
|
6569
|
+
.ow-sparkline__line {
|
|
6570
|
+
stroke: CanvasText;
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6267
6574
|
/* components/FileTree/FileTree.css */
|
|
6268
6575
|
/* FileTree: a project structure explorer. Monospace names, hairline guides, a tinted selected file. */
|
|
6269
6576
|
.ow-tree,
|
|
@@ -6572,6 +6879,240 @@
|
|
|
6572
6879
|
font-weight: var(--ow-weight-regular);
|
|
6573
6880
|
}
|
|
6574
6881
|
|
|
6882
|
+
/* components/AppShell/AppShell.css */
|
|
6883
|
+
/* AppShell: a sidebar down the left and the page beside it. It measures its own width (a container query), so it
|
|
6884
|
+
folds into a drawer under its breakpoint (900px by default) whether it fills the window or sits in a smaller frame. */
|
|
6885
|
+
|
|
6886
|
+
.ow-app-shell {
|
|
6887
|
+
--ow-app-shell-height: 100dvh;
|
|
6888
|
+
--ow-sidebar-width: 248px;
|
|
6889
|
+
--ow-sidebar-collapsed-width: 56px;
|
|
6890
|
+
container: ow-app-shell / inline-size;
|
|
6891
|
+
background: var(--ow-canvas);
|
|
6892
|
+
color: var(--ow-text);
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6895
|
+
.ow-app-shell__frame {
|
|
6896
|
+
display: grid;
|
|
6897
|
+
grid-template-columns: var(--ow-sidebar-width) minmax(0, 1fr);
|
|
6898
|
+
min-height: var(--ow-app-shell-height);
|
|
6899
|
+
transition: grid-template-columns var(--ow-duration-base) var(--ow-ease-standard);
|
|
6900
|
+
}
|
|
6901
|
+
|
|
6902
|
+
.ow-app-shell--collapsed .ow-app-shell__frame {
|
|
6903
|
+
grid-template-columns: var(--ow-sidebar-collapsed-width) minmax(0, 1fr);
|
|
6904
|
+
}
|
|
6905
|
+
|
|
6906
|
+
.ow-app-shell__sidebar {
|
|
6907
|
+
position: sticky;
|
|
6908
|
+
top: 0;
|
|
6909
|
+
box-sizing: border-box;
|
|
6910
|
+
height: var(--ow-app-shell-height);
|
|
6911
|
+
min-width: 0;
|
|
6912
|
+
overflow: hidden;
|
|
6913
|
+
}
|
|
6914
|
+
|
|
6915
|
+
.ow-app-shell--flat .ow-app-shell__sidebar {
|
|
6916
|
+
border-right: 1px solid var(--ow-border);
|
|
6917
|
+
}
|
|
6918
|
+
|
|
6919
|
+
/* The sidebar's three parts: the header and footer stay put, the content between them scrolls. */
|
|
6920
|
+
.ow-sidebar {
|
|
6921
|
+
display: flex;
|
|
6922
|
+
box-sizing: border-box;
|
|
6923
|
+
height: 100%;
|
|
6924
|
+
flex-direction: column;
|
|
6925
|
+
gap: var(--ow-space-lg);
|
|
6926
|
+
padding: 10px 12px 12px;
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6929
|
+
.ow-sidebar--drawer {
|
|
6930
|
+
height: auto;
|
|
6931
|
+
min-height: 100%;
|
|
6932
|
+
padding: 0;
|
|
6933
|
+
}
|
|
6934
|
+
|
|
6935
|
+
.ow-sidebar__header,
|
|
6936
|
+
.ow-sidebar__footer {
|
|
6937
|
+
display: flex;
|
|
6938
|
+
flex-direction: column;
|
|
6939
|
+
flex-shrink: 0;
|
|
6940
|
+
gap: var(--ow-space-sm);
|
|
6941
|
+
}
|
|
6942
|
+
|
|
6943
|
+
.ow-sidebar__content {
|
|
6944
|
+
display: flex;
|
|
6945
|
+
min-height: 0;
|
|
6946
|
+
flex: 1;
|
|
6947
|
+
flex-direction: column;
|
|
6948
|
+
gap: var(--ow-space-3xl);
|
|
6949
|
+
overflow-y: auto;
|
|
6950
|
+
/* Room for the items' focus rings, which the scroll area would otherwise clip. */
|
|
6951
|
+
margin-inline: -4px;
|
|
6952
|
+
padding: 2px 4px;
|
|
6953
|
+
}
|
|
6954
|
+
|
|
6955
|
+
.ow-sidebar--drawer .ow-sidebar__content {
|
|
6956
|
+
overflow: visible;
|
|
6957
|
+
}
|
|
6958
|
+
|
|
6959
|
+
.ow-sidebar__footer {
|
|
6960
|
+
margin-top: auto;
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6963
|
+
.ow-sidebar__toggle {
|
|
6964
|
+
align-self: flex-start;
|
|
6965
|
+
}
|
|
6966
|
+
|
|
6967
|
+
/* Inside a NavList each tooltip wraps its item: let the item keep the full width. */
|
|
6968
|
+
.ow-sidebar .ow-nav > .ow-tooltip {
|
|
6969
|
+
display: grid;
|
|
6970
|
+
}
|
|
6971
|
+
|
|
6972
|
+
/* Folded: only the icons show; the labels stay for screen readers and come back as tooltips. */
|
|
6973
|
+
.ow-app-shell--collapsed .ow-app-shell__sidebar .ow-sidebar {
|
|
6974
|
+
padding-inline: 8px;
|
|
6975
|
+
}
|
|
6976
|
+
|
|
6977
|
+
.ow-app-shell--collapsed .ow-app-shell__sidebar .ow-nav__item {
|
|
6978
|
+
justify-content: center;
|
|
6979
|
+
padding-inline: 0;
|
|
6980
|
+
}
|
|
6981
|
+
|
|
6982
|
+
.ow-app-shell--collapsed .ow-app-shell__sidebar .ow-nav__label {
|
|
6983
|
+
position: absolute;
|
|
6984
|
+
width: 1px;
|
|
6985
|
+
height: 1px;
|
|
6986
|
+
overflow: hidden;
|
|
6987
|
+
clip-path: inset(50%);
|
|
6988
|
+
white-space: nowrap;
|
|
6989
|
+
}
|
|
6990
|
+
|
|
6991
|
+
.ow-app-shell--collapsed .ow-app-shell__sidebar .ow-nav__end {
|
|
6992
|
+
display: none;
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
/* A group's heading becomes a short rule, so the groups still read as groups. */
|
|
6996
|
+
.ow-app-shell--collapsed .ow-app-shell__sidebar .ow-nav__heading {
|
|
6997
|
+
height: 1px;
|
|
6998
|
+
overflow: hidden;
|
|
6999
|
+
margin: 4px 8px;
|
|
7000
|
+
background: var(--ow-border);
|
|
7001
|
+
padding: 0;
|
|
7002
|
+
color: transparent;
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
.ow-app-shell--collapsed .ow-sidebar__toggle {
|
|
7006
|
+
align-self: center;
|
|
7007
|
+
}
|
|
7008
|
+
|
|
7009
|
+
.ow-app-shell__body {
|
|
7010
|
+
display: flex;
|
|
7011
|
+
min-width: 0;
|
|
7012
|
+
flex-direction: column;
|
|
7013
|
+
}
|
|
7014
|
+
|
|
7015
|
+
.ow-app-shell__main {
|
|
7016
|
+
display: flex;
|
|
7017
|
+
min-width: 0;
|
|
7018
|
+
flex: 1;
|
|
7019
|
+
flex-direction: column;
|
|
7020
|
+
}
|
|
7021
|
+
|
|
7022
|
+
.ow-app-shell--inset .ow-app-shell__main {
|
|
7023
|
+
margin: 8px 8px 8px 0;
|
|
7024
|
+
border: 1px solid var(--ow-border);
|
|
7025
|
+
border-radius: var(--ow-radius-panel);
|
|
7026
|
+
background: var(--ow-surface);
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
.ow-app-shell--flat .ow-app-shell__body {
|
|
7030
|
+
background: var(--ow-surface);
|
|
7031
|
+
}
|
|
7032
|
+
|
|
7033
|
+
/* On narrow screens the sidebar folds into a drawer behind this bar. */
|
|
7034
|
+
.ow-app-shell__topbar {
|
|
7035
|
+
display: none;
|
|
7036
|
+
height: 52px;
|
|
7037
|
+
flex-shrink: 0;
|
|
7038
|
+
align-items: center;
|
|
7039
|
+
gap: var(--ow-space-sm);
|
|
7040
|
+
padding: 0 6px;
|
|
7041
|
+
}
|
|
7042
|
+
|
|
7043
|
+
.ow-app-shell__topbar-start {
|
|
7044
|
+
display: flex;
|
|
7045
|
+
min-width: 0;
|
|
7046
|
+
flex: 1;
|
|
7047
|
+
align-items: center;
|
|
7048
|
+
gap: 9px;
|
|
7049
|
+
}
|
|
7050
|
+
|
|
7051
|
+
.ow-app-shell__topbar-end {
|
|
7052
|
+
display: flex;
|
|
7053
|
+
align-items: center;
|
|
7054
|
+
gap: var(--ow-space-2xs);
|
|
7055
|
+
}
|
|
7056
|
+
|
|
7057
|
+
.ow-app-shell--flat .ow-app-shell__topbar {
|
|
7058
|
+
border-bottom: 1px solid var(--ow-border);
|
|
7059
|
+
}
|
|
7060
|
+
|
|
7061
|
+
/* Where the sidebar folds into the drawer: the breakpoint prop. */
|
|
7062
|
+
@container ow-app-shell (max-width: 559px) {
|
|
7063
|
+
.ow-app-shell--sm .ow-app-shell__frame,
|
|
7064
|
+
.ow-app-shell--sm.ow-app-shell--collapsed .ow-app-shell__frame {
|
|
7065
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7066
|
+
}
|
|
7067
|
+
.ow-app-shell--sm .ow-app-shell__sidebar {
|
|
7068
|
+
display: none;
|
|
7069
|
+
}
|
|
7070
|
+
.ow-app-shell--sm .ow-app-shell__topbar {
|
|
7071
|
+
display: flex;
|
|
7072
|
+
}
|
|
7073
|
+
.ow-app-shell--sm.ow-app-shell--inset .ow-app-shell__main {
|
|
7074
|
+
margin: 0 8px 8px;
|
|
7075
|
+
}
|
|
7076
|
+
}
|
|
7077
|
+
|
|
7078
|
+
@container ow-app-shell (max-width: 899px) {
|
|
7079
|
+
.ow-app-shell--md .ow-app-shell__frame,
|
|
7080
|
+
.ow-app-shell--md.ow-app-shell--collapsed .ow-app-shell__frame {
|
|
7081
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7082
|
+
}
|
|
7083
|
+
.ow-app-shell--md .ow-app-shell__sidebar {
|
|
7084
|
+
display: none;
|
|
7085
|
+
}
|
|
7086
|
+
.ow-app-shell--md .ow-app-shell__topbar {
|
|
7087
|
+
display: flex;
|
|
7088
|
+
}
|
|
7089
|
+
.ow-app-shell--md.ow-app-shell--inset .ow-app-shell__main {
|
|
7090
|
+
margin: 0 8px 8px;
|
|
7091
|
+
}
|
|
7092
|
+
}
|
|
7093
|
+
|
|
7094
|
+
@container ow-app-shell (max-width: 1199px) {
|
|
7095
|
+
.ow-app-shell--lg .ow-app-shell__frame,
|
|
7096
|
+
.ow-app-shell--lg.ow-app-shell--collapsed .ow-app-shell__frame {
|
|
7097
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7098
|
+
}
|
|
7099
|
+
.ow-app-shell--lg .ow-app-shell__sidebar {
|
|
7100
|
+
display: none;
|
|
7101
|
+
}
|
|
7102
|
+
.ow-app-shell--lg .ow-app-shell__topbar {
|
|
7103
|
+
display: flex;
|
|
7104
|
+
}
|
|
7105
|
+
.ow-app-shell--lg.ow-app-shell--inset .ow-app-shell__main {
|
|
7106
|
+
margin: 0 8px 8px;
|
|
7107
|
+
}
|
|
7108
|
+
}
|
|
7109
|
+
|
|
7110
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7111
|
+
.ow-app-shell__frame {
|
|
7112
|
+
transition: none;
|
|
7113
|
+
}
|
|
7114
|
+
}
|
|
7115
|
+
|
|
6575
7116
|
/* components/Layout/Layout.css */
|
|
6576
7117
|
/* Stack, Separator and ScrollShadow. */
|
|
6577
7118
|
.ow-stack {
|
package/dist/tailwind.css
CHANGED
|
@@ -86,6 +86,16 @@
|
|
|
86
86
|
--color-knob: var(--ow-knob);
|
|
87
87
|
--color-meter-track: var(--ow-meter-track);
|
|
88
88
|
--color-progress: var(--ow-progress);
|
|
89
|
+
--color-chart-1: var(--ow-chart-1);
|
|
90
|
+
--color-chart-2: var(--ow-chart-2);
|
|
91
|
+
--color-chart-3: var(--ow-chart-3);
|
|
92
|
+
--color-chart-4: var(--ow-chart-4);
|
|
93
|
+
--color-chart-5: var(--ow-chart-5);
|
|
94
|
+
--color-chart-6: var(--ow-chart-6);
|
|
95
|
+
--color-chart-7: var(--ow-chart-7);
|
|
96
|
+
--color-chart-8: var(--ow-chart-8);
|
|
97
|
+
--color-chart-grid: var(--ow-chart-grid);
|
|
98
|
+
--color-chart-axis: var(--ow-chart-axis);
|
|
89
99
|
--color-code-block: var(--ow-code-block);
|
|
90
100
|
--color-code-block-header: var(--ow-code-block-header);
|
|
91
101
|
--color-code-block-border: var(--ow-code-block-border);
|
package/dist/tokens.css
CHANGED
|
@@ -85,6 +85,16 @@
|
|
|
85
85
|
--ow-knob: #ffffff;
|
|
86
86
|
--ow-meter-track: var(--ow-gray-200);
|
|
87
87
|
--ow-progress: var(--ow-brand-600);
|
|
88
|
+
--ow-chart-1: #5856ad;
|
|
89
|
+
--ow-chart-2: #eb6834;
|
|
90
|
+
--ow-chart-3: #1baf7a;
|
|
91
|
+
--ow-chart-4: #eda100;
|
|
92
|
+
--ow-chart-5: #e87ba4;
|
|
93
|
+
--ow-chart-6: #008300;
|
|
94
|
+
--ow-chart-7: #2a78d6;
|
|
95
|
+
--ow-chart-8: #e34948;
|
|
96
|
+
--ow-chart-grid: var(--ow-gray-200);
|
|
97
|
+
--ow-chart-axis: var(--ow-gray-300);
|
|
88
98
|
--ow-code-block: #15171c;
|
|
89
99
|
--ow-code-block-header: #1c1f26;
|
|
90
100
|
--ow-code-block-border: #15171c;
|
|
@@ -162,6 +172,16 @@
|
|
|
162
172
|
--ow-knob: #e4e7ec;
|
|
163
173
|
--ow-meter-track: #2c313a;
|
|
164
174
|
--ow-progress: var(--ow-brand-400);
|
|
175
|
+
--ow-chart-1: #898cd0;
|
|
176
|
+
--ow-chart-2: #d95926;
|
|
177
|
+
--ow-chart-3: #199e70;
|
|
178
|
+
--ow-chart-4: #c98500;
|
|
179
|
+
--ow-chart-5: #d55181;
|
|
180
|
+
--ow-chart-6: #008300;
|
|
181
|
+
--ow-chart-7: #3987e5;
|
|
182
|
+
--ow-chart-8: #e66767;
|
|
183
|
+
--ow-chart-grid: #2c313a;
|
|
184
|
+
--ow-chart-axis: #3a404b;
|
|
165
185
|
--ow-code-block-border: #2c313a;
|
|
166
186
|
--ow-backdrop: rgba(0,0,0,0.6);
|
|
167
187
|
--ow-dot: rgba(255,255,255,0.09);
|
|
@@ -235,6 +255,16 @@
|
|
|
235
255
|
--ow-knob: #e4e7ec;
|
|
236
256
|
--ow-meter-track: #2c313a;
|
|
237
257
|
--ow-progress: var(--ow-brand-400);
|
|
258
|
+
--ow-chart-1: #898cd0;
|
|
259
|
+
--ow-chart-2: #d95926;
|
|
260
|
+
--ow-chart-3: #199e70;
|
|
261
|
+
--ow-chart-4: #c98500;
|
|
262
|
+
--ow-chart-5: #d55181;
|
|
263
|
+
--ow-chart-6: #008300;
|
|
264
|
+
--ow-chart-7: #3987e5;
|
|
265
|
+
--ow-chart-8: #e66767;
|
|
266
|
+
--ow-chart-grid: #2c313a;
|
|
267
|
+
--ow-chart-axis: #3a404b;
|
|
238
268
|
--ow-code-block-border: #2c313a;
|
|
239
269
|
--ow-backdrop: rgba(0,0,0,0.6);
|
|
240
270
|
--ow-dot: rgba(255,255,255,0.09);
|
package/dist/tokens.json
CHANGED
|
@@ -590,6 +590,86 @@
|
|
|
590
590
|
},
|
|
591
591
|
"usage": "The filled part of progress bars, progress circles, sliders and spinners; at least 3:1 against ow-meter-track and every surface."
|
|
592
592
|
},
|
|
593
|
+
{
|
|
594
|
+
"name": "ow-chart-1",
|
|
595
|
+
"value": {
|
|
596
|
+
"light": "#5856ad",
|
|
597
|
+
"dark": "#898cd0"
|
|
598
|
+
},
|
|
599
|
+
"usage": "Chart series 1 (indigo): the brand's own hue, for the first or only series. The eight series colours go in this order and are never cycled: the order keeps neighbours apart for colour-blind readers (checked in both themes). With scatter plots or more than three series side by side, label them too."
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "ow-chart-2",
|
|
603
|
+
"value": {
|
|
604
|
+
"light": "#eb6834",
|
|
605
|
+
"dark": "#d95926"
|
|
606
|
+
},
|
|
607
|
+
"usage": "Chart series 2 (orange)."
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "ow-chart-3",
|
|
611
|
+
"value": {
|
|
612
|
+
"light": "#1baf7a",
|
|
613
|
+
"dark": "#199e70"
|
|
614
|
+
},
|
|
615
|
+
"usage": "Chart series 3 (aqua)."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "ow-chart-4",
|
|
619
|
+
"value": {
|
|
620
|
+
"light": "#eda100",
|
|
621
|
+
"dark": "#c98500"
|
|
622
|
+
},
|
|
623
|
+
"usage": "Chart series 4 (amber)."
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "ow-chart-5",
|
|
627
|
+
"value": {
|
|
628
|
+
"light": "#e87ba4",
|
|
629
|
+
"dark": "#d55181"
|
|
630
|
+
},
|
|
631
|
+
"usage": "Chart series 5 (pink)."
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "ow-chart-6",
|
|
635
|
+
"value": {
|
|
636
|
+
"light": "#008300",
|
|
637
|
+
"dark": "#008300"
|
|
638
|
+
},
|
|
639
|
+
"usage": "Chart series 6 (green)."
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "ow-chart-7",
|
|
643
|
+
"value": {
|
|
644
|
+
"light": "#2a78d6",
|
|
645
|
+
"dark": "#3987e5"
|
|
646
|
+
},
|
|
647
|
+
"usage": "Chart series 7 (blue)."
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "ow-chart-8",
|
|
651
|
+
"value": {
|
|
652
|
+
"light": "#e34948",
|
|
653
|
+
"dark": "#e66767"
|
|
654
|
+
},
|
|
655
|
+
"usage": "Chart series 8 (red)."
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "ow-chart-grid",
|
|
659
|
+
"value": {
|
|
660
|
+
"light": "{ow-gray-200}",
|
|
661
|
+
"dark": "#2c313a"
|
|
662
|
+
},
|
|
663
|
+
"usage": "Chart gridlines: hairlines one step off the surface."
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "ow-chart-axis",
|
|
667
|
+
"value": {
|
|
668
|
+
"light": "{ow-gray-300}",
|
|
669
|
+
"dark": "#3a404b"
|
|
670
|
+
},
|
|
671
|
+
"usage": "A chart's baseline, a step stronger than its gridlines."
|
|
672
|
+
},
|
|
593
673
|
{
|
|
594
674
|
"name": "ow-code-block",
|
|
595
675
|
"value": "#15171c",
|