nuance-ui 0.1.44 → 0.1.45
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/module.json +1 -1
- package/dist/runtime/components/badge.vue +10 -16
- package/dist/runtime/components/table/index.d.ts +3 -0
- package/dist/runtime/components/table/ui/table-sort-icon.d.vue.ts +24 -0
- package/dist/runtime/components/table/ui/table-sort-icon.vue +18 -0
- package/dist/runtime/components/table/ui/table-sort-icon.vue.d.ts +24 -0
- package/dist/runtime/components/table/ui/table-sortable-header.d.vue.ts +27 -0
- package/dist/runtime/components/table/ui/table-sortable-header.vue +41 -0
- package/dist/runtime/components/table/ui/table-sortable-header.vue.d.ts +27 -0
- package/dist/runtime/components/table/{table.d.vue.ts → ui/table.d.vue.ts} +1 -1
- package/dist/runtime/components/table/{table.vue → ui/table.vue} +44 -29
- package/dist/runtime/components/table/{table.vue.d.ts → ui/table.vue.d.ts} +1 -1
- package/dist/runtime/styles/light-theme.css +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -162,6 +162,16 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
162
162
|
width: var(--badge-height);
|
|
163
163
|
padding-inline: 2px;
|
|
164
164
|
}
|
|
165
|
+
|
|
166
|
+
&:where([data-variant='dot']) {
|
|
167
|
+
@mixin where-light {
|
|
168
|
+
--badge-color: var(--color-black);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@mixin where-dark {
|
|
172
|
+
--badge-color: var(--color-white);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
165
175
|
}
|
|
166
176
|
|
|
167
177
|
.dot {
|
|
@@ -175,22 +185,6 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
175
185
|
border-radius: var(--badge-dot-size);
|
|
176
186
|
|
|
177
187
|
background-color: var(--badge-dot-color, var(--badge-color));
|
|
178
|
-
|
|
179
|
-
@mixin where-light {
|
|
180
|
-
border-color: var(--color-gray-4);
|
|
181
|
-
|
|
182
|
-
color: var(--color-black);
|
|
183
|
-
|
|
184
|
-
background-color: var(--color-white);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@mixin where-dark {
|
|
188
|
-
border-color: var(--color-dark-5);
|
|
189
|
-
|
|
190
|
-
color: var(--color-white);
|
|
191
|
-
|
|
192
|
-
background-color: var(--color-dark-5);
|
|
193
|
-
}
|
|
194
188
|
}
|
|
195
189
|
|
|
196
190
|
.label {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Column, SortDirection } from '@tanstack/vue-table';
|
|
2
|
+
import type { TableData } from '../model.js';
|
|
3
|
+
export interface TableSortIconProps<TData extends TableData> {
|
|
4
|
+
column: Column<TData>;
|
|
5
|
+
icons?: Record<SortDirection | 'off', string>;
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: <TData extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableSortIconProps<TData>> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import defu from "defu";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
const { column, icons } = defineProps({
|
|
5
|
+
column: { type: Object, required: true },
|
|
6
|
+
icons: { type: Object, required: false }
|
|
7
|
+
});
|
|
8
|
+
const resolvedIcons = computed(() => defu(icons, {
|
|
9
|
+
asc: "gravity-ui:bars-descending-align-left-arrow-up",
|
|
10
|
+
desc: "gravity-ui:bars-descending-align-left-arrow-down",
|
|
11
|
+
off: "gravity-ui:bars-descending-align-left"
|
|
12
|
+
}));
|
|
13
|
+
const name = computed(() => column.getIsSorted() ? column.getIsSorted() === "asc" ? resolvedIcons.value.asc : resolvedIcons.value.desc : resolvedIcons.value.off);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<Icon :name />
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Column, SortDirection } from '@tanstack/vue-table';
|
|
2
|
+
import type { TableData } from '../model.js';
|
|
3
|
+
export interface TableSortIconProps<TData extends TableData> {
|
|
4
|
+
column: Column<TData>;
|
|
5
|
+
icons?: Record<SortDirection | 'off', string>;
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: <TData extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableSortIconProps<TData>> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ButtonProps } from '../../button/button.vue.js';
|
|
2
|
+
import type { TableData } from '../model.js';
|
|
3
|
+
import type { TableSortIconProps } from './table-sort-icon.vue.js';
|
|
4
|
+
export interface TableSortableHeaderProps<TData extends TableData> extends ButtonProps, TableSortIconProps<TData> {
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: <TData extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableSortableHeaderProps<TData>> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
} & {
|
|
15
|
+
rightSection?: (props: {}) => any;
|
|
16
|
+
};
|
|
17
|
+
emit: {};
|
|
18
|
+
}>) => import("vue").VNode & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
26
|
+
[K in keyof T as K]: T[K];
|
|
27
|
+
}) & {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Button from "../../button/button.vue";
|
|
3
|
+
import TableSortIcon from "./table-sort-icon.vue";
|
|
4
|
+
const {
|
|
5
|
+
column,
|
|
6
|
+
icons,
|
|
7
|
+
size = "compact-sm",
|
|
8
|
+
variant = "subtle",
|
|
9
|
+
color = "gray",
|
|
10
|
+
...rest
|
|
11
|
+
} = defineProps({
|
|
12
|
+
size: { type: null, required: false },
|
|
13
|
+
spacing: { type: String, required: false },
|
|
14
|
+
variant: { type: String, required: false },
|
|
15
|
+
gradient: { type: Object, required: false },
|
|
16
|
+
loading: { type: Boolean, required: false },
|
|
17
|
+
color: { type: null, required: false },
|
|
18
|
+
radius: { type: [String, Number], required: false },
|
|
19
|
+
classes: { type: Object, required: false },
|
|
20
|
+
leftSectionPE: { type: null, required: false },
|
|
21
|
+
leftSectionProps: { type: Object, required: false },
|
|
22
|
+
rightSectionPE: { type: null, required: false },
|
|
23
|
+
rightSectionProps: { type: Object, required: false },
|
|
24
|
+
is: { type: null, required: false },
|
|
25
|
+
mod: { type: [Object, Array, null], required: false },
|
|
26
|
+
column: { type: Object, required: true },
|
|
27
|
+
icons: { type: Object, required: false }
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<Button :size :variant :color v-bind='rest'>
|
|
33
|
+
<template #leftSection>
|
|
34
|
+
<TableSortIcon :column :icons />
|
|
35
|
+
</template>
|
|
36
|
+
<slot />
|
|
37
|
+
<template v-if='!!$slots.rightSection' #rightSection>
|
|
38
|
+
<slot name='rightSection' />
|
|
39
|
+
</template>
|
|
40
|
+
</Button>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ButtonProps } from '../../button/button.vue.js';
|
|
2
|
+
import type { TableData } from '../model.js';
|
|
3
|
+
import type { TableSortIconProps } from './table-sort-icon.vue.js';
|
|
4
|
+
export interface TableSortableHeaderProps<TData extends TableData> extends ButtonProps, TableSortIconProps<TData> {
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: <TData extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableSortableHeaderProps<TData>> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {
|
|
13
|
+
default?: (props: {}) => any;
|
|
14
|
+
} & {
|
|
15
|
+
rightSection?: (props: {}) => any;
|
|
16
|
+
};
|
|
17
|
+
emit: {};
|
|
18
|
+
}>) => import("vue").VNode & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} : {
|
|
26
|
+
[K in keyof T as K]: T[K];
|
|
27
|
+
}) & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowPinningState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/vue-table';
|
|
2
|
-
import type { TableData, TableProps, TableSlots } from '
|
|
2
|
+
import type { TableData, TableProps, TableSlots } from '../model.js';
|
|
3
3
|
declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(TableProps<T> & {
|
|
5
5
|
globalFilter?: string;
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
import { reactivePick, unrefElement } from "@vueuse/core";
|
|
11
11
|
import { useStyleResolver } from "#imports";
|
|
12
12
|
import { computed, ref, useTemplateRef, watch } from "vue";
|
|
13
|
-
import { getThemeColor } from "
|
|
14
|
-
import Box from "
|
|
15
|
-
import { createRowHandlers, processColumns, resolveValue, valueUpdater } from "
|
|
13
|
+
import { getThemeColor } from "../../../utils";
|
|
14
|
+
import Box from "../../box.vue";
|
|
15
|
+
import { createRowHandlers, processColumns, resolveValue, valueUpdater } from "../lib";
|
|
16
16
|
defineOptions({ inheritAttrs: false });
|
|
17
17
|
const props = defineProps({
|
|
18
18
|
data: { type: Array, required: false },
|
|
@@ -371,19 +371,8 @@ defineExpose({
|
|
|
371
371
|
--table-padding-y: .5rem;
|
|
372
372
|
--vertical-align: baseline;
|
|
373
373
|
|
|
374
|
-
@mixin where-light {
|
|
375
|
-
--table-active-bg: alpha(var(--color-slate-1), .5);
|
|
376
|
-
--table-c: var(--color-slate-7);
|
|
377
|
-
--table-bd-color: var(--color-slate-3);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
@mixin where-dark {
|
|
381
|
-
--table-active-bg: alpha(var(--color-slate-7), .5);
|
|
382
|
-
--table-c: var(--color-slate-4);
|
|
383
|
-
--table-bd-color: var(--color-slate-7);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
374
|
position: relative;
|
|
375
|
+
|
|
387
376
|
overflow: auto;
|
|
388
377
|
|
|
389
378
|
&:not([data-virtualize]) {
|
|
@@ -391,15 +380,28 @@ defineExpose({
|
|
|
391
380
|
overflow: clip;
|
|
392
381
|
}
|
|
393
382
|
|
|
394
|
-
.tbody
|
|
383
|
+
.tbody>tr:not(:last-of-type) {
|
|
395
384
|
border-bottom: 1px solid var(--table-bd-color);
|
|
396
385
|
}
|
|
397
386
|
}
|
|
387
|
+
|
|
388
|
+
@mixin where-light {
|
|
389
|
+
--table-active-bg: alpha(var(--color-slate-1), .5);
|
|
390
|
+
--table-c: var(--color-slate-7);
|
|
391
|
+
--table-bd-color: var(--color-slate-3);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@mixin where-dark {
|
|
395
|
+
--table-active-bg: alpha(var(--color-slate-7), .5);
|
|
396
|
+
--table-c: var(--color-slate-4);
|
|
397
|
+
--table-bd-color: var(--color-slate-7);
|
|
398
|
+
}
|
|
398
399
|
}
|
|
399
400
|
|
|
400
401
|
.table {
|
|
401
|
-
min-width: 100%;
|
|
402
402
|
border-collapse: collapse;
|
|
403
|
+
|
|
404
|
+
min-width: 100%;
|
|
403
405
|
}
|
|
404
406
|
|
|
405
407
|
.thead {
|
|
@@ -407,18 +409,22 @@ defineExpose({
|
|
|
407
409
|
|
|
408
410
|
&[data-loading]::after {
|
|
409
411
|
content: '';
|
|
412
|
+
|
|
410
413
|
position: absolute;
|
|
411
414
|
z-index: 1;
|
|
415
|
+
|
|
412
416
|
height: 1px;
|
|
417
|
+
|
|
413
418
|
background-color: alpha(var(--table-loader-color), .75);
|
|
419
|
+
|
|
414
420
|
animation: var(--table-loader-animation);
|
|
415
421
|
}
|
|
416
422
|
|
|
417
423
|
&[data-sticky] {
|
|
418
424
|
position: sticky;
|
|
425
|
+
z-index: 1;
|
|
419
426
|
top: 0;
|
|
420
427
|
inset-inline: 0rem;
|
|
421
|
-
z-index: 1;
|
|
422
428
|
|
|
423
429
|
background-color: alpha(var(--color-body), .75);
|
|
424
430
|
backdrop-filter: blur(8px);
|
|
@@ -426,11 +432,12 @@ defineExpose({
|
|
|
426
432
|
}
|
|
427
433
|
|
|
428
434
|
.th {
|
|
429
|
-
font-weight: 600;
|
|
430
435
|
padding-block: var(--table-padding-y);
|
|
431
436
|
padding-inline: var(--table-padding-x);
|
|
432
|
-
|
|
437
|
+
|
|
438
|
+
font-weight: 600;
|
|
433
439
|
color: var(--table-c);
|
|
440
|
+
text-align: left;
|
|
434
441
|
vertical-align: var(--vertical-align);
|
|
435
442
|
|
|
436
443
|
&:has([role='checkbox']) {
|
|
@@ -442,6 +449,7 @@ defineExpose({
|
|
|
442
449
|
.tr td[data-pinned] {
|
|
443
450
|
position: sticky;
|
|
444
451
|
z-index: 1;
|
|
452
|
+
|
|
445
453
|
background-color: alpha(var(--color-body), .75);
|
|
446
454
|
}
|
|
447
455
|
|
|
@@ -454,9 +462,9 @@ defineExpose({
|
|
|
454
462
|
|
|
455
463
|
&[data-sticky] {
|
|
456
464
|
position: sticky;
|
|
465
|
+
z-index: 1;
|
|
457
466
|
bottom: 0;
|
|
458
467
|
inset-inline: 0rem;
|
|
459
|
-
z-index: 1;
|
|
460
468
|
|
|
461
469
|
background-color: var(--color-body);
|
|
462
470
|
backdrop-filter: blur(8px);
|
|
@@ -468,6 +476,7 @@ defineExpose({
|
|
|
468
476
|
&:hover {
|
|
469
477
|
background-color: var(--table-active-bg);
|
|
470
478
|
}
|
|
479
|
+
|
|
471
480
|
&:focus-visible {
|
|
472
481
|
outline: 1px solid var(--table-color);
|
|
473
482
|
}
|
|
@@ -478,10 +487,11 @@ defineExpose({
|
|
|
478
487
|
}
|
|
479
488
|
|
|
480
489
|
td {
|
|
481
|
-
white-space: nowrap;
|
|
482
490
|
padding-block: var(--table-padding-y);
|
|
483
491
|
padding-inline: var(--table-padding-x);
|
|
492
|
+
|
|
484
493
|
color: var(--table-c);
|
|
494
|
+
white-space: nowrap;
|
|
485
495
|
vertical-align: var(--vertical-align);
|
|
486
496
|
|
|
487
497
|
&:has([role='checkbox']) {
|
|
@@ -494,26 +504,31 @@ defineExpose({
|
|
|
494
504
|
position: absolute;
|
|
495
505
|
z-index: 1;
|
|
496
506
|
left: 0;
|
|
507
|
+
|
|
497
508
|
width: 100%;
|
|
498
509
|
height: 1px;
|
|
510
|
+
|
|
499
511
|
background-color: var(--table-bd-color);
|
|
500
512
|
}
|
|
501
513
|
|
|
502
514
|
.loading,
|
|
503
515
|
.empty {
|
|
504
516
|
padding-inline: 1.5rem;
|
|
517
|
+
|
|
505
518
|
text-align: center;
|
|
506
519
|
}
|
|
507
520
|
|
|
508
521
|
@keyframes carousel {
|
|
509
|
-
0
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
transform:translate(-100%)
|
|
522
|
+
0% {
|
|
523
|
+
transform: translate(-100%);
|
|
524
|
+
|
|
525
|
+
width: 50%;
|
|
514
526
|
}
|
|
515
|
-
|
|
516
|
-
|
|
527
|
+
|
|
528
|
+
to {
|
|
529
|
+
transform: translate(200%);
|
|
530
|
+
|
|
531
|
+
width: 50%;
|
|
517
532
|
}
|
|
518
533
|
}
|
|
519
534
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowPinningState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/vue-table';
|
|
2
|
-
import type { TableData, TableProps, TableSlots } from '
|
|
2
|
+
import type { TableData, TableProps, TableSlots } from '../model.js';
|
|
3
3
|
declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(TableProps<T> & {
|
|
5
5
|
globalFilter?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{@mixin light-root{--primary-color-contrast:var(--color-white);--color-bright:var(--color-black);--color-text:#000;--color-body:#fff;--color-error:var(--color-red-6);--color-placeholder:var(--color-gray-5);--color-anchor:var(--color-blue-6);--color-default:var(--color-white);--color-default-hover:var(--color-gray-0);--color-default-color:var(--color-black);--color-default-border:var(--color-gray-4);--color-dimmed:var(--color-gray-6);--color-disabled:var(--color-gray-2);--color-disabled-text:var(--color-gray-5);--color-disabled-border:var(--color-gray-3);--color-dark-color:var(--color-dark-filled);--color-dark-filled:var(--color-dark-6);--color-dark-filled-hover:var(--color-dark-7);--color-dark-light:alpha(var(--color-dark-6),0.1);--color-dark-light-hover:alpha(var(--color-dark-6),0.12);--color-dark-light-color:var(--color-dark-6);--color-dark-outline:var(--color-dark-6);--color-dark-outline-hover:alpha(var(--color-dark-6),0.05);--color-gray-color:var(--color-gray-filled);--color-gray-filled:var(--color-gray-6);--color-gray-filled-hover:var(--color-gray-7);--color-gray-light:alpha(var(--color-gray-6),0.1);--color-gray-light-hover:alpha(var(--color-gray-6),0.12);--color-gray-light-color:var(--color-gray-
|
|
1
|
+
:root{@mixin light-root{--primary-color-contrast:var(--color-white);--color-bright:var(--color-black);--color-text:#000;--color-body:#fff;--color-error:var(--color-red-6);--color-placeholder:var(--color-gray-5);--color-anchor:var(--color-blue-6);--color-default:var(--color-white);--color-default-hover:var(--color-gray-0);--color-default-color:var(--color-black);--color-default-border:var(--color-gray-4);--color-dimmed:var(--color-gray-6);--color-disabled:var(--color-gray-2);--color-disabled-text:var(--color-gray-5);--color-disabled-border:var(--color-gray-3);--color-dark-color:var(--color-dark-filled);--color-dark-filled:var(--color-dark-6);--color-dark-filled-hover:var(--color-dark-7);--color-dark-light:alpha(var(--color-dark-6),0.1);--color-dark-light-hover:alpha(var(--color-dark-6),0.12);--color-dark-light-color:var(--color-dark-6);--color-dark-outline:var(--color-dark-6);--color-dark-outline-hover:alpha(var(--color-dark-6),0.05);--color-gray-color:var(--color-gray-filled);--color-gray-filled:var(--color-gray-6);--color-gray-filled-hover:var(--color-gray-7);--color-gray-light:alpha(var(--color-gray-6),0.1);--color-gray-light-hover:alpha(var(--color-gray-6),0.12);--color-gray-light-color:var(--color-gray-8);--color-gray-outline:var(--color-gray-8);--color-gray-outline-hover:alpha(var(--color-gray-6),0.05);--color-red-color:var(--color-red-filled);--color-red-filled:var(--color-red-6);--color-red-filled-hover:var(--color-red-7);--color-red-light:alpha(var(--color-red-8),.1);--color-red-light-hover:alpha(var(--color-red-8),.12);--color-red-light-color:var(--color-red-6);--color-red-outline:var(--color-red-6);--color-red-outline-hover:alpha(var(--color-red-8),.01);--color-pink-color:var(--color-pink-filled);--color-pink-filled:var(--color-pink-6);--color-pink-filled-hover:var(--color-pink-7);--color-pink-light:alpha(var(--color-pink-6),0.1);--color-pink-light-hover:alpha(var(--color-pink-6),0.12);--color-pink-light-color:var(--color-pink-6);--color-pink-outline:var(--color-pink-6);--color-pink-outline-hover:alpha(var(--color-pink-6),0.05);--color-grape-color:var(--color-grape-filled);--color-grape-filled:var(--color-grape-6);--color-grape-filled-hover:var(--color-grape-7);--color-grape-light:alpha(var(--color-grape-6),0.1);--color-grape-light-hover:alpha(var(--color-grape-6),0.12);--color-grape-light-color:var(--color-grape-6);--color-grape-outline:var(--color-grape-6);--color-grape-outline-hover:alpha(var(--color-grape-6),0.05);--color-violet-color:var(--color-violet-filled);--color-violet-filled:var(--color-violet-6);--color-violet-filled-hover:var(--color-violet-7);--color-violet-light:alpha(var(--color-violet-6),0.1);--color-violet-light-hover:alpha(var(--color-violet-6),0.12);--color-violet-light-color:var(--color-violet-6);--color-violet-outline:var(--color-violet-6);--color-violet-outline-hover:alpha(var(--color-violet-6),0.05);--color-indigo-color:var(--color-indigo-filled);--color-indigo-filled:var(--color-indigo-6);--color-indigo-filled-hover:var(--color-indigo-7);--color-indigo-light:alpha(var(--color-indigo-6),0.1);--color-indigo-light-hover:alpha(var(--color-indigo-6),0.12);--color-indigo-light-color:var(--color-indigo-6);--color-indigo-outline:var(--color-indigo-6);--color-indigo-outline-hover:alpha(var(--color-indigo-6),0.05);--color-blue-color:var(--color-blue-filled);--color-blue-filled:var(--color-blue-6);--color-blue-filled-hover:var(--color-blue-7);--color-blue-light:alpha(var(--color-blue-6),0.1);--color-blue-light-hover:alpha(var(--color-blue-6),0.12);--color-blue-light-color:var(--color-blue-6);--color-blue-outline:var(--color-blue-6);--color-blue-outline-hover:alpha(var(--color-blue-6),0.05);--color-cyan-color:var(--color-cyan-filled);--color-cyan-filled:var(--color-cyan-6);--color-cyan-filled-hover:var(--color-cyan-7);--color-cyan-light:alpha(var(--color-cyan-6),0.1);--color-cyan-light-hover:alpha(var(--color-cyan-6),0.12);--color-cyan-light-color:var(--color-cyan-6);--color-cyan-outline:var(--color-cyan-6);--color-cyan-outline-hover:alpha(var(--color-cyan-6),0.05);--color-teal-color:var(--color-teal-filled);--color-teal-filled:var(--color-teal-6);--color-teal-filled-hover:var(--color-teal-7);--color-teal-light:alpha(var(--color-teal-6),0.1);--color-teal-light-hover:alpha(var(--color-teal-6),0.12);--color-teal-light-color:var(--color-teal-6);--color-teal-outline:var(--color-teal-6);--color-teal-outline-hover:alpha(var(--color-teal-6),0.05);--color-green-color:var(--color-green-filled);--color-green-filled:var(--color-green-6);--color-green-filled-hover:var(--color-green-7);--color-green-light:alpha(var(--color-green-6),0.1);--color-green-light-hover:alpha(var(--color-green-6),0.12);--color-green-light-color:var(--color-green-6);--color-green-outline:var(--color-green-6);--color-green-outline-hover:alpha(var(--color-green-6),0.05);--color-lime-color:var(--color-lime-filled);--color-lime-filled:var(--color-lime-6);--color-lime-filled-hover:var(--color-lime-7);--color-lime-light:alpha(var(--color-lime-6),0.1);--color-lime-light-hover:alpha(var(--color-lime-6),0.12);--color-lime-light-color:var(--color-lime-6);--color-lime-outline:var(--color-lime-6);--color-lime-outline-hover:alpha(var(--color-lime-6),0.05);--color-yellow-color:var(--color-yellow-filled);--color-yellow-filled:var(--color-yellow-6);--color-yellow-filled-hover:var(--color-yellow-7);--color-yellow-light:alpha(var(--color-yellow-6),0.1);--color-yellow-light-hover:alpha(var(--color-yellow-6),0.12);--color-yellow-light-color:var(--color-yellow-6);--color-yellow-outline:var(--color-yellow-6);--color-yellow-outline-hover:alpha(var(--color-yellow-6),0.05);--color-orange-color:var(--color-orange-filled);--color-orange-filled:var(--color-orange-6);--color-orange-filled-hover:var(--color-orange-7);--color-orange-light:alpha(var(--color-orange-6),0.1);--color-orange-light-hover:alpha(var(--color-orange-6),0.12);--color-orange-light-color:var(--color-orange-6);--color-orange-outline:var(--color-orange-6);--color-orange-outline-hover:alpha(var(--color-orange-6),0.05)}}
|