sit-onyx 1.0.0-beta.13 → 1.0.0-beta.130
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.vue.d.ts +30 -0
- package/dist/components/OnyxAccordion/types.d.ts +32 -0
- package/dist/components/OnyxAccordionItem/OnyxAccordionItem.vue.d.ts +38 -0
- package/dist/components/OnyxAccordionItem/types.d.ts +16 -0
- package/dist/components/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +60 -0
- package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
- package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +27 -43
- package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +19 -34
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +18 -12
- package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +20 -37
- package/dist/components/OnyxBottomBar/OnyxBottomBar.vue.d.ts +36 -0
- package/dist/components/OnyxBottomBar/types.d.ts +7 -0
- package/dist/components/OnyxButton/OnyxButton.vue.d.ts +19 -39
- package/dist/components/OnyxButton/types.d.ts +4 -2
- package/dist/components/OnyxCard/OnyxCard.vue.d.ts +28 -0
- package/dist/components/OnyxCard/types.d.ts +8 -0
- package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +11 -12
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +10 -10
- package/dist/components/OnyxCheckboxGroup/types.d.ts +8 -8
- package/dist/components/OnyxDataGrid/OnyxDataGrid.vue.d.ts +31 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue.d.ts +31 -0
- package/dist/components/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +87 -0
- package/dist/components/OnyxDataGrid/features/HeaderCell.vue.d.ts +25 -0
- package/dist/components/OnyxDataGrid/features/all.d.ts +2 -0
- package/dist/components/OnyxDataGrid/features/index.d.ts +97 -0
- package/dist/components/OnyxDataGrid/features/sorting/SortAction.vue.d.ts +13 -0
- package/dist/components/OnyxDataGrid/features/sorting/TestCase.vue.d.ts +9 -0
- package/dist/components/OnyxDataGrid/features/sorting/sorting.d.ts +5 -0
- package/dist/components/OnyxDataGrid/features/sorting/types.d.ts +55 -0
- package/dist/components/OnyxDataGrid/types.d.ts +29 -0
- package/dist/components/OnyxDatePicker/OnyxDatePicker.vue.d.ts +19 -0
- package/dist/components/OnyxDatePicker/types.d.ts +23 -0
- package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +31 -46
- package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +27 -20
- package/dist/components/OnyxErrorTooltip/OnyxErrorTooltip.vue.d.ts +42 -0
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +2 -23
- package/dist/components/OnyxForm/FormElementTestWrapper.vue.d.ts +15 -0
- package/dist/components/OnyxForm/OnyxForm.core.d.ts +90 -0
- package/dist/components/OnyxForm/OnyxForm.vue.d.ts +29 -0
- package/dist/components/OnyxForm/types.d.ts +4 -0
- package/dist/components/OnyxFormElement/FormMessage.vue.d.ts +13 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.ct-utils.d.ts +11 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +28 -41
- package/dist/components/OnyxFormElement/types.d.ts +19 -22
- package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +20 -21
- package/dist/components/OnyxHeadline/types.d.ts +12 -0
- package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +1 -10
- package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +19 -44
- package/dist/components/OnyxIconButton/types.d.ts +4 -2
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +4 -10
- package/dist/components/OnyxInfoTooltip/types.d.ts +1 -5
- package/dist/components/OnyxInput/OnyxInput.vue.d.ts +57 -51
- package/dist/components/OnyxInput/types.d.ts +12 -50
- package/dist/components/OnyxLink/OnyxLink.vue.d.ts +19 -40
- package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +19 -40
- package/dist/components/OnyxLoadingIndicator/OnyxCircleSpinner.vue.d.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingDots.vue.d.ts +2 -0
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +2 -23
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +9 -16
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +22 -37
- package/dist/components/OnyxModalDialog/OnyxModalDialog.vue.d.ts +48 -0
- package/dist/components/OnyxModalDialog/types.d.ts +2 -0
- package/dist/components/OnyxMoreList/OnyxMoreList.vue.d.ts +50 -0
- package/dist/components/OnyxMoreList/types.d.ts +18 -0
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +18 -25
- package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +72 -83
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +7 -28
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +2 -2
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +4 -13
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +23 -18
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +11 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +19 -16
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +2 -1
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +38 -25
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +190 -48
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +6 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/OnyxNavItem.vue.d.ts +23 -38
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +2 -23
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +4 -13
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +32 -37
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +36 -15
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +6 -0
- package/dist/components/OnyxNavBar/types.d.ts +3 -1
- package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +22 -25
- package/dist/components/OnyxPageLayout/types.d.ts +2 -1
- package/dist/components/OnyxPagination/OnyxPagination.vue.d.ts +9 -0
- package/dist/components/OnyxPagination/OnyxSelectPagination.vue.d.ts +7 -0
- package/dist/components/OnyxPagination/types.d.ts +15 -0
- package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +10 -12
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +11 -12
- package/dist/components/OnyxRadioGroup/types.d.ts +6 -14
- package/dist/components/OnyxRipple/OnyxRipple.vue.d.ts +6 -0
- package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +15 -19
- package/dist/components/OnyxSelect/types.d.ts +41 -9
- package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +9 -12
- package/dist/components/OnyxSelectInput/types.d.ts +13 -18
- package/dist/components/OnyxSelectOption/OnyxSelectOption.vue.d.ts +20 -39
- package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
- package/dist/components/OnyxStepper/OnyxStepper.vue.d.ts +19 -51
- package/dist/components/OnyxStepper/types.d.ts +24 -19
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +13 -38
- package/dist/components/OnyxSwitch/types.d.ts +4 -6
- package/dist/components/OnyxSystemButton/OnyxSystemButton.vue.d.ts +8 -0
- package/dist/components/{OnyxLoadingIndicator/LoadingDots.vue.d.ts → OnyxSystemButton/examples/WithFlyoutMenu.vue.d.ts} +1 -1
- package/dist/components/OnyxSystemButton/examples/WithTooltip.vue.d.ts +2 -0
- package/dist/components/OnyxSystemButton/types.d.ts +17 -0
- package/dist/components/OnyxTab/OnyxTab.vue.d.ts +37 -0
- package/dist/components/OnyxTab/types.d.ts +20 -0
- package/dist/components/OnyxTable/OnyxTable.vue.d.ts +45 -64
- package/dist/components/OnyxTable/types.d.ts +23 -0
- package/dist/components/OnyxTabs/OnyxTabs.vue.d.ts +28 -0
- package/dist/components/OnyxTabs/types.d.ts +45 -0
- package/dist/components/OnyxTag/OnyxTag.vue.d.ts +3 -24
- package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +18 -50
- package/dist/components/OnyxTextarea/types.d.ts +1 -1
- package/dist/components/OnyxToast/OnyxToast.vue.d.ts +1 -1
- package/dist/components/OnyxToast/StorybookExample.vue.d.ts +1 -1
- package/dist/components/OnyxToastMessage/OnyxToastMessage.vue.d.ts +6 -35
- package/dist/components/OnyxToastMessage/types.d.ts +2 -2
- package/dist/components/OnyxTooltip/OnyxTooltip.ct-utils.d.ts +7 -0
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +49 -59
- package/dist/components/OnyxTooltip/types.d.ts +34 -9
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +18 -25
- package/dist/components/examples/ComponentShowcase/ComponentShowcase.vue.d.ts +9 -0
- package/dist/components/examples/DataGrid/SortingDataGrid.vue.d.ts +26 -0
- package/dist/components/examples/FormExample/FormExample.vue.d.ts +3 -0
- package/dist/components/examples/GridPlayground/EditGridElementDialog/EditGridElementDialog.vue.d.ts +26 -0
- package/dist/components/examples/GridPlayground/GridBadge/GridBadge.vue.d.ts +17 -0
- package/dist/components/examples/GridPlayground/GridElement/GridElement.vue.d.ts +44 -0
- package/dist/components/examples/GridPlayground/GridOverlay/GridOverlay.vue.d.ts +10 -0
- package/dist/components/examples/GridPlayground/GridPlayground.vue.d.ts +4 -0
- package/dist/components/{OnyxToast/PlaywrightTest.vue.d.ts → examples/OnyxCard/DetailsCardExample.vue.d.ts} +1 -1
- package/dist/components/{OnyxToast/PlaywrightTestWrapper.vue.d.ts → examples/OnyxCard/HeadlineCardExample.vue.d.ts} +1 -1
- package/dist/components/{OnyxLoadingIndicator/CircleSpinner.vue.d.ts → examples/OnyxCard/IconCardExample.vue.d.ts} +1 -1
- package/dist/components/examples/OnyxCard/ImageCardExample.vue.d.ts +2 -0
- package/dist/components/examples/OnyxCard/KPICardExample.vue.d.ts +2 -0
- package/dist/composables/asymmetricComputed.d.ts +13 -0
- package/dist/composables/density.d.ts +1 -1
- package/dist/composables/required.d.ts +3 -3
- package/dist/composables/scrollEnd.d.ts +1 -1
- package/dist/composables/themeTransition.d.ts +3 -0
- package/dist/composables/useAutoFocus.d.ts +5 -0
- package/dist/composables/useCustomValidity.d.ts +38 -20
- package/dist/composables/useErrorClass.d.ts +14 -0
- package/dist/composables/useLenientMaxLengthValidation.ct-utils.d.ts +3 -0
- package/dist/composables/useLenientMaxLengthValidation.d.ts +88 -0
- package/dist/composables/useManagedState.d.ts +11 -5
- package/dist/composables/useMoreList.d.ts +115 -0
- package/dist/composables/useOpenDirection.d.ts +14 -0
- package/dist/composables/useResizeObserver.d.ts +13 -3
- package/dist/composables/useRipple.d.ts +15 -0
- package/dist/composables/useSkeletonState.d.ts +61 -0
- package/dist/composables/useTimer.d.ts +1 -1
- package/dist/composables/useWedgePosition.d.ts +13 -0
- package/dist/i18n/index.d.ts +14 -6
- package/dist/i18n/locales/de-DE.json +155 -0
- package/dist/i18n/locales/en-US.json +155 -0
- package/dist/i18n/locales/ko-KR.json +27 -0
- package/dist/index.cjs +54 -54
- package/dist/index.d.ts +38 -1
- package/dist/index.js +4192 -2593
- package/dist/playwright/a11y.d.ts +15 -1
- package/dist/playwright/screenshots.d.ts +5 -39
- package/dist/style.css +1 -1
- package/dist/types/colors.d.ts +1 -1
- package/dist/types/components.d.ts +4 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/themes.d.ts +2 -1
- package/dist/types/utils.d.ts +5 -0
- package/dist/utils/attrs.d.ts +3 -3
- package/dist/utils/date.d.ts +7 -0
- package/dist/utils/numbers.d.ts +18 -0
- package/dist/utils/plugin.d.ts +0 -1
- package/dist/utils/strings.d.ts +6 -0
- package/package.json +25 -18
- package/src/i18n/locales/de-DE.json +57 -17
- package/src/i18n/locales/en-US.json +57 -17
- package/src/styles/breakpoints.scss +4 -2
- package/src/styles/global.css +1 -1
- package/src/styles/grid.ct.tsx +1 -1
- package/src/styles/grid.scss +2 -1
- package/src/styles/index.scss +9 -6
- package/src/styles/mixins/checkbox.scss +7 -19
- package/src/styles/mixins/input.scss +155 -39
- package/src/styles/mixins/layers.scss +0 -6
- package/src/styles/mixins/list.scss +8 -14
- package/src/styles/mixins/sizes.scss +27 -0
- package/src/styles/required.scss +1 -1
- package/src/styles/root.scss +13 -3
- package/src/styles/variables/density-compact.css +17 -0
- package/src/styles/variables/density-cozy.css +17 -0
- package/src/styles/variables/density-default.css +18 -0
- package/src/styles/variables/spacing.css +20 -0
- package/src/styles/variables/themes/digits-dark.css +129 -0
- package/src/styles/variables/themes/digits-light.css +129 -0
- package/src/styles/variables/themes/kaufland-dark.css +129 -0
- package/src/styles/variables/themes/kaufland-light.css +129 -0
- package/src/styles/variables/themes/lidl-dark.css +129 -0
- package/src/styles/variables/themes/lidl-light.css +129 -0
- package/src/styles/variables/themes/onyx-dark.css +129 -0
- package/src/styles/variables/themes/onyx-light.css +129 -0
- package/src/styles/variables/themes/schwarz-dark.css +129 -0
- package/src/styles/variables/themes/schwarz-light.css +129 -0
- package/src/styles/variables/themes/value.css +224 -0
- package/dist/components/GridPlayground/GridElement.vue.d.ts +0 -18
- package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +0 -22
- package/dist/components/GridPlayground/GridPlayground.vue.d.ts +0 -27
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +0 -41
- package/dist/playwright/ScreenshotMatrix.vue.d.ts +0 -54
- package/dist/types/breakpoints.d.ts +0 -13
- package/src/styles/dark.css +0 -132
- package/src/styles/density.scss +0 -41
- package/src/styles/light.css +0 -132
- package/src/styles/themes/kaufland.css +0 -126
- package/src/styles/themes/lidl.css +0 -126
- package/src/styles/themes/onyx.css +0 -126
- package/src/styles/themes/onyx.json +0 -120
- package/src/styles/themes/twogo.css +0 -126
- package/src/types/breakpoints.ts +0 -14
- package/src/types/colors.ts +0 -10
- package/src/types/components.ts +0 -59
- package/src/types/fonts.ts +0 -7
- package/src/types/i18n.ts +0 -68
- package/src/types/index.ts +0 -10
- package/src/types/themes.ts +0 -1
- package/src/types/utils.ts +0 -4
- /package/dist/components/{OnyxRadioGroup/OnyxRadioGroup.d.ts → OnyxForm/OnyxForm.core.spec-d.d.ts} +0 -0
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,30 @@
|
|
|
1
|
+
import { type OnyxAccordionProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Displays OnyxAccordionItem components.
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Displays OnyxAccordionItem components.
|
|
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<OnyxAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAccordionProps> & Readonly<{}>, {
|
|
20
|
+
exclusive: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SkeletonInjected } from "src/composables/useSkeletonState";
|
|
2
|
+
import type { InjectionKey, Ref } from "vue";
|
|
3
|
+
import type { DensityProp } from "../../composables/density";
|
|
4
|
+
export type OnyxAccordionProps = DensityProp & {
|
|
5
|
+
/**
|
|
6
|
+
* if `true`, only one accordion item can be open at the same time.
|
|
7
|
+
*/
|
|
8
|
+
exclusive?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Disable the accordion.
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If set, the specified number of skeleton accordions will be shown.
|
|
15
|
+
*/
|
|
16
|
+
skeleton?: SkeletonInjected;
|
|
17
|
+
};
|
|
18
|
+
export type AccordionInjectionKey = InjectionKey<{
|
|
19
|
+
/**
|
|
20
|
+
* A reactive set containing the IDs of currently open AccordionItems.
|
|
21
|
+
*/
|
|
22
|
+
openItems: Ref<Set<string>>;
|
|
23
|
+
/**
|
|
24
|
+
* Function to update the open state of an AccordionItem.
|
|
25
|
+
* @param id - The unique ID of the AccordionItem.
|
|
26
|
+
* @param value - Whether the AccordionItem should be open (true) or closed (false).
|
|
27
|
+
*/
|
|
28
|
+
updateOpen: (id: string, value: boolean) => void;
|
|
29
|
+
disabled: Ref<boolean>;
|
|
30
|
+
skeleton: Ref<SkeletonInjected>;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const ACCORDION_INJECTION_KEY: AccordionInjectionKey;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { OnyxAccordionItemProps } from "./types";
|
|
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
|
+
open: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { SkeletonInjected } from "../../composables/useSkeletonState";
|
|
3
|
+
export type OnyxAccordionItemProps = DensityProp & {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the accordion is open
|
|
6
|
+
*/
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the accordion is disabled
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to show a skeleton accordion.
|
|
14
|
+
*/
|
|
15
|
+
skeleton?: SkeletonInjected;
|
|
16
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { OnyxAlertDialogProps } from "./types";
|
|
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 type { OnyxDialogProps } from "../OnyxDialog/types";
|
|
2
|
+
import type { OnyxIconProps } from "../OnyxIcon/types";
|
|
3
|
+
export type OnyxAlertDialogProps = Omit<OnyxDialogProps, "modal" | "alert"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Optional icon to show.
|
|
6
|
+
*/
|
|
7
|
+
icon?: Omit<OnyxIconProps, "size">;
|
|
8
|
+
};
|
|
@@ -1,52 +1,36 @@
|
|
|
1
1
|
import type { OnyxAppLayoutProps } from "./types";
|
|
2
|
-
declare function __VLS_template():
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/** Navigation area of the application */
|
|
6
|
+
navBar?(): unknown;
|
|
7
|
+
/** Page content area of the application */
|
|
8
|
+
default(): unknown;
|
|
9
|
+
/** Overlays that cover the page and exclude the nav area */
|
|
10
|
+
pageOverlay?(): unknown;
|
|
11
|
+
/** Overlays that cover the complete page */
|
|
12
|
+
appOverlay?(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
/** Navigation area of the application */
|
|
15
|
+
navBar?(): unknown;
|
|
16
|
+
/** Page content area of the application */
|
|
17
|
+
default(): unknown;
|
|
18
|
+
/** Overlays that cover the page and exclude the nav area */
|
|
19
|
+
pageOverlay?(): unknown;
|
|
20
|
+
/** Overlays that cover the complete page */
|
|
21
|
+
appOverlay?(): unknown;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
20
25
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAppLayoutProps>, {
|
|
24
|
-
navBarAlignment: string;
|
|
25
|
-
}>>>, {
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAppLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAppLayoutProps> & Readonly<{}>, {
|
|
26
28
|
navBarAlignment: "top" | "left";
|
|
27
|
-
}, {}>;
|
|
28
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
31
|
export default _default;
|
|
30
|
-
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
39
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
33
|
new (): {
|
|
41
34
|
$slots: S;
|
|
42
35
|
};
|
|
43
36
|
};
|
|
44
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
-
type __VLS_TypePropsToOption<T> = {
|
|
46
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
-
} : {
|
|
49
|
-
type: import('vue').PropType<T[K]>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
import type { OnyxAvatarProps } from "./types";
|
|
2
|
-
declare function __VLS_template():
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
7
|
+
*/
|
|
8
|
+
default?(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
12
|
+
*/
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLElement;
|
|
12
17
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
|
|
16
|
-
size: string;
|
|
17
|
-
}>>>, {
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxAvatarProps> & Readonly<{}>, {
|
|
18
20
|
size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
|
|
19
|
-
}, {}>;
|
|
20
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
23
|
export default _default;
|
|
22
|
-
type __VLS_WithDefaults<P, D> = {
|
|
23
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
-
default: D[K];
|
|
25
|
-
}> : P[K];
|
|
26
|
-
};
|
|
27
|
-
type __VLS_Prettify<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
30
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
25
|
new (): {
|
|
32
26
|
$slots: S;
|
|
33
27
|
};
|
|
34
28
|
};
|
|
35
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
-
type __VLS_TypePropsToOption<T> = {
|
|
37
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
-
} : {
|
|
40
|
-
type: import('vue').PropType<T[K]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
declare function __VLS_template():
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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;
|
|
11
16
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
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"]>;
|
|
14
20
|
export default _default;
|
|
15
21
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
22
|
new (): {
|
|
@@ -1,46 +1,29 @@
|
|
|
1
1
|
import type { OnyxBadgeProps } from "./types";
|
|
2
|
-
declare function __VLS_template():
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
12
17
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxBadgeProps>, {
|
|
17
|
-
color: string;
|
|
18
|
-
dot: boolean;
|
|
19
|
-
}>>>, {
|
|
20
|
-
color: import("../..").OnyxColor;
|
|
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.ts").OnyxColor;
|
|
21
21
|
dot: boolean;
|
|
22
|
-
}, {}>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
24
|
export default _default;
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
26
|
new (): {
|
|
35
27
|
$slots: S;
|
|
36
28
|
};
|
|
37
29
|
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: import('vue').PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { OnyxBottomBarProps } from "./types";
|
|
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
|
+
};
|
|
@@ -1,45 +1,25 @@
|
|
|
1
1
|
import type { OnyxButtonProps } from "./types";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
type: string;
|
|
6
|
-
color: string;
|
|
7
|
-
mode: string;
|
|
8
|
-
skeleton: boolean;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
click: () => void;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxButtonProps>, {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
type: string;
|
|
15
|
-
color: string;
|
|
16
|
-
mode: string;
|
|
17
|
-
skeleton: boolean;
|
|
18
|
-
}>>> & {
|
|
19
|
-
onClick?: (() => any) | undefined;
|
|
20
|
-
}, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<OnyxButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxButtonProps> & Readonly<{}>, {
|
|
21
3
|
type: import("./types").ButtonType;
|
|
22
4
|
color: import("./types").ButtonColor;
|
|
23
|
-
disabled: boolean;
|
|
24
5
|
loading: boolean;
|
|
6
|
+
disabled: import("../OnyxForm/OnyxForm.core").FormInjected<boolean>;
|
|
25
7
|
mode: import("./types").ButtonMode;
|
|
26
|
-
skeleton:
|
|
27
|
-
}, {}
|
|
8
|
+
skeleton: import("../../composables/useSkeletonState").SkeletonInjected;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
10
|
+
rippleRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
11
|
+
events: import("vue").Ref<Record<string, (event: MouseEvent) => void>, Record<string, (event: MouseEvent) => void>>;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {
|
|
13
|
+
rippleTrigger: HTMLSpanElement;
|
|
14
|
+
}, HTMLSpanElement, import("vue").ComponentProvideOptions, {
|
|
15
|
+
P: {};
|
|
16
|
+
B: {};
|
|
17
|
+
D: {};
|
|
18
|
+
C: {};
|
|
19
|
+
M: {};
|
|
20
|
+
Defaults: {};
|
|
21
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
22
|
+
events: import("vue").Ref<Record<string, (event: MouseEvent) => void>, Record<string, (event: MouseEvent) => void>>;
|
|
23
|
+
}, {}, {}, {}, {}> | null;
|
|
24
|
+
}, any>;
|
|
28
25
|
export default _default;
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { SkeletonInjected } from "../../composables/useSkeletonState";
|
|
2
3
|
import type { AutofocusProp } from "../../types";
|
|
4
|
+
import type { FormInjected } from "../OnyxForm/OnyxForm.core";
|
|
3
5
|
export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
4
6
|
/**
|
|
5
7
|
* The text content of the button.
|
|
@@ -8,7 +10,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
8
10
|
/**
|
|
9
11
|
* If the button should be disabled or not.
|
|
10
12
|
*/
|
|
11
|
-
disabled?: boolean
|
|
13
|
+
disabled?: FormInjected<boolean>;
|
|
12
14
|
/**
|
|
13
15
|
* Shows a loading indicator.
|
|
14
16
|
*/
|
|
@@ -32,7 +34,7 @@ export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
|
32
34
|
/**
|
|
33
35
|
* Whether to show a skeleton button.
|
|
34
36
|
*/
|
|
35
|
-
skeleton?:
|
|
37
|
+
skeleton?: SkeletonInjected;
|
|
36
38
|
};
|
|
37
39
|
export declare const BUTTON_TYPES: readonly ["button", "submit", "reset"];
|
|
38
40
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { OnyxCardProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Card content.
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Card content.
|
|
12
|
+
*/
|
|
13
|
+
default(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxCardProps> & Readonly<{}>, {
|
|
20
|
+
clickable: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
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,8 @@
|
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
export type OnyxCardProps = DensityProp & {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the whole card should be clickable (will render it as `<button>`).
|
|
5
|
+
* **Important**: If clickable, the card must not contain interactive elements like other buttons etc.
|
|
6
|
+
*/
|
|
7
|
+
clickable?: boolean;
|
|
8
|
+
};
|