agroptima-design-system 0.31.8 → 0.31.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.31.8",
3
+ "version": "0.31.9",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -88,7 +88,7 @@ function Footer({
88
88
  )
89
89
  .replace('${to}', formatDatePickerFooterDate(selected?.to, lng as string))
90
90
  }
91
- return translations[lng].selectedOnlyFrom.replace(
91
+ return translations[lng].selectedDate.replace(
92
92
  '${from}',
93
93
  formatDatePickerFooterDate(selected?.from, lng as string),
94
94
  )
@@ -54,7 +54,7 @@ export function DateSinglePicker({
54
54
  )
55
55
  }
56
56
  function Footer({ lng, selected }: { selected?: Date; lng: Locale }): string {
57
- if (!selected) return translations[lng].pickSingleDate
57
+ if (!selected) return translations[lng].pickDate
58
58
 
59
59
  return translations[lng].selectedDate.replace(
60
60
  '${date}',
@@ -18,17 +18,13 @@ export type Locale = keyof typeof availableLocales
18
18
 
19
19
  export const translations: Translation = {
20
20
  en: {
21
- pickDate: 'Pick a day or a range of dates',
22
- pickSingleDate: 'Pick a date',
21
+ pickDate: 'Pick a date or a range of dates',
23
22
  selectedDate: 'Selected date: ${date}',
24
23
  selectedRangeOfDates: 'Selected dates range: from ${from} to ${to}',
25
- selectedOnlyFrom: 'Selected dates range: from ${from}',
26
24
  },
27
25
  es: {
28
- pickDate: 'Selecciona un día o un rango de fechas',
29
- pickSingleDate: 'Selecciona una fecha',
26
+ pickDate: 'Selecciona una fecha o un rango de fechas',
30
27
  selectedDate: 'Fecha seleccionada: ${date}',
31
28
  selectedRangeOfDates: 'Rango de fechas seleccionado: desde ${from} a ${to}',
32
- selectedOnlyFrom: 'Rango de fechas seleccionado: desde ${from}',
33
29
  },
34
30
  }
@@ -4,6 +4,10 @@ import { Meta } from "@storybook/blocks";
4
4
 
5
5
  # Changelog
6
6
 
7
+ ## 0.31.9
8
+
9
+ * Change footer text for DateSinglePicker and DateRangePicker
10
+
7
11
  ## 0.31.8
8
12
 
9
13
  * Refactor Modal component to use HTML dialog