@ostack.tech/ui 0.8.1 → 0.9.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 (65) hide show
  1. package/dist/chunks/{en-BfgHKQwn.js → en-Dem8nwZz.js} +20 -6
  2. package/dist/chunks/en-Dem8nwZz.js.map +1 -0
  3. package/dist/chunks/platformUtils-C3IHCr90.js +6 -0
  4. package/dist/chunks/platformUtils-C3IHCr90.js.map +1 -0
  5. package/dist/locales/en-GB.js +4 -4
  6. package/dist/locales/en-GB.js.map +1 -1
  7. package/dist/locales/en-US.js +4 -4
  8. package/dist/locales/en-US.js.map +1 -1
  9. package/dist/locales/fr-FR.js +49 -8
  10. package/dist/locales/fr-FR.js.map +1 -1
  11. package/dist/locales/pt-PT.js +35 -8
  12. package/dist/locales/pt-PT.js.map +1 -1
  13. package/dist/ostack-ui.css +33 -10
  14. package/dist/ostack-ui.css.map +1 -1
  15. package/dist/ostack-ui.js +809 -356
  16. package/dist/ostack-ui.js.map +1 -1
  17. package/dist/types/components/Alert/Alert.d.ts +1 -1
  18. package/dist/types/components/Button/Button.d.ts +20 -0
  19. package/dist/types/components/Calendar/Calendar.d.ts +9 -6
  20. package/dist/types/components/Calendar/CalendarContext.d.ts +4 -1
  21. package/dist/types/components/Calendar/{CalendarMonthCaption.d.ts → CalendarHeader.d.ts} +1 -1
  22. package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +62 -4
  23. package/dist/types/components/CommandMenu/CommandMenuItem.d.ts +1 -1
  24. package/dist/types/components/DateInput/DateInput.d.ts +10 -17
  25. package/dist/types/components/DateRangeInput/DateRangeInput.d.ts +11 -13
  26. package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
  27. package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  28. package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +1 -1
  29. package/dist/types/components/IconButton/IconButton.d.ts +24 -7
  30. package/dist/types/components/Keybinds/Key.d.ts +9 -0
  31. package/dist/types/components/Keybinds/KeyPress.d.ts +7 -0
  32. package/dist/types/components/Keybinds/Keybind.d.ts +7 -0
  33. package/dist/types/components/Keybinds/Keybinds.d.ts +20 -0
  34. package/dist/types/components/Keybinds/index.d.ts +1 -0
  35. package/dist/types/components/Label/Label.d.ts +0 -2
  36. package/dist/types/components/MenuList/MenuListItem.d.ts +15 -0
  37. package/dist/types/components/Spinner/Spinner.d.ts +2 -8
  38. package/dist/types/components/Tabs/TabList.d.ts +10 -1
  39. package/dist/types/components/Toast/Toast.d.ts +9 -0
  40. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +20 -2
  41. package/dist/types/index.d.ts +1 -0
  42. package/dist/types/locales/en.d.ts +1 -1
  43. package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +10 -6
  44. package/dist/types/utils/intersperse.d.ts +8 -0
  45. package/dist/types/utils/keyboardShortcut.d.ts +21 -8
  46. package/dist/types/utils/parseDateStrict.d.ts +3 -1
  47. package/dist/types/utils/platformUtils.d.ts +2 -0
  48. package/dist/types/utils/useDateTransformer.d.ts +10 -31
  49. package/package.json +2 -2
  50. package/scss/_utils.scss +1 -0
  51. package/scss/components/Button/_Button.scss +5 -0
  52. package/scss/components/Calendar/_Calendar-variables.scss +16 -16
  53. package/scss/components/Calendar/_Calendar.scss +16 -16
  54. package/scss/components/IconButton/_IconButton.scss +5 -0
  55. package/scss/components/Keyboard/_Keyboard-variables.scss +18 -0
  56. package/scss/components/Keyboard/_Keyboard.scss +13 -10
  57. package/scss/components/MenuList/_MenuList.scss +4 -0
  58. package/scss/components/Tooltip/_Tooltip-variables.scss +4 -0
  59. package/scss/components/Tooltip/_Tooltip.scss +1 -0
  60. package/scss/scss/helpers/_visually-hidden.scss +11 -2
  61. package/scss/scss/placeholders/button/_button-variables.scss +4 -0
  62. package/scss/scss/placeholders/button/_button.scss +4 -0
  63. package/scss/scss/placeholders/menu/_menu-variables.scss +92 -1
  64. package/scss/scss/placeholders/menu/_menu.scss +61 -1
  65. package/dist/chunks/en-BfgHKQwn.js.map +0 -1
