contour-ds 1.0.0 → 1.1.0
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 +1 -1
- package/dist/build-manifest.json +44 -44
- package/dist/contour-wc.esm.js +1012 -67
- package/dist/contour-wc.esm.min.js +1 -1
- package/dist/contour-wc.js +1012 -67
- package/dist/contour-wc.min.js +1 -1
- package/dist/contour.components.json +403 -16
- package/dist/contour.css +328 -10
- package/dist/contour.d.ts +31 -0
- package/dist/contour.esm.js +12 -0
- package/dist/contour.esm.min.js +1 -1
- package/dist/contour.js +12 -0
- package/dist/contour.min.css +1 -1
- package/dist/contour.min.js +1 -1
- package/dist/docs/actions.md +1 -1
- package/dist/docs/affordances.md +1 -1
- package/dist/docs/colour.md +1 -1
- package/dist/docs/data.md +1 -1
- package/dist/docs/docs.md +1 -1
- package/dist/docs/feedback.md +1 -1
- package/dist/docs/field.md +1 -1
- package/dist/docs/forms.md +1 -1
- package/dist/docs/index.json +15 -4
- package/dist/docs/install.md +1 -1
- package/dist/docs/landing.md +1 -1
- package/dist/docs/mapengine.md +1 -1
- package/dist/docs/motion.md +1 -1
- package/dist/docs/navigation.md +1 -1
- package/dist/docs/overlays.md +1 -1
- package/dist/docs/overview.md +1 -1
- package/dist/docs/patterns.md +1 -1
- package/dist/docs/playground.md +1 -1
- package/dist/docs/principles.md +1 -1
- package/dist/docs/recipes.md +1 -1
- package/dist/docs/space.md +1 -1
- package/dist/docs/status.md +1 -1
- package/dist/docs/surfaces.md +1 -1
- package/dist/docs/theming.md +1 -1
- package/dist/docs/type.md +1 -1
- package/dist/docs/webcomponents.md +1 -1
- package/dist/registry/items/contour-core.json +1 -1
- package/dist/registry/items/contour-data.json +2 -2
- package/dist/registry/items/contour-docs.json +1 -1
- package/dist/registry/items/contour-landing.json +2 -2
- package/dist/registry/registry.json +6 -6
- package/dist/surfaces/contour-data.min.css +1 -1
- package/dist/surfaces/contour-landing.min.css +1 -1
- package/dist/wc/core.mjs +13 -5
- package/dist/wc/data.mjs +687 -26
- package/dist/wc/index.mjs +1 -1
- package/dist/wc/interaction.mjs +3 -2
- package/dist/wc/map.mjs +189 -27
- package/dist/wc/shadow.mjs +29 -1
- package/dist/wc/svg.mjs +16 -1
- package/dist/wc/ui.mjs +77 -8
- package/package.json +1 -1
package/dist/contour.css
CHANGED
|
@@ -7090,8 +7090,8 @@
|
|
|
7090
7090
|
|
|
7091
7091
|
.c-compass__label--n { inset-block-start: 0; inset-inline-start: 50%; transform: translate(-50%, -50%); }
|
|
7092
7092
|
.c-compass__label--s { inset-block-end: 0; inset-inline-start: 50%; transform: translate(-50%, 50%); }
|
|
7093
|
-
.c-compass__label--e { inset-inline-end: 0
|
|
7094
|
-
.c-compass__label--w { inset-inline-start: 0
|
|
7093
|
+
.c-compass__label--e { inset-inline-end: 0; inset-block-start: 50%; transform: translate(50%, -50%); }
|
|
7094
|
+
.c-compass__label--w { inset-inline-start: 0; inset-block-start: 50%; transform: translate(-50%, -50%); }
|
|
7095
7095
|
|
|
7096
7096
|
.c-compass__empty,
|
|
7097
7097
|
.c-compass__loading,
|
|
@@ -7307,22 +7307,34 @@
|
|
|
7307
7307
|
position: absolute;
|
|
7308
7308
|
inset: 0;
|
|
7309
7309
|
overflow: hidden;
|
|
7310
|
+
display: flex;
|
|
7311
|
+
align-items: flex-start;
|
|
7312
|
+
padding: var(--space-sm);
|
|
7313
|
+
}
|
|
7314
|
+
.c-comparison__pane--before {
|
|
7315
|
+
justify-content: flex-start;
|
|
7316
|
+
}
|
|
7317
|
+
.c-comparison__pane:not(.c-comparison__pane--before) {
|
|
7318
|
+
justify-content: flex-end;
|
|
7310
7319
|
}
|
|
7311
7320
|
|
|
7312
7321
|
.c-comparison__pane--before {
|
|
7313
|
-
clip-path: inset(0 50% 0 0);
|
|
7322
|
+
clip-path: inset(0 calc(100% - var(--comparison-pos, 50%)) 0 0);
|
|
7323
|
+
}
|
|
7324
|
+
.c-comparison__pane:not(.c-comparison__pane--before) {
|
|
7325
|
+
clip-path: inset(0 0 0 var(--comparison-pos, 50%));
|
|
7314
7326
|
}
|
|
7315
7327
|
|
|
7316
7328
|
.c-comparison__divider {
|
|
7317
7329
|
position: absolute;
|
|
7318
7330
|
inset-block: 0;
|
|
7319
|
-
inset-inline-start: 50
|
|
7331
|
+
inset-inline-start: var(--comparison-pos, 50%);
|
|
7320
7332
|
inline-size: 2px;
|
|
7321
7333
|
background: var(--color-primary);
|
|
7322
7334
|
cursor: col-resize;
|
|
7323
7335
|
touch-action: none;
|
|
7324
7336
|
z-index: 1;
|
|
7325
|
-
pointer-events:
|
|
7337
|
+
pointer-events: auto;
|
|
7326
7338
|
}
|
|
7327
7339
|
|
|
7328
7340
|
.c-comparison__divider::before {
|
|
@@ -7343,8 +7355,8 @@
|
|
|
7343
7355
|
|
|
7344
7356
|
.c-comparison__label {
|
|
7345
7357
|
position: absolute;
|
|
7346
|
-
top: var(--space-
|
|
7347
|
-
padding: var(--space-
|
|
7358
|
+
top: var(--space-sm);
|
|
7359
|
+
padding: var(--space-xs) var(--space-sm);
|
|
7348
7360
|
background: var(--color-surface-1);
|
|
7349
7361
|
border: 1px solid var(--color-border);
|
|
7350
7362
|
border-radius: var(--radius-sm);
|
|
@@ -7352,6 +7364,13 @@
|
|
|
7352
7364
|
color: var(--color-text);
|
|
7353
7365
|
z-index: 2;
|
|
7354
7366
|
}
|
|
7367
|
+
.c-comparison__divider {
|
|
7368
|
+
font-size: var(--type-micro);
|
|
7369
|
+
color: var(--color-text-muted);
|
|
7370
|
+
overflow: visible;
|
|
7371
|
+
white-space: nowrap;
|
|
7372
|
+
text-align: center;
|
|
7373
|
+
}
|
|
7355
7374
|
|
|
7356
7375
|
.c-comparison__label--before { inset-inline-start: var(--space-xs); }
|
|
7357
7376
|
.c-comparison__label--after { inset-inline-end: var(--space-xs); }
|
|
@@ -8188,6 +8207,306 @@
|
|
|
8188
8207
|
pointer-events: none;
|
|
8189
8208
|
white-space: nowrap;
|
|
8190
8209
|
}
|
|
8210
|
+
|
|
8211
|
+
/* =======================================================================
|
|
8212
|
+
GAUGE — threshold-zoned dial
|
|
8213
|
+
======================================================================= */
|
|
8214
|
+
.c-gauge {
|
|
8215
|
+
display: grid;
|
|
8216
|
+
gap: 0.5rem;
|
|
8217
|
+
justify-items: center;
|
|
8218
|
+
padding: var(--space-md);
|
|
8219
|
+
border: 1px solid var(--color-border);
|
|
8220
|
+
border-radius: var(--radius-lg);
|
|
8221
|
+
background: var(--color-surface-1);
|
|
8222
|
+
}
|
|
8223
|
+
.c-gauge__dial {
|
|
8224
|
+
inline-size: 8rem;
|
|
8225
|
+
block-size: 8rem;
|
|
8226
|
+
}
|
|
8227
|
+
.c-gauge__track {
|
|
8228
|
+
fill: none;
|
|
8229
|
+
stroke: var(--color-track);
|
|
8230
|
+
stroke-width: 8;
|
|
8231
|
+
}
|
|
8232
|
+
.c-gauge__zone {
|
|
8233
|
+
fill: none;
|
|
8234
|
+
stroke-width: 8;
|
|
8235
|
+
stroke-linecap: round;
|
|
8236
|
+
}
|
|
8237
|
+
.c-gauge__needle {
|
|
8238
|
+
stroke: var(--color-text-strong);
|
|
8239
|
+
stroke-width: 2;
|
|
8240
|
+
stroke-linecap: round;
|
|
8241
|
+
}
|
|
8242
|
+
.c-gauge__hub {
|
|
8243
|
+
fill: var(--color-text-strong);
|
|
8244
|
+
}
|
|
8245
|
+
.c-gauge__value {
|
|
8246
|
+
font-family: var(--font-display);
|
|
8247
|
+
font-size: var(--type-lg);
|
|
8248
|
+
font-weight: var(--weight-bold);
|
|
8249
|
+
font-variant-numeric: tabular-nums;
|
|
8250
|
+
color: var(--color-text-strong);
|
|
8251
|
+
}
|
|
8252
|
+
.c-gauge__band {
|
|
8253
|
+
font-family: var(--font-mono);
|
|
8254
|
+
font-size: var(--type-xs);
|
|
8255
|
+
color: var(--color-text-muted);
|
|
8256
|
+
}
|
|
8257
|
+
.c-gauge__title {
|
|
8258
|
+
font-family: var(--font-mono);
|
|
8259
|
+
font-size: var(--type-micro);
|
|
8260
|
+
text-transform: uppercase;
|
|
8261
|
+
color: var(--color-text-subtle);
|
|
8262
|
+
}
|
|
8263
|
+
.c-gauge__empty, .c-gauge__loading, .c-gauge__error {
|
|
8264
|
+
color: var(--color-text-muted);
|
|
8265
|
+
padding: var(--space-md);
|
|
8266
|
+
}
|
|
8267
|
+
|
|
8268
|
+
/* =======================================================================
|
|
8269
|
+
AXIS — chart axis with ticks
|
|
8270
|
+
======================================================================= */
|
|
8271
|
+
.c-axis {
|
|
8272
|
+
display: flex;
|
|
8273
|
+
font-family: var(--font-mono);
|
|
8274
|
+
font-size: var(--type-micro);
|
|
8275
|
+
color: var(--chart-label);
|
|
8276
|
+
}
|
|
8277
|
+
.c-axis--horizontal { flex-direction: row; justify-content: space-between; }
|
|
8278
|
+
.c-axis--vertical { flex-direction: column; justify-content: space-between; }
|
|
8279
|
+
.c-axis__tick {
|
|
8280
|
+
display: flex;
|
|
8281
|
+
align-items: center;
|
|
8282
|
+
gap: 0.25rem;
|
|
8283
|
+
}
|
|
8284
|
+
.c-axis__label { white-space: nowrap; }
|
|
8285
|
+
.c-axis__line {
|
|
8286
|
+
stroke: var(--chart-axis);
|
|
8287
|
+
stroke-width: 1;
|
|
8288
|
+
}
|
|
8289
|
+
|
|
8290
|
+
/* =======================================================================
|
|
8291
|
+
BRUSH — range-selection overlay
|
|
8292
|
+
======================================================================= */
|
|
8293
|
+
.c-brush {
|
|
8294
|
+
position: relative;
|
|
8295
|
+
display: block;
|
|
8296
|
+
inline-size: 100%;
|
|
8297
|
+
block-size: 2rem;
|
|
8298
|
+
background: var(--color-surface-2);
|
|
8299
|
+
border: 1px solid var(--color-border);
|
|
8300
|
+
border-radius: var(--radius-sm);
|
|
8301
|
+
overflow: hidden;
|
|
8302
|
+
cursor: crosshair;
|
|
8303
|
+
}
|
|
8304
|
+
.c-brush__selection {
|
|
8305
|
+
position: absolute;
|
|
8306
|
+
inset-block: 0;
|
|
8307
|
+
background: color-mix(in oklab, var(--color-primary) 24%, transparent);
|
|
8308
|
+
border-inline: 2px solid var(--color-primary);
|
|
8309
|
+
}
|
|
8310
|
+
.c-brush__handle {
|
|
8311
|
+
position: absolute;
|
|
8312
|
+
inset-block: 0;
|
|
8313
|
+
inline-size: 6px;
|
|
8314
|
+
background: var(--color-primary);
|
|
8315
|
+
cursor: ew-resize;
|
|
8316
|
+
}
|
|
8317
|
+
|
|
8318
|
+
/* =======================================================================
|
|
8319
|
+
STACKED BAR — segmented bar chart
|
|
8320
|
+
======================================================================= */
|
|
8321
|
+
.c-stacked-bar {
|
|
8322
|
+
display: flex;
|
|
8323
|
+
inline-size: 100%;
|
|
8324
|
+
block-size: 1.5rem;
|
|
8325
|
+
border-radius: var(--radius-sm);
|
|
8326
|
+
overflow: hidden;
|
|
8327
|
+
background: var(--color-track);
|
|
8328
|
+
}
|
|
8329
|
+
.c-stacked-bar__segment {
|
|
8330
|
+
block-size: 100%;
|
|
8331
|
+
min-inline-size: 2px;
|
|
8332
|
+
}
|
|
8333
|
+
|
|
8334
|
+
/* =======================================================================
|
|
8335
|
+
CATEGORY — listbox with bar tracks
|
|
8336
|
+
======================================================================= */
|
|
8337
|
+
.c-category {
|
|
8338
|
+
display: grid;
|
|
8339
|
+
gap: 0.25rem;
|
|
8340
|
+
}
|
|
8341
|
+
.c-category__item {
|
|
8342
|
+
display: grid;
|
|
8343
|
+
grid-template-columns: auto 1fr auto;
|
|
8344
|
+
align-items: center;
|
|
8345
|
+
gap: 0.5rem;
|
|
8346
|
+
padding: 0.25rem 0.5rem;
|
|
8347
|
+
border-radius: var(--radius-sm);
|
|
8348
|
+
}
|
|
8349
|
+
.c-category__bar {
|
|
8350
|
+
block-size: 6px;
|
|
8351
|
+
border-radius: var(--radius-pill);
|
|
8352
|
+
background: var(--color-primary);
|
|
8353
|
+
}
|
|
8354
|
+
.c-category__label { font-size: var(--type-sm); }
|
|
8355
|
+
.c-category__value { font-family: var(--font-mono); font-size: var(--type-xs); color: var(--color-text-muted); }
|
|
8356
|
+
|
|
8357
|
+
.c-kpi__threshold-badge {
|
|
8358
|
+
display: inline-flex;
|
|
8359
|
+
align-items: center;
|
|
8360
|
+
padding: 0.1rem 0.4rem;
|
|
8361
|
+
border-radius: var(--radius-pill);
|
|
8362
|
+
font-family: var(--font-mono);
|
|
8363
|
+
font-size: var(--type-micro);
|
|
8364
|
+
background: var(--color-surface-2);
|
|
8365
|
+
color: var(--color-text-muted);
|
|
8366
|
+
}
|
|
8367
|
+
.c-kpi__sparkline-canvas {
|
|
8368
|
+
inline-size: 100%;
|
|
8369
|
+
block-size: 1.5rem;
|
|
8370
|
+
}
|
|
8371
|
+
|
|
8372
|
+
/* =======================================================================
|
|
8373
|
+
DONUT — ring chart
|
|
8374
|
+
======================================================================= */
|
|
8375
|
+
.c-donut {
|
|
8376
|
+
display: grid;
|
|
8377
|
+
gap: 0.5rem;
|
|
8378
|
+
justify-items: center;
|
|
8379
|
+
}
|
|
8380
|
+
.c-donut__ring {
|
|
8381
|
+
inline-size: 8rem;
|
|
8382
|
+
block-size: 8rem;
|
|
8383
|
+
--donut-stroke-width: 6;
|
|
8384
|
+
}
|
|
8385
|
+
.c-donut__ring circle {
|
|
8386
|
+
stroke-width: var(--donut-stroke-width);
|
|
8387
|
+
}
|
|
8388
|
+
.c-donut__center {
|
|
8389
|
+
font-family: var(--font-display);
|
|
8390
|
+
font-size: var(--type-lg);
|
|
8391
|
+
font-weight: var(--weight-bold);
|
|
8392
|
+
font-variant-numeric: tabular-nums;
|
|
8393
|
+
}
|
|
8394
|
+
.c-donut__list {
|
|
8395
|
+
display: grid;
|
|
8396
|
+
gap: 0.25rem;
|
|
8397
|
+
inline-size: 100%;
|
|
8398
|
+
}
|
|
8399
|
+
.c-donut__item {
|
|
8400
|
+
display: flex;
|
|
8401
|
+
align-items: center;
|
|
8402
|
+
gap: 0.5rem;
|
|
8403
|
+
font-size: var(--type-sm);
|
|
8404
|
+
}
|
|
8405
|
+
.c-donut__swatch {
|
|
8406
|
+
inline-size: 0.75rem;
|
|
8407
|
+
block-size: 0.75rem;
|
|
8408
|
+
border-radius: var(--radius-xs);
|
|
8409
|
+
}
|
|
8410
|
+
|
|
8411
|
+
/* =======================================================================
|
|
8412
|
+
TIME SERIES — bar/point chart with axis
|
|
8413
|
+
======================================================================= */
|
|
8414
|
+
.c-time-series {
|
|
8415
|
+
display: grid;
|
|
8416
|
+
gap: 0.5rem;
|
|
8417
|
+
}
|
|
8418
|
+
.c-time-series__plot {
|
|
8419
|
+
display: flex;
|
|
8420
|
+
align-items: flex-end;
|
|
8421
|
+
gap: 2px;
|
|
8422
|
+
block-size: 6rem;
|
|
8423
|
+
}
|
|
8424
|
+
.c-time-series__bar {
|
|
8425
|
+
flex: 1;
|
|
8426
|
+
background: var(--color-primary);
|
|
8427
|
+
border-radius: var(--radius-xs) var(--radius-xs) 0 0;
|
|
8428
|
+
min-inline-size: 2px;
|
|
8429
|
+
}
|
|
8430
|
+
.c-time-series__point {
|
|
8431
|
+
inline-size: 6px;
|
|
8432
|
+
block-size: 6px;
|
|
8433
|
+
border-radius: 50%;
|
|
8434
|
+
background: var(--color-primary);
|
|
8435
|
+
}
|
|
8436
|
+
|
|
8437
|
+
/* =======================================================================
|
|
8438
|
+
PIVOT — cross-tab
|
|
8439
|
+
======================================================================= */
|
|
8440
|
+
.c-pivot {
|
|
8441
|
+
display: grid;
|
|
8442
|
+
overflow: auto;
|
|
8443
|
+
}
|
|
8444
|
+
.c-pivot table {
|
|
8445
|
+
border-collapse: collapse;
|
|
8446
|
+
font-size: var(--type-sm);
|
|
8447
|
+
}
|
|
8448
|
+
.c-pivot th, .c-pivot td {
|
|
8449
|
+
padding: 0.25rem 0.5rem;
|
|
8450
|
+
border: 1px solid var(--color-border);
|
|
8451
|
+
}
|
|
8452
|
+
.c-pivot th {
|
|
8453
|
+
background: var(--color-surface-2);
|
|
8454
|
+
font-family: var(--font-mono);
|
|
8455
|
+
font-size: var(--type-micro);
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
.c-brush__handle--start, .c-brush__handle--end {
|
|
8459
|
+
position: absolute;
|
|
8460
|
+
inset-block: 0;
|
|
8461
|
+
inline-size: 6px;
|
|
8462
|
+
background: var(--color-primary);
|
|
8463
|
+
cursor: ew-resize;
|
|
8464
|
+
}
|
|
8465
|
+
.c-category__empty, .c-donut__empty, .c-pivot__empty, .c-stacked-bar__empty, .c-time-series__empty {
|
|
8466
|
+
color: var(--color-text-muted);
|
|
8467
|
+
padding: var(--space-md);
|
|
8468
|
+
}
|
|
8469
|
+
|
|
8470
|
+
/* =======================================================================
|
|
8471
|
+
WIDGET STATE — unified loading/error/empty/retry wrapper
|
|
8472
|
+
======================================================================= */
|
|
8473
|
+
.c-widget-state {
|
|
8474
|
+
display: grid;
|
|
8475
|
+
gap: 0.5rem;
|
|
8476
|
+
}
|
|
8477
|
+
.c-widget-state__empty, .c-widget-state__loading, .c-widget-state__error {
|
|
8478
|
+
color: var(--color-text-muted);
|
|
8479
|
+
padding: var(--space-md);
|
|
8480
|
+
}
|
|
8481
|
+
|
|
8482
|
+
/* =======================================================================
|
|
8483
|
+
BROWNOUT — degraded-mode wrapper
|
|
8484
|
+
======================================================================= */
|
|
8485
|
+
.c-brownout[data-level="3"] .c-brownout__decorative {
|
|
8486
|
+
display: none;
|
|
8487
|
+
}
|
|
8488
|
+
.c-brownout__decorative { }
|
|
8489
|
+
|
|
8490
|
+
/* =======================================================================
|
|
8491
|
+
BIVARIATE LEGEND — 2D matrix legend
|
|
8492
|
+
======================================================================= */
|
|
8493
|
+
.c-bivariate-legend {
|
|
8494
|
+
display: grid;
|
|
8495
|
+
gap: 0.25rem;
|
|
8496
|
+
}
|
|
8497
|
+
.c-bivariate-legend__matrix {
|
|
8498
|
+
display: grid;
|
|
8499
|
+
gap: 2px;
|
|
8500
|
+
}
|
|
8501
|
+
.c-bivariate-legend__cell {
|
|
8502
|
+
aspect-ratio: 1;
|
|
8503
|
+
border-radius: var(--radius-xs);
|
|
8504
|
+
}
|
|
8505
|
+
.c-bivariate-legend__axis {
|
|
8506
|
+
font-family: var(--font-mono);
|
|
8507
|
+
font-size: var(--type-micro);
|
|
8508
|
+
color: var(--color-text-muted);
|
|
8509
|
+
}
|
|
8191
8510
|
}
|
|
8192
8511
|
|
|
8193
8512
|
|
|
@@ -9021,9 +9340,8 @@
|
|
|
9021
9340
|
Feature matrices. The "yes" column must be unambiguous.
|
|
9022
9341
|
======================================================================= */
|
|
9023
9342
|
.c-compare {
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
border-spacing: 0;
|
|
9343
|
+
display: grid;
|
|
9344
|
+
gap: var(--space-sm);
|
|
9027
9345
|
font-size: var(--type-sm);
|
|
9028
9346
|
}
|
|
9029
9347
|
|
package/dist/contour.d.ts
CHANGED
|
@@ -14,13 +14,17 @@ export type ContourComponent =
|
|
|
14
14
|
| "c-app-body"
|
|
15
15
|
| "c-avatar"
|
|
16
16
|
| "c-avatar-group"
|
|
17
|
+
| "c-axis"
|
|
17
18
|
| "c-badge"
|
|
18
19
|
| "c-badge-overflow"
|
|
19
20
|
| "c-banner"
|
|
20
21
|
| "c-bivariate"
|
|
22
|
+
| "c-bivariate-legend"
|
|
21
23
|
| "c-box"
|
|
22
24
|
| "c-brand"
|
|
23
25
|
| "c-breadcrumb"
|
|
26
|
+
| "c-brownout"
|
|
27
|
+
| "c-brush"
|
|
24
28
|
| "c-btn"
|
|
25
29
|
| "c-btn-group"
|
|
26
30
|
| "c-calendar"
|
|
@@ -28,6 +32,7 @@ export type ContourComponent =
|
|
|
28
32
|
| "c-card"
|
|
29
33
|
| "c-carousel"
|
|
30
34
|
| "c-catchment"
|
|
35
|
+
| "c-category"
|
|
31
36
|
| "c-chart"
|
|
32
37
|
| "c-chart-grid"
|
|
33
38
|
| "c-check"
|
|
@@ -64,6 +69,7 @@ export type ContourComponent =
|
|
|
64
69
|
| "c-do-dont"
|
|
65
70
|
| "c-docs-nav"
|
|
66
71
|
| "c-docs-shell"
|
|
72
|
+
| "c-donut"
|
|
67
73
|
| "c-dot"
|
|
68
74
|
| "c-drag-handle"
|
|
69
75
|
| "c-draggable"
|
|
@@ -85,6 +91,7 @@ export type ContourComponent =
|
|
|
85
91
|
| "c-flag"
|
|
86
92
|
| "c-flow-map"
|
|
87
93
|
| "c-footer"
|
|
94
|
+
| "c-gauge"
|
|
88
95
|
| "c-header"
|
|
89
96
|
| "c-heatmap"
|
|
90
97
|
| "c-hexbin"
|
|
@@ -125,6 +132,7 @@ export type ContourComponent =
|
|
|
125
132
|
| "c-palette-editor"
|
|
126
133
|
| "c-panel"
|
|
127
134
|
| "c-pill"
|
|
135
|
+
| "c-pivot"
|
|
128
136
|
| "c-plate"
|
|
129
137
|
| "c-popover"
|
|
130
138
|
| "c-pressable"
|
|
@@ -170,6 +178,7 @@ export type ContourComponent =
|
|
|
170
178
|
| "c-spinner"
|
|
171
179
|
| "c-split-button"
|
|
172
180
|
| "c-stack"
|
|
181
|
+
| "c-stacked-bar"
|
|
173
182
|
| "c-stat"
|
|
174
183
|
| "c-status-light"
|
|
175
184
|
| "c-stepper"
|
|
@@ -191,6 +200,7 @@ export type ContourComponent =
|
|
|
191
200
|
| "c-threshold"
|
|
192
201
|
| "c-time-picker"
|
|
193
202
|
| "c-time-range"
|
|
203
|
+
| "c-time-series"
|
|
194
204
|
| "c-time-slider"
|
|
195
205
|
| "c-timeline"
|
|
196
206
|
| "c-toast"
|
|
@@ -204,6 +214,7 @@ export type ContourComponent =
|
|
|
204
214
|
| "c-version"
|
|
205
215
|
| "c-version-banner"
|
|
206
216
|
| "c-virtual-list"
|
|
217
|
+
| "c-widget-state"
|
|
207
218
|
;
|
|
208
219
|
|
|
209
220
|
export type ContourToken =
|
|
@@ -646,13 +657,17 @@ declare global {
|
|
|
646
657
|
"contour-app-body": ContourElement;
|
|
647
658
|
"contour-avatar": ContourElement;
|
|
648
659
|
"contour-avatar-group": ContourElement;
|
|
660
|
+
"contour-axis": ContourElement;
|
|
649
661
|
"contour-badge": ContourElement;
|
|
650
662
|
"contour-badge-overflow": ContourElement;
|
|
651
663
|
"contour-banner": ContourElement;
|
|
652
664
|
"contour-bivariate": ContourElement;
|
|
665
|
+
"contour-bivariate-legend": ContourElement;
|
|
653
666
|
"contour-box": ContourElement;
|
|
654
667
|
"contour-brand": ContourElement;
|
|
655
668
|
"contour-breadcrumb": ContourElement;
|
|
669
|
+
"contour-brownout": ContourElement;
|
|
670
|
+
"contour-brush": ContourElement;
|
|
656
671
|
"contour-btn": ContourElement;
|
|
657
672
|
"contour-btn-group": ContourElement;
|
|
658
673
|
"contour-calendar": ContourElement;
|
|
@@ -660,6 +675,7 @@ declare global {
|
|
|
660
675
|
"contour-card": ContourElement;
|
|
661
676
|
"contour-carousel": ContourElement;
|
|
662
677
|
"contour-catchment": ContourElement;
|
|
678
|
+
"contour-category": ContourElement;
|
|
663
679
|
"contour-chart": ContourElement;
|
|
664
680
|
"contour-chart-grid": ContourElement;
|
|
665
681
|
"contour-check": ContourElement;
|
|
@@ -696,6 +712,7 @@ declare global {
|
|
|
696
712
|
"contour-do-dont": ContourElement;
|
|
697
713
|
"contour-docs-nav": ContourElement;
|
|
698
714
|
"contour-docs-shell": ContourElement;
|
|
715
|
+
"contour-donut": ContourElement;
|
|
699
716
|
"contour-dot": ContourElement;
|
|
700
717
|
"contour-drag-handle": ContourElement;
|
|
701
718
|
"contour-draggable": ContourElement;
|
|
@@ -717,6 +734,7 @@ declare global {
|
|
|
717
734
|
"contour-flag": ContourElement;
|
|
718
735
|
"contour-flow-map": ContourElement;
|
|
719
736
|
"contour-footer": ContourElement;
|
|
737
|
+
"contour-gauge": ContourElement;
|
|
720
738
|
"contour-header": ContourElement;
|
|
721
739
|
"contour-heatmap": ContourElement;
|
|
722
740
|
"contour-hexbin": ContourElement;
|
|
@@ -757,6 +775,7 @@ declare global {
|
|
|
757
775
|
"contour-palette-editor": ContourElement;
|
|
758
776
|
"contour-panel": ContourElement;
|
|
759
777
|
"contour-pill": ContourElement;
|
|
778
|
+
"contour-pivot": ContourElement;
|
|
760
779
|
"contour-plate": ContourElement;
|
|
761
780
|
"contour-popover": ContourElement;
|
|
762
781
|
"contour-pressable": ContourElement;
|
|
@@ -796,16 +815,21 @@ declare global {
|
|
|
796
815
|
"contour-shadow-app": ContourElement;
|
|
797
816
|
"contour-shadow-app-body": ContourElement;
|
|
798
817
|
"contour-shadow-avatar": ContourElement;
|
|
818
|
+
"contour-shadow-axis": ContourElement;
|
|
799
819
|
"contour-shadow-badge": ContourElement;
|
|
800
820
|
"contour-shadow-bivariate": ContourElement;
|
|
821
|
+
"contour-shadow-bivariate-legend": ContourElement;
|
|
801
822
|
"contour-shadow-box": ContourElement;
|
|
802
823
|
"contour-shadow-brand": ContourElement;
|
|
803
824
|
"contour-shadow-breadcrumb": ContourElement;
|
|
825
|
+
"contour-shadow-brownout": ContourElement;
|
|
826
|
+
"contour-shadow-brush": ContourElement;
|
|
804
827
|
"contour-shadow-btn": ContourElement;
|
|
805
828
|
"contour-shadow-btn-group": ContourElement;
|
|
806
829
|
"contour-shadow-callout": ContourElement;
|
|
807
830
|
"contour-shadow-card": ContourElement;
|
|
808
831
|
"contour-shadow-catchment": ContourElement;
|
|
832
|
+
"contour-shadow-category": ContourElement;
|
|
809
833
|
"contour-shadow-chart": ContourElement;
|
|
810
834
|
"contour-shadow-chart-grid": ContourElement;
|
|
811
835
|
"contour-shadow-check": ContourElement;
|
|
@@ -835,6 +859,7 @@ declare global {
|
|
|
835
859
|
"contour-shadow-do-dont": ContourElement;
|
|
836
860
|
"contour-shadow-docs-nav": ContourElement;
|
|
837
861
|
"contour-shadow-docs-shell": ContourElement;
|
|
862
|
+
"contour-shadow-donut": ContourElement;
|
|
838
863
|
"contour-shadow-dot": ContourElement;
|
|
839
864
|
"contour-shadow-drag-handle": ContourElement;
|
|
840
865
|
"contour-shadow-draggable": ContourElement;
|
|
@@ -852,6 +877,7 @@ declare global {
|
|
|
852
877
|
"contour-shadow-flag": ContourElement;
|
|
853
878
|
"contour-shadow-flow-map": ContourElement;
|
|
854
879
|
"contour-shadow-footer": ContourElement;
|
|
880
|
+
"contour-shadow-gauge": ContourElement;
|
|
855
881
|
"contour-shadow-header": ContourElement;
|
|
856
882
|
"contour-shadow-heatmap": ContourElement;
|
|
857
883
|
"contour-shadow-hexbin": ContourElement;
|
|
@@ -924,6 +950,7 @@ declare global {
|
|
|
924
950
|
"contour-shadow-sparkline": ContourElement;
|
|
925
951
|
"contour-shadow-spinner": ContourElement;
|
|
926
952
|
"contour-shadow-stack": ContourElement;
|
|
953
|
+
"contour-shadow-stacked-bar": ContourElement;
|
|
927
954
|
"contour-shadow-stat": ContourElement;
|
|
928
955
|
"contour-shadow-steps": ContourElement;
|
|
929
956
|
"contour-shadow-streaming-chart": ContourElement;
|
|
@@ -948,6 +975,7 @@ declare global {
|
|
|
948
975
|
"contour-shadow-tree": ContourElement;
|
|
949
976
|
"contour-shadow-version": ContourElement;
|
|
950
977
|
"contour-shadow-version-banner": ContourElement;
|
|
978
|
+
"contour-shadow-widget-state": ContourElement;
|
|
951
979
|
"contour-sheet": ContourElement;
|
|
952
980
|
"contour-shortcut": ContourElement;
|
|
953
981
|
"contour-shortcut-list": ContourElement;
|
|
@@ -964,6 +992,7 @@ declare global {
|
|
|
964
992
|
"contour-spinner": ContourElement;
|
|
965
993
|
"contour-split-button": ContourElement;
|
|
966
994
|
"contour-stack": ContourElement;
|
|
995
|
+
"contour-stacked-bar": ContourElement;
|
|
967
996
|
"contour-stat": ContourElement;
|
|
968
997
|
"contour-status-light": ContourElement;
|
|
969
998
|
"contour-stepper": ContourElement;
|
|
@@ -985,6 +1014,7 @@ declare global {
|
|
|
985
1014
|
"contour-threshold": ContourElement;
|
|
986
1015
|
"contour-time-picker": ContourElement;
|
|
987
1016
|
"contour-time-range": ContourElement;
|
|
1017
|
+
"contour-time-series": ContourElement;
|
|
988
1018
|
"contour-time-slider": ContourElement;
|
|
989
1019
|
"contour-timeline": ContourElement;
|
|
990
1020
|
"contour-toast": ContourElement;
|
|
@@ -998,5 +1028,6 @@ declare global {
|
|
|
998
1028
|
"contour-version": ContourElement;
|
|
999
1029
|
"contour-version-banner": ContourElement;
|
|
1000
1030
|
"contour-virtual-list": ContourElement;
|
|
1031
|
+
"contour-widget-state": ContourElement;
|
|
1001
1032
|
}
|
|
1002
1033
|
}
|
package/dist/contour.esm.js
CHANGED
|
@@ -1641,6 +1641,18 @@
|
|
|
1641
1641
|
if (el) goTo(el);
|
|
1642
1642
|
},
|
|
1643
1643
|
copy: async (text) => copyText(text),
|
|
1644
|
+
format: {
|
|
1645
|
+
number: (value, format, locale) => {
|
|
1646
|
+
const n = Number(value);
|
|
1647
|
+
if (!Number.isFinite(n)) return String(value);
|
|
1648
|
+
if (format === "percent") return (n * 100).toFixed(0) + "%";
|
|
1649
|
+
try { return new Intl.NumberFormat(locale || undefined).format(n); } catch (e) { return String(n); }
|
|
1650
|
+
},
|
|
1651
|
+
time: (value, locale) => {
|
|
1652
|
+
try { return new Intl.DateTimeFormat(locale || undefined).format(new Date(value)); } catch (e) { return String(value); }
|
|
1653
|
+
},
|
|
1654
|
+
locale: (locale) => locale || (typeof navigator !== "undefined" ? navigator.language : "en"),
|
|
1655
|
+
},
|
|
1644
1656
|
chart: { scale: linearScale, ticks: niceTicks, datum: datum },
|
|
1645
1657
|
commands: { register: registerCommand, list: listCommands },
|
|
1646
1658
|
});
|