@moubing/bing-ui 0.1.1 → 0.2.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.
@@ -13,6 +13,7 @@ export interface BingDropDownProps extends BingGlassEffectProps {
13
13
  width?: string | number;
14
14
  minWidth?: string | number;
15
15
  maxWidth?: string | number;
16
+ panelClass?: string;
16
17
  block?: boolean;
17
18
  closeOnOutside?: boolean;
18
19
  closeOnEscape?: boolean;
@@ -30,6 +30,7 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<BingDr
30
30
  placement: BingDropDownPlacement;
31
31
  closeOnOutside: boolean;
32
32
  open: boolean | null;
33
+ panelClass: string;
33
34
  closeOnEscape: boolean;
34
35
  autoFocus: boolean;
35
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
@@ -11,10 +11,6 @@ export declare const bingToastItems: import('vue').Ref<{
11
11
  order: number;
12
12
  ariaLabel?: string | undefined;
13
13
  closeAriaLabel: string;
14
- glass?: boolean | undefined;
15
- glassBlur?: string | number | undefined;
16
- glassOpacity?: number | undefined;
17
- glassSaturation?: number | undefined;
18
14
  }[], BingToastItem[] | {
19
15
  id: string;
20
16
  type: BingToastType;
@@ -27,10 +23,6 @@ export declare const bingToastItems: import('vue').Ref<{
27
23
  order: number;
28
24
  ariaLabel?: string | undefined;
29
25
  closeAriaLabel: string;
30
- glass?: boolean | undefined;
31
- glassBlur?: string | number | undefined;
32
- glassOpacity?: number | undefined;
33
- glassSaturation?: number | undefined;
34
26
  }[]>;
35
27
  export declare const activeBingToastViewportId: import('vue').Ref<string | undefined, string | undefined>;
36
28
  export declare function pauseBingToastTimer(id: string | number): void;
@@ -1,4 +1,3 @@
1
- import { BingGlassEffectProps } from '../../utils/glass';
2
1
  export declare const BING_TOAST_POSITIONS: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
3
2
  export declare const BING_TOAST_POSITION_ALIASES: readonly ["top-center", "bottom-center"];
4
3
  export declare const BING_TOAST_POSITION_OPTIONS: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right", "top-center", "bottom-center"];
@@ -7,7 +6,7 @@ export type BingToastPosition = (typeof BING_TOAST_POSITION_OPTIONS)[number];
7
6
  export type BingToastViewportPosition = BingToastPosition | 'all';
8
7
  export type BingToastType = 'default' | 'success' | 'error' | 'loading' | 'warning' | 'info';
9
8
  export type BingToastInput = string | BingToastOptions;
10
- export interface BingToastOptions extends BingGlassEffectProps {
9
+ export interface BingToastOptions {
11
10
  id?: string | number;
12
11
  title?: string;
13
12
  message?: string;
@@ -18,7 +17,7 @@ export interface BingToastOptions extends BingGlassEffectProps {
18
17
  ariaLabel?: string;
19
18
  closeAriaLabel?: string;
20
19
  }
21
- export interface BingToastItem extends BingGlassEffectProps {
20
+ export interface BingToastItem {
22
21
  id: string;
23
22
  type: BingToastType;
24
23
  title?: string;
@@ -31,7 +30,7 @@ export interface BingToastItem extends BingGlassEffectProps {
31
30
  ariaLabel?: string;
32
31
  closeAriaLabel: string;
33
32
  }
34
- export interface BingToastProps extends BingGlassEffectProps {
33
+ export interface BingToastProps {
35
34
  viewportPosition?: BingToastViewportPosition;
36
35
  zIndex?: number;
37
36
  offset?: string | number;
@@ -7,10 +7,6 @@ declare const __VLS_export: import('vue').DefineComponent<BingToastProps, {}, {}
7
7
  gap: string | number;
8
8
  width: string | number;
9
9
  zIndex: number;
10
- glass: boolean;
11
- glassBlur: string | number;
12
- glassOpacity: number;
13
- glassSaturation: number;
14
10
  max: number;
15
11
  offset: string | number;
16
12
  viewportPosition: import('./BingToast.types').BingToastViewportPosition;
@@ -68,12 +68,12 @@ declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {},
68
68
  virtualThreshold: number;
69
69
  virtualItemHeight: number;
70
70
  virtualOverscan: number;
71
- defaultExpandedValues: BingTreeSelectValue[];
72
71
  defaultExpandAll: boolean;
73
72
  checkStrictly: boolean;
74
73
  showTreeActions: boolean;
75
74
  expandAllText: string;
76
75
  collapseAllText: string;
76
+ defaultExpandedValues: BingTreeSelectValue[];
77
77
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
78
78
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
79
79
  declare const _default: typeof __VLS_export;
@@ -22,7 +22,6 @@ export * from './BingRadioGroup';
22
22
  export * from './BingResizable';
23
23
  export * from './BingScrollbar';
24
24
  export * from './BingSelect';
25
- export * from './BingSideNav';
26
25
  export * from './BingSortableList';
27
26
  export * from './BingTabs';
28
27
  export * from './BingTag';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moubing/bing-ui",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,57 +0,0 @@
1
- import { Component } from 'vue';
2
- export type BingSideNavValue = string | number;
3
- export type BingSideNavSize = 'sm' | 'md' | 'lg';
4
- export type BingSideNavVariant = 'glass' | 'soft' | 'quiet';
5
- export interface BingSideNavItem {
6
- value: BingSideNavValue;
7
- label: string;
8
- href?: string;
9
- target?: string;
10
- rel?: string;
11
- disabled?: boolean;
12
- badge?: string | number;
13
- icon?: Component;
14
- children?: BingSideNavItem[];
15
- defaultExpanded?: boolean;
16
- ariaLabel?: string;
17
- [key: string]: unknown;
18
- }
19
- export interface BingSideNavSection {
20
- value?: BingSideNavValue;
21
- label?: string;
22
- items: BingSideNavItem[];
23
- [key: string]: unknown;
24
- }
25
- export interface BingSideNavProps {
26
- modelValue?: BingSideNavValue;
27
- items?: BingSideNavItem[];
28
- sections?: BingSideNavSection[];
29
- expandedValues?: BingSideNavValue[];
30
- defaultExpandedValues?: BingSideNavValue[];
31
- size?: BingSideNavSize;
32
- variant?: BingSideNavVariant;
33
- disabled?: boolean;
34
- block?: boolean;
35
- collapsible?: boolean;
36
- animated?: boolean;
37
- respectReducedMotion?: boolean;
38
- ariaLabel?: string;
39
- }
40
- export interface BingSideNavSelectPayload {
41
- value: BingSideNavValue;
42
- item: BingSideNavItem;
43
- event: MouseEvent | KeyboardEvent;
44
- }
45
- export interface BingSideNavTogglePayload {
46
- value: BingSideNavValue;
47
- item: BingSideNavItem;
48
- expanded: boolean;
49
- event: MouseEvent | KeyboardEvent;
50
- }
51
- export interface BingSideNavEmits {
52
- 'update:modelValue': [value: BingSideNavValue];
53
- 'update:expandedValues': [values: BingSideNavValue[]];
54
- select: [payload: BingSideNavSelectPayload];
55
- expand: [payload: BingSideNavTogglePayload];
56
- collapse: [payload: BingSideNavTogglePayload];
57
- }
@@ -1,89 +0,0 @@
1
- import { BingSideNavItem, BingSideNavProps, BingSideNavSection, BingSideNavValue } from './BingSideNav.types';
2
- declare var __VLS_1: {}, __VLS_3: {
3
- section: BingSideNavSection;
4
- index: number;
5
- }, __VLS_14: {
6
- item: BingSideNavItem;
7
- active: boolean;
8
- expanded: boolean;
9
- depth: number;
10
- }, __VLS_21: {
11
- item: BingSideNavItem;
12
- active: boolean;
13
- expanded: boolean;
14
- disabled: boolean;
15
- depth: number;
16
- }, __VLS_23: {
17
- item: BingSideNavItem;
18
- active: boolean;
19
- depth: number;
20
- }, __VLS_39: {
21
- item: BingSideNavItem;
22
- active: boolean;
23
- expanded: boolean;
24
- depth: number;
25
- }, __VLS_46: {
26
- item: BingSideNavItem;
27
- active: boolean;
28
- expanded: boolean;
29
- disabled: boolean;
30
- depth: number;
31
- }, __VLS_48: {
32
- item: BingSideNavItem;
33
- active: boolean;
34
- depth: number;
35
- }, __VLS_50: {};
36
- type __VLS_Slots = {} & {
37
- header?: (props: typeof __VLS_1) => any;
38
- } & {
39
- 'section-label'?: (props: typeof __VLS_3) => any;
40
- } & {
41
- icon?: (props: typeof __VLS_14) => any;
42
- } & {
43
- item?: (props: typeof __VLS_21) => any;
44
- } & {
45
- badge?: (props: typeof __VLS_23) => any;
46
- } & {
47
- icon?: (props: typeof __VLS_39) => any;
48
- } & {
49
- item?: (props: typeof __VLS_46) => any;
50
- } & {
51
- badge?: (props: typeof __VLS_48) => any;
52
- } & {
53
- footer?: (props: typeof __VLS_50) => any;
54
- };
55
- declare const __VLS_base: import('vue').DefineComponent<BingSideNavProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
- select: (payload: import('./BingSideNav.types').BingSideNavSelectPayload) => any;
57
- "update:modelValue": (value: BingSideNavValue) => any;
58
- collapse: (payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any;
59
- "update:expandedValues": (values: BingSideNavValue[]) => any;
60
- expand: (payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any;
61
- }, string, import('vue').PublicProps, Readonly<BingSideNavProps> & Readonly<{
62
- onSelect?: ((payload: import('./BingSideNav.types').BingSideNavSelectPayload) => any) | undefined;
63
- "onUpdate:modelValue"?: ((value: BingSideNavValue) => any) | undefined;
64
- onCollapse?: ((payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any) | undefined;
65
- "onUpdate:expandedValues"?: ((values: BingSideNavValue[]) => any) | undefined;
66
- onExpand?: ((payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any) | undefined;
67
- }>, {
68
- disabled: boolean;
69
- ariaLabel: string;
70
- modelValue: BingSideNavValue;
71
- items: BingSideNavItem[];
72
- size: import('./BingSideNav.types').BingSideNavSize;
73
- variant: import('./BingSideNav.types').BingSideNavVariant;
74
- block: boolean;
75
- animated: boolean;
76
- respectReducedMotion: boolean;
77
- sections: BingSideNavSection[];
78
- expandedValues: BingSideNavValue[];
79
- defaultExpandedValues: BingSideNavValue[];
80
- collapsible: boolean;
81
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
82
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
83
- declare const _default: typeof __VLS_export;
84
- export default _default;
85
- type __VLS_WithSlots<T, S> = T & {
86
- new (): {
87
- $slots: S;
88
- };
89
- };
@@ -1,2 +0,0 @@
1
- export { default as BingSideNav } from './BingSideNav.vue';
2
- export type { BingSideNavEmits, BingSideNavItem, BingSideNavProps, BingSideNavSection, BingSideNavSelectPayload, BingSideNavSize, BingSideNavTogglePayload, BingSideNavValue, BingSideNavVariant, } from './BingSideNav.types';