@webx-ui/core 0.3.0 → 0.4.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 (52) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +40 -0
  2. package/dist/components/Accordion/index.d.ts +2 -0
  3. package/dist/components/Accordion/types.d.ts +25 -0
  4. package/dist/components/AccordionItem/AccordionItem.d.ts +41 -0
  5. package/dist/components/AccordionItem/index.d.ts +2 -0
  6. package/dist/components/AccordionItem/types.d.ts +12 -0
  7. package/dist/components/Action/Action.d.ts +4 -4
  8. package/dist/components/Autocomplete/Autocomplete.d.ts +9 -9
  9. package/dist/components/Badge/Badge.d.ts +1 -1
  10. package/dist/components/Button/Button.d.ts +3 -3
  11. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -3
  12. package/dist/components/Card/Card.d.ts +1 -1
  13. package/dist/components/Cascader/Cascader.d.ts +7 -7
  14. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  15. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
  16. package/dist/components/DatePicker/DatePicker.d.ts +9 -9
  17. package/dist/components/DateRangePicker/DateRangePicker.d.ts +8 -8
  18. package/dist/components/DateTimePicker/DateTimePicker.d.ts +2 -2
  19. package/dist/components/DropdownItem/DropdownItem.d.ts +3 -3
  20. package/dist/components/EntityCard/EntityCard.d.ts +4 -4
  21. package/dist/components/FormItem/FormItem.d.ts +2 -2
  22. package/dist/components/Icon/Icon.d.ts +1 -1
  23. package/dist/components/Indicator/Indicator.d.ts +2 -2
  24. package/dist/components/Input/Input.d.ts +5 -5
  25. package/dist/components/Link/Link.d.ts +3 -3
  26. package/dist/components/Popover/Popover.d.ts +75 -0
  27. package/dist/components/Popover/index.d.ts +2 -0
  28. package/dist/components/Popover/types.d.ts +34 -0
  29. package/dist/components/Prose/Prose.d.ts +1 -1
  30. package/dist/components/Radio/Radio.d.ts +1 -1
  31. package/dist/components/RichText/RichText.d.ts +1 -1
  32. package/dist/components/RichText/ToolbarButton.d.ts +1 -1
  33. package/dist/components/Select/Select.d.ts +10 -10
  34. package/dist/components/Statistic/Statistic.d.ts +1 -1
  35. package/dist/components/Switch/Switch.d.ts +1 -1
  36. package/dist/components/Tab/Tab.d.ts +32 -0
  37. package/dist/components/Tab/index.d.ts +2 -0
  38. package/dist/components/Tab/types.d.ts +15 -0
  39. package/dist/components/Table/Table.d.ts +49 -3
  40. package/dist/components/Tabs/Tabs.d.ts +58 -0
  41. package/dist/components/Tabs/index.d.ts +2 -0
  42. package/dist/components/Tabs/types.d.ts +37 -0
  43. package/dist/components/TagsInput/TagsInput.d.ts +2 -2
  44. package/dist/components/Text/Text.d.ts +1 -1
  45. package/dist/components/Textarea/Textarea.d.ts +2 -2
  46. package/dist/components/TimePicker/TimePicker.d.ts +2 -2
  47. package/dist/components/index.d.ts +5 -0
  48. package/dist/composables/useAccordion.d.ts +16 -0
  49. package/dist/index.js +2327 -1874
  50. package/dist/index.js.map +1 -1
  51. package/dist/style.css +1 -1
  52. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ import { AccordionModelValue, AccordionProps } from './types';
