@webx-ui/core 0.6.0 → 0.8.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 (70) hide show
  1. package/dist/components/Alert/Alert.d.ts +41 -0
  2. package/dist/components/Alert/index.d.ts +2 -0
  3. package/dist/components/Alert/types.d.ts +29 -0
  4. package/dist/components/Aside/Aside.d.ts +25 -0
  5. package/dist/components/Aside/index.d.ts +2 -0
  6. package/dist/components/Aside/types.d.ts +14 -0
  7. package/dist/components/Badge/Badge.d.ts +1 -1
  8. package/dist/components/Breadcrumb/Breadcrumb.d.ts +23 -0
  9. package/dist/components/Breadcrumb/index.d.ts +2 -0
  10. package/dist/components/Breadcrumb/types.d.ts +13 -0
  11. package/dist/components/BreadcrumbItem/BreadcrumbItem.d.ts +28 -0
  12. package/dist/components/BreadcrumbItem/index.d.ts +2 -0
  13. package/dist/components/BreadcrumbItem/types.d.ts +19 -0
  14. package/dist/components/Cascader/Cascader.d.ts +1 -1
  15. package/dist/components/Col/Col.d.ts +27 -0
  16. package/dist/components/Col/index.d.ts +2 -0
  17. package/dist/components/Col/types.d.ts +24 -0
  18. package/dist/components/Container/Container.d.ts +23 -0
  19. package/dist/components/Container/index.d.ts +2 -0
  20. package/dist/components/Container/types.d.ts +23 -0
  21. package/dist/components/Dialog/Dialog.d.ts +1 -1
  22. package/dist/components/Divider/Divider.d.ts +24 -0
  23. package/dist/components/Divider/index.d.ts +2 -0
  24. package/dist/components/Divider/types.d.ts +16 -0
  25. package/dist/components/Footer/Footer.d.ts +23 -0
  26. package/dist/components/Footer/index.d.ts +2 -0
  27. package/dist/components/Footer/types.d.ts +8 -0
  28. package/dist/components/Header/Header.d.ts +24 -0
  29. package/dist/components/Header/index.d.ts +2 -0
  30. package/dist/components/Header/types.d.ts +10 -0
  31. package/dist/components/Icon/icons.d.ts +1 -0
  32. package/dist/components/ListDetail/ListDetail.d.ts +73 -0
  33. package/dist/components/ListDetail/index.d.ts +2 -0
  34. package/dist/components/ListDetail/types.d.ts +19 -0
  35. package/dist/components/Main/Main.d.ts +22 -0
  36. package/dist/components/Main/index.d.ts +2 -0
  37. package/dist/components/Main/types.d.ts +8 -0
  38. package/dist/components/Menu/Menu.d.ts +45 -0
  39. package/dist/components/Menu/index.d.ts +2 -0
  40. package/dist/components/Menu/nodes.d.ts +30 -0
  41. package/dist/components/Menu/types.d.ts +36 -0
  42. package/dist/components/MenuGroup/MenuGroup.d.ts +21 -0
  43. package/dist/components/MenuGroup/index.d.ts +2 -0
  44. package/dist/components/MenuGroup/types.d.ts +4 -0
  45. package/dist/components/MenuItem/MenuItem.d.ts +32 -0
  46. package/dist/components/MenuItem/index.d.ts +2 -0
  47. package/dist/components/MenuItem/types.d.ts +23 -0
  48. package/dist/components/Row/Row.d.ts +25 -0
  49. package/dist/components/Row/index.d.ts +2 -0
  50. package/dist/components/Row/types.d.ts +17 -0
  51. package/dist/components/Scrollbar/Scrollbar.d.ts +39 -0
  52. package/dist/components/Scrollbar/index.d.ts +2 -0
  53. package/dist/components/Scrollbar/types.d.ts +30 -0
  54. package/dist/components/Space/Space.d.ts +27 -0
  55. package/dist/components/Space/index.d.ts +2 -0
  56. package/dist/components/Space/types.d.ts +23 -0
  57. package/dist/components/Submenu/Submenu.d.ts +31 -0
  58. package/dist/components/Submenu/index.d.ts +2 -0
  59. package/dist/components/Submenu/types.d.ts +15 -0
  60. package/dist/components/index.d.ts +18 -0
  61. package/dist/composables/useBreadcrumb.d.ts +13 -0
  62. package/dist/composables/useControlAttrs.d.ts +35 -0
  63. package/dist/composables/useElementWidth.d.ts +17 -0
  64. package/dist/composables/useMenu.d.ts +49 -0
  65. package/dist/composables/useResponsiveShell.d.ts +59 -0
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +4595 -3439
  68. package/dist/index.js.map +1 -1
  69. package/dist/style.css +1 -1
  70. package/package.json +2 -2
