@globalbrain/sefirot 4.38.1 → 4.39.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/lib/components/SAvatar.vue +7 -2
- package/lib/components/SAvatarStack.vue +5 -4
- package/lib/components/SButton.vue +3 -1
- package/lib/components/SCard.vue +35 -64
- package/lib/components/SCardBlock.vue +5 -12
- package/lib/components/SCardClose.vue +20 -0
- package/lib/components/SCardFooter.vue +15 -0
- package/lib/components/SContent.vue +25 -13
- package/lib/components/SInputCheckbox.vue +1 -0
- package/lib/components/SInputDate.vue +3 -2
- package/lib/components/SInputDropdown.vue +2 -1
- package/lib/components/SInputFile.vue +5 -4
- package/lib/components/SInputFileUpload.vue +1 -1
- package/lib/components/SInputHMS.vue +2 -1
- package/lib/components/SInputRadio.vue +1 -0
- package/lib/components/SInputSelect.vue +2 -1
- package/lib/components/SInputText.vue +3 -2
- package/lib/components/SInputTextarea.vue +2 -1
- package/lib/components/SInputYMD.vue +2 -1
- package/lib/components/SModal.vue +60 -1
- package/lib/components/SPagination.vue +0 -4
- package/lib/components/STable.vue +5 -5
- package/lib/components/STableCell.vue +4 -4
- package/lib/components/STableColumn.vue +4 -4
- package/lib/components/STableFooter.vue +3 -3
- package/lib/components/STableHeader.vue +1 -1
- package/lib/components/STableItem.vue +2 -2
- package/lib/styles/utilities.css +10 -0
- package/lib/styles/variables.css +115 -95
- package/package.json +20 -19
|
@@ -55,7 +55,7 @@ const tooltipPosition = computed(() => {
|
|
|
55
55
|
display: flex;
|
|
56
56
|
justify-content: center;
|
|
57
57
|
align-items: center;
|
|
58
|
-
background-color: var(--c-bg-
|
|
58
|
+
background-color: var(--c-bg-1);
|
|
59
59
|
border-radius: 50%;
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
}
|
|
@@ -115,6 +115,11 @@ const tooltipPosition = computed(() => {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.SAvatar.no-image {
|
|
118
|
-
border: 1px solid var(--c-border
|
|
118
|
+
border: 1px solid var(--c-border);
|
|
119
|
+
background-color: var(--c-bg-3);
|
|
120
|
+
|
|
121
|
+
.dark & {
|
|
122
|
+
border-color: transparent;
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
</style>
|
|
@@ -42,11 +42,12 @@ const count = computed(() => {
|
|
|
42
42
|
.SAvatarStack {
|
|
43
43
|
display: flex;
|
|
44
44
|
|
|
45
|
-
:slotted(.SAvatar),
|
|
45
|
+
:slotted(.SAvatar),
|
|
46
|
+
:deep(.SAvatar),
|
|
47
|
+
.more {
|
|
46
48
|
flex-shrink: 0;
|
|
47
|
-
border: 2px solid var(--c-bg-elv-2);
|
|
48
|
-
border-radius: 50%;
|
|
49
49
|
overflow: hidden;
|
|
50
|
+
box-shadow: 0 0 0 2px var(--c-bg-1);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
&.mini > :deep(*):not(:last-child) { margin-right: -6px; }
|
|
@@ -62,7 +63,7 @@ const count = computed(() => {
|
|
|
62
63
|
display: flex;
|
|
63
64
|
justify-content: center;
|
|
64
65
|
align-items: center;
|
|
65
|
-
background-color: var(--c-bg-
|
|
66
|
+
background-color: var(--c-bg-3);
|
|
66
67
|
border-radius: 50%;
|
|
67
68
|
line-height: 1;
|
|
68
69
|
color: var(--c-text-2);
|
|
@@ -152,11 +152,12 @@ function onClick(): void {
|
|
|
152
152
|
letter-spacing: 0;
|
|
153
153
|
text-align: center;
|
|
154
154
|
border: 1px solid var(--button-border-color);
|
|
155
|
-
border-radius:
|
|
155
|
+
border-radius: 8px;
|
|
156
156
|
color: var(--button-text-color);
|
|
157
157
|
background-color: var(--button-bg-color);
|
|
158
158
|
overflow: hidden;
|
|
159
159
|
white-space: nowrap;
|
|
160
|
+
box-shadow: var(--button-box-shadow, none);
|
|
160
161
|
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
|
|
161
162
|
|
|
162
163
|
&:hover {
|
|
@@ -356,6 +357,7 @@ function onClick(): void {
|
|
|
356
357
|
--button-text-color: var(--button-fill-default-text-color);
|
|
357
358
|
--button-bg-color: var(--button-fill-default-bg-color);
|
|
358
359
|
--button-count-bg-color: var(--button-fill-default-count-bg-color);
|
|
360
|
+
--button-box-shadow: var(--button-fill-default-box-shadow);
|
|
359
361
|
--button-hover-border-color: var(--button-fill-default-hover-border-color);
|
|
360
362
|
--button-hover-text-color: var(--button-fill-default-hover-text-color);
|
|
361
363
|
--button-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
package/lib/components/SCard.vue
CHANGED
|
@@ -2,19 +2,26 @@
|
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { provideCardState } from '../composables/Card'
|
|
4
4
|
|
|
5
|
+
export interface Props {
|
|
6
|
+
size?: Size
|
|
7
|
+
mode?: Mode
|
|
8
|
+
muted?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'
|
|
6
12
|
export type Mode = 'neutral' | 'info' | 'success' | 'warning' | 'danger'
|
|
7
13
|
|
|
8
|
-
const props = defineProps<{
|
|
9
|
-
size
|
|
10
|
-
mode
|
|
11
|
-
}
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
size: 'medium',
|
|
16
|
+
mode: 'neutral'
|
|
17
|
+
})
|
|
12
18
|
|
|
13
19
|
const { isCollapsed } = provideCardState()
|
|
14
20
|
|
|
15
21
|
const classes = computed(() => [
|
|
16
22
|
props.size,
|
|
17
|
-
props.mode
|
|
23
|
+
props.mode,
|
|
24
|
+
{ muted: props.muted },
|
|
18
25
|
{ collapsed: isCollapsed.value }
|
|
19
26
|
])
|
|
20
27
|
</script>
|
|
@@ -25,17 +32,18 @@ const classes = computed(() => [
|
|
|
25
32
|
</div>
|
|
26
33
|
</template>
|
|
27
34
|
|
|
28
|
-
<style scoped
|
|
35
|
+
<style scoped>
|
|
29
36
|
.SCard {
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
position: relative;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
32
40
|
gap: 1px;
|
|
33
41
|
border: 1px solid transparent;
|
|
34
|
-
border-radius:
|
|
35
|
-
background-color: var(--c-
|
|
42
|
+
border-radius: 12px;
|
|
43
|
+
background-color: var(--c-divider);
|
|
36
44
|
}
|
|
37
45
|
|
|
38
|
-
.SCard.neutral { border-color: var(--c-
|
|
46
|
+
.SCard.neutral { border-color: var(--c-border); }
|
|
39
47
|
.SCard.info { border-color: var(--c-border-info-1); }
|
|
40
48
|
.SCard.success { border-color: var(--c-border-success-1); }
|
|
41
49
|
.SCard.warning { border-color: var(--c-border-warning-1); }
|
|
@@ -46,62 +54,25 @@ const classes = computed(() => [
|
|
|
46
54
|
overflow: hidden;
|
|
47
55
|
}
|
|
48
56
|
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
@media (min-width: 512px) {
|
|
55
|
-
margin: 24px 24px 128px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@media (min-width: 768px) {
|
|
59
|
-
margin: 48px 48px 128px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.small {
|
|
63
|
-
@media (min-width: 560px) {
|
|
64
|
-
margin: 24px auto 128px;
|
|
65
|
-
max-width: 512px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@media (min-width: 768px) {
|
|
69
|
-
margin: 48px auto 128px;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.medium {
|
|
74
|
-
@media (min-width: 736px) {
|
|
75
|
-
margin: 48px auto 128px;
|
|
76
|
-
max-width: 640px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.large {
|
|
81
|
-
@media (min-width: 864px) {
|
|
82
|
-
margin: 48px auto 128px;
|
|
83
|
-
max-width: 768px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
57
|
+
.SCard :deep(> .SCardBlock:first-child),
|
|
58
|
+
.SCard :deep(> .SCardClose + .SCardBlock) {
|
|
59
|
+
border-top-left-radius: 11px;
|
|
60
|
+
border-top-right-radius: 11px;
|
|
61
|
+
}
|
|
86
62
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
}
|
|
63
|
+
.SCard :deep(> .SCardBlock:last-child) {
|
|
64
|
+
border-bottom-right-radius: 11px;
|
|
65
|
+
border-bottom-left-radius: 11px;
|
|
66
|
+
}
|
|
93
67
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
margin: 48px auto 128px;
|
|
97
|
-
max-width: 1152px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
68
|
+
.SCard.muted :deep(> .SCardBlock) {
|
|
69
|
+
background-color: var(--c-bg-2);
|
|
100
70
|
}
|
|
101
71
|
|
|
102
|
-
.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
72
|
+
.SCard :deep(> .SCardClose) {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 8px;
|
|
75
|
+
right: 8px;
|
|
76
|
+
z-index: 10;
|
|
106
77
|
}
|
|
107
78
|
</style>
|
|
@@ -5,6 +5,9 @@ import { type CardBlockSize, provideCardBlockSize } from '../composables/Card'
|
|
|
5
5
|
export type { CardBlockSize as Size }
|
|
6
6
|
|
|
7
7
|
export type Bg =
|
|
8
|
+
| '1'
|
|
9
|
+
| '2'
|
|
10
|
+
| '3'
|
|
8
11
|
| 'elv-1'
|
|
9
12
|
| 'elv-2'
|
|
10
13
|
| 'elv-3'
|
|
@@ -15,7 +18,7 @@ const props = withDefaults(defineProps<{
|
|
|
15
18
|
size?: CardBlockSize
|
|
16
19
|
bg?: Bg
|
|
17
20
|
}>(), {
|
|
18
|
-
bg: '
|
|
21
|
+
bg: '1'
|
|
19
22
|
})
|
|
20
23
|
|
|
21
24
|
const _bg = computed(() => {
|
|
@@ -31,23 +34,13 @@ provideCardBlockSize(computed(() => props.size ?? null))
|
|
|
31
34
|
</div>
|
|
32
35
|
</template>
|
|
33
36
|
|
|
34
|
-
<style scoped
|
|
37
|
+
<style scoped>
|
|
35
38
|
.SCardBlock {
|
|
36
39
|
&.compact { padding: 12px; }
|
|
37
40
|
&.wide { padding: 16px; }
|
|
38
41
|
&.xwide { padding: 24px; }
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
.SCard > .SCardBlock:first-child {
|
|
42
|
-
border-top-left-radius: 5px;
|
|
43
|
-
border-top-right-radius: 5px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.SCard > .SCardBlock:last-child {
|
|
47
|
-
border-bottom-right-radius: 5px;
|
|
48
|
-
border-bottom-left-radius: 5px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
44
|
.SCardBlock.xsmall,
|
|
52
45
|
.SCardBlock.small,
|
|
53
46
|
.SCardBlock.medium,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import IconX from '~icons/ph/x'
|
|
3
|
+
import SButton from './SButton.vue'
|
|
4
|
+
|
|
5
|
+
defineEmits<{
|
|
6
|
+
click: []
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="SCardClose">
|
|
12
|
+
<SButton
|
|
13
|
+
size="sm"
|
|
14
|
+
type="text"
|
|
15
|
+
mode="mute"
|
|
16
|
+
:icon="IconX"
|
|
17
|
+
@click="$emit('click')"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="SCardFooter">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<style scoped>
|
|
8
|
+
.SCardFooter {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
gap: 12px;
|
|
12
|
+
border-radius: 0 0 11px 11px;
|
|
13
|
+
background-color: var(--c-bg-2);
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<style scoped
|
|
7
|
+
<style scoped>
|
|
8
8
|
.SContent {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
max-width: 720px;
|
|
19
19
|
line-height: 36px;
|
|
20
20
|
font-size: 24px;
|
|
21
|
-
font-weight:
|
|
21
|
+
font-weight: 600;
|
|
22
22
|
color: var(--c-text-1);
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
margin: 16px 0 0;
|
|
28
28
|
padding: 0;
|
|
29
29
|
max-width: 720px;
|
|
30
|
-
line-height:
|
|
30
|
+
line-height: 28px;
|
|
31
31
|
font-size: 20px;
|
|
32
|
-
font-weight:
|
|
32
|
+
font-weight: 600;
|
|
33
33
|
color: var(--c-text-1);
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -38,9 +38,20 @@
|
|
|
38
38
|
margin: 16px 0 0;
|
|
39
39
|
padding: 0;
|
|
40
40
|
max-width: 720px;
|
|
41
|
-
line-height:
|
|
41
|
+
line-height: 30px;
|
|
42
42
|
font-size: 18px;
|
|
43
|
-
font-weight:
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
color: var(--c-text-1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.SContent :deep(h4),
|
|
48
|
+
.SContent :deep(.h4) {
|
|
49
|
+
margin: 16px 0 0;
|
|
50
|
+
padding: 0;
|
|
51
|
+
max-width: 720px;
|
|
52
|
+
line-height: 28px;
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
font-weight: 600;
|
|
44
55
|
color: var(--c-text-1);
|
|
45
56
|
}
|
|
46
57
|
|
|
@@ -49,7 +60,9 @@
|
|
|
49
60
|
.SContent :deep(h2:first-child),
|
|
50
61
|
.SContent :deep(.h2:first-child),
|
|
51
62
|
.SContent :deep(h3:first-child),
|
|
52
|
-
.SContent :deep(.h3:first-child)
|
|
63
|
+
.SContent :deep(.h3:first-child),
|
|
64
|
+
.SContent :deep(h4:first-child),
|
|
65
|
+
.SContent :deep(.h4:first-child) {
|
|
53
66
|
margin-top: 0;
|
|
54
67
|
}
|
|
55
68
|
|
|
@@ -124,16 +137,16 @@
|
|
|
124
137
|
.SContent :deep(table) {
|
|
125
138
|
margin: 8px 0;
|
|
126
139
|
border-style: hidden;
|
|
127
|
-
border-radius:
|
|
140
|
+
border-radius: 8px;
|
|
128
141
|
text-align: left;
|
|
129
142
|
font-size: 14px;
|
|
130
143
|
color: var(--c-text-1);
|
|
131
144
|
overflow: clip;
|
|
132
|
-
box-shadow: 0 0 0 1px var(--c-
|
|
145
|
+
box-shadow: 0 0 0 1px var(--c-border);
|
|
133
146
|
}
|
|
134
147
|
|
|
135
148
|
.SContent :deep(table tr:hover td) {
|
|
136
|
-
background-color: var(--c-bg-
|
|
149
|
+
background-color: var(--c-bg-2);
|
|
137
150
|
}
|
|
138
151
|
|
|
139
152
|
.SContent :deep(table thead > tr > th) {
|
|
@@ -142,18 +155,17 @@
|
|
|
142
155
|
|
|
143
156
|
.SContent :deep(table th),
|
|
144
157
|
.SContent :deep(table td) {
|
|
145
|
-
border: 1px solid var(--c-
|
|
158
|
+
border: 1px solid var(--c-divider);
|
|
146
159
|
padding: 8px 16px;
|
|
147
160
|
height: 40px;
|
|
148
161
|
vertical-align: top;
|
|
149
162
|
text-wrap: pretty;
|
|
150
|
-
background-color: var(--c-bg-elv-3);
|
|
151
163
|
overflow-wrap: break-word;
|
|
152
164
|
}
|
|
153
165
|
|
|
154
166
|
.SContent :deep(table th) {
|
|
155
167
|
font-size: 12px;
|
|
156
|
-
font-weight:
|
|
168
|
+
font-weight: 500;
|
|
157
169
|
color: var(--c-text-2);
|
|
158
170
|
text-wrap: balance;
|
|
159
171
|
}
|
|
@@ -113,7 +113,7 @@ function onBlur() {
|
|
|
113
113
|
.SInputDate.md {
|
|
114
114
|
.input {
|
|
115
115
|
padding: 6px 10px;
|
|
116
|
-
max-width:
|
|
116
|
+
max-width: 128px;
|
|
117
117
|
height: 36px;
|
|
118
118
|
line-height: 24px;
|
|
119
119
|
font-size: var(--input-font-size, var(--input-small-font-size));
|
|
@@ -165,11 +165,12 @@ function onBlur() {
|
|
|
165
165
|
.input {
|
|
166
166
|
display: block;
|
|
167
167
|
border: 1px solid var(--input-border-color);
|
|
168
|
-
border-radius:
|
|
168
|
+
border-radius: 8px;
|
|
169
169
|
width: 100%;
|
|
170
170
|
font-weight: 400;
|
|
171
171
|
font-feature-settings: 'tnum';
|
|
172
172
|
background-color: var(--input-bg-color);
|
|
173
|
+
box-shadow: var(--input-box-shadow);
|
|
173
174
|
transition: border-color 0.25s, background-color 0.25s;
|
|
174
175
|
|
|
175
176
|
&::placeholder {
|
|
@@ -192,10 +192,11 @@ function onSelect(value: OptionValue) {
|
|
|
192
192
|
display: flex;
|
|
193
193
|
align-items: center;
|
|
194
194
|
border: 1px solid var(--input-border-color);
|
|
195
|
-
border-radius:
|
|
195
|
+
border-radius: 8px;
|
|
196
196
|
width: 100%;
|
|
197
197
|
color: var(--input-text);
|
|
198
198
|
background-color: var(--input-bg-color);
|
|
199
|
+
box-shadow: var(--input-box-shadow);
|
|
199
200
|
cursor: pointer;
|
|
200
201
|
transition: border-color 0.25s, background-color 0.25s;
|
|
201
202
|
|
|
@@ -203,6 +203,7 @@ function onChange(e: Event) {
|
|
|
203
203
|
border: 1px solid var(--input-border-color);
|
|
204
204
|
border-radius: 6px;
|
|
205
205
|
background-color: var(--input-bg-color);
|
|
206
|
+
box-shadow: var(--input-box-shadow);
|
|
206
207
|
cursor: pointer;
|
|
207
208
|
transition: border-color 0.25s;
|
|
208
209
|
|
|
@@ -211,8 +212,7 @@ function onChange(e: Event) {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
&:hover .button {
|
|
214
|
-
|
|
215
|
-
background-color: var(--c-bg-mute-2);
|
|
215
|
+
background-color: var(--button-fill-default-hover-bg-color);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -221,10 +221,11 @@ function onChange(e: Event) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.button {
|
|
224
|
-
border: 1px solid var(--
|
|
224
|
+
border: 1px solid var(--button-fill-default-border-color);
|
|
225
225
|
border-radius: 3px;
|
|
226
226
|
color: var(--c-text-1);
|
|
227
|
-
background-color: var(--
|
|
227
|
+
background-color: var(--button-fill-default-bg-color);
|
|
228
|
+
box-shadow: var(--button-fill-default-box-shadow);
|
|
228
229
|
transition: border-color 0.25s, background-color 0.25s;
|
|
229
230
|
}
|
|
230
231
|
|
|
@@ -308,8 +308,9 @@ function createRequiredTouched(): boolean[] {
|
|
|
308
308
|
.container {
|
|
309
309
|
display: inline-flex;
|
|
310
310
|
border: 1px solid var(--input-border-color);
|
|
311
|
-
border-radius:
|
|
311
|
+
border-radius: 8px;
|
|
312
312
|
background-color: var(--input-bg-color);
|
|
313
|
+
box-shadow: var(--input-box-shadow);
|
|
313
314
|
transition: border-color 0.25s;
|
|
314
315
|
|
|
315
316
|
&:hover { border-color: var(--input-hover-border-color); }
|
|
@@ -186,10 +186,11 @@ function emitChange(e: any): void {
|
|
|
186
186
|
.box {
|
|
187
187
|
position: relative;
|
|
188
188
|
border: 1px solid var(--input-border-color);
|
|
189
|
-
border-radius:
|
|
189
|
+
border-radius: 8px;
|
|
190
190
|
width: 100%;
|
|
191
191
|
color: var(--input-value-color);
|
|
192
192
|
background-color: var(--input-bg-color);
|
|
193
|
+
box-shadow: var(--input-box-shadow);
|
|
193
194
|
cursor: pointer;
|
|
194
195
|
transition: border-color 0.25s, background-color 0.25s;
|
|
195
196
|
|
|
@@ -404,9 +404,10 @@ function getValue(e: Event | FocusEvent | KeyboardEvent): string | null {
|
|
|
404
404
|
flex-grow: 1;
|
|
405
405
|
max-width: 100%;
|
|
406
406
|
border: 1px solid var(--input-border-color);
|
|
407
|
-
border-radius:
|
|
407
|
+
border-radius: 8px;
|
|
408
408
|
background-color: var(--input-bg-color);
|
|
409
|
-
|
|
409
|
+
box-shadow: var(--input-box-shadow);
|
|
410
|
+
transition: border-color 0.25s, background-color 0.25s;
|
|
410
411
|
|
|
411
412
|
&:hover {
|
|
412
413
|
border-color: var(--input-hover-border-color);
|
|
@@ -151,9 +151,10 @@ const isPreview = ref(false)
|
|
|
151
151
|
gap: 1px;
|
|
152
152
|
flex-grow: 1;
|
|
153
153
|
border: 1px solid var(--input-border-color);
|
|
154
|
-
border-radius:
|
|
154
|
+
border-radius: 8px;
|
|
155
155
|
width: 100%;
|
|
156
156
|
background-color: var(--c-gutter);
|
|
157
|
+
box-shadow: var(--input-box-shadow);
|
|
157
158
|
overflow: hidden;
|
|
158
159
|
transition: border-color 0.25s;
|
|
159
160
|
|
|
@@ -307,8 +307,9 @@ function createRequiredTouched(): boolean[] {
|
|
|
307
307
|
.container {
|
|
308
308
|
display: inline-flex;
|
|
309
309
|
border: 1px solid var(--input-border-color);
|
|
310
|
-
border-radius:
|
|
310
|
+
border-radius: 8px;
|
|
311
311
|
background-color: var(--input-bg-color);
|
|
312
|
+
box-shadow: var(--input-box-shadow);
|
|
312
313
|
transition: border-color 0.25s, background-color 0.25s;
|
|
313
314
|
|
|
314
315
|
&:hover { border-color: var(--input-hover-border-color); }
|
|
@@ -37,7 +37,7 @@ function onClick(e: MouseEvent) {
|
|
|
37
37
|
</Teleport>
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
|
-
<style scoped
|
|
40
|
+
<style scoped>
|
|
41
41
|
.SModal {
|
|
42
42
|
position: fixed;
|
|
43
43
|
top: 0;
|
|
@@ -55,4 +55,63 @@ function onClick(e: MouseEvent) {
|
|
|
55
55
|
.SModal.fade-leave-to {
|
|
56
56
|
opacity: 0;
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
.SModal :deep(> .SCard) {
|
|
60
|
+
margin: 12px 12px 128px;
|
|
61
|
+
box-shadow: var(--shadow-depth-3);
|
|
62
|
+
transition: opacity 0.25s, transform 0.25s;
|
|
63
|
+
|
|
64
|
+
@media (min-width: 512px) {
|
|
65
|
+
margin: 24px 24px 128px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (min-width: 768px) {
|
|
69
|
+
margin: 48px 48px 128px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.small {
|
|
73
|
+
@media (min-width: 560px) {
|
|
74
|
+
margin: 24px auto 128px;
|
|
75
|
+
max-width: 512px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-width: 768px) {
|
|
79
|
+
margin: 48px auto 128px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.medium {
|
|
84
|
+
@media (min-width: 736px) {
|
|
85
|
+
margin: 48px auto 128px;
|
|
86
|
+
max-width: 640px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.large {
|
|
91
|
+
@media (min-width: 864px) {
|
|
92
|
+
margin: 48px auto 128px;
|
|
93
|
+
max-width: 768px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.xlarge {
|
|
98
|
+
@media (min-width: 1056px) {
|
|
99
|
+
margin: 48px auto 128px;
|
|
100
|
+
max-width: 960px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.xxlarge {
|
|
105
|
+
@media (min-width: 1248px) {
|
|
106
|
+
margin: 48px auto 128px;
|
|
107
|
+
max-width: 1152px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.SModal.fade-enter-from :deep(> .SCard),
|
|
113
|
+
.SModal.fade-leave-to :deep(> .SCard) {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: translateY(8px);
|
|
116
|
+
}
|
|
58
117
|
</style>
|
|
@@ -55,8 +55,6 @@ const hasNext = computed(() => {
|
|
|
55
55
|
<div class="SPagination" :class="[size, align]">
|
|
56
56
|
<div class="button prev">
|
|
57
57
|
<SButton
|
|
58
|
-
type="outline"
|
|
59
|
-
mode="mute"
|
|
60
58
|
:size
|
|
61
59
|
:lead-icon="IconCaretLeft"
|
|
62
60
|
:label="t.prev"
|
|
@@ -69,8 +67,6 @@ const hasNext = computed(() => {
|
|
|
69
67
|
</div>
|
|
70
68
|
<div class="button next">
|
|
71
69
|
<SButton
|
|
72
|
-
type="outline"
|
|
73
|
-
mode="mute"
|
|
74
70
|
:size
|
|
75
71
|
:trail-icon="IconCaretRight"
|
|
76
72
|
:label="t.next"
|
|
@@ -711,7 +711,7 @@ function onResizeEnd(data: { columnName: string; finalWidth: string }) {
|
|
|
711
711
|
top: var(--table-head-top, auto);
|
|
712
712
|
z-index: 100;
|
|
713
713
|
border-radius: calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px) 0 0;
|
|
714
|
-
background-color: var(--bg-
|
|
714
|
+
background-color: var(--c-bg-1);
|
|
715
715
|
scrollbar-width: none;
|
|
716
716
|
line-height: 0;
|
|
717
717
|
|
|
@@ -764,7 +764,7 @@ function onResizeEnd(data: { columnName: string; finalWidth: string }) {
|
|
|
764
764
|
|
|
765
765
|
:deep(.row) {
|
|
766
766
|
display: flex;
|
|
767
|
-
border-bottom: 1px solid var(--c-
|
|
767
|
+
border-bottom: 1px solid var(--c-divider);
|
|
768
768
|
}
|
|
769
769
|
|
|
770
770
|
:deep(.row.last),
|
|
@@ -783,7 +783,7 @@ function onResizeEnd(data: { columnName: string; finalWidth: string }) {
|
|
|
783
783
|
border-radius: 0 0 calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px);
|
|
784
784
|
padding: 48px 32px;
|
|
785
785
|
text-align: center;
|
|
786
|
-
background-color: var(--c-bg-
|
|
786
|
+
background-color: var(--c-bg-1);
|
|
787
787
|
line-height: 24px;
|
|
788
788
|
font-size: 14px;
|
|
789
789
|
font-weight: 500;
|
|
@@ -796,7 +796,7 @@ function onResizeEnd(data: { columnName: string; finalWidth: string }) {
|
|
|
796
796
|
|
|
797
797
|
.loading {
|
|
798
798
|
border-radius: 0 0 calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px);
|
|
799
|
-
background-color: var(--c-bg-
|
|
799
|
+
background-color: var(--c-bg-1);
|
|
800
800
|
overflow: hidden;
|
|
801
801
|
|
|
802
802
|
.has-footer & {
|
|
@@ -863,7 +863,7 @@ function onResizeEnd(data: { columnName: string; finalWidth: string }) {
|
|
|
863
863
|
|
|
864
864
|
:deep(.input) {
|
|
865
865
|
align-items: center;
|
|
866
|
-
padding: 0 16px;
|
|
866
|
+
padding: 0 16px 0 15px;
|
|
867
867
|
min-height: 40px;
|
|
868
868
|
user-select: none;
|
|
869
869
|
}
|
|
@@ -132,20 +132,20 @@ const valueIsImagePath = computed(() => {
|
|
|
132
132
|
|
|
133
133
|
<style scoped lang="postcss">
|
|
134
134
|
.STableCell {
|
|
135
|
-
background-color: var(--c-bg-
|
|
135
|
+
background-color: var(--c-bg-1);
|
|
136
136
|
transition: background-color 0.1s;
|
|
137
137
|
overflow: hidden;
|
|
138
138
|
|
|
139
139
|
:where(.row:has(.input.on)) & {
|
|
140
|
-
background-color: var(--c-bg-
|
|
140
|
+
background-color: var(--c-bg-2);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.row:hover & {
|
|
144
|
-
background-color: var(--c-bg-
|
|
144
|
+
background-color: var(--c-bg-2);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.summary & {
|
|
148
|
-
background-color: var(--c-bg-
|
|
148
|
+
background-color: var(--c-bg-2);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.STableItem:first-child & {
|
|
@@ -168,10 +168,10 @@ function stopDialogPositionListener() {
|
|
|
168
168
|
|
|
169
169
|
<style scoped lang="postcss">
|
|
170
170
|
.STableColumn {
|
|
171
|
-
background-color: var(--c-bg-
|
|
171
|
+
background-color: var(--c-bg-1);
|
|
172
172
|
|
|
173
173
|
&.has-header {
|
|
174
|
-
border-top: 1px solid var(--c-
|
|
174
|
+
border-top: 1px solid var(--c-divider);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.STableItem:first-child & {
|
|
@@ -197,7 +197,7 @@ function stopDialogPositionListener() {
|
|
|
197
197
|
line-height: 40px;
|
|
198
198
|
text-align: left;
|
|
199
199
|
font-size: 12px;
|
|
200
|
-
font-weight:
|
|
200
|
+
font-weight: 500;
|
|
201
201
|
color: var(--c-text-2);
|
|
202
202
|
white-space: nowrap;
|
|
203
203
|
overflow: hidden;
|
|
@@ -228,7 +228,7 @@ function stopDialogPositionListener() {
|
|
|
228
228
|
|
|
229
229
|
&:hover {
|
|
230
230
|
color: var(--c-text-1);
|
|
231
|
-
background-color: var(--
|
|
231
|
+
background-color: var(--button-fill-default-hover-bg-color);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
&.active {
|
|
@@ -63,11 +63,11 @@ const hasNext = computed(() => {
|
|
|
63
63
|
|
|
64
64
|
<style scoped lang="postcss">
|
|
65
65
|
.STableFooter {
|
|
66
|
-
border-top: 1px solid var(--c-
|
|
66
|
+
border-top: 1px solid var(--c-divider);
|
|
67
67
|
border-radius: 0 0 calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px);
|
|
68
68
|
padding-right: var(--table-padding-right);
|
|
69
69
|
padding-left: var(--table-padding-left);
|
|
70
|
-
background-color: var(--c-bg-
|
|
70
|
+
background-color: var(--c-bg-1);
|
|
71
71
|
|
|
72
72
|
&.borderless {
|
|
73
73
|
border-radius: 0;
|
|
@@ -117,7 +117,7 @@ const hasNext = computed(() => {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&.active:hover {
|
|
120
|
-
background-color: var(--c-bg-
|
|
120
|
+
background-color: var(--c-bg-1);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -42,7 +42,7 @@ const stats = computed(() => {
|
|
|
42
42
|
border-radius: calc(var(--table-border-radius) - 1px) calc(var(--table-border-radius) - 1px) 0 0;
|
|
43
43
|
padding-right: var(--table-padding-right);
|
|
44
44
|
padding-left: var(--table-padding-left);
|
|
45
|
-
background-color: var(--c-bg-
|
|
45
|
+
background-color: var(--c-bg-1);
|
|
46
46
|
|
|
47
47
|
&.borderless {
|
|
48
48
|
border-radius: 0;
|
|
@@ -30,8 +30,8 @@ const classes = computed(() => [
|
|
|
30
30
|
z-index: var(--table-col-z-index, auto);
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
flex-grow: 1;
|
|
33
|
-
border-left: var(--table-col-border-left, 0px) solid var(--c-
|
|
34
|
-
border-right: 1px solid var(--c-
|
|
33
|
+
border-left: var(--table-col-border-left, 0px) solid var(--c-divider);
|
|
34
|
+
border-right: 1px solid var(--c-divider);
|
|
35
35
|
margin-left: calc(var(--table-col-border-left, 0px) * -1);
|
|
36
36
|
min-width: var(--table-col-width);
|
|
37
37
|
max-width: var(--table-col-width);
|
package/lib/styles/utilities.css
CHANGED
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
.s-py-8 { padding-top: 8px; padding-bottom: 8px; }
|
|
86
86
|
.s-py-12 { padding-top: 12px; padding-bottom: 12px; }
|
|
87
87
|
.s-py-16 { padding-top: 16px; padding-bottom: 16px; }
|
|
88
|
+
.s-py-20 { padding-top: 20px; padding-bottom: 20px; }
|
|
88
89
|
.s-py-24 { padding-top: 24px; padding-bottom: 24px; }
|
|
89
90
|
.s-py-32 { padding-top: 32px; padding-bottom: 32px; }
|
|
90
91
|
.s-py-48 { padding-top: 48px; padding-bottom: 48px; }
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
.s-px-8 { padding-right: 8px; padding-left: 8px; }
|
|
95
96
|
.s-px-12 { padding-right: 12px; padding-left: 12px; }
|
|
96
97
|
.s-px-16 { padding-right: 16px; padding-left: 16px; }
|
|
98
|
+
.s-px-20 { padding-right: 20px; padding-left: 20px; }
|
|
97
99
|
.s-px-24 { padding-right: 24px; padding-left: 24px; }
|
|
98
100
|
.s-px-32 { padding-right: 32px; padding-left: 32px; }
|
|
99
101
|
.s-px-48 { padding-right: 48px; padding-left: 48px; }
|
|
@@ -103,6 +105,7 @@
|
|
|
103
105
|
.s-pt-8 { padding-top: 8px; }
|
|
104
106
|
.s-pt-12 { padding-top: 12px; }
|
|
105
107
|
.s-pt-16 { padding-top: 16px; }
|
|
108
|
+
.s-pt-20 { padding-top: 20px; }
|
|
106
109
|
.s-pt-24 { padding-top: 24px; }
|
|
107
110
|
.s-pt-32 { padding-top: 32px; }
|
|
108
111
|
.s-pt-48 { padding-top: 48px; }
|
|
@@ -112,6 +115,7 @@
|
|
|
112
115
|
.s-pr-8 { padding-right: 8px; }
|
|
113
116
|
.s-pr-12 { padding-right: 12px; }
|
|
114
117
|
.s-pr-16 { padding-right: 16px; }
|
|
118
|
+
.s-pr-20 { padding-right: 20px; }
|
|
115
119
|
.s-pr-24 { padding-right: 24px; }
|
|
116
120
|
.s-pr-32 { padding-right: 32px; }
|
|
117
121
|
.s-pr-48 { padding-right: 48px; }
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
.s-pb-8 { padding-bottom: 8px; }
|
|
122
126
|
.s-pb-12 { padding-bottom: 12px; }
|
|
123
127
|
.s-pb-16 { padding-bottom: 16px; }
|
|
128
|
+
.s-pb-20 { padding-bottom: 20px; }
|
|
124
129
|
.s-pb-24 { padding-bottom: 24px; }
|
|
125
130
|
.s-pb-32 { padding-bottom: 32px; }
|
|
126
131
|
.s-pb-48 { padding-bottom: 48px; }
|
|
@@ -130,6 +135,7 @@
|
|
|
130
135
|
.s-pl-8 { padding-left: 8px; }
|
|
131
136
|
.s-pl-12 { padding-left: 12px; }
|
|
132
137
|
.s-pl-16 { padding-left: 16px; }
|
|
138
|
+
.s-pl-20 { padding-left: 20px; }
|
|
133
139
|
.s-pl-24 { padding-left: 24px; }
|
|
134
140
|
.s-pl-32 { padding-left: 32px; }
|
|
135
141
|
.s-pl-48 { padding-left: 48px; }
|
|
@@ -210,6 +216,10 @@
|
|
|
210
216
|
* Backgrounds
|
|
211
217
|
* -------------------------------------------------------------------------- */
|
|
212
218
|
|
|
219
|
+
.s-bg-1 { background-color: var(--c-bg-1); }
|
|
220
|
+
.s-bg-2 { background-color: var(--c-bg-2); }
|
|
221
|
+
.s-bg-3 { background-color: var(--c-bg-3); }
|
|
222
|
+
|
|
213
223
|
.s-bg-elv-1 { background-color: var(--c-bg-elv-1); }
|
|
214
224
|
.s-bg-elv-2 { background-color: var(--c-bg-elv-2); }
|
|
215
225
|
.s-bg-elv-3 { background-color: var(--c-bg-elv-3); }
|
package/lib/styles/variables.css
CHANGED
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
* -------------------------------------------------------------------------- */
|
|
52
52
|
|
|
53
53
|
:root {
|
|
54
|
-
--c-gray-1: #
|
|
55
|
-
--c-gray-2: #
|
|
56
|
-
--c-gray-3: #
|
|
57
|
-
--c-gray-4: #
|
|
58
|
-
--c-gray-5: #
|
|
59
|
-
--c-gray-6: #
|
|
60
|
-
--c-gray-7: #
|
|
61
|
-
--c-gray-8: #
|
|
54
|
+
--c-gray-1: #f9f9fb;
|
|
55
|
+
--c-gray-2: #f2f2f5;
|
|
56
|
+
--c-gray-3: #ebebef;
|
|
57
|
+
--c-gray-4: #e4e4e9;
|
|
58
|
+
--c-gray-5: #dddde3;
|
|
59
|
+
--c-gray-6: #d3d4db;
|
|
60
|
+
--c-gray-7: #b9bbc6;
|
|
61
|
+
--c-gray-8: #989ba6;
|
|
62
62
|
--c-gray-9: #8b8d98;
|
|
63
63
|
--c-gray-10: #7e808a;
|
|
64
64
|
--c-gray-11: #60646c;
|
|
@@ -151,17 +151,19 @@
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* Color: Divider and Gutter
|
|
154
|
+
* Color: Base Border, Divider, and Gutter
|
|
155
155
|
* -------------------------------------------------------------------------- */
|
|
156
156
|
|
|
157
157
|
:root {
|
|
158
|
-
--c-
|
|
159
|
-
--c-
|
|
158
|
+
--c-border: #dddddd;
|
|
159
|
+
--c-divider: #dddddd;
|
|
160
|
+
--c-gutter: #dddddd;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
.dark {
|
|
163
|
-
--c-
|
|
164
|
-
--c-
|
|
164
|
+
--c-border: #262626;
|
|
165
|
+
--c-divider: #262626;
|
|
166
|
+
--c-gutter: #262626;
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
/**
|
|
@@ -230,8 +232,8 @@
|
|
|
230
232
|
|
|
231
233
|
:root {
|
|
232
234
|
--c-bg-1: var(--c-white);
|
|
233
|
-
--c-bg-2:
|
|
234
|
-
--c-bg-3:
|
|
235
|
+
--c-bg-2: oklch(0.98 0 0);
|
|
236
|
+
--c-bg-3: oklch(0.97 0 0);
|
|
235
237
|
|
|
236
238
|
--c-bg-elv-1: #ffffff;
|
|
237
239
|
--c-bg-elv-2: #f5f5f7;
|
|
@@ -268,9 +270,9 @@
|
|
|
268
270
|
}
|
|
269
271
|
|
|
270
272
|
.dark {
|
|
271
|
-
--c-bg-1:
|
|
272
|
-
--c-bg-2:
|
|
273
|
-
--c-bg-3:
|
|
273
|
+
--c-bg-1: oklch(0.145 0 0);
|
|
274
|
+
--c-bg-2: oklch(0.205 0 0);
|
|
275
|
+
--c-bg-3: oklch(0.269 0 0);
|
|
274
276
|
|
|
275
277
|
--c-bg-elv-1: #000000;
|
|
276
278
|
--c-bg-elv-2: #151517;
|
|
@@ -419,45 +421,45 @@
|
|
|
419
421
|
|
|
420
422
|
:root {
|
|
421
423
|
--button-mini-font-size: 12px;
|
|
422
|
-
--button-small-font-size:
|
|
424
|
+
--button-small-font-size: 14px;
|
|
423
425
|
--button-medium-font-size: 14px;
|
|
424
426
|
--button-large-font-size: 14px;
|
|
425
427
|
--button-jumbo-font-size: 16px;
|
|
426
428
|
|
|
427
|
-
--button-fill-default-border-color: var(--
|
|
429
|
+
--button-fill-default-border-color: var(--input-border-color);
|
|
428
430
|
--button-fill-default-text-color: var(--c-text-1);
|
|
429
431
|
--button-fill-default-content-color: var(--c-text-1);
|
|
430
|
-
--button-fill-default-bg-color: var(--c-bg-
|
|
432
|
+
--button-fill-default-bg-color: var(--c-bg-1);
|
|
431
433
|
--button-fill-default-count-bg-color: var(--c-gray-7);
|
|
432
434
|
--button-fill-default-loader-color: var(--c-neutral-1);
|
|
433
|
-
--button-fill-default-
|
|
435
|
+
--button-fill-default-box-shadow: var(--shadow-depth-1);
|
|
436
|
+
--button-fill-default-hover-border-color: var(--button-fill-default-border-color);
|
|
434
437
|
--button-fill-default-hover-text-color: var(--c-text-1);
|
|
435
|
-
--button-fill-default-hover-bg-color: var(--
|
|
436
|
-
--button-fill-default-active-border-color: var(--
|
|
438
|
+
--button-fill-default-hover-bg-color: color-mix(in oklab, var(--button-fill-default-border-color) 40%, transparent);
|
|
439
|
+
--button-fill-default-active-border-color: var(--button-fill-default-border-color);
|
|
437
440
|
--button-fill-default-active-text-color: var(--c-text-1);
|
|
438
|
-
--button-fill-default-active-bg-color: var(--
|
|
439
|
-
--button-fill-default-disabled-border-color: var(--
|
|
441
|
+
--button-fill-default-active-bg-color: color-mix(in oklab, var(--button-fill-default-border-color) 60%, transparent);
|
|
442
|
+
--button-fill-default-disabled-border-color: var(--input-border-color);
|
|
440
443
|
--button-fill-default-disabled-text-color: var(--c-text-3);
|
|
441
444
|
--button-fill-default-disabled-content-color: var(--c-text-3);
|
|
442
|
-
--button-fill-default-disabled-bg-color: var(--
|
|
445
|
+
--button-fill-default-disabled-bg-color: var(--button-fill-default-bg-color);
|
|
443
446
|
|
|
444
|
-
--button-fill-mute-border-color: var(--
|
|
447
|
+
--button-fill-mute-border-color: var(--input-border-color);
|
|
445
448
|
--button-fill-mute-text-color: var(--c-text-2);
|
|
446
449
|
--button-fill-mute-content-color: var(--c-text-2);
|
|
447
|
-
--button-fill-mute-bg-color: var(--
|
|
450
|
+
--button-fill-mute-bg-color: var(--button-fill-default-bg-color);
|
|
448
451
|
--button-fill-mute-count-bg-color: var(--c-gray-6);
|
|
449
|
-
--button-fill-
|
|
450
|
-
--button-fill-mute-
|
|
451
|
-
--button-fill-mute-hover-border-color: var(--c-border-mute-2);
|
|
452
|
+
--button-fill-mute-loader-color: var(--c-text-2);
|
|
453
|
+
--button-fill-mute-hover-border-color: var(--input-border-color);
|
|
452
454
|
--button-fill-mute-hover-text-color: var(--c-text-2);
|
|
453
|
-
--button-fill-mute-hover-bg-color: var(--
|
|
454
|
-
--button-fill-mute-active-border-color: var(--
|
|
455
|
+
--button-fill-mute-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
456
|
+
--button-fill-mute-active-border-color: var(--input-border-color);
|
|
455
457
|
--button-fill-mute-active-text-color: var(--c-text-2);
|
|
456
|
-
--button-fill-mute-active-bg-color: var(--
|
|
457
|
-
--button-fill-mute-disabled-border-color: var(--
|
|
458
|
+
--button-fill-mute-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
459
|
+
--button-fill-mute-disabled-border-color: var(--button-fill-default-disabled-border-color);
|
|
458
460
|
--button-fill-mute-disabled-text-color: var(--c-text-3);
|
|
459
461
|
--button-fill-mute-disabled-content-color: var(--c-text-3);
|
|
460
|
-
--button-fill-mute-disabled-bg-color: var(--
|
|
462
|
+
--button-fill-mute-disabled-bg-color: var(--button-fill-default-disabled-bg-color);
|
|
461
463
|
|
|
462
464
|
--button-fill-neutral-border-color: transparent;
|
|
463
465
|
--button-fill-neutral-text-color: var(--c-text-inverse-1);
|
|
@@ -544,59 +546,59 @@
|
|
|
544
546
|
--button-fill-success-disabled-content-color: var(--c-white-a2);
|
|
545
547
|
--button-fill-success-disabled-bg-color: var(--c-green-8);
|
|
546
548
|
|
|
547
|
-
--button-fill-warning-border-color: var(--c-border-
|
|
548
|
-
--button-fill-warning-text-color: var(--c-
|
|
549
|
-
--button-fill-warning-content-color: var(--c-
|
|
550
|
-
--button-fill-warning-bg-color: var(--c-bg-
|
|
551
|
-
--button-fill-warning-loader-color: var(--c-
|
|
552
|
-
--button-fill-warning-count-bg-color: var(--c-
|
|
553
|
-
--button-fill-warning-hover-border-color: var(--c-border-warning-
|
|
554
|
-
--button-fill-warning-hover-text-color: var(--c-white);
|
|
555
|
-
--button-fill-warning-hover-bg-color: var(--c-bg-warning-
|
|
556
|
-
--button-fill-warning-active-border-color: var(--c-border-warning-
|
|
557
|
-
--button-fill-warning-active-text-color: var(--c-white);
|
|
558
|
-
--button-fill-warning-active-bg-color: var(--c-bg-warning-
|
|
559
|
-
--button-fill-warning-disabled-border-color: var(--c-
|
|
560
|
-
--button-fill-warning-disabled-text-color: var(--c-
|
|
561
|
-
--button-fill-warning-disabled-content-color: var(--c-
|
|
562
|
-
--button-fill-warning-disabled-bg-color: var(--c-
|
|
563
|
-
|
|
564
|
-
--button-fill-danger-border-color: var(--c-border-
|
|
565
|
-
--button-fill-danger-text-color: var(--c-
|
|
566
|
-
--button-fill-danger-content-color: var(--c-
|
|
567
|
-
--button-fill-danger-bg-color: var(--c-bg-
|
|
568
|
-
--button-fill-danger-loader-color: var(--c-
|
|
569
|
-
--button-fill-danger-count-bg-color: var(--c-
|
|
570
|
-
--button-fill-danger-hover-border-color: var(--c-border-danger-
|
|
571
|
-
--button-fill-danger-hover-text-color: var(--c-white);
|
|
572
|
-
--button-fill-danger-hover-bg-color: var(--c-bg-danger-
|
|
573
|
-
--button-fill-danger-active-border-color: var(--c-border-danger-
|
|
574
|
-
--button-fill-danger-active-text-color: var(--c-white);
|
|
575
|
-
--button-fill-danger-active-bg-color: var(--c-bg-danger-
|
|
576
|
-
--button-fill-danger-disabled-border-color: var(--c-
|
|
577
|
-
--button-fill-danger-disabled-text-color: var(--c-
|
|
578
|
-
--button-fill-danger-disabled-content-color: var(--c-
|
|
579
|
-
--button-fill-danger-disabled-bg-color: var(--c-
|
|
580
|
-
|
|
581
|
-
--button-outline-default-border-color: var(--
|
|
549
|
+
--button-fill-warning-border-color: var(--c-border-warning-1);
|
|
550
|
+
--button-fill-warning-text-color: var(--c-white-1);
|
|
551
|
+
--button-fill-warning-content-color: var(--c-white-1);
|
|
552
|
+
--button-fill-warning-bg-color: var(--c-bg-warning-1);
|
|
553
|
+
--button-fill-warning-loader-color: var(--c-white-1);
|
|
554
|
+
--button-fill-warning-count-bg-color: var(--c-yellow-8);
|
|
555
|
+
--button-fill-warning-hover-border-color: var(--c-border-warning-2);
|
|
556
|
+
--button-fill-warning-hover-text-color: var(--c-white-1);
|
|
557
|
+
--button-fill-warning-hover-bg-color: var(--c-bg-warning-2);
|
|
558
|
+
--button-fill-warning-active-border-color: var(--c-border-warning-3);
|
|
559
|
+
--button-fill-warning-active-text-color: var(--c-white-1);
|
|
560
|
+
--button-fill-warning-active-bg-color: var(--c-bg-warning-3);
|
|
561
|
+
--button-fill-warning-disabled-border-color: var(--c-yellow-9);
|
|
562
|
+
--button-fill-warning-disabled-text-color: var(--c-white-a2);
|
|
563
|
+
--button-fill-warning-disabled-content-color: var(--c-white-a2);
|
|
564
|
+
--button-fill-warning-disabled-bg-color: var(--c-yellow-8);
|
|
565
|
+
|
|
566
|
+
--button-fill-danger-border-color: var(--c-border-danger-1);
|
|
567
|
+
--button-fill-danger-text-color: var(--c-white-1);
|
|
568
|
+
--button-fill-danger-content-color: var(--c-white-1);
|
|
569
|
+
--button-fill-danger-bg-color: var(--c-bg-danger-1);
|
|
570
|
+
--button-fill-danger-loader-color: var(--c-white-1);
|
|
571
|
+
--button-fill-danger-count-bg-color: var(--c-red-8);
|
|
572
|
+
--button-fill-danger-hover-border-color: var(--c-border-danger-2);
|
|
573
|
+
--button-fill-danger-hover-text-color: var(--c-white-1);
|
|
574
|
+
--button-fill-danger-hover-bg-color: var(--c-bg-danger-2);
|
|
575
|
+
--button-fill-danger-active-border-color: var(--c-border-danger-3);
|
|
576
|
+
--button-fill-danger-active-text-color: var(--c-white-1);
|
|
577
|
+
--button-fill-danger-active-bg-color: var(--c-bg-danger-3);
|
|
578
|
+
--button-fill-danger-disabled-border-color: var(--c-red-9);
|
|
579
|
+
--button-fill-danger-disabled-text-color: var(--c-white-a2);
|
|
580
|
+
--button-fill-danger-disabled-content-color: var(--c-white-a2);
|
|
581
|
+
--button-fill-danger-disabled-bg-color: var(--c-red-8);
|
|
582
|
+
|
|
583
|
+
--button-outline-default-border-color: var(--input-border-color);
|
|
582
584
|
--button-outline-default-text-color: var(--c-text-1);
|
|
583
585
|
--button-outline-default-content-color: var(--c-text-1);
|
|
584
586
|
--button-outline-default-loader-color: var(--c-neutral-1);
|
|
585
587
|
--button-outline-default-count-bg-color: var(--c-bg-mute-1);
|
|
586
|
-
--button-outline-default-hover-bg-color: var(--
|
|
587
|
-
--button-outline-default-active-bg-color: var(--
|
|
588
|
-
--button-outline-default-disabled-border-color: var(--
|
|
588
|
+
--button-outline-default-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
589
|
+
--button-outline-default-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
590
|
+
--button-outline-default-disabled-border-color: var(--input-border-color);
|
|
589
591
|
--button-outline-default-disabled-text-color: var(--c-text-3);
|
|
590
592
|
--button-outline-default-disabled-content-color: var(--c-text-3);
|
|
591
593
|
|
|
592
|
-
--button-outline-mute-border-color: var(--
|
|
594
|
+
--button-outline-mute-border-color: var(--input-border-color);
|
|
593
595
|
--button-outline-mute-text-color: var(--c-text-2);
|
|
594
596
|
--button-outline-mute-content-color: var(--c-text-2);
|
|
595
597
|
--button-outline-mute-loader-color: var(--c-neutral-1);
|
|
596
598
|
--button-outline-mute-count-bg-color: var(--c-bg-mute-1);
|
|
597
|
-
--button-outline-mute-hover-bg-color: var(--
|
|
598
|
-
--button-outline-mute-active-bg-color: var(--
|
|
599
|
-
--button-outline-mute-disabled-border-color: var(--
|
|
599
|
+
--button-outline-mute-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
600
|
+
--button-outline-mute-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
601
|
+
--button-outline-mute-disabled-border-color: var(--input-border-color);
|
|
600
602
|
--button-outline-mute-disabled-text-color: var(--c-text-3);
|
|
601
603
|
--button-outline-mute-disabled-content-color: var(--c-text-3);
|
|
602
604
|
|
|
@@ -605,9 +607,9 @@
|
|
|
605
607
|
--button-outline-neutral-content-color: var(--c-text-1);
|
|
606
608
|
--button-outline-neutral-loader-color: var(--c-neutral-1);
|
|
607
609
|
--button-outline-neutral-count-bg-color: var(--c-bg-mute-1);
|
|
608
|
-
--button-outline-neutral-hover-bg-color: var(--
|
|
609
|
-
--button-outline-neutral-active-bg-color: var(--
|
|
610
|
-
--button-outline-neutral-disabled-border-color: var(--
|
|
610
|
+
--button-outline-neutral-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
611
|
+
--button-outline-neutral-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
612
|
+
--button-outline-neutral-disabled-border-color: var(--button-fill-default-disabled-border-color);
|
|
611
613
|
--button-outline-neutral-disabled-text-color: var(--c-text-3);
|
|
612
614
|
--button-outline-neutral-disabled-content-color: var(--c-text-3);
|
|
613
615
|
|
|
@@ -680,24 +682,24 @@
|
|
|
680
682
|
--button-text-default-text-color: var(--c-text-1);
|
|
681
683
|
--button-text-default-content-color: var(--c-text-1);
|
|
682
684
|
--button-text-default-count-bg-color: var(--c-bg-mute-1);
|
|
683
|
-
--button-text-default-hover-bg-color: var(--
|
|
684
|
-
--button-text-default-active-bg-color: var(--
|
|
685
|
+
--button-text-default-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
686
|
+
--button-text-default-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
685
687
|
--button-text-default-disabled-text-color: var(--c-text-3);
|
|
686
688
|
--button-text-default-disabled-content-color: var(--c-text-3);
|
|
687
689
|
|
|
688
690
|
--button-text-mute-text-color: var(--c-text-2);
|
|
689
691
|
--button-text-mute-content-color: var(--c-text-2);
|
|
690
692
|
--button-text-mute-count-bg-color: var(--c-bg-mute-1);
|
|
691
|
-
--button-text-mute-hover-bg-color: var(--
|
|
692
|
-
--button-text-mute-active-bg-color: var(--
|
|
693
|
+
--button-text-mute-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
694
|
+
--button-text-mute-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
693
695
|
--button-text-mute-disabled-text-color: var(--c-text-3);
|
|
694
696
|
--button-text-mute-disabled-content-color: var(--c-text-3);
|
|
695
697
|
|
|
696
698
|
--button-text-neutral-text-color: var(--c-text-1);
|
|
697
699
|
--button-text-neutral-content-color: var(--c-text-1);
|
|
698
700
|
--button-text-neutral-count-bg-color: var(--c-bg-mute-1);
|
|
699
|
-
--button-text-neutral-hover-bg-color: var(--
|
|
700
|
-
--button-text-neutral-active-bg-color: var(--
|
|
701
|
+
--button-text-neutral-hover-bg-color: var(--button-fill-default-hover-bg-color);
|
|
702
|
+
--button-text-neutral-active-bg-color: var(--button-fill-default-active-bg-color);
|
|
701
703
|
--button-text-neutral-disabled-text-color: var(--c-text-3);
|
|
702
704
|
--button-text-neutral-disabled-content-color: var(--c-text-3);
|
|
703
705
|
|
|
@@ -750,18 +752,27 @@
|
|
|
750
752
|
--button-text-danger-disabled-content-color: var(--c-text-danger-3);
|
|
751
753
|
}
|
|
752
754
|
|
|
755
|
+
.dark {
|
|
756
|
+
--button-fill-default-bg-color: color-mix(in oklab, var(--button-fill-default-border-color) 30%, transparent);
|
|
757
|
+
--button-fill-default-box-shadow: none;
|
|
758
|
+
--button-fill-default-hover-bg-color: color-mix(in oklab, var(--button-fill-default-border-color) 50%, transparent);
|
|
759
|
+
--button-fill-default-active-bg-color: color-mix(in oklab, var(--button-fill-default-border-color) 70%, transparent);
|
|
760
|
+
--button-fill-default-disabled-border-color: var(--c-border);
|
|
761
|
+
--button-fill-default-disabled-bg-color: var(--button-fill-default-bg-color);
|
|
762
|
+
}
|
|
763
|
+
|
|
753
764
|
/**
|
|
754
765
|
* Component: Pill
|
|
755
766
|
* -------------------------------------------------------------------------- */
|
|
756
767
|
|
|
757
768
|
:root {
|
|
758
|
-
--pill-dimm-default-border-color: var(--c-
|
|
769
|
+
--pill-dimm-default-border-color: var(--c-border);
|
|
759
770
|
--pill-dimm-default-text-color: var(--c-text-1);
|
|
760
771
|
--pill-dimm-default-bg-color: transparent;
|
|
761
772
|
--pill-dimm-default-hover-bg-color: var(--c-bg-2);
|
|
762
773
|
--pill-dimm-default-active-bg-color: var(--c-bg-3);
|
|
763
774
|
|
|
764
|
-
--pill-dimm-mute-border-color: var(--c-
|
|
775
|
+
--pill-dimm-mute-border-color: var(--c-border);
|
|
765
776
|
--pill-dimm-mute-text-color: var(--c-text-2);
|
|
766
777
|
--pill-dimm-mute-bg-color: transparent;
|
|
767
778
|
--pill-dimm-mute-hover-bg-color: var(--c-bg-2);
|
|
@@ -885,20 +896,21 @@
|
|
|
885
896
|
* -------------------------------------------------------------------------- */
|
|
886
897
|
|
|
887
898
|
:root {
|
|
899
|
+
--input-border-color: oklch(0.922 0 0);
|
|
888
900
|
--input-label-color: var(--c-text-1);
|
|
889
|
-
--input-border-color: var(--c-border-mute-1);
|
|
890
901
|
--input-value-color: var(--c-text-1);
|
|
891
902
|
--input-placeholder-color: var(--c-text-3);
|
|
892
|
-
--input-bg-color: var(--c-bg-
|
|
893
|
-
--input-
|
|
903
|
+
--input-bg-color: var(--c-bg-1);
|
|
904
|
+
--input-box-shadow: var(--shadow-depth-1);
|
|
905
|
+
--input-hover-border-color: oklch(0.708 0 0);
|
|
894
906
|
--input-focus-border-color: var(--c-border-info-1);
|
|
895
907
|
--input-error-text-color: var(--c-text-danger-1);
|
|
896
908
|
--input-error-border-color: var(--c-border-danger-1);
|
|
897
909
|
--input-warning-text-color: var(--c-text-warning-1);
|
|
898
910
|
--input-warning-border-color: var(--c-border-warning-1);
|
|
899
|
-
--input-disabled-border-color: var(--
|
|
911
|
+
--input-disabled-border-color: var(--input-border-color);
|
|
900
912
|
--input-disabled-value-color: var(--c-text-1);
|
|
901
|
-
--input-disabled-bg-color: var(--
|
|
913
|
+
--input-disabled-bg-color: color-mix(in oklab, var(--input-disabled-border-color) 50%, transparent);
|
|
902
914
|
|
|
903
915
|
--input-mini-font-size: 14px;
|
|
904
916
|
--input-mini-label-font-size: 12px;
|
|
@@ -914,3 +926,11 @@
|
|
|
914
926
|
--input-switch-disabled-toggle-color: var(--c-fg-gray-1);
|
|
915
927
|
--input-switch-disabled-bg-color: var(--c-bg-mute-1);
|
|
916
928
|
}
|
|
929
|
+
|
|
930
|
+
.dark {
|
|
931
|
+
--input-border-color: oklch(1 0 0 / 15%);
|
|
932
|
+
--input-bg-color: color-mix(in oklab, var(--input-border-color) 30%, transparent);
|
|
933
|
+
--input-hover-border-color: oklch(0.556 0 0);
|
|
934
|
+
--input-disabled-border-color: var(--c-border);
|
|
935
|
+
--input-disabled-bg-color: color-mix(in oklab, var(--input-disabled-border-color) 80%, transparent);
|
|
936
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalbrain/sefirot",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.39.0",
|
|
4
4
|
"description": "Vue Components for Global Brain Design System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@iconify-json/ph": "^1.2.2",
|
|
60
60
|
"@iconify-json/ri": "^1.2.10",
|
|
61
61
|
"@popperjs/core": "^2.11.8",
|
|
62
|
-
"@sentry/browser": "^10.
|
|
63
|
-
"@sentry/vue": "^10.
|
|
62
|
+
"@sentry/browser": "^10.44.0",
|
|
63
|
+
"@sentry/vue": "^10.44.0",
|
|
64
64
|
"@tanstack/vue-virtual": "3.0.0-beta.62",
|
|
65
65
|
"@tinyhttp/content-disposition": "^2.2.4",
|
|
66
66
|
"@tinyhttp/cookie": "^2.1.1",
|
|
@@ -70,53 +70,54 @@
|
|
|
70
70
|
"@types/file-saver": "^2.0.7",
|
|
71
71
|
"@types/lodash-es": "^4.17.12",
|
|
72
72
|
"@types/markdown-it": "^14.1.2",
|
|
73
|
-
"@types/qs": "^6.
|
|
74
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
75
|
-
"@vue/reactivity": "^3.5.
|
|
73
|
+
"@types/qs": "^6.15.0",
|
|
74
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
75
|
+
"@vue/reactivity": "^3.5.30",
|
|
76
76
|
"@vuelidate/core": "^2.0.3",
|
|
77
77
|
"@vuelidate/validators": "^2.0.4",
|
|
78
78
|
"@vueuse/core": "^14.2.1",
|
|
79
79
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
80
80
|
"d3": "^7.9.0",
|
|
81
|
-
"dayjs": "^1.11.
|
|
82
|
-
"dompurify": "^3.3.
|
|
81
|
+
"dayjs": "^1.11.20",
|
|
82
|
+
"dompurify": "^3.3.3",
|
|
83
83
|
"file-saver": "^2.0.5",
|
|
84
84
|
"fuse.js": "^7.1.0",
|
|
85
85
|
"html2canvas": "^1.4.1",
|
|
86
|
-
"jsdom": "^
|
|
86
|
+
"jsdom": "^29.0.0",
|
|
87
87
|
"lodash-es": "^4.17.23",
|
|
88
88
|
"magic-string": "^0.30.21",
|
|
89
89
|
"markdown-it": "^14.1.1",
|
|
90
90
|
"normalize.css": "^8.0.1",
|
|
91
91
|
"ofetch": "^1.5.1",
|
|
92
92
|
"pinia": "^3.0.4",
|
|
93
|
-
"postcss": "^8.5.
|
|
93
|
+
"postcss": "^8.5.8",
|
|
94
94
|
"postcss-nested": "^7.0.2",
|
|
95
95
|
"punycode": "^2.3.1",
|
|
96
96
|
"qs": "^6.15.0",
|
|
97
97
|
"unplugin-icons": "^23.0.1",
|
|
98
98
|
"v-calendar": "3.0.1",
|
|
99
99
|
"vite": "^7.3.1",
|
|
100
|
-
"vue": "^3.5.
|
|
100
|
+
"vue": "^3.5.30",
|
|
101
101
|
"vue-draggable-plus": "^0.6.1",
|
|
102
102
|
"vue-router": "^4.6.4"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@globalbrain/eslint-config": "^3.0.1",
|
|
106
106
|
"@histoire/plugin-vue": "1.0.0-beta.1",
|
|
107
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
107
|
+
"@release-it/conventional-changelog": "^10.0.6",
|
|
108
108
|
"@types/jsdom": "^28.0.0",
|
|
109
|
-
"@types/node": "^25.
|
|
110
|
-
"@
|
|
109
|
+
"@types/node": "^25.5.0",
|
|
110
|
+
"@typescript-eslint/rule-tester": "^8.57.1",
|
|
111
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
111
112
|
"@vue/test-utils": "^2.4.6",
|
|
112
|
-
"eslint": "^9.39.
|
|
113
|
-
"happy-dom": "^20.
|
|
113
|
+
"eslint": "^9.39.4",
|
|
114
|
+
"happy-dom": "^20.8.4",
|
|
114
115
|
"histoire": "1.0.0-beta.1",
|
|
115
116
|
"release-it": "^19.2.4",
|
|
116
117
|
"typescript": "~5.9.3",
|
|
117
118
|
"vitepress": "^2.0.0-alpha.16",
|
|
118
|
-
"vitest": "^4.0
|
|
119
|
-
"vue-tsc": "^3.2.
|
|
119
|
+
"vitest": "^4.1.0",
|
|
120
|
+
"vue-tsc": "^3.2.6"
|
|
120
121
|
},
|
|
121
|
-
"packageManager": "pnpm@10.
|
|
122
|
+
"packageManager": "pnpm@10.32.1"
|
|
122
123
|
}
|