do-ui-design-system 1.1.14 → 1.1.15
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/do-theme/form.css +53 -0
- package/dist/do-theme/table.css +220 -145
- package/dist/organisms/TableBasic/TableBasic.svelte +422 -364
- package/dist/organisms/TableBasic/TableBasic.svelte.d.ts +3 -40
- package/dist/organisms/TableBasic/TableBasic.svelte.d.ts.map +1 -1
- package/dist/organisms/TableBasic/TableBasic.types.d.ts +40 -0
- package/dist/organisms/TableBasic/TableBasic.types.d.ts.map +1 -0
- package/dist/organisms/TableBasic/TableBasic.types.js +1 -0
- package/package.json +1 -1
package/dist/do-theme/form.css
CHANGED
|
@@ -39,4 +39,57 @@
|
|
|
39
39
|
.do-select {
|
|
40
40
|
background-color: #27272A;
|
|
41
41
|
border: 1px solid #52525B;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.do-checkbox {
|
|
45
|
+
width: 16px;
|
|
46
|
+
height: 16px;
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
position: relative;
|
|
51
|
+
appearance: none;
|
|
52
|
+
-webkit-appearance: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.do-checkbox::before {
|
|
56
|
+
content: '';
|
|
57
|
+
display: block;
|
|
58
|
+
width: 16px;
|
|
59
|
+
height: 16px;
|
|
60
|
+
background-color: var(--Zinc-400, #a1a1aa);
|
|
61
|
+
border: 1px solid var(--Zinc-800, #27272a);
|
|
62
|
+
border-radius: 3.5px;
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.do-checkbox::after {
|
|
67
|
+
content: '';
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
left: 50%;
|
|
71
|
+
transform: translate(-50%, -50%);
|
|
72
|
+
background-repeat: no-repeat;
|
|
73
|
+
background-position: center;
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.do-checkbox:indeterminate::after {
|
|
78
|
+
background-color: var(--Zinc-400, #a1a1aa);
|
|
79
|
+
width: 10px;
|
|
80
|
+
height: 2px;
|
|
81
|
+
display: block;
|
|
82
|
+
background-color: var(--Zinc-800, #27272a);
|
|
83
|
+
border-radius: 3.5px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.do-checkbox:checked::after {
|
|
87
|
+
display: block;
|
|
88
|
+
width: 16px;
|
|
89
|
+
height: 16px;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 0;
|
|
92
|
+
transform: none;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path d="M13 4.5L6.7 11.7L4 9" stroke="%233F3F46" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
|
42
95
|
}
|
package/dist/do-theme/table.css
CHANGED
|
@@ -1,146 +1,221 @@
|
|
|
1
|
-
.do-table {
|
|
2
|
-
.do-table__header {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
margin-bottom: 1rem;
|
|
7
|
-
|
|
8
|
-
.do-table__header__tags {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
gap: 0.5rem;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.do-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.do-table__content__th__sort
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.sort-icon
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
.do-table {
|
|
2
|
+
.do-table__header {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: 1rem;
|
|
7
|
+
|
|
8
|
+
.do-table__header__tags {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.do-table-wrapper {
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.do-table__content {
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
background: var(--do-table-bg);
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
width: 100%;
|
|
25
|
+
border-collapse: collapse;
|
|
26
|
+
|
|
27
|
+
thead tr {
|
|
28
|
+
background: var(--do-table-bg-head);
|
|
29
|
+
border-bottom: 1px solid #1e1e1e;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.do-table__content__th {
|
|
33
|
+
padding: 0.75rem 1rem;
|
|
34
|
+
text-align: left;
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: color 0.15s;
|
|
39
|
+
color: #ffffff;
|
|
40
|
+
|
|
41
|
+
&:not(.col-check) {
|
|
42
|
+
min-width: 120px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.do-table__content__th__sort {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
font-size: 0.8rem;
|
|
48
|
+
margin-left: 4px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.do-table__content__th__sort--up {
|
|
52
|
+
transform: rotate(180deg);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.do-table__content__th:hover {
|
|
56
|
+
color: #ffffff;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.do-table__content__th.sort-active {
|
|
60
|
+
color: #eee;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sort-icon {
|
|
65
|
+
margin-left: 4px;
|
|
66
|
+
font-size: 1rem;
|
|
67
|
+
color: #6366f1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sort-icon.muted {
|
|
71
|
+
color: #374151;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.col-check {
|
|
75
|
+
padding: 0.75rem 1rem;
|
|
76
|
+
width: 1px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.do-row {
|
|
80
|
+
background: var(--do-table-bg-row);
|
|
81
|
+
transition: background 0.12s;
|
|
82
|
+
color: var(--do-table-text);
|
|
83
|
+
border: 1px solid transparent;
|
|
84
|
+
|
|
85
|
+
&:nth-child(2n) {
|
|
86
|
+
background: var(--do-table-bg-row-striped);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
background: var(--do-table-bg-row-hover);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.selected {
|
|
94
|
+
background: var(--do-table-bg-row-hover);
|
|
95
|
+
outline: 2px solid rgb(15, 116, 182);
|
|
96
|
+
outline-offset: -1px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.do-table__content__th-filter {
|
|
101
|
+
padding: 0.2rem 0.5rem;
|
|
102
|
+
|
|
103
|
+
input {
|
|
104
|
+
max-width: 80%;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.do-table__content__th-action {
|
|
109
|
+
padding: 0.2rem 0.5rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
td {
|
|
113
|
+
padding: 0.75rem 1rem;
|
|
114
|
+
color: inherit;
|
|
115
|
+
|
|
116
|
+
&:not(.col-check) {
|
|
117
|
+
min-width: 120px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
td:first-child {
|
|
122
|
+
color: #e2e8f0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.do-checkbox {
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
accent-color: #6366f1;
|
|
128
|
+
width: 15px;
|
|
129
|
+
height: 15px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.do-table_content-wrapper {
|
|
133
|
+
border: 1px solid var(--do-bg-secondary);
|
|
134
|
+
border-radius: 12px;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.do-table__footer {
|
|
140
|
+
display: grid;
|
|
141
|
+
grid-template-columns: 1fr min-content;
|
|
142
|
+
align-items: center;
|
|
143
|
+
padding: 10px 16px;
|
|
144
|
+
border-top: 1px solid white;
|
|
145
|
+
gap: 16px;
|
|
146
|
+
color: inherit;
|
|
147
|
+
font-size: 1rem;
|
|
148
|
+
|
|
149
|
+
.selected-count {
|
|
150
|
+
color: #5e5e5e;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.sort-label strong {
|
|
154
|
+
color: #5e5e5e;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.do-table__header__dates {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: flex-end;
|
|
162
|
+
gap: 0.75rem;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.do-table__date-toggle {
|
|
167
|
+
display: flex;
|
|
168
|
+
border: 1px solid var(--do-border, #3f3f46);
|
|
169
|
+
border-radius: 6px;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.do-table__date-toggle__btn {
|
|
174
|
+
padding: 0.375rem 0.75rem;
|
|
175
|
+
font-size: 0.875rem;
|
|
176
|
+
background: transparent;
|
|
177
|
+
border: none;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
color: inherit;
|
|
180
|
+
transition: background 0.15s;
|
|
181
|
+
|
|
182
|
+
&.active {
|
|
183
|
+
background: var(--do-bg-secondary, #3f3f46);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover:not(.active) {
|
|
187
|
+
background: var(--do-bg-secondary-hover, #52525b);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.do-table__date-range {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: 0.5rem;
|
|
195
|
+
flex-wrap: wrap;
|
|
196
|
+
position: relative;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.do-table__date-fields {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 0.5rem;
|
|
203
|
+
flex-wrap: wrap;
|
|
204
|
+
position: relative;
|
|
205
|
+
|
|
206
|
+
.do-table__date-fields__field {
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
gap: 0.25rem;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.do-table__date-error {
|
|
214
|
+
position: absolute;
|
|
215
|
+
white-space: nowrap;
|
|
216
|
+
bottom: -1rem;
|
|
217
|
+
left: 0;
|
|
218
|
+
font-size: 0.75rem;
|
|
219
|
+
color: red;
|
|
220
|
+
}
|
|
146
221
|
}
|