@0001-labs/design-system-1 0.3.0-alpha.24 → 0.3.0-alpha.25
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/DS1/0-face/shared-words.ts +2 -1
- package/DS1/0-face/translations/da.json +2 -0
- package/DS1/0-face/translations/de.json +2 -0
- package/DS1/0-face/translations/en.json +2 -0
- package/DS1/0-face/translations/es.json +2 -0
- package/DS1/0-face/translations/fi.json +2 -0
- package/DS1/0-face/translations/fr.json +2 -0
- package/DS1/0-face/translations/is.json +2 -0
- package/DS1/0-face/translations/it.json +2 -0
- package/DS1/0-face/translations/ja.json +2 -0
- package/DS1/0-face/translations/ko.json +2 -0
- package/DS1/0-face/translations/nb.json +2 -0
- package/DS1/0-face/translations/pt-BR.json +2 -0
- package/DS1/0-face/translations/pt.json +2 -0
- package/DS1/0-face/translations/sv.json +2 -0
- package/DS1/0-face/translations/zh.json +2 -0
- package/DS1/1-root/cjk.css +1 -1
- package/DS1/1-root/fonts.css +1 -1
- package/DS1/1-root/one.css +1 -1
- package/DS1/1-root/one.semantic.css +1 -1
- package/DS1/1-root/table.css +75 -2
- package/DS1/3-unit/ds-table.ts +323 -7
- package/DS1/react/table.ts +53 -0
- package/dist/0-face/shared-words.d.ts +2 -1
- package/dist/0-face/shared-words.d.ts.map +1 -1
- package/dist/0-face/translations/da.json +2 -0
- package/dist/0-face/translations/de.json +2 -0
- package/dist/0-face/translations/en.json +2 -0
- package/dist/0-face/translations/es.json +2 -0
- package/dist/0-face/translations/fi.json +2 -0
- package/dist/0-face/translations/fr.json +2 -0
- package/dist/0-face/translations/is.json +2 -0
- package/dist/0-face/translations/it.json +2 -0
- package/dist/0-face/translations/ja.json +2 -0
- package/dist/0-face/translations/ko.json +2 -0
- package/dist/0-face/translations/nb.json +2 -0
- package/dist/0-face/translations/pt-BR.json +2 -0
- package/dist/0-face/translations/pt.json +2 -0
- package/dist/0-face/translations/sv.json +2 -0
- package/dist/0-face/translations/zh.json +2 -0
- package/dist/3-unit/ds-table.d.ts +64 -1
- package/dist/3-unit/ds-table.d.ts.map +1 -1
- package/dist/3-unit/ds-table.js +323 -6
- package/dist/design-system-1.bundle.js +339 -13
- package/dist/design-system-1.bundle.js.map +1 -1
- package/dist/design-system-1.bundle.min.js +4587 -4373
- package/dist/design-system-1.bundle.min.js.map +1 -1
- package/dist/react/table.d.ts +47 -0
- package/dist/react/table.d.ts.map +1 -0
- package/dist/react/table.js +34 -0
- package/dist/{shared-words-BDyeT1zO.js → shared-words-BtRee8xR.js} +46 -16
- package/dist/shared-words-BtRee8xR.js.map +1 -0
- package/dist/{shared-words-LuszeoCp.js → shared-words-CdMDVtXx.js} +31 -1
- package/dist/shared-words-CdMDVtXx.js.map +1 -0
- package/package.json +1 -1
- package/dist/shared-words-BDyeT1zO.js.map +0 -1
- package/dist/shared-words-LuszeoCp.js.map +0 -1
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* again, Undo, Redo, Copy, Copy link, Remove, Rename, Duplicate, Download,
|
|
4
4
|
* Refresh, Open, Send, Clear), Saved, Saving…, Untitled, Account, sign-in,
|
|
5
5
|
* empty states, dates, the settings ds-cycle shows, ds-notice's words, the
|
|
6
|
-
* carousel's and slide's (Carousel, Slide, Previous slide, Next slide, Pause, Play…),
|
|
6
|
+
* carousel's and slide's (Carousel, Slide, Previous slide, Next slide, Pause, Play…), a
|
|
7
|
+
* sheet's moving rows (Move row 3, Row 3 moved to 5), the feedback module's (OK, Copied, Could not copy, Notifications), a meter's
|
|
7
8
|
* words ("7 of 10") and a step's (Done, Failed), the site chrome's (Menu,
|
|
8
9
|
* Contents), the key names keys.ts writes as words (`key.ctrl`, `key.shift` …)
|
|
9
10
|
* and the names of the languages. Keyed by the English sentence,
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} af {count}",
|
|
93
93
|
"Previous slide": "Forrige dias",
|
|
94
94
|
"Next slide": "Næste dias",
|
|
95
|
+
"Move row {index}": "Flyt række {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Række {from} flyttet til {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Afspil",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} von {count}",
|
|
93
93
|
"Previous slide": "Vorherige Folie",
|
|
94
94
|
"Next slide": "Nächste Folie",
|
|
95
|
+
"Move row {index}": "Zeile {index} verschieben",
|
|
96
|
+
"Row {from} moved to {to}": "Zeile {from} nach {to} verschoben",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Abspielen",
|
|
97
99
|
"Menu": "Menü",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} of {count}",
|
|
93
93
|
"Previous slide": "Previous slide",
|
|
94
94
|
"Next slide": "Next slide",
|
|
95
|
+
"Move row {index}": "Move row {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Row {from} moved to {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Play",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Diapositiva anterior",
|
|
94
94
|
"Next slide": "Diapositiva siguiente",
|
|
95
|
+
"Move row {index}": "Mover fila {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Fila {from} movida a {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproducir",
|
|
97
99
|
"Menu": "Menú",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index}/{count}",
|
|
93
93
|
"Previous slide": "Edellinen dia",
|
|
94
94
|
"Next slide": "Seuraava dia",
|
|
95
|
+
"Move row {index}": "Siirrä riviä {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rivi {from} siirretty kohtaan {to}",
|
|
95
97
|
"Pause": "Tauko",
|
|
96
98
|
"Play": "Toista",
|
|
97
99
|
"Menu": "Valikko",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} sur {count}",
|
|
93
93
|
"Previous slide": "Diapositive précédente",
|
|
94
94
|
"Next slide": "Diapositive suivante",
|
|
95
|
+
"Move row {index}": "Déplacer la ligne {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Ligne {from} déplacée en {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Lecture",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -85,6 +85,8 @@
|
|
|
85
85
|
"{index} of {count}": "{index} af {count}",
|
|
86
86
|
"Previous slide": "Fyrri glæra",
|
|
87
87
|
"Next slide": "Næsta glæra",
|
|
88
|
+
"Move row {index}": "Færa röð {index}",
|
|
89
|
+
"Row {from} moved to {to}": "Röð {from} færð í {to}",
|
|
88
90
|
"Pause": "Gera hlé",
|
|
89
91
|
"Play": "Spila",
|
|
90
92
|
"Menu": "Valmynd",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} di {count}",
|
|
93
93
|
"Previous slide": "Slide precedente",
|
|
94
94
|
"Next slide": "Slide successiva",
|
|
95
|
+
"Move row {index}": "Sposta la riga {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Riga {from} spostata in {to}",
|
|
95
97
|
"Pause": "Pausa",
|
|
96
98
|
"Play": "Riproduci",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{count} 枚中 {index} 枚目",
|
|
93
93
|
"Previous slide": "前のスライド",
|
|
94
94
|
"Next slide": "次のスライド",
|
|
95
|
+
"Move row {index}": "{index} 行目を移動",
|
|
96
|
+
"Row {from} moved to {to}": "{from} 行目を {to} 行目に移動しました",
|
|
95
97
|
"Pause": "一時停止",
|
|
96
98
|
"Play": "再生",
|
|
97
99
|
"Menu": "メニュー",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} av {count}",
|
|
93
93
|
"Previous slide": "Forrige lysbilde",
|
|
94
94
|
"Next slide": "Neste lysbilde",
|
|
95
|
+
"Move row {index}": "Flytt rad {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rad {from} flyttet til {to}",
|
|
95
97
|
"Pause": "Pause",
|
|
96
98
|
"Play": "Spill av",
|
|
97
99
|
"Menu": "Meny",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Slide anterior",
|
|
94
94
|
"Next slide": "Próximo slide",
|
|
95
|
+
"Move row {index}": "Mover linha {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Linha {from} movida para {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproduzir",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} de {count}",
|
|
93
93
|
"Previous slide": "Diapositivo anterior",
|
|
94
94
|
"Next slide": "Diapositivo seguinte",
|
|
95
|
+
"Move row {index}": "Mover linha {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Linha {from} movida para {to}",
|
|
95
97
|
"Pause": "Pausar",
|
|
96
98
|
"Play": "Reproduzir",
|
|
97
99
|
"Menu": "Menu",
|
|
@@ -92,6 +92,8 @@
|
|
|
92
92
|
"{index} of {count}": "{index} av {count}",
|
|
93
93
|
"Previous slide": "Föregående bild",
|
|
94
94
|
"Next slide": "Nästa bild",
|
|
95
|
+
"Move row {index}": "Flytta rad {index}",
|
|
96
|
+
"Row {from} moved to {to}": "Rad {from} flyttad till {to}",
|
|
95
97
|
"Pause": "Pausa",
|
|
96
98
|
"Play": "Spela upp",
|
|
97
99
|
"Menu": "Meny",
|
package/DS1/1-root/cjk.css
CHANGED
package/DS1/1-root/fonts.css
CHANGED
package/DS1/1-root/one.css
CHANGED
package/DS1/1-root/table.css
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
* while the sheet scrolls both ways inside `.ds-table-scroll`; give the table
|
|
25
25
|
* `--ds-table-columns` (the number of data columns) and the scroll a height
|
|
26
26
|
* with `--ds-table-height`.
|
|
27
|
+
*
|
|
28
|
+
* `data-reorderable` (set by `<ds-table sheet reorderable>`) gives each row
|
|
29
|
+
* number a grip, `.ds-table__handle` with the `handle` icon, in place of the
|
|
30
|
+
* number while the row is hovered or the grip focused. A lifted row
|
|
31
|
+
* (`tr[data-lifted]`) keeps the paper behind it and follows the pointer; while
|
|
32
|
+
* `data-moving` is on the table the other rows step aside in transform alone,
|
|
33
|
+
* a sortable list's 200ms on cubic-bezier(0.2, 0, 0, 1), and never under
|
|
34
|
+
* reduced motion.
|
|
27
35
|
*/
|
|
28
36
|
|
|
29
37
|
.ds-table {
|
|
@@ -172,14 +180,14 @@
|
|
|
172
180
|
.ds-table[data-sheet] thead :is(th, td) {
|
|
173
181
|
position: sticky;
|
|
174
182
|
top: 0;
|
|
175
|
-
z-index:
|
|
183
|
+
z-index: 3;
|
|
176
184
|
background: var(--ds-table-paper);
|
|
177
185
|
}
|
|
178
186
|
.ds-table[data-sheet] thead tr + tr :is(th, td) {
|
|
179
187
|
top: var(--ds-table-row);
|
|
180
188
|
}
|
|
181
189
|
.ds-table[data-sheet] thead .ds-table__number {
|
|
182
|
-
z-index:
|
|
190
|
+
z-index: 4;
|
|
183
191
|
}
|
|
184
192
|
.ds-table[data-sheet] .ds-table__letters td {
|
|
185
193
|
color: var(--ds-title-color, light-dark(#797979, #9a9a9a));
|
|
@@ -198,3 +206,68 @@
|
|
|
198
206
|
overflow: auto;
|
|
199
207
|
overscroll-behavior: contain;
|
|
200
208
|
}
|
|
209
|
+
|
|
210
|
+
/* Rows that move: a grip on the number, the lifted row on paper, the others stepping aside. */
|
|
211
|
+
.ds-table[data-sheet][data-reorderable] tbody .ds-table__number {
|
|
212
|
+
-webkit-user-select: none;
|
|
213
|
+
user-select: none;
|
|
214
|
+
-webkit-touch-callout: none;
|
|
215
|
+
}
|
|
216
|
+
.ds-table__index {
|
|
217
|
+
transition: opacity 100ms ease;
|
|
218
|
+
}
|
|
219
|
+
.ds-table__handle {
|
|
220
|
+
all: unset;
|
|
221
|
+
position: absolute;
|
|
222
|
+
inset: 0;
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: flex-end;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
color: var(--ds-reorder-color, light-dark(#777777, #cccccc));
|
|
227
|
+
cursor: grab;
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transition: opacity 100ms ease;
|
|
230
|
+
}
|
|
231
|
+
.ds-table__handle:hover {
|
|
232
|
+
color: var(--ds-reorder-active-color, light-dark(#333333, #ffffff));
|
|
233
|
+
}
|
|
234
|
+
.ds-table__handle:focus-visible {
|
|
235
|
+
box-shadow: inset 0 0 0 2px var(--ds-focus-ring, Highlight);
|
|
236
|
+
}
|
|
237
|
+
@media (hover: hover) {
|
|
238
|
+
.ds-table[data-reorderable]:not([data-moving]) tbody tr:hover .ds-table__handle { opacity: 1; }
|
|
239
|
+
.ds-table[data-reorderable]:not([data-moving]) tbody tr:hover .ds-table__index { opacity: 0; }
|
|
240
|
+
}
|
|
241
|
+
.ds-table[data-reorderable] tbody tr:is([data-lifted], :has(.ds-table__handle:focus-visible)) .ds-table__handle { opacity: 1; }
|
|
242
|
+
.ds-table[data-reorderable] tbody tr:is([data-lifted], :has(.ds-table__handle:focus-visible)) .ds-table__index { opacity: 0; }
|
|
243
|
+
.ds-table[data-moving] tbody tr {
|
|
244
|
+
transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
|
|
245
|
+
}
|
|
246
|
+
.ds-table[data-moving],
|
|
247
|
+
.ds-table[data-moving] * {
|
|
248
|
+
cursor: grabbing;
|
|
249
|
+
}
|
|
250
|
+
.ds-table[data-sheet] tbody tr[data-lifted] {
|
|
251
|
+
position: relative;
|
|
252
|
+
z-index: 2;
|
|
253
|
+
transition: none;
|
|
254
|
+
}
|
|
255
|
+
.ds-table[data-sheet] tbody tr[data-lifted] > :is(th, td) {
|
|
256
|
+
background: var(--ds-table-paper);
|
|
257
|
+
box-shadow: inset 0 1px var(--ds-table-rule);
|
|
258
|
+
}
|
|
259
|
+
.ds-table__status {
|
|
260
|
+
position: absolute;
|
|
261
|
+
width: 1px;
|
|
262
|
+
height: 1px;
|
|
263
|
+
overflow: hidden;
|
|
264
|
+
clip-path: inset(50%);
|
|
265
|
+
white-space: nowrap;
|
|
266
|
+
}
|
|
267
|
+
@media (prefers-reduced-motion: reduce) {
|
|
268
|
+
.ds-table[data-moving] tbody tr,
|
|
269
|
+
.ds-table__index,
|
|
270
|
+
.ds-table__handle {
|
|
271
|
+
transition: none;
|
|
272
|
+
}
|
|
273
|
+
}
|