@danxbot/ui 20.23.3 → 21.0.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 (105) hide show
  1. package/dist/index.js +23583 -22525
  2. package/dist/index.js.map +1 -1
  3. package/dist/pure.js +290 -210
  4. package/dist/pure.js.map +1 -1
  5. package/dist/types/components/AppShell.d.ts +1 -1
  6. package/dist/types/components/Board.d.ts +4 -6
  7. package/dist/types/components/Combobox.d.ts +2 -1
  8. package/dist/types/components/CommandPalette.d.ts +2 -0
  9. package/dist/types/components/DateField.d.ts +2 -2
  10. package/dist/types/components/DragDrop.d.ts +2 -4
  11. package/dist/types/components/InlineEdit.d.ts +4 -4
  12. package/dist/types/components/InlineMarkdownEdit.d.ts +2 -2
  13. package/dist/types/components/PagedWindowList.d.ts +1 -9
  14. package/dist/types/components/Progress.d.ts +4 -4
  15. package/dist/types/components/ReadMore.d.ts +2 -2
  16. package/dist/types/components/SecretField.d.ts +1 -1
  17. package/dist/types/components/Slider.d.ts +1 -1
  18. package/dist/types/components/SortMenu.d.ts +1 -1
  19. package/dist/types/components/Stat.d.ts +1 -1
  20. package/dist/types/components/StatusSelect.d.ts +1 -1
  21. package/dist/types/components/TriStateSwitch.d.ts +1 -7
  22. package/dist/types/components/board/context.d.ts +2 -4
  23. package/dist/types/components/calendar/CalendarMonth.d.ts +2 -3
  24. package/dist/types/components/calendar/CalendarTimeGrid.d.ts +1 -2
  25. package/dist/types/components/calendar/EventActions.d.ts +1 -2
  26. package/dist/types/components/calendar/format.d.ts +10 -9
  27. package/dist/types/components/calendar/use-calendar-drag.d.ts +0 -1
  28. package/dist/types/components/calendar/use-event-keyboard.d.ts +0 -1
  29. package/dist/types/components/chart/BarList.d.ts +1 -1
  30. package/dist/types/components/chart/ShareBar.d.ts +1 -1
  31. package/dist/types/components/chart/TimeSeriesChart.d.ts +2 -4
  32. package/dist/types/components/chart/shared.d.ts +2 -2
  33. package/dist/types/components/chart/time-series-scale.d.ts +1 -1
  34. package/dist/types/components/chat/EffortControl.d.ts +2 -2
  35. package/dist/types/components/chat/MessageScroller.d.ts +1 -1
  36. package/dist/types/components/checklist/StatusChecklist.d.ts +1 -1
  37. package/dist/types/components/edit/outcome.d.ts +0 -12
  38. package/dist/types/components/file-viewer/frames.d.ts +2 -1
  39. package/dist/types/components/kanban/KanbanBoard.d.ts +2 -21
  40. package/dist/types/components/kanban/types.d.ts +1 -1
  41. package/dist/types/components/markdown/Affordances.d.ts +3 -1
  42. package/dist/types/components/openapi/resolve.d.ts +7 -3
  43. package/dist/types/components/openapi/types.d.ts +2 -1
  44. package/dist/types/components/provenance/ConfidenceBar.d.ts +1 -1
  45. package/dist/types/components/provenance/ConfidenceReadout.d.ts +2 -2
  46. package/dist/types/components/provenance/ProvenanceBadge.d.ts +4 -3
  47. package/dist/types/components/provenance/ProvenanceDetail.d.ts +4 -6
  48. package/dist/types/components/provenance/ProvenanceDisclosure.d.ts +1 -1
  49. package/dist/types/components/provenance/absence.d.ts +4 -3
  50. package/dist/types/components/rbac/RoleKeyPicker.d.ts +1 -1
  51. package/dist/types/components/rbac/permissionSections.d.ts +1 -1
  52. package/dist/types/components/rbac/stagedForm.d.ts +4 -4
  53. package/dist/types/components/roadmap/RoadmapItemCard.d.ts +0 -1
  54. package/dist/types/index.d.ts +9 -7
  55. package/dist/types/lib/board/index.d.ts +2 -1
  56. package/dist/types/lib/board/move.d.ts +2 -2
  57. package/dist/types/lib/board/rejection.d.ts +8 -0
  58. package/dist/types/lib/board/types.d.ts +46 -0
  59. package/dist/types/lib/board/use-board.d.ts +2 -2
  60. package/dist/types/lib/calendar/drag.d.ts +1 -1
  61. package/dist/types/lib/calendar/index.d.ts +1 -1
  62. package/dist/types/lib/calendar/types.d.ts +3 -3
  63. package/dist/types/lib/confidence.d.ts +5 -0
  64. package/dist/types/lib/dnd/announce.d.ts +5 -23
  65. package/dist/types/lib/dnd/index.d.ts +1 -1
  66. package/dist/types/lib/format.d.ts +19 -18
  67. package/dist/types/lib/i18n/areas/auth-provenance-flows.d.ts +258 -0
  68. package/dist/types/lib/i18n/areas/board.d.ts +51 -0
  69. package/dist/types/lib/i18n/areas/chat-chart.d.ts +164 -0
  70. package/dist/types/lib/i18n/areas/code-editor.d.ts +40 -0
  71. package/dist/types/lib/i18n/areas/dates.d.ts +103 -0
  72. package/dist/types/lib/i18n/areas/docs-views.d.ts +268 -0
  73. package/dist/types/lib/i18n/areas/feedback.d.ts +104 -0
  74. package/dist/types/lib/i18n/areas/formats.d.ts +30 -0
  75. package/dist/types/lib/i18n/areas/forms.d.ts +130 -0
  76. package/dist/types/lib/i18n/areas/markdown.d.ts +139 -0
  77. package/dist/types/lib/i18n/areas/move-rejected.d.ts +16 -0
  78. package/dist/types/lib/i18n/areas/navigation.d.ts +144 -0
  79. package/dist/types/lib/i18n/areas/rbac.d.ts +584 -0
  80. package/dist/types/lib/i18n/emphasis.d.ts +3 -0
  81. package/dist/types/lib/i18n/index.d.ts +8 -0
  82. package/dist/types/lib/i18n/number-format.d.ts +5 -0
  83. package/dist/types/lib/i18n/plural.d.ts +7 -0
  84. package/dist/types/lib/i18n/provider.d.ts +16 -0
  85. package/dist/types/lib/i18n/strings.d.ts +15 -0
  86. package/dist/types/lib/intl-cache.d.ts +31 -0
  87. package/dist/types/lib/markdown/commands.d.ts +4 -2
  88. package/dist/types/lib/markdown/dom.d.ts +27 -21
  89. package/dist/types/lib/markdown/hotkeys.d.ts +12 -5
  90. package/dist/types/lib/markdown/image-decoration.d.ts +22 -1
  91. package/dist/types/lib/markdown/image-pipeline.d.ts +2 -0
  92. package/dist/types/lib/markdown/images.d.ts +1 -1
  93. package/dist/types/lib/markdown/reconcile.d.ts +4 -2
  94. package/dist/types/lib/markdown/surface.d.ts +4 -2
  95. package/dist/types/lib/reduced-motion-help.d.ts +2 -1
  96. package/dist/types/lib/time/relativeAge.d.ts +3 -2
  97. package/dist/types/lib/time/zone.d.ts +9 -0
  98. package/dist/types/lib/values/boolean.d.ts +11 -10
  99. package/dist/types/lib/values/currency.d.ts +5 -5
  100. package/dist/types/lib/values/date.d.ts +4 -4
  101. package/dist/types/lib/values/datetime.d.ts +3 -3
  102. package/dist/types/lib/values/locale-date.d.ts +34 -0
  103. package/dist/types/lib/values/number.d.ts +5 -5
  104. package/dist/types/pure.d.ts +1 -0
  105. package/package.json +1 -1
