origam 2.18.6 → 2.18.8
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/CHANGELOG.md +189 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +11 -6
- package/dist/src/assets/css/tokens/light.css +8 -3
- package/dist/src/assets/scss/tokens/_dark.scss +11 -6
- package/dist/src/assets/scss/tokens/_light.scss +8 -3
- package/dist/src/components/Alert/OrigamAlert.vue +0 -4
- package/dist/src/components/Btn/OrigamBtn.vue +2 -9
- package/dist/src/components/Chart/OrigamChartMap.vue +4 -4
- package/dist/src/components/Chip/OrigamChip.vue +0 -6
- package/dist/src/components/Code/OrigamCode.vue +2 -2
- package/dist/src/components/Kbd/OrigamKbd.vue +0 -1
- package/dist/src/components/List/OrigamList.vue +0 -4
- package/dist/src/components/Stepper/OrigamStepper.vue +0 -7
- package/dist/src/components/Table/OrigamTable.vue +0 -7
- package/dist/src/components/Tabs/OrigamTabs.vue +0 -19
- package/dist/src/components/Toolbar/OrigamToolbar.vue +0 -4
- package/dist/src/consts/Code/code.const.cjs +2 -2
- package/dist/src/consts/Code/code.const.d.ts +22 -5
- package/dist/src/consts/Code/code.const.js +2 -2
- package/dist/src/interfaces/Chart/chart-map.interface.d.ts +16 -4
- package/package.json +1 -1
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
--origam-btn---width: auto;
|
|
254
254
|
--origam-btn---min-width: 64px;
|
|
255
255
|
--origam-btn---max-width: 100%;
|
|
256
|
-
--origam-btn---height: 36px;
|
|
256
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
257
257
|
--origam-btn---max-height: 100%;
|
|
258
258
|
--origam-btn---height-xs: 20px;
|
|
259
259
|
--origam-btn---height-sm: 28px;
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
781
781
|
--origam-toolbar---max-width: 100%;
|
|
782
782
|
--origam-toolbar---width: 100%;
|
|
783
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
783
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
784
784
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
785
785
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
786
786
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -2086,7 +2086,10 @@
|
|
|
2086
2086
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
2087
2087
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
2088
2088
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
2089
|
-
|
|
2089
|
+
/* #535 — was `surface---sunken`. See the matching comment in light.css:
|
|
2090
|
+
* `surface---raised` clears WCAG AA against Shiki's fixed token colours
|
|
2091
|
+
* with margin in dark mode too (measured worst case 5.79:1, #535 PR). */
|
|
2092
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
2090
2093
|
--origam-code---color: var(--origam-color__text---primary);
|
|
2091
2094
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
2092
2095
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -2989,7 +2992,7 @@
|
|
|
2989
2992
|
--origam-btn---width: auto;
|
|
2990
2993
|
--origam-btn---min-width: 64px;
|
|
2991
2994
|
--origam-btn---max-width: 100%;
|
|
2992
|
-
--origam-btn---height: 36px;
|
|
2995
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
2993
2996
|
--origam-btn---max-height: 100%;
|
|
2994
2997
|
--origam-btn---height-xs: 20px;
|
|
2995
2998
|
--origam-btn---height-sm: 28px;
|
|
@@ -3516,7 +3519,7 @@
|
|
|
3516
3519
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
3517
3520
|
--origam-toolbar---max-width: 100%;
|
|
3518
3521
|
--origam-toolbar---width: 100%;
|
|
3519
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
3522
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
3520
3523
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
3521
3524
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
3522
3525
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -4822,7 +4825,9 @@
|
|
|
4822
4825
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
4823
4826
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
4824
4827
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
4825
|
-
|
|
4828
|
+
/* #535 — was `surface---sunken`; see light.css / the top of this file
|
|
4829
|
+
* for the AA rationale (`surface---raised`, measured worst 5.79:1). */
|
|
4830
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
4826
4831
|
--origam-code---color: var(--origam-color__text---primary);
|
|
4827
4832
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
4828
4833
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
--origam-btn---width: auto;
|
|
156
156
|
--origam-btn---min-width: 64px;
|
|
157
157
|
--origam-btn---max-width: 100%;
|
|
158
|
-
--origam-btn---height: 36px;
|
|
158
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
159
159
|
--origam-btn---max-height: 100%;
|
|
160
160
|
--origam-btn---height-xs: 20px;
|
|
161
161
|
--origam-btn---height-sm: 28px;
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
683
683
|
--origam-toolbar---max-width: 100%;
|
|
684
684
|
--origam-toolbar---width: 100%;
|
|
685
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
685
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
686
686
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
687
687
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
688
688
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -1990,7 +1990,12 @@
|
|
|
1990
1990
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
1991
1991
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
1992
1992
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
1993
|
-
|
|
1993
|
+
/* #535 — was `surface---sunken`. Shiki's fixed per-token colours (see
|
|
1994
|
+
* `code.const.ts`) cannot reach 4.5:1 against several brand `sunken`
|
|
1995
|
+
* surfaces no matter how dark the theme goes; `surface---raised` is the
|
|
1996
|
+
* lightest surface already defined by every theme (own palette, no new
|
|
1997
|
+
* token) and clears AA with margin everywhere it was measured (#535 PR). */
|
|
1998
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
1994
1999
|
--origam-code---color: var(--origam-color__text---primary);
|
|
1995
2000
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
1996
2001
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
--origam-btn---width: auto;
|
|
254
254
|
--origam-btn---min-width: 64px;
|
|
255
255
|
--origam-btn---max-width: 100%;
|
|
256
|
-
--origam-btn---height: 36px;
|
|
256
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
257
257
|
--origam-btn---max-height: 100%;
|
|
258
258
|
--origam-btn---height-xs: 20px;
|
|
259
259
|
--origam-btn---height-sm: 28px;
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
781
781
|
--origam-toolbar---max-width: 100%;
|
|
782
782
|
--origam-toolbar---width: 100%;
|
|
783
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
783
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
784
784
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
785
785
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
786
786
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -2086,7 +2086,10 @@
|
|
|
2086
2086
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
2087
2087
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
2088
2088
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
2089
|
-
|
|
2089
|
+
/* #535 — was `surface---sunken`. See the matching comment in light.css:
|
|
2090
|
+
* `surface---raised` clears WCAG AA against Shiki's fixed token colours
|
|
2091
|
+
* with margin in dark mode too (measured worst case 5.79:1, #535 PR). */
|
|
2092
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
2090
2093
|
--origam-code---color: var(--origam-color__text---primary);
|
|
2091
2094
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
2092
2095
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -2989,7 +2992,7 @@
|
|
|
2989
2992
|
--origam-btn---width: auto;
|
|
2990
2993
|
--origam-btn---min-width: 64px;
|
|
2991
2994
|
--origam-btn---max-width: 100%;
|
|
2992
|
-
--origam-btn---height: 36px;
|
|
2995
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
2993
2996
|
--origam-btn---max-height: 100%;
|
|
2994
2997
|
--origam-btn---height-xs: 20px;
|
|
2995
2998
|
--origam-btn---height-sm: 28px;
|
|
@@ -3516,7 +3519,7 @@
|
|
|
3516
3519
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
3517
3520
|
--origam-toolbar---max-width: 100%;
|
|
3518
3521
|
--origam-toolbar---width: 100%;
|
|
3519
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
3522
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
3520
3523
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
3521
3524
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
3522
3525
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -4822,7 +4825,9 @@
|
|
|
4822
4825
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
4823
4826
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
4824
4827
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
4825
|
-
|
|
4828
|
+
/* #535 — was `surface---sunken`; see light.css / the top of this file
|
|
4829
|
+
* for the AA rationale (`surface---raised`, measured worst 5.79:1). */
|
|
4830
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
4826
4831
|
--origam-code---color: var(--origam-color__text---primary);
|
|
4827
4832
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
4828
4833
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
--origam-btn---width: auto;
|
|
156
156
|
--origam-btn---min-width: 64px;
|
|
157
157
|
--origam-btn---max-width: 100%;
|
|
158
|
-
--origam-btn---height: 36px;
|
|
158
|
+
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
159
159
|
--origam-btn---max-height: 100%;
|
|
160
160
|
--origam-btn---height-xs: 20px;
|
|
161
161
|
--origam-btn---height-sm: 28px;
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
--origam-toolbar---border-end-end-radius: var(--origam-radius---none);
|
|
683
683
|
--origam-toolbar---max-width: 100%;
|
|
684
684
|
--origam-toolbar---width: 100%;
|
|
685
|
-
--origam-toolbar---height: var(--origam-space---14);
|
|
685
|
+
--origam-toolbar---height: var(--origam-toolbar---height-default, var(--origam-space---14));
|
|
686
686
|
--origam-toolbar---height-compact: var(--origam-space---10);
|
|
687
687
|
--origam-toolbar---height-default: var(--origam-space---14);
|
|
688
688
|
--origam-toolbar---height-prominent: var(--origam-space---20);
|
|
@@ -1990,7 +1990,12 @@
|
|
|
1990
1990
|
--origam-date-picker-month__weeks---font-size: 0.85rem;
|
|
1991
1991
|
--origam-date-picker-month__weekday---font-size: 0.85rem;
|
|
1992
1992
|
--origam-date-picker-month__day---font-size: 0.85rem;
|
|
1993
|
-
|
|
1993
|
+
/* #535 — was `surface---sunken`. Shiki's fixed per-token colours (see
|
|
1994
|
+
* `code.const.ts`) cannot reach 4.5:1 against several brand `sunken`
|
|
1995
|
+
* surfaces no matter how dark the theme goes; `surface---raised` is the
|
|
1996
|
+
* lightest surface already defined by every theme (own palette, no new
|
|
1997
|
+
* token) and clears AA with margin everywhere it was measured (#535 PR). */
|
|
1998
|
+
--origam-code---background-color: var(--origam-color__surface---raised);
|
|
1994
1999
|
--origam-code---color: var(--origam-color__text---primary);
|
|
1995
2000
|
--origam-code---border-color: var(--origam-color__border---subtle);
|
|
1996
2001
|
--origam-code---border-width: var(--origam-border__width---thin);
|
|
@@ -458,7 +458,7 @@ defineExpose({
|
|
|
458
458
|
padding: 0 calc(16px + var(--origam-btn---density-padding-x, 0px));
|
|
459
459
|
|
|
460
460
|
width: var(--origam-btn---width, auto);
|
|
461
|
-
min-width: var(--origam-btn---min-width,
|
|
461
|
+
min-width: calc(var(--origam-btn---min-width, 64px) + var(--origam-btn---density, 0px));
|
|
462
462
|
max-width: var(--origam-btn---max-width, 100%);
|
|
463
463
|
height: calc(var(--origam-btn---height, 36px) + var(--origam-btn---density, 0px));
|
|
464
464
|
min-height: var(--origam-btn---min-height, calc(var(--origam-btn---height, 36px) + var(--origam-btn---density, 0px)));
|
|
@@ -551,9 +551,6 @@ defineExpose({
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
&--size-default {
|
|
554
|
-
--origam-btn---height: var(--origam-btn---height-md, 36px);
|
|
555
|
-
--origam-btn---font-size: 0.875rem;
|
|
556
|
-
--origam-btn---min-width: 64px;
|
|
557
554
|
padding: 0 calc(var(--origam-btn---padding-md, 16px) + var(--origam-btn---density-padding-x, 0px));
|
|
558
555
|
|
|
559
556
|
:deep(.origam-icon) {
|
|
@@ -589,7 +586,6 @@ defineExpose({
|
|
|
589
586
|
}
|
|
590
587
|
|
|
591
588
|
&--density-default {
|
|
592
|
-
--origam-btn---density: 0px;
|
|
593
589
|
--origam-btn---density-padding-x: 0px;
|
|
594
590
|
}
|
|
595
591
|
|
|
@@ -701,7 +697,7 @@ defineExpose({
|
|
|
701
697
|
&--icon {
|
|
702
698
|
--origam-btn---border-radius: var(--origam-btn---border-radius-icon, 50%);
|
|
703
699
|
|
|
704
|
-
--origam-btn---min-width:
|
|
700
|
+
--origam-btn---min-width: 0px;
|
|
705
701
|
--origam-btn---width: calc(var(--origam-btn---height, 36px) + var(--origam-btn---density, 0px));
|
|
706
702
|
|
|
707
703
|
padding: 0;
|
|
@@ -1141,8 +1137,5 @@ defineExpose({
|
|
|
1141
1137
|
|
|
1142
1138
|
--origam-btn__prepend---margin-inline-start: calc(var(--origam-btn---height) / -9);
|
|
1143
1139
|
--origam-btn__prepend---margin-inline-end: calc(var(--origam-btn---height) / 4.5);
|
|
1144
|
-
|
|
1145
|
-
--origam-btn---min-width: calc(var(--origam-btn---width, 36px) + var(--origam-btn---density, 0px));
|
|
1146
|
-
--origam-btn---min-height: calc(var(--origam-btn---height, 36px) + var(--origam-btn---density, 0px));
|
|
1147
1140
|
}
|
|
1148
1141
|
</style>
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
'origam-chart__map-country--active': hoveredCode === country.code
|
|
80
80
|
}"
|
|
81
81
|
:d="country.d"
|
|
82
|
-
:style="{ fill: country.fill, stroke: borderColor }"
|
|
82
|
+
:style="{ fill: country.fill, stroke: resolveColor(borderColor) }"
|
|
83
83
|
:data-cy="`origam-chart-map-country-${ country.code }`"
|
|
84
84
|
:tabindex="country.hasData ? 0 : -1"
|
|
85
85
|
:role="country.hasData ? 'button' : undefined"
|
|
@@ -223,8 +223,8 @@ defineOptions({
|
|
|
223
223
|
const props = defineProps({
|
|
224
224
|
mode: { type: null, required: false, default: "choropleth" },
|
|
225
225
|
colorRange: { type: Array, required: false, default: () => ["info", "danger"] },
|
|
226
|
-
defaultCountryFill: { type:
|
|
227
|
-
borderColor: { type:
|
|
226
|
+
defaultCountryFill: { type: null, required: false, default: "rgba(0,0,0,0.08)" },
|
|
227
|
+
borderColor: { type: null, required: false, default: "neutral" },
|
|
228
228
|
lineColor: { type: null, required: false, default: "primary" },
|
|
229
229
|
nodeRadius: { type: Number, required: false, default: 4 },
|
|
230
230
|
routeCurvature: { type: Number, required: false, default: 0.3 },
|
|
@@ -371,7 +371,7 @@ const allCountries = computed(() => {
|
|
|
371
371
|
if (hasData && datum !== void 0) {
|
|
372
372
|
fill = choroplethColorFor(datum.value, min, max);
|
|
373
373
|
} else {
|
|
374
|
-
fill = props.defaultCountryFill;
|
|
374
|
+
fill = resolveColor(props.defaultCountryFill);
|
|
375
375
|
}
|
|
376
376
|
return {
|
|
377
377
|
code,
|
|
@@ -402,7 +402,7 @@ defineExpose({ rebuild, copied, codeRef });
|
|
|
402
402
|
.origam-code__copy--compact {
|
|
403
403
|
flex: none;
|
|
404
404
|
--origam-btn---min-height: 0;
|
|
405
|
-
--origam-btn---min-width:
|
|
405
|
+
--origam-btn---min-width: 0px;
|
|
406
406
|
--origam-btn---height: auto;
|
|
407
407
|
--origam-btn---padding-block: var(--origam-code__compact-copy---padding-block);
|
|
408
408
|
--origam-btn---padding-inline: var(--origam-code__compact-copy---padding-inline);
|
|
@@ -445,7 +445,7 @@ defineExpose({ rebuild, copied, codeRef });
|
|
|
445
445
|
|
|
446
446
|
.origam-code__copy {
|
|
447
447
|
--origam-btn---min-height: 0;
|
|
448
|
-
--origam-btn---min-width:
|
|
448
|
+
--origam-btn---min-width: 0px;
|
|
449
449
|
--origam-btn---border-radius: var(--origam-code__copy---border-radius);
|
|
450
450
|
--origam-btn---font-size: var(--origam-code__copy---font-size);
|
|
451
451
|
--origam-btn---color: var(--origam-code__copy---color);
|
|
@@ -172,7 +172,6 @@ defineExpose({
|
|
|
172
172
|
&--variant-outlined,
|
|
173
173
|
&--variant-outlined &__key {
|
|
174
174
|
--origam-kbd---background-color: var(--origam-kbd--outlined---background-color, var(--origam-color__surface---raised, #fff));
|
|
175
|
-
--origam-kbd---border-color: var(--origam-color__border---subtle, #d4d4d4);
|
|
176
175
|
--origam-kbd---border-width: var(--origam-kbd--outlined---border-width, 1px);
|
|
177
176
|
--origam-kbd---box-shadow: 0 1px 0 0 color-mix(in srgb, currentColor 12%, transparent),
|
|
178
177
|
inset 0 1px 0 0 color-mix(in srgb, white 50%, transparent);
|
|
@@ -396,10 +396,6 @@ defineExpose({
|
|
|
396
396
|
--origam-list-group---prepend-width: var(--origam-list---slim-prepend-width, 28px);
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
&--density-default {
|
|
400
|
-
--origam-list---density: 0px;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
399
|
&--density-compact {
|
|
404
400
|
--origam-list---density: -8px;
|
|
405
401
|
}
|
|
@@ -259,13 +259,6 @@ defineExpose({
|
|
|
259
259
|
--origam-stepper---subtitle-font-size: 0.6875rem;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
&--size-default {
|
|
263
|
-
--origam-stepper---indicator-size: 32px;
|
|
264
|
-
--origam-stepper---indicator-font-size: 0.75rem;
|
|
265
|
-
--origam-stepper---title-font-size: 0.875rem;
|
|
266
|
-
--origam-stepper---subtitle-font-size: 0.75rem;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
262
|
&--size-large {
|
|
270
263
|
--origam-stepper---indicator-size: 40px;
|
|
271
264
|
--origam-stepper---indicator-font-size: 0.875rem;
|
|
@@ -238,13 +238,6 @@ defineExpose({
|
|
|
238
238
|
--origam-table__cell---padding-inline: 8px;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
&--density-default {
|
|
242
|
-
--origam-table__header-cell---padding-block: 12px;
|
|
243
|
-
--origam-table__header-cell---padding-inline: 16px;
|
|
244
|
-
--origam-table__cell---padding-block: 12px;
|
|
245
|
-
--origam-table__cell---padding-inline: 16px;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
241
|
&--density-comfortable {
|
|
249
242
|
--origam-table__header-cell---padding-block: 18px;
|
|
250
243
|
--origam-table__header-cell---padding-inline: 24px;
|
|
@@ -229,27 +229,8 @@ defineExpose({
|
|
|
229
229
|
--origam-tabs---height: 56px;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
&--density-default {
|
|
233
|
-
--origam-tabs---height: 48px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
232
|
&--density-compact {
|
|
237
233
|
--origam-tabs---height: 36px;
|
|
238
234
|
}
|
|
239
235
|
}
|
|
240
236
|
</style>
|
|
241
|
-
|
|
242
|
-
<style>
|
|
243
|
-
:root {
|
|
244
|
-
--origam-tabs---height: 48px;
|
|
245
|
-
--origam-tabs---gap: 0;
|
|
246
|
-
--origam-tabs---padding-block: 0;
|
|
247
|
-
--origam-tabs---padding-inline: 0;
|
|
248
|
-
--origam-tabs---background-color: transparent;
|
|
249
|
-
--origam-tabs---border-radius: 0;
|
|
250
|
-
--origam-tabs---border-width: 0;
|
|
251
|
-
--origam-tabs---border-style: solid;
|
|
252
|
-
--origam-tabs---border-color: currentColor;
|
|
253
|
-
--origam-tabs---color: inherit;
|
|
254
|
-
}
|
|
255
|
-
</style>
|
|
@@ -348,10 +348,6 @@ defineExpose({
|
|
|
348
348
|
--origam-toolbar---height: var(--origam-toolbar---height-compact);
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
&--density-default {
|
|
352
|
-
--origam-toolbar---height: var(--origam-toolbar---height-default);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
351
|
&--flat {
|
|
356
352
|
--origam-toolbar---box-shadow: var(--origam-toolbar__flat---box-shadow, none);
|
|
357
353
|
}
|
|
@@ -7,8 +7,8 @@ exports.SUPPORTED_LANGS = exports.CODE_LIGHT_THEME = exports.CODE_DEFAULTS = exp
|
|
|
7
7
|
var _enums = require("../../enums/index.cjs");
|
|
8
8
|
const SUPPORTED_LANGS = exports.SUPPORTED_LANGS = Object.freeze([_enums.CODE_LANG.PLAINTEXT, _enums.CODE_LANG.VUE, _enums.CODE_LANG.TS, _enums.CODE_LANG.JS, _enums.CODE_LANG.TSX, _enums.CODE_LANG.JSX, _enums.CODE_LANG.SCSS, _enums.CODE_LANG.CSS, _enums.CODE_LANG.JSON, _enums.CODE_LANG.BASH, _enums.CODE_LANG.HTML, _enums.CODE_LANG.XML, _enums.CODE_LANG.YAML, _enums.CODE_LANG.MD]);
|
|
9
9
|
const CODE_CACHE_MAX_ENTRIES = exports.CODE_CACHE_MAX_ENTRIES = 64;
|
|
10
|
-
const CODE_LIGHT_THEME = exports.CODE_LIGHT_THEME = "github-light";
|
|
11
|
-
const CODE_DARK_THEME = exports.CODE_DARK_THEME = "github-dark";
|
|
10
|
+
const CODE_LIGHT_THEME = exports.CODE_LIGHT_THEME = "github-light-high-contrast";
|
|
11
|
+
const CODE_DARK_THEME = exports.CODE_DARK_THEME = "github-dark-high-contrast";
|
|
12
12
|
const CODE_DEFAULTS = exports.CODE_DEFAULTS = Object.freeze({
|
|
13
13
|
lang: _enums.CODE_LANG.PLAINTEXT,
|
|
14
14
|
lineNumbers: false,
|
|
@@ -12,12 +12,29 @@ export declare const SUPPORTED_LANGS: ReadonlyArray<CODE_LANG>;
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const CODE_CACHE_MAX_ENTRIES = 64;
|
|
14
14
|
/**
|
|
15
|
-
* Shiki themes used by `useCode`.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Shiki themes used by `useCode`.
|
|
16
|
+
*
|
|
17
|
+
* ⛔ #535 — `github-light` / `github-dark` (the previous pair) fail WCAG AA
|
|
18
|
+
* (4.5:1) on several token categories REGARDLESS of the surface they sit on:
|
|
19
|
+
* measured against a background as light as pure `#ffffff`, the `github-light`
|
|
20
|
+
* "parameter/property" hue (`#e36209`) tops out at 3.49:1 — it cannot reach
|
|
21
|
+
* 4.5:1 by darkening or lightening the background alone, because the DS has
|
|
22
|
+
* no per-syntax-category token to recolour it (Shiki paints via its own
|
|
23
|
+
* `--shiki-light`/`--shiki-dark` inline vars, see `code.composable.ts`).
|
|
24
|
+
* `keyword`/`comment`/`tag` were close misses (~3.9–4.4:1) for the same
|
|
25
|
+
* reason. `github-light-high-contrast` / `github-dark-high-contrast` are
|
|
26
|
+
* shiki's own accessibility-tuned variants of the same GitHub palette
|
|
27
|
+
* (bundled by shiki, zero extra bytes — swapping one theme name for another).
|
|
28
|
+
* Re-measured (Node, shiki 4.3.1, `codeToHtml` output — no DOM/var()
|
|
29
|
+
* involved, these are the theme's literal per-token hex, see #535 PR):
|
|
30
|
+
* worst case across all 8 token categories × 7 marketing brand surfaces ×
|
|
31
|
+
* both modes is 4.23:1 (light, "comment" on 3 tinted brand backgrounds) —
|
|
32
|
+
* closed by the companion `--origam-color__surface---raised` background fix
|
|
33
|
+
* below (worst case then 4.77:1 light / 5.79:1 dark, Playwright-verified
|
|
34
|
+
* against the built Histoire `OrigamCode` story).
|
|
18
35
|
*/
|
|
19
|
-
export declare const CODE_LIGHT_THEME = "github-light";
|
|
20
|
-
export declare const CODE_DARK_THEME = "github-dark";
|
|
36
|
+
export declare const CODE_LIGHT_THEME = "github-light-high-contrast";
|
|
37
|
+
export declare const CODE_DARK_THEME = "github-dark-high-contrast";
|
|
21
38
|
/**
|
|
22
39
|
* Default values used by `OrigamCode`. Centralised so the story / docs /
|
|
23
40
|
* tests pull the same constants and any future drift stays visible.
|
|
@@ -16,8 +16,8 @@ export const SUPPORTED_LANGS = Object.freeze([
|
|
|
16
16
|
CODE_LANG.MD
|
|
17
17
|
]);
|
|
18
18
|
export const CODE_CACHE_MAX_ENTRIES = 64;
|
|
19
|
-
export const CODE_LIGHT_THEME = "github-light";
|
|
20
|
-
export const CODE_DARK_THEME = "github-dark";
|
|
19
|
+
export const CODE_LIGHT_THEME = "github-light-high-contrast";
|
|
20
|
+
export const CODE_DARK_THEME = "github-dark-high-contrast";
|
|
21
21
|
export const CODE_DEFAULTS = Object.freeze({
|
|
22
22
|
lang: CODE_LANG.PLAINTEXT,
|
|
23
23
|
lineNumbers: false,
|
|
@@ -91,14 +91,26 @@ export interface IChartMapProps extends IChartBaseProps {
|
|
|
91
91
|
colorRange?: [TIntent | string, TIntent | string];
|
|
92
92
|
/**
|
|
93
93
|
* Fill colour for countries that have no value in the dataset.
|
|
94
|
-
*
|
|
94
|
+
* Supports intent names and raw CSS strings, resolved the same way as
|
|
95
|
+
* `borderColor` / `lineColor` (#411 — was applied to `fill` verbatim,
|
|
96
|
+
* an intent keyword is invalid CSS there and the browser dropped the
|
|
97
|
+
* declaration, making dataless countries disappear under a theme).
|
|
98
|
+
* Default stays the literal `'rgba(0,0,0,0.08)'` — no intent token
|
|
99
|
+
* reproduces it: the literal is a semi-transparent SCRIM composited
|
|
100
|
+
* over whatever `bgColor` the chart itself renders on top of (so it
|
|
101
|
+
* self-adjusts to light/dark and to a custom `bgColor`), whereas an
|
|
102
|
+
* intent resolves to a fixed OPAQUE colour unrelated to the chart's
|
|
103
|
+
* own background. Swapping the default would trade an adaptive
|
|
104
|
+
* behaviour for a fixed one, not just move a pixel.
|
|
95
105
|
*/
|
|
96
|
-
defaultCountryFill?: string;
|
|
106
|
+
defaultCountryFill?: TIntent | string;
|
|
97
107
|
/**
|
|
98
108
|
* Stroke colour applied to all country path outlines.
|
|
99
|
-
*
|
|
109
|
+
* Supports intent names and raw CSS strings, resolved the same way as
|
|
110
|
+
* `lineColor` (#411 — was a hardcoded literal the theme could not reach).
|
|
111
|
+
* Default `'neutral'`.
|
|
100
112
|
*/
|
|
101
|
-
borderColor?: string;
|
|
113
|
+
borderColor?: TIntent | string;
|
|
102
114
|
/**
|
|
103
115
|
* Default stroke colour for flight-route arcs.
|
|
104
116
|
* Overridden per route via `IChartMapRouteDatum.color`.
|