@@ -0,0 +1,41 @@
1
+ import { AlertProps } from './types';
2
+ import { IconName } from '../Icon/types';
3
+ type __VLS_Props = AlertProps;
4
+ type __VLS_PublicProps = {
5
+ 'visible'?: boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ icon?(_: {}): any;
11
+ title?(_: {}): any;
12
+ default?(_: {}): any;
13
+ actions?(_: {}): any;
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
+ close: (event: MouseEvent) => any;
21
+ "update:visible": (value: boolean) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onClose?: ((event: MouseEvent) => any) | undefined;
24
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
25
+ }>, {
26
+ variant: import('./types').AlertVariant;
27
+ type: import('./types').AlertType;
28
+ title: string;
29
+ icon: IconName | false;
30
+ description: string;
31
+ closable: boolean;
32
+ closeLabel: string;
33
+ live: boolean;
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 WxAlert } from './Alert';
2
+ export type * from './types';
@@ -0,0 +1,29 @@
1
+ import { IconName } from '../Icon/types';
2
+ export type AlertType = 'info' | 'success' | 'warning' | 'danger';
3
+ export type AlertVariant = 'soft' | 'solid' | 'outline';
4
+ export interface AlertProps {
5
+ /** Semantic role of the message. */
6
+ type?: AlertType;
7
+ /** Visual weight. `soft` is the tinted panel an admin page usually wants. */
8
+ variant?: AlertVariant;
9
+ /** Headline above the body. Without it the body carries the message alone. */
10
+ title?: string;
11
+ /** The message, when a slot would be overkill. */
12
+ description?: string;
13
+ /**
14
+ * The leading icon. A name overrides the one implied by `type`; `false` drops it.
15
+ */
16
+ icon?: IconName | false;
17
+ /** Adds a × that closes the alert. */
18
+ closable?: boolean;
19
+ /** Accessible name of the close button. */
20
+ closeLabel?: string;
21
+ /**
22
+ * Announces the alert when it appears. Leave it off for a message that is part of
23
+ * the page from the start — a screen reader would read it out of nowhere.
24
+ */
25
+ live?: boolean;
26
+ }
27
+ export interface AlertEmits {
28
+ close: [event: MouseEvent];
29
+ }
@@ -0,0 +1,25 @@
1
+ import { AsideProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<AsideProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AsideProps> & Readonly<{}>, {
12
+ bordered: boolean;
13
+ side: "start" | "end";
14
+ collapsed: boolean;
15
+ width: number | string;
16
+ collapsedWidth: number | string;
17
+ scroll: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxAside } from './Aside';
2
+ export type * from './types';
@@ -0,0 +1,14 @@
1
+ export interface AsideProps {
2
+ /** Width of the column: pixels as a number, or any CSS length. */
3
+ width?: number | string;
4
+ /** Width once `collapsed` is on — the icon rail of a sidebar. */
5
+ collapsedWidth?: number | string;
6
+ /** Narrows the column to `collapsedWidth`. Pair it with a collapsed `WxMenu`. */
7
+ collapsed?: boolean;
8
+ /** Which edge carries the rule: the sidebar's own side of the page. */
9
+ side?: 'start' | 'end';
10
+ /** Rule between the column and the page. */
11
+ bordered?: boolean;
12
+ /** Scrolls the column on its own, independently of the page. */
13
+ scroll?: boolean;
14
+ }
@@ -18,9 +18,9 @@ declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {},
18
18
  size: import('./types').BadgeSize;
19
19
  type: import('./types').BadgeType;
20
20
  round: boolean;
21
- dot: boolean;
22
21
  closable: boolean;
23
22
  closeLabel: string;
23
+ dot: boolean;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
25
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
26
  export default _default;
@@ -0,0 +1,23 @@
1
+ import { BreadcrumbProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<BreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BreadcrumbProps> & Readonly<{}>, {
12
+ size: import('./types').BreadcrumbSize;
13
+ label: string;
14
+ separator: string;
15
+ separatorIcon: import('..').IconName;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxBreadcrumb } from './Breadcrumb';
2
+ export type * from './types';
@@ -0,0 +1,13 @@
1
+ import { IconName } from '../Icon/types';
2
+ import { BreadcrumbSize } from '../../composables/useBreadcrumb';
3
+ export type { BreadcrumbSize };
4
+ export interface BreadcrumbProps {
5
+ /** Character drawn between items. */
6
+ separator?: string;
7
+ /** Icon drawn between items instead of the character — `chevron-right`, usually. */
8
+ separatorIcon?: IconName;
9
+ /** Text size of the trail. */
10
+ size?: BreadcrumbSize;
11
+ /** Accessible name of the navigation landmark. */
12
+ label?: string;
13
+ }
@@ -0,0 +1,28 @@
1
+ import { BreadcrumbItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<BreadcrumbItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ click: (event: MouseEvent) => any;
13
+ }, string, import('vue').PublicProps, Readonly<BreadcrumbItemProps> & Readonly<{
14
+ onClick?: ((event: MouseEvent) => any) | undefined;
15
+ }>, {
16
+ as: string | import('vue').Component;
17
+ target: string;
18
+ icon: import('..').IconName;
19
+ href: string;
20
+ current: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxBreadcrumbItem } from './BreadcrumbItem';
2
+ export type * from './types';
@@ -0,0 +1,19 @@
1
+ import { Component } from 'vue';
2
+ import { IconName } from '../Icon/types';
3
+ export interface BreadcrumbItemProps {
4
+ /** Where the crumb points. Without it the crumb is plain text. */
5
+ href?: string;
6
+ target?: string;
7
+ /** Renders through another component — `RouterLink`, say, with `to` in the attrs. */
8
+ as?: string | Component;
9
+ /** Icon before the label. */
10
+ icon?: IconName;
11
+ /**
12
+ * Marks the crumb as the page you are on. Left alone, a crumb that links nowhere
13
+ * counts as the current page, which is how the last crumb is normally written.
14
+ */
15
+ current?: boolean;
16
+ }
17
+ export interface BreadcrumbItemEmits {
18
+ click: [event: MouseEvent];
19
+ }
@@ -43,11 +43,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
43
43
  clearable: boolean;
44
44
  status: import('../..').ControlStatus;
45
45
  id: string;
46
+ separator: string;
46
47
  expandTrigger: "click" | "hover";
47
48
  checkStrictly: boolean;
48
49
  emitPath: boolean;
49
50
  showAllLevels: boolean;
50
- separator: string;
51
51
  lazy: boolean;
52
52
  load: import('./types').CascaderLoader;
53
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -0,0 +1,27 @@
1
+ import { ColBreakpoint, ColProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ColProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ColProps> & Readonly<{}>, {
12
+ sm: ColBreakpoint;
13
+ md: ColBreakpoint;
14
+ as: string | import('vue').Component;
15
+ span: number;
16
+ lg: ColBreakpoint;
17
+ offset: number;
18
+ xl: ColBreakpoint;
19
+ order: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxCol } from './Col';
2
+ export type * from './types';
@@ -0,0 +1,24 @@
1
+ import { Component } from 'vue';
2
+ /** A width at one breakpoint: the span alone, or the span with an offset. */
3
+ export type ColBreakpoint = number | {
4
+ span?: number;
5
+ offset?: number;
6
+ };
7
+ export interface ColProps {
8
+ /** Columns out of 24 the cell takes. This is the base — it holds at every width. */
9
+ span?: number;
10
+ /** Empty columns before the cell, out of 24. */
11
+ offset?: number;
12
+ /** From 640px up. */
13
+ sm?: ColBreakpoint;
14
+ /** From 768px up. */
15
+ md?: ColBreakpoint;
16
+ /** From 1024px up. */
17
+ lg?: ColBreakpoint;
18
+ /** From 1280px up. */
19
+ xl?: ColBreakpoint;
20
+ /** Visual order within the row, without touching the source order. */
21
+ order?: number;
22
+ /** The element to render. */
23
+ as?: string | Component;
24
+ }
@@ -0,0 +1,23 @@
1
+ import { ContainerProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ContainerProps> & Readonly<{}>, {
12
+ as: string | import('vue').Component;
13
+ direction: import('./types').ContainerDirection;
14
+ fullHeight: boolean;
15
+ viewport: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxContainer } from './Container';
2
+ export type * from './types';
@@ -0,0 +1,23 @@
1
+ import { Component } from 'vue';
2
+ export type ContainerDirection = 'vertical' | 'horizontal';
3
+ export interface ContainerProps {
4
+ /**
5
+ * How the children stack. A page is `vertical` — header, body, footer; the body
6
+ * itself is `horizontal` — sidebar beside the main column.
7
+ */
8
+ direction?: ContainerDirection;
9
+ /** Makes the container at least as tall as the viewport. For the outermost one. */
10
+ fullHeight?: boolean;
11
+ /**
12
+ * Makes the container exactly as tall as the viewport and stops it growing, so
13
+ * that what scrolls is a pane inside it rather than the page. This is the shape an
14
+ * admin shell has: a header that stays put and a main column that scrolls under
15
+ * it. Pair it with `scroll` on the `WxMain` inside.
16
+ *
17
+ * `fullHeight` is the other answer — at least the viewport, with the page itself
18
+ * scrolling. Use that for a document, this for an application.
19
+ */
20
+ viewport?: boolean;
21
+ /** The element to render. */
22
+ as?: string | Component;
23
+ }
@@ -80,8 +80,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
80
80
  ariaLabel: string;
81
81
  closable: boolean;
82
82
  closeLabel: string;
83
- scroll: import('./types').DialogScroll;
84
83
  width: number | string;
84
+ scroll: import('./types').DialogScroll;
85
85
  height: number | string;
86
86
  stickyFooter: boolean;
87
87
  minWidth: number;
@@ -0,0 +1,24 @@
1
+ import { DividerProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
12
+ variant: import('./types').DividerVariant;
13
+ label: string;
14
+ align: import('./types').DividerAlign;
15
+ direction: import('./types').DividerDirection;
16
+ spacing: import('./types').DividerSpacing;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxDivider } from './Divider';
2
+ export type * from './types';
@@ -0,0 +1,16 @@
1
+ export type DividerDirection = 'horizontal' | 'vertical';
2
+ export type DividerVariant = 'solid' | 'dashed' | 'dotted';
3
+ export type DividerAlign = 'start' | 'center' | 'end';
4
+ export type DividerSpacing = 'none' | 'sm' | 'md' | 'lg';
5
+ export interface DividerProps {
6
+ /** A rule across the flow, or a hairline between two things on one line. */
7
+ direction?: DividerDirection;
8
+ /** Line style. */
9
+ variant?: DividerVariant;
10
+ /** Where the label sits on the line. Ignored without a label. */
11
+ align?: DividerAlign;
12
+ /** Margin around the rule. */
13
+ spacing?: DividerSpacing;
14
+ /** Label on the line, when a slot would be overkill. */
15
+ label?: string;
16
+ }
@@ -0,0 +1,23 @@
1
+ import { FooterProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ end?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<FooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FooterProps> & Readonly<{}>, {
13
+ bordered: boolean;
14
+ padding: "none" | "sm" | "md" | "lg";
15
+ height: number | string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxFooter } from './Footer';
2
+ export type * from './types';
@@ -0,0 +1,8 @@
1
+ export interface FooterProps {
2
+ /** Height of the bar: pixels as a number, or any CSS length. */
3
+ height?: number | string;
4
+ /** Rule along the top edge. */
5
+ bordered?: boolean;
6
+ /** Inner padding. */
7
+ padding?: 'none' | 'sm' | 'md' | 'lg';
8
+ }
@@ -0,0 +1,24 @@
1
+ import { HeaderProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ end?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<HeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<HeaderProps> & Readonly<{}>, {
13
+ bordered: boolean;
14
+ sticky: boolean;
15
+ padding: "none" | "sm" | "md" | "lg";
16
+ height: number | string;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxHeader } from './Header';
2
+ export type * from './types';
@@ -0,0 +1,10 @@
1
+ export interface HeaderProps {
2
+ /** Height of the bar: pixels as a number, or any CSS length. */
3
+ height?: number | string;
4
+ /** Rule along the bottom edge, separating the bar from the page. */
5
+ bordered?: boolean;
6
+ /** Keeps the bar in place while the page scrolls under it. */
7
+ sticky?: boolean;
8
+ /** Inner padding. `none` hands the bar over to whatever is inside it. */
9
+ padding?: 'none' | 'sm' | 'md' | 'lg';
10
+ }
@@ -31,6 +31,7 @@ export declare const builtinIcons: {
31
31
  readonly 'arrow-left': "<path d=\"M20 12H4m0 0 6-6m-6 6 6 6\"/>";
32
32
  readonly 'arrow-right': "<path d=\"M4 12h16m0 0-6-6m6 6-6 6\"/>";
33
33
  readonly menu: "<path d=\"M4 7h16M4 12h16M4 17h16\"/>";
34
+ readonly sidebar: "<rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><path d=\"M9.5 4.5v15\"/>";
34
35
  readonly 'more-horizontal': "<circle cx=\"5.5\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>";
35
36
  readonly 'more-vertical': "<circle cx=\"12\" cy=\"5.5\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"12\" cy=\"18.5\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/>";
36
37
  readonly drag: "<circle cx=\"9\" cy=\"6\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"6\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"9\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"12\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"9\" cy=\"18\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"18\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/>";
@@ -0,0 +1,73 @@
1
+ import { ListDetailProps } from './types';
2
+ type __VLS_Props = ListDetailProps;
3
+ type __VLS_PublicProps = {
4
+ 'open'?: boolean;
5
+ 'filtersOpen'?: boolean;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<{
10
+ /** What narrows the list: views, folders, filters. The column is optional. */
11
+ filters?: (props: {
12
+ inline: boolean;
13
+ close: () => void;
14
+ }) => unknown;
15
+ /** The records. */
16
+ list?: (props: {
17
+ filtersInline: boolean;
18
+ openFilters: () => void;
19
+ }) => unknown;
20
+ /** The record that is open. */
21
+ detail?: (props: {
22
+ inline: boolean;
23
+ back: () => void;
24
+ }) => unknown;
25
+ /** Shown in the pane's place while nothing is selected. */
26
+ empty?: () => unknown;
27
+ }> & {
28
+ /** What narrows the list: views, folders, filters. The column is optional. */
29
+ filters?: (props: {
30
+ inline: boolean;
31
+ close: () => void;
32
+ }) => unknown;
33
+ /** The records. */
34
+ list?: (props: {
35
+ filtersInline: boolean;
36
+ openFilters: () => void;
37
+ }) => unknown;
38
+ /** The record that is open. */
39
+ detail?: (props: {
40
+ inline: boolean;
41
+ back: () => void;
42
+ }) => unknown;
43
+ /** Shown in the pane's place while nothing is selected. */
44
+ empty?: () => unknown;
45
+ };
46
+ refs: {
47
+ root: HTMLDivElement;
48
+ };
49
+ rootEl: HTMLDivElement;
50
+ };
51
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
52
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ "update:open": (value: boolean) => any;
54
+ "update:filtersOpen": (value: boolean) => any;
55
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
56
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
57
+ "onUpdate:filtersOpen"?: ((value: boolean) => any) | undefined;
58
+ }>, {
59
+ filtersWidth: number | string;
60
+ listWidth: number | string;
61
+ detailMin: number;
62
+ filtersTitle: string;
63
+ detailLabel: string;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
65
+ root: HTMLDivElement;
66
+ }, HTMLDivElement>;
67
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
+ export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxListDetail } from './ListDetail';
2
+ export type * from './types';
@@ -0,0 +1,19 @@
1
+ export interface ListDetailProps {
2
+ /**
3
+ * Width of the column that narrows the list: saved views, filters, folders.
4
+ * The column is only rendered when the `filters` slot is used.
5
+ */
6
+ filtersWidth?: number | string;
7
+ /** Width of the list of records. */
8
+ listWidth?: number | string;
9
+ /**
10
+ * The narrowest the detail pane may be. It is what the two thresholds are made
11
+ * of: the filters column folds away when it would push the pane under this, and
12
+ * the pane stops standing beside the list when it no longer fits either.
13
+ */
14
+ detailMin?: number;
15
+ /** Heading of the panel the filters move into once the column does not fit. */
16
+ filtersTitle?: string;
17
+ /** Accessible name of the panel the detail opens in on a narrow screen. */
18
+ detailLabel?: string;
19
+ }
@@ -0,0 +1,22 @@
1
+ import { MainProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<MainProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MainProps> & Readonly<{}>, {
12
+ scroll: boolean;
13
+ padding: "none" | "sm" | "md" | "lg";
14
+ maxWidth: number | string;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ export { default as WxMain } from './Main';
2
+ export type * from './types';
@@ -0,0 +1,8 @@
1
+ export interface MainProps {
2
+ /** Inner padding. */
3
+ padding?: 'none' | 'sm' | 'md' | 'lg';
4
+ /** Scrolls the column on its own instead of scrolling the page. */
5
+ scroll?: boolean;
6
+ /** Caps the content width and centres it — for forms and reading columns. */
7
+ maxWidth?: number | string;
8
+ }