2
+ type __VLS_Props = AccordionProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: AccordionModelValue;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Readonly<{
9
+ /** The `WxAccordionItem`s. */
10
+ default?: () => unknown;
11
+ }> & {
12
+ /** The `WxAccordionItem`s. */
13
+ default?: () => unknown;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ change: (value: AccordionModelValue) => any;
21
+ "update:modelValue": (value: AccordionModelValue) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onChange?: ((value: AccordionModelValue) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: AccordionModelValue) => any) | undefined;
25
+ }>, {
26
+ multiple: boolean;
27
+ collapsible: boolean;
28
+ variant: import('./types').AccordionVariant;
29
+ size: import('./types').AccordionSize;
30
+ iconPosition: import('./types').AccordionIconPosition;
31
+ headingTag: string;
32
+ disabled: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxAccordion } from './Accordion';
2
+ export type * from './types';
@@ -0,0 +1,25 @@
1
+ import { AccordionIconPosition, AccordionSize, AccordionVariant } from '../../composables/useAccordion';
2
+ /** One open item, or a set of them when `multiple` is on. */
3
+ export type AccordionModelValue = string | string[] | undefined;
4
+ export interface AccordionProps {
5
+ /** Let more than one item stand open. The model becomes an array. */
6
+ multiple?: boolean;
7
+ /** With one item at a time, clicking the open one closes it. */
8
+ collapsible?: boolean;
9
+ /** Outline around the whole list, a card per item, or bare rules. */
10
+ variant?: AccordionVariant;
11
+ size?: AccordionSize;
12
+ /** Chevron before the title or after it. */
13
+ iconPosition?: AccordionIconPosition;
14
+ /**
15
+ * Element the titles are written as. Headings are how a screen reader skims a page,
16
+ * so pick the level that follows the one above the accordion.
17
+ */
18
+ headingTag?: string;
19
+ /** Nothing in the accordion opens or closes. */
20
+ disabled?: boolean;
21
+ }
22
+ export interface AccordionEmits {
23
+ change: [value: AccordionModelValue];
24
+ }
25
+ export type { AccordionIconPosition, AccordionSize, AccordionVariant };
@@ -0,0 +1,41 @@
1
+ import { AccordionItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /** The panel. */
6
+ default?: () => unknown;
7
+ /** Replaces `title`. */
8
+ title?: () => unknown;
9
+ /**
10
+ * Sits at the end of the header, outside the button — so a switch or a menu there
11
+ * can be operated without opening the item.
12
+ */
13
+ extra?: () => unknown;
14
+ }> & {
15
+ /** The panel. */
16
+ default?: () => unknown;
17
+ /** Replaces `title`. */
18
+ title?: () => unknown;
19
+ /**
20
+ * Sits at the end of the header, outside the button — so a switch or a menu there
21
+ * can be operated without opening the item.
22
+ */
23
+ extra?: () => unknown;
24
+ };
25
+ refs: {};
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<AccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AccordionItemProps> & Readonly<{}>, {
30
+ disabled: boolean;
31
+ title: string;
32
+ subtitle: string;
33
+ icon: import('..').IconName;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxAccordionItem } from './AccordionItem';
2
+ export type * from './types';
@@ -0,0 +1,12 @@
1
+ import { IconName } from '../Icon/types';
2
+ export interface AccordionItemProps {
3
+ /** Unique within the accordion; this is what `v-model` holds. */
4
+ value: string;
5
+ /** Text of the header. The `title` slot replaces it. */
6
+ title?: string;
7
+ /** A second line under the title — a hint, a count, a status. */
8
+ subtitle?: string;
9
+ /** Icon before the title, after the chevron when that sits first. */
10
+ icon?: IconName;
11
+ disabled?: boolean;
12
+ }
@@ -15,15 +15,15 @@ declare const __VLS_component: import('vue').DefineComponent<ActionProps, {}, {}
15
15
  onClick?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
17
  size: import('./types').ActionSize;
18
- label: string;
18
+ disabled: boolean;
19
19
  type: ActionType;
20
+ as: string | import('vue').Component;
21
+ label: string;
22
+ target: string;
20
23
  title: string;
21
24
  icon: IconName;
22
25
  tone: ActionTone;
23
26
  href: string;
