@wells-nelson/displays 0.0.1 → 1.0.1

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/README.md CHANGED
@@ -66,5 +66,5 @@ registerIcons({ calendar: '<rect …/>', folder: '<path …/>' }); // 24x24, str
66
66
  ```
67
67
 
68
68
  `Button` (primary / secondary / danger / ghost, optional icon, `block`), `IconButton` (button or
69
- link, required label, `active`), `Modal` (native `<dialog>`, sm / md) and `ConfirmDialog`
69
+ link, required label, `active`), `Modal` (native `<dialog>`, sm / md / lg) and `ConfirmDialog`
70
70
  (danger variant, busy state) complete the set. See them all in the sandbox (`npm run sandbox`).
package/dist/Modal.svelte CHANGED
@@ -15,7 +15,8 @@
15
15
  children: Snippet;
16
16
  footer?: Snippet;
17
17
  onclose?: () => void;
18
- size?: 'sm' | 'md';
18
+ /** sm: confirmations; md: forms (default); lg: near full width and height, for dense pickers. */
19
+ size?: 'sm' | 'md' | 'lg';
19
20
  } = $props();
20
21
 
21
22
  let dialog: HTMLDialogElement | undefined = $state();
@@ -66,6 +67,10 @@
66
67
  max-height: min(46rem, calc(100dvh - 2rem));
67
68
  box-shadow: var(--shadow-lg);
68
69
  }
70
+ .modal.lg {
71
+ width: min(64rem, calc(100vw - 2rem));
72
+ max-height: calc(100dvh - 2rem);
73
+ }
69
74
  .modal.sm {
70
75
  width: min(24rem, calc(100vw - 2rem));
71
76
  }
@@ -5,7 +5,8 @@ type $$ComponentProps = {
5
5
  children: Snippet;
6
6
  footer?: Snippet;
7
7
  onclose?: () => void;
8
- size?: 'sm' | 'md';
8
+ /** sm: confirmations; md: forms (default); lg: near full width and height, for dense pickers. */
9
+ size?: 'sm' | 'md' | 'lg';
9
10
  };
10
11
  declare const Modal: import("svelte").Component<$$ComponentProps, {}, "open">;
11
12
  type Modal = ReturnType<typeof Modal>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wells-nelson/displays",
3
- "version": "0.0.1",
3
+ "version": "1.0.1",
4
4
  "description": "Svelte 5 display components and theme CSS shared by Wells Nelson apps.",
5
5
  "license": "MIT",
6
6
  "repository": {