@salilvnair/dui 1.0.10 → 1.0.11

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.
@@ -38,6 +38,17 @@ export interface LoadingStateViewProps {
38
38
  label: string;
39
39
  onClick: () => void;
40
40
  };
41
+ /**
42
+ * How wide the message is allowed to run.
43
+ *
44
+ * Defaults to `52ch`, which is the right measure for a sentence inside a
45
+ * list or a modal. A loader that owns a whole panel is a different problem:
46
+ * the same 52ch sits as a narrow column in the middle of a large empty
47
+ * space, wrapping a short message onto three lines while the screen around
48
+ * it is blank. Widen it there, in `ch` so it stays a measure rather than a
49
+ * pixel guess.
50
+ */
51
+ messageWidth?: number | string;
41
52
  /** Shown under the message: what is being fetched, step by step. */
42
53
  hints?: {
43
54
  key: ReactNode;
@@ -58,4 +69,4 @@ export interface LoadingStateViewProps {
58
69
  * Three things it does that a spinner cannot: it names the subject, it changes
59
70
  * its mind after a while, and it eventually offers a way out.
60
71
  */
61
- export declare function LoadingStateView({ icon, title, message, accentColor, compact, medallionSize, slowAfterSeconds, slowMessage, action, hints, className, style, }: LoadingStateViewProps): import("react").JSX.Element;
72
+ export declare function LoadingStateView({ icon, title, message, accentColor, compact, medallionSize, slowAfterSeconds, slowMessage, action, messageWidth, hints, className, style, }: LoadingStateViewProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salilvnair/dui",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Daakia UI component library — shared across ck8t and daakia",
5
5
  "type": "module",
6
6
  "license": "MIT",