@datatechsolutions/tympan 0.3.1 → 0.4.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.
@@ -44,6 +44,23 @@ export interface Messages
44
44
  overLimit: (count: number, max: number) => string
45
45
  }
46
46
  select: { placeholder: string; done: string }
47
+ calendar: {
48
+ previousMonth: (target: string) => string
49
+ nextMonth: (target: string) => string
50
+ monthPicker: string
51
+ yearPicker: string
52
+ }
53
+ dateRangeField: {
54
+ start: string
55
+ end: string
56
+ presets: string
57
+ apply: string
58
+ cancel: string
59
+ endBeforeStart: string
60
+ tooManyDays: (max: number) => string
61
+ unavailableDay: string
62
+ outOfBounds: string
63
+ }
47
64
  notice: { toneWord: Record<'danger' | 'warning' | 'info' | 'success', string> }
48
65
  empty: Record<EmptyReason, { title: string; description: string }> & { clearFilters: string; retry: string }
49
66
  error: Record<ErrorKind, { title: string; message: string }> & {
@@ -117,6 +134,23 @@ export const defaultMessages: Messages = {
117
134
  `${en.n(n)} of ${en.n(max)} ${en.word(max, { one: 'character', other: 'characters' })}, ${en.n(n - max)} over the limit`,
118
135
  },
119
136
  select: { placeholder: 'Select…', done: 'Done' },
137
+ calendar: {
138
+ previousMonth: (target) => `Previous month, ${target}`,
139
+ nextMonth: (target) => `Next month, ${target}`,
140
+ monthPicker: 'Month',
141
+ yearPicker: 'Year',
142
+ },
143
+ dateRangeField: {
144
+ start: 'Start date',
145
+ end: 'End date',
146
+ presets: 'Presets',
147
+ apply: 'Apply',
148
+ cancel: 'Cancel',
149
+ endBeforeStart: 'The end date is before the start date.',
150
+ tooManyDays: (max) => `The range is longer than ${en.n(max)} ${en.word(max, { one: 'day', other: 'days' })}.`,
151
+ unavailableDay: 'The range includes a day that cannot be chosen.',
152
+ outOfBounds: 'The range includes a day outside the allowed dates.',
153
+ },
120
154
  notice: { toneWord: { danger: 'Error:', warning: 'Warning:', info: 'Information:', success: 'Success:' } },
121
155
  empty: {
122
156
  'no-data': { title: 'Nothing here yet', description: 'Items appear here once they are added.' },
@@ -217,6 +251,23 @@ export const messagesPtBR: Messages = {
217
251
  `${pt.n(n)} de ${pt.n(max)} ${pt.word(max, { one: 'caractere', other: 'caracteres' })}, ${pt.n(n - max)} acima do limite`,
218
252
  },
219
253
  select: { placeholder: 'Selecione…', done: 'Concluir' },
254
+ calendar: {
255
+ previousMonth: (target) => `Mês anterior, ${target}`,
256
+ nextMonth: (target) => `Próximo mês, ${target}`,
257
+ monthPicker: 'Mês',
258
+ yearPicker: 'Ano',
259
+ },
260
+ dateRangeField: {
261
+ start: 'Data inicial',
262
+ end: 'Data final',
263
+ presets: 'Períodos rápidos',
264
+ apply: 'Aplicar',
265
+ cancel: 'Cancelar',
266
+ endBeforeStart: 'A data final é anterior à data inicial.',
267
+ tooManyDays: (max) => `O período é maior que ${pt.n(max)} ${pt.word(max, { one: 'dia', other: 'dias' })}.`,
268
+ unavailableDay: 'O período inclui um dia que não pode ser escolhido.',
269
+ outOfBounds: 'O período inclui um dia fora das datas permitidas.',
270
+ },
220
271
  notice: { toneWord: { danger: 'Erro:', warning: 'Atenção:', info: 'Informação:', success: 'Sucesso:' } },
221
272
  empty: {
222
273
  'no-data': { title: 'Ainda não há nada aqui', description: 'Os itens aparecem aqui quando forem adicionados.' },
package/src/styles.css CHANGED
@@ -11,7 +11,9 @@
11
11
  @import './components/breadcrumbs/Breadcrumbs.css';
12
12
  @import './components/button/Button.css';
13
13
  @import './components/checkbox/Checkbox.css';
14
+ @import './components/calendar/Calendar.css';
14
15
  @import './components/data-table/DataTable.css';
16
+ @import './components/date-range-field/DateRangeField.css';
15
17
  @import './components/drawer/Drawer.css';
16
18
  @import './components/empty-state/EmptyState.css';
17
19
  @import './components/error-state/ErrorState.css';
@@ -42,6 +44,7 @@
42
44
  @import './components/text-field/TextField.css';
43
45
  @import './components/text/Text.css';
44
46
  @import './components/toast/Toast.css';
47
+ @import './components/tooltip/Tooltip.css';
45
48
  @import './groups/forms-a.css';
46
49
  @import './groups/forms-b.css';
47
50
  @import './groups/overlays-nav.css';