@remit/ui 0.0.184 → 0.0.185
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/package.json
CHANGED
|
@@ -280,6 +280,8 @@ export const Counting: Story = {
|
|
|
280
280
|
* A bulk delete in progress reports a running total via `statusLabel` and a
|
|
281
281
|
* determinate `ProgressBar`; the delete button shows its busy spinner (never
|
|
282
282
|
* disables) and the overflow verbs drop out — nothing here can act mid-delete.
|
|
283
|
+
* Stop rides on the notice, the way it does while counting: the run outlives
|
|
284
|
+
* the wizard's run screen, so the bar has to be able to end it too.
|
|
283
285
|
*/
|
|
284
286
|
export const DeletingWithProgress: Story = {
|
|
285
287
|
args: {
|
|
@@ -287,6 +289,37 @@ export const DeletingWithProgress: Story = {
|
|
|
287
289
|
statusLabel: "Deleting 1,200 of 3,412…",
|
|
288
290
|
isBusy: true,
|
|
289
291
|
progress: { value: 1200, max: 3412 },
|
|
292
|
+
notice: {
|
|
293
|
+
tone: "info",
|
|
294
|
+
text: "",
|
|
295
|
+
action: { label: "Stop", onClick: () => undefined },
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The same run, as the user finds it after leaving the mailbox and coming back.
|
|
302
|
+
* The selection did not survive the route and nothing is ticked, so the count
|
|
303
|
+
* and the label are the run's own: an idle header over mail that is still being
|
|
304
|
+
* deleted would be the lie this replaces. Stop is the same press it was before
|
|
305
|
+
* they left.
|
|
306
|
+
*/
|
|
307
|
+
export const RunResumedAfterLeaving: Story = {
|
|
308
|
+
args: {
|
|
309
|
+
count: 3412,
|
|
310
|
+
statusLabel: "Deleting 2,100 of 3,412…",
|
|
311
|
+
isBusy: true,
|
|
312
|
+
progress: { value: 2100, max: 3412 },
|
|
313
|
+
selectAll: {
|
|
314
|
+
checked: false,
|
|
315
|
+
indeterminate: false,
|
|
316
|
+
onChange: () => undefined,
|
|
317
|
+
},
|
|
318
|
+
notice: {
|
|
319
|
+
tone: "info",
|
|
320
|
+
text: "",
|
|
321
|
+
action: { label: "Stop", onClick: () => undefined },
|
|
322
|
+
},
|
|
290
323
|
},
|
|
291
324
|
};
|
|
292
325
|
|