@exagone313/dsh-podman 1.2.0 → 1.3.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.
Files changed (98) hide show
  1. package/dist/card-route.d.ts +8 -0
  2. package/dist/card-route.js +19 -8
  3. package/dist/client/ContainerCard.js +147 -110
  4. package/dist/client/card-protocol.d.ts +4 -0
  5. package/dist/client/card-protocol.js +34 -0
  6. package/dist/client/container-card-caches.d.ts +1 -1
  7. package/dist/client/container-card-caches.js +19 -17
  8. package/dist/client/container-card-config.d.ts +47 -0
  9. package/dist/client/container-card-config.js +160 -0
  10. package/dist/client/container-card-controller.d.ts +35 -3
  11. package/dist/client/container-card-controller.js +263 -41
  12. package/dist/client/container-card-create-modal.d.ts +5 -1
  13. package/dist/client/container-card-create-modal.js +111 -94
  14. package/dist/client/container-card-defaults.d.ts +16 -0
  15. package/dist/client/container-card-defaults.js +147 -0
  16. package/dist/client/container-card-dialog-styles.d.ts +7 -0
  17. package/dist/client/container-card-dialog-styles.js +70 -0
  18. package/dist/client/container-card-dialog.d.ts +12 -0
  19. package/dist/client/container-card-dialog.js +47 -0
  20. package/dist/client/container-card-directory-styles.d.ts +1 -1
  21. package/dist/client/container-card-directory-styles.js +5 -5
  22. package/dist/client/container-card-directory.js +8 -7
  23. package/dist/client/container-card-edit-modal.d.ts +39 -0
  24. package/dist/client/container-card-edit-modal.js +29 -0
  25. package/dist/client/container-card-editors.d.ts +5 -2
  26. package/dist/client/container-card-editors.js +109 -134
  27. package/dist/client/container-card-field-styles.d.ts +7 -0
  28. package/dist/client/container-card-field-styles.js +63 -0
  29. package/dist/client/container-card-form.d.ts +47 -0
  30. package/dist/client/container-card-form.js +61 -0
  31. package/dist/client/container-card-group.d.ts +9 -0
  32. package/dist/client/container-card-group.js +22 -0
  33. package/dist/client/container-card-images.d.ts +6 -2
  34. package/dist/client/container-card-images.js +63 -23
  35. package/dist/client/container-card-paths.js +43 -52
  36. package/dist/client/container-card-ports.d.ts +3 -4
  37. package/dist/client/container-card-ports.js +74 -38
  38. package/dist/client/container-card-resources.d.ts +38 -0
  39. package/dist/client/container-card-resources.js +73 -0
  40. package/dist/client/container-card-row.d.ts +11 -19
  41. package/dist/client/container-card-row.js +122 -122
  42. package/dist/client/container-card-secrets.d.ts +31 -3
  43. package/dist/client/container-card-secrets.js +174 -56
  44. package/dist/client/container-card-shared.d.ts +173 -6
  45. package/dist/client/container-card-shared.js +616 -57
  46. package/dist/client/container-card-status.d.ts +18 -0
  47. package/dist/client/container-card-status.js +166 -0
  48. package/dist/client/container-card-styles.d.ts +49 -7
  49. package/dist/client/container-card-styles.js +396 -40
  50. package/dist/client/container-card-table-styles.d.ts +15 -0
  51. package/dist/client/container-card-table-styles.js +237 -0
  52. package/dist/client/container-card-tabs-styles.d.ts +5 -0
  53. package/dist/client/container-card-tabs-styles.js +46 -0
  54. package/dist/client/container-card-toast.d.ts +5 -0
  55. package/dist/client/container-card-toast.js +10 -0
  56. package/dist/client/container-card-volumes.d.ts +1 -0
  57. package/dist/client/container-card-volumes.js +14 -19
  58. package/dist/client/container-card-workspace.d.ts +8 -12
  59. package/dist/client/container-card-workspace.js +76 -14
  60. package/dist/client/index.js +6488 -3474
  61. package/dist/client/locales.d.ts +10 -1
  62. package/dist/client/locales.js +268 -114
  63. package/dist/client/relative-time.d.ts +10 -0
  64. package/dist/client/relative-time.js +74 -0
  65. package/dist/client/slot-contract.d.ts +8 -0
  66. package/dist/client/tool-views.js +1 -1
  67. package/dist/container-env.js +1 -1
  68. package/dist/env-rows.d.ts +9 -11
  69. package/dist/env-rows.js +72 -40
  70. package/dist/generated/version.d.ts +2 -2
  71. package/dist/generated/version.js +2 -2
  72. package/dist/guest-terminal.js +1 -1
  73. package/dist/mount-enums.d.ts +11 -0
  74. package/dist/mount-enums.js +60 -0
  75. package/dist/subprocess.js +1 -1
  76. package/dist/terminal-sessions.js +2 -2
  77. package/dist/terminal-shells.js +1 -1
  78. package/dist/tool-handlers.js +1 -1
  79. package/dist/workspace-binding.js +2 -2
  80. package/docs/architecture.md +6 -4
  81. package/docs/architecture.zh.md +3 -1
  82. package/docs/configuration.md +28 -25
  83. package/docs/configuration.zh.md +15 -11
  84. package/docs/development-prompt.md +9 -7
  85. package/docs/development-prompt.zh.md +9 -7
  86. package/docs/development.md +25 -18
  87. package/docs/development.zh.md +22 -18
  88. package/docs/install-dsh-and-dsh-podman.md +15 -12
  89. package/docs/install-dsh-and-dsh-podman.zh.md +15 -9
  90. package/docs/uninstall.md +2 -0
  91. package/docs/uninstall.zh.md +2 -0
  92. package/docs/update.md +2 -0
  93. package/docs/update.zh.md +2 -0
  94. package/docs/usage.md +191 -39
  95. package/docs/usage.zh.md +150 -29
  96. package/package.json +8 -4
  97. package/dist/client/container-card-default-env.d.ts +0 -10
  98. package/dist/client/container-card-default-env.js +0 -69