24
- target: string;
25
- as: string | import('vue').Component;
26
- disabled: boolean;
27
27
  hidden: boolean;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -17,27 +17,27 @@ declare function __VLS_template(): {
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- close: () => any;
20
+ change: (value: string) => any;
21
21
  search: (term: string) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ close: () => any;
22
24
  select: (option: AutocompleteOption) => any;
23
- clear: () => any;
24
25
  open: () => any;
25
- change: (value: string) => any;
26
- "update:modelValue": (value: string) => any;
26
+ clear: () => any;
27
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
- onClose?: (() => any) | undefined;
28
+ onChange?: ((value: string) => any) | undefined;
29
29
  onSearch?: ((term: string) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
+ onClose?: (() => any) | undefined;
30
32
  onSelect?: ((option: AutocompleteOption) => any) | undefined;
31
- onClear?: (() => any) | undefined;
32
33
  onOpen?: (() => any) | undefined;
33
- onChange?: ((value: string) => any) | undefined;
34
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ onClear?: (() => any) | undefined;
35
35
  }>, {
36
36
  name: string;
37
37
  size: import('../..').ControlSize;
38
38
  disabled: boolean;
39
- teleport: boolean;
40
39
  placeholder: string;
40
+ teleport: boolean;
41
41
  ariaLabel: string;
42
42
  options: AutocompleteOption[];
43
43
  remote: boolean;
@@ -14,10 +14,10 @@ declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {},
14
14
  }, string, import('vue').PublicProps, Readonly<BadgeProps> & Readonly<{
15
15
  onClose?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
+ variant: import('./types').BadgeVariant;
17
18
  size: import('./types').BadgeSize;
18
19
  type: import('./types').BadgeType;
19
20
  round: boolean;
20
- variant: import('./types').BadgeVariant;
21
21
  dot: boolean;
22
22
  closable: boolean;
23
23
  closeLabel: string;
@@ -14,14 +14,14 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
14
14
  }, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
15
15
  onClick?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
+ variant: import('./types').ButtonVariant;
17
18
  size: import('./types').ButtonSize;
19
+ disabled: boolean;
18
20
  type: import('./types').ButtonType;
21
+ target: string;
19
22
  round: boolean;
20
23
  href: string;
21
- target: string;
22
- disabled: boolean;
23
24
  loading: boolean;
24
- variant: import('./types').ButtonVariant;
25
25
  block: boolean;
26
26
  nativeType: import('./types').ButtonNativeType;
27
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -9,12 +9,12 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
12
+ variant: import('..').ButtonVariant;
12
13
  size: import('..').ButtonSize;
13
- type: import('..').ButtonType;
14
14
  disabled: boolean;
15
- ariaLabel: string;
16
- variant: import('..').ButtonVariant;
15
+ type: import('..').ButtonType;
17
16
  vertical: boolean;
17
+ ariaLabel: string;
18
18
  attached: boolean;
19
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -14,10 +14,10 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
17
+ bordered: boolean;
17
18
  title: string;
18
19
  shadow: import('./types').CardShadow;
19
20
  padding: import('./types').CardPadding;
20
- bordered: boolean;
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
23
  export default _default;
@@ -18,25 +18,25 @@ declare function __VLS_template(): {
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- close: () => any;
22
- clear: () => any;
23
- open: () => any;
24
21
  change: (value: CascaderModelValue) => any;
25
22
  "update:modelValue": (value: CascaderModelValue) => any;
23
+ close: () => any;
24
+ open: () => any;
25
+ clear: () => any;
26
26
  expand: (path: CascaderOption[]) => any;
27
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
- onClose?: (() => any) | undefined;
29
- onClear?: (() => any) | undefined;
30
- onOpen?: (() => any) | undefined;
31
28
  onChange?: ((value: CascaderModelValue) => any) | undefined;
32
29
  "onUpdate:modelValue"?: ((value: CascaderModelValue) => any) | undefined;
30
+ onClose?: (() => any) | undefined;
31
+ onOpen?: (() => any) | undefined;
32
+ onClear?: (() => any) | undefined;
33
33
  onExpand?: ((path: CascaderOption[]) => any) | undefined;
34
34
  }>, {
35
35
  name: string;
36
36
  size: import('../..').ControlSize;
37
37
  disabled: boolean;
38
- teleport: boolean;
39
38
  placeholder: string;
39
+ teleport: boolean;
40
40
  ariaLabel: string;
41
41
  options: CascaderOption[];
42
42
  emptyText: string;
@@ -23,10 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
23
23
  }>, {
24
24
  name: string;
25
25
  size: import('../..').ControlSize;
26
- label: string;
27
26
  disabled: boolean;
28
- ariaLabel: string;
27
+ label: string;
29
28
  value: import('../../composables/useFormField').ChoiceValue;
29
+ ariaLabel: string;
30
30
  id: string;
31
31
  indeterminate: boolean;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
13
13
  name: string;
14
14
  size: import('../..').ControlSize;
15
15
  disabled: boolean;
16
- teleport: boolean;
17
16
  placeholder: string;
17
+ teleport: boolean;
18
18
  ariaLabel: string;
19
19
  clearable: boolean;
20
20
  status: import('../..').ControlStatus;
@@ -5,30 +5,30 @@ type __VLS_PublicProps = {
5
5
  } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
- slots: any;
8
+ slots: Readonly<Record<string, (props: Record<string, unknown>) => unknown>> & Record<string, (props: Record<string, unknown>) => unknown>;
9
9
  refs: {};
10
10
  rootEl: any;
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- close: () => any;
15
- clear: () => any;
16
- open: () => any;
17
14
  change: (value: DatePickerModelValue) => any;
18
15
  "update:modelValue": (value: DatePickerModelValue) => any;
16
+ close: () => any;
17
+ open: () => any;
18
+ clear: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
- onClose?: (() => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
- onOpen?: (() => any) | undefined;
23
20
  onChange?: ((value: DatePickerModelValue) => any) | undefined;
24
21
  "onUpdate:modelValue"?: ((value: DatePickerModelValue) => any) | undefined;
22
+ onClose?: (() => any) | undefined;
23
+ onOpen?: (() => any) | undefined;
24
+ onClear?: (() => any) | undefined;
25
25
  }>, {
26
26
  name: string;
27
27
  size: import('../..').ControlSize;
28
- type: import('./types').DatePickerType;
29
28
  disabled: boolean;
30
- teleport: boolean | string;
29
+ type: import('./types').DatePickerType;
31
30
  placeholder: string;
31
+ teleport: boolean | string;
32
32
  ariaLabel: string;
33
33
  clearable: boolean;
34
34
  status: import('../..').ControlStatus;
@@ -5,29 +5,29 @@ type __VLS_PublicProps = {
5
5
  } & __VLS_Props;
6
6
  declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
- slots: any;
8
+ slots: Readonly<Record<string, (props: Record<string, unknown>) => unknown>> & Record<string, (props: Record<string, unknown>) => unknown>;
9
9
  refs: {};
10
10
  rootEl: any;
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- close: () => any;
15
- clear: () => any;
16
- open: () => any;
17
14
  change: (value: DateRangePickerModelValue) => any;
18
15
  "update:modelValue": (value: DateRangePickerModelValue) => any;
16
+ close: () => any;
17
+ open: () => any;
18
+ clear: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
- onClose?: (() => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
- onOpen?: (() => any) | undefined;
23
20
  onChange?: ((value: DateRangePickerModelValue) => any) | undefined;
24
21
  "onUpdate:modelValue"?: ((value: DateRangePickerModelValue) => any) | undefined;
22
+ onClose?: (() => any) | undefined;
23
+ onOpen?: (() => any) | undefined;
24
+ onClear?: (() => any) | undefined;
25
25
  }>, {
26
26
  name: string;
27
27
  size: import('../..').ControlSize;
28
28
  disabled: boolean;
29
- teleport: boolean;
30
29
  placeholder: string;
30
+ teleport: boolean;
31
31
  ariaLabel: string;
32
32
  clearable: boolean;
33
33
  status: import('../..').ControlStatus;
@@ -12,7 +12,7 @@ type __VLS_PublicProps = {
12
12
  } & __VLS_Props;
13
13
  declare function __VLS_template(): {
14
14
  attrs: Partial<{}>;
15
- slots: any;
15
+ slots: Readonly<Record<string, (props: Record<string, unknown>) => unknown>> & Record<string, (props: Record<string, unknown>) => unknown>;
16
16
  refs: {};
17
17
  rootEl: any;
18
18
  };
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
25
25
  name: string;
26
26
  size: import('../..').ControlSize;
27
27
  disabled: boolean;
28
- teleport: boolean | string;
29
28
  placeholder: string;
29
+ teleport: boolean | string;
30
30
  ariaLabel: string;
31
31
  clearable: boolean;
32
32
  status: import('../..').ControlStatus;
@@ -15,12 +15,12 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownItemProps,
15
15
  }, string, import('vue').PublicProps, Readonly<DropdownItemProps> & Readonly<{
16
16
  onClick?: ((event: MouseEvent) => any) | undefined;
17
17
  }>, {
18
+ disabled: boolean;
19
+ as: string | import('vue').Component;
20
+ target: string;
18
21
  icon: import('..').IconName;
19
22
  tone: import('./types').DropdownItemTone;
20
23
  href: string;
21
- target: string;
22
- as: string | import('vue').Component;
23
- disabled: boolean;
24
24
  active: boolean;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -18,14 +18,14 @@ declare const __VLS_component: import('vue').DefineComponent<EntityCardProps, {}
18
18
  }, string, import('vue').PublicProps, Readonly<EntityCardProps> & Readonly<{
19
19
  onClick?: ((event: MouseEvent) => any) | undefined;
20
20
  }>, {
21
- image: string;
21
+ bordered: boolean;
22
+ variant: import('./types').EntityCardVariant;
22
23
  size: import('./types').EntityCardSize;
24
+ image: string;
23
25
  meta: import('./types').EntityCardMeta[];
24
26
  title: string;
25
- href: string;
26
- variant: import('./types').EntityCardVariant;
27
- bordered: boolean;
28
27
  subtitle: string;
28
+ href: string;
29
29
  imageAlt: string;
30
30
  shape: import('./types').EntityCardShape;
31
31
  imageSize: number | string;
@@ -16,9 +16,9 @@ declare const __VLS_component: import('vue').DefineComponent<FormItemProps, {
16
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FormItemProps> & Readonly<{}>, {
17
17
  name: string;
18
18
  size: ControlSize;
19
- label: string;
20
- required: boolean;
21
19
  disabled: boolean;
20
+ required: boolean;
21
+ label: string;
22
22
  error: string | string[];
23
23
  labelWidth: string;
24
24
  help: string;
@@ -1,8 +1,8 @@
1
1
  import { IconProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
3
3
  size: import('./types').IconSize | number | string;
4
+ label: string;
4
5
  strokeWidth: number | string;
5
6
  spin: boolean;
6
- label: string;
7
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -10,11 +10,11 @@ declare function __VLS_template(): {
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<IndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IndicatorProps> & Readonly<{}>, {
13
- label: string;
14
13
  type: import('./types').IndicatorType;
14
+ label: string;
15
+ value: number | string;
15
16
  hidden: boolean;
16
17
  offset: [number, number];
17
- value: number | string;
18
18
  dot: boolean;
19
19
  max: number;
20
20
  showZero: boolean;
@@ -21,23 +21,23 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
21
21
  select: () => void | undefined;
22
22
  input: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
23
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- input: (value: string) => any;
25
- clear: () => any;
26
24
  change: (value: string) => any;
27
25
  "update:modelValue": (value: InputModelValue) => any;
26
+ input: (value: string) => any;
27
+ clear: () => any;
28
28
  blur: (event: FocusEvent) => any;
29
29
  focus: (event: FocusEvent) => any;
30
30
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
- onInput?: ((value: string) => any) | undefined;
32
- onClear?: (() => any) | undefined;
33
31
  onChange?: ((value: string) => any) | undefined;
34
32
  "onUpdate:modelValue"?: ((value: InputModelValue) => any) | undefined;
33
+ onInput?: ((value: string) => any) | undefined;
34
+ onClear?: (() => any) | undefined;
35
35
  onBlur?: ((event: FocusEvent) => any) | undefined;
36
36
  onFocus?: ((event: FocusEvent) => any) | undefined;
37
37
  }>, {
38
38
  size: import('./types').InputSize;
39
- type: import('./types').InputNativeType;
40
39
  disabled: boolean;
40
+ type: import('./types').InputNativeType;
41
41
  placeholder: string;
42
42
  ariaLabel: string;
43
43
  clearable: boolean;
@@ -15,11 +15,11 @@ declare const __VLS_component: import('vue').DefineComponent<LinkProps, {}, {},
15
15
  onClick?: ((event: MouseEvent) => any) | undefined;
16
16
  }>, {
17
17
  size: import('..').TextSize;
18
+ disabled: boolean;
18
19
  type: import('./types').LinkType;
19
- href: string;
20
- target: string;
21
20
  as: string | import('vue').Component;
22
- disabled: boolean;
21
+ target: string;
22
+ href: string;
23
23
  rel: string;
24
24
  underline: import('./types').LinkUnderline;
25
25
  weight: import('..').TextWeight;
@@ -0,0 +1,75 @@
1
+ import { PopoverProps } from './types';
2
+ type __VLS_Props = PopoverProps;
3
+ declare function close(): void;
4
+ type __VLS_PublicProps = {
5
+ 'open'?: boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<{
10
+ /** The control the panel hangs off. Exactly one element. */
11
+ trigger?: (props: {
12
+ open: boolean;
13
+ }) => unknown;
14
+ /** The panel. */
15
+ default?: (props: {
16
+ close: () => void;
17
+ }) => unknown;
18
+ /** Replaces `title`. */
19
+ title?: () => unknown;
20
+ /** A row under the panel — where the Save and Cancel usually go. */
21
+ footer?: (props: {
22
+ close: () => void;
23
+ }) => unknown;
24
+ }> & {
25
+ /** The control the panel hangs off. Exactly one element. */
26
+ trigger?: (props: {
27
+ open: boolean;
28
+ }) => unknown;
29
+ /** The panel. */
30
+ default?: (props: {
31
+ close: () => void;
32
+ }) => unknown;
33
+ /** Replaces `title`. */
34
+ title?: () => unknown;
35
+ /** A row under the panel — where the Save and Cancel usually go. */
36
+ footer?: (props: {
37
+ close: () => void;
38
+ }) => unknown;
39
+ };
40
+ refs: {};
41
+ rootEl: any;
42
+ };
43
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
44
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
45
+ close: typeof close;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ close: () => any;
48
+ open: () => any;
49
+ "update:open": (value: boolean) => any;
50
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
51
+ onClose?: (() => any) | undefined;
52
+ onOpen?: (() => any) | undefined;
53
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
54
+ }>, {
55
+ disabled: boolean;
56
+ title: string;
57
+ side: import('./types').PopoverSide;
58
+ align: import('./types').PopoverAlign;
59
+ offset: number;
60
+ alignOffset: number;
61
+ teleport: boolean;
62
+ modal: boolean;
63
+ ariaLabel: string;
64
+ closable: boolean;
65
+ closeLabel: string;
66
+ arrow: boolean;
67
+ width: number | string;
68
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
69
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
70
+ export default _default;
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxPopover } from './Popover';
2
+ export type * from './types';
@@ -0,0 +1,34 @@
1
+ export type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
2
+ export type PopoverAlign = 'start' | 'center' | 'end';
3
+ export interface PopoverProps {
4
+ /** Which side of the trigger the panel prefers; it flips when there is no room. */
5
+ side?: PopoverSide;
6
+ /** How the panel lines up with the trigger along that side. */
7
+ align?: PopoverAlign;
8
+ /** Distance from the trigger, in pixels. */
9
+ offset?: number;
10
+ /** Shift along the alignment axis, in pixels. */
11
+ alignOffset?: number;
12
+ /** Draws the little pointer at the trigger. */
13
+ arrow?: boolean;
14
+ /** Heading of the panel. The `title` slot replaces it. */
15
+ title?: string;
16
+ /** Width of the panel: a number in pixels, or any CSS length. */
17
+ width?: number | string;
18
+ /** Render the panel in a portal so it escapes `overflow: hidden`. */
19
+ teleport?: boolean;
20
+ /** Block the page behind the panel and trap focus in it. */
21
+ modal?: boolean;
22
+ /** The trigger stops opening anything. */
23
+ disabled?: boolean;
24
+ /** Adds a × in the heading. */
25
+ closable?: boolean;
26
+ /** Label of that ×, for screen readers. */
27
+ closeLabel?: string;
28
+ /** Accessible name for the panel when it has no visible heading. */
29
+ ariaLabel?: string;
30
+ }
31
+ export interface PopoverEmits {
32
+ open: [];
33
+ close: [];
34
+ }