jaml-ui 0.24.7 → 0.24.9

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.
@@ -19,5 +19,5 @@ export function JamlIdeToolbar({ mode, onModeChange, resultCount = 0, className
19
19
  padding: "10px 10px 6px",
20
20
  borderBottom: `1px solid ${JimboColorOption.PANEL_EDGE}`,
21
21
  background: JimboColorOption.DARKEST,
22
- }, children: [onSearch ? _jsx("div", {}) : null, _jsx("div", { style: { minWidth: 0, overflow: "hidden", width: "100%" }, children: _jsx(JimboTabs, { tabs: tabs, activeTab: mode, onTabChange: (id) => onModeChange(id) }) }), onSearch ? (_jsx("div", { style: { justifySelf: "end" }, children: _jsx(JimboButton, { tone: isSearching ? "red" : "blue", size: "xs", onClick: onSearch, children: isSearching ? "Stop" : "Search" }) })) : null] }));
22
+ }, children: [onSearch ? _jsx("div", {}) : null, _jsx("div", { style: { minWidth: 0, width: "100%", overflow: "visible", paddingBottom: 3 }, children: _jsx(JimboTabs, { tabs: tabs, activeTab: mode, onTabChange: (id) => onModeChange(id) }) }), onSearch ? (_jsx("div", { style: { justifySelf: "end" }, children: _jsx(JimboButton, { tone: isSearching ? "red" : "blue", size: "xs", onClick: onSearch, children: isSearching ? "Stop" : "Search" }) })) : null] }));
23
23
  }
@@ -30,5 +30,6 @@ export interface JimboModalProps {
30
30
  onClose: () => void;
31
31
  title?: string;
32
32
  className?: string;
33
+ showBack?: boolean;
33
34
  }
34
- export declare function JimboModal({ children, open, onClose, title, className }: JimboModalProps): import("react/jsx-runtime").JSX.Element | null;
35
+ export declare function JimboModal({ children, open, onClose, title, className, showBack }: JimboModalProps): import("react/jsx-runtime").JSX.Element | null;
package/dist/ui/panel.js CHANGED
@@ -17,8 +17,8 @@ export function JimboButton({ tone = 'orange', size = 'md', fullWidth = false, d
17
17
  export function JimboBackButton({ onClick }) {
18
18
  return (_jsx("div", { className: "j-flex j-justify-center j-w-full", style: { padding: '4px 0' }, children: _jsx(JimboButton, { tone: "orange", size: "md", fullWidth: true, onClick: onClick, className: "j-back-btn", children: "Back" }) }));
19
19
  }
20
- export function JimboModal({ children, open, onClose, title, className }) {
20
+ export function JimboModal({ children, open, onClose, title, className, showBack = false }) {
21
21
  if (!open)
22
22
  return null;
23
- return (_jsx("div", { className: "j-modal-overlay", onClick: onClose, children: _jsxs(JimboPanel, { onBack: onClose, className: `j-modal ${className ?? ''}`, onClick: (e) => e.stopPropagation(), children: [title && _jsx(JimboText, { as: "h2", size: "lg", className: "j-modal__title", children: title }), children] }) }));
23
+ return (_jsx("div", { className: "j-modal-overlay", onClick: onClose, children: _jsxs(JimboPanel, { onBack: showBack ? onClose : undefined, className: `j-modal ${className ?? ''}`, onClick: (e) => e.stopPropagation(), children: [title && _jsx(JimboText, { as: "h2", size: "lg", className: "j-modal__title", children: title }), children] }) }));
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaml-ui",
3
- "version": "0.24.7",
3
+ "version": "0.24.9",
4
4
  "description": "Balatro rendering components, sprite metadata, and optional Motely helpers for React apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",