@moubing/bing-ui 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/components/BingAnimatedText/BingAnimatedText.types.d.ts +21 -0
  2. package/dist/components/BingAnimatedText/BingAnimatedText.vue.d.ts +31 -0
  3. package/dist/components/BingAnimatedText/index.d.ts +2 -0
  4. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.types.d.ts +33 -0
  5. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.vue.d.ts +28 -0
  6. package/dist/components/BingAppSwitcherTransition/index.d.ts +2 -0
  7. package/dist/components/BingButton/BingButton.types.d.ts +46 -0
  8. package/dist/components/BingButton/BingButton.vue.d.ts +52 -0
  9. package/dist/components/BingButton/index.d.ts +2 -0
  10. package/dist/components/BingCard/BingCard.types.d.ts +38 -0
  11. package/dist/components/BingCard/BingCard.vue.d.ts +56 -0
  12. package/dist/components/BingCard/index.d.ts +2 -0
  13. package/dist/components/BingCarouselTransition/BingCarouselTransition.types.d.ts +33 -0
  14. package/dist/components/BingCarouselTransition/BingCarouselTransition.vue.d.ts +28 -0
  15. package/dist/components/BingCarouselTransition/index.d.ts +2 -0
  16. package/dist/components/BingCheckbox/BingCheckbox.types.d.ts +25 -0
  17. package/dist/components/BingCheckbox/BingCheckbox.vue.d.ts +39 -0
  18. package/dist/components/BingCheckbox/index.d.ts +2 -0
  19. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.context.d.ts +13 -0
  20. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.types.d.ts +27 -0
  21. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.vue.d.ts +35 -0
  22. package/dist/components/BingCheckboxGroup/index.d.ts +2 -0
  23. package/dist/components/BingCodeBlock/BingCodeBlock.highlight.d.ts +10 -0
  24. package/dist/components/BingCodeBlock/BingCodeBlock.types.d.ts +32 -0
  25. package/dist/components/BingCodeBlock/BingCodeBlock.vue.d.ts +29 -0
  26. package/dist/components/BingCodeBlock/index.d.ts +2 -0
  27. package/dist/components/BingDatePicker/BingDatePicker.types.d.ts +70 -0
  28. package/dist/components/BingDatePicker/BingDatePicker.vue.d.ts +54 -0
  29. package/dist/components/BingDatePicker/index.d.ts +2 -0
  30. package/dist/components/BingDeckTransition/BingDeckTransition.types.d.ts +38 -0
  31. package/dist/components/BingDeckTransition/BingDeckTransition.vue.d.ts +29 -0
  32. package/dist/components/BingDeckTransition/index.d.ts +2 -0
  33. package/dist/components/BingDialog/BingDialog.types.d.ts +45 -0
  34. package/dist/components/BingDialog/BingDialog.vue.d.ts +61 -0
  35. package/dist/components/BingDialog/index.d.ts +2 -0
  36. package/dist/components/BingDropDown/BingDropDown.context.d.ts +7 -0
  37. package/dist/components/BingDropDown/BingDropDown.types.d.ts +60 -0
  38. package/dist/components/BingDropDown/BingDropDown.vue.d.ts +87 -0
  39. package/dist/components/BingDropDown/BingDropDownItem.vue.d.ts +36 -0
  40. package/dist/components/BingDropDown/index.d.ts +3 -0
  41. package/dist/components/BingFilePreview/BingFilePreview.types.d.ts +56 -0
  42. package/dist/components/BingFilePreview/BingFilePreview.vue.d.ts +46 -0
  43. package/dist/components/BingFilePreview/index.d.ts +2 -0
  44. package/dist/components/BingForm/BingForm.context.d.ts +31 -0
  45. package/dist/components/BingForm/BingForm.types.d.ts +46 -0
  46. package/dist/components/BingForm/BingForm.vue.d.ts +32 -0
  47. package/dist/components/BingForm/index.d.ts +2 -0
  48. package/dist/components/BingFormItem/BingFormItem.types.d.ts +10 -0
  49. package/dist/components/BingFormItem/BingFormItem.vue.d.ts +30 -0
  50. package/dist/components/BingFormItem/index.d.ts +2 -0
  51. package/dist/components/BingIcon/BingIcon.types.d.ts +11 -0
  52. package/dist/components/BingIcon/BingIcon.vue.d.ts +10 -0
  53. package/dist/components/BingIcon/index.d.ts +2 -0
  54. package/dist/components/BingImage/BingImage.types.d.ts +68 -0
  55. package/dist/components/BingImage/BingImage.vue.d.ts +64 -0
  56. package/dist/components/BingImage/index.d.ts +2 -0
  57. package/dist/components/BingImagePreview/BingImagePreview.types.d.ts +40 -0
  58. package/dist/components/BingImagePreview/BingImagePreview.vue.d.ts +38 -0
  59. package/dist/components/BingImagePreview/index.d.ts +2 -0
  60. package/dist/components/BingInput/BingInput.types.d.ts +38 -0
  61. package/dist/components/BingInput/BingInput.vue.d.ts +49 -0
  62. package/dist/components/BingInput/index.d.ts +2 -0
  63. package/dist/components/BingRadio/BingRadio.types.d.ts +21 -0
  64. package/dist/components/BingRadio/BingRadio.vue.d.ts +38 -0
  65. package/dist/components/BingRadio/index.d.ts +2 -0
  66. package/dist/components/BingRadioGroup/BingRadioGroup.context.d.ts +13 -0
  67. package/dist/components/BingRadioGroup/BingRadioGroup.types.d.ts +27 -0
  68. package/dist/components/BingRadioGroup/BingRadioGroup.vue.d.ts +35 -0
  69. package/dist/components/BingRadioGroup/index.d.ts +2 -0
  70. package/dist/components/BingResizable/BingResizable.types.d.ts +63 -0
  71. package/dist/components/BingResizable/BingResizable.vue.d.ts +50 -0
  72. package/dist/components/BingResizable/index.d.ts +2 -0
  73. package/dist/components/BingScrollbar/BingScrollbar.types.d.ts +20 -0
  74. package/dist/components/BingScrollbar/BingScrollbar.vue.d.ts +28 -0
  75. package/dist/components/BingScrollbar/index.d.ts +2 -0
  76. package/dist/components/BingSelect/BingSelect.types.d.ts +57 -0
  77. package/dist/components/BingSelect/BingSelect.vue.d.ts +72 -0
  78. package/dist/components/BingSelect/index.d.ts +2 -0
  79. package/dist/components/BingSideNav/BingSideNav.types.d.ts +57 -0
  80. package/dist/components/BingSideNav/BingSideNav.vue.d.ts +89 -0
  81. package/dist/components/BingSideNav/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 +33 -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,32 @@
