@12-apps/ui 6.6.0 → 6.8.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/dist/{chunk-QLBYAYUG.js → chunk-KR2BP7NK.js} +4 -4
- package/dist/chunk-KR2BP7NK.js.map +1 -0
- package/dist/{chunk-DFVRZ3UK.js → chunk-KXARS46L.js} +3 -3
- package/dist/chunk-KXARS46L.js.map +1 -0
- package/dist/{chunk-JP55QWVR.js → chunk-L7L6SX64.js} +5 -2
- package/dist/chunk-L7L6SX64.js.map +1 -0
- package/dist/{chunk-QZZVHY6U.js → chunk-PVLDKXKR.js} +7 -3
- package/dist/chunk-PVLDKXKR.js.map +1 -0
- package/dist/{chunk-3KWD5Y5O.js → chunk-RXE5CUUE.js} +8 -4
- package/dist/chunk-RXE5CUUE.js.map +1 -0
- package/dist/{chunk-H7UAGTVW.js → chunk-TSG5C7MP.js} +4 -3
- package/dist/chunk-TSG5C7MP.js.map +1 -0
- package/dist/{chunk-NUCLEOHF.js → chunk-UNM7KFDX.js} +44 -14
- package/dist/chunk-UNM7KFDX.js.map +1 -0
- package/dist/{chunk-CEKPLUQV.js → chunk-UY7UF7IN.js} +19 -13
- package/dist/chunk-UY7UF7IN.js.map +1 -0
- package/dist/data-display/Alert.js +1 -1
- package/dist/data-display/AsyncStateContainer.js +2 -1
- package/dist/data-display/AsyncStateContainer.js.map +1 -1
- package/dist/data-display/Banner.js +4 -2
- package/dist/data-display/Banner.js.map +1 -1
- package/dist/data-display/CardKit.js +3 -1
- package/dist/data-display/CardKit.js.map +1 -1
- package/dist/data-display/Carousel.js +5 -2
- package/dist/data-display/Carousel.js.map +1 -1
- package/dist/data-display/DataGrid.js +1 -1
- package/dist/data-display/DataViews.js +90 -66
- package/dist/data-display/DataViews.js.map +1 -1
- package/dist/data-display/HoverCard.js +4 -1
- package/dist/data-display/HoverCard.js.map +1 -1
- package/dist/data-display/Lightbox.js +147 -117
- package/dist/data-display/Lightbox.js.map +1 -1
- package/dist/data-display/MapPreview.js +14 -10
- package/dist/data-display/MapPreview.js.map +1 -1
- package/dist/data-display/Table.js +4 -2
- package/dist/data-display/Table.js.map +1 -1
- package/dist/data-display/TimingDiagram.js +3 -2
- package/dist/data-display/TimingDiagram.js.map +1 -1
- package/dist/feedback/Sonner.js +5 -4
- package/dist/feedback/Sonner.js.map +1 -1
- package/dist/feedback/StackedModal.js +1 -1
- package/dist/feedback/TutorialOverlay.js +19 -5
- package/dist/feedback/TutorialOverlay.js.map +1 -1
- package/dist/form/AddressAutocomplete.js +16 -8
- package/dist/form/AddressAutocomplete.js.map +1 -1
- package/dist/form/Autocomplete.js +9 -7
- package/dist/form/Autocomplete.js.map +1 -1
- package/dist/form/Calendar.js +1 -1
- package/dist/form/CodeEditor.js +14 -9
- package/dist/form/CodeEditor.js.map +1 -1
- package/dist/form/DateRangePicker.js +10 -3
- package/dist/form/DateRangePicker.js.map +1 -1
- package/dist/form/Menubar.js +4 -1
- package/dist/form/Menubar.js.map +1 -1
- package/dist/form/PasswordStrength.js +48 -28
- package/dist/form/PasswordStrength.js.map +1 -1
- package/dist/form/PhoneInput.js +11 -5
- package/dist/form/PhoneInput.js.map +1 -1
- package/dist/form/SearchPalette.js +4 -1
- package/dist/form/SearchPalette.js.map +1 -1
- package/dist/form/Textarea.js +21 -19
- package/dist/form/Textarea.js.map +1 -1
- package/dist/form/UploadButton.js +16 -11
- package/dist/form/UploadButton.js.map +1 -1
- package/dist/layout/ContentToolbar.js +1 -1
- package/dist/layout/Dashboard.js +2 -1
- package/dist/layout/Dashboard.js.map +1 -1
- package/dist/layout/ScrollArea.js +9 -3
- package/dist/layout/ScrollArea.js.map +1 -1
- package/dist/layout/TableFilter.js +1 -1
- package/dist/navigation/Breadcrumbs.js +9 -3
- package/dist/navigation/Breadcrumbs.js.map +1 -1
- package/dist/navigation/CommandPalette.js +20 -7
- package/dist/navigation/CommandPalette.js.map +1 -1
- package/dist/navigation/Pagination.js +1 -1
- package/dist/navigation/Tabs.js +7 -3
- package/dist/navigation/Tabs.js.map +1 -1
- package/dist/pt-BR.js +192 -5
- package/dist/pt-BR.js.map +1 -1
- package/dist/types/components/data-display/Alert/Alert.d.ts +9 -2
- package/dist/types/components/data-display/Alert/Alert.d.ts.map +1 -1
- package/dist/types/components/data-display/Alert/Alert.types.d.ts +25 -9
- package/dist/types/components/data-display/Alert/Alert.types.d.ts.map +1 -1
- package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.d.ts.map +1 -1
- package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.types.d.ts +6 -0
- package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Banner/Banner.d.ts.map +1 -1
- package/dist/types/components/data-display/Banner/Banner.types.d.ts +2 -0
- package/dist/types/components/data-display/Banner/Banner.types.d.ts.map +1 -1
- package/dist/types/components/data-display/CardKit/card-actions-context.d.ts +3 -1
- package/dist/types/components/data-display/CardKit/card-actions-context.d.ts.map +1 -1
- package/dist/types/components/data-display/Carousel/Carousel.chrome.d.ts +3 -0
- package/dist/types/components/data-display/Carousel/Carousel.chrome.d.ts.map +1 -1
- package/dist/types/components/data-display/Carousel/Carousel.parts.d.ts.map +1 -1
- package/dist/types/components/data-display/Carousel/Carousel.types.d.ts +7 -0
- package/dist/types/components/data-display/Carousel/Carousel.types.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.states.d.ts +1 -0
- package/dist/types/components/data-display/DataGrid/DataGrid.states.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts +5 -0
- package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-category-pill.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts +29 -1
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts +12 -1
- package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-filter-panel.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-grid-bodies.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-grid-parts.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-pagination.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-range-pill.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-table-parts.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-toolbar.d.ts.map +1 -1
- package/dist/types/components/data-display/HoverCard/HoverCard.content.d.ts +1 -1
- package/dist/types/components/data-display/HoverCard/HoverCard.content.d.ts.map +1 -1
- package/dist/types/components/data-display/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/types/components/data-display/HoverCard/HoverCard.types.d.ts +2 -0
- package/dist/types/components/data-display/HoverCard/HoverCard.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/Lightbox.types.d.ts +9 -0
- package/dist/types/components/data-display/Lightbox/Lightbox.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/LightboxControls.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/lightbox-copy-context.d.ts +17 -0
- package/dist/types/components/data-display/Lightbox/lightbox-copy-context.d.ts.map +1 -0
- package/dist/types/components/data-display/MapPreview/MapControlBar.d.ts +7 -0
- package/dist/types/components/data-display/MapPreview/MapControlBar.d.ts.map +1 -1
- package/dist/types/components/data-display/MapPreview/MapLayers.d.ts.map +1 -1
- package/dist/types/components/data-display/MapPreview/MapPreview.types.d.ts +9 -0
- package/dist/types/components/data-display/MapPreview/MapPreview.types.d.ts.map +1 -1
- package/dist/types/components/data-display/MapPreview/MapSearchBar.d.ts +2 -0
- package/dist/types/components/data-display/MapPreview/MapSearchBar.d.ts.map +1 -1
- package/dist/types/components/data-display/Table/Table.d.ts.map +1 -1
- package/dist/types/components/data-display/Table/Table.types.d.ts +5 -0
- package/dist/types/components/data-display/Table/Table.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Table/TableStates.d.ts +3 -1
- package/dist/types/components/data-display/Table/TableStates.d.ts.map +1 -1
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.d.ts.map +1 -1
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.types.d.ts +3 -0
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.types.d.ts.map +1 -1
- package/dist/types/components/feedback/Sonner/Sonner.d.ts +8 -0
- package/dist/types/components/feedback/Sonner/Sonner.d.ts.map +1 -1
- package/dist/types/components/feedback/Sonner/Sonner.types.d.ts +2 -0
- package/dist/types/components/feedback/Sonner/Sonner.types.d.ts.map +1 -1
- package/dist/types/components/feedback/Sonner/SonnerToast.d.ts.map +1 -1
- package/dist/types/components/feedback/StackedModal/StackedModal.d.ts.map +1 -1
- package/dist/types/components/feedback/StackedModal/StackedModal.parts.d.ts +2 -0
- package/dist/types/components/feedback/StackedModal/StackedModal.parts.d.ts.map +1 -1
- package/dist/types/components/feedback/StackedModal/StackedModal.types.d.ts +2 -0
- package/dist/types/components/feedback/StackedModal/StackedModal.types.d.ts.map +1 -1
- package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.d.ts.map +1 -1
- package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.types.d.ts +3 -0
- package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.types.d.ts.map +1 -1
- package/dist/types/components/feedback/TutorialOverlay/TutorialStepBody.d.ts +2 -0
- package/dist/types/components/feedback/TutorialOverlay/TutorialStepBody.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressAutocomplete.types.d.ts +7 -0
- package/dist/types/components/form/AddressAutocomplete/AddressAutocomplete.types.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressAutocompleteField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressFallbackField.d.ts +1 -0
- package/dist/types/components/form/AddressAutocomplete/AddressFallbackField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressInputField.d.ts +1 -0
- package/dist/types/components/form/AddressAutocomplete/AddressInputField.d.ts.map +1 -1
- package/dist/types/components/form/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/form/Autocomplete/Autocomplete.parts.d.ts +9 -3
- package/dist/types/components/form/Autocomplete/Autocomplete.parts.d.ts.map +1 -1
- package/dist/types/components/form/Autocomplete/Autocomplete.types.d.ts +7 -0
- package/dist/types/components/form/Autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/Calendar.types.d.ts +6 -0
- package/dist/types/components/form/Calendar/Calendar.types.d.ts.map +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts +7 -0
- package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/types/components/form/CodeEditor/CodeEditorToolbar.d.ts +2 -0
- package/dist/types/components/form/CodeEditor/CodeEditorToolbar.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePicker.range.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePicker.types.d.ts +11 -0
- package/dist/types/components/form/DateRangePicker/DateRangePicker.types.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePickerFields.d.ts.map +1 -1
- package/dist/types/components/form/Menubar/Menubar.d.ts.map +1 -1
- package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts +1 -0
- package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts.map +1 -1
- package/dist/types/components/form/Menubar/Menubar.types.d.ts +5 -0
- package/dist/types/components/form/Menubar/Menubar.types.d.ts.map +1 -1
- package/dist/types/components/form/PasswordStrength/PasswordStrength.d.ts.map +1 -1
- package/dist/types/components/form/PasswordStrength/PasswordStrength.helpers.d.ts +4 -2
- package/dist/types/components/form/PasswordStrength/PasswordStrength.helpers.d.ts.map +1 -1
- package/dist/types/components/form/PasswordStrength/PasswordStrength.types.d.ts +8 -0
- package/dist/types/components/form/PasswordStrength/PasswordStrength.types.d.ts.map +1 -1
- package/dist/types/components/form/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/types/components/form/PhoneInput/PhoneInput.types.d.ts +7 -0
- package/dist/types/components/form/PhoneInput/PhoneInput.types.d.ts.map +1 -1
- package/dist/types/components/form/SearchPalette/SearchPalette.d.ts.map +1 -1
- package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts +2 -0
- package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts.map +1 -1
- package/dist/types/components/form/SearchPalette/SearchPalette.types.d.ts +6 -0
- package/dist/types/components/form/SearchPalette/SearchPalette.types.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/Textarea.types.d.ts +16 -1
- package/dist/types/components/form/Textarea/Textarea.types.d.ts.map +1 -1
- package/dist/types/components/form/Textarea/TextareaRichEditor.d.ts +7 -0
- package/dist/types/components/form/Textarea/TextareaRichEditor.d.ts.map +1 -1
- package/dist/types/components/form/UploadButton/UploadButton.d.ts.map +1 -1
- package/dist/types/components/form/UploadButton/UploadButton.parts.d.ts +6 -3
- package/dist/types/components/form/UploadButton/UploadButton.parts.d.ts.map +1 -1
- package/dist/types/components/form/UploadButton/UploadButton.types.d.ts +7 -0
- package/dist/types/components/form/UploadButton/UploadButton.types.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/ContentToolbar.d.ts +1 -1
- package/dist/types/components/layout/ContentToolbar/ContentToolbar.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/ContentToolbar.types.d.ts +12 -0
- package/dist/types/components/layout/ContentToolbar/ContentToolbar.types.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts +1 -1
- package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/SortByDropdown.d.ts +1 -1
- package/dist/types/components/layout/ContentToolbar/SortByDropdown.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/ViewSelector.d.ts +1 -1
- package/dist/types/components/layout/ContentToolbar/ViewSelector.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts +4 -0
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts.map +1 -1
- package/dist/types/components/layout/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/types/components/layout/ScrollArea/ScrollArea.types.d.ts +21 -3
- package/dist/types/components/layout/ScrollArea/ScrollArea.types.d.ts.map +1 -1
- package/dist/types/components/layout/ScrollArea/ScrollViewport.d.ts +2 -0
- package/dist/types/components/layout/ScrollArea/ScrollViewport.d.ts.map +1 -1
- package/dist/types/components/layout/TableFilter/TableFilter.d.ts +1 -1
- package/dist/types/components/layout/TableFilter/TableFilter.d.ts.map +1 -1
- package/dist/types/components/layout/TableFilter/TableFilter.types.d.ts +7 -0
- package/dist/types/components/layout/TableFilter/TableFilter.types.d.ts.map +1 -1
- package/dist/types/components/layout/TableFilter/TableFilterContext.d.ts +9 -0
- package/dist/types/components/layout/TableFilter/TableFilterContext.d.ts.map +1 -1
- package/dist/types/components/navigation/Breadcrumbs/BreadcrumbEntry.d.ts +2 -0
- package/dist/types/components/navigation/Breadcrumbs/BreadcrumbEntry.d.ts.map +1 -1
- package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.types.d.ts +3 -0
- package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPalette.types.d.ts +3 -0
- package/dist/types/components/navigation/CommandPalette/CommandPalette.types.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPaletteResults.d.ts +2 -0
- package/dist/types/components/navigation/CommandPalette/CommandPaletteResults.d.ts.map +1 -1
- package/dist/types/components/navigation/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/navigation/Pagination/Pagination.types.d.ts +2 -0
- package/dist/types/components/navigation/Pagination/Pagination.types.d.ts.map +1 -1
- package/dist/types/components/navigation/Pagination/PaginationParts.d.ts +2 -0
- package/dist/types/components/navigation/Pagination/PaginationParts.d.ts.map +1 -1
- package/dist/types/components/navigation/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/navigation/Tabs/Tabs.types.d.ts +2 -0
- package/dist/types/components/navigation/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts +6 -2
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts +6 -0
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts.map +1 -1
- package/dist/types/components/utility/InstallPrompt/InstallPrompt.d.ts +4 -2
- package/dist/types/components/utility/InstallPrompt/InstallPrompt.d.ts.map +1 -1
- package/dist/types/components/utility/InstallPrompt/InstallPrompt.types.d.ts +8 -7
- package/dist/types/components/utility/InstallPrompt/InstallPrompt.types.d.ts.map +1 -1
- package/dist/types/copy/data-display.d.ts +56 -0
- package/dist/types/copy/data-display.d.ts.map +1 -0
- package/dist/types/copy/feedback.d.ts +38 -0
- package/dist/types/copy/feedback.d.ts.map +1 -0
- package/dist/types/copy/form.d.ts +146 -0
- package/dist/types/copy/form.d.ts.map +1 -0
- package/dist/types/copy/layout.d.ts +18 -0
- package/dist/types/copy/layout.d.ts.map +1 -0
- package/dist/types/copy/navigation.d.ts +24 -0
- package/dist/types/copy/navigation.d.ts.map +1 -0
- package/dist/types/copy/shared.d.ts +119 -0
- package/dist/types/copy/shared.d.ts.map +1 -0
- package/dist/types/copy/utility.d.ts +35 -0
- package/dist/types/copy/utility.d.ts.map +1 -0
- package/dist/types/copy.d.ts +13 -113
- package/dist/types/copy.d.ts.map +1 -1
- package/dist/types/pt-BR.d.ts +15 -18
- package/dist/types/pt-BR.d.ts.map +1 -1
- package/dist/types/pt-BR.data-display.d.ts +13 -0
- package/dist/types/pt-BR.data-display.d.ts.map +1 -0
- package/dist/types/pt-BR.feedback.d.ts +8 -0
- package/dist/types/pt-BR.feedback.d.ts.map +1 -0
- package/dist/types/pt-BR.form.d.ts +13 -0
- package/dist/types/pt-BR.form.d.ts.map +1 -0
- package/dist/types/pt-BR.layout.d.ts +7 -0
- package/dist/types/pt-BR.layout.d.ts.map +1 -0
- package/dist/types/pt-BR.navigation.d.ts +8 -0
- package/dist/types/pt-BR.navigation.d.ts.map +1 -0
- package/dist/types/pt-BR.shared.d.ts +21 -0
- package/dist/types/pt-BR.shared.d.ts.map +1 -0
- package/dist/types/pt-BR.utility.d.ts +8 -0
- package/dist/types/pt-BR.utility.d.ts.map +1 -0
- package/dist/types/user-avatar/user-avatar.d.ts +7 -1
- package/dist/types/user-avatar/user-avatar.d.ts.map +1 -1
- package/dist/user-avatar.js +2 -2
- package/dist/user-avatar.js.map +1 -1
- package/dist/utility/InfiniteScroll.js +7 -5
- package/dist/utility/InfiniteScroll.js.map +1 -1
- package/dist/utility/InstallPrompt.js +14 -13
- package/dist/utility/InstallPrompt.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-display/Alert/Alert.tsx +22 -5
- package/src/components/data-display/Alert/Alert.types.ts +20 -10
- package/src/components/data-display/AsyncStateContainer/AsyncStateContainer.tsx +2 -1
- package/src/components/data-display/AsyncStateContainer/AsyncStateContainer.types.ts +6 -0
- package/src/components/data-display/Banner/Banner.tsx +5 -2
- package/src/components/data-display/Banner/Banner.types.ts +2 -0
- package/src/components/data-display/CardKit/card-actions-context.tsx +4 -0
- package/src/components/data-display/Carousel/Carousel.chrome.tsx +5 -0
- package/src/components/data-display/Carousel/Carousel.parts.tsx +4 -3
- package/src/components/data-display/Carousel/Carousel.types.ts +7 -0
- package/src/components/data-display/DataGrid/DataGrid.states.tsx +3 -3
- package/src/components/data-display/DataGrid/DataGrid.tsx +1 -1
- package/src/components/data-display/DataGrid/DataGrid.types.ts +5 -0
- package/src/components/data-display/DataViews/data-views-category-pill.tsx +2 -0
- package/src/components/data-display/DataViews/data-views-copy.ts +29 -1
- package/src/components/data-display/DataViews/data-views-day-input.tsx +14 -3
- package/src/components/data-display/DataViews/data-views-filter-panel.tsx +2 -1
- package/src/components/data-display/DataViews/data-views-grid-bodies.tsx +3 -0
- package/src/components/data-display/DataViews/data-views-grid-parts.tsx +9 -10
- package/src/components/data-display/DataViews/data-views-more-fields.tsx +3 -1
- package/src/components/data-display/DataViews/data-views-pagination.tsx +3 -0
- package/src/components/data-display/DataViews/data-views-range-pill.tsx +3 -1
- package/src/components/data-display/DataViews/data-views-table-parts.tsx +1 -0
- package/src/components/data-display/DataViews/data-views-toolbar.tsx +2 -0
- package/src/components/data-display/HoverCard/HoverCard.content.tsx +10 -2
- package/src/components/data-display/HoverCard/HoverCard.tsx +2 -3
- package/src/components/data-display/HoverCard/HoverCard.types.ts +2 -0
- package/src/components/data-display/Lightbox/Lightbox.tsx +3 -0
- package/src/components/data-display/Lightbox/Lightbox.types.ts +9 -0
- package/src/components/data-display/Lightbox/LightboxControls.tsx +28 -15
- package/src/components/data-display/Lightbox/lightbox-copy-context.tsx +42 -0
- package/src/components/data-display/MapPreview/MapControlBar.tsx +17 -9
- package/src/components/data-display/MapPreview/MapLayers.tsx +2 -0
- package/src/components/data-display/MapPreview/MapPreview.types.ts +10 -0
- package/src/components/data-display/MapPreview/MapSearchBar.tsx +4 -1
- package/src/components/data-display/Table/Table.tsx +7 -2
- package/src/components/data-display/Table/Table.types.ts +5 -0
- package/src/components/data-display/Table/TableStates.tsx +2 -2
- package/src/components/data-display/TimingDiagram/TimingDiagram.tsx +3 -2
- package/src/components/data-display/TimingDiagram/TimingDiagram.types.ts +3 -0
- package/src/components/feedback/Sonner/Sonner.tsx +15 -3
- package/src/components/feedback/Sonner/Sonner.types.ts +2 -0
- package/src/components/feedback/Sonner/SonnerToast.tsx +2 -1
- package/src/components/feedback/StackedModal/StackedModal.parts.tsx +10 -3
- package/src/components/feedback/StackedModal/StackedModal.tsx +2 -1
- package/src/components/feedback/StackedModal/StackedModal.types.ts +2 -0
- package/src/components/feedback/TutorialOverlay/TutorialOverlay.tsx +13 -1
- package/src/components/feedback/TutorialOverlay/TutorialOverlay.types.ts +3 -0
- package/src/components/feedback/TutorialOverlay/TutorialStepBody.tsx +10 -4
- package/src/components/form/AddressAutocomplete/AddressAutocomplete.types.ts +7 -0
- package/src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx +2 -0
- package/src/components/form/AddressAutocomplete/AddressFallbackField.tsx +4 -2
- package/src/components/form/AddressAutocomplete/AddressInputField.tsx +13 -6
- package/src/components/form/Autocomplete/Autocomplete.parts.tsx +9 -6
- package/src/components/form/Autocomplete/Autocomplete.tsx +2 -1
- package/src/components/form/Autocomplete/Autocomplete.types.ts +7 -0
- package/src/components/form/Calendar/Calendar.tsx +2 -2
- package/src/components/form/Calendar/Calendar.types.ts +7 -0
- package/src/components/form/CodeEditor/CodeEditor.tsx +6 -4
- package/src/components/form/CodeEditor/CodeEditor.types.ts +7 -0
- package/src/components/form/CodeEditor/CodeEditorToolbar.tsx +12 -5
- package/src/components/form/DateRangePicker/DateRangePicker.range.ts +2 -0
- package/src/components/form/DateRangePicker/DateRangePicker.tsx +4 -0
- package/src/components/form/DateRangePicker/DateRangePicker.types.ts +11 -0
- package/src/components/form/DateRangePicker/DateRangePickerFields.tsx +2 -0
- package/src/components/form/Menubar/Menubar.toolbar.tsx +3 -1
- package/src/components/form/Menubar/Menubar.tsx +2 -1
- package/src/components/form/Menubar/Menubar.types.ts +5 -0
- package/src/components/form/PasswordStrength/PasswordStrength.helpers.tsx +33 -17
- package/src/components/form/PasswordStrength/PasswordStrength.tsx +29 -13
- package/src/components/form/PasswordStrength/PasswordStrength.types.ts +9 -0
- package/src/components/form/PhoneInput/PhoneInput.tsx +15 -5
- package/src/components/form/PhoneInput/PhoneInput.types.ts +7 -0
- package/src/components/form/SearchPalette/SearchPalette.parts.tsx +4 -1
- package/src/components/form/SearchPalette/SearchPalette.tsx +4 -1
- package/src/components/form/SearchPalette/SearchPalette.types.ts +6 -0
- package/src/components/form/Textarea/Textarea.tsx +6 -1
- package/src/components/form/Textarea/Textarea.types.ts +14 -1
- package/src/components/form/Textarea/TextareaRichEditor.tsx +28 -18
- package/src/components/form/UploadButton/UploadButton.parts.tsx +16 -7
- package/src/components/form/UploadButton/UploadButton.tsx +4 -1
- package/src/components/form/UploadButton/UploadButton.types.ts +8 -0
- package/src/components/layout/ContentToolbar/ContentToolbar.tsx +10 -2
- package/src/components/layout/ContentToolbar/ContentToolbar.types.ts +12 -0
- package/src/components/layout/ContentToolbar/MultiSelectDropdown.tsx +15 -4
- package/src/components/layout/ContentToolbar/SortByDropdown.tsx +12 -3
- package/src/components/layout/ContentToolbar/ViewSelector.tsx +2 -1
- package/src/components/layout/Dashboard/Dashboard.types.ts +4 -0
- package/src/components/layout/Dashboard/DashboardParts.tsx +2 -1
- package/src/components/layout/ScrollArea/ScrollArea.tsx +16 -3
- package/src/components/layout/ScrollArea/ScrollArea.types.ts +19 -4
- package/src/components/layout/ScrollArea/ScrollViewport.tsx +4 -1
- package/src/components/layout/TableFilter/TableFilter.tsx +19 -11
- package/src/components/layout/TableFilter/TableFilter.types.ts +8 -0
- package/src/components/layout/TableFilter/TableFilterContext.tsx +10 -0
- package/src/components/navigation/Breadcrumbs/BreadcrumbEntry.tsx +11 -4
- package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +2 -0
- package/src/components/navigation/Breadcrumbs/Breadcrumbs.types.ts +3 -0
- package/src/components/navigation/CommandPalette/CommandPalette.tsx +15 -5
- package/src/components/navigation/CommandPalette/CommandPalette.types.ts +3 -0
- package/src/components/navigation/CommandPalette/CommandPaletteResults.tsx +5 -2
- package/src/components/navigation/Pagination/Pagination.tsx +2 -0
- package/src/components/navigation/Pagination/Pagination.types.ts +2 -0
- package/src/components/navigation/Pagination/PaginationParts.tsx +4 -1
- package/src/components/navigation/Tabs/Tabs.tsx +8 -3
- package/src/components/navigation/Tabs/Tabs.types.ts +2 -0
- package/src/components/utility/InfiniteScroll/InfiniteScroll.parts.tsx +4 -4
- package/src/components/utility/InfiniteScroll/InfiniteScroll.tsx +4 -2
- package/src/components/utility/InfiniteScroll/InfiniteScroll.types.ts +6 -0
- package/src/components/utility/InstallPrompt/InstallPrompt.tsx +18 -13
- package/src/components/utility/InstallPrompt/InstallPrompt.types.ts +9 -7
- package/src/copy/data-display.ts +60 -0
- package/src/copy/feedback.ts +39 -0
- package/src/copy/form.ts +154 -0
- package/src/copy/layout.ts +18 -0
- package/src/copy/navigation.ts +25 -0
- package/src/copy/shared.ts +122 -0
- package/src/copy/utility.ts +36 -0
- package/src/copy.ts +13 -117
- package/src/pt-BR.data-display.ts +236 -0
- package/src/pt-BR.feedback.ts +25 -0
- package/src/pt-BR.form.ts +96 -0
- package/src/pt-BR.layout.ts +15 -0
- package/src/pt-BR.navigation.ts +21 -0
- package/src/pt-BR.shared.ts +94 -0
- package/src/pt-BR.ts +15 -267
- package/src/pt-BR.utility.ts +21 -0
- package/src/user-avatar/user-avatar.tsx +8 -2
- package/dist/chunk-3KWD5Y5O.js.map +0 -1
- package/dist/chunk-CEKPLUQV.js.map +0 -1
- package/dist/chunk-DFVRZ3UK.js.map +0 -1
- package/dist/chunk-H7UAGTVW.js.map +0 -1
- package/dist/chunk-JP55QWVR.js.map +0 -1
- package/dist/chunk-NUCLEOHF.js.map +0 -1
- package/dist/chunk-QLBYAYUG.js.map +0 -1
- package/dist/chunk-QZZVHY6U.js.map +0 -1
|
@@ -18,6 +18,8 @@ export const InfiniteScroll: React.FC<InfiniteScrollProps> = ({
|
|
|
18
18
|
threshold = 150,
|
|
19
19
|
loadMore,
|
|
20
20
|
loader,
|
|
21
|
+
loadingText,
|
|
22
|
+
endText,
|
|
21
23
|
endMessage,
|
|
22
24
|
error,
|
|
23
25
|
errorComponent,
|
|
@@ -45,9 +47,9 @@ export const InfiniteScroll: React.FC<InfiniteScrollProps> = ({
|
|
|
45
47
|
// The tail of the list is one of four things: the end message, an error, a
|
|
46
48
|
// spinner, or the sentinel that asks for the next page.
|
|
47
49
|
const renderSentinel = () => {
|
|
48
|
-
if (!hasMore) return endMessage || <DefaultEndMessage />;
|
|
50
|
+
if (!hasMore) return endMessage || <DefaultEndMessage endText={endText} />;
|
|
49
51
|
if (error) return errorComponent || <DefaultError error={error} />;
|
|
50
|
-
if (loading) return loader || <DefaultLoader />;
|
|
52
|
+
if (loading) return loader || <DefaultLoader loadingText={loadingText} />;
|
|
51
53
|
|
|
52
54
|
return (
|
|
53
55
|
<div
|
|
@@ -3,6 +3,12 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
export type InfiniteScrollVariant = 'default' | 'reverse' | 'horizontal';
|
|
4
4
|
|
|
5
5
|
export interface InfiniteScrollProps {
|
|
6
|
+
/**
|
|
7
|
+
* The two states the scroller renders on its own: fetching the next page,
|
|
8
|
+
* and having reached the end. REQUIRED — both were English literals.
|
|
9
|
+
*/
|
|
10
|
+
loadingText: string;
|
|
11
|
+
endText: string;
|
|
6
12
|
children: ReactNode;
|
|
7
13
|
variant?: InfiniteScrollVariant;
|
|
8
14
|
hasMore: boolean;
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { installPromptStyles } from './InstallPrompt.styles';
|
|
9
9
|
import type { InstallPlatform, InstallPromptProps } from './InstallPrompt.types';
|
|
10
10
|
import { usePwaInstall } from './usePwaInstall';
|
|
11
|
+
import type { InstallPromptCopy } from '../../../copy';
|
|
11
12
|
|
|
12
13
|
const StyledInstallPrompt = styled(Box)(({ theme }) => installPromptStyles(theme));
|
|
13
14
|
|
|
@@ -20,9 +21,10 @@ const testIdFor = (base: string | undefined, suffix: string) =>
|
|
|
20
21
|
* be a control that does nothing when pressed.
|
|
21
22
|
*/
|
|
22
23
|
const IosInstructions: React.FC<{
|
|
24
|
+
copy: InstallPromptCopy;
|
|
23
25
|
instructions?: React.ReactNode;
|
|
24
26
|
dataTestId?: string;
|
|
25
|
-
}> = ({ instructions, dataTestId }) => (
|
|
27
|
+
}> = ({ copy, instructions, dataTestId }) => (
|
|
26
28
|
<Typography
|
|
27
29
|
className="install-prompt-description"
|
|
28
30
|
variant="body2"
|
|
@@ -32,20 +34,22 @@ const IosInstructions: React.FC<{
|
|
|
32
34
|
>
|
|
33
35
|
{instructions ?? (
|
|
34
36
|
<>
|
|
35
|
-
|
|
37
|
+
{copy.iosTapBefore} <IosShare fontSize="small" aria-label={copy.shareLabel} />{' '}
|
|
38
|
+
{copy.iosTapAfter}
|
|
36
39
|
</>
|
|
37
40
|
)}
|
|
38
41
|
</Typography>
|
|
39
42
|
);
|
|
40
43
|
|
|
41
44
|
const InstallPromptBody: React.FC<{
|
|
45
|
+
copy: InstallPromptCopy;
|
|
42
46
|
icon?: React.ReactNode;
|
|
43
47
|
title: string;
|
|
44
48
|
description?: string;
|
|
45
49
|
iosInstructions?: React.ReactNode;
|
|
46
50
|
platform: InstallPlatform;
|
|
47
51
|
dataTestId?: string;
|
|
48
|
-
}> = ({ icon, title, description, iosInstructions, platform, dataTestId }) => (
|
|
52
|
+
}> = ({ copy, icon, title, description, iosInstructions, platform, dataTestId }) => (
|
|
49
53
|
<>
|
|
50
54
|
<Box className="install-prompt-icon" aria-hidden="true">
|
|
51
55
|
{icon ?? <InstallMobile />}
|
|
@@ -73,7 +77,7 @@ const InstallPromptBody: React.FC<{
|
|
|
73
77
|
)}
|
|
74
78
|
|
|
75
79
|
{platform === 'ios' && (
|
|
76
|
-
<IosInstructions instructions={iosInstructions} dataTestId={dataTestId} />
|
|
80
|
+
<IosInstructions copy={copy} instructions={iosInstructions} dataTestId={dataTestId} />
|
|
77
81
|
)}
|
|
78
82
|
</Box>
|
|
79
83
|
</>
|
|
@@ -118,17 +122,17 @@ const InstallPromptActions: React.FC<{
|
|
|
118
122
|
* browser with no install route at all — so it is safe to mount unconditionally
|
|
119
123
|
* in a layout rather than gating it at the call site.
|
|
120
124
|
*
|
|
121
|
-
*
|
|
122
|
-
* locale-neutral and the consuming app supplies its own wording.
|
|
125
|
+
* Every string is REQUIRED host config (`copy`): this package stays
|
|
126
|
+
* locale-neutral and the consuming app supplies its own wording. There is no
|
|
127
|
+
* English default to fall through to, so a missing word is a typecheck failure
|
|
128
|
+
* rather than an English sentence in a pt-BR store.
|
|
123
129
|
*/
|
|
124
130
|
export const InstallPrompt = React.forwardRef<HTMLDivElement, InstallPromptProps>(
|
|
125
131
|
(
|
|
126
132
|
{
|
|
127
|
-
|
|
133
|
+
copy,
|
|
128
134
|
description,
|
|
129
|
-
installLabel = 'Install',
|
|
130
135
|
iosInstructions,
|
|
131
|
-
dismissLabel = 'Dismiss install prompt',
|
|
132
136
|
icon,
|
|
133
137
|
onInstall,
|
|
134
138
|
onDismiss,
|
|
@@ -163,13 +167,14 @@ export const InstallPrompt = React.forwardRef<HTMLDivElement, InstallPromptProps
|
|
|
163
167
|
ref={ref}
|
|
164
168
|
className={className}
|
|
165
169
|
role="region"
|
|
166
|
-
aria-label={title}
|
|
170
|
+
aria-label={copy.title}
|
|
167
171
|
data-testid={dataTestId}
|
|
168
172
|
{...props}
|
|
169
173
|
>
|
|
170
174
|
<InstallPromptBody
|
|
171
175
|
icon={icon}
|
|
172
|
-
|
|
176
|
+
copy={copy}
|
|
177
|
+
title={copy.title}
|
|
173
178
|
description={description}
|
|
174
179
|
iosInstructions={iosInstructions}
|
|
175
180
|
platform={platform}
|
|
@@ -178,8 +183,8 @@ export const InstallPrompt = React.forwardRef<HTMLDivElement, InstallPromptProps
|
|
|
178
183
|
|
|
179
184
|
<InstallPromptActions
|
|
180
185
|
platform={platform}
|
|
181
|
-
installLabel={installLabel}
|
|
182
|
-
dismissLabel={dismissLabel}
|
|
186
|
+
installLabel={copy.installLabel}
|
|
187
|
+
dismissLabel={copy.dismissLabel}
|
|
183
188
|
onInstallClick={handleInstall}
|
|
184
189
|
onDismissClick={handleDismiss}
|
|
185
190
|
dataTestId={dataTestId}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
+
import type { InstallPromptCopy } from '../../../copy';
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* The Chromium-only event that makes a PWA installable from inside the page.
|
|
5
7
|
* It is NOT in TypeScript's DOM lib because it is not a standard: Safari and
|
|
@@ -70,16 +72,16 @@ export interface PwaInstallState {
|
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
export interface InstallPromptProps {
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Every word this prompt renders. REQUIRED: this package ships no default
|
|
77
|
+
* copy, and the iOS half is a GESTURE instruction — a shopper who cannot
|
|
78
|
+
* read it cannot install the app at all.
|
|
79
|
+
*/
|
|
80
|
+
copy: InstallPromptCopy;
|
|
75
81
|
/** Supporting line under the title. */
|
|
76
82
|
description?: string;
|
|
77
|
-
/**
|
|
78
|
-
installLabel?: string;
|
|
79
|
-
/** Replaces the built-in iOS Share → Add to Home Screen wording. */
|
|
83
|
+
/** Replaces the built-in iOS Share → Add to Home Screen wording outright. */
|
|
80
84
|
iosInstructions?: ReactNode;
|
|
81
|
-
/** Accessible label for the dismiss button. */
|
|
82
|
-
dismissLabel?: string;
|
|
83
85
|
/** Leading icon. Defaults to an install glyph. */
|
|
84
86
|
icon?: ReactNode;
|
|
85
87
|
/** Called with the outcome after the native prompt resolves. */
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The display family's words — the lightbox and map viewers, the carousel,
|
|
3
|
+
* the timing diagram, and the shared empty/error states.
|
|
4
|
+
*
|
|
5
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
6
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
7
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The lightbox's controls, every one of them a glyph with no text.
|
|
12
|
+
*
|
|
13
|
+
* So this object IS what a screen-reader user hears for the whole viewer —
|
|
14
|
+
* which is why it shipped as English literals for so long without anyone
|
|
15
|
+
* noticing: the sighted path renders identically either way.
|
|
16
|
+
*/
|
|
17
|
+
export interface LightboxCopy {
|
|
18
|
+
close: string;
|
|
19
|
+
previous: string;
|
|
20
|
+
next: string;
|
|
21
|
+
zoomIn: string;
|
|
22
|
+
zoomOut: string;
|
|
23
|
+
resetZoom: string;
|
|
24
|
+
/** The slideshow toggle, in its two states. */
|
|
25
|
+
play: string;
|
|
26
|
+
pause: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** The map preview's control bar — same shape, same reason, as the lightbox. */
|
|
30
|
+
export interface MapPreviewCopy {
|
|
31
|
+
zoomIn: string;
|
|
32
|
+
zoomOut: string;
|
|
33
|
+
center: string;
|
|
34
|
+
mapType: string;
|
|
35
|
+
fullscreen: string;
|
|
36
|
+
search: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** The carousel's two arrows, which carry a glyph and nothing else. */
|
|
40
|
+
export interface CarouselCopy {
|
|
41
|
+
previous: string;
|
|
42
|
+
next: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The request-timing diagram's own two strings. */
|
|
46
|
+
export interface TimingDiagramCopy {
|
|
47
|
+
regionLabel: string;
|
|
48
|
+
heading: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface DataStateCopy {
|
|
52
|
+
/** No rows at all — distinct from "no rows for these filters". */
|
|
53
|
+
empty: string;
|
|
54
|
+
loading: string;
|
|
55
|
+
/** The infinite scroller reached the end. */
|
|
56
|
+
endOfList: string;
|
|
57
|
+
/** An alert's and a banner's dismiss, neither of which has a visible label. */
|
|
58
|
+
dismissAlert: string;
|
|
59
|
+
dismissBanner: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The feedback family's words — the tutorial overlay and the app chrome it
|
|
3
|
+
* points at.
|
|
4
|
+
*
|
|
5
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
6
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
7
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The states a data surface can be in with nothing to draw, and the dismiss
|
|
12
|
+
* every banner-like surface carries.
|
|
13
|
+
*
|
|
14
|
+
* One object rather than six, because these are the same four sentences the
|
|
15
|
+
* table, the grid, the async container, the hover card and the infinite
|
|
16
|
+
* scroller each rendered their own copy of.
|
|
17
|
+
*/
|
|
18
|
+
/** The guided tour's four controls, and the toast/modal chrome around it. */
|
|
19
|
+
export interface TutorialCopy {
|
|
20
|
+
skip: string;
|
|
21
|
+
previous: string;
|
|
22
|
+
next: string;
|
|
23
|
+
restart: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Chrome that carries a glyph and no text, across several small surfaces. */
|
|
27
|
+
export interface ChromeCopy {
|
|
28
|
+
/** The toast's dismiss, and the stacked modal's step-back arrow. */
|
|
29
|
+
dismissToast: string;
|
|
30
|
+
goBack: string;
|
|
31
|
+
/** A dashboard panel's close, and a tab's. */
|
|
32
|
+
closePanel: string;
|
|
33
|
+
closeTab: string;
|
|
34
|
+
/** The scroll region itself, and the button that returns to its top. */
|
|
35
|
+
scrollRegion: string;
|
|
36
|
+
scrollToTop: string;
|
|
37
|
+
/** The share affordance in the install prompt. */
|
|
38
|
+
share: string;
|
|
39
|
+
}
|
package/src/copy/form.ts
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The form family's words. The largest group, and the one where the leak was
|
|
3
|
+
* least visible: half of these are tooltips and announcements that only a
|
|
4
|
+
* screen reader ever receives, so a language pass over the rendered text
|
|
5
|
+
* walked straight past them.
|
|
6
|
+
*
|
|
7
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
8
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
9
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The address field's three sentences. Two of them are about Google Maps
|
|
14
|
+
* failing to arrive — read by the shopper while the field is unusable, which
|
|
15
|
+
* is the worst moment to be spoken to in the wrong language.
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressAutocompleteCopy {
|
|
18
|
+
/** Placeholder while the Maps script is still loading. */
|
|
19
|
+
loadingMaps: string;
|
|
20
|
+
/** The alert shown when the script never arrived. */
|
|
21
|
+
mapsLoadFailed: string;
|
|
22
|
+
/** The pin button's tooltip, which is also its accessible name. */
|
|
23
|
+
useCurrentLocation: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** What an `Autocomplete` renders that is not one of the host's own options. */
|
|
27
|
+
export interface AutocompleteCopy {
|
|
28
|
+
/** The two rows shown in place of options: fetching, and came back empty. */
|
|
29
|
+
loading: string;
|
|
30
|
+
noResults: string;
|
|
31
|
+
/** The input's own prompt, used when the host does not override it. */
|
|
32
|
+
placeholder: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The code editor's chrome. Every one of the four action buttons is a glyph
|
|
37
|
+
* whose tooltip IS its accessible name, so this object is the whole of what a
|
|
38
|
+
* screen reader reads out for the toolbar.
|
|
39
|
+
*/
|
|
40
|
+
export interface CodeEditorCopy {
|
|
41
|
+
/** Shown while the editor bundle is still arriving. */
|
|
42
|
+
loading: string;
|
|
43
|
+
/** The badge beside the language when the buffer cannot be edited. */
|
|
44
|
+
readOnly: string;
|
|
45
|
+
/** The format button's tooltip. Carries its own keyboard shortcut. */
|
|
46
|
+
formatCode: string;
|
|
47
|
+
/** The wrap toggle, in its two states. */
|
|
48
|
+
enableWrap: string;
|
|
49
|
+
disableWrap: string;
|
|
50
|
+
/** The copy button, before and after it has been pressed. */
|
|
51
|
+
copyToClipboard: string;
|
|
52
|
+
copied: string;
|
|
53
|
+
/** The fullscreen toggle, in its two states. */
|
|
54
|
+
enterFullscreen: string;
|
|
55
|
+
exitFullscreen: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** The five strength bands, weakest first. */
|
|
59
|
+
export interface PasswordStrengthBandCopy {
|
|
60
|
+
veryWeak: string;
|
|
61
|
+
weak: string;
|
|
62
|
+
fair: string;
|
|
63
|
+
good: string;
|
|
64
|
+
strong: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* One line per requirement. `minLength` takes the configured count because the
|
|
69
|
+
* number is part of the sentence, and a language may not put it where English
|
|
70
|
+
* does.
|
|
71
|
+
*/
|
|
72
|
+
export interface PasswordRequirementCopy {
|
|
73
|
+
minLength(count: number): string;
|
|
74
|
+
uppercase: string;
|
|
75
|
+
lowercase: string;
|
|
76
|
+
numbers: string;
|
|
77
|
+
special: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Everything the password meter renders. */
|
|
81
|
+
export interface PasswordStrengthCopy {
|
|
82
|
+
/** The three headings: the meter, the checklist, the tips. */
|
|
83
|
+
strengthHeading: string;
|
|
84
|
+
requirementsHeading: string;
|
|
85
|
+
suggestionsHeading: string;
|
|
86
|
+
bands: PasswordStrengthBandCopy;
|
|
87
|
+
/** The checklist rows, and the tip shown for each unmet one. */
|
|
88
|
+
requirements: PasswordRequirementCopy;
|
|
89
|
+
suggestions: PasswordRequirementCopy;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The rich-text toolbar. Ten glyph buttons, every one of them named ONLY by
|
|
94
|
+
* its tooltip — so this object is the whole of what a screen reader reads out
|
|
95
|
+
* for the editor's controls.
|
|
96
|
+
*/
|
|
97
|
+
export interface RichEditorToolbarCopy {
|
|
98
|
+
bold: string;
|
|
99
|
+
italic: string;
|
|
100
|
+
underline: string;
|
|
101
|
+
bulletList: string;
|
|
102
|
+
numberedList: string;
|
|
103
|
+
quote: string;
|
|
104
|
+
code: string;
|
|
105
|
+
insertLink: string;
|
|
106
|
+
textColor: string;
|
|
107
|
+
backgroundColor: string;
|
|
108
|
+
/** The browser prompt the link button opens, asking for the URL. */
|
|
109
|
+
linkPrompt: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* What the phone field says on its own account. The picker's name is the whole
|
|
114
|
+
* of what a screen reader gets for a control rendered as a flag and a dial
|
|
115
|
+
* code, and the invalid sentence is read by the shopper at the checkout.
|
|
116
|
+
*/
|
|
117
|
+
export interface PhoneInputCopy {
|
|
118
|
+
/** The country picker's accessible name. */
|
|
119
|
+
selectCountry: string;
|
|
120
|
+
/**
|
|
121
|
+
* The number does not validate for the chosen country. Takes the country's
|
|
122
|
+
* own name, because a language may not place it where English does.
|
|
123
|
+
*/
|
|
124
|
+
invalidNumber(countryName: string): string;
|
|
125
|
+
/** Stands in for the country's name before one has been resolved. */
|
|
126
|
+
unknownCountry: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* What the upload control says beyond the host's own button label. Three of
|
|
131
|
+
* the four are announcements a screen reader reads and nothing renders — which
|
|
132
|
+
* is why they stayed English through every language pass.
|
|
133
|
+
*/
|
|
134
|
+
export interface UploadButtonCopy {
|
|
135
|
+
/** The control's own label, used when the host does not override it. */
|
|
136
|
+
buttonLabel: string;
|
|
137
|
+
/** The dropzone's second line, under the host's own label. */
|
|
138
|
+
dropzoneHint: string;
|
|
139
|
+
/**
|
|
140
|
+
* The dropzone's accessible name, which prefixes the host's label — it says
|
|
141
|
+
* what KIND of control this is before saying what it uploads.
|
|
142
|
+
*/
|
|
143
|
+
dropzoneRole(label: string): string;
|
|
144
|
+
/** The button's label while an upload is in flight. */
|
|
145
|
+
uploading: string;
|
|
146
|
+
/** Announced when a dragged file is over the zone and would be accepted. */
|
|
147
|
+
dropReady: string;
|
|
148
|
+
/** The caption under the progress bar. */
|
|
149
|
+
percentUploaded(percent: number): string;
|
|
150
|
+
/** The same progress, announced rather than shown. */
|
|
151
|
+
uploadInProgress(percent: number): string;
|
|
152
|
+
/** The component's own error, announced. Takes the message it wraps. */
|
|
153
|
+
errorAnnouncement(message: string): string;
|
|
154
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout family's words — the filter shell a grid mounts around itself.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
5
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
6
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface TableFilterCopy {
|
|
10
|
+
/** Drop every applied filter, and the keyword box's own clear. */
|
|
11
|
+
clearAllFilters: string;
|
|
12
|
+
clearKeyword: string;
|
|
13
|
+
/** A numeric range whose maximum is below its minimum. */
|
|
14
|
+
invalidRange: string;
|
|
15
|
+
/** The two free-text bounds, which carry no visible label of their own. */
|
|
16
|
+
rangeMin: string;
|
|
17
|
+
rangeMax: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The navigation family's words — the command palette and the breadcrumb
|
|
3
|
+
* trail.
|
|
4
|
+
*
|
|
5
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
6
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
7
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** The command palette's footer hints and its empty state. */
|
|
11
|
+
export interface CommandPaletteCopy {
|
|
12
|
+
/** The three keyboard hints, each a chip in the footer. */
|
|
13
|
+
execute: string;
|
|
14
|
+
navigate: string;
|
|
15
|
+
close: string;
|
|
16
|
+
/** The recent-commands group, and the nudge under "nothing found". */
|
|
17
|
+
recent: string;
|
|
18
|
+
tryAnotherTerm: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The breadcrumb's overflow control, in its two spellings. */
|
|
22
|
+
export interface BreadcrumbCopy {
|
|
23
|
+
showMore: string;
|
|
24
|
+
moreItems: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Words shared by more than one family: the guided-section chrome, the
|
|
3
|
+
* confirm dialog behind a destructive action, the category picker and the CEP
|
|
4
|
+
* lookup.
|
|
5
|
+
*
|
|
6
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
7
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
8
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export interface SectionOnboardingCopy {
|
|
12
|
+
/** The button that begins the guided section. */
|
|
13
|
+
start: string;
|
|
14
|
+
/** The reveal toggle in the configured state, and its collapsed twin. */
|
|
15
|
+
edit: string;
|
|
16
|
+
collapse: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ConfirmActionCopy {
|
|
20
|
+
/** The dismiss button every confirmation shares. */
|
|
21
|
+
cancel: string;
|
|
22
|
+
/** Shown when the action fails and the caller supplied no reason. */
|
|
23
|
+
defaultError: string;
|
|
24
|
+
/**
|
|
25
|
+
* The fallback body when the caller names no entity.
|
|
26
|
+
*
|
|
27
|
+
* A caller that DOES name one gets the host's own sentence — this package
|
|
28
|
+
* never guesses a noun for someone else's rows.
|
|
29
|
+
*/
|
|
30
|
+
irreversible: string;
|
|
31
|
+
/**
|
|
32
|
+
* The typed-confirmation prompt, naming the exact word that unlocks the
|
|
33
|
+
* button. A function because where that word sits in the sentence, and how
|
|
34
|
+
* it is quoted, is the translator's call.
|
|
35
|
+
*/
|
|
36
|
+
typeToConfirm(expected: string): string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CategorySelectCopy {
|
|
40
|
+
/**
|
|
41
|
+
* What categories are FOR, in the host's own terms.
|
|
42
|
+
*
|
|
43
|
+
* This used to read "Categorias organizam o cardápio e os filtros da loja" —
|
|
44
|
+
* a restaurant's menu, hard-coded into a generic picker. A host selling
|
|
45
|
+
* insurance policies got told about its cardápio.
|
|
46
|
+
*/
|
|
47
|
+
purpose: string;
|
|
48
|
+
clearSelection: string;
|
|
49
|
+
/**
|
|
50
|
+
* The quick actions above the tree. Each toggles as a PAIR, and each label
|
|
51
|
+
* says what pressing it will do rather than what state the list is in — so a
|
|
52
|
+
* translator needs both halves, not one plus a negation.
|
|
53
|
+
*/
|
|
54
|
+
selectAll: string;
|
|
55
|
+
deselectAll: string;
|
|
56
|
+
expandAll: string;
|
|
57
|
+
collapseAll: string;
|
|
58
|
+
/**
|
|
59
|
+
* ONE row's chevron, in its two states — a glyph button inside the row
|
|
60
|
+
* button, so this pair is the whole of what a screen reader reads for it.
|
|
61
|
+
* The category's own name is appended by the caller.
|
|
62
|
+
*/
|
|
63
|
+
expandCategory(name: string): string;
|
|
64
|
+
collapseCategory(name: string): string;
|
|
65
|
+
/**
|
|
66
|
+
* What the closed control invites, and it differs by mode: picking ONE
|
|
67
|
+
* category is a move, picking several is a filter. Both were pt-BR defaults
|
|
68
|
+
* behind an optional prop, which is the arrangement this port removes.
|
|
69
|
+
*/
|
|
70
|
+
placeholderSingle: string;
|
|
71
|
+
placeholderMulti: string;
|
|
72
|
+
/** The empty state, when the host has no categories at all. */
|
|
73
|
+
emptyTitle: string;
|
|
74
|
+
createCategory: string;
|
|
75
|
+
/**
|
|
76
|
+
* The search found nothing.
|
|
77
|
+
*
|
|
78
|
+
* Two of the four interpolate the term typed, so they are functions rather
|
|
79
|
+
* than strings with a placeholder to substitute: where the term sits in the
|
|
80
|
+
* sentence is the translator's call, not ours.
|
|
81
|
+
*/
|
|
82
|
+
noResults: {
|
|
83
|
+
title: (query: string) => string;
|
|
84
|
+
hint: string;
|
|
85
|
+
clearSearch: string;
|
|
86
|
+
create: (query: string) => string;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The panel's two footers.
|
|
90
|
+
*
|
|
91
|
+
* `selectedCount` is a function because Portuguese agrees the participle with
|
|
92
|
+
* the count and English does not — the shape has to let a translator decide
|
|
93
|
+
* the whole sentence, not fill a slot in ours.
|
|
94
|
+
*/
|
|
95
|
+
/** The search box above the list, and the chips beneath it. */
|
|
96
|
+
search: {
|
|
97
|
+
/** Two placeholders: a single-select picker offers no subcategories. */
|
|
98
|
+
placeholderSingle: string;
|
|
99
|
+
placeholderMulti: string;
|
|
100
|
+
clear: string;
|
|
101
|
+
removeChip(label: string): string;
|
|
102
|
+
/** The tray above the list, counting what is already picked. */
|
|
103
|
+
pinnedLabel(count: number): string;
|
|
104
|
+
};
|
|
105
|
+
footer: {
|
|
106
|
+
selectedCount(count: number): string;
|
|
107
|
+
clear: string;
|
|
108
|
+
/** The primary button, which reads `close` while the draft is unchanged. */
|
|
109
|
+
apply: string;
|
|
110
|
+
close: string;
|
|
111
|
+
/** The single-select footer: what to do, and the way out. */
|
|
112
|
+
singleHint: string;
|
|
113
|
+
cancel: string;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface CepFieldCopy {
|
|
118
|
+
loading: string;
|
|
119
|
+
found: string;
|
|
120
|
+
/** Keyed to match `CepLookupStatus` exactly, so the lookup can index it. */
|
|
121
|
+
notfound: string;
|
|
122
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The utility family's words — the install prompt and the account card.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `copy.ts`, which is a barrel over this folder: one file
|
|
5
|
+
* listing every family is the file that grows on every port, and it stopped
|
|
6
|
+
* fitting the 400-line budget the rest of this package holds itself to.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The install prompt's own words. Two of the three surfaces here are iOS-only:
|
|
11
|
+
* Safari has no programmatic install, so the component explains the gesture
|
|
12
|
+
* instead of offering a button.
|
|
13
|
+
*/
|
|
14
|
+
export interface InstallPromptCopy {
|
|
15
|
+
/** Headline, and the Chromium install button. */
|
|
16
|
+
title: string;
|
|
17
|
+
installLabel: string;
|
|
18
|
+
/** The dismiss button's accessible name — it renders as a bare cross. */
|
|
19
|
+
dismissLabel: string;
|
|
20
|
+
/**
|
|
21
|
+
* The iOS instruction, split around the Share glyph that sits INSIDE the
|
|
22
|
+
* sentence: "Tap [share] then Add to Home Screen". Two halves rather than
|
|
23
|
+
* one string because the glyph's position is part of the sentence and a
|
|
24
|
+
* language may not put it where English does. A host wanting a different
|
|
25
|
+
* shape entirely passes `iosInstructions` and replaces the whole node.
|
|
26
|
+
*/
|
|
27
|
+
iosTapBefore: string;
|
|
28
|
+
iosTapAfter: string;
|
|
29
|
+
/** The Share glyph's accessible name, mid-sentence. */
|
|
30
|
+
shareLabel: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** The account card's one action. */
|
|
34
|
+
export interface UserAvatarCopy {
|
|
35
|
+
signOut: string;
|
|
36
|
+
}
|