@@ -0,0 +1,104 @@
1
+ import type { Emphasis } from "../emphasis";
2
+ import { type ReactNode } from "react";
3
+ export interface FeedbackStrings {
4
+ /** `<Avatar>`. */
5
+ avatar: {
6
+ /** Accessible name of the presence dot, by status. */
7
+ status: {
8
+ online: string;
9
+ busy: string;
10
+ away: string;
11
+ offline: string;
12
+ };
13
+ };
14
+ /** `<ConnectionCard>`. */
15
+ connectionCard: {
16
+ /** The status badge text, by health. */
17
+ status: {
18
+ healthy: string;
19
+ degraded: string;
20
+ broken: string;
21
+ unknown: string;
22
+ };
23
+ /** Accessible name of the action button: its visible `actionLabel` composed with the connection `name`. */
24
+ actionName: (actionLabel: string, name: string) => string;
25
+ };
26
+ /** `<CopyValue>`. */
27
+ copyValue: {
28
+ /** Accessible name of the copy button for the value called `label`. */
29
+ copy: (label: string) => string;
30
+ /** Live-region announcement after a successful copy. */
31
+ copied: string;
32
+ /** Live-region announcement after the clipboard refused. */
33
+ failed: string;
34
+ };
35
+ loading: {
36
+ /** Accessible name of a repeated skeleton. */
37
+ loading: string;
38
+ };
39
+ errorBoundary: {
40
+ /** Heading of the fallback when the caught subtree has no label. */
41
+ generic: string;
42
+ /** Heading of the fallback naming the part of the page that failed. */
43
+ failure: (label: string) => string;
44
+ };
45
+ progress: {
46
+ /** Name of the unfilled part of a segmented ring when the caller gives no `remainderLabel`. */
47
+ remaining: string;
48
+ /** Spoken description of a segmented ring whose segments exceed the total; `breakdown` is the comma-joined per-segment list. */
49
+ overTotal: (breakdown: string, overflowPercent: string) => string;
50
+ };
51
+ readMore: {
52
+ /** Toggle label while the content is clamped. */
53
+ more: string;
54
+ /** Toggle label while the content is expanded. */
55
+ less: string;
56
+ };
57
+ videoPlayer: {
58
+ /** Message shown in place of a video that failed to load. */
59
+ cannotPlay: string;
60
+ /** Download button beside that message. */
61
+ download: string;
62
+ };
63
+ toast: {
64
+ /** Accessible name of a toast's close button. */
65
+ dismiss: string;
66
+ };
67
+ legalDocument: {
68
+ /** Default accessible name of the table of contents. */
69
+ contents: string;
70
+ /** Callout title counting the placeholders not confirmed yet. */
71
+ unconfirmedTitle: (count: number, countText: string) => string;
72
+ /** Callout body explaining how unconfirmed values are shown. */
73
+ unconfirmedBody: string;
74
+ /** Label before the effective date in the document header. */
75
+ effectiveDate: string;
76
+ /** Label before the version in the document header. */
77
+ version: string;
78
+ };
79
+ lineDiff: {
80
+ /** Gap row standing for a folded run of unchanged lines. */
81
+ unchangedLines: (count: number, countText: string) => string;
82
+ };
83
+ tree: {
84
+ /** Accessible name of a closed branch's toggle. */
85
+ expand: string;
86
+ /** Accessible name of an open branch's toggle. */
87
+ collapse: string;
88
+ };
89
+ table: {
90
+ /** Accessible name of the header checkbox that selects every row on the page. */
91
+ selectAll: string;
92
+ /** Accessible name of one row's selection checkbox; `position` counts from 1. */
93
+ selectRow: (positionText: string) => string;
94
+ /** Message on the overlay shown while rows are refreshing. */
95
+ updating: string;
96
+ /** Live summary under the table: how many of the filtered rows are selected. */
97
+ selectedCount: (selected: number, selectedText: string, totalText: string, emphasis: Emphasis) => ReactNode;
98
+ /** Name of the table's pagination bar. */
99
+ paginationLabel: string;
100
+ /** Title of the default empty state. */
101
+ emptyTitle: string;
102
+ };
103
+ }
104
+ export declare const feedbackStrings: FeedbackStrings;
@@ -0,0 +1,30 @@
1
+ export interface BooleanStrings {
2
+ yes: string;
3
+ no: string;
4
+ /** Word for a boolean nothing was recorded for. */
5
+ unknown: string;
6
+ /** Lower-case spellings `parseBoolean` reads as true (English: ["yes", "y", "true", "t", "1"]). */
7
+ trueWords: string[];
8
+ /** Lower-case spellings `parseBoolean` reads as false (English: ["no", "n", "false", "f", "0"]). */
9
+ falseWords: string[];
10
+ }
11
+ export interface RelativeAgeStrings {
12
+ justNow: string;
13
+ /** The moment could not be parsed. */
14
+ unknown: string;
15
+ minutesAgo: (n: number, nText: string) => string;
16
+ hoursAgo: (n: number, nText: string) => string;
17
+ daysAgo: (n: number, nText: string) => string;
18
+ daysHoursAgo: (days: number, daysText: string, hours: number, hoursText: string) => string;
19
+ weeksAgo: (n: number, nText: string) => string;
20
+ }
21
+ export interface ReadErrorStrings {
22
+ /** A read failed with something that carries no message of its own. */
23
+ error: string;
24
+ }
25
+ export interface FormatsStrings {
26
+ boolean: BooleanStrings;
27
+ relativeAge: RelativeAgeStrings;
28
+ readError: ReadErrorStrings;
29
+ }
30
+ export declare const formatsStrings: FormatsStrings;
@@ -0,0 +1,130 @@
1
+ import type { Emphasis } from "../emphasis";
2
+ import { type ReactNode } from "react";
3
+ export interface FormsStrings {
4
+ slider: {
5
+ /** The readout of a two-thumb Slider: the low and high value, already locale-formatted. */
6
+ range: (from: string, to: string) => string;
7
+ };
8
+ /** `<Combobox>` and `<MultiCombobox>`. */
9
+ combobox: {
10
+ /** Input placeholder when the consumer passes none. */
11
+ placeholder: string;
12
+ /** Empty-list message when the consumer passes none. */
13
+ noMatch: string;
14
+ /** Name of the clear-the-selection button. */
15
+ clear: string;
16
+ /** Name of the open-the-list button. */
17
+ open: string;
18
+ /** Name of a selected chip's remove button. */
19
+ remove: string;
20
+ };
21
+ select: {
22
+ /** Trigger text while nothing is selected and the caller gave no `placeholder`. */
23
+ placeholder: string;
24
+ };
25
+ statusSelect: {
26
+ /** Trigger text when the value matches no option and the caller gave no `placeholder`. */
27
+ unknown: string;
28
+ };
29
+ settingRow: {
30
+ /** Label of the collapsed "details" disclosure when the caller gave no `detailsLabel`. */
31
+ detailsLabel: string;
32
+ };
33
+ passwordInput: {
34
+ /** Accessible name of the reveal button while the password is hidden. */
35
+ show: string;
36
+ /** Accessible name of the reveal button while the password is shown. */
37
+ hide: string;
38
+ /** Tooltip explaining why the reveal button is disabled. */
39
+ disabled: string;
40
+ };
41
+ passwordRequirements: {
42
+ /** Accessible name of the list of password rules. */
43
+ label: string;
44
+ };
45
+ secretField: {
46
+ /** Screen-reader-only note that a secret is already stored for the field. */
47
+ storedNotice: string;
48
+ /** Placeholder while the stored secret is marked for removal. */
49
+ willBeRemoved: string;
50
+ /** Placeholder of an empty field when no secret is stored. */
51
+ notSet: string;
52
+ /** Accessible name of the reveal button for typed text while it is hidden. */
53
+ showTyped: string;
54
+ /** Accessible name of the reveal button for typed text while it is shown. */
55
+ hideTyped: string;
56
+ /** Tooltip explaining why the reveal button is disabled. */
57
+ disabled: string;
58
+ /** Banner text while the stored secret is marked for removal. */
59
+ removedOnSave: string;
60
+ /** Button that undoes the pending removal. */
61
+ undo: string;
62
+ /** Button that opens the clear confirmation. */
63
+ clearStored: string;
64
+ /** Title of the clear confirmation dialog. */
65
+ clearTitle: string;
66
+ /** Body of the clear confirmation; `masked` is the stored value's visible ends ("sk-…ab"), or null when the caller gave no hint. */
67
+ clearDescription: (masked: string | null) => string;
68
+ /** Default label of the clear confirmation's destructive button. */
69
+ clearConfirm: string;
70
+ /** Who/when line under the field; `when` is the already-formatted instant and either argument may be absent. */
71
+ updated: (when: string | null, by: string | undefined) => string;
72
+ };
73
+ fileUpload: {
74
+ /** Default call to action inside the drop zone. */
75
+ dropOrBrowse: string;
76
+ /** Size limit line under the call to action, given the formatted limit. */
77
+ upTo: (limit: string) => string;
78
+ /** Rejection line for a file over the limit, given its name, its size and the limit (both formatted). */
79
+ tooBig: (name: string, size: string, limit: string) => string;
80
+ /** Accessible name of the button that drops one queued file, given the file name. */
81
+ remove: (name: string) => string;
82
+ };
83
+ imageUploadField: {
84
+ /** Default label of the drop zone and of the replace control. */
85
+ upload: string;
86
+ /** Default accessible name of the control that removes the image. */
87
+ remove: string;
88
+ /** Drop-zone label while an upload is in flight, and the reason the replace and remove controls are disabled meanwhile. */
89
+ uploading: string;
90
+ /** Reason the replace and remove controls are disabled when the whole field is. */
91
+ disabled: string;
92
+ /** Hint under a circular drop zone. */
93
+ cropHint: string;
94
+ /** Error shown when the upload failed without a message of its own. */
95
+ failed: string;
96
+ };
97
+ inlineEdit: {
98
+ /** Ghost text of an empty InlineEdit. */
99
+ empty: string;
100
+ /** Screen-reader announcement while an autosave is in flight. */
101
+ saving: string;
102
+ /** Message under a field whose save failed, naming the key that retries it. */
103
+ failure: (retryKey: "Enter" | "Ctrl+Enter") => string;
104
+ };
105
+ inlineMarkdownEdit: {
106
+ /** Resting text of an empty InlineMarkdownEdit. */
107
+ empty: string;
108
+ /** Refusal shown when saving is attempted while an image is unstored. */
109
+ unstoredImageRefusal: string;
110
+ };
111
+ triStateSwitch: {
112
+ /** The Yes stop's name and caption. */
113
+ yes: string;
114
+ /** The No stop's name and caption. */
115
+ no: string;
116
+ /** The middle stop's name and caption (nobody has answered). */
117
+ unset: string;
118
+ };
119
+ dialog: {
120
+ /** Accessible name of the corner close button on a Dialog. */
121
+ close: string;
122
+ /** Default label of an AlertDialog's cancel button. */
123
+ cancel: string;
124
+ /** Default label of an AlertDialog's confirm button. */
125
+ confirm: string;
126
+ /** Label of the type-to-confirm field in an AlertDialog; the sentence carries the phrase the person must type exactly once. */
127
+ typeToConfirm: (phrase: string, emphasis: Emphasis) => ReactNode;
128
+ };
129
+ }
130
+ export declare const formsStrings: FormsStrings;
@@ -0,0 +1,139 @@
1
+ import type { HotkeyId } from "../../markdown/hotkeys";
2
+ import type { ImageDecorationStrings } from "../../markdown/image-decoration";
3
+ export interface MarkdownStrings {
4
+ markdownEditor: {
5
+ /** Accessible name of the formatting toolbar; `label` is the editor's own label. */
6
+ formattingLabel: (label: string) => string;
7
+ /** Accessible name of the hidden image file picker. */
8
+ imageFileLabel: (label: string) => string;
9
+ /** Accessible name of the keyboard-shortcuts button. */
10
+ shortcuts: string;
11
+ /** Permanent advisement under the editor about how Tab leaves the field. */
12
+ tabAdvisement: string;
13
+ /** Tooltip of a toolbar button: its name and its chord. */
14
+ buttonTooltip: (name: string, chord: string) => string;
15
+ /** Names of the toolbar buttons. */
16
+ toolbar: {
17
+ bold: string;
18
+ italic: string;
19
+ inlineCode: string;
20
+ link: string;
21
+ image: string;
22
+ bulletList: string;
23
+ numberedList: string;
24
+ blockquote: string;
25
+ codeBlock: string;
26
+ table: string;
27
+ };
28
+ /** Header cell of each column of a table the editor inserts ("Column 1"). */
29
+ tableColumnHeader: (positionText: string) => string;
30
+ /** Header cell of a column the editor inserts into an existing table. */
31
+ newColumnHeader: string;
32
+ /** The words an image shown in the document carries as attributes. */
33
+ images: ImageDecorationStrings;
34
+ /** Group headings of the shortcuts panel. */
35
+ hotkeyGroups: {
36
+ formatting: string;
37
+ headings: string;
38
+ lists: string;
39
+ blocks: string;
40
+ tables: string;
41
+ };
42
+ /** What each row of the shortcuts panel does. */
43
+ hotkeys: Record<HotkeyId, string>;
44
+ };
45
+ markdownAffordances: {
46
+ /** Accessible name of the line menu button; `current` is the line's present type. */
47
+ lineType: (current: string) => string;
48
+ /** Heading of the block-type group in the line and selection menus. */
49
+ turnInto: string;
50
+ /** Names of the block types a line can become. */
51
+ blockTypes: {
52
+ paragraph: string;
53
+ heading1: string;
54
+ heading2: string;
55
+ heading3: string;
56
+ bulletList: string;
57
+ numberedList: string;
58
+ taskList: string;
59
+ blockquote: string;
60
+ codeBlock: string;
61
+ table: string;
62
+ horizontalRule: string;
63
+ };
64
+ /** Accessible name of the image address field. */
65
+ imageSource: string;
66
+ /** Accessible name of the link address field. */
67
+ linkDestination: string;
68
+ /** Button that turns an image into a link. */
69
+ turnIntoLink: string;
70
+ /** Button that turns a link into an image. */
71
+ turnIntoImage: string;
72
+ /** Button that removes an image but keeps its text. */
73
+ removeImage: string;
74
+ /** Button that removes a link but keeps its text. */
75
+ removeLink: string;
76
+ /** Visible caption of the code-block language picker. */
77
+ language: string;
78
+ /** Accessible name of the code-block language picker. */
79
+ codeBlockLanguage: string;
80
+ /** Option meaning the fence names no language. */
81
+ noLanguage: string;
82
+ /** Table bar: align the column left. */
83
+ alignLeft: string;
84
+ /** Table bar: centre the column. */
85
+ alignCenter: string;
86
+ /** Table bar: align the column right. */
87
+ alignRight: string;
88
+ /** Table bar: insert a row below. */
89
+ insertRowBelow: string;
90
+ /** Table bar: insert a column after. */
91
+ insertColumnAfter: string;
92
+ /** Table bar: delete the row. */
93
+ deleteRow: string;
94
+ /** Table bar: delete the column. */
95
+ deleteColumn: string;
96
+ /** Table bar: delete the table. */
97
+ deleteTable: string;
98
+ /** Heading of the inline-format group in the selection menu. */
99
+ formatGroup: string;
100
+ /** Names of the inline formats in the selection menu. */
101
+ format: {
102
+ bold: string;
103
+ italic: string;
104
+ inlineCode: string;
105
+ strikethrough: string;
106
+ };
107
+ };
108
+ markdownRender: {
109
+ /** Accessible name of a checked task-list box. */
110
+ done: string;
111
+ /** Accessible name of an unchecked task-list box. */
112
+ notDone: string;
113
+ /** Accessible name of a scrollable table region. */
114
+ table: string;
115
+ /** Accessible name of the footnotes section. */
116
+ footnotes: string;
117
+ /** Accessible name of a footnote's return link. */
118
+ backToReference: string;
119
+ /** Dialog title of an enlarged image that has no alt text. */
120
+ image: string;
121
+ };
122
+ imageUpload: {
123
+ /** Title of the warning while images upload. */
124
+ uploadingTitle: (count: number, countText: string) => string;
125
+ /** Body of that warning. */
126
+ uploadingBody: string;
127
+ /** Title of the warning when uploads failed. */
128
+ failedTitle: (count: number, countText: string) => string;
129
+ /** Retry button of that warning. */
130
+ retry: string;
131
+ /** Body of the failed-upload warning. */
132
+ failedBody: (count: number) => string;
133
+ /** Title of the warning for images that exist only in this tab. */
134
+ unstoredTitle: (count: number, countText: string) => string;
135
+ /** Body of that warning. */
136
+ unstoredBody: (count: number) => string;
137
+ };
138
+ }
139
+ export declare const markdownStrings: MarkdownStrings;
@@ -0,0 +1,16 @@
1
+ export interface MoveRejectedStrings {
2
+ /** Why a move was refused, by the core's rejection code. */
3
+ moveRejected: {
4
+ /** The card is no longer on the board (removed while it was carried). */
5
+ unknownItem: (itemId: string) => string;
6
+ /** The card is not in the lane the move said it was in (moved under the person). */
7
+ wrongColumn: (itemId: string, actualColumn: string, claimedColumn: string) => string;
8
+ /** A lane in the move is no longer declared (a live update removed it during the drag). */
9
+ unknownColumn: (column: string) => string;
10
+ /** The card's old position is beyond the end of its lane (the lane shrank): `n` is the lane's card count, `nText` the same, formatted. */
11
+ fromIndexPastEnd: (n: number, nText: string, itemId: string, position: string, column: string) => string;
12
+ /** The new position is beyond the end of the destination lane (`max` is the last allowed). */
13
+ toIndexPastEnd: (itemId: string, position: string, column: string, max: string) => string;
14
+ };
15
+ }
16
+ export declare const moveRejectedStrings: MoveRejectedStrings;
@@ -0,0 +1,144 @@
1
+ export interface NavigationStrings {
2
+ /** `<AppShell>`: the sidebar, its collapse control and the mobile navigation drawer. */
3
+ appShell: {
4
+ /** The sidebar landmark's accessible name when the consumer passes no `navLabel`. */
5
+ mainNavigation: string;
6
+ /** Name (and tooltip) of the sidebar toggle while the sidebar is collapsed. */
7
+ expandSidebar: string;
8
+ /** Name (and tooltip) of the sidebar toggle while the sidebar is expanded. */
9
+ collapseSidebar: string;
10
+ /** Name of the narrow-layout button that opens the navigation drawer. */
11
+ openNavigation: string;
12
+ /** Name of the button that closes the navigation drawer. */
13
+ closeNavigation: string;
14
+ /** Screen-reader-only title of the navigation drawer dialog. */
15
+ navigationTitle: string;
16
+ };
17
+ navigation: {
18
+ /** Accessible name of the breadcrumb trail. */
19
+ breadcrumb: string;
20
+ /** Accessible name of the pagination control. */
21
+ pagination: string;
22
+ /** Accessible name of the previous-page button. */
23
+ previousPage: string;
24
+ /** Accessible name of the next-page button. */
25
+ nextPage: string;
26
+ /** Tooltip on the disabled previous-page button on page one. */
27
+ onFirstPage: string;
28
+ /** Tooltip on the disabled next-page button on the last page. */
29
+ onLastPage: string;
30
+ /** Accessible name of a page-number button. */
31
+ page: (pageText: string) => string;
32
+ };
33
+ themeMenu: {
34
+ /** Accessible name of the Appearance trigger button. */
35
+ triggerLabel: string;
36
+ /** Visible text of the Appearance trigger button. */
37
+ appearance: string;
38
+ /** Heading and group name of the light/dark choice. */
39
+ theme: string;
40
+ /** The two theme choices. */
41
+ themes: {
42
+ light: string;
43
+ dark: string;
44
+ };
45
+ /** Heading and slider name of the text size setting. */
46
+ textSize: string;
47
+ /** The three text sizes, as slider stops. */
48
+ scales: {
49
+ sm: string;
50
+ md: string;
51
+ lg: string;
52
+ };
53
+ /** Label and switch name of the high-contrast setting. */
54
+ highContrast: string;
55
+ /** Explanation under the high-contrast label. */
56
+ highContrastHint: string;
57
+ /** Heading and group name of the motion setting. */
58
+ motion: string;
59
+ /** The three motion choices. */
60
+ motionChoices: {
61
+ system: string;
62
+ full: string;
63
+ reduced: string;
64
+ };
65
+ /** What the current motion choice means right now. */
66
+ motionHint: {
67
+ full: string;
68
+ reduced: string;
69
+ systemReduced: string;
70
+ systemFull: string;
71
+ };
72
+ /** Title of the warning shown when the OS asks for reduced motion and the choice follows the system. */
73
+ systemReducesTitle: string;
74
+ /** Advice line of that warning. */
75
+ systemReducesAdvice: string;
76
+ /** Where the OS reduce-motion setting lives, per operating system. */
77
+ osSteps: {
78
+ windows: string;
79
+ macos: string;
80
+ ios: string;
81
+ android: string;
82
+ unknown: string;
83
+ };
84
+ };
85
+ /** `<CommandPalette>`. */
86
+ commandPalette: {
87
+ /** Screen-reader-only dialog title. */
88
+ title: string;
89
+ /** Search input placeholder when the consumer passes none. */
90
+ placeholder: string;
91
+ /** Search input accessible name. */
92
+ searchLabel: string;
93
+ /** The Escape key cap shown beside the search input. */
94
+ escapeKey: string;
95
+ /** Message when no command matches, when the consumer passes none. */
96
+ noMatch: string;
97
+ /** Footer legend for the arrow keys. */
98
+ navigate: string;
99
+ /** Footer legend for the Enter key. */
100
+ run: string;
101
+ /** Footer counter: `shown` matching commands out of `total`. */
102
+ resultCount: (shownText: string, totalText: string) => string;
103
+ };
104
+ paginationBar: {
105
+ /** Accessible name of the bar's navigation landmark; `label` names what is paged ("Cards"). */
106
+ navLabel: (label: string) => string;
107
+ /** Live range text at the bar's left: which items of how many are shown. */
108
+ range: (firstText: string, lastText: string, totalText: string) => string;
109
+ /** Accessible name of the per-page picker's trigger button. */
110
+ rowsPerPage: (sizeText: string) => string;
111
+ /** Visible text of the per-page trigger on a wide bar. */
112
+ pageSizeTrigger: (sizeText: string) => string;
113
+ /** One row of the per-page picker menu. */
114
+ pageSizeOption: (sizeText: string) => string;
115
+ /** Accessible name of the previous-page arrow in the simple bar. */
116
+ previousPage: string;
117
+ /** Accessible name of the next-page arrow in the simple bar. */
118
+ nextPage: string;
119
+ /** Tooltip explaining the previous arrow is disabled on page one. */
120
+ onFirstPage: string;
121
+ /** Tooltip explaining the next arrow is disabled on the last page. */
122
+ onLastPage: string;
123
+ /** Caption between the arrows of the simple bar. */
124
+ pageOf: (pageText: string, pageCountText: string) => string;
125
+ };
126
+ pagedWindowList: {
127
+ /** Shown in place of a page whose request failed. */
128
+ failed: string;
129
+ /** The retry button next to a failed page. */
130
+ retry: string;
131
+ };
132
+ sortMenu: {
133
+ /** The words for each direction of an option that supplies none of its own. */
134
+ directions: {
135
+ asc: string;
136
+ desc: string;
137
+ };
138
+ /** Accessible name of the closed trigger: the control's own name, the sorted field, its direction. */
139
+ currentOrder: (controlLabel: string, field: string, direction: string) => string;
140
+ /** Accessible name of one direction arrow inside the open menu. */
141
+ optionDirection: (field: string, direction: string) => string;
142
+ };
143
+ }
144
+ export declare const navigationStrings: NavigationStrings;