@@ -1,13 +1,310 @@
1
1
  // SPDX-FileCopyrightText: 2026 Elouan Martinet <exa@elou.world>
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
+ // A title inside a card (a container or a resource), one step above body text.
5
+ export const cardTitle = {
6
+ margin: 0,
7
+ fontSize: "14px",
8
+ fontWeight: 600,
9
+ lineHeight: 1.4,
10
+ color: "var(--dsw-alias-label-primary)",
11
+ };
12
+ // The heading of a subsection inside a card; the title every existing call site
13
+ // already uses.
4
14
  export const sectionTitle = {
15
+ margin: 0,
16
+ fontSize: "14px",
5
17
  fontWeight: 600,
6
- margin: "16px 0 8px",
18
+ lineHeight: 1.4,
19
+ color: "var(--dsw-alias-label-primary)",
20
+ };
21
+ // The page column: one readable column, bounded like the harness's settings.
22
+ // Sections are separated by this gap alone — never by a rule above a title.
23
+ export const pageColumn = {
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ gap: "24px",
27
+ width: "100%",
28
+ maxWidth: "760px",
29
+ color: "var(--dsw-alias-label-primary)",
30
+ };
31
+ // A card: the filled, bordered surface a tab lists its rows in. Hairlines live
32
+ // between the rows inside it and under its title row, and nowhere else.
33
+ export const card = {
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ gap: "12px",
37
+ padding: "16px",
38
+ border: "0.5px solid var(--dsw-alias-border-l2)",
39
+ borderRadius: "var(--dsw-radius-lg)",
40
+ background: "var(--dsw-alias-settings-card-fill)",
41
+ };
42
+ // A card's rows: one column with no gap of its own, so each row's own padding
43
+ // and hairline set the rhythm.
44
+ export const cardList = {
45
+ display: "flex",
46
+ flexDirection: "column",
47
+ };
48
+ // A card's body, under its title row: one column with the card's own gap, and
49
+ // the wrapper the responsive table stylesheet makes its containment context. The
50
+ // containment lives here, not on the card, so it can never size the card's own
51
+ // box.
52
+ export const cardContent = {
53
+ display: "flex",
54
+ flexDirection: "column",
55
+ gap: "12px",
56
+ };
57
+ // The one alignment rule every action row follows, in every tab: the row
58
+ // wraps, its name column grows to claim the title line, and that growth is what
59
+ // holds the action group at the line's right end. A group that cannot fit
60
+ // beside the name wraps onto its own line, where it starts at the left margin.
61
+ // No `margin-left: auto` is involved: an auto margin would push a wrapped group
62
+ // to the right edge too, which is the bug this replaces. Every caller composes
63
+ // these styles (plus rowMain and rowName for the name side) rather than
64
+ // carrying its own.
65
+ export const actionRow = {
66
+ display: "flex",
67
+ flexWrap: "wrap",
68
+ alignItems: "center",
69
+ gap: "8px",
70
+ };
71
+ // The name column of an action row. Its 240px basis is what makes the action
72
+ // group wrap on a narrow pane; its growth is what keeps the group at the right
73
+ // end while both share the title line. min-width 0 lets the column shrink, so a
74
+ // long name can never push the group away.
75
+ export const rowMain = {
76
+ display: "flex",
77
+ alignItems: "center",
78
+ flexWrap: "wrap",
79
+ gap: "8px",
80
+ flex: "1 1 240px",
81
+ minWidth: 0,
82
+ };
83
+ // A name inside rowMain: it never claims more width than it is offered, so a
84
+ // long name truncates with an ellipsis instead of orphaning the row's actions.
85
+ export const rowName = {
86
+ minWidth: 0,
87
+ overflow: "hidden",
88
+ textOverflow: "ellipsis",
89
+ whiteSpace: "nowrap",
90
+ };
91
+ // The action group of an action row: it wraps within itself and carries no
92
+ // margin of its own, so it sits at the right end while it shares the title line
93
+ // and at the left margin as soon as it drops onto its own.
94
+ export const rowActions = {
95
+ display: "flex",
96
+ flexWrap: "wrap",
97
+ alignItems: "center",
98
+ gap: "8px",
99
+ };
100
+ // A destructive action: the same outline control as any other, with its text
101
+ // and stroke carrying the error state colour, so a removal reads as one rather
102
+ // than as an ordinary secondary action.
103
+ export const destructiveAction = {
104
+ color: "var(--dsw-alias-state-error-primary)",
105
+ borderColor: "var(--dsw-alias-state-error-primary)",
106
+ };
107
+ // A warn-emphasised action: the warn state colour on text and stroke, over the
108
+ // warn tint, so a cautious partial cleanup reads as one.
109
+ export const warnAction = {
110
+ color: "var(--dsw-alias-state-warn-primary)",
111
+ borderColor: "var(--dsw-alias-state-warn-primary)",
112
+ background: "var(--dsw-alias-state-warn-tertiary)",
113
+ };
114
+ // An accent-emphasised action: the business state colour on text and stroke,
115
+ // over a faint tint of it, so a deliberate build action reads as one without
116
+ // competing with a card's single primary control.
117
+ export const businessAction = {
118
+ color: "var(--dsw-alias-state-business-primary)",
119
+ borderColor: "var(--dsw-alias-state-business-primary)",
120
+ background: "color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, transparent)",
121
+ };
122
+ // A success-emphasised action: the success state colour on text and stroke, over
123
+ // a faint tint of it, so a recommended setup step reads as one. The harness has
124
+ // no success-tertiary token, so the tint mixes the primary, as the error tone
125
+ // does.
126
+ export const successAction = {
127
+ color: "var(--dsw-alias-state-success-primary)",
128
+ borderColor: "var(--dsw-alias-state-success-primary)",
129
+ background: "color-mix(in srgb, var(--dsw-alias-state-success-primary) 12%, transparent)",
130
+ };
131
+ // The emphasis styles by name, so a caller that renders a plain Button can paint
132
+ // it the same way ConfirmButton's own emphasis prop does.
133
+ export const emphasisAction = {
134
+ warn: warnAction,
135
+ business: businessAction,
136
+ success: successAction,
137
+ };
138
+ // One hairline-separated row inside a card; the caller gives every row but the
139
+ // last the rowDivider.
140
+ export const cardRow = {
141
+ ...actionRow,
142
+ padding: "10px 0",
143
+ };
144
+ // A card row whose body is a block — a title line plus labelled lines — and
145
+ // whose actions sit on their own left-aligned line below it. The image and
146
+ // container rows read this way: no actions column splits a block from what it
147
+ // does. It is one plain column, never a wrapping one, so its own box is exactly
148
+ // the block it holds.
149
+ export const cardBlockRow = {
150
+ ...cardRow,
151
+ flexWrap: "nowrap",
152
+ flexDirection: "column",
153
+ alignItems: "stretch",
154
+ };
155
+ // The block a block row holds: the title line and, under it, the field groups.
156
+ // It claims the row's full width: the row is a column, so its cross axis is the
157
+ // inline one and a start-aligned item would shrink to its own content, which the
158
+ // container queries inside the block would then read as a narrow card. It keeps
159
+ // an automatic height, so no ancestor flex or grid line can stretch it below its
160
+ // own content.
161
+ export const blockWrapper = {
162
+ width: "100%",
163
+ height: "auto",
164
+ };
165
+ // The hairline under a card's title row, applied only when the card has
166
+ // content: an empty category keeps its title and its empty-state line with no
167
+ // rule between them, so a rule never separates a title from nothing. It is
168
+ // never a rule above a title. The padding is what keeps the rule off the title
169
+ // it closes; below it, the card's own gap supplies the same 12px before the
170
+ // body.
171
+ export const headerRule = {
172
+ paddingBottom: "12px",
173
+ borderBottom: "0.5px solid var(--dsw-alias-border-l2)",
174
+ };
175
+ // The field groups of a container block, under its title line: one column, so a
176
+ // long list only makes the block taller.
177
+ export const blockFields = {
178
+ display: "flex",
179
+ flexDirection: "column",
180
+ gap: "12px",
181
+ marginTop: "6px",
182
+ };
183
+ // A labelled group of read-only fields inside a container block.
184
+ export const fieldGroup = {
185
+ display: "flex",
186
+ flexDirection: "column",
187
+ gap: "8px",
188
+ };
189
+ // The label of one field group, one step down from the block's title.
190
+ export const fieldGroupLabel = {
7
191
  fontSize: "13px",
192
+ fontWeight: 500,
193
+ lineHeight: "20px",
8
194
  color: "var(--dsw-alias-label-secondary)",
9
- textTransform: "uppercase",
10
- letterSpacing: "0.04em",
195
+ };
196
+ // A read-only field's control line: the field itself grows and its own copy
197
+ // button sits at the line's end.
198
+ export const fieldLine = {
199
+ display: "flex",
200
+ alignItems: "center",
201
+ gap: "4px",
202
+ minWidth: 0,
203
+ };
204
+ // The status strip above the tabs: the state chips that summarise the page.
205
+ export const statusStrip = {
206
+ display: "flex",
207
+ flexWrap: "wrap",
208
+ alignItems: "center",
209
+ gap: "8px",
210
+ };
211
+ // One tab's body: the same column gap the page uses, under the tablist.
212
+ export const tabPanel = {
213
+ display: "flex",
214
+ flexDirection: "column",
215
+ gap: "24px",
216
+ };
217
+ // The heading of one editor group inside a card or dialog (the Defaults tab's
218
+ // environment group; the container dialogs label their groups with DialogGroup
219
+ // instead). It never carries a rule.
220
+ export const editorTitle = {
221
+ margin: 0,
222
+ fontSize: "13px",
223
+ fontWeight: 600,
224
+ lineHeight: 1.4,
225
+ color: "var(--dsw-alias-label-primary)",
226
+ };
227
+ // The secondary line of a card row (a cache's usage beside its manager), so the
228
+ // row's first line stays a title.
229
+ export const rowMeta = {
230
+ fontSize: "13px",
231
+ color: "var(--dsw-alias-label-tertiary)",
232
+ };
233
+ // A hairline between the rows of one card; the last row omits it.
234
+ export const rowDivider = {
235
+ borderBottom: "0.5px solid var(--dsw-alias-border-l2)",
236
+ };
237
+ // A count or state summary rendered beside a section or disclosure title, so a
238
+ // collapsed row states what it holds without colour alone.
239
+ export const headerCount = {
240
+ marginLeft: "8px",
241
+ fontSize: "13px",
242
+ color: "var(--dsw-alias-label-caption)",
243
+ fontVariantNumeric: "tabular-nums",
244
+ };
245
+ // The workspace header's one status phrase: its running part reads in the
246
+ // secondary label colour while the stopped part — or the empty "0 containers" —
247
+ // is greyed, so one phrase states both counts without a second summary beside
248
+ // it.
249
+ export const workspaceStatus = {
250
+ marginLeft: "8px",
251
+ fontSize: "13px",
252
+ color: "var(--dsw-alias-label-secondary)",
253
+ fontVariantNumeric: "tabular-nums",
254
+ };
255
+ // The greyed half of the workspace status phrase.
256
+ export const statusMuted = {
257
+ color: "var(--dsw-alias-label-tertiary)",
258
+ };
259
+ // A state chip: a short state word whose colour carries the same fact the words
260
+ // already state. The tone's own fill and foreground are applied by the StatusChip
261
+ // component, which composes this base style.
262
+ export const statusChip = {
263
+ display: "inline-flex",
264
+ alignItems: "center",
265
+ height: "20px",
266
+ padding: "0 8px",
267
+ borderRadius: "999px",
268
+ fontSize: "12px",
269
+ lineHeight: "18px",
270
+ fontWeight: 500,
271
+ whiteSpace: "nowrap",
272
+ };
273
+ // The labelled lines under an image's name. Each line is one field of the
274
+ // snapshot; the class on every line (see container-card-table-styles.ts) turns
275
+ // the label-above-value stack on for a narrow card.
276
+ export const imageFields = {
277
+ display: "flex",
278
+ flexDirection: "column",
279
+ gap: "4px",
280
+ marginTop: "6px",
281
+ };
282
+ // A field line's label: one step down and greyed, so the value reads first.
283
+ export const imageFieldLabel = {
284
+ color: "var(--dsw-alias-label-tertiary)",
285
+ };
286
+ // A field line's value in the plain body scale.
287
+ export const imageFieldValue = {
288
+ color: "var(--dsw-alias-label-primary)",
289
+ minWidth: 0,
290
+ overflowWrap: "anywhere",
291
+ };
292
+ // The placeholder one missing value reads as, in a container block and in the
293
+ // status table alike: the body size, colour and line-height, so a dash is never
294
+ // a smaller or greyer fact than the values around it.
295
+ export const missingValue = {
296
+ fontSize: "13px",
297
+ lineHeight: "20px",
298
+ color: "var(--dsw-alias-label-primary)",
299
+ };
300
+ // The value of a field whose content claims a line of its own (the packages
301
+ // chips), so it never sits beside its label.
302
+ export const imageFieldOwnLine = {
303
+ ...imageFieldValue,
304
+ width: "100%",
305
+ display: "flex",
306
+ flexWrap: "wrap",
307
+ gap: "6px",
11
308
  };
