@12-apps/discounts 1.13.0 → 1.14.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@12-apps/discounts",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/e2e/**"
@@ -41,10 +41,10 @@
41
41
  "typecheck": "tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@12-apps/app-shell": "^5.7.0",
44
+ "@12-apps/app-shell": "^5.11.0",
45
45
  "@12-apps/forms-core": "^1.21.0",
46
46
  "@12-apps/shared-helpers": "^2.1.0",
47
- "@12-apps/ui": "^6.15.1",
47
+ "@12-apps/ui": "^6.42.0",
48
48
  "@mui/icons-material": "^6.5.0",
49
49
  "zod": "^4.3.5"
50
50
  },
package/src/react/copy.ts CHANGED
@@ -51,6 +51,8 @@ export interface DiscountsScreenCopy {
51
51
  readonly empty: string;
52
52
  /** The exported file's base name, without extension. */
53
53
  readonly exportFileName: string;
54
+ /** The header's export trigger. */
55
+ readonly exportAction: string;
54
56
  /** While the first page is loading. */
55
57
  readonly loading: string;
56
58
  /** The read failed: a heading, and the button that tries again. */
@@ -115,11 +115,12 @@ function HeaderControls({
115
115
  }): JSX.Element {
116
116
  return (
117
117
  <>
118
- <Dashboard.Info title={copy.screen.aboutTitle}>
118
+ <Dashboard.Info title={copy.screen.aboutTitle} ariaLabel={copy.screen.aboutTitle}>
119
119
  {copy.screen.aboutBody}
120
120
  </Dashboard.Info>
121
121
  <Dashboard.Spacer />
122
122
  <Dashboard.Export
123
+ label={copy.screen.exportAction}
123
124
  formats={[
124
125
  { id: "csv", label: "CSV (.csv)" },
125
126
  { id: "json", label: "JSON (.json)" },
@@ -31,6 +31,7 @@ export const EN_US_DISCOUNTS_WEB_COPY: DiscountsWebCopy = {
31
31
  empty: "No discounts yet.",
32
32
  // A FILENAME, not a sentence: it is what the export lands on disk as.
33
33
  exportFileName: "discounts",
34
+ exportAction: "Export",
34
35
  loading: "Loading discounts…",
35
36
  loadFailed: "Could not load the discounts",
36
37
  retry: "Try again",
@@ -26,6 +26,7 @@ export const PT_BR_DISCOUNTS_WEB_COPY: DiscountsWebCopy = {
26
26
  create: "Novo desconto",
27
27
  empty: "Nenhum desconto cadastrado.",
28
28
  exportFileName: "descontos",
29
+ exportAction: "Exportar",
29
30
  loading: "Carregando descontos…",
30
31
  loadFailed: "Não foi possível carregar os descontos",
31
32
  retry: "Tentar novamente",