anentrypoint-design 0.0.468 → 0.0.470

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.468",
3
+ "version": "0.0.470",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -7,9 +7,11 @@
7
7
  import { ConfirmDialog, PromptDialog, CountdownDialog } from './files-modals/dialogs.js';
8
8
  import { FilePreviewMedia, FilePreviewCode, FilePreviewText } from './files-modals/preview-bodies.js';
9
9
  import { FileViewer, FilePreviewPane } from './files-modals/preview-containers.js';
10
+ import { Modal, modalError } from './files-modals/modal-shell.js';
10
11
 
11
12
  export {
12
13
  ConfirmDialog, PromptDialog, CountdownDialog,
13
14
  FilePreviewMedia, FilePreviewCode, FilePreviewText,
14
15
  FileViewer, FilePreviewPane,
16
+ Modal, modalError,
15
17
  };
package/src/components.js CHANGED
@@ -61,7 +61,8 @@ export {
61
61
 
62
62
  export {
63
63
  ConfirmDialog, PromptDialog, CountdownDialog,
64
- FilePreviewMedia, FilePreviewCode, FilePreviewText, FileViewer, FilePreviewPane
64
+ FilePreviewMedia, FilePreviewCode, FilePreviewText, FileViewer, FilePreviewPane,
65
+ Modal, modalError
65
66
  } from './components/files-modals.js';
66
67
 
67
68
  export {
@@ -296,9 +296,15 @@ kbd {
296
296
  background: var(--bg-2); padding: 2px 6px; border-radius: var(--r-1);
297
297
  }
298
298
 
299
+ /* --bg-3 (not --bg-2): an inline code pill needs to read as a distinct
300
+ surface against the page background, not just against adjacent text — at
301
+ --bg-2 the pill measured 1.39:1 background-to-background contrast in dark
302
+ theme (barely distinguishable from the page itself). --bg-3 is the same
303
+ tier-3 surface step .chip.tone-dim already uses for the same reason,
304
+ bringing the pill to 2.07:1, consistent with the rest of the tier-3 ramp. */
299
305
  code {
300
306
  font-family: var(--ff-mono); font-size: 0.92em;
301
- background: var(--bg-2); padding: 0.15em 0.5em; border-radius: var(--r-1);
307
+ background: var(--bg-3); padding: 0.15em 0.5em; border-radius: var(--r-1);
302
308
  }
303
309
 
304
310
  pre {
@@ -6,7 +6,7 @@
6
6
  // signature change; `npm run lint:component-types` fails CI when this
7
7
  // file is stale.
8
8
  //
9
- // 269 exported symbols across 30 source files.
9
+ // 271 exported symbols across 30 source files.
10
10
 
11
11
  /** A webjsx virtual node, as returned by every component in this SDK. */
12
12
  export type VNode = any;
@@ -1756,6 +1756,31 @@ export interface FilePreviewPaneProps {
1756
1756
  }
1757
1757
  export declare function FilePreviewPane(props?: FilePreviewPaneProps): VNode;
1758
1758
 
1759
+ /**
1760
+ * Props for {@link Modal} (src/components/files-modals.js).
1761
+ */
1762
+ export interface ModalProps {
1763
+ onClose?: (...args: any[]) => any;
1764
+ /** @default '' */
1765
+ kind?: string;
1766
+ head?: any;
1767
+ /** @default '' */
1768
+ headClass?: string;
1769
+ /** @default {} */
1770
+ headAttrs?: Record<string, any>;
1771
+ body?: any;
1772
+ /** @default 'ds-modal-body' */
1773
+ bodyClass?: string;
1774
+ /** @default {} */
1775
+ bodyAttrs?: Record<string, any>;
1776
+ actions?: any;
1777
+ /** @default false */
1778
+ busy?: boolean;
1779
+ }
1780
+ export declare function Modal(props?: ModalProps): VNode;
1781
+
1782
+ export declare function modalError(error?: any): VNode;
1783
+
1759
1784
  // ---- src/components/community.js -------------------------------------
1760
1785
 
1761
1786
  /**