@tc96/cli 0.27.0 → 0.28.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.
Files changed (108) hide show
  1. package/README.md +4 -4
  2. package/cli.js +82 -27
  3. package/package.json +1 -1
  4. package/registry/agenda-1.json +1297 -0
  5. package/registry/aggregate.json +1 -1
  6. package/registry/ai-chat-1.json +91 -0
  7. package/registry/checklist.json +21 -7
  8. package/registry/collection.json +624 -351
  9. package/registry/crm-1.json +1317 -0
  10. package/registry/crm-2.json +1400 -0
  11. package/registry/dashboard-5.json +167 -0
  12. package/registry/dashboard-6.json +143 -0
  13. package/registry/dashboard-7.json +188 -0
  14. package/registry/documents-1.json +1322 -0
  15. package/registry/finance-1.json +845 -0
  16. package/registry/finance-2.json +973 -0
  17. package/registry/finance-3.json +1436 -0
  18. package/registry/{workflow-editor.json → flow-1.json} +37 -37
  19. package/registry/{agent-builder.json → flow-2.json} +55 -55
  20. package/registry/{run-monitor.json → flow-3.json} +16 -16
  21. package/registry/{impact-map.json → flow-4.json} +16 -16
  22. package/registry/inbox-1.json +1184 -0
  23. package/registry/inventory-1.json +828 -0
  24. package/registry/inventory-2.json +956 -0
  25. package/registry/legal-1.json +1345 -0
  26. package/registry/legal-2.json +1279 -0
  27. package/registry/legal-3.json +1273 -0
  28. package/registry/legal-4.json +1273 -0
  29. package/registry/legal-5.json +1393 -0
  30. package/registry/legal-6.json +1309 -0
  31. package/registry/legal-7.json +1315 -0
  32. package/registry/legal-8.json +1358 -0
  33. package/registry/legal-9.json +1381 -0
  34. package/registry/marketing-1.json +833 -0
  35. package/registry/marketing-2.json +961 -0
  36. package/registry/navbar-1.json +6 -6
  37. package/registry/navbar-10.json +50 -0
  38. package/registry/navbar-11.json +48 -0
  39. package/registry/navbar-12.json +48 -0
  40. package/registry/navbar-6.json +48 -0
  41. package/registry/navbar-7.json +72 -0
  42. package/registry/navbar-8.json +50 -0
  43. package/registry/navbar-9.json +54 -0
  44. package/registry/projects-1.json +865 -0
  45. package/registry/projects-2.json +993 -0
  46. package/registry/projects-3.json +1346 -0
  47. package/registry/properties.json +65 -58
  48. package/registry/record-group.json +5 -1
  49. package/registry/revenue-1.json +834 -0
  50. package/registry/revenue-2.json +968 -0
  51. package/registry/revenue-3.json +821 -0
  52. package/registry/revenue-4.json +949 -0
  53. package/registry/rich-text-editor-1.json +172 -0
  54. package/registry/rich-text-editor-2.json +158 -0
  55. package/registry/rich-text-editor-3.json +198 -0
  56. package/registry/rich-text-editor-4.json +200 -0
  57. package/registry/rich-text-editor-5.json +237 -0
  58. package/registry/rich-text-editor.json +27 -7
  59. package/registry/{settings-1.json → settings-account-1.json} +17 -17
  60. package/registry/{settings-23.json → settings-account-2.json} +17 -17
  61. package/registry/{settings-7.json → settings-catalog-1.json} +17 -17
  62. package/registry/{settings-16.json → settings-catalog-10.json} +17 -17
  63. package/registry/{settings-8.json → settings-catalog-2.json} +17 -17
  64. package/registry/{settings-9.json → settings-catalog-3.json} +17 -17
  65. package/registry/{settings-10.json → settings-catalog-4.json} +29 -20
  66. package/registry/{settings-11.json → settings-catalog-5.json} +17 -17
  67. package/registry/{settings-12.json → settings-catalog-6.json} +17 -17
  68. package/registry/{settings-13.json → settings-catalog-7.json} +17 -17
  69. package/registry/{settings-14.json → settings-catalog-8.json} +29 -19
  70. package/registry/{settings-15.json → settings-catalog-9.json} +28 -18
  71. package/registry/{settings-19.json → settings-integration-1.json} +17 -17
  72. package/registry/settings-integration-2.json +122 -0
  73. package/registry/{settings-22.json → settings-integration-3.json} +17 -17
  74. package/registry/settings-integration-4.json +129 -0
  75. package/registry/settings-integration-5.json +122 -0
  76. package/registry/settings-integration-6.json +92 -0
  77. package/registry/{settings-21.json → settings-integration-7.json} +23 -17
  78. package/registry/settings-integration-8.json +593 -0
  79. package/registry/{settings-20.json → settings-notification-channel-1.json} +17 -17
  80. package/registry/{settings-2.json → settings-preference-1.json} +17 -17
  81. package/registry/{settings-3.json → settings-preference-2.json} +17 -17
  82. package/registry/{settings-4.json → settings-preference-3.json} +17 -17
  83. package/registry/{settings-18.json → settings-role-permission-1.json} +17 -17
  84. package/registry/{settings-17.json → settings-security-1.json} +17 -17
  85. package/registry/{settings-5.json → settings-workspace-1.json} +28 -28
  86. package/registry/{settings-6.json → settings-workspace-2.json} +31 -31
  87. package/registry/support-1.json +853 -0
  88. package/registry/support-2.json +981 -0
  89. package/registry/support-3.json +762 -0
  90. package/registry/support-4.json +538 -0
  91. package/registry/team-1.json +829 -0
  92. package/registry/team-2.json +957 -0
  93. package/registry/ui/gauge.json +1 -1
  94. package/registry/ui/menu.json +1 -1
  95. package/registry/ui/property-meta.json +16 -0
  96. package/registry/ui/property-tone.json +12 -0
  97. package/registry/ui/scroll-area.json +1 -1
  98. package/registry/ui/select.json +1 -1
  99. package/registry/view.json +624 -351
  100. package/registry/app-shell-5.json +0 -106
  101. package/registry/bulk-import-1.json +0 -151
  102. package/registry/collection-layouts.json +0 -836
  103. package/registry/collection-views.json +0 -836
  104. package/registry/detail-sheet.json +0 -54
  105. package/registry/icon-row.json +0 -52
  106. package/registry/lookup-create-1.json +0 -157
  107. package/registry/next-steps-1.json +0 -147
  108. package/registry/settings-shell.json +0 -60
