@nuxt-atelier/admin 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/module.d.mts +52 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +188 -0
- package/dist/runtime/admin.css +1 -0
- package/dist/runtime/ai-off.d.ts +1 -0
- package/dist/runtime/ai-off.js +1 -0
- package/dist/runtime/appearance.d.ts +59 -0
- package/dist/runtime/appearance.js +111 -0
- package/dist/runtime/branding.d.ts +11 -0
- package/dist/runtime/branding.js +14 -0
- package/dist/runtime/components/App.d.vue.ts +6 -0
- package/dist/runtime/components/App.vue +170 -0
- package/dist/runtime/components/App.vue.d.ts +6 -0
- package/dist/runtime/components/AppearanceModal.d.vue.ts +3 -0
- package/dist/runtime/components/AppearanceModal.vue +267 -0
- package/dist/runtime/components/AppearanceModal.vue.d.ts +3 -0
- package/dist/runtime/components/AuthFrame.d.vue.ts +15 -0
- package/dist/runtime/components/AuthFrame.vue +56 -0
- package/dist/runtime/components/AuthFrame.vue.d.ts +15 -0
- package/dist/runtime/components/BlocksField.d.vue.ts +14 -0
- package/dist/runtime/components/BlocksField.vue +167 -0
- package/dist/runtime/components/BlocksField.vue.d.ts +14 -0
- package/dist/runtime/components/Brand.d.vue.ts +6 -0
- package/dist/runtime/components/Brand.vue +22 -0
- package/dist/runtime/components/Brand.vue.d.ts +6 -0
- package/dist/runtime/components/CollectionList.d.vue.ts +6 -0
- package/dist/runtime/components/CollectionList.vue +312 -0
- package/dist/runtime/components/CollectionList.vue.d.ts +6 -0
- package/dist/runtime/components/CommentsPanel.d.vue.ts +9 -0
- package/dist/runtime/components/CommentsPanel.vue +228 -0
- package/dist/runtime/components/CommentsPanel.vue.d.ts +9 -0
- package/dist/runtime/components/EntryEdit.d.vue.ts +9 -0
- package/dist/runtime/components/EntryEdit.vue +457 -0
- package/dist/runtime/components/EntryEdit.vue.d.ts +9 -0
- package/dist/runtime/components/FieldInput.d.vue.ts +13 -0
- package/dist/runtime/components/FieldInput.vue +356 -0
- package/dist/runtime/components/FieldInput.vue.d.ts +13 -0
- package/dist/runtime/components/FormSubmissions.d.vue.ts +6 -0
- package/dist/runtime/components/FormSubmissions.vue +197 -0
- package/dist/runtime/components/FormSubmissions.vue.d.ts +6 -0
- package/dist/runtime/components/GlobalSearch.d.vue.ts +10 -0
- package/dist/runtime/components/GlobalSearch.vue +145 -0
- package/dist/runtime/components/GlobalSearch.vue.d.ts +10 -0
- package/dist/runtime/components/Home.d.vue.ts +3 -0
- package/dist/runtime/components/Home.vue +247 -0
- package/dist/runtime/components/Home.vue.d.ts +3 -0
- package/dist/runtime/components/Icon.d.ts +14 -0
- package/dist/runtime/components/Icon.js +12 -0
- package/dist/runtime/components/MediaDetails.d.vue.ts +11 -0
- package/dist/runtime/components/MediaDetails.vue +222 -0
- package/dist/runtime/components/MediaDetails.vue.d.ts +11 -0
- package/dist/runtime/components/MediaField.d.vue.ts +14 -0
- package/dist/runtime/components/MediaField.vue +86 -0
- package/dist/runtime/components/MediaField.vue.d.ts +14 -0
- package/dist/runtime/components/MediaGrid.d.vue.ts +13 -0
- package/dist/runtime/components/MediaGrid.vue +49 -0
- package/dist/runtime/components/MediaGrid.vue.d.ts +13 -0
- package/dist/runtime/components/MediaLibrary.d.vue.ts +12 -0
- package/dist/runtime/components/MediaLibrary.vue +151 -0
- package/dist/runtime/components/MediaLibrary.vue.d.ts +12 -0
- package/dist/runtime/components/NotFound.d.vue.ts +6 -0
- package/dist/runtime/components/NotFound.vue +29 -0
- package/dist/runtime/components/NotFound.vue.d.ts +6 -0
- package/dist/runtime/components/NotificationBell.d.vue.ts +3 -0
- package/dist/runtime/components/NotificationBell.vue +53 -0
- package/dist/runtime/components/NotificationBell.vue.d.ts +3 -0
- package/dist/runtime/components/Page.d.vue.ts +28 -0
- package/dist/runtime/components/Page.vue +84 -0
- package/dist/runtime/components/Page.vue.d.ts +28 -0
- package/dist/runtime/components/RelatedCreate.d.vue.ts +16 -0
- package/dist/runtime/components/RelatedCreate.vue +86 -0
- package/dist/runtime/components/RelatedCreate.vue.d.ts +16 -0
- package/dist/runtime/components/RevisionHistory.d.vue.ts +16 -0
- package/dist/runtime/components/RevisionHistory.vue +145 -0
- package/dist/runtime/components/RevisionHistory.vue.d.ts +16 -0
- package/dist/runtime/components/RichTextEditor.d.vue.ts +15 -0
- package/dist/runtime/components/RichTextEditor.vue +190 -0
- package/dist/runtime/components/RichTextEditor.vue.d.ts +15 -0
- package/dist/runtime/components/RobotsSettings.d.vue.ts +3 -0
- package/dist/runtime/components/RobotsSettings.vue +173 -0
- package/dist/runtime/components/RobotsSettings.vue.d.ts +3 -0
- package/dist/runtime/components/RoleEdit.d.vue.ts +6 -0
- package/dist/runtime/components/RoleEdit.vue +234 -0
- package/dist/runtime/components/RoleEdit.vue.d.ts +6 -0
- package/dist/runtime/components/Roles.d.vue.ts +3 -0
- package/dist/runtime/components/Roles.vue +129 -0
- package/dist/runtime/components/Roles.vue.d.ts +3 -0
- package/dist/runtime/components/ScheduleSection.d.vue.ts +12 -0
- package/dist/runtime/components/ScheduleSection.vue +120 -0
- package/dist/runtime/components/ScheduleSection.vue.d.ts +12 -0
- package/dist/runtime/components/SeoPanel.d.vue.ts +7 -0
- package/dist/runtime/components/SeoPanel.vue +81 -0
- package/dist/runtime/components/SeoPanel.vue.d.ts +7 -0
- package/dist/runtime/components/Setup.d.vue.ts +3 -0
- package/dist/runtime/components/Setup.vue +79 -0
- package/dist/runtime/components/Setup.vue.d.ts +3 -0
- package/dist/runtime/components/SharedBlockUsage.d.vue.ts +7 -0
- package/dist/runtime/components/SharedBlockUsage.vue +91 -0
- package/dist/runtime/components/SharedBlockUsage.vue.d.ts +7 -0
- package/dist/runtime/components/Shell.d.vue.ts +15 -0
- package/dist/runtime/components/Shell.vue +281 -0
- package/dist/runtime/components/Shell.vue.d.ts +15 -0
- package/dist/runtime/components/SignIn.d.vue.ts +3 -0
- package/dist/runtime/components/SignIn.vue +106 -0
- package/dist/runtime/components/SignIn.vue.d.ts +3 -0
- package/dist/runtime/components/Toaster.d.vue.ts +3 -0
- package/dist/runtime/components/Toaster.vue +24 -0
- package/dist/runtime/components/Toaster.vue.d.ts +3 -0
- package/dist/runtime/components/Users.d.vue.ts +3 -0
- package/dist/runtime/components/Users.vue +226 -0
- package/dist/runtime/components/Users.vue.d.ts +3 -0
- package/dist/runtime/composables/debounced.d.ts +3 -0
- package/dist/runtime/composables/debounced.js +11 -0
- package/dist/runtime/composables/useAtelierAdmin.d.ts +17 -0
- package/dist/runtime/composables/useAtelierAdmin.js +53 -0
- package/dist/runtime/composables/useAtelierAdminPortal.d.ts +3 -0
- package/dist/runtime/composables/useAtelierAdminPortal.js +5 -0
- package/dist/runtime/composables/useAtelierAdminSchema.d.ts +182 -0
- package/dist/runtime/composables/useAtelierAdminSchema.js +26 -0
- package/dist/runtime/composables/useAtelierCollection.d.ts +49 -0
- package/dist/runtime/composables/useAtelierCollection.js +77 -0
- package/dist/runtime/composables/useAtelierComments.d.ts +50 -0
- package/dist/runtime/composables/useAtelierComments.js +46 -0
- package/dist/runtime/composables/useAtelierDashboard.d.ts +42 -0
- package/dist/runtime/composables/useAtelierDashboard.js +16 -0
- package/dist/runtime/composables/useAtelierEntryForm.d.ts +77 -0
- package/dist/runtime/composables/useAtelierEntryForm.js +184 -0
- package/dist/runtime/composables/useAtelierGlobalSearch.d.ts +12 -0
- package/dist/runtime/composables/useAtelierGlobalSearch.js +17 -0
- package/dist/runtime/composables/useAtelierMediaLibrary.d.ts +75 -0
- package/dist/runtime/composables/useAtelierMediaLibrary.js +85 -0
- package/dist/runtime/composables/useAtelierNavigation.d.ts +20 -0
- package/dist/runtime/composables/useAtelierNavigation.js +37 -0
- package/dist/runtime/composables/useAtelierNotifications.d.ts +21 -0
- package/dist/runtime/composables/useAtelierNotifications.js +34 -0
- package/dist/runtime/composables/useAtelierPermissions.d.ts +11 -0
- package/dist/runtime/composables/useAtelierPermissions.js +15 -0
- package/dist/runtime/composables/useAtelierPresence.d.ts +32 -0
- package/dist/runtime/composables/useAtelierPresence.js +95 -0
- package/dist/runtime/composables/useAtelierRealtime.d.ts +10 -0
- package/dist/runtime/composables/useAtelierRealtime.js +74 -0
- package/dist/runtime/composables/useAtelierRoles.d.ts +13 -0
- package/dist/runtime/composables/useAtelierRoles.js +15 -0
- package/dist/runtime/composables/useAtelierSeo.d.ts +34 -0
- package/dist/runtime/composables/useAtelierSeo.js +57 -0
- package/dist/runtime/composables/useAtelierSession.d.ts +35 -0
- package/dist/runtime/composables/useAtelierSession.js +36 -0
- package/dist/runtime/composables/useAtelierSetting.d.ts +11 -0
- package/dist/runtime/composables/useAtelierSetting.js +16 -0
- package/dist/runtime/composables/useAtelierUsers.d.ts +18 -0
- package/dist/runtime/composables/useAtelierUsers.js +16 -0
- package/dist/runtime/crystal-neuo/VERSION +3 -0
- package/dist/runtime/crystal-neuo/components/Alert.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Alert.vue +25 -0
- package/dist/runtime/crystal-neuo/components/Alert.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Avatar.d.vue.ts +15 -0
- package/dist/runtime/crystal-neuo/components/Avatar.vue +25 -0
- package/dist/runtime/crystal-neuo/components/Avatar.vue.d.ts +15 -0
- package/dist/runtime/crystal-neuo/components/Badge.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Badge.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Badge.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.d.vue.ts +16 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.vue +26 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.vue.d.ts +16 -0
- package/dist/runtime/crystal-neuo/components/Button.d.vue.ts +35 -0
- package/dist/runtime/crystal-neuo/components/Button.vue +31 -0
- package/dist/runtime/crystal-neuo/components/Button.vue.d.ts +35 -0
- package/dist/runtime/crystal-neuo/components/Card.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Card.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Card.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.vue +45 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.d.vue.ts +24 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.vue +43 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.vue.d.ts +24 -0
- package/dist/runtime/crystal-neuo/components/Dialog.d.vue.ts +41 -0
- package/dist/runtime/crystal-neuo/components/Dialog.vue +63 -0
- package/dist/runtime/crystal-neuo/components/Dialog.vue.d.ts +41 -0
- package/dist/runtime/crystal-neuo/components/Drawer.d.vue.ts +34 -0
- package/dist/runtime/crystal-neuo/components/Drawer.vue +45 -0
- package/dist/runtime/crystal-neuo/components/Drawer.vue.d.ts +34 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.vue +94 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Input.d.vue.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Input.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Input.vue.d.ts +26 -0
- package/dist/runtime/crystal-neuo/components/List.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/List.vue +19 -0
- package/dist/runtime/crystal-neuo/components/List.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/ListItem.d.vue.ts +20 -0
- package/dist/runtime/crystal-neuo/components/ListItem.vue +13 -0
- package/dist/runtime/crystal-neuo/components/ListItem.vue.d.ts +20 -0
- package/dist/runtime/crystal-neuo/components/Menu.d.vue.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Menu.vue +120 -0
- package/dist/runtime/crystal-neuo/components/Menu.vue.d.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Modal.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Modal.vue +37 -0
- package/dist/runtime/crystal-neuo/components/Modal.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Nav.d.vue.ts +24 -0
- package/dist/runtime/crystal-neuo/components/Nav.vue +15 -0
- package/dist/runtime/crystal-neuo/components/Nav.vue.d.ts +24 -0
- package/dist/runtime/crystal-neuo/components/NavLink.d.vue.ts +22 -0
- package/dist/runtime/crystal-neuo/components/NavLink.vue +23 -0
- package/dist/runtime/crystal-neuo/components/NavLink.vue.d.ts +22 -0
- package/dist/runtime/crystal-neuo/components/Pagination.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Pagination.vue +58 -0
- package/dist/runtime/crystal-neuo/components/Pagination.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Progress.d.vue.ts +18 -0
- package/dist/runtime/crystal-neuo/components/Progress.vue +35 -0
- package/dist/runtime/crystal-neuo/components/Progress.vue.d.ts +18 -0
- package/dist/runtime/crystal-neuo/components/Radio.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Radio.vue +40 -0
- package/dist/runtime/crystal-neuo/components/Radio.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.d.vue.ts +31 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.vue +39 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.vue.d.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Select.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Select.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Select.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Sheet.d.vue.ts +29 -0
- package/dist/runtime/crystal-neuo/components/Sheet.vue +37 -0
- package/dist/runtime/crystal-neuo/components/Sheet.vue.d.ts +29 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.d.vue.ts +13 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/crystal-neuo/components/Slider.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Slider.vue +41 -0
- package/dist/runtime/crystal-neuo/components/Slider.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/TabBar.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/TabBar.vue +29 -0
- package/dist/runtime/crystal-neuo/components/TabBar.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Table.d.vue.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Table.vue +36 -0
- package/dist/runtime/crystal-neuo/components/Table.vue.d.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Tabs.d.vue.ts +40 -0
- package/dist/runtime/crystal-neuo/components/Tabs.vue +79 -0
- package/dist/runtime/crystal-neuo/components/Tabs.vue.d.ts +40 -0
- package/dist/runtime/crystal-neuo/components/Textarea.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Textarea.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Textarea.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Toast.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Toast.vue +67 -0
- package/dist/runtime/crystal-neuo/components/Toast.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Toggle.d.vue.ts +21 -0
- package/dist/runtime/crystal-neuo/components/Toggle.vue +43 -0
- package/dist/runtime/crystal-neuo/components/Toggle.vue.d.ts +21 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.vue +38 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/cn.d.ts +1 -0
- package/dist/runtime/crystal-neuo/components/cn.js +3 -0
- package/dist/runtime/crystal-neuo/components/useControlAttrs.d.ts +15 -0
- package/dist/runtime/crystal-neuo/components/useControlAttrs.js +11 -0
- package/dist/runtime/crystal-neuo/components/useFocusTrap.d.ts +9 -0
- package/dist/runtime/crystal-neuo/components/useFocusTrap.js +55 -0
- package/dist/runtime/crystal-neuo/components/useModalDialog.d.ts +11 -0
- package/dist/runtime/crystal-neuo/components/useModalDialog.js +42 -0
- package/dist/runtime/crystal-neuo/contract/alert.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/alert.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/avatar.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/avatar.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/badge.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/badge.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/breadcrumb.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/breadcrumb.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/button.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/button.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/card.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/card.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/checkbox.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/checkbox.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/date-picker.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/date-picker.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/dialog.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/dialog.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/drawer.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/drawer.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/file-upload.contract.d.ts +17 -0
- package/dist/runtime/crystal-neuo/contract/file-upload.contract.js +36 -0
- package/dist/runtime/crystal-neuo/contract/index.d.ts +67 -0
- package/dist/runtime/crystal-neuo/contract/index.js +96 -0
- package/dist/runtime/crystal-neuo/contract/input.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/input.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/list.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/list.contract.js +21 -0
- package/dist/runtime/crystal-neuo/contract/menu.contract.d.ts +21 -0
- package/dist/runtime/crystal-neuo/contract/menu.contract.js +51 -0
- package/dist/runtime/crystal-neuo/contract/modal.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/modal.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/nav.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/nav.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/pagination.contract.d.ts +11 -0
- package/dist/runtime/crystal-neuo/contract/pagination.contract.js +32 -0
- package/dist/runtime/crystal-neuo/contract/progress.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/progress.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/radio.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/radio.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/segmented-control.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/segmented-control.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/select.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/select.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/sheet.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/sheet.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/skeleton.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/skeleton.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/slider.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/slider.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/tab-bar.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tab-bar.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/table.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/table.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/tabs.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tabs.contract.js +26 -0
- package/dist/runtime/crystal-neuo/contract/textarea.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/textarea.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/toast.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/toast.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/toggle.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/toggle.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/tooltip.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tooltip.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/types.d.ts +76 -0
- package/dist/runtime/crystal-neuo/contract/types.js +12 -0
- package/dist/runtime/crystal-neuo/css/crystal-neuo.css +1 -0
- package/dist/runtime/crystal-neuo/runtime/axes.d.ts +16 -0
- package/dist/runtime/crystal-neuo/runtime/axes.js +9 -0
- package/dist/runtime/crystal-neuo/runtime/index.d.ts +62 -0
- package/dist/runtime/crystal-neuo/runtime/index.js +115 -0
- package/dist/runtime/crystal-neuo/runtime/platform.d.ts +11 -0
- package/dist/runtime/crystal-neuo/runtime/platform.js +18 -0
- package/dist/runtime/crystal-neuo/runtime/refraction.d.ts +42 -0
- package/dist/runtime/crystal-neuo/runtime/refraction.js +183 -0
- package/dist/runtime/css/shell.css +1 -0
- package/dist/runtime/i18n/en.d.ts +2 -0
- package/dist/runtime/i18n/en.js +543 -0
- package/dist/runtime/i18n/index.d.ts +15 -0
- package/dist/runtime/i18n/index.js +52 -0
- package/dist/runtime/overrides.d.ts +5 -0
- package/dist/runtime/overrides.js +6 -0
- package/dist/runtime/pages/AdminPage.d.vue.ts +3 -0
- package/dist/runtime/pages/AdminPage.vue +49 -0
- package/dist/runtime/pages/AdminPage.vue.d.ts +3 -0
- package/dist/runtime/passkeys-off.d.ts +1 -0
- package/dist/runtime/passkeys-off.js +3 -0
- package/dist/runtime/passkeys.d.ts +1 -0
- package/dist/runtime/passkeys.js +6 -0
- package/dist/runtime/toast.d.ts +15 -0
- package/dist/runtime/toast.js +19 -0
- package/dist/runtime/types.d.ts +133 -0
- package/dist/runtime/types.js +0 -0
- package/dist/types.d.mts +3 -0
- package/package.json +59 -4
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export * from "./types.js";
|
|
2
|
+
export * from "./button.contract.js";
|
|
3
|
+
export * from "./card.contract.js";
|
|
4
|
+
export * from "./input.contract.js";
|
|
5
|
+
export * from "./toggle.contract.js";
|
|
6
|
+
export * from "./nav.contract.js";
|
|
7
|
+
export * from "./modal.contract.js";
|
|
8
|
+
export * from "./tabs.contract.js";
|
|
9
|
+
export * from "./tooltip.contract.js";
|
|
10
|
+
export * from "./badge.contract.js";
|
|
11
|
+
export * from "./select.contract.js";
|
|
12
|
+
export * from "./checkbox.contract.js";
|
|
13
|
+
export * from "./radio.contract.js";
|
|
14
|
+
export * from "./slider.contract.js";
|
|
15
|
+
export * from "./date-picker.contract.js";
|
|
16
|
+
export * from "./textarea.contract.js";
|
|
17
|
+
export * from "./file-upload.contract.js";
|
|
18
|
+
export * from "./table.contract.js";
|
|
19
|
+
export * from "./list.contract.js";
|
|
20
|
+
export * from "./avatar.contract.js";
|
|
21
|
+
export * from "./progress.contract.js";
|
|
22
|
+
export * from "./skeleton.contract.js";
|
|
23
|
+
export * from "./breadcrumb.contract.js";
|
|
24
|
+
export * from "./pagination.contract.js";
|
|
25
|
+
export * from "./toast.contract.js";
|
|
26
|
+
export * from "./alert.contract.js";
|
|
27
|
+
export * from "./dialog.contract.js";
|
|
28
|
+
export * from "./drawer.contract.js";
|
|
29
|
+
export * from "./segmented-control.contract.js";
|
|
30
|
+
export * from "./sheet.contract.js";
|
|
31
|
+
export * from "./tab-bar.contract.js";
|
|
32
|
+
export * from "./menu.contract.js";
|
|
33
|
+
import { buttonContract } from "./button.contract.js";
|
|
34
|
+
import { cardContract } from "./card.contract.js";
|
|
35
|
+
import { inputContract } from "./input.contract.js";
|
|
36
|
+
import { toggleContract } from "./toggle.contract.js";
|
|
37
|
+
import { navContract } from "./nav.contract.js";
|
|
38
|
+
import { modalContract } from "./modal.contract.js";
|
|
39
|
+
import { tabsContract } from "./tabs.contract.js";
|
|
40
|
+
import { tooltipContract } from "./tooltip.contract.js";
|
|
41
|
+
import { badgeContract } from "./badge.contract.js";
|
|
42
|
+
import { selectContract } from "./select.contract.js";
|
|
43
|
+
import { checkboxContract } from "./checkbox.contract.js";
|
|
44
|
+
import { radioContract } from "./radio.contract.js";
|
|
45
|
+
import { sliderContract } from "./slider.contract.js";
|
|
46
|
+
import { datePickerContract } from "./date-picker.contract.js";
|
|
47
|
+
import { textareaContract } from "./textarea.contract.js";
|
|
48
|
+
import { fileUploadContract } from "./file-upload.contract.js";
|
|
49
|
+
import { tableContract } from "./table.contract.js";
|
|
50
|
+
import { listContract } from "./list.contract.js";
|
|
51
|
+
import { avatarContract } from "./avatar.contract.js";
|
|
52
|
+
import { progressContract } from "./progress.contract.js";
|
|
53
|
+
import { skeletonContract } from "./skeleton.contract.js";
|
|
54
|
+
import { breadcrumbContract } from "./breadcrumb.contract.js";
|
|
55
|
+
import { paginationContract } from "./pagination.contract.js";
|
|
56
|
+
import { toastContract } from "./toast.contract.js";
|
|
57
|
+
import { alertContract } from "./alert.contract.js";
|
|
58
|
+
import { dialogContract } from "./dialog.contract.js";
|
|
59
|
+
import { drawerContract } from "./drawer.contract.js";
|
|
60
|
+
import { segmentedControlContract } from "./segmented-control.contract.js";
|
|
61
|
+
import { sheetContract } from "./sheet.contract.js";
|
|
62
|
+
import { tabBarContract } from "./tab-bar.contract.js";
|
|
63
|
+
import { menuContract } from "./menu.contract.js";
|
|
64
|
+
export const contracts = {
|
|
65
|
+
button: buttonContract,
|
|
66
|
+
card: cardContract,
|
|
67
|
+
input: inputContract,
|
|
68
|
+
toggle: toggleContract,
|
|
69
|
+
nav: navContract,
|
|
70
|
+
modal: modalContract,
|
|
71
|
+
tabs: tabsContract,
|
|
72
|
+
tooltip: tooltipContract,
|
|
73
|
+
badge: badgeContract,
|
|
74
|
+
select: selectContract,
|
|
75
|
+
checkbox: checkboxContract,
|
|
76
|
+
radio: radioContract,
|
|
77
|
+
slider: sliderContract,
|
|
78
|
+
"date-picker": datePickerContract,
|
|
79
|
+
textarea: textareaContract,
|
|
80
|
+
"file-upload": fileUploadContract,
|
|
81
|
+
table: tableContract,
|
|
82
|
+
list: listContract,
|
|
83
|
+
avatar: avatarContract,
|
|
84
|
+
progress: progressContract,
|
|
85
|
+
skeleton: skeletonContract,
|
|
86
|
+
breadcrumb: breadcrumbContract,
|
|
87
|
+
pagination: paginationContract,
|
|
88
|
+
toast: toastContract,
|
|
89
|
+
alert: alertContract,
|
|
90
|
+
dialog: dialogContract,
|
|
91
|
+
drawer: drawerContract,
|
|
92
|
+
"segmented-control": segmentedControlContract,
|
|
93
|
+
sheet: sheetContract,
|
|
94
|
+
"tab-bar": tabBarContract,
|
|
95
|
+
menu: menuContract
|
|
96
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const inputContract = defineContract({
|
|
3
|
+
name: "input",
|
|
4
|
+
description: "Single-line text input on a glass surface with an always-visible border and label.",
|
|
5
|
+
variants: ["default", "error"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md", "lg"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "disabled", "error"],
|
|
10
|
+
aria: "none",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"Renders a native <input>; a <label> is always associated via for/id.",
|
|
13
|
+
'When error, aria-invalid="true" and aria-describedby points to the message.'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [],
|
|
16
|
+
rtl: "logical-properties",
|
|
17
|
+
model: { prop: "value", type: "string" },
|
|
18
|
+
touchTarget: true
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const listContract = defineContract({
|
|
3
|
+
name: "list",
|
|
4
|
+
description: "Vertical list of items, optionally interactive (selectable rows).",
|
|
5
|
+
variants: ["plain", "bordered"],
|
|
6
|
+
defaultVariant: "plain",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "selected"],
|
|
10
|
+
aria: "list",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'Renders a semantic <ul>/<li>; interactive lists use role="listbox"/"option".',
|
|
13
|
+
'Selected option carries aria-selected="true".'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "ArrowDown", action: "Focus next item (interactive lists)" },
|
|
17
|
+
{ key: "ArrowUp", action: "Focus previous item (interactive lists)" }
|
|
18
|
+
],
|
|
19
|
+
rtl: "logical-properties",
|
|
20
|
+
touchTarget: true
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const menuContract: import("./types.js").Contract<"default", "md">;
|
|
2
|
+
export type MenuVariant = (typeof menuContract.variants)[number];
|
|
3
|
+
export type MenuSize = (typeof menuContract.sizes)[number];
|
|
4
|
+
/** One entry in a menu: an action, or a separator between groups. */
|
|
5
|
+
export type MenuEntry = {
|
|
6
|
+
label: string;
|
|
7
|
+
onSelect?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
danger?: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
separator: true;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The item index a key moves focus to, or null when the key does not navigate.
|
|
15
|
+
* Arrow keys wrap, Home/End jump, and a printable character moves to the next
|
|
16
|
+
* item whose label starts with it. Disabled items and separators are skipped.
|
|
17
|
+
* Shared so both adapters navigate identically.
|
|
18
|
+
*/
|
|
19
|
+
export declare function menuNavigation(items: readonly MenuEntry[], current: number, key: string): number | null;
|
|
20
|
+
/** Whether the browser supports CSS anchor positioning. */
|
|
21
|
+
export declare function supportsAnchorPositioning(): boolean;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const menuContract = defineContract({
|
|
3
|
+
name: "menu",
|
|
4
|
+
description: "A list of actions opened from a trigger button and anchored to it.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "disabled"],
|
|
10
|
+
aria: "menu",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'Trigger is a button with aria-haspopup="menu", aria-expanded, and aria-controls.',
|
|
13
|
+
'The menu uses role="menu" and the Popover API (light dismiss); items use role="menuitem".',
|
|
14
|
+
"Anchored to the trigger with CSS anchor positioning; positioned from coordinates where unsupported.",
|
|
15
|
+
"Focus returns to the trigger when the menu closes."
|
|
16
|
+
],
|
|
17
|
+
keyboard: [
|
|
18
|
+
{ key: "Enter / Space / ArrowDown", action: "Open and focus the first item" },
|
|
19
|
+
{ key: "ArrowUp (on trigger)", action: "Open and focus the last item" },
|
|
20
|
+
{ key: "ArrowDown / ArrowUp", action: "Move between items" },
|
|
21
|
+
{ key: "Home / End", action: "First / last item" },
|
|
22
|
+
{ key: "Character", action: "Move to the next item starting with it" },
|
|
23
|
+
{ key: "Enter / Space", action: "Activate the item and close" },
|
|
24
|
+
{ key: "Escape / Tab", action: "Close" }
|
|
25
|
+
],
|
|
26
|
+
rtl: "logical-properties",
|
|
27
|
+
model: { prop: "open", type: "boolean" },
|
|
28
|
+
touchTarget: true
|
|
29
|
+
});
|
|
30
|
+
export function menuNavigation(items, current, key) {
|
|
31
|
+
const enabled = items.map((it, i) => ({ it, i })).filter(({ it }) => !("separator" in it) && !it.disabled).map(({ i }) => i);
|
|
32
|
+
if (enabled.length === 0) return null;
|
|
33
|
+
const pos = enabled.indexOf(current);
|
|
34
|
+
if (key === "ArrowDown") return enabled[(pos + 1) % enabled.length];
|
|
35
|
+
if (key === "ArrowUp") return enabled[(pos - 1 + enabled.length) % enabled.length];
|
|
36
|
+
if (key === "Home") return enabled[0];
|
|
37
|
+
if (key === "End") return enabled[enabled.length - 1];
|
|
38
|
+
if (key.length === 1 && key.trim() !== "") {
|
|
39
|
+
const ch = key.toLowerCase();
|
|
40
|
+
const order = [...enabled.slice(pos + 1), ...enabled.slice(0, pos + 1)];
|
|
41
|
+
const hit = order.find((i) => {
|
|
42
|
+
const it = items[i];
|
|
43
|
+
return !("separator" in it) && it.label.toLowerCase().startsWith(ch);
|
|
44
|
+
});
|
|
45
|
+
return hit ?? null;
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
export function supportsAnchorPositioning() {
|
|
50
|
+
return typeof CSS !== "undefined" && CSS.supports("anchor-name: --a");
|
|
51
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const modalContract = defineContract({
|
|
3
|
+
name: "modal",
|
|
4
|
+
description: "Centered overlay surface over a scrim. Spotlight focus, never blindness.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md", "lg"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default"],
|
|
10
|
+
aria: "dialog",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'role="dialog" aria-modal="true"; labelled by its title via aria-labelledby.',
|
|
13
|
+
"Focus is trapped while open and restored to the trigger on close.",
|
|
14
|
+
"Background content is inert (inert attribute) while open."
|
|
15
|
+
],
|
|
16
|
+
keyboard: [
|
|
17
|
+
{ key: "Escape", action: "Close" },
|
|
18
|
+
{ key: "Tab", action: "Cycle focus within the dialog (trapped)" },
|
|
19
|
+
{ key: "Shift+Tab", action: "Cycle focus backward (trapped)" }
|
|
20
|
+
],
|
|
21
|
+
rtl: "logical-properties",
|
|
22
|
+
model: { prop: "open", type: "boolean" },
|
|
23
|
+
touchTarget: true
|
|
24
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const navContract = defineContract({
|
|
3
|
+
name: "nav",
|
|
4
|
+
description: "Glass navigation bar with controlled transparency; elevation indicates priority.",
|
|
5
|
+
variants: ["glass", "solid"],
|
|
6
|
+
defaultVariant: "glass",
|
|
7
|
+
sizes: ["md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default"],
|
|
10
|
+
aria: "navigation",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"Renders a <nav> with an accessible name (aria-label).",
|
|
13
|
+
'Current item carries aria-current="page".'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [{ key: "Tab", action: "Move between links in DOM order" }],
|
|
16
|
+
rtl: "logical-properties",
|
|
17
|
+
touchTarget: true
|
|
18
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const paginationContract: import("./types.js").Contract<"default", "sm" | "md">;
|
|
2
|
+
export type PaginationVariant = (typeof paginationContract.variants)[number];
|
|
3
|
+
export type PaginationSize = (typeof paginationContract.sizes)[number];
|
|
4
|
+
/** One slot in a pagination row: a page number, or a gap standing for skipped pages. */
|
|
5
|
+
export type PageSlot = number | "gap";
|
|
6
|
+
/**
|
|
7
|
+
* The page slots to render for `page` of `pageCount`: always the first and last
|
|
8
|
+
* page, `siblings` pages either side of the current one, and a gap wherever
|
|
9
|
+
* pages are skipped. Shared so both adapters truncate identically.
|
|
10
|
+
*/
|
|
11
|
+
export declare function paginationRange(page: number, pageCount: number, siblings?: number): PageSlot[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const paginationContract = defineContract({
|
|
3
|
+
name: "pagination",
|
|
4
|
+
description: "Page navigation control for paged data sets.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "selected", "disabled"],
|
|
10
|
+
aria: "navigation",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'<nav aria-label="Pagination"> wrapping page links/buttons.',
|
|
13
|
+
'Current page carries aria-current="page"; prev/next disabled at bounds.'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [{ key: "Tab", action: "Move between page controls" }],
|
|
16
|
+
rtl: "mirrored",
|
|
17
|
+
model: { prop: "page", type: "number" },
|
|
18
|
+
touchTarget: true
|
|
19
|
+
});
|
|
20
|
+
export function paginationRange(page, pageCount, siblings = 1) {
|
|
21
|
+
const count = Math.max(0, Math.floor(pageCount));
|
|
22
|
+
if (count <= siblings * 2 + 5) return Array.from({ length: count }, (_, i) => i + 1);
|
|
23
|
+
const current = Math.min(Math.max(1, page), count);
|
|
24
|
+
const start = Math.max(2, current - siblings);
|
|
25
|
+
const end = Math.min(count - 1, current + siblings);
|
|
26
|
+
const slots = [1];
|
|
27
|
+
if (start > 2) slots.push("gap");
|
|
28
|
+
for (let p = start; p <= end; p++) slots.push(p);
|
|
29
|
+
if (end < count - 1) slots.push("gap");
|
|
30
|
+
slots.push(count);
|
|
31
|
+
return slots;
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const progressContract = defineContract({
|
|
3
|
+
name: "progress",
|
|
4
|
+
description: "Determinate or indeterminate progress bar.",
|
|
5
|
+
variants: ["bar", "indeterminate"],
|
|
6
|
+
defaultVariant: "bar",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default"],
|
|
10
|
+
aria: "progressbar",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'role="progressbar" with aria-valuemin/max/now for determinate progress.',
|
|
13
|
+
"Indeterminate variant omits aria-valuenow and uses a non-essential animation (respects reduced-motion)."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [],
|
|
16
|
+
rtl: "mirrored",
|
|
17
|
+
model: { prop: "value", type: "number" },
|
|
18
|
+
touchTarget: false
|
|
19
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const radioContract = defineContract({
|
|
3
|
+
name: "radio",
|
|
4
|
+
description: "Single-choice radio group following the WAI-ARIA radiogroup pattern.",
|
|
5
|
+
variants: ["default", "error"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "checked", "disabled", "error"],
|
|
10
|
+
aria: "radiogroup",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'Native <input type="radio"> inputs share a name; wrapped in role="radiogroup" with a group label.',
|
|
13
|
+
"Only the checked radio is in the tab order; arrows move within the group."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "ArrowDown", action: "Select next radio" },
|
|
17
|
+
{ key: "ArrowUp", action: "Select previous radio" },
|
|
18
|
+
{ key: "ArrowRight", action: "Select next radio" },
|
|
19
|
+
{ key: "ArrowLeft", action: "Select previous radio" }
|
|
20
|
+
],
|
|
21
|
+
rtl: "mirrored",
|
|
22
|
+
model: { prop: "value", type: "string" },
|
|
23
|
+
touchTarget: true
|
|
24
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const segmentedControlContract: import("./types.js").Contract<"default" | "block", "sm" | "md">;
|
|
2
|
+
export type SegmentedControlVariant = (typeof segmentedControlContract.variants)[number];
|
|
3
|
+
export type SegmentedControlSize = (typeof segmentedControlContract.sizes)[number];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const segmentedControlContract = defineContract({
|
|
3
|
+
name: "segmented-control",
|
|
4
|
+
description: "Single choice among two to five short options, shown as one connected track.",
|
|
5
|
+
variants: ["default", "block"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["md", "sm"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "checked", "disabled"],
|
|
10
|
+
aria: "radiogroup",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"A <fieldset> with a visually hidden <legend> names the group; each segment is a native radio input.",
|
|
13
|
+
"The selected segment is distinguished by surface, border, and weight, not colour alone."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "Tab", action: "Move focus into the group (to the selected segment)" },
|
|
17
|
+
{ key: "ArrowRight / ArrowDown", action: "Select the next segment" },
|
|
18
|
+
{ key: "ArrowLeft / ArrowUp", action: "Select the previous segment" }
|
|
19
|
+
],
|
|
20
|
+
rtl: "mirrored",
|
|
21
|
+
model: { prop: "value", type: "string" },
|
|
22
|
+
touchTarget: true
|
|
23
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const selectContract = defineContract({
|
|
3
|
+
name: "select",
|
|
4
|
+
description: "Single-choice dropdown. Built on the native <select> for reliability.",
|
|
5
|
+
variants: ["default", "error"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md", "lg"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "disabled", "error"],
|
|
10
|
+
aria: "listbox",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"Renders a native <select> wrapped for styling; label associated via for/id.",
|
|
13
|
+
'When error, aria-invalid="true" and aria-describedby points to the message.'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "Space", action: "Open the option list" },
|
|
17
|
+
{ key: "ArrowUp", action: "Previous option" },
|
|
18
|
+
{ key: "ArrowDown", action: "Next option" },
|
|
19
|
+
{ key: "Enter", action: "Commit selection" }
|
|
20
|
+
],
|
|
21
|
+
rtl: "logical-properties",
|
|
22
|
+
model: { prop: "value", type: "string" },
|
|
23
|
+
touchTarget: true
|
|
24
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const sheetContract = defineContract({
|
|
3
|
+
name: "sheet",
|
|
4
|
+
description: "Modal panel that rises from the bottom edge; the mobile counterpart of a dialog.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default"],
|
|
10
|
+
aria: "dialog",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"A native <dialog> opened with showModal(): the page behind is inert.",
|
|
13
|
+
"Labelled by its title via aria-labelledby; focus returns to the trigger on close.",
|
|
14
|
+
"Respects the bottom safe-area inset."
|
|
15
|
+
],
|
|
16
|
+
keyboard: [
|
|
17
|
+
{ key: "Escape", action: "Close" },
|
|
18
|
+
{ key: "Tab", action: "Move focus within the sheet" }
|
|
19
|
+
],
|
|
20
|
+
rtl: "logical-properties",
|
|
21
|
+
model: { prop: "open", type: "boolean" },
|
|
22
|
+
touchTarget: true
|
|
23
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const skeletonContract = defineContract({
|
|
3
|
+
name: "skeleton",
|
|
4
|
+
description: "Loading placeholder for text, blocks, or circles.",
|
|
5
|
+
variants: ["text", "block", "circle"],
|
|
6
|
+
defaultVariant: "block",
|
|
7
|
+
sizes: ["sm", "md", "lg"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["loading"],
|
|
10
|
+
aria: "none",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
`Decorative: aria-hidden="true". The loading state is announced by the parent region's aria-busy.`,
|
|
13
|
+
"Shimmer animation is non-essential and disabled under prefers-reduced-motion."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [],
|
|
16
|
+
rtl: "logical-properties",
|
|
17
|
+
touchTarget: false
|
|
18
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const sliderContract = defineContract({
|
|
3
|
+
name: "slider",
|
|
4
|
+
description: "Single-value range slider with a sculpted track and clear thumb.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "disabled"],
|
|
10
|
+
aria: "slider",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'Native <input type="range">; exposes aria-valuemin/max/now and an accessible label.',
|
|
13
|
+
"aria-valuetext used when the numeric value needs a human label (e.g. currency)."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "ArrowRight", action: "Increase by step" },
|
|
17
|
+
{ key: "ArrowLeft", action: "Decrease by step" },
|
|
18
|
+
{ key: "Home", action: "Set to minimum" },
|
|
19
|
+
{ key: "End", action: "Set to maximum" }
|
|
20
|
+
],
|
|
21
|
+
rtl: "mirrored",
|
|
22
|
+
model: { prop: "value", type: "number" },
|
|
23
|
+
touchTarget: true
|
|
24
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const tabBarContract = defineContract({
|
|
3
|
+
name: "tab-bar",
|
|
4
|
+
description: "Primary navigation for a mobile app: three to five destinations along the bottom edge.",
|
|
5
|
+
variants: ["default"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "selected"],
|
|
10
|
+
aria: "navigation",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"<nav> with an aria-label; each destination is a link.",
|
|
13
|
+
'The current destination carries aria-current="page" and a visible surface and border.',
|
|
14
|
+
"Icons are decorative; every item has a visible text label."
|
|
15
|
+
],
|
|
16
|
+
keyboard: [{ key: "Tab", action: "Move between destinations" }],
|
|
17
|
+
rtl: "logical-properties",
|
|
18
|
+
touchTarget: true
|
|
19
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const tableContract = defineContract({
|
|
3
|
+
name: "table",
|
|
4
|
+
description: "Tabular data with optional zebra striping and a sticky header.",
|
|
5
|
+
variants: ["default", "striped"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "selected"],
|
|
10
|
+
aria: "table",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"Renders a semantic <table> with <thead>/<tbody> and <th scope>.",
|
|
13
|
+
"Sortable columns expose aria-sort on the active header."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [],
|
|
16
|
+
rtl: "logical-properties",
|
|
17
|
+
touchTarget: false
|
|
18
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const tabsContract = defineContract({
|
|
3
|
+
name: "tabs",
|
|
4
|
+
description: "Tabbed panels following the WAI-ARIA Tabs pattern.",
|
|
5
|
+
variants: ["line", "enclosed"],
|
|
6
|
+
defaultVariant: "line",
|
|
7
|
+
sizes: ["sm", "md"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "selected", "disabled"],
|
|
10
|
+
aria: "tablist",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
'role="tablist" wraps role="tab" buttons; each tab controls a role="tabpanel".',
|
|
13
|
+
'Selected tab has aria-selected="true" and tabindex=0; others tabindex=-1.'
|
|
14
|
+
],
|
|
15
|
+
keyboard: [
|
|
16
|
+
{ key: "ArrowRight", action: "Focus & select next tab (wraps)" },
|
|
17
|
+
{ key: "ArrowLeft", action: "Focus & select previous tab (wraps)" },
|
|
18
|
+
{ key: "Home", action: "Focus first tab" },
|
|
19
|
+
{ key: "End", action: "Focus last tab" },
|
|
20
|
+
{ key: "Enter", action: "Activate focused tab" },
|
|
21
|
+
{ key: "Space", action: "Activate focused tab" }
|
|
22
|
+
],
|
|
23
|
+
rtl: "mirrored",
|
|
24
|
+
model: { prop: "value", type: "string" },
|
|
25
|
+
touchTarget: true
|
|
26
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineContract } from "./types.js";
|
|
2
|
+
export const textareaContract = defineContract({
|
|
3
|
+
name: "textarea",
|
|
4
|
+
description: "Multi-line text input with an always-visible border and label.",
|
|
5
|
+
variants: ["default", "error"],
|
|
6
|
+
defaultVariant: "default",
|
|
7
|
+
sizes: ["sm", "md", "lg"],
|
|
8
|
+
defaultSize: "md",
|
|
9
|
+
states: ["default", "hover", "focus-visible", "disabled", "error"],
|
|
10
|
+
aria: "none",
|
|
11
|
+
ariaNotes: [
|
|
12
|
+
"Native <textarea>; label associated via for/id.",
|
|
13
|
+
"aria-invalid + aria-describedby wire the error message on error."
|
|
14
|
+
],
|
|
15
|
+
keyboard: [],
|
|
16
|
+
rtl: "logical-properties",
|
|
17
|
+
model: { prop: "value", type: "string" },
|
|
18
|
+
touchTarget: true
|
|
19
|
+
});
|