@@ -1,9 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { I as IS_APPLE } from "./platformUtils-C3IHCr90.js";
2
3
  const en = {
3
4
  AlertDialog: {
4
5
  okText: "OK"
5
6
  },
6
7
  Calendar: {
8
+ monthSelectLabel: "Month",
9
+ yearSelectLabel: "Year",
7
10
  previousMonthLabel: "Previous month",
8
11
  nextMonthLabel: "Next month"
9
12
  },
@@ -47,12 +50,13 @@ const en = {
47
50
  label: "Rows per page"
48
51
  },
49
52
  DateInput: {
50
- calendarButtonLabel: (selectedDate, editable) => editable ? selectedDate ? `Open calendar to change selected date: ${selectedDate}` : "Open calendar to select date" : selectedDate ? `Open calendar with selected date: ${selectedDate}` : "Open calendar with no selected date"
53
+ selectedDateDescription: (date) => `Selected date, ${date}`,
54
+ calendarButtonLabel: "Open calendar"
51
55
  },
52
56
  DateRangeInput: {
53
57
  startInputLabel: "Start date",
54
58
  endInputLabel: "End date",
55
- calendarButtonLabel: (selectedDateRange, editable) => editable ? selectedDateRange ? `Open calendar to change selected date-range: ${selectedDateRange}` : "Open calendar to select date-range" : selectedDateRange ? `Open calendar with selected date-range: ${selectedDateRange}` : "Open calendar with no selected date-range"
59
+ selectedDateRangeDescription: ({ start, end }) => `Selected date range, ${start || "missing start date"} to ${end || "missing end date"}`
56
60
  },
57
61
  ErrorBoundary: {
58
62
  fallbackMessage: /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -63,20 +67,26 @@ const en = {
63
67
  resetButtonLabel: "Retry"
64
68
  },
65
69
  Feedback: {
66
- visuallyHiddenPrefix: (type) => type === "error" ? "Error:" : type === "warning" ? "Warning:" : null
70
+ visuallyHiddenPrefix: (type) => type === "error" ? "Error," : type === "warning" ? "Warning," : null
67
71
  },
68
72
  FeedbackPopover: {
69
73
  label: "Show feedback"
70
74
  },
71
75
  FieldGroupHeader: {
72
- visuallyHiddenCodePrefix: "Group"
76
+ visuallyHiddenCodePrefix: "Section"
73
77
  },
74
78
  Input: {
75
79
  loadingDescription: "Loading…",
76
80
  clearButtonLabel: "Clear"
77
81
  },
82
+ Keybinds: {
83
+ keybindsSeparatorLabel: "or",
84
+ keyPressesSeparatorLabel: "then",
85
+ keyLabels: {
86
+ Meta: IS_APPLE ? void 0 : "Windows Key"
87
+ }
88
+ },
78
89
  Label: {
79
- requiredIconLabel: "Required",
80
90
  helperButtonLabel: "Show help"
81
91
  },
82
92
  NumericInput: {
@@ -93,6 +103,10 @@ const en = {
93
103
  TableHead: {
94
104
  sortByColumnDescription: (columnName, sortDirection) => sortDirection === null ? `Stop sorting table by column “${columnName}”` : `Sort table by column “${columnName}” in ${sortDirection === "asc" ? "ascending" : "descending"} order`
95
105
  },
106
+ TabList: {
107
+ scrollLeftButtonLabel: "Scroll left",
108
+ scrollRightButtonLabel: "Scroll right"
109
+ },
96
110
  ToastProvider: {
97
111
  label: "Notification"
98
112
  },
@@ -103,4 +117,4 @@ const en = {
103
117
  export {
104
118
  en as e
105
119
  };
106
- //# sourceMappingURL=en-BfgHKQwn.js.map
120
+ //# sourceMappingURL=en-Dem8nwZz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-Dem8nwZz.js","sources":["../../src/locales/en.tsx"],"sourcesContent":["import type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { IS_APPLE } from \"../utils/platformUtils.ts\";\n\n/** `en` locale (partial). */\nexport const en: Omit<LocalizationObject, \"languageTag\" | \"dayPickerLocale\"> = {\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n previousMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n },\n CloseButton: {\n label: \"Close\",\n },\n CommandMenu: {\n searchPlaceholder: \"Search…\",\n listLabel: \"Suggestions\",\n loadingLabel: \"Loading…\",\n emptyMessage: \"No results found.\",\n },\n CommandMenuDialog: {\n title: \"Command palette\",\n description: \"Search for a command…\",\n },\n ConfirmDialog: {\n cancelText: \"Cancel\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Field\",\n },\n DataTable: {\n emptyMessage: \"Nothing to show.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Table filter\",\n placeholder: \"Filter\",\n },\n DataTablePagination: {\n rowsRange: (range, total) => (\n <>\n Rows&nbsp;{range}&nbsp;of {total}\n </>\n ),\n previousPageButtonLabel: \"Previous page\",\n nextPageButtonLabel: \"Next page\",\n },\n DataTableRowsPerPage: {\n label: \"Rows per page\",\n },\n DateInput: {\n selectedDateDescription: (date) => `Selected date, ${date}`,\n calendarButtonLabel: \"Open calendar\",\n },\n DateRangeInput: {\n startInputLabel: \"Start date\",\n endInputLabel: \"End date\",\n selectedDateRangeDescription: ({ start, end }) =>\n `Selected date range, ${start || \"missing start date\"} to ${\n end || \"missing end date\"\n }`,\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Something went wrong.\n <br />\n Press the button on the right to try again. If the problem persists,\n please try again later.\n </>\n ),\n resetButtonLabel: \"Retry\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Error,\" : type === \"warning\" ? \"Warning,\" : null,\n },\n FeedbackPopover: {\n label: \"Show feedback\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Section\",\n },\n Input: {\n loadingDescription: \"Loading…\",\n clearButtonLabel: \"Clear\",\n },\n Keybinds: {\n keybindsSeparatorLabel: \"or\",\n keyPressesSeparatorLabel: \"then\",\n keyLabels: {\n Meta: IS_APPLE ? undefined : \"Windows Key\",\n },\n },\n Label: {\n helperButtonLabel: \"Show help\",\n },\n NumericInput: {\n decimalSeparator: \".\",\n groupingStyle: \"thousand\",\n groupSeparator: \",\",\n },\n Select: {\n optionsLabel: \"Options\",\n },\n TableColumn: {\n helperButtonLabel: \"Show help\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Stop sorting table by column “${columnName}”`\n : `Sort table by column “${columnName}” in ${\n sortDirection === \"asc\" ? \"ascending\" : \"descending\"\n } order`,\n },\n TabList: {\n scrollLeftButtonLabel: \"Scroll left\",\n scrollRightButtonLabel: \"Scroll right\",\n },\n ToastProvider: {\n label: \"Notification\",\n },\n ToastViewport: {\n label: \"Notifications ({hotkey})\",\n },\n};\n"],"names":[],"mappings":";;AAIO,MAAM,KAAkE;AAAA,EAC7E,aAAa;AAAA,IACX,QAAQ;AAAA,EAAA;AAAA,EAEV,UAAU;AAAA,IACR,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAAA,EAEhB,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,aAAa;AAAA,EAAA;AAAA,EAEf,eAAe;AAAA,IACb,YAAY;AAAA,EAAA;AAAA,EAEd,aAAa;AAAA,IACX,sBAAsB;AAAA,EAAA;AAAA,EAExB,WAAW;AAAA,IACT,cAAc;AAAA,EAAA;AAAA,EAEhB,iBAAiB;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,EAAA;AAAA,EAEf,qBAAqB;AAAA,IACnB,WAAW,CAAC,OAAO,UACjB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACW;AAAA,MAAM;AAAA,MAAU;AAAA,IAAA,GAC7B;AAAA,IAEF,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,EAAA;AAAA,EAEvB,sBAAsB;AAAA,IACpB,OAAO;AAAA,EAAA;AAAA,EAET,WAAW;AAAA,IACT,yBAAyB,CAAC,SAAS,kBAAkB,IAAI;AAAA,IACzD,qBAAqB;AAAA,EAA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A,EAET,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAEX;"}
@@ -0,0 +1,6 @@
1
+ const PLATFORM = typeof navigator === "object" ? navigator.platform : "";
2
+ const IS_APPLE = /Mac|iPod|iPhone|iPad/.test(PLATFORM);
3
+ export {
4
+ IS_APPLE as I
5
+ };
6
+ //# sourceMappingURL=platformUtils-C3IHCr90.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformUtils-C3IHCr90.js","sources":["../../src/utils/platformUtils.ts"],"sourcesContent":["export const PLATFORM = typeof navigator === \"object\" ? navigator.platform : \"\";\nexport const IS_APPLE = /Mac|iPod|iPhone|iPad/.test(PLATFORM);\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,OAAO,cAAc,WAAW,UAAU,WAAW;AACtE,MAAM,WAAW,uBAAuB,KAAK,QAAQ;"}
@@ -1,13 +1,13 @@
1
- import { enGB } from "date-fns/locale/en-GB";
2
- import { e as en } from "../chunks/en-BfgHKQwn.js";
1
+ import { enGB } from "react-day-picker/locale";
2
+ import { e as en } from "../chunks/en-Dem8nwZz.js";
3
3
  const locale = {
4
4
  ...en,
5
5
  languageTag: "en-GB",
6
- dateFnsLocale: enGB,
6
+ dayPickerLocale: enGB,
7
7
  DateInput: {
8
8
  ...en.DateInput,
9
9
  placeholder: "day/month/year",
10
- formatDescription: "Enter date in DD/MM/YYYY format"
10
+ formatDescription: "Enter date in format, D D slash M M slash Y Y Y Y."
11
11
  }
12
12
  };
13
13
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"en-GB.js","sources":["../../src/locales/en-GB.tsx"],"sourcesContent":["import { enGB as dateFnsEnGB } from \"date-fns/locale/en-GB\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-GB` locale. */\nexport const locale: LocalizationObject = {\n ...en,\n languageTag: \"en-GB\",\n dateFnsLocale: dateFnsEnGB,\n DateInput: {\n ...en.DateInput,\n placeholder: \"day/month/year\",\n formatDescription: \"Enter date in DD/MM/YYYY format\",\n },\n};\n"],"names":["dateFnsEnGB"],"mappings":";;AAMO,MAAM,SAA6B;AAAA,EACxC,GAAG;AAAA,EACH,aAAa;AAAA,EACb,eAAeA;AAAAA,EACf,WAAW;AAAA,IACT,GAAG,GAAG;AAAA,IACN,aAAa;AAAA,IACb,mBAAmB;AAAA,EAAA;AAEvB;"}
1
+ {"version":3,"file":"en-GB.js","sources":["../../src/locales/en-GB.tsx"],"sourcesContent":["import { enGB as dayPickerEnGB } from \"react-day-picker/locale\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-GB` locale. */\nexport const locale: LocalizationObject = {\n ...en,\n languageTag: \"en-GB\",\n dayPickerLocale: dayPickerEnGB,\n DateInput: {\n ...en.DateInput,\n placeholder: \"day/month/year\",\n formatDescription: \"Enter date in format, D D slash M M slash Y Y Y Y.\",\n },\n};\n"],"names":["dayPickerEnGB"],"mappings":";;AAMO,MAAM,SAA6B;AAAA,EACxC,GAAG;AAAA,EACH,aAAa;AAAA,EACb,iBAAiBA;AAAAA,EACjB,WAAW;AAAA,IACT,GAAG,GAAG;AAAA,IACN,aAAa;AAAA,IACb,mBAAmB;AAAA,EAAA;AAEvB;"}
@@ -1,13 +1,13 @@
1
- import { enUS } from "date-fns/locale/en-US";
2
- import { e as en } from "../chunks/en-BfgHKQwn.js";
1
+ import { enUS } from "react-day-picker/locale";
2
+ import { e as en } from "../chunks/en-Dem8nwZz.js";
3
3
  const locale = {
4
4
  ...en,
5
5
  languageTag: "en-US",
6
- dateFnsLocale: enUS,
6
+ dayPickerLocale: enUS,
7
7
  DateInput: {
8
8
  ...en.DateInput,
9
9
  placeholder: "month/day/year",
10
- formatDescription: "Enter date in MM/DD/YYYY format"
10
+ formatDescription: "Enter date in format, M M slash D D slash Y Y Y Y."
11
11
  }
12
12
  };
13
13
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"en-US.js","sources":["../../src/locales/en-US.tsx"],"sourcesContent":["import { enUS as dateFnsEnUS } from \"date-fns/locale/en-US\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-US` locale. */\nexport const locale: LocalizationObject = {\n ...en,\n languageTag: \"en-US\",\n dateFnsLocale: dateFnsEnUS,\n DateInput: {\n ...en.DateInput,\n placeholder: \"month/day/year\",\n formatDescription: \"Enter date in MM/DD/YYYY format\",\n },\n};\n"],"names":["dateFnsEnUS"],"mappings":";;AAMO,MAAM,SAA6B;AAAA,EACxC,GAAG;AAAA,EACH,aAAa;AAAA,EACb,eAAeA;AAAAA,EACf,WAAW;AAAA,IACT,GAAG,GAAG;AAAA,IACN,aAAa;AAAA,IACb,mBAAmB;AAAA,EAAA;AAEvB;"}
1
+ {"version":3,"file":"en-US.js","sources":["../../src/locales/en-US.tsx"],"sourcesContent":["import { enUS as dayPickerEnUS } from \"react-day-picker/locale\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { en } from \"./en.tsx\";\n\n/** `en-US` locale. */\nexport const locale: LocalizationObject = {\n ...en,\n languageTag: \"en-US\",\n dayPickerLocale: dayPickerEnUS,\n DateInput: {\n ...en.DateInput,\n placeholder: \"month/day/year\",\n formatDescription: \"Enter date in format, M M slash D D slash Y Y Y Y.\",\n },\n};\n"],"names":["dayPickerEnUS"],"mappings":";;AAMO,MAAM,SAA6B;AAAA,EACxC,GAAG;AAAA,EACH,aAAa;AAAA,EACb,iBAAiBA;AAAAA,EACjB,WAAW;AAAA,IACT,GAAG,GAAG;AAAA,IACN,aAAa;AAAA,IACb,mBAAmB;AAAA,EAAA;AAEvB;"}
@@ -1,12 +1,15 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { fr } from "date-fns/locale/fr";
2
+ import { fr } from "react-day-picker/locale";
3
+ import { I as IS_APPLE } from "../chunks/platformUtils-C3IHCr90.js";
3
4
  const locale = {
4
5
  languageTag: "fr-FR",
5
- dateFnsLocale: fr,
6
+ dayPickerLocale: fr,
6
7
  AlertDialog: {
7
8
  okText: "OK"
8
9
  },
9
10
  Calendar: {
11
+ monthSelectLabel: "Mois",
12
+ yearSelectLabel: "Année",
10
13
  previousMonthLabel: "Mois précédent",
11
14
  nextMonthLabel: "Mois suivant"
12
15
  },
@@ -51,13 +54,14 @@ const locale = {
51
54
  },
52
55
  DateInput: {
53
56
  placeholder: "jour/mois/année",
54
- formatDescription: "Saisir la date au format JJ/MM/AAAA",
55
- calendarButtonLabel: (selectedDate, editable) => editable ? selectedDate ? `Ouvrir le calendrier pour modifier la date sélectionnée : ${selectedDate}` : "Ouvrir le calendrier pour sélectionner la date" : selectedDate ? `Ouvrir le calendrier avec la date sélectionnée : ${selectedDate}` : "Ouvrir le calendrier sans la date sélectionnée"
57
+ formatDescription: "Saisir la date au format, J J barre oblique M M barre oblique A A A A.",
58
+ selectedDateDescription: (date) => `Date sélectionnée, ${date}`,
59
+ calendarButtonLabel: "Ouvrir le calendrier"
56
60
  },
57
61
  DateRangeInput: {
58
62
  startInputLabel: "Date de début",
59
63
  endInputLabel: "Date de fin",
60
- calendarButtonLabel: (selectedDateRange, editable) => editable ? selectedDateRange ? `Ouvrir le calendrier pour modifier la plage de dates sélectionnée : ${selectedDateRange}` : "Ouvrir le calendrier pour sélectionner la plage de dates" : selectedDateRange ? `Ouvrir le calendrier avec la plage de dates sélectionnée : ${selectedDateRange}` : "Ouvrir le calendrier sans plage de dates sélectionnée"
64
+ selectedDateRangeDescription: ({ start, end }) => `Période sélectionnée, ${start || "date de début manquante"} au ${end || "date de fin manquante"}`
61
65
  },
62
66
  ErrorBoundary: {
63
67
  fallbackMessage: /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -68,22 +72,55 @@ const locale = {
68
72
  resetButtonLabel: "Réessayer"
69
73
  },
70
74
  Feedback: {
71
- visuallyHiddenPrefix: (type) => type === "error" ? "Erreur :" : type === "warning" ? "Alerte :" : null
75
+ visuallyHiddenPrefix: (type) => type === "error" ? "Erreur," : type === "warning" ? "Alerte," : null
72
76
  },
73
77
  FeedbackPopover: {
74
78
  label: "Afficher les observations"
75
79
  },
76
80
  FieldGroupHeader: {
77
- visuallyHiddenCodePrefix: "Groupe"
81
+ visuallyHiddenCodePrefix: "Section"
78
82
  },
79
83
  Input: {
80
84
  loadingDescription: "Chargement…",
81
85
  clearButtonLabel: "Effacer"
82
86
  },
83
87
  Label: {
84
- requiredIconLabel: "Obligatoire",
85
88
  helperButtonLabel: "Afficher l’aide"
86
89
  },
90
+ Keybinds: {
91
+ keybindsSeparatorLabel: "ou",
92
+ keyPressesSeparatorLabel: "puis",
93
+ keySymbols: {
94
+ Shift: IS_APPLE ? void 0 : "Maj",
95
+ CapsLock: IS_APPLE ? void 0 : "Verr. maj.",
96
+ Space: "Espace",
97
+ Home: "Début",
98
+ End: "Fin",
99
+ PageUp: "Pg. pr",
100
+ PageDown: "Pg. su",
101
+ Escape: "Échap",
102
+ Delete: IS_APPLE ? void 0 : "Suppr"
103
+ },
104
+ keyLabels: {
105
+ Control: "Contrôle",
106
+ Shift: "Majuscule",
107
+ Meta: IS_APPLE ? "Commande" : "Touche Windows",
108
+ CapsLock: "Verrouillage majuscule",
109
+ Space: "Espace",
110
+ ArrowUp: "Haut",
111
+ ArrowDown: "Bas",
112
+ ArrowLeft: "Gauche",
113
+ ArrowRight: "Droite",
114
+ Enter: IS_APPLE ? "Retour" : "Entrée",
115
+ Escape: "Échappement",
116
+ Backspace: "Retour arrière",
117
+ Delete: "Supprimer",
118
+ Home: "Début",
119
+ End: "Fin",
120
+ PageUp: "Page précédente",
121
+ PageDown: "Page suivante"
122
+ }
123
+ },
87
124
  NumericInput: {
88
125
  decimalSeparator: ",",
89
126
  groupingStyle: "thousand",
@@ -98,6 +135,10 @@ const locale = {
98
135
  TableHead: {
99
136
  sortByColumnDescription: (columnName, sortDirection) => sortDirection === null ? `Arrêter le tri du tableau par colonne « ${columnName} »` : `Trier le tableau par colonne « ${columnName} » par ordre ${sortDirection === "asc" ? "croissant" : "décroissant"}`
100
137
  },
138
+ TabList: {
139
+ scrollLeftButtonLabel: "Défiler à gauche",
140
+ scrollRightButtonLabel: "Défiler à droite"
141
+ },
101
142
  ToastProvider: {
102
143
  label: "Notification"
103
144
  },
@@ -1 +1 @@
1
- {"version":3,"file":"fr-FR.js","sources":["../../src/locales/fr-FR.tsx"],"sourcesContent":["import { fr as dateFnsFr } from \"date-fns/locale/fr\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `fr-FR` locale. */\nexport const locale: LocalizationObject = {\n languageTag: \"fr-FR\",\n dateFnsLocale: dateFnsFr,\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n previousMonthLabel: \"Mois précédent\",\n nextMonthLabel: \"Mois suivant\",\n },\n CloseButton: {\n label: \"Fermer\",\n },\n CommandMenu: {\n searchPlaceholder: \"Rechercher…\",\n listLabel: \"Suggestions\",\n loadingLabel: \"Chargement…\",\n emptyMessage: \"Aucun résultat trouvé.\",\n },\n CommandMenuDialog: {\n title: \"Palette de commandes\",\n description: \"Rechercher une commande…\",\n },\n ConfirmDialog: {\n cancelText: \"Annuler\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Champ\",\n },\n DataTable: {\n emptyMessage: \"Rien à afficher.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Tableau filtre\",\n placeholder: \"Filtre\",\n },\n DataTablePagination: {\n rowsRange: (range, total) => (\n <>\n Lignes&nbsp;{range}&nbsp;sur {total}\n </>\n ),\n previousPageButtonLabel: \"Page précédente\",\n nextPageButtonLabel: \"Page suivante\",\n },\n DataTableRowsPerPage: {\n label: \"Lignes par page\",\n },\n DateInput: {\n placeholder: \"jour/mois/année\",\n formatDescription: \"Saisir la date au format JJ/MM/AAAA\",\n calendarButtonLabel: (selectedDate, editable) =>\n editable\n ? selectedDate\n ? `Ouvrir le calendrier pour modifier la date sélectionnée\\u202F: ${selectedDate}`\n : \"Ouvrir le calendrier pour sélectionner la date\"\n : selectedDate\n ? `Ouvrir le calendrier avec la date sélectionnée\\u202F: ${selectedDate}`\n : \"Ouvrir le calendrier sans la date sélectionnée\",\n },\n DateRangeInput: {\n startInputLabel: \"Date de début\",\n endInputLabel: \"Date de fin\",\n calendarButtonLabel: (selectedDateRange, editable) =>\n editable\n ? selectedDateRange\n ? `Ouvrir le calendrier pour modifier la plage de dates sélectionnée\\u202F: ${selectedDateRange}`\n : \"Ouvrir le calendrier pour sélectionner la plage de dates\"\n : selectedDateRange\n ? `Ouvrir le calendrier avec la plage de dates sélectionnée\\u202F: ${selectedDateRange}`\n : \"Ouvrir le calendrier sans plage de dates sélectionnée\",\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Une erreur s'est produite.\n <br />\n Appuyez sur le bouton à droite pour réessayer. Si le problème persiste,\n réessayez plus tard.\n </>\n ),\n resetButtonLabel: \"Réessayer\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\"\n ? \"Erreur\\u202F:\"\n : type === \"warning\"\n ? \"Alerte\\u202F:\"\n : null,\n },\n FeedbackPopover: {\n label: \"Afficher les observations\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Groupe\",\n },\n Input: {\n loadingDescription: \"Chargement…\",\n clearButtonLabel: \"Effacer\",\n },\n Label: {\n requiredIconLabel: \"Obligatoire\",\n helperButtonLabel: \"Afficher l’aide\",\n },\n NumericInput: {\n decimalSeparator: \",\",\n groupingStyle: \"thousand\",\n groupSeparator: \"\\u00A0\",\n },\n Select: {\n optionsLabel: \"Options\",\n },\n TableColumn: {\n helperButtonLabel: \"Afficher l’aide\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Arrêter le tri du tableau par colonne «\\u202F${columnName}\\u202F»`\n : `Trier le tableau par colonne «\\u202F${columnName}\\u202F» par ordre ${\n sortDirection === \"asc\" ? \"croissant\" : \"décroissant\"\n }`,\n },\n ToastProvider: {\n label: \"Notification\",\n },\n ToastViewport: {\n label: \"Notifications ({hotkey})\",\n },\n};\n"],"names":["dateFnsFr"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,aAAa;AAAA,EACb,eAAeA;AAAAA,EACf,aAAa;AAAA,IACX,QAAQ;AAAA,EAAA;AAAA,EAEV,UAAU;AAAA,IACR,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAAA,EAEhB,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,aAAa;AAAA,EAAA;AAAA,EAEf,eAAe;AAAA,IACb,YAAY;AAAA,EAAA;AAAA,EAEd,aAAa;AAAA,IACX,sBAAsB;AAAA,EAAA;AAAA,EAExB,WAAW;AAAA,IACT,cAAc;AAAA,EAAA;AAAA,EAEhB,iBAAiB;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,EAAA;AAAA,EAEf,qBAAqB;AAAA,IACnB,WAAW,CAAC,OAAO,UACjB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACa;AAAA,MAAM;AAAA,MAAW;AAAA,IAAA,GAChC;AAAA,IAEF,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,EAAA;AAAA,EAEvB,sBAAsB;AAAA,IACpB,OAAO;AAAA,EAAA;AAAA,EAET,WAAW;AAAA,IACT,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,qBAAqB,CAAC,cAAc,aAClC,WACI,eACE,6DAAkE,YAAY,KAC9E,mDACF,eACE,oDAAyD,YAAY,KACrE;AAAA,EAAA;AAAA,EAEV,gBAAgB;AAAA,IACd,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,qBAAqB,CAAC,mBAAmB,aACvC,WACI,oBACE,uEAA4E,iBAAiB,KAC7F,6DACF,oBACE,8DAAmE,iBAAiB,KACpF;AAAA,EAAA;AAAA,EAEV,eAAe;AAAA,IACb,iBACE,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,MAAE;AAAA,IAAA,GAGR;AAAA,IAEF,kBAAkB;AAAA,EAAA;AAAA,EAEpB,UAAU;AAAA,IACR,sBAAsB,CAAC,SACrB,SAAS,UACL,aACA,SAAS,YACP,aACA;AAAA,EAAA;AAAA,EAEV,iBAAiB;AAAA,IACf,OAAO;AAAA,EAAA;AAAA,EAET,kBAAkB;AAAA,IAChB,0BAA0B;AAAA,EAAA;AAAA,EAE5B,OAAO;AAAA,IACL,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,EAAA;AAAA,EAEpB,OAAO;AAAA,IACL,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,EAAA;AAAA,EAErB,cAAc;AAAA,IACZ,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,gBAAgB;AAAA,EAAA;AAAA,EAElB,QAAQ;AAAA,IACN,cAAc;AAAA,EAAA;AAAA,EAEhB,aAAa;AAAA,IACX,mBAAmB;AAAA,EAAA;AAAA,EAErB,WAAW;AAAA,IACT,yBAAyB,CAAC,YAAY,kBACpC,kBAAkB,OACd,2CAAgD,UAAU,OAC1D,kCAAuC,UAAU,gBAC/C,kBAAkB,QAAQ,cAAc,aAC1C;AAAA,EAAA;AAAA,EAER,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAAA,EAET,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAEX;"}
1
+ {"version":3,"file":"fr-FR.js","sources":["../../src/locales/fr-FR.tsx"],"sourcesContent":["import { fr as dayPickerFr } from \"react-day-picker/locale\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { IS_APPLE } from \"../utils/platformUtils.ts\";\n\n/** `fr-FR` locale. */\nexport const locale: LocalizationObject = {\n languageTag: \"fr-FR\",\n dayPickerLocale: dayPickerFr,\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n monthSelectLabel: \"Mois\",\n yearSelectLabel: \"Année\",\n previousMonthLabel: \"Mois précédent\",\n nextMonthLabel: \"Mois suivant\",\n },\n CloseButton: {\n label: \"Fermer\",\n },\n CommandMenu: {\n searchPlaceholder: \"Rechercher…\",\n listLabel: \"Suggestions\",\n loadingLabel: \"Chargement…\",\n emptyMessage: \"Aucun résultat trouvé.\",\n },\n CommandMenuDialog: {\n title: \"Palette de commandes\",\n description: \"Rechercher une commande…\",\n },\n ConfirmDialog: {\n cancelText: \"Annuler\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Champ\",\n },\n DataTable: {\n emptyMessage: \"Rien à afficher.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Tableau filtre\",\n placeholder: \"Filtre\",\n },\n DataTablePagination: {\n rowsRange: (range, total) => (\n <>\n Lignes&nbsp;{range}&nbsp;sur {total}\n </>\n ),\n previousPageButtonLabel: \"Page précédente\",\n nextPageButtonLabel: \"Page suivante\",\n },\n DataTableRowsPerPage: {\n label: \"Lignes par page\",\n },\n DateInput: {\n placeholder: \"jour/mois/année\",\n formatDescription:\n \"Saisir la date au format, J J barre oblique M M barre oblique A A A A.\",\n selectedDateDescription: (date) => `Date sélectionnée, ${date}`,\n calendarButtonLabel: \"Ouvrir le calendrier\",\n },\n DateRangeInput: {\n startInputLabel: \"Date de début\",\n endInputLabel: \"Date de fin\",\n selectedDateRangeDescription: ({ start, end }) =>\n `Période sélectionnée, ${start || \"date de début manquante\"} au ${\n end || \"date de fin manquante\"\n }`,\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Une erreur s'est produite.\n <br />\n Appuyez sur le bouton à droite pour réessayer. Si le problème persiste,\n réessayez plus tard.\n </>\n ),\n resetButtonLabel: \"Réessayer\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Erreur,\" : type === \"warning\" ? \"Alerte,\" : null,\n },\n FeedbackPopover: {\n label: \"Afficher les observations\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Section\",\n },\n Input: {\n loadingDescription: \"Chargement…\",\n clearButtonLabel: \"Effacer\",\n },\n Label: {\n helperButtonLabel: \"Afficher l’aide\",\n },\n Keybinds: {\n keybindsSeparatorLabel: \"ou\",\n keyPressesSeparatorLabel: \"puis\",\n keySymbols: {\n Shift: IS_APPLE ? undefined : \"Maj\",\n CapsLock: IS_APPLE ? undefined : \"Verr. maj.\",\n Space: \"Espace\",\n Home: \"Début\",\n End: \"Fin\",\n PageUp: \"Pg. pr\",\n PageDown: \"Pg. su\",\n Escape: \"Échap\",\n Delete: IS_APPLE ? undefined : \"Suppr\",\n },\n keyLabels: {\n Control: \"Contrôle\",\n Shift: \"Majuscule\",\n Meta: IS_APPLE ? \"Commande\" : \"Touche Windows\",\n CapsLock: \"Verrouillage majuscule\",\n Space: \"Espace\",\n ArrowUp: \"Haut\",\n ArrowDown: \"Bas\",\n ArrowLeft: \"Gauche\",\n ArrowRight: \"Droite\",\n Enter: IS_APPLE ? \"Retour\" : \"Entrée\",\n Escape: \"Échappement\",\n Backspace: \"Retour arrière\",\n Delete: \"Supprimer\",\n Home: \"Début\",\n End: \"Fin\",\n PageUp: \"Page précédente\",\n PageDown: \"Page suivante\",\n },\n },\n NumericInput: {\n decimalSeparator: \",\",\n groupingStyle: \"thousand\",\n groupSeparator: \"\\u00A0\",\n },\n Select: {\n optionsLabel: \"Options\",\n },\n TableColumn: {\n helperButtonLabel: \"Afficher l’aide\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Arrêter le tri du tableau par colonne «\\u202F${columnName}\\u202F»`\n : `Trier le tableau par colonne «\\u202F${columnName}\\u202F» par ordre ${\n sortDirection === \"asc\" ? \"croissant\" : \"décroissant\"\n }`,\n },\n TabList: {\n scrollLeftButtonLabel: \"Défiler à gauche\",\n scrollRightButtonLabel: \"Défiler à droite\",\n },\n ToastProvider: {\n label: \"Notification\",\n },\n ToastViewport: {\n label: \"Notifications ({hotkey})\",\n },\n};\n"],"names":["dayPickerFr"],"mappings":";;;AAMO,MAAM,SAA6B;AAAA,EACxC,aAAa;AAAA,EACb,iBAAiBA;AAAAA,EACjB,aAAa;AAAA,IACX,QAAQ;AAAA,EAAA;AAAA,EAEV,UAAU;AAAA,IACR,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAAA,EAEhB,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,aAAa;AAAA,EAAA;AAAA,EAEf,eAAe;AAAA,IACb,YAAY;AAAA,EAAA;AAAA,EAEd,aAAa;AAAA,IACX,sBAAsB;AAAA,EAAA;AAAA,EAExB,WAAW;AAAA,IACT,cAAc;AAAA,EAAA;AAAA,EAEhB,iBAAiB;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,EAAA;AAAA,EAEf,qBAAqB;AAAA,IACnB,WAAW,CAAC,OAAO,UACjB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACa;AAAA,MAAM;AAAA,MAAW;AAAA,IAAA,GAChC;AAAA,IAEF,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,EAAA;AAAA,EAEvB,sBAAsB;AAAA,IACpB,OAAO;AAAA,EAAA;AAAA,EAET,WAAW;AAAA,IACT,aAAa;AAAA,IACb,mBACE;AAAA,IACF,yBAAyB,CAAC,SAAS,sBAAsB,IAAI;AAAA,IAC7D,qBAAqB;AAAA,EAAA;AAAA,EAEvB,gBAAgB;AAAA,IACd,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,8BAA8B,CAAC,EAAE,OAAO,UACtC,yBAA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Ae;AAAA,IACf,gBAAgB;AAAA,EAAA;AAAA,EAElB,QAAQ;AAAA,IACN,cAAc;AAAA,EAAA;AAAA,EAEhB,aAAa;AAAA,IACX,mBAAmB;AAAA,EAAA;AAAA,EAErB,WAAW;AAAA,IACT,yBAAyB,CAAC,YAAY,kBACpC,kBAAkB,OACd,2CAAgD,UAAU,OAC1D,kCAAuC,UAAU,gBAC/C,kBAAkB,QAAQ,cAAc,aAC1C;AAAA,EAAA;AAAA,EAER,SAAS;AAAA,IACP,uBAAuB;AAAA,IACvB,wBAAwB;AAAA,EAAA;AAAA,EAE1B,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAAA,EAET,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAEX;"}
@@ -1,12 +1,15 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { pt } from "date-fns/locale/pt";
2
+ import { pt } from "react-day-picker/locale";
3
+ import { I as IS_APPLE } from "../chunks/platformUtils-C3IHCr90.js";
3
4
  const locale = {
4
5
  languageTag: "pt-PT",
5
- dateFnsLocale: pt,
6
+ dayPickerLocale: pt,
6
7
  AlertDialog: {
7
8
  okText: "OK"
8
9
  },
9
10
  Calendar: {
11
+ monthSelectLabel: "Mês",
12
+ yearSelectLabel: "Ano",
10
13
  previousMonthLabel: "Mês anterior",
11
14
  nextMonthLabel: "Próximo mês"
12
15
  },
@@ -51,13 +54,14 @@ const locale = {
51
54
  },
52
55
  DateInput: {
53
56
  placeholder: "dia/mês/ano",
54
- formatDescription: "Introduza a data no formato DD/MM/AAAA",
55
- calendarButtonLabel: (selectedDate, editable) => editable ? selectedDate ? `Abrir calendário para alterar data selecionada: ${selectedDate}` : "Abrir calendário para selecionar data" : selectedDate ? `Abrir calendário com data selecionada: ${selectedDate}` : "Abrir calendário sem data selecionada"
57
+ formatDescription: "Introduza a data no formato, D D barra M M barra A A A A.",
58
+ selectedDateDescription: (date) => `Data selecionada, ${date}`,
59
+ calendarButtonLabel: "Abrir calendário"
56
60
  },
57
61
  DateRangeInput: {
58
62
  startInputLabel: "Data de início",
59
63
  endInputLabel: "Data de fim",
60
- calendarButtonLabel: (selectedDateRange, editable) => editable ? selectedDateRange ? `Abrir calendário para alterar intervalo de datas selecionado: ${selectedDateRange}` : "Abrir calendário para selecionar intervalo de datas" : selectedDateRange ? `Abrir calendário com intervalo de datas selecionado: ${selectedDateRange}` : "Abrir calendário sem intervalo de datas selecionado"
64
+ selectedDateRangeDescription: ({ start, end }) => `Período selecionado, ${start || "data de início ausente"} a ${end || "data de fim ausente"}`
61
65
  },
62
66
  ErrorBoundary: {
63
67
  fallbackMessage: /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -68,20 +72,39 @@ const locale = {
68
72
  resetButtonLabel: "Tentar novamente"
69
73
  },
70
74
  Feedback: {
71
- visuallyHiddenPrefix: (type) => type === "error" ? "Erro:" : type === "warning" ? "Alerta:" : null
75
+ visuallyHiddenPrefix: (type) => type === "error" ? "Erro," : type === "warning" ? "Alerta," : null
72
76
  },
73
77
  FeedbackPopover: {
74
78
  label: "Mostrar observações"
75
79
  },
76
80
  FieldGroupHeader: {
77
- visuallyHiddenCodePrefix: "Grupo"
81
+ visuallyHiddenCodePrefix: "Secção"
78
82
  },
79
83
  Input: {
80
84
  loadingDescription: "A carregar…",
81
85
  clearButtonLabel: "Limpar"
82
86
  },
87
+ Keybinds: {
88
+ keybindsSeparatorLabel: "ou",
89
+ keyPressesSeparatorLabel: "seguido de",
90
+ keySymbols: {
91
+ Space: "Espaço"
92
+ },
93
+ keyLabels: {
94
+ Meta: IS_APPLE ? void 0 : "Tecla Windows",
95
+ Space: "Espaço",
96
+ ArrowUp: "Seta para cima",
97
+ ArrowDown: "Seta para baixo",
98
+ ArrowLeft: "Seta para esquerda",
99
+ ArrowRight: "Seta para direita",
100
+ Enter: IS_APPLE ? "Retorno" : void 0,
101
+ Home: "Início",
102
+ End: "Fim",
103
+ PageUp: "Página para cima",
104
+ PageDown: "Página para baixo"
105
+ }
106
+ },
83
107
  Label: {
84
- requiredIconLabel: "Requerido",
85
108
  helperButtonLabel: "Mostrar ajuda"
86
109
  },
87
110
  NumericInput: {
@@ -98,6 +121,10 @@ const locale = {
98
121
  TableHead: {
99
122
  sortByColumnDescription: (columnName, sortDirection) => sortDirection === null ? `Deixar de ordenar tabela pela coluna “${columnName}”` : `Ordenar tabela pela coluna “${columnName}” em ordem ${sortDirection === "asc" ? "ascendente" : "descendente"}`
100
123
  },
124
+ TabList: {
125
+ scrollLeftButtonLabel: "Deslocar para a esquerda",
126
+ scrollRightButtonLabel: "Deslocar para a direita"
127
+ },
101
128
  ToastProvider: {
102
129
  label: "Notificação"
103
130
  },
@@ -1 +1 @@
1
- {"version":3,"file":"pt-PT.js","sources":["../../src/locales/pt-PT.tsx"],"sourcesContent":["import { pt as dateFnsPt } from \"date-fns/locale/pt\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\n\n/** `pt-PT` locale. */\nexport const locale: LocalizationObject = {\n languageTag: \"pt-PT\",\n dateFnsLocale: dateFnsPt,\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n previousMonthLabel: \"Mês anterior\",\n nextMonthLabel: \"Próximo mês\",\n },\n CloseButton: {\n label: \"Fechar\",\n },\n CommandMenu: {\n searchPlaceholder: \"Pesquisar…\",\n listLabel: \"Sugestões\",\n loadingLabel: \"A carregar…\",\n emptyMessage: \"Nenhum resultado encontrado.\",\n },\n CommandMenuDialog: {\n title: \"Paleta de comandos\",\n description: \"Pesquise por um comando…\",\n },\n ConfirmDialog: {\n cancelText: \"Cancelar\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Campo\",\n },\n DataTable: {\n emptyMessage: \"Nada a mostrar.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Filtro da tabela\",\n placeholder: \"Filtrar\",\n },\n DataTablePagination: {\n rowsRange: (range, total) => (\n <>\n Linhas&nbsp;{range}&nbsp;de {total}\n </>\n ),\n previousPageButtonLabel: \"Página anterior\",\n nextPageButtonLabel: \"Próxima página\",\n },\n DataTableRowsPerPage: {\n label: \"Linhas por página\",\n },\n DateInput: {\n placeholder: \"dia/mês/ano\",\n formatDescription: \"Introduza a data no formato DD/MM/AAAA\",\n calendarButtonLabel: (selectedDate, editable) =>\n editable\n ? selectedDate\n ? `Abrir calendário para alterar data selecionada: ${selectedDate}`\n : \"Abrir calendário para selecionar data\"\n : selectedDate\n ? `Abrir calendário com data selecionada: ${selectedDate}`\n : \"Abrir calendário sem data selecionada\",\n },\n DateRangeInput: {\n startInputLabel: \"Data de início\",\n endInputLabel: \"Data de fim\",\n calendarButtonLabel: (selectedDateRange, editable) =>\n editable\n ? selectedDateRange\n ? `Abrir calendário para alterar intervalo de datas selecionado: ${selectedDateRange}`\n : \"Abrir calendário para selecionar intervalo de datas\"\n : selectedDateRange\n ? `Abrir calendário com intervalo de datas selecionado: ${selectedDateRange}`\n : \"Abrir calendário sem intervalo de datas selecionado\",\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Algo correu mal.\n <br />\n Pressione o botão à direita para tentar novamente. Se o problema\n persistir, volte a tentar mais tarde.\n </>\n ),\n resetButtonLabel: \"Tentar novamente\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Erro:\" : type === \"warning\" ? \"Alerta:\" : null,\n },\n FeedbackPopover: {\n label: \"Mostrar observações\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Grupo\",\n },\n Input: {\n loadingDescription: \"A carregar…\",\n clearButtonLabel: \"Limpar\",\n },\n Label: {\n requiredIconLabel: \"Requerido\",\n helperButtonLabel: \"Mostrar ajuda\",\n },\n NumericInput: {\n decimalSeparator: \",\",\n groupingStyle: \"thousand\",\n groupSeparator: \"\\u00A0\",\n },\n Select: {\n optionsLabel: \"Opções\",\n },\n TableColumn: {\n helperButtonLabel: \"Mostrar ajuda\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Deixar de ordenar tabela pela coluna “${columnName}”`\n : `Ordenar tabela pela coluna “${columnName}” em ordem ${\n sortDirection === \"asc\" ? \"ascendente\" : \"descendente\"\n }`,\n },\n ToastProvider: {\n label: \"Notificação\",\n },\n ToastViewport: {\n label: \"Notificações ({hotkey})\",\n },\n};\n"],"names":["dateFnsPt"],"mappings":";;AAKO,MAAM,SAA6B;AAAA,EACxC,aAAa;AAAA,EACb,eAAeA;AAAAA,EACf,aAAa;AAAA,IACX,QAAQ;AAAA,EAAA;AAAA,EAEV,UAAU;AAAA,IACR,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,cAAc;AAAA,EAAA;AAAA,EAEhB,mBAAmB;AAAA,IACjB,OAAO;AAAA,IACP,aAAa;AAAA,EAAA;AAAA,EAEf,eAAe;AAAA,IACb,YAAY;AAAA,EAAA;AAAA,EAEd,aAAa;AAAA,IACX,sBAAsB;AAAA,EAAA;AAAA,EAExB,WAAW;AAAA,IACT,cAAc;AAAA,EAAA;AAAA,EAEhB,iBAAiB;AAAA,IACf,cAAc;AAAA,IACd,aAAa;AAAA,EAAA;AAAA,EAEf,qBAAqB;AAAA,IACnB,WAAW,CAAC,OAAO,UACjB,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACa;AAAA,MAAM;AAAA,MAAU;AAAA,IAAA,GAC/B;AAAA,IAEF,yBAAyB;AAAA,IACzB,qBAAqB;AAAA,EAAA;AAAA,EAEvB,sBAAsB;AAAA,IACpB,OAAO;AAAA,EAAA;AAAA,EAET,WAAW;AAAA,IACT,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,qBAAqB,CAAC,cAAc,aAClC,WACI,eACE,mDAAmD,YAAY,KAC/D,0CACF,eACE,0CAA0C,YAAY,KACtD;AAAA,EAAA;AAAA,EAEV,gBAAgB;AAAA,IACd,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,qBAAqB,CAAC,mBAAmB,aACvC,WACI,oBACE,iEAAiE,iBAAiB,KAClF,wDACF,oBACE,wDAAwD,iBAAiB,KACzE;AAAA,EAAA;AAAA,EAEV,eAAe;AAAA,IACb,iBACE,qBAAA,UAAA,EAAE,UAAA;AAAA,MAAA;AAAA,0BAEC,MAAA,EAAG;AAAA,MAAE;AAAA,IAAA,GAGR;AAAA,IAEF,kBAAkB;AAAA,EAAA;AAAA,EAEpB,UAAU;AAAA,IACR,sBAAsB,CAAC,SACrB,SAAS,UAAU,UAAU,SAAS,YAAY,YAAY;AAAA,EAAA;AAAA,EAElE,iBAAiB;AAAA,IACf,OAAO;AAAA,EAAA;AAAA,EAET,kBAAkB;AAAA,IAChB,0BAA0B;AAAA,EAAA;AAAA,EAE5B,OAAO;AAAA,IACL,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,EAAA;AAAA,EAEpB,OAAO;AAAA,IACL,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,EAAA;AAAA,EAErB,cAAc;AAAA,IACZ,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,gBAAgB;AAAA,EAAA;AAAA,EAElB,QAAQ;AAAA,IACN,cAAc;AAAA,EAAA;AAAA,EAEhB,aAAa;AAAA,IACX,mBAAmB;AAAA,EAAA;AAAA,EAErB,WAAW;AAAA,IACT,yBAAyB,CAAC,YAAY,kBACpC,kBAAkB,OACd,yCAAyC,UAAU,MACnD,+BAA+B,UAAU,cACvC,kBAAkB,QAAQ,eAAe,aAC3C;AAAA,EAAA;AAAA,EAER,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAAA,EAET,eAAe;AAAA,IACb,OAAO;AAAA,EAAA;AAEX;"}
1
+ {"version":3,"file":"pt-PT.js","sources":["../../src/locales/pt-PT.tsx"],"sourcesContent":["import { pt as dayPickerPt } from \"react-day-picker/locale\";\n\nimport type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { IS_APPLE } from \"../utils/platformUtils.ts\";\n\n/** `pt-PT` locale. */\nexport const locale: LocalizationObject = {\n languageTag: \"pt-PT\",\n dayPickerLocale: dayPickerPt,\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n monthSelectLabel: \"Mês\",\n yearSelectLabel: \"Ano\",\n previousMonthLabel: \"Mês anterior\",\n nextMonthLabel: \"Próximo mês\",\n },\n CloseButton: {\n label: \"Fechar\",\n },\n CommandMenu: {\n searchPlaceholder: \"Pesquisar…\",\n listLabel: \"Sugestões\",\n loadingLabel: \"A carregar…\",\n emptyMessage: \"Nenhum resultado encontrado.\",\n },\n CommandMenuDialog: {\n title: \"Paleta de comandos\",\n description: \"Pesquise por um comando…\",\n },\n ConfirmDialog: {\n cancelText: \"Cancelar\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Campo\",\n },\n DataTable: {\n emptyMessage: \"Nada a mostrar.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Filtro da tabela\",\n placeholder: \"Filtrar\",\n },\n DataTablePagination: {\n rowsRange: (range, total) => (\n <>\n Linhas&nbsp;{range}&nbsp;de {total}\n </>\n ),\n previousPageButtonLabel: \"Página anterior\",\n nextPageButtonLabel: \"Próxima página\",\n },\n DataTableRowsPerPage: {\n label: \"Linhas por página\",\n },\n DateInput: {\n placeholder: \"dia/mês/ano\",\n formatDescription:\n \"Introduza a data no formato, D D barra M M barra A A A A.\",\n selectedDateDescription: (date) => `Data selecionada, ${date}`,\n calendarButtonLabel: \"Abrir calendário\",\n },\n DateRangeInput: {\n startInputLabel: \"Data de início\",\n endInputLabel: \"Data de fim\",\n selectedDateRangeDescription: ({ start, end }) =>\n `Período selecionado, ${start || \"data de início ausente\"} a ${\n end || \"data de fim ausente\"\n }`,\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Algo correu mal.\n <br />\n Pressione o botão à direita para tentar novamente. Se o problema\n persistir, volte a tentar mais tarde.\n </>\n ),\n resetButtonLabel: \"Tentar novamente\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Erro,\" : type === \"warning\" ? \"Alerta,\" : null,\n },\n FeedbackPopover: {\n label: \"Mostrar observações\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Secção\",\n },\n Input: {\n loadingDescription: \"A carregar…\",\n clearButtonLabel: \"Limpar\",\n },\n Keybinds: {\n keybindsSeparatorLabel: \"ou\",\n keyPressesSeparatorLabel: \"seguido de\",\n keySymbols: {\n Space: \"Espaço\",\n },\n keyLabels: {\n Meta: IS_APPLE ? undefined : \"Tecla Windows\",\n Space: \"Espaço\",\n ArrowUp: \"Seta para cima\",\n ArrowDown: \"Seta para baixo\",\n ArrowLeft: \"Seta para esquerda\",\n ArrowRight: \"Seta para direita\",\n Enter: IS_APPLE ? \"Retorno\" : undefined,\n Home: \"Início\",\n End: \"Fim\",\n PageUp: \"Página para cima\",\n PageDown: \"Página para baixo\",\n },\n },\n Label: {\n helperButtonLabel: \"Mostrar ajuda\",\n },\n NumericInput: {\n decimalSeparator: \",\",\n groupingStyle: \"thousand\",\n groupSeparator: \"\\u00A0\",\n },\n Select: {\n optionsLabel: \"Opções\",\n },\n TableColumn: {\n helperButtonLabel: \"Mostrar ajuda\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Deixar de ordenar tabela pela coluna “${columnName}”`\n : `Ordenar tabela pela coluna “${columnName}” em ordem ${\n sortDirection === \"asc\" ? \"ascendente\" : \"descendente\"\n }`,\n },\n TabList: {\n scrollLeftButtonLabel: \"Deslocar para a esquerda\",\n scrollRightButtonLabel: \"Deslocar para a direita\",\n },\n ToastProvider: {\n label: \"Notificação\",\n },\n ToastViewport: {\n label: \"Notificações ({hotkey})\",\n },\n};\n"],"names":["dayPickerPt"],"mappings":";;;AAMO,MAAM,SAA6B;AAAA,EACxC,aAAa;AAAA,EACb,iBAAiBA;AAAAA,EACjB,a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
@@ -103,7 +103,6 @@
103
103
  }
104
104
  .o-ui-visually-hidden,
105
105
  .o-ui-visually-hidden-focusable:not(:focus):not(:focus-within) {
106
- position: absolute !important;
107
106
  width: 1px !important;
108
107
  height: 1px !important;
109
108
  padding: 0 !important;
@@ -113,6 +112,14 @@
113
112
  white-space: nowrap !important;
114
113
  border: 0 !important;
115
114
  }
115
+ .o-ui-visually-hidden:not(caption),
116
+ .o-ui-visually-hidden-focusable:not(:focus):not(:focus-within):not(caption) {
117
+ position: absolute !important;
118
+ }
119
+ .o-ui-visually-hidden *,
120
+ .o-ui-visually-hidden-focusable:not(:focus):not(:focus-within) * {
121
+ overflow: hidden !important;
122
+ }
116
123
 
117
124
  .o-ui-toast, .o-ui-alert {
118
125
  display: flex;
@@ -273,6 +280,9 @@
273
280
  .o-ui-icon-button--ghost:is(:active, [data-active]):not(:disabled):not([data-disabled]), .o-ui-button--ghost:is(:active, [data-active]):not(:disabled):not([data-disabled]), [aria-haspopup][aria-expanded=true].o-ui-icon-button--ghost, [aria-haspopup][aria-expanded=true].o-ui-button--ghost {
274
281
  --o-ui-button-background-color: var(--o-ui-accent-a4);
275
282
  }
283
+ .o-ui-icon-button__keybinds:not(:first-child), .o-ui-button__keybinds:not(:first-child) {
284
+ margin-top: var(--o-ui-space);
285
+ }
276
286
 
277
287
  .o-ui-button {
278
288
  padding: var(--o-ui-button-padding-y) var(--o-ui-button-padding-x);
@@ -433,7 +443,7 @@
433
443
  .o-ui-calendar__weeks, .o-ui-calendar__footer {
434
444
  border: 0;
435
445
  }
436
- .o-ui-calendar__caption {
446
+ .o-ui-calendar__header {
437
447
  display: flex;
438
448
  align-items: center;
439
449
  justify-content: space-between;
@@ -444,7 +454,7 @@
444
454
  background-color: var(--o-ui-primary-9);
445
455
  color: var(--o-ui-primary-contrast);
446
456
  }
447
- .o-ui-calendar__caption-label {
457
+ .o-ui-calendar__header-label {
448
458
  margin: 0;
449
459
  padding: var(--o-ui-space) calc(var(--o-ui-space) * 2);
450
460
  }
@@ -1172,6 +1182,7 @@ a > .o-ui-code {
1172
1182
  [data-accent].o-ui-menu-list__item-action--solid {
1173
1183
  --o-ui-menu-item-color: var(--o-ui-accent-a11);
1174
1184
  --o-ui-menu-item-icon-color: var(--o-ui-accent-a10);
1185
+ --o-ui-menu-item-keybinds-color: var(--o-ui-accent-10);
1175
1186
  }
1176
1187
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]):is([data-highlighted], [data-state=open], [data-selected=true]) .o-ui-menu-list__item-action--solid:not(:disabled):not([data-disabled=""]):not([data-disabled=true]),
1177
1188
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]) .o-ui-menu-list__item-action--solid:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):hover {
@@ -1186,11 +1197,13 @@ a > .o-ui-code {
1186
1197
  --o-ui-menu-item-color: var(--o-ui-primary-contrast);
1187
1198
  --o-ui-menu-item-focus-outline-offset: 2px;
1188
1199
  --o-ui-menu-item-icon-color: var(--o-ui-primary-contrast);
1200
+ --o-ui-menu-item-keybinds-color: var(--o-ui-primary-contrast);
1189
1201
  }
1190
1202
  .o-ui-menu-list__item[data-state=checked][data-hide-control] [data-accent].o-ui-menu-list__item-action--solid, [data-accent].o-ui-menu-list__item-action--solid:is([data-selected=""], [data-selected=true]) {
1191
1203
  --o-ui-menu-item-background-color: var(--o-ui-accent-a9);
1192
1204
  --o-ui-menu-item-color: var(--o-ui-accent-contrast);
1193
1205
  --o-ui-menu-item-icon-color: var(--o-ui-accent-contrast);
1206
+ --o-ui-menu-item-keybinds-color: var(--o-ui-accent-contrast);
1194
1207
  }
1195
1208
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]):is([data-highlighted], [data-state=open], [data-selected=true]) .o-ui-menu-list__item-action--solid:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):is(.o-ui-menu-list__item[data-state=checked][data-hide-control] .o-ui-menu-list__item-action--solid, .o-ui-menu-list__item-action--solid:is([data-selected=""], [data-selected=true])),
1196
1209
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]) .o-ui-menu-list__item-action--solid:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):is(.o-ui-menu-list__item[data-state=checked][data-hide-control] .o-ui-menu-list__item-action--solid, .o-ui-menu-list__item-action--solid:is([data-selected=""], [data-selected=true])):hover {
@@ -1203,6 +1216,7 @@ a > .o-ui-code {
1203
1216
  [data-accent].o-ui-menu-list__item-action--subtle {
1204
1217
  --o-ui-menu-item-color: var(--o-ui-accent-a11);
1205
1218
  --o-ui-menu-item-icon-color: var(--o-ui-accent-a10);
1219
+ --o-ui-menu-item-keybinds-color: var(--o-ui-accent-11);
1206
1220
  }
1207
1221
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]):is([data-highlighted], [data-state=open], [data-selected=true]) .o-ui-menu-list__item-action--subtle:not(:disabled):not([data-disabled=""]):not([data-disabled=true]),
1208
1222
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]) .o-ui-menu-list__item-action--subtle:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):hover {
@@ -1215,10 +1229,12 @@ a > .o-ui-code {
1215
1229
  .o-ui-menu-list__item[data-state=checked][data-hide-control] .o-ui-menu-list__item-action--subtle, .o-ui-menu-list__item-action--subtle:is([data-selected=""], [data-selected=true]) {
1216
1230
  --o-ui-menu-item-background-color: var(--o-ui-primary-a5);
1217
1231
  --o-ui-menu-item-icon-color: var(--o-ui-neutral-a11);
1232
+ --o-ui-menu-item-keybinds-color: var(--o-ui-neutral-12);
1218
1233
  }
1219
1234
  .o-ui-menu-list__item[data-state=checked][data-hide-control] [data-accent].o-ui-menu-list__item-action--subtle, [data-accent].o-ui-menu-list__item-action--subtle:is([data-selected=""], [data-selected=true]) {
1220
1235
  --o-ui-menu-item-background-color: var(--o-ui-accent-a5);
1221
1236
  --o-ui-menu-item-icon-color: var(--o-ui-accent-a11);
1237
+ --o-ui-menu-item-keybinds-color: var(--o-ui-accent-12);
1222
1238
  }
1223
1239
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]):is([data-highlighted], [data-state=open], [data-selected=true]) .o-ui-menu-list__item-action--subtle:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):is(.o-ui-menu-list__item[data-state=checked][data-hide-control] .o-ui-menu-list__item-action--subtle, .o-ui-menu-list__item-action--subtle:is([data-selected=""], [data-selected=true])),
1224
1240
  .o-ui-menu-list__item:not([data-state=checked][data-hide-control]) .o-ui-menu-list__item-action--subtle:not(:disabled):not([data-disabled=""]):not([data-disabled=true]):is(.o-ui-menu-list__item[data-state=checked][data-hide-control] .o-ui-menu-list__item-action--subtle, .o-ui-menu-list__item-action--subtle:is([data-selected=""], [data-selected=true])):hover {
@@ -1253,6 +1269,12 @@ a > .o-ui-code {
1253
1269
  margin-left: calc(var(--o-ui-space) * 3 + 0.125em);
1254
1270
  margin-right: 0.125em;
1255
1271
  }
1272
+ .o-ui-menu-list__item-keybinds {
1273
+ margin-left: calc(var(--o-ui-space) * 3);
1274
+ font-size: var(--o-ui-font-size-xs);
1275
+ line-height: var(--o-ui-line-height-xs);
1276
+ color: var(--o-ui-menu-item-keybinds-color, var(--o-ui-neutral-11));
1277
+ }
1256
1278
  .o-ui-dropdown-menu__sub-trigger-icon {
1257
1279
  font-size: var(--o-ui-font-size-2xs);
1258
1280
  }
@@ -1263,7 +1285,6 @@ a > .o-ui-code {
1263
1285
  justify-content: center;
1264
1286
  width: 16px;
1265
1287
  height: 16px;
1266
- margin-left: calc(var(--o-ui-space) * 3);
1267
1288
  border-radius: var(--o-ui-border-radius-sm);
1268
1289
  border: 1px solid var(--o-ui-menu-item-icon-color, var(--o-ui-neutral-a10));
1269
1290
  font-size: var(--o-ui-font-size-xs);
@@ -2630,16 +2651,17 @@ a > .o-ui-code {
2630
2651
  }
2631
2652
 
2632
2653
  .o-ui-keyboard {
2633
- padding: 1px var(--o-ui-space) 0;
2634
- border-radius: var(--o-ui-border-radius-xs);
2654
+ padding: 0 0.25em;
2655
+ border-radius: var(--o-ui-border-radius-sm);
2635
2656
  font-family: var(--o-ui-font-family-code);
2636
2657
  font-weight: 400;
2637
2658
  font-size: 0.875em;
2659
+ line-height: 1;
2638
2660
  word-wrap: break-word;
2639
- border: 1px solid #cdced6;
2640
- border-bottom-width: 3px;
2641
- background-color: #f0f0f3;
2642
- color: #60646c;
2661
+ border-width: 1px 1px 2px;
2662
+ border-style: solid;
2663
+ border-color: color-mix(in srgb, currentColor 12.5%, transparent);
2664
+ background-color: color-mix(in srgb, currentColor 6.5%, transparent);
2643
2665
  }
2644
2666
 
2645
2667
  .o-ui-label {
@@ -4249,6 +4271,7 @@ a > .o-ui-code {
4249
4271
  border-radius: var(--o-ui-border-radius-sm);
4250
4272
  font-size: var(--o-ui-font-size-xs);
4251
4273
  line-height: var(--o-ui-line-height-xs);
4274
+ text-align: center;
4252
4275
  background-color: var(--o-ui-neutral-12);
4253
4276
  color: var(--o-ui-neutral-1);
4254
4277
  box-shadow: var(--o-ui-box-shadow-sm);