@signature.digital/catalog 1.7.0 → 1.8.0

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.
@@ -84,6 +84,7 @@ export const workspaceBaseStyles = css`
84
84
  * { box-sizing: border-box; }
85
85
  button, input, textarea { font: inherit; }
86
86
  button { border: 0; cursor: pointer; }
87
+ button:disabled { cursor: not-allowed; opacity: 0.52; }
87
88
  dees-icon { flex-shrink: 0; }
88
89
 
89
90
  .mono {
@@ -341,23 +342,24 @@ export const workspaceBaseStyles = css`
341
342
  `;
342
343
 
343
344
  export function icon(name: string, size = 14): TemplateResult {
344
- const iconMap: Record<string, string> = {
345
- inbox: 'lucide:Inbox', plus: 'lucide:Plus', folder: 'lucide:Folder', shield: 'lucide:Shield', code: 'lucide:Code2',
346
- user: 'lucide:User', settings: 'lucide:Settings', upload: 'lucide:Upload', file: 'lucide:FileText', sign: 'lucide:PenTool',
347
- clock: 'lucide:Clock', search: 'lucide:Search', more: 'lucide:MoreHorizontal', send: 'lucide:Send', check: 'lucide:Check',
348
- eye: 'lucide:Eye', calendar: 'lucide:Calendar', type: 'lucide:Type', download: 'lucide:Download', hash: 'lucide:Hash',
349
- github: 'lucide:GitBranch', git: 'lucide:GitBranch', server: 'lucide:Server', star: 'lucide:Star', sparkle: 'lucide:Sparkles',
350
- chevronRight: 'lucide:ChevronRight', chevronDown: 'lucide:ChevronDown', x: 'lucide:X', activity: 'lucide:Activity',
351
- };
352
345
  return html`<dees-icon .icon=${iconMap[name] || iconMap.file} style="font-size: ${size}px;"></dees-icon>`;
353
346
  }
354
347
 
348
+ const iconMap: Record<string, string> = {
349
+ inbox: 'lucide:Inbox', plus: 'lucide:Plus', folder: 'lucide:Folder', shield: 'lucide:Shield', code: 'lucide:Code2',
350
+ user: 'lucide:User', settings: 'lucide:Settings', upload: 'lucide:Upload', file: 'lucide:FileText', sign: 'lucide:PenTool',
351
+ clock: 'lucide:Clock', search: 'lucide:Search', more: 'lucide:MoreHorizontal', send: 'lucide:Send', check: 'lucide:Check',
352
+ eye: 'lucide:Eye', calendar: 'lucide:Calendar', type: 'lucide:Type', download: 'lucide:Download', hash: 'lucide:Hash',
353
+ github: 'lucide:GitBranch', git: 'lucide:GitBranch', server: 'lucide:Server', star: 'lucide:Star', sparkle: 'lucide:Sparkles',
354
+ chevronRight: 'lucide:ChevronRight', chevronDown: 'lucide:ChevronDown', x: 'lucide:X', activity: 'lucide:Activity',
355
+ };
356
+
355
357
  export function pill(label: string, tone: 'default' | 'success' | 'warning' | 'error' | 'info' = 'default', dot = false): TemplateResult {
356
358
  return html`<span class="pill ${tone} ${dot ? 'dot' : ''}">${label}</span>`;
357
359
  }
358
360
 
359
361
  export function actionButton(label: string, variant: 'primary' | 'outline' | 'ghost' = 'outline', iconName?: string, onClick?: () => void): TemplateResult {
360
- return html`<button class="btn ${variant}" @click=${onClick || (() => undefined)}>${iconName ? icon(iconName, 13) : ''}${label}</button>`;
362
+ return html`<button class="btn ${variant}" ?disabled=${!onClick} title=${onClick ? '' : 'This action must be wired by the host application.'} @click=${onClick}>${iconName ? icon(iconName, 13) : ''}${label}</button>`;
361
363
  }
362
364
 
363
365
  export function topBar(config: { breadcrumb: string[]; title: string; subtitle?: TemplateResult; actions?: TemplateResult }): TemplateResult {
package/ts_web/plugins.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  // third party
2
- import signaturePadMod from 'signature_pad';
3
- type signaturePadType = (typeof import('signature_pad'))['default'];
4
- const signaturePad = signaturePadMod as any as signaturePadType;
2
+ import SignaturePad from 'signature_pad';
3
+ export type { PointGroup as TSignaturePadPointGroup } from 'signature_pad';
5
4
 
6
5
  export {
7
- signaturePad,
6
+ SignaturePad as signaturePad,
8
7
  }