1
+ import { Component, Ref } from 'vue';
2
+ import { BingTooltipAlign, BingTooltipCloseReason, BingTooltipPlacement } from './BingTooltip.types';
3
+ export interface BingTooltipSharedOwner {
4
+ id: string;
5
+ rootRef: Ref<HTMLElement | null>;
6
+ contentComponent: Component;
7
+ clearCloseTimer: () => void;
8
+ getAlign: () => BingTooltipAlign;
9
+ getAriaLabel: () => string | undefined;
10
+ getCloseOnEsc: () => boolean;
11
+ getCloseOnOutside: () => boolean;
12
+ getHasContent: () => boolean;
13
+ getHasHoverTrigger: () => boolean;
14
+ getInteractive: () => boolean;
15
+ getGlassStyle: () => Record<string, string>;
16
+ getMaxWidth: () => string;
17
+ getOffset: () => number;
18
+ getPlacement: () => BingTooltipPlacement;
19
+ getTooltipId: () => string;
20
+ getViewportPadding: () => number;
21
+ getZIndex: () => number;
22
+ hide: (reason?: BingTooltipCloseReason) => void;
23
+ scheduleClose: (reason: BingTooltipCloseReason) => void;
24
+ }
25
+ export declare const sharedTooltipActiveOwner: import('vue').ShallowRef<BingTooltipSharedOwner | undefined, BingTooltipSharedOwner | undefined>;
26
+ export declare const sharedTooltipHostId: import('vue').ShallowRef<string | undefined, string | undefined>;
27
+ export declare const sharedTooltipPanelElement: import('vue').ShallowRef<HTMLElement | null, HTMLElement | null>;
28
+ export declare const sharedTooltipSuppressRootClickOwnerId: import('vue').ShallowRef<string | undefined, string | undefined>;
29
+ export declare const sharedTooltipShouldRender: import('vue').ShallowRef<boolean, boolean>;
30
+ export declare function createTooltipOwnerId(): string;
31
+ export declare function registerTooltipOwner(owner: BingTooltipSharedOwner): void;
32
+ export declare function unregisterTooltipOwner(owner: BingTooltipSharedOwner): void;
@@ -0,0 +1,36 @@
1
+ import { BingGlassEffectProps } from '../../utils/glass';
2
+ export type BingTooltipTrigger = 'hover' | 'click' | 'manual';
3
+ export type BingTooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
4
+ export type BingTooltipAlign = 'start' | 'center' | 'end';
5
+ export type BingTooltipOpenReason = 'hover' | 'click' | 'focus' | 'manual';
6
+ export type BingTooltipCloseReason = 'hover' | 'click' | 'focus' | 'outside' | 'escape' | 'manual' | 'disabled';
7
+ export interface BingTooltipProps extends BingGlassEffectProps {
8
+ modelValue?: boolean;
9
+ content?: string;
10
+ trigger?: BingTooltipTrigger | BingTooltipTrigger[];
11
+ placement?: BingTooltipPlacement;
12
+ align?: BingTooltipAlign;
13
+ disabled?: boolean;
14
+ interactive?: boolean;
15
+ openDelay?: number;
16
+ closeDelay?: number;
17
+ offset?: number;
18
+ viewportPadding?: number;
19
+ maxWidth?: string | number;
20
+ zIndex?: number;
21
+ closeOnOutside?: boolean;
22
+ closeOnEsc?: boolean;
23
+ id?: string;
24
+ ariaLabel?: string;
25
+ }
26
+ export interface BingTooltipEmits {
27
+ 'update:modelValue': [value: boolean];
28
+ open: [reason: BingTooltipOpenReason];
29
+ close: [reason: BingTooltipCloseReason];
30
+ }
31
+ export interface BingTooltipExpose {
32
+ show: (reason?: BingTooltipOpenReason) => void;
33
+ hide: (reason?: BingTooltipCloseReason) => void;
34
+ toggle: (reason?: BingTooltipOpenReason | BingTooltipCloseReason) => void;
35
+ updatePosition: () => void;
36
+ }
@@ -0,0 +1,51 @@
1
+ import { BingTooltipAlign, BingTooltipCloseReason, BingTooltipExpose, BingTooltipOpenReason, BingTooltipPlacement, BingTooltipProps, BingTooltipTrigger } from './BingTooltip.types';
2
+ declare function show(reason?: BingTooltipOpenReason): void;
3
+ declare function hide(reason?: BingTooltipCloseReason): void;
4
+ declare function toggle(reason?: BingTooltipOpenReason | BingTooltipCloseReason): void;
5
+ declare var __VLS_1: {
6
+ open: boolean;
7
+ show: typeof show;
8
+ hide: typeof hide;
9
+ toggle: typeof toggle;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ };
14
+ declare const __VLS_base: import('vue').DefineComponent<BingTooltipProps, BingTooltipExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "update:modelValue": (value: boolean) => any;
16
+ close: (reason: BingTooltipCloseReason) => any;
17
+ open: (reason: BingTooltipOpenReason) => any;
18
+ }, string, import('vue').PublicProps, Readonly<BingTooltipProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ onClose?: ((reason: BingTooltipCloseReason) => any) | undefined;
21
+ onOpen?: ((reason: BingTooltipOpenReason) => any) | undefined;
22
+ }>, {
23
+ trigger: BingTooltipTrigger | BingTooltipTrigger[];
24
+ disabled: boolean;
25
+ content: string;
26
+ maxWidth: string | number;
27
+ zIndex: number;
28
+ glass: boolean;
29
+ ariaLabel: string;
30
+ glassBlur: string | number;
31
+ glassOpacity: number;
32
+ glassSaturation: number;
33
+ interactive: boolean;
34
+ id: string;
35
+ offset: number;
36
+ placement: BingTooltipPlacement;
37
+ align: BingTooltipAlign;
38
+ openDelay: number;
39
+ closeDelay: number;
40
+ viewportPadding: number;
41
+ closeOnOutside: boolean;
42
+ closeOnEsc: boolean;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingTooltip } from './BingTooltip.vue';
2
+ export type { BingTooltipAlign, BingTooltipCloseReason, BingTooltipEmits, BingTooltipExpose, BingTooltipOpenReason, BingTooltipPlacement, BingTooltipProps, BingTooltipTrigger, } from './BingTooltip.types';
@@ -0,0 +1,69 @@
1
+ import { BingGlassEffectProps } from '../../utils/glass';
2
+ export type BingTreeSelectValue = string | number;
3
+ export type BingTreeSelectModelValue = BingTreeSelectValue | BingTreeSelectValue[] | null;
4
+ export type BingTreeSelectSize = 'sm' | 'md' | 'lg';
5
+ export type BingTreeSelectVirtualMode = boolean | 'auto';
6
+ export type BingTreeSelectSearchable = boolean | 'auto';
7
+ export type BingTreeSelectNodeMetaValue = string | number | boolean | null | undefined;
8
+ export interface BingTreeSelectNode {
9
+ label: string;
10
+ value: BingTreeSelectValue;
11
+ disabled?: boolean;
12
+ selectable?: boolean;
13
+ description?: string;
14
+ children?: BingTreeSelectNode[];
15
+ meta?: Record<string, BingTreeSelectNodeMetaValue>;
16
+ [key: string]: unknown;
17
+ }
18
+ export interface BingTreeSelectProps extends BingGlassEffectProps {
19
+ id?: string;
20
+ modelValue?: BingTreeSelectModelValue;
21
+ options?: BingTreeSelectNode[];
22
+ multiple?: boolean;
23
+ checkStrictly?: boolean;
24
+ placeholder?: string;
25
+ disabled?: boolean;
26
+ clearable?: boolean;
27
+ showSelectAll?: boolean;
28
+ selectAllText?: string;
29
+ clearAllText?: string;
30
+ showTreeActions?: boolean;
31
+ expandAllText?: string;
32
+ collapseAllText?: string;
33
+ emptyText?: string;
34
+ searchable?: BingTreeSelectSearchable;
35
+ searchPlaceholder?: string;
36
+ noSearchResultsText?: string;
37
+ defaultExpandedValues?: BingTreeSelectValue[];
38
+ defaultExpandAll?: boolean;
39
+ size?: BingTreeSelectSize;
40
+ block?: boolean;
41
+ panelMinHeight?: string | number;
42
+ panelMaxHeight?: string | number;
43
+ virtual?: BingTreeSelectVirtualMode;
44
+ virtualThreshold?: number;
45
+ virtualItemHeight?: number;
46
+ virtualOverscan?: number;
47
+ ariaLabel?: string;
48
+ ariaDescribedby?: string;
49
+ status?: 'default' | 'error' | 'success' | 'warning';
50
+ }
51
+ export interface BingTreeSelectChangePayload {
52
+ value: BingTreeSelectModelValue;
53
+ node?: BingTreeSelectNode;
54
+ nodes: BingTreeSelectNode[];
55
+ }
56
+ export interface BingTreeSelectExpandPayload {
57
+ value: BingTreeSelectValue;
58
+ node: BingTreeSelectNode;
59
+ expandedValues: BingTreeSelectValue[];
60
+ }
61
+ export interface BingTreeSelectEmits {
62
+ 'update:modelValue': [value: BingTreeSelectModelValue];
63
+ change: [payload: BingTreeSelectChangePayload];
64
+ clear: [];
65
+ open: [];
66
+ close: [];
67
+ expand: [payload: BingTreeSelectExpandPayload];
68
+ collapse: [payload: BingTreeSelectExpandPayload];
69
+ }
@@ -0,0 +1,85 @@
1
+ import { BingTreeSelectChangePayload, BingTreeSelectModelValue, BingTreeSelectNode, BingTreeSelectProps, BingTreeSelectValue } from './BingTreeSelect.types';
2
+ declare var __VLS_1: {
3
+ selectedNodes: BingTreeSelectNode[];
4
+ placeholder: string;
5
+ }, __VLS_83: {
6
+ node: BingTreeSelectNode;
7
+ selected: boolean;
8
+ indeterminate: boolean;
9
+ depth: number;
10
+ expanded: boolean;
11
+ }, __VLS_90: {
12
+ node: BingTreeSelectNode;
13
+ selected: boolean;
14
+ indeterminate: boolean;
15
+ depth: number;
16
+ expanded: boolean;
17
+ };
18
+ type __VLS_Slots = {} & {
19
+ value?: (props: typeof __VLS_1) => any;
20
+ } & {
21
+ node?: (props: typeof __VLS_83) => any;
22
+ } & {
23
+ 'node-detail'?: (props: typeof __VLS_90) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ clear: () => any;
27
+ "update:modelValue": (value: BingTreeSelectModelValue) => any;
28
+ change: (payload: BingTreeSelectChangePayload) => any;
29
+ close: () => any;
30
+ open: () => any;
31
+ collapse: (payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any;
32
+ expand: (payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any;
33
+ }, string, import('vue').PublicProps, Readonly<BingTreeSelectProps> & Readonly<{
34
+ onClear?: (() => any) | undefined;
35
+ "onUpdate:modelValue"?: ((value: BingTreeSelectModelValue) => any) | undefined;
36
+ onChange?: ((payload: BingTreeSelectChangePayload) => any) | undefined;
37
+ onClose?: (() => any) | undefined;
38
+ onOpen?: (() => any) | undefined;
39
+ onCollapse?: ((payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any) | undefined;
40
+ onExpand?: ((payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any) | undefined;
41
+ }>, {
42
+ disabled: boolean;
43
+ glass: boolean;
44
+ ariaLabel: string;
45
+ modelValue: BingTreeSelectModelValue;
46
+ size: import('./BingTreeSelect.types').BingTreeSelectSize;
47
+ block: boolean;
48
+ glassBlur: string | number;
49
+ glassOpacity: number;
50
+ glassSaturation: number;
51
+ id: string;
52
+ ariaDescribedby: string;
53
+ status: "default" | "error" | "success" | "warning";
54
+ placeholder: string;
55
+ clearable: boolean;
56
+ panelMaxHeight: string | number;
57
+ options: BingTreeSelectNode[];
58
+ multiple: boolean;
59
+ showSelectAll: boolean;
60
+ selectAllText: string;
61
+ clearAllText: string;
62
+ emptyText: string;
63
+ searchable: import('./BingTreeSelect.types').BingTreeSelectSearchable;
64
+ searchPlaceholder: string;
65
+ noSearchResultsText: string;
66
+ panelMinHeight: string | number;
67
+ virtual: import('./BingTreeSelect.types').BingTreeSelectVirtualMode;
68
+ virtualThreshold: number;
69
+ virtualItemHeight: number;
70
+ virtualOverscan: number;
71
+ defaultExpandedValues: BingTreeSelectValue[];
72
+ defaultExpandAll: boolean;
73
+ checkStrictly: boolean;
74
+ showTreeActions: boolean;
75
+ expandAllText: string;
76
+ collapseAllText: string;
77
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
78
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
79
+ declare const _default: typeof __VLS_export;
80
+ export default _default;
81
+ type __VLS_WithSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingTreeSelect } from './BingTreeSelect.vue';
2
+ export type { BingTreeSelectChangePayload, BingTreeSelectEmits, BingTreeSelectExpandPayload, BingTreeSelectModelValue, BingTreeSelectNode, BingTreeSelectProps, BingTreeSelectSearchable, BingTreeSelectSize, BingTreeSelectValue, BingTreeSelectVirtualMode, } from './BingTreeSelect.types';
@@ -0,0 +1,33 @@
1
+ export * from './BingAnimatedText';
2
+ export * from './BingAppSwitcherTransition';
3
+ export * from './BingButton';
4
+ export * from './BingCard';
5
+ export * from './BingCheckbox';
6
+ export * from './BingCodeBlock';
7
+ export * from './BingDatePicker';
8
+ export * from './BingCarouselTransition';
9
+ export * from './BingDeckTransition';
10
+ export * from './BingDialog';
11
+ export * from './BingDropDown';
12
+ export * from './BingFilePreview';
13
+ export * from './BingForm';
14
+ export * from './BingFormItem';
15
+ export * from './BingIcon';
16
+ export * from './BingImage';
17
+ export * from './BingImagePreview';
18
+ export * from './BingInput';
19
+ export * from './BingCheckboxGroup';
20
+ export * from './BingRadio';
21
+ export * from './BingRadioGroup';
22
+ export * from './BingResizable';
23
+ export * from './BingScrollbar';
24
+ export * from './BingSelect';
25
+ export * from './BingSideNav';
26
+ export * from './BingSortableList';
27
+ export * from './BingTabs';
28
+ export * from './BingTag';
29
+ export * from './BingTextarea';
30
+ export * from './BingToast';
31
+ export * from './BingTooltip';
32
+ export * from './BingTable';
33
+ export * from './BingTreeSelect';
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export {}
1
+ export * from './components';
2
+ export type { BingGlassEffectProps } from './utils/glass';
3
+ export * from './motion';
@@ -0,0 +1,13 @@
1
+ export declare const motion: {
2
+ readonly duration: {
3
+ readonly fast: 0.18;
4
+ readonly normal: 0.32;
5
+ readonly slow: 0.62;
6
+ };
7
+ readonly ease: {
8
+ readonly smooth: "power3.out";
9
+ readonly press: "back.out(2.2)";
10
+ readonly glide: "expo.out";
11
+ };
12
+ };
13
+ export declare function prefersReducedMotion(): boolean;
@@ -0,0 +1,16 @@
1
+ export interface BingGlassEffectProps {
2
+ glass?: boolean;
3
+ glassBlur?: string | number;
4
+ glassOpacity?: number;
5
+ glassSaturation?: number;
6
+ }
7
+ export declare const defaultGlassEffect: {
8
+ glass: true;
9
+ glassBlur: number;
10
+ glassOpacity: number;
11
+ glassSaturation: number;
12
+ };
13
+ export declare function normalizeGlassCssLength(value: string | number): string;
14
+ export declare function createGlassCssVariables(prefix: string, options: BingGlassEffectProps): {
15
+ [x: string]: string;
16
+ };
package/package.json CHANGED
@@ -1,75 +1,74 @@
1
- {
1
+ {
2
2
  "name": "@moubing/bing-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
- "packageManager": "pnpm@10.29.3",
6
5
  "publishConfig": {
7
6
  "access": "public",
8
7
  "registry": "https://registry.npmjs.org/"
9
8
  },
10
9
  "main": "./dist/bing-ui.umd.js",
11
- "module": "./dist/bing-ui.es.js",
12
- "types": "./dist/index.d.ts",
13
- "files": [
14
- "dist"
15
- ],
16
- "sideEffects": [
17
- "*.css",
18
- "**/*.css"
19
- ],
20
- "exports": {
21
- ".": {
22
- "types": "./dist/index.d.ts",
23
- "import": "./dist/bing-ui.es.js"
24
- },
25
- "./style.css": "./dist/bing-ui.css"
26
- },
27
- "peerDependencies": {
28
- "gsap": "^3.15.0",
29
- "vue": "^3.5.0"
30
- },
31
- "scripts": {
32
- "dev": "vite",
33
- "build": "vue-tsc -b && vite build",
34
- "preview": "vite preview",
35
- "test": "vitest",
36
- "test:run": "vitest run",
37
- "test:browser": "vitest --config vitest.browser.config.ts --passWithNoTests",
38
- "test:visual": "playwright test",
39
- "storybook": "node scripts/storybook-dev.mjs",
40
- "build-storybook": "cross-env STORYBOOK=true storybook build",
41
- "changeset": "changeset",
42
- "version-packages": "changeset version"
43
- },
44
- "devDependencies": {
45
- "@changesets/cli": "^2.31.0",
46
- "@playwright/test": "^1.60.0",
47
- "@storybook/addon-docs": "^10.4.1",
48
- "@storybook/vue3-vite": "^10.4.1",
49
- "@types/node": "^24.12.3",
50
- "@vitejs/plugin-vue": "^6.0.6",
51
- "@vitest/browser": "^4.1.7",
52
- "@vitest/browser-playwright": "^4.1.7",
53
- "@vue/test-utils": "^2.4.10",
54
- "@vue/tsconfig": "^0.9.1",
55
- "cross-env": "^10.1.0",
56
- "gsap": "^3.15.0",
57
- "happy-dom": "^20.9.0",
58
- "playwright": "^1.60.0",
59
- "storybook": "^10.4.1",
60
- "typescript": "~6.0.2",
61
- "vite": "^8.0.12",
62
- "vite-plugin-dts": "^5.0.1",
63
- "vitest": "^4.1.7",
64
- "vue": "^3.5.35",
65
- "vue-tsc": "^3.2.8"
66
- },
67
- "dependencies": {
68
- "@dnd-kit/dom": "^0.5.0",
69
- "@dnd-kit/vue": "^0.5.0",
70
- "dayjs": "^1.11.21",
71
- "lucide-vue-next": "^1.0.0",
72
- "shiki": "^4.2.0",
73
- "zod": "^4.4.3"
74
- }
75
- }
10
+ "module": "./dist/bing-ui.es.js",
11
+ "types": "./dist/index.d.ts",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "sideEffects": [
16
+ "*.css",
17
+ "**/*.css"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/bing-ui.es.js"
23
+ },
24
+ "./style.css": "./dist/bing-ui.css"
25
+ },
26
+ "peerDependencies": {
27
+ "gsap": "^3.15.0",
28
+ "vue": "^3.5.0"
29
+ },
30
+ "devDependencies": {
31
+ "@changesets/cli": "^2.31.0",
32
+ "@playwright/test": "^1.60.0",
33
+ "@storybook/addon-docs": "^10.4.1",
34
+ "@storybook/vue3-vite": "^10.4.1",
35
+ "@types/node": "^24.12.3",
36
+ "@vitejs/plugin-vue": "^6.0.6",
37
+ "@vitest/browser": "^4.1.7",
38
+ "@vitest/browser-playwright": "^4.1.7",
39
+ "@vue/test-utils": "^2.4.10",
40
+ "@vue/tsconfig": "^0.9.1",
41
+ "cross-env": "^10.1.0",
42
+ "gsap": "^3.15.0",
43
+ "happy-dom": "^20.9.0",
44
+ "playwright": "^1.60.0",
45
+ "storybook": "^10.4.1",
46
+ "typescript": "~6.0.2",
47
+ "vite": "^8.0.12",
48
+ "vite-plugin-dts": "^5.0.1",
49
+ "vitest": "^4.1.7",
50
+ "vue": "^3.5.35",
51
+ "vue-tsc": "^3.2.8"
52
+ },
53
+ "dependencies": {
54
+ "@dnd-kit/dom": "^0.5.0",
55
+ "@dnd-kit/vue": "^0.5.0",
56
+ "dayjs": "^1.11.21",
57
+ "lucide-vue-next": "^1.0.0",
58
+ "shiki": "^4.2.0",
59
+ "zod": "^4.4.3"
60
+ },
61
+ "scripts": {
62
+ "dev": "vite",
63
+ "build": "vue-tsc -b && vite build",
64
+ "preview": "vite preview",
65
+ "test": "vitest",
66
+ "test:run": "vitest run",
67
+ "test:browser": "vitest --config vitest.browser.config.ts --passWithNoTests",
68
+ "test:visual": "playwright test",
69
+ "storybook": "node scripts/storybook-dev.mjs",
70
+ "build-storybook": "cross-env STORYBOOK=true storybook build",
71
+ "changeset": "changeset",
72
+ "version-packages": "changeset version"
73
+ }
74
+ }