sit-onyx 1.0.0-alpha.98 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/dist/components/GridPlayground/GridElement.vue.d.ts +18 -0
- package/dist/components/GridPlayground/GridElementsIndicator.vue.d.ts +22 -0
- package/dist/components/GridPlayground/GridPlayground.vue.d.ts +27 -0
- package/dist/components/OnyxAppLayout/OnyxAppLayout.vue.d.ts +21 -19
- package/dist/components/OnyxAvatar/OnyxAvatar.vue.d.ts +20 -22
- package/dist/components/OnyxAvatar/types.d.ts +3 -10
- package/dist/components/OnyxAvatarStack/OnyxAvatarStack.vue.d.ts +4 -2
- package/dist/components/OnyxBadge/OnyxBadge.vue.d.ts +23 -22
- package/dist/components/OnyxBadge/types.d.ts +2 -3
- package/dist/components/OnyxButton/OnyxButton.vue.d.ts +16 -17
- package/dist/components/OnyxButton/types.d.ts +3 -3
- package/dist/components/OnyxCheckbox/OnyxCheckbox.vue.d.ts +13 -65
- package/dist/components/OnyxCheckbox/types.d.ts +4 -5
- package/dist/components/OnyxCheckboxGroup/OnyxCheckboxGroup.vue.d.ts +12 -54
- package/dist/components/OnyxCheckboxGroup/types.d.ts +4 -5
- package/dist/components/OnyxDialog/OnyxDialog.vue.d.ts +57 -0
- package/dist/components/OnyxDialog/types.d.ts +24 -0
- package/dist/components/OnyxEmpty/OnyxEmpty.vue.d.ts +4 -2
- package/dist/components/OnyxExternalLinkIcon/OnyxExternalLinkIcon.vue.d.ts +26 -0
- package/dist/components/OnyxExternalLinkIcon/types.d.ts +12 -0
- package/dist/components/OnyxFormElement/OnyxFormElement.vue.d.ts +39 -0
- package/dist/components/OnyxFormElement/types.d.ts +48 -0
- package/dist/components/OnyxHeadline/OnyxHeadline.vue.d.ts +11 -24
- package/dist/components/OnyxHeadline/types.d.ts +0 -2
- package/dist/components/OnyxIcon/OnyxIcon.vue.d.ts +3 -21
- package/dist/components/OnyxIcon/types.d.ts +3 -2
- package/dist/components/OnyxIconButton/OnyxIconButton.vue.d.ts +24 -23
- package/dist/components/OnyxIconButton/types.d.ts +4 -4
- package/dist/components/OnyxInfoTooltip/OnyxInfoTooltip.vue.d.ts +12 -0
- package/dist/components/OnyxInfoTooltip/types.d.ts +6 -0
- package/dist/components/OnyxInput/OnyxInput.vue.d.ts +17 -18
- package/dist/components/OnyxInput/types.d.ts +9 -35
- package/dist/components/OnyxLink/OnyxLink.vue.d.ts +27 -26
- package/dist/components/OnyxLink/types.d.ts +2 -11
- package/dist/components/OnyxListItem/OnyxListItem.vue.d.ts +43 -15
- package/dist/components/OnyxListItem/types.d.ts +24 -0
- package/dist/components/OnyxLoadingIndicator/CircleSpinner.vue.d.ts +1 -1
- package/dist/components/OnyxLoadingIndicator/LoadingDots.vue.d.ts +1 -1
- package/dist/components/OnyxLoadingIndicator/OnyxLoadingIndicator.vue.d.ts +12 -13
- package/dist/components/OnyxMiniSearch/OnyxMiniSearch.vue.d.ts +23 -0
- package/dist/components/OnyxMiniSearch/types.d.ts +11 -0
- package/dist/components/OnyxMobileNavButton/OnyxMobileNavButton.vue.d.ts +47 -0
- package/dist/components/OnyxMobileNavButton/types.d.ts +15 -0
- package/dist/components/OnyxNavAppArea/OnyxNavAppArea.vue.d.ts +15 -14
- package/dist/components/OnyxNavAppArea/types.d.ts +4 -0
- package/dist/components/OnyxNavBar/OnyxNavBar.vue.d.ts +78 -24
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +32 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeDialog/types.d.ts +8 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/OnyxColorSchemeMenuItem.vue.d.ts +17 -0
- package/dist/components/OnyxNavBar/modules/OnyxColorSchemeMenuItem/types.d.ts +7 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +52 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +6 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/OnyxMenuItem.vue.d.ts +25 -0
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +21 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/MobileComponentTestWrapper.vue.d.ts +41 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/NavButtonLayout.vue.d.ts +35 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/OnyxNavButton.vue.d.ts +58 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavButton/types.d.ts +13 -0
- package/dist/components/{OnyxNavItem → OnyxNavBar/modules/OnyxNavItem}/OnyxNavItem.vue.d.ts +25 -28
- package/dist/components/OnyxNavBar/modules/OnyxNavItem/types.d.ts +2 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +26 -0
- package/dist/components/OnyxNavBar/modules/OnyxNavSeparator/types.d.ts +3 -0
- package/dist/components/OnyxNavBar/modules/OnyxTimer/OnyxTimer.vue.d.ts +16 -0
- package/dist/components/OnyxNavBar/modules/OnyxTimer/types.d.ts +16 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +37 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +28 -0
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +14 -0
- package/dist/components/OnyxNavBar/modules/index.d.ts +17 -0
- package/dist/components/OnyxNavBar/types.d.ts +24 -3
- package/dist/components/OnyxPageLayout/OnyxPageLayout.vue.d.ts +11 -14
- package/dist/components/OnyxRadioButton/OnyxRadioButton.vue.d.ts +13 -59
- package/dist/components/OnyxRadioButton/types.d.ts +6 -7
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.d.ts +1 -0
- package/dist/components/OnyxRadioGroup/OnyxRadioGroup.vue.d.ts +23 -0
- package/dist/components/{OnyxRadioButtonGroup → OnyxRadioGroup}/types.d.ts +9 -10
- package/dist/components/OnyxSelect/OnyxSelect.vue.d.ts +59 -68
- package/dist/components/OnyxSelect/types.d.ts +72 -43
- package/dist/components/OnyxSelectInput/OnyxSelectInput.vue.d.ts +25 -0
- package/dist/components/OnyxSelectInput/types.d.ts +51 -0
- package/dist/components/{OnyxListboxOption/OnyxListboxOption.vue.d.ts → OnyxSelectOption/OnyxSelectOption.vue.d.ts} +23 -25
- package/dist/components/OnyxSelectOption/types.d.ts +16 -0
- package/dist/components/OnyxSkeleton/OnyxSkeleton.vue.d.ts +1 -1
- package/dist/components/OnyxSwitch/OnyxSwitch.vue.d.ts +15 -16
- package/dist/components/OnyxSwitch/types.d.ts +5 -6
- package/dist/components/OnyxTable/OnyxTable.vue.d.ts +57 -26
- package/dist/components/OnyxTable/types.d.ts +9 -3
- package/dist/components/OnyxTag/OnyxTag.vue.d.ts +13 -14
- package/dist/components/OnyxTag/types.d.ts +2 -3
- package/dist/components/OnyxTextarea/OnyxTextarea.vue.d.ts +56 -0
- package/dist/components/OnyxTextarea/types.d.ts +30 -0
- package/dist/components/OnyxToast/OnyxToast.vue.d.ts +41 -0
- package/dist/components/OnyxToast/types.d.ts +33 -0
- package/dist/components/OnyxToastProvider/OnyxToastProvider.vue.d.ts +2 -0
- package/dist/components/OnyxToastProvider/PlaywrightTest.vue.d.ts +2 -0
- package/dist/components/OnyxToastProvider/PlaywrightTestWrapper.vue.d.ts +2 -0
- package/dist/components/OnyxToastProvider/StorybookExample.vue.d.ts +2 -0
- package/dist/components/OnyxToastProvider/useToast.d.ts +50 -0
- package/dist/components/OnyxTooltip/OnyxTooltip.vue.d.ts +29 -28
- package/dist/components/OnyxTooltip/types.d.ts +1 -2
- package/dist/components/OnyxVisuallyHidden/OnyxVisuallyHidden.vue.d.ts +35 -0
- package/dist/components/OnyxVisuallyHidden/types.d.ts +3 -0
- package/dist/composables/checkAll.d.ts +3 -4
- package/dist/composables/density.d.ts +1 -1
- package/dist/composables/required.d.ts +2 -2
- package/dist/composables/scrollEnd.d.ts +1 -2
- package/dist/composables/useCustomValidity.d.ts +36 -1
- package/dist/composables/useManagedState.d.ts +25 -0
- package/dist/composables/useResizeObserver.d.ts +13 -0
- package/dist/composables/useTimer.d.ts +14 -0
- package/dist/i18n/index.d.ts +33 -8
- package/dist/index.cjs +183 -1
- package/dist/index.d.ts +79 -62
- package/dist/index.js +3007 -1343
- package/dist/playwright/ScreenshotMatrix.vue.d.ts +54 -0
- package/dist/playwright/a11y.d.ts +3 -4
- package/dist/playwright/screenshots.d.ts +9 -5
- package/dist/style.css +1 -1
- package/dist/types/{forms.d.ts → components.d.ts} +14 -5
- package/dist/types/i18n.d.ts +2 -2
- package/dist/types/index.d.ts +6 -6
- package/dist/utils/attrs.d.ts +17 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/objects.d.ts +1 -1
- package/dist/utils/plugin.d.ts +4 -5
- package/dist/utils/storybook.d.ts +5 -11
- package/dist/utils/time.d.ts +22 -0
- package/dist/utils/{forms.d.ts → validity.d.ts} +1 -1
- package/package.json +11 -10
- package/src/i18n/locales/de-DE.json +96 -16
- package/src/i18n/locales/en-US.json +96 -16
- package/src/i18n/locales/ko-KR.json +17 -13
- package/src/styles/{variables-dark.css → dark.css} +2 -3
- package/src/styles/global.css +28 -0
- package/src/styles/grid.ct.tsx +32 -37
- package/src/styles/grid.scss +38 -26
- package/src/styles/index.scss +4 -3
- package/src/styles/layers.scss +4 -1
- package/src/styles/{variables-light.css → light.css} +2 -3
- package/src/styles/mixins/checkbox.scss +4 -5
- package/src/styles/mixins/input.scss +138 -0
- package/src/styles/mixins/list.scss +1 -0
- package/src/styles/root.scss +12 -2
- package/src/styles/themes/kaufland.css +126 -0
- package/src/styles/themes/lidl.css +126 -0
- package/src/styles/{variables-onyx.css → themes/onyx.css} +5 -3
- package/src/styles/{variables-onyx.json → themes/onyx.json} +5 -3
- package/src/styles/themes/twogo.css +126 -0
- package/src/types/{forms.ts → components.ts} +14 -4
- package/src/types/i18n.ts +2 -2
- package/src/types/index.ts +1 -1
- package/dist/components/OnyxAvatar/FemaleAvatar.vue.d.ts +0 -2
- package/dist/components/OnyxAvatar/MaleAvatar.vue.d.ts +0 -2
- package/dist/components/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +0 -33
- package/dist/components/OnyxListbox/OnyxListbox.vue.d.ts +0 -192
- package/dist/components/OnyxListbox/types.d.ts +0 -82
- package/dist/components/OnyxListboxOption/types.d.ts +0 -26
- package/dist/components/OnyxNavItem/types.d.ts +0 -25
- package/dist/components/OnyxNavSeparator/OnyxNavSeparator.vue.d.ts +0 -2
- package/dist/components/OnyxRadioButtonGroup/OnyxRadioButtonGroup.vue.d.ts +0 -69
- package/dist/components/OnyxUserMenu/OnyxUserMenu.vue.d.ts +0 -72
- package/dist/components/OnyxUserMenu/types.d.ts +0 -22
- package/dist/i18n/locales/en-US.json.d.ts +0 -34
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div align="center">
|
|
1
|
+
<div align="center" style="text-align: center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-light.svg">
|
|
4
|
-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg">
|
|
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
5
|
<img alt="onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/.github/onyx-logo-dark.svg" width="160px">
|
|
6
6
|
</picture>
|
|
7
7
|
</div>
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
A design system and Vue.js component library created by [Schwarz IT](https://it.schwarz).
|
|
14
14
|
|
|
15
|
-
> **Work in progress**: This library is currently in early / active development.
|
|
16
|
-
|
|
17
15
|
<br />
|
|
18
16
|
|
|
19
17
|
## Documentation
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GridElementSettings } from "./GridPlayground.vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
settings: GridElementSettings;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
+
settings: GridElementSettings;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
}>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type GridSettings = {
|
|
2
|
+
marginSize: string;
|
|
3
|
+
gutterSize: string;
|
|
4
|
+
gridTemplateColumns: string;
|
|
5
|
+
maxWidth?: string;
|
|
6
|
+
isCentered?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
9
|
+
settings: GridSettings;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
settings: GridSettings;
|
|
12
|
+
}>>>, {}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToOption<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const BREAKPOINTS: {
|
|
2
|
+
readonly "2xs": {
|
|
3
|
+
readonly cols: 4;
|
|
4
|
+
};
|
|
5
|
+
readonly xs: {
|
|
6
|
+
readonly cols: 8;
|
|
7
|
+
};
|
|
8
|
+
readonly sm: {
|
|
9
|
+
readonly cols: 8;
|
|
10
|
+
};
|
|
11
|
+
readonly md: {
|
|
12
|
+
readonly cols: 12;
|
|
13
|
+
};
|
|
14
|
+
readonly lg: {
|
|
15
|
+
readonly cols: 16;
|
|
16
|
+
};
|
|
17
|
+
readonly xl: {
|
|
18
|
+
readonly cols: 16;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type GridBreakpoints = keyof typeof BREAKPOINTS;
|
|
22
|
+
export type GridElementSettings = {
|
|
23
|
+
breakpoint?: GridBreakpoints;
|
|
24
|
+
spans: number;
|
|
25
|
+
}[];
|
|
26
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
27
|
+
export default _default;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { OnyxAppLayoutProps } from
|
|
2
|
-
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxAppLayoutProps>, {
|
|
4
|
-
navBarAlignment: string;
|
|
5
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxAppLayoutProps>, {
|
|
6
|
-
navBarAlignment: string;
|
|
7
|
-
}>>>, {
|
|
8
|
-
navBarAlignment: "top" | "left";
|
|
9
|
-
}, {}>, Readonly<{
|
|
1
|
+
import type { OnyxAppLayoutProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): Readonly<{
|
|
10
3
|
/** Navigation area of the application */
|
|
11
4
|
navBar?(): unknown;
|
|
12
5
|
/** Page content area of the application */
|
|
@@ -24,17 +17,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
24
17
|
pageOverlay?(): unknown;
|
|
25
18
|
/** Overlays that cover the complete page */
|
|
26
19
|
appOverlay?(): unknown;
|
|
27
|
-
}>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
-
} : {
|
|
34
|
-
type: import('vue').PropType<T[K]>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
20
|
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAppLayoutProps>, {
|
|
22
|
+
navBarAlignment: string;
|
|
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
|
+
navBarAlignment: "top" | "left";
|
|
27
|
+
}, {}>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
29
|
+
export default _default;
|
|
30
|
+
|
|
38
31
|
type __VLS_WithDefaults<P, D> = {
|
|
39
32
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
33
|
default: D[K];
|
|
@@ -48,3 +41,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
48
41
|
$slots: S;
|
|
49
42
|
};
|
|
50
43
|
};
|
|
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,15 +1,5 @@
|
|
|
1
|
-
import { OnyxAvatarProps } from
|
|
2
|
-
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxAvatarProps>, {
|
|
4
|
-
size: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxAvatarProps>, {
|
|
7
|
-
size: string;
|
|
8
|
-
type: string;
|
|
9
|
-
}>>>, {
|
|
10
|
-
type: "initials" | "female" | "male";
|
|
11
|
-
size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
|
|
12
|
-
}, {}>, Readonly<{
|
|
1
|
+
import type { OnyxAvatarProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): Readonly<{
|
|
13
3
|
/**
|
|
14
4
|
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
15
5
|
*/
|
|
@@ -19,17 +9,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
19
9
|
* Optional slot to override the default initials. Will only be used if `type` is `initials`.
|
|
20
10
|
*/
|
|
21
11
|
default?(): unknown;
|
|
22
|
-
}>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
-
} : {
|
|
29
|
-
type: import('vue').PropType<T[K]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
12
|
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxAvatarProps>, {
|
|
14
|
+
size: string;
|
|
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
|
+
size: "16px" | "24px" | "32px" | "48px" | "64px" | "96px";
|
|
19
|
+
}, {}>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
21
|
+
export default _default;
|
|
33
22
|
type __VLS_WithDefaults<P, D> = {
|
|
34
23
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
24
|
default: D[K];
|
|
@@ -43,3 +32,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
43
32
|
$slots: S;
|
|
44
33
|
};
|
|
45
34
|
};
|
|
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,20 +1,13 @@
|
|
|
1
|
-
import { IconSize, IconSizeProp } from
|
|
2
|
-
|
|
1
|
+
import type { IconSize, IconSizeProp } from "../OnyxIcon/types";
|
|
3
2
|
export type OnyxAvatarProps = IconSizeProp<Exclude<IconSize, "12px">> & {
|
|
4
3
|
/**
|
|
5
4
|
* Label (e.g. the user name), required for accessibility.
|
|
6
|
-
*
|
|
5
|
+
* Will also determine the displayed initials.
|
|
7
6
|
*/
|
|
8
7
|
label: string;
|
|
9
8
|
/**
|
|
10
9
|
* Image URL to show. If unset or an error occurs while loading, a fallback will be displayed
|
|
11
|
-
*
|
|
10
|
+
* with the initials.
|
|
12
11
|
*/
|
|
13
12
|
src?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Avatar type to use.
|
|
16
|
-
*/
|
|
17
|
-
type?: AvatarType;
|
|
18
13
|
};
|
|
19
|
-
export declare const AVATAR_TYPES: readonly ["initials", "female", "male"];
|
|
20
|
-
export type AvatarType = (typeof AVATAR_TYPES)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): Readonly<{
|
|
2
2
|
/**
|
|
3
3
|
* Default slot to place the avatars.
|
|
4
4
|
*/
|
|
@@ -8,7 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}
|
|
|
8
8
|
* Default slot to place the avatars.
|
|
9
9
|
*/
|
|
10
10
|
default(): unknown;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
14
|
export default _default;
|
|
13
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
16
|
new (): {
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import { OnyxBadgeProps } from
|
|
2
|
-
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxBadgeProps>, {
|
|
4
|
-
color: string;
|
|
5
|
-
dot: boolean;
|
|
6
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxBadgeProps>, {
|
|
7
|
-
color: string;
|
|
8
|
-
dot: boolean;
|
|
9
|
-
}>>>, {
|
|
10
|
-
color: "primary" | "secondary" | "neutral" | "danger" | "warning" | "success" | "info";
|
|
11
|
-
dot: boolean;
|
|
12
|
-
}, {}>, Readonly<{
|
|
1
|
+
import type { OnyxBadgeProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): Readonly<{
|
|
13
3
|
/**
|
|
14
4
|
* Badge content.
|
|
15
5
|
*/
|
|
@@ -19,17 +9,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
19
9
|
* Badge content.
|
|
20
10
|
*/
|
|
21
11
|
default?(): unknown;
|
|
22
|
-
}>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
-
} : {
|
|
29
|
-
type: import('vue').PropType<T[K]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
12
|
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxBadgeProps>, {
|
|
14
|
+
color: string;
|
|
15
|
+
dot: boolean;
|
|
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;
|
|
21
|
+
dot: boolean;
|
|
22
|
+
}, {}>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
24
|
+
export default _default;
|
|
33
25
|
type __VLS_WithDefaults<P, D> = {
|
|
34
26
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
27
|
default: D[K];
|
|
@@ -43,3 +35,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
43
35
|
$slots: S;
|
|
44
36
|
};
|
|
45
37
|
};
|
|
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
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DensityProp } from
|
|
2
|
-
import { OnyxColor } from
|
|
3
|
-
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { OnyxColor } from "../../types/colors";
|
|
4
3
|
export type OnyxBadgeProps = DensityProp & {
|
|
5
4
|
/**
|
|
6
5
|
* The color of the badge.
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { OnyxButtonProps } from
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxButtonProps>, {
|
|
1
|
+
import type { OnyxButtonProps } from "./types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxButtonProps>, {
|
|
4
3
|
disabled: boolean;
|
|
5
4
|
loading: boolean;
|
|
6
5
|
type: string;
|
|
7
6
|
color: string;
|
|
8
7
|
mode: string;
|
|
9
8
|
skeleton: boolean;
|
|
10
|
-
}>, {}, unknown, {}, {}, import(
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
10
|
click: () => void;
|
|
12
|
-
}, string, import(
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxButtonProps>, {
|
|
13
12
|
disabled: boolean;
|
|
14
13
|
loading: boolean;
|
|
15
14
|
type: string;
|
|
@@ -19,23 +18,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
18
|
}>>> & {
|
|
20
19
|
onClick?: (() => any) | undefined;
|
|
21
20
|
}, {
|
|
22
|
-
type: "
|
|
23
|
-
color: "
|
|
21
|
+
type: import("./types").ButtonType;
|
|
22
|
+
color: import("./types").ButtonColor;
|
|
24
23
|
disabled: boolean;
|
|
25
24
|
loading: boolean;
|
|
26
|
-
mode: "
|
|
25
|
+
mode: import("./types").ButtonMode;
|
|
27
26
|
skeleton: boolean;
|
|
28
27
|
}, {}>;
|
|
29
28
|
export default _default;
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
29
|
type __VLS_WithDefaults<P, D> = {
|
|
40
30
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
31
|
default: D[K];
|
|
@@ -44,3 +34,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
44
34
|
type __VLS_Prettify<T> = {
|
|
45
35
|
[K in keyof T]: T[K];
|
|
46
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,6 +1,6 @@
|
|
|
1
|
-
import { DensityProp } from
|
|
2
|
-
|
|
3
|
-
export type OnyxButtonProps = DensityProp & {
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { AutofocusProp } from "../../types";
|
|
3
|
+
export type OnyxButtonProps = DensityProp & AutofocusProp & {
|
|
4
4
|
/**
|
|
5
5
|
* The text content of the button.
|
|
6
6
|
*/
|
|
@@ -1,73 +1,21 @@
|
|
|
1
|
-
import { SelectOptionValue } from
|
|
2
|
-
|
|
3
|
-
declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: TValue;
|
|
7
|
-
density?: "default" | "compact" | "cozy" | undefined;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
loading?: boolean | undefined;
|
|
10
|
-
skeleton?: boolean | undefined;
|
|
11
|
-
customError?: string | undefined;
|
|
12
|
-
indeterminate?: boolean | undefined;
|
|
13
|
-
hideLabel?: boolean | undefined;
|
|
14
|
-
truncation?: "ellipsis" | "multiline" | undefined;
|
|
15
|
-
requiredMarker?: "required" | "optional" | undefined;
|
|
16
|
-
modelValue?: boolean | undefined;
|
|
17
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
-
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
19
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
20
|
-
attrs: any;
|
|
21
|
-
slots: {};
|
|
22
|
-
emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
23
|
-
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
24
|
-
props: {
|
|
25
|
-
required?: boolean | undefined;
|
|
26
|
-
label: string;
|
|
27
|
-
value: TValue;
|
|
28
|
-
density?: "default" | "compact" | "cozy" | undefined;
|
|
29
|
-
disabled?: boolean | undefined;
|
|
30
|
-
loading?: boolean | undefined;
|
|
31
|
-
skeleton?: boolean | undefined;
|
|
32
|
-
customError?: string | undefined;
|
|
33
|
-
indeterminate?: boolean | undefined;
|
|
34
|
-
hideLabel?: boolean | undefined;
|
|
35
|
-
truncation?: "ellipsis" | "multiline" | undefined;
|
|
36
|
-
requiredMarker?: "required" | "optional" | undefined;
|
|
37
|
-
modelValue?: boolean | undefined;
|
|
1
|
+
import type { SelectOptionValue } from "../../types";
|
|
2
|
+
import type { OnyxCheckboxProps } from "./types";
|
|
3
|
+
declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
5
|
+
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
38
6
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
7
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
39
8
|
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
40
|
-
|
|
41
|
-
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}, never>, "onValidityChange" | "onUpdate:modelValue"> & OnyxCheckboxProps<TValue>> & __VLS_BuiltInPublicProps;
|
|
11
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
42
12
|
attrs: any;
|
|
43
|
-
slots: {}
|
|
44
|
-
emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
45
|
-
}>) => import(
|
|
13
|
+
slots: ReturnType<() => {}>;
|
|
14
|
+
emit: (((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void)) & {};
|
|
15
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
16
|
[key: string]: any;
|
|
47
17
|
}> & {
|
|
48
|
-
__ctx?:
|
|
49
|
-
props: {
|
|
50
|
-
required?: boolean | undefined;
|
|
51
|
-
label: string;
|
|
52
|
-
value: TValue;
|
|
53
|
-
density?: "default" | "compact" | "cozy" | undefined;
|
|
54
|
-
disabled?: boolean | undefined;
|
|
55
|
-
loading?: boolean | undefined;
|
|
56
|
-
skeleton?: boolean | undefined;
|
|
57
|
-
customError?: string | undefined;
|
|
58
|
-
indeterminate?: boolean | undefined;
|
|
59
|
-
hideLabel?: boolean | undefined;
|
|
60
|
-
truncation?: "ellipsis" | "multiline" | undefined;
|
|
61
|
-
requiredMarker?: "required" | "optional" | undefined;
|
|
62
|
-
modelValue?: boolean | undefined;
|
|
63
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
64
|
-
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
65
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
66
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
67
|
-
attrs: any;
|
|
68
|
-
slots: {};
|
|
69
|
-
emit: ((evt: "validityChange", validity: ValidityState) => void) & ((evt: "update:modelValue", value: boolean) => void);
|
|
70
|
-
} | undefined;
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
71
19
|
};
|
|
72
20
|
export default _default;
|
|
73
21
|
type __VLS_Prettify<T> = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { RequiredMarkerProp } from
|
|
2
|
-
import { CustomValidityProp } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = SelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & {
|
|
1
|
+
import type { RequiredMarkerProp } from "../../composables/required";
|
|
2
|
+
import type { CustomValidityProp } from "../../composables/useCustomValidity";
|
|
3
|
+
import type { AutofocusProp, BaseSelectOption, SelectOptionValue } from "../../types";
|
|
4
|
+
export type OnyxCheckboxProps<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & CustomValidityProp & AutofocusProp & {
|
|
6
5
|
/**
|
|
7
6
|
* Whether the checkbox is checked.
|
|
8
7
|
*/
|
|
@@ -1,61 +1,19 @@
|
|
|
1
|
-
import { SelectOptionValue } from
|
|
2
|
-
|
|
3
|
-
declare const _default: <TValue extends SelectOptionValue>(__VLS_props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
modelValue?: TValue[] | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
9
|
-
options: import('./types').CheckboxGroupOption<TValue>[];
|
|
10
|
-
headline?: string | undefined;
|
|
11
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
12
|
-
withCheckAll?: boolean | {
|
|
13
|
-
label?: string | undefined;
|
|
14
|
-
} | undefined;
|
|
15
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
16
|
-
attrs: any;
|
|
17
|
-
slots: {};
|
|
18
|
-
emit: (evt: "update:modelValue", value: TValue[]) => void;
|
|
19
|
-
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
20
|
-
props: {
|
|
21
|
-
density?: "default" | "compact" | "cozy" | undefined;
|
|
22
|
-
disabled?: boolean | undefined;
|
|
23
|
-
skeleton?: number | undefined;
|
|
24
|
-
modelValue?: TValue[] | undefined;
|
|
1
|
+
import type { SelectOptionValue } from "../../types";
|
|
2
|
+
import type { OnyxCheckboxGroupProps } from "./types";
|
|
3
|
+
declare const _default: <TValue extends SelectOptionValue>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
5
|
+
"onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
25
7
|
"onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
29
|
-
withCheckAll?: boolean | {
|
|
30
|
-
label?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
33
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
}, never>, "onUpdate:modelValue"> & OnyxCheckboxGroupProps<TValue>> & __VLS_BuiltInPublicProps;
|
|
9
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
34
10
|
attrs: any;
|
|
35
|
-
slots: {}
|
|
36
|
-
emit: (evt: "update:modelValue", value: TValue[]) => void;
|
|
37
|
-
}>) => import(
|
|
11
|
+
slots: ReturnType<() => {}>;
|
|
12
|
+
emit: ((evt: "update:modelValue", value: TValue[]) => void) & {};
|
|
13
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
14
|
[key: string]: any;
|
|
39
15
|
}> & {
|
|
40
|
-
__ctx?:
|
|
41
|
-
props: {
|
|
42
|
-
density?: "default" | "compact" | "cozy" | undefined;
|
|
43
|
-
disabled?: boolean | undefined;
|
|
44
|
-
skeleton?: number | undefined;
|
|
45
|
-
modelValue?: TValue[] | undefined;
|
|
46
|
-
"onUpdate:modelValue"?: ((value: TValue[]) => any) | undefined;
|
|
47
|
-
options: import('./types').CheckboxGroupOption<TValue>[];
|
|
48
|
-
headline?: string | undefined;
|
|
49
|
-
direction?: "horizontal" | "vertical" | undefined;
|
|
50
|
-
withCheckAll?: boolean | {
|
|
51
|
-
label?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
54
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
55
|
-
attrs: any;
|
|
56
|
-
slots: {};
|
|
57
|
-
emit: (evt: "update:modelValue", value: TValue[]) => void;
|
|
58
|
-
} | undefined;
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
17
|
};
|
|
60
18
|
export default _default;
|
|
61
19
|
type __VLS_Prettify<T> = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { DensityProp } from
|
|
2
|
-
import { RequiredMarkerProp } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import type { DensityProp } from "../../composables/density";
|
|
2
|
+
import type { RequiredMarkerProp } from "../../composables/required";
|
|
3
|
+
import type { AutofocusProp, BaseSelectOption, Direction, SelectOptionValue } from "../../types";
|
|
5
4
|
export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOptionValue> = DensityProp & {
|
|
6
5
|
/**
|
|
7
6
|
* Checkbox options.
|
|
@@ -39,4 +38,4 @@ export type OnyxCheckboxGroupProps<TValue extends SelectOptionValue = SelectOpti
|
|
|
39
38
|
*/
|
|
40
39
|
skeleton?: number;
|
|
41
40
|
};
|
|
42
|
-
export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> =
|
|
41
|
+
export type CheckboxGroupOption<TValue extends SelectOptionValue = SelectOptionValue> = BaseSelectOption<TValue> & RequiredMarkerProp & AutofocusProp;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { OnyxDialogProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): Readonly<{
|
|
3
|
+
/**
|
|
4
|
+
* Dialog content. For accessibility purposes it is strongly recommended
|
|
5
|
+
* to focus an element inside the dialog when it opens. The element will depend
|
|
6
|
+
* on your use case (e.g. an input, button etc.).
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
/**
|
|
11
|
+
* Dialog content. For accessibility purposes it is strongly recommended
|
|
12
|
+
* to focus an element inside the dialog when it opens. The element will depend
|
|
13
|
+
* on your use case (e.g. an input, button etc.).
|
|
14
|
+
*/
|
|
15
|
+
default(): unknown;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxDialogProps>, {
|
|
18
|
+
open: boolean;
|
|
19
|
+
modal: boolean;
|
|
20
|
+
alert: boolean;
|
|
21
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
close: () => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxDialogProps>, {
|
|
24
|
+
open: boolean;
|
|
25
|
+
modal: boolean;
|
|
26
|
+
alert: boolean;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onClose?: (() => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
open: boolean;
|
|
31
|
+
modal: boolean;
|
|
32
|
+
alert: boolean;
|
|
33
|
+
}, {}>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToOption<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|