12
309
  export const banner = {
13
310
  padding: "6px 10px",
@@ -23,6 +320,7 @@ export const greyId = {
23
320
  };
24
321
  export const hint = {
25
322
  fontSize: "13px",
323
+ lineHeight: 1.5,
26
324
  color: "var(--dsw-alias-label-tertiary)",
27
325
  margin: "8px 0",
28
326
  };
@@ -34,32 +332,94 @@ export const fieldLabel = {
34
332
  // (the tab body's toolbar) is unaffected.
35
333
  textAlign: "right",
36
334
  };
37
- export const wsBody = {
38
- display: "flex",
39
- flexDirection: "column",
40
- gap: "8px",
41
- padding: "10px 0 12px",
335
+ // A resource's name on an action row (an image, volume, secret or cache) as a
336
+ // card title. rowName keeps a long name from pushing the row's actions onto an
337
+ // orphan line.
338
+ export const containerNameHeading = {
339
+ ...cardTitle,
340
+ ...rowName,
42
341
  };
43
- export const containerRow = {
342
+ // One editor group inside a settings card or a dialog group.
343
+ export const editorGroup = {
44
344
  display: "flex",
45
345
  flexDirection: "column",
46
346
  gap: "8px",
47
- padding: "10px 12px",
48
- border: "1px solid var(--dsw-alias-border-l2)",
49
- borderRadius: "10px",
50
- background: "var(--dsw-alias-bg-layer-3)",
51
347
  };
52
- export const containerHeader = {
348
+ // One row of labelled fields — the environment editor's, or a container block's
349
+ // read-only fields. Each field carries its visible label above its control, and
350
+ // a row's own Remove control sits at the fields' bottom edge, so it reads as
351
+ // part of that row even after it wraps below them.
352
+ export const envRow = {
53
353
  display: "flex",
54
354
  flexWrap: "wrap",
55
- alignItems: "center",
355
+ alignItems: "flex-end",
56
356
  gap: "8px",
57
357
  };
58
- export const actions = {
358
+ // One labelled field of such a row.
359
+ export const envField = {
59
360
  display: "flex",
60
- flexWrap: "wrap",
61
- gap: "8px",
62
- alignItems: "center",
361
+ flexDirection: "column",
362
+ gap: "4px",
363
+ flex: "1 1 160px",
364
+ minWidth: 0,
365
+ };
366
+ // A field label in such a row, one step down from its value.
367
+ export const envFieldLabel = {
368
+ fontSize: "12px",
369
+ lineHeight: "18px",
370
+ color: "var(--dsw-alias-label-tertiary)",
371
+ };
372
+ // A hint that states a fact beside a field's value without replacing it (a port
373
+ // the gateway has not bound yet).
374
+ export const fieldHint = {
375
+ fontSize: "12px",
376
+ lineHeight: "18px",
377
+ color: "var(--dsw-alias-label-tertiary)",
378
+ whiteSpace: "nowrap",
379
+ };
380
+ // One labelled field of a mount row: the label-over-value stack of a read-only
381
+ // field without a flex basis of its own. The class on the field (see
382
+ // container-card-table-styles.ts) shares the row's line while there is room and
383
+ // gives every field a line of its own on a narrow row, so the container block
384
+ // and the Mounts editor stack identically.
385
+ export const mountField = {
386
+ display: "flex",
387
+ flexDirection: "column",
388
+ gap: "4px",
389
+ minWidth: 0,
390
+ };
391
+ // The Kind field of a mount row: the label-over-value stack of a mount field,
392
+ // sized to its chip instead of growing like a text field. It top-aligns, so its
393
+ // label keeps the line of the labels beside it, and its value line reserves an
394
+ // input's own height (see the class in container-card-table-styles.ts), so the
395
+ // chip sits on the inputs' line instead of at the row's top edge.
396
+ export const mountKindField = {
397
+ ...mountField,
398
+ flex: "0 0 auto",
399
+ alignSelf: "flex-start",
400
+ };
401
+ // The staged controls stacked: the buttons keep the first line, so the marker
402
+ // below them can appear without moving the buttons themselves.
403
+ export const footerStack = {
404
+ display: "flex",
405
+ flexDirection: "column",
406
+ alignItems: "flex-start",
407
+ gap: "2px",
408
+ width: "100%",
409
+ };
410
+ // The marker beside a staged editor's Save/Discard controls, so an unsaved
411
+ // draft is named in text rather than only shown by an enabled button.
412
+ export const dirtyBadge = {
413
+ fontSize: "12px",
414
+ color: "var(--dsw-alias-state-warn-primary)",
415
+ };
416
+ // The dirty marker's own line: it is always rendered so its height is reserved
417
+ // and the buttons above never shift when the draft becomes dirty; the margin
418
+ // keeps it off the action row it reports about.
419
+ export const dirtyBadgeSlot = {
420
+ ...dirtyBadge,
421
+ minHeight: "18px",
422
+ marginTop: "6px",
63
423
  };
64
424
  export const footerRow = {
65
425
  display: "flex",
@@ -68,34 +428,20 @@ export const footerRow = {
68
428
  marginTop: "12px",
69
429
  borderTop: "1px solid var(--dsw-alias-border-l2)",
70
430
  };
71
- export const tableStyle = {
72
- width: "100%",
73
- borderCollapse: "collapse",
74
- fontSize: "13px",
75
- };
76
- export const thStyle = {
77
- textAlign: "left",
78
- padding: "6px 10px",
79
- borderBottom: "1px solid var(--dsw-alias-border-l2)",
80
- color: "var(--dsw-alias-label-secondary)",
81
- fontWeight: 600,
82
- whiteSpace: "nowrap",
83
- };
84
- export const tdStyle = {
85
- padding: "6px 10px",
86
- borderBottom: "1px solid var(--dsw-alias-border-l2)",
87
- color: "var(--dsw-alias-label-primary)",
88
- verticalAlign: "top",
89
- };
90
431
  export const imageSelect = {
91
432
  appearance: "none",
92
- padding: "4px 8px",
93
- borderRadius: "8px",
433
+ padding: "6px 10px",
434
+ borderRadius: "var(--dsw-radius-md)",
94
435
  border: "1px solid var(--dsw-alias-border-l2)",
95
436
  background: "var(--dsw-alias-bg-layer-3)",
96
437
  color: "inherit",
97
438
  fontSize: "12px",
439
+ // Fluid: fills the space it is given but never exceeds 160px, so a narrow
440
+ // pane shrinks it instead of letting it overflow.
441
+ width: "100%",
98
442
  maxWidth: "160px",
443
+ minWidth: 0,
444
+ flex: "0 1 auto",
99
445
  };
100
446
  // A select that fills its label's row where fields are stacked; the narrow
101
447
  // guide card uses it so the container and shell controls share one width.
@@ -103,3 +449,13 @@ export const fieldSelect = {
103
449
  ...imageSelect,
104
450
  width: "100%",
105
451
  };
452
+ // A select inside a shared field row: it fills the value slot exactly like the
453
+ // text input beside it — the same flex sizing the slot class carries
454
+ // (SLOT_CLASS in container-card-field-styles.ts) — without the compact cap a
455
+ // toolbar select carries, so switching a row's kind or control never resizes
456
+ // it.
457
+ export const slotSelect = {
458
+ ...imageSelect,
459
+ flex: "1 1 0",
460
+ maxWidth: "none",
461
+ };
@@ -0,0 +1,15 @@
1
+ import type { Context as ClientContext } from "@deepseek-ai/cordis";
2
+ export declare const TABLE_CARD_CLASS = "dsh-podman-table-card";
3
+ export declare const TABLE_CARD_CONTENT_CLASS = "dsh-podman-table-card-content";
4
+ export declare const TABLE_CLASS = "dsh-podman-table";
5
+ export declare const FIELD_ROW_CLASS = "dsh-podman-field-row";
6
+ export declare const MOUNT_ROW_CLASS = "dsh-podman-mount-row";
7
+ export declare const MOUNT_KIND_CLASS = "dsh-podman-mount-kind";
8
+ export declare const MOUNT_KIND_VALUE_CLASS = "dsh-podman-mount-kind-value";
9
+ export declare const MOUNT_FIELD_CLASS = "dsh-podman-mount-field";
10
+ export declare const MOUNT_DESTINATION_CLASS = "dsh-podman-mount-destination";
11
+ export declare const MOUNT_ACTIONS_CLASS = "dsh-podman-mount-actions";
12
+ export declare const ROW_LIST_CLASS = "dsh-podman-row-list";
13
+ export declare const TABLE_STYLES = "\n.dsh-podman-table-card {\n align-self: start;\n box-sizing: border-box;\n width: 100%;\n}\n.dsh-podman-table-card-content {\n container-type: inline-size;\n}\n.dsh-podman-table {\n width: 100%;\n border-collapse: collapse;\n}\n.dsh-podman-table th,\n.dsh-podman-table td {\n padding: 12px 12px 12px 0;\n text-align: left;\n vertical-align: top;\n overflow-wrap: anywhere;\n}\n.dsh-podman-table th:last-child,\n.dsh-podman-table td:last-child {\n padding-right: 0;\n}\n.dsh-podman-table thead th {\n padding-top: 0;\n padding-bottom: 8px;\n font-size: 12px;\n font-weight: 500;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary);\n}\n.dsh-podman-table tbody tr + tr > td {\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n}\n.dsh-podman-field-row {\n display: flex;\n flex-wrap: wrap;\n gap: 2px 8px;\n font-size: 13px;\n line-height: 20px;\n}\n.dsh-podman-mount-row {\n container-type: inline-size;\n}\n/* One labelled field of a mount row shares the line while there is room; the\n container query below gives it a line of its own on a narrow row. */\n.dsh-podman-mount-field {\n flex: 1 1 160px;\n}\n/* The Destination field grows twice as much as the fields beside it and starts\n from a wider basis, so a wide row spends its free space on the destination\n instead of leaving it unused. It keeps width: 100% on its input and carries\n no cap. */\n.dsh-podman-mount-destination {\n flex: 2 1 240px;\n}\n/* The Kind field's value line reserves the line an input occupies beside it \u2014\n 32px of control box plus its 0.5px stroke on each side \u2014 so the chip centres\n on the inputs' line instead of hugging the top of the row. */\n.dsh-podman-mount-kind-value {\n min-height: 33px;\n}\n/* The list is its own containment context, so the query below resolves against\n the width its rows are given even when the list renders in a dialog portaled\n to the body, which no card wraps and which would otherwise leave the rows\n with nothing to measure. Because the list spans the same width its rows had,\n every other query still measures what it measured before. */\n.dsh-podman-row-list {\n container-type: inline-size;\n}\n@container (max-width: 560px) {\n .dsh-podman-table,\n .dsh-podman-table tbody,\n .dsh-podman-table tr,\n .dsh-podman-table td {\n display: block;\n }\n .dsh-podman-table thead {\n display: none;\n }\n .dsh-podman-table tbody tr {\n padding: 12px 0;\n }\n .dsh-podman-table tbody tr + tr {\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n }\n .dsh-podman-table tbody tr + tr > td {\n border-top: 0;\n }\n .dsh-podman-table td {\n padding: 0 0 8px;\n }\n .dsh-podman-table td:last-child {\n padding-bottom: 0;\n }\n .dsh-podman-table td::before {\n content: attr(data-label);\n display: block;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary);\n }\n /* A field line whose label sits beside its value on a wide card stacks the\n label above the value once the card is narrow. */\n .dsh-podman-field-row {\n flex-direction: column;\n gap: 0;\n }\n /* A mount row's Kind field stops hugging its chip and takes a line of its\n own, like the fields beside it. Its flex basis is auto, so the width is\n what gives the field that line. */\n .dsh-podman-mount-kind {\n width: 100%;\n }\n /* The Kind field now owns its line: with no input beside it to align with,\n its value line drops the height it reserved, so a stacked chip leaves no\n empty space under itself. */\n .dsh-podman-mount-kind-value {\n min-height: 0;\n }\n /* Every other field of a mount row \u2014 the Destination included \u2014 takes a full\n line of its own too, so the label always reads above its value on a narrow\n row. */\n .dsh-podman-mount-field,\n .dsh-podman-mount-destination {\n flex-basis: 100%;\n }\n /* A mount row's actions become that row's own full-width footer. */\n .dsh-podman-mount-actions {\n flex-basis: 100%;\n width: 100%;\n }\n /* Consecutive rows of one list \u2014 a container block's field group and the\n editor that changes the same list \u2014 take a hairline once they stack. Side\n by side on a wide pane the gap alone separates them, which is why the rule\n lives in this query alone, and the padding above each ruled row keeps the\n line in the gap instead of against the row it introduces. A group's label,\n its empty-state line and its own add controls carry no row class, so they\n never take a rule of their own. */\n .dsh-podman-row-list > .dsh-podman-mount-row + .dsh-podman-mount-row {\n border-top: 0.5px solid var(--dsw-alias-border-l2);\n /* The margin adds to the list's own gap, so the ruled row sits further from\n the row above it than from the one below: the line reads as the boundary\n of the row it introduces rather than as that row's top edge. */\n margin-top: 4px;\n padding-top: 8px;\n }\n}\n";
14
+ /** Inject the responsive table's stylesheet for the owning plugin lifetime. */
15
+ export declare function installTableStyles(ctx: ClientContext): void;