sit-onyx 1.0.0-beta.28 → 1.0.0-beta.280
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/README.md +1 -5
- package/dist/a11yConfig.d.ts +1 -0
- package/dist/components/OnyxAccordion/OnyxAccordion.d.vue.ts +27 -0
- package/dist/components/OnyxAccordion/types.d.ts +45 -0
- package/dist/components/OnyxAccordionItem/OnyxAccordionItem.d.vue.ts +37 -0
- package/dist/components/OnyxAccordionItem/types.d.ts +17 -0
- package/dist/components/OnyxAlertDialog/OnyxAlertDialog.d.vue.ts +60 -0
- package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
- package/dist/components/OnyxAppLayout/OnyxAppLayout.d.vue.ts +50 -0
- package/dist/components/OnyxAppLayout/types.d.ts +3 -1
- package/dist/components/OnyxAvatar/OnyxAvatar.d.vue.ts +5 -0
- package/dist/components/OnyxAvatar/types.d.ts +16 -4
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.d.vue.ts +25 -0
- package/dist/components/OnyxBadge/OnyxBadge.d.vue.ts +29 -0
- package/dist/components/OnyxBadge/types.d.ts +2 -2
- package/dist/components/OnyxBottomBar/OnyxBottomBar.d.vue.ts +36 -0
- package/dist/components/OnyxBottomBar/types.d.ts +7 -0
- package/dist/components/OnyxBreadcrumb/OnyxBreadcrumb.d.vue.ts +28 -0
- package/dist/components/OnyxBreadcrumb/types.d.ts +28 -0
- package/dist/components/OnyxBreadcrumbItem/OnyxBreadcrumbItem.d.vue.ts +29 -0
- package/dist/components/OnyxBreadcrumbItem/types.d.ts +18 -0
- package/dist/components/OnyxButton/ButtonOrLinkLayout.d.vue.ts +33 -0
- package/dist/components/OnyxButton/OnyxButton.d.vue.ts +26 -0
- package/dist/components/OnyxButton/types.d.ts +16 -4
- package/dist/components/OnyxCard/OnyxCard.d.vue.ts +28 -0
- package/dist/components/OnyxCard/types.d.ts +8 -0
- package/dist/components/OnyxCheckbox/OnyxCheckbox.d.vue.ts +20 -0
- package/dist/components/OnyxCheckbox/types.d.ts +3 -5
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.d.vue.ts +19 -0
- package/dist/components/OnyxCheckboxGroup/types.d.ts +9 -18
- package/dist/components/OnyxDataGrid/OnyxDataGrid.d.vue.ts +16 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.d.vue.ts +15 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +107 -0
- package/dist/components/OnyxDataGrid/features/HeaderCell.d.vue.ts +25 -0
- package/dist/components/OnyxDataGrid/features/all.d.ts +15 -0
- package/dist/components/OnyxDataGrid/features/base/base.d.ts +51 -0
- package/dist/components/OnyxDataGrid/features/base/types.d.ts +8 -0
- package/dist/components/OnyxDataGrid/features/filtering/filtering.d.ts +31 -0
- package/dist/components/OnyxDataGrid/features/filtering/types.d.ts +66 -0
- package/dist/components/OnyxDataGrid/features/hideColumns/hideColumns.d.ts +43 -0
- package/dist/components/OnyxDataGrid/features/hideColumns/types.d.ts +15 -0
- package/dist/components/OnyxDataGrid/features/index.d.ts +307 -0
- package/dist/components/OnyxDataGrid/features/pagination/pagination.d.ts +28 -0
- package/dist/components/OnyxDataGrid/features/pagination/types.d.ts +51 -0
- package/dist/components/OnyxDataGrid/features/renderer.d.ts +51 -0
- package/dist/components/OnyxDataGrid/features/resizing/resizing.d.ts +47 -0
- package/dist/components/OnyxDataGrid/features/resizing/types.d.ts +7 -0
- package/dist/components/OnyxDataGrid/features/selection/selection.d.ts +17 -0
- package/dist/components/OnyxDataGrid/features/selection/types.d.ts +39 -0
- package/dist/components/OnyxDataGrid/features/sorting/SortAction.d.vue.ts +13 -0
- package/dist/components/OnyxDataGrid/features/sorting/defaults.d.ts +8 -0
- package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +35 -0
- package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +50 -0
- package/dist/components/OnyxDataGrid/features/stickyColumns/stickyColumns.d.ts +13 -0
- package/dist/components/OnyxDataGrid/features/stickyColumns/types.d.ts +12 -0
- package/dist/components/OnyxDataGrid/types.d.ts +98 -0
- package/dist/components/OnyxDataGrid/types.spec-d.d.ts +1 -0
- package/dist/components/OnyxDatePicker/OnyxDatePicker.d.vue.ts +20 -0
- package/dist/components/OnyxDatePicker/types.d.ts +24 -0
- package/dist/components/OnyxDialog/OnyxDialog.d.vue.ts +46 -0
- package/dist/components/OnyxDialog/types.d.ts +11 -1
- package/dist/components/OnyxDrawer/OnyxDrawer.d.vue.ts +59 -0
- package/dist/components/OnyxDrawer/types.d.ts +14 -0
- package/dist/components/OnyxEmpty/OnyxEmpty.d.vue.ts +42 -0
- package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.d.vue.ts +42 -0
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.d.vue.ts +5 -0
- package/dist/components/OnyxExternalLinkIcon/types.d.ts +2 -5
- package/dist/components/OnyxFAB/OnyxFAB.d.vue.ts +34 -0
- package/dist/components/OnyxFAB/types.d.ts +13 -0
- package/dist/components/OnyxFABButton/OnyxFABButton.d.vue.ts +5 -0
- package/dist/components/OnyxFABButton/types.d.ts +22 -0
- package/dist/components/OnyxFABItem/OnyxFABItem.d.vue.ts +3 -0
- package/dist/components/OnyxFABItem/types.d.ts +17 -0
- package/dist/components/OnyxFileCard/OnyxFileCard.d.vue.ts +28 -0
- package/dist/components/OnyxFileCard/types.d.ts +20 -0
- package/dist/components/OnyxFileTypeIcon/OnyxFileTypeIcon.d.vue.ts +3 -0
- package/dist/components/OnyxFileTypeIcon/types.d.ts +13 -0
- package/dist/components/OnyxFileUpload/OnyxFileUpload.d.vue.ts +16 -0
- package/dist/components/OnyxFileUpload/types.d.ts +76 -0
- package/dist/components/OnyxFilterTag/OnyxFilterTag.d.vue.ts +16 -0
- package/dist/components/OnyxForm/OnyxForm.core.d.ts +99 -0
- package/dist/components/OnyxForm/OnyxForm.core.spec-d.d.ts +1 -0
- package/dist/components/OnyxForm/OnyxForm.d.vue.ts +29 -0
- package/dist/components/OnyxForm/types.d.ts +4 -0
- package/dist/components/OnyxFormElement/FormMessage.d.vue.ts +13 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +3 -3
- package/dist/components/OnyxFormElement/OnyxFormElement.d.vue.ts +27 -0
- package/dist/components/OnyxFormElement/types.d.ts +37 -19
- package/dist/components/OnyxHeadline/OnyxHeadline.d.vue.ts +28 -0
- package/dist/components/OnyxHeadline/types.d.ts +18 -2
- package/dist/components/OnyxIcon/OnyxIcon.d.vue.ts +3 -0
- package/dist/components/OnyxIcon/types.d.ts +5 -1
- package/dist/components/OnyxIconButton/OnyxIconButton.d.vue.ts +27 -0
- package/dist/components/OnyxIconButton/types.d.ts +8 -6
- package/dist/components/OnyxImage/OnyxImage.d.vue.ts +6 -0
- package/dist/components/OnyxImage/types.d.ts +43 -0
- package/dist/components/OnyxInfoCard/OnyxInfoCard.d.vue.ts +42 -0
- package/dist/components/OnyxInfoCard/types.d.ts +21 -0
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.d.vue.ts +6 -0
- package/dist/components/OnyxInfoTooltip/types.d.ts +2 -2
- package/dist/components/OnyxInput/OnyxInput.d.vue.ts +63 -0
- package/dist/components/OnyxInput/types.d.ts +9 -67
- package/dist/components/OnyxLink/OnyxLink.d.vue.ts +29 -0
- package/dist/components/OnyxLink/types.d.ts +3 -10
- package/dist/components/OnyxListItem/OnyxListItem.d.vue.ts +31 -0
- package/dist/components/OnyxListItem/types.d.ts +2 -2
- package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.d.vue.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.d.vue.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.d.vue.ts +5 -0
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.d.vue.ts +17 -0
- package/dist/components/OnyxMiniSearch/types.d.ts +5 -3
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.d.vue.ts +32 -0
- package/dist/components/OnyxMobileNavButton/types.d.ts +4 -0
- package/dist/components/OnyxModalDialog/OnyxModalDialog.d.vue.ts +56 -0
- package/dist/components/OnyxModalDialog/types.d.ts +2 -0
- package/dist/components/OnyxMoreList/OnyxMoreList.d.vue.ts +52 -0
- package/dist/components/OnyxMoreList/types.d.ts +23 -0
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.d.vue.ts +28 -0
- package/dist/components/OnyxNavAppArea/types.d.ts +2 -1
- package/dist/components/OnyxNavBar/OnyxNavBar.d.vue.ts +94 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.d.vue.ts +11 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +3 -3
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.d.vue.ts +8 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/types.d.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.d.vue.ts +61 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +16 -7
- package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/OnyxLanguageMenuItem.d.vue.ts +16 -0
- package/dist/components/OnyxNavBar/modules/OnyxLanguageMenuItem/types.d.ts +11 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.d.vue.ts +424 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +13 -8
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.d.vue.ts +186 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/types.d.ts +19 -2
- package/dist/components/OnyxNavBar/modules/OnyxNavItemFacade/OnyxNavItemFacade.d.vue.ts +41 -0
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.d.vue.ts +12 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.d.vue.ts +41 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.d.vue.ts +55 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +13 -7
- package/dist/components/OnyxNavBar/modules/index.d.ts +17 -17
- package/dist/components/OnyxNavBar/types.d.ts +28 -11
- package/dist/components/OnyxNotificationCard/OnyxNotificationCard.d.vue.ts +48 -0
- package/dist/components/OnyxNotificationCard/types.d.ts +25 -0
- package/dist/components/OnyxNotificationDot/OnyxNotificationDot.d.vue.ts +29 -0
- package/dist/components/OnyxNotificationDot/types.d.ts +11 -0
- package/dist/components/OnyxNotificationMessage/OnyxNotificationMessage.d.vue.ts +40 -0
- package/dist/components/OnyxNotificationMessage/types.d.ts +17 -0
- package/dist/components/OnyxNotifications/OnyxNotifications.d.vue.ts +2 -0
- package/dist/components/OnyxNotifications/useNotification.d.ts +60 -0
- package/dist/components/OnyxPageLayout/OnyxPageLayout.d.vue.ts +66 -0
- package/dist/components/OnyxPageLayout/types.d.ts +12 -8
- package/dist/components/OnyxPagination/OnyxPagination.d.vue.ts +10 -0
- package/dist/components/OnyxPagination/OnyxSelectPagination.d.vue.ts +9 -0
- package/dist/components/OnyxPagination/types.d.ts +20 -0
- package/dist/components/OnyxPopover/OnyxPopover.d.vue.ts +59 -0
- package/dist/components/OnyxPopover/types.d.ts +30 -0
- package/dist/components/OnyxProgressItem/OnyxProgressItem.d.vue.ts +6 -0
- package/dist/components/OnyxProgressItem/types.d.ts +31 -0
- package/dist/components/OnyxProgressSteps/OnyxProgressSteps.d.vue.ts +13 -0
- package/dist/components/OnyxProgressSteps/types.d.ts +30 -0
- package/dist/components/OnyxRadioButton/OnyxRadioButton.d.vue.ts +19 -0
- package/dist/components/OnyxRadioButton/types.d.ts +2 -10
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.d.vue.ts +20 -0
- package/dist/components/OnyxRadioGroup/types.d.ts +6 -23
- package/dist/components/OnyxResizeHandle/OnyxResizeHandle.d.vue.ts +16 -0
- package/dist/components/OnyxResizeHandle/types.d.ts +23 -0
- package/dist/components/OnyxRipple/OnyxRipple.d.vue.ts +6 -0
- package/dist/components/OnyxRouterLink/OnyxRouterLink.d.vue.ts +21 -0
- package/dist/components/OnyxRouterLink/types.d.ts +22 -0
- package/dist/components/OnyxSelect/OnyxSelect.d.vue.ts +62 -0
- package/dist/components/OnyxSelect/types.d.ts +40 -46
- package/dist/components/OnyxSelectDialog/OnyxSelectDialog.d.vue.ts +27 -0
- package/dist/components/OnyxSelectDialog/types.d.ts +30 -0
- package/dist/components/OnyxSelectInput/OnyxSelectInput.d.vue.ts +20 -0
- package/dist/components/OnyxSelectInput/types.d.ts +3 -26
- package/dist/components/OnyxSelectOption/OnyxSelectOption.d.vue.ts +30 -0
- package/dist/components/OnyxSelectOption/types.d.ts +2 -2
- package/dist/components/OnyxSeparator/OnyxSeparator.d.vue.ts +5 -0
- package/dist/components/OnyxSeparator/types.d.ts +7 -0
- package/dist/components/OnyxSidebar/OnyxSidebar.d.vue.ts +204 -0
- package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.d.vue.ts +28 -0
- package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/types.d.ts +9 -0
- package/dist/components/OnyxSidebar/modules/index.d.ts +2 -0
- package/dist/components/OnyxSidebar/types.d.ts +25 -0
- package/dist/components/OnyxSkeleton/OnyxSkeleton.d.vue.ts +2 -0
- package/dist/components/OnyxStepper/OnyxStepper.d.vue.ts +22 -0
- package/dist/components/OnyxStepper/types.d.ts +26 -33
- package/dist/components/OnyxSwitch/OnyxSwitch.d.vue.ts +22 -0
- package/dist/components/OnyxSwitch/types.d.ts +3 -31
- package/dist/components/OnyxSystemButton/OnyxSystemButton.d.vue.ts +8 -0
- package/dist/components/OnyxSystemButton/types.d.ts +17 -0
- package/dist/components/OnyxTab/OnyxTab.d.vue.ts +37 -0
- package/dist/components/OnyxTab/types.d.ts +20 -0
- package/dist/components/OnyxTable/OnyxTable.d.vue.ts +24 -0
- package/dist/components/OnyxTable/types.d.ts +66 -1
- package/dist/components/OnyxTabs/OnyxTabs.d.vue.ts +26 -0
- package/dist/components/OnyxTabs/types.d.ts +45 -0
- package/dist/components/OnyxTag/OnyxTag.d.vue.ts +6 -0
- package/dist/components/OnyxTag/types.d.ts +25 -2
- package/dist/components/OnyxTextarea/OnyxTextarea.d.vue.ts +23 -0
- package/dist/components/OnyxTextarea/types.d.ts +2 -5
- package/dist/components/OnyxToast/OnyxToast.d.vue.ts +2 -0
- package/dist/components/OnyxToast/useToast.d.ts +2 -2
- package/dist/components/OnyxToastMessage/OnyxToastMessage.d.vue.ts +12 -0
- package/dist/components/OnyxToastMessage/types.d.ts +4 -4
- package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +1 -1
- package/dist/components/OnyxTooltip/OnyxTooltip.d.vue.ts +60 -0
- package/dist/components/OnyxTooltip/types.d.ts +21 -7
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.d.vue.ts +28 -0
- package/dist/components/examples/ComponentShowcase/ComponentShowcase.d.vue.ts +9 -0
- package/dist/components/illustrations/OnyxErrorSVG/OnyxErrorSVG.d.vue.ts +2 -0
- package/dist/components/illustrations/OnyxFileUploadSVG/OnyxFileUploadSVG.d.vue.ts +3 -0
- package/dist/components/illustrations/OnyxFileUploadSVG/types.d.ts +10 -0
- package/dist/components/illustrations/index.d.ts +3 -0
- package/dist/composables/animation.d.ts +5 -0
- package/dist/composables/checkAll.d.ts +3 -3
- package/dist/composables/density.d.ts +2 -2
- package/dist/composables/required.d.ts +8 -15
- package/dist/composables/scrollEnd.d.ts +2 -2
- package/dist/composables/themeTransition.d.ts +3 -0
- package/dist/composables/useAnchorPositionPolyfill.d.ts +20 -0
- package/dist/composables/useAutoFocus.d.ts +5 -0
- package/dist/composables/useCustomValidity.d.ts +39 -25
- package/dist/composables/useErrorClass.d.ts +14 -0
- package/dist/composables/useFileSize.d.ts +10 -0
- package/dist/composables/useIntersectionObserver.d.ts +25 -0
- package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
- package/dist/composables/useLenientMaxLengthValidation.d.ts +93 -0
- package/dist/composables/useLink.d.ts +29 -0
- package/dist/composables/useLink.spec-d.d.ts +1 -0
- package/dist/composables/useMoreList.d.ts +117 -0
- package/dist/composables/useOpenAlignment.d.ts +13 -0
- package/dist/composables/useOpenDirection.d.ts +14 -0
- package/dist/composables/useRelativeTimeFormat.d.ts +23 -0
- package/dist/composables/useResizeObserver.d.ts +18 -4
- package/dist/composables/useRipple.d.ts +8 -12
- package/dist/composables/useSkeletonState.d.ts +61 -0
- package/dist/composables/useTimer.d.ts +3 -3
- package/dist/composables/useVModel.d.ts +34 -0
- package/dist/i18n/datetime-formats.d.ts +22 -0
- package/dist/i18n/index.d.ts +29 -9
- package/dist/i18n/locales/de-DE.json +214 -0
- package/dist/i18n/locales/en-US.json +214 -0
- package/dist/i18n/locales/en-US.json.d.ts +217 -0
- package/dist/i18n/locales/ko-KR.json +27 -0
- package/dist/i18n/number-formats.d.ts +6 -0
- package/dist/index.d.ts +168 -81
- package/dist/index.esm-bundler.js +12690 -0
- package/dist/index.esm-bundler.js.map +1 -0
- package/dist/index.js +8994 -3680
- package/dist/style.css +1 -1
- package/dist/types/colors.d.ts +1 -1
- package/dist/types/components.d.ts +8 -8
- package/dist/types/index.d.ts +7 -9
- package/dist/types/utils.d.ts +70 -0
- package/dist/types/utils.spec-d.d.ts +1 -0
- package/dist/utils/attrs.d.ts +35 -4
- package/dist/utils/console.d.ts +11 -0
- package/dist/utils/date.d.ts +7 -0
- package/dist/utils/dom.d.ts +5 -0
- package/dist/utils/feature.d.ts +15 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/numbers.d.ts +46 -0
- package/dist/utils/objects.d.ts +18 -0
- package/dist/utils/plugin.d.ts +11 -3
- package/dist/utils/router.d.ts +5 -0
- package/dist/utils/storybook.d.ts +43 -2
- package/dist/utils/strings.d.ts +13 -0
- package/package.json +36 -16
- package/src/styles/breakpoints.scss +16 -10
- package/src/styles/fonts.scss +7 -7
- package/src/styles/global.css +2 -2
- package/src/styles/grid.ct.tsx +91 -38
- package/src/styles/grid.scss +77 -21
- package/src/styles/index.scss +3 -4
- package/src/styles/layers.scss +1 -1
- package/src/styles/mixins/checkbox.scss +24 -10
- package/src/styles/mixins/input.scss +110 -38
- package/src/styles/mixins/layers.scss +5 -5
- package/src/styles/mixins/list.scss +3 -3
- package/src/styles/mixins/sizes.scss +31 -0
- package/src/styles/mixins/visibility.scss +11 -0
- package/src/styles/root.scss +20 -5
- package/src/styles/variables/density-compact.css +1 -1
- package/src/styles/variables/density-cozy.css +1 -1
- package/src/styles/variables/density-default.css +1 -1
- package/src/styles/variables/spacing.css +1 -1
- package/src/styles/variables/themes/onyx.css +380 -119
- package/src/styles/variables/themes/value.css +270 -0
- package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +0 -52
- package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +0 -43
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +0 -19
- package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +0 -46
- package/dist/components/OnyxButton/OnyxButton.vue.d.ts +0 -45
- package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +0 -23
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +0 -21
- package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +0 -57
- package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +0 -37
- package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +0 -49
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +0 -26
- package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +0 -46
- package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +0 -29
- package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +0 -12
- package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +0 -52
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +0 -29
- package/dist/components/OnyxInput/OnyxInput.vue.d.ts +0 -59
- package/dist/components/OnyxLink/OnyxLink.vue.d.ts +0 -50
- package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +0 -52
- package/dist/components/OnyxLoadingIndicator/CircleSpinner.vue.d.ts +0 -2
- package/dist/components/OnyxLoadingIndicator/LoadingDots.vue.d.ts +0 -2
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +0 -26
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +0 -23
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +0 -47
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +0 -33
- package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +0 -104
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +0 -32
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +0 -17
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +0 -56
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +0 -25
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +0 -63
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +0 -58
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +0 -13
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +0 -46
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +0 -26
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/types.d.ts +0 -3
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +0 -16
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +0 -55
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +0 -34
- package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +0 -33
- package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +0 -23
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +0 -23
- package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +0 -4
- package/dist/components/OnyxRipple/RippleTestWrapper.vue.d.ts +0 -2
- package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +0 -67
- package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +0 -25
- package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +0 -49
- package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +0 -2
- package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +0 -50
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +0 -44
- package/dist/components/OnyxTable/OnyxTable.vue.d.ts +0 -76
- package/dist/components/OnyxTag/OnyxTag.vue.d.ts +0 -26
- package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +0 -56
- package/dist/components/OnyxToast/OnyxToast.vue.d.ts +0 -2
- package/dist/components/OnyxToast/PlaywrightTest.vue.d.ts +0 -2
- package/dist/components/OnyxToast/PlaywrightTestWrapper.vue.d.ts +0 -2
- package/dist/components/OnyxToast/StorybookExample.vue.d.ts +0 -2
- package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +0 -41
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +0 -73
- package/dist/components/OnyxTooltip/TestWrapper.vue.d.ts +0 -12
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +0 -35
- package/dist/components/examples/FormExample/FormExample.vue.d.ts +0 -2
- package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +0 -36
- package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +0 -20
- package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +0 -43
- package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +0 -29
- package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +0 -2
- package/dist/composables/asymmetricComputed.d.ts +0 -13
- package/dist/composables/useManagedState.d.ts +0 -31
- package/dist/index.cjs +0 -183
- package/dist/playwright/ScreenshotMatrix.vue.d.ts +0 -54
- package/dist/playwright/a11y.d.ts +0 -14
- package/dist/playwright/screenshots.d.ts +0 -69
- package/dist/types/breakpoints.d.ts +0 -13
- package/dist/types/themes.d.ts +0 -1
- package/dist/utils/math.d.ts +0 -1
- package/src/i18n/locales/de-DE.json +0 -116
- package/src/i18n/locales/en-US.json +0 -116
- package/src/i18n/locales/ko-KR.json +0 -27
- package/src/styles/variables/dark.css +0 -120
- package/src/styles/variables/light.css +0 -120
- package/src/styles/variables/themes/kaufland.css +0 -126
- package/src/styles/variables/themes/lidl.css +0 -126
- package/src/styles/variables/themes/onyx.json +0 -120
- package/src/styles/variables/themes/twogo.css +0 -126
package/README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<div align="center" style="text-align: center">
|
|
2
|
-
<
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
|
|
4
|
-
<source media="(prefers-color-scheme: light)" type="image/svg+xml" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
|
|
5
|
-
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg" width="160px">
|
|
6
|
-
</picture>
|
|
2
|
+
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo.svg" height="96px">
|
|
7
3
|
</div>
|
|
8
4
|
|
|
9
5
|
<br>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const a11yTags: string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Nullable } from '../../types/index.js';
|
|
2
|
+
import { OnyxAccordionProps } from './types.js';
|
|
3
|
+
declare const _default: <TValue extends PropertyKey>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onUpdate:modelValue"?: ((value: Nullable<TValue[]>) => any) | undefined;
|
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & OnyxAccordionProps<TValue> & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
/**
|
|
11
|
+
* Displays OnyxAccordionItem components.
|
|
12
|
+
*/
|
|
13
|
+
default(): unknown;
|
|
14
|
+
}> & {
|
|
15
|
+
/**
|
|
16
|
+
* Displays OnyxAccordionItem components.
|
|
17
|
+
*/
|
|
18
|
+
default(): unknown;
|
|
19
|
+
};
|
|
20
|
+
emit: (evt: "update:modelValue", value: Nullable<TValue[]>) => void;
|
|
21
|
+
}>) => import('vue').VNode & {
|
|
22
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_PrettifyLocal<T> = {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} & {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { DensityProp } from '../../composables/density.js';
|
|
3
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
4
|
+
import { Nullable } from '../../types/index.js';
|
|
5
|
+
export type OnyxAccordionProps<TValue extends PropertyKey> = DensityProp & {
|
|
6
|
+
/**
|
|
7
|
+
* Currently opened items. Will include the `value` property of the nested `OnyxAccordionItems`.
|
|
8
|
+
*/
|
|
9
|
+
modelValue?: Nullable<TValue[]>;
|
|
10
|
+
/**
|
|
11
|
+
* if `true`, only one accordion item can be open at the same time.
|
|
12
|
+
*/
|
|
13
|
+
exclusive?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Disable the accordion.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If set, the specified number of skeleton accordions will be shown.
|
|
20
|
+
*/
|
|
21
|
+
skeleton?: SkeletonInjected;
|
|
22
|
+
/**
|
|
23
|
+
* Accordion type. Will have different visual representations.
|
|
24
|
+
* Please note that "nested-large" and "nested-small" should only be used inside other components like e.g. the [OnyxDrawer](https://storybook.onyx.schwarz/?path=/docs/feedback-drawer--docs).
|
|
25
|
+
*/
|
|
26
|
+
type?: AccordionType;
|
|
27
|
+
};
|
|
28
|
+
export type AccordionInjectionKey<TValue extends PropertyKey> = InjectionKey<{
|
|
29
|
+
/**
|
|
30
|
+
* IDs of currently open AccordionItems.
|
|
31
|
+
*/
|
|
32
|
+
openItems: Readonly<Ref<PropertyKey[]>>;
|
|
33
|
+
/**
|
|
34
|
+
* Function to update the open state of an AccordionItem.
|
|
35
|
+
* @param id - The unique ID of the AccordionItem.
|
|
36
|
+
* @param value - Whether the AccordionItem should be open (true) or closed (false).
|
|
37
|
+
*/
|
|
38
|
+
updateOpen: (id: TValue, value: boolean) => void;
|
|
39
|
+
disabled: Ref<boolean>;
|
|
40
|
+
skeleton: Ref<SkeletonInjected>;
|
|
41
|
+
type: Ref<AccordionType>;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey<PropertyKey>;
|
|
44
|
+
export declare const ACCORDION_TYPES: readonly ["default", "nested-large", "nested-small"];
|
|
45
|
+
export type AccordionType = (typeof ACCORDION_TYPES)[number];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OnyxAccordionItemProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Displays the header content.
|
|
7
|
+
*/
|
|
8
|
+
header(): unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Displays the panel content.
|
|
11
|
+
*/
|
|
12
|
+
default?(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
/**
|
|
15
|
+
* Displays the header content.
|
|
16
|
+
*/
|
|
17
|
+
header(): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* Displays the panel content.
|
|
20
|
+
*/
|
|
21
|
+
default?(): unknown;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: any;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxAccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxAccordionItemProps> & Readonly<{}>, {
|
|
28
|
+
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
3
|
+
export type OnyxAccordionItemProps = DensityProp & {
|
|
4
|
+
/**
|
|
5
|
+
* Value that is used inside the `OnyxAccordion` when the item is open.
|
|
6
|
+
* Must be unique across one accordion.
|
|
7
|
+
*/
|
|
8
|
+
value: PropertyKey;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the accordion is disabled
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to show a skeleton accordion.
|
|
15
|
+
*/
|
|
16
|
+
skeleton?: SkeletonInjected;
|
|
17
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { OnyxAlertDialogProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Dialog content.
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Optional slot to override the headline with custom content.
|
|
11
|
+
* If unset, the `label` property will be shown.
|
|
12
|
+
*/
|
|
13
|
+
headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
|
|
16
|
+
* For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```vue
|
|
20
|
+
* <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
actions?(): unknown;
|
|
24
|
+
}> & {
|
|
25
|
+
/**
|
|
26
|
+
* Dialog content.
|
|
27
|
+
*/
|
|
28
|
+
default(): unknown;
|
|
29
|
+
/**
|
|
30
|
+
* Optional slot to override the headline with custom content.
|
|
31
|
+
* If unset, the `label` property will be shown.
|
|
32
|
+
*/
|
|
33
|
+
headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
|
|
36
|
+
* For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```vue
|
|
40
|
+
* <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
actions?(): unknown;
|
|
44
|
+
};
|
|
45
|
+
refs: {};
|
|
46
|
+
rootEl: any;
|
|
47
|
+
};
|
|
48
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxAlertDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
close: () => any;
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<OnyxAlertDialogProps> & Readonly<{
|
|
52
|
+
onClose?: (() => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnyxDialogProps } from '../OnyxDialog/types.js';
|
|
2
|
+
import { OnyxIconProps } from '../OnyxIcon/types.js';
|
|
3
|
+
export type OnyxAlertDialogProps = Omit<OnyxDialogProps, "modal" | "alert" | "alignment"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Optional icon to show.
|
|
6
|
+
*/
|
|
7
|
+
icon?: Omit<OnyxIconProps, "size">;
|
|
8
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OnyxAppLayoutProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Page content area of the application. Recommended component: [OnyxPageLayout](https://storybook.onyx.schwarz/?path=/docs/layout-pagelayout--docs).
|
|
7
|
+
*
|
|
8
|
+
* For semantic HTML, it is recommend to use HTML elements like `<main>`
|
|
9
|
+
*/
|
|
10
|
+
default(): unknown;
|
|
11
|
+
/**
|
|
12
|
+
* Navigation area of the application. Recommended components:
|
|
13
|
+
* - for top alignment: [OnyxNavBar](https://storybook.onyx.schwarz/?path=/docs/navigation-navbar--docs)
|
|
14
|
+
* - for left alignment: no onyx component yet, create your own custom one
|
|
15
|
+
*
|
|
16
|
+
* For implementing page-level sidebars, please use the [OnyxPageLayout](https://onyx.schwarz/?path=/story/layout-pagelayout--sidebar).
|
|
17
|
+
* For semantic HTML, it is recommended to use HTML elements like `<header>` and `<nav>` here, which is already the case when using the above recommended components.
|
|
18
|
+
*/
|
|
19
|
+
navBar?(): unknown;
|
|
20
|
+
}> & {
|
|
21
|
+
/**
|
|
22
|
+
* Page content area of the application. Recommended component: [OnyxPageLayout](https://storybook.onyx.schwarz/?path=/docs/layout-pagelayout--docs).
|
|
23
|
+
*
|
|
24
|
+
* For semantic HTML, it is recommend to use HTML elements like `<main>`
|
|
25
|
+
*/
|
|
26
|
+
default(): unknown;
|
|
27
|
+
/**
|
|
28
|
+
* Navigation area of the application. Recommended components:
|
|
29
|
+
* - for top alignment: [OnyxNavBar](https://storybook.onyx.schwarz/?path=/docs/navigation-navbar--docs)
|
|
30
|
+
* - for left alignment: no onyx component yet, create your own custom one
|
|
31
|
+
*
|
|
32
|
+
* For implementing page-level sidebars, please use the [OnyxPageLayout](https://onyx.schwarz/?path=/story/layout-pagelayout--sidebar).
|
|
33
|
+
* For semantic HTML, it is recommended to use HTML elements like `<header>` and `<nav>` here, which is already the case when using the above recommended components.
|
|
34
|
+
*/
|
|
35
|
+
navBar?(): unknown;
|
|
36
|
+
};
|
|
37
|
+
refs: {};
|
|
38
|
+
rootEl: HTMLDivElement;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
41
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
|
|
42
|
+
navBarAlignment: "top" | "left";
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OnyxAvatarProps } from './types.js';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<OnyxAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxAvatarProps> & Readonly<{}>, {
|
|
3
|
+
size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
5
|
+
export default _default;
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconSize, IconSizeProp } from '../OnyxIcon/types.js';
|
|
2
2
|
export type OnyxAvatarProps = IconSizeProp<Exclude<IconSize, "12px">> & {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Full user name. Will determine the displayed initials.
|
|
5
|
+
*
|
|
6
|
+
* @example "John Doe"
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
fullName: DisplayName;
|
|
8
9
|
/**
|
|
9
10
|
* Image URL to show. If unset or an error occurs while loading, a fallback will be displayed
|
|
10
11
|
* with the initials.
|
|
11
12
|
*/
|
|
12
13
|
src?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Initials to use. If unset, they will be inferred automatically from the `fullName` property.
|
|
16
|
+
*/
|
|
17
|
+
initials?: string;
|
|
18
|
+
};
|
|
19
|
+
export type DisplayName = string | {
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Locale of the given name. Will be used for formatting.
|
|
23
|
+
*/
|
|
24
|
+
locale: string;
|
|
13
25
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
/**
|
|
5
|
+
* Default slot to place the avatars.
|
|
6
|
+
*/
|
|
7
|
+
default(): unknown;
|
|
8
|
+
}> & {
|
|
9
|
+
/**
|
|
10
|
+
* Default slot to place the avatars.
|
|
11
|
+
*/
|
|
12
|
+
default(): unknown;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnyxBadgeProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Badge content.
|
|
7
|
+
*/
|
|
8
|
+
default?(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Badge content.
|
|
12
|
+
*/
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxBadgeProps> & Readonly<{}>, {
|
|
20
|
+
color: import('../../index.js', { with: { "resolution-mode": "import" } }).OnyxColor;
|
|
21
|
+
dot: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
import { OnyxColor } from '../../types/colors.js';
|
|
3
3
|
export type OnyxBadgeProps = DensityProp & {
|
|
4
4
|
/**
|
|
5
5
|
* The color of the badge.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnyxBottomBarProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
|
|
7
|
+
*/
|
|
8
|
+
left?(): unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
|
|
11
|
+
*/
|
|
12
|
+
default?(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
/**
|
|
15
|
+
* Bottom bar content. This slot is left aligned and should be used by buttons and icon buttons.
|
|
16
|
+
*/
|
|
17
|
+
left?(): unknown;
|
|
18
|
+
/**
|
|
19
|
+
* Bottom bar content. This slot is right aligned and should be used by buttons and icon buttons.
|
|
20
|
+
*/
|
|
21
|
+
default?(): unknown;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxBottomBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxBottomBarProps> & Readonly<{}>, {
|
|
28
|
+
hideBorder: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnyxBreadcrumbProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Breadcrumb items (see `OnyxBreadcrumbItem` component).
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Breadcrumb items (see `OnyxBreadcrumbItem` component).
|
|
12
|
+
*/
|
|
13
|
+
default(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxBreadcrumbProps> & Readonly<{}>, {
|
|
20
|
+
container: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
export type OnyxBreadcrumbProps = DensityProp & {
|
|
3
|
+
/**
|
|
4
|
+
* If `true`, the component will be shown inside a styled container.
|
|
5
|
+
* Recommended when used together with a nav bar or sidebar.
|
|
6
|
+
*/
|
|
7
|
+
container?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Custom home item.
|
|
10
|
+
*/
|
|
11
|
+
home?: BreadcrumbHomeItem;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to show all nested breadcrumb items as skeleton.
|
|
14
|
+
*/
|
|
15
|
+
skeleton?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type BreadcrumbHomeItem = {
|
|
18
|
+
/**
|
|
19
|
+
* Text label for the home item. Will show the passed label instead of an icon.
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Link of the home item.
|
|
24
|
+
*
|
|
25
|
+
* @default "/"
|
|
26
|
+
*/
|
|
27
|
+
link?: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnyxBreadcrumbItemProps } from './types.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Item content / page name.
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Item content / page name.
|
|
12
|
+
*/
|
|
13
|
+
default(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLLIElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<OnyxBreadcrumbItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxBreadcrumbItemProps> & Readonly<{}>, {
|
|
20
|
+
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
21
|
+
active: boolean | "auto";
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
3
|
+
export type OnyxBreadcrumbItemProps = DensityProp & {
|
|
4
|
+
/**
|
|
5
|
+
* Link to the corresponding page.
|
|
6
|
+
*/
|
|
7
|
+
href: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the nav item is currently active.
|
|
10
|
+
* If any nested option is active, the parent nav item will also be marked as active.
|
|
11
|
+
* If "auto" and a [router](https://onyx.schwarz/development/router.html) is provided, the active state will be determined automatically based on the current route.
|
|
12
|
+
*/
|
|
13
|
+
active?: boolean | "auto";
|
|
14
|
+
/**
|
|
15
|
+
* Whether to show a skeleton item.
|
|
16
|
+
*/
|
|
17
|
+
skeleton?: SkeletonInjected;
|
|
18
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnyxButtonProps } from './types.js';
|
|
2
|
+
type __VLS_Props = Pick<OnyxButtonProps, "disabled" | "link" | "loading" | "type" | "autofocus">;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
/**
|
|
7
|
+
* Button content.
|
|
8
|
+
*/
|
|
9
|
+
default(): unknown;
|
|
10
|
+
}> & {
|
|
11
|
+
/**
|
|
12
|
+
* Button content.
|
|
13
|
+
*/
|
|
14
|
+
default(): unknown;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
buttonRef: HTMLButtonElement;
|
|
18
|
+
};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
type: import('./types.js', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
buttonRef: HTMLButtonElement;
|
|
26
|
+
}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnyxButtonProps } from './types.js';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<OnyxButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxButtonProps> & Readonly<{}>, {
|
|
3
|
+
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
4
|
+
disabled: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
type: import('./types.js', { with: { "resolution-mode": "import" } }).ButtonType;
|
|
7
|
+
color: import('./types.js', { with: { "resolution-mode": "import" } }).ButtonColor;
|
|
8
|
+
mode: import('./types.js', { with: { "resolution-mode": "import" } }).ButtonMode;
|
|
9
|
+
iconPosition: "left" | "right";
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
rippleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
12
|
+
events: import('vue').Ref<Record<string, (event: MouseEvent) => void>, Record<string, (event: MouseEvent) => void>>;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
14
|
+
rippleTriggerRef: HTMLSpanElement;
|
|
15
|
+
}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
16
|
+
P: {};
|
|
17
|
+
B: {};
|
|
18
|
+
D: {};
|
|
19
|
+
C: {};
|
|
20
|
+
M: {};
|
|
21
|
+
Defaults: {};
|
|
22
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
23
|
+
events: import('vue').Ref<Record<string, (event: MouseEvent) => void>, Record<string, (event: MouseEvent) => void>>;
|
|
24
|
+
}, {}, {}, {}, {}> | null;
|
|
25
|
+
}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DensityProp } from '../../composables/density.js';
|
|
2
|
+
import { SkeletonInjected } from '../../composables/useSkeletonState.js';
|
|
3
|
+
import { AutofocusProp } from '../../types/index.js';
|
|
4
|
+
import { FormInjected } from '../OnyxForm/OnyxForm.core.js';
|
|
5
|
+
import { WithLinkProp } from '../OnyxRouterLink/types.js';
|
|
3
6
|
export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
4
7
|
/**
|
|
5
8
|
* The text content of the button.
|
|
@@ -8,7 +11,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
8
11
|
/**
|
|
9
12
|
* If the button should be disabled or not.
|
|
10
13
|
*/
|
|
11
|
-
disabled?: boolean
|
|
14
|
+
disabled?: FormInjected<boolean>;
|
|
12
15
|
/**
|
|
13
16
|
* Shows a loading indicator.
|
|
14
17
|
*/
|
|
@@ -29,10 +32,19 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
29
32
|
* An icon which will be displayed on the left side of the label.
|
|
30
33
|
*/
|
|
31
34
|
icon?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Position where the icon is placed.
|
|
37
|
+
*/
|
|
38
|
+
iconPosition?: "left" | "right";
|
|
32
39
|
/**
|
|
33
40
|
* Whether to show a skeleton button.
|
|
34
41
|
*/
|
|
35
|
-
skeleton?:
|
|
42
|
+
skeleton?: SkeletonInjected;
|
|
43
|
+
/**
|
|
44
|
+
* If set, the button will be rendered as link.
|
|
45
|
+
* Note that not all button properties are supported when used as link, e.g. `disabled`, `type` and `autofocus` are not supported.
|
|
46
|
+
*/
|
|
47
|
+
link?: WithLinkProp["link"];
|
|
36
48
|
};
|
|
37
49
|
export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
|
|
38
50
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|