@@ -1,36 +1,36 @@
1
1
  {
2
- "name": "settings-23",
2
+ "name": "settings-account-2",
3
3
  "type": "registry:block",
4
4
  "files": [
5
5
  {
6
- "path": "blocks/application/settings/settings-23/index.ts",
6
+ "path": "blocks/application/settings/account/settings-account-2/index.ts",
7
7
  "type": "registry:file",
8
- "content": "export { Settings23 } from './settings-23'\nexport type {\n Settings23Invoice,\n Settings23InvoiceStatus,\n Settings23Labels,\n Settings23Plan,\n Settings23Props,\n Settings23Usage,\n} from './types'\n",
9
- "target": "~/packages/ui/src/blocks/application/settings/settings-23/index.ts"
8
+ "content": "export { SettingsAccount2 } from './settings-account-2'\nexport type {\n SettingsAccount2Invoice,\n SettingsAccount2InvoiceStatus,\n SettingsAccount2Labels,\n SettingsAccount2Plan,\n SettingsAccount2Props,\n SettingsAccount2Usage,\n} from './types'\n",
9
+ "target": "~/packages/ui/src/blocks/application/settings/account/settings-account-2/index.ts"
10
10
  },
11
11
  {
12
- "path": "blocks/application/settings/settings-23/labels.ts",
12
+ "path": "blocks/application/settings/account/settings-account-2/labels.ts",
13
13
  "type": "registry:file",
14
- "content": "import { defaultSettingsLoadLabels } from '../shared/labels'\nimport type { Settings23Labels } from './types'\n\nexport const defaultSettings23Labels: Settings23Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar a cobrança',\n loading: 'Carregando cobrança',\n changePlan: 'Alterar plano',\n columnActions: 'Ações',\n columnAmount: 'Valor',\n columnDate: 'Data',\n columnStatus: 'Status',\n download: (date) => `Baixar fatura de ${date}`,\n emptyDescription: 'As faturas aparecem aqui depois da primeira cobrança.',\n emptyTitle: 'Nenhuma fatura ainda',\n invoicesDescription: 'Histórico de cobranças da assinatura.',\n invoicesTitle: 'Faturas',\n perMonth: 'por mês',\n planTitle: 'Plano atual',\n renewsOn: (date) => `Renova em ${date}`,\n statuses: { failed: 'Falhou', paid: 'Paga', pending: 'Pendente' },\n title: 'Cobrança',\n usage: (used, limit, unit) => `${used} de ${limit}${unit ? ` ${unit}` : ''}`,\n usageTitle: 'Uso do plano',\n}\n",
15
- "target": "~/packages/ui/src/blocks/application/settings/settings-23/labels.ts"
14
+ "content": "import { defaultSettingsLoadLabels } from '../../shared/labels'\nimport type { SettingsAccount2Labels } from './types'\n\nexport const defaultSettingsAccount2Labels: SettingsAccount2Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar a cobrança',\n loading: 'Carregando cobrança',\n changePlan: 'Alterar plano',\n columnActions: 'Ações',\n columnAmount: 'Valor',\n columnDate: 'Data',\n columnStatus: 'Status',\n download: (date) => `Baixar fatura de ${date}`,\n emptyDescription: 'As faturas aparecem aqui depois da primeira cobrança.',\n emptyTitle: 'Nenhuma fatura ainda',\n invoicesDescription: 'Histórico de cobranças da assinatura.',\n invoicesTitle: 'Faturas',\n perMonth: 'por mês',\n planTitle: 'Plano atual',\n renewsOn: (date) => `Renova em ${date}`,\n statuses: { failed: 'Falhou', paid: 'Paga', pending: 'Pendente' },\n title: 'Cobrança',\n usage: (used, limit, unit) => `${used} de ${limit}${unit ? ` ${unit}` : ''}`,\n usageTitle: 'Uso do plano',\n}\n",
15
+ "target": "~/packages/ui/src/blocks/application/settings/account/settings-account-2/labels.ts"
16
16
  },
17
17
  {
18
- "path": "blocks/application/settings/settings-23/settings-23-skeleton.tsx",
18
+ "path": "blocks/application/settings/account/settings-account-2/settings-account-2-skeleton.tsx",
19
19
  "type": "registry:file",
20
- "content": "import { Card } from '@tc96/ui/card'\nimport { Skeleton } from '@tc96/ui/skeleton'\nimport {\n SettingsSectionSkeleton,\n SettingsTableSkeleton,\n} from '../shared/settings-skeleton'\n\nexport function Settings23Skeleton() {\n return (\n <>\n <Card>\n <div className=\"flex flex-col gap-6 p-6\">\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex flex-col gap-2\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-6 w-40\" />\n <Skeleton className=\"h-4 w-56\" />\n </div>\n <Skeleton className=\"h-8 w-28 shrink-0\" />\n </div>\n <div className=\"grid gap-4 sm:grid-cols-3\">\n <Skeleton className=\"h-10 w-full\" />\n <Skeleton className=\"h-10 w-full\" />\n <Skeleton className=\"h-10 w-full\" />\n </div>\n </div>\n </Card>\n <SettingsSectionSkeleton description>\n <SettingsTableSkeleton columns={4} rows={4} />\n </SettingsSectionSkeleton>\n </>\n )\n}\n",
21
- "target": "~/packages/ui/src/blocks/application/settings/settings-23/settings-23-skeleton.tsx"
20
+ "content": "import { Card } from '@tc96/ui/card'\nimport { Skeleton } from '@tc96/ui/skeleton'\nimport {\n SettingsSectionSkeleton,\n SettingsTableSkeleton,\n} from '../../shared/settings-skeleton'\n\nexport function SettingsAccount2Skeleton() {\n return (\n <>\n <Card>\n <div className=\"flex flex-col gap-6 p-6\">\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex flex-col gap-2\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-6 w-40\" />\n <Skeleton className=\"h-4 w-56\" />\n </div>\n <Skeleton className=\"h-8 w-28 shrink-0\" />\n </div>\n <div className=\"grid gap-4 sm:grid-cols-3\">\n <Skeleton className=\"h-10 w-full\" />\n <Skeleton className=\"h-10 w-full\" />\n <Skeleton className=\"h-10 w-full\" />\n </div>\n </div>\n </Card>\n <SettingsSectionSkeleton description>\n <SettingsTableSkeleton columns={4} rows={4} />\n </SettingsSectionSkeleton>\n </>\n )\n}\n",
21
+ "target": "~/packages/ui/src/blocks/application/settings/account/settings-account-2/settings-account-2-skeleton.tsx"
22
22
  },
23
23
  {
24
- "path": "blocks/application/settings/settings-23/settings-23.tsx",
24
+ "path": "blocks/application/settings/account/settings-account-2/settings-account-2.tsx",
25
25
  "type": "registry:file",
26
- "content": "import { DownloadSimpleIcon } from '@phosphor-icons/react'\nimport { Badge } from '@tc96/ui/badge'\nimport { Button } from '@tc96/ui/button'\nimport { Card } from '@tc96/ui/card'\nimport { Gauge } from '@tc96/ui/gauge'\nimport { formatAmount } from '@tc96/ui/helpers/format'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@tc96/ui/table'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { useId } from 'react'\nimport { settingsLoadState } from '../shared/settings-load-state'\nimport { defaultSettings23Labels } from './labels'\nimport { Settings23Skeleton } from './settings-23-skeleton'\nimport type { Settings23InvoiceStatus, Settings23Props } from './types'\n\nconst statusVariant = {\n failed: 'error',\n paid: 'success',\n pending: 'warning',\n} as const satisfies Record<Settings23InvoiceStatus, string>\n\nexport function Settings23({\n error,\n onRetry,\n pending,\n className,\n currency = 'BRL',\n invoices,\n labels: labelsProp,\n locale = 'pt-BR',\n onChangePlan,\n onDownload,\n plan,\n usage,\n}: Readonly<Settings23Props>) {\n const labels = { ...defaultSettings23Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <Settings23Skeleton />,\n })\n const baseId = useId()\n const planId = `settings-23-plan-${baseId}`\n\n return (\n <div\n className={cn('mx-auto flex w-full max-w-3xl flex-col gap-8', className)}\n >\n <section aria-labelledby={planId} className=\"flex flex-col gap-3\">\n <SettingsSectionHeader>\n <Text\n render={<h2 id={planId}>{labels.title}</h2>}\n size=\"base\"\n weight=\"medium\"\n />\n </SettingsSectionHeader>\n {loadState ?? (\n <Card>\n <div className=\"flex flex-col gap-6 p-6\">\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex flex-col gap-1\">\n <Text\n foreground=\"muted\"\n render={<p>{labels.planTitle}</p>}\n size=\"sm\"\n />\n <Text render={<p>{plan.name}</p>} size=\"lg\" weight=\"medium\" />\n <Text\n foreground=\"muted\"\n render={\n <p>\n {formatAmount(plan.price, { currency, locale })}{' '}\n {labels.perMonth} · {labels.renewsOn(plan.renewsOn)}\n </p>\n }\n size=\"sm\"\n />\n </div>\n {onChangePlan ? (\n <Button onClick={onChangePlan} size=\"sm\" variant=\"outline\">\n {labels.changePlan}\n </Button>\n ) : null}\n </div>\n <ul\n className=\"flex flex-col gap-4\"\n aria-label={labels.usageTitle}\n >\n {usage.map((metric) => (\n <li key={metric.id}>\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center justify-between gap-2\">\n <span\n className=\"font-medium text-foreground text-sm\"\n id={`${baseId}-${metric.id}-usage`}\n >\n {metric.label}\n </span>\n <Text\n foreground=\"muted\"\n render={\n <span>\n {labels.usage(\n metric.used,\n metric.limit,\n metric.unit,\n )}\n </span>\n }\n size=\"sm\"\n />\n </div>\n <Gauge\n aria-labelledby={`${baseId}-${metric.id}-usage`}\n getAriaValueText={() =>\n labels.usage(metric.used, metric.limit, metric.unit)\n }\n max={metric.limit}\n value={metric.used}\n />\n </div>\n </li>\n ))}\n </ul>\n </div>\n </Card>\n )}\n </section>\n {loadState ? null : (\n <SettingsSection\n header={\n <SettingsSectionHeader>\n <SettingsSectionTitle>\n {labels.invoicesTitle}\n </SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.invoicesDescription}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {invoices.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>{labels.columnDate}</TableHead>\n <TableHead>{labels.columnAmount}</TableHead>\n <TableHead>{labels.columnStatus}</TableHead>\n <TableHead>\n <span className=\"sr-only\">{labels.columnActions}</span>\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {invoices.map((invoice) => (\n <TableRow key={invoice.id}>\n <TableCell>{invoice.date}</TableCell>\n <TableCell>\n {formatAmount(invoice.amount, { currency, locale })}\n </TableCell>\n <TableCell>\n <Badge variant={statusVariant[invoice.status]}>\n {labels.statuses[invoice.status]}\n </Badge>\n </TableCell>\n <TableCell className=\"text-end\">\n {onDownload ? (\n <Button\n aria-label={labels.download(invoice.date)}\n onClick={() => onDownload(invoice.id)}\n size=\"icon-sm\"\n variant=\"ghost\"\n >\n <DownloadSimpleIcon aria-hidden=\"true\" />\n </Button>\n ) : null}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n )}\n </SettingsSection>\n )}\n </div>\n )\n}\n",
27
- "target": "~/packages/ui/src/blocks/application/settings/settings-23/settings-23.tsx"
26
+ "content": "import { DownloadSimpleIcon } from '@phosphor-icons/react'\nimport { Badge } from '@tc96/ui/badge'\nimport { Button } from '@tc96/ui/button'\nimport { Card } from '@tc96/ui/card'\nimport { Gauge } from '@tc96/ui/gauge'\nimport { formatAmount } from '@tc96/ui/helpers/format'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@tc96/ui/table'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { useId } from 'react'\nimport { settingsLoadState } from '../../shared/settings-load-state'\nimport { defaultSettingsAccount2Labels } from './labels'\nimport { SettingsAccount2Skeleton } from './settings-account-2-skeleton'\nimport type {\n SettingsAccount2InvoiceStatus,\n SettingsAccount2Props,\n} from './types'\n\nconst statusVariant = {\n failed: 'error',\n paid: 'success',\n pending: 'warning',\n} as const satisfies Record<SettingsAccount2InvoiceStatus, string>\n\nexport function SettingsAccount2({\n error,\n onRetry,\n pending,\n className,\n currency = 'BRL',\n invoices,\n labels: labelsProp,\n locale = 'pt-BR',\n onChangePlan,\n onDownload,\n plan,\n usage,\n}: Readonly<SettingsAccount2Props>) {\n const labels = { ...defaultSettingsAccount2Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <SettingsAccount2Skeleton />,\n })\n const baseId = useId()\n const planId = `settings-account-2-plan-${baseId}`\n\n return (\n <div\n className={cn('mx-auto flex w-full max-w-3xl flex-col gap-8', className)}\n >\n <section aria-labelledby={planId} className=\"flex flex-col gap-3\">\n <SettingsSectionHeader>\n <Text\n render={<h2 id={planId}>{labels.title}</h2>}\n size=\"base\"\n weight=\"medium\"\n />\n </SettingsSectionHeader>\n {loadState ?? (\n <Card>\n <div className=\"flex flex-col gap-6 p-6\">\n <div className=\"flex items-start justify-between gap-4\">\n <div className=\"flex flex-col gap-1\">\n <Text\n foreground=\"muted\"\n render={<p>{labels.planTitle}</p>}\n size=\"sm\"\n />\n <Text render={<p>{plan.name}</p>} size=\"lg\" weight=\"medium\" />\n <Text\n foreground=\"muted\"\n render={\n <p>\n {formatAmount(plan.price, { currency, locale })}{' '}\n {labels.perMonth} · {labels.renewsOn(plan.renewsOn)}\n </p>\n }\n size=\"sm\"\n />\n </div>\n {onChangePlan ? (\n <Button onClick={onChangePlan} size=\"sm\" variant=\"outline\">\n {labels.changePlan}\n </Button>\n ) : null}\n </div>\n <ul\n className=\"flex flex-col gap-4\"\n aria-label={labels.usageTitle}\n >\n {usage.map((metric) => (\n <li key={metric.id}>\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center justify-between gap-2\">\n <span\n className=\"font-medium text-foreground text-sm\"\n id={`${baseId}-${metric.id}-usage`}\n >\n {metric.label}\n </span>\n <Text\n foreground=\"muted\"\n render={\n <span>\n {labels.usage(\n metric.used,\n metric.limit,\n metric.unit,\n )}\n </span>\n }\n size=\"sm\"\n />\n </div>\n <Gauge\n aria-labelledby={`${baseId}-${metric.id}-usage`}\n getAriaValueText={() =>\n labels.usage(metric.used, metric.limit, metric.unit)\n }\n max={metric.limit}\n value={metric.used}\n />\n </div>\n </li>\n ))}\n </ul>\n </div>\n </Card>\n )}\n </section>\n {loadState ? null : (\n <SettingsSection\n header={\n <SettingsSectionHeader>\n <SettingsSectionTitle>\n {labels.invoicesTitle}\n </SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.invoicesDescription}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {invoices.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>{labels.columnDate}</TableHead>\n <TableHead>{labels.columnAmount}</TableHead>\n <TableHead>{labels.columnStatus}</TableHead>\n <TableHead>\n <span className=\"sr-only\">{labels.columnActions}</span>\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {invoices.map((invoice) => (\n <TableRow key={invoice.id}>\n <TableCell>{invoice.date}</TableCell>\n <TableCell>\n {formatAmount(invoice.amount, { currency, locale })}\n </TableCell>\n <TableCell>\n <Badge variant={statusVariant[invoice.status]}>\n {labels.statuses[invoice.status]}\n </Badge>\n </TableCell>\n <TableCell className=\"text-end\">\n {onDownload ? (\n <Button\n aria-label={labels.download(invoice.date)}\n onClick={() => onDownload(invoice.id)}\n size=\"icon-sm\"\n variant=\"ghost\"\n >\n <DownloadSimpleIcon aria-hidden=\"true\" />\n </Button>\n ) : null}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n )}\n </SettingsSection>\n )}\n </div>\n )\n}\n",
27
+ "target": "~/packages/ui/src/blocks/application/settings/account/settings-account-2/settings-account-2.tsx"
28
28
  },
29
29
  {
30
- "path": "blocks/application/settings/settings-23/types.ts",
30
+ "path": "blocks/application/settings/account/settings-account-2/types.ts",
31
31
  "type": "registry:file",
32
- "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../shared/types'\nexport interface Settings23Plan {\n name: string\n price: number\n renewsOn: string\n}\n\nexport interface Settings23Usage {\n id: string\n label: string\n limit: number\n unit?: string\n used: number\n}\n\nexport type Settings23InvoiceStatus = 'paid' | 'pending' | 'failed'\n\nexport interface Settings23Invoice {\n amount: number\n date: string\n id: string\n status: Settings23InvoiceStatus\n}\n\nexport interface Settings23Labels extends SettingsLoadLabels {\n changePlan: string\n columnActions: string\n columnAmount: string\n columnDate: string\n columnStatus: string\n download: (date: string) => string\n emptyDescription: string\n emptyTitle: string\n invoicesDescription: string\n invoicesTitle: string\n perMonth: string\n planTitle: string\n renewsOn: (date: string) => string\n statuses: Record<Settings23InvoiceStatus, string>\n title: string\n usage: (used: number, limit: number, unit?: string) => string\n usageTitle: string\n}\n\nexport interface Settings23Props extends SettingsLoadProps {\n className?: string\n currency?: string\n invoices: Settings23Invoice[]\n labels?: Partial<Settings23Labels>\n locale?: string\n onChangePlan?: () => void\n onDownload?: (invoiceId: string) => void\n plan: Settings23Plan\n usage: Settings23Usage[]\n}\n",
33
- "target": "~/packages/ui/src/blocks/application/settings/settings-23/types.ts"
32
+ "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../../shared/types'\nexport interface SettingsAccount2Plan {\n name: string\n price: number\n renewsOn: string\n}\n\nexport interface SettingsAccount2Usage {\n id: string\n label: string\n limit: number\n unit?: string\n used: number\n}\n\nexport type SettingsAccount2InvoiceStatus = 'paid' | 'pending' | 'failed'\n\nexport interface SettingsAccount2Invoice {\n amount: number\n date: string\n id: string\n status: SettingsAccount2InvoiceStatus\n}\n\nexport interface SettingsAccount2Labels extends SettingsLoadLabels {\n changePlan: string\n columnActions: string\n columnAmount: string\n columnDate: string\n columnStatus: string\n download: (date: string) => string\n emptyDescription: string\n emptyTitle: string\n invoicesDescription: string\n invoicesTitle: string\n perMonth: string\n planTitle: string\n renewsOn: (date: string) => string\n statuses: Record<SettingsAccount2InvoiceStatus, string>\n title: string\n usage: (used: number, limit: number, unit?: string) => string\n usageTitle: string\n}\n\nexport interface SettingsAccount2Props extends SettingsLoadProps {\n className?: string\n currency?: string\n invoices: SettingsAccount2Invoice[]\n labels?: Partial<SettingsAccount2Labels>\n locale?: string\n onChangePlan?: () => void\n onDownload?: (invoiceId: string) => void\n plan: SettingsAccount2Plan\n usage: SettingsAccount2Usage[]\n}\n",
33
+ "target": "~/packages/ui/src/blocks/application/settings/account/settings-account-2/types.ts"
34
34
  },
35
35
  {
36
36
  "path": "blocks/application/settings/shared/labels.ts",
@@ -53,7 +53,7 @@
53
53
  {
54
54
  "path": "blocks/application/settings/shared/types.ts",
55
55
  "type": "registry:file",
56
- "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n",
56
+ "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n\nexport interface SettingsAppLogoData {\n svg: string\n title?: string\n}\n",
57
57
  "target": "~/packages/ui/src/blocks/application/settings/shared/types.ts"
58
58
  },
59
59
  {
@@ -1,36 +1,36 @@
1
1
  {
2
- "name": "settings-7",
2
+ "name": "settings-catalog-1",
3
3
  "type": "registry:block",
4
4
  "files": [
5
5
  {
6
- "path": "blocks/application/settings/settings-7/index.ts",
6
+ "path": "blocks/application/settings/catalog/settings-catalog-1/index.ts",
7
7
  "type": "registry:file",
8
- "content": "export { Settings7 } from './settings-7'\nexport type {\n Settings7Action,\n Settings7Labels,\n Settings7Props,\n Settings7Tag,\n} from './types'\n",
9
- "target": "~/packages/ui/src/blocks/application/settings/settings-7/index.ts"
8
+ "content": "export { SettingsCatalog1 } from './settings-catalog-1'\nexport type {\n SettingsCatalog1Action,\n SettingsCatalog1Labels,\n SettingsCatalog1Props,\n SettingsCatalog1Tag,\n} from './types'\n",
9
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-1/index.ts"
10
10
  },
11
11
  {
12
- "path": "blocks/application/settings/settings-7/labels.ts",
12
+ "path": "blocks/application/settings/catalog/settings-catalog-1/labels.ts",
13
13
  "type": "registry:file",
14
- "content": "import { defaultSettingsLoadLabels } from '../shared/labels'\nimport type { Settings7Labels } from './types'\n\nconst plural = (value: number, one: string, many: string) =>\n `${value} ${value === 1 ? one : many}`\n\nexport const defaultSettings7Labels: Settings7Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar as tags',\n loading: 'Carregando tags',\n actions: (name) => `Ações de ${name}`,\n addSubtag: 'Adicionar subtag',\n delete: 'Excluir',\n description: 'Organize leads e tarefas com tags e subtags.',\n edit: 'Editar',\n emptyDescription: 'Crie uma tag para organizar leads e tarefas.',\n emptyTitle: 'Nenhuma tag ainda',\n newTag: 'Nova tag',\n subtagOf: (parent) => `Subtag de ${parent}`,\n title: 'Tags',\n usage: (leads, tasks) =>\n `${plural(leads, 'lead', 'leads')} · ${plural(tasks, 'tarefa', 'tarefas')}`,\n}\n",
15
- "target": "~/packages/ui/src/blocks/application/settings/settings-7/labels.ts"
14
+ "content": "import { defaultSettingsLoadLabels } from '../../shared/labels'\nimport type { SettingsCatalog1Labels } from './types'\n\nconst plural = (value: number, one: string, many: string) =>\n `${value} ${value === 1 ? one : many}`\n\nexport const defaultSettingsCatalog1Labels: SettingsCatalog1Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar as tags',\n loading: 'Carregando tags',\n actions: (name) => `Ações de ${name}`,\n addSubtag: 'Adicionar subtag',\n delete: 'Excluir',\n description: 'Organize leads e tarefas com tags e subtags.',\n edit: 'Editar',\n emptyDescription: 'Crie uma tag para organizar leads e tarefas.',\n emptyTitle: 'Nenhuma tag ainda',\n newTag: 'Nova tag',\n subtagOf: (parent) => `Subtag de ${parent}`,\n title: 'Tags',\n usage: (leads, tasks) =>\n `${plural(leads, 'lead', 'leads')} · ${plural(tasks, 'tarefa', 'tarefas')}`,\n}\n",
15
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-1/labels.ts"
16
16
  },
17
17
  {
18
- "path": "blocks/application/settings/settings-7/settings-7-skeleton.tsx",
18
+ "path": "blocks/application/settings/catalog/settings-catalog-1/settings-catalog-1-skeleton.tsx",
19
19
  "type": "registry:file",
20
- "content": "import { SettingsRowsSkeleton } from '../shared/settings-skeleton'\n\nexport function Settings7Skeleton() {\n return <SettingsRowsSkeleton count={5} description={false} end=\"menu\" />\n}\n",
21
- "target": "~/packages/ui/src/blocks/application/settings/settings-7/settings-7-skeleton.tsx"
20
+ "content": "import { SettingsRowsSkeleton } from '../../shared/settings-skeleton'\n\nexport function SettingsCatalog1Skeleton() {\n return <SettingsRowsSkeleton count={5} description={false} end=\"menu\" />\n}\n",
21
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-1/settings-catalog-1-skeleton.tsx"
22
22
  },
23
23
  {
24
- "path": "blocks/application/settings/settings-7/settings-7.tsx",
24
+ "path": "blocks/application/settings/catalog/settings-catalog-1/settings-catalog-1.tsx",
25
25
  "type": "registry:file",
26
- "content": "import { ArrowElbowDownRightIcon } from '@phosphor-icons/react'\nimport { Button } from '@tc96/ui/button'\nimport { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../shared/settings-load-state'\nimport { SettingsRowActions } from '../shared/settings-row-actions'\nimport { SettingsSwatch } from '../shared/settings-swatch'\nimport { defaultSettings7Labels } from './labels'\nimport { Settings7Skeleton } from './settings-7-skeleton'\nimport type {\n Settings7Action,\n Settings7Labels,\n Settings7Props,\n Settings7Tag,\n} from './types'\n\ninterface TagRowProps {\n labels: Settings7Labels\n onTagAction?: Settings7Props['onTagAction']\n parent?: string\n tag: Settings7Tag\n}\n\nfunction TagRow({ labels, onTagAction, parent, tag }: Readonly<TagRowProps>) {\n const actions = [\n { id: 'edit', label: labels.edit },\n ...(parent ? [] : [{ id: 'add-subtag', label: labels.addSubtag }]),\n { destructive: true, id: 'delete', label: labels.delete },\n ]\n\n return (\n <SettingsRow\n className={parent ? 'ps-2' : undefined}\n description={parent ? labels.subtagOf(parent) : undefined}\n endSlot={\n <div className=\"flex items-center gap-3\">\n <Text\n foreground=\"muted\"\n render={<span>{labels.usage(tag.leads, tag.tasks)}</span>}\n size=\"sm\"\n />\n {onTagAction ? (\n <SettingsRowActions\n actions={actions}\n label={labels.actions(tag.name)}\n onAction={(action) =>\n onTagAction(tag.id, action as Settings7Action)\n }\n />\n ) : null}\n </div>\n }\n startSlot={\n parent ? (\n <span className=\"flex items-center gap-2\">\n <ArrowElbowDownRightIcon\n aria-hidden=\"true\"\n className=\"size-4 text-muted-foreground\"\n />\n <SettingsSwatch className={tag.colorClassName} />\n </span>\n ) : (\n <SettingsSwatch className={tag.colorClassName} />\n )\n }\n title={tag.name}\n />\n )\n}\n\nexport function Settings7({\n error,\n onRetry,\n pending,\n className,\n labels: labelsProp,\n onCreate,\n onTagAction,\n tags,\n}: Readonly<Settings7Props>) {\n const labels = { ...defaultSettings7Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <Settings7Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.newTag}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ??\n (tags.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n tags.flatMap((tag) => [\n <TagRow\n key={tag.id}\n labels={labels}\n onTagAction={onTagAction}\n tag={tag}\n />,\n ...(tag.subtags ?? []).map((subtag) => (\n <TagRow\n key={subtag.id}\n labels={labels}\n onTagAction={onTagAction}\n parent={tag.name}\n tag={subtag}\n />\n )),\n ])\n ))}\n </SettingsSection>\n )\n}\n",
27
- "target": "~/packages/ui/src/blocks/application/settings/settings-7/settings-7.tsx"
26
+ "content": "import { ArrowElbowDownRightIcon } from '@phosphor-icons/react'\nimport { Button } from '@tc96/ui/button'\nimport { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../../shared/settings-load-state'\nimport { SettingsRowActions } from '../../shared/settings-row-actions'\nimport { SettingsSwatch } from '../../shared/settings-swatch'\nimport { defaultSettingsCatalog1Labels } from './labels'\nimport { SettingsCatalog1Skeleton } from './settings-catalog-1-skeleton'\nimport type {\n SettingsCatalog1Action,\n SettingsCatalog1Labels,\n SettingsCatalog1Props,\n SettingsCatalog1Tag,\n} from './types'\n\ninterface TagRowProps {\n labels: SettingsCatalog1Labels\n onTagAction?: SettingsCatalog1Props['onTagAction']\n parent?: string\n tag: SettingsCatalog1Tag\n}\n\nfunction TagRow({ labels, onTagAction, parent, tag }: Readonly<TagRowProps>) {\n const actions = [\n { id: 'edit', label: labels.edit },\n ...(parent ? [] : [{ id: 'add-subtag', label: labels.addSubtag }]),\n { destructive: true, id: 'delete', label: labels.delete },\n ]\n\n return (\n <SettingsRow\n className={parent ? 'ps-2' : undefined}\n description={parent ? labels.subtagOf(parent) : undefined}\n endSlot={\n <div className=\"flex items-center gap-3\">\n <Text\n foreground=\"muted\"\n render={<span>{labels.usage(tag.leads, tag.tasks)}</span>}\n size=\"sm\"\n />\n {onTagAction ? (\n <SettingsRowActions\n actions={actions}\n label={labels.actions(tag.name)}\n onAction={(action) =>\n onTagAction(tag.id, action as SettingsCatalog1Action)\n }\n />\n ) : null}\n </div>\n }\n startSlot={\n parent ? (\n <span className=\"flex items-center gap-2\">\n <ArrowElbowDownRightIcon\n aria-hidden=\"true\"\n className=\"size-4 text-muted-foreground\"\n />\n <SettingsSwatch className={tag.colorClassName} />\n </span>\n ) : (\n <SettingsSwatch className={tag.colorClassName} />\n )\n }\n title={tag.name}\n />\n )\n}\n\nexport function SettingsCatalog1({\n error,\n onRetry,\n pending,\n className,\n labels: labelsProp,\n onCreate,\n onTagAction,\n tags,\n}: Readonly<SettingsCatalog1Props>) {\n const labels = { ...defaultSettingsCatalog1Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <SettingsCatalog1Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.newTag}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ??\n (tags.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n tags.flatMap((tag) => [\n <TagRow\n key={tag.id}\n labels={labels}\n onTagAction={onTagAction}\n tag={tag}\n />,\n ...(tag.subtags ?? []).map((subtag) => (\n <TagRow\n key={subtag.id}\n labels={labels}\n onTagAction={onTagAction}\n parent={tag.name}\n tag={subtag}\n />\n )),\n ])\n ))}\n </SettingsSection>\n )\n}\n",
27
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-1/settings-catalog-1.tsx"
28
28
  },
29
29
  {
30
- "path": "blocks/application/settings/settings-7/types.ts",
30
+ "path": "blocks/application/settings/catalog/settings-catalog-1/types.ts",
31
31
  "type": "registry:file",
32
- "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../shared/types'\nexport interface Settings7Tag {\n colorClassName: string\n id: string\n leads: number\n name: string\n subtags?: Settings7Tag[]\n tasks: number\n}\n\nexport interface Settings7Labels extends SettingsLoadLabels {\n actions: (name: string) => string\n addSubtag: string\n delete: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n newTag: string\n subtagOf: (parent: string) => string\n usage: (leads: number, tasks: number) => string\n title: string\n}\n\nexport type Settings7Action = 'edit' | 'add-subtag' | 'delete'\n\nexport interface Settings7Props extends SettingsLoadProps {\n className?: string\n labels?: Partial<Settings7Labels>\n onCreate?: () => void\n onTagAction?: (tagId: string, action: Settings7Action) => void\n tags: Settings7Tag[]\n}\n",
33
- "target": "~/packages/ui/src/blocks/application/settings/settings-7/types.ts"
32
+ "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../../shared/types'\nexport interface SettingsCatalog1Tag {\n colorClassName: string\n id: string\n leads: number\n name: string\n subtags?: SettingsCatalog1Tag[]\n tasks: number\n}\n\nexport interface SettingsCatalog1Labels extends SettingsLoadLabels {\n actions: (name: string) => string\n addSubtag: string\n delete: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n newTag: string\n subtagOf: (parent: string) => string\n usage: (leads: number, tasks: number) => string\n title: string\n}\n\nexport type SettingsCatalog1Action = 'edit' | 'add-subtag' | 'delete'\n\nexport interface SettingsCatalog1Props extends SettingsLoadProps {\n className?: string\n labels?: Partial<SettingsCatalog1Labels>\n onCreate?: () => void\n onTagAction?: (tagId: string, action: SettingsCatalog1Action) => void\n tags: SettingsCatalog1Tag[]\n}\n",
33
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-1/types.ts"
34
34
  },
35
35
  {
36
36
  "path": "blocks/application/settings/shared/labels.ts",
@@ -65,7 +65,7 @@
65
65
  {
66
66
  "path": "blocks/application/settings/shared/types.ts",
67
67
  "type": "registry:file",
68
- "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n",
68
+ "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n\nexport interface SettingsAppLogoData {\n svg: string\n title?: string\n}\n",
69
69
  "target": "~/packages/ui/src/blocks/application/settings/shared/types.ts"
70
70
  },
71
71
  {
@@ -1,36 +1,36 @@
1
1
  {
2
- "name": "settings-16",
2
+ "name": "settings-catalog-10",
3
3
  "type": "registry:block",
4
4
  "files": [
5
5
  {
6
- "path": "blocks/application/settings/settings-16/index.ts",
6
+ "path": "blocks/application/settings/catalog/settings-catalog-10/index.ts",
7
7
  "type": "registry:file",
8
- "content": "export { Settings16 } from './settings-16'\nexport type {\n Settings16Action,\n Settings16CostCenter,\n Settings16Labels,\n Settings16Props,\n} from './types'\n",
9
- "target": "~/packages/ui/src/blocks/application/settings/settings-16/index.ts"
8
+ "content": "export { SettingsCatalog10 } from './settings-catalog-10'\nexport type {\n SettingsCatalog10Action,\n SettingsCatalog10CostCenter,\n SettingsCatalog10Labels,\n SettingsCatalog10Props,\n} from './types'\n",
9
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-10/index.ts"
10
10
  },
11
11
  {
12
- "path": "blocks/application/settings/settings-16/labels.ts",
12
+ "path": "blocks/application/settings/catalog/settings-catalog-10/labels.ts",
13
13
  "type": "registry:file",
14
- "content": "import { defaultSettingsLoadLabels } from '../shared/labels'\nimport type { Settings16Labels } from './types'\n\nexport const defaultSettings16Labels: Settings16Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar os centros de custo',\n loading: 'Carregando centros de custo',\n actions: (name) => `Ações de ${name}`,\n archive: 'Arquivar',\n archived: 'Arquivados',\n description:\n 'Onde um custo é lançado: uma área de atuação, um escritório, um projeto.',\n edit: 'Editar',\n emptyDescription: 'Crie um centro de custo para ver onde o dinheiro é gasto.',\n emptyTitle: 'Nenhum centro de custo ainda',\n entries: (count) => `${count} ${count === 1 ? 'lançamento' : 'lançamentos'}`,\n newCostCenter: 'Novo centro de custo',\n restore: 'Restaurar',\n title: 'Centros de custo',\n}\n",
15
- "target": "~/packages/ui/src/blocks/application/settings/settings-16/labels.ts"
14
+ "content": "import { defaultSettingsLoadLabels } from '../../shared/labels'\nimport type { SettingsCatalog10Labels } from './types'\n\nexport const defaultSettingsCatalog10Labels: SettingsCatalog10Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar os centros de custo',\n loading: 'Carregando centros de custo',\n actions: (name) => `Ações de ${name}`,\n archive: 'Arquivar',\n archived: 'Arquivados',\n description:\n 'Onde um custo é lançado: uma área de atuação, um escritório, um projeto.',\n edit: 'Editar',\n emptyDescription: 'Crie um centro de custo para ver onde o dinheiro é gasto.',\n emptyTitle: 'Nenhum centro de custo ainda',\n entries: (count) => `${count} ${count === 1 ? 'lançamento' : 'lançamentos'}`,\n newCostCenter: 'Novo centro de custo',\n restore: 'Restaurar',\n title: 'Centros de custo',\n}\n",
15
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-10/labels.ts"
16
16
  },
17
17
  {
18
- "path": "blocks/application/settings/settings-16/settings-16-skeleton.tsx",
18
+ "path": "blocks/application/settings/catalog/settings-catalog-10/settings-catalog-10-skeleton.tsx",
19
19
  "type": "registry:file",
20
- "content": "import { SettingsRowsSkeleton } from '../shared/settings-skeleton'\n\nexport function Settings16Skeleton() {\n return <SettingsRowsSkeleton count={4} end=\"menu\" />\n}\n",
21
- "target": "~/packages/ui/src/blocks/application/settings/settings-16/settings-16-skeleton.tsx"
20
+ "content": "import { SettingsRowsSkeleton } from '../../shared/settings-skeleton'\n\nexport function SettingsCatalog10Skeleton() {\n return <SettingsRowsSkeleton count={4} end=\"menu\" />\n}\n",
21
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-10/settings-catalog-10-skeleton.tsx"
22
22
  },
23
23
  {
24
- "path": "blocks/application/settings/settings-16/settings-16.tsx",
24
+ "path": "blocks/application/settings/catalog/settings-catalog-10/settings-catalog-10.tsx",
25
25
  "type": "registry:file",
26
- "content": "import { Button } from '@tc96/ui/button'\nimport { SettingsCollapsed } from '@tc96/ui/patterns/surfaces/settings/composition/settings-collapsed/settings-collapsed'\nimport { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../shared/settings-load-state'\nimport { SettingsRowActions } from '../shared/settings-row-actions'\nimport { defaultSettings16Labels } from './labels'\nimport { Settings16Skeleton } from './settings-16-skeleton'\nimport type {\n Settings16Action,\n Settings16CostCenter,\n Settings16Labels,\n Settings16Props,\n} from './types'\n\ninterface CostCenterRowProps {\n archived?: boolean\n costCenter: Settings16CostCenter\n labels: Settings16Labels\n onCostCenterAction?: Settings16Props['onCostCenterAction']\n}\n\nfunction CostCenterRow({\n archived,\n costCenter,\n labels,\n onCostCenterAction,\n}: Readonly<CostCenterRowProps>) {\n const actions = archived\n ? [{ id: 'restore', label: labels.restore }]\n : [\n { id: 'edit', label: labels.edit },\n { destructive: true, id: 'archive', label: labels.archive },\n ]\n\n return (\n <SettingsRow\n endSlot={\n <div className=\"flex items-center gap-3\">\n <Text\n foreground=\"muted\"\n render={<span>{labels.entries(costCenter.entries)}</span>}\n size=\"sm\"\n />\n {onCostCenterAction ? (\n <SettingsRowActions\n actions={actions}\n label={labels.actions(costCenter.name)}\n onAction={(action) =>\n onCostCenterAction(costCenter.id, action as Settings16Action)\n }\n />\n ) : null}\n </div>\n }\n title={costCenter.name}\n />\n )\n}\n\nexport function Settings16({\n error,\n onRetry,\n pending,\n archivedCostCenters = [],\n className,\n costCenters,\n labels: labelsProp,\n onCostCenterAction,\n onCreate,\n}: Readonly<Settings16Props>) {\n const labels = { ...defaultSettings16Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <Settings16Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.newCostCenter}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ?? (\n <>\n {costCenters.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n costCenters.map((costCenter) => (\n <CostCenterRow\n costCenter={costCenter}\n key={costCenter.id}\n labels={labels}\n onCostCenterAction={onCostCenterAction}\n />\n ))\n )}\n {archivedCostCenters.length > 0 ? (\n <div>\n <SettingsCollapsed defaultOpen={false} title={labels.archived}>\n {archivedCostCenters.map((costCenter) => (\n <CostCenterRow\n archived\n costCenter={costCenter}\n key={costCenter.id}\n labels={labels}\n onCostCenterAction={onCostCenterAction}\n />\n ))}\n </SettingsCollapsed>\n </div>\n ) : null}\n </>\n )}\n </SettingsSection>\n )\n}\n",
27
- "target": "~/packages/ui/src/blocks/application/settings/settings-16/settings-16.tsx"
26
+ "content": "import { Button } from '@tc96/ui/button'\nimport { SettingsCollapsed } from '@tc96/ui/patterns/surfaces/settings/composition/settings-collapsed/settings-collapsed'\nimport { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../../shared/settings-load-state'\nimport { SettingsRowActions } from '../../shared/settings-row-actions'\nimport { defaultSettingsCatalog10Labels } from './labels'\nimport { SettingsCatalog10Skeleton } from './settings-catalog-10-skeleton'\nimport type {\n SettingsCatalog10Action,\n SettingsCatalog10CostCenter,\n SettingsCatalog10Labels,\n SettingsCatalog10Props,\n} from './types'\n\ninterface CostCenterRowProps {\n archived?: boolean\n costCenter: SettingsCatalog10CostCenter\n labels: SettingsCatalog10Labels\n onCostCenterAction?: SettingsCatalog10Props['onCostCenterAction']\n}\n\nfunction CostCenterRow({\n archived,\n costCenter,\n labels,\n onCostCenterAction,\n}: Readonly<CostCenterRowProps>) {\n const actions = archived\n ? [{ id: 'restore', label: labels.restore }]\n : [\n { id: 'edit', label: labels.edit },\n { destructive: true, id: 'archive', label: labels.archive },\n ]\n\n return (\n <SettingsRow\n endSlot={\n <div className=\"flex items-center gap-3\">\n <Text\n foreground=\"muted\"\n render={<span>{labels.entries(costCenter.entries)}</span>}\n size=\"sm\"\n />\n {onCostCenterAction ? (\n <SettingsRowActions\n actions={actions}\n label={labels.actions(costCenter.name)}\n onAction={(action) =>\n onCostCenterAction(\n costCenter.id,\n action as SettingsCatalog10Action,\n )\n }\n />\n ) : null}\n </div>\n }\n title={costCenter.name}\n />\n )\n}\n\nexport function SettingsCatalog10({\n error,\n onRetry,\n pending,\n archivedCostCenters = [],\n className,\n costCenters,\n labels: labelsProp,\n onCostCenterAction,\n onCreate,\n}: Readonly<SettingsCatalog10Props>) {\n const labels = { ...defaultSettingsCatalog10Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <SettingsCatalog10Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.newCostCenter}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ?? (\n <>\n {costCenters.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n costCenters.map((costCenter) => (\n <CostCenterRow\n costCenter={costCenter}\n key={costCenter.id}\n labels={labels}\n onCostCenterAction={onCostCenterAction}\n />\n ))\n )}\n {archivedCostCenters.length > 0 ? (\n <div>\n <SettingsCollapsed defaultOpen={false} title={labels.archived}>\n {archivedCostCenters.map((costCenter) => (\n <CostCenterRow\n archived\n costCenter={costCenter}\n key={costCenter.id}\n labels={labels}\n onCostCenterAction={onCostCenterAction}\n />\n ))}\n </SettingsCollapsed>\n </div>\n ) : null}\n </>\n )}\n </SettingsSection>\n )\n}\n",
27
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-10/settings-catalog-10.tsx"
28
28
  },
29
29
  {
30
- "path": "blocks/application/settings/settings-16/types.ts",
30
+ "path": "blocks/application/settings/catalog/settings-catalog-10/types.ts",
31
31
  "type": "registry:file",
32
- "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../shared/types'\nexport interface Settings16CostCenter {\n entries: number\n id: string\n name: string\n}\n\nexport interface Settings16Labels extends SettingsLoadLabels {\n actions: (name: string) => string\n archive: string\n archived: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n entries: (count: number) => string\n newCostCenter: string\n restore: string\n title: string\n}\n\nexport type Settings16Action = 'edit' | 'archive' | 'restore'\n\nexport interface Settings16Props extends SettingsLoadProps {\n archivedCostCenters?: Settings16CostCenter[]\n className?: string\n costCenters: Settings16CostCenter[]\n labels?: Partial<Settings16Labels>\n onCostCenterAction?: (costCenterId: string, action: Settings16Action) => void\n onCreate?: () => void\n}\n",
33
- "target": "~/packages/ui/src/blocks/application/settings/settings-16/types.ts"
32
+ "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../../shared/types'\nexport interface SettingsCatalog10CostCenter {\n entries: number\n id: string\n name: string\n}\n\nexport interface SettingsCatalog10Labels extends SettingsLoadLabels {\n actions: (name: string) => string\n archive: string\n archived: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n entries: (count: number) => string\n newCostCenter: string\n restore: string\n title: string\n}\n\nexport type SettingsCatalog10Action = 'edit' | 'archive' | 'restore'\n\nexport interface SettingsCatalog10Props extends SettingsLoadProps {\n archivedCostCenters?: SettingsCatalog10CostCenter[]\n className?: string\n costCenters: SettingsCatalog10CostCenter[]\n labels?: Partial<SettingsCatalog10Labels>\n onCostCenterAction?: (\n costCenterId: string,\n action: SettingsCatalog10Action,\n ) => void\n onCreate?: () => void\n}\n",
33
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-10/types.ts"
34
34
  },
35
35
  {
36
36
  "path": "blocks/application/settings/shared/labels.ts",
@@ -59,7 +59,7 @@
59
59
  {
60
60
  "path": "blocks/application/settings/shared/types.ts",
61
61
  "type": "registry:file",
62
- "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n",
62
+ "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n\nexport interface SettingsAppLogoData {\n svg: string\n title?: string\n}\n",
63
63
  "target": "~/packages/ui/src/blocks/application/settings/shared/types.ts"
64
64
  },
65
65
  {
@@ -1,36 +1,36 @@
1
1
  {
2
- "name": "settings-8",
2
+ "name": "settings-catalog-2",
3
3
  "type": "registry:block",
4
4
  "files": [
5
5
  {
6
- "path": "blocks/application/settings/settings-8/index.ts",
6
+ "path": "blocks/application/settings/catalog/settings-catalog-2/index.ts",
7
7
  "type": "registry:file",
8
- "content": "export { Settings8 } from './settings-8'\nexport type { Settings8Labels, Settings8Props } from './types'\n",
9
- "target": "~/packages/ui/src/blocks/application/settings/settings-8/index.ts"
8
+ "content": "export { SettingsCatalog2 } from './settings-catalog-2'\nexport type { SettingsCatalog2Labels, SettingsCatalog2Props } from './types'\n",
9
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-2/index.ts"
10
10
  },
11
11
  {
12
- "path": "blocks/application/settings/settings-8/labels.ts",
12
+ "path": "blocks/application/settings/catalog/settings-catalog-2/labels.ts",
13
13
  "type": "registry:file",
14
- "content": "import { defaultSettingsLoadLabels } from '../shared/labels'\nimport type { Settings8Labels } from './types'\n\nexport const defaultSettings8Labels: Settings8Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar os SLAs',\n loading: 'Carregando SLAs',\n description:\n 'Aplique prazos às issues que correspondem às regras de automação',\n enable: 'Ativar SLAs',\n title: 'SLAs',\n}\n",
15
- "target": "~/packages/ui/src/blocks/application/settings/settings-8/labels.ts"
14
+ "content": "import { defaultSettingsLoadLabels } from '../../shared/labels'\nimport type { SettingsCatalog2Labels } from './types'\n\nexport const defaultSettingsCatalog2Labels: SettingsCatalog2Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar os SLAs',\n loading: 'Carregando SLAs',\n description:\n 'Aplique prazos às issues que correspondem às regras de automação',\n enable: 'Ativar SLAs',\n title: 'SLAs',\n}\n",
15
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-2/labels.ts"
16
16
  },
17
17
  {
18
- "path": "blocks/application/settings/settings-8/settings-8-skeleton.tsx",
18
+ "path": "blocks/application/settings/catalog/settings-catalog-2/settings-catalog-2-skeleton.tsx",
19
19
  "type": "registry:file",
20
- "content": "import { SettingsRowsSkeleton } from '../shared/settings-skeleton'\n\nexport function Settings8Skeleton() {\n return <SettingsRowsSkeleton count={1} end=\"switch\" />\n}\n",
21
- "target": "~/packages/ui/src/blocks/application/settings/settings-8/settings-8-skeleton.tsx"
20
+ "content": "import { SettingsRowsSkeleton } from '../../shared/settings-skeleton'\n\nexport function SettingsCatalog2Skeleton() {\n return <SettingsRowsSkeleton count={1} end=\"switch\" />\n}\n",
21
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-2/settings-catalog-2-skeleton.tsx"
22
22
  },
23
23
  {
24
- "path": "blocks/application/settings/settings-8/settings-8.tsx",
24
+ "path": "blocks/application/settings/catalog/settings-catalog-2/settings-catalog-2.tsx",
25
25
  "type": "registry:file",
26
- "content": "import { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { Switch } from '@tc96/ui/switch'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../shared/settings-load-state'\nimport { defaultSettings8Labels } from './labels'\nimport { Settings8Skeleton } from './settings-8-skeleton'\nimport type { Settings8Props } from './types'\n\nexport function Settings8({\n error,\n onRetry,\n pending,\n className,\n enabled = false,\n labels: labelsProp,\n onEnabledChange,\n}: Readonly<Settings8Props>) {\n const labels = { ...defaultSettings8Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <Settings8Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader>\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n </SettingsSectionHeader>\n }\n >\n {loadState ?? (\n <SettingsRow\n description={labels.description}\n endSlot={\n <Switch\n aria-label={labels.enable}\n checked={enabled}\n onCheckedChange={onEnabledChange}\n />\n }\n title={labels.enable}\n />\n )}\n </SettingsSection>\n )\n}\n",
27
- "target": "~/packages/ui/src/blocks/application/settings/settings-8/settings-8.tsx"
26
+ "content": "import { SettingsRow } from '@tc96/ui/patterns/surfaces/settings/composition/settings-row/settings-row'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { Switch } from '@tc96/ui/switch'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../../shared/settings-load-state'\nimport { defaultSettingsCatalog2Labels } from './labels'\nimport { SettingsCatalog2Skeleton } from './settings-catalog-2-skeleton'\nimport type { SettingsCatalog2Props } from './types'\n\nexport function SettingsCatalog2({\n error,\n onRetry,\n pending,\n className,\n enabled = false,\n labels: labelsProp,\n onEnabledChange,\n}: Readonly<SettingsCatalog2Props>) {\n const labels = { ...defaultSettingsCatalog2Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <SettingsCatalog2Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader>\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n </SettingsSectionHeader>\n }\n >\n {loadState ?? (\n <SettingsRow\n description={labels.description}\n endSlot={\n <Switch\n aria-label={labels.enable}\n checked={enabled}\n onCheckedChange={onEnabledChange}\n />\n }\n title={labels.enable}\n />\n )}\n </SettingsSection>\n )\n}\n",
27
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-2/settings-catalog-2.tsx"
28
28
  },
29
29
  {
30
- "path": "blocks/application/settings/settings-8/types.ts",
30
+ "path": "blocks/application/settings/catalog/settings-catalog-2/types.ts",
31
31
  "type": "registry:file",
32
- "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../shared/types'\nexport interface Settings8Labels extends SettingsLoadLabels {\n description: string\n enable: string\n title: string\n}\n\nexport interface Settings8Props extends SettingsLoadProps {\n className?: string\n enabled?: boolean\n labels?: Partial<Settings8Labels>\n onEnabledChange?: (enabled: boolean) => void\n}\n",
33
- "target": "~/packages/ui/src/blocks/application/settings/settings-8/types.ts"
32
+ "content": "import type { SettingsLoadLabels, SettingsLoadProps } from '../../shared/types'\nexport interface SettingsCatalog2Labels extends SettingsLoadLabels {\n description: string\n enable: string\n title: string\n}\n\nexport interface SettingsCatalog2Props extends SettingsLoadProps {\n className?: string\n enabled?: boolean\n labels?: Partial<SettingsCatalog2Labels>\n onEnabledChange?: (enabled: boolean) => void\n}\n",
33
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-2/types.ts"
34
34
  },
35
35
  {
36
36
  "path": "blocks/application/settings/shared/labels.ts",
@@ -53,7 +53,7 @@
53
53
  {
54
54
  "path": "blocks/application/settings/shared/types.ts",
55
55
  "type": "registry:file",
56
- "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n",
56
+ "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n\nexport interface SettingsAppLogoData {\n svg: string\n title?: string\n}\n",
57
57
  "target": "~/packages/ui/src/blocks/application/settings/shared/types.ts"
58
58
  },
59
59
  {
@@ -1,36 +1,36 @@
1
1
  {
2
- "name": "settings-9",
2
+ "name": "settings-catalog-3",
3
3
  "type": "registry:block",
4
4
  "files": [
5
5
  {
6
- "path": "blocks/application/settings/settings-9/index.ts",
6
+ "path": "blocks/application/settings/catalog/settings-catalog-3/index.ts",
7
7
  "type": "registry:file",
8
- "content": "export { Settings9 } from './settings-9'\nexport type {\n Settings9Action,\n Settings9Labels,\n Settings9Props,\n Settings9Rule,\n Settings9RuleIcon,\n} from './types'\n",
9
- "target": "~/packages/ui/src/blocks/application/settings/settings-9/index.ts"
8
+ "content": "export { SettingsCatalog3 } from './settings-catalog-3'\nexport type {\n SettingsCatalog3Action,\n SettingsCatalog3Labels,\n SettingsCatalog3Props,\n SettingsCatalog3Rule,\n SettingsCatalog3RuleIcon,\n} from './types'\n",
9
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-3/index.ts"
10
10
  },
11
11
  {
12
- "path": "blocks/application/settings/settings-9/labels.ts",
12
+ "path": "blocks/application/settings/catalog/settings-catalog-3/labels.ts",
13
13
  "type": "registry:file",
14
- "content": "import { defaultSettingsLoadLabels } from '../shared/labels'\nimport type { Settings9Labels } from './types'\n\nexport const defaultSettings9Labels: Settings9Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar as regras',\n loading: 'Carregando regras',\n actions: (field, operator, value) => `Ações de ${field} ${operator} ${value}`,\n addRule: 'Adicionar regra',\n condition: 'Condição',\n delete: 'Excluir',\n description:\n 'Use regras de automação para adicionar ou remover SLAs automaticamente com base em filtros.',\n edit: 'Editar',\n emptyDescription:\n 'Adicione uma regra para aplicar ou remover SLAs automaticamente.',\n emptyTitle: 'Nenhuma regra ainda',\n thenLabel: 'Então',\n title: 'Regras de automação',\n whenLabel: 'Quando',\n}\n",
15
- "target": "~/packages/ui/src/blocks/application/settings/settings-9/labels.ts"
14
+ "content": "import { defaultSettingsLoadLabels } from '../../shared/labels'\nimport type { SettingsCatalog3Labels } from './types'\n\nexport const defaultSettingsCatalog3Labels: SettingsCatalog3Labels = {\n ...defaultSettingsLoadLabels,\n errorTitle: 'Não foi possível carregar as regras',\n loading: 'Carregando regras',\n actions: (field, operator, value) => `Ações de ${field} ${operator} ${value}`,\n addRule: 'Adicionar regra',\n condition: 'Condição',\n delete: 'Excluir',\n description:\n 'Use regras de automação para adicionar ou remover SLAs automaticamente com base em filtros.',\n edit: 'Editar',\n emptyDescription:\n 'Adicione uma regra para aplicar ou remover SLAs automaticamente.',\n emptyTitle: 'Nenhuma regra ainda',\n thenLabel: 'Então',\n title: 'Regras de automação',\n whenLabel: 'Quando',\n}\n",
15
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-3/labels.ts"
16
16
  },
17
17
  {
18
- "path": "blocks/application/settings/settings-9/settings-9-skeleton.tsx",
18
+ "path": "blocks/application/settings/catalog/settings-catalog-3/settings-catalog-3-skeleton.tsx",
19
19
  "type": "registry:file",
20
- "content": "import { SettingsRowsSkeleton } from '../shared/settings-skeleton'\n\nexport function Settings9Skeleton() {\n return <SettingsRowsSkeleton count={4} end=\"menu\" />\n}\n",
21
- "target": "~/packages/ui/src/blocks/application/settings/settings-9/settings-9-skeleton.tsx"
20
+ "content": "import { SettingsRowsSkeleton } from '../../shared/settings-skeleton'\n\nexport function SettingsCatalog3Skeleton() {\n return <SettingsRowsSkeleton count={4} end=\"menu\" />\n}\n",
21
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-3/settings-catalog-3-skeleton.tsx"
22
22
  },
23
23
  {
24
- "path": "blocks/application/settings/settings-9/settings-9.tsx",
24
+ "path": "blocks/application/settings/catalog/settings-catalog-3/settings-catalog-3.tsx",
25
25
  "type": "registry:file",
26
- "content": "import { Badge } from '@tc96/ui/badge'\nimport { Button } from '@tc96/ui/button'\nimport { Group, GroupSeparator } from '@tc96/ui/group'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../shared/settings-load-state'\nimport { SettingsRowActions } from '../shared/settings-row-actions'\nimport { defaultSettings9Labels } from './labels'\nimport { Settings9Skeleton } from './settings-9-skeleton'\nimport type {\n Settings9Action,\n Settings9Labels,\n Settings9Props,\n Settings9Rule,\n} from './types'\n\ninterface RuleItemProps {\n labels: Settings9Labels\n onRuleAction?: Settings9Props['onRuleAction']\n rule: Settings9Rule\n}\n\nfunction RuleItem({ labels, onRuleAction, rule }: Readonly<RuleItemProps>) {\n const { action, field, operator, value } = rule\n const ValueIcon = value.icon\n const ActionIcon = action.icon\n\n return (\n <div className=\"flex items-center justify-between gap-3 py-3\">\n <div className=\"flex min-w-0 flex-col gap-2\">\n <div className=\"flex items-center gap-2\">\n <Text\n className=\"w-10\"\n foreground=\"muted\"\n render={<span>{labels.whenLabel}</span>}\n size=\"sm\"\n />\n <Group aria-label={labels.condition}>\n <Badge variant=\"outline\">{field}</Badge>\n <GroupSeparator />\n <Badge variant=\"outline\">{operator}</Badge>\n <GroupSeparator />\n <Badge variant=\"outline\">\n {ValueIcon ? <ValueIcon aria-hidden=\"true\" /> : null}\n {value.label}\n </Badge>\n </Group>\n </div>\n <div className=\"flex items-center gap-2\">\n <Text\n className=\"w-10\"\n foreground=\"muted\"\n render={<span>{labels.thenLabel}</span>}\n size=\"sm\"\n />\n {ActionIcon ? (\n <ActionIcon aria-hidden=\"true\" className=\"size-4 text-foreground\" />\n ) : null}\n <Text render={<span>{action.text}</span>} size=\"sm\" />\n </div>\n </div>\n {onRuleAction ? (\n <SettingsRowActions\n actions={[\n { id: 'edit', label: labels.edit },\n { destructive: true, id: 'delete', label: labels.delete },\n ]}\n label={labels.actions(field, operator, value.label)}\n onAction={(next) => onRuleAction(rule.id, next as Settings9Action)}\n />\n ) : null}\n </div>\n )\n}\n\nexport function Settings9({\n error,\n onRetry,\n pending,\n className,\n labels: labelsProp,\n onCreate,\n onRuleAction,\n rules,\n}: Readonly<Settings9Props>) {\n const labels = { ...defaultSettings9Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <Settings9Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.addRule}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ??\n (rules.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n rules.map((rule) => (\n <RuleItem\n key={rule.id}\n labels={labels}\n onRuleAction={onRuleAction}\n rule={rule}\n />\n ))\n ))}\n </SettingsSection>\n )\n}\n",
27
- "target": "~/packages/ui/src/blocks/application/settings/settings-9/settings-9.tsx"
26
+ "content": "import { Badge } from '@tc96/ui/badge'\nimport { Button } from '@tc96/ui/button'\nimport { Group, GroupSeparator } from '@tc96/ui/group'\nimport { SettingsSection } from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section'\nimport {\n SettingsSectionDescription,\n SettingsSectionHeader,\n SettingsSectionTitle,\n} from '@tc96/ui/patterns/surfaces/settings/composition/settings-section/settings-section-header'\nimport { StateSurface } from '@tc96/ui/patterns/surfaces/state/composition/state-surface/state-surface'\nimport { Text } from '@tc96/ui/text'\nimport { cn } from '@tc96/utils'\nimport { settingsLoadState } from '../../shared/settings-load-state'\nimport { SettingsRowActions } from '../../shared/settings-row-actions'\nimport { defaultSettingsCatalog3Labels } from './labels'\nimport { SettingsCatalog3Skeleton } from './settings-catalog-3-skeleton'\nimport type {\n SettingsCatalog3Action,\n SettingsCatalog3Labels,\n SettingsCatalog3Props,\n SettingsCatalog3Rule,\n} from './types'\n\ninterface RuleItemProps {\n labels: SettingsCatalog3Labels\n onRuleAction?: SettingsCatalog3Props['onRuleAction']\n rule: SettingsCatalog3Rule\n}\n\nfunction RuleItem({ labels, onRuleAction, rule }: Readonly<RuleItemProps>) {\n const { action, field, operator, value } = rule\n const ValueIcon = value.icon\n const ActionIcon = action.icon\n\n return (\n <div className=\"flex items-center justify-between gap-3 py-3\">\n <div className=\"flex min-w-0 flex-col gap-2\">\n <div className=\"flex items-center gap-2\">\n <Text\n className=\"w-10\"\n foreground=\"muted\"\n render={<span>{labels.whenLabel}</span>}\n size=\"sm\"\n />\n <Group aria-label={labels.condition}>\n <Badge variant=\"outline\">{field}</Badge>\n <GroupSeparator />\n <Badge variant=\"outline\">{operator}</Badge>\n <GroupSeparator />\n <Badge variant=\"outline\">\n {ValueIcon ? <ValueIcon aria-hidden=\"true\" /> : null}\n {value.label}\n </Badge>\n </Group>\n </div>\n <div className=\"flex items-center gap-2\">\n <Text\n className=\"w-10\"\n foreground=\"muted\"\n render={<span>{labels.thenLabel}</span>}\n size=\"sm\"\n />\n {ActionIcon ? (\n <ActionIcon aria-hidden=\"true\" className=\"size-4 text-foreground\" />\n ) : null}\n <Text render={<span>{action.text}</span>} size=\"sm\" />\n </div>\n </div>\n {onRuleAction ? (\n <SettingsRowActions\n actions={[\n { id: 'edit', label: labels.edit },\n { destructive: true, id: 'delete', label: labels.delete },\n ]}\n label={labels.actions(field, operator, value.label)}\n onAction={(next) =>\n onRuleAction(rule.id, next as SettingsCatalog3Action)\n }\n />\n ) : null}\n </div>\n )\n}\n\nexport function SettingsCatalog3({\n error,\n onRetry,\n pending,\n className,\n labels: labelsProp,\n onCreate,\n onRuleAction,\n rules,\n}: Readonly<SettingsCatalog3Props>) {\n const labels = { ...defaultSettingsCatalog3Labels, ...labelsProp }\n const loadState = settingsLoadState({\n error,\n labels,\n onRetry,\n pending,\n skeleton: <SettingsCatalog3Skeleton />,\n })\n\n return (\n <SettingsSection\n className={cn('mx-auto w-full max-w-2xl', className)}\n header={\n <SettingsSectionHeader\n actions={\n onCreate ? (\n <Button onClick={onCreate} size=\"sm\">\n {labels.addRule}\n </Button>\n ) : undefined\n }\n >\n <SettingsSectionTitle>{labels.title}</SettingsSectionTitle>\n <SettingsSectionDescription>\n {labels.description}\n </SettingsSectionDescription>\n </SettingsSectionHeader>\n }\n >\n {loadState ??\n (rules.length === 0 ? (\n <StateSurface\n description={labels.emptyDescription}\n kind=\"empty\"\n title={labels.emptyTitle}\n />\n ) : (\n rules.map((rule) => (\n <RuleItem\n key={rule.id}\n labels={labels}\n onRuleAction={onRuleAction}\n rule={rule}\n />\n ))\n ))}\n </SettingsSection>\n )\n}\n",
27
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-3/settings-catalog-3.tsx"
28
28
  },
29
29
  {
30
- "path": "blocks/application/settings/settings-9/types.ts",
30
+ "path": "blocks/application/settings/catalog/settings-catalog-3/types.ts",
31
31
  "type": "registry:file",
32
- "content": "import type { ComponentType } from 'react'\nimport type { SettingsLoadLabels, SettingsLoadProps } from '../shared/types'\n\nexport type Settings9RuleIcon = ComponentType<{ className?: string }>\n\nexport interface Settings9Rule {\n action: { icon?: Settings9RuleIcon; text: string }\n field: string\n id: string\n operator: string\n value: { icon?: Settings9RuleIcon; label: string }\n}\n\nexport type Settings9Action = 'edit' | 'delete'\n\nexport interface Settings9Labels extends SettingsLoadLabels {\n actions: (field: string, operator: string, value: string) => string\n addRule: string\n condition: string\n delete: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n thenLabel: string\n title: string\n whenLabel: string\n}\n\nexport interface Settings9Props extends SettingsLoadProps {\n className?: string\n labels?: Partial<Settings9Labels>\n onCreate?: () => void\n onRuleAction?: (ruleId: string, action: Settings9Action) => void\n rules: Settings9Rule[]\n}\n",
33
- "target": "~/packages/ui/src/blocks/application/settings/settings-9/types.ts"
32
+ "content": "import type { ComponentType } from 'react'\nimport type { SettingsLoadLabels, SettingsLoadProps } from '../../shared/types'\n\nexport type SettingsCatalog3RuleIcon = ComponentType<{ className?: string }>\n\nexport interface SettingsCatalog3Rule {\n action: { icon?: SettingsCatalog3RuleIcon; text: string }\n field: string\n id: string\n operator: string\n value: { icon?: SettingsCatalog3RuleIcon; label: string }\n}\n\nexport type SettingsCatalog3Action = 'edit' | 'delete'\n\nexport interface SettingsCatalog3Labels extends SettingsLoadLabels {\n actions: (field: string, operator: string, value: string) => string\n addRule: string\n condition: string\n delete: string\n description: string\n edit: string\n emptyDescription: string\n emptyTitle: string\n thenLabel: string\n title: string\n whenLabel: string\n}\n\nexport interface SettingsCatalog3Props extends SettingsLoadProps {\n className?: string\n labels?: Partial<SettingsCatalog3Labels>\n onCreate?: () => void\n onRuleAction?: (ruleId: string, action: SettingsCatalog3Action) => void\n rules: SettingsCatalog3Rule[]\n}\n",
33
+ "target": "~/packages/ui/src/blocks/application/settings/catalog/settings-catalog-3/types.ts"
34
34
  },
35
35
  {
36
36
  "path": "blocks/application/settings/shared/labels.ts",
@@ -59,7 +59,7 @@
59
59
  {
60
60
  "path": "blocks/application/settings/shared/types.ts",
61
61
  "type": "registry:file",
62
- "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n",
62
+ "content": "export interface SettingsRowAction {\n destructive?: boolean\n id: string\n label: string\n}\n\nexport interface SettingsOption {\n label: string\n value: string\n}\n\nexport interface SettingsLoadLabels {\n errorDescription: string\n errorTitle: string\n loading: string\n retry: string\n}\n\nexport interface SettingsLoadProps {\n error?: boolean\n onRetry?: () => void\n pending?: boolean\n}\n\nexport interface SettingsAppLogoData {\n svg: string\n title?: string\n}\n",
63
63
  "target": "~/packages/ui/src/blocks/application/settings/shared/types.ts"
64
64
  },
65
65
  {