@moubing/bing-ui 0.1.0 → 0.2.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.
Files changed (113) hide show
  1. package/dist/bing-ui.css +1 -1
  2. package/dist/bing-ui.es.js +1261 -1682
  3. package/dist/bing-ui.umd.js +22 -22
  4. package/dist/components/BingAnimatedText/BingAnimatedText.types.d.ts +21 -0
  5. package/dist/components/BingAnimatedText/BingAnimatedText.vue.d.ts +31 -0
  6. package/dist/components/BingAnimatedText/index.d.ts +2 -0
  7. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.types.d.ts +33 -0
  8. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.vue.d.ts +28 -0
  9. package/dist/components/BingAppSwitcherTransition/index.d.ts +2 -0
  10. package/dist/components/BingButton/BingButton.types.d.ts +46 -0
  11. package/dist/components/BingButton/BingButton.vue.d.ts +52 -0
  12. package/dist/components/BingButton/index.d.ts +2 -0
  13. package/dist/components/BingCard/BingCard.types.d.ts +38 -0
  14. package/dist/components/BingCard/BingCard.vue.d.ts +56 -0
  15. package/dist/components/BingCard/index.d.ts +2 -0
  16. package/dist/components/BingCarouselTransition/BingCarouselTransition.types.d.ts +33 -0
  17. package/dist/components/BingCarouselTransition/BingCarouselTransition.vue.d.ts +28 -0
  18. package/dist/components/BingCarouselTransition/index.d.ts +2 -0
  19. package/dist/components/BingCheckbox/BingCheckbox.types.d.ts +25 -0
  20. package/dist/components/BingCheckbox/BingCheckbox.vue.d.ts +39 -0
  21. package/dist/components/BingCheckbox/index.d.ts +2 -0
  22. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.context.d.ts +13 -0
  23. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.types.d.ts +27 -0
  24. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.vue.d.ts +35 -0
  25. package/dist/components/BingCheckboxGroup/index.d.ts +2 -0
  26. package/dist/components/BingCodeBlock/BingCodeBlock.highlight.d.ts +10 -0
  27. package/dist/components/BingCodeBlock/BingCodeBlock.types.d.ts +32 -0
  28. package/dist/components/BingCodeBlock/BingCodeBlock.vue.d.ts +29 -0
  29. package/dist/components/BingCodeBlock/index.d.ts +2 -0
  30. package/dist/components/BingDatePicker/BingDatePicker.types.d.ts +70 -0
  31. package/dist/components/BingDatePicker/BingDatePicker.vue.d.ts +54 -0
  32. package/dist/components/BingDatePicker/index.d.ts +2 -0
  33. package/dist/components/BingDeckTransition/BingDeckTransition.types.d.ts +38 -0
  34. package/dist/components/BingDeckTransition/BingDeckTransition.vue.d.ts +29 -0
  35. package/dist/components/BingDeckTransition/index.d.ts +2 -0
  36. package/dist/components/BingDialog/BingDialog.types.d.ts +45 -0
  37. package/dist/components/BingDialog/BingDialog.vue.d.ts +61 -0
  38. package/dist/components/BingDialog/index.d.ts +2 -0
  39. package/dist/components/BingDropDown/BingDropDown.context.d.ts +7 -0
  40. package/dist/components/BingDropDown/BingDropDown.types.d.ts +60 -0
  41. package/dist/components/BingDropDown/BingDropDown.vue.d.ts +87 -0
  42. package/dist/components/BingDropDown/BingDropDownItem.vue.d.ts +36 -0
  43. package/dist/components/BingDropDown/index.d.ts +3 -0
  44. package/dist/components/BingFilePreview/BingFilePreview.types.d.ts +56 -0
  45. package/dist/components/BingFilePreview/BingFilePreview.vue.d.ts +46 -0
  46. package/dist/components/BingFilePreview/index.d.ts +2 -0
  47. package/dist/components/BingForm/BingForm.context.d.ts +31 -0
  48. package/dist/components/BingForm/BingForm.types.d.ts +46 -0
  49. package/dist/components/BingForm/BingForm.vue.d.ts +32 -0
  50. package/dist/components/BingForm/index.d.ts +2 -0
  51. package/dist/components/BingFormItem/BingFormItem.types.d.ts +10 -0
  52. package/dist/components/BingFormItem/BingFormItem.vue.d.ts +30 -0
  53. package/dist/components/BingFormItem/index.d.ts +2 -0
  54. package/dist/components/BingIcon/BingIcon.types.d.ts +11 -0
  55. package/dist/components/BingIcon/BingIcon.vue.d.ts +10 -0
  56. package/dist/components/BingIcon/index.d.ts +2 -0
  57. package/dist/components/BingImage/BingImage.types.d.ts +68 -0
  58. package/dist/components/BingImage/BingImage.vue.d.ts +64 -0
  59. package/dist/components/BingImage/index.d.ts +2 -0
  60. package/dist/components/BingImagePreview/BingImagePreview.types.d.ts +40 -0
  61. package/dist/components/BingImagePreview/BingImagePreview.vue.d.ts +38 -0
  62. package/dist/components/BingImagePreview/index.d.ts +2 -0
  63. package/dist/components/BingInput/BingInput.types.d.ts +38 -0
  64. package/dist/components/BingInput/BingInput.vue.d.ts +49 -0
  65. package/dist/components/BingInput/index.d.ts +2 -0
  66. package/dist/components/BingRadio/BingRadio.types.d.ts +21 -0
  67. package/dist/components/BingRadio/BingRadio.vue.d.ts +38 -0
  68. package/dist/components/BingRadio/index.d.ts +2 -0
  69. package/dist/components/BingRadioGroup/BingRadioGroup.context.d.ts +13 -0
  70. package/dist/components/BingRadioGroup/BingRadioGroup.types.d.ts +27 -0
  71. package/dist/components/BingRadioGroup/BingRadioGroup.vue.d.ts +35 -0
  72. package/dist/components/BingRadioGroup/index.d.ts +2 -0
  73. package/dist/components/BingResizable/BingResizable.types.d.ts +63 -0
  74. package/dist/components/BingResizable/BingResizable.vue.d.ts +50 -0
  75. package/dist/components/BingResizable/index.d.ts +2 -0
  76. package/dist/components/BingScrollbar/BingScrollbar.types.d.ts +20 -0
  77. package/dist/components/BingScrollbar/BingScrollbar.vue.d.ts +28 -0
  78. package/dist/components/BingScrollbar/index.d.ts +2 -0
  79. package/dist/components/BingSelect/BingSelect.types.d.ts +57 -0
  80. package/dist/components/BingSelect/BingSelect.vue.d.ts +72 -0
  81. package/dist/components/BingSelect/index.d.ts +2 -0
  82. package/dist/components/BingSortableList/BingSortableList.types.d.ts +62 -0
  83. package/dist/components/BingSortableList/BingSortableList.vue.d.ts +51 -0
  84. package/dist/components/BingSortableList/BingSortableListItem.vue.d.ts +34 -0
  85. package/dist/components/BingSortableList/index.d.ts +2 -0
  86. package/dist/components/BingTable/BingTable.types.d.ts +156 -0
  87. package/dist/components/BingTable/BingTable.vue.d.ts +142 -0
  88. package/dist/components/BingTable/index.d.ts +2 -0
  89. package/dist/components/BingTabs/BingTabs.types.d.ts +42 -0
  90. package/dist/components/BingTabs/BingTabs.vue.d.ts +40 -0
  91. package/dist/components/BingTabs/index.d.ts +2 -0
  92. package/dist/components/BingTag/BingTag.types.d.ts +15 -0
  93. package/dist/components/BingTag/BingTag.vue.d.ts +26 -0
  94. package/dist/components/BingTag/index.d.ts +2 -0
  95. package/dist/components/BingTextarea/BingTextarea.types.d.ts +40 -0
  96. package/dist/components/BingTextarea/BingTextarea.vue.d.ts +38 -0
  97. package/dist/components/BingTextarea/index.d.ts +2 -0
  98. package/dist/components/BingToast/BingToast.service.d.ts +44 -0
  99. package/dist/components/BingToast/BingToast.types.d.ts +58 -0
  100. package/dist/components/BingToast/BingToast.vue.d.ts +19 -0
  101. package/dist/components/BingToast/index.d.ts +4 -0
  102. package/dist/components/BingTooltip/BingTooltip.shared.d.ts +32 -0
  103. package/dist/components/BingTooltip/BingTooltip.types.d.ts +36 -0
  104. package/dist/components/BingTooltip/BingTooltip.vue.d.ts +51 -0
  105. package/dist/components/BingTooltip/index.d.ts +2 -0
  106. package/dist/components/BingTreeSelect/BingTreeSelect.types.d.ts +69 -0
  107. package/dist/components/BingTreeSelect/BingTreeSelect.vue.d.ts +85 -0
  108. package/dist/components/BingTreeSelect/index.d.ts +2 -0
  109. package/dist/components/index.d.ts +32 -0
  110. package/dist/index.d.ts +3 -1
  111. package/dist/motion/index.d.ts +13 -0
  112. package/dist/utils/glass.d.ts +16 -0
  113. package/package.json +67 -68
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ export type BingControlStatus = 'default' | 'error' | 'success' | 'warning';
3
+ export type BingFormSize = 'sm' | 'md' | 'lg';
4
+ export type BingFormLayout = 'grid' | 'stack' | 'inline';
5
+ export type BingFormLabelPosition = 'top' | 'left';
6
+ export type BingFormValidateTrigger = 'change' | 'blur' | 'submit' | 'manual';
7
+ export type BingFormBreakpoint = 'base' | 'sm' | 'md' | 'lg' | 'xl';
8
+ export type BingFormResponsiveNumber = number | Partial<Record<BingFormBreakpoint, number>>;
9
+ export type BingFormGap = string | number | {
10
+ row?: string | number;
11
+ column?: string | number;
12
+ };
13
+ export type BingFormModel = Record<string, unknown>;
14
+ export type BingFormSchema = z.ZodType<unknown>;
15
+ export type BingFormErrors = Record<string, string[]>;
16
+ export interface BingFormProps {
17
+ model?: BingFormModel;
18
+ schema?: BingFormSchema;
19
+ layout?: BingFormLayout;
20
+ columns?: BingFormResponsiveNumber;
21
+ gap?: BingFormGap;
22
+ labelPosition?: BingFormLabelPosition;
23
+ labelWidth?: string | number;
24
+ size?: BingFormSize;
25
+ disabled?: boolean;
26
+ validateTrigger?: BingFormValidateTrigger | BingFormValidateTrigger[];
27
+ scrollToError?: boolean;
28
+ }
29
+ export interface BingFormValidationResult {
30
+ valid: boolean;
31
+ errors: BingFormErrors;
32
+ }
33
+ export interface BingFormSubmitPayload extends BingFormValidationResult {
34
+ event: SubmitEvent;
35
+ }
36
+ export interface BingFormEmits {
37
+ submit: [payload: BingFormSubmitPayload];
38
+ invalid: [payload: BingFormValidationResult];
39
+ }
40
+ export interface BingFormExpose {
41
+ validate: () => Promise<boolean>;
42
+ validateField: (prop: string) => Promise<boolean>;
43
+ clearValidate: (prop?: string) => void;
44
+ resetFields: () => void;
45
+ getErrors: () => BingFormErrors;
46
+ }
@@ -0,0 +1,32 @@
1
+ import { BingFormExpose, BingFormGap, BingFormModel, BingFormProps, BingFormResponsiveNumber, BingFormValidateTrigger, BingFormValidationResult } from './BingForm.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<BingFormProps, BingFormExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ submit: (payload: import('./BingForm.types').BingFormSubmitPayload) => any;
8
+ invalid: (payload: BingFormValidationResult) => any;
9
+ }, string, import('vue').PublicProps, Readonly<BingFormProps> & Readonly<{
10
+ onSubmit?: ((payload: import('./BingForm.types').BingFormSubmitPayload) => any) | undefined;
11
+ onInvalid?: ((payload: BingFormValidationResult) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ columns: BingFormResponsiveNumber;
15
+ gap: BingFormGap;
16
+ size: import('./BingForm.types').BingFormSize;
17
+ model: BingFormModel;
18
+ schema: import('./BingForm.types').BingFormSchema;
19
+ layout: import('./BingForm.types').BingFormLayout;
20
+ labelPosition: import('./BingForm.types').BingFormLabelPosition;
21
+ labelWidth: string | number;
22
+ validateTrigger: BingFormValidateTrigger | BingFormValidateTrigger[];
23
+ scrollToError: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingForm } from './BingForm.vue';
2
+ export type { BingControlStatus, BingFormBreakpoint, BingFormEmits, BingFormErrors, BingFormExpose, BingFormGap, BingFormLabelPosition, BingFormLayout, BingFormModel, BingFormProps, BingFormResponsiveNumber, BingFormSchema, BingFormSize, BingFormSubmitPayload, BingFormValidateTrigger, BingFormValidationResult, } from './BingForm.types';
@@ -0,0 +1,10 @@
1
+ import { BingFormLabelPosition, BingFormResponsiveNumber } from '../BingForm/BingForm.types';
2
+ export interface BingFormItemProps {
3
+ prop?: string;
4
+ label?: string;
5
+ required?: boolean;
6
+ span?: BingFormResponsiveNumber;
7
+ help?: string;
8
+ showMessage?: boolean;
9
+ labelPosition?: BingFormLabelPosition;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { BingFormResponsiveNumber } from '../BingForm/BingForm.types';
2
+ import { BingFormItemProps } from './BingFormItem.types';
3
+ declare var __VLS_1: {
4
+ id: string;
5
+ status: string;
6
+ 'aria-describedby': string | undefined;
7
+ invalid: boolean;
8
+ disabled: boolean;
9
+ size: import('..').BingFormSize;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<BingFormItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BingFormItemProps> & Readonly<{}>, {
15
+ label: string;
16
+ span: BingFormResponsiveNumber;
17
+ required: boolean;
18
+ prop: string;
19
+ labelPosition: import('..').BingFormLabelPosition;
20
+ help: string;
21
+ showMessage: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingFormItem } from './BingFormItem.vue';
2
+ export type { BingFormItemProps } from './BingFormItem.types';
@@ -0,0 +1,11 @@
1
+ import { Component } from 'vue';
2
+ export type BingIconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number | `${number}px`;
3
+ export type BingIconTone = 'inherit' | 'muted' | 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
4
+ export interface BingIconProps {
5
+ icon: Component;
6
+ size?: BingIconSize;
7
+ tone?: BingIconTone;
8
+ strokeWidth?: number;
9
+ decorative?: boolean;
10
+ label?: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { BingIconProps, BingIconSize } from './BingIcon.types';
2
+ declare const __VLS_export: import('vue').DefineComponent<BingIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BingIconProps> & Readonly<{}>, {
3
+ strokeWidth: number;
4
+ label: string;
5
+ size: BingIconSize;
6
+ tone: import('./BingIcon.types').BingIconTone;
7
+ decorative: boolean;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BingIcon } from './BingIcon.vue';
2
+ export type { BingIconProps, BingIconSize, BingIconTone } from './BingIcon.types';
@@ -0,0 +1,68 @@
1
+ import { BingImagePreviewItem } from '../BingImagePreview/BingImagePreview.types';
2
+ export type BingImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
3
+ export type BingImageRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
4
+ export type BingImageLoading = 'lazy' | 'eager';
5
+ export type BingImageDecoding = 'async' | 'sync' | 'auto';
6
+ export type BingImageFetchPriority = 'high' | 'low' | 'auto';
7
+ export type BingImageCrossOrigin = '' | 'anonymous' | 'use-credentials';
8
+ export type BingImageReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
9
+ export type BingImageStatus = 'idle' | 'loading' | 'loaded' | 'error';
10
+ export interface BingImageProps {
11
+ src?: string;
12
+ alt?: string;
13
+ srcset?: string;
14
+ sizes?: string;
15
+ width?: number | string;
16
+ height?: number | string;
17
+ aspectRatio?: number | string;
18
+ fit?: BingImageFit;
19
+ position?: string;
20
+ radius?: BingImageRadius;
21
+ block?: boolean;
22
+ loading?: BingImageLoading;
23
+ decoding?: BingImageDecoding;
24
+ fetchPriority?: BingImageFetchPriority;
25
+ fallbackSrc?: string;
26
+ placeholderSrc?: string;
27
+ showLoading?: boolean;
28
+ showError?: boolean;
29
+ errorText?: string;
30
+ crossorigin?: BingImageCrossOrigin;
31
+ referrerPolicy?: BingImageReferrerPolicy;
32
+ preview?: boolean;
33
+ previewSrc?: string;
34
+ previewItems?: BingImagePreviewItem[];
35
+ previewInitialIndex?: number;
36
+ previewDownloadable?: boolean;
37
+ previewDownloadUrl?: string;
38
+ previewDownloadName?: string;
39
+ previewAriaLabel?: string;
40
+ }
41
+ export interface BingImageLoadPayload {
42
+ event: Event;
43
+ src: string;
44
+ naturalWidth: number;
45
+ naturalHeight: number;
46
+ }
47
+ export interface BingImageErrorPayload {
48
+ event: Event;
49
+ src: string;
50
+ isFallback: boolean;
51
+ }
52
+ export interface BingImageStatusChangePayload {
53
+ status: BingImageStatus;
54
+ src?: string;
55
+ }
56
+ export interface BingImagePreviewOpenPayload {
57
+ src: string;
58
+ }
59
+ export interface BingImagePreviewClosePayload {
60
+ reason: 'close' | 'overlay' | 'escape';
61
+ }
62
+ export interface BingImageEmits {
63
+ load: [payload: BingImageLoadPayload];
64
+ error: [payload: BingImageErrorPayload];
65
+ statusChange: [payload: BingImageStatusChangePayload];
66
+ previewOpen: [payload: BingImagePreviewOpenPayload];
67
+ previewClose: [payload: BingImagePreviewClosePayload];
68
+ }
@@ -0,0 +1,64 @@
1
+ import { BingImageProps } from './BingImage.types';
2
+ declare function retry(): void;
3
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {
4
+ src: string | undefined;
5
+ retry: typeof retry;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ placeholder?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ loading?: (props: typeof __VLS_3) => any;
11
+ } & {
12
+ error?: (props: typeof __VLS_5) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<BingImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ error: (payload: import('./BingImage.types').BingImageErrorPayload) => any;
16
+ load: (payload: import('./BingImage.types').BingImageLoadPayload) => any;
17
+ statusChange: (payload: import('./BingImage.types').BingImageStatusChangePayload) => any;
18
+ previewOpen: (payload: import('./BingImage.types').BingImagePreviewOpenPayload) => any;
19
+ previewClose: (payload: import('./BingImage.types').BingImagePreviewClosePayload) => any;
20
+ }, string, import('vue').PublicProps, Readonly<BingImageProps> & Readonly<{
21
+ onError?: ((payload: import('./BingImage.types').BingImageErrorPayload) => any) | undefined;
22
+ onLoad?: ((payload: import('./BingImage.types').BingImageLoadPayload) => any) | undefined;
23
+ onStatusChange?: ((payload: import('./BingImage.types').BingImageStatusChangePayload) => any) | undefined;
24
+ onPreviewOpen?: ((payload: import('./BingImage.types').BingImagePreviewOpenPayload) => any) | undefined;
25
+ onPreviewClose?: ((payload: import('./BingImage.types').BingImagePreviewClosePayload) => any) | undefined;
26
+ }>, {
27
+ height: number | string;
28
+ position: string;
29
+ width: number | string;
30
+ block: boolean;
31
+ loading: import('./BingImage.types').BingImageLoading;
32
+ radius: import('./BingImage.types').BingImageRadius;
33
+ aspectRatio: number | string;
34
+ src: string;
35
+ alt: string;
36
+ previewSrc: string;
37
+ srcset: string;
38
+ sizes: string;
39
+ fit: import('./BingImage.types').BingImageFit;
40
+ decoding: import('./BingImage.types').BingImageDecoding;
41
+ fetchPriority: import('./BingImage.types').BingImageFetchPriority;
42
+ fallbackSrc: string;
43
+ placeholderSrc: string;
44
+ showLoading: boolean;
45
+ showError: boolean;
46
+ errorText: string;
47
+ crossorigin: import('./BingImage.types').BingImageCrossOrigin;
48
+ referrerPolicy: import('./BingImage.types').BingImageReferrerPolicy;
49
+ preview: boolean;
50
+ previewItems: import('..').BingImagePreviewItem[];
51
+ previewInitialIndex: number;
52
+ previewDownloadable: boolean;
53
+ previewDownloadUrl: string;
54
+ previewDownloadName: string;
55
+ previewAriaLabel: string;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
59
+ export default _default;
60
+ type __VLS_WithSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingImage } from './BingImage.vue';
2
+ export type { BingImageCrossOrigin, BingImageDecoding, BingImageEmits, BingImageErrorPayload, BingImageFetchPriority, BingImageFit, BingImageLoadPayload, BingImageLoading, BingImagePreviewClosePayload, BingImagePreviewOpenPayload, BingImageProps, BingImageRadius, BingImageReferrerPolicy, BingImageStatus, BingImageStatusChangePayload, } from './BingImage.types';
@@ -0,0 +1,40 @@
1
+ import { BingGlassEffectProps } from '../../utils/glass';
2
+ export interface BingImagePreviewItem {
3
+ src: string;
4
+ alt?: string;
5
+ previewSrc?: string;
6
+ downloadUrl?: string;
7
+ downloadName?: string;
8
+ caption?: string;
9
+ }
10
+ export type BingImagePreviewCloseReason = 'close' | 'overlay' | 'escape';
11
+ export interface BingImagePreviewProps extends BingGlassEffectProps {
12
+ modelValue?: boolean;
13
+ items?: BingImagePreviewItem[];
14
+ initialIndex?: number;
15
+ currentIndex?: number;
16
+ zIndex?: number;
17
+ minScale?: number;
18
+ maxScale?: number;
19
+ zoomStep?: number;
20
+ downloadable?: boolean;
21
+ loop?: boolean;
22
+ lockScroll?: boolean;
23
+ closeOnEsc?: boolean;
24
+ closeOnOverlay?: boolean;
25
+ showToolbar?: boolean;
26
+ showCounter?: boolean;
27
+ teleportTo?: string | HTMLElement;
28
+ ariaLabel?: string;
29
+ }
30
+ export interface BingImagePreviewDownloadPayload {
31
+ item: BingImagePreviewItem;
32
+ index: number;
33
+ }
34
+ export interface BingImagePreviewEmits {
35
+ 'update:modelValue': [value: boolean];
36
+ 'update:currentIndex': [value: number];
37
+ close: [reason: BingImagePreviewCloseReason];
38
+ change: [index: number, item: BingImagePreviewItem];
39
+ download: [payload: BingImagePreviewDownloadPayload];
40
+ }
@@ -0,0 +1,38 @@
1
+ import { BingImagePreviewCloseReason, BingImagePreviewProps } from './BingImagePreview.types';
2
+ declare const __VLS_export: import('vue').DefineComponent<BingImagePreviewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ "update:modelValue": (value: boolean) => any;
4
+ change: (index: number, item: import('./BingImagePreview.types').BingImagePreviewItem) => any;
5
+ close: (reason: BingImagePreviewCloseReason) => any;
6
+ "update:currentIndex": (value: number) => any;
7
+ download: (payload: import('./BingImagePreview.types').BingImagePreviewDownloadPayload) => any;
8
+ }, string, import('vue').PublicProps, Readonly<BingImagePreviewProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
+ onChange?: ((index: number, item: import('./BingImagePreview.types').BingImagePreviewItem) => any) | undefined;
11
+ onClose?: ((reason: BingImagePreviewCloseReason) => any) | undefined;
12
+ "onUpdate:currentIndex"?: ((value: number) => any) | undefined;
13
+ onDownload?: ((payload: import('./BingImagePreview.types').BingImagePreviewDownloadPayload) => any) | undefined;
14
+ }>, {
15
+ zIndex: number;
16
+ glass: boolean;
17
+ ariaLabel: string;
18
+ modelValue: boolean;
19
+ items: import('./BingImagePreview.types').BingImagePreviewItem[];
20
+ loop: boolean;
21
+ glassBlur: string | number;
22
+ glassOpacity: number;
23
+ glassSaturation: number;
24
+ closeOnEsc: boolean;
25
+ lockScroll: boolean;
26
+ closeOnOverlay: boolean;
27
+ initialIndex: number;
28
+ currentIndex: number;
29
+ minScale: number;
30
+ maxScale: number;
31
+ zoomStep: number;
32
+ downloadable: boolean;
33
+ showToolbar: boolean;
34
+ showCounter: boolean;
35
+ teleportTo: string | HTMLElement;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BingImagePreview } from './BingImagePreview.vue';
2
+ export type { BingImagePreviewCloseReason, BingImagePreviewDownloadPayload, BingImagePreviewEmits, BingImagePreviewItem, BingImagePreviewProps, } from './BingImagePreview.types';
@@ -0,0 +1,38 @@
1
+ import { Component } from 'vue';
2
+ export type BingInputSize = 'sm' | 'md' | 'lg';
3
+ export type BingInputType = 'text' | 'search' | 'email' | 'password' | 'tel' | 'url';
4
+ export interface BingInputProps {
5
+ id?: string;
6
+ modelValue?: string;
7
+ type?: BingInputType;
8
+ placeholder?: string;
9
+ disabled?: boolean;
10
+ clearable?: boolean;
11
+ icon?: Component;
12
+ iconLabel?: string;
13
+ size?: BingInputSize;
14
+ block?: boolean;
15
+ debounceDelay?: number;
16
+ clearAriaLabel?: string;
17
+ ariaLabel?: string;
18
+ ariaDescribedby?: string;
19
+ status?: 'default' | 'error' | 'success' | 'warning';
20
+ name?: string;
21
+ autocomplete?: string;
22
+ spellcheck?: boolean | 'true' | 'false';
23
+ }
24
+ export interface BingInputEmits {
25
+ 'update:modelValue': [value: string];
26
+ input: [value: string, event: Event];
27
+ 'debounced-input': [value: string];
28
+ clear: [];
29
+ focus: [event: FocusEvent];
30
+ blur: [event: FocusEvent];
31
+ keydown: [event: KeyboardEvent];
32
+ }
33
+ export interface BingInputExpose {
34
+ input: HTMLInputElement | null;
35
+ focus: () => void;
36
+ blur: () => void;
37
+ select: () => void;
38
+ }
@@ -0,0 +1,49 @@
1
+ import { BingInputExpose, BingInputProps } from './BingInput.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ icon?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<BingInputProps, BingInputExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ clear: () => any;
8
+ input: (value: string, event: Event) => any;
9
+ "update:modelValue": (value: string) => any;
10
+ focus: (event: FocusEvent) => any;
11
+ blur: (event: FocusEvent) => any;
12
+ keydown: (event: KeyboardEvent) => any;
13
+ "debounced-input": (value: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<BingInputProps> & Readonly<{
15
+ onClear?: (() => any) | undefined;
16
+ onInput?: ((value: string, event: Event) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
+ onFocus?: ((event: FocusEvent) => any) | undefined;
19
+ onBlur?: ((event: FocusEvent) => any) | undefined;
20
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
21
+ "onDebounced-input"?: ((value: string) => any) | undefined;
22
+ }>, {
23
+ disabled: boolean;
24
+ type: import('./BingInput.types').BingInputType;
25
+ ariaLabel: string;
26
+ modelValue: string;
27
+ size: import('./BingInput.types').BingInputSize;
28
+ block: boolean;
29
+ name: string;
30
+ icon: import('vue').Component;
31
+ id: string;
32
+ ariaDescribedby: string;
33
+ status: "default" | "error" | "success" | "warning";
34
+ placeholder: string;
35
+ clearable: boolean;
36
+ iconLabel: string;
37
+ debounceDelay: number;
38
+ clearAriaLabel: string;
39
+ autocomplete: string;
40
+ spellcheck: boolean | "true" | "false";
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingInput } from './BingInput.vue';
2
+ export type { BingInputEmits, BingInputExpose, BingInputProps, BingInputSize, BingInputType, } from './BingInput.types';
@@ -0,0 +1,21 @@
1
+ import { BingRadioGroupSize, BingRadioValue } from '../BingRadioGroup/BingRadioGroup.types';
2
+ export type BingRadioSize = BingRadioGroupSize;
3
+ export interface BingRadioProps {
4
+ id?: string;
5
+ modelValue?: BingRadioValue | null;
6
+ value?: BingRadioValue;
7
+ disabled?: boolean;
8
+ size?: BingRadioSize;
9
+ label?: string;
10
+ description?: string;
11
+ ariaLabel?: string;
12
+ ariaDescribedby?: string;
13
+ status?: 'default' | 'error' | 'success' | 'warning';
14
+ name?: string;
15
+ }
16
+ export interface BingRadioEmits {
17
+ 'update:modelValue': [value: BingRadioValue];
18
+ change: [value: BingRadioValue, event: Event];
19
+ focus: [event: FocusEvent];
20
+ blur: [event: FocusEvent];
21
+ }
@@ -0,0 +1,38 @@
1
+ import { BingRadioProps } from './BingRadio.types';
2
+ declare var __VLS_1: {}, __VLS_3: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ description?: (props: typeof __VLS_3) => any;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<BingRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: import('..').BingRadioValue) => any;
10
+ change: (value: import('..').BingRadioValue, event: Event) => any;
11
+ focus: (event: FocusEvent) => any;
12
+ blur: (event: FocusEvent) => any;
13
+ }, string, import('vue').PublicProps, Readonly<BingRadioProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: import('..').BingRadioValue) => any) | undefined;
15
+ onChange?: ((value: import('..').BingRadioValue, event: Event) => any) | undefined;
16
+ onFocus?: ((event: FocusEvent) => any) | undefined;
17
+ onBlur?: ((event: FocusEvent) => any) | undefined;
18
+ }>, {
19
+ disabled: boolean;
20
+ label: string;
21
+ value: import('..').BingRadioValue;
22
+ ariaLabel: string;
23
+ modelValue: import('..').BingRadioValue | null;
24
+ size: import('./BingRadio.types').BingRadioSize;
25
+ name: string;
26
+ description: string;
27
+ id: string;
28
+ ariaDescribedby: string;
29
+ status: "default" | "error" | "success" | "warning";
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingRadio } from './BingRadio.vue';
2
+ export type { BingRadioEmits, BingRadioProps, BingRadioSize, } from './BingRadio.types';
@@ -0,0 +1,13 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ import { BingRadioGroupOption, BingRadioGroupSize, BingRadioValue } from './BingRadioGroup.types';
3
+ export interface BingRadioGroupContext {
4
+ modelValue: ComputedRef<BingRadioValue | null>;
5
+ disabled: ComputedRef<boolean>;
6
+ size: ComputedRef<BingRadioGroupSize>;
7
+ name: ComputedRef<string>;
8
+ status: ComputedRef<'default' | 'error' | 'success' | 'warning'>;
9
+ updateValue: (value: BingRadioValue, event: Event) => void;
10
+ handleRadioBlur: (event: FocusEvent) => void;
11
+ isOptionDisabled: (option: Pick<BingRadioGroupOption, 'disabled'>) => boolean;
12
+ }
13
+ export declare const bingRadioGroupContextKey: InjectionKey<BingRadioGroupContext>;
@@ -0,0 +1,27 @@
1
+ export type BingRadioValue = string | number | boolean;
2
+ export type BingRadioGroupSize = 'sm' | 'md' | 'lg';
3
+ export type BingRadioGroupDirection = 'row' | 'column' | 'wrap';
4
+ export interface BingRadioGroupOption {
5
+ label: string;
6
+ value: BingRadioValue;
7
+ disabled?: boolean;
8
+ description?: string;
9
+ }
10
+ export interface BingRadioGroupProps {
11
+ id?: string;
12
+ modelValue?: BingRadioValue | null;
13
+ options?: BingRadioGroupOption[];
14
+ disabled?: boolean;
15
+ size?: BingRadioGroupSize;
16
+ direction?: BingRadioGroupDirection;
17
+ name?: string;
18
+ ariaLabel?: string;
19
+ ariaDescribedby?: string;
20
+ status?: 'default' | 'error' | 'success' | 'warning';
21
+ }
22
+ export interface BingRadioGroupEmits {
23
+ 'update:modelValue': [value: BingRadioValue];
24
+ change: [value: BingRadioValue, event: Event];
25
+ focus: [event: FocusEvent];
26
+ blur: [event: FocusEvent];
27
+ }
@@ -0,0 +1,35 @@
1
+ import { BingRadioGroupOption, BingRadioGroupProps, BingRadioValue } from './BingRadioGroup.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<BingRadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (value: BingRadioValue) => any;
8
+ change: (value: BingRadioValue, event: Event) => any;
9
+ focus: (event: FocusEvent) => any;
10
+ blur: (event: FocusEvent) => any;
11
+ }, string, import('vue').PublicProps, Readonly<BingRadioGroupProps> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value: BingRadioValue) => any) | undefined;
13
+ onChange?: ((value: BingRadioValue, event: Event) => any) | undefined;
14
+ onFocus?: ((event: FocusEvent) => any) | undefined;
15
+ onBlur?: ((event: FocusEvent) => any) | undefined;
16
+ }>, {
17
+ disabled: boolean;
18
+ direction: import('./BingRadioGroup.types').BingRadioGroupDirection;
19
+ ariaLabel: string;
20
+ modelValue: BingRadioValue | null;
21
+ size: import('./BingRadioGroup.types').BingRadioGroupSize;
22
+ name: string;
23
+ id: string;
24
+ ariaDescribedby: string;
25
+ status: "default" | "error" | "success" | "warning";
26
+ options: BingRadioGroupOption[];
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingRadioGroup } from './BingRadioGroup.vue';
2
+ export type { BingRadioGroupDirection, BingRadioGroupEmits, BingRadioGroupOption, BingRadioGroupProps, BingRadioGroupSize, BingRadioValue, } from './BingRadioGroup.types';